/* ============================================================
   贵州云南 8 日旅行方案 —— 样式 v4「远征手账」
   贴纸 / 印章 / 拍立得 / 票根 · 6 套可切换配色 · 移动优先
   ============================================================ */

/* ---------- 主题变量 ---------- */
/* 默认：溪蓝 stream */
:root {
  --bg: #f6f6f0;
  --paper: #f7f3e6;
  --card: #fdfcf7;
  --primary: #2e6e91;
  --deep: #14303c;        /* 深色段落底 */
  --on-deep: #f6f6f0;     /* 深色段落上的文字 */
  --accent: #ff6b4a;
  --accent-deep: #e04a26;
  --ink: #101c16;
  --ink-40: rgba(16,28,22,.45);
  --ink-15: rgba(16,28,22,.15);
  --serif: Georgia, "Times New Roman", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", "KaiTi_GB2312", serif;
}
/* 扎染靛蓝 indigo */
[data-theme="indigo"] {
  --bg: #f4f4ec; --primary: #3d55a0; --deep: #1b2340; --on-deep: #f4f4ec;
  --accent: #ff7a45; --accent-deep: #e05a28; --ink: #14182a;
  --ink-40: rgba(20,24,42,.45); --ink-15: rgba(20,24,42,.15);
}
/* 青梅 plum */
[data-theme="plum"] {
  --bg: #f5f7f0; --primary: #47987a; --deep: #173a2c; --on-deep: #f5f7f0;
  --accent: #ff6b4a; --accent-deep: #e04a26; --ink: #101c16;
  --ink-40: rgba(16,28,22,.45); --ink-15: rgba(16,28,22,.15);
}
/* 雾蓝 mist */
[data-theme="mist"] {
  --bg: #f4f5f1; --primary: #64809f; --deep: #26313f; --on-deep: #f4f5f1;
  --accent: #ff7a4d; --accent-deep: #e05a2a; --ink: #161d26;
  --ink-40: rgba(22,29,38,.45); --ink-15: rgba(22,29,38,.15);
}
/* 紫藤 wisteria */
[data-theme="wisteria"] {
  --bg: #f6f5ef; --primary: #8371b0; --deep: #2c2440; --on-deep: #f6f5ef;
  --accent: #ff7a4d; --accent-deep: #e05a2a; --ink: #1c1826;
  --ink-40: rgba(28,24,38,.45); --ink-15: rgba(28,24,38,.15);
}
/* 抹茶 matcha */
[data-theme="matcha"] {
  --bg: #f7f7ee; --primary: #74975f; --deep: #2b3a22; --on-deep: #f7f7ee;
  --accent: #ff6b4a; --accent-deep: #e04a26; --ink: #182012;
  --ink-40: rgba(24,32,18,.45); --ink-15: rgba(24,32,18,.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s;
}

::selection { background: var(--accent); color: var(--bg); }

/* 数字一律等宽对齐 */
.td-n, .t-time, .ticket-sub, .activity-facts, .activity-time,
.stamp .s-num, .cd b, table, .story-count, .check-cat-progress,
.hero-chip .cd b, .ring-label span {
  font-variant-numeric: tabular-nums;
}

/* ---------------- 棋盘格饰边 ---------------- */

.checker {
  height: 12px;
  background: repeating-conic-gradient(var(--primary) 0% 25%, var(--bg) 0% 50%) 0 0 / 24px 24px;
}
.checker.flip {
  background: repeating-conic-gradient(var(--bg) 0% 25%, var(--deep) 0% 50%) 0 0 / 24px 24px;
}

/* ---------------- 登录页 ---------------- */

.login-body {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 400px;
  background: var(--card);
  border: 1px solid var(--ink-15);
  padding: 44px 32px 34px;
  text-align: center;
  box-shadow: 5px 5px 0 var(--ink-15);
}
.login-mark {
  font-family: var(--serif);
  font-size: 13px; letter-spacing: .5em;
  color: var(--accent-deep);
  margin-bottom: 18px;
}
.login-title {
  font-family: var(--serif);
  font-size: 26px; font-weight: 600; letter-spacing: .08em;
  color: var(--primary);
}
.login-sub {
  color: var(--ink-40); font-size: 12px;
  letter-spacing: .3em; margin: 10px 0 30px;
  text-transform: uppercase;
}
.login-card input {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--ink-15);
  border-radius: 0;
  font-size: 15px; font-family: var(--sans);
  color: var(--ink); background: var(--bg);
  transition: border-color .25s;
}
.login-card input:focus { outline: none; border-color: var(--primary); }
.login-card button {
  width: 100%; margin-top: 14px; padding: 13px;
  border: none; background: var(--primary); color: var(--bg);
  font-size: 14px; font-weight: 600; letter-spacing: .35em;
  cursor: pointer; font-family: var(--sans);
  transition: background .2s, transform .12s;
}
.login-card button:hover { background: var(--deep); }
.login-card button:active { transform: scale(.98); }
.login-error { color: var(--accent-deep); font-size: 13px; margin-top: 12px; }

/* ---------------- 顶栏 ---------------- */

.topbar {
  position: fixed; top: 16px; z-index: 100;
  right: max(14px, calc(50vw - 490px)); /* 与内容列右缘对齐，不随意漂在视口角 */
  display: flex; align-items: center; gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--deep) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--on-deep) 20%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(8, 14, 34, .28);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
body.topbar-hidden .topbar { transform: translateY(-220%); }

.save-status {
  font-size: 12px; color: var(--accent-deep); letter-spacing: .08em;
  margin-right: 4px; opacity: 0; transition: opacity .3s;
}
.save-status.show { opacity: 1; }

