/**
 * 导航栏样�? * 模仿优设网的导航样式
 */

/* 基础样式重置 */
.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 {
    width: 100%;
    /* 通栏：不限制最大宽�?*/
    margin: 0;
    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;
}

/* Logo样式调整 */
.cscj-logo .cscj-a-glass {
    padding-left: 15px;
    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: 80px !important; /* 【2025-01-30】调整为与父主题body.nav-fixed匹配：72px */
        padding: 0 8px; /* 与父主题移动端padding一致 */
    }

    .cscj-logo {
        height: 100%; /* 填满容器高度 */
    }

    .cscj-header-right {
        height: 100%; /* 填满容器高度 */
    }

    .cscj-menu-primary > li > a {
        line-height: 80px; /* 与移动端总高度一致 */
    }

    .cscj-header-search .cscj-label {
        line-height: 80px; /* 与移动端总高度一致 */
    }
    .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; /* 确保它显示在最右边 */
}

.cscj-h-navi:active {
    background-color: rgba(0,0,0,0.05);
}

.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: block;
    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 span {
    position: relative;
}

/* 【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: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;
}

/* 搜索按钮 */
.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;
}

.cscj-login-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cscj-avatar-a {
    display: block;
    padding: 0 5px;
    text-decoration: none;
}

.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;
}

.cscj-login-panel:hover .cscj-login-down {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cscj-login-div {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.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 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

.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 20px;
    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: 72px;
    }
}

.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;
}

/* 移动端菜�?*/
.cscj-modal-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 999999; /* 顶级层级，确保覆盖所有元�?*/
    transition: all 0.3s ease;
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
}

.cscj-modal-menu.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    left: 0;
}

.cscj-modal-content {
    padding-top: 0; /* 移除顶部内边距，由顶部功能区和Banner控制 */
    overflow-y: auto;
    height: 100%;
    padding-bottom: 40px; /* 确保底部有足够空�?*/
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
}

.cscj-form {
    padding: 15px 20px;
    position: relative;
}

.cscj-form form {
    position: relative;
}

.cscj-form .cscj-txt {
    display: block;
    box-sizing: border-box;
    background: #f7f7f7;
    padding: 10px 60px 10px 20px;
    border-radius: 20px;
    width: 100%;
    height: 40px;
    line-height: 20px;
    color: #888;
    font-size: 14px;
    border: none;
    outline: none;
}

.cscj-form .cscj-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 32px;
    border: none;
    background: #ff6000;
    padding: 0;
    text-align: center;
    outline: none;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cscj-menu {
    padding-left: 0;
}

.cscj-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cscj-mobile-menu .link-0 {
    display: block;
    font-size: 16px;
    color: #262626;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}

.cscj-mobile-menu .link-0:hover {
    color: #ff6000;
}

.cscj-mobile-menu .link-0:active {
    background-color: rgba(0,0,0,0.05);
}

.cscj-mobile-menu .has-children .link-0 {
    position: relative;
}

.cscj-mobile-menu .has-children .link-0:after {
    content: '\f107'; /* FontAwesome箭头图标 */
    font-family: 'FontAwesome';
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 15px;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.03);
}

.cscj-mobile-menu .has-children.show .link-0:after {
    transform: translateY(-50%) rotate(180deg);
}

.cscj-mobile-menu .sub-nav {
    background-color: #fff;
    padding: 0;
    margin-left: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
}

.cscj-mobile-menu .has-children.show > .sub-nav {
    opacity: 1;
    visibility: visible;
    /* height由JS动态设�?*/
}

/* 响应式样�?*/
@media (max-width: 991px) {
    .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: rgba(0,0,0,0.05);
    }
    
    /* 菜单文字在小屏幕上隐藏，只显示图�?*/
    @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: rgba(255,255,255,0.1);
    }
    
    body.theme-dark .cscj-header-search a:active {
        background-color: rgba(255,255,255,0.1);
        border-radius: 4px;
    }
} 

/* 调整顶部导航栏小头像尺寸，覆盖父主题 */
.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:72px; /* 与移动端总高度一致 */
    }
}

