/* =========================================================
   寻瑄之旅 · 给紫瑄的星河情书
   每个章节独立主题色 + 装饰 + 信件终章
   ========================================================= */

/* 「瑄」字专用补丁字体：只含 U+7444，放在手写字体链最前面修正稀有字字形。 */
@font-face {
  font-family: 'LinnXuan';
  src: url('assets/fonts/linn-xuan.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+7444;
}

/* 本地毛笔书法字体，全部本地加载，离线/无外网也能显示。 */
@font-face {
  font-family: 'LinnHand';
  src: url('assets/fonts/linnhand.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-dark: #0a0612;

  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

  --primary: #c084fc;
  --secondary: #ff8cb8;
  --accent: #6ee7ff;
  --gold: #ffd166;
  --soft-rose: #ffb6c8;

  --text-main: #f8f7ff;
  --text-muted: #c5c3d6;

  --font-cn-serif: 'Noto Serif SC', '思源宋体', serif;
  --font-cn-title: 'Noto Serif SC', '思源宋体', serif;
  --font-cn-hand:  'LinnXuan', 'LinnHand', 'Ma Shan Zheng', 'Noto Serif SC', serif;
  --font-letter:   'LinnXuan', 'LinnHand', 'Ma Shan Zheng', 'Noto Serif SC', serif;
  --font-sans:     'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html, body { width: 100%; height: 100%; overflow: hidden; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ===================== 全局星空 ===================== */
.static-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bg-layer  { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity 1.2s ease, filter 1.2s ease; }

.layer-nebula {
  background:
    radial-gradient(ellipse at 25% 18%, rgba(123, 87, 246, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 78% 80%, rgba(255, 121, 184, 0.4) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, #1b1340 0%, #07050f 80%);
}
.layer-photo {
  background-image: url('assets/birthday-world.png');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  mix-blend-mode: screen;
  filter: blur(4px) brightness(0.85) saturate(1.15);
}
.layer-aurora {
  background:
    radial-gradient(circle at 20% 30%, rgba(192, 132, 252, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(110, 231, 255, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 140, 184, 0.12) 0%, transparent 60%);
  animation: auroraDrift 24s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 1%, 0) scale(1.08); }
}

.layer-stars { background-color: transparent; }
.layer-stars::before, .layer-stars::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 160px 30px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 200px 120px, #fff, transparent);
  background-size: 220px 160px;
  animation: starTwinkle 5s linear infinite;
  opacity: 0.65;
}
.layer-stars::after {
  background-size: 380px 280px;
  opacity: 0.45;
  animation-duration: 9s;
  animation-direction: reverse;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 0.3; }
}

/* ===================== 一城一景 · 背景 ===================== */
body[data-city="prologue"] .layer-nebula {
  background:
    radial-gradient(ellipse at 40% 25%, rgba(192, 132, 252, 0.45), transparent 55%),
    radial-gradient(ellipse at 70% 75%, rgba(255, 140, 184, 0.35), transparent 55%),
    radial-gradient(circle, #1a1035 0%, #06040c 85%);
}
body[data-city="nanjing"] .layer-nebula {
  background:
    radial-gradient(ellipse at 25% 30%, rgba(255, 200, 80, 0.42), transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(120, 180, 60, 0.28), transparent 60%),
    linear-gradient(165deg, #1a1408 0%, #0d1208 45%, #060810 100%);
}
body[data-city="yangzhou"] .layer-nebula {
  background:
    radial-gradient(ellipse at 50% 85%, rgba(90, 160, 120, 0.5), transparent 65%),
    radial-gradient(ellipse at 30% 20%, rgba(180, 220, 200, 0.25), transparent 50%),
    linear-gradient(180deg, #0a1812 0%, #0d2218 50%, #061410 100%);
}
body[data-city="zhenjiang"] .layer-nebula {
  background:
    radial-gradient(ellipse at 50% 60%, rgba(100, 140, 180, 0.45), transparent 70%),
    radial-gradient(ellipse at 20% 30%, rgba(180, 200, 220, 0.2), transparent 55%),
    linear-gradient(180deg, #0c1418 0%, #101c28 55%, #060a10 100%);
}
body[data-city="suzhou"] .layer-nebula {
  background:
    radial-gradient(ellipse at 40% 40%, rgba(200, 160, 220, 0.35), transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(80, 100, 140, 0.4), transparent 60%),
    linear-gradient(180deg, #12101a 0%, #1a1525 50%, #080610 100%);
}
body[data-city="wuxi"] .layer-nebula {
  background:
    radial-gradient(ellipse at 50% 70%, rgba(60, 140, 220, 0.5), transparent 65%),
    radial-gradient(ellipse at 30% 25%, rgba(140, 200, 255, 0.25), transparent 55%),
    linear-gradient(180deg, #061428 0%, #0a2040 55%, #030810 100%);
}
body[data-city="hangzhou"] .layer-nebula {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(100, 200, 160, 0.4), transparent 60%),
    radial-gradient(ellipse at 20% 25%, rgba(200, 230, 210, 0.22), transparent 50%),
    linear-gradient(180deg, #0a1810 0%, #0f2818 55%, #061008 100%);
}
body[data-city="huzhou"] .layer-nebula {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 80, 180, 0.35), transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(80, 180, 255, 0.35), transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(255, 200, 80, 0.25), transparent 55%),
    linear-gradient(180deg, #120818 0%, #1a0a28 45%, #080410 100%);
}
body[data-city="chongqing"] .layer-nebula {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255, 80, 50, 0.4), transparent 55%),
    radial-gradient(ellipse at 30% 80%, rgba(255, 150, 50, 0.3), transparent 55%),
    linear-gradient(180deg, #1a0810 0%, #2a0a18 45%, #080410 100%);
}
body[data-city="finale"] .layer-nebula {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 209, 102, 0.5), transparent 50%),
    radial-gradient(ellipse at 50% 70%, rgba(255, 140, 184, 0.45), transparent 60%),
    radial-gradient(circle, #1f0f2e 0%, #04030a 90%);
}

/* 各城氛围光 */
body[data-city="nanjing"] .layer-aurora {
  background:
    radial-gradient(circle at 15% 60%, rgba(255, 200, 100, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 85% 40%, rgba(180, 220, 100, 0.15) 0%, transparent 50%);
}
body[data-city="yangzhou"] .layer-aurora {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(120, 200, 150, 0.25) 0%, transparent 55%),
    radial-gradient(circle at 60% 20%, rgba(220, 240, 230, 0.12) 0%, transparent 50%);
  animation-duration: 18s;
}
body[data-city="zhenjiang"] .layer-aurora {
  background: radial-gradient(ellipse at 50% 80%, rgba(120, 170, 220, 0.28) 0%, transparent 60%);
}
body[data-city="suzhou"] .layer-aurora {
  background:
    radial-gradient(circle at 30% 50%, rgba(180, 140, 200, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(100, 120, 180, 0.2) 0%, transparent 50%);
}
body[data-city="wuxi"] .layer-aurora {
  background: radial-gradient(ellipse at 50% 75%, rgba(80, 180, 255, 0.3) 0%, transparent 65%);
}
body[data-city="hangzhou"] .layer-aurora {
  background:
    radial-gradient(circle at 40% 55%, rgba(150, 230, 180, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 70% 45%, rgba(200, 240, 220, 0.15) 0%, transparent 50%);
}
body[data-city="chongqing"] .layer-aurora {
  background:
    radial-gradient(circle at 40% 60%, rgba(255, 80, 80, 0.25) 0%, transparent 55%),
    radial-gradient(circle at 70% 30%, rgba(255, 150, 50, 0.2) 0%, transparent 50%);
}
body[data-city="huzhou"] .layer-aurora {
  background:
    radial-gradient(circle at 25% 35%, rgba(255, 100, 200, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 75% 25%, rgba(100, 200, 255, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 50% 70%, rgba(255, 220, 100, 0.15) 0%, transparent 50%);
  animation-duration: 12s;
}

/* 各城远景照片（本地资源） */
body[data-city="prologue"] .layer-photo { opacity: 0; }
body[data-city="prologue"] .layer-nebula { opacity: 0.25; }
body[data-city="prologue"] .layer-aurora { opacity: 0.2; }

/* 序章封面 · 信笺一枝梅（begin.png 横图满屏铺底，文字题在中央留白）*/
#scene-prologue { padding: 0; }
.prologue-cover { position: absolute; inset: 0; overflow: hidden; }
.prologue-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prologue-cover::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(125% 95% at 50% 42%, transparent 42%, rgba(8, 12, 26, 0.42) 100%);
}
.prologue-overlay {
  position: absolute; inset: 0; z-index: 2; line-height: 1.55;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center; padding: 13% 9% 7%;
}
.prologue-overlay::before {
  content: ''; position: absolute; left: 3%; right: 3%; top: 5%; height: 82%; z-index: -1;
  background: radial-gradient(60% 60% at 50% 42%, rgba(252, 250, 244, 0.7), rgba(252, 250, 244, 0.34) 54%, transparent 82%);
  filter: blur(8px);
}
.prologue-cover .kicker {
  color: #4a2c14; letter-spacing: 5px; font-weight: 600;
  text-shadow: 0 0 9px rgba(255, 255, 255, 0.9), 0 1px 3px rgba(255, 255, 255, 0.85);
}
/* 题字 · 水墨书法（去金，改为浓墨 + 柔光提清晰度）*/
.prologue-title {
  font-family: var(--font-cn-hand);
  font-size: clamp(2.8rem, 9.2vh, 4.7rem); letter-spacing: 12px; margin: 0.4rem 0 0.6rem; line-height: 1.12;
  background: none;
  color: #1b130d; -webkit-text-fill-color: #1b130d; -webkit-background-clip: border-box;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.78), 0 0 18px rgba(255, 251, 243, 0.92), 0 2px 12px rgba(255, 255, 255, 0.5);
}
.xuan-glyph {
  display: inline-block;
  font-family: var(--font-letter);
  font-size: 1.08em;
  font-weight: 600;
  transform: translateY(0.015em);
  margin-inline: -0.02em;
}
.xuan-name-inline,
.xuan-name-mark {
  display: inline-block;
  font-family: var(--font-letter);
  font-weight: 700;
  -webkit-text-stroke: 0.012em currentColor;
  paint-order: stroke fill;
}
.xuan-name-inline {
  font-size: 1.12em;
  transform: translateY(0.02em);
  margin-inline: 0.02em;
}
.env-addr-to .xuan-name-mark {
  font-size: 1.08em;
  line-height: 0.9;
  margin-block: -0.015em;
  -webkit-text-stroke-width: 0.006em;
}
.paper-greeting .xuan-name-mark {
  font-size: 1.035em;
  font-weight: 600;
  line-height: 0.9;
  transform: translateY(0.015em);
  margin-inline: -0.025em 0;
  -webkit-text-stroke-width: 0.003em;
}
.poem-line.prologue-poem {
  color: #17110c; font-family: var(--font-cn-hand);
  font-size: clamp(1.0rem, 2.2vh, 1.28rem); letter-spacing: 4px; margin-bottom: 1.25rem; font-weight: 400;
  display: inline-block; padding: 0.26rem 1.6rem 0.3rem; border-radius: 40px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 252, 244, 0.9) 13%, rgba(255, 252, 244, 0.94) 50%, rgba(255, 252, 244, 0.86) 87%, transparent),
    radial-gradient(ellipse 90% 170% at 50% 52%, rgba(255, 249, 232, 0.64), rgba(255, 249, 232, 0.22) 64%, transparent 84%);
  border: 1px solid rgba(118, 84, 46, 0.18);
  box-shadow: 0 8px 22px rgba(68, 43, 20, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 10px rgba(255, 248, 230, 0.7);
}
.prologue-cover .prologue-text {
  color: #201810; font-family: var(--font-cn-hand); font-size: clamp(1.02rem, 2.2vh, 1.32rem);
  line-height: 1.95; letter-spacing: 1px; margin-bottom: 0.4rem; font-weight: 400;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.72), 0 0 6px rgba(255, 251, 243, 0.6);
}
.prologue-cover .prologue-text .signature {
  display: block; margin-top: 0.7rem; color: #8a2f22;
  font-family: var(--font-cn-hand); font-size: 1.34rem; letter-spacing: 3px; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.65);
}
.prologue-cover .actions { margin-top: 1.2rem; }
/* 展信按钮 · 去金，改墨色 */
.prologue-cover .btn-primary {
  background: linear-gradient(180deg, #3b2c22, #29201a);
  color: #f2e6d0; letter-spacing: 5px;
  border: 1px solid rgba(225, 205, 170, 0.42);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), 0 0 16px rgba(40, 28, 20, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.prologue-cover .btn-primary:hover {
  background: linear-gradient(180deg, #46342a, #322620);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 22px rgba(60, 40, 28, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.prologue-cover .prologue-foot {
  margin-top: 1.1rem; color: rgba(58, 40, 28, 0.82); letter-spacing: 3px;
  font-family: var(--font-cn-hand); font-size: 0.95rem;
  text-shadow: 0 0 8px rgba(255, 251, 243, 0.85), 0 1px 2px rgba(255, 255, 255, 0.6);
}
body[data-city="nanjing"] .layer-photo {
  background-image: url('assets/nanjing.png');
  opacity: 0.45;
  filter: blur(1px) brightness(0.45) saturate(1.15) sepia(0.25);
  mix-blend-mode: normal;
}
body[data-city="yangzhou"] .layer-photo {
  background-image: url('assets/yangzhou.png');
  opacity: 0.4;
  filter: blur(1px) brightness(0.5) saturate(1.05) hue-rotate(-8deg);
  mix-blend-mode: normal;
}
body[data-city="zhenjiang"] .layer-photo {
  background-image: url('assets/zhenjiang.png');
  opacity: 0.35;
  filter: blur(1px) brightness(0.4) saturate(0.95);
  mix-blend-mode: normal;
}
body[data-city="suzhou"] .layer-photo {
  background-image: url('assets/suzhou.png');
  opacity: 0.35;
  filter: blur(1px) brightness(0.4) saturate(1.1);
  mix-blend-mode: normal;
}
body[data-city="wuxi"] .layer-photo {
  background-image: url('assets/wuxi.png');
  opacity: 0.45;
  filter: blur(1px) brightness(0.45) saturate(1.2) hue-rotate(8deg);
  mix-blend-mode: normal;
}
body[data-city="hangzhou"] .layer-photo {
  background-image: url('assets/hangzhou.png');
  opacity: 0.4;
  filter: blur(0px) brightness(0.5) saturate(1.15);
  mix-blend-mode: normal;
}
body[data-city="huzhou"] .layer-photo {
  background-image: url('assets/huzhou.png');
  opacity: 0.45;
  filter: blur(1px) brightness(0.4) saturate(1.35) contrast(1.1);
  mix-blend-mode: screen;
}
body[data-city="chongqing"] .layer-photo {
  background-image: url('assets/chongqing.png');
  opacity: 0.5;
  filter: blur(1px) brightness(0.45) saturate(1.2) sepia(0.2);
  mix-blend-mode: normal;
}
body[data-city="finale"] .layer-photo {
  background-image: url('assets/finale.png');
  opacity: 0.25;
  filter: blur(2px) brightness(0.6) sepia(0.35);
  mix-blend-mode: normal;
}

#sparkleCanvas { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.scene-decor { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }

/* ---- 樱花 ---- */
.sakura {
  position: absolute;
  top: -40px;
  width: 14px; height: 14px;
  background: radial-gradient(circle at 30% 30%, #fff, #ff9ec5 60%, #ff5b95);
  border-radius: 50% 0 50% 50%;
  transform: rotate(45deg);
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgba(255, 137, 188, 0.6));
  animation: sakuraFall linear forwards;
}
@keyframes sakuraFall {
  0%   { transform: translate(0, -40px) rotate(45deg); opacity: 0; }
  10%  { opacity: 0.9; }
  100% { transform: translate(var(--drift, 80px), 110vh) rotate(405deg); opacity: 0.2; }
}

/* ---- 流星 ---- */
.bg-meteor {
  position: absolute;
  width: 2px; height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.9));
  filter: drop-shadow(0 0 6px #6ee7ff);
  transform: rotate(35deg);
  animation: bgMeteor 2.6s linear forwards;
  opacity: 0;
}
@keyframes bgMeteor {
  0%   { transform: translate(-200px, -200px) rotate(35deg); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(140vw, 140vh) rotate(35deg); opacity: 0; }
}

/* ---- 月亮 ---- */
.moon-decor {
  position: absolute;
  right: 8%; top: 10%;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, #f0f4ff 30%, #c8d2ff 70%, transparent 100%);
  box-shadow:
    0 0 60px rgba(220, 230, 255, 0.55),
    0 0 120px rgba(180, 200, 255, 0.35),
    inset -20px -20px 60px rgba(120, 140, 220, 0.25);
  filter: drop-shadow(0 0 30px rgba(180, 200, 255, 0.6));
}

/* ---- 桥下星光 ---- */
.bridge-star {
  position: absolute;
  width: 3px; height: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px #c084fc, 0 0 16px #ff8cb8;
  animation: bridgeStarFloat 6s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes bridgeStarFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50%      { transform: translateY(-20px) scale(1.4); opacity: 1; }
}

.gear-decor {
  position: absolute;
  width: 220px; height: 220px;
  border: 1px dashed rgba(255, 209, 102, 0.18);
  border-radius: 50%;
  animation: gearDecorSpin 40s linear infinite;
}
.gear-decor::before {
  content: '';
  position: absolute; inset: 24px;
  border: 1px dashed rgba(255, 209, 102, 0.14);
  border-radius: 50%;
}
@keyframes gearDecorSpin { to { transform: rotate(360deg); } }

.crystal-shard {
  position: absolute;
  width: 16px; height: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), #c084fc);
  clip-path: polygon(50% 0, 100% 35%, 80% 100%, 20% 100%, 0% 35%);
  filter: drop-shadow(0 0 10px #c084fc);
  animation: crystalFloat 8s ease-in-out infinite;
  opacity: 0.65;
}
@keyframes crystalFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-30px) rotate(20deg); }
}

.rune-glyph {
  position: absolute;
  color: rgba(255, 209, 102, 0.32);
  font-family: var(--font-cn-serif);
  font-size: 26px;
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.55);
  animation: runeFade 5s ease-in-out infinite;
}
@keyframes runeFade {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 0.6; }
}

/* ===================== 城市装饰粒子 ===================== */
.sycamore-leaf {
  position: absolute;
  top: -30px;
  width: 18px; height: 10px;
  background: linear-gradient(135deg, hsl(var(--hue, 45), 70%, 55%), hsl(var(--hue, 45), 60%, 35%));
  border-radius: 0 80% 0 80%;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgba(255, 200, 80, 0.4));
  animation: sycamoreFall linear forwards;
}
@keyframes sycamoreFall {
  0%   { transform: translate(0, -30px) rotate(0deg); opacity: 0; }
  12%  { opacity: 0.9; }
  100% { transform: translate(var(--drift, 60px), 110vh) rotate(720deg); opacity: 0.15; }
}

.willow-strand {
  position: absolute;
  bottom: 12vh;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(140, 200, 120, 0.5), rgba(100, 160, 90, 0.2));
  transform-origin: top center;
  animation: willowSway 5s ease-in-out infinite;
  opacity: 0.5;
}
@keyframes willowSway {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(6deg); }
}

.mist-puff, .tea-steam {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 70%);
  pointer-events: none;
}
.mist-puff {
  width: 120px; height: 60px;
  animation: mistDrift linear forwards;
  filter: blur(12px);
}
@keyframes mistDrift {
  0%   { transform: translateX(0) scale(0.8); opacity: 0; }
  20%  { opacity: 0.5; }
  100% { transform: translateX(80px) scale(1.3); opacity: 0; }
}
.tea-steam {
  width: 40px; height: 80px;
  animation: steamRise 5s ease-out forwards;
  filter: blur(8px);
}
@keyframes steamRise {
  0%   { transform: translateY(0) scaleX(0.6); opacity: 0; }
  30%  { opacity: 0.45; }
  100% { transform: translateY(-120px) scaleX(1.2); opacity: 0; }
}

.river-fog-band {
  position: absolute;
  left: 0; right: 0;
  height: 18vh;
  background: linear-gradient(180deg, transparent, rgba(180, 210, 240, 0.12), transparent);
  animation: fogSlide 14s ease-in-out infinite;
}
@keyframes fogSlide {
  0%, 100% { transform: translateX(-5%); opacity: 0.4; }
  50%      { transform: translateX(5%); opacity: 0.7; }
}

.ferry-silhouette {
  position: absolute;
  left: 15%;
  bottom: 14vh;
  width: 140px; height: 36px;
  background: linear-gradient(180deg, rgba(30,40,55,0.9), rgba(20,30,45,0.7));
  clip-path: polygon(0% 60%, 15% 40%, 85% 40%, 100% 55%, 100% 100%, 0% 100%);
  opacity: 0.55;
  animation: ferryDrift 28s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}
@keyframes ferryDrift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(55vw); }
}

.float-lantern {
  position: absolute;
  width: 14px; height: 18px;
  background: radial-gradient(circle at 50% 30%, #fff6d0, #ffb84d 70%, #e86a20);
  border-radius: 40% 40% 50% 50%;
  box-shadow: 0 0 16px rgba(255, 180, 80, 0.7);
  animation: lanternRise linear forwards;
  opacity: 0.85;
}
@keyframes lanternRise {
  0%   { transform: translateY(0); opacity: 0; }
  15%  { opacity: 0.9; }
  100% { transform: translateY(-70vh); opacity: 0.2; }
}

.rain-line {
  position: absolute;
  top: -20px;
  width: 1px; height: 55px;
  background: linear-gradient(180deg, transparent, rgba(200, 210, 255, 0.5));
  animation: rainDrop linear forwards;
}
@keyframes rainDrop {
  0%   { transform: translateY(-20px); }
  100% { transform: translateY(110vh); }
}

.lake-ripple {
  position: absolute;
  width: 20px; height: 20px;
  border: 1px solid rgba(150, 220, 255, 0.45);
  border-radius: 50%;
  animation: rippleExpand 4s ease-out forwards;
}
@keyframes rippleExpand {
  0%   { transform: scale(0.3); opacity: 0.7; }
  100% { transform: scale(12); opacity: 0; }
}

.lake-glow-orb {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 255, 220, 0.25), transparent 70%);
  animation: lakeOrbPulse 6s ease-in-out infinite;
}
@keyframes lakeOrbPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.35; }
  50%      { transform: scale(1.15); opacity: 0.65; }
}

.stage-beam {
  position: absolute;
  bottom: 0;
  width: 8vw; height: 70vh;
  background: linear-gradient(180deg, rgba(255, 100, 200, 0.35), transparent 85%);
  transform-origin: bottom center;
  animation: beamSweep 6s ease-in-out infinite;
  opacity: 0.4;
  filter: blur(4px);
}
@keyframes beamSweep {
  0%, 100% { transform: skewX(-12deg); opacity: 0.25; }
  50%      { transform: skewX(12deg); opacity: 0.55; }
}

