/* =====================================================================
   瓷行万里 ui-12 · 样式
   原则：纸白地 + 青花墨 + 每屏一种强调色；投影优先排版，再收拢到手机。
   动效只驱动 transform / opacity；不使用任何字体文件、外链与深色主题。
   ===================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  color-scheme: only light;

  /* 色彩：纸 / 墨 / 一种强调色（钴蓝，取自瓷帆色卡 #3354A6 加深） */
  --paper: #F6F1E6;
  --paper-2: #EEE7D8;
  --card: #FFFCF6;
  --ink: #1C2733;          /* 正文：13.4:1 于 --paper */
  --ink-2: #4A5562;        /* 次要文字：6.7:1 于 --paper */
  --rule: #D3C8B2;
  --rule-2: #E4DCCB;
  --accent: #2448A6;       /* 7.3:1 于 --paper */
  --accent-ink: #1B357D;
  --band: #1C2E5C;         /* 深色页脚带 */
  --on-band: #FFFFFF;
  --on-band-2: #CBD5EC;
  --accent-tint: #DAE2F6;
  --gold: #E9C46A;         /* 深底上的焦点环 */
  --focus: #2448A6;

  /* 字体：只用系统中文字体 */
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Hiragino Sans GB", system-ui, sans-serif;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STZhongsong", "STSong", "SimSun", serif;

  /* 字号：1.2 比例，基准 16px。xs 为投影可读下限（12px），其余严格按比例 */
  --t-xs: 0.75rem;     /* 12    标签下限 */
  --t-sm: 0.8333rem;   /* 13.33 */
  --t-base: 1rem;      /* 16    正文 */
  --t-md: 1.2rem;      /* 19.2 */
  --t-lg: 1.44rem;     /* 23.04 */
  --t-xl: 1.728rem;    /* 27.65 */
  --t-2xl: 2.0736rem;  /* 33.18 */
  --t-3xl: 2.4883rem;  /* 39.81 */
  --t-4xl: 2.986rem;   /* 47.78 */
  --t-5xl: 3.5832rem;  /* 57.33 */

  /* 间距 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1360px;
  --radius: 14px;
  --header-h: 68px;
  --tabbar-h: 0px;

  /* 动效 */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 160ms;
  --t-mid: 300ms;
  --t-slow: 440ms;
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.is-locked, html.is-locked body { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.8;
  padding-bottom: var(--tabbar-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-fill { fill: currentColor; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.colophon :focus-visible { outline-color: var(--gold); }
/* 脚本移入焦点的标题（tabindex=-1）不是交互控件，不画焦点环；按钮/链接照常显示 */
main:focus-visible, [tabindex="-1"]:focus-visible { outline: none; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 文字样式：标签可加字距，正文段落不加 */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: var(--t-sm); letter-spacing: .14em; color: var(--ink-2); font-weight: 600;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .7; }
.display {
  font-family: var(--serif); font-weight: 600; font-synthesis: none;
  line-height: 1.22; letter-spacing: .02em; color: var(--ink);
}
.lead { font-size: var(--t-md); line-height: 1.8; color: var(--ink-2); max-width: 32em; }
.body { max-width: 38em; }
.body + .body { margin-top: var(--s4); }
.caption { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.7; }
.label { font-size: var(--t-xs); letter-spacing: .08em; color: var(--ink-2); font-weight: 600; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: var(--t-base); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--accent-ink); border-color: currentColor; }
.btn-ghost:hover { background: var(--accent-tint, #E3E8F6); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--paper-2); color: var(--ink-2); border-color: var(--rule); cursor: default; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--rule); background: var(--card); color: var(--ink);
}
.icon-btn:hover { border-color: var(--ink-2); }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--accent-ink); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link .ic { width: 18px; height: 18px; }

/* 筛选芯片 */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--rule); background: var(--card); color: var(--ink);
  font-size: var(--t-base); display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip small { font-size: var(--t-xs); opacity: .85; }

/* ---------- 3. 页眉与导航 ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper); border-bottom: 1px solid var(--rule-2);
}
.masthead-in {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
}
.brand { display: flex; align-items: center; min-height: 44px; flex: none; border-radius: 6px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: var(--s1); }
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: var(--t-base); font-weight: 500;
}
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav .ic { width: 20px; height: 20px; }
.nav-count {
  display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: var(--t-xs); font-weight: 700; line-height: 1;
}
.nav a[aria-current="page"] .nav-count { background: #fff; color: var(--ink); }
.nav-count.is-pop { animation: pop var(--t-slow) var(--ease); }

/* 存储状态提示 */
.notice { background: #FFF4D6; border-bottom: 1px solid #E8D29A; color: #4A3A10; }
.notice-in { max-width: var(--maxw); margin-inline: auto; padding: 10px var(--gutter); display: flex; gap: var(--s3); align-items: center; font-size: var(--t-sm); line-height: 1.6; }
.notice-in p { flex: 1; }
.notice .icon-btn { background: transparent; border-color: #CDB675; color: #4A3A10; width: 44px; height: 44px; }

/* ---------- 4. 页面通用：展墙标题 ---------- */
main { display: block; min-height: 60vh; overflow-x: clip; }  /* clip 不产生滚动容器，不影响 sticky */
.page { padding-block: var(--s7) var(--s8); }
.is-enter { animation: rise var(--t-mid) var(--ease) both; }
.wall { display: grid; gap: var(--s4); margin-bottom: var(--s7); max-width: 46em; }
.wall h1 { font-size: clamp(var(--t-2xl), 3.6vw, var(--t-4xl)); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.section-title h2 { font-size: var(--t-xl); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: var(--s8) 0 var(--s7); }

/* ---------- 5. 首页：五人即年表 ---------- */
.home { padding-block: var(--s6) var(--s7); }
.home-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); align-items: end; }
.home-copy { display: grid; gap: var(--s5); }
.home-copy h1 { font-size: clamp(var(--t-3xl), 5vw, var(--t-5xl)); line-height: 1.16; }
.home-copy h1 em { font-style: normal; color: var(--accent); }
.visit {
  border-top: 2px solid var(--ink); padding-top: var(--s4);
  display: grid; gap: var(--s3);
}
.visit-status { font-size: var(--t-base); font-weight: 600; }
.visit ol { display: grid; gap: 0; counter-reset: step; }
.visit li { counter-increment: step; }
.visit a {
  display: grid; grid-template-columns: 40px 1fr auto; gap: var(--s3); align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--rule-2); color: var(--ink); text-decoration: none; min-height: 56px;
}
.visit a::before { content: "0" counter(step); font-family: var(--serif); font-size: var(--t-lg); color: var(--accent); }
.visit a b { display: block; font-size: var(--t-base); }
.visit a span { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.6; }
.visit a .ic { color: var(--ink-2); }
.visit a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.visit li.is-done a::before { content: "✓"; }

.lineup-wrap { position: relative; margin-top: var(--s6); --fig-h: clamp(240px, calc(100vh - 600px), 440px); }
/* 浪纹压在人物脚下、底边正好落在年表轴线上 */
.lineup-sea {
  position: absolute; left: 50%; top: 0; width: min(1400px, calc(100% + 2 * var(--gutter))); height: calc(var(--fig-h) + 4px); transform: translateX(-50%);
  display: flex; align-items: flex-end; pointer-events: none; z-index: 0;
}
.lineup-sea img { width: 100%; opacity: .85; }
.lineup {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4);
}
.lineup-item {
  display: grid; grid-template-rows: auto auto; text-decoration: none; color: var(--ink);
  border-radius: var(--radius);
}
.lineup-fig {
  height: var(--fig-h); display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 12px;
}
.lineup-fig img { max-height: 100%; width: auto; transition: transform var(--t-mid) var(--ease); transform-origin: 50% 100%; }
.lineup-item:hover .lineup-fig img, .lineup-item:focus-visible .lineup-fig img { transform: translateY(-6px) scale(1.02); }
.lineup-axis {
  position: relative; border-top: 2px solid var(--ink); padding-top: var(--s4); display: grid; gap: 2px; text-align: center;
}
.lineup-axis::before {
  content: ""; position: absolute; top: -8px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: var(--paper); border: 3px solid var(--deep);
}
.lineup-item.is-stamped .lineup-axis::before { background: var(--deep); }
.lineup-era { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.2; color: var(--deep); font-weight: 600; }
.lineup-kiln { font-size: var(--t-base); font-weight: 600; }
.lineup-name { font-size: var(--t-sm); color: var(--ink-2); }
.lineup-name .stamped { color: var(--deep); font-weight: 600; }
.lineup-note { margin-top: var(--s5); display: flex; gap: var(--s2); align-items: flex-start; font-size: var(--t-sm); color: var(--ink-2); }
.lineup-note .ic { width: 18px; height: 18px; margin-top: 3px; }
.axis-dir { display: flex; justify-content: space-between; font-size: var(--t-xs); color: var(--ink-2); letter-spacing: .1em; margin-top: var(--s2); }