/* 去除父主�?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: inline-block;
}

.search-trigger-btn {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--main-color);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    gap: 6px;
}

.search-trigger-btn:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--focus-color);
    text-decoration: none;
}

.search-trigger-btn i {
    font-size: 16px;
}

.search-trigger-btn .cscj-label {
    font-size: 14px;
    font-weight: 500;
}

/* 移动端隐藏搜索文字标签 */
@media (max-width: 767px) {
    .search-trigger-btn .cscj-label {
        display: none;
    }

    .search-trigger-btn {
        padding: 8px;
        min-width: 40px;
        justify-content: center;
    }
}















/* ===== 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%);
  }
}
*/

/* 移动端菜单样�?*/

/* 移动端菜单关闭按�?*/
.cscj-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cscj-modal-close:active {
    background-color: rgba(0,0,0,0.05);
}

/* 移动端菜单关闭图�?*/
.cscj-modal-close:before,
.cscj-modal-close:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #666;
    border-radius: 1px;
}

.cscj-modal-close:before {
    transform: rotate(45deg);
}

.cscj-modal-close:after {
    transform: rotate(-45deg);
}

/* 移动端登录按�?*/
.cscj-mobile-login {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.cscj-mobile-login .cscj-btn {
    padding: 0 15px;
    height: 34px;
    font-size: 14px;
    border-radius: 17px;
}

.cscj-mobile-login .cscj-btn + .cscj-btn {
    margin-left: 10px;
}

/* 增加超小屏幕适配 */
@media (max-width: 375px) {
    .cscj-menu-primary .sub-nav {
        grid-template-columns: 1fr;
    }
    
    .cscj-form .cscj-txt {
        padding: 8px 50px 8px 15px;
        height: 36px;
        font-size: 14px;
    }
    
    .cscj-form .cscj-btn {
        right: 5px;
        top: 2px;
        width: 30px;
        height: 32px;
    }
}

/* 完善移动端动�?*/
@media (max-width: 991px) {
    /* 移动端菜单触摸反馈效�?*/
    .cscj-mobile-menu .link-0:active {
        background-color: rgba(0,0,0,0.05);
    }
    
    /* 移动端菜单展开动画 */
    .cscj-mobile-menu .sub-nav {
        transition: all 0.3s ease-out;
    }
}

/* 优化暗色模式下的移动端菜�?*/
@media (prefers-color-scheme: dark) {
    body.theme-dark .cscj-modal-menu {
        background: #222;
    }
    
    body.theme-dark .cscj-mobile-menu .link-0 {
        border-color: #333;
    }
    
    body.theme-dark .cscj-mobile-menu .sub-nav {
        background: #1a1a1a;
    }
    
    body.theme-dark .cscj-mobile-login {
        border-color: #333;
    }
    
    body.theme-dark .cscj-modal-close:before,
    body.theme-dark .cscj-modal-close:after {
        background-color: #ccc;
    }
    
    body.theme-dark .cscj-mobile-menu .link-0:active {
        background-color: rgba(255,255,255,0.05);
    }
}



/* 暗色模式下的移动端搜索框 */
@media (prefers-color-scheme: dark) {
    body.theme-dark .cscj-form .cscj-txt {
        background-color: #333;
        color: #eee;
    }
    
    body.theme-dark .cscj-form .cscj-btn {
        background: #ff6000;
    }
    
    body.theme-dark .cscj-modal-close:hover {
        background-color: rgba(255,255,255,0.1);
    }
}

/* 优设网风格移动端菜单样式 */
.cscj-menu-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 20px 20px 10px;
    position: relative;
}

.cscj-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px;
}

.cscj-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.2s ease-out;
}

.cscj-grid-item:active {
    transform: scale(0.95);
}

.cscj-grid-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 20px;
}

.cscj-grid-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 改变移动端菜单列表样�?*/
.cscj-mobile-menu {
    padding: 0 20px;
}