.spot-flare {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 20px 8px rgba(255, 220, 150, 0.8), 0 0 40px 16px rgba(255, 100, 200, 0.4);
  animation: flarePop 2.4s ease-out forwards;
}
@keyframes flarePop {
  0%   { transform: scale(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* 城市天际剪影（底部） */
.city-skyline {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 22vh;
  opacity: 0.35;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
}
.city-skyline--nanjing {
  background-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%232a2010' d='M0 120 L0 80 L80 60 L160 75 L240 50 L320 70 L400 45 L480 65 L560 40 L640 55 L720 35 L800 50 L880 30 L960 48 L1040 25 L1120 40 L1200 20 L1200 120Z'/%3E%3C/svg%3E");
}
.city-skyline--yangzhou {
  opacity: 0.3;
  background-image: linear-gradient(180deg, transparent, rgba(0,30,20,0.6)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%23152818' d='M0 120 L200 90 Q300 40 400 95 L600 70 Q700 30 800 85 L1000 60 L1200 120Z'/%3E%3Ccircle cx='400' cy='55' r='28' fill='%23152818'/%3E%3C/svg%3E");
}
.city-skyline--zhenjiang {
  background-image: linear-gradient(180deg, transparent, rgba(0,20,40,0.55)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%23101828' d='M0 120 L0 95 L1200 95 L1200 120Z M100 95 L150 50 L200 95 M350 95 L420 35 L490 95'/%3E%3C/svg%3E");
}
.city-skyline--suzhou {
  background-image: linear-gradient(180deg, transparent, rgba(20,10,30,0.55)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%231a1428' d='M0 120 L0 85 L60 85 L60 55 L90 55 L90 85 L180 85 L180 40 L210 40 L210 85 L300 85 L300 50 L330 50 L330 85 L500 85 L500 30 L530 30 L530 85 L700 85 L700 45 L730 45 L730 85 L900 85 L900 25 L930 25 L930 85 L1200 85 L1200 120Z'/%3E%3C/svg%3E");
}
.city-skyline--wuxi {
  background-image: linear-gradient(180deg, transparent, rgba(0,20,50,0.5)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%23081830' d='M0 120 L0 100 Q300 60 600 90 Q900 50 1200 100 L1200 120Z'/%3E%3Cpath fill='%23081830' d='M520 95 L560 55 L600 95Z'/%3E%3C/svg%3E");
}
.city-skyline--hangzhou {
  background-image: linear-gradient(180deg, transparent, rgba(0,30,20,0.45)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%23102018' d='M0 120 L0 105 Q200 75 400 100 Q600 70 800 95 Q1000 65 1200 105 L1200 120Z'/%3E%3Cpath fill='none' stroke='%23183020' stroke-width='2' d='M0 108 Q600 85 1200 108'/%3E%3C/svg%3E");
}
.city-skyline--huzhou {
  opacity: 0.5;
  height: 28vh;
  background-image: linear-gradient(180deg, transparent, rgba(20,0,40,0.7)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 140'%3E%3Cpath fill='%23180828' d='M0 140 L0 100 L80 100 L80 40 L120 40 L120 100 L200 100 L200 60 L240 60 L240 100 L400 100 L400 20 L440 20 L440 100 L600 100 L600 50 L640 50 L640 100 L800 100 L800 30 L840 30 L840 100 L1000 100 L1000 55 L1040 55 L1040 100 L1200 100 L1200 140Z'/%3E%3Crect x='410' y='5' width='60' height='15' fill='%23ff60a0' opacity='0.6'/%3E%3Crect x='810' y='8' width='50' height='12' fill='%2360c0ff' opacity='0.6'/%3E%3C/svg%3E");
}

/* 各城主题色（卡片高亮 / 按钮） */
body[data-city="nanjing"]    { --primary: #e8b84a; --accent: #b8e080; --secondary: #ffd6a0; }
body[data-city="yangzhou"]   { --primary: #7ec8a0; --accent: #d4f0e0; --secondary: #a8e8c8; }
body[data-city="zhenjiang"]  { --primary: #8ab4d8; --accent: #c8e0ff; --secondary: #ffd080; }
body[data-city="suzhou"]     { --primary: #c8a0e0; --accent: #e8d8ff; --secondary: #ffb8d0; }
body[data-city="wuxi"]       { --primary: #60b0ff; --accent: #a8e0ff; --secondary: #c084fc; }
body[data-city="hangzhou"]   { --primary: #70d8a8; --accent: #c0ffe8; --secondary: #ffd166; }
body[data-city="huzhou"]     { --primary: #ff70c0; --accent: #80e8ff; --secondary: #ffd166; }

/* ===================== 主舞台与场景 ===================== */
.story-stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 1rem 4.4rem;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transition:
    opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1),
    transform 1s cubic-bezier(0.19, 1, 0.22, 1),
    filter 0.9s;
  pointer-events: none;
  filter: blur(8px);
}
.scene-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  filter: blur(0);
}

/* ===================== Glass 卡片 ===================== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255,255,255,0.15);
  padding: 1.8rem 2rem;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  max-height: 100%;
}

/* 卡片高光扫光 */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.07), transparent);
  transform: skewX(-22deg);
  animation: shine 7s infinite;
  pointer-events: none;
}
@keyframes shine {
  0%, 20%   { left: -100%; }
  60%, 100% { left: 200%; }
}
.glass-card::after {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.5), transparent);
}

/* ===================== 场景画窗 (Animated Photo) ===================== */
.scene-window {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  margin: 0.5rem 0 1rem;
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.25);
}
.scene-photo {
  width: 120%;
  height: 120%;
  position: absolute;
  top: -10%; left: -10%;
  background-size: cover;
  background-position: center;
  animation: photoPan 20s infinite alternate ease-in-out;
  opacity: 0.95;
}
@keyframes photoPan {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(3%, 3%); }
}

body[data-city="nanjing"] .scene-photo { background-image: url('assets/nanjing.png'); }
body[data-city="yangzhou"] .scene-photo { background-image: url('assets/yangzhou.png'); }
body[data-city="zhenjiang"] .scene-photo { background-image: url('assets/zhenjiang.png'); }
body[data-city="suzhou"] .scene-photo { background-image: url('assets/suzhou.png'); }
body[data-city="wuxi"] .scene-photo { background-image: url('assets/wuxi.png'); }
body[data-city="hangzhou"] .scene-photo { background-image: url('assets/hangzhou.png'); }
body[data-city="huzhou"] .scene-photo { background-image: url('assets/huzhou.png'); }
body[data-city="chongqing"] .scene-photo { background-image: url('assets/chongqing.png'); }

/* ===================== 排版 ===================== */
.kicker {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(110, 231, 255, 0.45);
}

h1, h2, h3 {
  font-family: var(--font-cn-serif);
  font-weight: 500;
  margin-bottom: 0.6rem;
  letter-spacing: 1px;
}

h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 0%, #ffd6f0 40%, #ffd166 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 { font-size: 1.9rem; color: #fff; }
h3 { font-size: 1.55rem; color: var(--secondary); }

p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.title-shimmer {
  background: linear-gradient(120deg, #fff, #ffd6f0 35%, #ffd166 65%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerMove 6s ease-in-out infinite;
}
@keyframes shimmerMove {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ===================== 序章 ===================== */
.intro-card {
  text-align: center;
  max-width: 640px;
  width: 100%;
  padding: 2rem 2rem 1.8rem;
}
.envelope-art {
  position: relative;
  width: 60px; height: 60px;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--gold));
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 0 24px rgba(255, 140, 184, 0.55),
    0 0 50px rgba(192, 132, 252, 0.35),
    inset 0 0 18px rgba(255, 255, 255, 0.4);
  animation: envelopePulse 3.4s ease-in-out infinite;
}
@keyframes envelopePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.07); }
}
.envelope-glow {
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: envelopeRing 3.4s ease-in-out infinite;
}
@keyframes envelopeRing {
  0%   { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
.envelope-seal {
  font-family: var(--font-cn-hand);
  font-size: 1.6rem;
  color: #fff;
  text-shadow: 0 0 12px #fff, 0 0 24px var(--gold);
}

.prologue-text {
  font-family: var(--font-cn-serif);
  font-size: 0.98rem;
  line-height: 2.1;
  color: #e6e3f7;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.prologue-text .signature {
  display: block;
  margin-top: 0.6rem;
  color: var(--gold);
  font-family: var(--font-cn-title);
  font-size: 1.15rem;
  letter-spacing: 3px;
}
.prologue-foot {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 3px;
  font-family: var(--font-cn-serif);
}

/* ===================== 按钮 ===================== */
button { font-family: inherit; cursor: pointer; outline: none; border: none; }

.actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.6rem;
}

.mt-3 { margin-top: 0.9rem; }
.mt-4 { margin-top: 1.2rem; }
.text-center { text-align: center; }

.btn-primary {
  position: relative;
  padding: 0.7rem 2rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 2px;
  transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
  overflow: hidden;
  box-shadow:
    0 8px 22px rgba(192, 132, 252, 0.35),
    0 6px 18px rgba(255, 140, 184, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 30px rgba(192, 132, 252, 0.55),
    0 8px 22px rgba(255, 140, 184, 0.55),
    0 0 20px rgba(255, 209, 102, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:active { transform: translateY(-1px) scale(0.99); }

.btn-primary .btn-shine {
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3.4s infinite;
}
@keyframes btnShine {
  0%, 60%   { left: -120%; }
  100%      { left: 200%; }
}

.btn-ghost {
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  color: white;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-size: 0.88rem;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.dot-music {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  box-shadow: 0 0 8px var(--accent);
  animation: musicBlink 1.4s infinite;
}
@keyframes musicBlink {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* ===================== 章节通用 ===================== */
.wide-card {
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chapter-card {
  padding: 1.4rem 1.8rem 1.5rem;
}

.story-prelude {
  margin-bottom: 0.8rem;
  text-align: center;
}
.story-prelude.inline-prelude { text-align: left; margin-bottom: 0.8rem; }
.story-prelude.small-prelude { margin-bottom: 0.6rem; }

.chapter-tag {
  display: inline-block;
  font-family: var(--font-cn-serif);
  color: var(--gold);
  letter-spacing: 5px;
  font-size: 0.74rem;
  padding: 0.2rem 0.85rem;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 50px;
  background: rgba(255, 209, 102, 0.06);
  margin-bottom: 0.45rem;
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.45);
}

.chapter-title {
  font-family: var(--font-cn-title);
  font-size: 1.7rem;
  letter-spacing: 5px;
  margin-bottom: 0.4rem;
  background: linear-gradient(120deg, #fff, #ffd6f0 50%, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.chapter-sub {
  font-family: var(--font-cn-serif);
  font-size: 0.88rem;
  line-height: 2;
  color: #ddd8f0;
  margin-bottom: 0;
  letter-spacing: 0.8px;
  min-height: 1.85em; /* 占位避免抖动 */
}

.row-layout { flex-direction: row; text-align: left; gap: 1.6rem; align-items: stretch; }
.side-copy {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.centered { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hidden { display: none !important; opacity: 0; pointer-events: none; }

/* 打字机光标 */
.tw-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: -2px;
  animation: cursorBlink 0.9s steps(2) infinite;
}
@keyframes cursorBlink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ===================== 1 · Simon Says ===================== */
.simon-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.simon-status {
  font-family: var(--font-cn-serif);
  font-size: 0.88rem;
  color: var(--secondary);
  min-height: 1.3rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-shadow: 0 0 12px rgba(255,140,184,0.45);
}
.simon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  padding: 1rem;
  background: rgba(0,0,0,0.25);
  border-radius: 22px;
  border: 1px solid rgba(255, 192, 230, 0.18);
  box-shadow: inset 0 0 40px rgba(255,140,184,0.1);
}
.simon-btn {
  width: 82px; height: 82px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.18);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.simon-btn::before {
  content: '';
  position: absolute; inset: 6px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  pointer-events: none;
}
.petal-icon {
  font-size: 1.7rem;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.simon-btn.color-1 { --btn-color: #ff5b95; }
.simon-btn.color-2 { --btn-color: #6ee7ff; }
.simon-btn.color-3 { --btn-color: #c084fc; }
.simon-btn.color-4 { --btn-color: #ffd166; }

.simon-btn.active, .simon-btn:active {
  background: var(--btn-color);
  border-color: var(--btn-color);
  box-shadow:
    0 0 32px var(--btn-color),
    0 0 14px var(--btn-color),
    inset 0 0 18px rgba(255,255,255,0.5);
  transform: scale(0.92);
}
.simon-btn.active .petal-icon,
.simon-btn:active .petal-icon { opacity: 1; color: #fff;  text-shadow: 0 0 14px #ff5b95;
}

/* ===================== 重庆记忆点排序 ===================== */
.cq-memory-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 1.5rem;
}
.cq-memory-card {
  position: relative;
  width: 115px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.cq-memory-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 209, 102, 0.5);
  box-shadow: 0 8px 20px rgba(255, 209, 102, 0.2);
}
.cq-memory-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.cq-memory-card:hover .cq-memory-img {
  transform: scale(1.1);
}
.cq-memory-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 8px 4px;
  font-size: 0.75rem;
  text-align: center;
  font-family: var(--font-cn-serif);
}
.cq-memory-card.selected {
  border-color: #ff5b95;
  box-shadow: 0 0 15px rgba(255, 91, 149, 0.6);
  transform: scale(1.05);
}
.cq-memory-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 8px;
  background: #ff5b95;
  color: #fff;
  border-radius: 50%;
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.cq-memory-card.wrong {
  animation: shake 0.4s;
  border-color: #ff3333;
}
.cq-status {
  font-family: var(--font-cn-serif);
  font-size: 0.82rem;
  color: rgba(255, 209, 102, 0.85);
  margin-bottom: 0.8rem;
  letter-spacing: 2px;
  text-align: center;
}

/* ===================== 3D 信封 & 最终信件 ===================== */
/* ====== 解锁屏全面升级 ====== */
.unlock-message {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(6, 3, 14, 0.96) 0%,
    rgba(20, 8, 35, 0.94) 50%,
    rgba(6, 3, 14, 0.96) 100%
  );
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  animation: unlockScreenIn 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 30;
  overflow: hidden;
}

/* 背景装饰光晕 */
.unlock-message::before {
  content: '';
  position: absolute;
  top: -30%; left: -20%;
  width: 70%; height: 70%;
  background: radial-gradient(ellipse, rgba(192, 132, 252, 0.18) 0%, transparent 65%);
  pointer-events: none;
  animation: unlockOrb1 8s ease-in-out infinite alternate;
}
.unlock-message::after {
  content: '';
  position: absolute;
  bottom: -20%; right: -15%;
  width: 65%; height: 65%;
  background: radial-gradient(ellipse, rgba(255, 140, 184, 0.15) 0%, transparent 65%);
  pointer-events: none;
  animation: unlockOrb2 10s ease-in-out infinite alternate;
}

@keyframes unlockOrb1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 8%) scale(1.15); }
}
@keyframes unlockOrb2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6%, -5%) scale(1.1); }
}

@keyframes unlockScreenIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.unlock-inner {
  position: relative;
  max-width: 580px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: unlockCardRise 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.1s both;
  z-index: 1;
}

@keyframes unlockCardRise {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* 顶部装饰线 */
.unlock-inner::before {
  content: '✦ ✦ ✦';
  font-size: 0.7rem;
  color: rgba(255, 209, 102, 0.5);
  letter-spacing: 10px;
  display: block;
  margin-bottom: 0.2rem;
}

.badge {
  display: inline-block;
  padding: 0.28rem 1.4rem;
  background: linear-gradient(135deg, rgba(255,209,102,0.12), rgba(192,132,252,0.1));
  border: 1px solid rgba(255,215,0,0.45);
  color: rgba(255, 220, 140, 0.95);
  border-radius: 50px;
  font-family: var(--font-cn-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 0 12px rgba(255,209,102,0.5);
  box-shadow: 0 0 20px rgba(255,209,102,0.12), inset 0 0 10px rgba(255,209,102,0.05);
}
.badge.crown {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.22), rgba(255, 140, 184, 0.15));
  border-color: rgba(192,132,252,0.5);
  color: #e9c8ff;
  text-shadow: 0 0 12px var(--primary);
}

/* 装饰分隔条 */
.unlock-divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,209,102,0.55), transparent);
  margin: 0.3rem auto;
}

.name-reveal {
  font-family: 'Ma Shan Zheng', var(--font-cn-title);
  font-size: 3.2rem;
  letter-spacing: 8px;
  margin: 0.2rem 0 0.1rem;
  background: linear-gradient(135deg, #fff 0%, #ffd6f0 40%, #ffd166 80%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 22px rgba(255,140,184,0.6));
  animation: nameShimmer 4s ease-in-out infinite, unlockCardRise 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

@keyframes nameShimmer {
  0%, 100% { background-position: 0% 50%; filter: drop-shadow(0 0 22px rgba(255,140,184,0.6)); }
  50%       { background-position: 100% 50%; filter: drop-shadow(0 0 36px rgba(255,209,102,0.7)); }
}

.crown-name {
  font-size: 3.4rem;
  background: linear-gradient(120deg, #fff, #ffd6f0 40%, #ffd166 70%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(255, 209, 102, 0.65));
}

/* 诗意散文容器 */
.reveal-desc {
  position: relative;
  font-family: var(--font-cn-serif);
  font-size: 0.88rem;
  line-height: 2.1;
  color: rgba(230, 225, 255, 0.88);
  letter-spacing: 1.2px;
  padding: 1rem 2rem;
  max-width: 480px;
  text-align: justify;
  text-indent: 2em;
}

/* 左右装饰竖线 */
.reveal-desc::before,
.reveal-desc::after {
  content: '';
  position: absolute;
  top: 10%; bottom: 10%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,209,102,0.4), transparent);
}
.reveal-desc::before { left: 0.4rem; }
.reveal-desc::after  { right: 0.4rem; }


/* ===================== 2 · 接流星 ===================== */
.fullscreen-card {
  width: 100%;
  max-width: 980px;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.6rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
  width: 100%;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.topbar .copy { text-align: left; }
.topbar-h {
  font-family: var(--font-cn-serif);
  font-size: 1.15rem;
  margin: 0;
  color: #fff;
}

.score-pill {
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.15), rgba(76, 161, 255, 0.18));
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(110, 231, 255, 0.5);
  box-shadow: 0 0 18px rgba(110, 231, 255, 0.3);
  letter-spacing: 1px;
  font-family: var(--font-sans);
}

body[data-city="yangzhou"] .catch-field {
  background:
    linear-gradient(180deg, rgba(10, 30, 22, 0.65) 0%, rgba(20, 50, 38, 0.75) 55%, rgba(60, 120, 90, 0.45) 100%);
  border-color: rgba(140, 220, 160, 0.35);
}
body[data-city="yangzhou"] .ocean-horizon {
  background: linear-gradient(180deg, transparent, rgba(100, 180, 120, 0.2) 40%, rgba(80, 160, 110, 0.35) 100%);
}
body[data-city="yangzhou"] .falling-star {
  background: linear-gradient(to bottom, transparent, rgba(180, 240, 200, 0.5) 60%, #e8fff0 100%);
  filter: drop-shadow(0 0 8px #a8e8c0);
}

.catch-field {
  flex: 1;
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(7, 12, 40, 0.6) 0%, rgba(13, 36, 102, 0.7) 60%, rgba(40, 80, 170, 0.5) 100%);
  border: 1px solid rgba(110, 231, 255, 0.3);
  cursor: crosshair;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.45);
  min-height: 200px;
}
.ocean-horizon {
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 28%;
  background: linear-gradient(180deg, transparent 0%, rgba(76, 161, 255, 0.18) 30%, rgba(76, 161, 255, 0.45) 100%);
}
.ocean-horizon::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 100%;
  background:
    repeating-linear-gradient(180deg,
      transparent 0px, transparent 14px,
      rgba(255,255,255,0.05) 14px, rgba(255,255,255,0.05) 15px);
  animation: oceanShimmer 6s linear infinite;
}
@keyframes oceanShimmer {
  0% { transform: translateX(0); }
  100% { transform: translateX(30px); }
}

.falling-star {
  position: absolute;
  width: 3px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(110, 231, 255, 0.6) 60%, #fff 100%);
  border-radius: 3px;
  filter: drop-shadow(0 0 8px #6ee7ff) drop-shadow(0 0 18px #6ee7ff);
  cursor: pointer;
  transform: rotate(38deg) translateY(0);
  animation: meteorFall linear forwards;
}
.falling-star::before {
  content: '';
  position: absolute;
  bottom: -22px; left: -22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
}
.falling-star::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 9px; height: 9px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 18px 5px var(--accent), 0 0 30px 13px rgba(110, 231, 255, 0.4);
}
@keyframes meteorFall {
  0%   { transform: rotate(38deg) translateY(-100px); opacity: 0.95; }
  100% { transform: rotate(38deg) translateY(1400px); opacity: 0; }
}

.catch-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex; justify-content: center; align-items: center; z-index: 10;
  backdrop-filter: blur(6px);
}
.overlay-inner { text-align: center; }
.overlay-tip {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.mini-card {
  padding: 1.6rem 1.4rem;
  max-width: 520px;
  width: 90%;
}
.unlock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 80;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  animation: fadeIn 0.55s ease;
}
.unlock-card-center {
  max-width: 560px;
  width: 100%;
  padding: 2rem 1.8rem;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===================== 3 · 银河鹊桥 ===================== */
body[data-city="zhenjiang"] .connect-game {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(100, 160, 220, 0.25) 0%, transparent 70%),
    linear-gradient(180deg, rgba(8, 20, 35, 0.7), rgba(15, 35, 55, 0.85));
  border-color: rgba(140, 190, 240, 0.35);
}
body[data-city="suzhou"] .gear-game .gear-container {
  border-color: rgba(200, 160, 220, 0.25);
}
body[data-city="hangzhou"] .password-game {
  background: radial-gradient(ellipse at 50% 50%, rgba(100, 200, 150, 0.12), transparent 70%);
}
body[data-city="huzhou"] .physics-pond {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 100, 200, 0.2), transparent 55%),
    radial-gradient(ellipse at 30% 100%, rgba(80, 160, 255, 0.25), transparent 60%),
    linear-gradient(180deg, #120818 0%, #1a0a28 50%, #0a0618 100%);
  border-color: rgba(255, 120, 200, 0.35);
}
body[data-city="huzhou"] .moon-shine { opacity: 0.35; }
body[data-city="huzhou"] .drag-petal {
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 120, 200, 0.5), rgba(120, 200, 255, 0.4));
  box-shadow: 0 0 20px rgba(255, 100, 200, 0.5);
}
body[data-city="nanjing"] .simon-btn.color-1 { --btn-color: #c4a035; }
body[data-city="nanjing"] .simon-btn.color-2 { --btn-color: #8cb84a; }
body[data-city="nanjing"] .simon-btn.color-3 { --btn-color: #e8a050; }
body[data-city="nanjing"] .simon-btn.color-4 { --btn-color: #d87840; }
body[data-city="nanjing"] .petal-icon { font-size: 0; }
body[data-city="nanjing"] .petal-icon::before { content: '🍂'; font-size: 1.4rem; }

.connect-game {
  width: 100%;
  height: 270px;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(192, 132, 252, 0.18) 0%, transparent 70%),
    rgba(0,0,0,0.45);
  border-radius: 18px;
  border: 1px solid rgba(192, 132, 252, 0.3);
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.6);
}
.bridge-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.connect-tip {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 2px;
}
#connectSvg { pointer-events: none; }
.connect-path {
  fill: none;
  stroke: var(--secondary);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px var(--secondary)) drop-shadow(0 0 18px var(--primary));
}
.connect-node {
  position: absolute;
  width: 34px; height: 34px;
  z-index: 4;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  display: flex; justify-content: center; align-items: center;
  color: white;
  font-size: 0.92rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.65);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
}
.connect-node::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.25);
  animation: nodeHalo 3s linear infinite;
}
@keyframes nodeHalo { to { transform: rotate(360deg); } }
.connect-node.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: #fff;
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow:
    0 0 24px var(--secondary),
    0 0 48px var(--primary);
  color: #fff;
}

/* ===================== 4 · 时光齿轮 ===================== */
.gear-game {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
}
.gear-status {
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: 2.5px;
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.55);
}
.gear-container {
  position: relative;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 4px solid rgba(255, 209, 102, 0.18);
  background: radial-gradient(circle at 50% 50%, rgba(255,209,102,0.05) 0%, rgba(0,0,0,0.5) 70%);
  box-shadow:
    inset 0 0 28px rgba(0,0,0,0.55),
    0 0 30px rgba(255, 209, 102, 0.28);
}

.gear-ring-outer, .gear-ring-mid {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 209, 102, 0.22);
  pointer-events: none;
}
.gear-ring-outer { inset: -16px; animation: gearRingSpin 60s linear infinite; }
.gear-ring-mid   { inset: -2px;  animation: gearRingSpin 30s linear infinite reverse; }
@keyframes gearRingSpin { to { transform: rotate(360deg); } }