.lineup-item { animation: rise var(--t-slow) var(--ease) both; animation-delay: calc(var(--i) * 70ms); }

/* ---------- 6. 图鉴 ---------- */
.controls { display: grid; gap: var(--s4); margin-bottom: var(--s5); }
.search { position: relative; max-width: 520px; }
.search label { display: block; font-size: var(--t-sm); font-weight: 600; margin-bottom: 6px; }
.search-box { position: relative; }
.search-box .ic-search { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.search input {
  width: 100%; min-height: 52px; font-size: 16px; /* iOS Safari 小于 16px 会放大页面 */
  padding: 0 52px 0 48px; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--card); color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #6B7480; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.search .icon-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.filter-row .label { margin-right: var(--s1); }
.result-meta { font-size: var(--t-sm); color: var(--ink-2); margin-bottom: var(--s4); min-height: 1.7em; }

.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); }
.card {
  position: relative; display: grid; grid-template-rows: auto 1fr; height: 100%;
  background: var(--card); border: 1px solid var(--rule-2); border-radius: var(--radius); overflow: hidden;
  color: var(--ink); text-decoration: none;
}
.card:hover { border-color: var(--deep); }
.card-fig { background: var(--tint); aspect-ratio: 4 / 5; display: flex; align-items: flex-end; justify-content: center; padding: 16px 10px 0; }
.card-fig img { max-height: 100%; width: auto; transition: transform var(--t-mid) var(--ease); transform-origin: 50% 100%; }
.card:hover .card-fig img { transform: scale(1.03); }
.card-num { position: absolute; top: 10px; left: 12px; font-family: var(--serif); font-size: var(--t-md); color: var(--deep); font-weight: 600; }
.card-fav { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--deep); }
.card-fav .ic { width: 20px; height: 20px; fill: currentColor; }
.card-body { padding: var(--s4); display: grid; gap: 2px; align-content: start; }
.card-name { font-family: var(--serif); font-size: var(--t-lg); font-weight: 600; line-height: 1.3; }
.card-meta { font-size: var(--t-sm); color: var(--deep); font-weight: 600; }
.card-sub { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.6; }