.cscj-mobile-menu li {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.cscj-mobile-menu .link-0 {
    display: block;
    padding: 12px 15px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    background-color: #f9f9f9;
    border-bottom: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cscj-mobile-menu .link-0:active {
    transform: scale(0.98);
}

.cscj-mobile-menu .has-children.show .link-0 {
    border-radius: 8px 8px 0 0;
}

.cscj-mobile-menu .has-children .link-0:after {
    content: '\f107'; /* FontAwesome下箭头图�?*/
    font-family: 'FontAwesome';
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 15px;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.05);
}

.cscj-mobile-menu .has-children.show .link-0:after {
    transform: translateY(-50%) rotate(180deg);
}

.cscj-mobile-menu .sub-nav {
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.cscj-mobile-menu .sub-nav li {
    margin: 0;
    border-radius: 0;
}

.cscj-mobile-menu .sub-nav .link-1 {
    padding: 10px 15px;
    font-size: 14px;
    border-top: 1px solid #f0f0f0;
    display: block;
    color: #666;
    text-decoration: none;
    position: relative; /* 为二级菜单箭头定�?*/
}

.cscj-mobile-menu .sub-nav .link-1:active {
    background-color: rgba(0,0,0,0.03);
}

/* 二级菜单折叠项样�?*/
.cscj-mobile-menu .sub-nav .has-children > .link-1:after {
    content: '\f107'; /* FontAwesome箭头图标 */
    font-family: 'FontAwesome';
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 12px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.03);
}

.cscj-mobile-menu .sub-nav .has-children.show > .link-1:after {
    transform: translateY(-50%) rotate(180deg);
}

/* 展开状态的子菜�?*/
.cscj-mobile-menu .has-children.show > .sub-nav {
    max-height: 1000px; /* 足够大的值，实际高度由JS控制 */
    opacity: 1;
}

/* 三级菜单样式 */
.cscj-mobile-menu .sub-nav .sub-nav {
    background-color: #f9f9f9;
    padding: 0;
    border-radius: 0;
}

.cscj-mobile-menu .sub-nav .sub-nav .link-1 {
    padding-left: 25px; /* 缩进增加层级�?*/
    font-size: 13px;
    color: #777;
}

/* 优化移动端搜索框 */
.cscj-form {
    padding: 15px 20px 20px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    margin-top: 15px; /* 添加顶部间距，与Banner分隔 */
}

.cscj-form .cscj-txt {
    border-radius: 8px;
    background-color: #f5f5f5;
    padding: 0 45px 0 15px;
    height: 46px;
    font-size: 15px;
}

.cscj-form .cscj-btn {
    width: 34px;
    height: 34px;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body.theme-dark .cscj-menu-title {
        color: #eee;
    }
    
    body.theme-dark .cscj-grid-item {
        background-color: #333;
    }
    
    body.theme-dark .cscj-grid-icon {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    body.theme-dark .cscj-grid-text {
        color: #eee;
    }
    
    body.theme-dark .cscj-mobile-menu .link-0 {
        color: #eee;
        background-color: #333;
    }
    
    body.theme-dark .cscj-mobile-menu .sub-nav {
        background-color: #222;
    }
    
    body.theme-dark .cscj-mobile-menu .sub-nav .link-1 {
        border-color: #444;
        color: #ccc;
    }
    
    body.theme-dark .cscj-form {
        border-color: #333;
    }
}

/* ===== 移动端菜单样式优�?===== */
.cscj-modal-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1000; /* 【2025-01-30】调整层级：高于导航栏(999)，低于登录弹窗(1045+) */
    transition: all 0.3s ease;
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
}

.cscj-modal-menu.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    left: 0;
}

.cscj-modal-content {
    padding-top: 0; /* 移除顶部内边距，由顶部功能区和Banner控制 */
    overflow-y: auto;
    height: 100%;
    padding-bottom: 40px; /* 确保底部有足够空�?*/
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
}

/* 添加移动端菜单头部标�?*/
.cscj-menu-section {
    padding: 0 15px;
    margin-bottom: 20px;
}

.cscj-menu-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px;
    padding: 0 5px;
    position: relative;
}

/* 移动端菜单列表样�?*/
.cscj-menu-list {
    list-style: none;
    margin: 0;
    padding: 0 5px;
}

.cscj-menu-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cscj-menu-list .menu-item {
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* 菜单项链接样�?*/
.cscj-menu-list .menu-item > a,
.cscj-mobile-menu .menu-item > a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f7f7f7;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.cscj-menu-list .menu-item > a:active,
.cscj-mobile-menu .menu-item > a:active {
    transform: scale(0.98);
    background-color: #f0f0f0;
}

/* 菜单图标样式 */
.cscj-menu-list .menu-icon,
.cscj-mobile-menu .menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,96,0,0.1);
    margin-right: 10px;
    color: #ff6000;
    font-size: 14px;
    flex-shrink: 0;
}

