/* ouuut-editorial · 排版与动效刻度(与配色正交,可单独取用)
   族数 ≤2 用法:拉丁衬线/无衬线 + CJK 自制回退;字号不用 vw 外推中文。 */
:root,
.theme-ouuut-editorial {
  /* 字族:拉丁主 + CJK 分语言回退(禁斜体、禁下划线做强调) */
  --serif: 'Instrument Serif', 'Serif Fallback', 'Noto Serif SC', 'Noto Serif JP', Georgia, 'Times New Roman', serif;
  --sans: 'Geist', 'Noto Sans SC', 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wordmark: 'Outfit', 'Geist', sans-serif;
  --zh-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif;
  --zh-sans: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --ja-serif: 'Noto Serif JP', 'Source Han Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  --ja-sans: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;

  /* 版式栅格 */
  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1360px;
  --gap: clamp(24px, 3vw, 48px);
  --sec-y: clamp(5rem, 11vw, 9.5rem);
  --nav-h: 72px;

  /* 字号档:CJK 用 em 上限,禁 ch 限宽 */
  --fs-eyebrow: 11px;
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-lead: clamp(18px, 1.8vw, 22px);
  --fs-h1-en: clamp(2.6rem, 6.2vw, 5.7rem);
  --fs-h1-ja: clamp(1.9rem, 5vw, 4.6rem);
  --fs-h1-zh: clamp(1.9rem, 5.6vw, 5.2rem);
  --fs-page: clamp(2rem, 4vw, 3.5rem);
  --fs-section: clamp(1.6rem, 3.4vw, 2.8rem);
  --fs-h3: clamp(1.35rem, 2.4vw, 1.9rem);
  --lh-en: 1.65;
  --lh-cjk: 1.8;

  /* 动效刻度:常态 ≤500ms,主题切换单独一档 */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: .2s;
  --dur-base: .45s;
  --dur-enter: .68s;
  --motion-fast: var(--dur-fast);
  --motion-theme: .4s;
  --motion-enter: var(--dur-enter);
}

/* Metric-compatible 衬线回退:Instrument Serif 在同样字符串下约为 Georgia 的 72% 宽,
   不设 size-adjust 的话 webfont 落地瞬间英文 H1 会重排。 */
@font-face {
  font-family: 'Serif Fallback';
  src: local('Georgia'), local('Times New Roman'), local('Times');
  size-adjust: 72%;
}

/* ouuut-editorial · 全量:纸白 / 炭黑双模 + 和色六景 A/B/C/D + 章节提色
   用法:<html data-theme="paper|charcoal" data-palette="a|b|c|d" data-chapter="crime"> */

/* ---------- 纸白(默认) ---------- */
:root,
[data-theme="paper"],
[data-theme="light"] {
  color-scheme: light;
  --bg: #F5F3ED;
  --ink: #1A1A16;
  --muted: #5B5A53;
  --surface: rgba(26, 26, 22, .045);
  --accent-ink-mix: 85%;
  --accent-ink-target: #14140F;
  --accent-soft-mix: 10%;
}

/* ---------- 炭黑 ---------- */
[data-theme="charcoal"],
[data-theme="dark"],
.theme-ouuut-editorial.dark {
  color-scheme: dark;
  --bg: #0E0E0C;
  --ink: #EDEBE4;
  --muted: #A3A199;
  --surface: rgba(237, 235, 228, .055);
  --accent-ink-mix: 86%;
  --accent-ink-target: #FFFDF5;
  --accent-soft-mix: 14%;
}

/* ---------- 强调色组(两模共用) ---------- */
:root,
[data-palette="a"],
.theme-ouuut-editorial {
  --c-weather: #0C8B7A;    /* 青磁 */
  --c-quake: #A77109;      /* 山吹 */
  --c-crime: #CD5545;      /* 朱 */
  --c-cabinet: #3F7DCA;    /* 藍 */
  --c-housing: #678618;    /* 苔 */
  --c-population: #A165AE; /* 紫 */
}

[data-palette="b"] {  /* 矿物大地 */
  --c-weather: #378697;
  --c-quake: #A07244;
  --c-crime: #A96B66;
  --c-cabinet: #8873A2;
  --c-housing: #53885E;
  --c-population: #867C42;
}

[data-palette="c"] {  /* 双色印刷 */
  --c-weather: #3F7DCA;
  --c-quake: #CF5343;
  --c-crime: #3F7DCA;
  --c-cabinet: #CF5343;
  --c-housing: #3F7DCA;
  --c-population: #CF5343;
}

[data-palette="d"] {  /* 三色分类:自然 / 社会 / 人 */
  --c-weather: #688527;
  --c-quake: #688527;
  --c-crime: #CB5848;
  --c-cabinet: #CB5848;
  --c-housing: #427DC7;
  --c-population: #427DC7;
}

/* ---------- 派生色与语义别名 ---------- */
:root,
[data-theme],
.theme-ouuut-editorial {
  --accent-base: var(--c-crime);
  --accent: var(--accent-base);
  --accent-ink-base: color-mix(in oklab, var(--accent-base) var(--accent-ink-mix), var(--accent-ink-target));
  --accent-ink: var(--accent-ink-base);
  --accent-soft-base: color-mix(in srgb, var(--accent-base) var(--accent-soft-mix), transparent);
  --accent-soft: var(--accent-soft-base);

  --theme-bg: var(--bg);
  --theme-ink: var(--ink);
  --theme-muted: var(--muted);
  --theme-surface: var(--surface);
  --theme-accent: var(--accent);
  --theme-accent-ink: var(--accent-ink);

  --link: var(--accent-ink);
  --danger: var(--c-crime);
  --danger-ink: color-mix(in oklab, var(--c-crime) var(--accent-ink-mix), var(--accent-ink-target));
  --red: var(--c-crime);
  --green: var(--c-housing);
  --aqua: var(--c-weather);
  --blue: var(--c-cabinet);
  --purple: var(--c-population);

  --radius: 4px;
  --btn-radius: 2px;
}

/* ---------- 章节页:把该章的颜色提为页面重点色 ---------- */
[data-chapter="weather"]    { --accent-base: var(--c-weather); }
[data-chapter="quake"]      { --accent-base: var(--c-quake); }
[data-chapter="crime"]      { --accent-base: var(--c-crime); }
[data-chapter="cabinet"]    { --accent-base: var(--c-cabinet); }
[data-chapter="housing"]    { --accent-base: var(--c-housing); }
[data-chapter="population"] { --accent-base: var(--c-population); }

/* japan.ouuut.com · theme-overrides — Wireframe Studio Edition / 和色六景
   构建顺序(build.py):包 type.css → 包 all.css → 本文件 → src/app.css。
   包内只读文件不改(保 assert_tokens.py 绿);本层补齐 Wireframe Studio 所需
   线框令牌(--card / --bar / --wire* / --c1..c6 / --c*-ink / 卡尺滚动条令牌 /
   2px 架构圆角 / 64px 页头)及 JA/ZH-Hans/ZH-Hant/EN 衬线加粗字体栈。 */

