/* ============================================================
   一路向西北，走进俄罗斯
   编辑插画风旅行手册。配色与材质来自用户提供的参考插画：
   奶油纸底、细线勾边、排线肌理、赭红 / 鼠尾草绿 / 深棕 / 藏蓝。
   动效全部只用 transform 与 opacity，并在 prefers-reduced-motion 下退回静态。
   ============================================================ */

:root {
  --paper: #f2e9d8;
  --paper-2: #f9f3e7;
  --paper-3: #e8dbc2;
  --ink: #2b211a;
  --ink-2: #4a3a2d;
  --ink-3: #6b5847;
  --line: rgba(43, 33, 26, .16);
  --line-2: rgba(43, 33, 26, .3);
  --accent: #b4462b;
  --accent-2: #8e3320;
  --accent-soft: #efd9c9;
  --sage: #6e7f5b;
  --ochre: #c89b3c;
  --sage-ink: #4e5f3d;
  --ochre-ink: #8a6414;
  --bar-cool: var(--sage-ink);
  --bar-warm: var(--ochre-ink);
  --navy: #23304a;
  --shadow: 0 1px 0 rgba(43, 33, 26, .05), 0 26px 50px -38px rgba(43, 33, 26, .55);
  --radius: 3px;
  --serif: 'Source Serif 4', 'Songti SC', 'Noto Serif SC', 'PingFang SC', 'Microsoft YaHei', Georgia, serif;
  --sans: 'Geist', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --head-h: 74px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

html[data-theme="night"] {
  --paper: #141b2b;
  --paper-2: #1b2436;
  --paper-3: #263044;
  --ink: #f2e8d5;
  --ink-2: #dcd0b9;
  --ink-3: #a89d89;
  --line: rgba(242, 232, 213, .17);
  --line-2: rgba(242, 232, 213, .3);
  --accent: #e07a52;
  --accent-2: #f09771;
  --accent-soft: rgba(224, 122, 82, .15);
  --sage: #93a67c;
  --ochre: #d9b264;
  --sage-ink: #a9bd8f;
  --ochre-ink: #e6c37c;
  --bar-cool: var(--sage-ink);
  --bar-warm: var(--ochre-ink);
  --navy: #9fb3cc;
  --shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 26px 50px -34px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: .004em;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -.015em; line-height: 1.18 }
h1, h2, h3 { text-wrap: balance }
p { margin: 0 }
ol, ul { margin: 0; padding: 0; list-style: none }
a { color: inherit; text-decoration: none }
img { max-width: 100%; display: block }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer }

::selection { background: var(--accent); color: var(--paper-2) }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 90;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px }

/* 内容宽度用 max-width + auto 边距，避免 100vw 计入滚动条宽度造成横向抖动 */
.wrap, section, .foot, .top-in {
  width: 100%;
  max-width: 1224px;
  margin-inline: auto;
  padding-inline: clamp(18px, 3.4vw, 34px);
}

/* ---------- 纸张颗粒 ---------- */
.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
html[data-theme="night"] .grain { mix-blend-mode: screen; opacity: .3 }

/* ---------- 左侧一镜到底导轨 ---------- */
.spine { position: fixed; left: 26px; top: 0; bottom: 0; width: 1px; background: var(--line); z-index: 30; display: none }
.spine i { position: absolute; left: 50%; display: block }
.spine-fill { top: 0; width: 1px; height: 100vh; background: var(--accent); transform-origin: 50% 0; transform: scaleY(0) }
.spine-head { top: 0; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--accent) }

@media (min-width: 1330px) { .spine { display: block } }

@supports (animation-timeline: scroll(root block)) {
  @media (prefers-reduced-motion: no-preference) {
    .spine-fill, .spine-head { animation: spineGrow linear both; animation-timeline: scroll(root block) }
    .spine-head { animation-name: spineRun }
  }
}
@keyframes spineGrow { from { transform: scaleY(0) } to { transform: scaleY(1) } }
@keyframes spineRun { from { transform: translateY(0) } to { transform: translateY(calc(100vh - 10px)) } }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px) saturate(130%);
  border-bottom: 1px solid var(--line);
}
.top-in {
  height: var(--head-h);
  display: flex; align-items: center; gap: 26px;
}
.brand { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap }
.brand-ru { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 11.5px; letter-spacing: .02em; color: var(--ink-3); line-height: 1.3 }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; color: var(--ink-2) }
.nav a { position: relative; padding: 4px 0 }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease) }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1) }
.nav a.on { color: var(--ink) }
.top-tools { display: flex; align-items: center; gap: 12px; margin-left: 6px }
.cta-short { display: none }
.iconbtn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px;
  font-size: 13px; color: var(--ink-2); background: var(--paper-2);
  transition: transform .2s var(--ease), border-color .2s, background-color .2s;
}
.iconbtn:hover { border-color: var(--accent); color: var(--ink) }
.iconbtn:active { transform: scale(.96) }
.iconbtn-ink { font-size: 14px; line-height: 1 }
.progress { height: 2px; background: var(--line) }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0) }
@supports (animation-timeline: scroll(root block)) {
  @media (prefers-reduced-motion: no-preference) {
    .progress i { animation: barGrow linear both; animation-timeline: scroll(root block) }
  }
}
@keyframes barGrow { from { transform: scaleX(0) } to { transform: scaleX(1) } }

/* ---------- 按钮 ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 13px 26px; font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: transform .22s var(--ease), background-color .22s, color .22s, border-color .22s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff8f0; transform: translateY(-2px) }
html[data-theme="night"] .btn:hover { color: #1a120c }
.btn:active { transform: translateY(0) scale(.985) }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2) }
.btn-ghost:hover { background: var(--accent); border-color: var(--accent); color: #fff8f0 }
html[data-theme="night"] .btn-ghost:hover { color: #1a120c }
.btn-sm { padding: 9px 17px; font-size: 13.5px }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .28; transform: scale(0); pointer-events: none; animation: rip .55s var(--ease) forwards }
@keyframes rip { to { transform: scale(1); opacity: 0 } }

/* ---------- 揭示动效 ----------
   只有 site.js 真的挂上 IntersectionObserver 才允许把内容藏起来（reveal-armed）。
   内联脚本能跑但外链 JS 挂掉时，内容必须仍然可见。 */
html.motion.reveal-armed [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms) }
html.motion [data-reveal].in { opacity: 1; transform: none }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(34px, 5vw, 62px); padding-bottom: clamp(40px, 6vw, 80px) }
.hero-in { display: grid; grid-template-columns: 1.03fr .97fr; gap: clamp(34px, 5vw, 72px); align-items: center; min-height: calc(100dvh - var(--head-h) - 60px) }
.h-display { font-size: clamp(42px, 6.6vw, 82px); line-height: 1.04; letter-spacing: -.03em }
.hero-lede { max-width: 40ch; margin-top: 22px; font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.85; color: var(--ink-2) }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px }

