/* 导航栏和头部样式 - 从header.html提取 */
span#drawer-display-name {
    font-size: 3rem;
}
/* 图标样式 */
.drawer-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
}

.drawer-link:hover .drawer-icon {
    opacity: 1;
}

.drawer-link:hover .drawer-icon svg {
    fill: #0f766e;
}

/* 全局重置 - 确保所有页面基础一致 */
html {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    /* Firefox：轨道透明，滑块可见，避免盖住固定头/底的全宽横线 */
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.28) transparent;
}

/* Chromium/Safari：滚动条轨道透明，仅拇指着色；无纵向滚动条时不生成轨道，不挡边线 */
html::-webkit-scrollbar {
    width: 10px;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.22);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.38);
    background-clip: padding-box;
}
html::-webkit-scrollbar-corner {
    background: transparent;
}

html.dark-mode {
    scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
}

html.dark-mode::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.26);
    background-clip: padding-box;
}

html.dark-mode::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.42);
    background-clip: padding-box;
}

body {
    width: 100%;
    overflow-x: clip;
    overflow-y: visible;
    -webkit-text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

/* 导航栏基础样式 */
.nav {
    width: 100% !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-bottom: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style;
}

/* 导航栏底部细线 - 仅非首页显示，首页透明时由 index-hero.css 控制 */
.nav::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    transition: opacity 0.2s ease;
}

/* 首页：底部分隔由 index-hero.css 里 .nav 的 box-shadow 承担，勿再用 ::after 做 0↔1 显隐，
   否则阈值附近或点击链接触发微滚动时，底线会闪一下再消失 */
body.index-page .nav::after,
body.hero-ambient-page .nav::after {
    display: none !important;
}

.nav .layui-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 100% !important;
    max-width: 1300px !important;
    width: 100%;
    margin: 0 auto;
    padding: 0 0px;
    overflow: visible !important;
    box-sizing: border-box;
}

/* Logo样式 */
.nav-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: auto !important;
    position: relative !important;
    left: -9px !important;
    transform: translateZ(0) !important;
}

.nav-logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: auto;
    max-height: 46px !important;
    transition: opacity 0.2s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.nav-logo:hover img {
    opacity: 0.8;
}

.trans {
    transition: opacity 0.2s ease;
}

/* 主导航样式 - 仅桌面端 */
@media screen and (min-width: 961px) {
    .main-nav {
        flex: 1;
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
        transform: translateZ(0);
        backface-visibility: hidden;
        justify-content: space-around;
        position: static !important;
        width: auto !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
    }

    .main-nav ul {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
        list-style: none;
        margin: 0;
        padding: 0;
        min-height: auto !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    .main-nav ul::before,
    .main-nav ul::after {
        content: none !important;
        display: none !important;
    }

    .main-nav li {
        margin: 0 15px;
        opacity: 1 !important;
        transform: none !important;
    }
}

.main-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0 14px;
    line-height: 60px;
    color: #71717a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-sans) !important;
    transition: color 0.2s ease;
    position: relative;
    letter-spacing: 0.02em;
}

/* PC端隐藏导航图标 */
.nav-icon {
    display: none;
}

/* 下划线指示器：与链接左右内边距对齐，比固定宽度短条更易辨认 */
.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 14px;
    left: 12px;
    right: 12px;
    width: auto;
    height: 2px;
    background: rgba(24, 24, 27, 0.42);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
    pointer-events: none;
}

/* 桌面端导航链接 hover */
.main-nav .nav-link:hover {
    color: #000000 !important;
    background-color: transparent !important;
}