:root,
html[data-theme="light"],
html[data-theme="sage"] {
  color-scheme: light;
  --bg: #F5F3ED;
  --card: #FBFAF5;
  --bar: rgba(245, 243, 237, 0.92);
  --ink: #1A1A16;
  --muted: #5B5A53;
  --surface: rgba(26, 26, 22, 0.045);
  --surface-2: rgba(26, 26, 22, 0.08);

  --wire: rgba(26, 26, 22, 0.16);
  --wire-soft: rgba(26, 26, 22, 0.08);
  --wire-strong: rgba(26, 26, 22, 0.34);

  --c1: #0C8B7A;
  --c2: #A77109;
  --c3: #CD5545;
  --c4: #3F7DCA;
  --c5: #678618;
  --c6: #A165AE;

  --c1-ink: #07685B;
  --c2-ink: #7E5404;
  --c3-ink: #A53A2C;
  --c4-ink: #275DA3;
  --c5-ink: #4A610E;
  --c6-ink: #7D468A;

  --sb-edge: rgba(26, 26, 22, 0.42);
  --sb-fill: rgba(26, 26, 22, 0.10);
  --sb-fill2: rgba(26, 26, 22, 0.22);

  --radius: 2px;
  --btn-radius: 2px;
  --nav-h: 64px;

  --serif: 'Instrument Serif', 'Serif Fallback', 'Noto Serif SC', 'Noto Serif JP', Georgia, serif;
  --sans: 'Geist', 'Noto Sans SC', 'Noto Sans JP', -apple-system, 'Microsoft YaHei', sans-serif;
  --mono: 'JetBrains Mono', 'Noto Sans SC', 'Noto Sans JP', ui-monospace, monospace;
  --zh-hant-serif: 'Instrument Serif', 'Serif Fallback', 'Noto Serif TC Punct', 'Noto Serif TC', 'Noto Serif SC', 'Noto Serif JP', Georgia, serif;
  --zh-hant-sans: 'Geist', 'Noto Sans TC Punct', 'Noto Sans TC', 'Noto Sans SC', 'Noto Sans JP', -apple-system, 'Microsoft JhengHei', sans-serif;
}

html[lang="ja"] {
  --serif: 'Instrument Serif', 'Serif Fallback', 'Noto Serif JP', 'Noto Serif SC', Georgia, serif;
  --sans: 'Geist', 'Noto Sans JP', 'Noto Sans SC', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Noto Sans JP', 'Noto Sans SC', ui-monospace, monospace;
}

html[lang="zh-Hans"] {
  --serif: 'Instrument Serif', 'Serif Fallback', 'Noto Serif SC', 'Noto Serif JP', Georgia, serif;
  --sans: 'Geist', 'Noto Sans SC', 'Noto Sans JP', -apple-system, 'Microsoft YaHei', sans-serif;
  --mono: 'JetBrains Mono', 'Noto Sans SC', 'Noto Sans JP', ui-monospace, monospace;
}

html[lang="zh-Hant"] {
  --serif: var(--zh-hant-serif);
  --sans: var(--zh-hant-sans);
  --mono: 'JetBrains Mono', 'Noto Sans TC Punct', 'Noto Sans TC', 'Noto Sans SC', ui-monospace, monospace;
  --zh-serif: var(--zh-hant-serif);
  --zh-sans: var(--zh-hant-sans);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E0E0C;
  --card: #151512;
  --bar: rgba(14, 14, 12, 0.92);
  --ink: #EDEBE4;
  --muted: #A3A199;
  --surface: rgba(237, 235, 228, 0.055);
  --surface-2: rgba(237, 235, 228, 0.10);

  --wire: rgba(237, 235, 228, 0.22);
  --wire-soft: rgba(237, 235, 228, 0.09);
  --wire-strong: rgba(237, 235, 228, 0.42);

  --c1-ink: #47C9B4;
  --c2-ink: #DBA335;
  --c3-ink: #EA8776;
  --c4-ink: #77ACEB;
  --c5-ink: #9EC04E;
  --c6-ink: #C690D1;

  --sb-edge: rgba(237, 235, 228, 0.46);
  --sb-fill: rgba(237, 235, 228, 0.13);
  --sb-fill2: rgba(237, 235, 228, 0.26);
}

@media not all and (min-width: 900px) {
  :root {
    --fs-h1-en: clamp(2rem, 6.2vw, 5.7rem);
  }
}

@media (min-width: 900px) {
  :root {
    --fs-h1-en: clamp(2.6rem, 6.2vw, 5.7rem);
    --fs-h1-ja: clamp(1.9rem, 5vw, 4.6rem);
    --fs-h1-zh: clamp(1.9rem, 5.6vw, 5.2rem);
  }
}

html[data-palette="c"]:not([data-chapter]) {
  --accent-base: var(--c-quake);
}

/* japan.ouuut.com · app.css — Wireframe Studio Edition / 和色六景.
   Always-ON 48px architectural wireframe grid, Paper/Charcoal + Wa-iro six hues,
   Sylfaen/Hand-O lockup, Display Serif headings, 2px card/control geometry. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: var(--sb-edge) transparent;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, var(--wire-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--wire-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-en);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: clip;
}
/* 全局跨文档 View Transition 与页面平滑淡入（时长更充分，质感更从容） */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: 0.45s cubic-bezier(0.4, 0, 1, 1) both vt-fade-out;
}
::view-transition-new(root) {
  animation: 0.65s cubic-bezier(0.16, 1, 0.3, 1) both vt-fade-in;
}
@keyframes vt-fade-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.995); }
}
@keyframes vt-fade-in {
  from { opacity: 0; transform: scale(1.005); }
  to { opacity: 1; transform: scale(1); }
}

/* 页面加载时主区域平滑淡入动画 */
@keyframes mainEntryFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
main#main {
  animation: mainEntryFade 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 全局主题与颜色平滑流转 (0.65s 柔和缓动，肉眼可见的舒适渐变) */
html, body, .masthead, .stage, .cab-host, #crm-root, .panel-card, .hp-band, .hp-entry,
.theme-toggle, .lang-switch, .cab-pill, .seg button {
  transition: background-color 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease,
              fill 0.2s ease,
              stroke 0.2s ease;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { cursor: progress; }
::selection { background: var(--accent); color: var(--bg); }

/* Caliper Ruler Scrollbar (48px major / 12px minor ticks) */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track {
  background-color: color-mix(in srgb, var(--ink) 3%, transparent);
  background-image:
    repeating-linear-gradient(to bottom, var(--wire) 0, var(--wire) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(to bottom, var(--wire-soft) 0, var(--wire-soft) 1px, transparent 1px, transparent 12px);
  background-size: 100% 100%, 6px 100%;
  background-repeat: no-repeat;
  border-left: 1px solid var(--wire);
}
::-webkit-scrollbar-thumb {
  background-color: var(--sb-fill);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 5px, var(--wire-soft) 5px, var(--wire-soft) 6px);
  border: 1px solid var(--sb-edge);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--sb-fill2); border-color: var(--ink); }
