* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: visible;
    /* overflow: hidden; */
    width: 100vw;
    height: 100vh;

}

/* 强制旋转容器 */
/* .rotate-container {
    width: 100vh;
    height: 100vw;
    top: 0;
    left: 0;
    transform: rotate(90deg) translate(0, -100%);
    transform-origin: top left;
    --container-width: 100vh;
    --container-height: 100vw;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    overflow-x: visible;
} */
.rotate-container {
    width: 100vh;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    transform: rotate(90deg) translate(0, -100vw);
    transform-origin: top left;
    --container-width: 100vh;
    --container-height: 100vw;
    --shift: calc(var(--container-width)- var(--container-height));
    /* overflow: hidden; */
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    overflow-x: auto;
    overflow-y: auto;
    /* overflow-x: visible; */
}

.game-container {
    /* max-width: 1200px; */
    /* min-height: 100vw; */
    margin: 0 auto;
    width: 100vh;
    height: 100vw;
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    top: 0;
}


/* 视频容器 */
.scene-video-container {
    scrollbar-width: none;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    width: 100vh;
    height: 100vw;
    /* aspect-ratio: 16/9; */
    background: #000;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); */
    /* margin: auto; */
    display: flex;
    text-align: center;
}

.scene-video-container video {
    /* object-fit: cover; */
    cursor: pointer;
    width: 100%;
    /* height: 100%; */
    height: auto;
    background-size: cover;
    background-position: center;
}

/* 隐藏原生视频加载效果 */
video::-webkit-media-controls-loading-panel {
    display: none !important;
}

/* 隐藏视频全屏播放按钮 */
video::-webkit-media-controls-fullscreen-button {
    display: none;
}

/* 视频控制按钮 */
.play-pause-overlay {
    display: none;
}

/* 视频控制层 */
.video-controls-overlay {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(f, f, f, 0.9));
    padding: 20px 30px;
    opacity: 0;
    transition: opacity 0.3s;
}

.scene-video-container:hover .video-controls-overlay {
    opacity: 1;
}

.video-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
    border-radius: 2px;
    cursor: pointer;
}

.video-progress-filled {
    height: 100%;
    background: #ff4757;
    width: 0%;
    border-radius: 2px;
    transition: width 0.1s;
}

.video-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-controls-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.control-btn:hover {
    transform: scale(1.1);
    color: #ff4757;
}

.video-time {
    font-size: 14px;
    opacity: 0.8;
}

.video-volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.volume-level {
    height: 100%;
    background: #ff4757;
    width: 80%;
    border-radius: 2px;
}

/* 对话和选择部分 */
.dialogue-box {
    display: none;
    background: rgba(20, 20, 20, 0.9);
    border-left: 4px solid #ff4757;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 0 10px 10px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.character-name {
    color: #ff4757;
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.character-name::before {
    content: "👤";
    font-size: 16px;
}

.dialogue-text {
    font-size: 17px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 选择按钮 */
.choices-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    /* margin-top: 20px; */
    position: absolute;
    width: 60%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 将元素中心移动到父元素中心 */
    /* margin: auto; */
}

.choice-btn {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0), rgba(0, 0, 0, 0));
    border: 2px solid rgba(255, 71, 87, 0);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.choice-btn:hover {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0), rgba(0, 0, 0, 0));
    /* border-color: rgba(ff, 47, 57, 0); */
    transform: translateY(-3px) scale(1.02);
    /* box-shadow: 0 10px 20px rgba(255, 71, 87, 0.2); */
}

.choice-shortcut {
    background: rgba(255, 71, 87, 0.3);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.choice-btn.timer {
    border-color: #ffa502;
}

.choice-btn.timer .choice-shortcut {
    background: rgba(255, 165, 2, 0.3);
}

.timer-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #ffa502;
    width: 100%;
    animation: countdown var(--timer-duration) linear forwards;
}

