/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden; /* 禁止 body 滚动，由容器接管 */
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    /* 全局背景 */
    background: url('img/背景.png') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
}

/* 横向长图滚动容器 */
#long-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    height: 100vh;
    width: 100vw; /* 先设置视口宽度 */
    overflow-x: auto; /* 使用 auto */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* 移动端平滑滚动 */
    scroll-behavior: smooth;
    position: fixed; /* 使用 fixed 定位 */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 隐藏滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    overscroll-behavior-x: contain;
}

/* 确保内部内容宽度足够 */
#long-scroll-container > * {
    flex-shrink: 0;
}

/* Chrome/Safari/Webkit 隐藏滚动条 */
#long-scroll-container::-webkit-scrollbar {
    display: none;
}

/* 每个内容板块 */
.section {
    flex: 0 0 100vw; /* 每个板块占满视口宽度，不收缩 */
    min-width: 100vw; /* 最小宽度 */
    width: 100vw; /* 明确设置宽度 */
    height: 100vh; /* 使用视口高度 */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0; /* 禁止收缩 */
}

/* 封面页单独设置背景 (覆盖在全局背景之上) */
.page-1 { 
    background: url('img/封面.jpg') no-repeat center center;
    background-size: cover;
    color: white; 
}
.page-2, .page-3, .page-4, .page-5 { 
    color: #333; 
    position: relative;
}

/* 为页面添加革命主题装饰 */
.page-2::before,
.page-3::before,
.page-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(220, 38, 38, 0.4) 20%, 
        rgba(220, 38, 38, 0.6) 50%, 
        rgba(220, 38, 38, 0.4) 80%, 
        transparent 100%);
    z-index: 1;
}

/* 内容容器 */
.content {
    width: 90%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
    align-items: center;
    z-index: 10;
    padding: 20px 25px;
}

/* 动画元素初始状态 - 优化动画 */
.ani {
    opacity: 0;
    animation-fill-mode: both;
    will-change: transform, opacity; /* 优化动画性能 */
}

/* 流畅的动画过渡 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 字体样式 - 革命主题 */
h1 { 
    font-size: 4.5rem; /* 增大字体 */
    margin-bottom: 30px; 
    font-family: 'Ma Shan Zheng', 'ZCOOL KuaiLe', 'STKaiti', 'KaiTi', '楷体', serif; /* 艺术字体 */
    font-weight: normal;
    letter-spacing: 0.2em; /* 增大字间距 */
    text-shadow: 
        0 0 30px rgba(220, 38, 38, 0.8),
        0 0 60px rgba(220, 38, 38, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.8),
        0 8px 16px rgba(0, 0, 0, 0.6),
        2px 2px 0 rgba(139, 0, 0, 0.5); /* 红色光晕和阴影 */
    color: #fff;
    text-align: center;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

/* 标题光晕动画 */
@keyframes titleGlow {
    0% {
        text-shadow: 
            0 0 30px rgba(220, 38, 38, 0.8),
            0 0 60px rgba(220, 38, 38, 0.4),
            0 4px 8px rgba(0, 0, 0, 0.8),
            0 8px 16px rgba(0, 0, 0, 0.6);
    }
    100% {
        text-shadow: 
            0 0 40px rgba(220, 38, 38, 1),
            0 0 80px rgba(220, 38, 38, 0.6),
            0 4px 8px rgba(0, 0, 0, 0.8),
            0 8px 16px rgba(0, 0, 0, 0.6);
    }
}

/* 移动端字体适配 */
@media (max-width: 768px) {
    h1 {
        font-size: 3.2rem;
        letter-spacing: 0.1em;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
        letter-spacing: 0.08em;
    }
}

h2 { 
    font-size: 2.2rem; 
    margin-bottom: 25px; 
    font-weight: 600;
    font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', 'STKaiti', 'KaiTi', '楷体', serif;
    color: #fff;
    text-shadow: 
        0 0 20px rgba(220, 38, 38, 0.7),
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.4),
        1px 1px 0 rgba(139, 0, 0, 0.4);
    letter-spacing: 0.12em;
    position: relative;
    padding: 10px 20px;
    border-left: 4px solid rgba(220, 38, 38, 0.8);
    border-right: 4px solid rgba(220, 38, 38, 0.8);
    background: linear-gradient(90deg, 
        rgba(220, 38, 38, 0.15) 0%, 
        rgba(220, 38, 38, 0.05) 50%, 
        rgba(220, 38, 38, 0.15) 100%);
    border-radius: 8px;
    display: inline-block;
}