.gear-track {
  position: absolute; inset: 12px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.22);
}
.gear-target-arc {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(255, 209, 102, 0.78) 0deg,
    rgba(255, 140, 184, 0.6) 70deg,
    transparent 70deg);
  box-shadow: 0 0 24px rgba(255, 209, 102, 0.5);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 60%, #000 96%, transparent 96%);
          mask: radial-gradient(circle, transparent 60%, #000 60%, #000 96%, transparent 96%);
}
.gear-needle-container {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  transform-origin: 50% 50%;
}
.needle {
  position: absolute;
  bottom: 50%; left: 50%;
  width: 4px; height: 46%;
  background: linear-gradient(to top, transparent, #fff 30%, #ffd166 100%);
  transform: translateX(-50%);
  border-radius: 4px;
  box-shadow: 0 0 14px #ffd166, 0 0 28px #ffd166;
}
.gear-center {
  position: absolute; top: 50%; left: 50%;
  width: 30px; height: 30px;
  background: radial-gradient(circle, var(--gold), #b27c00);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  box-shadow: 0 0 16px var(--gold);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  display: flex; align-items: center; justify-content: center;
}
.gear-mark {
  position: absolute;
  color: rgba(255, 209, 102, 0.7);
  font-family: var(--font-cn-serif);
  font-size: 0.78rem;
  letter-spacing: 1px;
}
.gear-mark-12 { top: 4px;    left: 50%; transform: translateX(-50%); }
.gear-mark-3  { right: 5px;  top: 50%;  transform: translateY(-50%); }
.gear-mark-6  { bottom: 4px; left: 50%; transform: translateX(-50%); }
.gear-mark-9  { left: 5px;   top: 50%;  transform: translateY(-50%); }

/* ===================== 5 · 紫晶宫殿翻牌 ===================== */
.match-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  perspective: 1200px;
  flex: 1;
  width: 100%;
  align-self: center;
}
.match-card {
  aspect-ratio: 3 / 4;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.match-card.flipped { transform: rotateY(180deg); }
.match-card.matched { transform: rotateY(180deg) scale(0.95); }
.match-card.matched .front {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.4), rgba(255, 140, 184, 0.3));
  border-color: var(--primary);
  box-shadow:
    0 0 22px var(--primary),
    0 0 40px rgba(255, 140, 184, 0.4),
    inset 0 0 18px rgba(255,255,255,0.15);
}
.card-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex; justify-content: center; align-items: center; text-align: center;
  padding: 8px;
  overflow: hidden;
}
.back {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.15), rgba(76, 161, 255, 0.1));
  border: 1px solid rgba(192, 132, 252, 0.4);
  font-size: 2rem;
  transition: all 0.3s;
  color: #ffd166;
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.6);
}
.back::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 8px;
  border: 1px dashed rgba(255,255,255,0.18);
}
.match-card:hover .back {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.3), rgba(76, 161, 255, 0.2));
  transform: scale(0.98);
}
.front {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  transform: rotateY(180deg);
  font-size: 0.85rem;
  color: #fff;
  font-weight: 600;
  font-family: var(--font-cn-serif);
  letter-spacing: 2px;
  line-height: 1.4;
}
.match-stats {
  margin-top: 0.6rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.match-stats b { color: var(--accent); margin-left: 4px; font-family: var(--font-sans); }

/* ===================== 6 · 真言密室 ===================== */
.password-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.dial-container {
  display: flex;
  gap: 0.8rem;
  margin: 0.8rem 0 0.4rem;
  padding: 0.8rem 1rem;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 16px;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
}
.dial {
  width: 56px; height: 76px;
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(20,10,30,0.7));
  border: 2px solid rgba(255, 209, 102, 0.35);
  border-radius: 10px;
  display: flex; justify-content: center; align-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0 14px rgba(0,0,0,0.85),
    0 0 12px rgba(255, 209, 102, 0.18);
  transition: all 0.2s;
}
.dial:hover {
  border-color: rgba(255, 209, 102, 0.7);
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 12px rgba(0,0,0,0.7),
    0 6px 18px rgba(255, 209, 102, 0.3);
}
.dial::before, .dial::after {
  content: '';
  position: absolute;
  left: 0; width: 100%; height: 20px;
  z-index: 2; pointer-events: none;
}
.dial::before { top: 0;    background: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent); }
.dial::after  { bottom: 0; background: linear-gradient(to top,    rgba(0,0,0,0.85), transparent); }
.dial-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-cn-hand);
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.7);
  animation: scrollText 0.25s ease;
}
@keyframes scrollText {
  0%   { transform: translateY(-22px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.hint-text {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin: 0.4rem 0 0.5rem;
  letter-spacing: 1px;
}
.hint-text b {
  color: var(--gold);
  letter-spacing: 4px;
  font-family: var(--font-cn-serif);
  margin-left: 6px;
}

/* ===================== 7 · 许愿池 ===================== */
.physics-pond {
  width: 100%;
  height: 280px;
  position: relative;
  margin-top: 0.5rem;
  background:
    radial-gradient(ellipse at center, rgba(180, 220, 255, 0.35) 0%, rgba(30, 60, 130, 0.5) 55%, rgba(0,0,0,0.7) 100%);
  border-radius: 50% / 38%;
  border: 2px solid rgba(180, 220, 255, 0.55);
  overflow: hidden;
  box-shadow:
    inset 0 0 80px rgba(110, 231, 255, 0.35),
    0 0 50px rgba(110, 231, 255, 0.25);
}

.moon-shine {
  position: absolute;
  top: 8%; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, transparent 70%);
  filter: blur(8px);
  opacity: 0.6;
}

.pond-ripple {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  pointer-events: none;
}
.ripple-1 { width: 200px; height: 200px; animation: rippleOut 3.2s ease-out infinite; }
.ripple-2 { width: 200px; height: 200px; animation: rippleOut 3.2s ease-out infinite 1s; }
.ripple-3 { width: 200px; height: 200px; animation: rippleOut 3.2s ease-out infinite 2s; }
@keyframes rippleOut {
  0%   { width: 80px; height: 80px; opacity: 0.8; }
  100% { width: 320px; height: 320px; opacity: 0; }
}

.water-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.7);
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 0 30px rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
}
.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(110, 231, 255, 0.35);
  animation: pulse-ring 2.4s infinite;
}
.pulse-ring.delay-1 { animation-delay: 1.2s; }
@keyframes pulse-ring {
  0%   { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.water-label {
  position: absolute;
  bottom: -24px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 3px;
  font-family: var(--font-cn-serif);
  width: 200px;
  text-align: center;
}

.drag-petal {
  position: absolute;
  width: 62px; height: 62px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--secondary));
  border-radius: 50% 0 50% 50%;
  transform: rotate(45deg);
  cursor: grab;
  box-shadow: 0 6px 22px rgba(255, 140, 184, 0.55), 0 0 30px rgba(255, 140, 184, 0.3);
  display: flex; justify-content: center; align-items: center;
  transition: transform 0.25s;
  z-index: 10;
}
.drag-petal.petal-pink {
  background: radial-gradient(circle at 30% 30%, #fff, var(--soft-rose), #ff5b95);
  box-shadow: 0 6px 22px rgba(255, 91, 149, 0.55), 0 0 30px rgba(255, 91, 149, 0.3);
}
.drag-petal.petal-gold {
  background: radial-gradient(circle at 30% 30%, #fff, var(--gold), #b27c00);
  box-shadow: 0 6px 22px rgba(255, 209, 102, 0.55), 0 0 30px rgba(255, 209, 102, 0.3);
}
.drag-petal:active {
  cursor: grabbing;
  transform: rotate(45deg) scale(1.12);
}
.drag-petal span {
  transform: rotate(-45deg);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-cn-serif);
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
.drag-petal.sunk {
  transform: scale(0) rotate(180deg) !important;
  opacity: 0;
  transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

/* ===================== 终章 · 信封 + 信纸 ===================== */
/* 深夜书案 · 全屏背景 */
.finale-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('assets/finale-desk-night.png') center center / cover no-repeat;
}
.finale-bg-veil {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 52%, rgba(0,0,0,0) 0%, rgba(8,6,4,0.32) 70%, rgba(6,4,3,0.6) 100%),
    linear-gradient(180deg, rgba(8,6,4,0.4) 0%, rgba(8,6,4,0.12) 30%, rgba(6,4,3,0.55) 100%);
}

.finale-shell {
  width: 100%;
  max-width: 720px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* 墨染画布（覆盖全屏，不挡交互） */
.ink-canvas {
  position: absolute; inset: 0; z-index: 5;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* ---------- 信封 ---------- */
.envelope-card {
  width: 100%;
  max-width: 520px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.env-3d {
  width: 320px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 40px rgba(255, 140, 184, 0.4));
  animation: envFloat 5s ease-in-out infinite;
}
@keyframes envFloat {
  0%, 100% { transform: translateY(0) rotateX(0); }
  50%      { transform: translateY(-8px) rotateX(2deg); }
}

.env-face {
  position: absolute; inset: 0;
  background:
    linear-gradient(150deg, #f3e7cc 0%, #ecdcbb 52%, #e1cfa6 100%);
  border-radius: 6px;
  border: 1px solid rgba(120, 92, 50, 0.5);
  overflow: hidden;
  box-shadow:
    inset 0 0 26px rgba(120, 84, 44, 0.22),
    inset 0 0 70px rgba(160, 120, 70, 0.16);
}
/* 中式信封 · 中央朱红名条（竖排一行「紫瑄亲启」） */
.env-face::before {
  content: '';
  position: absolute;
  top: 59%; bottom: 6%;
  left: 50%; width: 44px;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, #c44b36 0%, #b23d2a 52%, #a5371d 100%);
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(110, 28, 16, 0.55),
    inset 0 0 10px rgba(80, 14, 6, 0.5),
    0 2px 7px rgba(120, 40, 22, 0.4);
  z-index: 1;
  pointer-events: none;
}
/* 内嵌墨框 */
.env-face::after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(110, 70, 40, 0.42);
  box-shadow: inset 0 0 0 4px rgba(110, 70, 40, 0.14);
  border-radius: 3px;
  pointer-events: none;
  z-index: 1;
}

.env-flap {
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 60%;
  background: linear-gradient(180deg, #ecdcbb 0%, #e4d4b0 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 1.2s cubic-bezier(0.7, -0.2, 0.3, 1.2);
  z-index: 3;
  border-bottom: 1px solid rgba(120, 92, 50, 0.5);
  box-shadow: inset 0 8px 18px rgba(150, 112, 64, 0.18);
  overflow: hidden;
}
/* 封舌上的一枝寒梅（呼应封面 begin.png） */
.env-plum {
  position: absolute;
  top: 3px; left: 7px;
  width: 124px; height: auto;
  opacity: 0.82;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(60, 30, 20, 0.22));
}
/* 火漆封印 · 蜡块 */
.env-flap::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 30%;
  transform: translate(-50%, 50%);
  width: 42px; height: 42px;
  border-radius: 47% 53% 50% 50% / 50% 47% 53% 50%;
  background:
    radial-gradient(circle at 38% 34%, #d8503a 0%, #b8341f 44%, #8d2414 100%);
  box-shadow:
    0 3px 8px rgba(80, 18, 8, 0.5),
    0 0 16px rgba(180, 52, 31, 0.4),
    inset 0 2px 4px rgba(255, 200, 170, 0.35),
    inset 0 -3px 6px rgba(70, 12, 4, 0.5);
  border: 1px solid rgba(90, 20, 10, 0.4);
  z-index: 4;
}
.env-flap::before {
  content: '瑄';
  position: absolute;
  left: 50%; bottom: 30%;
  transform: translate(-50%, 50%);
  z-index: 5;
  font-family: var(--font-letter);
  font-size: 1.42rem;
  font-weight: 600;
  color: #f7efe0;
  text-shadow: 0 1px 1px rgba(60, 10, 4, 0.85), 0 -1px 1px rgba(255, 235, 215, 0.3);
}

/* 打开后 flap 向上翻 */
.envelope-card.opened .env-flap { transform: rotateX(-180deg); }

.env-stamp {
  position: absolute;
  bottom: 11%;
  right: 10%;
  writing-mode: vertical-rl;
  font-family: var(--font-letter);
  font-size: 0.84rem;
  color: #a83622;
  border: 1.5px solid rgba(168, 54, 34, 0.78);
  padding: 5px 4px;
  border-radius: 3px;
  background: rgba(168, 54, 34, 0.06);
  letter-spacing: 2px;
  transform: rotate(-3deg);
  text-align: center;
  line-height: 1.05;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(120, 40, 22, 0.2);
}

.env-line { display: none; }

/* 收信人 · 朱条上的竖排一行「紫瑄亲启」（象牙白，非金） */
.env-addr-to {
  position: absolute;
  top: 60%; bottom: 7%;
  left: 50%; transform: translateX(-50%);
  writing-mode: vertical-rl;
  white-space: nowrap;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-letter);
  font-size: 1.0rem;
  color: #f8f2e8;
  letter-spacing: 3px;
  line-height: 1;
  z-index: 3;
  text-shadow: 0 1px 2px rgba(80, 14, 6, 0.72);
}
.env-addr-from { display: none; }

.env-seal-big {
  display: none; /* 印章已由 .env-flap::after 代替 */
}

.env-tap-tip {
  font-family: var(--font-cn-serif);
  font-size: 0.78rem;
  color: rgba(238, 230, 214, 0.85);
  letter-spacing: 6px;
  margin-top: 0.2rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  animation: tapBlink 1.6s ease-in-out infinite;
}
@keyframes tapBlink {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* ---------- 信纸 ---------- */
.letter-card {
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  animation: paperUnfold 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes paperUnfold {
  0%   { opacity: 0; transform: translateY(40px) scale(0.92); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0)   scale(1);    filter: blur(0); }
}

.paper {
  width: 100%;
  max-height: calc(100vh - 9rem);
  background:
    linear-gradient(180deg, #fff8ee 0%, #fff0e0 100%);
  border-radius: 8px;
  padding: 1.4rem 1.8rem 1.4rem;
  color: #4b2615;
  font-family: var(--font-cn-serif);
  position: relative;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(255, 209, 102, 0.18),
    inset 0 0 30px rgba(200, 120, 60, 0.08);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(150, 80, 40, 0.5) transparent;
}
.paper::-webkit-scrollbar { width: 6px; }
.paper::-webkit-scrollbar-thumb {
  background: rgba(150, 80, 40, 0.5);
  border-radius: 6px;
}
.paper::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg,
      transparent 0 26px,
      rgba(90, 43, 26, 0.06) 26px 27px);
  border-radius: 8px;
}

.paper-tape {
  position: absolute;
  top: -10px;
  width: 60px; height: 18px;
  background: rgba(214, 196, 160, 0.5);
  border: 1px solid rgba(120, 92, 50, 0.2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.22);
  z-index: 2;
}
.paper-tape-left  { left: 14%; transform: rotate(-8deg); }
.paper-tape-right { right: 14%; transform: rotate(7deg); }

.paper-watermark {
  position: absolute;
  bottom: 6%; right: 5%;
  font-family: var(--font-letter);
  font-size: 9.4rem;
  font-weight: 600;
  color: rgba(30, 24, 16, 0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.paper-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  border-bottom: 1px dashed rgba(120, 60, 40, 0.3);
  padding-bottom: 0.5rem;
  margin-bottom: 0.7rem;
}
.paper-greeting {
  font-family: var(--font-letter);
  font-size: 2.15rem;
  color: #14100a;
  letter-spacing: 6px;
  margin: 0;
}
.paper-date {
  font-family: var(--font-letter);
  font-size: 1.08rem;
  color: rgba(26, 20, 12, 0.66);
  letter-spacing: 2px;
  margin: 0;
}

.paper-body {
  position: relative;
  z-index: 1;
  font-family: var(--font-letter);
  font-size: 1.34rem;
  font-weight: 400;
  line-height: 2.02;
  color: #16110a;
  letter-spacing: 1px;
}
.paper-body p {
  color: #16110a;
  font-weight: 400;
  margin-bottom: 1rem;
  font-size: 1.34rem;
  line-height: 2.02;
}
.paper-body b {
  color: #6a2418;
  font-weight: 400;
  font-family: var(--font-letter);
  font-size: 1.06em;
  letter-spacing: 1.5px;
}

/* 逐字书写时：正文逐段直接可见（不走原淡入动画） */
.paper-body.typing > * {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* 钢笔光标（书写中闪烁的小笔尖） */
.pen-caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  background: #16110a;
  vertical-align: -0.18em;
  border-radius: 1px;
  animation: penBlink 0.7s steps(1) infinite;
}
@keyframes penBlink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* 落款：书写完成后再淡入 */
.paper-sign { opacity: 0; transition: opacity 1.2s ease; }
.paper-sign.revealed { opacity: 1; }

.paper-dates {
  background: rgba(255, 209, 102, 0.18);
  border-left: 3px solid #c0392b;
  padding: 0.6rem 0.9rem;
  border-radius: 0 6px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.6rem 0 0.9rem;
}
.paper-dates span {
  font-size: 0.86rem;
  color: #5a2b1a;
}

.paper-em {
  text-align: center;
  font-family: var(--font-cn-title);
  font-size: 1.15rem;
  color: #16110a;
  margin: 0.8rem 0;
  letter-spacing: 2px;
  line-height: 1.85;
}
.paper-em b {
  color: #16110a;
  font-size: 1.2em;
}

.paper-final {
  text-align: center;
  font-family: var(--font-letter);
  font-size: 1.55rem;
  color: #16110a;
  letter-spacing: 5px;
  margin: 1rem 0 0.4rem;
  line-height: 1.8;
}

.paper-sign {
  position: relative;
  z-index: 1;
  text-align: right;
  font-family: var(--font-letter);
  color: #14100a;
  font-size: 1.25rem;
  letter-spacing: 2px;
  margin-top: 0.6rem;
  border-top: 1px dashed rgba(60, 44, 28, 0.25);
  padding-top: 0.6rem;
}
.sign-date {
  font-family: var(--font-letter);
  font-size: 1.02rem;
  letter-spacing: 3px;
  color: rgba(26, 20, 12, 0.7);
}

.finale-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.shimmer-kicker {
  color: rgba(240, 232, 216, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
  margin-bottom: 0.6rem;
  letter-spacing: 4px;
}

/* 终章按钮 · 墨色（去金、去霓虹粉，与书案古风统一） */
#scene-finale .btn-primary {
  background: linear-gradient(180deg, #3b2c22, #29201a);
  color: #f2e6d0;
  letter-spacing: 4px;
  border: 1px solid rgba(225, 205, 170, 0.42);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(40, 28, 20, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
#scene-finale .btn-primary:hover {
  background: linear-gradient(180deg, #46342a, #322620);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(60, 40, 28, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
#celebrateBtn.ink-pulse {
  animation: inkButtonPulse 0.52s ease;
}
@keyframes inkButtonPulse {
  0%   { transform: translateY(0) scale(1); }
  38%  { transform: translateY(-1px) scale(1.035); box-shadow: 0 0 0 8px rgba(86, 56, 35, 0.16), 0 12px 30px rgba(0, 0, 0, 0.52); }
  100% { transform: translateY(0) scale(1); }
}
#scene-finale .btn-ghost {
  border-color: rgba(214, 182, 120, 0.5);
  color: rgba(238, 224, 196, 0.9);
}

/* 信件正文逐段淡入 - 由 JS 设置 animation-delay */
.letter-card .paper-body > * {
  opacity: 0;
  transform: translateY(8px);
  animation: paperLine 0.7s ease forwards;
}
@keyframes paperLine {
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================================================
   旅程中转站 · 水墨长卷行旅图（InkScrollMap）
   =========================================================== */
.ink-map-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 40%, #2a2620 0%, #1a1714 55%, #0e0c0a 100%);
  isolation: isolate;
}
.ink-map-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(120, 96, 60, 0.18), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 5px);
  pointer-events: none;
  z-index: 0;
}
.ink-map-fog {
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse 40% 30% at 20% 30%, rgba(180,160,120,0.10), transparent 60%),
    radial-gradient(ellipse 45% 35% at 80% 70%, rgba(160,150,120,0.08), transparent 60%);
  filter: blur(20px);
  animation: inkFogDrift 26s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}
@keyframes inkFogDrift {
  0%   { transform: translate3d(-3%, 0, 0) scale(1); }
  100% { transform: translate3d(3%, 1%, 0) scale(1.08); }
}

.ink-map-header {
  position: absolute;
  top: 4vh; left: 0; right: 0;
  text-align: center;
  z-index: 20;
  pointer-events: none;
}
.ink-map-header .kicker {
  color: #c9a86a;
  letter-spacing: 4px;
  font-size: 0.78rem;
}
.ink-map-title {
  font-family: var(--font-cn-title);
  font-size: 2.1rem;
  letter-spacing: 14px;
  color: #f3e6c8;
  margin: 0.5rem 0 0.3rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6), 0 0 30px rgba(201, 168, 106, 0.3);
}
.ink-map-subtitle {
  font-family: var(--font-cn-serif);
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: rgba(220, 205, 175, 0.75);
  margin: 0;
}

/* —— 卷轴整体 —— */
.scroll-wrap {
  position: relative;
  width: min(92vw, 1180px);
  height: min(60vh, 600px);
  z-index: 10;
}

/* 画心可视窗口 */
.scroll-paper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 2px;
  box-shadow:
    0 30px 70px rgba(0,0,0,0.6),
    inset 0 0 60px rgba(90, 60, 30, 0.25);
  /* 闭合：从中间向两侧裁开 */
  clip-path: inset(0 50% 0 50%);
  transition: clip-path 1.8s cubic-bezier(0.65, 0, 0.2, 1);
  background: #ece2cc;
}
.scroll-wrap.unrolled .scroll-paper {
  clip-path: inset(0 0 0 0);
}

/* 画心（长卷实体，可横向平移） */
.scroll-canvas {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 150%;
  will-change: transform;
}
.scroll-art {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: sepia(0.12) contrast(1.02);
}

/* 旅程墨线 */
.scroll-path-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
.scroll-path-line {
  stroke: rgba(150, 70, 38, 0.82);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(196, 120, 56, 0.6)) drop-shadow(0 0 12px rgba(192, 57, 43, 0.3));
}

/* 路线行进的「笔尖」光点（墨线蔓延时领着走） */
.route-tip {
  position: absolute;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, #fff3d8 0%, #ffcf6e 38%, rgba(214, 96, 48, 0.65) 70%, transparent 78%);
  box-shadow: 0 0 12px rgba(255, 206, 110, 0.9), 0 0 26px rgba(214, 96, 48, 0.6);
  z-index: 6;
  transition: opacity 0.25s ease;
}
.route-tip.on { opacity: 1; }

/* 抵达时城市印章绽放 */
.ink-node.arrive-bloom .node-stamp {
  animation: nodeBloom 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes nodeBloom {
  0%   { transform: scale(0.6); filter: brightness(1.8) drop-shadow(0 0 0 rgba(255,209,102,0)); }
  45%  { transform: scale(1.32); filter: brightness(1.5) drop-shadow(0 0 22px rgba(255,209,102,0.9)); }
  100% { transform: scale(1); filter: brightness(1) drop-shadow(0 0 8px rgba(255,209,102,0.4)); }
}

/* 城市结尾只保留「下一城」——隐藏所有「回到信里」 */
.walk-link.ghost { display: none !important; }

/* —— 城市印章节点 —— */
.ink-nodes { position: absolute; inset: 0; pointer-events: none; }
.ink-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: default;
  pointer-events: none;
  padding: 0;
  opacity: 0;
  z-index: 3;
}
.scroll-wrap.unrolled .ink-node.stamped { opacity: 1; }
.ink-node.stamped { animation: inkStampDrop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes inkStampDrop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(2.0) rotate(-8deg); filter: blur(2px); }
  60%  { opacity: 1; transform: translate(-50%, -50%) scale(0.92) rotate(2deg); filter: blur(0); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

.node-stamp {
  position: relative;
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--font-cn-title);
  font-size: 1.18rem;
  letter-spacing: 1px;
  line-height: 1.05;
  color: #fff5ec;
  writing-mode: vertical-rl;
  text-orientation: upright;
  background: linear-gradient(150deg, #c0392b, #9e2b1e);
  border: 1.5px solid rgba(255, 235, 210, 0.85);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.45),
    0 0 0 2px rgba(160, 40, 30, 0.35),
    inset 0 0 10px rgba(255, 220, 200, 0.2);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s, filter 0.3s;
}
/* 未通关：淡墨待启 */
.ink-node:not(.visited) .node-stamp {
  background: linear-gradient(150deg, #5a5048, #3e3832);
  color: rgba(245, 235, 220, 0.75);
  filter: grayscale(0.4);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4), inset 0 0 10px rgba(0,0,0,0.25);
}
/* 通关：朱印点亮 + 金边 */
.ink-node.visited .node-stamp {
  border-color: var(--gold);
  box-shadow:
    0 4px 14px rgba(0,0,0,0.45),
    0 0 16px rgba(192, 57, 43, 0.55),
    0 0 26px rgba(255, 209, 102, 0.4),
    inset 0 0 10px rgba(255, 220, 200, 0.25);
}
.ink-node.visited .node-stamp::after {
  content: '✓';
  position: absolute;
  right: -6px; top: -6px;
  width: 16px; height: 16px;
  font-size: 0.6rem;
  writing-mode: horizontal-tb;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold);
  color: #3a1f10;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.node-name {
  font-family: var(--font-cn-hand);
  font-size: 1rem;
  letter-spacing: 1px;
  color: #f3e6c8;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  white-space: nowrap;
}
.node-poem {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  white-space: nowrap;
  font-family: var(--font-cn-serif);
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: #fff3df;
  background: rgba(40, 24, 16, 0.92);
  border: 1px solid rgba(201, 168, 106, 0.4);
  padding: 4px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 5;
}
.ink-node:hover .node-poem {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ink-node:hover .node-stamp {
  transform: scale(1.16) translateY(-2px);
  box-shadow:
    0 8px 20px rgba(0,0,0,0.5),
    0 0 22px rgba(192, 57, 43, 0.7),
    0 0 34px rgba(255, 209, 102, 0.5);
}

/* —— 左右画轴 —— */
.scroll-rod {
  position: absolute;
  top: -3%;
  height: 106%;
  width: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 12;
  transition: left 1.8s cubic-bezier(0.65, 0, 0.2, 1),
              right 1.8s cubic-bezier(0.65, 0, 0.2, 1);
}
/* 闭合：两轴并拢在中央 */
.scroll-rod-left  { left: calc(50% - 13px); }
.scroll-rod-right { right: calc(50% - 13px); }
/* 展开：两轴滑向两端 */
.scroll-wrap.unrolled .scroll-rod-left  { left: -10px; }
.scroll-wrap.unrolled .scroll-rod-right { right: -10px; }

.rod-body {
  flex: 1;
  width: 16px;
  background: linear-gradient(90deg, #4a2e16, #8a5a2e 38%, #c79a5a 50%, #8a5a2e 62%, #3e2613);
  border-radius: 8px;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.5);
}
.rod-cap {
  width: 26px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(90deg, #3a2410, #7a5226 45%, #a87a3e 55%, #2e1c0c);
  box-shadow: 0 2px 8px rgba(0,0,0,0.6), inset 0 0 5px rgba(255,220,160,0.25);
}
.rod-cap.top    { margin-bottom: -4px; }
.rod-cap.bottom { margin-top: -4px; }

/* —— 火漆封条（展卷前） —— */
.scroll-seal-hint {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 15;
  cursor: pointer;
  transition: opacity 0.6s ease;
}
.scroll-wrap.unrolled .scroll-seal-hint {
  opacity: 0;
  pointer-events: none;
}
.wax-seal {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-letter);
  font-size: 2.58rem;
  font-weight: 600;
  color: #ffe9d6;
  background: radial-gradient(circle at 38% 32%, #d6493a, #a82a1d 70%, #7e1d13);
  border: 2px solid rgba(255, 220, 200, 0.5);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.55),
    0 0 30px rgba(192, 57, 43, 0.5),
    inset 0 -6px 14px rgba(120, 20, 10, 0.6),
    inset 0 6px 12px rgba(255, 200, 180, 0.3);
  animation: waxPulse 2.6s ease-in-out infinite;
}
@keyframes waxPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(0,0,0,0.55), 0 0 24px rgba(192,57,43,0.45), inset 0 -6px 14px rgba(120,20,10,0.6), inset 0 6px 12px rgba(255,200,180,0.3); }
  50%      { transform: scale(1.06); box-shadow: 0 8px 28px rgba(0,0,0,0.6), 0 0 40px rgba(255,120,80,0.7), inset 0 -6px 14px rgba(120,20,10,0.6), inset 0 6px 12px rgba(255,200,180,0.4); }
}
.seal-hint-text {
  font-family: var(--font-cn-serif);
  font-size: 0.92rem;
  letter-spacing: 4px;
  color: #f0dcb8;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
  animation: sealHintBlink 2.6s ease-in-out infinite;
}
@keyframes sealHintBlink {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

.ink-map-drag-hint {
  position: absolute;
  bottom: 13vh; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-cn-serif);
  font-size: 0.82rem;
  letter-spacing: 3px;
  color: rgba(230, 215, 185, 0.7);
  z-index: 20;
  pointer-events: none;
  animation: sealHintBlink 3s ease-in-out infinite;
}
.ink-map-drag-hint.hidden { display: none; }

/* 终章信件封印：定位到底部居中 */
.ink-map-stage .map-letter-lock {
  position: absolute;
  left: 50%; right: auto; top: auto;
  bottom: 4vh;
  transform: translateX(-50%);
  flex-direction: row;
  z-index: 24;
}
/* 八城走完 · 「最后一封信」在行旅图上绽放登场（保留居中 translateX） */
.ink-map-stage .map-letter-lock.bloom-in {
  animation: lockBloomIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes lockBloomIn {
  0%   { opacity: 0; transform: translateX(-50%) translateY(18px) scale(0.9); }
  60%  { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.04); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@media (max-width: 768px) {
  .ink-map-title { font-size: 1.5rem; letter-spacing: 8px; }
  .scroll-wrap { width: 96vw; height: 52vh; }
  .node-stamp { width: 38px; height: 38px; font-size: 1rem; }
  .node-name { font-size: 0.85rem; }
  .wax-seal { width: 64px; height: 64px; font-size: 2rem; }
  .ink-map-stage .map-letter-lock { bottom: 2vh; scale: 0.9; }
}

/* ===================== 城市回忆幻灯片 ===================== */
.city-slideshow {
  position: relative;
  width: 100%;
  max-width: 760px;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.7),
    0 0 40px rgba(255,209,102,0.18);
  flex-shrink: 0;
}

.city-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 6s linear;
}

.city-slide.slide-active {
  opacity: 1;
  transform: scale(1.0);
}

/* 幻灯片底部渐变遮罩 */
.city-slide::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(4, 2, 10, 0.92) 0%, transparent 100%);
  pointer-events: none;
}

/* 幻灯片文字覆盖 */
.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 5;
  padding: 1.2rem 1.8rem 1.5rem;
  text-align: center;
  pointer-events: none;
}

.slide-city-name {
  font-family: var(--font-cn-title);
  font-size: 2rem;
  letter-spacing: 8px;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,209,102,0.6), 0 2px 8px rgba(0,0,0,0.8);
  display: block;
  margin-bottom: 0.35rem;
}

.slide-city-quote {
  font-family: var(--font-cn-serif);
  font-size: 0.85rem;
  color: rgba(255, 235, 190, 0.88);
  letter-spacing: 2.5px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  display: block;
}

/* 幻灯片导航点 */
.slide-dots {
  position: absolute;
  bottom: 16px;
  right: 18px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: all 0.35s;
  cursor: pointer;
}
.slide-dot.active {
  background: var(--gold);
  width: 18px;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255,209,102,0.6);
}

/* 幻灯片左右箭头 */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 5, 20, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
}
.slide-arrow:hover {
  background: rgba(255,209,102,0.25);
  border-color: rgba(255,209,102,0.5);
}
.slide-arrow-prev { left: 12px; }
.slide-arrow-next { right: 12px; }