::-webkit-scrollbar-corner { background: transparent; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 四章 =「舞台 + 静的正文」1 枚の文書。舞台は従来どおり一画面ぶんの高さを取り、
   正文はその下に続く(内部スクロールを作らないので、面包屑・页脚・爬虫が普通に読める)。 */
body.chapter-app { min-height: 100dvh; }
.chapter-app-page {
  margin: 0;
  padding: 0;
  width: 100%;
}
/* z-index:0 で舞台が積層文脈を作る:Leaflet/WebGL の内側 z-index が
   固定ヘッダ(z-index:100)を追い越さないようにする。 */
.chapter-app-page > .stage {
  height: calc(100vh - var(--nav-h) - var(--crumb-h));
  height: calc(100dvh - var(--nav-h) - var(--crumb-h));
  width: 100%;
  margin: 0;
  border-radius: 0;
  z-index: 0;
}
.chapter-app-page .stage-live {
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden;
}
.chapter-app-page .stage-live #crm-root {
  height: 100% !important;
  min-height: 0 !important;
}
.chapter-app-page .stage-live #crm-map,
.chapter-app-page .stage-live .leaflet-container {
  height: 100% !important;
}

/* ---------------- 四章の静的正文(是什么 / 数据口径 / 怎么读 / 常见问题)---------------- */
/* 見出しは h2 を四本。本文は一続きの文書として舞台の下に置く(JS なしでも読める)。 */
.ch-doc {
  padding-block: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--wire);
}
.ch-doc-head { max-width: 46em; margin: 0 0 clamp(16px, 2vw, 24px); }
.ch-doc-eyebrow {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.ch-doc h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -.01em;
}
html[lang="ja"] .ch-doc h2,
html[lang^="zh"] .ch-doc h2 { font-weight: 700; }
.ch-doc p {
  max-width: 44em;
  margin: 0 0 1.05em;
  font-size: var(--fs-body);
  line-height: 1.95;
}
.ch-doc p:last-child { margin-bottom: 0; }
.ch-doc a { border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.ch-doc a:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }
.ch-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  max-width: 46em;
  margin: clamp(20px, 2.4vw, 30px) 0 0;
  background: var(--wire);
  border: 1px solid var(--wire);
}
.ch-facts > div {
  min-width: 0;
  background: var(--card);
  padding: 12px 14px;
}
.ch-facts > div { min-width: 0; }
.ch-facts dt {
  margin: 0 0 4px;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ch-facts dd { margin: 0; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.ch-faq { max-width: 44em; margin: 0; }
.ch-faq dt { margin: 0 0 6px; font-size: var(--fs-body); font-weight: 500; line-height: 1.7; }
.ch-faq dd {
  margin: 0 0 clamp(16px, 2vw, 22px);
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.9;
}
.ch-faq dd:last-child { margin-bottom: 0; }

/* 内阁全屏舞台布局与高质感平滑入场遮罩 */
/* 舞台の高さは .chapter-app-page > .stage の calc(100dvh − ヘッダ − パンくず) が決める。
   ここで height:100% を重ねてはいけない:親 main は「舞台 + 正文」の auto 高さなので、
   100% は 0 に解決し、舞台ごと消える(2026-11-04 の正文改稿で実測 0px)。 */
.chapter-app-page .stage-cabinet {
  position: relative;
  background: var(--bg);
}
.cab-veil {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}
.cab-veil.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cab-veil-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
  user-select: none;
}
.cab-veil-pulse {
  position: relative;
  width: 120px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cab-veil-wave {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cab-veil-path-base {
  stroke: color-mix(in srgb, var(--ink) 12%, transparent);
}
.cab-veil-path-glow {
  stroke: var(--accent);
  stroke-dasharray: 45 120;
  stroke-dashoffset: 165;
  animation: cabPulseScan 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes cabPulseScan {
  0% { stroke-dashoffset: 165; opacity: 0.15; }
  50% { opacity: 1; }
  100% { stroke-dashoffset: -45; opacity: 0.15; }
}
.cab-veil-text {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0.85;
}
.cab-host {
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  opacity: 1;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.cab-host.cab-init-hidden {
  opacity: 0;
}
.cab-host > .cab-viewport {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
}
.cab-bottom-bar {
  position: absolute !important;
  bottom: 8px !important;
  left: 36px !important;
  height: 32px !important;
  min-height: 0 !important;
  z-index: 8 !important;
  display: flex !important;
  align-items: center !important;
  pointer-events: none !important;
}
.cab-host > #cab-chart {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
/* 地震视口 Sage 浅色模式全套配色覆盖与底部渐变遮罩移除 */
:is(html[data-theme="light"], html[data-theme="sage"]) #v-quake-viewport {
  --accent: var(--accent-base) !important;
  --accent-ink: var(--accent-ink-base) !important;
  --accent-soft: var(--accent-soft-base) !important;
  --bg0: var(--bg) !important;
  --bg0-h: #ECE9E1 !important;
  --bg1: #E2DED4 !important;
  --fg: var(--ink) !important;
  --fg1: var(--accent) !important;
  --gray: var(--muted) !important;
  --bg-page: var(--bg) !important;
  --bg-map: var(--bg) !important;
  --text-main: var(--ink) !important;
  --text-muted: var(--muted) !important;
  --text-faint: #7A786F !important;
  --line-main: rgba(26, 26, 22, 0.14) !important;
  --panel-bg: var(--bg) !important;
  --panel-bg-soft: var(--bg) !important;
  --panel-shadow: rgba(0, 0, 0, 0.08) !important;
  --bottom-grad: transparent !important;
  --eq-coast: var(--ink) !important;
}

/* 地震视口深色模式：此前完全没写映射，地球底色停在 vendor 的棕黑 #12100d */
html[data-theme="dark"] #v-quake-viewport {
  --accent: var(--accent-base) !important;
  --accent-ink: var(--accent-ink-base) !important;
  --accent-soft: var(--accent-soft-base) !important;
  --bg0: var(--bg) !important;
  --bg0-h: #171714 !important;
  --bg1: #1c1b18 !important;
  --fg: var(--ink) !important;
  --fg1: var(--accent) !important;
  --gray: var(--muted) !important;
  --bg-page: var(--bg) !important;
  --bg-map: var(--bg) !important;
  --text-main: var(--ink) !important;
  --text-muted: var(--muted) !important;
  --text-faint: #6f6d66 !important;
  --line-main: rgba(237, 235, 228, 0.12) !important;
  --panel-bg: var(--bg) !important;
  --panel-bg-soft: var(--bg) !important;
  --panel-shadow: none !important;
  --bottom-grad: transparent !important;
  --eq-coast: var(--ink) !important;
}

/* PWA 安装按钮文案是中文「安装」，与日文界面不符，且 Chromium 专属；隐藏 */
#v-quake-viewport #eq-pwa-install { display: none !important; }

/* 全站零投影纪律：地震浮层所有胶囊一律不带投影 */
#v-quake-viewport [class*="eq-"] {
  box-shadow: none !important;
}

/* 彻底去掉地图下方的渐变遮罩 */
#v-quake-viewport .eq-bottom {
  background: none !important;
}
#v-quake-viewport {
  --bottom-grad: transparent !important;
}

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

