* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            margin: 0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            background-color: #181c24;
            padding-top: 0;
        }

        /* 固定背景层：独立图层，避免 body 使用 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;
        }

        /* 导航栏样式 */
       .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);
            border: 1px solid rgba(255, 255, 255, 0.15);
            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.1),
                inset 0 0 12px rgba(255, 255, 255, 0.05);
            overflow: visible;
        }

         .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.9);
            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: 10px;
            position: relative;
        }

        .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);
        }

        .nav-box {
            position: absolute;
            bottom: 0;
            height: 3px;
            background: linear-gradient(90deg, 
                rgba(255, 255, 255, 0.15), 
                rgba(255, 255, 255, 0.3));
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 2px;
            box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
        }
        /* 下拉菜单样式 */
        .dropdown { position: relative; }

        .submenu {
            display: flex;
            flex-direction: column;
            position: absolute;
            top: calc(100% + 28px);
            left: 0;
            z-index: 99999;
            /* 完整透明磨砂，匹配导航栏视觉 */
            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;
            box-shadow: 
                0 4px 20px rgba(0, 0, 0, 0.1),
                inset 0 0 12px rgba(255, 255, 255, 0.05);
            opacity: 0;
            transform: translateY(8px);
            transition: opacity 0.18s ease, transform 0.18s ease;
            pointer-events: none;
            z-index: 10001;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
        }

        .submenu a {
            color: rgba(255,255,255,0.95);
            text-decoration: none;
            padding: 8px 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            border-radius: 6px;
            text-align: center;
        }

        .submenu a:hover { background: rgba(255,255,255,0.06); }

        .dropdown.open .submenu { opacity: 1; transform: translateY(0); pointer-events: auto; }

        @media (max-width: 768px) {
            .submenu { left: 0; }
        }
        /* 内容模块样式 */
        .content-section {
            margin: 0 auto;
            width: 100%;
            max-width: 1200px;
            min-height: 100vh;
            padding: 116px 20px 24px;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            background: transparent !important;
        }

        .content-section .frosted-box {
            opacity: 0;
            transform: scale(0.98);
            transition: opacity 0.8s ease, transform 0.8s ease;
            margin: auto 0;
        }

        #campus-intro > .frosted-box {
            padding-top: 20px;
            padding-bottom: 20px;
        }

        .content-section.visible .frosted-box {
            opacity: 1;
            transform: scale(1);
        }

        .frosted-box {
            color: rgba(255, 255, 255, 0.95) ;
            background:  rgba(255, 255, 255, 0.1) !important;/*gai*/
            backdrop-filter: blur(12px) saturate(160%);
            -webkit-backdrop-filter: blur(12px) saturate(160%);
            border: 1px solid rgba(255, 255, 255, 0.13);
            padding: 40px;
            border-radius: 24px;
            box-shadow: 0 8px 32px rgba(235, 234, 234, 0.13);
            width: 100%;
            max-width: 1200px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 60vh;
        }

        .team-content h2 {
            font-size: 2.4rem;
            margin-bottom: 1.5rem;
            margin-top: -1.2rem;
            color: #fff;
            
            padding-left: 20px;
            text-align: left;
            align-self: flex-start;
        }

        .content-section:not(:nth-of-type(1)):not(:nth-of-type(2)) .team-content h2 {
            position: absolute;
            top: 32px;
            left: 40px;
            margin-top: 0;
            margin-bottom: 0.8rem;
            padding-left: 16px;
            z-index: 2;
            background: none;
            border-radius: 0;
            text-align: left;
            align-self: flex-start;
        }

        .content-section:last-of-type .team-content h2 {
            left: 52px;
            top: 32px;
        }

        .content-section:nth-last-of-type(2) .team-content h2 {
            left: 52px;
            top: 32px;
        }

        .content-section:not(:nth-of-type(1)):not(:nth-of-type(2)) .frosted-box {
            position: relative;
        }

        .content-section:not(:nth-of-type(1)):not(:nth-of-type(2)) .team-content {
            position: relative;
            padding-top: 2.8rem;
        }

        @media (max-width: 768px) {
            body {
                padding-top: 80px;
            }

            .nav a {
                font-size: 16px;
                padding: 8px 15px;
            }

            .frosted-box {
                padding: 25px;
            }

            #campus-intro > .frosted-box {
                padding: 20px;
            }

            .team-content h2 {
                font-size: 1.8rem;
                margin-top: -0.8rem;
            }

            .content-section:not(:nth-of-type(1)):not(:nth-of-type(2)) .team-content h2 {
                top: 18px;
                left: 12px;
                font-size: 1.2rem;
                padding-left: 10px;
            }

            .content-section:last-of-type .team-content h2 {
                left: 20px;
                top: 18px;
            }

            .content-section:nth-last-of-type(2) .team-content h2 {
                left: 20px;
                top: 18px;
            }

            .content-section:not(:nth-of-type(1)):not(:nth-of-type(2)) .team-content {
                padding-top: 2.2rem;
            }
        }

        .image-container {
            margin: 25px 0;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s ease;
        }

        .image-container:hover {
            transform: translateY(-3px);
        }

        .image-container img {
            width: 100%;
            height: auto;
            display: block;
        }

        @media (max-width: 768px) {
            .image-container {
                margin: 15px 0;
                border-radius: 10px;
            }
        }

        .compare-layout {
            display: block;
            gap: 0;
            align-items: stretch;
            width: 100%;
        }

        .compare-scroller {
            overflow-x: auto;
            overflow-y: hidden;
            padding-bottom: 14px;
            cursor: default;
            scrollbar-width: thin;
            scrollbar-color: rgba(31, 78, 121, 0.55) rgba(255, 255, 255, 0.18);
        }

        /* 新旧对比：显示可拖动的横向滚动条 */
        .compare-scroller::-webkit-scrollbar {
            display: block;
            height: 10px;
        }

        .compare-scroller::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.18);
            border-radius: 999px;
        }

        .compare-scroller::-webkit-scrollbar-thumb {
            background: rgba(31, 78, 121, 0.55);
            border-radius: 999px;
        }

        .compare-scroller::-webkit-scrollbar-thumb:hover {
            background: rgba(31, 78, 121, 0.8);
        }

        .compare-track {
            display: flex;
            align-items: stretch;
            gap: 22px;
            width: max-content;
        }

        .compare-grid {
            display: flex;
            flex-wrap: nowrap;
            gap: 22px;
            margin-top: 14px;
            align-items: stretch;
            min-width: max-content;
        }

        .compare-item {
            position: relative;
            display: flex;
            flex: 0 0 clamp(280px, 30vw, 380px);
            flex-direction: column;
            justify-content: flex-start;
            height: auto;
            min-width: 0;
            background: rgba(255, 255, 255, 0.07);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 22px;
            padding: 18px;
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
            contain: paint;
        }

        .compare-caption {
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.92);
            margin-bottom: 14px;
            font-weight: 800;
            letter-spacing: 0.5px;
            line-height: 1.35;
            white-space: nowrap;
        }

        .compare-slider {
            position: relative;
            width: 100%;
            aspect-ratio: 4 / 3;
            min-height: 340px;
            flex: 1;
            overflow: hidden;
            border-radius: 18px;
            background: #0f172a;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
            user-select: none;
            touch-action: none;
        }

        .compare-slider img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .compare-overlay {
            position: absolute;
            inset: 0;
            overflow: hidden;
            width: 100% !important;
            clip-path: inset(0 50% 0 0);
            will-change: clip-path;
        }

        .compare-overlay img {
            width: 100%;
            height: 100%;
        }

        .compare-handle {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 50%;
            width: 3px;
            background: rgba(255, 255, 255, 0.95);
            transform: translateX(-50%);
            box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
            pointer-events: none;
        }

        .compare-handle::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.92);
            transform: translate(-50%, -50%);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
        }

        .compare-handle::after {
            content: "↔";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 1.05rem;
            color: #102542;
            font-weight: 900;
            z-index: 2;
        }

        .compare-range {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: ew-resize;
            z-index: 3;
        }

        .compare-actions {
            position: absolute;
            top: 16px;
            right: 16px;
            z-index: 5;
            margin: 0;
        }

        .compare-fullscreen-btn {
            position: relative;
            top: -6px;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.56);
            color: #fff;
            cursor: pointer;
            box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
            transition: transform 0.18s ease, background 0.18s ease;
        }

        .compare-fullscreen-btn svg {
            width: 20px;
            height: 20px;
            display: block;
        }

        .compare-fullscreen-btn:hover {
            transform: translateY(-1px);
            background: rgba(0, 0, 0, 0.78);
        }

        .compare-slider {
            cursor: zoom-in;
        }

        .recap-player {
            position: relative;
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
        }

        .recap-player iframe {
            pointer-events: none;
        }

        .compare-fullscreen-overlay {
            position: fixed;
            inset: 0;
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            background: rgba(2, 6, 23, 0.94);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
        }

        .compare-fullscreen-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

        .compare-fullscreen-modal {
            position: relative;
            width: 100vw;
            height: 100vh;
            max-height: 100vh;
            padding: 0;
            border-radius: 0;
            background: transparent;
            border: none;
            box-shadow: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .compare-fullscreen-close {
            position: absolute;
            top: 18px;
            right: 18px;
            width: 44px;
            height: 44px;
            border: none;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.92);
            color: #102542;
            font-size: 1.55rem;
            font-weight: 900;
            cursor: pointer;
            z-index: 10;
        }

        .compare-fullscreen-body {
            width: 100%;
            height: 100%;
            padding: 0;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .compare-fullscreen-body .compare-slider {
            width: 100vw;
            height: 100vh;
            min-height: 100vh;
            aspect-ratio: auto;
            border-radius: 0;
            box-shadow: none;
            background: #020617;
        }

        .team-content {
            display: flex;
            gap: 40px;
            align-items: center;
        }

        .image-container {
            flex: 0 0 45%;
            max-width: 600px;
            margin: 0;
        }

        .text-content {
            flex: 1;
        }

        .image-container img {
            width: 100%;
            height: 300px;
            object-fit: cover;
            border-radius: 12px;
        }

        @media (max-width: 1200px) {
            .team-content {
                gap: 30px;
            }

            .image-container img {
                height: 250px;
            }
        }

        @media (max-width: 1600px) {
            .compare-grid {
                grid-template-columns: repeat(6, minmax(300px, 1fr));
            }
        }

        @media (max-width: 1200px) {
            .compare-slider {
                min-height: 260px;
            }
        }

        @media (max-width: 768px) {
            .team-content {
                flex-direction: column;
            }

            .image-container {
                flex: none;
                width: 100%;
                max-width: 500px;
            }

            .image-container img {
                height: 200px;
            }

            .compare-slider {
                min-height: 240px;
            }
        }

        .text-content p {
            color: rgba(255, 255, 255, 0.85);
            line-height: 1.8;
            font-size: 1.1rem;
        }

        /* 校园简介 / 地理位置：与其他模块、导航栏共用同一套透明磨砂背景 */
        #campus-intro .team-content h2,
        #campus-location .team-content h2 {
            color: #1f2d3d;
        }

        /* 模块内文字颜色统一：标题深蓝，正文深灰 */
        .frosted-box h2 {
            color: #1f2d3d !important;
        }

        .frosted-box .team-description h3 {
            color: #1f2d3d !important;
        }

        .frosted-box .compare-caption,
        .frosted-box .team-description,
        .frosted-box .text-content p,
        .frosted-box .team-description p {
            color: #2c3e50 !important;
        }

        #campus-intro .text-content p,
        #campus-location .text-content p {
            color: #2c3e50;
            text-indent: 2em;
            margin-bottom: 14px;
        }

        #campus-intro .text-content p:last-child,
        #campus-location .text-content p:last-child {
            margin-bottom: 0;
        }

        @media (max-width: 768px) {
            .text-content p {
                font-size: 1rem;
            }
        }

        .shell {
            width: 90%;
            height: 500px;
            display: flex;
            margin-top: 0rem;
        }

        .box {
            border-radius: 10px;
            flex: 1;
            overflow: hidden;
            transition: flex-basis 0.13s cubic-bezier(0.4, 0, 0.2, 1);
            margin: 0 20px;
            box-shadow: rgb(0, 0, 5);
            border: 10px solid #fff;
            background-color: #fff;
        }

        .box>img {
            border-radius: 10px;
            width: 100%;
            height: 85%;
            object-fit: cover;
            transition: .5s;
        }

        .box>span {
            font: 200 45px;
            text-align: center;
            height: 15%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .box:hover {
            flex-basis: 40%;
        }

        /* 3D轮播样式 */
        .carousel-3d-container {
            width: 100%;
            height: 400px;
            perspective: 1000px;
            margin: 3rem auto;
            position: relative;
        }

        /* 所有模块标题固定单行，不被右侧内容挤压成竖排 */
        .team-content > h2 {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        /* 校园活动 / 校园风景：轮播占满剩余宽度 */
        #campus-activities .carousel-3d-container,
        #campus-scenery .carousel-3d-container {
            flex: 1 1 auto;
            width: auto;
            min-width: 0;
        }
        
        .carousel-hint {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.5);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 10;
        }
        
        .carousel-3d-container:hover .carousel-hint {
            opacity: 1;
        }

        .carousel-wrapper {
            position: relative;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
            animation: carousel-rotate 20s infinite linear;
        }
        
        .carousel-3d-container.paused .carousel-wrapper {
            animation-play-state: paused;
        }

        .content-section:not(.visible) .carousel-wrapper,
        .content-section:not(.visible) .card-stack-track {
            animation-play-state: paused;
        }

        .carousel {
            position: relative;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
        }

        .carousel-item {
            position: absolute;
            width: 280px;
            height: 180px;
            top: 50%;
            left: 50%;
            margin: -90px 0 0 -140px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            background-size: cover;
            background-position: center;
            transition: transform 0.5s ease;
        }

        .carousel-item:nth-child(1) {
            transform: rotateY(0deg) translateZ(350px);
        }

        .carousel-item:nth-child(2) {
            transform: rotateY(60deg) translateZ(350px);
        }

        .carousel-item:nth-child(3) {
            transform: rotateY(120deg) translateZ(350px);
        }

        .carousel-item:nth-child(4) {
            transform: rotateY(180deg) translateZ(350px);
        }

        .carousel-item:nth-child(5) {
            transform: rotateY(240deg) translateZ(350px);
        }

        .carousel-item:nth-child(6) {
            transform: rotateY(300deg) translateZ(350px);
        }
       

        @keyframes carousel-rotate {
            0% {
                transform: rotateY(0deg);
            }

            100% {
                transform: rotateY(360deg);
            }
        }

        @media (max-width: 768px) {
            .carousel-3d-container {
                height: 300px;
                perspective: 800px;
            }

            .carousel-item {
                width: 200px;
                height: 130px;
                margin: -65px 0 0 -100px;
            }
        }

        /* iOS 卡包式校史时间轴 */
        .history-player {
            position: relative;
            display: flex;
            flex-direction: column;
            padding-top: 1rem;
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
        }

        #campus-history > .frosted-box > .team-content > h2 {
            margin: 0 0 18px 0;
            color: #fff;
            text-shadow: 0 1px 18px rgba(0, 0, 0, 0.5);
        }

        .history-player:fullscreen::before,
        .history-player:-webkit-full-screen::before {
            content: '校园校史';
            position: absolute;
            top: 20px;
            left: 20px;
            right: 20px;
            margin: 0;
            font-size: 2rem;
            color: #fff;
            text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
            z-index: 4;
        }

        .fullscreen-toggle {
            position: absolute;
            top: 18px;
            right: 18px;
            z-index: 5;
            border: none;
            background: rgba(0, 0, 0, 0.55);
            color: #fff;
            padding: 10px 16px;
            border-radius: 999px;
            font-size: 0.95rem;
            cursor: pointer;
            transition: transform 0.2s ease, background 0.2s ease;
        }

        .fullscreen-toggle:hover {
            background: rgba(0, 0, 0, 0.75);
            transform: translateY(-1px);
        }
 .history-player:fullscreen::before,
        .history-player:-webkit-full-screen::before {
            content: '校园校史';
            position: absolute;
            top: 20px;
            left: 20px;
            right: 20px;
            margin: 0;
            font-size: 2rem;
            color: #fff;
            text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
            z-index: 4;
        }

        .fullscreen-toggle {
            position: absolute;
            top: 50px;
            right: 18px;
            z-index: 5;
            border: none;
            background: rgba(0, 0, 0, 0.55);
            color: #fff;
            padding: 10px 16px;
            border-radius: 999px;
            font-size: 0.95rem;
            cursor: pointer;
            transition: transform 0.2s ease, background 0.2s ease;
        }

        .fullscreen-toggle:hover {
            background: rgba(0, 0, 0, 0.75);
            transform: translateY(-1px);
        }

        .history-player:fullscreen,
        .history-player:-webkit-full-screen {
            position: relative;
            background: none;
        }

        /* 全屏背景层 - 用于暗色模式过滤 */
        .history-player:fullscreen::after,
        .history-player:-webkit-full-screen::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('../images/optimized/web/dsc08853.jpg') center/cover no-repeat;
            background-size: cover;
            z-index: -1;
        }

        .history-player.fullscreen .card-stack-scroller,
        .history-player:fullscreen .card-stack-scroller,
        .history-player:-webkit-full-screen .card-stack-scroller {
            height: calc(100vh - 3.5rem);
            min-height: auto;
            background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
        }

        .card-stack-scroller {
            margin-top: 1rem;
            overflow: hidden;
            height: 560px;
            position: relative;
            border-radius: 24px;
            background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
            padding: 18px 12px;
            perspective: 1200px;
        }

        .card-stack-track {
            display: flex;
            flex-direction: column;
            gap: 14px;
            align-items: center;
            animation: card-stack-scroll 16s linear infinite;
            will-change: transform;
        }

        .card-stack-item {
            width: min(92%, 640px);
            max-width: 640px;
            margin: 0 auto;
            padding: 18px 22px;
            border-radius: 22px;
            background: rgba(255, 255, 255, 0.95);
            color: #233145;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
            border: 1px solid rgba(255,255,255,0.7);
            transform-origin: center center;
            transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
            align-self: center;
            opacity: 1;
            filter: blur(0px);
            position: relative;
        }

        .card-stack-item strong {
            display: block;
            font-size: 1rem;
            color: #1f4e79;
            margin-bottom: 6px;
        }

        .card-stack-item span {
            display: block;
            font-size: 0.95rem;
            line-height: 1.7;
            color: #44546a;
        }

        .card-stack-item:nth-child(odd) {
            transform: rotateY(-6deg) translateX(0);
        }

        .card-stack-item:nth-child(even) {
            transform: rotateY(6deg) translateX(0);
        }

        .card-stack-item:nth-child(1) { margin-top: 4px; }
        .card-stack-item:nth-child(2) { margin-top: 0; }
        .card-stack-item:nth-child(3) { margin-top: 0; }
        .card-stack-item:nth-child(4) { margin-top: 0; }
        .card-stack-item:nth-child(5) { margin-top: 0; }
        .card-stack-item:nth-child(6) { margin-top: 0; }
        .card-stack-item:nth-child(7) { margin-top: 0; }
        .card-stack-item:nth-child(8) { margin-top: 0; }
        .card-stack-item:nth-child(8) { margin-top: 0; }
        @keyframes card-stack-scroll {
            0% {
                transform: translateY(0);
            }

            100% {
                transform: translateY(-50%);
            }
        }

        /* 教学楼图片放大模态框样式 */
        .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;
        }

        /* 图片动画 - 使用keyframes */
        .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;
        }

        /* 关闭按钮动画 - 使用keyframes */
        .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;
            font-family: inherit;
            margin: 0 0 12px 0;
            font-size: 1.5rem;
            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;
            font-family: inherit;
            margin: 0;
            line-height: 1.8;
            font-size: 1rem;
            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);
            }
        }

        .box {
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .box:hover {
            transform: translateY(-8px);
            box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
        }

        #teaching-building .shell {
            width: 100%;
            max-width: 100%;
            height: 360px;
            gap: 20px;
            overflow-x: auto;
            overflow-y: hidden;
            padding: 8px 4px 18px;
            scroll-behavior: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(31, 78, 121, 0.55) rgba(255, 255, 255, 0.18);
            overscroll-behavior-x: contain;
        }

        /* 教学楼：显示可拖动的横向滚动条 */
        #teaching-building .shell::-webkit-scrollbar {
            display: block;
            height: 10px;
        }

        #teaching-building .shell::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.18);
            border-radius: 999px;
        }

        #teaching-building .shell::-webkit-scrollbar-thumb {
            background: rgba(31, 78, 121, 0.55);
            border-radius: 999px;
        }

        #teaching-building .shell::-webkit-scrollbar-thumb:hover {
            background: rgba(31, 78, 121, 0.8);
        }

        #teaching-building .box {
            flex: 0 0 260px;
            height: 100%;
            margin: 0;
            display: flex;
            flex-direction: column;
            cursor: pointer;
        }

        #teaching-building .box:hover {
            flex-basis: 260px;
        }

        #teaching-building .box > img {
            min-height: 0;
        }

        @media (max-width: 768px) {
            #teaching-building .shell {
                height: 300px;
                gap: 14px;
            }

            #teaching-building .box,
            #teaching-building .box:hover {
                flex-basis: 220px;
            }
        }

        @media (max-width: 768px) {
            .card-stack-scroller {
                height: 460px;
            }

            .card-stack-item {
                width: 100%;
                padding: 14px 16px;
            }

            .card-stack-item:nth-child(n) {
                margin-left: 0;
                transform: none;
            }
        }

        /* 校史横向时间轴 */
        .history-player {
            flex: 1 1 auto;
            width: auto;
            max-width: 100%;
            min-width: 0;
            padding-top: 0;
            overflow: hidden;
        }

        .card-stack-scroller {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            height: auto;
            min-height: 0;
            margin-top: 0;
            padding: 28px 8px 18px;
            overflow-x: auto;
            overflow-y: hidden;
            scrollbar-width: thin;
            scrollbar-color: rgba(31, 78, 121, 0.55) rgba(255, 255, 255, 0.18);
            background: none;
            perspective: none;
            border-radius: 0;
            -webkit-overflow-scrolling: touch;
        }

        /* 校园校史：显示可拖动的横向滚动条 */
        .card-stack-scroller::-webkit-scrollbar {
            display: block;
            height: 10px;
        }

        .card-stack-scroller::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.18);
            border-radius: 999px;
        }

        .card-stack-scroller::-webkit-scrollbar-thumb {
            background: rgba(31, 78, 121, 0.55);
            border-radius: 999px;
        }

        .card-stack-scroller::-webkit-scrollbar-thumb:hover {
            background: rgba(31, 78, 121, 0.8);
        }

        .card-stack-track {
            flex-direction: row;
            align-items: flex-start;
            gap: 28px;
            width: max-content;
            min-width: 100%;
            box-sizing: border-box;
            padding: 0 4px;
            animation: none;
            position: relative;
        }

        .card-stack-track::before {
            content: '';
            position: absolute;
            top: 7px;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, rgba(31,78,121,0.15), #1f4e79, rgba(31,78,121,0.15));
        }

        .card-stack-item {
            width: 220px;
            max-width: 220px;
            flex: 0 0 220px;
            margin: 0 !important;
            padding: 0;
            background: none !important;
            border: none !important;
            border-radius: 0;
            box-shadow: none !important;
            transform: none !important;
            opacity: 1 !important;
            filter: none !important;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            position: relative;
        }

        .card-stack-item::before {
            content: '';
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #1f4e79;
            box-shadow: 0 0 0 4px #fff, 0 2px 6px rgba(0,0,0,0.25);
            margin-bottom: 12px;
            z-index: 2;
        }

        .card-stack-item strong {
            font-size: 1rem;
            color: #1f4e79;
            background: rgba(255,255,255,0.95);
            padding: 6px 14px;
            border-radius: 999px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.12);
            margin-bottom: 10px;
            z-index: 2;
        }

        .card-stack-item span {
            width: 100%;
            background: rgba(255,255,255,0.92);
            border: 1px solid rgba(255,255,255,0.7);
            border-radius: 14px;
            padding: 12px 14px;
            color: #44546a;
            font-size: 0.92rem;
            line-height: 1.65;
            box-shadow: 0 8px 20px rgba(0,0,0,0.12);
            min-height: 104px;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* 只保留一组完整校史时间轴（含 2026 年百年校庆），隐藏重复项 */
        .card-stack-item:nth-child(n+9):nth-child(-n+16),
        .card-stack-item:nth-child(n+18) {
            display: none;
        }

        @media (max-width: 768px) {
            .card-stack-item {
                width: 180px;
                max-width: 180px;
                flex-basis: 180px;
            }
            .card-stack-track {
                gap: 18px;
            }
        }

        /* 隐藏滚动条 */
        /* 全局隐藏滚动条（教学楼、校园校史的时间轴单独显示滚动条） */
        ::-webkit-scrollbar {
            display: none;
        }

        /* 导航栏定位优化 */
        .nav {
            top: 20px !important;
            /* 强制覆盖可能的样式冲突 */
            z-index: 9999;
            /* 确保导航栏始终在最上层 */
        }

        /* 固定导航栏不占用模块居中布局空间 */
        body {
            padding-top: 0;
        }

        /* 响应式断点修正 */
        @media (max-width: 768px) {
            .nav {
                top: 15px !important;
                /* 移动端缩小顶部间距 */
            }

            body {
                padding-top: 0;
            }
        }

        /* 移除过渡冲突 */
        .nav a {
            transition: none !important;
            /* 移除可能导致偏移的过渡效果 */
        }

        /* 强制内容区域定位 */
        .content-section {
            scroll-margin-top: 0;
            /* 确保滚动时内容避开导航栏 */
        }
        
        /* 新增提示样式 */
        .hint-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
            z-index: 5;
            border-radius: 10px;
        }
        
        .hint-text {
            color: white;
            font-size: 18px;
            text-align: center;
            padding: 20px;
            background: rgba(0, 0, 0, 0.7);
            border-radius: 10px;
        }
        
        .carousel-item:hover .hint-overlay {
            opacity: 1;
        }

        /* 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 {
            background: rgba(30, 30, 40, 0.8) !important;
            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;
        }

        body.dark-mode .building-modal-info {
            background: rgba(30, 30, 40, 0.8);
            border-left: 3px solid rgba(255, 255, 255, 0.2);
            box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
        }

        body.dark-mode .building-modal-info h3 {
            color: #e0e0e0;
        }

        body.dark-mode .building-modal-info p {
            color: rgba(255, 255, 255, 0.8);
        }

        /* 深色模式下校园校史全屏背景变暗 - 只对背景层应用filter */
        body.dark-mode .history-player:fullscreen::after,
        body.dark-mode .history-player:-webkit-full-screen::after {
            filter: brightness(0.4) saturate(0.7);
        }

        @media (max-width: 768px) {
            .theme-menu {
                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;
        }

        /* ===== 导航栏 / 模块背景统一为 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;
        }

        .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;
        }

        .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;
        }

        /* ===== 校史书籍在线阅读：按页懒加载 + 滚动条 + 页码跳转 ===== */
        .book-reader {
            position: fixed;
            inset: 0;
            z-index: 100003;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: rgba(10, 15, 30, 0.72);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
        }

        .book-reader[hidden] {
            display: none;
        }

        .book-reader-panel {
            position: relative;
            width: min(920px, 100%);
            max-height: 90vh;
            overflow-y: auto;
            overscroll-behavior: contain;
            padding: 0 28px 20px;
            border-radius: 18px;
            background: #f7f7f5;
            color: #1f2d3d;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
            scrollbar-width: thin;
            scrollbar-color: rgba(31, 78, 121, 0.55) rgba(0, 0, 0, 0.08);
        }

        /* 阅读窗格显示可拖动的纵向滚动条，方便快速跳到任意位置 */
        .book-reader-panel::-webkit-scrollbar {
            display: block;
            width: 10px;
        }

        .book-reader-panel::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.06);
            border-radius: 999px;
        }

        .book-reader-panel::-webkit-scrollbar-thumb {
            background: rgba(31, 78, 121, 0.55);
            border-radius: 999px;
        }

        .book-reader-panel::-webkit-scrollbar-thumb:hover {
            background: rgba(31, 78, 121, 0.8);
        }

        .book-reader-head {
            position: sticky;
            top: 0;
            z-index: 5;
            padding: 16px 0 10px;
            margin-bottom: 8px;
            background: #f7f7f5;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        }

        .book-reader-head-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }

        .book-reader-title {
            margin: 0;
            font-size: 1.4rem;
            line-height: 1.4;
        }

        .book-reader-nav {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 10px;
        }

        .book-reader-nav button {
            height: 32px;
            padding: 0 12px;
            border: 1px solid rgba(31, 78, 121, 0.25);
            border-radius: 8px;
            background: #fff;
            color: #1f4e79;
            font: inherit;
            cursor: pointer;
        }

        .book-reader-nav button:hover {
            background: #eef3f9;
        }

        .book-page-jump {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.92rem;
            color: #41505f;
        }

        .book-page-input {
            width: 64px;
            height: 32px;
            padding: 0 6px;
            border: 1px solid rgba(31, 78, 121, 0.3);
            border-radius: 8px;
            background: #fff;
            color: #1f2d3d;
            font: inherit;
            text-align: center;
        }

        .book-page-input:focus {
            outline: 2px solid rgba(31, 78, 121, 0.35);
            outline-offset: 1px;
        }

        .book-reader-tip {
            margin: 0 0 14px;
            font-size: 0.92rem;
            line-height: 1.6;
            color: #5b6472;
        }

        .book-reader-pages {
            display: grid;
            gap: 16px;
        }

        /* 每一页先占好位置（aspect-ratio 由真实页高决定），滚动条可拖到任意页码 */
        .book-page-slot {
            position: relative;
            width: 100%;
            max-width: 780px;
            aspect-ratio: 1000 / 1387;
            margin: 0 auto;
            overflow: hidden;
            border-radius: 8px;
            background: #fff;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }

        .book-page-slot img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .book-page-slot[data-loaded="false"]::after {
            content: "第 " attr(data-page) " 页加载中…";
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #fbfbfa;
            color: #98a1ad;
            font-size: 14px;
        }

        .book-page-slot[data-error="true"]::after {
            content: "第 " attr(data-page) " 页加载失败，点击重试";
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #fdf6f4;
            color: #c0392b;
            font-size: 14px;
            cursor: pointer;
        }

        .book-reader-end {
            padding: 18px 0 6px;
            text-align: center;
            font-size: 0.9rem;
            color: #8a94a3;
        }

        .book-reader-close {
            flex: 0 0 auto;
            width: 38px;
            height: 38px;
            padding: 0;
            border: 0;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.08);
            color: #333;
            font-size: 24px;
            line-height: 1;
            cursor: pointer;
        }

        .book-reader-close:hover {
            background: rgba(0, 0, 0, 0.16);
        }

        @media (max-width: 768px) {
            .book-reader-panel {
                padding: 0 14px 16px;
            }

            .book-reader-head {
                padding: 12px 0 8px;
            }

            .book-reader-title {
                font-size: 1.15rem;
            }

            .book-reader-nav button {
                padding: 0 9px;
                font-size: 0.88rem;
            }

            .book-page-input {
                width: 54px;
            }
        }