.page-3 h2 {
    text-align: center;
    width: 100%;
}
.page-4 h2 {
    text-align: left;
    width: 100%;
}

p { 
    font-size: 1.05rem; 
    line-height: 1.8; 
    margin-bottom: 12px; 
    font-family: 'Noto Serif SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    color: #333;
    text-shadow: none;
}

/* 文字块背景优化 - 革命主题 */
.text-block {
    background: linear-gradient(135deg, 
        rgba(255, 245, 240, 0.95) 0%, 
        rgba(255, 235, 230, 0.98) 100%);
    padding: 22px 28px;
    border-radius: 12px;
    box-shadow: 
        0 6px 20px rgba(220, 38, 38, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(220, 38, 38, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    max-height: 30vh; /* 限制最大高度 */
    overflow-y: auto; /* 添加滚动功能 */
    /* 自定义滚动条 */
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 38, 38, 0.4) transparent;
}
.text-block::-webkit-scrollbar {
    width: 6px;
}
.text-block::-webkit-scrollbar-track {
    background: transparent;
}
.text-block::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.4);
    border-radius: 3px;
}
.text-block::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 38, 38, 0.6);
}

/* 文字块装饰边框 */
.text-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(220, 38, 38, 0.6) 50%, 
        transparent 100%);
    border-radius: 12px 12px 0 0;
}