/* 没有图标时的文本样式，确保文本正确对�?*/
.cscj-menu-list a > span,
.cscj-mobile-menu a > span {
    padding-left: 0;
}

/* 菜单箭头样式 */
.menu-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    cursor: pointer; /* 添加指针样式，提示可点击 */
    z-index: 2; /* 确保箭头在最上层 */
}

.menu-arrow:after {
    content: '\f107'; /* FontAwesome下箭头图�?*/
    font-family: 'FontAwesome';
    font-size: 14px;
    color: #999;
    transition: transform 0.3s ease; /* 添加过渡效果 */
}

/* 修改箭头方向：默认向下，展开时向�?*/
.menu-arrow.open:after {
    transform: rotate(180deg); /* 旋转箭头指向上方 */
}

/* 移动端子菜单样式 */
.cscj-mobile-menu .sub-nav {
    background-color: #fff;
    padding: 0;
    margin-left: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), 
                opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), 
                visibility 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    display: none; /* 默认隐藏 */
    will-change: height, opacity; /* 提示浏览器优化这些属性的变化 */
}

.cscj-mobile-menu .has-children.show > .sub-nav {
    opacity: 1;
    visibility: visible;
    display: block;
    /* height由JS动态设�?*/
}

/* 子菜单项样式 - 左右布局 */
.cscj-mobile-menu .sub-nav .menu-item > a {
    padding: 10px 15px;
    font-size: 14px;
    background-color: #f9f9f9;
    border-radius: 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

/* 子菜单图标样�?*/
.cscj-mobile-menu .sub-nav .menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background: rgba(255,96,0,0.08);
    font-size: 12px;
}

/* 二级子菜单样�?*/
.cscj-mobile-menu .sub-nav .sub-nav .menu-item > a {
    padding-left: 25px; /* 缩进增加层级�?*/
    background-color: #f5f5f5;
    font-size: 13px;
}

/* 二级子菜单图标样�?*/
.cscj-mobile-menu .sub-nav .sub-nav .menu-icon {
    width: 20px;
    height: 20px;
    font-size: 10px;
    opacity: 0.8;
}

/* 移除Walker类可能添加的额外箭头 */
.cscj-mobile-menu .has-children .link-0:after {
    display: none !important;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body.theme-dark .cscj-modal-menu {
        background: #222;
    }
    
    body.theme-dark .cscj-menu-title {
        color: #eee;
    }
    
    body.theme-dark .cscj-menu-list .menu-item > a,
    body.theme-dark .cscj-mobile-menu .menu-item > a {
        background-color: #333;
        color: #eee;
    }
    
    body.theme-dark .cscj-menu-list .menu-item > a:active,
    body.theme-dark .cscj-mobile-menu .menu-item > a:active {
        background-color: #3a3a3a;
    }
    
    body.theme-dark .menu-arrow {
        background-color: rgba(255,255,255,0.1);
    }
    
    body.theme-dark .cscj-mobile-menu .sub-nav {
        background-color: #222;
    }
    
    body.theme-dark .cscj-mobile-menu .sub-nav .menu-item > a {
        background-color: #2a2a2a;
        border-top-color: rgba(255,255,255,0.05);
    }
    
    body.theme-dark .cscj-mobile-menu .sub-nav .sub-nav .menu-item > a {
        background-color: #252525;
    }
    
    body.theme-dark .cscj-modal-close:before,
    body.theme-dark .cscj-modal-close:after {
        background-color: #ccc;
    }
}

/* 响应式调�?*/
@media (max-width: 480px) {
    .cscj-menu-section {
        padding: 0 10px;
        margin-bottom: 15px;
    }
    
    .cscj-menu-title {
        margin: 0 0 10px;
        font-size: 15px;
    }
    
    .cscj-menu-list .menu-item > a,
    .cscj-mobile-menu .menu-item > a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .cscj-menu-list .menu-icon,
    .cscj-mobile-menu .menu-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .menu-arrow {
        width: 20px;
        height: 20px;
        right: 10px;
    }
    
    .menu-arrow:after {
        font-size: 12px;
    }
}