/* 幻灯片底部按钮 */
.slideshow-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.slideshow-hint {
  font-family: var(--font-cn-serif);
  font-size: 0.75rem;
  color: rgba(255,209,102,0.65);
  letter-spacing: 2px;
  animation: tapBlink 2s ease-in-out infinite;
}

/* ===================== 地图欢迎遮罩 ===================== */
.map-welcome-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(4, 2, 12, 0.88) 0%,
    rgba(18, 6, 30, 0.85) 50%,
    rgba(4, 2, 12, 0.88) 100%
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  cursor: pointer;
  animation: fadeIn 0.8s ease;
}

.map-welcome-deco {
  font-family: var(--font-cn-title);
  font-size: 4rem;
  color: rgba(255, 209, 102, 0.35);
  line-height: 1;
  filter: blur(2px);
  letter-spacing: 8px;
}

.map-welcome-title {
  font-family: var(--font-cn-title);
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 6px;
  text-shadow: 0 0 20px rgba(192,132,252,0.5);
}

.map-welcome-body {
  text-align: center;
  max-width: 380px;
}

.map-welcome-poem {
  font-family: var(--font-cn-serif);
  font-size: 1rem;
  line-height: 2;
  color: rgba(255, 240, 210, 0.9);
  letter-spacing: 2px;
}

.map-welcome-hint {
  font-family: var(--font-cn-serif);
  font-size: 0.78rem;
  color: rgba(255, 209, 102, 0.7);
  letter-spacing: 3px;
  margin-top: 0.4rem;
  animation: tapBlink 2s ease-in-out infinite;
}

.map-welcome-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,209,102,0.5), transparent);
}

/* ===================== 解锁后操作按钮行 ===================== */
.actions-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ===================== chapter-sub 引导文字升级 ===================== */
.chapter-sub {
  font-family: var(--font-cn-serif);
  font-size: 0.88rem;
  line-height: 2.1;
  color: rgba(220, 215, 248, 0.9);
  margin-bottom: 0;
  letter-spacing: 1px;
  min-height: 1.85em;
  position: relative;
}

/* 精简版信件城市行（每城市仅一行精华）*/
.city-line-slim {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 2px solid rgba(192, 57, 43, 0.4);
  padding-left: 0.8rem;
  margin-bottom: 0.7rem;
  gap: 0.15rem;
}
.city-line-slim .city-name {
  font-family: var(--font-cn-title);
  font-size: 1rem;
  color: #c0392b;
  letter-spacing: 3px;
  font-weight: 700;
}
.city-line-slim .city-memory {
  font-size: 0.88rem;
  color: #4b2615;
  line-height: 1.85;
  letter-spacing: 0.8px;
}


/* ===================== 古诗题字 ===================== */
.poem-line {
  text-align: center;
  font-family: var(--font-cn-hand);
  font-size: 1rem;
  letter-spacing: 4px;
  color: rgba(255, 209, 102, 0.78);
  margin-bottom: 0.7rem;
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.35);
  animation: poemFade 1.4s ease;
}
.poem-line.small {
  font-size: 0.86rem;
  letter-spacing: 3px;
  color: rgba(255, 209, 102, 0.7);
  margin-top: 0.1rem;
  margin-bottom: 0.55rem;
}
@keyframes poemFade {
  0%   { opacity: 0; letter-spacing: 18px; filter: blur(4px); }
  100% { opacity: 1; letter-spacing: 4px;  filter: blur(0); }
}

/* ===================== 信件 · 城市段落 ===================== */
.paper-body .city-line {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 240, 220, 0.55), rgba(255, 230, 200, 0.35));
  border-left: 3px solid rgba(192, 57, 43, 0.55);
  border-radius: 0 8px 8px 0;
  padding: 0.55rem 0.85rem 0.55rem 0.95rem;
  margin: 0.55rem 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: #4b2615;
  box-shadow: inset 0 0 18px rgba(180, 110, 60, 0.06);
}
.city-name {
  display: inline-block;
  font-family: var(--font-cn-hand);
  font-size: 1.25rem;
  color: #c0392b;
  letter-spacing: 5px;
  margin-right: 0.7rem;
  vertical-align: -2px;
  text-shadow: 0 0 8px rgba(192, 57, 43, 0.18);
}
.city-quote {
  font-family: var(--font-cn-serif);
  font-size: 0.82rem;
  color: rgba(120, 60, 40, 0.78);
  letter-spacing: 2px;
  font-style: italic;
}
.paper-body .city-line b {
  color: #c0392b;
  font-family: var(--font-cn-hand);
  font-size: 1.05em;
  letter-spacing: 1px;
}

/* "第二个生日" 高亮 */
.paper-dates .hot {
  color: #c0392b !important;
  background: rgba(255, 209, 102, 0.5);
  padding: 0 0.35rem;
  border-radius: 4px;
  font-family: var(--font-cn-title);
  font-size: 1.15em;
  letter-spacing: 1px;
}

/* ===================== 紫晶宫殿 · 12 张牌（6 对地点） ===================== */
.match-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
  flex: 1;
  align-self: stretch;
  min-height: 0;
  width: 100%;
}
.match-card {
  aspect-ratio: auto !important;
  min-height: 0;
  min-width: 0;
  height: 100%;
  width: 100%;
}
.match-card .front {
  font-size: 0.78rem;
  letter-spacing: 1px;
  line-height: 1.4;
  padding: 6px;
}
.match-card .back {
  font-size: 1.6rem;
}

/* ===================== 进度导航 ===================== */
.chapter-nav {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  z-index: 100;
  background: rgba(10, 6, 20, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 26px rgba(0,0,0,0.45);
}
.nav-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
}
.nav-dot:hover { background: rgba(255,255,255,0.4); }
.nav-dot::after {
  content: attr(data-label);
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  letter-spacing: 1px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.nav-dot:hover::after { opacity: 1; }
.nav-dot.active {
  background: var(--gold);
  transform: scale(1.5);
  box-shadow: 0 0 14px var(--gold);
  border-color: rgba(255,255,255,0.4);
}
.nav-dot.unlocked { background: var(--accent); }

.journey-progress {
  position: fixed;
  top: 0.9rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 80;
  background: rgba(10, 6, 20, 0.65);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-cn-serif);
}
.journey-bar {
  width: 80px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}
.journey-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--primary), var(--gold));
  border-radius: 4px;
  transition: width 0.6s ease;
  box-shadow: 0 0 10px rgba(192,132,252,0.5);
}

/* ===================== Toast ===================== */
.toast {
  position: fixed;
  top: 4rem;
  left: 50%;
  transform: translate(-50%, -20px);
  background: rgba(10, 6, 20, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s;
  z-index: 1000;
  font-size: 0.88rem;
  letter-spacing: 1px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 测试关卡选择器与作弊按钮 */
.cheat-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.72rem;
  padding: 4px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.65);
  border-radius: 6px;
  z-index: 25;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-cn-serif);
  letter-spacing: 1px;
}
.cheat-btn:hover {
  background: rgba(192,132,252,0.3);
  color: #fff;
  border-color: rgba(192,132,252,0.8);
}
.test-level-select {
  position: fixed;
  right: 14px;
  top: 14px;
  z-index: 1200;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  backdrop-filter: blur(10px);
  font-family: var(--font-cn-serif);
  letter-spacing: 1px;
  font-size: 0.78rem;
}

/* 飘浮文字 */
.float-word {
  position: fixed;
  pointer-events: none;
  color: var(--gold);
  font-family: var(--font-cn-hand);
  font-size: 1.4rem;
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.55);
  animation: floatWord 2.4s ease-out forwards;
  z-index: 999;
}

/* 墨染祝福：黑墨字 + 宣纸光晕，确保在暗色书案上可读 */
.ink-word {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -50%);
  font-family: var(--font-cn-hand);
  font-size: 2.1rem;
  letter-spacing: 2px;
  color: #14100a;
  text-shadow:
    0 0 22px rgba(246, 238, 218, 0.95),
    0 0 10px rgba(246, 238, 218, 0.98),
    0 0 4px rgba(246, 238, 218, 1);
  opacity: 0;
  z-index: 7;
  animation: inkWordIn 2.9s ease forwards;
}
@keyframes inkWordIn {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.7); filter: blur(7px); }
  24%  { opacity: 1; filter: blur(0); }
  72%  { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.18); filter: blur(2px); }
}
@keyframes floatWord {
  0%   { transform: translate(-50%, 0) scale(0.8); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translate(-50%, -180px) scale(1.4); opacity: 0; }
}

@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.85) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* 响应式 */
@media (max-width: 900px) {
  .glass-card { padding: 1.2rem 1.2rem; border-radius: 20px; }
  .chapter-card { padding: 1.1rem 1.2rem; }
  h1 { font-size: 2rem; }
  .chapter-title { font-size: 1.35rem; letter-spacing: 3px; }
  .row-layout { flex-direction: column; gap: 0.8rem; }
  .side-copy { flex: 0 0 auto; }
  .match-grid { gap: 8px; }
  .simon-btn { width: 70px; height: 70px; }
  .simon-grid { padding: 0.7rem; gap: 0.7rem; }
  .name-reveal { font-size: 2rem; letter-spacing: 4px; }
  .crown-name { font-size: 2.4rem; }
  .gear-container { width: 170px; height: 170px; }
  .dial { width: 48px; height: 66px; }
  .dial-text { font-size: 1.4rem; }
  .drag-petal { width: 54px; height: 54px; }
  .water-center { width: 90px; height: 90px; }
  .physics-pond { height: 240px; }
  .connect-game { height: 230px; }
  .fullscreen-card { padding: 1rem; }
  .chapter-nav { gap: 0.4rem; padding: 0.4rem 0.8rem; }
  .nav-dot { width: 10px; height: 10px; }
  .journey-progress { top: 0.6rem; left: 0.6rem; padding: 0.35rem 0.7rem; font-size: 0.66rem; }
  .journey-bar { width: 50px; }
  .test-level-select { right: 8px; top: 8px; font-size: 0.72rem; }
  .map-letter-lock {
    top: 62px;
    right: 10px;
    gap: 8px;
  }
  .lock-wrapper {
    width: 56px;
    height: 56px;
  }
  .lock-seal {
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
  }
  .lock-info-box {
    min-width: 148px;
    padding: 8px 10px;
  }
  .lock-title {
    font-size: 0.76rem;
  }
  .lock-progress {
    font-size: 0.68rem;
  }
  .env-3d { width: 260px; height: 165px; }
  .paper { padding: 1rem 1.2rem; }
  .paper-greeting { font-size: 1.55rem; }
  .paper-body, .paper-body p { font-size: 1.2rem; line-height: 2; }
  .paper-final { font-size: 1.4rem; letter-spacing: 3px; }
  .paper-sign { font-size: 1.15rem; }
}

@media (max-width: 900px) {
  .match-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, 60px);
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .match-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, 60px);
    gap: 6px;
  }
  .simon-btn { width: 60px; height: 60px; }
  .gear-container { width: 150px; height: 150px; }
}

/* =========================================================
   寻瑄之旅 · 原神大地图、成就系统、过渡车票及手账样式
   ========================================================= */

/* ============ MAP HUB · 全屏沉浸式地图 ============ */
body[data-scene="map-hub"] {
  background: #000000 !important;
}

/* 覆盖 .scene 默认内边距，让地图占满全屏 */
#scene-map-hub {
  padding: 0 !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  display: block !important;
  position: absolute;
  inset: 0;
}

#scene-map-hub > .map-hub-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


.map-hub-card {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.map-hub-header {
  position: absolute;
  top: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 20;
  pointer-events: none;
}

.map-hub-title {
  font-family: var(--font-cn-title);
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 8px;
  text-shadow:
    0 0 12px rgba(255, 209, 102, 0.7),
    0 0 30px rgba(255, 209, 102, 0.35),
    0 2px 6px rgba(0,0,0,0.7);
  margin: 0.1rem 0;
  white-space: nowrap;
}

.map-hub-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 240, 180, 0.75);
  letter-spacing: 1.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* 隐藏 map-hub 下静态突兀的 CSS 背景，由 WebGL 3D 彻底接管 */
body[data-scene="map-hub"] .static-bg,
body[data-scene="map-hub"] .layer-stars,
body[data-scene="map-hub"] .layer-aurora,
body[data-scene="map-hub"] .layer-nebula,
body[data-scene="map-hub"] .layer-photo {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* --- 地图拖拽缩放容器 --- */
.map-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  background: transparent;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.map-container:active {
  cursor: grabbing;
}

.map-content {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  transform-origin: 0 0;
}

.map-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.88;
  filter: saturate(1.15) brightness(0.95);
}

/* ---- 云雾飘动层 ---- */
.map-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.map-cloud {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  filter: blur(32px);
}

.cloud-1 {
  width: 420px;
  height: 160px;
  background: radial-gradient(ellipse, rgba(240, 232, 255, 0.28) 0%, rgba(200, 180, 255, 0.12) 50%, transparent 75%);
  top: -40px;
  left: -60px;
  animation: cloudDrift1 22s ease-in-out infinite;
}

.cloud-2 {
  width: 520px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(255, 240, 220, 0.22) 0%, rgba(255, 220, 180, 0.08) 55%, transparent 78%);
  bottom: -60px;
  right: -80px;
  animation: cloudDrift2 28s ease-in-out infinite;
}

.cloud-3 {
  width: 350px;
  height: 130px;
  background: radial-gradient(ellipse, rgba(220, 240, 255, 0.20) 0%, rgba(180, 210, 255, 0.08) 55%, transparent 80%);
  top: 30%;
  left: -50px;
  animation: cloudDrift3 18s ease-in-out infinite;
}

@keyframes cloudDrift1 {
  0%   { opacity: 0; transform: translateX(0px); }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(60px); }
}

@keyframes cloudDrift2 {
  0%   { opacity: 0; transform: translateX(0px); }
  10%  { opacity: 0.85; }
  90%  { opacity: 0.85; }
  100% { opacity: 0; transform: translateX(-55px); }
}

@keyframes cloudDrift3 {
  0%   { opacity: 0; transform: translateX(0px) translateY(0px); }
  20%  { opacity: 0.7; }
  80%  { opacity: 0.7; }
  100% { opacity: 0; transform: translateX(45px) translateY(-15px); }
}

/* ---- 教程引导横幅 ---- */
.map-tutorial-banner {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  background: rgba(12, 6, 22, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 0.72rem;
  color: rgba(255, 240, 200, 0.85);
  letter-spacing: 1.2px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  animation: tutorialFadeIn 1.5s 1.2s both;
}

.tutorial-sparkle {
  color: var(--gold);
  font-size: 0.8rem;
  animation: sparkle 2.5s ease-in-out infinite;
}

@keyframes tutorialFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.map-routes-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.map-routes-svg path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 8, 10;
  animation: mapRouteDash 20s linear infinite;
  filter: drop-shadow(0 0 5px var(--gold)) drop-shadow(0 0 10px var(--gold));
}

@keyframes mapRouteDash {
  to { stroke-dashoffset: -400; }
}

/* --- 终章信封中央封印 --- */
.map-letter-lock {
  position: absolute;
  right: 24px;
  top: 92px;
  left: auto;
  bottom: auto;
  transform: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  z-index: 26;
  text-align: left;
  pointer-events: auto;
}

.lock-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-seal {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, #e74c3c, #c0392b, #8e44ad);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-letter);
  font-size: 1.84rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
  box-shadow:
    0 0 25px rgba(231, 76, 60, 0.6),
    0 0 45px rgba(255, 209, 102, 0.35),
    inset 0 0 15px rgba(255,255,255,0.25);
  z-index: 3;
  transition: all 0.35s;
}

.map-letter-lock.locked .lock-seal {
  background: radial-gradient(circle, #7f8c8d, #34495e);
  border-color: rgba(255,255,255,0.3);
  box-shadow:
    0 0 15px rgba(0, 0, 0, 0.6),
    inset 0 0 12px rgba(0, 0, 0, 0.4);
  filter: grayscale(80%);
}

.lock-glow-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 209, 102, 0.4);
  animation: lockRingRotate 20s linear infinite;
  pointer-events: none;
}

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

.lock-info-box {
  margin-top: 0;
  background: rgba(20, 10, 30, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 209, 102, 0.3);
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 190px;
  width: auto;
}

.lock-title {
  font-family: var(--font-cn-serif);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gold);
  letter-spacing: 1px;
}

.lock-progress {
  font-size: 0.78rem;
  color: #fff;
  margin-top: 4px;
}

/* --- 缩放控制器 --- */
.map-controls {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 30;
}

.map-ctrl-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  background: rgba(20, 10, 30, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.45);
  transition: all 0.2s;
}

.map-ctrl-btn:hover {
  background: var(--gold);
  color: #100518;
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(255, 209, 102, 0.4);
}

/* --- 成就解锁弹窗 --- */
.achievement-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 12, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.achievement-card {
  position: relative;
  width: 90%;
  max-width: 440px;
  background: linear-gradient(135deg, rgba(32, 15, 50, 0.95), rgba(12, 5, 22, 0.98));
  border: 2px solid var(--gold);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.85),
    0 0 35px rgba(255, 209, 102, 0.28);
  overflow: hidden;
  animation: achShow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes achShow {
  from { transform: scale(0.82) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.achievement-glow {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.14) 0%, transparent 60%);
  pointer-events: none;
  animation: achPulseGlow 5s ease-in-out infinite;
}

@keyframes achPulseGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.achievement-badge-container {
  margin: 0 auto 1.4rem;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf0 0%, #ffd700 80%, #d4af37 100%);
  border: 4px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  box-shadow: 0 5px 25px rgba(255,209,102,0.6);
  animation: achBadgeFloat 3s ease-in-out infinite;
}

@keyframes achBadgeFloat {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 5px 25px rgba(255,209,102,0.6); }
  50% { transform: translateY(-8px) scale(1.06); box-shadow: 0 15px 35px rgba(255,209,102,0.8); }
}

.achievement-kicker {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 4px;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.achievement-name {
  font-family: var(--font-cn-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 12px rgba(255,255,255,0.4);
}

.achievement-desc {
  font-size: 0.9rem;
  color: var(--soft-rose);
  letter-spacing: 1px;
}

/* --- 车票转场屏 --- */
.travel-transition-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 4, 15, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.travel-card {
  position: relative;
  width: 90%;
  max-width: 580px;
  background: #fcf6eb;
  border: 2px solid #5a3c1e;
  border-radius: 14px;
  padding: 2.2rem 2.4rem;
  box-shadow:
    0 25px 65px rgba(0,0,0,0.88),
    0 0 40px rgba(90, 60, 30, 0.25);
  color: #4a2f16;
  font-family: var(--font-cn-serif);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ticketPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

@keyframes ticketPop {
  from { transform: scale(0.9) rotate(-2deg); opacity: 0; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}

.travel-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(90, 60, 30, 0.35);
  border-radius: 10px;
  pointer-events: none;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.ticket-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #5a3c1e;
  letter-spacing: 4px;
  border-bottom: 2px solid #5a3c1e;
  padding-bottom: 4px;
}

.ticket-stamp {
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px dashed #962d2d;
  color: #962d2d;
  padding: 5px 9px;
  border-radius: 4px;
  transform: rotate(8deg);
  letter-spacing: 1px;
  font-family: var(--font-sans);
}

.route-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 1.2rem 0;
}

.route-station {
  font-size: 1.7rem;
  font-weight: 700;
  color: #962d2d;
  letter-spacing: 2px;
}

.route-arrow {
  font-size: 1.6rem;
  color: #5a3c1e;
  animation: arrowGlide 1.8s ease-in-out infinite;
}

@keyframes arrowGlide {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50% { transform: translateX(6px); opacity: 1; }
}

.ticket-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(90, 60, 30, 0.25), transparent);
  margin: 0.6rem 0;
}

.ticket-message {
  min-height: 110px;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.travel-typewriter-text {
  font-size: 0.95rem;
  line-height: 1.85;
  text-align: center;
  color: #4a2f16;
  letter-spacing: 1px;
  margin: 0;
  width: 100%;
}

.ticket-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2rem;
  flex-shrink: 0;
}

.ticket-serial {
  font-size: 0.75rem;
  color: rgba(90, 60, 30, 0.55);
  font-family: var(--font-sans);
  letter-spacing: 1.5px;
}

/* --- 浮动纪念手账按钮 --- */
.journal-toggle-btn {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 100;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  background: rgba(18, 8, 28, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--gold);
  font-family: var(--font-cn-serif);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow:
    0 5px 20px rgba(0,0,0,0.5),
    0 0 15px rgba(255, 209, 102, 0.18);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.journal-toggle-btn:hover {
  transform: scale(1.08) translateY(-4px);
  border-color: var(--gold);
  box-shadow:
    0 8px 30px rgba(0,0,0,0.6),
    0 0 25px rgba(255, 209, 102, 0.4);
}

/* --- 手账主模态框 (Genshin booklet) --- */
.journal-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 2, 8, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.journal-book {
  position: relative;
  width: 95%;
  max-width: 980px;
  height: 82vh;
  max-height: 620px;
  background: linear-gradient(180deg, #faf3e8 0%, #f6eada 100%);
  border-radius: 18px;
  border: 7px solid #3d230e;
  box-shadow:
    0 30px 75px rgba(0,0,0,0.8),
    inset 0 0 50px rgba(60,30,10,0.12);
  display: flex;
  overflow: hidden;
  animation: bookUnfold 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

@keyframes bookUnfold {
  from { transform: scale(0.9) rotateX(10deg); opacity: 0; }
  to { transform: scale(1) rotateX(0deg); opacity: 1; }
}

.journal-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: none;
  color: #3d230e;
  cursor: pointer;
  transition: all 0.25s;
  z-index: 10;
}

.journal-close-btn:hover {
  transform: scale(1.15) rotate(90deg);
  color: #c0392b;
}

.journal-pages {
  display: flex;
  width: 100%;
  height: 100%;
}

.journal-page {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(61,35,14,0.3) transparent;
}

.journal-page::-webkit-scrollbar {
  width: 5px;
}

.journal-page::-webkit-scrollbar-thumb {
  background: rgba(61,35,14,0.3);
  border-radius: 4px;
}

.page-left {
  border-right: 2px dashed rgba(61, 35, 14, 0.2);
  position: relative;
}

.page-left::after {
  content: '';
  position: absolute;
  right: -5px; top: 0; bottom: 0;
  width: 10px;
  background: linear-gradient(to right, rgba(0,0,0,0.06), transparent 50%, rgba(0,0,0,0.06));
}

.journal-title {
  font-family: var(--font-cn-title);
  font-size: 1.45rem;
  color: #3d230e;
  text-align: center;
  margin-bottom: 1.2rem;
  letter-spacing: 3px;
}

.journal-progress-bar {
  background: rgba(61,35,14,0.05);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(61,35,14,0.1);
}

.journal-progress-text {
  font-size: 0.8rem;
  color: #5a3a1e;
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 1px;
}

.journal-progress-track {
  height: 8px;
  background: rgba(61,35,14,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.journal-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold), #ff5b95);
  width: 0%;
  transition: width 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.journal-city-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.journal-city-item {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(61,35,14,0.03);
  border: 1px solid rgba(61,35,14,0.08);
  font-family: var(--font-cn-serif);
  font-size: 0.92rem;
  color: #3d230e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s;
}

.journal-city-item:hover {
  background: rgba(61,35,14,0.06);
  transform: translateX(4px);
  border-color: rgba(61,35,14,0.2);
}

.journal-city-item.active {
  background: rgba(61,35,14,0.09);
  border-color: var(--gold);
  box-shadow: inset 0 0 8px rgba(61,35,14,0.05);
  font-weight: 700;
}

.journal-city-item.locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.journal-city-item.locked:hover {
  transform: none;
  background: rgba(61,35,14,0.03);
  border-color: rgba(61,35,14,0.08);
}

.city-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #95a5a6;
  display: inline-block;
  margin-right: 10px;
  transition: all 0.3s;
}

.journal-city-item:not(.locked) .city-dot {
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
}

.city-ach-status {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(0,0,0,0.05);
  color: #7f8c8d;
  letter-spacing: 0.5px;
}

.journal-city-item:not(.locked) .city-ach-status {
  background: rgba(46, 204, 113, 0.12);
  color: #27ae60;
  font-weight: 700;
}

/* 右侧页面详情 */
.journal-details {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

.journal-empty-state {
  text-align: center;
  color: rgba(61,35,14,0.45);
  padding: 2rem;
}

.empty-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 0.8rem;
  opacity: 0.7;
}

.journal-details-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.journal-badge-show {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.25);
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 4px;
}

.badge-icon {
  font-size: 1.8rem;
}

.badge-title {
  font-family: var(--font-cn-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #3d230e;
  margin: 0;
}

.journal-nickname-box {
  font-size: 0.92rem;
  color: #5a3a1e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nickname-value {
  font-weight: 700;
  color: #d35400;
  font-size: 1rem;
}

.journal-divider {
  height: 1.5px;
  background: rgba(61, 35, 14, 0.15);
  margin: 6px 0;
}

.journal-memory-prose {
  font-family: var(--font-cn-serif);
  font-size: 0.95rem;
  line-height: 1.95;
  color: #3d230e;
  margin: 0;
  text-indent: 2em;
  text-align: justify;
}

/* =========================================================
   响应式调整
   ========================================================= */

@media (max-width: 768px) {
  .journal-book {
    flex-direction: column;
    height: 88vh;
    max-height: none;
  }

  .journal-pages {
    flex-direction: column;
  }

  .journal-page {
    flex: none;
    overflow-y: visible;
    padding: 1.8rem;
  }

  .page-left {
    border-right: none;
    border-bottom: 2px dashed rgba(61, 35, 14, 0.2);
  }

  .page-left::after {
    display: none;
  }

  .map-hub-card {
    height: 100%;
    min-height: 100%;
  }
}

/* =========================================================
   第一章 · 南京 · 并肩漫步（标杆重做：脱离通用 glass-card）
   一条向纵深延展的梧桐大道，按住屏幕与她同行，
   沿途浮起真实的回忆，走到尽头，那张照片缓缓绽开。
   ========================================================= */
.chapter-lanterns { padding: 0; }

.walk-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #2a1c08 0%, #1b1206 48%, #0a0806 100%);
  cursor: pointer;
  user-select: none;
}

/* 真实南京照片做底：随脚步由朦胧走向清晰（JS 驱动 filter/transform） */
.walk-base {
  position: absolute; inset: 0; z-index: 0;
  background: url('assets/nanjing_real.jpg') center 40% / cover;
  transform: scale(1.12);
  filter: blur(14px) brightness(0.34) saturate(0.92);
  transition: filter 0.5s ease, transform 0.6s ease;
}
.walk-base-veil {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(26, 16, 4, 0.55) 0%, rgba(12, 8, 3, 0.22) 42%, rgba(8, 5, 2, 0.74) 100%);
}
.walk-stage.arrived .walk-base {
  filter: blur(1.5px) brightness(0.95) saturate(1.12);
  transform: scale(1.02);
  transition: filter 1.6s ease, transform 1.6s ease;
}
.walk-stage.arrived .walk-base-veil {
  background: linear-gradient(180deg,
    rgba(26, 16, 4, 0.28) 0%, rgba(12, 8, 3, 0.08) 42%, rgba(8, 5, 2, 0.5) 100%);
  transition: background 1.6s ease;
}

