/* ===========================================================
   Link From China — 视觉体系
   宣纸底 / 水墨山形 / 朱砂印章 / 现代网格
   =========================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 墨与纸 */
  --ink:        #16130f;
  --ink-2:      #3b352c;
  --ink-3:      #6c6459;
  --paper:      #f5efe3;
  --paper-2:    #fffdf8;
  --paper-3:    #ece4d4;

  /* 朱砂 / 中国红 */
  --red:        #b83227;
  --red-2:      #d54832;
  --red-soft:   #f6ded9;

  /* 青瓷 / 竹青 */
  --celadon:    #4a7c68;
  --celadon-2:  #e4efe8;

  /* 鎏金 */
  --gold:       #b8903c;
  --gold-soft:  #f3e6c8;

  --line:       rgba(22, 19, 15, .12);
  --line-2:     rgba(22, 19, 15, .06);
  --card:       #fffdf8;
  --shadow-s:   0 1px 2px rgba(22,19,15,.06), 0 4px 14px rgba(22,19,15,.05);
  --shadow-m:   0 2px 6px rgba(22,19,15,.07), 0 18px 40px rgba(22,19,15,.09);
  --shadow-l:   0 8px 30px rgba(22,19,15,.12), 0 40px 80px rgba(22,19,15,.12);

  --radius:     14px;
  --radius-s:   9px;
  --radius-l:   22px;

  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Source Han Serif SC", Georgia, serif;
  --font-sans:  "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:  "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --max:        1200px;
  --ease:       cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --ink:        #f2ece0;
  --ink-2:      #cfc7b8;
  --ink-3:      #948b7b;
  --paper:      #131110;
  --paper-2:    #1c1a17;
  --paper-3:    #26221d;
  --red:        #e2604c;
  --red-2:      #f0785f;
  --red-soft:   #3a201c;
  --celadon:    #6fae95;
  --celadon-2:  #1b2723;
  --gold:       #d8ad5a;
  --gold-soft:  #33291a;
  --line:       rgba(242, 236, 224, .14);
  --line-2:     rgba(242, 236, 224, .07);
  --card:       #1c1a17;
  --shadow-s:   0 1px 2px rgba(0,0,0,.4);
  --shadow-m:   0 4px 18px rgba(0,0,0,.45);
  --shadow-l:   0 12px 40px rgba(0,0,0,.55);
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--red); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--red-2); }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); font-weight: 700; line-height: 1.32; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.02rem; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
strong { color: var(--ink); font-weight: 600; }
code, .mono { font-family: var(--font-mono); font-size: .88em; background: var(--paper-3); padding: .12em .45em; border-radius: 5px; color: var(--ink); }
hr { border: 0; height: 1px; background: var(--line); margin: 2.2rem 0; }

::selection { background: var(--red); color: #fff; }

/* 纸纹底 */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; opacity: .5;
  background-image:
    radial-gradient(rgba(22,19,15,.045) 1px, transparent 1px),
    radial-gradient(rgba(22,19,15,.03) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
}
[data-theme="dark"] body::before { opacity: .25; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px), radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px); }
body > * { position: relative; z-index: 1; }

/* ---------- 3. 布局 ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.narrow { max-width: 860px; }
section { padding-block: clamp(56px, 8vw, 100px); }
.section-alt { background: var(--paper-3); }

/* ---------- 4. 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red, blue)) {
  .site-header { background: var(--paper); }
}
.nav { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-seal {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  font-family: var(--font-serif); font-weight: 900; font-size: 22px;
  border-radius: 7px; line-height: 1;
  box-shadow: 0 3px 10px rgba(184,50,39,.32);
  letter-spacing: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.18; }
.brand-text b { font-family: var(--font-serif); font-size: 1.06rem; color: var(--ink); letter-spacing: .06em; }
.brand-text span { font-size: .68rem; color: var(--ink-3); letter-spacing: .22em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  font-size: .92rem; color: var(--ink-2); padding: 8px 13px; border-radius: 999px;
  font-weight: 500; position: relative; white-space: nowrap;
}
.nav-links a:hover { background: var(--paper-3); color: var(--ink); }
.nav-links a.active { color: var(--red); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%);
  width: 16px; height: 2px; background: var(--red); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  border-radius: 10px; cursor: pointer; transition: all .2s var(--ease);
}
.icon-btn:hover { background: var(--paper-3); color: var(--ink); border-color: var(--line); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }

/* 移动端抽屉 */
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
    padding: 12px 18px 20px; margin: 0;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all .25s var(--ease); box-shadow: var(--shadow-m);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 12px 10px; font-size: 1rem; border-radius: var(--radius-s); }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: var(--red-soft); }
}

