/* 基础重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            height: 100%;
            overflow: hidden;
            font-family: '微软雅黑', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
            font-size: 18px;
        }

        /* 统一首页标题字号 */
        h1, h2, h3 {
            font-size: 32px !important;
        }

        /* 首页主标语字号 */
        .tribute-text {
            font-size: 56px !important;
        }

        /* 统一首页正文字号 */
        p, li,
        .side-card, .content-card {
            font-size: 18px !important;
            line-height: 1.8 !important;
        }

        button {
            font-family: inherit;
        }

        /* 滚动容器 */
        .scroll-container {
            height: 100vh;
            overflow-y: auto;
            scroll-snap-type: y mandatory;
        }

        /* 视频容器 */
        .hero-section {
            height: 100vh;
            position: relative;
            scroll-snap-align: center;
        }

        /* 首页背景幻灯片 */
        .hero-slideshow {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 0;
        }

        .hero-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity 1s ease;
        }

        .hero-slide.active {
            opacity: 1;
        }

        /* 遮罩：保证背景上的文字可读 */
        .hero-dim {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.3) 100%);
            opacity: 1;
            z-index: 1;
            pointer-events: none;
        }

        /* 首屏下滑提示 */
        .hero-scroll-hint {
            position: absolute;
            left: 50%;
            bottom: 26px;
            transform: translateX(-50%);
            z-index: 2;
            color: rgba(255, 255, 255, 0.85);
            font-size: 24px;
            line-height: 1;
            animation: hintBounce 1.8s ease-in-out infinite;
            pointer-events: none;
        }

        @keyframes hintBounce {
            0%, 100% {
                transform: translate(-50%, 0);
            }
            50% {
                transform: translate(-50%, 8px);
            }
        }

        /* 首屏背景切换按钮 */
        .hero-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 3;
            width: 52px;
            height: 52px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255, 255, 255, 0.28);
            border-radius: 50%;
            background: rgba(20, 22, 30, 0.35);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            color: #fff;
            font-size: 26px;
            line-height: 1;
            cursor: pointer;
            transition: background 0.3s ease, transform 0.3s ease;
        }

        .hero-prev {
            left: 28px;
        }

        .hero-next {
            right: 28px;
        }

        .hero-nav:hover {
            background: rgba(20, 22, 30, 0.6);
            transform: translateY(-50%) scale(1.06);
        }

        @media (max-width: 768px) {
            .hero-nav {
                width: 42px;
                height: 42px;
                font-size: 22px;
            }

            .hero-prev {
                left: 12px;
            }

            .hero-next {
                right: 12px;
            }
        }

        /* 校训校规 */
        .motto-section {
            position: relative;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 110px 20px 50px;
            box-sizing: border-box;
            background: url('../images/DSC08853.JPG') center/cover no-repeat fixed;
            scroll-snap-align: center;
        }

        .motto-card {
            width: min(960px, 100%);
            background: rgba(243, 243, 243, 0.85);
            backdrop-filter: blur(30px) saturate(150%);
            -webkit-backdrop-filter: blur(30px) saturate(150%);
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 20px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
            padding: 56px 48px;
            text-align: center;
        }

        .motto-label {
            margin: 0 0 16px;
            color: #55606b !important;
            font-size: 15px !important;
            letter-spacing: 6px;
            line-height: 1.4 !important;
        }

        .motto-title {
            margin: 0 0 26px;
            color: #1f2d3d !important;
            font-size: clamp(28px, 4.4vw, 52px) !important;
            font-weight: 700;
            letter-spacing: 4px;
            line-height: 1.3 !important;
        }

        .motto-rules {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 12px 16px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .motto-rules li {
            padding: 10px 22px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.75);
            border: 1px solid rgba(0, 0, 0, 0.07);
            color: #2c3e50 !important;
            font-size: 16px !important;
            line-height: 1.4 !important;
        }

        @media (max-width: 768px) {
            .motto-card {
                padding: 32px 22px;
            }

            .motto-rules li {
                font-size: 14px !important;
                padding: 8px 14px;
            }
        }

        /* 导航栏样式（与团队介绍一致） */
        .nav {
            width: 90%;
            max-width: 1200px;
            height: 72px;
            padding: 0 20px;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.1) !important;
            backdrop-filter: blur(12px) saturate(180%);
            -webkit-backdrop-filter: blur(12px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10000;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .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: 20px;
            line-height: 1.4;
            padding: 12px 28px;
            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: #FFD600; /* 活力黄指示条 */
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 2px;
        }

        /* 打字机效果 */
        .tribute-container {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            z-index: 2;
        }

        .tribute-text {
            font-size: 56px;
            font-weight: 600;
            color: #fff !important;
            text-shadow: 0 4px 15px rgba(0,0,0,0.3);
            font-family: '微软雅黑', sans-serif;
            overflow: hidden;
            white-space: nowrap;
            animation: 
                typing 3s steps(15, end) forwards,
                blink 1s step-end infinite;
        }

        /* 主要内容区域 */
        .main-content {
            position: relative;
            z-index: 1;
            height: 100vh;
            scroll-snap-align: center;
            background: #f8f9fa url('../images/DSC08853.JPG') center center/cover no-repeat;
            padding: 120px 20px 60px 20px; /* 顶部加大，底部适中，整体下移 */
            display: flex;
            align-items: center; /* 垂直居中 */
            justify-content: center;
            gap: 32px;
        }

        .content-card {
            max-width: 1200px;
            background: rgba(255,255,255,0.18) !important; /* 透明磨砂 */
            border-radius: 16px;
            padding: 40px;
            box-shadow: 0 12px 40px rgba(0,0,0,0.1);
            color: #2c3e50;
            will-change: transform, opacity;
            z-index: 100;
        }
        
        /* 新增三框样式 */