.plate { margin: 0 }
.frame {
  position: relative; overflow: hidden; background: var(--paper-3);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 1280 / 988;
}
.frame::after {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid rgba(43, 33, 26, .12); border-radius: 1px;
}
html[data-theme="night"] .frame::after { border-color: rgba(242, 232, 213, .12) }
.plate-img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s ease }
html.motion .plate-img:not(.loaded) { opacity: 0 }
.plate:hover .plate-img { transform: scale(1.025) }
.plate figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-3); letter-spacing: .01em }

/* ---------- 区块标题 ---------- */
.sec-head { max-width: 60ch; margin-bottom: clamp(28px, 3.4vw, 46px) }
/* 段落本身没有上内边距，锚点跳过来时标题会正好压在吸顶导航背后，留出血给它 */
main section[id], #top { scroll-margin-top: calc(var(--head-h) + 16px) }
.sec-head.narrow { max-width: 66ch }
.sec-head h2 { font-size: clamp(28px, 3.7vw, 46px) }
.sec-head p { margin-top: 12px; color: var(--ink-3); font-size: 15.5px; max-width: 62ch }

/* ---------- 关键数据 ---------- */
.facts { padding-bottom: clamp(52px, 7vw, 96px) }
.facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  grid-template-areas: "a a b c" "d d d f" "e e e f";
}
.fact { position: relative; background: var(--paper-2); padding: 26px 24px 24px; overflow: hidden }
.fact:nth-child(1) { grid-area: a }
.fact:nth-child(2) { grid-area: b }
.fact:nth-child(3) { grid-area: c }
.fact:nth-child(4) { grid-area: d }
.fact:nth-child(5) { grid-area: e }
.fact:nth-child(6) { grid-area: f; padding: 0 }
.fact-k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3) }
.fact-v { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; color: var(--ink); line-height: 1.08; margin: 10px 0 8px; letter-spacing: -.02em }
.fact-v .unit { font-size: .42em; font-weight: 400; color: var(--ink-3); margin: 0 .28em; letter-spacing: 0 }
.fact p { font-size: 14px; line-height: 1.72; color: var(--ink-2); max-width: 46ch }
.fact-img { display: flex; flex-direction: column }
.fact-img figcaption { padding: 10px 14px 14px; font-size: 12.5px; color: var(--ink-3); background: var(--paper-2) }
.fact-img .frame { border: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; flex: 1 1 auto; min-height: 120px }
.fact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(240px 160px at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 70%);
}
.fact:hover::before { opacity: 1 }

.ref {
  display: inline-block; min-width: 15px; margin-left: 3px; padding: 0 3px;
  font-family: var(--mono); font-size: 10.5px; line-height: 15px; text-align: center; vertical-align: 2px;
  color: var(--accent); border: 1px solid currentColor; border-radius: 2px;
  transition: background-color .18s, color .18s, transform .18s var(--ease);
}
.ref:hover { background: var(--accent); color: var(--paper); transform: translateY(-1px) }
html[data-theme="night"] .ref:hover { color: #1a120c }

/* ---------- 路线概览 ---------- */
.route { padding-bottom: clamp(52px, 7vw, 90px) }
.route-meta { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-bottom: 22px; font-size: 14px; color: var(--ink-3) }
.route-meta b { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 15.5px }
.route-map { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); padding: clamp(18px, 3vw, 34px) }
.route-map svg { width: 100%; height: auto; display: block; overflow: visible }
.map-line { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round }
.map-dash { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 7 9; stroke-linecap: round }
.map-ties path { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 4 }
html.motion.reveal-armed .map-line { stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.9s var(--ease) }
html.motion.reveal-armed .map-dash { opacity: 0; transition: opacity 1.1s var(--ease) .5s }
html.motion .route-map.in .map-line { stroke-dashoffset: 0 }
html.motion .route-map.in .map-dash { opacity: 1 }

.stops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px }
.stops a {
  display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.stops a:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow) }
.stops b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink) }
.stops span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6 }
.stop-hi a { border-color: var(--accent); background: var(--accent-soft) }
.route-legend { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 18px; font-size: 13.5px; color: var(--ink-3) }
.route-legend p { display: flex; align-items: center; gap: 9px }
.lg { width: 26px; height: 2px; flex: 0 0 auto; border-radius: 2px }
.lg-a { background: var(--ink-2) }
.lg-b { background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px) }

/* ---------- 亮点：粘性堆叠 ---------- */
.stack { padding-bottom: clamp(40px, 6vw, 70px) }
.stack-panel {
  position: sticky; top: calc(var(--head-h) + 16px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 22px; overflow: hidden;
}
.stack-panel:nth-child(1) { top: calc(var(--head-h) + 14px) }
.stack-panel:nth-child(2) { top: calc(var(--head-h) + 28px) }
.stack-panel:nth-child(3) { top: calc(var(--head-h) + 42px) }
.stack-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(22px, 3.4vw, 46px); align-items: center; padding: clamp(20px, 2.6vw, 34px) }
.stack-grid.flip { grid-template-columns: 1.08fr .92fr }
.stack-grid.flip .stack-art { order: 2 }
.stack-art { margin: 0 }
.stack-art .frame { aspect-ratio: 1200 / 926; box-shadow: none }
.stack-copy h3 { font-size: clamp(25px, 3vw, 38px); letter-spacing: -.02em }
.stack-copy p { margin-top: 14px; max-width: 48ch; color: var(--ink-2); font-size: 15.5px }
.stack-where { font-family: var(--mono); font-size: 12px !important; letter-spacing: .04em; color: var(--ink-3) !important; margin-top: 20px !important; padding-top: 14px; border-top: 1px solid var(--line) }

/* ---------- 每日行程 ---------- */
.days { padding-bottom: clamp(52px, 7vw, 90px) }
.day-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 18px }
.filters { display: flex; flex-wrap: wrap; gap: 8px }
.chip {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 15px;
  font-size: 13.5px; color: var(--ink-2); background: var(--paper-2);
  transition: background-color .2s, color .2s, border-color .2s, transform .16s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--ink) }
.chip:active { transform: scale(.96) }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper) }
.filter-state { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-3); margin-left: auto }
.filter-state b { color: var(--accent) }