/* ---------- 5. Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(60px, 9vw, 118px) clamp(48px, 7vw, 92px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .74rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--red); font-weight: 600; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--red); }

.hero h1 { margin-bottom: .5em; }
.hero h1 .accent { color: var(--red); position: relative; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .34em;
  background: var(--gold-soft); z-index: -1; border-radius: 3px;
}
[data-theme="dark"] .hero h1 .accent::after { opacity: .3; }
.hero p.lead { font-size: clamp(1rem, 1.6vw, 1.14rem); color: var(--ink-3); max-width: 54ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* 竖排书法标题 */
.vertical-title {
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--font-serif); font-weight: 900;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  letter-spacing: .18em; color: var(--ink);
  padding: 20px 12px; border-right: 1px solid var(--line);
  position: relative; align-self: stretch; display: flex; align-items: flex-start; justify-content: center;
}
.vertical-title .seal {
  writing-mode: horizontal-tb; font-size: .7rem; font-weight: 400;
  background: var(--red); color: #fff; padding: 3px 6px; border-radius: 4px;
  margin-top: 16px; letter-spacing: .1em;
}
@media (max-width: 860px) { .vertical-title { display: none; } }

/* 数据条 */
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(20px, 5vw, 56px); margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.15rem); color: var(--ink); line-height: 1.1; }
.stat b i { font-style: normal; font-size: .55em; color: var(--red); margin-left: 3px; }
.stat span { font-size: .8rem; color: var(--ink-3); letter-spacing: .06em; }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-size: .92rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all .22s var(--ease);
  font-family: var(--font-sans); line-height: 1.2;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 4px 16px rgba(184,50,39,.28); }
.btn-primary:hover { background: var(--red-2); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,50,39,.34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-3); color: var(--ink); border-color: var(--ink-3); }
.btn svg { width: 16px; height: 16px; }

/* ---------- 7. 区块标题 ---------- */
.sec-head { margin-bottom: clamp(30px, 4vw, 48px); max-width: 66ch; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .kicker {
  font-family: var(--font-serif); font-size: .82rem; letter-spacing: .3em;
  color: var(--red); margin-bottom: 10px; display: block;
}
.sec-head p { color: var(--ink-3); font-size: 1rem; margin-bottom: 0; }

/* ---------- 8. 卡片网格 ---------- */
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1000px) { .g-4 { grid-template-columns: repeat(2, 1fr); } .g-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } .g-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g-2, .g-3, .g-4, .g-6 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-s); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: color-mix(in srgb, var(--red) 28%, var(--line)); }

/* 入口卡片 */
.entry { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; }
.entry:hover { color: inherit; }
.entry-ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--celadon-2); color: var(--celadon); font-size: 22px;
  font-family: var(--font-serif); font-weight: 700; flex: 0 0 auto;
}
.entry-ico.red { background: var(--red-soft); color: var(--red); }
.entry-ico.gold { background: var(--gold-soft); color: var(--gold); }
.entry h3 { margin: 0; font-size: 1.14rem; }
.entry p { color: var(--ink-3); font-size: .9rem; margin: 0; line-height: 1.7; }
.entry .go { margin-top: auto; font-size: .82rem; color: var(--red); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.entry .go svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.entry:hover .go svg { transform: translateX(4px); }

/* 序号卡 */
.num-card { display: flex; gap: 16px; }
.num-card .num {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 900; color: var(--red);
  flex: 0 0 auto; line-height: 1.2; min-width: 2.2em;
}
.num-card h3 { margin-bottom: .3em; }
.num-card p { margin: 0; font-size: .92rem; color: var(--ink-3); }

/* ---------- 9. 组件 ---------- */
/* 印章 */
.seal {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border: 2px solid var(--red); color: var(--red);
  border-radius: 8px; font-family: var(--font-serif); font-weight: 900; font-size: 26px;
  transform: rotate(-6deg);
}
/* 云纹分隔 */
.cloud-divider { display: flex; align-items: center; gap: 14px; margin: clamp(36px, 5vw, 60px) 0; color: var(--ink-3); }
.cloud-divider::before, .cloud-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.cloud-divider svg { width: 40px; height: 16px; opacity: .55; }

/* 徽标 */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; letter-spacing: .04em;
  background: var(--paper-3); color: var(--ink-3); white-space: nowrap;
}
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.green { background: var(--celadon-2); color: var(--celadon); }
.badge.gold { background: var(--gold-soft); color: var(--gold); }
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }

