:root {
  --paper: #F6F2E9;
  --paper-deep: #ECE5D5;
  --ink: #1D2129;
  --ink-soft: #4E5969;
  --ink-muted: #86909C;
  --line: rgba(29, 33, 41, 0.12);
  --seal-red: #B91C1C;
  --warn-red: #C81E1E;
  --slate-gray: #475569;
  --amber-gold: #B45309;
  --jade-green: #0F766E;
  --river-bright: #10B981;
  --card-bg: rgba(255, 253, 248, 0.88);
  --shadow-soft: 0 8px 24px rgba(29, 33, 41, 0.08);
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif CN", "SimSun", Georgia, serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  font-size: calc(min(100vw, 430px) / 3.75);
  height: 100%;
  overflow: hidden;
  background: #1C1E22;
}

body {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-sans);
  color: var(--ink);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* Mobile Stage Container (750 design scale -> max 430px) */
.stage {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
}

/* Subtle Xuan Paper Grain */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image:
    radial-gradient(rgba(29, 33, 41, 0.04) 1px, transparent 0),
    radial-gradient(rgba(180, 83, 9, 0.03) 1px, transparent 0);
  background-size: 24px 24px, 17px 17px;
  background-position: 0 0, 8px 8px;
}

/* Preloader */
.preloader {
  position: absolute;
  inset: 0;
  z-index: 999;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-seal {
  width: 0.64rem;
  height: 0.64rem;
  border: 2px solid var(--seal-red);
  color: var(--seal-red);
  font-family: var(--font-serif);
  font-size: 0.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  letter-spacing: 0.02rem;
  animation: pulseSeal 1.4s ease-in-out infinite;
}
.preloader-bar-wrap {
  width: 1.6rem;
  height: 3px;
  background: rgba(29, 33, 41, 0.1);
  margin-top: 0.22rem;
  border-radius: 2px;
  overflow: hidden;
}
.preloader-bar {
  width: 0%;
  height: 100%;
  background: var(--jade-green);
  transition: width 0.25s ease;
}
.preloader-txt {
  margin-top: 0.1rem;
  font-size: 0.12rem;
  color: var(--ink-soft);
  letter-spacing: 0.03rem;
}

@keyframes pulseSeal {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* Top HUD */
.hud-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: calc(env(safe-area-inset-top, 0px) + 0.12rem) 0.16rem 0.08rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.chapter-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.06rem;
  padding: 0.04rem 0.1rem;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.11rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.chapter-dot {
  width: 0.07rem;
  height: 0.07rem;
  border-radius: 50%;
  background: var(--jade-green);
  transition: background 0.4s ease;
}
.hud-right {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.08rem;
}
.page-num {
  font-size: 0.11rem;
  font-family: var(--font-serif);
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.8);
  padding: 0.03rem 0.08rem;
  border-radius: 99px;
  border: 1px solid var(--line);
}
.music-btn {
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  color: var(--ink);
}
.music-btn.playing svg {
  animation: spinSlow 4s linear infinite;
  color: var(--jade-green);
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Progress Line */
.progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(29, 33, 41, 0.06);
  z-index: 60;
}
.progress-fill {
  height: 100%;
  width: 6.25%;
  background: linear-gradient(90deg, var(--seal-red), var(--jade-green));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Side Dots */
.side-dots {
  position: absolute;
  right: 0.06rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.side-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(29, 33, 41, 0.18);
  transition: all 0.3s ease;
  cursor: pointer;
}
.side-dot.active {
  height: 14px;
  border-radius: 3px;
  background: var(--jade-green);
}

/* Slides Track */
.slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.slide {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: calc(env(safe-area-inset-top, 0px) + 0.54rem) 0.2rem calc(env(safe-area-inset-bottom, 0px) + 0.42rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Slide Theme Tints */
.slide[data-mood="ink"] { background: linear-gradient(180deg, #F6F2E9 0%, #EFE9DA 100%); }
.slide[data-mood="gray"] { background: linear-gradient(180deg, #ECECE8 0%, #DCDEDB 100%); }
.slide[data-mood="warn"] { background: linear-gradient(180deg, #F6EFEA 0%, #EDE2DC 100%); }
.slide[data-mood="teal"] { background: linear-gradient(180deg, #EEF5F3 0%, #E2EFEA 100%); }
.slide[data-mood="gold"] { background: linear-gradient(180deg, #F7F1E3 0%, #EFE3C8 100%); }
.slide[data-mood="jade"] { background: linear-gradient(180deg, #ECF6F2 0%, #DFF0E9 100%); }

/* Mugeda-style Entrance Animations */
.anim {
  opacity: 0;
  transform: translateY(0.18rem);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-left { opacity: 0; transform: translateX(-0.24rem); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.anim-right { opacity: 0; transform: translateX(0.24rem); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.anim-scale { opacity: 0; transform: scale(0.9); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }

.slide.active .anim,
.slide.active .anim-left,
.slide.active .anim-right,
.slide.active .anim-scale {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.34s; }
.d4 { transition-delay: 0.48s; }
.d5 { transition-delay: 0.62s; }
.d6 { transition-delay: 0.76s; }

/* Typography & Newspaper Elements */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.06rem;
  font-size: 0.11rem;
  letter-spacing: 0.02rem;
  color: var(--seal-red);
  font-weight: 700;
  margin-bottom: 0.06rem;
}
.kicker::before {
  content: "";
  width: 0.14rem;
  height: 2px;
  background: currentColor;
}
.h-title {
  font-family: var(--font-serif);
  font-size: 0.24rem;
  line-height: 1.28;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.08rem;
}
.h-sub {
  font-size: 0.13rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 0.12rem;
}
.quote-box {
  border-left: 3px solid var(--seal-red);
  background: rgba(255, 253, 248, 0.75);
  padding: 0.1rem 0.12rem;
  font-family: var(--font-serif);
  font-size: 0.13rem;
  line-height: 1.6;
  color: var(--ink);
  border-radius: 0 0.08rem 0.08rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 0.1rem;
  padding: 0.12rem;
  box-shadow: var(--shadow-soft);
}

.seal-tag {
  display: inline-block;
  border: 1px solid var(--seal-red);
  color: var(--seal-red);
  font-family: var(--font-serif);
  font-size: 0.1rem;
  padding: 0.01rem 0.05rem;
  border-radius: 2px;
  font-weight: 700;
}

/* Swipe Hint */
.swipe-hint {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 0.1rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.02rem;
  font-size: 0.1rem;
  color: var(--ink-muted);
  pointer-events: none;
  animation: floatUp 1.8s ease-in-out infinite;
}
@keyframes floatUp {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.65; }
  50% { transform: translate(-50%, -0.05rem); opacity: 1; }
}

/* P1 Cover */
.cover-masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 0.05rem 0;
  font-size: 0.11rem;
  font-family: var(--font-serif);
  margin-bottom: 0.18rem;
}
.cover-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.cover-main-title {
  font-family: var(--font-serif);
  font-size: 0.42rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.04rem;
  color: var(--ink);
}
.cover-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  margin: 0.14rem 0;
}
.cover-lead {
  font-family: var(--font-serif);
  font-size: 0.16rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.river-wave-svg {
  width: 100%;
  height: 1.2rem;
  margin-top: 0.16rem;
}
.wave-path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  transition: stroke-dashoffset 1.8s ease-out 0.3s;
}
.slide.active .wave-path {
  stroke-dashoffset: 0;
}

/* P2 7 Maps Horizontal Gallery */
.map-tabs {
  display: flex;
  gap: 0.05rem;
  overflow-x: auto;
  padding-bottom: 0.06rem;
  margin-bottom: 0.08rem;
  scrollbar-width: none;
}
.map-tabs::-webkit-scrollbar { display: none; }
.map-tab {
  flex-shrink: 0;
  padding: 0.04rem 0.09rem;
  border-radius: 99px;
  font-size: 0.11rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.65);
  color: var(--ink-soft);
  cursor: pointer;
}
.map-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.map-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0.12rem;
  flex: 1;
  min-height: 0;
  scrollbar-width: none;
}
.map-carousel::-webkit-scrollbar { display: none; }
.map-card {
  flex: 0 0 88%;
  scroll-snap-align: center;
  background: #FFFDF8;
  border: 1px solid var(--line);
  border-radius: 0.1rem;
  padding: 0.08rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.map-img-wrap {
  flex: 1;
  min-height: 0;
  border-radius: 0.06rem;
  overflow: hidden;
  background: #EDE8DC;
  position: relative;
}
.map-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.map-badge {
  position: absolute;
  top: 0.08rem;
  left: 0.08rem;
  padding: 0.03rem 0.08rem;
  border-radius: 4px;
  font-size: 0.1rem;
  font-weight: 700;
  color: #fff;
}
.map-cap {
  padding-top: 0.08rem;
  font-size: 0.12rem;
  line-height: 1.45;
  color: var(--ink);
}
.map-cap strong { display: block; font-size: 0.13rem; margin-bottom: 0.02rem; }

/* Interactive Buttons & Chips */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.08rem;
}
.glossary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.04rem;
  padding: 0.07rem 0.11rem;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: 0.08rem;
  font-size: 0.12rem;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.glossary-btn:active { transform: scale(0.96); }
.glossary-btn .dot {
  width: 0.06rem;
  height: 0.06rem;
  border-radius: 50%;
  background: var(--seal-red);
}

/* P4 River Scale SVG */
.scale-flow {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  margin: 0.08rem 0;
}
.scale-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.1rem 0.12rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--jade-green);
  border-radius: 0.08rem;
  cursor: pointer;
}
.scale-node:active { transform: scale(0.98); }
.scale-node .km {
  font-family: var(--font-serif);
  font-size: 0.18rem;
  font-weight: 700;
  color: var(--jade-green);
}

/* P6 Cover Slab Interaction */
.slab-stage {
  position: relative;
  height: 2.1rem;
  border-radius: 0.1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #D5EDE5 0%, #65B8A6 55%, #2B8A78 100%);
  margin-bottom: 0.12rem;
}
.slab-water-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
  font-family: var(--font-serif);
}
.slab-cover {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    #6B7280 0px,
    #6B7280 58px,
    #4B5563 58px,
    #4B5563 60px
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #F3F4F6;
  transform: translateY(-100%);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.slab-cover.closed {
  transform: translateY(0%);
}
.action-btn {
  width: 100%;
  padding: 0.1rem 0.14rem;
  border-radius: 0.08rem;
  border: none;
  background: var(--ink);
  color: #fff;
  font-size: 0.13rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.06rem;
}
.action-btn:active { opacity: 0.85; transform: scale(0.99); }
.action-btn.gold { background: linear-gradient(135deg, #B45309, #D97706); }
.action-btn.jade { background: linear-gradient(135deg, #0F766E, #059669); }

/* Dynamic Bar Charts */
.bar-row {
  margin-bottom: 0.1rem;
}
.bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.12rem;
  margin-bottom: 0.04rem;
}
.bar-bg {
  height: 0.14rem;
  background: rgba(29, 33, 41, 0.08);
  border-radius: 99px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.slide.active .bar-fill[data-w] {
  width: var(--target-w);
}

/* Water Quality Interactive Chart */
.wq-chart-box {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 0.1rem;
  padding: 0.1rem;
}
.wq-svg {
  width: 100%;
  height: 1.55rem;
  overflow: visible;
}
.wq-line {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  transition: stroke-dashoffset 1.5s ease-out 0.2s;
}
.slide.active .wq-line { stroke-dashoffset: 0; }
.wq-node { cursor: pointer; transition: r 0.2s ease; }
.wq-detail {
  margin-top: 0.08rem;
  padding: 0.08rem 0.1rem;
  background: rgba(15, 118, 110, 0.08);
  border-left: 3px solid var(--jade-green);
  border-radius: 0 0.06rem 0.06rem 0;
  font-size: 0.115rem;
  line-height: 1.5;
}

/* KPI Grid (Counter Up) */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.08rem;
}
.kpi-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 0.09rem;
  padding: 0.1rem;
  box-shadow: var(--shadow-soft);
}
.kpi-val {
  font-family: var(--font-serif);
  font-size: 0.22rem;
  font-weight: 800;
  color: var(--jade-green);
  line-height: 1.2;
}
.kpi-val.warn { color: var(--warn-red); }
.kpi-val.gold { color: var(--amber-gold); }
.kpi-label {
  font-size: 0.11rem;
  color: var(--ink-soft);
  margin-top: 0.03rem;
}

/* P9 Barrage Bubbles */
.barrage-area {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  margin: 0.08rem 0 0.12rem;
}
.bubble {
  padding: 0.09rem 0.12rem;
  border-radius: 0.1rem;
  font-size: 0.12rem;
  line-height: 1.45;
  background: #fff;
  border: 1px solid rgba(185, 28, 28, 0.25);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.06);
  max-width: 92%;
}
.bubble.right { align-self: flex-end; background: #FFF5F5; }

/* P10 Video Cards */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.08rem;
  margin-top: 0.08rem;
}
.video-thumb {
  position: relative;
  border-radius: 0.08rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1D2129;
  aspect-ratio: 16 / 10;
  cursor: pointer;
}
.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.video-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 0.11rem;
  gap: 0.03rem;
}
.play-circle {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.14rem;
}

/* P11 Golden Curtain Reveal */
.curtain-stage {
  position: relative;
  flex: 1;
  min-height: 2.2rem;
  border-radius: 0.12rem;
  overflow: hidden;
  border: 1px solid rgba(180, 83, 9, 0.35);
  background: linear-gradient(180deg, #0D2D2A 0%, #0F524B 60%, #147D6F 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.16rem;
  color: #fff;
  text-align: center;
}
.curtain-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background: linear-gradient(135deg, #B45309 0%, #EAB308 50%, #92400E 100%);
  z-index: 3;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.curtain-left { left: 0; border-right: 1px solid rgba(255,255,255,0.4); }
.curtain-right { right: 0; border-left: 1px solid rgba(255,255,255,0.4); }
.curtain-stage.opened .curtain-left { transform: translateX(-100%); }
.curtain-stage.opened .curtain-right { transform: translateX(100%); }
.curtain-prompt {
  position: relative;
  z-index: 4;
  transition: opacity 0.4s ease;
}
.curtain-stage.opened .curtain-prompt {
  opacity: 0;
  pointer-events: none;
}

/* P13 Flip Cards */
.flip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.09rem;
  flex: 1;
  min-height: 0;
}
.flip-card {
  perspective: 800px;
  cursor: pointer;
}
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}
.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}
.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 0.1rem;
  padding: 0.11rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.flip-front { background: var(--card-bg); }
.flip-back {
  background: var(--jade-green);
  color: #fff;
  transform: rotateY(180deg);
}

/* P15 Scrollable Timeline */
.timeline-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.06rem;
  border-left: 2px solid rgba(15, 118, 110, 0.25);
  margin-left: 0.06rem;
  padding-left: 0.14rem;
}
.tl-item {
  position: relative;
  margin-bottom: 0.11rem;
  padding-bottom: 0.08rem;
  border-bottom: 1px dashed var(--line);
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -0.195rem;
  top: 0.04rem;
  width: 0.09rem;
  height: 0.09rem;
  border-radius: 50%;
  background: var(--jade-green);
  border: 2px solid var(--paper);
}
.tl-item.dark::before { background: var(--slate-gray); }
.tl-item.warn::before { background: var(--warn-red); }
.tl-item.gold::before { background: var(--amber-gold); }
.tl-year { font-family: var(--font-serif); font-weight: 700; font-size: 0.125rem; }
.tl-desc { font-size: 0.115rem; color: var(--ink-soft); line-height: 1.45; margin-top: 0.02rem; }

/* Modal Overlay */
.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 0.12rem;
  padding: 0.18rem;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.1rem;
  padding-bottom: 0.08rem;
  border-bottom: 1px solid var(--line);
}
.modal-close {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.16rem;
  cursor: pointer;
}
.modal-body {
  font-size: 0.13rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.modal-body img {
  width: 100%;
  border-radius: 0.08rem;
}
.modal-body video {
  width: 100%;
  border-radius: 0.08rem;
  background: #000;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .anim, .anim-left, .anim-right, .anim-scale, .slides-wrapper, .bar-fill, .wq-line {
    transition: none !important;
  }
}