/* 天光 + 金色梧桐穹顶 */
.walk-sky {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 78% at 50% -12%,
    rgba(255, 240, 205, 0.92) 0%, rgba(255, 200, 110, 0.5) 22%,
    rgba(196, 128, 40, 0.26) 44%, transparent 66%);
}
.walk-canopy {
  position: absolute; left: 0; right: 0; top: 0; height: 60%;
  pointer-events: none; mix-blend-mode: screen; filter: blur(7px);
  background:
    radial-gradient(38% 40% at 18% 18%, rgba(255, 196, 70, 0.55), transparent 70%),
    radial-gradient(44% 44% at 76% 14%, rgba(255, 172, 52, 0.5), transparent 70%),
    radial-gradient(52% 52% at 50% -2%, rgba(255, 210, 120, 0.6), transparent 74%),
    radial-gradient(30% 30% at 62% 34%, rgba(220, 140, 40, 0.4), transparent 70%);
  animation: canopyShimmer 9s ease-in-out infinite alternate;
}
@keyframes canopyShimmer {
  0%   { transform: scale(1) translateY(0); opacity: 0.72; }
  100% { transform: scale(1.06) translateY(-1%); opacity: 0.96; }
}

/* 纵深大道 */
.walk-avenue { position: absolute; inset: 0; z-index: 2; overflow: hidden; --walk: 0; pointer-events: none; }

/* 两侧梧桐剪影：柔和的暗部，像被暮色吞没的成排梧桐 */
.avenue-side {
  position: absolute; top: 0; bottom: 0; width: 36%; z-index: 2;
  pointer-events: none; filter: blur(3px);
  background-repeat: no-repeat;
}
.avenue-side.left {
  left: 0;
  background:
    repeating-linear-gradient(90deg, rgba(10,7,3,0.0) 0 26px, rgba(14,9,4,0.55) 30px 40px),
    radial-gradient(70% 80% at 0% 34%, rgba(18,12,5,0.94), transparent 74%),
    linear-gradient(90deg, rgba(10,7,3,0.96), rgba(30,20,8,0.25) 66%, transparent);
}
.avenue-side.right {
  right: 0;
  background:
    repeating-linear-gradient(270deg, rgba(10,7,3,0.0) 0 26px, rgba(14,9,4,0.55) 30px 40px),
    radial-gradient(70% 80% at 100% 34%, rgba(18,12,5,0.94), transparent 74%),
    linear-gradient(270deg, rgba(10,7,3,0.96), rgba(30,20,8,0.25) 66%, transparent);
}

/* 大道尽头那束光：你要走向的那个金色秋天（JS 驱动 opacity/scale） */
.avenue-vanish {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  width: 34%; height: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(closest-side,
    rgba(255, 232, 178, 0.6), rgba(255, 192, 96, 0.24) 48%, transparent 78%);
  filter: blur(8px); opacity: 0.5;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 飘落的梧桐叶 */
.walk-leaves { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.leaf {
  position: absolute; top: -8%; width: 16px; height: 10px;
  background: linear-gradient(135deg, #f0b24a, #c87a28);
  border-radius: 0 80% 0 80%; opacity: 0.85;
  filter: drop-shadow(0 0 5px rgba(255, 190, 90, 0.4));
  animation: leafFall linear infinite;
}
@keyframes leafFall {
  0%   { transform: translate(0, -10%) rotate(0deg) scale(var(--sz, 1)); opacity: 0; }
  10%  { opacity: 0.9; }
  100% { transform: translate(var(--drift, 40px), 720px) rotate(560deg) scale(var(--sz, 1)); opacity: 0.1; }
}

/* 顶部章节标识 */
.walk-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  padding: 1.3rem 1.4rem 2.6rem; text-align: center; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 6, 2, 0.55), transparent);
}
.walk-header .chapter-title {
  font-size: 1.55rem; margin: 0.25rem 0 0.2rem;
  background: linear-gradient(120deg, #fff, #ffe6b0 55%, #fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.walk-header .poem-line.small {
  color: rgba(255, 226, 172, 0.82); font-size: 0.82rem; letter-spacing: 3px; margin: 0;
}

/* 沿途记忆字幕 */
.walk-caption {
  position: absolute; left: 50%; top: 24%; z-index: 6;
  transform: translate(-50%, 18px) scale(0.96); width: min(88%, 760px); text-align: center;
  font-family: var(--font-cn-hand), var(--font-cn-serif);
  font-size: clamp(1.26rem, 2.25vw, 1.56rem);
  font-weight: 600;
  line-height: 1.78;
  letter-spacing: 3px;
  color: #ffd58f;
  pointer-events: none; opacity: 0;
  padding: 0.5rem 1.25rem;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255, 214, 132, 0.16), rgba(35, 22, 8, 0.18) 42%, transparent 76%);
  text-shadow:
    0 1px 2px rgba(25, 12, 2, 0.95),
    0 0 16px rgba(255, 173, 74, 0.55),
    0 0 34px rgba(255, 214, 132, 0.28);
  transition: opacity 0.42s ease-out, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.walk-caption.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* 起步引导遮罩 */
.walk-prelude {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 1.5rem; padding: 2rem;
  background: radial-gradient(circle at 50% 42%, rgba(10, 6, 2, 0.34), rgba(7, 4, 2, 0.8));
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.walk-prose {
  font-family: var(--font-cn-serif); font-size: 1rem; line-height: 2.1; letter-spacing: 1px;
  text-align: center; color: #f3ead8; max-width: 560px; min-height: 6.3em; margin: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

/* 行走 HUD */
.walk-hud {
  position: absolute; left: 50%; bottom: 5.25rem; transform: translateX(-50%);
  width: min(80%, 520px); z-index: 8; text-align: center;
}
.walk-hold-tip {
  font-family: var(--font-cn-serif); font-size: 0.96rem; letter-spacing: 3px; margin: 0 0 0.65rem;
  color: rgba(255, 226, 172, 0.9); text-shadow: 0 0 14px rgba(255, 190, 90, 0.5);
  animation: holdPulse 1.8s ease-in-out infinite;
}
.walk-hold-tip.dim { animation: none; opacity: 0.45; }
@keyframes holdPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.walk-progress-track {
  height: 5px; border-radius: 50px; overflow: hidden;
  background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
}
.walk-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #ffcf6e, #ff9a5a, #ffe6b0);
  box-shadow: 0 0 14px rgba(255, 180, 90, 0.8); transition: width 0.12s linear;
}

/* 终点：真实照片绽放 */
.walk-photo-reveal {
  position: absolute; inset: 0; z-index: 12;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.2rem;
  padding: 1.5rem; animation: fadeIn 0.8s ease;
  background: radial-gradient(circle at 50% 45%, rgba(22, 13, 4, 0.42), rgba(5, 3, 2, 0.88));
}
.photo-frame {
  position: relative; padding: 10px 10px 18px;
  background: linear-gradient(180deg, #fbf3e4, #efe2cc); border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 200, 110, 0.25);
  transform: rotate(-2deg) scale(0.7); opacity: 0;
  animation: photoBloom 1.1s cubic-bezier(0.19, 1, 0.22, 1) 0.15s forwards;
}
@keyframes photoBloom { to { transform: rotate(-2deg) scale(1); opacity: 1; } }
.photo-frame img {
  display: block; width: min(46vw, 240px); height: auto; border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.photo-cap {
  font-family: var(--font-cn-hand), var(--font-cn-serif); font-size: 1.25rem; line-height: 1.7;
  text-align: center; color: #ffe9c8; margin: 0; opacity: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
  animation: fadeIn 1s ease 1s forwards;
}

/* 南京收尾：照片 + 信里的话逐行落下（融进画面，非居中卡片） */
.walk-photo-reveal { overflow-y: auto; }
.reveal-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
  max-width: 640px; width: 100%; margin: auto; text-align: center;
}
.reveal-inner .photo-frame img { width: min(40vw, 188px); }
.reveal-words { display: flex; flex-direction: column; }
.reveal-line {
  font-family: var(--font-cn-serif); font-size: 0.98rem; line-height: 1.95;
  color: #f1e6d2; margin: 0.12rem 0; opacity: 0; transform: translateY(12px);
  animation: revealLineIn 0.9s ease forwards;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
.reveal-line.strong {
  font-family: var(--font-cn-hand), var(--font-cn-serif);
  font-size: 1.3rem; color: #ffe6b0; margin-top: 0.55rem; letter-spacing: 1px;
}
@keyframes revealLineIn { to { opacity: 1; transform: translateY(0); } }
.reveal-actions {
  display: flex; gap: 1.8rem; margin-top: 0.9rem; opacity: 0;
  animation: fadeIn 0.9s ease forwards;
}
.walk-link {
  background: none; border: none; cursor: pointer; position: relative;
  font-family: var(--font-cn-serif); font-size: 0.98rem; letter-spacing: 2px;
  color: #ffd9a0; padding: 0.4rem 0.5rem; transition: color 0.3s ease, transform 0.3s ease;
}
.walk-link.ghost { color: rgba(255, 235, 200, 0.55); }
.walk-link::after {
  content: ''; position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.05rem; height: 1px;
  background: currentColor; opacity: 0.55; transform: scaleX(0); transform-origin: center;
  transition: transform 0.3s ease;
}
.walk-link:hover { color: #fff; transform: translateY(-1px); }
.walk-link:hover::after { transform: scaleX(1); }

/* =========================================================
   第二章 · 扬州 · 揭早茶（满屏沉浸 · 无外框）
   ========================================================= */
.chapter-garden { padding: 0; }
.tea-scene {
  position: absolute; inset: 0; overflow: hidden; user-select: none;
  background:
    radial-gradient(120% 64% at 50% -6%, rgba(255, 238, 200, 0.45), transparent 58%),
    linear-gradient(180deg, #3a2c18 0%, #271c10 46%, #130d07 100%);
}

/* 花窗 + 真实瘦西湖荷塘塔影 */
.tea-window {
  position: absolute; left: 50%; top: 13%; transform: translateX(-50%);
  width: min(74vw, 680px); height: 33%; z-index: 2; overflow: hidden;
  border-radius: 48% 48% 10px 10px / 36% 36% 10px 10px;
  box-shadow: 0 0 0 7px rgba(58, 38, 18, 0.85), 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 50px rgba(0, 0, 0, 0.4);
}
.tea-window-view {
  position: absolute; inset: -4%;
  background: url('assets/yangzhou_view.jpg') center 40% / cover;
  filter: blur(1.5px) brightness(0.82) saturate(1.1);
}
.tea-window-light {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; transition: opacity 1s ease;
  background: radial-gradient(70% 60% at 50% -6%, rgba(255, 242, 205, 0.6), transparent 70%);
}
.tea-window-lattice {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(20% - 4px), rgba(46, 30, 16, 0.9) calc(20% - 4px) 20%),
    repeating-linear-gradient(0deg, transparent 0 calc(33.333% - 4px), rgba(46, 30, 16, 0.9) calc(33.333% - 4px) 33.333%);
}
.tea-scene.dawn .tea-window-light { opacity: 1.7; }
.tea-scene.dawn::after {
  content: ''; position: absolute; inset: 0; z-index: 7; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 8%, rgba(255, 238, 200, 0.45), transparent 62%);
  animation: fadeIn 1.2s ease;
}

/* 早茶桌 */
.tea-table {
  position: absolute; left: 0; right: 0; bottom: 0; height: 48%; z-index: 4;
  background: linear-gradient(180deg, rgba(90, 60, 30, 0) 0%, rgba(78, 50, 24, 0.9) 20%, rgba(46, 29, 15, 0.98) 100%);
  box-shadow: inset 0 28px 60px rgba(0, 0, 0, 0.45);
}
.tea-table::before {
  content: ''; position: absolute; left: 0; right: 0; top: 16%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 210, 150, 0.28), transparent);
}

/* 蒸笼 */
.steamer { position: absolute; width: 132px; height: 96px; cursor: grab; z-index: 5; }
.steamer:active { cursor: grabbing; }
.steamer-body {
  position: absolute; left: 0; bottom: 0; width: 132px; height: 56px; border-radius: 8px 8px 14px 14px; overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(0, 0, 0, 0.4), transparent 60%),
    repeating-linear-gradient(0deg, #c79a5e 0 7px, #b1834b 7px 9px);
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.5), 0 12px 26px rgba(0, 0, 0, 0.5);
}
.steamer-body::before {
  content: ''; position: absolute; left: 6%; right: 6%; top: -4px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle, #2a1a0c, #16100a);
}
.steamer.opened .steamer-body::after {
  content: ''; position: absolute; left: 10%; right: 10%; top: -3px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 140, 0.6), transparent 72%);
}
.steamer-lid {
  position: absolute; left: -5px; top: 4px; width: 142px; height: 44px;
  border-radius: 50% 50% 14px 14px / 78% 78% 14px 14px; z-index: 2;
  background:
    radial-gradient(60% 100% at 50% 18%, rgba(255, 236, 190, 0.5), transparent 58%),
    repeating-linear-gradient(0deg, #d7ac6c 0 6px, #c1925a 6px 8px);
  box-shadow: inset 0 2px 0 rgba(255, 232, 184, 0.3), 0 8px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.6s ease;
}
.steamer-lid::after {
  content: ''; position: absolute; left: 50%; top: -8px; width: 26px; height: 14px; transform: translateX(-50%);
  border-radius: 50%; background: #b1834b; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}
.steamer:not(.opened):hover .steamer-lid { transform: translateY(-6px); }
.steamer.opened .steamer-lid { transform: translateY(-160px) rotate(-15deg); opacity: 0; }

/* 药膳鸡盅 */
.steamer[data-id="chicken"] { width: 132px; height: 100px; }
.steamer[data-id="chicken"] .steamer-body {
  height: 62px; border-radius: 46% 46% 42% 42% / 26% 26% 60% 60%;
  background: radial-gradient(120% 90% at 50% 24%, #6f4d2c, #3a2614);
}
.steamer[data-id="chicken"] .steamer-lid {
  width: 120px; left: 6px; height: 46px; border-radius: 52% 52% 30% 30%;
  background: radial-gradient(60% 100% at 50% 22%, rgba(255, 236, 190, 0.5), #c9a066 58%, #a87f4a);
}
.steamer[data-id="chicken"].opened .steamer-body { box-shadow: 0 0 44px rgba(255, 182, 80, 0.6), inset 0 -6px 14px rgba(0, 0, 0, 0.4); }
.steamer[data-id="chicken"].locked { filter: grayscale(0.5) brightness(0.62); }
.steamer[data-id="chicken"].unlocked { animation: chickenGlow 2.2s ease-in-out infinite; }
@keyframes chickenGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 180, 80, 0.4)); }
  50%      { filter: drop-shadow(0 0 26px rgba(255, 196, 96, 0.85)); }
}
.chicken-tag {
  position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--font-cn-serif); font-size: 0.74rem; letter-spacing: 3px;
  color: rgba(255, 224, 170, 0.92); text-shadow: 0 0 12px rgba(255, 180, 80, 0.6);
}
.steamer[data-id="chicken"].opened .chicken-tag { opacity: 0; transition: opacity 0.4s; }

/* 热气 */
.tea-puff {
  position: fixed; width: 34px; height: 34px; border-radius: 50%; pointer-events: none; z-index: 30;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
  filter: blur(6px); animation: teaPuffRise ease-out forwards;
}
.tea-puff.warm { background: radial-gradient(circle, rgba(255, 220, 150, 0.62), transparent 70%); }
@keyframes teaPuffRise {
  0%   { transform: translate(0, 0) scale(0.5); opacity: 0; }
  20%  { opacity: 0.7; }
  100% { transform: translate(var(--dx, 0), -170px) scale(1.9); opacity: 0; }
}

/* 顶部章节标识 */
.tea-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 8; padding: 1.2rem 1.4rem 1rem;
  text-align: center; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 7, 3, 0.6), transparent);
}
.tea-header .chapter-title {
  font-size: 1.5rem; margin: 0.22rem 0;
  background: linear-gradient(120deg, #fff, #ffe6b0 55%, #fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tea-header .poem-line.small { color: rgba(255, 228, 182, 0.82); font-size: 0.8rem; letter-spacing: 2px; margin: 0; }

/* 记忆字幕 */
.tea-caption {
  position: absolute; left: 50%; top: 47%; z-index: 9; transform: translate(-50%, 14px) scale(0.96);
  width: min(88%, 640px); text-align: center; font-family: var(--font-cn-serif);
  font-size: 1.05rem; line-height: 1.9; letter-spacing: 1px; color: #fff; pointer-events: none; opacity: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 200, 120, 0.4);
  transition: opacity 0.42s ease-out, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.tea-caption.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* 起步引导 */
.tea-prelude {
  position: absolute; inset: 0; z-index: 11; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 1.5rem; padding: 2rem;
  background: radial-gradient(circle at 50% 44%, rgba(8, 8, 10, 0.7), rgba(4, 4, 6, 0.93));
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.tea-prose {
  font-family: var(--font-cn-serif); font-size: 1.12rem; line-height: 2.25; letter-spacing: 1px;
  text-align: center; color: #fbf5e8; max-width: 600px; min-height: 8em; margin: 0;
  text-shadow: 0 1px 2px #000, 0 2px 18px rgba(0, 0, 0, 0.9);
}

/* HUD */
.tea-hud { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 9; text-align: center; }
.chapter-garden .tea-hud {
  bottom: 5.25rem;
}
.tea-hud-tip {
  font-family: var(--font-cn-serif); font-size: 0.92rem; letter-spacing: 3px; margin: 0 0 0.4rem;
  color: #ffe9c4; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 16px rgba(255, 190, 90, 0.55);
  animation: holdPulse 1.9s ease-in-out infinite;
}
.tea-count { font-family: var(--font-sans); font-size: 0.82rem; color: rgba(255, 224, 170, 0.7); letter-spacing: 1px; }
.tea-count b { color: var(--gold); font-size: 1rem; }

/* 收尾 */
.tea-reveal {
  position: absolute; inset: 0; z-index: 12; display: flex; justify-content: center; align-items: center;
  padding: 1.5rem; overflow-y: auto; animation: fadeIn 0.9s ease;
  background: radial-gradient(circle at 50% 45%, rgba(30, 20, 8, 0.5), rgba(8, 5, 2, 0.9));
}

@media (max-width: 768px) {
  .tea-window { width: 88vw; height: 27%; top: 12%; }
  .tea-header .chapter-title { font-size: 1.3rem; }
  .tea-caption { font-size: 0.95rem; top: 44%; }
}

/* =========================================================
   第二章 · 扬州 · 瘦西湖烟雨（满屏 · 拂开烟雨寻你）
   ========================================================= */
.lake-scene {
  position: absolute; inset: 0; overflow: hidden; user-select: none;
  background: linear-gradient(180deg, #1a2a22 0%, #14201a 50%, #0a120e 100%);
}
.lake-base {
  position: absolute; inset: 0; transform: scale(1.08);
  background: url('assets/yangzhou_view.jpg') center 42% / cover;
  filter: blur(3px) brightness(0.5) saturate(1.05);
  transition: filter 1.6s ease, transform 1.6s ease;
}
.lake-base::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 30, 24, 0.2), rgba(8, 14, 10, 0.6));
}
.lake-scene.clear .lake-base { filter: blur(1px) brightness(0.82) saturate(1.2); transform: scale(1.02); }
.lake-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.6s ease;
  background: radial-gradient(80% 60% at 50% 6%, rgba(255, 238, 200, 0.5), transparent 65%);
}
.lake-scene.clear .lake-glow { opacity: 1; }

/* 柳 */
.lake-willows { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lake-willows span {
  position: absolute; top: -2%; width: 2px; transform-origin: top center;
  background: linear-gradient(180deg, rgba(150, 200, 120, 0) 0%, rgba(150, 200, 120, 0.55) 30%, rgba(110, 170, 90, 0.18) 100%);
  animation: willowSway 5s ease-in-out infinite;
}
.lake-willows span:nth-child(1) { left: 8%;  height: 40%; animation-delay: 0.2s; }
.lake-willows span:nth-child(2) { left: 18%; height: 30%; animation-delay: 1.0s; }
.lake-willows span:nth-child(3) { left: 84%; height: 38%; animation-delay: 0.6s; }
.lake-willows span:nth-child(4) { left: 92%; height: 28%; animation-delay: 1.4s; }
.lake-willows span:nth-child(5) { left: 50%; height: 20%; animation-delay: 0.9s; }

/* 藏在烟雨里的真实照片 */
.lake-memories { position: absolute; inset: 0; z-index: 2; }
.lake-photo { position: absolute; width: 168px; transform: translate(-50%, -50%); }
.lp-frame {
  padding: 8px 8px 14px; background: linear-gradient(180deg, #fbf3e4, #efe2cc); border-radius: 3px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); transform: rotate(-2deg) scale(0.82); opacity: 0;
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}
.lp-frame img { display: block; width: 100%; height: auto; border-radius: 2px; }
.lp-cap {
  position: absolute; left: 50%; top: 106%; transform: translateX(-50%); width: 256px; text-align: center;
  font-family: var(--font-cn-serif); font-size: 0.9rem; line-height: 1.85; color: #fff; opacity: 0;
  padding: 9px 15px; border-radius: 13px; background: rgba(8, 12, 10, 0.66);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  text-shadow: 0 1px 2px #000, 0 2px 14px rgba(0, 0, 0, 0.9);
  transition: opacity 0.7s ease 0.25s; pointer-events: none;
}
.lake-photo.found { z-index: 6; }
.lake-photo.found .lp-frame { opacity: 1; transform: rotate(-2deg) scale(1); animation: lakePhotoPulse 2.6s ease-in-out 0.9s infinite; }
.lake-photo.found .lp-cap { opacity: 1; }
@keyframes lakePhotoPulse {
  0%, 100% { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 rgba(255, 220, 150, 0); }
  50%      { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 28px rgba(255, 220, 150, 0.45); }
}

/* 雾里的微光指引 */
.lake-hints { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.lake-hint {
  position: absolute; width: 16px; height: 16px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 210, 0.95), rgba(255, 210, 150, 0.35) 50%, transparent 72%);
  box-shadow: 0 0 18px 6px rgba(255, 224, 160, 0.5); animation: hintPulse 1.8s ease-in-out infinite;
  transition: opacity 0.6s ease;
}
.lake-hint.off { opacity: 0; }
@keyframes hintPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
  50%      { transform: translate(-50%, -50%) scale(1.35); opacity: 1; }
}

/* 烟雨层（canvas） */
.lake-fog {
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%;
  cursor: crosshair; touch-action: none; transition: opacity 1.4s ease;
}
.lake-fog.lifting { opacity: 0; pointer-events: none; }

/* 涟漪 */
.lake-rip {
  position: fixed; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  border: 1.5px solid rgba(220, 240, 225, 0.6); pointer-events: none; z-index: 31;
  animation: lakeRip 1.1s ease-out forwards;
}
@keyframes lakeRip {
  0%   { transform: scale(0.4); opacity: 0.7; }
  100% { transform: scale(3.4); opacity: 0; }
}

.reveal-inner.wide { max-width: 680px; }
/* 信纸升起时，淡出各照片的小字幕，让正文清爽（照片仍在，环绕成记忆） */
.lake-scene.lettering .lp-cap { opacity: 0; transition: opacity 0.6s ease; }
#lakeReveal { background: radial-gradient(circle at 50% 45%, rgba(22, 15, 6, 0.72), rgba(6, 4, 2, 0.92)); }

/* 「轻触读信」提示 */
.lake-continue {
  position: absolute; left: 50%; bottom: 5.4rem; transform: translateX(-50%); z-index: 13;
  font-family: var(--font-cn-serif); font-size: 0.94rem; letter-spacing: 3px; white-space: nowrap;
  color: #ffecc4; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 16px rgba(255, 200, 120, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.8s ease;
}
.lake-continue.show { opacity: 1; animation: holdPulse 2s ease-in-out infinite; }

@media (max-width: 768px) {
  .lake-photo { width: 132px; }
  .lp-cap { width: 190px; font-size: 0.76rem; }
  .chapter-garden .tea-hud {
    bottom: 4.85rem;
    width: min(88%, 460px);
  }
  .chapter-garden .tea-hud-tip {
    font-size: 0.78rem;
    letter-spacing: 2px;
  }
  .lake-continue {
    bottom: 4.9rem;
    max-width: 88vw;
    white-space: normal;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.7;
  }
}

/* =========================================================
   第三章 · 镇江 · 三山夜渡（满屏 · 摇橹渡江 · 无外框）
   ========================================================= */
.chapter-bridge { padding: 0; }
.zj-stage {
  position: absolute; inset: 0; overflow: hidden; user-select: none;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(80, 100, 180, 0.35), transparent 60%),
    radial-gradient(100% 80% at 50% 120%, rgba(20, 30, 70, 0.5), transparent 60%),
    linear-gradient(180deg, #07091c 0%, #0c1230 35%, #0a1428 60%, #03060f 100%);
}

/* 星空 */
.zj-sky {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1px 1px at 6%  18%, #fff, transparent),
    radial-gradient(1px 1px at 22% 12%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1.6px 1.6px at 38% 6%,  #fff, transparent),
    radial-gradient(1px 1px at 52% 14%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 64% 22%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.4px 1.4px at 78% 8%, #fff, transparent),
    radial-gradient(1px 1px at 90% 26%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 12% 32%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 30% 28%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.6px 1.6px at 86% 14%, #fff, transparent);
}
.zj-stars {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1px 1px at 16%  6%, rgba(255,235,180,0.85), transparent),
    radial-gradient(1px 1px at 70% 30%, rgba(180,210,255,0.85), transparent),
    radial-gradient(1px 1px at 44% 18%, rgba(255,255,255,0.75), transparent);
  animation: zjStarTwinkle 3.4s ease-in-out infinite alternate;
}
@keyframes zjStarTwinkle {
  0%   { opacity: 0.55; }
  100% { opacity: 1; }
}

/* 月亮 */
.zj-moon {
  position: absolute; left: 70%; top: 11%; width: 92px; height: 92px;
  border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 38% 36%, #fff 0%, #f4f6ff 38%, #c5d4ff 72%, transparent);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.25),
    0 0 60px rgba(220,230,255,0.65),
    0 0 130px rgba(170,195,255,0.4);
}
.zj-moon-halo {
  position: absolute; left: 70%; top: 11%; width: 92px; height: 92px;
  transform: translate(-30%, -30%); z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,230,255,0.18), transparent 65%);
  filter: blur(20px);
  animation: zjHalo 5s ease-in-out infinite;
}
@keyframes zjHalo {
  0%, 100% { opacity: 0.6; transform: translate(-30%, -30%) scale(1); }
  50%      { opacity: 1; transform: translate(-30%, -30%) scale(1.2); }
}

/* 远处三山 */
.zj-mountains {
  position: absolute; left: 50%; bottom: 46%; width: 180%; height: 28%; z-index: 3;
  transform: translateX(-50%);
}
.zj-mt {
  position: absolute; bottom: 0;
  background: linear-gradient(180deg, #1c2748 0%, #0d152e 70%, #050a16 100%);
  filter: drop-shadow(0 -2px 8px rgba(120,150,220,0.18));
}
.zj-mt-1 { left: 2%;  width: 38%; height: 64%; clip-path: polygon(0 100%, 28% 35%, 52% 14%, 78% 38%, 100% 100%); opacity: 0.88; }
.zj-mt-2 { left: 30%; width: 46%; height: 100%; clip-path: polygon(0 100%, 18% 60%, 38% 22%, 50% 4%, 64% 24%, 86% 56%, 100% 100%); }
.zj-mt-3 { left: 60%; width: 40%; height: 70%; clip-path: polygon(0 100%, 32% 36%, 56% 18%, 80% 42%, 100% 100%); opacity: 0.82; }
.zj-mt-glow {
  position: absolute; left: 52%; bottom: 78%; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle, #ffe0a0, #ff9e3d);
  box-shadow: 0 0 18px 6px rgba(255,200,110,0.75), 0 0 40px 12px rgba(255,180,90,0.35);
  animation: zjGlow 2.4s ease-in-out infinite;
}
@keyframes zjGlow { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

/* 江面 */
.zj-river {
  position: absolute; left: 0; right: 0; bottom: 0; height: 50%; z-index: 4; overflow: hidden;
  background:
    linear-gradient(180deg, #0c1430 0%, #08102a 50%, #03070f 100%);
}
.zj-river::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 14px, rgba(130,160,225,0.06) 14px 16px);
}
.zj-moon-trail {
  position: absolute; left: 70%; top: 0; width: 78px; height: 80%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(220,230,255,0.55) 0%, rgba(170,195,255,0.18) 40%, transparent 80%);
  filter: blur(8px);
  animation: zjMoonShimmer 4.5s ease-in-out infinite;
}
@keyframes zjMoonShimmer {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) scaleX(1); }
  50%      { opacity: 0.85; transform: translateX(-50%) scaleX(1.4); }
}
.zj-ripple {
  position: absolute; left: 50%; bottom: 0;
  width: 200%; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(180, 200, 255, 0.18);
  transform: translateX(-50%);
  pointer-events: none;
  animation: zjRipple 7s ease-in-out infinite;
}
.zj-ripple-1 { bottom: 22%; animation-delay: 0s;   opacity: 0.5; }
.zj-ripple-2 { bottom: 12%; animation-delay: 2.3s; opacity: 0.4; }
.zj-ripple-3 { bottom: 4%;  animation-delay: 4.6s; opacity: 0.3; }
@keyframes zjRipple {
  0%   { transform: translateX(-50%) scaleX(0.85); opacity: 0; }
  20%  { opacity: 0.5; }
  100% { transform: translateX(-50%) scaleX(1.5);  opacity: 0; }
}