/* 重复的样式定义已移除，统一在上方定�?*/

/* 如果需要在移动端菜单中也隐藏相关按�?*/
.cscj-menu-list .menu-item a[href*="write"] {
    display: none !important; /* 隐藏移动端菜单中的投稿按�?*/
}

.cscj-menu-list .menu-item a[href*="vip"] {
    display: none !important; /* 隐藏移动端菜单中的VIP按钮 */
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .cscj-container {
        padding: 0 10px; /* 减少内边距，提供更多空间 */
    }
    
    .cscj-logo .cscj-a-glass img {
        max-height: 35px; /* 稍微减小logo尺寸 */
    }
}

/* ===== 个性化用户Banner ===== */
.cscj-banner {
    position: relative;
    margin-bottom: 0; /* 移除底部间距 */
    overflow: hidden;
    padding: 0;
}

.cscj-banner-inner {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, #ff7a00, #ff6000);
    color: #fff;
    border-radius: 0; /* 移除圆角，与顶部功能区形成一�?*/
    box-shadow: 0 5px 15px rgba(255, 96, 0, 0.2);
    z-index: 1;
}

/* 背景装饰 */
.cscj-banner-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.cscj-banner-inner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    z-index: -1;
}

/* 已登录用户样�?*/
.cscj-banner-user {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 10px 0;
}

.cscj-banner-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cscj-banner-avatar img,
.cscj-banner-avatar .avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.cscj-banner-info {
    flex: 1;
}

.cscj-banner-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px;
    display: flex;
    align-items: center;
}

.cscj-banner-vip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 2px 8px;
}

.cscj-banner-vip .fa {
    margin-right: 3px;
    color: #FFD700;
}

.cscj-banner-meta {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    display: flex;
    align-items: center;
}

.cscj-banner-points {
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
}

.cscj-banner-points .fa {
    margin-right: 4px;
    color: #FFD700;
}

.cscj-banner-link {
    margin-left: auto;
    font-size: 13px;
    opacity: 0.8;
}

/* 退出登录按�?*/
.cscj-banner-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 15px;
    right: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 5px 12px;
    transition: all 0.2s ease;
}

.cscj-banner-logout:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

.cscj-banner-logout .fa {
    margin-right: 4px;
}

.cscj-banner-logout:active {
    transform: scale(0.95);
}

/* 未登录访客样�?*/
.cscj-banner-guest {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.cscj-banner-welcome {
    flex: 1;
}

.cscj-banner-welcome h3 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
}

.cscj-banner-welcome p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.cscj-banner-btns {
    display: flex;
    gap: 10px;
}

.cscj-banner-btns .cscj-btn {
    padding: 0 15px;
    height: 36px;
    line-height: 36px;
    border-radius: 18px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    transition: all 0.2s ease;
}

.cscj-banner-btns .cscj-btn-orange {
    background: #fff;
    color: #ff6000;
}

.cscj-banner-btns .cscj-btn:active {
    transform: scale(0.96);
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body.theme-dark .cscj-banner-inner {
        background: linear-gradient(135deg, #e65c00, #d65000);
    }
    
    body.theme-dark .cscj-banner-btns .cscj-btn-orange {
        background: rgba(255, 255, 255, 0.9);
        color: #e65c00;
    }
}

/* 响应式调�?*/
@media (max-width: 480px) {
    .cscj-banner-guest {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cscj-banner-welcome {
        margin-bottom: 15px;
    }
    
    .cscj-banner-btns {
        width: 100%;
    }
    
    .cscj-banner-btns .cscj-btn {
        flex: 1;
        text-align: center;
    }
}

/* ===== 顶部功能区：Logo + VIP + 签到 ===== */
.cscj-menu-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px; /* 与桌面端导航栏padding一致 */
    height: 88px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1px;
    background-color: #fff;
    box-sizing: border-box; /* 确保padding包含在height内 */
}

/* 移动端菜单顶部栏高度调整 */
@media (max-width: 996px) {
    .cscj-menu-topbar {
        height: 72px;
        padding: 0 8px; /* 与移动端导航栏padding一致 */
    }
}

/* Logo区域 */
.cscj-menu-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.cscj-menu-logo-inner {
    display: flex;
    align-items: center;
}

.cscj-menu-logo-img-wrap {
    height: 32px;
    width: auto;
    max-width: 120px;
}

.cscj-menu-logo-img-wrap img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.cscj-menu-site-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* 功能按钮区域 */
.cscj-menu-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 0; /* 移除右侧间距，因为现在关闭按钮在内部 */
}

