body {
            margin: 0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            background-color: #181c24;
        }

        /* 固定背景层：独立图层，避免 background-attachment: fixed 造成滚动卡顿 */
        .page-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
            background: #181c24 url('../images/optimized/web/dsc08853.jpg') center/cover no-repeat;
            pointer-events: none;
        }
        /* 基础重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        
        /* 导航栏样式 */
        .nav {
            width: 90%;
            max-width: 1200px;
            padding: 15px 0;
            background: rgba(25, 118, 210, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 3;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        }

        .nav ul {
            display: flex;
            justify-content: space-around;
            align-items: center;
            list-style: none;
            flex: 1;
            padding: 0;
            margin: 0;
        }

        .nav a {
            color: rgba(255, 255, 255, 0.95) !important;
            text-decoration: none;
            font-size: 18px;
            padding: 10px 25px;
            transition: all 0.3s ease;
            border-radius: 8px;
        }

        .nav a:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
        }

        .nav-box {
            position: absolute;
            bottom: 0;
            height: 3px;
            width: 25%;
            background: #11c455;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 2px;
        }

        /* 内容区域 */
        .content-section {
            margin-top: 100px;
            padding: 40px 20px;
            min-height: calc(100vh - 100px);
            width: 100%;
        }

        /* 毛玻璃容器 */
        .frosted-box {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(15px);
            border-radius: 12px;
            padding: 60px;
            margin: 70px auto;
            max-width: 1200px;
            box-shadow: 0 8px 72px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease;
            display: flex;
            align-items: center;
            gap: 60px;
        }

        .frosted-box.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* 团队介绍布局 */
        .team-image {
            flex: 0 0 45%;
            height: 500px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }

        .team-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .team-content {
            flex: 1;
            padding: 20px;
        }

        .team-content h2 {
            font-size: 2.8rem;
            margin-bottom: 2rem;
            color: #fff;
            text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
            letter-spacing: 0.1em;
        }

        .team-description {
            font-size: 1.2rem;
            line-height: 1.8;
            color: rgba(255, 255, 255, 0.97);
            text-align: justify;
            background: rgba(0, 0, 0, 0.15);
            padding: 25px;
            border-radius: 15px;
        }

        /* 响应式设计 */
        @media (max-width: 1200px) {
            .frosted-box {
                flex-direction: column;
                padding: 40px;
                gap: 40px;
                border-radius: 40px;
            }

            .team-image {
                flex: none;
                width: 100%;
                height: 400px;
            }

            .team-content {
                width: 100%;
                padding: 0;
            }

            .team-content h2 {
                font-size: 2.4rem;
                text-align: center;
            }

            .team-description {
                font-size: 1.1rem;
            }
        }

        @media (max-width: 768px) {
            .frosted-box {
                padding: 30px;
                margin: 40px auto;
                border-radius: 30px;
            }

            .team-image {
                height: 300px;
            }

            .team-content h2 {
                font-size: 2rem;
            }

            .team-description {
                font-size: 1rem;
                padding: 20px;
            }
        }

        @media (max-width: 480px) {
            .team-image {
                height: 250px;
            }

            .team-content h2 {
                font-size: 1.8rem;
            }

            .team-description {
                font-size: 0.95rem;
                padding: 15px;
            }
        }
        .nav {
    width: 90%;
    max-width: 1200px;
    padding: 15px 0;
    /* 修改背景为透明磨砂效果 */
    background: rgba(247, 251, 255, 0.945); /* 降低不透明度 */
    backdrop-filter: blur(20px); /* 增强模糊效果 */
    border: 1px solid rgba(255, 255, 255, 0.2); /* 添加半透明白色边框 */
    border-radius: 12px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* 调整阴影透明度 */
}