/* 江雾（动态飘动） */
.zj-mist {
  position: absolute; left: -20%; right: -20%; bottom: 38%; height: 22%; z-index: 5; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 100% at 30% 50%, rgba(200,215,245,0.18), transparent 70%),
    radial-gradient(ellipse 50% 100% at 70% 60%, rgba(180,200,235,0.16), transparent 70%);
  animation: zjMistDrift 16s ease-in-out infinite alternate;
  filter: blur(6px);
}
@keyframes zjMistDrift {
  0%   { transform: translateX(-4%); opacity: 0.85; }
  100% { transform: translateX(4%);  opacity: 1; }
}

/* 江上飘灯（5 盏纸灯笼，动画位移）*/
.zj-lantern {
  position: absolute; width: 22px; height: 28px; z-index: 6;
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 38%, #fff7c4 0%, #ffd87a 28%, #ff9e3d 70%, #c54f1c 100%);
  box-shadow:
    0 0 12px 3px rgba(255, 180, 90, 0.55),
    0 0 32px 8px rgba(255, 150, 60, 0.25);
  animation: zjLanternDrift 14s ease-in-out infinite;
}
.zj-lantern::after {
  content: ''; position: absolute; left: 50%; top: 100%;
  width: 5px; height: 12px;
  background: linear-gradient(180deg, #c54f1c, transparent);
  transform: translateX(-50%);
}
.zj-lantern-a { left: 14%; bottom: 28%; animation-delay: 0s;    transform: scale(0.85); }
.zj-lantern-b { left: 30%; bottom: 18%; animation-delay: -3s;   transform: scale(1.1); }
.zj-lantern-c { left: 58%; bottom: 32%; animation-delay: -6s;   transform: scale(0.7); opacity: 0.85; }
.zj-lantern-d { left: 78%; bottom: 22%; animation-delay: -9s;   transform: scale(1); }
.zj-lantern-e { left: 88%; bottom: 36%; animation-delay: -12s;  transform: scale(0.65); opacity: 0.7; }
@keyframes zjLanternDrift {
  0%, 100% { transform: translate(0, 0)        scale(var(--s, 1)); }
  50%      { transform: translate(-12px, -6px) scale(var(--s, 1)); }
}

/* 远处的小船剪影 */
.zj-far-boat {
  position: absolute; left: 22%; bottom: 30%; width: 70px; height: 18px; z-index: 6;
  background: linear-gradient(180deg, transparent 30%, #0a0e1a 32%, #050810 100%);
  clip-path: polygon(8% 100%, 0 60%, 100% 60%, 92% 100%);
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.6));
  opacity: 0.85;
  animation: zjFarBoatDrift 22s ease-in-out infinite;
}
.zj-far-boat::before {
  content: ''; position: absolute; left: 48%; bottom: 100%;
  width: 2px; height: 22px;
  background: #0a0e1a; transform: translateX(-50%);
}
.zj-far-boat::after {
  content: ''; position: absolute; left: 50%; bottom: 100%;
  width: 12px; height: 18px; transform: translateX(-50%) translateY(-4px);
  background: linear-gradient(135deg, rgba(220,230,255,0.5), rgba(140,170,220,0.25));
  clip-path: polygon(0 100%, 100% 100%, 100% 8%, 0 38%);
}
@keyframes zjFarBoatDrift {
  0%, 100% { transform: translate(0,0); }
  50%      { transform: translate(80px, -3px); }
}

/* 顶部章节标识 */
.zj-top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 12;
  background: linear-gradient(180deg, rgba(0,0,0,0.78), rgba(0,0,0,0.45) 70%, transparent);
  padding: 0.6rem 1rem 1.6rem;
  text-align: center; pointer-events: none;
}
.zj-top-tag {
  display: inline-block;
  font-family: var(--font-cn-hand), serif;
  background: linear-gradient(135deg, #2c5a9c 0%, #1a3a6e 100%);
  color: #fff8e3;
  padding: 0.32em 1.1em; letter-spacing: 6px; font-size: 1rem;
  border: 1.5px solid #cfe0ff;
  box-shadow: 0 4px 18px rgba(60, 100, 180, 0.6), 0 0 0 1px rgba(255,255,255,0.12) inset;
  font-weight: 600;
}
.zj-top-title {
  font-family: var(--font-cn-hand), serif;
  font-size: 2rem; letter-spacing: 14px;
  margin: 0.4rem 0 0.25rem;
  color: #f4f6ff;
  text-shadow:
    0 0 28px rgba(180, 210, 255, 0.6),
    0 2px 18px rgba(0, 0, 0, 1),
    0 0 2px #000;
  font-weight: 700;
}
.zj-top-poem {
  margin: 0; font-size: 0.95rem; letter-spacing: 6px; color: #d6e0ff;
  text-shadow: 0 2px 8px rgba(0,0,0,1);
  font-family: var(--font-cn-serif), serif;
}

/* 当前帧标题 */
.zj-frame-title {
  position: absolute; left: 50%; top: 8.05rem;
  transform: translateX(-50%);
  z-index: 11;
  display: flex; align-items: center; gap: 0.9rem;
  pointer-events: none;
  opacity: 0; transition: opacity 0.7s ease;
}
.zj-frame-title.show { opacity: 1; }
.zj-frame-no {
  display: inline-block;
  font-family: var(--font-cn-hand), serif;
  font-size: 1.6rem;
  color: #fff8e3;
  background: linear-gradient(135deg, #2c5a9c, #1a3a6e);
  padding: 0.05em 0.45em;
  border: 2px solid #cfe0ff;
  box-shadow: 0 6px 22px rgba(60, 100, 180, 0.6);
  line-height: 1.1;
}
.zj-frame-name {
  font-family: var(--font-cn-hand), serif;
  font-size: 1.55rem; letter-spacing: 8px;
  color: #f4f6ff;
  text-shadow: 0 0 18px rgba(180,210,255,0.5), 0 2px 12px rgba(0,0,0,1);
}

/* 照片浮灯舞台：5 帧轮显 */
.zj-photo-stage {
  position: absolute; inset: 0; z-index: 7; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.zj-photo {
  position: absolute;
  width: clamp(260px, 27vw, 420px);
  aspect-ratio: 3 / 4;
  opacity: 0;
  transform: translate(-30vw, 12vh) scale(0.45) rotate(-6deg);
  transition:
    opacity 1.4s cubic-bezier(0.19, 1, 0.22, 1),
    transform 1.6s cubic-bezier(0.19, 1, 0.22, 1),
    filter 1.4s ease;
  filter: blur(8px) brightness(0.5);
}
.zj-photo.active {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(0);
  filter: blur(0) brightness(1);
  animation: zjPhotoFloat 7s ease-in-out infinite 1.6s;
}
.zj-photo.leaving {
  opacity: 0;
  transform: translate(28vw, -6vh) scale(0.7) rotate(4deg);
  filter: blur(8px) brightness(0.6);
}
@keyframes zjPhotoFloat {
  0%, 100% { transform: translate(0, 0) scale(1)     rotate(0); }
  50%      { transform: translate(0, -8px) scale(1.005) rotate(0.4deg); }
}

.zj-photo-frame {
  position: relative; width: 100%; height: 100%;
  padding: 14px;
  background:
    linear-gradient(135deg, #ffd687 0%, #b88438 35%, #6e4815 65%, #b88438 100%);
  box-shadow:
    0 0 0 1px #1a0e06 inset,
    0 24px 80px rgba(0, 0, 0, 0.85),
    0 8px 36px rgba(255, 180, 100, 0.25),
    0 0 60px rgba(180, 210, 255, 0.18);
  border-radius: 4px;
}
.zj-photo-frame::before {
  content: ''; position: absolute; inset: 6px;
  background: #060914;
  z-index: 0;
  border-radius: 2px;
}
.zj-photo-frame img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1px;
}
.zj-photo-glow {
  position: absolute; inset: -10px; z-index: -1;
  background: radial-gradient(circle, rgba(255, 200, 130, 0.32), transparent 60%);
  filter: blur(20px);
  opacity: 0.8;
  animation: zjPhotoGlowPulse 4s ease-in-out infinite;
}
@keyframes zjPhotoGlowPulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.95; }
}

/* 第 5 帧 · 诗意大字 */
.zj-photo-poem .zj-poem-card {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(80% 60% at 50% 35%, rgba(180, 210, 255, 0.18), transparent 70%),
    linear-gradient(135deg, rgba(15, 24, 56, 0.85), rgba(8, 14, 32, 0.95));
  border: 1px solid rgba(207, 224, 255, 0.4);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.85),
    0 0 60px rgba(180, 210, 255, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  border-radius: 4px;
}
.zj-poem-bigline {
  font-family: var(--font-cn-hand), serif;
  font-size: 1.65rem; letter-spacing: 8px; line-height: 1.7;
  color: #f4f6ff; margin: 0.4rem 0;
  text-shadow:
    0 0 22px rgba(180, 210, 255, 0.7),
    0 2px 14px rgba(0,0,0,1);
}
.zj-poem-sigline {
  margin-top: 1.2rem;
  font-family: var(--font-cn-serif), serif;
  font-size: 0.9rem; letter-spacing: 4px;
  color: #d6e0ff;
  text-shadow: 0 1px 6px rgba(0,0,0,1);
}

/* 字幕 */
.zj-caption {
  position: absolute; left: 50%; bottom: 6.65rem;
  transform: translateX(-50%);
  width: min(82vw, 740px);
  z-index: 10;
  pointer-events: none; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0, 8, 20, 0.85) 30%, rgba(0, 5, 14, 0.95) 100%);
  padding: 0.72rem 1.05rem 0.9rem;
  border-radius: 6px;
}
.zj-cap-step {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.zj-cap-step.active {
  display: block;
  opacity: 1;
}
.zj-cap-line {
  font-family: var(--font-cn-serif), serif;
  font-size: 0.98rem; line-height: 1.78; letter-spacing: 1px;
  color: #e6edff; margin: 0.1rem 0;
  text-shadow: 0 1px 2px #000;
}
.zj-cap-line.strong {
  font-family: var(--font-cn-hand), serif;
  font-size: 1.12rem; color: #ffd9a0; letter-spacing: 2px;
  margin-top: 0.28rem;
  text-shadow: 0 0 14px rgba(180, 210, 255, 0.4), 0 1px 2px #000;
}

/* 底部 HUD */
.zj-hud {
  position: absolute; left: 50%; bottom: 3.4rem;
  transform: translateX(-50%);
  z-index: 11;
  display: flex; align-items: center; gap: 1.2rem;
  background: rgba(8, 12, 26, 0.82);
  padding: 0.55rem 1rem;
  border: 1px solid rgba(180, 210, 255, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.75);
}
.zj-btn-ctrl {
  font-family: var(--font-cn-hand), serif;
  letter-spacing: 4px; font-size: 0.95rem;
  background: transparent; color: #cfe0ff;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(180, 210, 255, 0.45);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  text-shadow: 0 1px 4px #000;
}
.zj-btn-ctrl:hover {
  background: rgba(180, 210, 255, 0.18);
  transform: translateY(-1px);
}
.zj-btn-ctrl.primary {
  background: linear-gradient(120deg, #2c5a9c 0%, #1a3a6e 100%);
  color: #fff8e3;
  border-color: #cfe0ff;
  box-shadow: 0 4px 14px rgba(60, 100, 180, 0.45);
  animation: zjNextHint 2.4s ease-in-out infinite;
}
.zj-btn-ctrl.primary:hover {
  background: linear-gradient(120deg, #3a6cb0 0%, #244a82 100%);
}
.zj-btn-ctrl.ending-ready {
  opacity: 1;
  pointer-events: auto;
  color: #fff8e3;
  border-color: rgba(255, 218, 160, 0.88);
  background: linear-gradient(120deg, #7b3d22 0%, #2d4f86 100%);
  box-shadow: 0 4px 18px rgba(255, 190, 120, 0.45), 0 0 22px rgba(120, 170, 255, 0.28);
}
.zj-btn-ctrl.ending-ready:hover {
  background: linear-gradient(120deg, #94502c 0%, #3865a5 100%);
}
.zj-btn-ctrl.disabled,
.zj-btn-ctrl[disabled] { opacity: 0.35; pointer-events: none; }
@keyframes zjNextHint {
  0%, 100% { box-shadow: 0 4px 14px rgba(60, 100, 180, 0.45); }
  50%      { box-shadow: 0 4px 22px rgba(180, 210, 255, 0.7); }
}
.zj-hud-mid {
  display: flex; flex-direction: column; align-items: center;
  min-width: 220px;
}
.zj-progress {
  width: 220px; height: 4px;
  background: rgba(180, 210, 255, 0.18);
  overflow: hidden; border-radius: 2px;
}
.zj-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #6c93d9, #cfe0ff 50%, #ffe6b0);
  transition: width 0.9s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 0 12px rgba(180, 210, 255, 0.7);
}
.zj-step-label {
  margin-top: 0.3rem;
  font-size: 0.82rem; color: #cfe0ff; letter-spacing: 1.5px;
}
.zj-step-label b { color: #ffd9a0; font-weight: 700; font-size: 1rem; }

/* 影院黑边 */
.zj-stage::before,
.zj-stage::after {
  content: ''; position: absolute; left: 0; right: 0; height: 0;
  background: #000; z-index: 9; pointer-events: none;
  transition: height 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.zj-stage::before { top: 0; }
.zj-stage::after  { bottom: 0; }
.zj-stage.cinematic::before,
.zj-stage.cinematic::after { height: 4vh; }

/* 收尾 */
.chapter-bridge .tea-reveal {
  z-index: 14;
  background: radial-gradient(circle at 50% 45%, rgba(15, 24, 56, 0.6), rgba(3, 6, 14, 0.95));
  opacity: 1;
  animation: zjRevealIn 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
@keyframes zjRevealIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .zj-top-title { font-size: 1.5rem; letter-spacing: 8px; }
  .zj-top-poem { font-size: 0.82rem; letter-spacing: 3px; }
  .zj-frame-title { top: 7.05rem; }
  .zj-frame-name { font-size: 1.25rem; letter-spacing: 5px; }
  .zj-cap-line { font-size: 0.92rem; }
  .zj-cap-line.strong { font-size: 1.02rem; }
  .zj-progress { width: 140px; }
  .zj-btn-ctrl { font-size: 0.84rem; padding: 0.38rem 0.7rem; letter-spacing: 2px; }
  .zj-caption { width: min(86vw, 680px); bottom: 5.25rem; padding: 0.68rem 0.85rem 0.82rem; }
  .zj-poem-bigline { font-size: 1.2rem; letter-spacing: 5px; }
  .zj-photo { width: clamp(220px, 50vw, 330px); }
}

@media (max-width: 768px) {
  .walk-stage { height: min(82vh, 640px); }
  .walk-header .chapter-title { font-size: 1.35rem; }
  .walk-caption {
    top: 21%;
    width: min(92%, 560px);
    font-size: 1.14rem;
    line-height: 1.72;
    letter-spacing: 2px;
    padding: 0.48rem 0.85rem;
    border-radius: 18px;
  }
  .walk-hud {
    bottom: 4.85rem;
    width: min(86%, 460px);
  }
  .walk-hold-tip {
    font-size: 0.82rem;
    letter-spacing: 2px;
  }
  .photo-frame img { width: 62vw; }
}

/* =========================================================
   第四章 · 苏州 · 姑苏长卷（three.js · 横移长卷电影）
   重写：进入即开始播放，照片永居屏幕中央，全部 UI 不挡视线
   ========================================================= */
.scene-suzhou,
.chapter-gear { padding: 0; }

.suzhou-stage {
  position: absolute; inset: 0; overflow: hidden; user-select: none;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 220, 170, 0.32), transparent 60%),
    radial-gradient(100% 80% at 50% 120%, rgba(140, 95, 70, 0.30), transparent 60%),
    linear-gradient(180deg, #2a1f15 0%, #1c1610 50%, #0f0c08 100%);
}

.su-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  display: block; outline: none;
}

/* 隐藏的兼容启动按钮，给老 JS 入口用 */
.su-hidden-start {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

/* 顶部章节标识：极简、纯色、不和场景重叠 */
.su-top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 12;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.45) 70%, transparent);
  padding: 0.6rem 1rem 1.6rem;
  text-align: center;
  pointer-events: none;
}
.su-top-tag {
  display: inline-block;
  font-family: var(--font-cn-hand), serif;
  background: #c93e3a; color: #fff8e3;
  padding: 0.32em 1.1em; letter-spacing: 6px; font-size: 1rem;
  border: 1.5px solid #ffd9a0;
  box-shadow: 0 4px 18px rgba(201, 62, 58, 0.7), 0 0 0 1px rgba(255,255,255,0.12) inset;
  font-weight: 600;
}
.su-top-title {
  font-family: var(--font-cn-hand), serif;
  font-size: 2rem; letter-spacing: 14px;
  margin: 0.4rem 0 0.25rem;
  color: #fff5dc;
  text-shadow:
    0 0 28px rgba(255, 200, 130, 0.55),
    0 2px 18px rgba(0, 0, 0, 1),
    0 0 2px #000;
  font-weight: 700;
}
.su-top-poem {
  margin: 0; font-size: 0.95rem; letter-spacing: 6px; color: #ffeac4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 1);
  font-family: var(--font-cn-serif), serif;
}

/* 当前帧标题（"壹·推门入苏"），紧贴顶部章节标识下方 */
.su-frame-title {
  position: absolute; left: 50%; top: 7.95rem;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; align-items: center; gap: 0.9rem;
  pointer-events: none;
  opacity: 0; transition: opacity 0.7s ease;
}
.su-frame-title.show { opacity: 1; }
.su-frame-no {
  display: inline-block;
  font-family: var(--font-cn-hand), serif;
  font-size: 1.6rem; letter-spacing: 0;
  color: #fff8e3; background: #c93e3a;
  padding: 0.05em 0.45em;
  border: 2px solid #ffd9a0;
  box-shadow: 0 6px 22px rgba(201, 62, 58, 0.55);
  line-height: 1.1;
}
.su-frame-name {
  font-family: var(--font-cn-hand), serif;
  font-size: 1.55rem; letter-spacing: 8px;
  color: #fff5dc;
  text-shadow: 0 0 18px rgba(255, 200, 130, 0.5), 0 2px 12px rgba(0, 0, 0, 1);
}

/* 字幕（下方专门一条带，醒目，不与照片重叠）*/
.su-caption {
  position: absolute; left: 50%; bottom: 6.65rem;
  transform: translateX(-50%);
  width: min(82vw, 740px);
  z-index: 10;
  pointer-events: none;
  text-align: center;
  /* 用一条暗色横向带，让字幕和照片清楚分离 */
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.95) 100%);
  padding: 0.72rem 1.05rem 0.9rem;
  border-radius: 6px;
}
.su-cap-step {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.su-cap-step.active {
  display: block;
  opacity: 1;
}
.su-cap-line {
  font-family: var(--font-cn-serif), serif;
  font-size: 0.98rem; line-height: 1.78; letter-spacing: 1px;
  color: #f4e6cc; margin: 0.1rem 0;
  text-shadow: 0 1px 2px #000;
}
.su-cap-line.strong {
  font-family: var(--font-cn-hand), serif;
  font-size: 1.12rem; color: #ffd9a0; letter-spacing: 2px;
  margin-top: 0.28rem;
  text-shadow: 0 0 14px rgba(255, 180, 100, 0.4), 0 1px 2px #000;
}

/* 底部 HUD：上一帧 / 进度 / 下一帧 横排清晰可见 */
.su-hud {
  position: absolute; left: 50%; bottom: 3.4rem;
  transform: translateX(-50%);
  z-index: 11;
  display: flex; align-items: center; gap: 1.2rem;
  background: rgba(10, 6, 3, 0.82);
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 220, 170, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7);
}
.su-btn-ctrl {
  font-family: var(--font-cn-hand), serif;
  letter-spacing: 4px; font-size: 0.95rem;
  background: transparent; color: #ffe2b0;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(255, 220, 170, 0.45);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  text-shadow: 0 1px 4px #000;
}
.su-btn-ctrl:hover {
  background: rgba(255, 220, 170, 0.18);
  transform: translateY(-1px);
}
.su-btn-ctrl.primary {
  background: linear-gradient(120deg, #c93e3a 0%, #b22a26 100%);
  color: #fff8e3;
  border-color: #ffd9a0;
  box-shadow: 0 4px 14px rgba(201, 62, 58, 0.45);
  animation: suNextHint 2.4s ease-in-out infinite;
}
.su-btn-ctrl.primary:hover {
  background: linear-gradient(120deg, #d8514d 0%, #c43631 100%);
}
.su-btn-ctrl.disabled,
.su-btn-ctrl[disabled] { opacity: 0.35; pointer-events: none; }
.su-btn-ctrl.ending-ready {
  opacity: 1;
  pointer-events: auto;
  color: #fff8e3;
  border-color: #ffe0a8;
  background: linear-gradient(120deg, #b63833 0%, #8b2520 100%);
  box-shadow: 0 6px 22px rgba(201, 62, 58, 0.55), 0 0 18px rgba(255, 180, 100, 0.25);
}

@keyframes suNextHint {
  0%, 100% { box-shadow: 0 4px 14px rgba(201, 62, 58, 0.45); }
  50%      { box-shadow: 0 4px 22px rgba(255, 180, 100, 0.7); }
}

.su-hud-mid {
  display: flex; flex-direction: column; align-items: center;
  min-width: 220px;
}
.su-progress {
  width: 220px; height: 4px;
  background: rgba(255, 235, 200, 0.18);
  overflow: hidden; border-radius: 2px;
}
.su-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #ffb56b, #ffd9a0 50%, #fff1c8);
  transition: width 0.9s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 0 12px rgba(255, 200, 130, 0.7);
}
.su-step-label {
  margin-top: 0.3rem;
  font-size: 0.82rem; color: #d8c79f; letter-spacing: 1.5px;
}
.su-step-label b { color: #ffd9a0; font-weight: 700; font-size: 1rem; }

/* 进入时影院黑边 */
.suzhou-stage::before,
.suzhou-stage::after {
  content: ''; position: absolute; left: 0; right: 0; height: 0;
  background: #000; z-index: 9; pointer-events: none;
  transition: height 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.suzhou-stage::before { top: 0; }
.suzhou-stage::after  { bottom: 0; }
.suzhou-stage.cinematic::before,
.suzhou-stage.cinematic::after { height: 4vh; }

/* 收尾 */
.scene-suzhou .tea-reveal {
  z-index: 14;
  background: radial-gradient(circle at 50% 45%, rgba(30, 22, 14, 0.6), rgba(6, 5, 3, 0.95));
  opacity: 1;
  animation: suRevealIn 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
@keyframes suRevealIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .su-top-title { font-size: 1.5rem; letter-spacing: 8px; }
  .su-top-poem { font-size: 0.82rem; letter-spacing: 3px; }
  .su-frame-title { top: 7.05rem; }
  .su-frame-name { font-size: 1.25rem; letter-spacing: 5px; }
  .su-cap-line { font-size: 0.92rem; }
  .su-cap-line.strong { font-size: 1.02rem; }
  .su-progress { width: 140px; }
  .su-btn-ctrl { font-size: 0.84rem; padding: 0.38rem 0.7rem; letter-spacing: 2px; }
  .su-caption { width: min(86vw, 680px); bottom: 5.25rem; padding: 0.68rem 0.85rem 0.82rem; }
}

/* =========================================================
   第五章 · 无锡 · 星河记忆放映厅（3D + 2D · 江南盛夏夜）
   背景取盛夏夜暖意(暖金暮色 + 太湖绿光 + 萤火),贴合照片满眼绿意
   ========================================================= */
.chapter-museum { padding: 0; }
.film-scene {
  position: absolute; inset: 0; overflow: hidden; user-select: none;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 198, 120, 0.4), transparent 48%),
    radial-gradient(95% 70% at 50% 102%, rgba(46, 96, 74, 0.45), transparent 60%),
    linear-gradient(180deg, #2a281c 0%, #1d2620 42%, #12201c 70%, #0a1513 100%);
}
#filmCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }

.film-caption {
  position: absolute; left: 50%; top: 50%; z-index: 6; transform: translate(-50%, -50%) translateY(16px);
  width: min(86%, 600px); text-align: center; font-family: var(--font-cn-hand), var(--font-cn-serif);
  font-size: 1.55rem; letter-spacing: 4px; color: #ffe9c4; pointer-events: none; opacity: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85), 0 0 24px rgba(255, 200, 120, 0.5);
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.film-caption.show { opacity: 1; transform: translate(-50%, -50%) translateY(0); }

.film-hud { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); z-index: 7; text-align: center; }
.film-hud .tea-count { display: block; margin-top: 0.4rem; color: rgba(225, 235, 210, 0.78); }
.film-hud .tea-count b { color: #ffe6a0; }

/* 2D 灯箱：点亮一帧,看清并配文,照片轻轻“活”过来 */
.film-lightbox {
  position: absolute; inset: 0; z-index: 13; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 1.2rem; padding: 1.5rem;
  background: radial-gradient(circle at 50% 45%, rgba(8, 12, 8, 0.8), rgba(3, 6, 4, 0.95));
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.film-lightbox.show { opacity: 1; pointer-events: auto; cursor: pointer; }
.fl-frame {
  padding: 10px 10px 16px; background: linear-gradient(180deg, #fbf3e4, #efe2cc); border-radius: 4px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7), 0 0 50px rgba(255, 210, 140, 0.25);
  transform: scale(0.86) rotate(-1.5deg); transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  max-width: min(74vw, 300px);
}
.film-lightbox.show .fl-frame { transform: scale(1) rotate(-1.5deg); }
.fl-img { overflow: hidden; border-radius: 2px; }
.fl-img img {
  display: block; width: 100%; height: auto; max-height: 58vh; object-fit: cover;
  animation: kenBurns 8s ease-in-out infinite alternate;
}
@keyframes kenBurns { 0% { transform: scale(1); } 100% { transform: scale(1.07); } }
.fl-cap {
  max-width: min(88vw, 540px); text-align: center; margin: 0;
  font-family: var(--font-cn-serif); font-size: 1.04rem; line-height: 1.95; color: #fff;
  text-shadow: 0 1px 3px #000, 0 2px 16px rgba(0, 0, 0, 0.9);
}
.fl-hint { font-family: var(--font-cn-serif); font-size: 0.8rem; letter-spacing: 3px; color: rgba(255, 235, 200, 0.6); }

#filmReveal { background: radial-gradient(circle at 50% 45%, rgba(12, 18, 12, 0.8), rgba(4, 7, 5, 0.95)); }

/* =========================================================
   第六章 · 杭州 · 无照之城（暖屋 → 雨幕推镜头 → 长按托夕阳）
   ========================================================= */
.chapter-password { padding: 0; }
.chapter-password > .glass-card { display: none !important; } /* 兜底：避免旧卡片误显 */

.hz-stage {
  position: absolute; inset: 0; overflow: hidden; user-select: none;
  background: radial-gradient(120% 80% at 50% 30%, #211528 0%, #110a18 55%, #060309 100%);
  color: #f6e7cf; font-family: var(--font-cn-serif);
}
.hz-stage * { box-sizing: border-box; }

/* —— 顶部章节标识 —— */
.hz-top {
  position: absolute; top: 1.6rem; left: 0; right: 0; z-index: 30;
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  pointer-events: none; text-align: center;
}
.hz-tag {
  font-size: 0.78rem; letter-spacing: 7px; padding: 4px 18px; border-radius: 999px;
  color: #ffd9a8;
  background: linear-gradient(135deg, rgba(255,200,140,0.16), rgba(180,120,80,0.18));
  border: 1px solid rgba(255,200,140,0.4);
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
.hz-title {
  margin: 0; font-size: 2.1rem; letter-spacing: 14px; color: #ffe7c0; font-weight: 400;
  text-shadow: 0 2px 14px rgba(0,0,0,0.8), 0 0 22px rgba(255,200,140,0.35);
}
.hz-sub-title {
  margin: 0; font-size: 0.86rem; letter-spacing: 5px; color: rgba(255, 220, 180, 0.6);
}

/* —— 三幕通用 —— */
.hz-act {
  position: absolute; inset: 0;
  opacity: 0;
  transition:
    opacity 1.4s ease,
    filter 1.2s ease,
    transform 1.4s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}
.hz-stage[data-act="1"] .hz-act-room   { opacity: 1; pointer-events: auto; }
.hz-stage[data-act="2"] .hz-act-window { opacity: 1; pointer-events: auto; }
.hz-stage[data-act="3"] .hz-act-sun    { opacity: 1; pointer-events: auto; }
.hz-stage.hz-dusk-turn .hz-act-window {
  filter: brightness(0.48) saturate(0.72) blur(1.2px);
  transform: scale(1.018);
}
.hz-stage::after {
  content: '';
  position: absolute;
  inset: -8%;
  z-index: 36;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(60% 45% at 50% 44%, rgba(255, 170, 100, 0.20), transparent 62%),
    radial-gradient(70% 56% at 50% 50%, rgba(70, 35, 55, 0.32), transparent 68%),
    linear-gradient(180deg, rgba(16, 12, 28, 0.12), rgba(12, 6, 12, 0.88));
  -webkit-backdrop-filter: blur(10px) saturate(0.86);
  backdrop-filter: blur(10px) saturate(0.86);
  transform: scale(1.03);
  transition: opacity 1.1s ease;
}
.hz-stage.hz-dusk-turn::after { opacity: 1; }

/* =========================================================
   第一幕 · 暖屋（剪影 + 暖灯 + 桌面 emoji 物件）
   ========================================================= */
.hz-room {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 30% 38%, rgba(255, 178, 96, 0.28), transparent 70%),
    radial-gradient(80% 60% at 50% 70%, rgba(80, 40, 30, 0.5), transparent 75%),
    linear-gradient(180deg, #1d1018 0%, #0d070b 100%);
}
.hz-room-bg { display: none; }
/* 远墙 */
.hz-room-wall {
  position: absolute; left: 0; right: 0; top: 0; height: 62%;
  background: linear-gradient(180deg, rgba(80, 40, 30, 0.55) 0%, rgba(40, 22, 18, 0.7) 90%);
}
/* 地板 */
.hz-room-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(180deg, rgba(40, 22, 18, 0.85) 0%, rgba(14, 8, 6, 1) 100%);
  box-shadow: inset 0 12px 30px rgba(0,0,0,0.6);
}
/* 窗 */
.hz-room-window {
  position: absolute; right: 8%; top: 14%; width: 22%; aspect-ratio: 4/5;
  border: 4px solid #2a1812; border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(40,30,60,0.7), rgba(20,16,30,0.95));
  overflow: hidden;
  box-shadow:
    inset 0 0 30px rgba(0,0,0,0.7),
    0 0 28px rgba(255, 170, 100, 0.18),
    0 14px 30px rgba(0,0,0,0.6);
}
.hz-room-window::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px;
  background: #2a1812; transform: translateX(-50%);
}
.hz-room-window::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px;
  background: #2a1812; transform: translateY(-50%);
}
/* 雨珠 */
.hz-rain-drop {
  position: absolute; width: 1.5px; height: 14%; left: 0; top: -16%;
  background: linear-gradient(180deg, transparent, rgba(255,220,170,0.5), rgba(255,220,170,0.1));
  border-radius: 2px;
  animation: hzRainDrop 3.6s linear infinite;
}
.hz-rain-drop.d1 { left: 18%; animation-delay: 0.0s; }
.hz-rain-drop.d2 { left: 36%; animation-delay: 1.1s; }
.hz-rain-drop.d3 { left: 56%; animation-delay: 0.5s; }
.hz-rain-drop.d4 { left: 74%; animation-delay: 1.7s; }
.hz-rain-drop.d5 { left: 88%; animation-delay: 0.9s; }
@keyframes hzRainDrop {
  0%   { top: -16%; opacity: 0; }
  12%  { opacity: 1; }
  100% { top: 116%; opacity: 0; }
}

/* 灯 */
.hz-lamp {
  position: absolute; left: 16%; top: 6%; width: 80px; height: 200px; pointer-events: none;
}
.hz-lamp::before { /* 灯绳 */
  content: ''; position: absolute; top: 0; left: 50%; width: 1px; height: 60%;
  background: rgba(255, 200, 140, 0.5); transform: translateX(-50%);
}
.hz-lamp-shade {
  position: absolute; top: 56%; left: 50%; width: 64px; height: 30px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #5a2e1a, #3a1c10);
  border-radius: 50% 50% 8px 8px / 60% 60% 12px 12px;
  box-shadow: inset 0 -8px 18px rgba(0,0,0,0.6);
}
.hz-lamp-bulb {
  position: absolute; top: 80%; left: 50%; width: 22px; height: 22px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 35%, #fff7cf 0%, #ffd680 50%, #d68a3a 100%);
  border-radius: 50%;
  box-shadow: 0 0 30px 8px rgba(255, 200, 110, 0.65);
  animation: hzBulbFlicker 5s ease-in-out infinite;
}
@keyframes hzBulbFlicker {
  0%, 100% { box-shadow: 0 0 30px 8px rgba(255, 200, 110, 0.65); }
  48%      { box-shadow: 0 0 36px 12px rgba(255, 220, 130, 0.78); }
  52%      { box-shadow: 0 0 24px 6px rgba(255, 200, 110, 0.55); }
}
.hz-lamp-glow {
  position: absolute; top: 80%; left: 50%;
  width: 380px; height: 380px;
  transform: translate(-50%, -10%);
  background: radial-gradient(circle, rgba(255, 200, 130, 0.35) 0%, rgba(255, 170, 90, 0.0) 65%);
  pointer-events: none;
}

/* 桌子 */
.hz-table {
  position: absolute; left: 14%; right: 14%; bottom: 38%; height: 7%;
  background: linear-gradient(180deg, #4a2818 0%, #2c160d 100%);
  border-radius: 6px 6px 2px 2px;
  box-shadow:
    0 -2px 0 rgba(255,200,140,0.15) inset,
    0 22px 50px rgba(0,0,0,0.6);
}
.hz-table::before { /* 桌面反光 */
  content: ''; position: absolute; left: 6%; right: 6%; top: 6%; height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 130, 0.35), transparent);
  border-radius: 4px;
}

/* 桌上物件（每个 obj 用 inline-style 的 left/bottom 直接定位，避免 transform 百分比歧义） */
.hz-objects {
  position: absolute; left: 14%; right: 14%; bottom: 35%;
  height: 16%;
  pointer-events: none;
}
.hz-obj {
  position: absolute;
  font-size: 2.4rem; line-height: 1;
  transform: translate(-50%, 30px) scale(0.4) rotate(var(--rot, 0deg));
  opacity: 0; transform-origin: 50% 100%;
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.6)) drop-shadow(0 0 18px rgba(255, 180, 100, 0.5));
}
.hz-obj.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1) rotate(var(--rot, 0deg));
  animation: hzObjFloat 3.4s ease-in-out infinite;
}
@keyframes hzObjFloat {
  0%, 100% { transform: translate(-50%, 0)    scale(1)    rotate(var(--rot, 0deg)); }
  50%      { transform: translate(-50%, -6px) scale(1.04) rotate(var(--rot, 0deg)); }
}

