:root {
  --bg: #FBF9F3;
  --bg-2: #F5EBD8;
  --text: #10263F;
  --muted: #58503C;
  --border: rgba(16, 38, 63, 0.12);
  --accent: #1E6FA8;
  --brand: #1E5AA8;
  --glow: #3FB8FF;
  --sand: #E9C891;
  --sky: #8EC8E8;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --radius: 12px;
  --transition: 0.6s ease;
  --hdr-h: 76px;
  /*
   * 字号阶梯：`src/config/tokens.json` 的 `fontSize.steps` 在这里落地成变量。
   *
   * 在 2026-11-15 复盘之前，这七档只活在 tokens.json 与 `design-tokens.mjs` 的判据里，
   * CSS 一个变量都没定义——而 `AGENTS.md` 却把 `var(--fs-*)` 列为「允许的形态」。
   * 照那条写的声明会整条失效（回退成继承字号），而检查放行，等于静默。现在两者对齐。
   *
   * 新组件用 `var(--fs-*)`；老代码里的字面值不必动（检查接受阶梯上的字面值）。
   * 需要第八档 = 改 tokens.json + 补 ADR，不在这里就地加一个 14.5px。
   */
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 17px;
  --fs-lg: 22px;
  --fs-xl: 30px;
  --fs-display: 44px;
  /* 压在影像上的前景色；透明顶栏的白字用它，别处写 #fff 会被 verify 拦 */
  --on-media: #FFFFFF;
  --hover-box: #FFFFFF;
  --hover-border: #FFFFFF;
  --shadow: 0 10px 30px rgba(30, 57, 43, 0.12);
  /* 夜空区块（蓝眼泪横幅）用，两套主题下都保持夜景 */
  --night-bg: #061426;
  --night-bg-2: #0B2240;
  --night-text: #E8F4FF;
  --night-muted: #A9C4E0;
  /*
   * 介绍色块（景点详情页首屏之后那块面板，`surface: ink`）。
   * **白昼与夜间是两种材质**（ADR 0020，取代 ADR 0014「二」的日那一行）：
   *   白昼 = 沙色半透明纱层 + 深墨字，视频在下面继续；夜间 = 实色岚蓝 + 浅字，原样不动。
   * 白昼用渐变而不是一个色值，是因为沙面要有"上干下湿"的方向；三个 stop 一起改，
   * 别单独调中间那个——上下不透明度的差是它看起来像沙面的全部来源。
   * 半透明度是**可读性的下限**：实测 58% 时正文在视频暗部只有 4.25:1，现在是 64–77%。
   * 换更暗的片子必须重测对比度，别假设这组数还成立。
   */
  /*
   * 实色沙块，不做半透明（2026-11-15 用户看过纱层之后决定："透明好丑"）。
   * 试过一版半透明纱层（`color-mix()` + `backdrop-filter`），三条都站不住：
   * ① 面板的色温由底下那一帧决定，同一块在视频亮部是沙、转到暗部就成灰绿（实测 R−B 从 90 掉到 24）；
   * ② 详情页的面板由 2–3 个 region 拼成，每个 region 各画一遍背景，任何渐变都会在拼缝处重启——
   *    实测接缝两侧差 15 个色阶，就是一条横带；
   * ③ 单一视频的页面（坛南湾那支是夜里的蓝眼泪）透上来的颜色跟白昼主题打架。
   * 实色一次解决三条，代价是画面不再延续——那部分交给上下两块影像自己做。
   */
  --ink-bg: #ECD5A6;
  --ink-text: #0B2240;
  --ink-body: #1E2E42;
  --ink-muted: #3F2E18;
  --ink-border: rgba(58, 42, 22, 0.24);
  --ink-link: #0B2240;
  /* 面板上的文字链：白昼与正文同墨，夜间仍是沙色（原来直接写 var(--sand)，在沙底上是 1.25:1） */
  --ink-cta: #0B2240;
  --ink-pad: clamp(2.5rem, 6vw, 4.5rem);
  /*
   * 收尾 CTA 的压暗层（`surface: scrim`）。**也不跟主题走**，理由和 ink 不同：
   * 日间的 veil 是奶油色，白字压上去会糊；这块要的是"视频暗下去、字浮上来"，
   * 和顶栏压在视频上是同一套逻辑——固定深底 + 白色前景。
   */
  --scrim-bg: linear-gradient(180deg, rgba(6, 20, 38, 0.62) 0%, rgba(6, 20, 38, 0.8) 100%);
  --glow-veil: rgba(63, 184, 255, 0.22);
  --glow-ring: rgba(63, 184, 255, 0.25);
  --glow-halo: rgba(63, 184, 255, 0.45);
  /*
   * 地图的两块底：`--map-veil` 是「纱」的底色，`--map-label-bg` 是标注名的底。
   *
   * 纱**不是**叠一层半透明 div：那样会连标注一起压灰（div 在标注之上就是灰点，在之下就
   * 被压在地图外面）。做法是给地图容器上这个底色、再把瓦片层调到 0.6 透明度，
   * 于是「瓦片 → 纱 → 标注」的层次天然成立。所以它是**实色**，不是 rgba。
   */
  --map-veil: #FCFAF6;
  --map-label-bg: rgba(251, 249, 243, 0.78);
  --cta-bg: rgba(255, 255, 255, 0.55);
  /* 压在强调色上的文字：按钮、选中的板块。不要拿 --on-media（那是压在影像上的白字）凑 */
  --on-accent: #FFFFFF;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #061426;
  --bg-2: #0B2240;
  --text: #E8F4FF;
  --muted: #A9C4E0;
  --border: rgba(232, 244, 255, 0.14);
  --accent: #3FB8FF;
  --brand: #1E5AA8;
  --glow: #3FB8FF;
  --sparkle: #7FE3FF;
  --sand: #E9C891;
  --sky: #8EC8E8;
  --cta-bg: rgba(11, 34, 64, 0.55);
  --hover-box: rgba(255, 255, 255, 0.1);
  --hover-border: rgba(255, 255, 255, 0.9);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  /* 暗色下 accent 是亮蓝，压在上面的字要深色才读得清 */
  --on-accent: #061426;
  /*
   * 介绍色块在夜里回到实色岚蓝（ADR 0020）：白昼那套沙色纱层只在有日光的前提下成立，
   * 压到夜里会把整页最亮的东西变成一块面板，视频也被它提亮成灰。
   * 五个前景 token 一起覆盖回去——白昼是深墨字，夜里必须是浅字，两个方向都要写全，
   * 漏一个就会在夜间出现"深墨字压深蓝"（等于没有字）。
   */
  --ink-bg: #143C63;
  --ink-text: var(--night-text);
  --ink-body: #C2D6E8;
  --ink-muted: var(--night-muted);
  --ink-border: rgba(232, 244, 255, 0.22);
  --ink-link: var(--glow);
  --ink-cta: var(--sand);
  /* 夜间的地图仍是浅色瓦片（天地图只提供一套样式），只压暗不反相——反相会把中文注记变成负片 */
  --map-veil: #0B1A26;
  --map-label-bg: rgba(6, 20, 38, 0.76);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.25; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
/* 只给上下留白，左右交给 .container：否则会把窄屏的 1rem 内边距覆盖掉 */
.page { padding-top: 2rem; padding-bottom: 4rem; min-height: 60vh; }

/* ---------------- 顶栏：浮在内容上，整屏页默认透明 ---------------- */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--hdr-h);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 左 / 中 / 右 三等分，品牌字居正中 */
  align-items: center;
  padding: 0 clamp(8px, 2vw, 22px);
  background: transparent;
  color: var(--text);
  transition: background-color 0.4s var(--transition), color 0.4s var(--transition),
    box-shadow 0.4s var(--transition);
}

/* 非整屏页（其余所有页面）：一开始就是实色栏，并给正文让出高度 */
body:not([data-hero]) .hdr { background: var(--bg); box-shadow: 0 1px 0 var(--border); }
body:not([data-hero]) main { padding-top: var(--hdr-h); }

/* 整屏页：白字压在视频上；悬停 / 滚过首屏 / 抽屉打开时落成实色栏 */
body[data-hero] .hdr { color: var(--on-media); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); }
body[data-hero] .hdr:hover,
body[data-hero] .hdr:focus-within,
body[data-hero][data-scrolled="true"] .hdr,
body[data-nav="open"] .hdr {
  background: var(--bg);
  color: var(--text);
  text-shadow: none;
  box-shadow: 0 1px 0 var(--border);
}

/* 左：双横线开关（无小字），打开时两横转成叉 */
.burger {
  justify-self: start;
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.25s var(--transition), border-color 0.25s var(--transition),
    box-shadow 0.25s var(--transition);
}
.burger span { display: block; width: 22px; height: 1px; background: currentColor; transition: transform 0.3s var(--transition); }
.burger span + span { margin-top: 7px; }
.burger:hover,
.burger:focus-visible {
  background: var(--hover-box);
  border-color: var(--hover-border);
  box-shadow: var(--shadow);
  outline: none;
}
body[data-nav="open"] .burger span:first-child { transform: translateY(4px) rotate(45deg); }
body[data-nav="open"] .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* 中：品牌图（字标，尺寸来自 src/config/nav.ts，图形在 ui/BrandLogo.astro）
 *
 * 字标本身只有白墨一版（设计稿是压在视频上的），落在浅色实色顶栏上会消失，
 * 所以墨色全走 `--lg-*` 变量：默认深墨（浅底），压在视频上 / 暗色主题换白墨。
 * 变量名带 `lg-` 前缀，免得和站点 token 撞。 */
.brand {
  justify-self: center;
  display: flex;
  align-items: center;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}