/* 导航链接颜色优化 */
.nav a {
    color: rgba(255, 255, 255, 0.9) !important; /* 稍微降低文字亮度 */
    text-decoration: none;
    font-size: 18px;
    padding: 10px 25px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

/* 悬停效果调整 */
.nav a:hover {
    background: rgba(255, 255, 255, 0.15); /* 更淡的悬停背景 */
    transform: translateY(-2px);
}

/* 指示条颜色调整 */
.nav-box {
    background: rgba(255, 255, 255, 0.2); /* 半透明白色指示条 */
}
/* 修改后的导航栏样式 */
.nav {
    width: 90%;
    max-width: 1200px;
    height: 72px;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    /* 核心改造：三重透明磨砂效果 */
    background: linear-gradient(
        to right,
        rgba(223, 226, 228, 0.3),
        rgba(223, 226, 228, 0.3)
    ); /* 双色渐变增强层次 */
    backdrop-filter: blur(25px); /* 强化模糊强度 */
    -webkit-backdrop-filter: blur(25px); /* 兼容Safari */
    border: 1px solid rgba(255, 255, 255, 0.15); /* 更细腻的边框 */
    border-radius: 12px; /* 圆角微调 */
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 0 12px rgba(255, 255, 255, 0.05); /* 内发光增强层次 */
}

/* 导航链接颜色优化 */
.nav a {
    color: rgba(255, 255, 255, 0.85) !important; /* 提升文字对比度 */
    text-decoration: none;
    font-size: 20px;
    line-height: 1.4;
    padding: 12px 28px; /* 增大点击区域 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px; /* 与导航栏圆角匹配 */
    position: relative;
    overflow: hidden;
}

/* 悬停动态效果 */
.nav a:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    ); /* 更细腻的渐变 */
    transform: translateY(-2px) scale(1.02); /* 添加微放大效果 */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* 增强文字立体感 */
}