.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--btn-radius);
  font-family: var(--mono);
  font-size: 12px;
  transition: top .2s ease;
}
.skip:focus { top: 12px; }

main, main > section[id], #chapters, #download {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}
.wrap.narrow { max-width: 900px; }

/* ---------------- atmosphere ---------------- */
.scroll-progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6));
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  z-index: 5;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress-bar { display: none; }
}

/* Keep CJK phrases together where the engine supports phrase segmentation. */
h1, h2, h3, .lede, .section-title, .prod-name, .beat h3, .prose p, .data-table td {
  word-break: auto-phrase;
  line-break: strict;
}

/* ---------------- type primitives ---------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 500;
}
.eyebrow b, .eyebrow a { color: var(--accent-ink); font-weight: 500; }

.section-label { margin-bottom: clamp(24px, 3vw, 40px); }
.section-label .eyebrow { margin-bottom: 10px; }

.section-title {
  font-family: var(--serif);
  font-size: var(--fs-section);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 26ch;
  text-wrap: balance;
}
html[lang="ja"] .section-title,
html[lang^="zh"] .section-title { font-weight: 700; }
.section-sub { color: var(--muted); font-size: var(--fs-small); line-height: 1.7; margin-bottom: 24px; }

/* ---------------- CJK routing ---------------- */
html[lang="ja"] body,
html[lang="ja"] .lede, html[lang="ja"] .section-sub {
  font-family: var(--ja-sans);
  line-height: var(--lh-cjk);
}
html[lang^="zh"] body,
html[lang^="zh"] .lede, html[lang^="zh"] .section-sub {
  font-family: var(--zh-sans);
  line-height: var(--lh-cjk);
}
html[lang="ja"] .section-title, html[lang^="zh"] .section-title { max-width: 18em; }

/* CJK micro type: 12px sans, no tracking (same rule as ouuut) */
html[lang="ja"] .eyebrow, html[lang^="zh"] .eyebrow,
html[lang="ja"] .chapters, html[lang^="zh"] .chapters,
html[lang="ja"] .prod-num, html[lang^="zh"] .prod-num,
html[lang="ja"] .prod-note, html[lang^="zh"] .prod-note,
html[lang="ja"] .prod-kw, html[lang^="zh"] .prod-kw,
html[lang="ja"] .prod-status, html[lang^="zh"] .prod-status,
html[lang="ja"] .prod-action, html[lang^="zh"] .prod-action,
html[lang="ja"] .foot, html[lang^="zh"] .foot,
html[lang="ja"] .pager, html[lang^="zh"] .pager {
  font-family: var(--ja-sans);
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 500;
}
html[lang^="zh"] .eyebrow, html[lang^="zh"] .chapters,
html[lang^="zh"] .prod-num,
html[lang^="zh"] .prod-note, html[lang^="zh"] .prod-kw,
html[lang^="zh"] .prod-status, html[lang^="zh"] .prod-action,
html[lang^="zh"] .foot, html[lang^="zh"] .pager {
  font-family: var(--zh-sans);
}

/* ---------------- header ---------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wire);
  transition: background-color .2s ease;
}

/* ---------------- 面包屑 ---------------- */
/* 顶层 → 章节。高度固定:章节页是全屏舞台(100dvh - nav),扣掉这一条才不会溢出。 */
:root { --crumb-h: 38px; }
.crumbs {
  height: var(--crumb-h);
  border-bottom: 1px solid var(--wire);
  background: var(--bg);
}
.crumbs ol {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--crumb-h);
  margin: 0;
  padding: 0 var(--pad);
  list-style: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "→"; color: color-mix(in srgb, var(--muted) 60%, transparent); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs li[aria-current="page"] { color: var(--ink); }

.masthead-in {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 18px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--wordmark);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .2s ease;
}
.wordmark:hover { opacity: .84; }
.wordmark .wm-main { font-size: 1em; letter-spacing: -.015em; }
.wordmark .wm-tld { font-size: 1em; letter-spacing: -.015em; font-weight: 800; }
.wm-lockup { display: block; height: 19px; width: auto; flex-shrink: 0; }
.wm-lockup.is-animated-lockup,
.wm-lockup.is-drop-wordmark { overflow: visible; }
.wm-lockup path { transition: fill .2s ease, stroke .2s ease; }
.wm-lockup .g-pre,
.wm-lockup .g-dot1,
.wm-lockup .g-c,
.wm-lockup .g-o,
.wm-lockup .g-m { fill: var(--ink); stroke: var(--ink); }
.wm-lockup .g-mark { fill: var(--c1); stroke: var(--c1); }
.wm-lockup .g-u1 { fill: var(--c2); stroke: var(--c2); }
.wm-lockup .g-u2 { fill: var(--c3); stroke: var(--c3); }
.wm-lockup .g-u3 { fill: var(--c4); stroke: var(--c4); }
.wm-lockup .g-t4 { fill: var(--c5); stroke: var(--c5); }
.wm-lockup .g-dot { fill: var(--c6); stroke: var(--c6); }

@keyframes logoLetterHop {
  0%, 10%, 100% { transform: translateY(0); }
  4% { transform: translateY(-135px); }
  7% { transform: translateY(18px); }
}
.wm-lockup.is-animated-lockup path {
  animation: logoLetterHop 7.2s cubic-bezier(.34,1.56,.64,1) infinite;
  animation-delay: calc(var(--li, 0) * 85ms);
}
@media (prefers-reduced-motion: reduce) {
  .wm-lockup.is-animated-lockup path { animation: none !important; }
}

.wm-mark {
  display: inline-block;
  width: .5611em;
  height: .5625em;
  vertical-align: -.011em;
  margin: 0 .018em;
}

.chapters {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
}
.chapters a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -6px 0;
  color: var(--muted);
  transition: color 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.chapters a:hover { color: var(--ink); transform: translateY(-1px); }
.chapters a[aria-current="page"] { color: var(--accent-ink); }
.chapters a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.45s ease;
}

.tools {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
}