.empty {
  border: 1.5px dashed var(--rule); border-radius: var(--radius); padding: var(--s7) var(--s5);
  display: grid; gap: var(--s4); justify-items: start; background: var(--card);
}
.empty h2, .empty h3 { font-size: var(--t-lg); }
.empty p { color: var(--ink-2); max-width: 36em; }
.empty-lineup { display: flex; gap: var(--s2); align-items: flex-end; }
.empty-lineup img { height: 72px; width: auto; opacity: .55; }

/* ---------- 7. 角色详情 ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; min-height: calc(100vh - var(--header-h)); }
.detail-stage {
  position: sticky; top: var(--header-h); align-self: start; height: calc(100vh - var(--header-h)); background: var(--tint);
  display: flex; align-items: flex-end; justify-content: center; padding: var(--s8) var(--s5) 0; overflow: hidden;
}
.detail-stage .figure { max-height: 100%; width: auto; z-index: 1; }
.detail-stage .vessel { position: absolute; right: 4%; bottom: 4%; width: 18%; max-width: 132px; z-index: 2; }
.detail-index { position: absolute; top: var(--s5); left: var(--s5); font-family: var(--serif); font-size: var(--t-4xl); line-height: 1; color: var(--deep); font-weight: 600; z-index: 2; }
.detail-index small { font-size: var(--t-md); color: var(--ink-2); }
.detail-main { padding: var(--s7) var(--gutter) var(--s8) var(--s7); min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; margin-bottom: var(--s5); }
.detail-head { display: grid; gap: var(--s3); }
.detail-head h1 { font-size: clamp(var(--t-3xl), 4.4vw, var(--t-5xl)); line-height: 1.1; }
.pill { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 4px 14px; border-radius: 999px; background: var(--tint); color: var(--deep); font-weight: 700; font-size: var(--t-sm); }
.quote {
  margin-top: var(--s5); padding-left: var(--s4); border-left: 3px solid var(--deep);
  font-family: var(--serif); font-size: var(--t-lg); line-height: 1.6; color: var(--ink);
}
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: var(--s6) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts div { padding: var(--s3) var(--s3) var(--s3) 0; }
.facts div + div { padding-left: var(--s3); border-left: 1px solid var(--rule-2); }
.facts dt { font-size: var(--t-xs); color: var(--ink-2); letter-spacing: .08em; font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; font-size: var(--t-base); line-height: 1.5; }
.detail-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }
.btn-fav[aria-pressed="true"] { background: var(--tint); color: var(--deep); border-color: var(--deep); }
.btn-fav[aria-pressed="true"] .ic { fill: currentColor; }
.btn-fav.is-pop .ic { animation: pop var(--t-slow) var(--ease); }

.tabs { display: flex; gap: var(--s1); border-bottom: 1.5px solid var(--rule); margin-bottom: var(--s5); overflow-x: auto; scrollbar-width: none; }
.tab {
  min-height: 48px; padding: 0 18px; border: 0; background: none; color: var(--ink-2); font-size: var(--t-base); font-weight: 600;
  position: relative; white-space: nowrap;
}
.tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1.5px; height: 3px; background: var(--deep); transform: scaleX(0); transition: transform var(--t-mid) var(--ease); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab:hover { color: var(--ink); }
.panel { display: grid; gap: var(--s5); }
.panel.is-enter { animation: fade var(--t-mid) var(--ease) both; }
.panel h3 { font-size: var(--t-md); }
.media-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: var(--s5); align-items: center; }
.media-tile { background: var(--tint); border-radius: var(--radius); padding: var(--s5); display: grid; place-items: center; aspect-ratio: 1; }
.media-tile img { max-height: 100%; width: auto; }
.source {
  display: inline-flex; gap: 8px; align-items: flex-start; padding: 12px 16px; border-radius: 10px; background: var(--paper-2);
  color: var(--accent-ink); text-decoration: none; font-size: var(--t-sm); line-height: 1.6; max-width: 100%; overflow-wrap: anywhere;
}
.source:hover { text-decoration: underline; }
.source .ic { width: 18px; height: 18px; margin-top: 2px; }
.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s2); }
.swatch { display: grid; gap: 4px; }
.swatch i { display: block; aspect-ratio: 1.2; border-radius: 8px; border: 1px solid rgba(0,0,0,.08); }
.swatch code { font-family: ui-monospace, Consolas, monospace; font-size: var(--t-xs); color: var(--ink-2); overflow-wrap: anywhere; }
.pattern-plate { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule-2); background: #fff; }
.sheet { background: #fff; border: 1px solid var(--rule-2); border-radius: var(--radius); overflow: hidden; }
.sheet figcaption { padding: 10px 14px; font-size: var(--t-sm); color: var(--ink-2); border-top: 1px solid var(--rule-2); background: var(--card); }
.sheets { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s4); }
.note-card { margin-top: var(--s7); padding: var(--s5); border-radius: var(--radius); background: var(--card); border: 1px solid var(--rule-2); display: grid; gap: var(--s3); }
.note-card h2 { font-size: var(--t-lg); }
.pager { display: flex; justify-content: space-between; gap: var(--s4); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--rule); flex-wrap: wrap; }
.pager a { display: grid; text-decoration: none; color: var(--ink); min-height: 44px; }
.pager a small { color: var(--ink-2); font-size: var(--t-sm); }
.pager a b { font-family: var(--serif); font-size: var(--t-md); }
.pager a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.pager .next { text-align: right; margin-left: auto; }

/* ---------- 8. 旅程 ---------- */
.route { position: relative; margin: var(--s5) 0 var(--s6); padding: var(--s5) 0 var(--s4); }
.route-band { position: absolute; left: 0; right: 0; top: 50%; width: 100%; transform: translateY(-62%); opacity: .55; pointer-events: none; }
.route-line { position: absolute; left: 10%; right: 10%; top: 62px; border-top: 2px dashed var(--ink-2); opacity: .6; }
.stations { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); }
.station {
  display: grid; justify-items: center; gap: 6px; background: none; border: 0; padding: 0 0 var(--s2); color: var(--ink);
  border-radius: var(--radius); min-width: 0;
}
.station-dot {
  position: relative; width: 92px; height: 92px; border-radius: 50%; background: var(--card); border: 2px solid var(--rule);
  display: grid; place-items: center;
}
.station-dot img { max-height: 58px; max-width: 60px; width: auto; }
.station-done {
  position: absolute; right: -4px; top: -4px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--deep); color: #fff; display: grid; place-items: center; border: 2px solid var(--paper);
}
.station-done .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.station.is-selected .station-dot { border-color: var(--deep); background: var(--tint); }
.station.is-selected .station-dot::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--deep);
  animation: here 2.4s var(--ease) infinite;  /* 本屏唯一的循环动画：标记「你在这里」 */
}
.station-city { font-weight: 700; font-size: var(--t-base); line-height: 1.3; }
.station-era { font-size: var(--t-sm); color: var(--deep); font-weight: 600; line-height: 1.3; }
.station:hover .station-dot { border-color: var(--deep); }