.brand:hover,
.brand:focus-visible { opacity: 1; }
.brand-logo {
  display: block;
  height: var(--brand-logo-h);
  width: auto;
  /* 浅底：深墨 */
  --lg-cn-a: #0f3355;
  --lg-cn-b: #2b78c9;
  --lg-en-a: #103a60;
  --lg-en-b: #3b8fd8;
  --lg-spark: #2fa8e0;
  --lg-line: #3f97cf;
  --lg-line-strong: #2b78c9;
  --lg-glow: #4aa8e0;
}
/* 深底：整屏页压视频（未滚过、未悬停、菜单未开）与暗色主题 → 白墨（设计稿原色） */
body[data-hero]:not([data-scrolled="true"]):not([data-nav="open"]) .hdr:not(:hover):not(:focus-within) .brand-logo,
:root[data-theme="dark"] .hdr .brand-logo {
  --lg-cn-a: #ffffff;
  --lg-cn-b: #a6e8ff;
  --lg-en-a: #ffffff;
  --lg-en-b: #c8f4ff;
  --lg-spark: #6af0ff;
  --lg-line: #bff0ff;
  --lg-line-strong: #ffffff;
  --lg-glow: #5fe0ff;
}
/* 字标用的两支字体只含这几个字符（子集，见 public/fonts/），别拿去排别处的字 */
@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/great-vibes-brand.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/noto-serif-sc-brand.woff2') format('woff2');
  unicode-range: U+5E73, U+6F6D;
}
/* 页脚还留着「岚」字，这里只留它用到的两条 */
.brand-mark { color: var(--brand); line-height: 1; }

/* 右：语言 + 日夜 */
.hdr-actions { justify-self: end; display: flex; align-items: center; gap: clamp(2px, 1vw, 8px); }

.ctrl {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 9px 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s var(--transition), border-color 0.25s var(--transition),
    box-shadow 0.25s var(--transition);
}
.ctrl:hover,
.ctrl:focus-visible {
  background: var(--hover-box);
  border-color: var(--hover-border);
  box-shadow: var(--shadow);
  outline: none;
}

/* 语言：常态只显示当前语言，悬停/聚焦才下拉其余 */
.lang { position: relative; }
.lang-current { text-transform: none; letter-spacing: 0.04em; }
.lang-caret {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s var(--transition);
}
.lang:hover .lang-caret,
.lang:focus-within .lang-caret,
.lang.is-open .lang-caret { transform: rotate(225deg) translate(-1px, -1px); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 132px;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.24s var(--transition), transform 0.24s var(--transition), visibility 0.24s;
}
.lang:hover .lang-menu,
.lang:focus-within .lang-menu,
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-item {
  display: block;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background-color 0.2s var(--transition), border-color 0.2s var(--transition);
}
.lang-item:hover,
.lang-item:focus-visible { background: var(--hover-box); border-color: var(--hover-border); outline: none; }

/* 日夜：两套文案都渲染，由 data-theme 决定露哪一个，首帧就是对的 */
.mode { position: relative; }
.mode-glyph { display: inline-flex; width: 17px; height: 17px; transition: transform 0.6s var(--transition); }
.mode-glyph svg { width: 17px; height: 17px; animation: glyph-breathe 5.6s ease-in-out infinite; }
.glyph--night { display: none; }
[data-theme="dark"] .glyph--day { display: none; }
[data-theme="dark"] .glyph--night { display: block; }
@keyframes glyph-breathe {
  0%, 100% { opacity: 0.72; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { .mode-glyph svg { animation: none; } }

.mode:hover .mode-glyph { transform: rotate(180deg); }

.mode-text { font-family: var(--serif); font-size: 15px; letter-spacing: 0.04em; }
.mode-text--night,
.mode-hint--night { display: none; }
[data-theme="dark"] .mode-text--day,
[data-theme="dark"] .mode-hint--day { display: none; }
[data-theme="dark"] .mode-text--night { display: inline; }
[data-theme="dark"] .mode-hint--night { display: block; }

/* 悬停时从按钮下方浮一行小字：说明点一下会去哪。绝对定位，不占布局 */
.mode-hint {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  padding: 5px 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.24s var(--transition), transform 0.24s var(--transition);
}
.mode:hover .mode-hint,
.mode:focus-visible .mode-hint { opacity: 1; transform: translateY(0); }

/* 菜单样式见文件末尾「左侧菜单：整屏覆盖层」一节：抽屉已改成覆盖层，
   遮罩（.scrim）随之取消——覆盖层自己铺满视口，点关闭按钮或按 Esc 收起。 */

/* footer */
.site-footer { border-top: 0.5px solid var(--border); padding: 2.5rem 1.25rem 1.5rem; background: var(--bg-2); transition: background var(--transition); }
.footer-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1.5rem; }
.footer-brand .brand-mark { font-size: 30px; }
.footer-brand p { color: var(--muted); margin: 0.5rem 0 0; font-size: 14px; }
.footer-col h4 { font-size: 14px; margin: 0 0 0.6rem; }
.footer-col a { display: block; color: var(--muted); font-size: 13px; margin-bottom: 0.4rem; }
.footer-col a:hover { color: var(--accent); }
.footer-copy { max-width: 1080px; margin: 2rem auto 0; color: var(--muted); font-size: 12px; }

/* card */
.card { display: block; border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); transition: transform 0.3s ease, border-color 0.3s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 0.9rem 1rem; }
.card-body h3 { margin: 0; font-size: 17px; color: var(--text); }
.card-body p { margin: 0.3rem 0 0; font-size: 13px; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }

/* gallery：缩略图是按钮，点开是原生 dialog 灯箱（组件见 ui/Gallery.astro） */
.gallery-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.04); opacity: 0.92; }
.gallery-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.lightbox {
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  width: min(1080px, 94vw);
  max-height: 94vh;
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow);
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox::backdrop { background: rgba(3, 12, 26, 0.86); }
/* 灯箱打开时锁住页面滚动（由 Gallery 的脚本切 data-lightbox） */
body[data-lightbox="open"] { overflow: hidden; }
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.lightbox-img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: var(--bg-2);
}
.lightbox-nav { display: flex; justify-content: center; gap: 0.5rem; padding: 0.6rem; }
.lightbox-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0.5px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s var(--transition), color 0.25s var(--transition);
}
.lightbox-btn:hover,
.lightbox-btn:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }

/* tag */
.tag { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; border: 0.5px solid var(--border); font-size: 12px; color: var(--muted); }

/* breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }

/* page title */
.page-title { font-size: clamp(26px, 6vw, 34px); margin: 0 0 0.5rem; }
.page-lead { color: var(--muted); max-width: 44rem; }

/* 阶段占位提示 */
.notice {
  border: 0.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-top: 1.5rem;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 14px;
  max-width: 44rem;
}

/* 表格：窄屏可横向滚动，不挤爆布局 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; min-width: 320px; border-collapse: collapse; }
.table-wrap th,
.table-wrap td { padding: 0.5rem; text-align: left; border-bottom: 0.5px solid var(--border); white-space: nowrap; }

/* 无卡片列表（餐饮/路线） */
.list-plain { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.list-row { padding: 0.9rem 0; border-bottom: 0.5px solid var(--border); }
/* 顶栏是 fixed：从详情页深链过来时，别让锚点内容钻到顶栏底下 */
.list-row[id],
.card-anchor[id] { scroll-margin-top: calc(var(--hdr-h) + 12px); }
.list-row .meta { color: var(--muted); margin-left: 0.6rem; }
.list-row .desc { color: var(--muted); font-size: 13px; }

/* 正文排版 */
.prose h2 { margin-top: 1.5rem; }
.prose p,
.prose li { color: var(--muted); }
.prose blockquote {
  margin: 1.5rem 0 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 14px;
}

/* 整屏影像带：探索页这类列表页的首屏。只是壳子，画面交给 StageVideo 的多支装法 */
.hero {
  position: relative;
  overflow: hidden;
  height: 100vh;
  height: 100svh; /* 手机地址栏收放时不留空白 */
  min-height: 420px;
  background: var(--bg-2);
  transition: background var(--transition);
}

/* 首屏顶部一层很淡的暗角：顶栏是透明白字，全靠它压得住亮画面。
   只压到 230px 就消失，画面本身仍是通透的。
   两种首屏都要：`.hero`（探索页影像带）与 `.stage__pin`（首页与详情页的舞台） */
body[data-hero] .hero::after,
body[data-hero] .stage__pin::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 12, 26, 0.42) 0%, rgba(3, 12, 26, 0) 230px);
}

/* 视频下方的介绍区（首页第二屏，压在实心面板上）——版式已交给卡片层
   （`.cd-copy` + `.region--ink`，ADR 0018），原来的 `.hero-intro` 三条规则随票删除：
   同一个「引语 / 地名 / 正文」在这里写一份、详情页首屏再写一份，是那五种形态的来源。 */