/* 提示框 */
.callout {
  border-radius: var(--radius-s); padding: 16px 20px; margin: 20px 0;
  border-left: 3px solid var(--ink-3); background: var(--paper-3); font-size: .93rem;
}
.callout.warn { border-color: var(--red); background: var(--red-soft); }
.callout.warn strong { color: var(--red); }
.callout.tip { border-color: var(--celadon); background: var(--celadon-2); }
.callout.tip strong { color: var(--celadon); }
.callout p:last-child { margin-bottom: 0; }

/* 步骤时间线 */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li { position: relative; padding: 0 0 28px 54px; counter-increment: st; margin: 0; }
.steps li::before {
  content: counter(st); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; font-family: var(--font-serif); font-weight: 700; font-size: 15px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 12%, transparent);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 1px;
  background: repeating-linear-gradient(180deg, var(--line) 0 4px, transparent 4px 9px);
}
.steps h4 { margin-bottom: .3em; font-size: 1.05rem; }
.steps p, .steps ul { color: var(--ink-3); font-size: .92rem; margin-bottom: .5em; }

/* 表格 */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
thead th {
  text-align: left; font-family: var(--font-serif); font-size: .82rem; letter-spacing: .12em;
  color: var(--ink-3); font-weight: 600; text-transform: uppercase;
  padding: 14px 18px; background: var(--paper-3); border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--paper-3); }
tbody td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* 折叠面板 */
.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.acc + .acc { margin-top: 12px; }
.acc-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 17px 52px 17px 20px; font-family: var(--font-serif); font-size: 1.02rem; font-weight: 600;
  color: var(--ink); position: relative; line-height: 1.5;
}
.acc-q::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.acc.open .acc-q::after { transform: translateY(-30%) rotate(225deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-a-inner { padding: 0 20px 20px; font-size: .93rem; color: var(--ink-3); }
.acc-a-inner > :last-child { margin-bottom: 0; }

/* 标签页 */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tab {
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  font-size: .88rem; color: var(--ink-3); cursor: pointer; font-family: var(--font-sans);
  transition: all .2s var(--ease);
}
.tab:hover { color: var(--ink); border-color: var(--ink-3); }
.tab.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-theme="dark"] .tab.on { background: var(--red); border-color: var(--red); color: #fff; }
.panel { display: none; animation: fade .35s var(--ease); }
.panel.on { display: block; }

/* 清单 */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 13px; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 10px;
  background: var(--card); cursor: pointer; transition: all .2s var(--ease); font-size: .94rem;
}
.checklist li:hover { border-color: var(--red); }
.checklist li .box {
  width: 21px; height: 21px; flex: 0 0 21px; margin-top: 3px; border: 1.5px solid var(--ink-3);
  border-radius: 5px; display: grid; place-items: center; transition: all .2s var(--ease);
}
.checklist li .box svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; }
.checklist li.done .box { background: var(--celadon); border-color: var(--celadon); }
.checklist li.done .box svg { opacity: 1; }
.checklist li.done .txt { color: var(--ink-3); text-decoration: line-through; }
.checklist li .txt b { display: block; font-weight: 600; color: var(--ink); font-size: .96rem; }
.checklist li.done .txt b { color: var(--ink-3); }
.checklist li .txt span { font-size: .85rem; color: var(--ink-3); }
.check-reset { background: none; border: 0; color: var(--ink-3); font-size: .82rem; cursor: pointer; text-decoration: underline; margin-top: 8px; }