.progress { display: grid; gap: var(--s2); max-width: 520px; }
.progress-head { display: flex; justify-content: space-between; font-size: var(--t-sm); color: var(--ink-2); }
.progress-head b { color: var(--ink); font-size: var(--t-base); }
.segments { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.segments i { height: 8px; border-radius: 4px; background: var(--rule-2); position: relative; overflow: hidden; }
.segments i::after { content: ""; position: absolute; inset: 0; background: var(--deep); transform: scaleX(0); transform-origin: left; transition: transform var(--t-slow) var(--ease); }
.segments i.on::after { transform: scaleX(1); }

.stop {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0; margin-top: var(--s6);
  border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--rule-2);
}
.stop-fig { background: var(--tint); display: flex; align-items: flex-end; justify-content: center; gap: var(--s3); padding: var(--s5) var(--s5) 0; min-height: 340px; position: relative; }
.stop-fig .figure { max-height: 360px; width: auto; }
.stop-fig .vessel { position: absolute; right: 8%; bottom: 8%; width: 28%; max-width: 120px; }
.stop-body { padding: var(--s6); display: grid; gap: var(--s4); align-content: center; }
.stop-body h2 { font-size: var(--t-2xl); }
.stop-status { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--deep); font-size: var(--t-sm); }
.stop-status .ic { width: 18px; height: 18px; }
.disclaimer {
  display: flex; gap: var(--s3); align-items: flex-start; margin-top: var(--s6); padding: var(--s4) var(--s5);
  border-radius: var(--radius); background: var(--paper-2); color: var(--ink); font-size: var(--t-sm); line-height: 1.7; max-width: 52em;
}
.disclaimer .ic { color: var(--accent); margin-top: 2px; }