.day-nav { position: sticky; top: var(--head-h); z-index: 40; margin: 0 0 30px; padding: 10px 0; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.day-nav ol { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 3px; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 30px), transparent 100%) }
.day-nav a {
  display: block; white-space: nowrap; padding: 6px 13px; border-radius: 999px;
  border: 1px solid transparent; font-size: 13px; color: var(--ink-2);
  transition: background-color .2s, color .2s, border-color .2s;
}
.day-nav a:hover { border-color: var(--line-2); background: var(--paper-2) }
.day-nav a.on { background: var(--accent); color: #fff8f0; border-color: var(--accent) }
html[data-theme="night"] .day-nav a.on { color: #1a120c }
.day-nav a.is-dim { opacity: .35 }

.day { padding: 6px 0 46px; scroll-margin-top: calc(var(--head-h) + 58px) }
.day + .day { border-top: 1px solid var(--line) }
.day-head { display: grid; grid-template-columns: 78px 1fr auto; gap: 6px 20px; align-items: baseline; padding: 26px 0 22px }
.day-idx { display: flex; flex-direction: column; gap: 2px }
.day-idx b { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--accent); line-height: 1; letter-spacing: -.02em }
.day-idx span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-3) }
.day-title { font-size: clamp(21px, 2.5vw, 30px); grid-column: 2 }
.day-drive { grid-column: 2; margin-top: 8px; font-size: 13.5px; color: var(--ink-3) }
.day-drive b { color: var(--ink); font-weight: 600 }
.mark {
  grid-row: 1 / span 3; align-self: center;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px;
  font-size: 13px; color: var(--ink-2); white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .16s var(--ease);
}
.mark:hover { border-color: var(--accent); color: var(--ink) }
.mark:active { transform: scale(.96) }
.mark[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff8f0 }
html[data-theme="night"] .mark[aria-pressed="true"] { color: #1a120c }

.nodes { position: relative }
.node { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 16px; padding-bottom: 18px }
.node .dot { position: relative; width: 18px; height: 18px; margin-top: 22px; border-radius: 50%; border: 1.5px solid var(--ink-2); background: var(--paper); transition: border-color .25s, transform .25s var(--ease) }
.node .dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .3s var(--ease) }
.node:hover .dot { border-color: var(--accent) }
.node:hover .dot::after { transform: scale(1) }
.node:not(:last-child)::before { content: ""; position: absolute; left: 8.5px; top: 42px; bottom: 2px; width: 1px; background: linear-gradient(var(--line-2), var(--line)) }
.node.is-last-visible::before { display: none }
.node.meal .dot { border-style: dashed }

.node-body {
  position: relative; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px 19px;
  transition: transform .28s var(--ease), box-shadow .28s, border-color .28s;
}
.node:hover .node-body { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow) }
.node-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px }
.node-top time { font-family: var(--mono); font-size: 14.5px; letter-spacing: .02em; color: var(--accent); font-weight: 500 }
.stay { font-size: 12px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; white-space: nowrap }
.node-body h4 { margin: 9px 0 7px; font-size: 19px }
.node-body p { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); max-width: 62ch }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px }
.tags li { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-3); background: var(--paper-3); border-radius: 2px; padding: 3px 8px }

.move { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 16px; padding: 2px 0 18px }
.move-line { position: relative; width: 18px; align-self: stretch }
.move-line::before { content: ""; position: absolute; left: 8.5px; top: -6px; bottom: -6px; width: 1px; background: repeating-linear-gradient(var(--accent) 0 4px, transparent 4px 9px); opacity: .8 }
.move-txt { font-size: 13px; color: var(--ink-3); padding-top: 2px }
.move-txt b { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink); font-weight: 500 }

.days[data-filter="all"] .node, .days[data-filter="all"] .move { display: grid }
.days:not([data-filter="all"]) .node, .days:not([data-filter="all"]) .move { display: none }
.days[data-filter="transit"] .node[data-cat="transit"], .days[data-filter="transit"] .move[data-cat="transit"],
.days[data-filter="museum"] .node[data-cat="museum"], .days[data-filter="museum"] .move[data-cat="museum"],
.days[data-filter="walk"] .node[data-cat="walk"], .days[data-filter="walk"] .move[data-cat="walk"],
.days[data-filter="food"] .node[data-cat="food"], .days[data-filter="food"] .move[data-cat="food"],
.days[data-filter="night"] .node[data-cat="night"], .days[data-filter="night"] .move[data-cat="night"] { display: grid }
.day.is-empty { display: none }
.empty { display: none; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 34px 26px; text-align: center; color: var(--ink-3) }
.days.is-all-empty .empty { display: block }
.empty b { display: block; font-family: var(--serif); font-size: 21px; color: var(--ink); margin-bottom: 8px }

.extend { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 24px }
.extend-item { background: var(--navy); padding: 28px 26px }
html[data-theme="night"] .extend-item { background: var(--paper-3) }
.extend-item h3 { color: var(--paper-2); font-size: 21px; margin-bottom: 10px }
html[data-theme="night"] .extend-item h3 { color: var(--ink) }
.extend-item p { font-size: 14px; line-height: 1.8; color: color-mix(in srgb, var(--paper-2) 74%, transparent) }
html[data-theme="night"] .extend-item p { color: var(--ink-2) }

/* ---------- 气候 ---------- */
.climate { padding-bottom: clamp(52px, 7vw, 90px) }
.cl-head { max-width: 60ch; margin-bottom: 30px }
.cl-head h2 { font-size: clamp(28px, 3.7vw, 46px) }
.cl-head p { margin-top: 12px; color: var(--ink-3); font-size: 15.5px }
.cl-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(22px, 3vw, 44px); align-items: start }
.cl-chart { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); padding: 22px 24px 26px }
.cl-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--ink-3); padding-bottom: 10px; border-bottom: 1px solid var(--line) }
.cl-month { padding: 16px 0 4px; border-bottom: 1px solid var(--line) }
.cl-month:last-of-type { border-bottom: 0 }
.cl-month h4 { font-size: 15px; display: flex; align-items: center; gap: 9px; margin-bottom: 9px }
.cl-flag { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--accent); border: 1px solid currentColor; border-radius: 2px; padding: 1px 6px; font-weight: 400 }
.cl-row { position: relative; display: grid; grid-template-columns: 62px 1fr 84px; align-items: center; gap: 12px; padding: 5px 6px; border-radius: 2px; transition: background-color .2s }
.cl-row:hover, .cl-row:focus-visible { background: var(--paper-3) }
.cl-row::after {
  content: attr(aria-label); position: absolute; left: 70px; bottom: calc(100% + 6px); z-index: 5;
  background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 12px; line-height: 1.5;
  padding: 7px 11px; border-radius: 2px; white-space: normal; width: max-content; max-width: min(260px, 100%);
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
}
.cl-row:hover::after, .cl-row:focus-visible::after { opacity: 1; transform: none }
.cl-city { font-size: 12.5px; color: var(--ink-3) }
.cl-bar { position: relative; height: 15px; border-radius: 2px; background: color-mix(in srgb, var(--ink-3) 12%, transparent) }
/* 柱体与它的轨道之间要拉得开：--sage/--ochre 在纸质主题下对轨道只有 3.31 / 1.95，
   换成 ink 变体后是 5.30 / 4.10（夜读下 ink 变体更亮，同样达标）。 */
