/**
 * 导航栏样�? * 模仿优设网的导航样式
 */

/* 基础样式重置 */
.cscj-header *,
.cscj-modal-menu *,
.cscj-dropdown-menu * {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

/* 导航容器 - 与父主题高度完全一致 */
.cscj-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important; /* 提高层级，确保在所有元素之�?*/
    background: rgba(255, 255, 255, 0.9) !important; /* 默认不透明背景 */
    backdrop-filter: saturate(180%) blur(12px) !important; /* 开启磨玻璃 */
    -webkit-backdrop-filter: saturate(180%) blur(12px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important; /* 默认有阴�?*/
    transition: all 0.3s ease !important;
    height: 66px !important; /* 【2025-01-30】调整为父主题实际导航栏高度：50px内容+16px padding */
    padding: 8px 20px; /* 采用父主题的padding设置 */
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box; /* 确保padding包含在height内 */
}

/* 首页导航栏样�?- 仅在未启用透明效果时生�?*/
body:not(.nav-transparent-enabled) .home .cscj-header {
    background: rgba(255, 255, 255, 0.3) !important; /* 更透明 */
}






.cscj-container {
    max-width: none;
    /* 通栏：不限制最大宽�?*/
    display: flex;
    align-items: center;
    justify-content: space-between; /* 两端对齐 */
    padding: 0; /* 移除padding，因为父级.cscj-header已有padding */
    position: relative;
    height: 100%; /* 填满父容器高度 */
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* Logo样式 */
.cscj-logo {
    margin: 0;
    padding: 0;
    height: 100%; /* 填满容器高度，实际约72px(88px-16px padding) */
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: max(0px, calc((100vw - 1200px) / 2 - 5px));
}

/* Logo样式调整 */
.cscj-logo .cscj-a-glass {
    display: flex;
    align-items: center;
}

/* 父主题Logo样式适配 */
.cscj-logo .cscj-a-glass img {
    max-height: 36px; /* 与父主题.navbar-logo > img保持一致 */
    width: auto;
    margin-right: 10px;
}

/* 在移动端保持左侧内边�?*/
@media (max-width: 996px) {
    /* 移动端高度标准化 - 与父主题保持一致 */
    .cscj-header {
        height: 66px !important; /* 【统一】与电脑端保持完全一致的导航栏高度 */
        padding: 0 8px; /* 与父主题移动端padding一致 */
    }

    .cscj-logo {
        height: 100%; /* 填满容器高度 */
    }

    .cscj-header-right {
        height: 100%; /* 填满容器高度 */
    }

    .cscj-menu-primary > li > a {
        line-height: 66px; /* 【统一】与移动端总高度一致 */
    }

    .cscj-header-search .cscj-label {
        line-height: 66px; /* 【统一】与移动端总高度一致 */
    }
    .cscj-container {
        padding: 0; /* 移除padding，因为父级.cscj-header已有padding */
        justify-content: space-between; /* 两端对齐 */
    }
    
    .cscj-logo {
        margin-right: auto; /* 确保logo居左 */
    }
    
    .cscj-logo .cscj-a-glass {
        padding-left: 0; /* 移除左侧内边距，因为容器已有内边�?*/
    }
    
    .cscj-header-right {
        display: flex;
        align-items: center;
        margin-left: auto; /* 确保右侧元素靠右 */
    }
}

/* 移动端搜索按钮和菜单按钮样式 */
.cscj-h-navi {
    display: none;
    margin-left: 15px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    padding: 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
    order: 99; /* 确保它显示在最右边 */
    border: none;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
}

.cscj-h-navi:focus-visible,
.menu-mode-switch .switch-btn:focus-visible {
    outline: 2px solid #ff6000;
    outline-offset: 2px;
}

.cscj-ico-navi {
    display: inline-block;
    width: 20px;
    height: 14px;
    position: relative;
    margin-left: 5px;
}

.cscj-ico-navi:before,
.cscj-ico-navi:after,
.cscj-ico-navi i {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #666;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.cscj-ico-navi:before {
    top: 0;
}

.cscj-ico-navi:after {
    bottom: 0;
}

.cscj-ico-navi i {
    top: 5px;
}

.cscj-a-glass {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.cscj-logo-img,
.cscj-logo-icon {
    max-height: 40px;
    width: auto;
    margin-right: 10px;
}

.cscj-site-title {
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 主导航菜�?*/
.cscj-site-menu {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    margin-left: 0;
}

.cscj-menu-primary {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    margin: 0 auto; /* 几何居中 */
    position: relative;
}

/* 设置导航容器为定位参�?*/
.cscj-menu-primary {
    position: relative;
}

/* 取消一级li的相对定位，避免子菜单以它为参照 */
.cscj-menu-primary > li.has-children {
    position: static;
}

.cscj-menu-primary > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.cscj-menu-primary > li > a {
    display: flex;
    align-items: center;
    padding: 0 15px;
    line-height: 72px; /* 适应内容区域高度(88px-16px padding) */
    color: #333;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cscj-menu-primary > li > a > .menu-item-main,
.cscj-menu-primary > li > a > .menu-item-main > .menu-item-label {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.cscj-menu-primary > li > a > .menu-item-main {
    gap: 8px;
}

.cscj-menu-primary > li > a > .menu-item-main > .menu-item-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    white-space: nowrap;
}

.cscj-menu-primary > li > a > .menu-item-main > .menu-item-badges > badge {
    margin-right: 0;
    transform: translateY(-1px) scale(0.86);
    transform-origin: left center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.cscj-menu-primary > li > a span {
    position: relative;
}

.cscj-menu-primary > li > a .menu-icon {
    width: auto;
    height: auto;
    margin: 0;
    font-size: 1em;
    color: currentColor;
}

.cscj-menu-primary > li > a .menu-icon .svg-icon,
.cscj-menu-primary > li > a .menu-item-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* 【2025-01-30】移除自定义active状态，复用父主题样式 */
/*
.cscj-menu-primary > li > a:hover,
.cscj-menu-primary > li.current > a {
    color: #ff6000;
}
*/

/* 优设网风格二级菜�?*/
.cscj-menu-primary .sub-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 720px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 15px;
    /* 统一居中显示 */
    left: 50%;
    transform: translate(-50%, 10px);
}

/* 暗色模式下的二级菜单 */
.dark-theme .cscj-menu-primary .sub-nav {
    background: #2a2a2a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cscj-menu-primary > li > .senior-submenu.sub-nav {
    display: block;
    width: min(1080px, calc(100vw - 48px));
    padding: 24px 28px;
    grid-template-columns: none;
    grid-gap: 0;
    border-radius: 0 0 22px 22px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.98));
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12), 0 8px 20px rgba(148, 163, 184, 0.12);
}

.dark-theme .cscj-menu-primary > li > .senior-submenu.sub-nav,
body.theme-dark .cscj-menu-primary > li > .senior-submenu.sub-nav {
    border-color: rgba(66, 79, 97, 0.9);
    background: linear-gradient(180deg, rgba(34, 42, 54, 0.98), rgba(20, 27, 37, 0.98));
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.34), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.cscj-menu-primary > li > .senior-submenu .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.cscj-menu-primary > li > .senior-submenu .graphic-card-items-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    align-items: stretch;
}

.cscj-menu-primary > li > .senior-submenu .menu-graphic-card-item,
.cscj-menu-primary > li > .senior-submenu .links-column {
    opacity: 1;
    transform: none;
}

.cscj-menu-primary > li > .senior-submenu .menu-graphic-card-item a {
    display: block;
    padding: 0;
    text-align: left;
    background: transparent;
}

.cscj-menu-primary > li > .senior-submenu .menu-graphic-card-item:hover a {
    transform: none;
}

.cscj-menu-primary > li > .senior-submenu .menu-graphic-card-item .img-box {
    width: var(--img-size, 136px);
    height: calc(var(--img-size, 136px) * var(--img-scale, 1));
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(148, 163, 184, 0.18);
}

.cscj-menu-primary > li > .senior-submenu .menu-graphic-card-item .title {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: #111827;
}

.dark-theme .cscj-menu-primary > li > .senior-submenu .menu-graphic-card-item .title,
body.theme-dark .cscj-menu-primary > li > .senior-submenu .menu-graphic-card-item .title {
    color: #f8fafc;
}

.cscj-menu-primary > li > .senior-submenu .links-columns-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px 22px;
    align-items: start;
}