/* ---------- 9. 护照 ---------- */
.book {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--card); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 0 var(--rule-2), 0 24px 48px -32px rgba(28, 39, 51, .35);
}
.book-left { padding: var(--s6); border-right: 1px solid var(--rule-2); display: grid; gap: var(--s5); align-content: start; background: linear-gradient(90deg, var(--card) 85%, #F3ECDD); }
.book-left h2 { font-size: var(--t-xl); }
.book-id { display: grid; gap: 2px; padding: var(--s4) 0; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.book-id dl { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--s4); margin: 0; font-size: var(--t-sm); }
.book-id dt { color: var(--ink-2); }
.book-id dd { margin: 0; font-weight: 600; }
.book-right { padding: var(--s6); background: linear-gradient(90deg, #F3ECDD, var(--card) 12%); }
.seals { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.seals li { grid-column: span 2; }
.seals li:nth-child(4) { grid-column: 2 / span 2; }
.seal {
  width: 100%; display: grid; justify-items: center; gap: 6px; border: 0; background: none; padding: var(--s2); border-radius: var(--radius); color: var(--ink); text-align: center;
}
.seal-img { position: relative; width: 100%; max-width: 210px; aspect-ratio: 1; display: grid; place-items: center; }
.seal-img img { width: 100%; height: auto; }
.seal.is-on .seal-img img { transform: rotate(var(--rot, -3deg)); }
.seal.is-off .seal-img img { filter: grayscale(1); opacity: .16; }
.seal.is-off .seal-img::after {
  content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 2px dashed var(--rule);
}
.seal-lock { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); z-index: 1; }
.seal-lock .ic { width: 28px; height: 28px; }
.seal-kiln { font-weight: 700; font-size: var(--t-base); line-height: 1.3; }
.seal-sub { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.4; }
.seal.is-on .seal-sub { color: var(--deep); font-weight: 600; }
.seal:hover .seal-kiln { text-decoration: underline; text-underline-offset: 4px; }
.seal.is-new .seal-img img { animation: press var(--t-slow) var(--ease) both; }

.complete-banner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--s5);
  margin-bottom: var(--s6); padding: var(--s5); border-radius: var(--radius); background: var(--band); color: var(--on-band);
}
.complete-banner h2 { font-size: var(--t-2xl); color: var(--on-band); }
.complete-banner p { color: var(--on-band-2); }
.complete-banner .group { border-radius: 10px; background: #fff; }
.complete-banner .btn-ghost { color: #fff; }
.complete-banner .btn-ghost:hover { background: rgba(255,255,255,.12); }
.complete-banner :focus-visible { outline-color: var(--gold); }

.favs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s4); }
.fav {
  display: grid; grid-template-columns: 76px 1fr auto; gap: var(--s3); align-items: center;
  padding: var(--s3); border-radius: var(--radius); background: var(--card); border: 1px solid var(--rule-2);
}
.fav-fig { background: var(--tint); border-radius: 10px; height: 92px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.fav-fig img { max-height: 88px; width: auto; }
.fav a { color: var(--ink); text-decoration: none; display: grid; min-height: 44px; align-content: center; }
.fav a b { font-family: var(--serif); font-size: var(--t-md); }
.fav a small { color: var(--deep); font-size: var(--t-sm); font-weight: 600; }
.fav a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.fav .icon-btn { color: var(--deep); }
.fav .icon-btn .ic { fill: currentColor; }

.data-box { margin-top: var(--s7); padding: var(--s5); border: 1px solid var(--rule); border-radius: var(--radius); display: flex; gap: var(--s4); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.data-box p { color: var(--ink-2); font-size: var(--t-sm); max-width: 40em; }

/* ---------- 10. 文创 ---------- */
.render-flag {
  display: inline-flex; gap: 8px; align-items: center; width: fit-content;
  padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: var(--t-sm); font-weight: 600; letter-spacing: .02em;
}
.render-flag .ic { width: 18px; height: 18px; }
.feature {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: stretch;
  background: var(--band); color: var(--on-band); border-radius: 18px; overflow: hidden; margin-bottom: var(--s7);
}
.feature-img { background: #EFE8DC; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: var(--s6); display: grid; gap: var(--s4); align-content: center; }
.feature-body .eyebrow { color: var(--on-band-2); }
.feature-body h2 { font-size: var(--t-3xl); color: var(--on-band); }
.feature-body p { color: var(--on-band-2); }
.feature-body .btn { background: #fff; color: var(--band); width: fit-content; }
.feature-body .btn:hover { background: var(--accent-tint, #E3E8F6); }
.feature :focus-visible { outline-color: var(--gold); }
.shop-group { margin-top: var(--s7); }
.shop-group:first-of-type { margin-top: 0; }
.shop-group-head { display: flex; align-items: baseline; gap: var(--s4); margin-bottom: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.shop-group-head h2 { font-size: var(--t-xl); }
.shop-group-head p { color: var(--ink-2); font-size: var(--t-sm); }
.products { display: grid; gap: var(--s5) var(--s4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.products.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product { width: 100%; display: grid; gap: var(--s3); text-align: left; border: 0; background: none; padding: 0; color: var(--ink); border-radius: var(--radius); }
.product-img { position: relative; border-radius: var(--radius); overflow: hidden; background: #EFE8DC; }
.product-img img { width: 100%; transition: transform var(--t-slow) var(--ease); }
.product:hover .product-img img { transform: scale(1.03); }
.product-tag { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(28, 39, 51, .86); color: #fff; font-size: var(--t-xs); font-weight: 600; }
.product-text { display: grid; gap: 2px; }
.product-name { font-family: var(--serif); font-size: var(--t-md); font-weight: 600; line-height: 1.4; }
.product-kind { font-size: var(--t-sm); color: var(--ink-2); }
.product:hover .product-name { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 11. 对话框 ---------- */
.dlg {
  width: min(920px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 18px;
  background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(10, 20, 40, .45); overflow: hidden;
}
.dlg::backdrop { background: rgba(18, 26, 40, .62); }
.dlg[open] { animation: rise var(--t-mid) var(--ease) both; }
.dlg-frame { position: relative; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.dlg-close { position: absolute; top: 12px; right: 12px; z-index: 5; }
.dlg-body { padding: var(--s6); display: grid; gap: var(--s4); }
.dlg-body h2 { font-size: var(--t-2xl); padding-right: 52px; }
.dlg-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.dlg-split .dlg-media { background: var(--tint, #EFE8DC); display: grid; place-items: center; min-height: 100%; }
.dlg-split .dlg-media img { width: 100%; height: auto; }
.dlg-media.is-poster img { max-height: 76vh; width: auto; }
.dlg-meta { display: flex; flex-wrap: wrap; gap: var(--s2); }
.dlg-honest { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; background: var(--paper-2); font-size: var(--t-sm); line-height: 1.6; }
.dlg-honest .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.variants { display: flex; flex-wrap: wrap; gap: 6px; }
.variants li { padding: 2px 12px; border-radius: 999px; border: 1px solid var(--rule); font-size: var(--t-sm); }
.dlg-steps { display: flex; justify-content: space-between; gap: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--rule-2); }
.dlg-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.dlg-story .dlg-media { background: var(--tint); display: flex; align-items: flex-end; justify-content: center; padding: var(--s5) var(--s4) 0; }
.dlg-story .dlg-media img { max-height: 380px; width: auto; }
.story-text { font-family: var(--serif); font-size: var(--t-md); line-height: 1.9; }

/* 盖印时刻 */
.press { text-align: center; justify-items: center; }
.press .eyebrow::before { display: none; }
.press-stage { position: relative; width: min(340px, 72vw); aspect-ratio: 1; margin: var(--s2) auto 0; }
.press-stage img { width: 100%; height: auto; opacity: 0; }
.press-ink { position: absolute; inset: 4%; border-radius: 50%; border: 6px solid var(--deep); opacity: 0; }
.press-stage.is-play img { animation: press var(--t-slow) var(--ease) both; }
.press-stage.is-play .press-ink { animation: ink 700ms var(--ease) 260ms both; }
.press-stage.is-static img { opacity: 1; transform: rotate(-3deg); }
.press p { max-width: 30em; }
.press .btn-row { justify-content: center; }
.press-count { display: flex; gap: 8px; justify-content: center; }
.press-count i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--c); }
.press-count i.on { background: var(--c); }

/* 提示 */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--tabbar-h)); z-index: 90;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: var(--t-base); max-width: calc(100vw - 32px);
  transition: transform var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease);
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- 12. 页脚 ---------- */
.colophon { background: var(--band); color: var(--on-band); padding: var(--s7) 0; margin-top: var(--s7); }
.colophon-in { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.colophon-logo { width: 100%; max-width: 280px; }
.colophon-title { font-weight: 700; margin-bottom: var(--s2); }
.colophon ul { display: grid; gap: 6px; }
.colophon li { color: var(--on-band-2); font-size: var(--t-sm); line-height: 1.7; padding-left: 1em; text-indent: -1em; }
.colophon li::before { content: "· "; }
.noscript { padding: var(--s5); text-align: center; }

/* ---------- 13. 动效（只动 transform / opacity） ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
@keyframes press {
  0% { opacity: 0; transform: scale(1.45) rotate(-12deg); }
  60% { opacity: 1; transform: scale(.94) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(-3deg); }
}
@keyframes ink { 0% { opacity: .55; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes here { 0% { opacity: .9; transform: scale(.9); } 70%, 100% { opacity: 0; transform: scale(1.22); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .press-stage img { opacity: 1; transform: rotate(-3deg); }
}

/* ---------- 14. 响应式：先投影，再收拢 ---------- */
@media (max-width: 1279px) {
  .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s3); }
  .card-name { font-size: var(--t-md); }
}

@media (max-width: 1079px) {
  .home-top { grid-template-columns: minmax(0, 1fr); gap: var(--s6); align-items: start; }
  .visit { max-width: 640px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .detail-stage { position: relative; top: 0; height: min(70vh, 640px); padding-top: var(--s6); }
  .detail-main { padding: var(--s6) var(--gutter) var(--s8); }
  .book { grid-template-columns: minmax(0, 1fr); }
  .book-left { border-right: 0; border-bottom: 1px solid var(--rule-2); background: var(--card); }
  .book-right { background: var(--card); }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .colophon-in { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .stop { grid-template-columns: minmax(0, 1fr); }
  .stop-fig { min-height: 0; height: 300px; }
  .stop-fig .figure { max-height: 100%; }
}

@media (max-width: 860px) {
  .nav a { padding: 0 10px; }
  .nav a span.lbl { font-size: var(--t-sm); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--rule-2); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products.is-wide { grid-template-columns: minmax(0, 1fr); }
  .dlg-split, .dlg-story { grid-template-columns: minmax(0, 1fr); }
  .dlg-split .dlg-media { max-height: 48vh; overflow: hidden; }
  .dlg-split .dlg-media img { max-height: 48vh; width: auto; }
  .dlg-story .dlg-media img { max-height: 30vh; }
  .sheets { grid-template-columns: minmax(0, 1fr); }
  .complete-banner { grid-template-columns: minmax(0, 1fr); }
}

/* 手机：底部标签栏、单栏 */
@media (max-width: 719px) {
  :root { --header-h: 56px; --tabbar-h: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .brand img { height: 30px; }
  .masthead-in { justify-content: center; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: var(--tabbar-h); padding: 4px 4px env(safe-area-inset-bottom, 0px);
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
    background: var(--card); border-top: 1px solid var(--rule);
  }
  .nav a {
    flex-direction: column; justify-content: center; gap: 2px; padding: 0; min-height: 56px; border-radius: 12px;
    font-size: var(--t-xs); font-weight: 600; color: var(--ink-2);
  }
  .nav a span.lbl { font-size: var(--t-xs); }
  .nav a[aria-current="page"] { background: transparent; color: var(--accent); }
  .nav a[aria-current="page"] .ic { stroke-width: 2.2; }
  .nav-count { position: absolute; top: 2px; left: 50%; margin-left: 6px; min-width: 30px; height: 18px; font-size: 11px; }
  .nav a[aria-current="page"] .nav-count { background: var(--accent); color: #fff; }

  .page { padding-block: var(--s6) var(--s7); }
  .wall { margin-bottom: var(--s6); }
  .lead { font-size: var(--t-base); }
  .home { padding-top: var(--s6); }
  .home-copy h1 { font-size: var(--t-2xl); }
  .home-copy .btn-row .btn { flex: 1 1 auto; }
  .lineup-wrap { margin-top: var(--s6); margin-inline: calc(var(--gutter) * -1); }
  .lineup {
    display: flex; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding: 0 var(--gutter) var(--s3); scrollbar-width: thin;
  }
  .lineup li { flex: 0 0 44%; scroll-snap-align: start; }
  .lineup-wrap { --fig-h: 250px; }
  .lineup-sea { display: none; }
  /* 手机：浪纹作为滚动容器内的本地背景，随人物一起横向滚动，不撑宽页面。
     航路浪纹不是无缝 tile（答辩核对表第 6 条），所以不平铺：单张 1000px 宽，覆盖整条滚动内容（实测约 870px） */
  .lineup { background: url("assets/band-route.webp") no-repeat 0 calc(var(--fig-h) - 105px) / 1000px auto; background-attachment: local; }
  .lineup-note, .axis-dir { padding-inline: var(--gutter); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .card-body { padding: var(--s3); }
  .chip { padding: 0 14px; }
  .detail-stage { height: 58vh; min-height: 340px; }
  .detail-index { font-size: var(--t-2xl); top: var(--s4); left: var(--s4); }
  .detail-main { padding-top: var(--s5); }
  .media-row { grid-template-columns: minmax(0, 1fr); }
  .media-tile { max-width: 260px; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .station-dot { width: 56px; height: 56px; }
  .station-dot img { max-height: 36px; max-width: 38px; }
  .station-done { width: 22px; height: 22px; right: -6px; top: -6px; }
  .station-done .ic { width: 12px; height: 12px; }
  .station.is-selected .station-dot::after { inset: -6px; }
  .route-line { top: 52px; }
  .station-city { font-size: var(--t-xs); }
  .station-era { font-size: var(--t-xs); }
  .stop-body { padding: var(--s5); }
  .stop-body h2 { font-size: var(--t-xl); }
  .book-left, .book-right { padding: var(--s5) var(--s4); }
  .seals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s2); }
  .seals li, .seals li:nth-child(4) { grid-column: auto; }
  .seals li:nth-child(5) { grid-column: 1 / -1; justify-self: center; width: 50%; }
  .feature-body { padding: var(--s5); }
  .feature-body h2 { font-size: var(--t-2xl); }
  .products { gap: var(--s4) var(--s3); }
  .dlg-body { padding: var(--s5) var(--s4); }
  .dlg-body h2 { font-size: var(--t-xl); }
  .press h2 { font-size: var(--t-lg); padding: 0 36px !important; }
  .colophon { padding: var(--s6) 0; }
  .colophon-logo { max-width: 200px; }
}

@media (max-width: 380px) {
  .chip { padding: 0 12px; }
  .btn { padding: 0 16px; }
  .card-name { font-size: var(--t-base); }
}