.cscj-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 16px;
    font-size: 13px;
    color: #666;
    background-color: #f5f5f5;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none; /* 确保按钮没有边框 */
    cursor: pointer; /* 确保鼠标指针正确 */
}

.cscj-menu-btn:active {
    transform: scale(0.95);
}

.cscj-menu-btn i {
    margin-right: 4px;
    font-size: 14px;
}

/* 关闭按钮样式 */
.cscj-menu-close-btn {
    background-color: #f5f5f5;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.cscj-menu-close-btn i {
    margin-right: 0;
}

.cscj-menu-close-btn:hover {
    background-color: #e0e0e0;
}

/* 签到按钮样式 */
.cscj-menu-checkin-btn {
    background-color: #ff6000;
    color: #fff;
}

.cscj-menu-checkin-btn[ed-text] {
    background-color: #f5f5f5;
    color: #666;
}

/* VIP按钮样式 */
.cscj-menu-vip-btn {
    background-color: rgba(255, 180, 0, 0.1);
    color: #ffb400;
}

.cscj-menu-vip-btn i {
    color: #ffb400;
}

/* 登录按钮样式 */
.cscj-menu-signin-btn {
    background-color: #ff6000;
    color: #fff;
}

/* 移除旧的关闭按钮样式 */
/*
.cscj-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cscj-modal-close:active {
    background-color: rgba(0,0,0,0.05);
}

.cscj-modal-close:before,
.cscj-modal-close:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #666;
    border-radius: 1px;
}

.cscj-modal-close:before {
    transform: rotate(45deg);
}

.cscj-modal-close:after {
    transform: rotate(-45deg);
}
*/

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body.theme-dark .cscj-menu-topbar {
        background-color: #222;
        border-bottom-color: #333;
    }
    
    body.theme-dark .cscj-menu-site-name {
        color: #eee;
    }
    
    body.theme-dark .cscj-menu-btn {
        background-color: #333;
        color: #ccc;
    }
    
    body.theme-dark .cscj-menu-close-btn {
        background-color: #333;
        color: #ccc;
    }
    
    body.theme-dark .cscj-menu-close-btn:hover {
        background-color: #444;
    }
    
    body.theme-dark .cscj-menu-checkin-btn {
        background-color: #ff6000;
        color: #fff;
    }
    
    body.theme-dark .cscj-menu-checkin-btn[ed-text] {
        background-color: #333;
        color: #ccc;
    }
    
    body.theme-dark .cscj-menu-vip-btn {
        background-color: rgba(255, 180, 0, 0.15);
    }
    
    body.theme-dark .cscj-menu-signin-btn {
        background-color: #ff6000;
        color: #fff;
    }
}

/* 响应式调�?*/
@media (max-width: 360px) {
    .cscj-menu-topbar {
        padding: 0 15px;
    }
    
    .cscj-menu-btn {
        padding: 0 8px;
    }
}

/* 暗色模式下的菜单折叠样式 */
@media (prefers-color-scheme: dark) {
    body.theme-dark .cscj-mobile-menu .has-children .link-0:after {
        background-color: rgba(255,255,255,0.1);
    }
    
    body.theme-dark .cscj-mobile-menu .has-children.show .link-0:after {
        background-color: rgba(255,255,255,0.15);
    }
    
    body.theme-dark .cscj-mobile-menu .sub-nav .has-children > .link-1:after {
        background-color: rgba(255,255,255,0.1);
    }
    
    body.theme-dark .cscj-mobile-menu .sub-nav .sub-nav {
        background-color: #1a1a1a;
    }
}

