/*全局样式*/
html, body {
    height: 100%;
}
body {
    background: #eee;
    color: #444;
    display: flex;
    flex-direction: column;
}
.zr-clear {
    clear: both;
}
.zr-body {
    margin-top: 75px;
    flex: 1 0 auto; /* 关键：占据剩余空间 */
}
.zr-container {
    margin: 0 10px;
    position: relative;
}

.zr-main {
    margin-top: 15px;
    width: 100%;
    position: relative;
}

.zr-main > .zr-main-left {
    width: 100%;
    float: left;
}

.zr-main > .zr-main-right {
    width: 100%;
    float: right;
}

/* 小屏幕（平板，大于等于 768px） */
@media (min-width: 768px) {
    .zr-container {
        width: 738px;
        margin: 0 auto;
    }

    .zr-main > .zr-main-right > .zr-module {
        width: 45%;
        margin-bottom: 15px;
    }

    .zr-main > .zr-main-right > .zr-module:nth-child(odd) {
        float: left;
        clear: left;
    }

    .zr-main > .zr-main-right > .zr-module:nth-child(odd).zr-module:last-child {
        width: auto;
        float: none;
        clear: both;
    }

    .zr-main > .zr-main-right > .zr-module:nth-child(even) {
        float: right;
        clear: right;
    }
    #banner { height: 150px; }
}

/* 中等屏幕（桌面显示器，大于等于 992px） */
@media (min-width: 992px) {
    .zr-container {
        width: 992px;
    }
    .zr-main > .zr-main-left {
        width: 80%;
    }
    .zr-main > .zr-main-right {
        width: 29%;
    }
    .zr-main > .zr-main-right > .zr-module {
        width: auto;
        float: none !important;
    }
    /* 修改父容器为 flex 布局 */
    .zr-main {
        margin-top: 15px;
        width: 100%;
        position: relative;
        display: flex; /* 新增 */
        gap: 10px; /* 可选：添加间距 */
    }
    /* 右侧侧边栏 */
    .zr-main-right {
        align-self: flex-start; /* 避免被拉伸 */
        position: sticky;
        top: 70px; /* 根据实际导航栏高度调整 */
    }
}

/* 大屏幕（大桌面显示器，大于等于 1200px） */
@media (min-width: 1200px) {
    .zr-container {
        width: 1200px;
    }
    /* 修改父容器为 flex 布局 */
    .zr-main {
        margin-top: 10px;
        width: 100%;
        position: relative;
        display: flex; /* 新增 */
        gap: 10px; /* 可选：添加间距 */
    }
    /* 右侧侧边栏 */
    .zr-main-right {
        align-self: flex-start; /* 避免被拉伸 */
        position: sticky;
        top: 70px; /* 根据实际导航栏高度调整 */
    }
}
/*全局样式END*/

/*顶部导航*/
.zr-nav {
    width: 100%;
    height: 64px;
    position: fixed;
    top: 0;
    -webkit-backdrop-filter: saturate(180%) blur(6px);
    backdrop-filter: saturate(2) blur(15px);
    background: rgba(245, 245, 245, 0.75);
}

.zr-nav .layui-nav {
    position: absolute;
    top: 0;
    left: 16%;
    background: none;
    display: none;
    text-align: center;
}

.zr-nav .layui-nav .layui-nav-item {
    line-height: 64px;
}

.zr-nav .layui-nav .layui-nav-item a {
    padding: 0 10px;
    color: #484b4f;
}
.zr-nav .layui-nav .layui-this a {
    color: var(--primary-color);;
}
.zr-nav .layui-nav .layui-nav-item a:hover {
    color: var(--primary-color);;
}
.zr-user {
    display: flex;
    align-items: center;  /* 垂直居中 */
    gap: 10px;           /* 元素间距 */
    flex-wrap: nowrap;   /* 禁止换行 */
    line-height: 64px;
    position: absolute;
    z-index: 10;
}
.zr-user .layui-btn {
    height: 30px;
    line-height: 30px;
    padding: 0 15px;
    color: #fff5f5e6;
}

.zr-navicon {
    display: none;
}

@media (max-width: 991px){
    .zr-user {
        display: none !important;
    }
    .zr-navicon {
        display: block;
    }
    .zr-bgimg {
        display: none !important;
    }
}

.zr-nav .zr-logo {
    position: absolute;
    top: 0px;
    left: 25%;
    width: 50%;
    color: #00000099;
    text-align: center;
    margin: 0 auto;
    line-height: 64px;
    font-size: 25px;
    /*color: white;*/
    font-weight: bold;
    font-family: KaiTi;
    display: inline-block;
    z-index: 10;
}