/* One theme toggle: a 44px hit area that swaps an outlined sun for a moon.
   The button stays hidden until shell.js wires it, so it never renders dead. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}
.theme-toggle:hover { color: var(--ink); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-toggle[hidden] { display: none; }
.theme-icon { width: 15px; height: 15px; flex: none; }
/* 1.4 stroke at 20px read heavier than the 12px nav; 1.25 at 15px sits level with it. */
.theme-icon * { stroke-width: 1.25; }
.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }

/* Language: current language + a disclosure of real links. No pill, no underline. */
.lang-switch { position: relative; display: inline-flex; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  letter-spacing: .02em;
  cursor: pointer;
  list-style: none;
}
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lang-caret {
  width: 8px;
  height: 8px;
  flex: none;
  color: var(--muted);
  transition: transform var(--dur-fast) var(--ease);
}
.lang-switch[open] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  min-width: 116px;
  display: none;
  z-index: 40;
  padding: 4px;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: var(--radius);
}
.lang-switch[open] .lang-menu { display: block; }
.mobile-foot .lang-switch { align-self: flex-start; }
.mobile-foot .lang-menu { top: auto; bottom: calc(100% - 4px); left: 0; right: auto; }
.lang-menu a {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 3px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .02em;
  text-align: left;
}
.lang-menu a:hover,
.lang-menu a:focus-visible { background: var(--surface); color: var(--ink); outline: none; }
.lang-menu a[aria-current="page"] { color: var(--ink); }
/* Each language renders in its own face, whichever page you are on. */
.lang-switch :lang(ja) { font-family: var(--ja-sans); }
.lang-switch :lang(zh) { font-family: var(--zh-sans); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu must be a sibling of header: backdrop-filter on header would
   otherwise become the containing block for position:fixed descendants. */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  padding: 32px var(--pad);
  background: var(--bg);
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
html:has(body.menu-open) { overflow: visible; }
body.menu-open { overflow: hidden; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 20px; }
.mobile-nav-links a { font-family: var(--serif); font-size: 32px; color: var(--ink); }
.mobile-nav-links a[aria-current="page"] { color: var(--accent-ink); }
html[lang="ja"] .mobile-nav-links a { font-family: var(--ja-sans); font-weight: 300; }
html[lang^="zh"] .mobile-nav-links a { font-family: var(--zh-sans); font-weight: 300; }
.mobile-foot { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; }

/* ---------------- cover ---------------- */
.cover {
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.cover .eyebrow { margin-bottom: 18px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .95fr;
  gap: var(--gap);
  align-items: start;
}
.hero-content { display: flex; flex-direction: column; min-width: 0; }

.cover h1 {
  font-family: var(--serif);
  font-size: var(--fs-h1-en);
  line-height: .96;
  letter-spacing: -.03em;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: none;
}
html[lang="ja"] .cover h1 {
  font-family: var(--ja-sans);
  font-weight: 200;
  font-size: var(--fs-h1-ja);
  line-height: 1.3;
  letter-spacing: 0;
}
html[lang^="zh"] .cover h1 {
  font-family: var(--zh-sans);
  font-weight: 200;
  font-size: var(--fs-h1-zh);
  line-height: 1.28;
  letter-spacing: 0;
}

.cover h1 em, .chapter-head h1 em {
  font-style: italic;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
html[lang="ja"] .cover h1 em, html[lang^="zh"] .cover h1 em,
html[lang="ja"] .chapter-head h1 em, html[lang^="zh"] .chapter-head h1 em {
  font-style: normal;
  text-underline-offset: 12px;
}

.cover .lede {
  font-size: var(--fs-lead);
  color: var(--ink);
  max-width: 44ch;
  line-height: 1.65;
  margin: 0 0 32px;
}
html[lang="ja"] .cover .lede, html[lang^="zh"] .cover .lede { font-size: 16px; line-height: 1.8; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--btn-radius);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .2s ease, opacity .2s ease;
}
.btn-primary:hover { color: var(--bg); transform: translateY(-2px); opacity: .92; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  transition: gap .2s ease, color .2s ease;
}
.btn-secondary:hover { gap: 12px; color: var(--accent-ink); }
html[lang="ja"] .btn-primary, html[lang^="zh"] .btn-primary,
html[lang="ja"] .btn-secondary, html[lang^="zh"] .btn-secondary {
  font-family: var(--ja-sans);
  font-size: 13.5px;
  letter-spacing: .04em;
  font-weight: 500;
}
html[lang^="zh"] .btn-primary, html[lang^="zh"] .btn-secondary { font-family: var(--zh-sans); }

.hero-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel-cap {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.spine { display: flex; flex-direction: column; gap: 18px; }
.spine-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "lbl val" "bars bars";
  gap: 8px 12px;
  align-items: end;
}
.spine-lbl { grid-area: lbl; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.spine-val { grid-area: val; font-family: var(--mono); font-size: 12px; text-align: right; color: var(--ink); }
.spine-bars { grid-area: bars; display: flex; align-items: flex-end; gap: 2px; height: 44px; }
.spine-bars i {
  flex: 1;
  height: calc(var(--v) * 100%);
  min-height: 2px;
  background: var(--accent);
  opacity: .55;
  border-radius: 1px 1px 0 0;
}
html[lang="ja"] .spine-lbl, html[lang^="zh"] .spine-lbl { font-family: var(--ja-sans); font-size: 11px; letter-spacing: 0; }
html[lang^="zh"] .spine-lbl { font-family: var(--zh-sans); }

/* Hero signature: giant Outfit wordmark with datum rails. */
.hero-wordmark-bottom {
  margin-top: clamp(56px, 9vw, 120px);
  padding: 32px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.datum-rail {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .8;
}
.datum-rail-top { margin-bottom: 24px; }
.datum-rail-bottom { margin-top: 24px; }
.hero-wordmark-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--wordmark);
  font-weight: 800;
  font-size: clamp(64px, 16vw, 232px);
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--accent);
  white-space: nowrap;
}
.hero-wordmark-text .wm-main { font-size: 1em; letter-spacing: -.015em; }
.hero-wordmark-text .wm-tld { font-size: 1em; letter-spacing: -.015em; }

/* ---------------- chapter index rows ---------------- */
.products-sec { padding-block: var(--sec-y); }

.prod-table { display: flex; flex-direction: column; }
.prod-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2.6vw, 36px);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border-radius: var(--radius);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
  min-width: 0;
}
.prod-row + .prod-row { margin-top: clamp(16px, 2vw, 24px); }
.prod-row:hover { background: var(--surface); transform: translateY(-2px); color: inherit; }
.prod-num { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--muted); }
.prod-body { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 22px); min-width: 0; }
.prod-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.prod-name {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.05;
  font-weight: 400;
  color: var(--ink);
  transition: color .2s ease;
}
.prod-row:hover .prod-name { color: var(--accent); }
.prod-count {
  font-family: var(--mono);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink);
}
.prod-domain {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--accent-ink);
  margin-top: 2px;
}
.prod-tagline { font-size: var(--fs-small); color: var(--muted); line-height: 1.55; }
.prod-note { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.prod-meta { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2vw, 30px); }
.prod-kw { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prod-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.prod-status.live { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.prod-status.live .status-dot { background: var(--accent); }
.prod-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  transition: gap .2s ease, color .2s ease;
}
.prod-row:hover .prod-action { gap: 12px; color: var(--accent-ink); }
.prod-visual { align-self: center; min-width: 0; }
.prod-visual svg { width: 100%; height: auto; }

/* ---------------- chapter page head ---------------- */
.chapter-head { padding-block: clamp(36px, 6vh, 76px) clamp(24px, 4vh, 44px); }
.chapter-head .eyebrow { margin-bottom: 16px; }
.chapter-head h1 {
  font-family: var(--serif);
  font-size: var(--fs-page);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 18px;
}
html[lang="ja"] .chapter-head h1, html[lang^="zh"] .chapter-head h1 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.chapter-head .lede {
  font-size: var(--fs-lead);
  color: var(--ink);
  max-width: 58ch;
  line-height: 1.65;
}
html[lang="ja"] .chapter-head .lede, html[lang^="zh"] .chapter-head .lede { font-size: 16px; line-height: 1.8; }
.h1-sub { font-size: .45em; color: var(--muted); margin-left: .2em; letter-spacing: .04em; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(28px, 4vw, 48px);
}
.stats div { min-width: 0; }
.stats dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.stats dd {
  font-family: var(--mono);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink);
}
.stats dd small { font-size: .45em; letter-spacing: .06em; color: var(--muted); margin-left: .35em; }