/* 短语卡 */
.phrase { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); }
.phrase + .phrase { margin-top: 9px; }
.phrase .zh { font-family: var(--font-serif); font-size: 1.02rem; color: var(--ink); font-weight: 600; }
.phrase .py { font-size: .78rem; color: var(--ink-3); letter-spacing: .04em; }
.phrase .en { font-size: .84rem; color: var(--ink-3); }
.copy-btn { background: none; border: 1px solid var(--line); border-radius: 7px; padding: 5px 11px; font-size: .76rem; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.copy-btn:hover { color: var(--red); border-color: var(--red); }

/* App 条目 */
.app-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.app-item:last-child { border-bottom: 0; }
.app-logo {
  width: 54px; height: 54px; flex: 0 0 54px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 900; font-size: 20px; color: #fff; box-shadow: var(--shadow-s);
}
.app-body { flex: 1; min-width: 0; }
.app-body h3 { margin: 0 0 4px; font-size: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.app-body h3 small { font-family: var(--font-sans); font-weight: 400; font-size: .8rem; color: var(--ink-3); letter-spacing: .04em; }
.app-body p { margin: 0 0 10px; font-size: .92rem; color: var(--ink-3); }
.kv { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--ink-3); }
.kv div { display: flex; gap: 6px; }
.kv b { color: var(--ink); font-weight: 600; }

/* 城市卡 */
.city {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--card); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.city:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.city-art { height: 132px; position: relative; overflow: hidden; }
.city-art svg { width: 100%; height: 100%; }
.city-art .tag {
  position: absolute; left: 14px; bottom: 12px; font-family: var(--font-serif);
  font-size: 1.7rem; font-weight: 900; color: #fff; letter-spacing: .08em;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.city-art .en { position: absolute; right: 14px; bottom: 16px; font-size: .72rem; letter-spacing: .18em; color: rgba(255,255,255,.85); text-transform: uppercase; }
.city-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.city-body p { font-size: .89rem; color: var(--ink-3); margin: 0; }
.city-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }

/* 场景对比 */
.scene { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.scene:last-child { border-bottom: 0; }
.scene .who { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 900; color: var(--red); text-align: center; }
@media (max-width: 520px) { .scene { grid-template-columns: 62px 1fr; gap: 10px; } .scene .who { font-size: 1.05rem; } }

/* 跑马灯 */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; background: var(--paper-3); }
.marquee-track { display: flex; gap: 42px; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-serif); font-size: 1.05rem; color: var(--ink-3); letter-spacing: .1em; white-space: nowrap; display: flex; align-items: center; gap: 42px; }
.marquee span::after { content: "◈"; color: var(--red); font-size: .7rem; }

/* ---------- 10. 页脚 ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.62); margin-top: 40px; padding-block: 54px 34px; position: relative; overflow: hidden; }
[data-theme="dark"] .site-footer { background: #0d0c0b; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; letter-spacing: .08em; }
.site-footer a { color: rgba(255,255,255,.62); }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.foot-list li { margin-bottom: 8px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .78rem; }
.foot-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.foot-brand .brand-seal { background: var(--red-2); }

/* 回到顶部 */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; border: 0; cursor: pointer;
  box-shadow: var(--shadow-m); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; }

/* 阅读进度条 */
.progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--red); z-index: 70; width: 0; transition: width .1s linear; }

/* ---------- 11. 动效 ---------- */
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 12. 页面内小标题 ---------- */
.sub-h { display: flex; align-items: center; gap: 12px; margin: 44px 0 18px; }
.sub-h .idx { font-family: var(--font-serif); font-size: .8rem; letter-spacing: .2em; color: var(--red); }
.sub-h h3 { margin: 0; }
.sub-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.side-col { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 36px; align-items: start; }
@media (max-width: 940px) { .side-col { grid-template-columns: 1fr; } }
.toc { position: sticky; top: 92px; }
@media (max-width: 940px) { .toc { position: static; } }
.toc-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.toc-list a { display: block; padding: 7px 12px; border-left: 2px solid var(--line); color: var(--ink-3); }
.toc-list a:hover, .toc-list a.on { color: var(--red); border-color: var(--red); background: var(--paper-3); }

/* 面包屑 */
.crumb { font-size: .8rem; color: var(--ink-3); padding-top: 26px; }
.crumb a { color: var(--ink-3); }
.crumb span { margin: 0 7px; opacity: .5; }

/* 页头横幅 */
.page-head { position: relative; padding-block: clamp(44px, 6vw, 74px) clamp(30px, 4vw, 46px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-3), transparent); }
.page-head h1 { margin-bottom: .35em; }
.page-head .lead { color: var(--ink-3); max-width: 62ch; margin: 0; font-size: 1rem; }
.page-head .badge-row { margin-top: 18px; }

/* ---------- 13. 双语机制 ---------- */
[hidden] { display: none !important; }

/* JS 执行前就按语言隐藏，避免闪烁
   ko / ja 复用英文节点，head 脚本会先把 html lang 置为 en */
html[lang="en"] [data-lang="zh"], html[lang="ko"] [data-lang="zh"], html[lang="ja"] [data-lang="zh"] { display: none !important; }
html[lang="zh"] [data-lang="en"], html[lang="zh-CN"] [data-lang="en"] { display: none !important; }

/* 日文 / 韩文字体栈
   （Noto Sans/Serif SC 已含假名，韩文需 KR 字族兜底） */