.main-nav .nav-link.active {
    color: #000000 !important;
    font-weight: 700 !important;
    background-color: transparent !important;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* 用户区域样式 */
.user-area {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
    margin-left: auto;
    margin-right: 0;
    height: 100% !important;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #111827;
    color: white;
    font-weight: 500;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    line-height: 1 !important;
    padding: 0 !important;
    text-align: center !important;
    cursor: pointer;
    transition: opacity 0.2s ease;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.user-avatar:hover {
    opacity: 0.8;
}

.user-links {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
}

.user-links a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #555555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-radius: 6px; 
    padding: 5px 10px;
    border: 1px solid var(--card-border, #d4d4d8);
    white-space: nowrap;
}

.user-links a:hover {
    color: #111827;
    border-color: #111827;
}

/* PC端隐藏注册按钮 */
#register-btn {
    display: none !important;
}

/* 登录按钮 - 纯图标风格（与 .site-layout-toggle 同款浅灰底） */
#login-btn {
    background: rgba(0, 0, 0, 0.04) !important;
    border: none !important;
    color: #6b7280 !important;
    padding: 6px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s ease, background 0.2s ease !important;
    cursor: pointer !important;
}

#login-btn:hover {
    color: #111827 !important;
    background: rgba(0, 0, 0, 0.08) !important;
}

#login-btn:active {
    background: rgba(0, 0, 0, 0.1) !important;
}

#login-btn svg {
    display: block;
}


/* ========================================
   菜单按钮 - 精致汉堡/关闭动画
   ======================================== */
.menu-toggle {
    display: none;
    width: 28px;
    height: 28px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 10001;
    margin-right: 0;
    border-radius: 8px;
    /* 🚀 优化：背景过渡加快 */
    transition: background 0.1s ease;
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.menu-toggle:active {
    background: rgba(0, 0, 0, 0.1);
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 20px;
    background: #1a1a1a;
    border-radius: 2px;
    left: 4px;
    /* 🚀 优化：菜单按钮动画加快，明确属性 */
    transition: transform 0.12s ease-out, opacity 0.12s ease-out, top 0.12s ease-out, width 0.12s ease-out;
}

/* 三条线的位置 */
.menu-toggle span:nth-child(1) {
    top: 7px;
}

.menu-toggle span:nth-child(2) {
    top: 13px;
    width: 14px;
}

.menu-toggle span:nth-child(3) {
    top: 19px;
}

/* 动画效果 - 变为 X */
.menu-toggle.active span {
    width: 20px;
}

.menu-toggle.active span:nth-child(1) {
    top: 13px;
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.menu-toggle.active span:nth-child(3) {
    top: 13px;
    transform: rotate(-45deg);
}

/* 抽屉面板样式 */
.user-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    /* 硬件加速 */
    transform: translateZ(0);
    will-change: right;
    backface-visibility: hidden;
    /* CSS Containment */
    contain: layout style paint;
}

.user-drawer.active {
    right: 0;
}

/* 抽屉头部 */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.drawer-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.drawer-close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.drawer-close:hover {
    color: #0f766e;
}

/* 用户信息区域 */
.user-info {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #000000;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    margin: 0 auto 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 深色模式开关 */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 10px;
}

.dark-mode-toggle span {
    margin-right: 2px;
    font-size: 14px;
    color: #666;
}

/* 开关按钮样式 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    /* 🚀 优化：明确属性 */
    transition: background-color 0.2s ease;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    /* 🚀 优化：明确属性 */
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #0f766e;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-switch:hover .toggle-slider {
    box-shadow: 0 0 8px rgba(15, 118, 110, 0.25);
}

/* 微信徽章样式 */
.wechat-badge-drawer {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #09bb07 0%, #00d100 100%);
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(9, 187, 7, 0.4);
    z-index: 10;
}

.wechat-badge-drawer svg {
    width: 14px;
    height: 14px;
}

/* 链接列表 */
.drawer-links {
    padding: 10px 0;
}

.drawer-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
}

.drawer-link:hover {
    background-color: rgba(15, 118, 110, 0.04);
    color: #0f766e;
    padding-left: 25px;
}

.drawer-link.active {
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.1) 0%, rgba(15, 118, 110, 0.03) 100%);
    color: #0f766e;
    font-weight: 600;
    border-left: 3px solid #0f766e;
    padding-left: 17px;
}