.cl-fill { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--bar-cool); border-radius: 2px; transform-origin: left center }
.cl-row:nth-child(3) .cl-fill { background: var(--bar-warm) }
.cl-dot { position: absolute; top: 50%; left: var(--x); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--paper-2); border: 1.5px solid var(--navy) }
.cl-val { font-family: var(--mono); font-size: 12.5px; color: var(--ink); text-align: right }
.cl-val em { font-style: normal; color: var(--ink-3) }
html.motion.reveal-armed .cl-fill { transform: scaleX(0); transition: transform .9s var(--ease) }
html.motion .cl-chart.in .cl-fill { transform: scaleX(1) }
html.motion .cl-chart.in .cl-month:nth-of-type(2) .cl-fill { transition-delay: .08s }
html.motion .cl-chart.in .cl-month:nth-of-type(3) .cl-fill { transition-delay: .16s }
html.motion .cl-chart.in .cl-month:nth-of-type(4) .cl-fill { transition-delay: .24s }
html.motion .cl-chart.in .cl-month:nth-of-type(5) .cl-fill { transition-delay: .32s }
.cl-day { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); line-height: 1.8 }
.cl-day b { color: var(--ink); font-family: var(--mono); font-weight: 500 }
.cl-note { border-left: 2px solid var(--accent); padding-left: 22px }
.cl-note h3 { font-size: 20px; margin-bottom: 12px }
.cl-note li { position: relative; padding-left: 15px; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); margin-bottom: 9px }
.cl-note li::before { content: ""; position: absolute; left: 0; top: .78em; width: 5px; height: 5px; background: var(--accent); border-radius: 1px; transform: rotate(45deg) }
.cl-note b { color: var(--ink); font-weight: 600 }
.cl-src { margin-top: 14px; font-size: 12.5px; color: var(--ink-3) }

/* ---------- 吃与买 ---------- */
.food { padding-bottom: clamp(52px, 7vw, 90px) }
.food-plate { margin: 0 0 34px }
.food-plate .frame { aspect-ratio: 1400 / 901 }
.food-plate figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-3) }
.food-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 60px) }
.food-col h3 { font-size: 23px; margin-bottom: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2) }
.li { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line) }
.li:last-child { border-bottom: 0 }
.pin { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--accent); padding-top: 5px }
.li b { display: block; font-family: var(--serif); font-size: 17.5px; font-weight: 600; color: var(--ink); margin-bottom: 4px }
.li p { font-size: 14.5px; line-height: 1.75; color: var(--ink-2) }

/* ---------- Tips ---------- */
.tips { padding-bottom: clamp(52px, 7vw, 90px) }
.tips-head { max-width: 60ch; margin-bottom: 0 }
.tips-head h2 { font-size: clamp(28px, 3.7vw, 46px) }
.tips-head p { margin-top: 12px; color: var(--ink-3); font-size: 15.5px }
/* 行前随身物：居中横幅，不参与两栏栅格，避免又做成一组图文对 */
.tips-kit { max-width: 760px; margin: 26px auto clamp(28px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); overflow: hidden; box-shadow: var(--shadow) }
.tips-kit img { display: block; width: 100%; height: auto }
.tips-kit figcaption { padding: 11px 15px 13px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: var(--ink-3); text-align: center }
.tips-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden }
.tip-group { background: var(--paper-2); padding: 28px 26px 24px; transition: background-color .3s }
.tip-group:hover { background: var(--paper) }
.tip-wide { grid-column: 1 / -1; background: var(--paper) }
.tip-group h3 { font-size: 20px; margin-bottom: 14px }
.tip-group li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.82; color: var(--ink-2); margin-bottom: 10px }
.tip-group li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 1px; background: var(--accent) }
.tip-group b { color: var(--ink); font-weight: 600 }

/* ---------- 来源 ---------- */
.sources { padding-bottom: clamp(48px, 6vw, 78px) }
.src-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; margin-bottom: 26px }
.src-head h2 { font-size: clamp(28px, 3.7vw, 46px) }
.src-head p { margin-top: 12px; color: var(--ink-3); font-size: 15px; max-width: 74ch }
.src-head b { color: var(--ink) }
.src-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; counter-reset: s }
.src-list li { background: var(--paper-2); padding: 15px 18px; display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: start; transition: background-color .25s }
.src-list li:hover { background: var(--paper) }
.src-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-align: center; padding: 3px 0; border-radius: 2px; border: 1px solid currentColor; margin-top: 3px }
.t-official { color: var(--sage-ink) }
.t-secondary { color: var(--ochre-ink) }
.t-unverified { color: var(--accent) }
.src-list b { font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--ink); display: block; line-height: 1.5 }
.src-list div p, .src-list div { font-size: 13.5px; color: var(--ink-3); line-height: 1.7 }
.src-list a:not(.src-tag) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; word-break: break-all }
.src-list a:not(.src-tag):hover { color: var(--ink) }
.src-more { display: block; width: 100%; margin-top: 12px }
.src-foot { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); line-height: 1.8; max-width: 88ch }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line); padding-top: 52px; padding-bottom: 64px }
.foot-in { display: flex; flex-wrap: wrap; gap: 30px 60px; justify-content: space-between; align-items: flex-start }
.foot-title { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink) }
.foot-note { margin-top: 10px; max-width: 62ch; font-size: 13.5px; line-height: 1.85; color: var(--ink-3) }
.foot-warn { display: inline-block; margin-top: 14px; padding: 9px 14px; border-radius: 2px; background: var(--accent-soft); color: var(--accent); font-size: 13.5px; font-weight: 500 }
html[data-theme="night"] .foot-warn { color: var(--ink) }
.foot-copy { margin-top: 18px; display: flex; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; line-height: 2; color: var(--ink-3) }
.foot-copy span + span::before { content: "/"; margin: 0 9px; color: var(--line-2) }
.foot-side { display: grid; grid-template-columns: auto auto; gap: 9px 28px; font-size: 14px; color: var(--ink-2) }
.foot-side a { transition: color .2s, transform .2s var(--ease); display: inline-block }
.foot-side a:hover { color: var(--accent); transform: translateX(2px) }
.foot-top { color: var(--ink-3) }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); border-radius: 999px; padding: 11px 20px;
  font-size: 14px; box-shadow: var(--shadow);
  transition: opacity .3s var(--ease), transform .35s var(--ease);
  max-width: min(90vw, 460px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) }