/* 字幕 */
.hz-subs {
  position: absolute; left: 50%; bottom: 4%;
  transform: translateX(-50%);
  width: min(92%, 720px);
  text-align: center;
  pointer-events: none; z-index: 20;
}
.hz-sub-line {
  margin: 0.42rem 0; font-size: 1.12rem; letter-spacing: 5px; line-height: 1.9;
  color: #fff5dc;
  opacity: 0; transform: translateY(8px);
  text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 0 22px rgba(255, 200, 130, 0.4);
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}
.hz-sub-line.show { opacity: 1; transform: translateY(0); }
.hz-sub-line.fade { opacity: 0.18; }

/* =========================================================
   第二幕 · 雨幕推镜头 → 西湖远景
   ========================================================= */
.hz-glass {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20,16,28,0.4) 0%, rgba(10,8,18,0.65) 100%);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  transition: opacity 1.6s ease, -webkit-backdrop-filter 1.6s ease, backdrop-filter 1.6s ease;
}
.hz-stage[data-act="2"].lifted .hz-glass {
  opacity: 0; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
}
.hz-rain-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5;
  pointer-events: none;
}
.hz-rain-trail {
  fill: none; stroke: rgba(220, 220, 245, 0.5); stroke-width: 0.4; stroke-linecap: round;
  stroke-dasharray: 60 200; stroke-dashoffset: 0;
  animation: hzRainTrail 4.2s linear infinite;
}
.hz-rain-trail.t1 { animation-delay: 0.0s; }
.hz-rain-trail.t2 { animation-delay: 0.7s; }
.hz-rain-trail.t3 { animation-delay: 1.3s; }
.hz-rain-trail.t4 { animation-delay: 0.4s; }
.hz-rain-trail.t5 { animation-delay: 1.8s; }
.hz-rain-trail.t6 { animation-delay: 2.4s; }
@keyframes hzRainTrail { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
.hz-glass-mist {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 50%, rgba(180, 200, 240, 0.06), transparent 70%);
  mix-blend-mode: screen;
}
.hz-westlake {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2;
  opacity: 0; transition: opacity 2.2s ease;
}
.hz-stage[data-act="2"].lifted .hz-westlake { opacity: 1; }
.hz-westlake .hz-lights circle { animation: hzLightTwinkle 3.6s ease-in-out infinite; }
.hz-westlake .hz-lights circle:nth-child(2n) { animation-delay: 1.4s; }
.hz-westlake .hz-lights circle:nth-child(3n) { animation-delay: 0.7s; }
@keyframes hzLightTwinkle {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.hz-act-window .hz-subs { z-index: 25; }

/* =========================================================
   第三幕 · 长按托夕阳
   ========================================================= */
.hz-act-sun { background: linear-gradient(180deg, #1a0e1a 0%, #0c0810 100%); }

.hz-sky-dusk {
  position: absolute; left: 0; right: 0; top: 0; height: 70%;
  background:
    linear-gradient(180deg,
      #1a0c1f 0%,
      #4a1d2c 30%,
      #aa4a3a 60%,
      #f0a14a 80%,
      #ffc77a 100%);
  transition: filter 0.8s ease;
}
/* 太阳越下沉，天越暗（由 JS 设置 --sun: 0~1） */
.hz-stage { --sun: 1; }
.hz-act-sun { filter: brightness(calc(0.5 + 0.5 * var(--sun, 1))) saturate(calc(0.6 + 0.5 * var(--sun, 1))); transition: filter 1.4s ease; }

.hz-cloud-strip {
  position: absolute; left: -10%; right: -10%; top: 38%; height: 14%;
  background:
    linear-gradient(90deg, transparent, rgba(255, 200, 150, 0.35) 30%, rgba(255, 230, 180, 0.5) 50%, rgba(255, 200, 150, 0.35) 70%, transparent),
    linear-gradient(180deg, transparent, rgba(0,0,0,0.18));
  filter: blur(8px);
  opacity: 0.85;
  animation: hzCloudDrift 32s linear infinite;
}
@keyframes hzCloudDrift { 0% { transform: translateX(-4%); } 100% { transform: translateX(4%); } }

.hz-mount-far {
  position: absolute; left: 0; right: 0; bottom: 28%; height: 18%;
  background:
    radial-gradient(60% 80% at 30% 100%, #2a1828 0%, transparent 70%),
    radial-gradient(70% 80% at 70% 100%, #1c1224 0%, transparent 70%),
    linear-gradient(180deg, transparent, #15101e 80%);
  clip-path: polygon(0% 70%, 12% 50%, 22% 60%, 32% 35%, 44% 55%, 54% 38%, 66% 60%, 78% 45%, 88% 55%, 100% 40%, 100% 100%, 0% 100%);
}
.hz-pagoda-dusk {
  position: absolute; left: 60%; bottom: 32%; width: 110px; height: 200px;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, #0a0612 0%, #100a18 100%);
  clip-path: polygon(
    50% 0%, 60% 6%, 60% 14%, 70% 18%, 70% 24%,
    62% 28%, 62% 36%, 74% 40%, 74% 46%,
    62% 50%, 62% 60%, 80% 64%, 80% 72%,
    62% 78%, 62% 100%, 38% 100%,
    38% 78%, 20% 72%, 20% 64%, 38% 60%,
    38% 50%, 26% 46%, 26% 40%, 38% 36%,
    38% 28%, 30% 24%, 30% 18%, 40% 14%, 40% 6%
  );
  filter: drop-shadow(0 0 6px rgba(255, 160, 90, 0.3));
}
.hz-pagoda-dusk::before {
  content: ''; position: absolute; left: 46%; top: 50%; width: 8%; height: 4px;
  background: #ffd072; box-shadow: 0 0 12px rgba(255, 200, 100, 0.9);
}

.hz-lake-dusk {
  position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
  background:
    linear-gradient(180deg, #2a1424 0%, #100810 70%, #060306 100%);
  overflow: hidden;
}
.hz-lake-dusk::before { /* 湖面光斑 */
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(40% 30% at 50% 0%, rgba(255, 160, 90, 0.4), transparent 70%);
}
.hz-sun-trail {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 30%;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(255, 200, 130, 0.7) 0%, rgba(255, 160, 80, 0.0) 95%);
  filter: blur(8px);
  opacity: var(--sun, 1);
  transition: opacity 0.6s ease;
}

/* 太阳 */
.hz-sun {
  position: absolute; left: 50%; top: 28%;
  width: 110px; height: 110px; border-radius: 50%;
  transform: translate(-50%, calc((1 - var(--sun, 1)) * 220%));
  background: radial-gradient(circle at 50% 40%, #fff5cf 0%, #ffd070 45%, #ff924a 90%);
  box-shadow:
    0 0 60px 14px rgba(255, 180, 90, 0.55),
    0 0 120px 32px rgba(255, 130, 80, 0.35);
  transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.6, 1.0);
  z-index: 4;
}
.hz-sun-halo {
  position: absolute; left: 50%; top: 28%;
  width: 380px; height: 380px;
  transform: translate(-50%, calc((1 - var(--sun, 1)) * 220% - 38%));
  background: radial-gradient(circle, rgba(255, 200, 130, 0.4) 0%, transparent 65%);
  pointer-events: none; z-index: 3;
  transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.6, 1.0);
}

/* 长按提示 */
.hz-hold-prompt {
  position: absolute; left: 50%; top: 18%;
  transform: translateX(-50%);
  font-size: 0.96rem; letter-spacing: 6px; padding: 8px 22px;
  border-radius: 999px;
  color: #fff3d0;
  background: rgba(20, 12, 18, 0.5);
  border: 1px solid rgba(255, 200, 130, 0.45);
  text-shadow: 0 2px 8px rgba(0,0,0,0.85);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: hzPromptPulse 2.6s ease-in-out infinite;
  z-index: 25;
}
.hz-stage.holding .hz-hold-prompt { animation: none; opacity: 0.5; transform: translate(-50%, -6px); transition: opacity 0.4s ease, transform 0.4s ease; }
@keyframes hzPromptPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 200, 130, 0.5); }
  50%      { box-shadow: 0 0 0 14px rgba(255, 200, 130, 0); }
}

/* 长按时浮起的字 */
.hz-hold-words {
  position: absolute; left: 50%; top: 36%;
  transform: translateX(-50%);
  width: min(92%, 720px); text-align: center;
  pointer-events: none; z-index: 22;
}
.hz-hold-line {
  margin: 0.4rem 0; font-size: 1.6rem; letter-spacing: 10px;
  color: #fff5d6;
  opacity: 0; transform: translateY(20px) scale(0.95);
  text-shadow: 0 2px 14px rgba(0,0,0,0.85), 0 0 24px rgba(255, 180, 100, 0.4);
  transition: opacity 0.8s ease, transform 1.0s cubic-bezier(0.19, 1, 0.22, 1);
  font-family: var(--font-cn-serif);
}
.hz-hold-line.show { opacity: 1; transform: translateY(0) scale(1); }

/* 长按计量条 */
.hz-hold-meter {
  position: absolute; left: 50%; bottom: 8%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 25;
}
.hz-hold-meter-label {
  font-size: 0.78rem; letter-spacing: 8px; color: rgba(255, 220, 180, 0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.hz-hold-meter-bar {
  width: 280px; height: 6px; border-radius: 99px; overflow: hidden;
  background: rgba(255, 220, 180, 0.18);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hz-hold-meter-fill {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, #ffd06a 0%, #ff8a4a 70%, #ffb96a 100%);
  box-shadow: 0 0 14px rgba(255, 180, 100, 0.6);
  transition: width 0.12s linear;
}
.hz-hold-meter-time { font-size: 0.78rem; letter-spacing: 2px; color: rgba(255, 220, 180, 0.5); }

/* =========================================================
   收场 · 余晖染屋 + 用字写的"杭州合照"
   ========================================================= */
.hz-finale {
  position: absolute; inset: 0; z-index: 40;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; transition: opacity 1.6s ease;
  pointer-events: none;
}
.hz-finale:not(.hidden) { opacity: 1; pointer-events: auto; }
.hz-finale.hidden { display: none; }

.hz-amber-room {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(255, 180, 100, 0.55), transparent 70%),
    radial-gradient(80% 80% at 50% 70%, rgba(160, 70, 40, 0.65), transparent 80%),
    linear-gradient(180deg, #2a1218 0%, #160a0c 100%);
  animation: hzAmberBreath 6s ease-in-out infinite;
}
@keyframes hzAmberBreath {
  0%, 100% { filter: brightness(1) saturate(1); }
  50%      { filter: brightness(1.06) saturate(1.08); }
}

.hz-frame {
  position: relative; z-index: 2;
  width: min(78vw, 540px); padding: 14px;
  background: linear-gradient(135deg, #d4a86a 0%, #8a5a32 50%, #c2925a 100%);
  border-radius: 4px;
  box-shadow:
    0 26px 70px rgba(0,0,0,0.7),
    0 0 60px rgba(255, 180, 100, 0.3),
    inset 0 0 0 1px rgba(255, 240, 200, 0.4);
  transform: translateY(20px) scale(0.94);
  opacity: 0;
  animation: hzFrameRise 1.6s cubic-bezier(0.19, 1, 0.22, 1) 0.4s forwards;
  transition: opacity 1.2s ease, transform 1.2s ease, filter 1.2s ease;
}
/* reveal 出现时，相框轻轻飘上去淡出，让位给信文 */
.hz-frame.fade-up {
  animation: hzFrameOut 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  pointer-events: none;
}
@keyframes hzFrameOut {
  0%   { opacity: 1; transform: translateY(0)     scale(1)     ; filter: blur(0); }
  100% { opacity: 0; transform: translateY(-46px) scale(0.96)  ; filter: blur(2px); }
}
@keyframes hzFrameRise {
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.hz-frame-tape {
  position: absolute; width: 70px; height: 18px;
  background: linear-gradient(180deg, rgba(255,250,220,0.85), rgba(220,200,160,0.6));
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.hz-frame-tape.t-tl { top: -8px; left: -16px; transform: rotate(-30deg); }
.hz-frame-tape.t-tr { top: -8px; right: -16px; transform: rotate(30deg); }

.hz-frame-paper {
  background: #fbf4e0;
  background-image:
    linear-gradient(180deg, #fbf4e0 0%, #f3e7c8 100%),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(150, 110, 60, 0.06) 22px 23px);
  background-blend-mode: multiply;
  border: 1px solid rgba(150, 110, 60, 0.25);
  padding: 56px 42px 30px;
  text-align: center;
  position: relative;
}
.hz-frame-paper::before {
  content: ''; position: absolute; left: 50%; top: 18px;
  transform: translateX(-50%);
  width: 80px; height: 1px; background: linear-gradient(90deg, transparent, rgba(120, 80, 40, 0.4), transparent);
}
.hz-frame-line {
  margin: 0; min-height: 4em;
  font-family: var(--font-cn-serif); font-size: 1.4rem; letter-spacing: 6px; line-height: 2.1;
  color: #4a2a1a; font-weight: 500;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
.hz-frame-line .ch {
  display: inline-block; opacity: 0; transform: translateY(8px) scale(1.6);
  animation: hzCharIn 0.7s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  filter: blur(2px);
}
@keyframes hzCharIn {
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.hz-frame-meta {
  margin: 18px 0 0; font-size: 0.78rem; letter-spacing: 3px; color: rgba(120, 70, 36, 0.7);
  opacity: 0; animation: hzMetaIn 1s ease 1.2s forwards;
}
@keyframes hzMetaIn { to { opacity: 1; } }

/* reveal 文案 */
.hz-reveal {
  position: absolute; inset: 0; z-index: 5;
  display: flex; justify-content: center; align-items: center;
  padding: 1.5rem;
  background: radial-gradient(circle at 50% 45%, rgba(40,18,10,0.5), rgba(10,4,3,0.92));
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 1.2s ease;
  pointer-events: none;
}
.hz-reveal:not(.hidden) { opacity: 1; pointer-events: auto; }
.hz-reveal.hidden { display: none; }
.hz-reveal-inner {
  max-width: min(92vw, 640px); text-align: center;
  font-family: var(--font-cn-serif); color: #fff5dc;
}
.hz-reveal-line {
  margin: 0.55rem 0; font-size: 1.05rem; letter-spacing: 3px; line-height: 2.0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 0 18px rgba(255, 200, 130, 0.3);
  opacity: 0; transform: translateY(8px);
  animation: hzRevealLine 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
.hz-reveal-line:nth-child(1) { animation-delay: 0.2s; }
.hz-reveal-line:nth-child(2) { animation-delay: 0.6s; }
.hz-reveal-line:nth-child(3) { animation-delay: 1.0s; }
.hz-reveal-line:nth-child(4) { animation-delay: 1.4s; }
.hz-reveal-line:nth-child(5) { animation-delay: 1.8s; }
.hz-reveal-line.strong {
  color: #ffd9a8; font-size: 1.15rem; margin-top: 1rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.9), 0 0 26px rgba(255, 200, 130, 0.5);
}
@keyframes hzRevealLine { to { opacity: 1; transform: translateY(0); } }
.hz-reveal-actions { margin-top: 1.4rem; display: flex; justify-content: center; gap: 18px; opacity: 0; animation: hzRevealLine 0.9s ease 2.4s forwards; }

@media (max-width: 768px) {
  .hz-title { font-size: 1.5rem; letter-spacing: 8px; }
  .hz-sub-line { font-size: 0.95rem; letter-spacing: 3px; }
  .hz-room-window { right: 6%; top: 16%; width: 28%; }
  .hz-table { left: 12%; right: 12%; bottom: 26%; }
  .hz-obj { font-size: 1.9rem; }
  .hz-sun { width: 80px; height: 80px; }
  .hz-hold-line { font-size: 1.15rem; letter-spacing: 6px; }
  .hz-hold-meter-bar { width: 220px; }
  .hz-frame { width: 86vw; }
  .hz-frame-line { font-size: 1.05rem; letter-spacing: 3px; }
}

/* ===========================================================
   第七章 · 湖 州 · 万 圣 魔 法 城
   紫粉樱花夜 + 5 帧照片漫游 + 万圣节奇幻氛围
   =========================================================== */

.chapter-pond { padding: 0; }
.chapter-pond .hm-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 65%, #4a0d4f 0%, #1a0420 70%, #0c0014 100%);
  color: #fff;
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  isolation: isolate;
}

.hm-bg-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 28% 22%, rgba(255, 100, 200, 0.55) 0%, transparent 65%),
    radial-gradient(ellipse 55% 40% at 78% 28%, rgba(180, 70, 230, 0.50) 0%, transparent 65%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(255, 140, 210, 0.32) 0%, transparent 70%),
    radial-gradient(circle  18% at 12% 65%, rgba(255, 70, 180, 0.30) 0%, transparent 70%),
    radial-gradient(circle  18% at 88% 70%, rgba(160, 80, 230, 0.30) 0%, transparent 70%);
  filter: blur(18px);
  animation: hmGlowBreath 9s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}
@keyframes hmGlowBreath {
  0%   { opacity: 0.7; transform: scale(1.00); }
  100% { opacity: 1.0; transform: scale(1.06); }
}

.hm-sakura-canopy {
  position: absolute; top: -20px; left: -20px; right: -20px; height: 46%;
  pointer-events: none; z-index: 2;
  background:
    radial-gradient(ellipse 110px 75px at 8% 18%, #ff8ad0 0%, rgba(255, 138, 208, 0) 65%),
    radial-gradient(ellipse 130px 90px at 22% 14%, #ff6bbf 0%, rgba(255, 107, 191, 0) 65%),
    radial-gradient(ellipse 100px 70px at 36% 22%, #ff95d6 0%, rgba(255, 149, 214, 0) 65%),
    radial-gradient(ellipse 140px 95px at 50% 12%, #ff7cc8 0%, rgba(255, 124, 200, 0) 65%),
    radial-gradient(ellipse 110px 75px at 65% 22%, #ff8ad0 0%, rgba(255, 138, 208, 0) 65%),
    radial-gradient(ellipse 130px 90px at 80% 14%, #ff6bbf 0%, rgba(255, 107, 191, 0) 65%),
    radial-gradient(ellipse 105px 70px at 95% 22%, #ff95d6 0%, rgba(255, 149, 214, 0) 65%),
    radial-gradient(ellipse  90px 60px at 14% 38%, #d860c2 0%, rgba(216, 96, 194, 0) 70%),
    radial-gradient(ellipse  95px 65px at 42% 42%, #c64db5 0%, rgba(198, 77, 181, 0) 70%),
    radial-gradient(ellipse  90px 60px at 72% 40%, #d860c2 0%, rgba(216, 96, 194, 0) 70%);
  opacity: 0.78;
  filter: blur(3px);
  animation: hmCanopySway 16s ease-in-out infinite alternate;
}
@keyframes hmCanopySway {
  0%   { transform: translate3d(-6px, 0, 0); }
  100% { transform: translate3d(6px, 4px, 0); }
}

.hm-petals  { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.hm-petal {
  position: absolute;
  top: -16px;
  width: 12px; height: 12px;
  background: radial-gradient(circle at 35% 28%, #ffe1f1 0%, #ff8ec8 55%, #ee54a2 100%);
  border-radius: 60% 0 60% 0;
  filter: blur(0.3px) drop-shadow(0 0 4px rgba(255, 130, 200, 0.7));
  opacity: 0;
  animation: hmPetalFall linear infinite;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.hm-petal.s1 { width: 7px;  height: 7px; }
.hm-petal.s2 { width: 10px; height: 10px; }
.hm-petal.s3 { width: 14px; height: 14px; }
.hm-petal.s4 { width: 18px; height: 18px; }

@keyframes hmPetalFall {
  0%   { transform: translate3d(0, -20px, 0) rotate(0deg);   opacity: 0; }
  8%   { opacity: 0.9; }
  92%  { opacity: 0.85; }
  100% { transform: translate3d(var(--drift, 60px), 110vh, 0) rotate(720deg); opacity: 0; }
}

.hm-spirits { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.hm-spirit {
  position: absolute;
  filter: drop-shadow(0 0 14px rgba(255, 140, 230, 0.7));
  animation: hmSpiritFloat ease-in-out infinite;
  opacity: 0.88;
  will-change: transform;
}
.hm-spirit.ghost {
  width: 30px; height: 38px;
  background:
    radial-gradient(circle at 35% 35%, #2c062f 0%, transparent 14%),
    radial-gradient(circle at 65% 35%, #2c062f 0%, transparent 14%),
    radial-gradient(ellipse at 50% 38%, #fff 30%, #f9d6f4 70%, rgba(249, 214, 244, 0) 88%);
  border-radius: 60% 60% 30% 30% / 75% 75% 30% 30%;
}
.hm-spirit.pumpkin {
  width: 22px; height: 22px;
  background:
    radial-gradient(circle at 35% 35%, #2c062f 0%, transparent 12%),
    radial-gradient(circle at 65% 35%, #2c062f 0%, transparent 12%),
    radial-gradient(circle at 50% 65%, #2c062f 0%, transparent 22%),
    radial-gradient(circle, #ffaa3a 0%, #ff7a25 70%, #d44818 100%);
  border-radius: 50%;
  box-shadow: inset -4px -3px 6px rgba(120, 30, 0, 0.5);
}
@keyframes hmSpiritFloat {
  0%, 100% { transform: translate3d(0, 0, 0)        rotate(-3deg) scale(1); }
  50%      { transform: translate3d(20px, -28px, 0) rotate(3deg)  scale(1.05); }
}

.hm-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 38%, rgba(0,0,0,0.55) 100%);
  pointer-events: none; z-index: 6;
}

.hm-top {
  position: absolute; top: 30px; left: 0; right: 0;
  text-align: center; z-index: 20;
  pointer-events: none;
}
.hm-top .hm-tag {
  display: inline-block;
  padding: 4px 18px;
  font-size: 0.78rem; letter-spacing: 8px;
  color: #ffcfe8;
  border: 1px solid rgba(255, 130, 200, 0.45);
  border-radius: 20px;
  background: rgba(74, 13, 79, 0.45);
  backdrop-filter: blur(6px);
  text-shadow: 0 0 12px rgba(255, 100, 200, 0.7);
}
.hm-top .hm-title {
  margin: 14px 0 6px;
  font-size: 2.0rem; letter-spacing: 14px;
  color: #fff;
  text-shadow:
    0 0 18px rgba(255, 90, 200, 0.85),
    0 0 36px rgba(255, 100, 220, 0.6),
    0 0 60px rgba(180, 60, 220, 0.5);
}
.hm-top .hm-sub-title {
  margin: 0;
  font-size: 0.88rem; letter-spacing: 5px;
  color: #ffd6ee;
  text-shadow: 0 0 10px rgba(255, 100, 200, 0.6);
  opacity: 0.92;
  font-style: italic;
}

.hm-frame-title {
  position: absolute;
  top: 152px;
  left: 50%; transform: translateX(-50%);
  display: flex; align-items: baseline; gap: 16px; z-index: 18;
  pointer-events: none;
}
.hm-frame-no {
  font-size: 2.6rem; line-height: 1;
  color: #ffe0f4;
  font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
  text-shadow:
    0 0 18px rgba(255, 120, 220, 0.9),
    0 0 38px rgba(255, 100, 200, 0.55);
  transition: opacity 0.45s ease, transform 0.55s ease;
}
.hm-frame-name {
  font-size: 1.05rem; letter-spacing: 8px;
  color: #ffcfe8;
  text-shadow: 0 0 12px rgba(255, 100, 200, 0.7);
  transition: opacity 0.45s ease, transform 0.55s ease;
}
.hm-frame-no.swap, .hm-frame-name.swap {
  opacity: 0; transform: translateY(8px);
}

.hm-photo-stage {
  position: absolute;
  top: 52%; left: 50%; transform: translate(-50%, -50%);
  width: min(56vw, 700px);
  height: min(58vh, 540px);
  perspective: 1400px;
  z-index: 12;
}
.hm-photo {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.86) translate3d(0, 36px, 0) rotateZ(-1deg);
  filter: blur(8px) brightness(0.65);
  transition: opacity 1.1s cubic-bezier(0.19, 1, 0.22, 1),
              transform 1.5s cubic-bezier(0.19, 1, 0.22, 1),
              filter 1.0s ease;
  pointer-events: none;
  will-change: opacity, transform, filter;
}
.hm-photo.active {
  opacity: 1;
  transform: scale(1) translate3d(0, 0, 0) rotateZ(0deg);
  filter: blur(0) brightness(1);
}
.hm-photo.leaving {
  opacity: 0;
  transform: scale(1.06) translate3d(0, -18px, 0) rotateZ(1deg);
  filter: blur(10px) brightness(0.6);
  transition-duration: 0.9s;
}
.hm-photo-frame {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #1a0420;
  box-shadow:
    0 0 0 2px rgba(255, 215, 235, 0.85),
    0 0 0 6px rgba(255, 130, 210, 0.35),
    0 0 32px rgba(255, 90, 200, 0.55),
    0 0 90px rgba(180, 60, 220, 0.45),
    0 28px 60px rgba(0, 0, 0, 0.7);
}
.hm-photo-frame::before {
  content: '';
  position: absolute; inset: -10px;
  border-radius: 24px;
  background: conic-gradient(from 0deg, #ff7ac3, #c63ca3, #6b2a9c, #ff5cb8, #ff7ac3);
  z-index: -1;
  filter: blur(14px);
  opacity: 0.7;
  animation: hmFrameAura 12s linear infinite;
}
@keyframes hmFrameAura {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.hm-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 8s ease-out;
}
.hm-photo.active .hm-photo-frame img { transform: scale(1.08); }

.hm-caption {
  position: absolute;
  bottom: 110px; left: 50%; transform: translateX(-50%);
  width: min(86vw, 920px);
  text-align: center; z-index: 25;
  pointer-events: none;
  min-height: 90px;
}
.hm-cap-step {
  position: absolute; left: 0; right: 0; top: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s ease, transform 1.0s cubic-bezier(0.19, 1, 0.22, 1);
}
.hm-cap-step.active { opacity: 1; transform: translateY(0); }

.hm-cap-line {
  margin: 0.45rem 0;
  font-size: 1.12rem; letter-spacing: 4px;
  color: #fff5fb;
  text-shadow:
    0 2px 14px rgba(0,0,0,0.85),
    0 0 22px rgba(255, 130, 220, 0.5);
}
.hm-cap-line:first-child {
  font-size: 1.22rem; letter-spacing: 5px;
  color: #ffe0f4;
}

.hm-hud {
  position: absolute;
  bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px;
  padding: 10px 18px;
  background: rgba(40, 8, 50, 0.6);
  border: 1px solid rgba(255, 130, 200, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  z-index: 30;
}
.hm-btn-ctrl {
  background: transparent;
  color: #ffcfe8;
  border: 1px solid rgba(255, 130, 200, 0.42);
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem; letter-spacing: 2px;
  transition: all 0.25s ease;
  font-family: 'Noto Serif SC', serif;
}
.hm-btn-ctrl:hover {
  background: rgba(255, 130, 200, 0.18);
  border-color: rgba(255, 180, 220, 0.7);
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 100, 200, 0.7);
}
.hm-btn-ctrl.disabled,
.hm-btn-ctrl[disabled] { opacity: 0.35; pointer-events: none; }
.hm-btn-ctrl.ending-ready {
  color: #fff;
  border-color: rgba(255, 220, 245, 0.86);
  background: linear-gradient(120deg, rgba(255, 90, 185, 0.45), rgba(140, 80, 235, 0.42));
  box-shadow: 0 0 24px rgba(255, 120, 210, 0.45), inset 0 0 18px rgba(255, 255, 255, 0.08);
  animation: hmNextHint 1.6s ease-in-out infinite;
}
@keyframes hmNextHint {
  0%, 100% { box-shadow: 0 0 18px rgba(255, 120, 210, 0.35), inset 0 0 18px rgba(255, 255, 255, 0.08); }
  50%      { box-shadow: 0 0 30px rgba(255, 180, 230, 0.7), inset 0 0 24px rgba(255, 255, 255, 0.12); }
}
.hm-progress {
  width: 200px; height: 4px;
  background: rgba(255, 200, 230, 0.18);
  border-radius: 2px;
  overflow: hidden;
}
.hm-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #ff7ac3, #ff5cb8, #c63ca3);
  box-shadow: 0 0 12px rgba(255, 100, 200, 0.7);
  transition: width 0.25s linear;
}
.hm-step-label {
  font-size: 0.85rem; letter-spacing: 2px;
  color: #ffcfe8;
  white-space: nowrap;
}
.hm-step-label b {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 100, 200, 0.7);
}

.hm-stage.ending .hm-hud,
.hm-stage.ending .hm-caption,
.hm-stage.ending .hm-frame-title {
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hm-stage.ending .hm-photo.active {
  opacity: 0.24;
  transform: scale(1.08) translate3d(0, -10px, 0);
  filter: blur(3px) brightness(0.82) saturate(1.15);
}
.hm-stage.ending .hm-bg-glow {
  opacity: 1;
  filter: blur(24px) saturate(1.18);
}

.hm-stage .hm-reveal {
  z-index: 60;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 110, 205, 0.24), transparent 38%),
    radial-gradient(circle at 26% 22%, rgba(255, 176, 224, 0.18), transparent 34%),
    radial-gradient(circle at 76% 72%, rgba(136, 86, 255, 0.2), transparent 40%),
    radial-gradient(ellipse at center, rgba(54, 8, 66, 0.78) 0%, rgba(10, 2, 18, 0.95) 78%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: hmRevealIn 1.0s cubic-bezier(0.19, 1, 0.22, 1);
}
.hm-stage .hm-reveal::before,
.hm-stage .hm-reveal::after {
  content: '';
  position: absolute;
  inset: 10% 8%;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255, 200, 235, 0.16);
  box-shadow: 0 0 70px rgba(255, 90, 200, 0.18);
}
.hm-stage .hm-reveal::after {
  inset: 18% 18%;
  border-color: rgba(190, 150, 255, 0.12);
  transform: rotate(-8deg);
}
.hm-stage .hm-reveal.hidden { display: none; }
@keyframes hmRevealIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hm-reveal-inner {
  position: relative;
  z-index: 2;
}
.hm-stage .hm-reveal .reveal-line {
  color: #fff0fa;
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.82),
    0 0 24px rgba(255, 118, 211, 0.38);
}
.hm-stage .hm-reveal .reveal-line.strong {
  color: #ffd8ef;
  font-size: 1.36rem;
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.86),
    0 0 30px rgba(255, 102, 204, 0.62),
    0 0 54px rgba(160, 88, 255, 0.42);
}
.hm-stage .hm-reveal .walk-link {
  color: #ffe4f4;
  border-color: rgba(255, 155, 220, 0.55);
  background: rgba(255, 110, 200, 0.1);
  box-shadow: 0 0 22px rgba(255, 90, 200, 0.18);
}
.hm-stage .hm-reveal .walk-link:hover {
  background: rgba(255, 125, 210, 0.18);
  border-color: rgba(255, 210, 238, 0.8);
}

.hm-stage .cheat-btn {
  position: absolute; bottom: 14px; right: 14px; z-index: 100;
  padding: 4px 10px;
  background: rgba(0,0,0,0.4);
  color: rgba(255, 200, 230, 0.5);
  border: 1px solid rgba(255, 130, 200, 0.3);
  border-radius: 6px;
  font-size: 0.7rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .chapter-pond .hm-stage { min-height: 600px; }
  .hm-top .hm-title { font-size: 1.5rem; letter-spacing: 8px; }
  .hm-top .hm-sub-title { font-size: 0.78rem; letter-spacing: 3px; }
  .hm-frame-title { top: 130px; gap: 10px; }
  .hm-frame-no { font-size: 1.9rem; }
  .hm-frame-name { font-size: 0.92rem; letter-spacing: 5px; }
  .hm-photo-stage { width: 78vw; height: 50vh; }
  .hm-caption { bottom: 95px; min-height: 70px; }
  .hm-cap-line { font-size: 0.95rem; letter-spacing: 2px; }
  .hm-cap-line:first-child { font-size: 1.05rem; letter-spacing: 3px; }
  .hm-progress { width: 130px; }
  .hm-stage .hm-reveal .reveal-line { font-size: 0.92rem; line-height: 1.85; }
  .hm-stage .hm-reveal .reveal-line.strong { font-size: 1.12rem; }
}

/* =========================================================
   第八章 · 重庆 · 两江灯影夜渡（长江索道 · 2.5D）
   真实两江夜景 + 江面倒影 + 小红索道车厢；复用 film-caption / tea-* / reveal
   ========================================================= */
.chapter-chongqing { padding: 0; }
.cable-scene {
  position: absolute; inset: 0; overflow: hidden; user-select: none; --cross: 0;
  background: #05060f; cursor: ew-resize;
}
.cable-scene:active { cursor: grabbing; }

/* 两岸夜景全景（真实生成图）—— 随渡江轻轻放大靠近 */
.cable-pano {
  position: absolute; left: 0; right: 0; top: 0; height: 60%; z-index: 1;
  background: url('assets/cq_pano.png') center 42% / cover;
  transform: scale(calc(1.05 + var(--cross) * 0.16)); transform-origin: 54% 78%;
  transition: transform 0.25s ease, filter 1.5s ease;
}
.cable-pano::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(180deg, transparent, #06060f);
}

/* 江面 + 灯影倒影 */
.cable-water {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 2; overflow: hidden;
  background: url('assets/cq_water.png') center 28% / cover; filter: brightness(0.92);
}
.cable-water::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 24%;
  background: linear-gradient(180deg, #06060f, transparent);
}
.cable-water::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 6px, rgba(180, 205, 255, 0.045) 6px 7px);
  animation: cqWater 6s linear infinite;
}
@keyframes cqWater { from { background-position-y: 0; } to { background-position-y: 7px; } }

/* 索道塔 + 缆绳 */
.cable-tower { position: absolute; z-index: 5; width: 5px; background: linear-gradient(180deg, #4a3a2a, #160f08); box-shadow: 0 0 8px rgba(0, 0, 0, 0.5); }
.cable-tower-l { left: 6.5%; bottom: 50%; height: 16%; }
.cable-tower-r { right: 8%; bottom: 53%; height: 22%; }
.cable-wire {
  position: absolute; left: 7%; right: 9%; top: 45%; height: 2px; z-index: 5;
  background: linear-gradient(90deg, rgba(255, 220, 180, 0), rgba(255, 225, 185, 0.55) 14%, rgba(255, 225, 185, 0.55) 86%, rgba(255, 220, 180, 0));
  transform: rotate(-1.6deg); transform-origin: left center; box-shadow: 0 0 6px rgba(255, 200, 120, 0.4);
}

/* 小红索道车厢（沿 --cross 滑过江）*/
.cable-car {
  position: absolute; z-index: 6;
  left: calc(7% + var(--cross) * 81%); top: calc(45% - var(--cross) * 3%);
  transform: translate(-50%, -50%) rotate(-2deg); animation: cqSway 3.4s ease-in-out infinite;
}
.car-arm { position: absolute; left: 50%; bottom: 100%; width: 3px; height: 16px; background: #c9b79a; transform: translateX(-50%); }
.car-glow { position: absolute; inset: -12px; border-radius: 14px; background: radial-gradient(circle, rgba(255, 170, 110, 0.45), transparent 70%); }
.car-body {
  position: relative; width: 48px; height: 36px; border-radius: 9px;
  background: linear-gradient(180deg, #ef5638, #b32c1c);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 26px rgba(255, 120, 80, 0.5), inset 0 -7px 12px rgba(0, 0, 0, 0.3);
}
.car-body::before {
  content: ''; position: absolute; left: 7px; right: 7px; top: 9px; height: 15px; border-radius: 4px;
  background: radial-gradient(circle, rgba(255, 242, 205, 0.95), rgba(255, 212, 150, 0.6));
  box-shadow: 0 0 16px rgba(255, 222, 150, 0.85);
}
@keyframes cqSway {
  0%, 100% { transform: translate(-50%, -50%) rotate(-3deg); }
  50%      { transform: translate(-50%, -50%) rotate(3deg); }
}

/* 沿途真实回忆（一处一幕，居中浮现）*/
.cable-mem { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.cmem {
  position: absolute; left: 50%; top: 41%; width: min(52vw, 230px); text-align: center;
  transform: translate(-50%, -50%) translateY(22px) scale(0.92); opacity: 0;
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}
.cmem.show { opacity: 1; transform: translate(-50%, -50%) translateY(0) scale(1); }
.cmem-frame {
  padding: 8px 8px 14px; background: linear-gradient(180deg, #fbf3e4, #efe2cc); border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.62); transform: rotate(-2deg); overflow: hidden;
}
.cmem-frame img { display: block; width: 100%; height: auto; max-height: 40vh; object-fit: cover; border-radius: 2px; }
.cmem-cap {
  margin: 0.9rem auto 0; max-width: min(86vw, 460px);
  font-family: var(--font-cn-serif); font-size: 1rem; line-height: 1.9; color: #fff;
  background: rgba(8, 10, 20, 0.5); padding: 8px 14px; border-radius: 12px;
  text-shadow: 0 1px 3px #000, 0 2px 14px rgba(0, 0, 0, 0.9);
}

/* HUD */
.cable-hud {
  position: absolute; left: 50%; bottom: 5.25rem; transform: translateX(-50%);
  z-index: 12; width: min(88%, 620px); text-align: center;
  padding: 14px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 206, 144, 0.42);
  background:
    linear-gradient(180deg, rgba(20, 13, 16, 0.78), rgba(7, 8, 15, 0.82)),
    radial-gradient(circle at 50% 0%, rgba(255, 154, 76, 0.24), transparent 64%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.45),
    0 0 34px rgba(255, 143, 66, 0.18),
    inset 0 1px 0 rgba(255, 244, 212, 0.18);
}
.cable-hud .tea-hud-tip {
  margin-bottom: 0.55rem;
  font-size: 1rem;
  letter-spacing: 3px;
  color: #fff0c8;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(255, 180, 90, 0.75),
    0 0 36px rgba(255, 118, 64, 0.42);
}
.cq-drag-cue {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 0.15rem auto 0.4rem;
  font-family: var(--font-cn-serif);
  font-size: 0.86rem;
  letter-spacing: 2px;
  color: rgba(255, 236, 202, 0.92);
}
.cq-drag-cue i {
  position: relative;
  display: inline-block;
  width: 112px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 190, 100, 0.22), rgba(255, 230, 165, 0.64));
  box-shadow: 0 0 18px rgba(255, 180, 90, 0.34);
}
.cq-drag-cue i::before {
  content: '';
  position: absolute;
  left: 4px; top: 50%;
  width: 18px; height: 18px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, #fff7d8 0%, #ffd06a 55%, #ff7e3d 100%);
  box-shadow: 0 0 18px rgba(255, 190, 88, 0.86);
  animation: cqDragDot 1.8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}
.cq-drag-cue i::after {
  content: '›';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-54%);
  color: #ffe4a8;
  font-size: 1.25rem;
  text-shadow: 0 0 14px rgba(255, 170, 80, 0.8);
}
@keyframes cqDragDot {
  0%   { left: 4px; opacity: 0.35; transform: translateY(-50%) scale(0.82); }
  18%  { opacity: 1; }
  76%  { left: 90px; opacity: 1; transform: translateY(-50%) scale(1); }
  100% { left: 90px; opacity: 0; transform: translateY(-50%) scale(0.9); }
}
.cq-hud-detail {
  margin: 0.15rem 0 0.62rem;
  font-family: var(--font-cn-serif);
  font-size: 0.82rem;
  line-height: 1.75;
  letter-spacing: 1px;
  color: rgba(255, 232, 200, 0.82);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.95);
}
.cable-progress {
  height: 6px; border-radius: 50px; overflow: hidden;
  background: rgba(255, 255, 255, 0.17);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.42);
}
.cable-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #ff8a42, #ffd97a, #fff0b8);
  box-shadow: 0 0 16px rgba(255, 180, 90, 0.9);
  transition: width 0.15s linear;
}

/* 靠岸：万家灯火铺开 */
.cable-scene.arrived .cable-pano { transform: scale(1.32); filter: brightness(1.16) saturate(1.2); transition: transform 3.4s ease, filter 3.4s ease; }
.cable-scene.arrived::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 40%, rgba(255, 200, 120, 0.2), transparent 70%); animation: fadeIn 2.4s ease;
}
.cable-scene.lettering .cmem { opacity: 0 !important; }

#cqReveal { background: radial-gradient(circle at 50% 45%, rgba(16, 10, 8, 0.86), rgba(4, 3, 4, 0.96)); }

@media (max-width: 768px) {
  .cmem { width: 64vw; }
  .car-body { width: 40px; height: 30px; }
  .cable-hud {
    bottom: 4.85rem;
    width: min(92%, 520px);
    padding: 12px 14px 14px;
  }
  .cable-hud .tea-hud-tip {
    font-size: 0.86rem;
    letter-spacing: 2px;
    line-height: 1.65;
  }
  .cq-drag-cue { gap: 9px; font-size: 0.78rem; }
  .cq-drag-cue i { width: 88px; }
  @keyframes cqDragDot {
    0%   { left: 4px; opacity: 0.35; transform: translateY(-50%) scale(0.82); }
    18%  { opacity: 1; }
    76%  { left: 66px; opacity: 1; transform: translateY(-50%) scale(1); }
    100% { left: 66px; opacity: 0; transform: translateY(-50%) scale(0.9); }
  }
  .cq-hud-detail {
    font-size: 0.74rem;
    line-height: 1.65;
  }
}
