:root {
  --color-primary-red: #c93b2b;
  --color-primary-dark: #120b08;
  --color-gold: #e6b343;
  --color-gold-glow: rgba(230, 179, 67, 0.45);
  --color-bg-dark: #100b09;
  --color-surface: rgba(28, 20, 16, 0.88);
  --color-border: rgba(230, 179, 67, 0.28);
  --color-text-main: #f5eedb;
  --color-text-sub: #bcaaa4;
  --font-serif: "Songti SC", "Source Han Serif CN", "Noto Serif CJK SC", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  --top-nav-height: 54px;
  --bottom-hud-height: 48px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000;
  font-family: var(--font-sans);
  color: var(--color-text-main);
}

/* ================= 舞台根容器与旋转适配 ================= */
.stage-root {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--color-bg-dark);
  transition: transform 0.25s ease;
}

/* 核心：竖屏状态下，内容强制顺时针旋转90度，用户竖屏锁定手机横着拿看内容 */
@media (orientation: portrait), (max-aspect-ratio: 1/1) {
  .stage-root {
    width: 100vh !important;
    height: 100vw !important;
    transform-origin: 0 0;
    transform: rotate(90deg) translateY(-100%);
  }
}

/* ================= 开屏封面层（纯净封面背景图 + 开启长征之旅按钮） ================= */
.intro-screen {
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0806;
  transition: opacity 0.6s ease, visibility 0.6s;
  cursor: pointer;
}

.intro-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-bg {
  position: absolute;
  inset: 0;
  background-image: url("./assets/cover/cover.jpg?v=6");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  filter: none;
}

/* 封面火星与薪火粒子特效画布 */
.cover-sparks-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: screen;
}

.btn-start-img {
  position: absolute;
  top: 60.1%;
  left: 32.45%;
  transform: translateX(-50%);
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  width: 32.0%;
  height: 9.9%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-start-img img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.65));
}

.btn-start-img.pulse-btn {
  animation: pulseButtonImgAnim 2.2s infinite ease-in-out;
}

@keyframes pulseButtonImgAnim {
  0% {
    transform: translateX(-50%) scale(1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  }
  50% {
    transform: translateX(-50%) scale(1.06);
    filter: drop-shadow(0 8px 24px rgba(230, 179, 67, 0.65));
  }
  100% {
    transform: translateX(-50%) scale(1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  }
}

/* ================= 主视口舞台 ================= */
.main-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0e0907;
  touch-action: none;
}

/* ================= 顶部5大部件导航栏（全透明无底板，居中占2/3宽） ================= */
.top-nav-bar {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: var(--top-nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center; /* 5个图标整体水平居中 */
  padding: 0 20px;
  background: transparent; /* 去除半透明底板 */
  backdrop-filter: none;
  border-bottom: none;
  pointer-events: none; /* 穿透空白处，防止阻断拖拽长图 */
}

/* 5个图标容器：大概占整个宽度的 2/3，两端拉开大间距 */
.badges-container {
  width: 66.6%;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

/* 纯图标按钮：尺寸精巧细腻（约34px），点击反馈灵敏 */
.badge-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.badge-item:hover {
  transform: translateY(-2px) scale(1.12);
}

.badge-item:active {
  transform: scale(0.9);
}

.badge-icon-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28), filter 0.3s ease;
  filter: none;
}

/* 点亮时刻的冲击波金光圈 */
.badge-shockwave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #ffd875;
  box-shadow: 0 0 12px #ffd875, inset 0 0 8px rgba(255, 216, 117, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.badge-shockwave.wave-burst {
  animation: shockwaveBurst 1.1s cubic-bezier(0.12, 0.8, 0.32, 1) forwards;
}

@keyframes shockwaveBurst {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
    border-color: #ffe89e;
  }
  40% {
    opacity: 0.9;
    border-color: var(--color-gold);
    box-shadow: 0 0 20px #ffd875, 0 0 10px #ff5745;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
    border-color: rgba(223, 67, 51, 0);
  }
}

/* 点亮瞬间图标的剧烈弹跳与强光爆发动画 */
.badge-icon-img.pop-shine {
  animation: badgePopShine 1s cubic-bezier(0.2, 0.88, 0.3, 1.15) forwards;
}