.toast.err { background: var(--accent); color: #fff8f0 }

/* ---------- 视图过渡（主题切换） ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease) }

/* ---------- 标记与来源定位反馈 ---------- */
.day.is-marked .day-idx b { color: var(--accent) }
.day.is-marked .day-idx::after { content: ""; display: block; width: 22px; height: 2px; background: var(--accent); margin-top: 6px }
li[id^="src-"] { scroll-margin-top: calc(var(--head-h) + 24px) }
.flash { animation: flash 1.4s var(--ease) }
@keyframes flash { 0%, 22% { background: var(--accent-soft) } 100% { background: transparent } }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .nav { display: none }
  .hero-in { grid-template-columns: 1fr; gap: 34px; min-height: 0 }
  .hero { padding-top: 26px }
  .facts-grid { grid-template-columns: repeat(2, 1fr); grid-template-areas: "a a" "b c" "d d" "e f" }
  .cl-body { grid-template-columns: 1fr }
  .stack-grid, .stack-grid.flip { grid-template-columns: 1fr }
  .stack-grid.flip .stack-art { order: 0 }
  .stops { grid-template-columns: repeat(2, 1fr) }
  .stack-panel { position: static }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; line-height: 1.8 }
  .top-in { height: 62px; gap: 12px }
  :root { --head-h: 62px }
  .brand { font-size: 16px }
  .brand-ru { display: none }
  .iconbtn { padding: 6px 11px }
  .iconbtn-label { display: none }
  .btn { padding: 12px 20px; font-size: 14.5px }
  .facts-grid { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e" "f" }
  .day-head { grid-template-columns: 60px 1fr; padding-top: 20px }
  .mark { grid-row: auto; grid-column: 1 / -1; justify-self: start; margin-top: 12px }
  .node, .move { grid-template-columns: 14px 1fr; gap: 11px }
  .node .dot { width: 14px; height: 14px; margin-top: 20px }
  .node:not(:last-child)::before, .move-line::before { left: 6.5px }
  .node-body { padding: 15px 15px 16px }
  .node-body h4 { font-size: 17px }
  .move { grid-template-columns: 14px 1fr }
  .extend, .food-grid, .tips-body, .src-list, .src-head { grid-template-columns: 1fr }
  .src-head { align-items: start }
  .stops { grid-template-columns: 1fr }
  .li { grid-template-columns: 1fr; gap: 4px }
  .pin { padding-top: 0 }
  .cl-row { grid-template-columns: 52px 1fr 70px; gap: 8px }
  .cl-row::after { left: 0 }
  .foot-side { grid-template-columns: 1fr 1fr }
  .frame::after { inset: 5px }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation: none !important; transition: none !important }
  html.motion.reveal-armed [data-reveal] { opacity: 1 !important; transform: none !important }
  html.motion .cl-fill { transform: scaleX(1) !important }
  html.motion .map-line, html.motion .map-dash { stroke-dasharray: none !important; stroke-dashoffset: 0 !important }
  .spine, .progress { display: none }
  .stack-panel { position: static }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(43, 33, 26, .4); --line-2: rgba(43, 33, 26, .6); --ink-3: #4a3a2d }
}

@media print {
  /* 打印/存 PDF 要拿到完整行程：折叠必须全部展开，互动区整段去掉 */
  .top, .spine, .grain, .toast, .day-nav, .mbnav, .progress, .skip, .filters,
  #motion, .src-more, .spotlight, .ripple { display: none }
  .acc-body, .acc-body[hidden] { display: block !important; height: auto !important }
  .acc-caret { display: none }
  #srcList:not(.is-all) > li { display: grid !important }
  .stack-panel { position: static }
  .day, .node, .move, .fact, .tip-group, .pair, .frame { break-inside: avoid }
  main section[id], .day, .acc-head { scroll-margin-top: 0 }
  html { scroll-behavior: auto }
  body { background: #fff }
}

/* ============================================================
   动效系统（motion.js / site-motion.js 的界面）
   ============================================================ */
.lab { padding-bottom: clamp(52px, 7vw, 88px) }

.bench { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); padding: 22px 24px 24px; margin-bottom: 22px }
.bench-top { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between }
.bench-top h3 { font-size: 21px }
.bench-pick { font-size: 13px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 9px }
.bench-preset {
  font: inherit; font-size: 13px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-2); border-radius: 2px; padding: 6px 9px;
}
.bench-track {
  position: relative; height: 92px; margin: 18px 0 6px;
  border-top: 1px solid var(--line); border-bottom: 1px dashed var(--line-2);
  background: repeating-linear-gradient(90deg, transparent 0 39px, var(--line-soft, rgba(43,33,26,.07)) 39px 40px);
  touch-action: pan-y; cursor: grab;
}
.bench-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px }
.bench-track.is-grab { cursor: grabbing }
.bench-rest { position: absolute; left: 50%; top: 8px; bottom: 8px; width: 1px; background: var(--accent); opacity: .5 }
.bench-puck {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  background: var(--accent); border-radius: 2px; cursor: grab; touch-action: none;
  transform: translateX(var(--drag-x, 0px));
  box-shadow: 0 10px 24px -14px rgba(43, 33, 26, .8);
}
.bench-puck.is-grabbed { cursor: grabbing; filter: brightness(1.08) }
.bench-puck:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px }
.bench-meta { font-size: 13px; color: var(--ink-3); line-height: 1.75 }
.bench-meta b { font-family: var(--mono); font-weight: 500; color: var(--ink); font-size: 12.5px }

.lab-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 16px }

.curve-lab {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 2px 2px 14px; scrollbar-width: thin;
}
.curve-lab:empty::after { content: "曲线实验室需要 JavaScript 渲染"; font-size: 13px; color: var(--ink-3) }
.curve {
  position: relative; flex: 0 0 216px; scroll-snap-align: start; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 16px; cursor: pointer;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.curve:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow) }
.curve::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(200px 130px at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 70%);
}
.curve:hover::before { opacity: 1 }
.curve.is-hidden { display: none }
.curve-plot svg { display: block; width: 100%; height: 72px; overflow: visible }
.curve-base { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 4 }
.curve-path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.curve-dot { fill: var(--ink) }
.curve h4 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-top: 10px }
.curve-flag { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; color: var(--accent); border: 1px solid currentColor; border-radius: 2px; padding: 1px 5px }
.curve-meta { font-size: 12px; color: var(--ink-3); margin-top: 5px }
.curve-css { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); margin-top: 9px; word-break: break-all; line-height: 1.5; opacity: .8 }
.lab-hint { font-size: 12.5px; color: var(--ink-3); margin-top: 2px }

.lab-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 26px }
.diag-box { background: var(--paper-2); padding: 22px 24px }
.diag-box h3 { font-size: 18px; margin-bottom: 12px }
.diag li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2) }
.diag li:last-child { border-bottom: 0 }
.diag li b { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--ink); text-align: right }

@media (max-width: 760px) {
  .curve { flex-basis: 178px }
  .lab-foot { grid-template-columns: 1fr }
  .bench-puck { width: 46px; height: 46px; margin: -23px 0 0 -23px }
}
@media (prefers-reduced-motion: reduce) {
  .curve:hover { transform: none }
  .bench-puck { transition: none }
}

/* ============================================================
   折叠章节（天 / Tips / 清单）与图文对偶版式
   ============================================================ */