.cscj-menu-primary > li > .senior-submenu .links-column {
    min-width: 0;
}

.cscj-menu-primary > li > .senior-submenu .links-column .column-title > a {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 0 10px;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-align: left;
}

.dark-theme .cscj-menu-primary > li > .senior-submenu .links-column .column-title > a,
body.theme-dark .cscj-menu-primary > li > .senior-submenu .links-column .column-title > a {
    color: #f8fafc;
}

.cscj-menu-primary > li > .senior-submenu .links-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cscj-menu-primary > li > .senior-submenu .links-items .link-item > a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.82);
    background: rgba(255, 255, 255, 0.72);
    text-align: left;
    color: #334155;
}

.cscj-menu-primary > li > .senior-submenu .links-items .link-item > a:hover {
    background: rgba(255, 255, 255, 0.96);
}

.dark-theme .cscj-menu-primary > li > .senior-submenu .links-items .link-item > a,
body.theme-dark .cscj-menu-primary > li > .senior-submenu .links-items .link-item > a {
    border-color: rgba(66, 79, 97, 0.86);
    background: rgba(34, 42, 54, 0.74);
    color: #dbe4ef;
}

.dark-theme .cscj-menu-primary > li > .senior-submenu .links-items .link-item > a:hover,
body.theme-dark .cscj-menu-primary > li > .senior-submenu .links-items .link-item > a:hover {
    background: rgba(41, 50, 63, 0.94);
}

.cscj-menu-primary > li > .senior-submenu .link-item .icon-hover-show {
    margin-left: auto;
    font-size: 12px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cscj-menu-primary > li > .senior-submenu .link-item > a:hover > .icon-hover-show {
    opacity: 1;
    transform: translateX(0);
}

/* 显示二级菜单 */
.cscj-menu-primary li:hover > .sub-nav,
.cscj-menu-primary li:focus-within > .sub-nav {
    opacity: 1;
    visibility: visible;
    /* 显示状态保持居�?*/
    transform: translate(-50%, 0);
}

/* 二级菜单�?*/
.cscj-menu-primary .sub-nav li {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

/* 二级菜单链接 */
.cscj-menu-primary .sub-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s ease;
    height: 100%;
}

/* 二级菜单链接悬停效果 */
.cscj-menu-primary .sub-nav a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.dark-theme .cscj-menu-primary .sub-nav a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* 菜单图标容器 */
.cscj-menu-primary .menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
}

.dark-theme .cscj-menu-primary .menu-icon {
    color: #eee;
}