@keyframes badgePopShine {
  0% {
    transform: scale(0.7) rotate(-6deg);
    filter: brightness(2.2) drop-shadow(0 0 24px #ffd875);
  }
  35% {
    transform: scale(1.55) rotate(8deg);
    filter: brightness(1.6) drop-shadow(0 0 20px #ffd875) drop-shadow(0 0 10px #ff4500);
  }
  65% {
    transform: scale(0.92) rotate(-3deg);
    filter: brightness(1.2) drop-shadow(0 0 14px rgba(230, 179, 67, 0.9));
  }
  85% {
    transform: scale(1.08) rotate(1deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 9px rgba(230, 179, 67, 0.95)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
  }
}

/* 部件已点亮状态：纯图标呼吸发光特效 */
.badge-item.unlocked .badge-icon-img {
  filter: drop-shadow(0 0 9px rgba(230, 179, 67, 0.95)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
  animation: badgeFloatingBreath 3.2s ease-in-out infinite alternate;
}

@keyframes badgeFloatingBreath {
  0% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 7px rgba(230, 179, 67, 0.85));
  }
  100% {
    transform: translateY(-2px) scale(1.05);
    filter: drop-shadow(0 0 13px rgba(230, 179, 67, 1)) drop-shadow(0 0 4px #ffd875);
  }
}

.badge-item.active-target .badge-icon-img {
  filter: drop-shadow(0 0 18px #ffffff) drop-shadow(0 0 10px var(--color-gold));
}

.audio-toggle-box {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
}

.btn-audio {
  background: rgba(30, 20, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.btn-audio .audio-icon {
  display: inline-block;
  font-size: 15px;
}

.btn-audio .audio-icon.playing {
  animation: audioRotate 4s linear infinite;
}

@keyframes audioRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ================= 全景分屏长卷世界 ================= */
.world-scroller {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* 切片图层（纯净无拉伸原画长卷，上下顶满，横向1:1无缝排列） */
.slices-layer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  pointer-events: none;
}

.slice-pane {
  position: relative;
  height: 100%;
  flex-shrink: 0;
  border-right: none;
  overflow: hidden;
}

.slice-pane .slice-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.slice-pane::before {
  display: none !important;
}

.slice-pane .era-watermark,
.slice-pane .era-banner {
  display: none !important;
}

/* 地表山水与行军轨迹层 */
.ground-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;
  background: linear-gradient(0deg, rgba(16, 11, 9, 0.98) 0%, rgba(16, 11, 9, 0.6) 65%, transparent 100%);
  pointer-events: none;
}

/* ================= 行军路线轨迹层（已按需求彻底移除动态虚线与光带） ================= */
.ground-layer,
.route-track-svg {
  display: none !important;
}

/* ================= 与背景长图同步平移的长卷时间轴（方案A：已按需求全面清空移除） ================= */
.world-timeline-layer {
  display: none !important;
}

/* ================= 小人队伍（左下方固定位置，高度约整个高度1/4） ================= */
.character-actor-container {
  position: absolute;
  bottom: 18px; /* 纯净全屏下小人自然沉底漫步，视野开阔 */
  left: 20px;
  height: 25%;  /* 高度约整屏高度的 1/4 */
  min-height: 85px;
  max-height: 140px;
  z-index: 500;
  pointer-events: none;
  transform: none !important;
  transition: none !important;
}

.character-squad {
  position: relative;
  width: 580px;
  height: 100%;
}

.squad-member {
  position: absolute;
  bottom: 0;
  opacity: 0;
  transform: translateX(-12px) scale(0.88);
  transition: opacity 0.45s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
  pointer-events: none;
}

.squad-member.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.squad-member img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: none !important;
}

.squad-member .member-shadow {
  display: none !important;
}

/* 大屏全景放映时隐藏小人队伍 */
.stage-root.theater-active .character-actor-container {
  display: none !important;
}

.costume-bubble {
  display: none !important;
}

.costume-bubble.hidden {
  display: none;
}

@keyframes bubblePop {
  0% { transform: translateX(-50%) scale(0.6); opacity: 0; }
  20% { transform: translateX(-50%) scale(1.1); opacity: 1; }
  80% { transform: translateX(-50%) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-10px); opacity: 0; }
}

/* ================= 节点层（5大视频 + 历史资料素材） ================= */
.nodes-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 历史图文与资料素材节点（严格按预览图坐标 1:1 无拉伸放置） */
.historic-material-item {
  position: absolute;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 180;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.historic-material-item:hover {
  transform: scale(1.02);
  z-index: 200;
}

.historic-material-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* 历史素材专属音频播放胶囊按钮（如开国大典“点击播放时代之声”） */
.material-audio-btn {
  position: absolute;
  top: calc(100% + 4px);
  left: 15.6%;
  width: 73.9%;
  cursor: pointer;
  z-index: 220;
  pointer-events: auto;
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1), filter 0.22s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.material-audio-btn:hover {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.material-audio-btn:active {
  transform: scale(0.97);
}

/* 置于画框顶部的音频按钮（如杨利伟飞天） */
.material-audio-btn.placement-top,
#audio-btn-el_yangliwei {
  top: -15.5%;
  bottom: auto;
  left: 54%;
  width: 43.5%;
}

/* 独立背景浮动音频播放按钮（如钱学森时代之声） */
.historic-material-item.standalone-audio-card {
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
}

.material-audio-btn.is-standalone {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.material-audio-btn.is-standalone .material-audio-btn-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.material-audio-btn-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.32));
}

/* 播放中呼吸与高亮光晕特效 */
.material-audio-btn.is-playing {
  animation: audioBtnPulse 1.8s infinite ease-in-out;
}

@keyframes audioBtnPulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1.05) drop-shadow(0 0 6px rgba(220, 38, 38, 0.6));
  }
  50% {
    transform: scale(1.03);
    filter: brightness(1.2) drop-shadow(0 0 16px rgba(255, 60, 60, 0.95));
  }
}