.acc { position: relative; border-top: 1px solid var(--line) }
.acc:last-of-type { border-bottom: 1px solid var(--line) }
.acc-head {
  position: relative; width: 100%; text-align: left; background: none;
  display: grid; grid-template-columns: 54px 96px minmax(0, 1fr) auto 20px;
  gap: 8px 20px; align-items: center; padding: 20px 4px 20px 14px;
  transition: background-color .3s var(--ease);
}
.acc-head::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .46s var(--ease);
}
.acc-head:hover { background: color-mix(in srgb, var(--paper-3) 55%, transparent) }
.acc-head:hover::before { transform: scaleY(.34) }
.acc.is-open .acc-head::before { transform: scaleY(1) }
.acc-num { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; line-height: 1 }
.acc.is-open .acc-num { color: var(--accent) }
.acc-city { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 3px }
.acc-thumb { display: block; width: 100%; max-width: 96px; aspect-ratio: 96 / 68; overflow: hidden; border: 1px solid var(--line); border-radius: 2px; background: var(--paper-3); transition: opacity .4s var(--ease), transform .5s var(--ease), filter .4s }
.acc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block }
.acc.is-open .acc-thumb { opacity: .34; transform: scale(.9); filter: saturate(.6) }
.acc-sum { min-width: 0 }
.acc-title { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: -.015em; line-height: 1.3; transition: color .3s }
.acc.is-open .acc-title { color: var(--accent) }
.acc-line { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }
.acc-drive { font-size: 12.5px; color: var(--ink-3); text-align: right; max-width: 24ch; line-height: 1.6 }
.acc-drive strong { color: var(--ink); font-weight: 600 }
.acc-caret { position: relative; width: 14px; height: 14px; justify-self: end }
.acc-caret:before, .acc-caret:after {
  content: ""; position: absolute; top: 6px; width: 9px; height: 1.5px; background: var(--ink-2);
  transition: transform .42s var(--ease), background-color .3s;
}
.acc-caret:before { left: 0; transform: rotate(45deg) }
.acc-caret:after { right: 0; transform: rotate(-45deg) }
.acc.is-open .acc-caret:before { transform: rotate(-45deg); background: var(--accent) }
.acc.is-open .acc-caret:after { transform: rotate(45deg); background: var(--accent) }

.acc-body { overflow: hidden }
.acc-inner { padding: 6px 4px 34px 14px }

/* 展开后的版式：大图在左并粘住，时间轴在右 */
.day-grid { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 26px 40px; align-items: start }
.day-plate { margin: 0; position: sticky; top: calc(var(--head-h) + 64px) }
.day-plate img { display: block; width: 100%; aspect-ratio: 900 / 651; object-fit: cover; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow) }
.day-plate figcaption { margin-top: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--ink-3) }
.day-body > .day-drive { font-size: 13px; color: var(--ink-3); margin-bottom: 6px }
.day-body > .day-drive b { color: var(--ink); font-weight: 600 }
.day-body .mark { margin: 4px 0 20px; }

/* 节点小插图：边角料尺寸，不与主插画抢位置 */
.node-fig { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding-top: 13px; border-top: 1px dashed var(--line-2) }
.node-fig img { width: 88px; height: 60px; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 2px }
.node-fig figcaption { font-size: 12px; line-height: 1.6; color: var(--ink-3) }

/* 通用小组件折叠（Tips、清单） */
.mini-head {
  position: relative; width: 100%; text-align: left; display: flex; align-items: baseline; gap: 14px;
  padding: 4px 0 12px; transition: color .3s;
}
.mini-head h3 { font-size: 20px; transition: color .3s }
.mini-head .acc-line { flex: 1; margin: 0; -webkit-line-clamp: 1 }
.mini-head .acc-caret { align-self: center; margin-left: auto }
.tip-group[data-acc]:hover .mini-head h3 { color: var(--accent) }
[data-acc-body] { overflow: hidden }
[data-acc].is-open .mini-head h3 { color: var(--accent) }

/* 图文对偶：路线、季节、清单 */
.pair { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(22px, 3.4vw, 46px); align-items: center }
.pair.flip > .pair-art { order: 2 }
.pair-art { margin: 0 }
.pair-art img { display: block; width: 100%; object-fit: cover; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow) }
.pair-art figcaption { margin-top: 10px; font-size: 12.5px; color: var(--ink-3) }
.pair-body h3 { font-size: clamp(21px, 2.4vw, 28px); margin-bottom: 10px }
.pair-body p { font-size: 15px; color: var(--ink-2); max-width: 52ch }
.pair-body .pair-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 13px; color: var(--ink-3) }
.pair-body .pair-meta b { font-family: var(--mono); font-size: 12px; color: var(--ink); font-weight: 500 }

@media (max-width: 1080px) {
  .day-grid { grid-template-columns: 1fr }
  .day-plate { position: static }
  .pair { grid-template-columns: 1fr }
  .pair.flip > .pair-art { order: 0 }
}
@media (max-width: 760px) {
  .acc-head { grid-template-columns: 40px 64px minmax(0, 1fr) 16px; padding: 16px 2px 16px 10px; row-gap: 4px }
  .acc-num { font-size: 21px }
  .acc-thumb { width: 64px; height: 46px }
  .acc-title { font-size: 17.5px }
  .acc-drive { grid-column: 2 / -1; text-align: left; max-width: none; font-size: 12px }
  .acc-caret { align-self: start; margin-top: 4px }
  .acc-inner { padding: 4px 2px 26px 10px }
  .node-fig img { width: 68px; height: 46px }
  .day-body .mark { margin-bottom: 16px }
}
@media (prefers-reduced-motion: reduce) {
  .acc-thumb, .acc-caret:before, .acc-caret:after, .acc-head::before { transition: none }
}

.food-pairs { display: grid; gap: clamp(34px, 5vw, 66px); margin-top: 8px }
.pair-body [data-acc-body] { margin-top: 6px }