.main-content { gap: 32px; }
.side-card, .content-card {
    flex: 0 1 500px;
    min-width: 280px;
    max-width: 380px;
    height: 70vh; /* 与.content-card高度一致 */
    max-height: 600px;
    background: rgba(30, 30, 40, 0.45); /* 调暗的磨砂背景 */
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    color: #2c3e50;
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.15);
    will-change: backdrop-filter, opacity, transform;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 18px;
    box-sizing: border-box;
    overflow: hidden;
    opacity: 0.95; /* 轻微透明 */
}

/* 统一卡片内标题和文字颜色 */
.side-card h1, .side-card h2,
.content-card h1, .content-card h2 {
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.side-card p, .side-card li,
.content-card p, .content-card li {
    color: #2c3e50;
}
.content-card { align-items: flex-start; justify-content: flex-start; }
.left-card { order: 0; }
.content-card { order: 1; }
.right-card { order: 2; }
.log-scroll { flex: 1; width: 100%; overflow-y: auto; max-height: 140px; margin-top: 8px; padding-right: 4px; }
@media (max-width: 1100px) {
    .main-content {
        flex-direction: column;
        gap: 18px;
        padding: 100px 8px 40px 8px; /* 移动端也适当下移 */
    }
    .side-card, .content-card {
        width: 100%; min-width: 0; max-width: 100%; margin: 0; height: 220px;
    }
}

/* 动画关键帧 */
        @keyframes typing {
            from { max-width: 0; opacity: 0; }
            to { max-width: 100%; opacity: 1; }
        }

        @keyframes blink {
            50% { border-color: transparent; }
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .nav {
                width: 95%;
                padding: 10px 0;
            }
            
            .nav a {
                font-size: 16px;
                padding: 8px 15px;
            }
            
            .tribute-text {
                font-size: 32px !important;
            }
        }
        /* 确保内容卡片可见性 */
.content-card {
    will-change: transform, opacity; /* 启用硬件加速 */
    z-index: 100; /* 确保在最上层 */
}

/* 修复滚动容器高度 */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* PPT式淡化动画 - 已由IntersectionObserver控制 */

/* 修复iOS滑动问题 */
@supports (-webkit-overflow-scrolling: touch) {
    .scroll-container {
        -webkit-overflow-scrolling: touch;
    }
}

/* 增强内容可见性 */
.main-content {
    position: relative;
    z-index: 1000; /* 确保在视频层上方 */
}



/* 美化网站介绍区块滚动条为透明磨砂风格 */
.side-card ul,
.content-card > div,
.log-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.35) rgba(255,255,255,0.08);
}
.side-card ul::-webkit-scrollbar,
.content-card > div::-webkit-scrollbar,
.log-scroll::-webkit-scrollbar {
    width: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
}
.side-card ul::-webkit-scrollbar-thumb,
.content-card > div::-webkit-scrollbar-thumb,
.log-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.12);
}
.side-card ul::-webkit-scrollbar-track,
.content-card > div::-webkit-scrollbar-track,
.log-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
}
/* 修改的主要内容区域样式 */
        .main-content {
            position: relative;
            z-index: 1;
            height: 100vh;
            scroll-snap-align: center;
            background: #f8f9fa url('../images/DSC08853.JPG') center center/cover no-repeat;
            padding: 20px; /* 简化padding */
            display: flex;
            align-items: center; /* 垂直居中 */
            justify-content: center; /* 水平居中 */
        }

        /* 新增居中容器 */
        .card-container {
            display: flex;
            align-items: center; /* 垂直居中 */
            justify-content: center; /* 水平居中 */
            gap: 32px;
            max-width: 1400px;
            width: 90%;
            margin: 0 auto;
            height: 100%; /* 继承父级高度 */
        }

        /* 调整卡片样式 - 初始隐藏状态 */
        .side-card, .content-card {
            flex: 0 1 500px;
            min-width: 280px;
            max-width: 380px;
            height: 70vh; /* 与.content-card高度一致 */
            max-height: 600px;
            background: rgba(255,255,255,0.18);
            border-radius: 16px;
            box-shadow: 0 6px 24px rgba(0,0,0,0.08);
            backdrop-filter: blur(10px) saturate(160%);
            border: 1px solid rgba(255,255,255,0.18);
            padding: 24px;
            margin: auto 0;
            display: flex;
            flex-direction: column;
            /* PPT式淡化动画初始状态 */
            opacity: 0;
            transform: scale(0.98);
            transition: opacity 1s ease, transform 1s ease;
        }

        .content-card {
            flex: 0 1 500px;
            height: 70vh; /* 稍高于两侧卡片 */
            max-height: 600px;
            padding: 24px;
        }

        /* 进入视口后显示 */
        .side-card.visible,
        .content-card.visible {
            opacity: 1;
            transform: scale(1);
        }

        /* 左侧卡片延迟出现 */
        .side-card.left-card {
            transition-delay: 0s;
        }

        /* 中间卡片同时出现 */
        .content-card {
            transition-delay: 0.15s;
        }

        /* 右侧卡片延迟出现 */
        .side-card.right-card {
            transition-delay: 0.3s;
        }

        /* 响应式调整 */
        @media (max-width: 1100px) {
            .card-container {
                flex-wrap: wrap;
                align-content: center; /* 多行垂直居中 */
                height: auto;
            }
            
            .side-card {
                height: 40vh;
                max-height: 300px;
            }
            
            .content-card {
                height: 50vh;
                max-height: 400px;
                order: -1;
            }
        }

        @media (max-width: 768px) {
            .side-card, .content-card {
                width: 100%;
                height: auto;
                max-height: none;
                min-height: 200px;
                /* 保持初始隐藏状态 */
                opacity: 0;
                transform: scale(0.98);
            }
            
            .side-card.visible,
            .content-card.visible {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* ===== 下拉菜单样式（与团队介绍完全一致） ===== */
        .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: rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(40px) saturate(180%);
            -webkit-backdrop-filter: blur(40px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            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 类控制子菜单显示 */
        .dropdown.open .submenu {
            transform: translateY(0);
            opacity: 1;
            pointer-events: auto;
        }

        /* 小屏幕回退为竖排 */
        @media (max-width: 768px) {
            .submenu { left: 0; }
        }

        /* ===== 主题切换按钮样式（与团队介绍一致） ===== */
        .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;
        }

        /* ===== 深色模式过渡遮罩 ===== */
        .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%);
        }

        /* ===== 深色模式样式 ===== */
        body.dark-mode {
            background: #0a0a1a;
            color: #e0e0e0;
        }

        /* 深色模式遮罩层 - 变暗视频背景 */
        body.dark-mode::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            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.95) !important;
        }

        body.dark-mode .submenu {
            background: rgba(30, 30, 50, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        body.dark-mode .content-card,
        body.dark-mode .side-card {
            background: rgba(30, 30, 50, 0.6) !important;
            color: #e0e0e0;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* 深色模式下统一卡片内文字颜色 */
        body.dark-mode .side-card h1,
        body.dark-mode .side-card h2,
        body.dark-mode .content-card h1,
        body.dark-mode .content-card h2,
        body.dark-mode .side-card p,
        body.dark-mode .side-card li,
        body.dark-mode .content-card p,
        body.dark-mode .content-card li {
            color: #e0e0e0;
        }

        body.dark-mode .main-content {
            background: #0a0a1a;
        }

        body.dark-mode .theme-menu {
            background: linear-gradient(
                to bottom,
                rgba(30, 30, 40, 0.95),
                rgba(25, 25, 35, 0.95)
            );
            border-color: rgba(255, 255, 255, 0.1);
        }

        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 .theme-logo {
            background: linear-gradient(135deg, #4a5fc1 0%, #5a3a8a 100%);
        }

        body.dark-mode .theme-logo svg {
            fill: #1a1a2e;
        }

        @media (max-width: 768px) {
            .theme-menu {
                left: 0;
            }
        }

        .countdown-window {
            position: fixed;
            inset: 0;
            z-index: 200000;
            display: grid;
            place-items: center;
            padding: 20px;
            background: rgba(10, 15, 30, 0.48);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            opacity: 1;
            transition: opacity 0.25s ease;
        }

        .countdown-window[hidden] {
            display: none;
        }

        .countdown-window.closing {
            opacity: 0;
        }

        .countdown-dialog {
            position: relative;
            width: min(100%, 420px);
            padding: 36px 30px 28px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 20px;
            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);
            box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
            color: #333;
            text-align: center;
            transform: translateY(0) scale(1);
            transition: transform 0.25s ease, background 0.3s ease, color 0.3s ease;
        }

        .countdown-window.closing .countdown-dialog {
            transform: translateY(10px) scale(0.97);
        }

        .countdown-dialog h2 {
            margin-bottom: 12px;
            font-size: 26px;
        }

        .countdown-dialog p {
            color: #647087;
            line-height: 1.7;
            transition: color 0.3s ease;
        }

        .countdown-number {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin: 24px 0;
        }

        .countdown-unit {
            display: grid;
            place-items: center;
            gap: 4px;
            min-width: 66px;
            padding: 12px 8px;
            border-radius: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            transition: background 0.3s ease;
        }

        .countdown-value {
            font-size: 25px;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
        }

        .countdown-label {
            font-size: 12px;
            opacity: 0.85;
        }

        @media (max-width: 420px) {
            .countdown-dialog {
                padding: 30px 18px 22px;
            }

            .countdown-number {
                gap: 6px;
            }

            .countdown-unit {
                min-width: 58px;
                padding: 10px 5px;
            }

            .countdown-value {
                font-size: 21px;
            }
        }

        .countdown-close {
            display: block;
            width: 100%;
            padding: 11px 18px;
            border: 0;
            border-radius: 10px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            font: inherit;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.2s ease;
        }

        .countdown-close:hover {
            background: linear-gradient(135deg, #5568d9 0%, #653f91 100%);
            transform: translateY(-1px);
        }

        .countdown-close:focus-visible {
            outline: 3px solid #aab5ff;
            outline-offset: 3px;
        }

        body.dark-mode .countdown-window {
            background: rgba(0, 0, 0, 0.62);
        }

        body.dark-mode .countdown-dialog {
            background: linear-gradient(
                to bottom,
                rgba(30, 30, 40, 0.95),
                rgba(25, 25, 35, 0.95)
            );
            border-color: rgba(255, 255, 255, 0.1);
            color: #e0e0e0;
        }

        body.dark-mode .countdown-dialog p {
            color: rgba(255, 255, 255, 0.72);
        }

        body.dark-mode .countdown-unit,
        body.dark-mode .countdown-close {
            background: linear-gradient(135deg, #4a5fc1 0%, #5a3a8a 100%);
        }

        body.dark-mode .countdown-close:hover {
            background: linear-gradient(135deg, #576ed2 0%, #68469a 100%);
        }

        body.dark-mode .countdown-close:focus-visible {
            outline-color: #8998ed;
        }

        @media (prefers-reduced-motion: reduce) {
            .countdown-window,
            .countdown-dialog,
            .countdown-dialog p,
            .countdown-unit,
            .countdown-close {
                transition: none;
            }
        }

        /* 更新日志自动滚动 */
        .log-viewport {
            flex: 1;
            min-height: 0;
            width: 100%;
            overflow: hidden;
        }

        .log-track {
            width: 100%;
            will-change: transform;
            transform: translate3d(0, 0, 0);
        }

        #changelog ul {
            width: 100%;
            margin: 0;
        }

        /* ===== 导航栏统一为 Windows 浅色模式 ===== */
        .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;
        }

        .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 浅色模式 ===== */
        .side-card,
        .content-card {
            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;
        }

        /* ===== 首页入口按钮 ===== */
        .hero-enter {
            display: inline-block;
            margin-top: 42px;
            padding: 14px 48px;
            font-size: 18px;
            letter-spacing: 3px;
            color: #1a1a1a;
            text-decoration: none;
            background: rgba(243, 243, 243, 0.85);
            backdrop-filter: blur(20px) saturate(150%);
            -webkit-backdrop-filter: blur(20px) saturate(150%);
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 999px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
            transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
            animation: heroEnter 0.8s ease 2.8s both;
        }

        .hero-enter:hover {
            background: #fff;
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
        }

        @keyframes heroEnter {
            from {
                opacity: 0;
                transform: translateY(16px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media (max-width: 768px) {
            .hero-enter {
                padding: 12px 38px;
                font-size: 16px;
            }
        }

        /* ===== 首页学校要闻 ===== */
        .news-section {
            position: relative;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 100px 20px 50px;
            box-sizing: border-box;
            background: url('../images/DSC08853.JPG') center/cover no-repeat fixed;
            scroll-snap-align: center;
        }

        .news-card {
            width: min(1200px, 100%);
            background: rgba(243, 243, 243, 0.85);
            backdrop-filter: blur(30px) saturate(150%);
            -webkit-backdrop-filter: blur(30px) saturate(150%);
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 20px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
            padding: 26px 32px 30px;
        }

        .news-head {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 18px;
        }

        .news-head h2 {
            margin: 0;
            padding-left: 16px;
            border-left: 6px solid #FFD600;
            color: #1f2d3d !important;
            line-height: 1.2 !important;
        }

        .news-en {
            display: block;
            margin-top: 4px;
            font-size: 12px !important;
            letter-spacing: 2px;
            color: #8892a0 !important;
            line-height: 1.4 !important;
        }

        .news-more {
            font-size: 14px !important;
            color: #e8503a !important;
            text-decoration: none;
            white-space: nowrap;
            line-height: 1.4 !important;
        }

        .news-more:hover {
            text-decoration: underline;
        }

        .news-body {
            display: grid;
            grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
            gap: 18px;
        }

        .news-photos {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr 1fr;
            gap: 14px;
        }

        .news-photo {
            position: relative;
            display: block;
            min-height: 150px;
            border-radius: 10px;
            overflow: hidden;
            background: #dfe4ea;
            text-decoration: none;
        }

        .news-photo img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        .news-photo:hover img {
            transform: scale(1.05);
        }

        .news-photo-info {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 26px 14px 12px;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
        }

        .news-photo-date {
            display: block;
            margin-bottom: 4px;
            font-size: 12px !important;
            color: rgba(255, 255, 255, 0.8) !important;
            line-height: 1.4 !important;
        }

        .news-photo-title {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            font-size: 14px !important;
            color: #fff !important;
            line-height: 1.45 !important;
        }

        .news-photo-excerpt {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-top: 6px;
            font-size: 12px !important;
            color: rgba(255, 255, 255, 0.82) !important;
            line-height: 1.5 !important;
        }

        .news-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .news-list li {
            flex: 1;
            display: flex;
        }

        .news-item {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 86px;
            gap: 10px;
            align-items: center;
            width: 100%;
            padding: 6px 8px;
            border-radius: 8px;
            border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
            text-decoration: none;
        }

        .news-item:hover {
            background: rgba(255, 255, 255, 0.7);
        }

        .news-item.active,
        .news-item.active:hover {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 4px;
            background: #e8503a;
            border-bottom-color: transparent;
            box-shadow: 0 6px 16px rgba(232, 80, 58, 0.28);
        }

        .news-item.active .news-item-thumb {
            display: none;
        }

        .news-excerpt {
            display: none;
            margin: 0;
            font-size: 12px !important;
            line-height: 1.5 !important;
            color: rgba(255, 255, 255, 0.86) !important;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .news-item.active .news-excerpt {
            display: -webkit-box;
        }

        .news-gallery {
            display: none;
            grid-template-columns: repeat(3, 1fr);
            gap: 5px;
            margin-top: 4px;
        }

        .news-item.active .news-gallery {
            display: grid;
        }

        .news-gallery img {
            width: 100%;
            height: 44px;
            object-fit: cover;
            border-radius: 4px;
        }

        .news-item-date {
            display: block;
            margin-bottom: 2px;
            font-size: 12px !important;
            color: #8892a0 !important;
            line-height: 1.4 !important;
        }

        .news-item-title {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            font-size: 14px !important;
            color: #1f2d3d !important;
            line-height: 1.45 !important;
        }

        .news-item.active .news-item-date {
            color: rgba(255, 255, 255, 0.82) !important;
        }

        .news-item.active .news-item-title {
            color: #fff !important;
        }

        .news-item-thumb {
            width: 86px;
            height: 58px;
            border-radius: 6px;
            overflow: hidden;
        }

        .news-item-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        @media (max-width: 980px) {
            .news-body {
                grid-template-columns: 1fr;
            }

            .news-photo {
                min-height: 130px;
            }
        }

        @media (max-width: 768px) {
            .news-section {
                height: auto;
                min-height: 100vh;
                padding: 90px 14px 40px;
            }

            .news-card {
                padding: 20px 16px 22px;
            }

            .news-photos {
                gap: 10px;
            }

            .news-photo {
                min-height: 110px;
            }

            .news-photo-title {
                font-size: 12px !important;
            }

            .news-item {
                grid-template-columns: 1fr;
            }

            .news-item-thumb {
                display: none;
            }
        }

        /* ===== 学校要闻：悬停联动效果 ===== */
        .news-card .news-body {
            grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
            gap: 16px;
            align-items: stretch;
        }

        .news-feature {
            position: relative;
            display: block;
            min-height: 430px;
            border-radius: 10px;
            overflow: hidden;
            background: #dfe4ea;
            text-decoration: none;
        }

        .news-feature img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            animation: newsZoom 0.7s ease;
        }

        @keyframes newsZoom {
            from {
                opacity: 0.35;
                transform: scale(1.05);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .news-feature-info {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 70px 24px 20px;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
        }

        .news-feature-date {
            display: block;
            margin-bottom: 6px;
            font-size: 13px !important;
            color: rgba(255, 255, 255, 0.82) !important;
            line-height: 1.4 !important;
        }

        .news-feature-title {
            display: block;
            font-size: 19px !important;
            font-weight: 600;
            color: #fff !important;
            line-height: 1.45 !important;
        }

        .news-feature-excerpt {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-top: 8px;
            font-size: 13px !important;
            color: rgba(255, 255, 255, 0.82) !important;
            line-height: 1.55 !important;
        }

        .news-card .news-list {
            gap: 8px;
        }

        .news-card .news-item {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 108px;
            gap: 10px;
            align-items: center;
            padding: 8px 10px;
            border: 2px solid transparent;
            border-bottom: 2px solid transparent;
            border-radius: 8px;
            transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
        }

        .news-card .news-item:hover {
            border-color: #e8503a;
            background: rgba(255, 255, 255, 0.6);
        }

        .news-card .news-item.active {
            display: grid;
            flex-direction: row;
            align-items: center;
            border-color: #e8503a;
            background: #e8503a;
            box-shadow: 0 6px 16px rgba(232, 80, 58, 0.28);
        }

        .news-card .news-item.active .news-item-date {
            color: rgba(255, 255, 255, 0.85) !important;
        }

        .news-card .news-item.active .news-item-title {
            color: #fff !important;
        }

        .news-thumbs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3px;
        }

        .news-thumbs img {
            width: 100%;
            height: 30px;
            object-fit: cover;
            border-radius: 3px;
        }

        .news-thumbs img:first-child {
            grid-column: span 2;
            height: 38px;
        }

        @media (max-width: 980px) {
            .news-feature {
                min-height: 320px;
            }
        }

        @media (max-width: 640px) {
            .news-card .news-item {
                grid-template-columns: 1fr;
            }

            .news-thumbs {
                display: none;
            }

            .news-feature {
                min-height: 240px;
            }
        }

        /* 学校要闻：左侧校训 + 紧凑版式 */
        .news-card {
            width: min(1140px, 100%);
        }

        .news-layout {
            display: grid;
            grid-template-columns: 210px minmax(0, 1fr);
            gap: 18px;
            align-items: stretch;
        }

        .news-motto {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 14px;
            padding: 26px 16px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.55);
            border: 1px solid rgba(0, 0, 0, 0.06);
            text-align: center;
        }

        .news-motto-label {
            font-size: 13px !important;
            letter-spacing: 4px;
            color: #8892a0 !important;
            line-height: 1.4 !important;
        }

        .news-motto-text {
            font-size: 26px !important;
            font-weight: 700;
            letter-spacing: 2px;
            color: #1f2d3d !important;
            line-height: 1.9 !important;
        }

        .news-motto-en {
            font-size: 11px !important;
            letter-spacing: 2px;
            color: #b0b8c2 !important;
            line-height: 1.4 !important;
        }

        .news-card .news-feature {
            min-height: 360px;
        }

        .news-card .news-feature-title {
            font-size: 17px !important;
        }

        .news-card .news-item {
            padding: 6px 8px;
        }

        .news-thumbs img {
            height: 20px;
        }

        .news-thumbs img:first-child {
            height: 26px;
        }

        @media (max-width: 980px) {
            .news-layout {
                grid-template-columns: 1fr;
            }

            .news-motto {
                flex-direction: row;
                justify-content: center;
                gap: 18px;
                padding: 14px 18px;
            }

            .news-motto-text {
                font-size: 18px !important;
                line-height: 1.4 !important;
            }

            .news-card .news-feature {
                min-height: 300px;
            }
        }

        /* ===== 首页教学楼模块 ===== */
        .teaching-section {
            position: relative;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 110px 20px 50px;
            box-sizing: border-box;
            background: url('../images/DSC08853.JPG') center/cover no-repeat fixed;
            scroll-snap-align: center;
        }

        .teaching-card {
            width: min(1200px, 100%);
            background: rgba(243, 243, 243, 0.85);
            backdrop-filter: blur(30px) saturate(150%);
            -webkit-backdrop-filter: blur(30px) saturate(150%);
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 20px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
            padding: 32px 40px 36px;
        }

        .teaching-card h2 {
            color: #1f2d3d !important;
            margin: 0 0 20px;
            padding-left: 16px;
            border-left: 6px solid #FFD600;
            line-height: 1.3 !important;
        }

        .teaching-shell {
            display: flex;
            gap: 20px;
            height: 380px;
            overflow-x: auto;
            overflow-y: hidden;
            padding: 8px 4px 14px;
            scroll-behavior: auto;
            scrollbar-width: none;
            overscroll-behavior-x: contain;
        }

        .teaching-shell::-webkit-scrollbar {
            display: none;
        }

        .teaching-box {
            flex: 0 0 260px;
            height: 100%;
            display: flex;
            flex-direction: column;
            border-radius: 10px;
            overflow: hidden;
            background: #fff;
            border: 8px solid #fff;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .teaching-box:hover {
            transform: translateY(-8px);
            box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
        }

        .teaching-box > img {
            width: 100%;
            flex: 1;
            min-height: 0;
            object-fit: cover;
            border-radius: 6px;
            transition: transform 0.5s ease;
        }

        .teaching-box > span {
            font-size: 16px !important;
            font-weight: 700;
            color: #222;
            text-align: center;
            padding: 10px 0 2px;
            line-height: 1.4 !important;
        }

        @media (max-width: 768px) {
            .teaching-card {
                padding: 24px 22px 26px;
            }

            .teaching-shell {
                height: 260px;
                gap: 14px;
            }

            .teaching-box {
                flex-basis: 210px;
            }
        }

        /* ===== 教学楼图片放大模态框 ===== */
        .building-modal {
            display: none;
            position: fixed;
            z-index: 99999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            overflow: auto;
        }

        .building-modal.active {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .building-modal-content {
            width: 100%;
            height: 100%;
            position: relative;
            text-align: center;
        }

        .building-modal-content img {
            width: 100vw;
            height: 100vh;
            object-fit: cover;
        }

        .building-modal.active .building-modal-content img {
            animation: imgFloatIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
        }

        @keyframes imgFloatIn {
            0% {
                opacity: 0;
                transform: scale(1.1);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }

        .building-modal-close {
            position: fixed;
            top: 20px;
            right: 30px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            line-height: 1;
            z-index: 100002;
            background: rgba(0, 0, 0, 0.5);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

        .building-modal.active .building-modal-close {
            animation: closeBtnIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
            opacity: 0;
        }

        @keyframes closeBtnIn {
            0% {
                opacity: 0;
                transform: scale(0) rotate(-180deg);
            }
            100% {
                opacity: 1;
                transform: scale(1) rotate(0deg);
            }
        }

        .building-modal-close:hover {
            transform: rotate(90deg) scale(1.1);
        }

        .building-modal-info {
            position: fixed;
            top: 0;
            right: 0;
            width: 30vw;
            height: 100vh;
            background: rgba(243, 243, 243, 0.85);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
            padding: 40px 40px 40px 60px;
            text-align: left;
            z-index: 100001;
            border-left: 3px solid rgba(0, 0, 0, 0.06);
            box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
            color: #1a1a1a;
            font-family: inherit;
            opacity: 0;
        }

        .building-modal-info.animate-in {
            animation: infoPanelIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
        }

        @keyframes infoPanelIn {
            0% {
                opacity: 0;
                transform: translateX(100%) scale(0.95);
            }
            100% {
                opacity: 1;
                transform: translateX(0) scale(1);
            }
        }

        .building-modal-info h3 {
            color: #1a1a1a !important;
            font-family: inherit;
            margin: 0 0 12px 0;
            opacity: 0;
        }

        .building-modal-info.animate-in h3 {
            animation: titleFloatIn 0.6s ease 0.4s forwards;
        }

        @keyframes titleFloatIn {
            0% {
                opacity: 0;
                transform: translateY(20px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .building-modal-info p {
            color: #1a1a1a !important;
            font-family: inherit;
            margin: 0;
            opacity: 0;
        }

        .building-modal-info.animate-in p {
            animation: contentFloatIn 0.6s ease 0.6s forwards;
        }

        @keyframes contentFloatIn {
            0% {
                opacity: 0;
                transform: translateY(20px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media (max-width: 768px) {
            .building-modal-info {
                width: 70vw;
                padding: 32px 24px 32px 32px;
            }
        }