.zr-nav .zr-navicon a:first-child {
    position: absolute;
    left: 0;
    padding: 10px 12px;
    margin-top: 13px;
}
.zr-nav .zr-navicon a:last-child {
    position: absolute;
    right: 0;
    padding: 10px 12px;
    margin-top: 13px;
}

@media (min-width: 992px) {
    .zr-nav .layui-nav {
        display: block;
    }
    .zr-nav .zr-user {
        right: 0;
    }

    .zr-nav .zr-logo {
        position: absolute;
        left: -1%;
        width: auto;
    }
    .zr-nav .zr-user a:nth-child(2),.zr-nav .zr-user a:nth-child(3) {
        display: inline-block;
    }

    .zr-nav-left {
        display: none !important;
    }
}
.layui-nav {
    position: relative;
}

.layui-nav-item ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 120px;
    background: #fff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
    z-index: 999;
}

.layui-nav-item:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.layui-nav-item ul li {
    padding: 0 15px;
    line-height: 32px;
    font-size: 13px;
    color: #646464eb;
    transition: background 0.2s;
}

.layui-nav-item ul li:hover {
    background: #f8f8f8;
}
.zr-nav-two > ul > li > a {
    color: #646464eb !important;
}
.zr-nav-two > a:after {
    content: "\e61a";
    font-family: layui-icon;
    margin-left: 6px;
    font-size: 14px;
    transition: 0.3s;
    display: inline-block;
    vertical-align: middle;
}

.zr-nav-two:hover > a:after {
    content: "\e603";
}
/* 顶部导航End */