/* ---------------- stage / poster ---------------- */
.stage {
  position: relative;
  height: clamp(420px, 56vw, 720px);
  overflow: hidden;
  border-bottom: 1px solid var(--wire);
  border-radius: 0;
  background: var(--bg);
  margin-top: clamp(28px, 4vw, 44px);
}
.stage-poster { position: absolute; inset: 0; }
.stage-poster svg { width: 100%; height: 100%; }
.stage[data-live="1"] .stage-poster { display: none; }
.stage-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 3;
  max-width: min(72%, 620px);
  padding: 8px 12px;
  border-radius: var(--btn-radius);
  background: var(--bg);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .02em;
}
.stage[data-live="1"] .stage-caption { display: none; }
.stage-live { position: absolute; inset: 0; }
.stage-live > * { height: 100%; min-height: 0; }
.stage-crime { height: clamp(380px, 52vw, 660px); }
.stage-failed .stage-caption { display: block; }
/* 数据失败时的兜底：恢复 poster 之上给一句人话 + 重试，而不是空白舞台 */
.pj-fail {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center;
  background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.6;
}
.pj-fail p { margin: 0; max-width: 34em; }
.pj-fail-retry {
  font: inherit; font-size: 13px; padding: 8px 16px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--btn-radius, 4px);
  background: var(--bg); color: var(--ink);
}
.pj-fail-retry:hover { border-color: var(--ink); }
#crm-drop .drop-empty { padding: 7px 12px; font-size: 13px; color: var(--muted); cursor: default; }

/* ---------------- prose blocks ---------------- */
.beats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  padding-block: var(--sec-y);
}
.beat { min-width: 0; }
.beat .n {
  font-family: var(--mono);
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.beat h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.2;
  margin: 0 0 12px;
}
html[lang="ja"] .beat h3, html[lang^="zh"] .beat h3 { font-weight: 700; }
.beat p { color: var(--muted); font-size: var(--fs-small); line-height: 1.8; }

/* ---------------- index / tables ---------------- */
.year-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin-block: 8px clamp(28px, 4vw, 44px);
}
.year-index a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--wire);
  border-radius: var(--radius);
  background: var(--card);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.year-index a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.year-index a span { font-size: 10px; color: var(--muted); }
.year-index a:hover span { color: inherit; opacity: .8; }

.table-scroll { max-width: 100%; overflow-x: auto; background: var(--card); border: 1px solid var(--wire); border-radius: var(--radius); padding: 8px 14px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th {
  padding: 8px 12px 10px 0;
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--wire);
  white-space: nowrap;
}
.data-table td { padding: 11px 12px 11px 0; vertical-align: baseline; border-bottom: 1px dashed var(--wire-soft); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface); }
.data-table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .muted { color: var(--muted); }
.data-table .idx { width: 46px; padding-right: 14px; color: var(--muted); }
.data-table td.date { font-family: var(--mono); white-space: nowrap; padding-right: 18px; color: var(--ink); }
.data-table th.num, .data-table td.num { text-align: right; padding-right: 0; padding-left: 12px; }
.data-table th.idx, .data-table td.idx { width: 42px; padding-left: 0; padding-right: 12px; text-align: left; color: var(--muted); }
.data-table a:hover { color: var(--accent-ink); }

.figure { margin-block: clamp(28px, 4vh, 44px); }
.figure svg { width: 100%; height: auto; }
.figure figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}

.wardmap { width: 100%; height: auto; max-width: 760px; margin-inline: auto; }

/* ---------------- pager ---------------- */
.pager {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-block: clamp(28px, 4vw, 44px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pager a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.pager a:hover { color: var(--accent-ink); }
.pager .spacer { flex: 1; }

/* ---------------- method ---------------- */
.prose { max-width: none; padding-bottom: clamp(40px, 8vh, 88px); }
.prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-section);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 2.2em 0 .6em;
}
html[lang="ja"] .prose h2, html[lang^="zh"] .prose h2 { font-size: var(--fs-section); font-weight: 700; line-height: 1.2; }
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 1.8em 0 .4em;
}
.prose p, .prose li { color: var(--muted); font-size: var(--fs-body); line-height: 1.8; margin-bottom: .9em; }
.prose ul { padding-left: 1.2em; }
.prose li::marker { color: var(--accent); }
.prose code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: var(--btn-radius);
  color: var(--ink);
}
.prose .note { background: var(--card); border: 1px solid var(--wire); border-left: 3px solid var(--accent); padding: 20px 22px; border-radius: var(--radius); font-size: var(--fs-small); }
.prose .note b { color: var(--ink); }
.prose .note p:last-child { margin-bottom: 0; }

.dl-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 18px 0 32px;
}
.dl-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--wire);
  border-radius: var(--radius);
  background: var(--card);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.dl-list a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dl-list a span { font-size: 10px; color: var(--muted); }