/* 图片容器 - 革命主题 */
.feature-img {
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 10px;
    margin: 15px 0;
    box-shadow: 
        0 6px 20px rgba(220, 38, 38, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1);
    background: rgba(255, 245, 240, 0.6);
    border: 2px solid rgba(220, 38, 38, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-img:hover {
    transform: scale(1.02);
    box-shadow: 
        0 8px 24px rgba(220, 38, 38, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 地道构造图片 - 可点击样式 */
#tunnelImg {
    cursor: pointer;
    position: relative;
    object-fit: cover; /* 改为 cover 以裁剪空白 */
    object-position: center 20%; /* 从20%位置开始显示，裁剪上方空白 */
    max-height: 60vh; /* 稍微增加高度以补偿裁剪 */
    margin-top: -5%; /* 向上移动，裁剪上方空白 */
    margin-bottom: 0;
    width: 100%;
}
#tunnelImg:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
#tunnelImg::after {
    content: '点击查看详情';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
#tunnelImg:hover::after {
    opacity: 1;
}

/* 地图容器 */
.map-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-height: 80vh; /* 进一步增大地图高度 */
    margin: 10px 0;
}
.map-container .feature-img {
    margin: 0;
    display: block;
    background: transparent;
    max-height: 80vh; /* 进一步增大地图高度 */
    width: 100%;
    object-fit: contain;
}

/* 地图页面左侧容器 */
.map-left-container {
    flex: 0 0 60%; /* 地图区域占 60% */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 地图页面右侧文字容器 */
.map-right-text {
    flex: 0 0 40%; /* 文字区域占 40% */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10px;
}

/* 移动端响应式：地图页面恢复垂直布局 */
@media (max-width: 768px) {
    .page-3 .content {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .map-left-container {
        flex: 0 0 auto;
        width: 100%;
    }
    .map-right-text {
        flex: 0 0 auto;
        width: 100%;
        padding-left: 0;
    }
    .map-container {
        max-height: 50vh;
    }
    .map-container .feature-img {
        max-height: 50vh;
    }
}

/* 视频容器 */
/* 视频页面左侧容器 */
.video-left-container {
    flex: 0 0 55%; /* 视频区域占 55% */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* 垂直居中 */
}

.video-container {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.15);
    background: black;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.video-container video {
    width: 100%;
    display: block;
    max-height: 70vh;
}

/* 视频页面右侧文字容器 */
.video-right-text {
    flex: 0 0 45%; /* 文字区域占 45% */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
    padding-left: 30px; /* 增加左侧内边距，让内容更靠右 */
    align-items: flex-start;
}

.video-right-text h2 {
    text-align: left; /* 标题左对齐 */
    width: 100%;
    margin-bottom: 20px;
}

.video-right-text .scrollable-text {
    max-height: 70vh;
    min-height: 200px; /* 设置最小高度 */
    margin-top: 0;
    width: 100%;
    overflow-y: auto; /* 确保可以滚动 */
    overflow-x: hidden; /* 防止横向滚动 */
}
.video-right-text .scrollable-text p {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
}
.video-right-text .scrollable-text p strong {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* 移动端响应式：视频页面恢复垂直布局 */
@media (max-width: 768px) {
    .page-4 .content {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .video-left-container {
        flex: 0 0 auto;
        width: 100%;
    }
    .video-right-text {
        flex: 0 0 auto;
        width: 100%;
        padding-left: 0;
    }
    .video-container video {
        max-height: 50vh;
    }
    .video-right-text .scrollable-text {
        max-height: 40vh;
        min-height: 150px;
    }
    .scrollable-text {
        max-height: 30vh;
        min-height: 120px;
    }
    #tunnelText {
        max-height: 40vh !important;
        min-height: 150px !important;
    }
    .text-block {
        max-height: 25vh;
        min-height: 100px;
    }
}
    max-height: 50vh;
}

/* 滚动文本 - 革命主题 */
.scrollable-text {
    width: 100%;
    max-height: 35vh; /* 增加最大高度，显示更多内容 */
    min-height: 150px; /* 设置最小高度，确保有足够空间 */
    overflow-y: auto; /* 确保可以滚动 */
    overflow-x: hidden; /* 防止横向滚动 */
    text-align: left;
    padding: 20px 25px;
    font-size: 15px;
    line-height: 1.9;
    background: linear-gradient(135deg, 
        rgba(255, 245, 240, 0.96) 0%, 
        rgba(255, 235, 230, 0.98) 100%);
    border-radius: 12px;
    box-shadow: 
        0 6px 20px rgba(220, 38, 38, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(220, 38, 38, 0.25);
    backdrop-filter: blur(8px);
    margin-top: 15px;
    position: relative;
    /* 自定义滚动条 - 红色主题 */
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 38, 38, 0.4) transparent;
}
.scrollable-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(220, 38, 38, 0.5) 50%, 
        transparent 100%);
    border-radius: 12px 12px 0 0;
}
.scrollable-text::-webkit-scrollbar {
    width: 6px;
}
.scrollable-text::-webkit-scrollbar-track {
    background: transparent;
}
.scrollable-text::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.4);
    border-radius: 3px;
}
.scrollable-text::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 38, 38, 0.6);
}
.scrollable-text p { 
    margin-bottom: 14px; 
    font-family: 'Noto Serif SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    color: #444;
}
.scrollable-text p strong {
    color: #c41e3a;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
}