/* SVG图标样式 */
.cscj-menu-primary .menu-icon .svg-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* 菜单标题 */
.cscj-menu-primary .sub-nav a span {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

/* 菜单描述 */
.cscj-menu-primary .menu-desc {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    line-height: 1.4;
}

.dark-theme .cscj-menu-primary .menu-desc {
    color: #aaa;
}

/* 响应式调�?*/
@media (max-width: 992px) {
    .cscj-menu-primary .sub-nav {
        width: 540px;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cscj-menu-primary .sub-nav {
        position: static;
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        box-shadow: none;
        padding: 15px;
        gap: 10px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .cscj-menu-primary li:hover > .sub-nav {
        display: grid;
    }
    
    .cscj-menu-primary .sub-nav a {
        padding: 12px 10px;
    }
    
    .cscj-menu-primary .menu-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 8px;
    }
    
    .cscj-menu-primary .sub-nav a span {
        font-size: 13px;
    }
    
    .cscj-menu-primary .menu-desc {
        font-size: 11px;
        margin-top: 3px;
        line-height: 1.3;
    }
}

/* 右侧区域 */
.cscj-header-right {
    display: flex;
    align-items: center;
    height: 100%; /* 填满容器高度 */
    flex: 0 0 auto;
    margin-right: max(0px, calc((100vw - 1200px) / 2 - 5px));
}

/* 搜索按钮 */
.cscj-header-search {
    margin-right: 15px;
}

.cscj-header-search a {
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.cscj-icon-search {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
}

.cscj-txt {
    font-style: normal;
}

/* 顶栏搜索文字，避免继承搜索卡�?input 的宽�?*/
.cscj-header-search .cscj-label {
    font-style: normal;
    width: auto;
    height: auto;
    line-height: 72px; /* 适应内容区域高度 */
    padding: 0;
    color: #666;
}

/* 登录面板 */
.cscj-login-panel {
    position: relative;
    margin-left: 14px;
    height: 100%;
    display: flex;
    align-items: center;
}

.cscj-login-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cscj-avatar-a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    text-decoration: none;
    border: 1px solid rgba(255, 96, 0, 0.12);
    border-radius: 999px;
    background: linear-gradient(135deg, #fff7f0 0%, #ffffff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.cscj-avatar-a:hover,
.cscj-login-panel:focus-within .cscj-avatar-a,
.cscj-login-panel:hover .cscj-avatar-a,
.cscj-login-panel.is-open .cscj-avatar-a {
    border-color: rgba(255, 96, 0, 0.28);
    background: linear-gradient(135deg, #fff1e7 0%, #fffaf6 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), inset 0 -10px 18px rgba(255, 96, 0, 0.08);
}

.cscj-avatar-a:focus {
    outline: none;
}

.cscj-avatar-a:focus-visible {
    border-color: rgba(255, 96, 0, 0.34);
    box-shadow: inset 0 0 0 1px rgba(255, 96, 0, 0.18), inset 0 -10px 18px rgba(255, 96, 0, 0.1);
}

.cscj-avatar-a:active {
    box-shadow: inset 0 0 0 1px rgba(255, 96, 0, 0.16), inset 0 3px 8px rgba(255, 96, 0, 0.12);
}

.cscj-avatar-a .avatar-mini,
.cscj-avatar-a .avatar,
.cscj-avatar-a img {
    border-radius: 50%;
    overflow: hidden;
}

.cscj-avatar-a .avatar-mini,
.cscj-avatar-a .avatar {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.cscj-avatar {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

.cscj-avatar-default {
    background-color: #eee;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

/* 登录下拉菜单 */
.cscj-login-down {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    margin-top: 10px;
}

.cscj-login-panel:hover .cscj-login-down,
.cscj-login-panel:focus-within .cscj-login-down,
.cscj-login-panel.is-open .cscj-login-down {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cscj-login-div {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    border: 1px solid rgba(255, 96, 0, 0.1);
}

.cscj-info {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.cscj-info-thumb {
    margin: 0 auto 10px;
    width: 60px;
    height: 60px;
}

.cscj-info-thumb .cscj-thumb {
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.92), 0 12px 24px rgba(15, 23, 42, 0.12);
}

.cscj-user-name {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.cscj-user-info {
    margin: 0 0 15px;
    font-size: 13px;
    color: #999;
    font-weight: normal;
}

.cscj-btn {
    display: inline-block;
    padding: 8px 0;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cscj-btn-orange {
    background-color: #ff6000;
    color: #fff;
}

.cscj-btn-orange:hover {
    background-color: #e55600;
}

.cscj-main {
    padding: 15px;
}

.cscj-main-menu {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.cscj-item {
    width: 33.333%;
    padding: 0 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.cscj-item-content {
    text-align: center;
}

.cscj-item-a {
    display: block;
    padding: 10px 0;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
}

a.cscj-item-a:hover {
    background-color: #ff6000;
    color: #fff;
}

.cscj-icon-heart-empty,
.cscj-icon-download,
.cscj-icon-user-add,
.cscj-icon-dashboard,
.cscj-icon-user {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 auto 5px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.cscj-icon-heart-empty {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z'/%3E%3C/svg%3E");
}

.cscj-icon-download {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
}

.cscj-icon-user-add {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.cscj-icon-dashboard {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z'/%3E%3C/svg%3E");
}

.cscj-icon-user {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

/* 搜索下拉�?*/
.cscj-dropdown-menu {
    position: absolute;
    top: 88px;
    right: 15px;
    width: 300px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

/* 移动端搜索下拉框定位调整 */
@media (max-width: 996px) {
    .cscj-dropdown-menu {
        top: 66px; /* 【统一】与导航栏高度一致 */
    }
}

.cscj-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cscj-search-form {
    position: relative;
}

.cscj-search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #eee;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.cscj-search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

/* 响应式样�?*/
@media (max-width: 1199px) {
    .cscj-site-menu {
        display: none;
    }
    
    .cscj-h-navi {
        display: flex;
        align-items: center;
        padding: 8px 10px;
        background-color: transparent;
        border-radius: 4px;
    }
    
    .cscj-h-navi:active {
        background-color: transparent;
    }
    
    /* 菜单文字在小屏幕上隐藏，只显示图�?*/
    @media (max-width: 480px) {
        .cscj-h-navi {
            font-size: 0;
            padding: 8px;
        }
        
        .cscj-ico-navi {
            margin-left: 0;
        }
    }
}

@media (max-width: 767px) {
    .cscj-site-title {
        display: none;
    }
    
    .cscj-header-btns, 
    .cscj-login-panel,
    .cscj-header-search .cscj-label {
        display: none;
    }
    
    .cscj-header-right {
        display: flex;
        align-items: center;
        gap: 10px; /* 减小间距，使按钮更紧�?*/
    }
    
    .cscj-header-search {
        order: 1; /* 搜索按钮在前 */
    }
    
    .cscj-h-navi {
        order: 2; /* 菜单按钮在后 */
        margin-left: 5px; /* 减少左边距，更紧�?*/
    }
    
    /* 优化搜索图标 */
    .cscj-header-search a {
        padding: 5px;
    }
    
    .cscj-icon-search {
        width: 20px;
        height: 20px;
        margin-right: 0;
    }
}

/* 粘性导航效�?- 仅在未启用透明效果时生�?*/
body:not(.nav-transparent-enabled) .cscj-header.sticky {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: saturate(180%) blur(12px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(12px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* 滚动透明效果 - 仅在开启时生效 */
body.nav-transparent-enabled .cscj-header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

/* 滚动时恢复不透明 */
body.nav-transparent-enabled .cscj-header.scrolled {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: saturate(180%) blur(12px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(12px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* 电脑端鼠标悬停在导航栏上时变为不透明 */
@media (min-width: 768px) {
    body.nav-transparent-enabled .cscj-header:hover {
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: saturate(180%) blur(12px) !important;
        -webkit-backdrop-filter: saturate(180%) blur(12px) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        transition: all 0.3s ease !important;
    }
}

/* 暗色模式支持 - 仅在未启用透明效果时生�?*/
@media (prefers-color-scheme: dark) {
    body.theme-dark:not(.nav-transparent-enabled) .cscj-header {
        background: rgba(34, 34, 34, 0.5) !important;
        backdrop-filter: saturate(180%) blur(12px) !important;
        -webkit-backdrop-filter: saturate(180%) blur(12px) !important;
        box-shadow: none !important;
    }
    body.theme-dark:not(.nav-transparent-enabled) .cscj-header.sticky {
        background: rgba(34, 34, 34, 0.8) !important;
        backdrop-filter: saturate(180%) blur(12px) !important;
        -webkit-backdrop-filter: saturate(180%) blur(12px) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }

    /* 暗色模式下的滚动透明效果 */
    body.theme-dark.nav-transparent-enabled .cscj-header {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }

    body.theme-dark.nav-transparent-enabled .cscj-header.scrolled {
        background: rgba(34, 34, 34, 0.9) !important;
        backdrop-filter: saturate(180%) blur(12px) !important;
        -webkit-backdrop-filter: saturate(180%) blur(12px) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }

    /* 暗色模式下电脑端鼠标悬停在导航栏上时变为不透明 */
    @media (min-width: 768px) {
        body.theme-dark.nav-transparent-enabled .cscj-header:hover {
            background: rgba(34, 34, 34, 0.9) !important;
            backdrop-filter: saturate(180%) blur(12px) !important;
            -webkit-backdrop-filter: saturate(180%) blur(12px) !important;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
            transition: all 0.3s ease !important;
        }
    }
    
    body.theme-dark .cscj-menu-primary > li > a {
        color: #eee;
    }
    
    /* 【2025-01-30】移除暗色主题自定义active状态，复用父主题样式 */
    /*
    body.theme-dark .cscj-menu-primary > li > a:hover,
    body.theme-dark .cscj-menu-primary > li.current > a {
        color: #ff6000;
    }
    */
    
    body.theme-dark .cscj-site-title {
        color: #eee;
    }
    
    body.theme-dark .cscj-header-search a,
    body.theme-dark .cscj-h-navi {
        color: #ccc;
    }
    
    body.theme-dark .cscj-ico-navi:before,
    body.theme-dark .cscj-ico-navi:after,
    body.theme-dark .cscj-ico-navi i {
        background: #ccc;
    }
    
    /* 暗色模式下的搜索按钮和菜单按�?*/
    body.theme-dark .cscj-h-navi:active {
        background-color: transparent;
    }
    
    body.theme-dark .cscj-header-search a:active {
        background-color: transparent;
        border-radius: 4px;
    }

    body.theme-dark .cscj-avatar-a {
        background: linear-gradient(135deg, #313944 0%, #1f252d 100%);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    body.theme-dark .cscj-avatar-a:hover,
    body.theme-dark .cscj-login-panel:focus-within .cscj-avatar-a,
    body.theme-dark .cscj-login-panel:hover .cscj-avatar-a,
    body.theme-dark .cscj-login-panel.is-open .cscj-avatar-a {
        background: linear-gradient(135deg, #3b2f28 0%, #2c2622 100%);
        border-color: rgba(255, 176, 117, 0.28);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -12px 20px rgba(255, 176, 117, 0.08);
    }

    body.theme-dark .cscj-avatar-a:focus-visible {
        box-shadow: inset 0 0 0 1px rgba(255, 176, 117, 0.2), inset 0 -12px 20px rgba(255, 176, 117, 0.08);
    }

    body.theme-dark .cscj-avatar-a .avatar-mini,
    body.theme-dark .cscj-avatar-a .avatar {
        box-shadow: 0 0 0 2px rgba(27, 33, 40, 0.92);
    }

    body.theme-dark .cscj-login-div {
        background: #232933;
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
    }
}

/* 调整顶部导航栏小头像尺寸，覆盖父主题 */
.cscj-header .avatar-mini {
    --this-size: 32px;
} 

/* 顶部导航投稿/VIP按钮 - 完全隐藏 */
.cscj-header-btns {
    display: none !important; /* 完全隐藏整个按钮容器 */
}

/* 让搜索按钮始终位于最上层避免被VIP遮挡 */
.cscj-header-search{
    position:relative;
    z-index:120;
}

/* ===== 重构导航右侧布局 ===== */
.cscj-header-right{
    display:flex;
    align-items:center;
    gap:14px;
}

.cscj-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    height:36px;
    line-height:36px;
    padding:0 16px;
    border-radius:18px;
    font-size:14px;
    color:#fff;
    text-decoration:none;
    transition:opacity .2s;
}
.cscj-btn:hover{opacity:.85;}

.cscj-btn-tougao{background:#ff6000;}
.cscj-btn-vip{background:#ffb400;}

/* 调整搜索按钮文本对齐 */
.cscj-header-search a{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:15px;
    color:#666;
}
.cscj-header-search .cscj-label{line-height:72px;} /* 适应内容区域高度 */

/* 移动端搜索标签line-height调整 */
@media (max-width: 996px) {
    .cscj-header-search .cscj-label{
        line-height: 66px; /* 【统一】与移动端总高度一致 */
    }
}

/* 去除父主�?payvip-icon 负边距与头像 */
.cscj-header-btns .cscj-btn-vip{
    margin-left:0!important;
    position:relative;
}
.cscj-header-btns .cscj-btn-vip .avatar-mini,
.cscj-header-btns .cscj-btn-vip img,
.cscj-header-btns .cscj-btn-vip svg,
.cscj-header-btns .cscj-btn-vip icon{
    display:none!important;
} 

/* ===== 新版导航按钮 (透明背景) ===== */
.cscj-header-btns .cscj-link{
    display:flex;
    align-items:center;
    padding:0 10px;
    color:#666;
    font-size:14px;
    text-decoration:none;
    background:none!important;
    border:none;
}
.cscj-header-btns .cscj-link + .cscj-link{margin-left:10px;}
.cscj-link-tougao{color:#ff6000;background:none!important;}
.cscj-link-vip{color:#d81e06;background:none!important;}
.cscj-link:hover{opacity:.8;}
/* 隐藏父主题注入的vip头像/icon */
.cscj-header-btns .cscj-link-vip .avatar-mini,
.cscj-header-btns .cscj-link-vip img,
.cscj-header-btns .cscj-link-vip svg,
.cscj-header-btns .cscj-link-vip icon{display:none!important;} 

/* 锁定页面滚动（html、body 双节点） */
html.cscj-scroll-lock,body.cscj-scroll-lock{overflow:hidden!important;}
body.cscj-scroll-lock{position:fixed;width:100%;}

/* ===== 搜索按钮样式 ===== */
.cscj-header-search {
    position: relative;
    display: flex !important;
    align-items: center;
    height: 100%;
}

.search-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 96, 0, 0.14);
    background: linear-gradient(135deg, #fff7f0 0%, #ffffff 100%);
    color: #4d5662;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    gap: 6px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.search-trigger-btn:hover {
    background: linear-gradient(135deg, #fff1e7 0%, #fffaf6 100%);
    border-color: rgba(255, 96, 0, 0.28);
    color: #ff6000;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -10px 18px rgba(255, 96, 0, 0.06);
}

.search-trigger-btn:focus {
    outline: none;
}

.search-trigger-btn:focus-visible {
    border-color: rgba(255, 96, 0, 0.32);
    box-shadow: inset 0 0 0 1px rgba(255, 96, 0, 0.18), inset 0 -10px 18px rgba(255, 96, 0, 0.08);
    color: #ff6000;
}

.search-trigger-btn.is-active {
    background: linear-gradient(135deg, #ffe7d2 0%, #fff5ec 100%);
    border-color: rgba(255, 96, 0, 0.34);
    color: #ff6000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -12px 20px rgba(255, 96, 0, 0.1);
}

.search-trigger-btn:active {
    box-shadow: inset 0 0 0 1px rgba(255, 96, 0, 0.18), inset 0 3px 8px rgba(255, 96, 0, 0.12);
}

.search-trigger-btn i {
    font-size: 15px;
}

.search-trigger-btn .cscj-label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.cscj-login-panel ul,
.cscj-login-panel li {
    display: flex;
    align-items: center;
    height: 100%;
}

body.theme-dark .search-trigger-btn {
    background: linear-gradient(135deg, #313944 0%, #1f252d 100%);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f3f4f6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-dark .search-trigger-btn:hover,
body.theme-dark .search-trigger-btn.is-active {
    background: linear-gradient(135deg, #3b2f28 0%, #2c2622 100%);
    border-color: rgba(255, 176, 117, 0.28);
    color: #ffbf8d;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -12px 20px rgba(255, 176, 117, 0.08);
}

body.theme-dark .search-trigger-btn:focus-visible {
    box-shadow: inset 0 0 0 1px rgba(255, 176, 117, 0.22), inset 0 -12px 20px rgba(255, 176, 117, 0.08);
}

/* 移动端隐藏搜索文字标签 */
@media (max-width: 767px) {
    .search-trigger-btn .cscj-label {
        display: none;
    }

    .search-trigger-btn {
        height: 36px;
        min-height: 36px;
        min-width: 40px;
        padding: 0 12px;
        justify-content: center;
    }
}

/* ===== 顶部导航图标统一收口 ===== */
.cscj-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cscj-header-search {
    margin-right: 0;
    position: relative;
    display: flex !important;
    align-items: center;
    height: 100%;
    flex: 0 0 auto;
}

.cscj-login-panel {
    margin-left: 2px;
}

.cscj-icon-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    color: #4d5662;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.cscj-icon-action:hover {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 96, 0, 0.22);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    color: #111827;
    text-decoration: none;
    transform: translateY(-1px);
}

.cscj-icon-action:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.cscj-icon-action:focus {
    outline: none;
}

.cscj-icon-action:focus-visible {
    border-color: rgba(255, 96, 0, 0.34);
    box-shadow: 0 0 0 3px rgba(255, 96, 0, 0.14), 0 12px 28px rgba(15, 23, 42, 0.1);
    color: #ff6000;
}

.search-trigger-btn {
    gap: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.search-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 96, 0, 0.22);
    color: #111827;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.search-trigger-btn.is-active {
    background: rgba(255, 247, 240, 0.96);
    border-color: rgba(255, 96, 0, 0.28);
    color: #ff6000;
    box-shadow: 0 12px 28px rgba(255, 96, 0, 0.12);
}

.search-trigger-btn i {
    font-size: 18px;
    line-height: 1;
}

.search-trigger-btn .cscj-label {
    display: none;
}

.cscj-header-right .cxzzt-header-translate {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    flex: 0 0 auto;
}

.cscj-header-right .cxzzt-header-translate > .toggle-radius {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    color: #4d5662;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
}

.cscj-header-right .cxzzt-header-translate > .toggle-radius:hover,
.cscj-header-right .cxzzt-header-translate:focus-within > .toggle-radius {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 96, 0, 0.22);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    color: #111827;
    text-decoration: none;
    transform: translateY(-1px);
}

.cscj-header-right .cxzzt-header-translate > .toggle-radius svg {
    width: 18px;
    height: 18px;
}

.cscj-header-right .cxzzt-header-translate .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: auto !important;
    left: 50% !important;
    z-index: 1002;
    display: block;
    min-width: 156px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px) !important;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.cscj-header-right .cxzzt-header-translate .dropdown-menu::before,
.cscj-header-right .cxzzt-header-translate .dropdown-menu::after {
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) rotate(45deg) !important;
}

.cscj-header-right .cxzzt-header-translate:hover .dropdown-menu,
.cscj-header-right .cxzzt-header-translate:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) !important;
    pointer-events: auto;
}

.cscj-header-right .cxzzt-header-translate .dropdown-menu li {
    margin: 0;
}

.cscj-header-right .cxzzt-header-translate .dropdown-menu li + li {
    margin-top: 4px;
}

.cscj-header-right .cxzzt-header-translate .translate-button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    color: #4d5662;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.cscj-header-right .cxzzt-header-translate .translate-button:hover,
.cscj-header-right .cxzzt-header-translate .translate-button.active {
    background: rgba(255, 96, 0, 0.10);
    color: #ff6000;
}

.cscj-header-right .cxzzt-header-translate .translate-button svg,
.cscj-header-right .cxzzt-header-translate .translate-button i {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-right: 0 !important;
    font-size: 14px;
}

.cscj-header-right .cxzzt-header-translate .translate-button svg {
    display: block;
}

.cscj-h-navi {
    display: none;
    margin-left: 0;
    padding: 0;
    font-size: 0;
    color: #4d5662;
}

.cscj-ico-navi {
    display: inline-block;
    width: 18px;
    height: 14px;
    margin: 0;
    position: relative;
    color: currentColor;
}

.cscj-ico-navi::before,
.cscj-ico-navi::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.cscj-ico-navi::before {
    top: 0;
    box-shadow: 0 6px 0 currentColor;
}

.cscj-ico-navi::after {
    bottom: 0;
}

body.theme-dark .cscj-icon-action {
    background: rgba(31, 37, 45, 0.82);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    color: #eef2f7;
}

body.theme-dark .cscj-header-right .cxzzt-header-translate > .toggle-radius,
body.dark-theme .cscj-header-right .cxzzt-header-translate > .toggle-radius {
    background: rgba(31, 37, 45, 0.82);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    color: #eef2f7;
}

body.theme-dark .cscj-icon-action:hover,
body.theme-dark .search-trigger-btn.is-active,
body.theme-dark .cscj-header-right .cxzzt-header-translate > .toggle-radius:hover,
body.theme-dark .cscj-header-right .cxzzt-header-translate:focus-within > .toggle-radius,
body.dark-theme .cscj-header-right .cxzzt-header-translate > .toggle-radius:hover,
body.dark-theme .cscj-header-right .cxzzt-header-translate:focus-within > .toggle-radius {
    background: rgba(45, 33, 25, 0.92);
    border-color: rgba(255, 176, 117, 0.28);
    color: #ffbf8d;
}

body.theme-dark .cscj-header-right .cxzzt-header-translate .dropdown-menu,
body.dark-theme .cscj-header-right .cxzzt-header-translate .dropdown-menu {
    background: rgba(24, 29, 36, 0.96);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

body.theme-dark .cscj-header-right .cxzzt-header-translate .translate-button,
body.dark-theme .cscj-header-right .cxzzt-header-translate .translate-button {
    color: #eef2f7;
}

body.theme-dark .cscj-header-right .cxzzt-header-translate .translate-button:hover,
body.theme-dark .cscj-header-right .cxzzt-header-translate .translate-button.active,
body.dark-theme .cscj-header-right .cxzzt-header-translate .translate-button:hover,
body.dark-theme .cscj-header-right .cxzzt-header-translate .translate-button.active {
    background: rgba(255, 176, 117, 0.14);
    color: #ffbf8d;
}

body.theme-dark .cscj-icon-action:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 176, 117, 0.16), 0 12px 28px rgba(0, 0, 0, 0.3);
    color: #ffbf8d;
}

@media (max-width: 1199px) {
    .cscj-h-navi {
        display: inline-flex !important;
    }
}

@media (max-width: 767px) {
    .cscj-header-right {
        gap: 8px;
    }

    .cscj-icon-action,
    .search-trigger-btn {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
        border-radius: 12px;
    }

    .search-trigger-btn {
        padding: 0;
    }

    .search-trigger-btn i {
        font-size: 17px;
    }
}

@media (max-width: 991px) {
    .cscj-header-right .cxzzt-header-translate {
        display: none;
    }
}















/* ===== Search Tag Enhancements ===== */
/* 修改关键词标签悬停效�?*/
.cscj-search-tags a:hover{
    /* 替换渐变背景为纯色背�?*/
    background-color: hsl(calc(28 - 28*var(--age)), calc(100% - 100%*var(--age)), calc(95% - 10%*var(--age)));
    /* 移除阴影 */
    box-shadow: none;
}
.cscj-search-tags a:active{transform:scale(.97);}
.cscj-search-tags a.red-light:hover{
    background-color: #ff7020;
}

@media (prefers-color-scheme: dark){
  body.theme-dark .cscj-search-tags a{
    /* 替换渐变背景为纯色背�?*/
    background-color: hsl(calc(28 - 28*var(--age)), calc(70% - 70%*var(--age)), calc(35% - 10%*var(--age)));
    color: hsl(0, 0%, calc(90% - 15%*var(--age)));
  }
  
  body.theme-dark .cscj-search-tags a.red-light{
    background-color: #ff6000;
    color: #fff;
  }
  
  body.theme-dark .cscj-search-tags a:hover{
    /* 替换渐变背景为纯色背�?*/
    background-color: hsl(calc(28 - 28*var(--age)), calc(70% - 70%*var(--age)), calc(40% - 10%*var(--age)));
  }
  
  body.theme-dark .search-keywords-container a {
    /* 替换渐变背景为纯色背�?*/
    background-color: hsl(calc(28 - 28*var(--age)), calc(70% - 70%*var(--age)), calc(35% - 10%*var(--age)));
    color: hsl(0, 0%, calc(90% - 15%*var(--age)));
  }
  
  body.theme-dark .search-keywords-container a:hover {
    /* 替换渐变背景为纯色背�?*/
    background-color: hsl(calc(28 - 28*var(--age)), calc(70% - 70%*var(--age)), calc(40% - 10%*var(--age)));
  }
}



/* 确保search-keywords-container内的链接应用纯色背景样式 */
.search-keywords-container a {
    --age: 0; /* 默认值：0=最�?橙色)�?=最�?灰色) */
    padding: 5px 14px;
    border-radius: 4px;
    /* 替换渐变背景为纯色背�?*/
    background-color: hsl(calc(28 - 28*var(--age)), calc(100% - 100%*var(--age)), calc(90% - 10%*var(--age)));
    font-size: 14px;
    /* 文字颜色也随着背景变化 */
    color: hsl(calc(28 - 28*var(--age)), calc(30% - 30%*var(--age)), calc(20% + 15%*var(--age)));
    text-decoration: none;
    /* 移除阴影 */
    box-shadow: none;
    transition: all .2s ease;
}

.search-keywords-container a:hover {
    /* 替换渐变背景为纯色背�?*/
    background-color: hsl(calc(28 - 28*var(--age)), calc(100% - 100%*var(--age)), calc(95% - 10%*var(--age)));
    /* 移除阴影 */
    box-shadow: none;
}

.search-keywords-container a:active {
    transform: scale(.97);
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark){
  body.theme-dark .search-keywords-container a {
    background: linear-gradient(180deg, 
        hsl(calc(28 - 28*var(--age)), calc(70% - 70%*var(--age)), calc(40% - 10%*var(--age))) 0%, 
        hsl(calc(28 - 28*var(--age)), calc(70% - 70%*var(--age)), calc(30% - 10%*var(--age))) 100%);
    color: hsl(0, 0%, calc(90% - 15%*var(--age)));
  }
  body.theme-dark .search-keywords-container a:hover {
    background: linear-gradient(180deg, 
        hsl(calc(28 - 28*var(--age)), calc(70% - 70%*var(--age)), calc(45% - 10%*var(--age))) 0%, 
        hsl(calc(28 - 28*var(--age)), calc(70% - 70%*var(--age)), calc(35% - 10%*var(--age))) 100%);
  }
}

/* 增加超小屏幕适配 */
@media (max-width: 375px) {
    .cscj-menu-primary .sub-nav {
        grid-template-columns: 1fr;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .cscj-container {
        padding: 0 10px; /* 减少内边距，提供更多空间 */
    }

    .cscj-logo .cscj-a-glass img {
        max-height: 35px; /* 稍微减小logo尺寸 */
    }
}

/* 菜单模式切换按钮 */
.menu-mode-switch {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 8px 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: sticky; /* 使按钮固定在顶部 */
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.menu-mode-switch .mode-switch-title {
    margin-right: auto;
    color: #7a8699;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

.menu-mode-switch .switch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 76px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background-color: #fff;
    color: #666;
    border: 1px solid #eee;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    position: relative;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    line-height: 1;
    touch-action: manipulation;
}

.menu-mode-switch .switch-icon {
    font-size: 14px;
    line-height: 1;
}

.menu-mode-switch .switch-text {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.menu-mode-switch .switch-btn:after {
    content: attr(title);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #999;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
}

.menu-mode-switch .switch-btn:hover:after {
    opacity: 1;
}

.menu-mode-switch .switch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menu-mode-switch .switch-btn.active {
    background-color: #ff6000;
    color: #fff;
    border-color: #ff6000;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255,96,0,0.3);
}

.cscj-theme-toggle-proxy {
    display: none !important;
}

.cscj-user-mode-switch {
    position: static;
    top: auto;
    z-index: auto;
    justify-content: flex-start;
    padding: 10px 18px 0;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
}

.cscj-user-mode-switch .mode-switch-title {
    margin-right: 4px;
}

.cscj-user-mode-switch .switch-btn {
    min-width: 70px;
    height: 32px;
    padding: 0 10px;
}

.cscj-user-mode-switch .switch-btn:after {
    display: none;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body.theme-dark .menu-mode-switch {
        background-color: #222;
        border-bottom-color: rgba(255,255,255,0.05);
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }

    body.theme-dark .menu-mode-switch .switch-btn {
        background-color: #333;
        color: #ccc;
        border-color: #444;
    }

    body.theme-dark .menu-mode-switch .switch-btn:after {
        color: #777;
    }

    body.theme-dark .menu-mode-switch .switch-btn.active {
        background-color: #ff6000;
        color: #fff;
        border-color: #ff6000;
        box-shadow: 0 2px 8px rgba(255,96,0,0.2);
    }
}

body.theme-dark .menu-mode-switch .mode-switch-title,
body.dark-theme .menu-mode-switch .mode-switch-title {
    color: #95a2b4;
}

body.theme-dark .cscj-user-mode-switch,
body.dark-theme .cscj-user-mode-switch {
    background: transparent;
    box-shadow: none;
}

@media (max-width: 480px) {
    .menu-mode-switch {
        padding: 10px 12px;
    }

    .menu-mode-switch .mode-switch-title {
        width: 100%;
        margin-right: 0;
    }

    .menu-mode-switch .switch-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    .cscj-user-mode-switch .mode-switch-title {
        width: auto;
    }
}

/* 2026-03-26 用户卡片改为平直导航风格 */
.cscj-login-down {
    width: 336px;
    margin-top: 8px;
}

.cscj-login-div {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.cscj-info {
    padding: 24px 24px 20px;
    background: #ffffff;
    border-bottom: none;
}

.cscj-info-thumb {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    padding: 5px;
    border: 1px solid #eceff3;
    border-radius: 0;
    background: #f8fafc;
}

.cscj-info-thumb .cscj-thumb,
.cscj-info-thumb .avatar,
.cscj-info-thumb img {
    box-shadow: none;
}

.cscj-user-name {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 700;
    color: #2f3541;
}

.cscj-user-info {
    margin-bottom: 18px;
    font-size: 14px;
    color: #8a94a6;
}

.cscj-login-div .cscj-btn,
.cscj-login-div .cscj-info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 0;
    box-shadow: none;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.cscj-login-div .cscj-btn-orange {
    background: #ff6a1a;
    color: #ffffff;
}

.cscj-login-div .cscj-btn-orange:hover {
    background: #f15c0a;
}

.cscj-main {
    padding: 0;
    background: #ffffff;
}

.cscj-main-menu {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: none;
}

.cscj-item {
    width: auto;
    padding: 0;
    margin: 0;
}

.cscj-item-content {
    height: 100%;
}

.cscj-item-a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 84px;
    padding: 14px 10px;
    border-right: 1px solid #eceff3;
    border-radius: 0;
    color: #667085;
    background: #ffffff;
}

.cscj-item:last-child .cscj-item-a {
    border-right: none;
}

a.cscj-item-a:hover {
    background: #fff4ec;
    color: #ff6a1a;
}

.cscj-icon-heart-empty,
.cscj-icon-download,
.cscj-icon-user-add,
.cscj-icon-dashboard,
.cscj-icon-user {
    margin: 0;
}

body.theme-dark .cscj-login-div {
    background: #1f2329;
    border-color: #323844;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

body.theme-dark .cscj-info {
    background: #1f2329;
    border-bottom: none;
}

body.theme-dark .cscj-info-thumb {
    background: #171b21;
    border-color: #323844;
}

body.theme-dark .cscj-user-name {
    color: #f3f4f6;
}

body.theme-dark .cscj-user-info {
    color: #9aa4b2;
}

body.theme-dark .cscj-main {
    background: #1f2329;
}

body.theme-dark .cscj-main-menu {
    border-top: none;
}

body.theme-dark .cscj-item-a {
    background: #1f2329;
    border-right-color: #323844;
    color: #c7ced9;
}

body.theme-dark a.cscj-item-a:hover {
    background: rgba(255, 106, 26, 0.12);
    color: #ffb182;
}

/* 2026-03-26 收掉登录卡片底部格子感，改成轻量工具栏 */
.cscj-main {
    padding: 12px 14px 14px;
    background: #ffffff;
}

.cscj-main-menu {
    gap: 8px;
    padding-top: 12px;
}

.cscj-item-a {
    min-height: 72px;
    padding: 12px 8px;
    border-right: none;
    border: none;
    background: transparent;
}

a.cscj-item-a:hover {
    background: #fff7f1;
    color: #ff6a1a;
}

body.theme-dark .cscj-main {
    background: #1f2329;
}

body.theme-dark .cscj-item-a {
    background: transparent;
    border: none;
}

body.theme-dark a.cscj-item-a:hover {
    background: rgba(255, 106, 26, 0.08);
    color: #ffb182;
}

/* 2026-03-28 用户下拉卡片紧凑化 */
.cscj-login-down {
    width: 312px;
    margin-top: 6px;
}

.cscj-login-div {
    border-radius: 18px;
    border-color: rgba(255, 106, 26, 0.1);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.cscj-info {
    padding: 18px 18px 14px;
    background:
        linear-gradient(180deg, rgba(255, 248, 242, 0.94) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-bottom: 1px solid rgba(231, 236, 243, 0.92);
}

.cscj-info-thumb {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    padding: 3px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    background: rgba(255, 255, 255, 0.98);
}

.cscj-info-thumb .cscj-thumb,
.cscj-info-thumb .avatar,
.cscj-info-thumb img {
    border-radius: 50%;
}

.cscj-user-name {
    margin-bottom: 2px;
    font-size: 15px;
    line-height: 1.3;
}

.cscj-user-info {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.45;
}

.cscj-login-div .cscj-btn,
.cscj-login-div .cscj-info-btn {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 13px;
    letter-spacing: 0;
}

.cscj-main {
    padding: 12px;
}

.cscj-main-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 0;
}

.cscj-item-a {
    min-height: 54px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #4b5563;
}

a.cscj-item-a:hover {
    background: #fff1e7;
    color: #ff6a1a;
}

.cscj-icon-heart-empty,
.cscj-icon-download,
.cscj-icon-user-add,
.cscj-icon-dashboard,
.cscj-icon-user {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
}

body.theme-dark .cscj-login-div {
    border-color: rgba(255, 176, 117, 0.1);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

body.theme-dark .cscj-info {
    background: linear-gradient(180deg, rgba(43, 35, 30, 0.88) 0%, #1f2329 100%);
    border-bottom-color: #323844;
}

body.theme-dark .cscj-info-thumb {
    background: #171b21;
    border-color: #323844;
}

body.theme-dark .cscj-main {
    background: #1f2329;
}

body.theme-dark .cscj-item-a {
    background: #262b33;
    color: #d3d9e3;
}

body.theme-dark a.cscj-item-a:hover {
    background: rgba(255, 106, 26, 0.16);
    color: #ffb182;
}

/* 2026-03-28 导航重新接回父主题容器宽度体系 */
.cscj-header {
    padding: 8px 0;
}

.cscj-container.container {
    width: auto;
    max-width: var(--mian-max-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.cscj-logo {
    margin-left: 0;
}

.cscj-header-right {
    margin-right: 0;
}

@media (max-width: 996px) {
    .cscj-header {
        padding: 0;
    }

    .cscj-container.container {
        padding-right: 8px;
        padding-left: 8px;
    }
}

@media (max-width: 360px) {
    .cscj-container.container {
        padding-right: 8px;
        padding-left: 8px;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .cscj-header {
        padding: 6px 0;
    }

    .cscj-container.container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .cscj-logo .cscj-a-glass img {
        max-height: 32px;
        margin-right: 8px;
    }

    .cscj-site-title {
        font-size: 16px;
    }

    .cscj-menu-primary > li > a {
        padding: 0 11px;
        font-size: 14px;
    }

    .cscj-header-search {
        margin-right: 10px;
    }

    .cscj-header-search a {
        font-size: 13px;
    }

    .cscj-login-panel {
        margin-left: 10px;
    }
}

/* 2026-03-28 导航文字状态收口：透明态白字，不透明态黑字，并补回当前菜单激活态 */
@media (min-width: 992px) {
    :root {
        --cscj-nav-text-color: #333;
        --cscj-nav-text-hover-color: #111827;
        --cscj-nav-text-active-color: #ff6000;
        --cscj-nav-underline-color: #ff6000;
        --cscj-nav-transparent-text-color: rgba(255, 255, 255, 0.94);
        --cscj-nav-transparent-text-hover-color: #fff;
        --cscj-nav-transparent-text-active-color: var(--cscj-nav-transparent-text-hover-color);
        --cscj-nav-transparent-underline-color: rgba(255, 255, 255, 0.96);
    }

    .cscj-menu-primary > li > a {
        position: relative;
        font-weight: 500;
        border-radius: 10px;
        background: transparent;
        transition: color 0.25s ease, text-shadow 0.25s ease;
    }

    .cscj-menu-primary > li > a > .menu-item-main {
        max-width: 100%;
    }

    .cscj-menu-primary > li > a > .menu-item-main > .menu-item-label {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cscj-menu-primary > li > a::after {
        content: "";
        position: absolute;
        left: 15px;
        right: 15px;
        bottom: 14px;
        height: 2px;
        border-radius: 999px;
        background-color: var(--cscj-nav-underline-color, #ff6000);
        opacity: 0;
        transform: scaleX(0.45);
        transform-origin: center;
        transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
    }

    body:not(.nav-transparent-enabled) .cscj-menu-primary > li > a,
    body.nav-transparent-enabled .cscj-header.scrolled .cscj-menu-primary > li > a,
    body.nav-transparent-enabled .cscj-header:hover .cscj-menu-primary > li > a {
        color: var(--cscj-nav-text-color);
        text-shadow: none;
    }

    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li > a {
        color: var(--cscj-nav-transparent-text-color);
        text-shadow: 0 1px 2px rgba(15, 23, 42, 0.32);
    }

    body:not(.nav-transparent-enabled) .cscj-menu-primary > li > a:hover,
    body.nav-transparent-enabled .cscj-header.scrolled .cscj-menu-primary > li > a:hover,
    body.nav-transparent-enabled .cscj-header:hover .cscj-menu-primary > li > a:hover {
        color: var(--cscj-nav-text-hover-color);
    }

    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li > a:hover {
        color: var(--cscj-nav-transparent-text-hover-color);
    }

    .cscj-menu-primary > li.current > a,
    .cscj-menu-primary > li.current-menu-item > a,
    .cscj-menu-primary > li.current-menu-parent > a,
    .cscj-menu-primary > li.current-menu-ancestor > a,
    .cscj-menu-primary > li.current_page_item > a,
    .cscj-menu-primary > li.current_page_parent > a {
        font-weight: 600;
    }

    body:not(.nav-transparent-enabled) .cscj-menu-primary > li.current > a,
    body:not(.nav-transparent-enabled) .cscj-menu-primary > li.current-menu-item > a,
    body:not(.nav-transparent-enabled) .cscj-menu-primary > li.current-menu-parent > a,
    body:not(.nav-transparent-enabled) .cscj-menu-primary > li.current-menu-ancestor > a,
    body:not(.nav-transparent-enabled) .cscj-menu-primary > li.current_page_item > a,
    body:not(.nav-transparent-enabled) .cscj-menu-primary > li.current_page_parent > a,
    body.nav-transparent-enabled .cscj-header.scrolled .cscj-menu-primary > li.current > a,
    body.nav-transparent-enabled .cscj-header.scrolled .cscj-menu-primary > li.current-menu-item > a,
    body.nav-transparent-enabled .cscj-header.scrolled .cscj-menu-primary > li.current-menu-parent > a,
    body.nav-transparent-enabled .cscj-header.scrolled .cscj-menu-primary > li.current-menu-ancestor > a,
    body.nav-transparent-enabled .cscj-header.scrolled .cscj-menu-primary > li.current_page_item > a,
    body.nav-transparent-enabled .cscj-header.scrolled .cscj-menu-primary > li.current_page_parent > a,
    body.nav-transparent-enabled .cscj-header:hover .cscj-menu-primary > li.current > a,
    body.nav-transparent-enabled .cscj-header:hover .cscj-menu-primary > li.current-menu-item > a,
    body.nav-transparent-enabled .cscj-header:hover .cscj-menu-primary > li.current-menu-parent > a,
    body.nav-transparent-enabled .cscj-header:hover .cscj-menu-primary > li.current-menu-ancestor > a,
    body.nav-transparent-enabled .cscj-header:hover .cscj-menu-primary > li.current_page_item > a,
    body.nav-transparent-enabled .cscj-header:hover .cscj-menu-primary > li.current_page_parent > a {
        color: var(--cscj-nav-text-active-color);
    }

    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li.current > a,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li.current-menu-item > a,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li.current-menu-parent > a,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li.current-menu-ancestor > a,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li.current_page_item > a,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li.current_page_parent > a {
        color: var(--cscj-nav-transparent-text-active-color);
    }

    .cscj-menu-primary > li > a:hover::after,
    .cscj-menu-primary > li.current > a::after,
    .cscj-menu-primary > li.current-menu-item > a::after,
    .cscj-menu-primary > li.current-menu-parent > a::after,
    .cscj-menu-primary > li.current-menu-ancestor > a::after,
    .cscj-menu-primary > li.current_page_item > a::after,
    .cscj-menu-primary > li.current_page_parent > a::after {
        opacity: 1;
        transform: scaleX(1);
    }

    body:not(.nav-transparent-enabled) .cscj-menu-primary > li.current > a::after,
    body:not(.nav-transparent-enabled) .cscj-menu-primary > li.current-menu-item > a::after,
    body:not(.nav-transparent-enabled) .cscj-menu-primary > li.current-menu-parent > a::after,
    body:not(.nav-transparent-enabled) .cscj-menu-primary > li.current-menu-ancestor > a::after,
    body:not(.nav-transparent-enabled) .cscj-menu-primary > li.current_page_item > a::after,
    body:not(.nav-transparent-enabled) .cscj-menu-primary > li.current_page_parent > a::after,
    body.nav-transparent-enabled .cscj-header.scrolled .cscj-menu-primary > li.current > a::after,
    body.nav-transparent-enabled .cscj-header.scrolled .cscj-menu-primary > li.current-menu-item > a::after,
    body.nav-transparent-enabled .cscj-header.scrolled .cscj-menu-primary > li.current-menu-parent > a::after,
    body.nav-transparent-enabled .cscj-header.scrolled .cscj-menu-primary > li.current-menu-ancestor > a::after,
    body.nav-transparent-enabled .cscj-header.scrolled .cscj-menu-primary > li.current_page_item > a::after,
    body.nav-transparent-enabled .cscj-header.scrolled .cscj-menu-primary > li.current_page_parent > a::after,
    body.nav-transparent-enabled .cscj-header:hover .cscj-menu-primary > li.current > a::after,
    body.nav-transparent-enabled .cscj-header:hover .cscj-menu-primary > li.current-menu-item > a::after,
    body.nav-transparent-enabled .cscj-header:hover .cscj-menu-primary > li.current-menu-parent > a::after,
    body.nav-transparent-enabled .cscj-header:hover .cscj-menu-primary > li.current-menu-ancestor > a::after,
    body.nav-transparent-enabled .cscj-header:hover .cscj-menu-primary > li.current_page_item > a::after,
    body.nav-transparent-enabled .cscj-header:hover .cscj-menu-primary > li.current_page_parent > a::after {
        background-color: var(--cscj-nav-underline-color);
    }

    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li > a:hover::after,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li.current > a::after,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li.current-menu-item > a::after,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li.current-menu-parent > a::after,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li.current-menu-ancestor > a::after,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li.current_page_item > a::after,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li.current_page_parent > a::after {
        background-color: var(--cscj-nav-transparent-underline-color);
    }

    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-icon-action,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .search-trigger-btn,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-avatar-a,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cxzzt-header-translate > .toggle-radius {
        color: #fff;
        border-color: rgba(255, 255, 255, 0.22);
        background: rgba(15, 23, 42, 0.16);
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    }

    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-icon-action:hover,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .search-trigger-btn:hover,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-avatar-a:hover,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-login-panel:focus-within .cscj-avatar-a,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-login-panel.is-open .cscj-avatar-a,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cxzzt-header-translate > .toggle-radius:hover,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cxzzt-header-translate:focus-within > .toggle-radius {
        color: #fff;
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.18);
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .cscj-menu-primary > li > a::after {
        left: 11px;
        right: 11px;
        bottom: 16px;
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .cscj-header {
        padding: 0;
    }

    .cscj-container.container {
        width: 100%;
        max-width: none;
        padding-right: 20px;
        padding-left: 20px;
        position: relative;
    }

    .cscj-logo {
        position: relative;
        z-index: 2;
    }

    .cscj-logo .cscj-a-glass img {
        max-height: 34px;
        margin-right: 0;
    }

    .cscj-header-right {
        margin-left: auto;
        gap: 10px;
        z-index: 2;
    }

    .cscj-header-search {
        margin-right: 0;
    }

    .cscj-login-panel {
        margin-left: 0;
    }

    .cscj-header-search,
    .cscj-header-message,
    .cxzzt-header-translate,
    .cscj-login-panel {
        position: relative;
        z-index: 3;
    }

    .cscj-h-navi {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 0;
        min-width: 42px;
        height: 42px;
        margin-left: 0;
        padding: 0;
        border-radius: 14px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        background: rgba(255, 255, 255, 0.84);
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
        color: #4d5662;
        font-size: 0;
        font-weight: 400;
        line-height: 1;
        backdrop-filter: saturate(180%) blur(10px);
        -webkit-backdrop-filter: saturate(180%) blur(10px);
        z-index: 3;
    }

    .cscj-h-navi::before {
        content: none;
    }

    .cscj-ico-navi {
        width: 18px;
        height: 14px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .cscj-container.container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .cscj-header-right {
        gap: 8px;
    }

    .cscj-icon-action,
    .search-trigger-btn {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
        border-radius: 12px;
    }

    .cscj-h-navi {
        min-width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 12px;
    }
}

body.theme-dark .cscj-h-navi {
    background: rgba(31, 37, 45, 0.88);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    color: #eef2f7;
}

/* 2026-04-05 导航菜单 meta 视觉收口 */
:root {
    --cscj-menu-chip-bg: rgba(255, 255, 255, 0.76);
    --cscj-menu-chip-bg-hover: rgba(255, 255, 255, 0.92);
    --cscj-menu-chip-border: rgba(15, 23, 42, 0.08);
    --cscj-menu-chip-border-hover: rgba(255, 96, 0, 0.18);
    --cscj-menu-chip-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    --cscj-menu-chip-shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.1);
    --cscj-menu-chip-text: #4d5662;
    --cscj-menu-chip-text-hover: #111827;
    --cscj-menu-surface-bg: rgba(255, 255, 255, 0.82);
    --cscj-menu-surface-border: rgba(15, 23, 42, 0.08);
    --cscj-menu-surface-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    --cscj-menu-transparent-chip-bg: rgba(15, 23, 42, 0.16);
    --cscj-menu-transparent-chip-bg-hover: rgba(255, 255, 255, 0.18);
    --cscj-menu-transparent-chip-border: rgba(255, 255, 255, 0.22);
    --cscj-menu-transparent-chip-border-hover: rgba(255, 255, 255, 0.3);
    --cscj-menu-transparent-chip-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.cscj-menu-primary > li > a > .menu-item-main > .menu-item-badges > badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.36);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
}

.cscj-menu-primary > li > a > .menu-item-main > .menu-item-badges > badge {
    transform: translateY(-1px) scale(1);
}

@media (min-width: 992px) {
    .cscj-menu-primary > li > a {
        padding-left: 10px;
        padding-right: 10px;
    }

    .cscj-menu-primary > li > a > .menu-item-main {
        gap: 0;
    }

    .cscj-menu-primary > li > a > .menu-item-main > .menu-item-badges {
        display: inline-flex;
        align-items: flex-start;
        gap: 0;
        line-height: 0;
        white-space: nowrap;
        margin-left: 2px;
    }

    .cscj-menu-primary > li > a > .menu-item-main > .menu-item-badges > badge {
        min-width: 0.8em;
        min-height: 0.8em;
        padding: 0.1em 0.4em;
        border: 0;
        border-radius: 50px;
        box-shadow: none;
        font-size: 0.8em;
        line-height: 1.2;
        letter-spacing: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transform: translate(-10px, -10px) scale(0.85);
        transform-origin: left bottom;
        margin-right: -10px;
    }

    .cscj-menu-primary > li > a > .menu-item-main > .menu-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        height: auto;
        margin: 0 3px 0 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        color: currentColor;
        font-size: 1em;
        flex-shrink: 0;
        transition: color 0.2s ease;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .cscj-menu-primary > li > a:hover > .menu-item-main > .menu-icon,
    .cscj-menu-primary > li.current > a > .menu-item-main > .menu-icon,
    .cscj-menu-primary > li.current-menu-item > a > .menu-item-main > .menu-icon,
    .cscj-menu-primary > li.current-menu-parent > a > .menu-item-main > .menu-icon,
    .cscj-menu-primary > li.current-menu-ancestor > a > .menu-item-main > .menu-icon,
    .cscj-menu-primary > li.current_page_item > a > .menu-item-main > .menu-icon,
    .cscj-menu-primary > li.current_page_parent > a > .menu-item-main > .menu-icon {
        color: currentColor;
    }

    .cscj-menu-primary > li > a > .menu-item-main > .menu-icon .icon,
    .cscj-menu-primary > li > a > .menu-item-main > .menu-icon .svg-icon,
    .cscj-menu-primary > li > a > .menu-item-main > .menu-icon .menu-item-icon {
        width: 1em;
        height: 1em;
        fill: currentColor;
    }

    .cscj-menu-primary > li > .sub-nav:not(.senior-submenu) a {
        gap: 8px;
    }

    .cscj-menu-primary > li > .sub-nav:not(.senior-submenu) .menu-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 6px;
        border-radius: 14px;
        border: 1px solid var(--cscj-menu-chip-border);
        background: var(--cscj-menu-chip-bg);
        box-shadow: var(--cscj-menu-chip-shadow);
        color: var(--cscj-menu-chip-text);
        backdrop-filter: saturate(180%) blur(10px);
        -webkit-backdrop-filter: saturate(180%) blur(10px);
    }

    .cscj-menu-primary > li > .sub-nav:not(.senior-submenu) a:hover .menu-icon {
        background: var(--cscj-menu-chip-bg-hover);
        border-color: var(--cscj-menu-chip-border-hover);
        box-shadow: var(--cscj-menu-chip-shadow-hover);
        color: var(--cscj-menu-chip-text-hover);
    }

    .cscj-menu-primary > li > .senior-submenu .menu-icon {
        width: auto;
        height: auto;
        margin: 0 8px 0 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        color: currentColor;
    }

    .cscj-menu-primary > li > .senior-submenu .fa-fw,
    .cscj-menu-primary > li > .senior-submenu .svg-icon {
        color: currentColor;
    }

    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li > a > .menu-item-main > .menu-icon {
        color: currentColor;
    }

    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li > a:hover > .menu-item-main > .menu-icon,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li.current > a > .menu-item-main > .menu-icon,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li.current-menu-item > a > .menu-item-main > .menu-icon,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li.current-menu-parent > a > .menu-item-main > .menu-icon,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li.current-menu-ancestor > a > .menu-item-main > .menu-icon,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li.current_page_item > a > .menu-item-main > .menu-icon,
    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li.current_page_parent > a > .menu-item-main > .menu-icon {
        color: #fff;
    }

    body.nav-transparent-enabled .cscj-header:not(.scrolled):not(:hover) .cscj-menu-primary > li > a > .menu-item-main > .menu-item-badges > badge {
        border-color: transparent;
        box-shadow: none;
    }
}

body.theme-dark .cscj-menu-primary > li > a > .menu-item-main > .menu-icon,
body.dark-theme .cscj-menu-primary > li > a > .menu-item-main > .menu-icon,
body.theme-dark .cscj-menu-primary > li > .sub-nav:not(.senior-submenu) .menu-icon,
body.dark-theme .cscj-menu-primary > li > .sub-nav:not(.senior-submenu) .menu-icon {
    background: rgba(31, 37, 45, 0.88);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    color: #eef2f7;
}

body.theme-dark .cscj-menu-primary > li > a > .menu-item-main > .menu-item-badges > badge,
body.dark-theme .cscj-menu-primary > li > a > .menu-item-main > .menu-item-badges > badge {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

/* ========== 2026-05-03 桌面端主导航菜单"视觉两侧等距"居中 ==========
 * 历史：2026-04-18 曾把 logo 与 header-right 设为 flex:1 1 0 强制等宽，让
 *       site-menu 在 container 几何中点。但 logo 内容靠左、图标内容靠右，两个
 *       容器内剩余空白方向相反，造成 "logo 内容→菜单" 与 "菜单→图标内容" 两段
 *       间距不等（logo 那侧通常更宽，因为 logo 内容比图标少），用户观感仍是
 *       "没居中"。
 * 现行方案：让 logo 与 header-right 都按内容宽度收缩 (flex:0 0 auto)，site-menu
 *       占据剩余空间并 justify-content:center；这样菜单两侧间距 = (容器宽 - logo
 *       内容宽 - 菜单内容宽 - right 内容宽) / 2，**视觉左右严格等距**，与内容
 *       多寡无关。menu 内 .cscj-menu-primary 仍按内容宽度，配合外层 grow 自动居中。
 * 适用断点：>=1200px（菜单实际渲染的断点；< 1200px 菜单 display:none 走移动端）。
 */
@media (min-width: 1200px) {
    .cscj-container.container > .cscj-logo {
        flex: 0 0 auto;
        justify-content: flex-start;
    }

    .cscj-container.container > .cscj-site-menu {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
    }

    .cscj-container.container > .cscj-header-right {
        flex: 0 0 auto;
        justify-content: flex-end;
    }
}