/* 折叠在 Tips 与清单里的局部修正 */
.tips-body .acc { border-top: 0 }
.tips-body .acc:last-of-type { border-bottom: 0 }
.tip-group .mini-head { padding: 0 0 10px }
.tip-group [data-acc-body] ul { padding-top: 2px }
.food-pairs .pair-body .li:first-of-type { border-top: 0 }
.pair-art img { aspect-ratio: 1000 / 724 }
.cl-note .pair-art img { aspect-ratio: 900 / 651 }
.day-nav a.is-cur { border-color: var(--accent); color: var(--accent) }
.day-nav a.is-cur.on { color: #fff8f0 }
html[data-theme="night"] .day-nav a.is-cur { color: var(--accent) }

/* ============================================================
   展开态改成编辑式跨页（对齐亮点那组的气质）
   收起：缩略图 + 标题 + 一行摘要
   展开：标题长成展示级大字，缩略图让位，大图与时间轴并排，节点去掉卡片盒
   ============================================================ */
.acc-head { grid-template-columns: 54px 96px minmax(0, 1fr) auto 20px; transition: grid-template-columns .46s var(--ease), padding .46s var(--ease), background-color .3s var(--ease) }
.acc.is-open .acc-head { grid-template-columns: 54px 0 minmax(0, 1fr) auto 20px; padding-bottom: 18px }
.acc-thumb { overflow: hidden; transition: opacity .32s ease, transform .46s var(--ease) }
.acc.is-open .acc-thumb { opacity: 0; transform: scale(.72) }
.acc-title { transition: font-size .46s var(--ease), color .3s, line-height .46s var(--ease) }
.acc.is-open .acc-title { font-size: clamp(27px, 3.5vw, 42px); line-height: 1.14; letter-spacing: -.022em }
.acc-line { transition: font-size .4s var(--ease), color .3s, margin .4s var(--ease); max-width: 64ch }
.acc.is-open .acc-line { -webkit-line-clamp: unset; display: block; font-size: 15.5px; line-height: 1.85; color: var(--ink-2); margin-top: 10px }
.acc.is-open .acc-drive { font-size: 12px; opacity: .78 }
.acc-inner { padding: 18px 4px 44px 14px }

/* 大图与时间轴并排，图占近半版心并粘住 */
.day-grid { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 30px clamp(30px, 4.6vw, 62px) }
.day-plate img { aspect-ratio: 4 / 3 }
.day-plate figcaption { margin-top: 12px }

/* 节点：从卡片盒改成细线分行的正文 */
.node-body { background: none; border: 0; border-radius: 0; padding: 15px 0 3px; box-shadow: none }
.node:first-child .node-body { border-top: 0; padding-top: 2px }
.node-body { border-top: 1px solid var(--line) }
.node:first-child .node-body { border-top: 0 }
.node:hover .node-body { transform: none; box-shadow: none; background: none }
.node-body h4 { font-size: 21px; margin: 7px 0 8px; letter-spacing: -.018em; transition: color .25s }
.node:hover .node-body h4 { color: var(--accent) }
.node-body p { font-size: 15px; line-height: 1.9; max-width: 58ch }
.node-top time { font-size: 13.5px }
.tags li { background: none; padding: 3px 0 3px 11px; margin: 0; color: var(--ink-3); position: relative }
.tags li:before { content: ""; position: absolute; left: 0; top: .95em; width: 5px; height: 1px; background: var(--accent) }
.stay { border-color: var(--line); background: none }
.node-fig { border-top: 0; padding-top: 16px; margin: 4px 0 0 }
.node-fig img { width: 132px; height: 92px }
.move { margin-bottom: 6px }

@media (max-width: 1080px) {
  .day-grid { grid-template-columns: 1fr }
  .acc.is-open .acc-head { grid-template-columns: 46px 0 minmax(0, 1fr) auto 18px }
}
@media (max-width: 760px) {
  .acc-head { grid-template-columns: 40px 64px minmax(0, 1fr) 16px }
  .acc.is-open .acc-head { grid-template-columns: 34px 0 minmax(0, 1fr) 16px }
  .acc.is-open .acc-title { font-size: 25px }
  .acc.is-open .acc-line { font-size: 15px }
  .node-body h4 { font-size: 18px }
  .node-fig img { width: 96px; height: 66px }
}

/* ============================================================
   一镜到底补强：轨道绘制、大图随滚动呼吸、展开节奏与桌面端留白
   ============================================================ */
.acc-head { scroll-margin-top: calc(var(--head-h) + 58px) }

/* 时间轴节奏：更松的行距，更细更淡的分隔线 */
.node { padding-bottom: 26px }
.node-body { padding: 20px 0 4px }
.node:first-child .node-body { padding-top: 4px }
.node .dot { margin-top: 28px }
.node:first-child .dot { margin-top: 12px }
.node:not(:last-child)::before { top: 48px; background: linear-gradient(var(--line-2), transparent) }
.node-body p { max-width: 56ch }
.move { padding: 0 0 22px }
.move-txt { font-size: 12.5px; letter-spacing: .01em }
.tags { margin-top: 14px }

/* 展开时轨道自上而下绘制，节点依次落位（对应 animateGroup 的累加偏移） */
html.motion .acc-body .node:not(:last-child)::before { transform: scaleY(0); transform-origin: top }
html.motion .acc.is-open .acc-body .node:not(:last-child)::before { animation: railDraw .42s var(--ease) forwards }
html.motion .acc.is-open .acc-body .node:nth-child(1)::before { animation-delay: .10s }
html.motion .acc.is-open .acc-body .node:nth-child(3)::before { animation-delay: .22s }
html.motion .acc.is-open .acc-body .node:nth-child(5)::before { animation-delay: .34s }
html.motion .acc.is-open .acc-body .node:nth-child(7)::before { animation-delay: .46s }
html.motion .acc.is-open .acc-body .node:nth-child(9)::before { animation-delay: .58s }
@keyframes railDraw { to { transform: scaleY(1) } }

/* 大图随滚动轻微呼吸，粘性时不至于完全静止 */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .day-plate { animation: plateBreathe linear both; animation-timeline: view(); animation-range: cover 0% cover 100% }
  }
}
@keyframes plateBreathe {
  from { transform: translateY(-12px) scale(1.018) }
  to { transform: translateY(12px) scale(1) }
}

/* 桌面端：标题与摘要的层级更明确，图与文的重量更平衡 */
@media (min-width: 1081px) {
  .acc-head { padding: 26px 6px 24px 16px }
  .acc.is-open .acc-head { padding-bottom: 26px }
  .acc-num { font-size: 30px }
  .acc.is-open .acc-title { font-size: clamp(30px, 2.9vw, 44px) }
  .acc.is-open .acc-line { font-size: 16px; line-height: 1.9; margin-top: 12px; max-width: 58ch }
  .acc-inner { padding: 22px 6px 56px 16px }
  .day-grid { grid-template-columns: minmax(0, 45%) minmax(0, 1fr); gap: 34px clamp(40px, 4.4vw, 68px) }
  .day-plate { top: calc(var(--head-h) + 66px) }
  .node-body h4 { font-size: 22px }
  .node-fig img { width: 148px; height: 102px }
}

@media (prefers-reduced-motion: reduce) {
  html.motion .acc-body .node:not(:last-child)::before { transform: none }
  .day-plate { animation: none !important; transform: none !important }
}

/* ============================================================
   移动端折叠头重排：360px 屏下标题列从约 188px 放宽到约 250px
   编号降级为眉标，缩略图移到右端，箭头改为绝对定位
   ============================================================ */