/* 地道构造文字介绍特殊样式 */
#tunnelText {
    animation-duration: 0.6s;
    max-height: 50vh !important; /* 增加最大高度，显示更多内容 */
    min-height: 200px !important; /* 设置最小高度 */
    overflow-y: auto !important; /* 确保可以滚动 */
    overflow-x: hidden !important; /* 防止横向滚动 */
    /* 自定义滚动条样式 */
    scrollbar-width: thin !important;
    scrollbar-color: rgba(220, 38, 38, 0.4) transparent !important;
}
#tunnelText::-webkit-scrollbar {
    width: 6px;
}
#tunnelText::-webkit-scrollbar-track {
    background: transparent;
}
#tunnelText::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.4);
    border-radius: 3px;
}
#tunnelText::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 38, 38, 0.6);
}
#tunnelText p {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
}
#tunnelText p strong {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* 答题卡片 */
.quiz-container {
    width: 95%;
    background: linear-gradient(135deg, 
        rgba(255, 245, 240, 0.96) 0%, 
        rgba(255, 235, 230, 0.98) 100%);
    padding: 28px 24px;
    border-radius: 16px;
    box-shadow: 
        0 8px 24px rgba(220, 38, 38, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(220, 38, 38, 0.3);
    backdrop-filter: blur(10px);
    text-align: left;
    position: relative;
}
.quiz-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(220, 38, 38, 0.6) 50%, 
        transparent 100%);
    border-radius: 16px 16px 0 0;
}
.quiz-question { 
    font-size: 1.2rem; 
    font-weight: 600; 
    margin-bottom: 20px; 
    color: #2c3e50;
    font-family: 'Noto Serif SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    line-height: 1.6;
} 
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-btn {
    padding: 14px 18px;
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: 10px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 245, 240, 0.98) 100%);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 更流畅的缓动 */
    font-size: 1rem;
    font-family: 'Noto Serif SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    color: #444;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}
.quiz-btn:hover {
    background: linear-gradient(135deg, 
        rgba(255, 240, 235, 0.98) 0%, 
        rgba(255, 230, 225, 1) 100%);
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.2);
}
.quiz-btn.correct { 
    background: linear-gradient(135deg, rgba(212, 237, 218, 0.95) 0%, rgba(200, 230, 210, 0.98) 100%);
    border-color: #c3e6cb; 
    color: #155724; 
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
} 
.quiz-btn.wrong { 
    background: linear-gradient(135deg, rgba(248, 215, 218, 0.95) 0%, rgba(245, 200, 210, 0.98) 100%);
    border-color: #f5c6cb; 
    color: #721c24; 
    animation: shake 0.5s;
} 
.quiz-explanation {
    margin-top: 18px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(240, 245, 250, 0.98) 100%);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Noto Serif SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    color: #555;
    line-height: 1.75;
    border: 1px solid rgba(200, 200, 200, 0.3);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    display: none; 
    border-left: 4px solid #667eea;
    max-height: 200px; /* 限制最大高度 */
    overflow-y: auto; /* 添加滚动功能 */
    overflow-x: hidden; /* 防止横向滚动 */
    /* 自定义滚动条 */
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 38, 38, 0.4) transparent;
}
.quiz-explanation::-webkit-scrollbar {
    width: 6px;
}
.quiz-explanation::-webkit-scrollbar-track {
    background: transparent;
}
.quiz-explanation::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.4);
    border-radius: 3px;
}
.quiz-explanation::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 38, 38, 0.6);
}
@keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } 100% { transform: translateX(0); } }

/* 箭头提示：改为右指箭头 */
.arrow-next {
    position: absolute;
    right: 20px;
    top: 50%;
    width: 24px;
    height: 24px;
    border-right: 2px solid white;
    border-top: 2px solid white;
    transform: translateY(-50%) rotate(45deg);
    animation: arrowGuide 1.5s infinite;
    opacity: 0.8;
    z-index: 20;
}
.page-2 .arrow-next, .page-3 .arrow-next { border-color: #999; }
@keyframes arrowGuide {
    0% { opacity: 0; transform: translateY(-50%) rotate(45deg) translate(-10px, 10px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-50%) rotate(45deg) translate(0, 0); }
}

/* 音乐按钮 */
.music-btn {
    position: fixed;
    top: 20px; right: 20px;
    width: 36px; height: 36px;
    z-index: 100;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: white; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.3);
}
.rotating { animation: rotate 3s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.stopped { animation: none; }

.footer { position: absolute; bottom: 10px; font-size: 12px; color: #666; }

/* 地图热点 */
.map-hotspot {
    position: absolute; width: 40px; height: 40px;
    background: rgba(255, 0, 0, 0.4);
    border: 2px solid rgba(255, 0, 0, 0.8);
    border-radius: 50%; cursor: pointer; z-index: 10;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); } 70% { transform: scale(1.0); box-shadow: 0 0 0 15px rgba(255, 0, 0, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); } }