.dl-list a:hover span { color: inherit; opacity: .75; }
/* ---------------- 404 ---------------- */
.notfound { padding-block: clamp(80px, 18vh, 200px); }
.notfound .code {
  font-family: var(--wordmark);
  font-weight: 800;
  font-size: clamp(96px, 18vw, 220px);
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--accent);
}
.notfound h1 { font-family: var(--serif); font-weight: 700; font-size: var(--fs-page); line-height: 1.15; margin-top: 12px; }
html[lang="en"] .notfound h1 { font-weight: 400; }
.notfound p { color: var(--muted); margin-top: 14px; max-width: 48ch; font-size: var(--fs-body); }
.notfound .links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; font-family: var(--mono); font-size: 13px; }
.notfound .links a { color: var(--accent-ink); }

/* ---------------- footer ---------------- */
.foot {
  border-top: 1px solid var(--wire);
  background: transparent;
  padding: 36px 0 32px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.foot .wordmark { font-size: 28px; margin-bottom: 0; }
.foot .foot-brand .wm-lockup { height: 17px; width: auto; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot-top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 0; }
.foot-siblings { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; }
.foot-siblings a { color: var(--muted); padding: 4px 0; transition: color .18s ease; }
.foot-siblings a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 11.5px; }
.foot-bottom a { color: var(--muted); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--muted) 40%, transparent); text-underline-offset: 3px; }
.foot-bottom a:hover { color: var(--accent-ink); }
/* ---------------- two-column utility ---------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); }

/* ---------------- chart primitives (static SVG posters) ---------------- */
.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--mono); font-size: 10px; fill: var(--muted); letter-spacing: .02em; }
.chart .axis { stroke: var(--muted); stroke-width: 1; opacity: .35; }
.chart .grid { stroke: var(--muted); stroke-width: 1; opacity: .16; }
.chart .bar { fill: var(--accent); opacity: .55; }
.chart .bar.hot { opacity: 1; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent); opacity: .1; }
.poster { width: 100%; height: 100%; }
.poster-lab { font-family: var(--mono); font-size: 11px; fill: var(--ink); letter-spacing: .04em; }
.thumb-svg { width: 100%; height: auto; }

/* ---------------- vendor: quake / crime / cabinet ---------------- */
/* The vendor sheets inject later; raise specificity so theme tokens win. */
html body #crm-root[data-crm-variant="editorial"] {
  --bg-page: var(--bg);
  --bg-map: var(--bg);
  --bg-card: var(--bg);
  --card-glass: none;
  --bg-card-sub: var(--surface);
  --text-main: var(--ink);
  --text-muted: var(--muted);
  --text-faint: var(--muted);
  --line-main: transparent;
  --line-strong: var(--ink);
  --shadow-card: none;
}
html body #crm-root[data-crm-variant="tactical"] {
  --bg-page: var(--bg);
  --bg-map: var(--bg);
  --bg-card: var(--bg);
  --card-glass: none;
  --bg-card-sub: var(--surface);
  --text-main: var(--ink);
  --text-muted: var(--muted);
  --text-faint: var(--muted);
  --line-main: transparent;
  --line-strong: var(--ink);
  --shadow-card: none;
}
html body #crm-root { --font-sans: var(--sans); --font-num: var(--mono); --title-font: var(--serif); --radius-ui: 2px; --radius-inner: 2px; --radius-card: 2px; }
html body #hsg-root { --font-sans: var(--sans); --font-num: var(--mono); --title-font: var(--serif); --radius-ui: 2px; --radius-inner: 2px; --radius-card: 2px; }

/* 犯罪页筛选控件宿主：全屏地图上方的浮动工具条 */
html body #crm-root #crm-ctl-host {
  position: absolute;
  left: 20px;
  top: 12px;
  z-index: 1200;
  max-width: calc(100% - 40px);
  padding: 6px 8px;
  border: 1px solid var(--wire);
  border-radius: 2px;
  background: var(--card);
}
html body #crm-root #crm-ctl-host .crm-ctl { gap: 8px; }
/* 窄屏：整组筛选收进一个抽屉按钮，不再占两行压在图上 */
html body #crm-root #crm-ctl-host .crm-ctl-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 350;
  cursor: pointer;
}
@media (max-width: 760px) {
  html body #crm-root #crm-ctl-host {
    left: 12px; right: 12px; max-width: none; top: 8px;
    padding: 4px; border-radius: 4px;
  }
  html body #crm-root #crm-ctl-host .crm-ctl-toggle { display: inline-flex; }
  html body #crm-root #crm-ctl-host .crm-ctl { display: none; }
  html body #crm-root #crm-ctl-host.is-open .crm-ctl {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 8px 6px 4px;
  }
  html body #crm-root #crm-ctl-host.is-open { border-radius: 4px; }
  html body #crm-root #crm-ctl-host .crm-q { width: 100%; }
}
html body #crm-root #crm-ctl-host .crm-sel,
html body #crm-root #crm-ctl-host .crm-q { border-radius: var(--btn-radius, 2px); }
html[lang^="zh"] body #crm-root { --font-sans: var(--zh-sans); --title-font: var(--zh-sans); }
html body #crm-root #crm-lx-capsule .lx-name {
  font-family: var(--title-font) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}
html body #crm-root #crm-lx-capsule {
  font-feature-settings: "palt" 1;
}
html body #crm-root .panel-card,
html body #crm-root .crime-row,
html body #crm-root .top-item,
html body #crm-root .rank-card-item,
html body #crm-root .faq-item,
html body #crm-root .faq-block { border-color: var(--wire) !important; box-shadow: none !important; }
html body #crm-root .panel-card { border-radius: 2px !important; }
#crm-app-loader { background: var(--bg) !important; }
#crm-app-loader, #crm-app-loader * { color: var(--muted) !important; }
#crm-app-loader .loader-radar { border-color: var(--accent-soft) !important; box-shadow: none !important; }
#v-quake-viewport [style*="background:#12100d"] { background: var(--bg) !important; color: var(--muted) !important; }