@keyframes countdown {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* 状态栏 */
.stats-bar {
    display: none;
    /* display: flex; */
    justify-content: space-between;
    background: rgba(20, 20, 20, 0.8);
    padding: 15px 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
    flex: 1;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-item:last-child::after {
    display: none;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* display:none; */
}

.stat-label {
    font-size: 13px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* display:none; */
}

.stat-change {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.5s;
    /* display: none; */
}

/* 进度条 */
.progress-container {
    display: none;
    margin-bottom: 25px;
}

.progress-label {
    display: none;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.8;
}

.progress-bar {
    display: none;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    display: none;
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #ff6b81);
    width: 0%;
    transition: width 1s ease;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* 时间线 */
.timeline-container {
    margin-bottom: 30px;
    display: none;
}

.timeline {
    display: flex;
    overflow-x: auto;
    padding: 20px 10px;
    gap: 5px;
    scrollbar-width: thin;
    scrollbar-color: #ff4757 rgba(255, 255, 255, 0.1);
}

.timeline::-webkit-scrollbar {
    height: 6px;
}

.timeline::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.timeline::-webkit-scrollbar-thumb {
    background: #ff4757;
    border-radius: 3px;
}

.timeline-node {
    /* display: none; */
    display: flex;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    border: 2px solid transparent;
}

.timeline-node:hover {
    transform: scale(1.1);
    background: rgba(255, 71, 87, 0.3);
}

.timeline-node.active {
    background: #ff4757;
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.5);
}

.timeline-node.completed {
    /* display: none; */
    background: #00b894;
}

.timeline-node-number {
    /* display:none; */
    font-size: 14px;
    font-weight: bold;
}

.timeline-node-title {
    /* display:none; */
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0.7;
}

/* 过场动画 */
.scene-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.transition-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
    text-align: center;
    opacity: 0;
}

/* 通知 */
.notification-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1001;
    max-width: 300px;
}

.notification {
    background: rgba(20, 20, 20, 0.95);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ff4757;
    margin-bottom: 15px;
    transform: translateX(100%);
    transition: transform 0.3s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.notification-text {
    font-size: 14px;
}

/* 播放/暂停叠加层 */
.play-pause-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.scene-video-container:hover .play-pause-overlay {
    opacity: 0.3;
}

/* 加载指示器 */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ff4757;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



/* 添加额外css动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px currentColor;
    }

    50% {
        box-shadow: 0 0 20px currentColor;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typewriter 2s steps(40) forwards;
}


#menuBtn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 71, 87, 0.9);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    z-index: 1002;
    font-weight: bold;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

#menuBtn:hover {
    background: #ff4757;
}


/* ------------------------------------------------交互1----------------------------------------- */
.scroll_item {
    width: 100vh;
    height: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    --container-width: 100vh;
    --container-height: 100vw;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    /* overflow-x: auto;
    overflow-y: auto; */
    /* overflow-x: visible; */
    display: none;
    z-index: 1;

}

.source_container {
    overflow: hidden;
    position: relative;
    /* width: 1080px;
            height: 13780px; */
    top: 0;
    left: 0;
    /* 原始固定尺寸 */
    --original-width: 13780px;
    --original-height: 1080px;
    width: var(--original-width);
    height: var(--original-height);
    /* 计算缩放比例：容器高度/盒子原始高度 */
    /* --scale: calc((var(--container-height, 640px) * 1)  / var(--original-height)); */
    /* 应用缩放 */
    transform-origin: top left;
    /* 缩放就无法渲染全屏 */
    /* transform: scale(0.5); */
    transform: scale(var(--scale));
    /* transform-style: preserve-3d; */
    z-index: 0;
    container-type: inline-size;
}

#hidden-image {
    position: absolute;
    top: 200px;
    left: 700px;
    width: 1200px;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: none;
    overscroll-behavior: contain;
    z-index: 1;
}

#hidden-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 关键属性：contain 保证完整显示 */
    display: block;
    /* 移除图片底部的多余间隙 */
}

#blueprint_closed {
    /* 桌面上的图纸 */
    position: absolute;
    /* scale: 0.1; */
    top: 659px;
    left: 1180px;
    z-index: 0;
}