/* 活动状态指示条 */
.nav-box {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.3)
    ); /* 渐变指示条 */
    backdrop-filter: blur(15px); /* 保持与导航栏一致的模糊度 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}
/* 新增全屏滚动样式 */
        html {
            scroll-behavior: smooth;
            overflow: auto; /* 允许页面正常滚动，修复导航锚点与子菜单交互问题 */
        }

        .scroll-container {
            height: 100vh;
            overflow-y: scroll;
            scroll-snap-type: y mandatory;
        }

        .content-section {
            min-height: 100vh;
            height: auto;
            scroll-snap-align: start;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 116px 20px 24px;
            position: relative;
            margin-top: 0;
        }

        .content-section .frosted-box {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* 初始状态：内容已渲染但不可见 */
        .content-section .frosted-box {
            opacity: 0;
            transform: scale(0.98);
            transition: opacity 1s ease, transform 1s ease;
        }

        /* 进入视口后：磨砂透明和内容一起淡化出现 */
        .content-section.visible .frosted-box {
            opacity: 1;
            transform: scale(1);
        }

        /* 禁用默认滚动条 */
        ::-webkit-scrollbar {
            display: none;
        }

        /* PPT式淡入动画 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInScale {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .fade-in-up {
            animation: fadeInUp 1s ease forwards;
        }

        .fade-in-scale {
            animation: fadeInScale 1s ease forwards;
        }
        /* 部门架构样式 */
    .department-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-top: 40px;
    }

    .department-card {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(12px);
        border-radius: 12px;
        padding: 30px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        transition: all 0.3s ease;
        min-height: 300px;
        display: flex;
        flex-direction: column;
    }

    .department-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .department-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
    }

    .department-title {
        font-size: 1.5rem;
        color: #fff;
        margin-bottom: 15px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .department-description {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.6;
    }

    @media (max-width: 1200px) {
        .department-grid {
            grid-template-columns: 1fr;
            max-width: 600px;
            margin: 30px auto;
        }
        
        .department-card {
            min-height: auto;
            padding: 25px;
        }
    }
    /* 在.frosted-box中添加全局文字颜色 */
.frosted-box {
    color: #fff; /* 新增全局文字颜色 */
    /* 原有其他样式保持不变 */
}

/* 修正部门卡片的文字颜色 */
.department-card {
    background: rgba(255, 255, 255, 0.08);
    color: #fff; /* 新增卡片文字颜色 */
}

.department-description {
    color: rgba(255, 255, 255, 0.9) !important; /* 增强对比度 */
}

/* 修正导航栏文字颜色 */
.nav a {
    color: rgba(255, 255, 255, 0.95) !important; 
}

/* 新增全局文字阴影保证可读性 */
body {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 修正团队介绍文字样式 */
.team-description {
    color: rgba(255, 255, 255, 0.97) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
        /* Logo主题切换按钮样式 */
        .theme-toggle {
            position: relative;
            display: flex;
            align-items: center;
        }

        .theme-logo {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
        }

        .theme-logo:hover {
            transform: scale(1.1) rotate(15deg);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.6);
        }

        .theme-logo svg {
            width: 22px;
            height: 22px;
            fill: white;
            transition: transform 0.5s ease;
        }

        .theme-logo:hover svg {
            transform: rotate(360deg);
        }

        /* 主题下拉菜单 */
        .theme-menu {
            position: absolute;
            top: calc(100% + 10px);
            left: 0;
            min-width: 200px;
            background: linear-gradient(
                to bottom,
                rgba(223, 226, 228, 0.95),
                rgba(200, 203, 206, 0.95)
            );
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 12px;
            padding: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 100000;
        }

        .theme-menu.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .theme-menu-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 14px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #333;
            font-size: 14px;
            margin-bottom: 6px;
        }

        .theme-menu-item:last-child {
            margin-bottom: 0;
        }

        .theme-menu-item:hover {
            background: rgba(255, 255, 255, 0.5);
        }

        .theme-menu-item.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .theme-menu-item .icon {
            margin-right: 10px;
            font-size: 18px;
        }

        /* 开关样式 */
        .switch {
            position: relative;
            width: 42px;
            height: 24px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 12px;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .switch.on {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .switch::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            transition: transform 0.3s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .switch.on::after {
            transform: translateX(18px);
        }

        /* 分隔线 */
        .theme-divider {
            height: 1px;
            background: rgba(0, 0, 0, 0.1);
            margin: 8px 0;
        }

        /* 深色模式样式 - 背景变暗 */
        body.dark-mode::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: -1;
            pointer-events: none;
        }

        body.dark-mode .nav {
            background: linear-gradient(
                to right,
                rgba(30, 30, 40, 0.8),
                rgba(30, 30, 40, 0.8)
            );
            border-color: rgba(255, 255, 255, 0.1);
        }

        body.dark-mode .nav a {
            color: rgba(255, 255, 255, 0.9) !important;
        }

        body.dark-mode .submenu {
            background: linear-gradient(
                to bottom,
                rgba(30, 30, 40, 0.95),
                rgba(40, 40, 50, 0.95)
            );
            border-color: rgba(255, 255, 255, 0.15);
        }

        body.dark-mode .submenu a {
            color: rgba(255, 255, 255, 0.9) !important;
        }

        body.dark-mode .theme-menu {
            background: linear-gradient(
                to bottom,
                rgba(40, 40, 50, 0.95),
                rgba(30, 30, 40, 0.95)
            );
            border-color: rgba(255, 255, 255, 0.15);
        }

        body.dark-mode .theme-menu-item {
            color: rgba(255, 255, 255, 0.9);
        }

        body.dark-mode .theme-menu-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        body.dark-mode .theme-divider {
            background: rgba(255, 255, 255, 0.1);
        }

        body.dark-mode .frosted-box,
        body.dark-mode .department-card {
            background: rgba(30, 30, 40, 0.8);
            border-color: rgba(255, 255, 255, 0.1);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        body.dark-mode .theme-logo {
            background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
        }

        body.dark-mode .theme-logo svg {
            fill: #1a1a2e;
        }

        /* 下拉菜单样式 */
        .dropdown {
            position: relative;
        }

        .dropdown > a::after {
            content: '';
            margin-left: 8px;
        }
     .submenu {
       
            /* 竖向排列（默认），更明显的透明磨砂风 */
            display: flex;
            flex-direction: column;
            gap: 8px;
            position: absolute;
            top: calc(100% + 28px);
            left: 0;
            transform: translateY(0);
            transition: transform 0.18s ease, opacity 0.18s ease;
            opacity: 0;
            pointer-events: none;
            background: linear-gradient(
                to right,
                rgba(223, 226, 228, 0.5),
                rgba(223, 226, 228, 0.5)
            );
            backdrop-filter: blur(40px);
            -webkit-backdrop-filter: blur(40px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            padding: 8px 4px;
            min-width: 180px;
            white-space: normal;
            box-shadow: 
                0 4px 20px rgba(0, 0, 0, 0.1),
                inset 0 0 12px rgba(255, 255, 255, 0.05);
            z-index: 99999;
        }

        .submenu a {
            color: rgba(255,255,255,0.95);
            padding: 10px 14px;
            border-radius: 6px;
            text-decoration: none;
            transition: background 0.16s ease, color 0.12s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            height: 40px;
        }

        .submenu a:hover,
        .submenu a:focus {
            background: rgba(255,255,255,0.06);
            color: #ffffff;
        }

        .submenu li {
            list-style: none;
        }



        /* 用 .open 类控制子菜单显示，配合下面的 JS 管理延迟，避免误触 */
        .dropdown.open .submenu {
            transform: translateY(0);
            opacity: 1;
            pointer-events: auto;
        }

        /* 小屏幕回退为竖排 */
        @media (max-width: 768px) {
            .submenu { left: 0; }
        }

        /* ===== 深色模式过渡遮罩 ===== */
        .theme-transition-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #1a1a2e;
            z-index: 999999;
            pointer-events: none;
            clip-path: inset(0 100% 0 0);
            transition: clip-path 0.6s ease-in-out;
        }

        .theme-transition-overlay.active {
            clip-path: inset(0 0 0 0);
        }

        .theme-transition-overlay.leaving {
            clip-path: inset(0 0 0 100%);
        }

        /* ===== 全站文字格式统一：字体 / 标题 / 正文 ===== */
        html,
        body {
            font-family: '微软雅黑', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif !important;
            font-size: 18px;
            line-height: 1.8;
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-family: inherit !important;
            font-size: 32px !important;
            line-height: 1.4 !important;
        }

        p,
        li,
        dd,
        dt,
        td,
        th {
            font-family: inherit !important;
            font-size: 18px !important;
            line-height: 1.8 !important;
        }

        /* ===== 全站导航栏颜色统一 ===== */
        .nav {
            background: rgba(243, 243, 243, 0.85) !important;
            backdrop-filter: blur(30px) saturate(150%) !important;
            -webkit-backdrop-filter: blur(30px) saturate(150%) !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
        }

        .nav a {
            color: #1a1a1a !important;
        }

        .nav a:hover {
            background: rgba(0, 0, 0, 0.05) !important;
        }

        .nav-box {
            background: #FFD600 !important;
            box-shadow: 0 0 8px rgba(255, 214, 0, 0.35) !important;
        }

        .submenu {
            background: rgba(249, 249, 249, 0.92) !important;
            backdrop-filter: blur(40px) saturate(150%) !important;
            -webkit-backdrop-filter: blur(40px) saturate(150%) !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
        }

        .submenu a {
            color: #1a1a1a !important;
        }

        .submenu a:hover {
            background: rgba(0, 0, 0, 0.05) !important;
        }

        /* ===== 内容模块背景统一为 Windows 浅色模式 ===== */
        .frosted-box {
            background: rgba(243, 243, 243, 0.85) !important;
            backdrop-filter: blur(12px) !important;
            -webkit-backdrop-filter: blur(12px) !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
            color: #1a1a1a !important;
        }

        .frosted-box h1,
        .frosted-box h2,
        .frosted-box h3,
        .frosted-box h4 {
            color: #1f2d3d !important;
        }

        /* 所有段落首行空两格 */
        .content-section p {
            text-indent: 2em;
        }

        /* 联系方式卡片内的单行信息不需要缩进 */
        #contact .department-description {
            text-indent: 0;
        }

        .frosted-box p,
        .frosted-box li,
        .frosted-box span,
        .frosted-box strong,
        .frosted-box em,
        .frosted-box td,
        .frosted-box th,
        .frosted-box a {
            color: #2c3e50 !important;
        }

        /* 团队作品：优化两张卡片的字体与行距，避免末行过短 */
        #works .department-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        #works .department-card h1 {
            font-size: 24px !important;
            line-height: 1.4;
        }

        #works .department-card p {
            font-size: 16px !important;
            line-height: 1.8 !important;
            letter-spacing: 0.2px;
            text-wrap: pretty;
        }

        @media (max-width: 1200px) {
            #works .department-grid {
                grid-template-columns: 1fr;
            }

            #contact .department-grid {
                grid-template-columns: 1fr;
                max-width: 600px;
                margin: 30px auto;
            }
        }

        /* ===== 联系方式 / 网站介绍 ===== */
        #contact .department-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        #contact .department-card {
            min-height: auto;
            padding: 28px 30px;
        }

        .info-stack {
            display: grid;
            gap: 18px;
            margin-top: 34px;
            font-size: 18px;
            line-height: 1.9;
        }

        .info-row {
            display: flex;
            gap: 12px;
            padding: 18px 24px;
            background: rgba(255, 255, 255, 0.65);
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 14px;
        }

        .info-row b {
            color: #1f2d3d;
            white-space: nowrap;
        }

        .info-stack ul {
            margin: 0;
            padding-left: 22px;
        }