/* 弹窗 Modal */
.modal-overlay {
    display: none; position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); z-index: 1000; 
    justify-content: center; align-items: center;
}
.modal-content {
    position: relative; width: 90%; height: 80%; /* 调整弹窗尺寸 */
    max-width: 900px; /* 增大最大宽度以适应横向布局 */
    background: linear-gradient(135deg, 
        rgba(255, 245, 240, 0.98) 0%, 
        rgba(255, 235, 230, 0.99) 100%);
    border-radius: 16px; 
    padding: 20px;
    overflow: hidden; 
    display: flex; 
    flex-direction: row; /* 改为横向布局 */
    gap: 20px; /* 左右间距 */
    border: 3px solid rgba(220, 38, 38, 0.4);
    box-shadow: 
        0 12px 40px rgba(220, 38, 38, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.2);
}
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(220, 38, 38, 0.7) 20%, 
        rgba(220, 38, 38, 0.9) 50%, 
        rgba(220, 38, 38, 0.7) 80%, 
        transparent 100%);
    border-radius: 16px 16px 0 0;
    z-index: 1;
}
.close-btn {
    position: absolute; top: 12px; right: 18px;
    font-size: 28px; font-weight: bold; color: #c41e3a;
    cursor: pointer; z-index: 1002;
    background: rgba(255, 255, 255, 0.95);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}
.close-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* 弹窗左侧图片区域 */
.modal-image-container {
    flex: 0 0 45%; /* 图片区域占 45% */
    display: flex; flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* 图片轮播分页器位置调整 */
.modal-image-container .swiper-pagination {
    bottom: 10px !important;
    z-index: 10;
}

/* 弹窗内的 Swiper */
.modal-swiper, .modal-swiper-lixian, .modal-swiper-ranzhuang, .modal-swiper-songliao {
    width: 100%; height: 100%; /* 占满容器高度 */
    flex: 1;
    min-height: 0;
}
.modal-image-container .swiper-slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 8px; 
}

/* 弹窗右侧文字区域 */
.modal-text-container {
    flex: 0 0 55%; /* 文字区域占 55% */
    display: flex; 
    flex-direction: column;
    overflow-y: auto; /* 文字区域可滚动 */
    overflow-x: hidden; /* 防止横向滚动 */
    padding-right: 5px; /* 为滚动条留空间 */
    max-height: 100%; /* 确保不超过容器高度 */
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 38, 38, 0.4) transparent;
}
.modal-text-container::-webkit-scrollbar {
    width: 6px;
}
.modal-text-container::-webkit-scrollbar-track {
    background: transparent;
}
.modal-text-container::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.4);
    border-radius: 3px;
}
.modal-text-container::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 38, 38, 0.6);
}

.modal-text { 
    font-size: 15px; 
    line-height: 1.9; 
    text-align: left; 
    color: #444; 
    font-family: 'Noto Serif SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
}
.modal-text h3 { 
    margin-bottom: 18px; 
    color: #c41e3a; 
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(220, 38, 38, 0.2);
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(220, 38, 38, 0.3);
}
.modal-text p { 
    margin-bottom: 14px; 
    text-indent: 2em; 
}
.modal-text p strong {
    color: #c41e3a;
    font-weight: 600;
}

/* 移动端响应式：小屏幕恢复垂直布局 */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column; /* 改为垂直布局 */
        width: 95%;
        height: 90%;
        gap: 15px;
    }
    .modal-image-container {
        flex: 0 0 40%;
        min-height: 200px;
    }
    .modal-text-container {
        flex: 1;
    }
}
}