#letter_closed {
    /* 桌面上的信 */
    position: absolute;
    /* scale: 0.1; */
    top: 628px;
    left: 1463px;
    z-index: 0;
    display: none;
}

#letter_enlarged {
    /* 展开的李二牛家书 */
    position: absolute;
    top: 150px;
    left: 1115px;
    width: 404px;
    aspect-ratio: 9/16;
    object-fit: cover;
    display: none;
    overscroll-behavior: contain;
    z-index: 1;
}

#letter_enlarged img {
    /* 展开的李二牛家书 */
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 关键属性：contain 保证完整显示 */
    display: block;
    /* 移除图片底部的多余间隙 */
}

.scroll_checkpoint {
    /* overflow: scroll; */
    position: absolute;
    /* scale: 0.75; */
    z-index: 1;
}

.scroll_checkpoint:nth-of-type(5) {
    /* 李二牛 */
    left: 2990px;
    top: 163px;
}

.scroll_checkpoint:nth-of-type(6) {
    /* 老韩 */
    left: 7697px;
    top: 214px;
}

.scroll_checkpoint:nth-of-type(7) {
    /* 工程师 */
    left: 10180px;
    top: 72px;
}

.scroll_click {
    /* overflow: scroll; */
    position: absolute;
    z-index: 0;
}

.scroll_click:nth-of-type(8) {
    /* 道镐 */
    left: 4785px;
    top: 573px;
}

.scroll_click:nth-of-type(9) {
    /* 桥墩*/
    left: 8986px;
    top: 433px;
}

.scroll_click:nth-of-type(10) {
    /* 道镐介绍 */
    left: 4285px;
    top: 200px;
    width: 1200px;
    display: none;
}

.scroll_click:nth-of-type(11) {
    /* 桥墩介绍*/
    left: 8486px;
    top: 200px;
    width: 1200px;
    display: none;
}

.scroll_sounds {
    position: absolute;
    z-index: 0;
    opacity: 0;
    transition: opacity 3s ease;
    /* display: none; */
}

.scroll_sounds.dispaly {
    opacity: 1;
}

.scroll_sounds:nth-of-type(12) {
    /* 李二牛语音 */
    left: 3395px;
    top: 290px;
}

.scroll_sounds:nth-of-type(13) {
    /* 老韩语音 */
    left: 6982px;
    top: 300px;
}

.scroll_sounds:nth-of-type(14) {
    /* 工程师语音 */
    left: 10790px;
    top: 240px;
}

.interaction1 .continue_button {
    /* 继续探索按钮 */
    position: absolute;
    z-index: 0;
    left: 13000px;
    top: 450px;
    opacity: 1;
    transition: scale 0.5s ease;
}

/* 灰尘Canvas层 */
.dust-overlay {
    position: absolute;
    top: 0px;
    left: 0px;

    z-index: 2;
    cursor: grab;
    /* touch-action: none; */
    border-radius: 10px;
}

.dust-overlay:active {
    cursor: grabbing;
}

/* 擦拭效果 */
.wipe-effects {
    position: absolute;
    top: 0px;
    left: 0px;
    pointer-events: none;
    z-index: 3;
}