.hero-cta {
  display: inline-block;
  margin-top: 1.6rem;
  border: 0.5px solid var(--cta-border, var(--accent));
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 14px;
  color: var(--cta-color, var(--accent));
  background: var(--cta-bg);
  box-shadow: var(--cta-glow, none);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
[data-theme="dark"] .hero-cta,
.cta .hero-cta {
  --cta-border: var(--glow);
  --cta-color: var(--glow);
  --cta-bg: rgba(6, 20, 38, 0.5);
  --cta-glow: 0 0 20px var(--glow-ring);
}
/* 首屏那一条是文字链，不是胶囊：去掉边框、底与发光，只留一条下划线。
   颜色走 `--ink-cta`（白昼深墨 / 夜间沙色）——直接写 var(--sand) 在沙底上只有 1.25:1 */
.region--ink .hero-cta {
  --cta-color: var(--ink-cta);
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 0.35em;
}
.footer-credit {
  max-width: 1080px;
  margin: 0.5rem auto 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: 0.75;
}

/* 首页蓝眼泪入口原来是条独立的深色横幅（.band--night），2026-11 并进收尾 CTA（.cta + scrim），
   那条横幅与它的 .band-kicker/.band-lead 一起删了——页尾一个孤零零的色块不好看，且和
   "接缝只允许零" 冲突（横幅上下各有一条底边）。 */

/* ---------------- 地图页（Leaflet + 天地图矢量底图） ---------------- */
/*
 * 这一段的顺序是刻意的：
 *   1. 结构 —— Leaflet 必需的那几条定位规则（库的 leaflet.css 我们不引，见下）；
 *   2. 纱与瓦片 —— 把外来底图压成背景；
 *   3. 标注、桥、行程 —— 我们的东西；
 *   4. 控件 —— 页面上的浮层。
 * 颜色全部走 token：改色板不用碰这一段。
 */
.map-explorer { margin-top: 1.5rem; display: grid; gap: 0.75rem; }

/*
 * ── Leaflet 必需的结构样式 ──
 *
 * 为什么手抄一份而不 `import 'leaflet/dist/leaflet.css'`：全站只有 global.css 一张样式表
 * （`.astro` 里连 `<style>` 都不许写，本机 Astro 不把组件样式写进产物）。抄的是**结构**
 * 那几十行：定位、显隐、z-index、弹层几何。库的整套 UI（缩放条、图层控制、比例尺、
 * tooltip）我们一个都不用，控件是页面上自己写的。
 *
 * 抄错一条的症状都很安静：少了 `overflow: hidden`，瓦片会越出圆角；少了 `.leaflet-tile-loaded`
 * 的 `visibility: inherit`，整张地图一片空白；少了 `transform-origin`，缩放结束后瓦片错位。
 * 所以这几条改之前先在浏览器里看一眼。
 *
 * 这些类只活在浏览器里（Leaflet 运行时插进去），产物 HTML 找不到——死样式检查的白名单
 * 里单独有一段说明，别把它们当「忘了删的类」。
 */
.map-stage .leaflet-pane,
.map-stage .leaflet-tile,
.map-stage .leaflet-marker-icon,
.map-stage .leaflet-tile-container,
.map-stage .leaflet-image-layer,
.map-stage .leaflet-pane > svg { position: absolute; left: 0; top: 0; }
.map-stage .leaflet-container { overflow: hidden; font: inherit; background: transparent; cursor: grab; }
.map-stage .leaflet-container:active { cursor: grabbing; }
.map-stage .leaflet-tile { visibility: hidden; max-width: none; max-height: none; width: auto; padding: 0; }
/*
 * 覆盖层的 `max-width: none` 不是可选项：全站有一条 `img { max-width: 100% }`，
 * 而图片层挂在 0 宽的 pane 里，一夹就是 **0 宽**——兜底快照会变成一条看不见的竖线，
 * 页面看起来「降级了但什么也没贴」。Leaflet 自己的 leaflet.css 用 `!important` 压的就是这一条。
 */
.map-stage .leaflet-image-layer { max-width: none; max-height: none; }
.map-stage .leaflet-tile-loaded { visibility: inherit; }
.map-stage .leaflet-marker-icon { display: block; user-select: none; pointer-events: none; }
.map-stage .leaflet-marker-icon.leaflet-interactive { pointer-events: auto; }
.map-stage .leaflet-zoom-animated { transform-origin: 0 0; }
.map-stage .leaflet-zoom-anim .leaflet-zoom-animated { transition: transform 0.25s cubic-bezier(0, 0, 0.25, 1); }
.map-stage .leaflet-zoom-anim .leaflet-tile { transition: none; }
/* 触屏：拖动地图不该把页面一起滚走，但两指缩放要留给浏览器 */
.map-stage .leaflet-touch-zoom { touch-action: pan-x pan-y; }
.map-stage .leaflet-touch-drag { touch-action: pinch-zoom; }
.map-stage .leaflet-touch-zoom.leaflet-touch-drag { touch-action: none; }

/* 点位卡的弹层几何：形状本身（圆角、底色、箭头）在下面的 `.poi-card` 里给 */
.map-stage .leaflet-popup { position: absolute; margin-bottom: 18px; }
.map-stage .leaflet-popup-content-wrapper {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.map-stage .leaflet-popup-content { margin: 0.7rem 2.1rem 0.7rem 0.85rem; }
.map-stage .leaflet-popup-tip-container {
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 32px;
  height: 16px;
  margin-left: -16px;
  overflow: hidden;
  pointer-events: none;
}
.map-stage .leaflet-popup-tip { width: 16px; height: 16px; margin: -8px auto 0; background: var(--bg); transform: rotate(45deg); }
.map-stage .leaflet-popup-close-button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: var(--fs-base);
  color: var(--muted);
  text-decoration: none;
}
.map-stage .leaflet-fade-anim .leaflet-popup { opacity: 0; transition: opacity 0.2s linear; }
.map-stage .leaflet-fade-anim .leaflet-map-pane .leaflet-popup { opacity: 1; }

/* ── 沙层与瓦片 ── */

/*
 * 地图区自己建一个层叠上下文（`isolation`）：里面 panes 的 z-index 到 700，
 * 不隔离的话标注会压在固定的顶栏（z-index 50）上面。
 */
.map-stage {
  position: relative;
  isolation: isolate;
  height: min(760px, calc(100vh - var(--hdr-h) - 96px));
  min-height: 380px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  /* 「纱」的底色：瓦片半透明地压在上面，于是底图退成背景而不是主角 */
  background: var(--map-veil);
}
.map-stage__canvas { position: absolute; inset: 0; }
/* 全屏只放大地图区本身：高度要给满屏，否则 760px 的定高会留在屏幕中间一条。
   抽屉也不进去（spec §8）——全屏是「放大看岛」，清单是查询工具，留在全屏里只会盖住岛 */
.map-stage:fullscreen { height: 100vh; width: 100vw; border: 0; border-radius: 0; }
.map-stage:fullscreen .map-drawer { display: none; }
.map-stage .leaflet-tile-pane,
.map-stage .leaflet-map-snapshot-pane { opacity: 0.6; }
/* 夜间：只压暗与去饱和，**不反相** —— invert 会让中文注记变成负片，地名基本读不出来。
   兜底快照是同一张浅色图，暗色下也要一起压暗，否则它会成为整页最亮的一块。 */
[data-theme="dark"] .map-stage .leaflet-tile,
[data-theme="dark"] .map-stage .map-snapshot { filter: grayscale(0.15) brightness(0.82); }
/* 兜底快照与瓦片同宽高比铺满；它是 z10–14 唯一一张，凑太近会软，所以只当背景 */
.map-stage .map-snapshot { image-rendering: auto; }

/* ── 标注 ── */

.map-stage .poi {
  display: block;
  /* 同一坐标上的第二个点整体下移（民宿开在景点里的那四对），位移由脚本算、这里只消费 */
  transform: translateY(var(--poi-stack, 0px));
}
.map-stage .poi--attraction { --poi-size: 10px; --poi-color: var(--accent); }
.map-stage .poi--restaurant { --poi-size: 8px; --poi-color: var(--sand); }
.map-stage .poi--stay { --poi-size: 8px; --poi-color: var(--sky); }
.map-stage .poi__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--poi-size);
  height: var(--poi-size);
  margin: calc(var(--poi-size) / -2) 0 0 calc(var(--poi-size) / -2);
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--poi-color);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.map-stage .poi__name {
  position: absolute;
  left: 9px;
  top: 50%;
  display: none;
  padding: 0 4px;
  border-radius: 2px;
  background: var(--map-label-bg);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  transform: translateY(-50%);
}
/* 出字由脚本按层级决定（`is-labeled`），z12 起避让撞在一起的标签（见 map/leaflet.ts） */
.map-stage .poi.is-labeled .poi__name { display: block; }
/* 贴着地图右边缘时翻到点的左边，免得被容器的 overflow 切掉 */
.map-stage .poi.is-flipped .poi__name { left: auto; right: 9px; }
.map-stage .poi.is-hidden { display: none; }
.map-stage .poi.is-active .poi__dot { transform: scale(1.6); }
.map-stage .poi.is-active .poi__name { background: var(--accent); color: var(--bg); }

/* ── 点位卡 ── */