/* 子菜单网格模式样式（默认注释，可选用�?*/
/*
.cscj-mobile-menu .sub-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
    background-color: #f9f9f9;
}

.cscj-mobile-menu .sub-nav-grid .menu-item {
    margin-bottom: 0;
}

.cscj-mobile-menu .sub-nav-grid .menu-item > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px 10px;
    border-radius: 8px;
    background-color: #fff;
    border: none;
    height: 100%;
    transition: transform 0.2s;
}

.cscj-mobile-menu .sub-nav-grid .menu-item > a:active {
    transform: scale(0.95);
}

.cscj-mobile-menu .sub-nav-grid .menu-icon {
    width: 36px;
    height: 36px;
    margin: 0 0 8px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,96,0,0.08);
    border-radius: 50%;
    color: #ff6000;
}

.cscj-mobile-menu .sub-nav-grid .menu-text {
    font-size: 13px;
    color: #333;
    margin-top: 5px;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body.theme-dark .cscj-mobile-menu .sub-nav-grid {
        background-color: #222;
    }
    
    body.theme-dark .cscj-mobile-menu .sub-nav-grid .menu-item > a {
        background-color: #333;
    }
    
    body.theme-dark .cscj-mobile-menu .sub-nav-grid .menu-text {
        color: #eee;
    }
}
*/

/* 子菜单网格模式样�?*/
.cscj-mobile-menu .sub-nav-grid {
    display: grid !important; /* 强制使用网格布局 */
    grid-template-columns: repeat(3, 1fr) !important; /* 增加�?�?*/
    gap: 10px;
    padding: 15px;
    background-color: #f9f9f9;
    width: 100%; /* 确保宽度�?00% */
}

.cscj-mobile-menu .sub-nav-grid .menu-item {
    margin-bottom: 0;
    width: 100% !important; /* 确保宽度�?00% */
    display: block !important; /* 确保显示为块级元�?*/
}

.cscj-mobile-menu .sub-nav-grid .menu-item > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 8px; /* 稍微减小内边�?*/
    border-radius: 8px;
    background-color: #fff;
    border: none;
    height: 100%;
    transition: transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* 添加轻微阴影 */
}

.cscj-mobile-menu .sub-nav-grid .menu-item > a:active {
    transform: scale(0.95);
}

.cscj-mobile-menu .sub-nav-grid .menu-icon {
    width: 32px; /* 稍微减小图标尺寸 */
    height: 32px;
    margin: 0 0 6px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,96,0,0.08);
    border-radius: 50%;
    color: #ff6000;
}

.cscj-mobile-menu .sub-nav-grid .menu-text {
    font-size: 12px; /* 稍微减小字体大小 */
    color: #333;
    margin-top: 4px;
    line-height: 1.2;
    max-width: 100%; /* 确保文本不溢�?*/
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 针对小屏幕的优化 */
@media (max-width: 480px) {
    .cscj-mobile-menu .sub-nav-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 小屏幕改�?�?*/
        gap: 8px;
        padding: 10px;
    }
    
    .cscj-mobile-menu .sub-nav-grid .menu-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .cscj-mobile-menu .sub-nav-grid .menu-text {
        font-size: 11px;
    }
}

/* 超小屏幕的优�?*/
@media (max-width: 360px) {
    .cscj-mobile-menu .sub-nav-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 保持2�?*/
        gap: 6px;
        padding: 8px;
    }
}

/* 菜单模式切换按钮 */
.menu-mode-switch {
    display: flex;
    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 .switch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background-color: #fff;
    color: #666;
    margin-left: 8px;
    border: 1px solid #eee;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    position: relative;
}

.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);
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body.theme-dark .cscj-mobile-menu .sub-nav-grid {
        background-color: #222;
    }
    
    body.theme-dark .cscj-mobile-menu .sub-nav-grid .menu-item > a {
        background-color: #333;
    }
    
    body.theme-dark .cscj-mobile-menu .sub-nav-grid .menu-text {
        color: #eee;
    }

    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);
    }
}