/* 竖屏视频微画框 */
.vertical-video-card {
  position: absolute;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 180;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vertical-video-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.vertical-video-inner {
  position: absolute;
  top: 4.5%;
  height: 91%;
  width: 84.5%;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.embedded-vertical-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.btn-vertical-play-toggle {
  display: none !important;
}

/* 5大核心视频节点：严格按预览图比例精确定位 */
.embedded-video-frame {
  position: absolute;
  z-index: 220;
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.embedded-video-frame:hover {
  transform: scale(1.02);
}

.video-window-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* 视频卡片原画装饰底图 */
.video-card-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* 视频在卡片内的内嵌视窗（按指定参数调整） */
.video-inner-slot {
  position: absolute;
  top: 8%;
  left: 17.5%;
  width: 78%;
  height: 83.8%;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.embedded-inline-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.embedded-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 当大屏模式激活时，彻底从DOM渲染树移除顶栏部件、背景音乐开关与底栏HUD，绝不残留任何隐形点击阻挡 */
.stage-root.theater-active .top-nav-bar,
.stage-root.theater-active .bottom-hud-panel,
.stage-root.theater-active .audio-toggle-box,
.stage-root.theater-active .btn-audio {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* ================= 大窗口全景放映模式（同一 video 标签，高度撑满屏幕，在最前层级） ================= */
.embedded-video-frame.is-theater-expanded {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 100% !important;
  /* 绝不可写死 width: 100%（否则会继承长卷8000px的总宽度），由JS赋值为视口精准宽 v.width */
  aspect-ratio: auto !important;
  transform: translateX(-50%) !important;
  z-index: 100000 !important;
  background: #000 !important;
  /* 影院级纯黑背景遮罩，彻底遮盖一切底层背景 */
  box-shadow: 0 0 0 4000px #000 !important;
  border-radius: 0 !important;
}

.embedded-video-frame.is-theater-expanded .video-card-frame-img {
  display: none !important;
}

.embedded-video-frame.is-theater-expanded .video-inner-slot {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.embedded-video-frame.is-theater-expanded .embedded-inline-video {
  object-fit: contain !important;
}

/* 1. 大屏时，左上角的标题与年份去掉，右上角的原声按钮去掉 */
.embedded-video-frame.is-theater-expanded .video-window-tagline {
  display: none !important;
}

.embedded-video-frame.is-theater-expanded .video-window-stage {
  border: none !important;
  border-radius: 0 !important;
  background: #000 !important;
  height: 100% !important;
  width: 100% !important;
  position: relative !important;
}

.embedded-video-frame.is-theater-expanded .embedded-inline-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
}

/* 大屏右上角专属大关闭 X 按钮（永远精准位于当前视口右上角） */
.btn-theater-close-corner {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 100005;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
  touch-action: manipulation;
}

.btn-theater-close-corner:hover,
.btn-theater-close-corner:active {
  background: rgba(201, 59, 43, 0.95);
  border-color: #ff9d8c;
  transform: scale(1.1);
}

/* 小窗模式下隐藏右上角的大关闭按钮 */
.embedded-video-frame:not(.is-theater-expanded) .btn-theater-close-corner {
  display: none !important;
}

/* ================= 小窗右上角全屏放大提示按钮（与播放/暂停按钮同系磨砂质感，纯图标） ================= */
.btn-theater-expand-hint {
  position: absolute;
  top: 25px;
  right: 26px;
  z-index: 90;
  width: 38px;
  height: 32px;
  min-width: 38px;
  min-height: 32px;
  padding: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.btn-theater-expand-hint:hover,
.btn-theater-expand-hint:active {
  background: rgba(230, 179, 67, 0.5);
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: scale(1.08);
}

.btn-theater-expand-hint .expand-svg {
  display: block;
  stroke: currentColor;
  flex-shrink: 0;
}

/* 当处于大屏放映模式时，隐藏全屏放大提示按钮 */
.embedded-video-frame.is-theater-expanded .btn-theater-expand-hint {
  display: none !important;
}

/* 小窗口上方标牌 */
.video-window-tagline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 8px;
  background: rgba(20, 13, 10, 0.92);
  border-radius: 6px 6px 0 0;
  border: 1px solid rgba(230, 179, 67, 0.35);
  border-bottom: none;
  gap: 4px;
}

.video-tag-left {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.video-tag-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.video-tag-year {
  font-size: 10px;
  font-weight: bold;
  color: var(--color-gold);
}

.video-tag-title {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-sound-trigger {
  background: rgba(40, 30, 25, 0.9);
  border: 1px solid rgba(230, 179, 67, 0.5);
  color: var(--color-gold);
  font-size: 9px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.btn-sound-trigger.is-muted {
  background: rgba(180, 50, 40, 0.85);
  border-color: #ff9d8c;
  color: #fff;
  animation: soundPulse 1.5s infinite;
}

@keyframes soundPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.btn-fullscreen-trigger {
  background: rgba(223, 67, 51, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-fullscreen-trigger:hover {
  background: #ff5745;
  transform: scale(1.05);
}

/* 小窗口视窗主体（纯透明无边框底座） */
.video-window-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
}

.embedded-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: transform 8s linear, filter 0.4s ease;
}

/* ================= 真实视频进度条与播放控制条（仅贴在最底部，绝无任何全屏遮罩蒙层） ================= */
.embedded-player-overlay {
  position: absolute !important;
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%) !important;
  padding: 6px 12px 8px 12px !important;
  z-index: 100 !important;
  pointer-events: auto !important;
  transition: opacity 0.25s ease;
}

/* 大屏放映模式下的底栏：适配全面屏底边 Home 手势条安全区 */
.embedded-video-frame.is-theater-expanded .embedded-player-overlay {
  padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 14px) !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  padding-top: 14px !important;
  z-index: 100003 !important;
}

.real-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* 播放/暂停切换按钮：增大触控面积至 44x38px，磨砂圆角质感，杜绝触控失灵 */
.btn-video-play-toggle {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  width: 44px;
  height: 38px;
  min-width: 44px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-video-play-toggle:hover,
.btn-video-play-toggle:active {
  background: rgba(230, 179, 67, 0.5);
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: scale(1.08);
}

.btn-play-toggle-icon {
  display: inline-block;
  line-height: 1;
}

/* 进度条触控容器：高度增至 50px，上下提供充裕的大范围手指触控与拖动热区 */
.video-progress-bar-wrap {
  position: relative;
  flex: 1;
  height: 50px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.embedded-progress-track {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  overflow: visible;
  transition: height 0.15s ease;
}

.video-progress-bar-wrap:hover .embedded-progress-track,
.video-progress-bar-wrap.is-scrubbing .embedded-progress-track {
  height: 8px;
}

/* 已缓冲区域指示条（真实网络加载反馈） */
.embedded-progress-buffered {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  pointer-events: none;
  transition: width 0.2s ease;
}

.embedded-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #d9534f 0%, var(--color-gold) 100%);
  border-radius: 3px;
  pointer-events: none;
  z-index: 2;
  overflow: visible !important;
}

/* 进度条圆形拖动按钮（18px精致外观 + 44px隐形触控热区，极大增强判定容错） */
.embedded-progress-scrubber {
  position: absolute;
  top: 50%;
  right: -9px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--color-gold);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.95), 0 0 8px var(--color-gold);
  pointer-events: none;
  transition: transform 0.15s ease, background 0.15s ease;
  display: block !important;
  z-index: 3;
}

/* 隐形 44px 舒适触控大热区，手指稍微按偏也能 100% 稳稳吸附触发 */
.embedded-progress-scrubber::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  pointer-events: none;
}

.video-progress-bar-wrap:hover .embedded-progress-scrubber,
.video-progress-bar-wrap.is-scrubbing .embedded-progress-scrubber {
  transform: translateY(-50%) scale(1.35);
  background: var(--color-gold);
  border-color: #fff;
  box-shadow: 0 0 16px var(--color-gold), 0 0 20px rgba(255, 255, 255, 0.8);
}

.real-time-display {
  font-size: 10px;
  font-family: monospace, var(--font-sans);
  color: #f0e6d8;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

/* 处于当前视口放映中状态（is-playing，彻底移除金色描边） */
.embedded-video-frame.is-playing .video-window-stage {
  border: none;
  box-shadow: none;
}

.embedded-video-frame.is-playing .embedded-poster-img {
  filter: brightness(0.95);
  transform: scale(1.06);
}

.embedded-video-frame.is-theater-expanded .real-time-display {
  font-size: 13px;
}

.embedded-video-frame.is-theater-expanded .btn-video-play-toggle {
  font-size: 18px;
}

.embedded-video-frame.is-theater-expanded .embedded-progress-track {
  height: 6px;
}

/* 小节点地标（已按需求暂时隐藏，待后续统一添加） */
.minor-landmark-node {
  display: none !important;
}
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.minor-label {
  margin-top: 5px;
  font-size: 11px;
  color: var(--color-text-sub);
  background: rgba(0, 0, 0, 0.75);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

/* ================= 底部固定 HUD 面板（方案A：已按需求全面清空移除） ================= */
.bottom-hud-panel {
  display: none !important;
}

.hud-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  pointer-events: auto;
}

.current-era-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.era-tag {
  background: rgba(201, 59, 43, 0.35);
  border: 1px solid rgba(201, 59, 43, 0.75);
  color: #ffb1a3;
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 600;
}

.role-desc {
  color: var(--color-gold);
  font-weight: 500;
}

.drag-hint {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}

.hint-arrow {
  color: var(--color-gold);
}

.mini-progress-wrapper {
  position: relative;
  width: 100%;
  height: 4px;
  margin-top: 3px;
  pointer-events: auto;
}

.mini-progress-track {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

.mini-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #b73224 0%, var(--color-gold) 100%);
  border-radius: 2px;
}

.mini-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 6px var(--color-gold);
}

/* ================= 视频弹窗 ================= */
.modal-layer {
  position: absolute;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-layer.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

/* ================= 原全屏层已升级为同标签尺寸平滑展开 ================= */

.btn-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-media-box {
  position: relative;
  width: 55%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.video-mock-player {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.video-play-indicator {
  align-self: flex-start;
  font-size: 11px;
  color: #fff;
  background: rgba(201, 59, 43, 0.85);
  padding: 4px 9px;
  border-radius: 12px;
}

.video-progress-mock {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.mock-bar {
  display: block;
  width: 60%;
  height: 100%;
  background: var(--color-gold);
  animation: mockPlayProgress 8s linear infinite;
}

@keyframes mockPlayProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

.video-info-box {
  width: 45%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tag-year {
  font-size: 11px;
  color: var(--color-gold);
  font-weight: bold;
}

.video-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #fff;
  margin-top: 3px;
  line-height: 1.3;
}

.video-caption {
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.5;
  margin: 10px 0;
}

.badge-unlocked-notify {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(230, 179, 67, 0.15);
  border: 1px dashed var(--color-gold);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  color: var(--color-gold);
  font-weight: 500;
}

.btn-confirm-next {
  margin-top: 12px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #df4333 0%, #aa2114 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
}

/* ================= 10个小节点轻量气泡（已按需求停用） ================= */
.bubble-popup {
  display: none !important;
}

.bubble-popup.hidden {
  display: none;
}

@keyframes bubbleSlideIn {
  from { transform: translateY(-20px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.bubble-close {
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  border: none;
  color: var(--color-text-sub);
  font-size: 13px;
  cursor: pointer;
}

.bubble-body {
  display: flex;
  gap: 10px;
}

.bubble-thumb-box {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bubble-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bubble-badge-icon {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 12px;
}

.bubble-texts {
  flex: 1;
}

.bubble-meta {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 3px;
}

.bubble-year {
  font-size: 11px;
  color: var(--color-gold);
  font-weight: bold;
}

.bubble-title {
  font-size: 13px;
  color: #fff;
  font-weight: bold;
}

.bubble-quote {
  font-size: 11px;
  color: var(--color-text-sub);
  line-height: 1.45;
  margin-bottom: 5px;
}

.bubble-audio-indicator {
  font-size: 10px;
  color: #ff9d8c;
}



/* ================= 终局全景胜利结尾图弹窗（2.5秒渐显动画） ================= */
.ending-screen {
  position: absolute;
  inset: 0;
  z-index: 7500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.ending-screen.hidden {
  display: none !important;
  pointer-events: none;
}

.ending-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 9, 7, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.ending-modal-box {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 95%;
  max-width: 1080px;
  max-height: 98%;
  padding: 2px;
}

.ending-img-card {
  position: relative;
  width: min(88vw, calc(82vh * 1.777));
  max-width: 1020px;
  border-radius: 14px;
  overflow: visible;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9), 0 0 45px rgba(230, 80, 40, 0.5);
  border: 2px solid rgba(230, 179, 67, 0.9);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ending-grand-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
}

.btn-close-ending {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(30, 20, 15, 0.95);
  border: 1.5px solid var(--color-gold, #e6b343);
  color: #ffd880;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-close-ending:hover,
.btn-close-ending:active {
  transform: scale(1.15);
  background: #c8281e;
  color: #fff;
}

.ending-footer-actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.btn-ending-replay {
  padding: 7px 24px;
  border-radius: 20px;
  border: 1.5px solid rgba(230, 179, 67, 0.85);
  background: linear-gradient(135deg, rgba(160, 24, 24, 0.92), rgba(95, 12, 12, 0.95));
  color: #ffd880;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1.2px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 15px rgba(230, 179, 67, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-ending-replay:hover,
.btn-ending-replay:active {
  transform: scale(1.06);
  filter: brightness(1.15);
}

.replay-icon {
  font-size: 16px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-ending-replay:hover .replay-icon {
  transform: rotate(-90deg);
}

/* ================= 翻越雪山（夹金山）下雪粒子特效 ================= */
.snow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.5s ease-out;
}

.btn-ending-replay:hover .replay-icon {
  transform: rotate(-90deg);
}

/* 2.5秒渐显动画（逐渐出现） */
.ending-screen.is-appearing .ending-overlay {
  animation: endingOverlayFadeIn 2.5s ease-out forwards;
}

.ending-screen.is-appearing .ending-modal-box {
  animation: endingModalFadeIn 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes endingOverlayFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes endingModalFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
    filter: brightness(0.6) blur(4px);
  }
  30% {
    opacity: 0.4;
    filter: brightness(0.8) blur(2px);
  }
  70% {
    opacity: 0.85;
    filter: brightness(0.95) blur(0.5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: brightness(1) blur(0);
  }
}

/* Toast（已按需求停用） */
.toast {
  display: none !important;
}

.toast.hidden {
  opacity: 0;
  visibility: hidden;
}


/* 弹窗中的正式解锁徽章 */
.video-unlocked-badge-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(230, 179, 67, 0.8));
  margin-right: 4px;
}

/* 内嵌与全屏播放器真实视频样式 */
.embedded-inline-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  background: #000;
}

.fullscreen-real-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-mock-box {
  position: relative;
  width: 100%;
  height: 100%;
}

.fullscreen-real-video.hidden,
.video-mock-box.hidden {
  display: none !important;
}