.cab-controls { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding: 0 18px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  height: 32px;
  padding: 0 13px;
  border-radius: 2px;
  background: var(--card);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  border: 1px solid var(--wire);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease !important;
}
.seg button:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
}
.seg button.on { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 600; }
.cab-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.cab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 2px;
  background: var(--card);
  border: 1px solid var(--wire);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease !important;
}
.cab-pill:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
}
.cab-pill.cab-focused { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.cab-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.cab-meta { position: absolute; top: 10px; right: 12px; z-index: 5; display: flex; align-items: center; gap: 8px; pointer-events: none; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.cab-range { display: none; }

/* ---------------- reveal / motion ---------------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .rv {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  }
  html.js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
  .prod-row { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 30px); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-panel { max-width: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .beats { grid-template-columns: 1fr; gap: 32px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .masthead-in { gap: 8px; }
  .masthead-in > .wordmark { flex: 0 0 auto; min-width: 0; font-size: clamp(20px, 2.8vw, 24px); }
  .chapters { gap: 12px; }
  .tools { gap: 4px; }
}

@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .masthead-in { height: 64px; gap: 8px; min-width: 0; }
  .masthead-in > .wordmark { flex: 0 0 auto; min-width: 0; font-size: 22px; }
  .wm-lockup { height: 17px; }
  .chapters, .masthead .lang-switch { display: none; }
  .burger { display: flex; flex: 0 0 44px; }
  .tools { flex: 0 0 auto; min-width: 0; margin-left: auto; gap: 4px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .prod-row { grid-template-columns: 1fr; gap: 18px; padding: 26px 0; }
  .prod-num { margin-bottom: -6px; }
  .prod-visual { order: 3; }
  .prod-action { margin-left: 0; }
  .stage { height: clamp(360px, 84vw, 560px); }
  .stage-caption { display: none; }
  .stage-crime { height: clamp(360px, 78vw, 620px); }
  .foot-in { align-items: flex-start; flex-direction: column; gap: 18px; }
  .foot-bottom { justify-content: flex-start; text-align: left; }
  .foot .wordmark { margin-bottom: 0; }
}

@media (max-width: 420px) {
  .masthead-in > .wordmark { font-size: 18px; }
  .wm-lockup { height: 15px; }
}

@media (max-width: 340px) {
  .masthead-in { gap: 6px; }
}

@media (max-width: 640px) {
  .cover h1 { font-size: clamp(2rem, 9.4vw, 3rem); }
  html[lang="ja"] .cover h1 { font-size: clamp(1.7rem, 8.6vw, 2.9rem); }
  html[lang^="zh"] .cover h1 { font-size: clamp(1.7rem, 8.9vw, 3rem); }
  .hero-wordmark-bottom { margin-top: 48px; }
  .datum-rail { font-size: 8px; letter-spacing: .06em; }
  .hero-wordmark-text { font-size: clamp(48px, 15vw, 74px); }
  .year-index { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  .data-table { font-size: 14px; }
  .data-table th, .data-table td { padding-right: 8px; }
  .stats dd { font-size: 28px; }
  .pager { font-size: 11px; }
}

/* ---- 内阁右侧多卡片面板深浅主题自适应 ---- */
/* 零投影 + 零结构线：只靠底色区分层级，圆角沿用全站 4px / 2px */
html[data-theme="dark"] .cab-panel .panel-card {
  background: var(--card) !important;
  border: 1px solid var(--wire) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .cab-panel .stat-box {
  background: var(--surface) !important;
  border: 1px solid var(--wire-soft) !important;
  border-radius: 2px !important;
}
html[data-theme="dark"] .cab-panel .back-btn {
  border: 1px solid var(--wire) !important;
  border-radius: 2px !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
}
:is(html[data-theme="light"], html[data-theme="sage"]) .cab-panel .panel-card {
  background: var(--card) !important;
  border: 1px solid var(--wire) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}
:is(html[data-theme="light"], html[data-theme="sage"]) .cab-panel .stat-box {
  background: var(--surface) !important;
  border: 1px solid var(--wire-soft) !important;
  border-radius: 2px !important;
}

/* ---- 地震左上角控制按钮水平居中对齐与线框风格 ---- */
#eq-menu-row, #eq-menu-items {
  display: flex !important;
  align-items: center !important;
}
.eq-tool {
  display: flex !important;
  align-items: center !important;
}
.eq-tool > .eq-sq, .eq-sq-row > .eq-sq, .eq-menu-items > .eq-sq {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  vertical-align: middle !important;
}
#v-quake-viewport .eq-sq {
  font-family: var(--mono) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  height: 28px !important;
  min-height: 28px !important;
  width: auto !important;
  min-width: 44px;
  padding: 0 10px !important;
  white-space: nowrap !important;
  border-radius: 2px !important;
}
#v-quake-viewport .eq-pop-val {
  font-family: var(--mono) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
#v-quake-viewport .eq-pop-cap,
#v-quake-viewport .eq-footer,
#v-quake-viewport .eq-famous-drawer-hint,
#v-quake-viewport .eq-famous-item-date {
  font-family: var(--mono) !important;
  font-size: 12px !important;
}
#v-quake-viewport .eq-famous-item-mag,
#v-quake-viewport .eq-famous-item-name {
  font-family: var(--sans) !important;
}

@font-face{font-family:'Outfit';font-style:normal;font-weight:800;font-display:swap;src:url('/assets/fonts/outfit-800.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'Noto Sans JP';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/noto-sans-jp-400.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'Noto Sans JP';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/noto-sans-jp-500.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'Noto Serif JP';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/noto-serif-jp-700.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'Noto Sans SC';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/noto-sans-sc-400.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'Noto Sans SC';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/noto-sans-sc-500.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'Noto Serif SC';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/noto-serif-sc-700.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'Noto Sans TC';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/noto-sans-tc-400.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'Noto Sans TC';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/noto-sans-tc-500.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'Noto Sans TC Punct';font-style:normal;font-weight:400;font-display:swap;unicode-range:U+3001-3002, U+FF01, U+FF0C, U+FF1A, U+FF1B, U+FF1F;src:url('/assets/fonts/noto-sans-tc-punct-400.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'Noto Sans TC Punct';font-style:normal;font-weight:500;font-display:swap;unicode-range:U+3001-3002, U+FF01, U+FF0C, U+FF1A, U+FF1B, U+FF1F;src:url('/assets/fonts/noto-sans-tc-punct-500.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'Noto Serif TC';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/noto-serif-tc-700.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'Noto Serif TC Punct';font-style:normal;font-weight:700;font-display:swap;unicode-range:U+3001-3002, U+FF01, U+FF0C, U+FF1A, U+FF1B, U+FF1F;src:url('/assets/fonts/noto-serif-tc-punct-700.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'Instrument Serif';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/instrument-serif-400.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url('/assets/fonts/instrument-serif-400i.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'Geist';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/geist-400.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'Geist';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/geist-500.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'Geist';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/geist-600.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/jetbrains-mono-400.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/jetbrains-mono-500.woff2?v=d09415fb') format('woff2')}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/jetbrains-mono-700.woff2?v=d09415fb') format('woff2')}

/* ---- 实心面板与无障碍对比度 ---- */
#v-quake-viewport .eq-famous-panel,
#v-quake-viewport .eq-menu-items {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.cab-panel .panel-card {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
#v-quake-viewport input[type="range"] { accent-color: var(--accent); }
#v-quake-viewport .eq-footer { color: var(--muted) !important; }
#v-quake-viewport .eq-mode-btn.is-active { color: var(--accent-ink) !important; background: color-mix(in srgb, var(--accent) 20%, transparent) !important; }
html[data-theme="dark"] #v-quake-viewport .eq-mode-btn.is-active { color: var(--accent-ink) !important; background: color-mix(in srgb, var(--accent) 22%, transparent) !important; }