/*侧边导航*/
.zr-nav-left {
    z-index: 900;
    width: 45%;
    background: #fff;
    position: fixed;
    top: 0;
    bottom: 0;
    padding: 70px 20px;
}
.zr-nav-left-moon {
    color: #646464eb;
    float: right;
    margin: 12px;
    background: rgba(50, 50, 50, 0.06);
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 100%;
}
.zr-nav-left-theme {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    padding: 8px;
}
.zr-nav-left-theme li {
    display: block;
    padding: 8px 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.zr-nav-left-theme li:not(.zr-nav-left-this) a {
    color: #646464eb;
}
.zr-nav-left-this {
    color: #2d8cf0 !important;
}

.zr-nav-left-theme:hover .zr-nav-left-this:not(:hover) a {
    color: #646464eb !important;
}
.zr-nav-left-theme li a[href]:active,
.zr-nav-left-theme li a[href]:focus {
    color: #2d8cf0 !important;
}
.zr-nav-left-zi {
    display: flex;         /* 启用弹性布局 */
    flex-wrap: wrap;       /* 允许换行 */
    gap: 4px;             /* 元素间距 */
    width: 100%;          /* 确保占满父容器 */
}
.zr-nav-left-zi li {
    flex: 0 0 calc(50% - 2px); /* 每行两个，留出间隙 */
    box-sizing: border-box;    /* 包含内边距 */
    padding: 8px 3px 0 0;
}
.zr-nav-left-zi li > a {
    display: block;
    background: rgba(50, 50, 50, 0.06);
    padding: 5px 5px;
    border-radius: 3px;
    font-size: 0.8em;
    text-align: center;
}
.zr-nav-left-zi li > a:hover {
    color: #2d8cf0;
}
.zr-nav-left-user {
    display: flex;
    justify-content: space-around; /* 均匀分布三个元素 */
    gap: 10px; /* 元素间间距 */
}
.zr-nav-left-user a {
    display: flex;
    flex-direction: column;  /* 垂直排列 */
    align-items: center;     /* 水平居中 */
    padding: 10px;
    text-decoration: none;   /* 移除下划线 */
    transition: all 0.3s;    /* 添加过渡效果 */
}
.zr-nav-left-user a i {
    width: 36px;
    height: 36px;
    font-size: 18px;         /* 放大图标 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;      /* 图标和文字间距 */
    border-radius: 17px;
    background: rgba(50, 50, 50, 0.06);
}
/* 文字样式 */
.zr-nav-left-user a cite {
    font-size: 12px;
    color: #666;            /* 文字颜色 */
    font-style: normal;      /* 移除斜体 */
}
/* 悬停效果 */
.zr-nav-left-user a:hover {
    transform: translateY(-3px);
    color: #2d8cf0;         /* 主色调 */
}

.leftIn {
    -moz-animation: leftIn 0.3s;
    -o-animation: leftIn 0.3s;
    -webkit-animation: leftIn 0.3s;
    animation: leftIn 0.3s;
}

.leftOut {
    -moz-animation: leftOut 0.3s;
    -o-animation: leftOut 0.3s;
    -webkit-animation: leftOut 0.3s;
    animation: leftOut 0.3s;
}

@media (min-width: 992px) {
    .zr-nav-left {
        display: none !important;
    }
}

/*侧边导航END*/

/*侧边导航遮罩*/
.zr-mask {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(24, 25, 27, .8);
    z-index: 800;
    -webkit-backdrop-filter: saturate(180%) blur(6px);
    backdrop-filter: saturate(180%) blur(6px);
}

.maskIn {
    -moz-animation: maskFadeIn 0.5s;
    -o-animation: maskFadeIn 0.5s;
    -webkit-animation: maskFadeIn 0.5s;
    animation: maskFadeIn 0.5s;
}

.maskOut {
    -moz-animation: maskFadeOut 0.5s;
    -o-animation: maskFadeOut 0.5s;
    -webkit-animation: maskFadeOut 0.5s;
    animation: maskFadeOut 0.5s;
}


@media (min-width: 992px) {
    .zr-mask {
        display: none;
    }
}
/*侧边导航遮罩END*/

/* 搜索/背景开始 */
/* 动态背景容器样式 */
.bg-container {
    background-image: linear-gradient(45deg, #8618db 0%, #d711ff 50%, #460fdd 100%);
    background-size: 400%;
    background-position: 0% 100%;
    animation: gradient 10s ease-in-out infinite;
    width: 100%;
    height: 420px;
    margin-top: -80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 添加底部淡出遮罩 */
.bg-container::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(to top, #f2f4f7 0%, transparent 80%);
    z-index: 1;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
        opacity: 0.95;
    }
    50% {
        background-position: 100% 50%;
        opacity: 1;
    }
    100% {
        background-position: 0% 50%;
        opacity: 0.95;
    }
}

/* 搜索容器样式 */
.search-container {
    margin: 0 auto;
    width: 90%;
    max-width: 800px;
    position: relative;
    z-index: 10;
    transition: all 0.4s ease;
}

.search-tabs {
    display: flex;
    justify-content: center; /* 标签居中 */
    margin-bottom: 10px;
    white-space: nowrap;
    padding: 0 15px;
    position: relative;
}

.search-tab {
    padding: 7px 18px;
    cursor: pointer;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7); /* 浅白色 */
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    z-index: 1;
}

/* 主标签栏悬停效果 */
.search-tab:hover {
    color: rgba(255, 255, 255, 0.9);
}

.search-tab.active {
    color: #fff; /* 纯白色 */
}

/* 白色小滑块指示器 - 更小更圆润 */
.tab-indicator {
    position: absolute;
    bottom: -5px;
    height: 5px;
    width: 30px;
    background: white;
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.search-form {
    padding: 0 15px;
    transition: all 0.3s ease;
    position: relative;
}

.search-input-group {
    display: flex;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    outline: none;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

/* 修改搜索按钮样式 */
.search-btn {
    padding: 0 25px;
    background: linear-gradient(45deg, #8618db, #d711ff);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.search-btn:hover {
    background: linear-gradient(45deg, #700fc4, #b90bd9);
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.search-btn:hover i {
    transform: scale(1.1);
}

/* 子搜索标签样式 - 居中显示 */
.search-engines {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 15px 15px;
    transition: all 0.3s ease;
    opacity: 1;
    max-height: 100px;
    overflow: hidden;
    position: relative;
}

/* 子搜索标签项样式 - 类似头部tab */
.engine-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* 子搜索标签悬停效果 */
.engine-item:hover {
    color: rgba(255, 255, 255, 0.9);
}

.engine-item.active {
    color: #fff;
}

/* 子搜索标签滑块指示器 - 向上指向 */
.engine-indicator {
    position: absolute;
    top: 0;
    height: 5px;
    width: 30px;
    background: white;
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.5);
    z-index: 11;
}

.search-content {
    min-height: 100px; /* 设置最小高度 */
    position: relative; /* 添加相对定位 */
}

.search-history {
    position: absolute; /* 使用绝对定位 */
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 5; /* 确保在内容上方 */
    padding: 10px 20px;
    min-height: 50px; /* 添加最小高度 */
    transition: all 0.3s ease;
    opacity: 1;
    max-height: 200px;
}

/* 非输入关键词 开始起航时隐藏历史记录 */
.search-container:not(.onsite-tab) .search-history {
    opacity: 0;
    max-height: 0;
    padding: 0;
    border: none;
    visibility: hidden; /* 使用visibility隐藏 */
}

.search-content > .search-tab-content {
    min-height: 100px; /* 设置最小高度 */
}

.history-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.history-header a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.history-header a:hover {
    color: white;
}

/* 在现有样式基础上添加 */
.history-items {
    display: flex;
    flex-wrap: nowrap; /* 禁止换行 */
    gap: 5px;
    overflow-x: auto; /* 水平滚动 */
    padding-bottom: 5px; /* 为滚动条留出空间 */
    max-width: 100%; /* 确保不超过容器宽度 */
}

/* 隐藏滚动条 */
.history-items::-webkit-scrollbar {
    display: none;
}

.history-items {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* 修改历史记录样式 */
.history-item {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease; /* 只保留颜色变化的过渡 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    white-space: nowrap; /* 防止文本换行 */
    flex-shrink: 0; /* 禁止缩小 */
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* 修改历史记录样式 */
.history-item {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .search-tab {
        padding: 4px 14px;
        font-size: 14px;
    }

    .search-input {
        padding: 12px 15px;
        font-size: 15px;
    }

    .search-btn {
        padding: 0 20px;
    }

    .engine-item {
        padding: 6px 12px;
        font-size: 13px;
    }
}
/*搜索/背景结束END*/
/*layui重写*/

.layui-tab-brief {
    background: #fff;
}

/*    快捷标签    */
.layui-fixbar {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 700;
}
.layui-fixbar li {
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin-top: 10px;
    text-align: center;
    cursor: pointer;
    font-size: 30px;
    color: #ffffff;
    border-radius: 10px;
    opacity: .95;
    -webkit-backdrop-filter: saturate(180%) blur(6px);
    backdrop-filter: saturate(180%) blur(6px);
    background: rgb(140 140 140 / 55%);
}
/* 卡片圆角 */
.layui-card {
    border-radius: 10px;
    margin-bottom: 10px;
}
/*  导航栏this  */
.layui-nav .layui-this:after, .layui-nav-bar, .layui-nav-tree .layui-nav-itemed:after {
    height: 3px;
    background-color: var(--primary-color);;
}
/* 手机端侧边栏 */
.layui-nav-tree .layui-nav-child dd.layui-this, .layui-nav-tree .layui-nav-child dd.layui-this a, .layui-nav-tree .layui-this, .layui-nav-tree .layui-this>a, .layui-nav-tree .layui-this>a:hover {
    background-color: #929292a3;
    color: #fff;
}
.layui-btn+.layui-btn {
    margin-left: 0;
}
/* 首页tab栏样式 */
.layui-tab-brief > .layui-tab-title .layui-this {
    color: var(--primary-color);;
}
.layui-tab-brief > .layui-tab-more li.layui-this:after,
.layui-tab-brief > .layui-tab-title .layui-this:after {
    border-bottom: 3px solid var(--primary-color);;
}
.layui-tab.layui-tab-vertical > .layui-tab-title > li.layui-this {
    border-color: var(--primary-color);;
    color: var(--primary-color);;
}
.layui-card-header {
    font-size: 18px;
}
.layui-input::placeholder {
    color: rgba(124, 124, 124, 0.92) !important;
}
/*layui重写END*/

/***********************************************动画定义*************************************************/
/*侧边导航In动画*/
@keyframes leftIn {
    from {
        left: -200px;
    }

    to {
        left: 0;
    }
}

@-moz-keyframes leftIn {
    from {
        left: -200px;
    }

    to {
        left: 0;
    }
}

@-webkit-keyframes leftIn {
    from {
        left: -200px;
    }

    to {
        left: 0;
    }
}

/*侧边导航Out动画*/
@keyframes leftOut {
    from {
        left: 0;
    }

    to {
        left: -200px;
    }
}

@-moz-keyframes leftOut {
    from {
        left: 0;
    }

    to {
        left: -200px;
    }
}

@-webkit-keyframes leftOut {
    from {
        left: 0;
    }

    to {
        left: -200px;
    }
}

/*淡入动画*/
@keyframes maskFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-moz-keyframes maskFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes maskFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*淡出动画*/
@keyframes maskFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@-moz-keyframes maskFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@-webkit-keyframes maskFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}