/* 按钮：文字轨道滑动 hover（第二行为橙色） */
.btn-pill {
  height: 34px; padding: 0 15px;
  border: 1px solid var(--ink-15); border-radius: 999px;
  background: var(--card); color: var(--ink);
  font-size: 12px; letter-spacing: .12em;
  cursor: pointer; font-family: var(--sans);
  text-decoration: none;
  display: inline-flex; align-items: flex-start;
  overflow: hidden;
  transition: border-color .25s;
}
.btn-pill .track { display: block; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.btn-pill .track > span { display: block; height: 34px; line-height: 34px; white-space: nowrap; }
.btn-pill .track > span:last-child { color: var(--accent-deep); }
.btn-pill:hover { border-color: var(--accent); }
.btn-pill:hover .track { transform: translateY(-34px); }
.btn-pill.active { background: var(--accent); border-color: var(--accent); }
.btn-pill.active .track > span { color: #fff; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px 24px 70px;
  overflow: hidden;
}
.hero-kicker {
  font-size: 10.5px; letter-spacing: .38em; color: var(--ink-40);
  text-transform: uppercase; margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(54px, 16.5vw, 116px);
  font-weight: 600; letter-spacing: .1em; line-height: 1.14;
  color: var(--primary);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-meta { margin-top: 16px; font-size: 13px; letter-spacing: .06em; color: var(--ink-40); max-width: 240px; }

/* 倒计时印章 */
.stamp {
  position: absolute; right: 6vw; top: 38vh;
  width: 116px; height: 116px;
  transform: rotate(-9deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 3px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  text-align: center;
}
.stamp::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid var(--accent); opacity: .5; border-radius: 50%;
}
.stamp .s-top { font-size: 9.5px; letter-spacing: .28em; }
.stamp .s-num { font-family: var(--serif); font-size: 40px; font-weight: 700; line-height: 1.05; }
.stamp .s-bot { font-size: 9.5px; letter-spacing: .2em; margin-top: 2px; }
.stamp.done { transform: rotate(-9deg) scale(.94); opacity: .8; }

/* 准备进度 chip */
.hero-chip {
  position: absolute; left: 24px; bottom: 26px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--ink-15);
  background: var(--card);
  box-shadow: 4px 4px 0 var(--ink-15);
}
.ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: var(--ink-15); }
.ring-fill {
  stroke: var(--accent); stroke-linecap: round;
  transition: stroke-dashoffset .8s cubic-bezier(.22,1,.36,1);
}
.ring-label { display: flex; flex-direction: column; gap: 1px; }
.ring-label span { font-family: var(--serif); font-size: 14px; color: var(--ink); }
.ring-label em { font-style: normal; font-size: 10px; letter-spacing: .2em; color: var(--ink-40); }

/* 贴纸 */
.sticker {
  position: absolute; z-index: 5;
  cursor: grab; touch-action: none; user-select: none;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.16));
  transition: filter .2s;
}
.sticker:active { cursor: grabbing; filter: drop-shadow(0 10px 16px rgba(0,0,0,.28)); }
.sticker .sk-fill { fill: var(--primary); }
.sticker .sk-cream { fill: var(--bg); }
.sticker .sk-accent { fill: var(--accent); }
.sticker .sk-line { stroke: var(--primary); }
.sticker text { fill: var(--bg); }
.sticker .t-accent { fill: var(--accent); }
.sticker .t-primary { fill: var(--primary); }
.sticker .t-deep { fill: var(--deep); }

.scroll-hint {
  position: absolute; right: 24px; bottom: 30px;
  font-size: 9.5px; letter-spacing: .34em; color: var(--ink-40); text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* ---------------- Section 通用 ---------------- */

.section { max-width: 980px; margin: 0 auto; padding: 56px 16px 0; }

.sec-head {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 14px; margin-bottom: 26px;
  border-bottom: 1px solid var(--ink-15);
}
.sec-no {
  font-family: var(--serif); font-size: 28px; line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.sec-head h2 {
  font-family: var(--serif); font-size: 24px; font-weight: 600;
  letter-spacing: .12em; color: var(--primary);
}
.sec-en {
  display: block; font-size: 10px; letter-spacing: .32em;
  color: var(--ink-40); margin-top: 3px; text-transform: uppercase;
}

/* 深色段落（全程演示 / 页脚） */
.section-deep {
  background: var(--deep); color: var(--on-deep);
  padding: 64px 16px 72px;
  transition: background .4s;
}
.section-deep .sec-head { border-bottom-color: color-mix(in srgb, var(--on-deep) 20%, transparent); max-width: 980px; margin-left: auto; margin-right: auto; }
.section-deep .sec-head h2 { color: var(--on-deep); }
.section-deep .sec-en { color: color-mix(in srgb, var(--on-deep) 40%, transparent); }

/* 滚动渐入（降级为背景动效） */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--d, 0ms);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------------- 全程演示（故事地图 · 双皮肤） ---------------- */

.story { max-width: 980px; margin: 0 auto; }

.story-stage {
  position: relative; aspect-ratio: 3 / 4;
  background: var(--paper);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--on-deep) 25%, transparent);
}

/* 场景名幽灵水印 */
.story-ghost {
  position: absolute; inset: 0;
  display: none; /* 隐藏背景透明大字（西南全景 / 贵阳市区 等） */
  align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: min(84px, 19vw); font-weight: 600; letter-spacing: .2em;
  white-space: nowrap;
  color: color-mix(in srgb, var(--primary) 8%, transparent);
  pointer-events: none; user-select: none;
}

.story-svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.story-svg.active { opacity: 1; }

/* —— 共享骨架 —— */
.st-land { fill: #f8f4e8; stroke: color-mix(in srgb, var(--primary) 35%, transparent); stroke-width: 1.4; }
.st-bound { fill: none; stroke: var(--ink-15); stroke-width: 1; stroke-dasharray: 3 4; }

.st-route-base { fill: none; stroke: color-mix(in srgb, var(--primary) 25%, transparent); stroke-width: 1.6; stroke-dasharray: 2 6; }
.st-route-draw {
  fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round;
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--accent) 50%, transparent));
}
.st-route-draw.st-done {
  stroke: #bfc7cd; /* 浅灰足迹：与进行中的主色路线明确区分，不抢眼 */
  stroke-width: 1.8; filter: none;
}
.st-veh-ghost { fill: var(--accent-deep); }