/* 子菜单网格模式样�?- 增强选择器以匹配所有可能的菜单元素 */
.cscj-mobile-menu .sub-nav-grid,
.cscj-menu-list.sub-nav-grid,
.cscj-mobile-menu .cscj-menu-list.sub-nav-grid,
.sub-nav.sub-nav-grid {
    display: grid !important; /* 强制使用网格布局 */
    grid-template-columns: repeat(3, 1fr) !important; /* 增加�?�?*/
    gap: 10px;
    padding: 15px;
    background-color: #f9f9f9;
    width: 100%; /* 确保宽度�?00% */
    border-top: 1px solid rgba(0,0,0,0.05);
}

.cscj-mobile-menu .sub-nav-grid .menu-item,
.cscj-menu-list.sub-nav-grid .menu-item,
.cscj-mobile-menu .cscj-menu-list.sub-nav-grid .menu-item,
.sub-nav.sub-nav-grid .menu-item {
    margin-bottom: 0;
    width: 100% !important; /* 确保宽度�?00% */
    display: block !important; /* 确保显示为块级元�?*/
}

.cscj-mobile-menu .sub-nav-grid .menu-item > a,
.cscj-menu-list.sub-nav-grid .menu-item > a,
.cscj-mobile-menu .cscj-menu-list.sub-nav-grid .menu-item > a,
.sub-nav.sub-nav-grid .menu-item > a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 12px 8px !important; /* 稍微减小内边�?*/
    border-radius: 8px !important;
    background-color: #fff !important;
    border: none !important;
    height: 100% !important;
    transition: transform 0.2s !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important; /* 添加轻微阴影 */
}

.cscj-mobile-menu .sub-nav-grid .menu-item > a:active,
.cscj-menu-list.sub-nav-grid .menu-item > a:active,
.cscj-mobile-menu .cscj-menu-list.sub-nav-grid .menu-item > a:active,
.sub-nav.sub-nav-grid .menu-item > a:active {
    transform: scale(0.95) !important;
}

.cscj-mobile-menu .sub-nav-grid .menu-icon,
.cscj-menu-list.sub-nav-grid .menu-icon,
.cscj-mobile-menu .cscj-menu-list.sub-nav-grid .menu-icon,
.sub-nav.sub-nav-grid .menu-icon {
    width: 32px !important; /* 稍微减小图标尺寸 */
    height: 32px !important;
    margin: 0 0 6px 0 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,96,0,0.08) !important;
    border-radius: 50% !important;
    color: #ff6000 !important;
}

.cscj-mobile-menu .sub-nav-grid .menu-text,
.cscj-menu-list.sub-nav-grid .menu-text,
.cscj-mobile-menu .cscj-menu-list.sub-nav-grid .menu-text,
.sub-nav.sub-nav-grid .menu-text {
    font-size: 12px !important; /* 稍微减小字体大小 */
    color: #333 !important;
    margin-top: 4px !important;
    line-height: 1.2 !important;
    max-width: 100% !important; /* 确保文本不溢�?*/
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

/* 针对小屏幕的优化 */
@media (max-width: 480px) {
    .cscj-mobile-menu .sub-nav-grid,
    .cscj-menu-list.sub-nav-grid,
    .cscj-mobile-menu .cscj-menu-list.sub-nav-grid,
    .sub-nav.sub-nav-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 小屏幕改�?�?*/
        gap: 8px !important;
        padding: 10px !important;
    }
    
    .cscj-mobile-menu .sub-nav-grid .menu-icon,
    .cscj-menu-list.sub-nav-grid .menu-icon,
    .cscj-mobile-menu .cscj-menu-list.sub-nav-grid .menu-icon,
    .sub-nav.sub-nav-grid .menu-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }
    
    .cscj-mobile-menu .sub-nav-grid .menu-text,
    .cscj-menu-list.sub-nav-grid .menu-text,
    .cscj-mobile-menu .cscj-menu-list.sub-nav-grid .menu-text,
    .sub-nav.sub-nav-grid .menu-text {
        font-size: 11px !important;
    }
}

/* 超小屏幕的优�?*/
@media (max-width: 360px) {
    .cscj-mobile-menu .sub-nav-grid,
    .cscj-menu-list.sub-nav-grid,
    .cscj-mobile-menu .cscj-menu-list.sub-nav-grid,
    .sub-nav.sub-nav-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 保持2�?*/
        gap: 6px !important;
        padding: 8px !important;
    }
}