html[lang="ja"] {
  --font-serif: "Noto Serif JP", "Noto Serif SC", "Hiragino Mincho ProN", "Yu Mincho", "Songti SC", Georgia, serif;
  --font-sans:  "Noto Sans JP", "Noto Sans SC", "Hiragino Sans", "Yu Gothic", "PingFang SC", -apple-system, sans-serif;
}
html[lang="ko"] {
  --font-serif: "Noto Serif KR", "Noto Serif SC", "Apple SD Gothic Neo", "Malgun Gothic", "Songti SC", Georgia, serif;
  --font-sans:  "Noto Sans KR", "Noto Sans SC", "Apple SD Gothic Neo", "Malgun Gothic", "PingFang SC", -apple-system, sans-serif;
}
/* 韩文按词断行；日文保持默认的「可在任意文字间断行」 */
html[lang="ko"] body { word-break: keep-all; }
html[lang="ja"] body, html[lang="ko"] body { line-height: 1.85; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 1px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper-3);
}
.lang-btn {
  border: 0; background: none; cursor: pointer; border-radius: 999px;
  padding: 5px 12px; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-3); font-family: var(--font-sans); line-height: 1.2;
  transition: all .2s var(--ease);
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.on { background: var(--red); color: #fff; }
[data-theme="dark"] .lang-btn.on { background: var(--red-2); color: #fff; }

/* 英文正文里的中文词与拼音 */
.zh-t { font-family: var(--font-serif); font-weight: 700; color: var(--ink); white-space: nowrap; }
.pinyin { font-size: .82em; color: var(--ink-3); font-style: normal; letter-spacing: .01em; }

/* ---------- 14. 落地 72 小时时间线 ---------- */
.h72 { list-style: none; margin: 0; padding: 0; }
.h72 li {
  display: grid; grid-template-columns: 132px 1fr; gap: clamp(14px, 2.5vw, 26px);
  padding: 20px 0; border-top: 1px solid var(--line); align-items: start;
}
.h72 li:last-child { border-bottom: 1px solid var(--line); }
.h72 .when {
  font-family: var(--font-serif); font-weight: 900; font-size: 1.02rem; color: var(--red);
  letter-spacing: .02em; line-height: 1.3;
}
.h72 .when small { display: block; font-family: var(--font-sans); font-weight: 400; font-size: .74rem; color: var(--ink-3); letter-spacing: .06em; margin-top: 3px; }
.h72 h4 { margin: 0 0 .35em; font-size: 1.05rem; }
.h72 p { margin: 0; font-size: .92rem; color: var(--ink-3); }
@media (max-width: 620px) {
  .h72 li { grid-template-columns: 1fr; gap: 6px; }
  .h72 .when small { display: inline; margin-left: 8px; }
}

/* ---------- 15. 误区卡 ---------- */
.gotcha {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--card); height: 100%;
}
.gotcha .mark {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); font-family: var(--font-serif);
  font-weight: 900; font-size: 1rem;
}
.gotcha .wrong { display: block; font-size: .88rem; color: var(--ink-3); text-decoration: line-through; margin-bottom: 4px; }
.gotcha .right { display: block; font-size: .92rem; color: var(--ink-2); }
.gotcha .right b { color: var(--celadon); }

/* ---------- 16. 速查表 / 打印 ---------- */
.sheet { background: var(--card); }
.sheet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .sheet-grid { grid-template-columns: 1fr; } }
.sheet-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--card); }
.sheet-box h3 { font-size: 1.05rem; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.sheet-box h3 .n { width: 24px; height: 24px; border-radius: 6px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: .8rem; font-family: var(--font-serif); }
.sheet-list { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.sheet-list li { padding: 7px 0; border-bottom: 1px dotted var(--line); display: flex; justify-content: space-between; gap: 14px; }
.sheet-list li:last-child { border-bottom: 0; }
.sheet-list li span:last-child { color: var(--ink-3); text-align: right; }
.big-zh { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); }

@media print {
  .site-header, .site-footer, .to-top, .progress, .no-print, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
  .wrap { max-width: none; padding: 0; }
  section { padding-block: 14px; }
  .card, .city, .acc, .sheet-box, .table-scroll, .h72 li { break-inside: avoid; box-shadow: none !important; border-color: #ccc !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .acc-a { max-height: none !important; }
  .acc-q::after { display: none; }
  h1 { font-size: 24pt; } h2 { font-size: 17pt; } h3 { font-size: 13pt; }
  .hero { padding-block: 0 12px; }
  .hero-bg { display: none; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* 速查表填空行 */
.fill {
  border: 0; border-bottom: 1px dashed var(--ink-3); background: transparent;
  font-family: inherit; font-size: .92rem; color: var(--ink); min-height: 26px;
  padding: 2px 0; outline: none; display: block; width: 100%;
}
.fill:focus { border-bottom-color: var(--red); }
@media print { .fill { border-bottom: 1px solid #999; } }