.st-vehicle { fill: var(--deep); stroke: none; transition: opacity .3s; }
.st-vehicle .st-veh { filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.st-vehicle .veh-body { fill: var(--deep); }
.st-vehicle .veh-line { fill: none; stroke: var(--paper); stroke-width: .9; }
.st-vehicle .veh-glass { fill: var(--paper); }

@keyframes halo-pulse {
  0%, 100% { opacity: .45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}
.st-poi .st-poi-halo {
  fill: color-mix(in srgb, var(--accent) 22%, transparent);
  opacity: 0; transition: opacity .3s;
  transform-box: fill-box; transform-origin: center;
}
.st-poi-mark {
  fill: none; stroke: var(--primary); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; opacity: .92;
  transition: stroke .3s;
}
.st-poi.on .st-poi-halo { opacity: 1; animation: halo-pulse 2s ease-in-out infinite; }
.st-poi.on .st-poi-mark { stroke: var(--accent); }

/* 酒店点：线条小床图标，与景点简笔画区分（线条更细，双枕/床脚细节才看得清） */
.st-poi-hotel .st-hotel-icon {
  fill: none; stroke: var(--primary); stroke-width: 1.15;
  stroke-linecap: round; stroke-linejoin: round; opacity: .92;
  transition: stroke .3s;
}
.st-poi-hotel.on .st-hotel-icon { stroke: var(--accent); opacity: 1; }

.st-poi-name {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", var(--serif);
  font-size: 10px; font-weight: 500; letter-spacing: .05em;
  fill: var(--deep);
  paint-order: stroke; stroke: color-mix(in srgb, var(--paper) 88%, transparent); stroke-width: 3px;
  transition: opacity .4s;
}
.st-poi-sub {
  font-family: var(--sans); font-size: 7.5px;
  fill: var(--ink-40);
  paint-order: stroke; stroke: color-mix(in srgb, var(--paper) 88%, transparent); stroke-width: 3px;
  transition: opacity .4s;
}
/* 标签永远固定显示在底图上，不随镜头淡出 */

/* —— 皮肤：水彩手绘（默认） —— */
.sk-amap { display: none; }
.wc-wash-b { fill: #9ec8d8; opacity: .5; filter: url(#wc-blur); }
.wc-wash-g { fill: #a9c9a2; opacity: .42; filter: url(#wc-blur); }
.wc-wash-t { fill: #d8c9a3; opacity: .45; filter: url(#wc-blur); }
.wc-ridge-far  { fill: none; stroke: #6a6a5c; stroke-width: .8; stroke-linecap: round; opacity: .3; }
.wc-ridge-mid  { fill: none; stroke: #4a4f45; stroke-width: 1; stroke-linecap: round; opacity: .5; }
.wc-ridge-near { fill: none; stroke: #33382f; stroke-width: 1.3; stroke-linecap: round; opacity: .8; }
.wc-hatch { stroke: #33382f; stroke-width: .7; stroke-linecap: round; opacity: .5; }
.wc-contour { fill: none; stroke: #8a8574; stroke-width: .7; stroke-dasharray: 1 3.5; opacity: .6; }
.wc-ink { fill: none; stroke: #3a3f3a; stroke-width: 1.1; stroke-linecap: round; opacity: .78; }
.wc-water { fill: none; stroke: #5a8fa8; stroke-width: 1.4; stroke-linecap: round; opacity: .8; }
.wc-water-thin { fill: none; stroke: #5a8fa8; stroke-width: 1.4; stroke-linecap: round; opacity: .45; }
.wc-lake { fill: #a9cfd9; opacity: .55; }
.wc-tree { fill: none; stroke: #4a5f46; stroke-width: 1; stroke-linecap: round; opacity: .75; }
/* 水彩皮肤下：路线改针线感 */
.story[data-map="watercolor"] .st-route-draw { stroke-dasharray: none; }
.story[data-map="watercolor"] .st-route-base { display: none; }
.story[data-map="watercolor"] .st-land { stroke-width: 1; }

/* —— 皮肤：高德清新雅致 —— */
.story[data-map="amap"] .sk-wc { display: none; }
.story[data-map="amap"] .sk-amap { display: block; }
.am-park  { fill: #c2e2b4; }
.am-park2 { fill: #d4eac8; }
.am-water { fill: #aedce9; }
.am-river { fill: none; stroke: #a8d4e3; stroke-width: 6; stroke-linecap: round; }
.am-block { fill: #e6e4dc; }
.am-block2{ fill: #dedcd3; }
.am-road-min-c { fill: none; stroke: #e3e1d9; stroke-width: 4.4; stroke-linecap: round; }
.am-road-min   { fill: none; stroke: #ffffff; stroke-width: 2.8; stroke-linecap: round; }
.am-road-maj-c { fill: none; stroke: #ffffff; stroke-width: 6; stroke-linecap: round; }
.am-road-maj   { fill: none; stroke: #fbe6a8; stroke-width: 4; stroke-linecap: round; }
.am-rail { fill: none; stroke: #b9b7ae; stroke-width: 2; stroke-dasharray: 6 4; }
.am-roadname {
  font-size: 8.5px; fill: #a3a19a;
  paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 2.5px;
}
/* 高德皮肤下：路线改导航蓝白描边 */
.story[data-map="amap"] .st-route-draw {
  stroke: #4a90d9; stroke-width: 3.4; filter: none;
}
.story[data-map="amap"] .st-route-draw.st-done { stroke: rgba(165, 178, 189, .8); }
.story[data-map="amap"] .st-route-base { stroke: rgba(255,255,255,.9); stroke-width: 6; stroke-dasharray: none; }
.story[data-map="amap"] .st-poi .st-poi-mark { stroke: #4a90d9; }
.story[data-map="amap"] .st-poi.on .st-poi-mark { stroke: #2b6cb0; }
.story[data-map="amap"] .st-poi-hotel .st-hotel-icon { stroke: #4a90d9; }
.story[data-map="amap"] .st-poi-hotel.on .st-hotel-icon { stroke: #2b6cb0; }
.story[data-map="amap"] .st-vehicle { fill: #4a90d9; }
.story[data-map="amap"] .st-vehicle .veh-body { fill: #4a90d9; }

/* 夜幕：每天行程结束回到酒店时降临，zzz 淡去后褪去表示天亮 */
.story-sky {
  position: absolute; inset: 0;
  pointer-events: none; background-color: transparent;
  transition: background-color 1.3s ease;
}
.story-sky.sleep { background-color: rgba(8, 12, 34, .8); }

/* 日期 + 时段说明（HUD 内联，深色底用亮色，不会被地图覆盖） */
.story-date {
  font-family: var(--serif); font-size: 11px; letter-spacing: .08em;
  color: color-mix(in srgb, var(--on-deep) 72%, transparent);
  white-space: nowrap;
}

/* 日出大太阳 + 白云：夜幕褪去时从画面下方升到上 1/3 处，停留后整体渐隐 */
.story-sun {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0; transition: opacity .45s ease;
}
.story-sun.up { opacity: 1; transition: opacity .3s ease; }
/* 渐隐阶段：只淡出透明度，animation fill 保留升起后的位置，
   避免移除 .up 时 transform 瞬间归零、太阳在画面中央（酒店处）闪现 */
.story-sun.up.fade { opacity: 0; transition: opacity .45s ease; }
.story-sun.up svg { animation: sunrise-up 1.5s cubic-bezier(.22, .8, .32, 1) both; }
.story-sun svg { width: 210px; height: auto; overflow: visible; }
.story-sun .sun-glow { fill: rgba(247, 183, 51, .3); stroke: none; }
.story-sun .sun-core {
  fill: #f6b23c; stroke: #d98e1f; stroke-width: 1.8;
  filter: drop-shadow(0 0 10px rgba(246, 178, 60, .75));
}
.story-sun .sun-rays {
  fill: none; stroke: #e8a33d; stroke-width: 3.4;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(232, 163, 61, .6));
}
.story-sun .sun-cloud {
  fill: rgba(255, 255, 255, .94);
  stroke: #e0cfa0; stroke-width: 1.3; stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(180, 150, 80, .3));
}
.story-sun .c1 { animation: cloud-drift 7s ease-in-out infinite alternate; }
.story-sun .c2 { animation: cloud-drift 9s ease-in-out -2s infinite alternate; }
.story-sun .c3 { animation: cloud-drift 8s ease-in-out -4s infinite alternate; }
@keyframes cloud-drift {
  from { transform: translateX(-5px); }
  to { transform: translateX(6px); }
}
@keyframes sunrise-up {
  0% { transform: translateY(90px) scale(.78); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(-118px) scale(1); opacity: 1; }
}

/* 从头播放按钮 */
.story-restart { font-size: 14px; line-height: 1; }

/* 睡觉 zzz：夜幕蒙版之上的独立覆盖层（不被压暗），三个 z 依次升起，
   细线条斜体 + 微光晕，睡觉时定位到床图标右上方 */
.story-zzz {
  position: absolute; z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity .7s;
}
.story-zzz.on { opacity: 1; transition: opacity .4s; }
.story-zzz svg { display: block; overflow: visible; height: auto; }
.story-zzz text {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  fill: #ffedb6;
  filter: drop-shadow(0 0 2px rgba(255, 224, 138, .8));
  opacity: 0;
  animation: zzz-rise 1.8s ease-in-out infinite;
}
.story-zzz .z1 { font-size: 8.5px; }
.story-zzz .z2 { font-size: 12px; animation-delay: .55s; }
.story-zzz .z3 { font-size: 16.5px; animation-delay: 1.1s; }
@keyframes zzz-rise {
  0% { opacity: 0; transform: translateY(2px); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(3px, -6px); }
}

/* HUD 控制条 */
.story-hud {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 2px 0;
  max-width: 980px; margin: 0 auto;
}
.story-controls { display: flex; gap: 5px; }
.story-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--on-deep) 25%, transparent);
  background: transparent; color: var(--on-deep);
  font-size: 14px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  transition: border-color .2s, color .2s;
}
.story-btn:hover { border-color: var(--accent); color: var(--accent); }
.story-btn.playing { border-color: var(--accent); color: var(--accent); }
.story-play::before { content: "▶"; font-size: 13px; }
.story-play.playing::before { content: "❚❚"; font-size: 11px; }

.story-scene {
  margin-left: auto;
  font-size: 10px; letter-spacing: .12em;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.story-count {
  font-family: var(--serif); font-size: 11.5px;
  color: color-mix(in srgb, var(--on-deep) 50%, transparent);
  white-space: nowrap;
}

/* 步骤进度线（一段段点亮） */
.story-bar {
  display: flex; gap: 4px;
  padding: 13px 2px 0;
  max-width: 980px; margin: 0 auto;
  cursor: pointer;
}
.story-bar i {
  display: none; /* 兼容旧结构 */
}
.story-bar .seg {
  height: 3px; flex: 1; border-radius: 2px;
  background: color-mix(in srgb, var(--on-deep) 18%, transparent);
  transition: background .4s;
}
.story-bar .seg.on { background: var(--accent); }

/* 信息卡：拍立得 + 文字 */
.story-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 2px 0;
  max-width: 980px; margin: 0 auto;
}
.story-card.swap .polaroid { animation: card-in .55s cubic-bezier(.22,1,.36,1); }
.story-card.swap .story-card-text { animation: card-in .55s cubic-bezier(.22,1,.36,1); }
@keyframes card-in {
  from { opacity: 0; transform: translateY(10px) rotate(-2.5deg); }
  to   { opacity: 1; transform: translateY(0) rotate(-2.5deg); }
}
.story-card.swap .story-card-text { animation-name: card-in-t; }
@keyframes card-in-t {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.polaroid {
  flex-shrink: 0; width: 132px;
  background: #fff;
  padding: 7px 7px 0;
  transform: rotate(-2.5deg);
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.polaroid.r2 { transform: rotate(1.8deg); }
.polaroid img { width: 100%; height: 106px; object-fit: cover; display: block; }
.polaroid figcaption {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 1px 7px;
  font-family: var(--serif); font-size: 10.5px; color: #2b2b26;
}
.polaroid figcaption .frame { font-size: 8px; letter-spacing: .12em; color: rgba(43,43,38,.5); font-variant-numeric: tabular-nums; }
.polaroid.blank .blank-box {
  height: 106px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: repeating-linear-gradient(-45deg, #f2eee1 0 6px, #ece7d7 6px 12px);
  color: var(--ink-40); gap: 3px;
}
.polaroid.blank .glyph { font-family: var(--serif); font-size: 20px; color: color-mix(in srgb, var(--primary) 40%, transparent); }
.polaroid.blank .blank-label { font-size: 9.5px; letter-spacing: .18em; color: var(--ink-40); }

.story-card-text { flex: 1; min-width: 0; }
.story-card-text h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .04em;
  color: var(--on-deep);
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.story-chip {
  font-family: var(--sans); font-size: 10.5px; font-weight: 400; letter-spacing: .12em;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px; padding: 2px 9px;
}
.story-card-text p {
  margin-top: 7px; font-size: 13px;
  color: color-mix(in srgb, var(--on-deep) 72%, transparent);
  line-height: 1.7;
}
.story-goto {
  margin-top: 12px; height: 36px; padding: 0 18px;
  border: none; background: var(--accent); color: #fff;
  border-radius: 999px; font-size: 12.5px; letter-spacing: .08em;
  cursor: pointer; font-family: var(--sans); font-weight: 600;
  overflow: hidden; display: inline-flex; align-items: flex-start;
  transition: background .2s;
}
.story-goto .track { display: block; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.story-goto .track > span { display: block; height: 36px; line-height: 36px; white-space: nowrap; }
.story-goto:hover { background: var(--accent-deep); }
.story-goto:hover .track { transform: translateY(-36px); }

/* ---------------- 重要提醒 ---------------- */

.reminders { display: grid; grid-template-columns: 1fr; gap: 0; }
.reminder {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 4px;
  border-top: 1px solid var(--ink-15);
  font-size: 13.5px; color: var(--ink);
}
.reminder:last-child { border-bottom: 1px solid var(--ink-15); }
.reminder::before { content: "★"; color: var(--accent); flex-shrink: 0; }

/* ---------------- 每日行程（票根卡） ---------------- */

#days { position: relative; }

/* 吸顶日期导航：检票口样式 */
.day-nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; gap: 8px; overflow-x: auto;
  margin: 0 -16px; padding: 10px 16px 12px;
  background: var(--bg);
  scrollbar-width: none;
  transition: background .4s;
}
.day-nav::-webkit-scrollbar { display: none; }
.day-nav-btn {
  flex-shrink: 0;
  display: flex; align-items: baseline; gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--ink-15);
  background: var(--card);
  cursor: pointer; font-family: var(--sans); color: var(--ink);
  transition: background .25s, border-color .25s;
}
.day-nav-btn .nb-d {
  font-family: var(--serif); font-weight: 700; font-size: 14px;
  color: var(--primary); font-variant-numeric: tabular-nums;
}
.day-nav-btn .nb-date { font-size: 10.5px; color: var(--ink-40); white-space: nowrap; }
.day-nav-btn.active { background: var(--accent); border-color: var(--accent); }
.day-nav-btn.active .nb-d, .day-nav-btn.active .nb-date { color: #fff; }

.day-track {
  display: flex; align-items: flex-start; gap: 14px;
  overflow-x: auto;
  overflow-y: hidden; /* 必须显式：overflow-x:auto 会把 y 拉成 auto，
                         高卡片撑出的内部垂直死区会吃掉滚轮（页面不动） */
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 6px 2px 12px;
  transition: height .35s cubic-bezier(.22,1,.36,1); /* 高度跟随当前票根卡，避免短卡下方长空白 */
}
.day-track::-webkit-scrollbar { display: none; }
.day { flex: 0 0 100%; scroll-snap-align: start; }

/* 票根 */
.ticket {
  position: relative;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  box-shadow: 4px 4px 0 var(--ink-15);
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 86px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
}
.ticket::before { left: -11px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -11px; clip-path: inset(0 50% 0 0); }
.ticket-tear { border-top: 1.5px dashed color-mix(in srgb, var(--primary) 35%, transparent); margin: 0 16px; }

.ticket-head { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px 13px; }
.ticket-day { font-family: var(--serif); line-height: 1; display: flex; flex-direction: column; flex-shrink: 0; }
.ticket-day .td-l { font-size: 9px; letter-spacing: .3em; color: var(--ink-40); text-transform: uppercase; }
.ticket-day .td-n { font-size: 42px; font-weight: 700; color: var(--accent); }
.ticket-head-info { flex: 1; min-width: 0; padding-top: 3px; }
.ticket-title {
  font-family: var(--serif); font-size: 17.5px; font-weight: 600;
  letter-spacing: .04em; color: var(--primary);
}
.ticket-sub { font-size: 12px; color: var(--ink-40); margin-top: 3px; }
.ticket-sub .city { color: var(--accent-deep); letter-spacing: .06em; }
.ticket-bar {
  flex-shrink: 0; width: 38px; height: 34px; margin-top: 4px;
  background: repeating-linear-gradient(90deg,
    var(--primary) 0 2px, transparent 2px 4px,
    var(--primary) 4px 7px, transparent 7px 9px,
    var(--primary) 9px 10px, transparent 10px 14px);
}

.ticket-body { padding: 13px 18px 18px; }

.block-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: .28em; color: var(--ink-40);
  margin: 18px 0 4px; text-transform: uppercase;
  font-variant-caps: small-caps;
}
.block-label::before { content: "+"; color: var(--accent); font-size: 12px; letter-spacing: 0; }
.block-label:first-child { margin-top: 0; }

/* 交通：报纸式分行 */
.transport {
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--ink-15);
  font-size: 13.5px;
}
.transport .t-icon { flex-basis: 100%; margin-bottom: -4px; display: flex; }
.transport .t-icon svg { width: 16px; height: 16px; }
.transport .t-icon svg * { stroke: var(--primary); }
.transport .t-time { font-family: var(--serif); color: var(--accent-deep); font-weight: 700; white-space: nowrap; }
.transport .t-name { font-weight: 600; color: var(--ink); }
.transport .t-name .route { font-weight: 400; color: var(--ink-40); margin-left: 6px; }
.transport .t-detail { color: var(--ink-40); font-size: 12.5px; flex-basis: 100%; }
.transport .t-detail span + span::before { content: " · "; }
.transport .t-note { color: var(--ink-40); font-size: 12px; flex-basis: 100%; }

/* 住宿 */
.hotel-row {
  display: flex; gap: 10px; align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--ink-15);
  font-size: 13.5px; color: var(--ink);
}
.hotel-row .h-icon { color: var(--primary); flex-shrink: 0; }
.hotel-input {
  display: none; width: 100%;
  padding: 8px 12px; margin-top: 6px;
  border: 1px dashed color-mix(in srgb, var(--primary) 45%, transparent);
  background: var(--bg); font-family: var(--sans); font-size: 13px; color: var(--ink);
}
.hotel-input:focus { outline: none; border-style: solid; }
body.editing .hotel-text { display: none; }
body.editing .hotel-input { display: block; }

/* 景点：拍立得 + 文字 */
.activity { padding: 14px 0; border-top: 1px solid var(--ink-15); }
.polaroid-row {
  display: flex; gap: 12px;
  overflow-x: auto; scrollbar-width: none;
  padding: 8px 2px 12px;
}
.polaroid-row::-webkit-scrollbar { display: none; }
.polaroid-row .polaroid { width: 128px; }
.polaroid-row .polaroid img { height: 96px; }
.polaroid-row .polaroid.blank .blank-box { height: 96px; }

.activity-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.activity-time {
  flex-shrink: 0;
  font-size: 10.5px; letter-spacing: .1em;
  color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px; padding: 2px 10px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.activity-name {
  font-weight: 600; font-size: 16.5px; font-family: var(--serif);
  letter-spacing: .04em; color: var(--primary);
}
.activity-desc { font-size: 13.5px; color: var(--ink-40); margin-top: 4px; }
.activity-facts {
  display: flex; gap: 16px; margin-top: 6px;
  font-size: 12px; color: var(--ink-40); flex-wrap: wrap;
}
.activity-facts b { color: var(--ink); font-weight: 500; }

/* 拍照攻略（可折叠，来自旅拍攻略第四部分） */
.photo-guide {
  margin-top: 12px;
  border: 1px dashed color-mix(in srgb, var(--primary) 40%, transparent);
  background: color-mix(in srgb, var(--primary) 4%, transparent);
}
.photo-guide summary {
  cursor: pointer; list-style: none; user-select: none;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 9px 14px;
  font-family: var(--serif); font-size: 13.5px; color: var(--primary);
}
.photo-guide summary::-webkit-details-marker { display: none; }
.pg-summary-label { font-weight: 700; letter-spacing: .08em; }
.pg-summary-label::before {
  content: "▸"; display: inline-block; margin-right: 8px;
  color: var(--accent); transition: transform .25s;
}
.photo-guide[open] .pg-summary-label::before { transform: rotate(90deg); }
.pg-head { font-size: 11.5px; color: var(--ink-40); letter-spacing: .03em; }
.pg-count {
  margin-left: auto; flex-shrink: 0;
  font-size: 10.5px; letter-spacing: .08em; color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px; padding: 1px 9px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.pg-body {
  padding: 2px 14px 12px;
  border-top: 1px dashed color-mix(in srgb, var(--primary) 25%, transparent);
}
.pg-shot { padding: 9px 0 7px; }
.pg-shot + .pg-shot { border-top: 1px dotted var(--ink-15); }
.pg-shot-name { font-family: var(--serif); font-size: 13.5px; color: var(--ink); }
.pg-shot-name b { color: var(--accent-deep); }
.pg-row { display: flex; gap: 8px; margin-top: 5px; font-size: 12.5px; line-height: 1.75; }
.pg-label {
  flex-shrink: 0; align-self: flex-start; margin-top: 2.5px;
  font-size: 10px; letter-spacing: .1em; color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 3px; padding: 0 5px;
}
.pg-text { color: var(--ink); }
.pg-text b { color: var(--primary); font-weight: 600; }
.pg-note {
  margin-top: 7px; padding: 4px 0 4px 12px;
  font-size: 12px; line-height: 1.7; color: var(--accent-deep);
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
}
.pg-note::before { content: "注意 · "; font-weight: 600; }

/* 相机速查卡（04 板块，外框复用拍照攻略样式，内层小节更轻） */
.camera-guide { margin-top: 26px; }
.camera-guide .pg-body { padding-bottom: 6px; }
.cg-block { border-top: 1px dotted var(--ink-15); }
.cg-block summary {
  cursor: pointer; list-style: none; user-select: none;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 9px 0;
  font-family: var(--serif); font-size: 13px; color: var(--primary);
}
.cg-block summary::-webkit-details-marker { display: none; }
.cg-block-label { font-weight: 600; letter-spacing: .05em; }
.cg-block-label::before {
  content: "▸"; display: inline-block; margin-right: 7px;
  color: var(--accent); transition: transform .25s;
}
.cg-block[open] .cg-block-label::before { transform: rotate(90deg); }
.cg-block-hint { margin-left: auto; font-size: 10.5px; color: var(--ink-40); letter-spacing: .04em; }
.cg-block-body { padding: 0 0 8px 4px; }
.cg-list { margin: 0; padding-left: 20px; font-size: 12.5px; line-height: 1.8; color: var(--ink); }
.cg-list li { margin-top: 3px; }
.cg-list b { color: var(--primary); font-weight: 600; }
.cg-group + .cg-group { margin-top: 8px; }
.cg-group-name {
  font-family: var(--serif); font-size: 12px; letter-spacing: .08em;
  color: var(--accent-deep); margin-bottom: 2px;
}
.cg-group-name::before { content: "◆ "; font-size: 9px; vertical-align: 1.5px; }
.cg-block-body .pg-note { margin-top: 8px; }
.cg-block-body table { min-width: 430px; }

/* 注意事项 */
.tips-box { margin-top: 10px; }
.tips-display {
  font-size: 13px; color: var(--ink);
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
  white-space: pre-wrap;
}
.tips-display:empty { background: none; border-left-color: var(--ink-15); }
.tips-display:empty::before { content: "游玩注意事项 · 待补充"; color: var(--ink-40); font-size: 12.5px; }
.tips-input {
  display: none; width: 100%; min-height: 64px; margin-top: 6px;
  padding: 10px 13px;
  border: 1px dashed color-mix(in srgb, var(--primary) 45%, transparent);
  background: var(--bg);
  font-family: var(--sans); font-size: 13px; color: var(--ink);
  line-height: 1.65; resize: vertical;
}
.tips-input:focus { outline: none; border-style: solid; }
body.editing .tips-display { display: none; }
body.editing .tips-input { display: block; }

/* 图片编辑 */
.img-edit { display: none; margin-top: 8px; }
body.editing .img-edit { display: block; }
.img-edit input {
  width: 100%; padding: 8px 12px;
  border: 1px dashed var(--ink-15);
  font-size: 12px; font-family: var(--sans); color: var(--ink-40);
  background: var(--bg);
}
.img-edit input:focus { outline: none; border-color: var(--primary); }

/* 美食：虚线分栏 */
.meals { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink-15); }
.meal { padding: 11px 2px; border-bottom: 1px dashed var(--ink-15); }
.meal-label {
  font-size: 10px; letter-spacing: .26em; color: var(--accent-deep);
  margin-bottom: 3px; font-variant-caps: small-caps; text-transform: uppercase;
}
.meal-value { font-size: 13.5px; color: var(--ink); min-height: 22px; white-space: pre-wrap; }
.meal-value:empty::before { content: "待补充"; color: var(--ink-40); font-size: 12.5px; }
.meal-input {
  display: none; width: 100%;
  border: none; border-bottom: 1px dashed color-mix(in srgb, var(--primary) 50%, transparent);
  background: transparent; font-family: var(--sans); font-size: 13.5px;
  color: var(--ink); padding: 2px 0;
}
.meal-input:focus { outline: none; border-bottom-style: solid; }
body.editing .meal-value { display: none; }
body.editing .meal-input { display: block; }

/* ---------------- Check List ---------------- */

.check-cat {
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  box-shadow: 4px 4px 0 var(--ink-15);
  margin-bottom: 16px;
}
.check-cat-head {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px;
  cursor: pointer; user-select: none; min-height: 54px;
}
.check-cat-title {
  font-family: var(--serif); font-weight: 600; font-size: 16px;
  letter-spacing: .06em; color: var(--primary); flex: 1;
}
.ring-mini { width: 26px; height: 26px; }
.ring-mini circle { fill: none; stroke-width: 2.5; }
.ring-mini .rb { stroke: var(--ink-15); }
.ring-mini .rf {
  stroke: var(--accent); stroke-linecap: round;
  stroke-dasharray: 56.55; stroke-dashoffset: 56.55;
  transform: rotate(-90deg); transform-origin: center;
  transition: stroke-dashoffset .5s cubic-bezier(.22,1,.36,1);
}
.check-cat-progress { font-size: 12.5px; color: var(--ink-40); font-family: var(--serif); }
.check-cat-arrow { color: var(--ink-40); transition: transform .25s; font-size: 11px; }
.check-cat.collapsed .check-cat-arrow { transform: rotate(-90deg); }
.check-cat.collapsed .check-cat-body { display: none; }
.check-cat-note { padding: 0 18px 8px; font-size: 12.5px; color: var(--ink-40); }

.check-item {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 11px 18px;
  border-top: 1px solid var(--ink-15);
  cursor: pointer; transition: background .15s; min-height: 44px;
}
.check-item:hover { background: color-mix(in srgb, var(--primary) 5%, transparent); }

.checkbox {
  flex-shrink: 0; width: 21px; height: 21px; margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-40);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
/* 对勾：描边一笔画出 */
.checkbox svg {
  width: 11px; height: 11px;
  stroke: #fff; stroke-width: 3.2; fill: none;
  stroke-dasharray: 24; stroke-dashoffset: 24;
  transition: stroke-dashoffset .3s ease .05s;
}
.check-item.done .checkbox { background: var(--accent); border-color: var(--accent); }
.check-item.done .checkbox svg { stroke-dashoffset: 0; }
.check-text { flex: 1; font-size: 14px; color: var(--ink); transition: color .2s; }
.check-item.done .check-text {
  color: var(--ink-40); text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.check-del {
  display: none; border: none; background: none;
  color: var(--accent-deep); font-size: 12px; cursor: pointer;
  padding: 6px 10px; border-radius: 6px; flex-shrink: 0;
}
.check-del:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
body.editing .check-item.custom .check-del { display: block; }

.check-add { display: none; padding: 13px 18px 16px; border-top: 1px dashed var(--ink-15); gap: 8px; }
body.editing .check-add { display: flex; }
.check-add input {
  flex: 1; padding: 10px 13px;
  border: 1px dashed var(--ink-15);
  font-size: 13px; font-family: var(--sans); color: var(--ink);
  background: var(--bg);
}
.check-add input:focus { outline: none; border-color: var(--primary); border-style: solid; }
.check-add button {
  padding: 9px 18px; border: none;
  background: var(--primary); color: var(--bg);
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--sans);
}
.check-add button:hover { background: var(--deep); }

/* ---------------- 表格（天气/行李/预算）：报纸尺规 ---------------- */

.table-card {
  border-top: 2px solid var(--primary);
  margin-bottom: 26px;
}
.table-card h3 {
  font-family: var(--serif); font-size: 17px; letter-spacing: .08em;
  color: var(--primary);
  padding: 13px 2px 0;
}
.table-card .table-note { padding: 4px 2px 0; font-size: 12.5px; color: var(--ink-40); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table {
  width: 100%; border-collapse: collapse;
  margin-top: 10px; font-size: 13px; min-width: 480px;
}
th {
  text-align: left; font-weight: 500;
  color: var(--ink-40); font-size: 10.5px; letter-spacing: .18em;
  padding: 8px 12px 8px 2px;
  border-bottom: 1px solid var(--primary);
  white-space: nowrap;
  font-variant-caps: small-caps;
}
td {
  padding: 9px 12px 9px 2px;
  border-bottom: 1px solid var(--ink-15);
  color: var(--ink-40);
}
td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
tr.total-row td {
  font-weight: 700; color: var(--accent-deep);
  border-bottom: 2px solid var(--accent);
  font-family: var(--serif);
}

.notes-list { padding: 8px 2px 4px; }
.notes-list li { font-size: 13.5px; color: var(--ink-40); margin: 8px 0 0 18px; }
.notes-list li::marker { color: var(--accent); }

/* ---------------- 风格选择器 ---------------- */

.tp-panel {
  position: fixed; top: 76px; right: max(14px, calc(50vw - 490px)); z-index: 110;
  width: min(300px, calc(100vw - 24px));
  background: var(--card);
  border: 1px solid var(--ink-15);
  box-shadow: 6px 6px 0 var(--ink-15);
  padding: 16px 16px 14px;
  display: none;
}
.tp-panel.open { display: block; animation: tp-in .25s cubic-bezier(.22,1,.36,1); }
@keyframes tp-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.tp-title {
  font-size: 10.5px; letter-spacing: .28em; color: var(--ink-40);
  text-transform: uppercase; margin-bottom: 10px;
}
.tp-title + .tp-row { margin-top: 0; }
.tp-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tp-sw {
  width: 40px; cursor: pointer; border: none; background: none; padding: 0;
  font-family: var(--sans);
}
.tp-sw i {
  display: block; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
  transition: transform .15s;
}
.tp-sw span { display: block; font-size: 9.5px; color: var(--ink-40); margin-top: 4px; letter-spacing: .05em; }
.tp-sw:hover i { transform: scale(1.08); }
.tp-sw.on i { border-color: var(--accent); }
.tp-sw.on span { color: var(--accent-deep); }
.tp-map {
  flex: 1; min-width: 110px;
  border: 1px solid var(--ink-15);
  background: var(--bg);
  padding: 9px 10px; cursor: pointer;
  font-family: var(--sans); font-size: 12px; color: var(--ink);
  text-align: left;
  transition: border-color .2s;
}
.tp-map b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.tp-map span { font-size: 10.5px; color: var(--ink-40); }
.tp-map.on { border-color: var(--accent); color: var(--accent-deep); }
.tp-map.on span { color: var(--accent-deep); }
.tp-hint { margin-top: 12px; font-size: 10.5px; color: var(--ink-40); }

/* ---------------- 页脚超大字 ---------------- */

.wordmark {
  margin-top: 84px;
  background: var(--deep); color: var(--on-deep);
  overflow: hidden; padding: 44px 0 8px;
  transition: background .4s;
}
.wordmark h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 23vw; letter-spacing: .06em; line-height: .95;
  white-space: nowrap; text-align: center;
  transform: translateY(16%);
}
.wordmark h2 em { font-style: normal; color: var(--accent); }
.wordmark .wm-sub {
  text-align: center; font-size: 10.5px; letter-spacing: .4em;
  color: color-mix(in srgb, var(--on-deep) 45%, transparent);
  padding-bottom: 20px; text-transform: uppercase;
}

/* ---------------- 桌面端增强 ---------------- */

@media (min-width: 720px) {
  .hero { padding: 140px 40px 90px; }
  .hero-meta { font-size: 14px; max-width: 460px; }
  .stamp { width: 136px; height: 136px; right: 10vw; top: 34vh; }
  .stamp .s-num { font-size: 48px; }
  .hero-chip { left: 40px; bottom: 34px; padding: 12px 20px; }
  .topbar { top: 22px; right: max(20px, calc(50vw - 490px)); }

  .section { padding: 72px 24px 0; }
  .sec-head { gap: 18px; margin-bottom: 32px; }
  .sec-head h2 { font-size: 26px; }
  .sec-no { font-size: 33px; }
  .section-deep { padding: 80px 24px 88px; }

  .story-hud, .story-bar, .story-card { padding-left: 0; padding-right: 0; }
  .story-hud { gap: 10px; }
  .story-controls { gap: 8px; }
  .story-btn { width: 42px; height: 42px; font-size: 17px; }
  .story-scene { font-size: 11px; letter-spacing: .18em; padding: 4px 13px; }
  .story-count { font-size: 12.5px; }
  .story-date { font-size: 12.5px; letter-spacing: .1em; }
  .story-stage { aspect-ratio: 4 / 3.2; }
  .polaroid { width: 150px; }
  .polaroid img { height: 118px; }

  .ticket-head { padding: 20px 24px 15px; gap: 18px; }
  .ticket-day .td-n { font-size: 50px; }
  .ticket-title { font-size: 20px; }
  .ticket-body { padding: 16px 24px 22px; }
  .ticket::before, .ticket::after { top: 100px; }

  .transport .t-icon { flex-basis: auto; margin-bottom: 0; }
  .transport .t-detail { flex-basis: auto; }
  .transport { flex-wrap: nowrap; align-items: center; gap: 14px; }
  .transport .t-note { flex-basis: 100%; }

  .meals { grid-template-columns: repeat(3, 1fr); }
  .meal { border-bottom: none; border-left: 1px dashed var(--ink-15); padding: 11px 14px; }
  .meal:first-child { border-left: none; }

  .check-cat-head { padding: 16px 22px; }
  .check-item { padding: 11px 22px; }
  .check-cat-note { padding: 0 22px 8px; }
  .check-add { padding: 13px 22px 17px; }

  th { padding-right: 22px; }
  td { padding-right: 22px; }

  .wordmark h2 { font-size: 19vw; }
}