.poi-card__name { margin: 0; color: var(--text); font-size: var(--fs-base); font-weight: 500; line-height: 1.35; }
.poi-card__type { margin: 0.1rem 0 0; color: var(--muted); font-size: var(--fs-xs); }
.poi-card__meta { margin: 0.35rem 0 0; color: var(--text); font-size: var(--fs-sm); }
.poi-card__blurb { margin: 0.2rem 0 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.poi-card__foot { margin: 0.5rem 0 0; }
.poi-card__go { color: var(--accent); font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 0.25em; }

/* ── 交通层与行程线 ── */

/* 两桥的轴线：常显的细实线。线宽与颜色都在这（Leaflet 写在属性上的默认值会被 CSS 盖掉） */
.map-stage .map-bridge { stroke: var(--muted); stroke-width: 2; stroke-opacity: 0.75; fill: none; }
.map-stage .map-bridge__name {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0 5px;
  border-radius: 2px;
  background: var(--map-label-bg);
  color: var(--muted);
  font-size: var(--fs-xs);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
/* 行程：**虚线**。实线在平面地图上读起来就是路，而这三条只是示意 */
.map-stage .map-route { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 8 7; fill: none; }

/* ── 浮层控件（全部在地图内，不占文档流） ── */

.map-chip {
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.map-chip:hover { border-color: var(--accent); color: var(--accent); }
.map-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--hover-box); }
.map-chip__count { margin-left: 0.3rem; font-size: var(--fs-xs); color: var(--muted); }

.map-filters {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 4;
  display: flex;
  gap: 0.4rem;
  max-width: calc(100% - 24px);
  overflow-x: auto;
  padding-bottom: 2px;
}
.map-overlay {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  max-width: min(420px, calc(100% - 24px));
}
.map-routes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.map-routes__label {
  flex: none;
  padding: 0 4px;
  border-radius: 2px;
  background: var(--map-label-bg);
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.6rem;
  margin: 0;
  padding: 0.45rem 0.6rem;
  list-style: none;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: var(--fs-xs);
}
.map-legend li { display: flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.map-legend__dot { width: 8px; height: 8px; border-radius: 50%; }
.map-legend__dot--attraction { background: var(--accent); }
.map-legend__dot--restaurant { background: var(--sand); }
.map-legend__dot--stay { background: var(--sky); }
.map-legend__line { width: 16px; height: 0; border-top: 2px solid var(--muted); }
.map-legend__line--dash { border-top-style: dashed; border-top-color: var(--accent); }
.map-legend__source { color: var(--muted); }
.map-zoom { position: absolute; right: 12px; bottom: 12px; z-index: 4; display: grid; gap: 0.35rem; }
.map-zoom__btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  font: inherit;
  font-size: var(--fs-md);
  line-height: 1;
  color: var(--text);
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.map-zoom__btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── 清单抽屉（票 03） ──
 *
 * 清单不再常驻页面，收进一个原生 `<details>`：没有 JS 时浏览器自己管展开收起，
 * 清单也始终在产物 HTML 里（`verify/map.mjs` 按它数标注点）。
 * 收起态容器铺满地图但 `pointer-events: none` —— 只有胶囊自己接事件。
 *
 * 展开：桌面是一条**贴窗口右缘**的整高侧栏，从右往左划进来；窄屏是从底部升起的浮层。
 * 为什么贴窗口而不是贴地图：`.container` 最宽 1080，窗口更宽时地图右缘离窗口还差一截，
 * 抽屉贴地图右缘就会落在屏幕中间、右边空着——那不是抽屉，是「地图旁边的一块板」。
 * 都是浮层，不挤压地图——容器尺寸不变，Leaflet 的视野与缩放因此也不需要重算。
 */
.map-drawer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.map-drawer__tab {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.8rem;
  border: 0.5px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: var(--fs-sm);
  cursor: pointer;
  pointer-events: auto;
  /* 原生 summary 的小三角：Chrome 认 ::-webkit-details-marker，标准写法是 list-style */
  list-style: none;
}
.map-drawer__tab::-webkit-details-marker { display: none; }
.map-drawer__tab:hover { border-color: var(--accent); color: var(--accent); }
.map-drawer__count { color: var(--muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
/* 收起态不画这个叉：那时触发器是「打开」，画个 × 说不通 */
.map-drawer__close { display: none; flex: none; margin-left: auto; }
.map-drawer[open] .map-drawer__close { display: block; color: var(--muted); }
.map-drawer__body {
  position: absolute;
  top: 56px;
  right: 12px;
  width: 380px;
  /* 让出右下角那列缩放按钮：面板盖住它，读者就得先关抽屉才能放大 */
  max-height: calc(100% - 190px);
  overflow: auto;
  /* 顶部留白交给吸顶的分类页签自己（`.map-drawer__tabs` 的 padding），否则 sticky 会顶到 padding 里 */
  padding: 0 0.85rem 0.5rem;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

/* 桌面 / 平板：整条侧栏贴到窗口右缘（`inset` 的 `right: 0`），顶栏之下一直到窗口底 */
@media (min-width: 720px) {
  .map-drawer[open] {
    position: fixed;
    inset: var(--hdr-h) 0 0 auto;
    width: 380px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-left: 0.5px solid var(--border);
    box-shadow: var(--shadow);
    /* 面板自己接事件：容器在收起态是 `pointer-events: none`，展开后它整块就是面板，
       再让下去就成了「点抽屉空白处会拖动地图」 */
    pointer-events: auto;
    animation: map-drawer-in 260ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .map-drawer[open] .map-drawer__tab {
    position: static;
    flex: none;
    padding: 0.7rem 1rem;
    border: 0;
    border-bottom: 0.5px solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: var(--fs-base);
  }
  .map-drawer[open] .map-drawer__tab:hover .map-drawer__close { color: var(--accent); }
  .map-drawer[open] .map-drawer__body {
    position: static;
    flex: 1;
    min-height: 0;
    width: auto;
    max-height: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation: none;
  }
}
/*
 * 进场只有一次：`<details>` 收起时内容整个不渲染，出场动画没有可动的元素。
 * 硬要做出场就得自己接管显隐，那就不叫「用原生 details」了。
 * 从窗口外滑进来——位移就是面板自身的宽度（`translateX(100%)`）。
 */
@keyframes map-drawer-in {
  from { transform: translateX(100%); }
  to { transform: none; }
}

/* 降级说明：一句人话压在图上。`pointer-events: none` —— 它是说明，不该挡住底下的地图 */
.map-note {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  margin: 0;
  width: min(26rem, calc(100% - 2rem));
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.6;
  box-shadow: var(--shadow);
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.map-note[hidden] { display: none; }
/* 没有 JS 时的那张静态底图：铺满地图区，说明压在上面 */
.map-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 平板一档：侧栏收窄。两档的分界在 1100px（spec §6），面板宽度是唯一随档变化的东西 */
@media (max-width: 1099px) and (min-width: 720px) {
  .map-drawer[open] { width: 320px; }
}

@media (max-width: 719px) {
  .map-stage { height: 62vh; min-height: 340px; }
  /* 窄屏的筛选横着滚，但得给右上角那颗触发器让位：`calc(100% - 24px)` 会让最后一档被胶囊压住、点不到 */
  .map-filters { max-width: calc(100% - 132px); }
  /* 窄屏上行程 chips 横着滚、不折行：三条路线一折就是三行，把地图下半截吃掉 */
  .map-overlay { max-width: calc(100% - 68px); }
  .map-routes { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  /* 抽屉改成底部浮层：`<details>` 收起时触发器仍在右上角，展开后整块升起来。
     `position: fixed` 是必须的——地图区只有 62vh，70vh 的抽屉放在里面会被 `overflow: hidden` 切掉。
     底色与圆角挪到整块浮层上（胶囊与面板都改成透明的），因为四角只能整体给：
     圆角阶梯里没有「上圆下直」这一档，单给某一角就是绕开阶梯。 */
  .map-drawer[open] {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    /* 高度随内容、封顶 70vh：清单改成一行两列后只有 8 行，写死 70vh 会在下面留一块空面板 */
    height: auto;
    max-height: 70vh;
    overflow: hidden;
    background: var(--bg);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    /* 浮层自己接事件：容器收起态是 `pointer-events: none`，展开后点空白处不该穿透到地图 */
    pointer-events: auto;
  }
  .map-drawer[open] .map-drawer__tab {
    position: static;
    flex: none;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: var(--fs-base);
  }
  .map-drawer[open] .map-drawer__body {
    position: static;
    width: auto;
    max-height: none;
    flex: 1;
    min-height: 0;
    border: 0;
    border-top: 0.5px solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation-name: map-drawer-up;
  }
}
/* 底部升起：与右侧浮出的进场分开写，方向不一样 */
@keyframes map-drawer-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* 减动效：标注的放大与缩放过渡一起关掉（Leaflet 那三种过渡在初始化时已经关过一遍） */
@media (prefers-reduced-motion: reduce) {
  .map-stage .poi__dot { transition: none; }
  .map-stage .leaflet-zoom-anim .leaflet-zoom-animated { transition: none; }
  /* 第二行那条选择器不是重复：窄屏那条 `[open] .map-drawer__body` 是 (0,3,0)，
     只写 `.map-drawer__body` 压不住它的 `animation-name`（时长归零了，名字还在） */
  .map-drawer[open],
  .map-drawer__body,
  .map-drawer[open] .map-drawer__body { animation: none; }
}

/* 抽屉里的分类页签：吸在滚动区顶部，长清单翻到中段也能切。底色与侧栏同色，否则行会从下面透上来 */
.map-drawer__tabs {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.3rem 0 0.55rem;
  background: var(--bg);
}

/* 清单：一行两列——380 的面板里一行一个要滚很久，名字才是要找的东西 */
.map-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}
.map-list__item { border-bottom: 0.5px solid var(--border); }
/*
 * 筛选联动：点筛选按钮 → 给 <section data-map> 写 data-map-filter-state → 这里收起不匹配的行。
 * 清单因此不用搬到客户端重渲染，没有 JS 时也照常整份可读。
 */
[data-map-filter-state="attraction"] .map-list__item:not([data-poi-type="attraction"]),
[data-map-filter-state="restaurant"] .map-list__item:not([data-poi-type="restaurant"]),
[data-map-filter-state="stay"] .map-list__item:not([data-poi-type="stay"]) { display: none; }
.map-list__link { position: relative; display: flex; align-items: flex-start; gap: 0.45rem; padding: 0.45rem 0.15rem; color: var(--text); line-height: 1.4; }
.map-list__link:hover { color: var(--accent); }
.map-list__dot { flex: none; width: 8px; height: 8px; margin-top: 0.42em; border-radius: 50%; }
.map-list__dot--attraction { background: var(--accent); }
.map-list__dot--restaurant { background: var(--sand); }
.map-list__dot--stay { background: var(--sky); }
/* 名字独占整行（长名折两行，圆点跟着第一行） */
.map-list__title { flex: 1 1 auto; min-width: 0; font-weight: 500; }
/*
 * 类型名只给读屏：「查看」尾巴与价格都已去掉（价格在标注卡与详情页上看），
 * 版面上分类由上面的页签与圆点颜色表达。用裁剪式隐藏而不是 `display: none`——后者读屏也读不到。
 */
.map-list__type {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.map-source { margin-top: 1.25rem; font-size: var(--fs-xs); color: var(--muted); }

/* 景点详情 */
.card-grid.spaced { margin-top: 1.5rem; }
.section-gap { margin-top: 2rem; }
.tag-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.facts { color: var(--muted); margin-top: 1.5rem; }

/* ---------------- 舞台：视频钉在底层，内容当蒙版盖上去 ---------------- */
/*
 * 结构只有两层（见 components/stage/ScrollStage.astro）：
 *   .stage__pin   sticky，铺满整屏（100svh，**不减顶栏**）
 *   .stage__mask  负 margin 抬回舞台顶端，z-index 1，随文档滚动
 *
 * 为什么不减顶栏（2026-11 改）：舞台页面都是 body[data-hero]，main 不让出 --hdr-h，
 * 顶栏浮在视频上；pin 仍是 824 的话滚动后视频底边差 76px 到不了视口底，
 * 透明区块滚到那里就露出 .stage__pin 的底色——一条奶油色横带，读起来像「拼接缝」。
 * 现在 pin、mask、h-screen 区块三处都用 100svh，口径只有一个。
 */
.stage {
  position: relative;
}
.stage__pin {
  position: sticky;
  top: 0;
  /* z-index 0：建一层叠放上下文，把顶栏暗角（::after）关在视频层里，
     不让它跑到蒙版区块（z-index 1）上面去 */
  z-index: 0;
  height: 100svh;
  min-height: 320px;
  overflow: hidden;
  background: var(--bg-2);
  transition: background var(--transition);
}
.stage__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 多支视频（首页昼夜）装在一层里：海报当背景图，视频按主题显影 */
.stage__media {
  position: absolute;
  inset: 0;
  background-image: var(--stage-poster-light);
  background-position: center;
  background-size: cover;
}
[data-theme="dark"] .stage__media {
  background-image: var(--stage-poster-dark);
}
.stage__media .stage__video {
  position: absolute;
  inset: 0;
}
.stage__video[data-stage-for] {
  opacity: 0;
  transition: opacity 0.6s ease;
}
[data-theme="light"] .stage__video[data-stage-for="light"],
[data-theme="dark"] .stage__video[data-stage-for="dark"] {
  opacity: 1;
}
.stage__mask {
  position: relative;
  z-index: 1;
  margin-top: -100svh;
}

/* 没有视频（占位景点 / 单一静图）：不钉、不抬，退成一条静图带 */
.stage--still .stage__pin {
  position: relative;
  height: min(56svh, 520px);
  min-height: 260px;
}
.stage--still .stage__mask {
  margin-top: 0;
}

/*
 * 静图缓慢推近（Ken Burns）：24 秒一个来回，慢到不觉得在动，但首屏「活着」。
 * 只作用在没有视频的舞台上；减动效时整条停掉（动画一停就是原图，不会卡在半途）。
 */
.stage__video--still {
  transform-origin: 50% 55%;
  animation: stage-drift 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes stage-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(0, -1.4%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .stage__video--still { animation: none; transform: none; }
}

/* 署名压在画面右下角：素材来源各不相同，文字由内容字段提供 */
.stage__credit {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 0.85rem;
  margin: 0;
  padding: 0.2rem 0.5rem;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--on-media);
  text-shadow: 0 1px 8px rgba(3, 12, 26, 0.75);
  opacity: 0.85;
}

/* ---------------- 蒙版区块：只认 surface 与浓度 ---------------- */
/*
 * solid  = 不透明（正文可读）
 * veil   = 半透明（视频隐约）
 * window = 透明；写了 --region-alpha 就变成一层薄纱，托住压在上面的字
 */
.region {
  position: relative;
  /*
   * flow-root：建 BFC，**子元素的外边距不再穿出区块**。
   * 不加会漏：`.unit-hero { margin-top: 2.6rem }` 会与 region 折叠出去，region 的
   * 底色只盖住图本身，上面 41px 露出底下钉着的视频——就是用户看到的「中间漏了一段」
   * （2026-11-13，实测 intro→heroImage 缝 41px，title→facts 24px，facts→intro 16px）。
   */
  display: flow-root;
  padding-block: var(--region-space, 2.5rem);
}
.region--space-none { --region-space: 0; }
.region--space-sm { --region-space: 1.25rem; }
.region--space-md { --region-space: 2.5rem; }
.region--space-lg { --region-space: 4rem; }

.region--solid {
  background: var(--bg);
  transition: background var(--transition);
}
.region--veil,
.region--window {
  background: color-mix(in srgb, var(--bg) calc(var(--region-alpha, 0) * 100%), transparent);
}
.region--blur { backdrop-filter: blur(10px); }

/*
 * 介绍面板：首屏之后那一块色块。
 *
 * 一句短语 / 名称 / 一句 lead / 标签 / 开放时间·门票 / 三段正文全压在这块面板上
 * （照着参考站那块深绿色块抄）。面板常由 `title` / `facts` / `intro` 三个 region 拼成，
 * 所以**留白只在首尾**：拼缝处上下都归零，否则三块的 padding 会叠成好几份。
 * 材质随主题变，见 :root 里 `--ink-*` 的说明（ADR 0020）。
 */
.region--ink {
  background: var(--ink-bg);
  color: var(--ink-text);
}
.region--ink > .container { padding-block: var(--ink-pad); }
.region--ink + .region--ink > .container { padding-top: 0; }
.region--ink:has(+ .region--ink) > .container { padding-bottom: 0; }

.region--ink .unit-title { color: var(--ink-text); }
.region--ink .unit-eyebrow,
.region--ink .unit-lead,
.region--ink .facts,
.region--ink .breadcrumb,
.region--ink .breadcrumb a,
.region--ink .tag { color: var(--ink-muted); }
.region--ink .unit-intro p { color: var(--ink-body); }
.region--ink .breadcrumb a:hover { color: var(--ink-text); }
.region--ink .tag { border-color: var(--ink-border); }
.region--ink .unit-intro a { color: var(--ink-link); }

/*
 * 渲染出来的整篇正文（md）落进色块时也要跟着变浅：`intro` 区块既放 `UnitIntro`，
 * 也在「没写 intro、只有正文」时直接放渲染结果。`.prose` 的默认色是纸色主题的 `--muted`，
 * 压在深岚蓝上等于没有字（票 16 把民宿的这块从 solid 挪到 ink 时一起补的）。
 */
.region--ink .prose h2 { color: var(--ink-text); }
.region--ink .prose p,
.region--ink .prose li,
.region--ink .prose blockquote { color: var(--ink-body); }

/*
 * 深色压暗层：收尾 CTA 用。视频在底下钉着，这层把它压下去，白色前景浮上来。
 * 用 flex 让内容在 `height: lg` 里垂直居中——region 的高度档只管高度，不管对齐。
 *
 * **前景四个 token 在这里必须一起改白**（2026-11-15，用户拿截图指出"识别度很差"）：
 * `--scrim-bg` 的注释早就写着"固定深底 + 白色前景"，但那句话此前只落在背景上——
 * `.cta__title` 读 `--ink-text`，白昼主题下它是深墨 `#0B2240`，压在 `rgba(6,20,38,.62→.8)`
 * 的压暗层上等于深墨压深蓝。实测同一块的颜色：修前 `rgb(11,34,64)`，改后 `rgb(232,244,255)`。
 *
 * 只覆盖前景、不碰背景：`--scrim-bg` 与主题无关（理由见它的定义处），
 * 所以这里也不写 `[data-theme]` 分支——两套主题下这块都是深底白字。
 * `--ink-cta` 改沙色是原来夜间那一档，按钮文字与标题同属"白色前景"。
 */
.region--scrim {
  display: flex;
  align-items: center;
  /* 视频压成纹理：模糊 + 压暗，白字才立得住（参考站那块 CTA 也是糊底）。
     只在这一块用 backdrop-filter——它要读底下钉着的视频，别的地方没有这个需求。 */
  backdrop-filter: blur(10px) saturate(0.85);
  background: var(--scrim-bg);
  --ink-text: var(--night-text);
  --ink-body: var(--night-text);
  --ink-muted: var(--night-text);
  color: var(--night-text);
}
/*
 * 按钮也是这块的字，一起改白。**必须写在按钮自己身上**：`.cta .hero-cta`（上面 `.hero-cta` 段之后那条）
 * 把 `--cta-color` 设在元素上，设在祖先（`.region--scrim`）的自定义属性继承不到它——
 * 2026-11-15 第一次改就栽在这里：区域改白、按钮仍是一圈亮蓝。
 * 边框留着（白字压在深底上不需要描边，但胶囊靠它定形）。
 */
.region--scrim .cta .hero-cta {
  --cta-color: var(--night-text);
}

/* 收尾 CTA：两页共用（`ui/CtaPanel`），文案以外的一切都在这里 */
.cta { max-width: 44em; }
.cta__eyebrow {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.cta__title {
  margin: 0.6rem 0 0;
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.2;
  font-weight: 500;
  color: var(--ink-text);
}
.cta__lead {
  margin: 0.9rem 0 0;
  max-width: 34em;
  color: var(--ink-body);
}

/*
 * 接缝规则（2026-11 定）：**相邻两块之间只允许零**。
 *
 * 留白由面板自己出（padding），块内元素不许再用 margin 造「块与块之间」的间隔——
 * 否则那条 margin 会落在后一块的底色上，变成「深蓝—米白—照片」的三层夹心：
 * 68 海里页实测 42px（`.unit-hero` 的 2.6rem 落在 heroImage 的纸色底里）。
 * 只作用于「上一块是深色面板」的情形：餐饮的通栏图前面是纸色文字区，那里的
 * 2.6rem 是对的，别一起清掉（民宿页票 16 起通栏图紧接 ink 色块，要的是零）。
 */
.region--ink + .region:not(.region--ink) > :first-child,
.region--ink + .region:not(.region--ink) > .container > :first-child {
  margin-top: 0;
}

/*
 * 首块不再单独让开顶栏（2026-11 改）：舞台页都是 body[data-hero]，顶栏浮在视频上；
 * 并且首块现在是一整屏空的 spacer，`space: none` 就是真的 0。
 * 原来那条 `padding-top: 2rem` 只会在静图景点页留下一条 32px 的浅色横带
 * （页面不让顶栏，本来就不需要让）。
 */

/* 高度档：sm/md/lg 是留白，screen 用来做「首屏只有视频 + 标题」 */
.region--h-sm { min-height: 30svh; }
.region--h-md { min-height: 45svh; }
.region--h-lg { min-height: 60svh; }
.region--h-screen {
  /* 与 .stage__pin 同一个口径（100svh）：少写一个 --hdr-h，首屏才会严丝合缝 */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(32px, 8vh, 96px);
}
/* 静图舞台（占位景点）没有「视频铺满一屏」这件事，首屏区块不必撑满 */
.stage--still .region--h-screen {
  min-height: 0;
  display: block;
  padding-bottom: var(--region-space, 2.5rem);
}

.section-note { margin: 0.35rem 0 0; font-size: 12px; color: var(--muted); opacity: 0.85; }

.nearby-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.nearby-item {
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  background: var(--bg);
}
.nearby-item a { color: var(--text); font-family: var(--serif); font-size: 17px; }
.nearby-item a:hover { color: var(--accent); }
.nearby-meta { display: block; margin-top: 0.3rem; font-size: 12px; color: var(--muted); }
.nearby-sub { display: block; font-size: 13px; color: var(--muted); }

/* 路线站名：有 id 的可点，当前景点加粗 */
.route-stops { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.4rem; }
.route-stops .stop-sep { opacity: 0.55; }
.route-stops strong { color: var(--text); }

/* ---------------- 论坛与景点评论（票 05） ----------------
   内容由岛在浏览器里拉，所以这里大多是列表项/详情视图的样式；
   哪些类只在运行时出现，见 scripts/dead-css-allow.txt。 */
.forum { margin-top: 1.2rem; }
.comments { margin-top: 1rem; }

.forum__bar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; }
.forum__boards { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.forum__board {
  font: inherit; font-size: 13px; padding: 4px 11px; border-radius: 999px;
  border: 0.5px solid var(--border); background: transparent; color: var(--muted);
  cursor: pointer; transition: color 0.3s ease, border-color 0.3s ease;
}
.forum__board:hover { color: var(--text); border-color: var(--accent); }
.forum__board.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.forum__status { margin: 0 0 0.5rem; min-height: 1.3em; font-size: 13px; color: var(--accent); }

.forum__list, .comments__list, .forum__posts { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.6rem; }
.forum__item, .forum__post {
  padding: 0.75rem 0.9rem; border: 0.5px solid var(--border);
  border-radius: var(--radius); background: var(--bg);
}
.forum__title {
  font-family: var(--serif); font-size: 17px; line-height: 1.35; text-align: left;
  padding: 0; border: 0; background: none; color: var(--text); cursor: pointer;
}
.forum__title:hover { color: var(--accent); }
.forum__meta { margin: 0.3rem 0 0; font-size: 12px; color: var(--muted); }
.forum__body { margin: 0.35rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.forum__images { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.forum__image { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 0.5px solid var(--border); }

.forum__thread { margin-top: 0.4rem; }
.forum__threadTitle { margin: 0.6rem 0 0; font-size: 21px; }
.forum__postsTitle { margin: 1.4rem 0 0.4rem; font-size: 15px; color: var(--muted); }
.forum__back { margin-bottom: 0.4rem; }

.compose {
  display: grid; gap: 0.7rem; margin: 0.8rem 0 1.2rem; padding: 0.9rem 1rem;
  border: 0.5px solid var(--border); border-radius: var(--radius); background: var(--bg-2);
}
.field { display: grid; gap: 0.25rem; }
.field__label { font-size: 13px; color: var(--muted); }
.field__input {
  font: inherit; width: 100%; padding: 0.45rem 0.6rem; color: var(--text);
  border: 0.5px solid var(--border); border-radius: 8px; background: var(--bg);
}
.field__input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field__hint { margin: 0; font-size: 12px; color: var(--muted); }
.field__file { font-size: 13px; color: var(--muted); }
.forum__files { list-style: none; margin: 0.3rem 0 0; padding: 0; display: grid; gap: 0.3rem; }
.forum__file { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 13px; color: var(--muted); }
.compose__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }

.btn {
  font: inherit; font-size: 14px; padding: 0.35rem 0.85rem; border-radius: 999px;
  border: 0.5px solid var(--border); background: transparent; color: var(--text);
  cursor: pointer; transition: border-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { color: var(--on-accent); opacity: 0.88; }
.btn--ghost { padding: 0.15rem 0.45rem; border-color: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--accent); }

/* 蓝眼泪「此刻」：指数 / 天气 / 潮汐（票 06）。
   结构由岛在服务端渲染出来，这里只管版式——没有 JS 时潮汐表照样能读。 */
.section-heading { margin: 2rem 0 0.8rem; font-size: 19px; }
.now-section { margin-top: 1.5rem; }
.now-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .now-grid { grid-template-columns: 1.15fr 1fr; }
  .now-card--tide { grid-column: 1 / -1; }
}
.now-card {
  padding: 1rem 1.1rem; border: 0.5px solid var(--border);
  border-radius: var(--radius); background: var(--bg-2);
}
.now-card__title {
  margin: 0; font-size: 15px; letter-spacing: 0.02em;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
}
.now-level { margin: 0.6rem 0 0; display: flex; align-items: baseline; gap: 0.35rem; }
.now-level__num { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--accent); }
.now-level__max { font-size: 14px; color: var(--muted); }
.now-level__label { margin-left: 0.3rem; font-size: 15px; }
.now-pips { display: flex; gap: 6px; margin-top: 0.5rem; }
.now-pip { width: 26px; height: 4px; border-radius: 2px; background: var(--border); }
.now-pip.is-lit { background: var(--glow); box-shadow: 0 0 8px var(--glow-ring); }
.now-score { margin: 0.4rem 0 0; font-size: 13px; color: var(--muted); }
.now-season { margin: 0.2rem 0 0; font-size: 12px; color: var(--muted); }
.now-factors { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.now-factor {
  display: grid; grid-template-columns: 5.6rem 1fr 4.2rem;
  align-items: center; gap: 0.5rem; font-size: 12px; color: var(--muted);
}
.now-factor__bar { height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.now-factor__fill { display: block; height: 100%; background: var(--accent); }
.now-factor__value { text-align: right; font-variant-numeric: tabular-nums; }
.now-note { margin: 0.5rem 0 0; font-size: 12px; color: var(--muted); }
/* 过期提醒要能看见：一般说明用 --muted，需要读者核对官方数据的用 --accent */
.now-warning { margin: 0.5rem 0 0; font-size: 12px; color: var(--accent); }
.now-disclaimer {
  margin: 0.9rem 0 0; padding-top: 0.6rem; border-top: 0.5px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.now-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0.8rem 0 0; font-size: 14px; }
.now-fact { font-variant-numeric: tabular-nums; }
.now-source { margin: 0.6rem 0 0; font-size: 11px; color: var(--muted); opacity: 0.85; }
.now-badge {
  font-size: 11px; font-weight: 400; padding: 1px 7px;
  border-radius: 999px; border: 0.5px solid var(--border); color: var(--muted);
}

/* ---------------- 事实表与并列短句（详情页 / 路线 / 实用信息共用） ----------------
   票 06：活动页升格为母版之后，原先那一屏「封面 + 标题左右并列」的 .detail-* 整组随
   `components/ui/DetailLayout.astro` 一起删掉；留下的两个原语还在别处用——
   .fact-list 在实用信息页（`ui/FactList.astro`），.bullet-* 在路线页与四套母版的短句块。 */
/* 事实表：价格、营业时间、在哪一带 */
.fact-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.35rem 1.1rem;
  margin: 0.6rem 0 0;
}
.fact-list dt { color: var(--muted); font-size: 13px; }
.fact-list dd { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }

/* 并列短句：亮点 / 配套 / 提醒 */
.section-title { margin: 1.8rem 0 0.6rem; font-family: var(--serif); font-size: 1.15rem; }
.bullet-block { margin: 1.2rem 0; }
.bullet-block .section-title { margin-top: 0; }
.bullet-list { display: grid; gap: 0.35rem; margin: 0; padding-left: 1.1rem; font-size: 14px; }
.bullet-list li::marker { color: var(--accent); }

/* ---------------- 美食文化长页：图左文右 ---------------- */
.entry-list { display: grid; gap: 2.2rem; }
.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 1.4rem;
  align-items: start;
}
.entry-cover {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 4 / 3;
}
.entry-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.entry-body .section-title { margin-top: 0; }
.entry-summary { margin: 0 0 0.6rem; font-size: 15px; color: var(--muted); }
.entry-links { margin: 0.7rem 0 0; font-size: 13px; }
.entry-links a { color: var(--accent); }
.entry-links .sep { margin: 0 0.45rem; color: var(--muted); }

/* 页内跳转：实用信息与路线页共用 */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 1.8rem; }
.anchor-nav a {
  padding: 0.3rem 0.7rem;
  border: 0.5px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
}
.anchor-nav a:hover { border-color: var(--accent); color: var(--accent); }

/* 实用信息：一个板块一屏，深链要躲开固定顶栏 */
.guide-section { margin-bottom: 2.2rem; scroll-margin-top: calc(var(--hdr-h) + 16px); }
.guide-section .section-title { margin-top: 0; }

/* 餐饮列表按类别分组 */
.restaurant-group + .restaurant-group { margin-top: 1.8rem; }

/* ---------------- 路线：可打印、可存图的行程卡 ---------------- */
.route-card { margin: 2.2rem 0 2.6rem; }
.route-sheet {
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  scroll-margin-top: calc(var(--hdr-h) + 16px);
}
.route-sheet-head { margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border); }
.route-sheet-head .section-title { margin: 0 0 0.3rem; }
.route-meta { display: flex; gap: 0.45rem; margin: 0; font-size: 13px; color: var(--muted); }
.route-meta .sep { opacity: 0.5; }
.route-theme { margin: 0.45rem 0 0; font-size: 14px; }

.timeline { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.timeline-row { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0.85rem; }
/* 竖线画在序号下面，最后一站不收尾 */
.timeline-row::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 28px;
  bottom: -1.1rem;
  width: 1px;
  background: var(--border);
}
.timeline-row:last-child::before { display: none; }
.timeline-index {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.timeline-body { min-width: 0; }
.timeline-head { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0; font-size: 15px; }
.timeline-head a { color: var(--accent); }
.timeline-time { margin: 0.25rem 0 0; font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline-note { margin: 0.35rem 0 0; font-size: 14px; color: var(--muted); }
.timeline-day {
  padding: 1px 7px;
  border: 0.5px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted);
}
.route-foot {
  margin: 1.2rem 0 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}

.route-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 0.9rem; }
.route-export { display: flex; align-items: center; gap: 0.8rem; }
.route-export-note { margin: 0; font-size: 12px; color: var(--muted); }
.route-note { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--muted); }
@media (max-width: 720px) {
  :root {
    --hdr-h: 62px;
  }
  .hdr { padding: 0 6px; }
  .burger { width: 38px; height: 38px; }
  .burger span { width: 19px; }
  .brand-logo { height: var(--brand-logo-h-narrow); }
  .ctrl { padding: 8px 7px; font-size: 11px; letter-spacing: 0.04em; }
  .mode-text { font-size: 13px; }
  .mode-glyph,
  .mode-glyph svg { width: 14px; height: 14px; }
  .container { padding: 0 1rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  /* 长页条目在窄屏堆成一列；行程卡收一点内边距 */
  .entry { grid-template-columns: minmax(0, 1fr); }
  .route-sheet { padding: 1rem; }
}

@media (max-width: 480px) {
  .hdr { padding: 0 4px; column-gap: 6px; }
  .mode-glyph { display: none; } /* 极窄屏留出位置给「蓝眼泪 / Windchase」这几个字 */
}

@media (max-width: 380px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* ---------------- 板块总页（民宿 / 餐饮）：场所卡与策展带 ----------------
 *
 * 结构与 visitsanya.com 的「舒心住 / 寻味食」同一套读法：
 * 大标题 + 一句导语 →（餐饮先来一段食物文化）→ 场所卡（图 16:9 + 名称 + 一句 + 小字）。
 * 配色与字体仍用本站 token，不搬对方的蓝金体系。
 */
.section-head { max-width: 44rem; margin: 0.4rem 0 1.6rem; }
.section-head .page-title { margin: 0.35rem 0 0.6rem; font-size: clamp(30px, 5.6vw, 46px); }
.section-count { margin: 0 0 1.6rem; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }

/* 两列大卡：1080 版心下正好 2×2；窄屏堆成一列。
   不用 auto-fit：分组里只剩一条时，auto-fit 会把那张图拉到整幅宽。 */
.place-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.8rem 2.2rem; }
@media (min-width: 760px) {
  .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.place-card { display: block; color: var(--text); }
.place-media { margin: 0; overflow: hidden; background: var(--bg-2); }
.place-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform 0.7s var(--transition); }
.place-card:hover .place-media img { transform: scale(1.03); }
.place-meta { margin: 0.85rem 0 0; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.place-title { margin: 0.3rem 0 0; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.3; }
.place-desc { margin: 0.45rem 0 0; font-size: 14px; line-height: 1.75; color: var(--muted); }
.place-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }

.taste-band { margin: 0 0 3rem; padding-bottom: 2.6rem; border-bottom: 1px solid var(--border); }
.taste-head { max-width: 42rem; }
.taste-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.6rem; margin-top: 1.7rem; }
.taste-card { display: block; color: var(--text); }
.taste-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.taste-card h3 { margin: 0.6rem 0 0; font-family: var(--serif); font-size: 17px; font-weight: 500; }
.taste-card p { margin: 0.3rem 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.taste-all {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.taste-all:hover { color: var(--accent); border-color: var(--accent); }
.group-heading { margin: 2.6rem 0 1.3rem; font-size: 20px; }

/* ---------------- 详情母版：四套页面共用的一套排版原语 ----------------
 *
 * 目标站（reveriesafaris.com）的读法是：一句短语 → 名称 → 一段介绍 → 一张大图 → 分节。
 * 这里只放「原语」，四套母版各自决定分节的顺序与标题：
 * 景点讲地区与景观，民宿讲房间与空间，餐饮讲招牌与菜单，活动讲什么时候 / 在哪 / 带什么。
 */
.unit-head { padding-top: 0.5rem; }
.unit-eyebrow {
  margin: 1.1rem 0 0;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.unit-title {
  margin: 0.35rem 0 0;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.16;
  letter-spacing: 0.01em;
}
.unit-lead {
  margin: 0.9rem 0 0;
  max-width: 40em;
  font-size: 15px;
  color: var(--muted);
}
.unit-head .facts { margin-top: 1.1rem; }

.unit-intro { max-width: 40em; margin-top: 1.4rem; }
.unit-intro p { margin: 0 0 0.9rem; font-size: 16px; line-height: 1.85; color: var(--text); }
.unit-intro p:last-child { margin-bottom: 0; }

/* 通栏大图：不加圆角不加阴影，图就是这一段的停顿 */
.unit-hero { margin: 2.6rem 0 0; }
.unit-hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.unit-hero figcaption { margin-top: 0.5rem; font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }

.unit-section { margin-top: 3.2rem; }
.unit-h2 {
  margin: 0;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.unit-note { margin: 0.55rem 0 0; max-width: 40em; font-size: 14px; line-height: 1.75; color: var(--muted); }

/* 卡片组：窄屏一列，宽屏按张数自动分栏（4 张时正好一行） */
.unit-cards {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.unit-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.unit-card h3 { margin: 0.7rem 0 0; font-size: 19px; }
.unit-card-meta { margin: 0.25rem 0 0; font-size: 12px; letter-spacing: 0.06em; color: var(--accent); }
.unit-card-desc { margin: 0.4rem 0 0; font-size: 14px; line-height: 1.75; color: var(--muted); }

/* 时段档：时间在左（衬线），理由在右；两档时并排，多档时逐行 */
.unit-periods { display: grid; gap: 1.4rem 2.5rem; margin: 1.4rem 0 0; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.unit-period dt { font-family: var(--serif); font-size: 17px; color: var(--text); }
.unit-period dd { margin: 0.35rem 0 0; font-size: 14px; line-height: 1.8; color: var(--muted); }

/* 「为什么选这里」：文左图右，flip 时反过来；窄屏堆成一列 */
.unit-why { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: center; margin-top: 3.2rem; }
/* 两块的正文用同一档：都是「图文并排时，图旁边那段说明」，字号行距与弱化色没有理由分家 */
.unit-why-body p,
.image-text__body p { margin: 0.9rem 0 0; font-size: 15px; line-height: 1.85; color: var(--muted); }
.unit-why-body .unit-h2 + p { margin-top: 0.9rem; }
.unit-why-figure { margin: 0; }
.unit-why-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.unit-why--flip .unit-why-body { order: 2; }

/*
 * 图文块（票 18）：图左文右，一张图配两三句话。
 *
 * 与 `.unit-why` 同一套比例，只是方向相反（那一块是文左图右、图是竖的）。
 * 图给 4:3 横向：这块常紧接通栏大图，再来一张竖图会让一屏里出现两条同样重的竖线。
 * 窄屏堆成上图下文，见文件末尾 `@media (max-width: 720px)` 那段——两个断点漂了就会
 * 在 390 宽上出横向滚动。
 */
.image-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}
.image-text__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 4 / 3;
}
.image-text__figure img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------------- 探索平潭：整屏首屏 + 图文交叉长列表 ---------------- */
.explore-head { max-width: 1080px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) 1.25rem 0; }
.explore-head h1 { font-size: clamp(30px, 5.6vw, 48px); margin: 0.4rem 0 0.6rem; }
.explore-head p { margin: 0; max-width: 40em; color: var(--muted); }
.explore-head .unit-eyebrow { margin-top: 0; }

.explore-list { margin: 2.4rem auto 0; max-width: 1080px; padding: 0 1.25rem; display: grid; gap: 4.5rem; }
/* 一行一段：图约占 2/3，文约 1/3；偶数行整段反向，图就到左边 */
.explore-row { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.4rem); align-items: center; }
.explore-row--flip .explore-media { order: 2; }
.explore-media { margin: 0; overflow: hidden; background: var(--bg-2); }
.explore-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; display: block; transition: transform 0.8s var(--transition); }
.explore-row:hover .explore-media img { transform: scale(1.02); }
.explore-body h2 { margin: 0; font-size: clamp(24px, 3.4vw, 31px); font-weight: 500; }
.explore-body p { margin: 0.85rem 0 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.explore-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.explore-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------- 左侧菜单：整屏覆盖层，二/三层入口 ----------------
 *
 * 实测自 reveriesafaris.com：左侧一列一级项（带 → 的点击只展开、不可跳转），
 * 展开时在原列表右侧多出一列子项，列尾一条「查看全部」；右侧 1/3 是配图。
 * 移动端（<= 860px）：单列，子项落在列表下方，配图隐藏。
 */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  display: grid;
  /* 只有两栏：列表 + 视频。子列未展开时不能占位——空栏会在中间留一条白带 */
  grid-template-columns: clamp(300px, 33vw, 460px) minmax(0, 1fr);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--transition), transform 0.4s var(--transition), visibility 0.4s;
}
/* 展开子列才变三栏；子列按内容宽度收（太宽会把视频挤到边上） */
.menu[data-sub] {
  grid-template-columns: clamp(300px, 33vw, 460px) clamp(240px, 23vw, 340px) minmax(0, 1fr);
}
body[data-nav="open"] .menu { opacity: 1; visibility: visible; transform: translateY(0); }

.menu-close {
  position: absolute;
  top: 18px;
  left: clamp(12px, 2vw, 22px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.menu-close:hover,
.menu-close:focus-visible { border-color: var(--hover-border); background: var(--hover-box); outline: none; }
.menu-close svg { width: 13px; height: 13px; }

.menu-list,
.menu-subs { padding: calc(var(--hdr-h) + 34px) 0 3rem 0; }
.menu-list { list-style: none; margin: 0; padding-left: clamp(14px, 2vw, 24px); padding-right: 1.6rem; }
.menu-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.3;
  color: var(--text);
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s var(--transition), opacity 0.25s var(--transition);
}
.menu-item--link { text-decoration: none; }
.menu-item:hover,
.menu-item:focus-visible,
.menu-item[aria-current="page"] { color: var(--accent); outline: none; }
/* 展开的是这一项时，其余项淡下去（目标站就是这么分主次的） */
.menu-list[data-open] .menu-item:not(.is-open) { opacity: 0.5; }
.menu-arrow { font-family: var(--sans); font-size: 15px; color: var(--muted); transition: transform 0.3s var(--transition); }
.menu-item.is-open .menu-arrow { transform: translateX(4px); color: var(--accent); }
.menu-item.is-open { border-bottom-color: transparent; }

.menu-subs { display: none; position: relative; border-left: 1px solid var(--border); padding-left: 2.2rem; padding-right: 1.6rem; }
.menu[data-sub] .menu-subs { display: block; }
.menu-sub { display: none; }
.menu-sub.is-active { display: block; }
.menu-sub-title {
  margin: 0 0 0.9rem;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu-sub-list { list-style: none; margin: 0; padding: 0; }
.menu-sub-list a { display: block; padding: 0.42rem 0; font-family: var(--serif); font-size: 18px; color: var(--text); }
.menu-sub-list a:hover,
.menu-sub-list a:focus-visible { color: var(--accent); }
.menu-sub-note { display: block; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.menu-sub-all {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.menu-sub-all:hover { color: var(--accent); border-color: var(--accent); }

.menu-media { position: relative; overflow: hidden; background: var(--bg-2); }
/* 昼夜两支叠在同一格，只亮当前主题那一支；没挂 src 时显示的是 poster */
.menu-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--transition);
}
.menu-video.is-active { opacity: 1; }

@media (max-width: 860px) {
  /* 单列：子列落到列表下方，展开时才出现（.menu-subs 的 display 仍由 data-sub 控制） */
  .menu,
  .menu[data-sub] { grid-template-columns: minmax(0, 1fr); }
  /* 子列在列表下方，两段加起来会超过视口——覆盖层自己滚，否则后几条子项点不到
     （此前 scrollTop 恒为 0，越界部分不可达） */
  .menu { overflow-y: auto; overscroll-behavior: contain; }
  .menu-media { display: none; }
  .menu-list { padding-right: clamp(14px, 2vw, 24px); }
  .menu-subs { border-left: 0; padding: 1.2rem clamp(14px, 2vw, 24px) 2.4rem; border-top: 1px solid var(--border); }
  .menu-sub { display: none; }
  .menu-sub.is-active { display: block; }
}

@media (max-width: 720px) {
  .unit-why { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .unit-why--flip .unit-why-body { order: 0; }
  /* 图文块同理堆成一列：上图下文（票 18 的验收是 390 宽不出横向滚动） */
  .image-text { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .unit-hero img { aspect-ratio: 4 / 3; }
  .explore-row { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .explore-row--flip .explore-media { order: 0; }
  .explore-list { gap: 3rem; }
  .menu-item { font-size: 22px; }
}

/*
 * 打印：把导航、按钮、页内跳转全部收起来，一条路线一页。
 *
 * 顶栏是 position: fixed，打印时既占位置又会和第一页内容叠在一起，必须 display:none；
 * 页脚（.site-footer 连同版权行）同理不进纸面。放在文件末尾，免得被后面的
 * 响应式块覆盖。
 */
@media print {
  .hdr,
  .menu,
  .site-footer,
  .anchor-nav,
  .no-print { display: none !important; }
  body { background: var(--bg); }
  .page { padding: 0; }
  .route-card { margin: 0; }
  .route-card + .route-card { break-before: page; }
  .route-sheet { padding: 0; border: 0; border-radius: 0; }
  .timeline-row::before { display: none; }
  a { color: inherit; text-decoration: none; }
}

/* ---------------- 卡片层（ADR 0018） ---------------- */
/*
 * 一张卡 = 一套固定规格 + 一个入参形状。卡不画外边距（间距由排它的容器用 gap 给，
 * 否则「块与块之间」会多出一条夹心，ADR 0014），字号只用 tokens.json 的阶梯或 clamp()，
 * 颜色只用 :root 变量。
 *
 * 卡片可以自己画底色（`tone="ink"` 用 --ink-bg），但那是给「这张卡单独出现、外面没有 Region」
 * 的场景；挂在既有舞台页里就交给外层 region——卡片不抢 surface 的活。
 *
 * 字重全部 400：参考站的标题是 ultralight，中文 Noto Serif 的 500 会明显偏重，
 * 而卡片标题比 `.unit-title` 更依赖「轻」这一个特征。
 */

/* 卡组头：节标题 + 引言，居中（参考站这两行居中、宽度约 40rem） */
.cd-head { max-width: 40rem; margin-inline: auto; text-align: center; }
.cd-head__title { margin: 0; font-size: clamp(22px, 3.4vw, 30px); font-weight: 400; line-height: 1.25; letter-spacing: 0.01em; }
.cd-head__lead { margin: 1rem auto 0; max-width: 34rem; font-size: var(--fs-base); line-height: 1.85; color: var(--muted); }

/* 一：文案导览介绍卡 —— 引语 → 标题 → 正文 → 事实行 →（可选）CTA */
.cd-copy {
  display: grid;
  justify-items: center;
  gap: 0.625rem;
  text-align: center;
}
.cd-copy--start { justify-items: start; text-align: left; }
/* 底色与内边距只在「这张卡单独出现」时给；挂进 Region 时底色由 region 出、
   内边距由 `.region--ink > .container` 出，卡片再加一层就会变成两份留白。
   自己画底色时也只给一份：`--ink-pad` 是为整块面板定的（72px 上下），一张卡压到那个数会显得空。 */
.cd-copy--ink { background: var(--ink-bg); padding: clamp(2rem, 4vw, 3.25rem) clamp(1.25rem, 4vw, 2rem); }
.cd-copy--paper { background: none; }
.cd-copy__quote {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cd-copy__title { margin: 0; font-size: clamp(30px, 6vw, 44px); font-weight: 400; line-height: 1.12; letter-spacing: 0.01em; }
.cd-copy__body { max-width: 38rem; }
.cd-copy--start .cd-copy__body { max-width: 40em; }
.cd-copy__body p { margin: 0; font-size: var(--fs-base); line-height: 1.75; color: var(--muted); }
.cd-copy__body p + p { margin-top: 0.9rem; }
.cd-copy__facts { margin: 0; font-size: var(--fs-sm); letter-spacing: 0.04em; color: var(--muted); }
.cd-copy .hero-cta { margin-top: 0.5rem; }
.cd-copy--ink .cd-copy__quote,
.cd-copy--ink .cd-copy__title { color: var(--ink-text); }
.cd-copy--ink .cd-copy__body p { color: var(--ink-body); }
.cd-copy--ink .cd-copy__facts { color: var(--ink-muted); }
/* 有底色的卡上的 CTA 照首屏那条文字链的规矩：去掉胶囊，只留下划线 */
.cd-copy--ink .hero-cta {
  --cta-color: var(--ink-cta);
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

/* 二：全图卡 —— 两段文案之间的一次停顿 */
.cd-figure { margin: 0; }
.cd-figure img { display: block; width: 100%; object-fit: cover; }
.cd-figure--3-2 img { aspect-ratio: 3 / 2; }
.cd-figure--16-9 img { aspect-ratio: 16 / 9; }
.cd-figure--4-5 img { aspect-ratio: 4 / 5; }
.cd-figure figcaption { margin-top: 0.6rem; font-size: var(--fs-sm); letter-spacing: 0.04em; color: var(--muted); }

/* 三：并排多图卡 —— 视口恒三张，一次滚一张，滚动条不隐藏 */
.cd-strip { display: grid; gap: 2rem; }
.cd-strip__track {
  list-style: none;
  margin: 0;
  /* 下留白给滚动条，不给外边距：这条留白属于卡片内部 */
  padding: 0 0 0.75rem;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.cd-strip__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* 一项 = (100% - 两条 gap) / 3，所以任何位置都恰好三张，不会露出半张 */
.cd-strip__item { flex: 0 0 calc((100% - 3rem) / 3); scroll-snap-align: start; scroll-snap-stop: always; }
.cd-strip__track::-webkit-scrollbar { height: 6px; }
.cd-strip__track::-webkit-scrollbar-track { background: var(--border); }
.cd-strip__track::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 999px; }
.cd-strip__cover { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cd-strip__title { margin: 1rem 0 0; font-size: var(--fs-lg); font-weight: 400; line-height: 1.35; }
.cd-strip__meta { margin: 0.3rem 0 0; font-size: var(--fs-sm); letter-spacing: 0.06em; color: var(--accent); }
.cd-strip__desc { margin: 0.5rem 0 0; font-size: var(--fs-base); line-height: 1.8; color: var(--muted); }

/* 四：三横线介绍卡 —— 左标签两行，右一段话，行行之间一条细线 */
.cd-rule { display: grid; gap: 2rem; }
.cd-rule__list { margin: 0 auto; max-width: 42.5rem; width: 100%; }
.cd-rule__row {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--border);
}
.cd-rule__row:last-child { border-bottom: 1px solid var(--border); }
.cd-rule__label { font-size: var(--fs-base); line-height: 1.6; color: var(--text); }
.cd-rule__note { display: block; font-size: var(--fs-sm); color: var(--muted); }
.cd-rule__desc { margin: 0; font-size: var(--fs-base); line-height: 1.85; color: var(--muted); }

/* 五：左右文图卡 —— 默认左文右图，flip 时反过来 */
.cd-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.cd-split--flip .cd-split__figure { order: -1; }
.cd-split__title { margin: 0; font-size: clamp(22px, 3.4vw, 30px); font-weight: 400; line-height: 1.3; }
.cd-split__body p { margin: 0.9rem 0 0; font-size: var(--fs-base); line-height: 1.85; color: var(--muted); }
.cd-split__figure { margin: 0; }
.cd-split__figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* 卡片进深色面板时的配色：与 `.region--ink` 的既有覆盖同一套变量 */
.region--ink .cd-copy__quote,
.region--ink .cd-copy__title { color: var(--ink-text); }
.region--ink .cd-copy__body p { color: var(--ink-body); }
.region--ink .cd-copy__facts { color: var(--ink-muted); }
.region--ink .cd-head__title,
.region--ink .cd-strip__title,
.region--ink .cd-rule__label,
.region--ink .cd-split__title { color: var(--ink-text); }
.region--ink .cd-head__lead,
.region--ink .cd-strip__desc,
.region--ink .cd-rule__desc,
.region--ink .cd-rule__note,
.region--ink .cd-split__body p { color: var(--ink-muted); }
.region--ink .cd-rule__row { border-color: var(--ink-border); }

/* 窄屏：并排卡降到两张、再降到一张半（仍可滑），左右文图卡堆成一列且图在上 */
@media (max-width: 900px) {
  .cd-strip__item { flex-basis: calc((100% - 1.5rem) / 2); }
}
@media (max-width: 760px) {
  .cd-split { grid-template-columns: minmax(0, 1fr); }
  .cd-split__figure { order: -1; }
}
@media (max-width: 620px) {
  .cd-strip__item { flex-basis: 86%; }
  .cd-rule__row { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
}

/*
 * dev 示范页的外壳（`/dev/cards/`，生产构建不产出该路由）。
 * 只做两件事：页边距，以及「卡与卡之间」的节奏——用 gap 而不是 margin，
 * 所以它只在这一个容器里成立，卡片自己不带任何外边距。
 */
.cd-stack {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2rem) clamp(4rem, 8vw, 7rem);
}

/* ---------------- 光标层：昼夜两套鼠标动效（ADR 0019） ---------------- */
/*
 * 两片画布各管一个主题，切换靠 `data-theme` 的 opacity 过渡，脚本不参与淡入——
 * 和 StageVideo 的「海报走 CSS 变量、切换不需要脚本」是同一个套路。
 * 这一层永远不接事件，它只是颜料：`z-index: 90` 压过顶栏（50）与菜单（60）。
 */
.cursor-fx {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.cursor-fx__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition);
}

[data-theme="light"] .cursor-fx__layer[data-cursor-layer="light"],
[data-theme="dark"] .cursor-fx__layer[data-cursor-layer="dark"] {
  opacity: 1;
}

/*
 * 引擎跑起来之后才在 body 上挂 `data-cursor="fx"`：在那之前（未加载 / 粗指针 / 减弱动态）
 * 系统光标照常显示，不会出现「光标凭空消失」的那一瞬。
 *
 * 这一条会顶掉样式表里其余十余处 cursor 声明（`.gallery-item` 的 zoom-in、
 * `.btn:disabled` 的 default 等）。那些语义以后由鱼的形态表达，或者逐处加回例外——
 * 是另一刀，记在 ADR 0019 的 Consequences 里。
 */
body[data-cursor="fx"],
body[data-cursor="fx"] * {
  cursor: none;
}

/* 表单控件要让回来：打字时看不见插入点在哪是硬伤 */
body[data-cursor="fx"] :is(input, textarea, select, [contenteditable=""], [contenteditable="true"]) {
  cursor: auto;
}

/* 灯箱是 <dialog> + ::backdrop，进的是 top layer：z-index 再高也压不过，所以整层让位 */
body[data-cursor="fx"][data-lightbox="open"],
body[data-cursor="fx"][data-lightbox="open"] * {
  cursor: auto;
}

@media (prefers-reduced-motion: reduce) {
  .cursor-fx__layer {
    transition: none;
  }
}