.drawer-link.active .drawer-icon svg {
    fill: #0f766e;
}

/* 抽屉下拉菜单 */
.drawer-dropdown {
    position: relative;
}

.drawer-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
}

.dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.drawer-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.drawer-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(0, 0, 0, 0.02);
}

.drawer-dropdown.active .drawer-submenu {
    max-height: 200px;
}

.drawer-sublink {
    display: block;
    padding: 12px 20px 12px 60px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    /* 🚀 优化：明确属性 */
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.drawer-sublink:hover {
    background-color: rgba(15, 118, 110, 0.04);
    color: #0f766e;
    padding-left: 65px;
}

.drawer-sublink.active {
    background-color: rgba(15, 118, 110, 0.08);
    color: #0f766e;
    font-weight: 600;
}

/* 会员导航菜单样式 */
.member-nav-menu {
    padding: 0;
    margin: 0;
    list-style: none;
}

.member-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.member-nav-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    /* 🚀 优化：明确属性 */
    transition: background-color 0.15s ease, color 0.15s ease;
    font-size: 15px;
}

.member-nav-icon {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    /* 🚀 优化：明确属性 */
    transition: color 0.15s ease, opacity 0.15s ease;
}

.member-nav-link:hover {
    background-color: rgba(15, 118, 110, 0.05);
    color: #0f766e;
    padding-left: 24px;
}

.member-nav-link.active {
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.1) 0%, rgba(15, 118, 110, 0.03) 100%);
    color: #0f766e;
    font-weight: 600;
    border-left: 3px solid #0f766e;
    padding-left: 17px;
}

.member-nav-link.active .member-nav-icon {
    color: #0f766e;
}

 
.member-nav-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    /* 🚀 优化：明确属性 */
    transition: background-color 0.15s ease, color 0.15s ease;
    color: #333;
    font-size: 15px;
}

.member-nav-toggle-content {
    display: flex;
    align-items: center;
}

.member-nav-toggle:hover {
    background-color: rgba(15, 118, 110, 0.05);
    color: #0f766e;
}

.member-nav-dropdown-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.member-nav-dropdown.active .member-nav-dropdown-arrow {
    transform: rotate(180deg);
}

.member-nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(0, 0, 0, 0.02);
}

.member-nav-dropdown.active .member-nav-submenu {
    max-height: 250px;
}

.member-nav-sublink {
    display: block;
    padding: 12px 20px 12px 58px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    /* 🚀 优化：明确属性 */
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.member-nav-sublink:hover {
    background-color: rgba(15, 118, 110, 0.05);
    color: #0f766e;
    padding-left: 62px;
}

.member-nav-sublink.active {
    background-color: rgba(15, 118, 110, 0.08);
    color: #0f766e;
    font-weight: 600;
}

/* 遮罩层 */
.drawer-overlay, .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    /* 🚀 优化：遮罩层动画加快 0.3s → 0.15s */
    transition: opacity 0.15s ease, visibility 0.15s ease;
    /* 硬件加速 */
    will-change: opacity;
    transform: translateZ(0);
}

.drawer-overlay.active, .menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Body状态类 - 用于控制滚动 */
body.menu-open,
body.drawer-open {
    overflow: hidden;
}

/* 屏幕小于1250px时，头部容器保持至少20px边距 */
@media screen and (max-width: 1350px) {
    .nav .layui-container {
        padding: 0 20px !important;
    }
}

/* 桌面端布局 - 大于960px */
@media screen and (min-width: 1350px) {
    .nav-logo {
        order: 1;
        justify-content: flex-start;
        margin: 0 !important;
        position: relative !important;
        left: -9px !important;
        transform: none !important;
    }
    
    .main-nav {
        order: 2;
        justify-content: center;
    }
    
    .user-area {
        order: 3;
        justify-content: flex-end;
    }
    
    .nav .layui-container {
        justify-content: space-between;
        width: 100%;
    }
}

/* ========================================
   移动端布局 - 全屏覆盖式菜单（优化版）
   ======================================== */