.wipe-circle {
    position: absolute;
    top: 0px;
    left: 0px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: wipeFade 0.8s forwards;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

@keyframes wipeFade {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@media (max-width: 768px) {
    #scroll_container {
        width: 95%;
        height: 85vh;
    }
}

/* 动画checkpoint淡入 */
@keyframes fadeIn {
    0% {
        opacity: 0;
        /* scale: 0.75; */
        transform: translateY(1080px);
        /* top:1080px; */
    }

    /* 50% {
                opacity: 1;
                scale: 1;
                transform: translateY(0px);
            } */

    100% {
        opacity: 1;
        /* scale: 0.75; */
        transform: translateY(0px);
        /* top: 200px; */
    }
}

/* @media (prefers-reduced-motion: no-preference) {
    .interaction1 .scroll_checkpoint {
        animation: fadeIn linear;
        animation-timeline: view(x 20% 20%);
        animation-range: entry 20% entry 100%;
        animation-iteration-count: 1;
        animation-fill-mode: forwards;
    }
} */

/* 动画checkpoint淡入 - 修复版本 */
@keyframes newfadeIn {
    0% {
        opacity: 0;
        transform: translateY(1080px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

/* 修复ViewTimeline动画问题：移除缩放影响 */
/* opacity: 0; */
/* .interaction1 .scroll_checkpoint {
    animation: newfadeIn 2s ease;
    animation-fill-mode: both;
    animation-play-state: paused;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
} */

/* 使用JavaScript控制动画的替代方案 */
.animated {
    animation-play-state: running;
}



/* 动画 继续探索按钮 */
@keyframes fadeIn2 {
    0% {
        opacity: 0;
        /* scale: 0.75; */
        transform: translateY(50px);
    }

    50% {
        opacity: 1;
        /* scale: 1; */
        transform: translateY(0px);
    }

    100% {
        opacity: 0;
        /* scale: 0.75; */
        transform: translateY(0px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .scroll_item .continue_button {
        animation: fadeIn2 ease;
        animation-timeline: view(x);
        animation-range: entry 0% entry 100% exit;
    }
}

/* 动画继续探索按钮淡入 - 修复版本 */
@keyframes newfadeIn2 {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

/* 修复ViewTimeline动画问题：移除缩放影响 */
.interaction1 .continue_button {
    animation: newfadeIn2 1.5s ease;
    animation-fill-mode: both;
    opacity: 0;
    animation-play-state: paused;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.continue_button:hover {
    scale: 1.25;
}

.continue_button:active {
    transform: translateY(2px);
}

/* 动画 发光 */
@keyframes flicker {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
        /* scale: 1; */
    }

    100% {
        opacity: 0;
        /* scale: 0.75; */
    }
}

@media (prefers-reduced-motion: no-preference) {
    .scroll_item .flicker {
        animation: flicker 1.2s ease;
        animation-iteration-count: infinite;
    }
}

.flicker:hover {
    animation-play-state: paused;
}

/* ------------------------------------------------交互1----------------------------------------- */

/* ------------------------------------------------交互2----------------------------------------- */
/* Scroll_Item */
.scroll_item.interaction2 {
    position: absolute;
    top: 0;
    left: 0;
    /* 设置滑动容器大小 */
    width: var(--container-width, 640px);
    height: var(--container-height, 360px);
    --container-width: 100vh;
    --container-height: 100vw;
    /* --container-height: 100%; */
    /* 水平滚动 */
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    /* display: none; */
    z-index: 1;
}



.source_container.interaction2 {
    overflow: hidden;
    position: relative;
    top: 0;
    left: 0;
    /* 原始固定尺寸 */
    --original-width: 9119px;
    --original-height: 1080px;
    width: var(--original-width);
    height: var(--original-height);
    /* 计算缩放比例：容器高度/盒子原始高度 */
    /* --scale: calc((var(--container-height, 640px) * 1) / var(--original-height)); */
    /* 应用缩放 */
    transform-origin: top left;
    /* transform: scale(var(--scale)); */
    z-index: 0;
    /* container-type: inline-size; */
}

.scroll_click_interaction2 {
    position: absolute;
    z-index: 0;
    opacity: 0;
    transition: opacity 2s ease;
}

.scroll_click_interaction2:nth-of-type(2) {
    /* 宜昌 */
    left: 780px;
    top: 25px;
}

.scroll_click_interaction2:nth-of-type(3) {
    /* 小溪塔 */
    left: 2625px;
    top: 25px;
}

.scroll_click_interaction2:nth-of-type(4) {
    /* 黄花场 */
    left: 4720px;
    top: 25px;
}

.scroll_click_interaction2:nth-of-type(5) {
    /* 张家口 */
    left: 6600px;
    top: 25px;
}

.continue_button_interaction2 {
    /* 继续探索按钮 */
    position: absolute;
    z-index: 0;
    left: 8400px;
    top: 450px;
    opacity: 1;
    transition: scale 0.5s ease;
}

.button-div_interaction2 {
    position: absolute;
    z-index: 1;
    background: #b7cfb5;
    opacity: 0;
    transition: opacity 2s ease;
}

.button-div_interaction2:nth-of-type(1) {
    /* 宜昌 */
    width: 1300px;
    height: 545px;
    left: 680px;
    top: 315px;
}

.button-div_interaction2:nth-of-type(2) {
    /* 小溪塔 */
    width: 1430px;
    height: 550px;
    left: 2510px;
    top: 310px;
}

.button-div_interaction2:nth-of-type(3) {
    /* 黄花场 */
    width: 1670px;
    height: 560px;
    left: 4480px;
    top: 310px;
}

.button-div_interaction2:nth-of-type(4) {
    /* 张家口 */
    width: 1496px;
    height: 570px;
    left: 6611px;
    top: 310px;
}

/* 交互2继续探索按钮动画  旧 重复定义已删 */


@media (prefers-reduced-motion: no-preference) {
    .scroll_item .continue_button_interaction2 {
        animation: fadeIn2 ease;
        animation-timeline: view(x);
        animation-range: entry 0% entry 100% exit;
    }
}

/* 动画继续探索按钮淡入 - 修复版本 新 重复定义 已删 */


/* 修复ViewTimeline动画问题：移除缩放影响 */
.scroll_item .continue_button_interaction2 {
    animation: newfadeIn2 1.5s ease;
    animation-fill-mode: both;
    opacity: 0;
    animation-play-state: paused;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.continue_button_interaction2:hover {
    scale: 1.25;
}

.continue_button_interaction2:active {
    transform: translateY(2px);
}

/* ------------------------------------------------交互2----------------------------------------- */

/* ------------------------------------------------交互3----------------------------------------- */
/* Scroll_Item */
.scroll_item.interaction3 {
    position: absolute;
    top: 0;
    left: 0;
    /* 设置滑动容器大小 */
    width: var(--container-width, 640px);
    height: var(--container-height, 360px);
    --container-width: 100vh;
    --container-height: 100vw;
    /* --container-height: 100%; */
    /* 水平滚动 */
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    display: none;
}

.source_container.interaction3 {
    overflow: hidden;
    position: relative;
    top: 0;
    left: 0;
    /* 原始固定尺寸 */
    --original-width: 20237px;
    --original-height: 1080px;
    width: var(--original-width);
    height: var(--original-height);
    /* 计算缩放比例：容器高度/盒子原始高度 */
    /* --scale: calc((var(--container-height, 640px) * 1) / var(--original-height)); */
    /* --scale: calc(((var(--container-width, 640px) * 9) / 16) / var(--original-height)); */
    /* 应用缩放 */
    transform-origin: top left;
    /* transform: scale(var(--scale)); */
    z-index: 0;
    container-type: inline-size;
}

.scroll_click_interaction3 {
    position: absolute;
    z-index: 0;
    opacity: 0;
    transition: opacity 2s ease;
}

.scroll_click_interaction3:nth-of-type(2) {
    /* 站台 */
    left: 490px;
    top: 0px;
}

.scroll_click_interaction3:nth-of-type(3) {
    /* 大厅 */
    left: 4676px;
    top: 10px;
}

.scroll_click_interaction3:nth-of-type(4) {
    /* 站房 */
    left: 14269px;
    top: 0px;
}

/* 大厅 */
/* .scroll_click_interaction3:nth-of-type(5) {
            left: 6700px;
            top: 0px;
        } */

.continue_button_interaction3 {
    /* 继续探索按钮 */
    position: absolute;
    z-index: 0;
    left: 19460px;
    top: 450px;
    opacity: 1;
    transition: scale 0.5s ease;
}

.button-div_interaction3 {
    position: absolute;
    z-index: 1;
    background: #b7cfb5;
    opacity: 0;
    transition: opacity 2s ease;
}

.button-div_interaction3:nth-of-type(1) {
    /* 站台 */
    width: 2334px;
    height: 210px;
    left: 150px;
    top: 450px;
}

.button-div_interaction3:nth-of-type(2) {
    /* 大厅 */
    width: 4430px;
    height: 370px;
    left: 2810px;
    top: 510px;
}

.button-div_interaction3:nth-of-type(3) {
    /* 站房 */
    width: 3960px;
    height: 670px;
    left: 12940px;
    top: 400px;
}


/* 动画 继续探索按钮 旧 重复定义已删  */


@media (prefers-reduced-motion: no-preference) {
    .scroll_item .continue_button_interaction3 {
        animation: fadeIn2 ease;
        animation-timeline: view(x);
        animation-range: entry 0% entry 100% exit;
    }
}

/* 动画继续探索按钮淡入 - 修复版本 新 重复定义 已删 */


/* 修复ViewTimeline动画问题：移除缩放影响 */
.scroll_item .continue_button_interaction3 {
    animation: newfadeIn2 1.5s ease;
    animation-fill-mode: both;
    opacity: 0;
    animation-play-state: paused;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.continue_button_interaction3:hover {
    scale: 1.25;
}

.continue_button_interaction3:active {
    transform: translateY(2px);
}

/* ------------------------------------------------交互3----------------------------------------- */

/* ------------------------------------------------交互4----------------------------------------- */
/* Scroll_Item */
.scroll_item.interaction4 {
    display: none;
    /* overflow: hidden; */
    overflow: scroll;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    isolation: isolate;
    transform: translate3d(0, 0, 0);
}

.btn-download {
    position: fixed;
    top: 5%;
    left: 100%;
    transform: translate(-100%, 00%);
    text-align: center;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    padding: 10px 24px;
    min-width: 150px;
    transition: 0.07s linear;
    letter-spacing: 1px;
    cursor: pointer;
    color: #ecd9b4;
}

.btn-download:active {
    transform: translate(-100%, 2px);
}

.btn-download:hover {
    cursor: pointer;
    scale: 1.05;
}

#hiddenMsg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    margin-top: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 24px;
    color: #cbb272;
    background-color: #2c2418aa;
    padding: 8px;
    border-radius: 30px;
    backdrop-filter: blue(3px);
    opacity: 0;
    transition: opacity 1.5s ease;
}

@font-face {
    font-family: 'myChinese';
    src: url(./media/font/FZMHJW_0.TTF);
    /* src: url(./media/font/fzmhjw_0.ttf) format('truetype'); */
}

@font-face {
    font-family: 'mytestChinese';
    /* src: url(./media/font/FZMHJW_0.TTF); */
    src: url(data:./media/font/fzmhjw_0.ttf);
}

@font-face {
    font-family: 'myNumber';
    src: url(./media/font/myNumber.TTF);
}

canvas {
    font-family: 'myChinese', 'myNumber';
}

/* ------------------------------------------------交互4----------------------------------------- */

/* ------------------------------------------------交互5----------------------------------------- */
.scroll_item.interaction5 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vw;
    justify-content: center;
    align-items: center;
    /* display: flex; */
    display: none;
}

.welcome-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.welcome-card h1 {
    color: #333;
    margin-bottom: 20px;
}

.welcome-card p {
    color: #666;
    margin-bottom: 30px;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn555 0.3s;
}

@keyframes fadeIn555 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    animation: slideIn555 0.3s;
}

@keyframes slideIn555 {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 20px;
}

.modal-content input:focus {
    outline: none;
    border-color: #667eea;
}

.modal-buttons {
    display: flex;
    gap: 10px;
}

.modal-buttons button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
}

.btn-submit {
    background: #667eea;
    color: white;
}

.btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.display-name {
    margin-top: 20px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 10px;
    font-size: 18px;
    display: none;
}

/* ------------------------------------------------交互5----------------------------------------- */