@media (max-width: 760px) {
  .acc-head {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 62px;
    grid-template-areas: "num thumb" "sum thumb" "drive drive";
    gap: 2px 14px; padding: 16px 34px 16px 10px;
  }
  .acc-num { grid-area: num; font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: .1em; color: var(--ink-3) }
  .acc-sum { grid-area: sum }
  .acc-thumb { grid-area: thumb; width: 100%; max-width: 62px; aspect-ratio: 1 / 1 }
  .acc-drive { grid-area: drive; margin-top: 9px }
  .acc-caret { position: absolute; right: 8px; top: 20px; margin: 0 }
  .acc.is-open .acc-head { grid-template-columns: minmax(0, 1fr) 0px; padding-bottom: 18px }
  .acc.is-open .acc-num { color: var(--accent) }
  .acc.is-open .acc-title { font-size: 26px; line-height: 1.16 }
  .acc.is-open .acc-line { font-size: 15px; line-height: 1.85 }
  .acc.is-open .acc-caret { top: 16px }

  /* 时间轴在窄屏的对齐与行距 */
  .node { grid-template-columns: 14px minmax(0, 1fr); gap: 12px; padding-bottom: 22px }
  .node .dot { margin-top: 24px }
  .node:first-child .dot { margin-top: 10px }
  .node:not(:last-child)::before { top: 42px }
  .node-body { padding: 17px 0 2px }
  .node-body h4 { font-size: 18.5px; margin: 5px 0 7px }
  .node-body p { font-size: 15px; line-height: 1.85 }
  .node-top time { font-size: 13px }
  .stay { font-size: 11.5px; padding: 2px 8px }
  .move { grid-template-columns: 14px minmax(0, 1fr); gap: 12px; padding-bottom: 18px }
  .node-fig { gap: 11px }
  .node-fig figcaption { font-size: 11.5px }
  .acc-inner { padding: 14px 2px 34px 10px }
  .day-plate figcaption { font-size: 10px }
}

/* 网格与弹性子项的 min-width 修正：长域名会把轨道撑破 */
.src-list li > div, .diag li > *, .li > div, .pair-meta, .acc-sum, .acc-line, .node-body, .move-txt { min-width: 0 }
.src-list div, .src-list b, .src-foot, .diag li b { overflow-wrap: anywhere }
.src-list a:not(.src-tag) { overflow-wrap: anywhere; word-break: break-word }
@media (max-width: 760px) {
  .src-list li { grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 14px 14px }
  .diag li { grid-template-columns: minmax(0, 1fr); gap: 2px }
  .diag li b { text-align: left }
  .li { grid-template-columns: minmax(0, 1fr); gap: 3px }
  .node-top { gap: 10px }
}

/* 最窄手机（320px）：预设下拉不再撑破容器 */
.bench-pick { min-width: 0; max-width: 100% }
.bench-preset { min-width: 0; max-width: 100%; text-overflow: ellipsis }
@media (max-width: 400px) {
  .bench-top { display: block }
  .bench-pick { display: block; margin-top: 10px; font-size: 12px }
  .bench-preset { width: 100%; margin-top: 4px }
  .curve { flex-basis: 162px }
}

/* ============================================================
   移动端交互对齐：底部导航、触控反馈、可点区域、悬停等价物
   ============================================================ */
a, button, .acc-head, .chip, .mark, .cl-row, .curve, .day-nav a { touch-action: manipulation; -webkit-tap-highlight-color: rgba(180, 70, 43, .13) }

.mbnav { display: none }
@media (max-width: 1080px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)) }
  .mbnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
    display: grid; grid-template-columns: repeat(6, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(12px) saturate(140%);
    border-top: 1px solid var(--line);
  }
  .mbnav a {
    position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
    min-height: 46px; font-size: 13px; color: var(--ink-3); border-radius: 8px;
    transition: color .25s var(--ease), transform .2s var(--ease);
  }
  .mbnav a:active { transform: scale(.93) }
  .mbnav a.on { color: var(--accent); font-weight: 500 }
  .mbnav-i {
    position: absolute; top: 6px; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); left: 0; width: 0;
    background: var(--accent-soft); border-radius: 8px; z-index: 0;
    transform: translateX(var(--x, 0)); width: var(--cw, 0);
    transition: transform .42s var(--ease), width .42s var(--ease);
  }
  .mbnav-i::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 5px; height: 2px; background: var(--accent); border-radius: 2px }

  /* 触控目标尺寸 */
  .day-nav a { padding: 11px 14px; min-height: 44px; display: inline-flex; align-items: center }
  .day-nav ol { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain }
  .mark { padding: 11px 18px; min-height: 44px }
  .chip { padding: 11px 16px; min-height: 44px }
  .iconbtn { min-height: 40px; padding: 8px 12px }
  .btn { min-height: 46px }
  .ref { padding: 7px 6px; margin: -7px -3px -7px 0; min-width: 30px; text-align: center }
  .acc-head { min-height: 76px }
  .mini-head { min-height: 52px }
  .curve { cursor: pointer }
  .curve:active { transform: scale(.975) }
  .curve-lab { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch }

  /* 悬停等价物：点按也能出提示 */
  .acc-head:active { background: color-mix(in srgb, var(--paper-3) 80%, transparent) }
  .cl-row:active, .cl-row.is-shown { background: var(--paper-3) }
  .cl-row.is-shown::after { opacity: 1; transform: none }
  .bench-preset { font-size: 16px }
  .top-in { padding-right: 12px }
  .brand { font-size: 15px; min-height: 40px; justify-content: center }
  .top-tools { gap: 8px; margin-left: 2px }

  /* 来源清单在窄屏折叠，避免 40 行长墙 */
  .src-more {
    display: block; width: 100%; margin-bottom: 12px; min-height: 46px;
    border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper-2);
    font-size: 14px; color: var(--ink-2); transition: background-color .2s, transform .16s var(--ease);
  }
  .src-more:active { transform: scale(.99); background: var(--paper-3) }
  .src-more[hidden] { display: none }
  #srcList:not(.is-all) > li:nth-child(n+7) { display: none }
}
/* 320px 这一档头部放不下长 CTA：换成两字短标签，避免整页横向溢出 */
@media (max-width: 400px) {
  .cta-full { display: none }
  .cta-short { display: inline }
  .bench-preset { min-height: 44px }
}
@media (prefers-reduced-motion: reduce) {
  .mbnav-i { transition: none }
}

.fact.touched::before, .curve.touched::before { opacity: 1 }
.cl-row { cursor: pointer }

@media (max-width: 1080px) { .ref { min-width: 34px; min-height: 30px; padding: 8px 7px } .mbnav a { font-size: 13.5px } }

/* ---------- 透明度偏好：三处毛玻璃都要给不透明兜底 ---------- */
@media (prefers-reduced-transparency: reduce) {
  .top, .day-nav, .mbnav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper) }
}

/* 跳转锚点：skip link 落点，容器本身不该被整块描一圈焦点框 */
#main:focus { outline: none }
#main:focus-visible { outline: 2px solid var(--accent); outline-offset: -78px }