@media screen and (max-width: 960px) {
    .nav-logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 990;
        max-width: calc(100% - 180px) !important;
        pointer-events: auto !important;
    }
    
    .nav-logo img {
        max-height: 48px !important;
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }
    
    .menu-toggle {
        display: block;
        position: relative;
        order: 1;
        left: 0;
        margin-right: auto;
        z-index: 10001;
        flex-shrink: 0;
    }
    
    .user-area {
        order: 3;
        margin-left: auto;
        margin-right: 0;
        position: relative;
        z-index: 1001;
        flex-shrink: 0;
    }
    
    .user-links {
        display: flex !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }
    
    .user-links a {
        white-space: nowrap !important;
    }
    
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* ========================================
       全屏覆盖菜单 - 居中 + 自上而下展开与入场
       ======================================== */
    .main-nav {
        position: fixed !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 0 !important;
        background: var(--color-bg-base, #ffffff) !important;
        /* 顶缘极轻分隔，避免与白底顶栏硬切 */
        box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.04) !important;
        z-index: 10000 !important;
        overflow: hidden !important;
        padding: 0 !important;
        transition: height 0.38s cubic-bezier(0.22, 1, 0.36, 1) !important;
    }
    
    .main-nav.active {
        height: 100vh !important;
        height: 100dvh !important;
        overflow: hidden !important;
    }
    
    /* 菜单列表：垂直水平居中；整体自上落下 */
    .main-nav ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        list-style: none !important;
        margin: 0 !important;
        padding: max(36px, calc(22px + env(safe-area-inset-top, 0px))) 20px max(40px, calc(26px + env(safe-area-inset-bottom, 0px))) !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        box-sizing: border-box !important;
        position: relative;
        gap: 2px !important;
        overflow: hidden !important;
        opacity: 0 !important;
        transform: translateY(-28px) !important;
        transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1) !important;
        transition-delay: 0s !important;
    }
    
    .main-nav.active ul {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition-delay: 0.06s !important;
    }
    
    /* 顶部品牌（与原先风格一致） */
    .main-nav ul::before {
        content: '声 匠' !important;
        display: block !important;
        position: absolute !important;
        top: max(14px, env(safe-area-inset-top, 0px)) !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(-18px) !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: var(--color-text-tertiary, #a1a1aa) !important;
        letter-spacing: 6px !important;
        padding-bottom: 8px !important;
        border-bottom: 1px solid var(--color-border-light, #e4e4e7) !important;
        width: 64px !important;
        text-align: center !important;
        opacity: 0 !important;
        transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
        transition-delay: 0s !important;
    }
    
    .main-nav.active ul::before {
        opacity: 1 !important;
        transform: translateX(-50%) translateY(0) !important;
        transition-delay: 0.1s !important;
    }
    
    /* 底部域名 */
    .main-nav ul::after {
        content: 'sound.ren' !important;
        display: block !important;
        position: absolute !important;
        bottom: max(18px, calc(8px + env(safe-area-inset-bottom, 0px))) !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(16px) !important;
        font-size: 11px !important;
        color: var(--color-text-tertiary, #a1a1aa) !important;
        letter-spacing: 2px !important;
        font-weight: 500 !important;
        opacity: 0 !important;
        transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
        transition-delay: 0s !important;
    }
    
    .main-nav.active ul::after {
        opacity: 1 !important;
        transform: translateX(-50%) translateY(0) !important;
        transition-delay: 0.28s !important;
    }
    
    .main-nav li {
        display: block !important;
        width: auto !important;
        margin: 0 !important;
        text-align: center !important;
        opacity: 0 !important;
        transform: translateY(-22px) !important;
        transition: opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) !important;
    }
    
    .main-nav.active li {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    /* 自上而下依次出现（在 ul 整体入场之后） */
    .main-nav.active li:nth-child(1) { transition-delay: 0.12s !important; }
    .main-nav.active li:nth-child(2) { transition-delay: 0.17s !important; }
    .main-nav.active li:nth-child(3) { transition-delay: 0.22s !important; }
    .main-nav.active li:nth-child(4) { transition-delay: 0.27s !important; }
    .main-nav.active li:nth-child(5) { transition-delay: 0.32s !important; }
    .main-nav.active li:nth-child(6) { transition-delay: 0.37s !important; }
    
    /* ========================================
       导航链接 - 居中胶囊（紧凑仍保留可点区域）
       ======================================== */
    .main-nav .nav-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 40px !important;
        padding: 6px 28px !important;
        box-sizing: border-box !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        font-family: var(--font-sans) !important;
        color: var(--color-text-secondary, #52525b) !important;
        text-decoration: none !important;
        background: transparent !important;
        border: none !important;
        border-radius: 50px !important;
        transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease !important;
        letter-spacing: 0.08em !important;
        white-space: nowrap !important;
        position: relative;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        cursor: pointer;
    }
    
    .main-nav .nav-link:hover {
        color: var(--color-text-primary, #000000) !important;
        background: var(--color-bg-hover, #f4f4f5) !important;
    }
    
    .main-nav .nav-link:focus-visible {
        outline: 2px solid var(--color-primary, #0f766e) !important;
        outline-offset: 2px !important;
    }
    
    /* 当前页：轻量高亮（非大块绿底），与 PC 下划线逻辑呼应 */
    .main-nav .nav-link.active {
        color: var(--color-primary, #0f766e) !important;
        background: var(--color-primary-muted, rgba(15, 118, 110, 0.08)) !important;
        font-weight: 700 !important;
        box-shadow: none !important;
    }
    
    .main-nav .nav-link.active:hover {
        color: var(--color-primary-hover, #115e59) !important;
        background: rgba(15, 118, 110, 0.12) !important;
    }
    
    .main-nav .nav-link:active {
        transform: scale(0.97);
        background: var(--color-bg-gray, #fafafa) !important;
    }
    
    .main-nav .nav-link.active:active {
        background: rgba(15, 118, 110, 0.16) !important;
        transform: scale(0.97);
    }
    
    /* 移动端隐藏图标（与原先一致） */
    .nav-icon {
        display: none !important;
    }
    
    .main-nav .nav-link::before {
        display: none !important;
    }
    
    /* 当前项底部短划線（替代实心胶囊） */
    .main-nav .nav-link::after {
        content: '' !important;
        display: block !important;
        position: absolute !important;
        bottom: 4px !important;
        left: 50% !important;
        width: 30px !important;
        height: 2px !important;
        border-radius: 2px !important;
        background: var(--color-primary, #0f766e) !important;
        opacity: 0 !important;
        transform: translateX(-50%) scaleX(0.2) !important;
        transform-origin: center !important;
        transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
        pointer-events: none !important;
    }
    
    .main-nav .nav-link.active::after {
        opacity: 1 !important;
        transform: translateX(-50%) scaleX(1) !important;
    }
    
    /* 遮罩层隐藏 */
    .menu-overlay {
        display: none !important;
    }
    
    .nav .layui-container {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
    }
}

/* 减少动态效果：缩短时长、取消阶梯延迟，不改动居中 transform */
@media screen and (max-width: 960px) and (prefers-reduced-motion: reduce) {
    .main-nav {
        transition-duration: 0.22s !important;
    }
    
    .main-nav ul,
    .main-nav ul::before,
    .main-nav ul::after,
    .main-nav li {
        transition-duration: 0.12s !important;
    }
    
    .main-nav.active ul {
        transition-delay: 0.02s !important;
    }
    
    .main-nav.active ul::before {
        transition-delay: 0.02s !important;
    }
    
    .main-nav.active ul::after {
        transition-delay: 0.05s !important;
    }
    
    .main-nav.active li:nth-child(1),
    .main-nav.active li:nth-child(2),
    .main-nav.active li:nth-child(3),
    .main-nav.active li:nth-child(4),
    .main-nav.active li:nth-child(5),
    .main-nav.active li:nth-child(6) {
        transition-delay: 0s !important;
    }
}

/* 移动端深色（body.dark-mode）已迁移至 css/web/dark-mode-unified.css */


/* ========================================
   浅色主题 CSS 变量（:root）
   暗黑模式覆盖已统一在 dark-mode-unified.css（body.dark-mode）
   ======================================== */

/* CSS变量定义 - 专业统一配色 */
:root {
    /* 导航栏高度 - 全局统一 */
    --nav-height: 60px;
    
    /* 基础色 */
    --bg-color: #FFFFFF;
    --text-color: #171717;
    --card-bg: #FFFFFF;
    --border-color: #ebebeb;
    --header-bg: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.04);
    
    --primary-color: #0d9488;
    --primary-hover: #0f766e;
    --primary-light: rgba(13, 148, 136, 0.1);
    --hover-bg: rgba(13, 148, 136, 0.06);
    
    --secondary-color: #0284c7;
    --secondary-hover: #0369a1;
    
    --drawer-bg: #FFFFFF;
    --drawer-header-bg: #f5f5f5;
    --input-bg: #FFFFFF;
    --input-text: #171717;
    --input-border: #ebebeb;
    --btn-primary-bg: #0d9488;
    --btn-primary-text: #FFFFFF;
    --btn-default-bg: #f5f5f5;
    --btn-default-text: #171717;
    --table-header-bg: #f5f5f5;
    --table-border: #ebebeb;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.04);
    --divider-color: #ebebeb;
    
    --link-color: #0d9488;
    --link-hover: #0f766e;
    
    --overlay-bg: rgba(255, 255, 255, 0.96);
    
    --success-color: #0d9488;
    --warning-color: #b45309;
    --error-color: #b91c1c;
    --info-color: #1d4ed8;
}


/* ========================================
   下拉菜单移动端适配
   ======================================== */
@media screen and (max-width: 768px) {
    .user-dropdown {
        position: fixed;
        top: 60px;
        right: 10px;
        min-width: 280px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        border-radius: 16px;
    }
    
    .user-dropdown::before {
        right: 20px;
    }
    
    .dropdown-user-info::before {
        right: 20px;
    }
    
    .dropdown-user-info {
        padding: 20px;
    }
    
    .dropdown-avatar {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
    
    #dropdown-display-name {
        font-size: 1.8rem;
    }
    
    .dropdown-link {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .dropdown-link svg {
        width: 22px;
        height: 22px;
    }
    
    .dropdown-sublink {
        padding: 12px 20px 12px 54px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .user-dropdown {
        right: 5px;
        min-width: 260px;
        max-width: calc(100vw - 10px);
    }
    
    .user-dropdown::before {
        right: 18px;
    }
    
    .dropdown-user-info::before {
        right: 18px;
    }
}

/* ========================================
   全局导航栏间距自适应
   确保所有页面内容都不会被导航栏遮挡
   ======================================== */

/* 主容器 - 避开导航栏 */
body > .Whole,
.Whole {
    padding-top: var(--nav-height, 60px) !important;
    margin-top: 0 !important;
    font-size: 14px;
    line-height: 1.6;
    clear: both;
}

/* 内容区 - 统一内边距 */
.Whole > .Content,
.Whole > .content,
.Whole > .main-content,
.Whole > .page-content,
.Whole > .content-wrapper,
.Whole > .content-container,
.Whole > .content-main,
.Whole > .main-container,
.Whole > #content,
.Whole > #main-content,
.Content,
.content {
    padding-top: 8px !important;
}

/* 兜底规则：body 直接子元素 */
body > .Content,
body > .content,
body > .main-content,
body > .page-content,
body > .Login,
body > .main-container:not(.Whole) {
    margin-top: var(--nav-height, 60px);
    padding-top: 8px !important;
}

/* 强制隐藏 body 中不应该出现的 head 元素 */
body > meta,
body > link,
body > script,
body > style {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
}


