/* =============================================================================
 * 00-tokens.css — 合并自原 00-tokens.css（勿拆分回多个文件）
 * ============================================================================= */
/* =============================================================================
 *  00-tokens.css — 设计变量 + 地区配色主题
 *  改配色只改这个文件。每个语种的 theme 在 assets/js/00-config.js 里指定。
 * ========================================================================== */

:root {
  /* ---------- 尺寸 ---------- */
  --maxw: 1200px;
  --maxw-text: 760px;      /* 正文最佳阅读宽度 */
  --gutter: 20px;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow-s: 0 1px 3px rgba(20, 16, 12, .08);
  --shadow: 0 6px 24px rgba(20, 16, 12, .10);
  --shadow-l: 0 18px 48px rgba(20, 16, 12, .16);

  /* ---------- 字体（系统字体，零请求、秒开；各语种在下面单独覆盖） ---------- */
  --font-display: "Georgia", "Songti SC", "Noto Serif SC", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, Arial, sans-serif;
  --fs-base: 17px;
  --lh-base: 1.75;

  /* ---------- 默认配色（朱红 · 宣纸）—— 英文/简体中文 ---------- */
  --paper:      #fbf7f0;
  --paper-2:    #ffffff;
  --paper-3:    #f3ece2;
  --ink:        #1e1a16;
  --ink-2:      #4a423a;
  --muted:      #7c7166;
  --line:       #e5dbcd;
  --accent:     #c0392b;
  --accent-2:   #8e2b20;
  --accent-soft:#fbeae6;
  --gold:       #b98b2f;
  --ok:         #2f7a4f;
  --warn:       #b3701a;
  --danger:     #b3261e;
  --header-bg:  rgba(251, 247, 240, .92);
  --hero-from:  #1b1512;
  --hero-to:    #43251c;
  --hero-ink:   #fdf8f2;
  --pattern:    rgba(192, 57, 43, .07);
}

/* ---------------------------------------------------------------- 水墨 · 繁中 */
html[data-theme="ink"] {
  --paper: #f7f7f5; --paper-2: #ffffff; --paper-3: #eeeeec;
  --ink: #17202a; --ink-2: #3c4a58; --muted: #6d7a86; --line: #dfe3e6;
  --accent: #2b5876; --accent-2: #1d3f57; --accent-soft: #e8f0f6; --gold: #8a7a55;
  --header-bg: rgba(247, 247, 245, .92);
  --hero-from: #12202c; --hero-to: #2b5876; --hero-ink: #f4f8fa;
  --pattern: rgba(43, 88, 118, .08);
  --font-display: "Georgia", "Songti TC", "Noto Serif TC", serif;
  --font-body: -apple-system, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

/* ---------------------------------------------------------------- 阿拉伯 · 青金 (RTL) */
html[data-theme="arab"] {
  --paper: #fbfaf6; --paper-2: #ffffff; --paper-3: #f1efe7;
  --ink: #12262a; --ink-2: #355055; --muted: #6b7f82; --line: #dde5e2;
  --accent: #0e6b6b; --accent-2: #0a4f4f; --accent-soft: #e3f2ef; --gold: #c39533;
  --header-bg: rgba(251, 250, 246, .94);
  --hero-from: #06272a; --hero-to: #0e6b6b; --hero-ink: #f7fbf9;
  --pattern: rgba(14, 107, 107, .09);
  --font-display: "Noto Naskh Arabic", "Amiri", "Traditional Arabic", Georgia, serif;
  --font-body: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --fs-base: 18px; --lh-base: 1.9;
}

/* ---------------------------------------------------------------- 欧洲 · 靛蓝 */
html[data-theme="europe"] {
  --paper: #fbfbfd; --paper-2: #ffffff; --paper-3: #f1f2f7;
  --ink: #191c25; --ink-2: #41465a; --muted: #6f7488; --line: #e0e2ec;
  --accent: #3c4ecb; --accent-2: #2a389c; --accent-soft: #eceefb; --gold: #a98a3c;
  --header-bg: rgba(251, 251, 253, .93);
  --hero-from: #141833; --hero-to: #3c4ecb; --hero-ink: #f7f8fd;
  --pattern: rgba(60, 78, 203, .07);
}

/* ---------------------------------------------------------------- 拉美/南欧 · 赤陶 */
html[data-theme="terra"] {
  --paper: #fdf8f3; --paper-2: #ffffff; --paper-3: #f7ece2;
  --ink: #241a12; --ink-2: #4e3b2c; --muted: #7f6a56; --line: #ecdcd0;
  --accent: #d1613c; --accent-2: #a74526; --accent-soft: #fceee7; --gold: #c79a3a;
  --header-bg: rgba(253, 248, 243, .93);
  --hero-from: #2b1a12; --hero-to: #a74526; --hero-ink: #fdf6f1;
  --pattern: rgba(209, 97, 60, .08);
}

/* ---------------------------------------------------------------- 东南亚 · 翡翠 */
html[data-theme="jade"] {
  --paper: #f9fbf7; --paper-2: #ffffff; --paper-3: #eef3ea;
  --ink: #14201a; --ink-2: #38493d; --muted: #697a6c; --line: #dce5d8;
  --accent: #1f7a52; --accent-2: #17593c; --accent-soft: #e6f3ea; --gold: #c0912e;
  --header-bg: rgba(249, 251, 247, .93);
  --hero-from: #0f241a; --hero-to: #1f7a52; --hero-ink: #f5fbf7;
  --pattern: rgba(31, 122, 82, .08);
  --font-body: -apple-system, "Noto Sans Thai", "Noto Sans", "Segoe UI", sans-serif;
}

/* ---------------------------------------------------------------- 俄区 · 冷霜 */
html[data-theme="frost"] {
  --paper: #fafbfd; --paper-2: #ffffff; --paper-3: #eef1f6;
  --ink: #151a22; --ink-2: #3a4353; --muted: #6a7385; --line: #dde2ec;
  --accent: #3358a8; --accent-2: #24407d; --accent-soft: #e9eef9; --gold: #a4863a;
  --header-bg: rgba(250, 251, 253, .93);
  --hero-from: #101725; --hero-to: #3358a8; --hero-ink: #f6f8fd;
  --pattern: rgba(51, 88, 168, .08);
}

/* ---------------------------------------------------------------- 日韩 · 樱墨 */
html[data-theme="sakura"] {
  --paper: #fdfafb; --paper-2: #ffffff; --paper-3: #f6eef1;
  --ink: #1d1719; --ink-2: #4a3d42; --muted: #7d6d73; --line: #ecdfe3;
  --accent: #b03a5b; --accent-2: #87284a; --accent-soft: #fbebf0; --gold: #b8913c;
  --header-bg: rgba(253, 250, 251, .93);
  --hero-from: #241318; --hero-to: #87284a; --hero-ink: #fdf7f9;
  --pattern: rgba(176, 58, 91, .08);
  --font-body: -apple-system, "Hiragino Sans", "Yu Gothic", "Noto Sans JP",
               "Malgun Gothic", "Noto Sans KR", sans-serif;
}

/* ---------------------------------------------------------------- 南亚 · 藏红 */
html[data-theme="saffron"] {
  --paper: #fdfbf5; --paper-2: #ffffff; --paper-3: #f6efe0;
  --ink: #221a10; --ink-2: #4a3a24; --muted: #7b6a4e; --line: #ecdfc8;
  --accent: #e06b1f; --accent-2: #b34e12; --accent-soft: #fceedd; --gold: #c8a02e;
  --header-bg: rgba(253, 251, 245, .93);
  --hero-from: #2a1a0c; --hero-to: #b34e12; --hero-ink: #fdf8f0;
  --pattern: rgba(224, 107, 31, .09);
}

/* 深色模式跟随系统（可在 99-main.js 里手动切换 html[data-mode="dark"]） */
html[data-mode="dark"] {
  --paper: #14130f; --paper-2: #1c1a16; --paper-3: #262220;
  --ink: #f2ece4; --ink-2: #cfc6bb; --muted: #9a9086; --line: #35302a;
  --accent: #e0685a; --accent-2: #c0392b; --accent-soft: #2c1e1b; --gold: #d9ab45;
  --header-bg: rgba(20, 19, 15, .94);
  --hero-from: #0c0b09; --hero-to: #2a1512; --hero-ink: #f7f1e9;
  color-scheme: dark;
}

/* =============================================================================
 * 01-base.css — 合并自原 01-base.css（勿拆分回多个文件）
 * ============================================================================= */
/* =============================================================================
 *  01-base.css — reset + 排版基础
 * ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* RTL：阿拉伯语等自动镜像（逻辑属性已在各组件使用，这里补少数例外） */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .num, html[dir="rtl"] .code { direction: ltr; display: inline-block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(28px, 4.4vw, 46px); }
h2 { font-size: clamp(22px, 2.8vw, 31px); }
h3 { font-size: clamp(19px, 2.1vw, 23px); }
h4 { font-size: 17px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; height: auto; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.35em; }
li { margin-bottom: .4em; }

strong { color: var(--ink); font-weight: 700; }
em { font-style: normal; color: var(--accent-2); font-weight: 600; }

hr {
  border: 0; border-top: 1px solid var(--line);
  margin: 32px 0;
}

code, .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  background: var(--paper-3);
  padding: .12em .4em;
  border-radius: 5px;
}

blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-inline-start: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--ink-2);
}

/* 中文/日文/韩文正文的标点与断行优化 */
:lang(zh), :lang(ja), :lang(ko) { text-spacing-trim: space-first; }

/* 焦点可见（无障碍） */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* 隐藏但对读屏可见 */
.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;
}

/* 数字/英文表格 */
table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95em; }
th, td { border: 1px solid var(--line); padding: 9px 12px; text-align: start; vertical-align: top; }
th { background: var(--paper-3); font-weight: 700; }

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 跳转到正文（键盘/读屏用户） */
/* 无障碍：跳转到正文。离屏用标准「视觉隐藏」而不是 left:-9999px——
   后者在 RTL（阿语/希伯来语）下会把文档撑宽 9999px，导致整站横向溢出。 */
.skip-link{position:absolute;width:1px;height:1px;margin:0;padding:0;border:0;overflow:hidden;
  clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;background:var(--accent,#C8102E);color:#fff;font-weight:600}
.skip-link:focus{position:fixed;inset-block-start:8px;inset-inline-start:8px;width:auto;height:auto;
  overflow:visible;clip:auto;clip-path:none;z-index:200;padding:10px 16px;border-radius:8px;outline:2px solid #fff;outline-offset:-4px}

/* =============================================================================
 * 02-layout.css — 合并自原 02-layout.css（勿拆分回多个文件）
 * ============================================================================= */
/* =============================================================================
 *  02-layout.css — 页面骨架：头部 / 导航 / 主栅格 / 侧栏 / 页脚
 * ========================================================================== */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------------ 顶部导航 */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 14px;
  min-height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  box-shadow: var(--shadow-s);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }
.brand-sub { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; }
.nav-link {
  padding: 8px 11px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-2); white-space: nowrap;
}
.nav-link:hover { background: var(--paper-3); text-decoration: none; color: var(--ink); }
.nav-link.is-active { background: var(--accent); color: #fff; }
.nav-more { position: relative; }
.nav-more-menu {
  display: none; position: absolute; inset-inline-end: 0; top: 100%;
  min-width: 210px; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; z-index: 70;
}
.nav-more.open .nav-more-menu { display: block; }
.nav-more-menu a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2); }
.nav-more-menu a:hover { background: var(--paper-3); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper-2); color: var(--ink-2); cursor: pointer;
  display: grid; place-items: center; font-size: 15px;
}
.icon-btn:hover { background: var(--paper-3); color: var(--ink); }

/* 语言选择下拉 */
.lang-select {
  position: relative;
}
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-2);
  font-size: 14px; cursor: pointer; font-family: inherit;
}
.lang-btn:hover { background: var(--paper-3); }
.lang-panel {
  display: none; position: absolute; inset-inline-end: 0; top: calc(100% + 6px);
  width: 260px; max-height: 62vh; overflow: auto;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-l); padding: 8px; z-index: 80;
}
.lang-select.open .lang-panel { display: block; }
.lang-search {
  width: 100%; height: 34px; padding: 0 10px; margin-bottom: 6px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  color: var(--ink); font-family: inherit; font-size: 14px;
}
.lang-item {
  display: flex; justify-content: space-between; gap: 8px; width: 100%;
  padding: 8px 10px; border: 0; background: none; border-radius: 8px;
  font-size: 14px; color: var(--ink-2); cursor: pointer; text-align: start;
  font-family: inherit;
}
.lang-item:hover { background: var(--paper-3); }
.lang-item.is-current { color: var(--accent-2); font-weight: 700; }
.lang-item small { color: var(--muted); }
.lang-item > span { display: inline-flex; align-items: center; gap: 6px; }
/* 正文尚未翻译的语种：一个低调的 EN 角标 */
.lang-tag {
  font-style: normal; font-size: 10px; line-height: 1.6; letter-spacing: .02em;
  padding: 0 6px; border-radius: 999px; white-space: nowrap;
  background: var(--paper-3); color: var(--muted); border: 1px solid var(--line);
}

/* 移动端汉堡 */
.menu-toggle { display: none; }

/* -------------------------------------------------------------------- 主体栅格 */
.page { padding-block: 26px 60px; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}
.layout.has-side { grid-template-columns: minmax(0, 1fr) 300px; }

.article { min-width: 0; }
.article > .text-col { max-width: var(--maxw-text); }

.sidebar { display: none; }
.layout.has-side .sidebar { display: block; }
.side-sticky { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; }

/* -------------------------------------------------------------------- 页脚 */
.site-footer {
  margin-top: 50px; padding-block: 40px 30px;
  background: var(--paper-3); border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer-title { font-family: var(--font-display); font-size: 15px; margin-bottom: 10px; color: var(--ink); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 7px; font-size: 14.5px; }
.footer-grid a { color: var(--ink-2); }
.footer-bottom {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px 20px;
  justify-content: space-between;
}
.footer-contact a { color: var(--accent-2); text-decoration: none; font-weight: 600; }
.footer-contact a:hover { text-decoration: underline; }

/* 返回顶部按钮 */
.to-top {
  position: fixed; inset-inline-end: 18px; bottom: 84px; z-index: 55;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper-2); color: var(--ink-2); box-shadow: var(--shadow);
  cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* 未翻译提示条 */
.tr-notice {
  display: none; margin-bottom: 20px; padding: 10px 14px;
  background: var(--accent-soft); border: 1px dashed var(--accent);
  border-radius: var(--radius-s); font-size: 14px; color: var(--ink-2);
}
.tr-notice.show { display: block; }

/* =============================================================================
 * 03-components.css — 合并自原 03-components.css（勿拆分回多个文件）
 * ============================================================================= */
/* =============================================================================
 *  03-components.css — 可复用组件：按钮/卡片/标签/步骤/时间线/提示/表格/TOC
 * ========================================================================== */

/* ------------------------------------------------------------------ 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; font-family: inherit;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.btn-primary:hover { background: var(--accent-2); }
.btn-outline { background: var(--paper-2); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--paper-3); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--paper-3); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }

/* ------------------------------------------------------------------ 英雄区 */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--hero-from), var(--hero-to));
  color: var(--hero-ink);
  border-radius: var(--radius-l);
  padding: clamp(30px, 5vw, 62px) clamp(22px, 4vw, 52px);
  margin-bottom: 30px;
}
.hero::after {
  /* 中式回纹底纹（纯 CSS，无图片） */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    repeating-linear-gradient(45deg, var(--pattern) 0 2px, transparent 2px 16px),
    repeating-linear-gradient(-45deg, var(--pattern) 0 2px, transparent 2px 16px);
  mask-image: radial-gradient(circle at 80% 20%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 80% 20%, #000 0%, transparent 62%);
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero-kicker {
  display: inline-block; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  margin-bottom: 16px; opacity: .95;
}
.hero h1 { color: #fff; margin-bottom: 14px; font-size: clamp(30px, 5.2vw, 54px); }
.hero p.lead { font-size: clamp(16px, 2.1vw, 19px); opacity: .93; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-primary { background: #fff; color: var(--hero-to); }
.hero .btn-primary:hover { background: #f2ece4; }
.hero .btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,.12); }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 26px; margin-top: 28px;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.22);
}
.hero-stats div b { display: block; font-size: 22px; font-family: var(--font-display); }
.hero-stats div span { font-size: 13px; opacity: .85; }

/* ------------------------------------------------------------------ 卡片网格 */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  position: relative; display: block;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); font-size: 22px; margin-bottom: 12px;
}
.card h3 { font-size: 17.5px; margin-bottom: 6px; color: var(--ink); }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; }
.card .card-more { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--accent-2); }
.badge-hot {
  position: absolute; top: 12px; inset-inline-end: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 999px;
}

/* ------------------------------------------------------------------ 区块标题 */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; }
.sec-head .sec-sub { font-size: 14.5px; color: var(--muted); }

.section { margin-block: 34px; }
.section > h2 { position: relative; padding-bottom: 10px; margin-bottom: 16px; }
.section > h2::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 52px; height: 3px; border-radius: 3px; background: var(--accent);
}

/* ------------------------------------------------------------------ 提示框 */
.note, .tip, .warn, .danger-box {
  border-radius: var(--radius-s); padding: 14px 16px; margin: 18px 0;
  font-size: 15px; border: 1px solid var(--line); background: var(--paper-2);
}
.note { border-inline-start: 4px solid var(--accent); background: var(--accent-soft); }
.tip  { border-inline-start: 4px solid var(--ok); background: rgba(47,122,79,.08); }
.warn { border-inline-start: 4px solid var(--warn); background: rgba(179,112,26,.09); }
.danger-box { border-inline-start: 4px solid var(--danger); background: rgba(179,38,30,.08); }
.note b, .tip b, .warn b, .danger-box b { display: block; margin-bottom: 4px; }

/* ------------------------------------------------------------------ 步骤 / 时间线 */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps > li {
  position: relative; padding-inline-start: 46px; margin-bottom: 18px; counter-increment: st;
}
.steps > li::before {
  content: counter(st);
  position: absolute; inset-inline-start: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  display: grid; place-items: center; font-family: var(--font-body);
}
.steps > li b { display: block; font-size: 16px; margin-bottom: 2px; }
.steps > li p { margin: 0; color: var(--ink-2); font-size: 15px; }

.timeline { list-style: none; margin: 0; padding-inline-start: 22px; border-inline-start: 2px solid var(--line); }
.timeline > li { position: relative; margin-bottom: 16px; }
.timeline > li::before {
  content: ""; position: absolute; inset-inline-start: -29px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  border: 2px solid var(--paper);
}
.timeline > li b { display: block; }

/* ------------------------------------------------------------------ 标签 / 徽标 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.chip {
  font-size: 13px; padding: 5px 11px; border-radius: 999px;
  background: var(--paper-3); color: var(--ink-2); border: 1px solid var(--line);
}
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); font-weight: 600; }

/* ------------------------------------------------------------------ 要点清单 */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-inline-start: 28px; margin-bottom: 10px; }
.checklist li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 0;
  color: var(--ok); font-weight: 700;
}
.checklist li.bad::before { content: "✕"; color: var(--danger); }

/* ------------------------------------------------------------------ 数据表 / 定义表 */
.kv { width: 100%; }
.kv th { width: 33%; }

/* ------------------------------------------------------------------ 折叠 FAQ */
details.faq {
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--paper-2); margin-bottom: 10px; overflow: hidden;
}
details.faq > summary {
  cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; font-size: 16px;
  list-style: none; display: block; position: relative;
  min-width: 0; overflow-wrap: anywhere;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
details.faq[open] > summary::after { content: "–"; }
/* FAQ 答案体
 * 🔴 站点实际用的是 <div class="faq-body">，不是 <p>。
 *    原来只有 `details.faq > p` 一条规则 → 对 .faq-body 完全不生效：
 *    内边距为 0（文字贴卡片左边缘）、字号继承 body 的 17px、
 *    且缺 overflow-wrap 保护 → 长 URL / 长单词会撑破卡片边界。
 *    这里补上与 >p 等价的规则，并把选择器放宽到两种结构都覆盖。 */
details.faq > p,
details.faq > .faq-body {
  padding: 0 16px 14px;
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
details.faq > .faq-body > *:first-child { margin-top: 0; }
details.faq > .faq-body > *:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ 目录 TOC */
.toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); padding: 16px 18px; }
.toc h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-family: var(--font-body); }
.toc ol { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.toc ol li { margin-bottom: 7px; }
.toc a { color: var(--ink-2); display: block; padding-inline-start: 10px; border-inline-start: 2px solid transparent; }
.toc a:hover, .toc a.active { color: var(--accent-2); border-inline-start-color: var(--accent); text-decoration: none; }

/* ------------------------------------------------------------------ 分享条 */
.share-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.share-bar .share-label { font-size: 13.5px; color: var(--muted); margin-inline-end: 4px; }

/* ------------------------------------------------------------------ 面包屑 */
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin-inline: 6px; opacity: .6; }

/* ------------------------------------------------------------------ 更新时间 */
.meta-line { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; }

/* ------------------------------------------------------------------ 联盟推荐卡 */
.aff-card {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  background: var(--paper-2); border: 1px dashed var(--accent);
  border-radius: var(--radius-s); padding: 12px 14px; margin: 14px 0; font-size: 14.5px;
}
.aff-card b { font-size: 15px; }
.aff-card p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.aff-disclose { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.aff-disclose:empty { display: none; }

/* =============================================================================
 * 04-modules.css — 合并自原 04-modules.css（勿拆分回多个文件）
 * ============================================================================= */
/* =============================================================================
 *  04-modules.css — 内容模块专用样式（首页路径卡、亮点、词汇表、路线卡等）
 * ========================================================================== */

/* ------------------------------------------------------- 首页：三条「从哪里开始」 */
.paths { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.path {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 22px;
  background: var(--paper-2); border: 1px solid var(--line);
}
.path::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.path h3 { font-size: 18px; margin-bottom: 6px; }
.path p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.path .path-emoji { font-size: 26px; }

/* ------------------------------------------------------- 首页：为什么看这个站 */
.why { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.why-item { background: var(--paper-3); border-radius: var(--radius); padding: 18px; }
.why-item b { display: block; font-size: 16px; margin-bottom: 4px; font-family: var(--font-display); }
.why-item p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.why-num {
  font-family: var(--font-display); font-size: 30px; color: var(--accent);
  opacity: .35; display: block; line-height: 1; margin-bottom: 6px;
}

/* ------------------------------------------------------- 首页：精选大卡 */
.featured {
  display: grid; gap: 0; grid-template-columns: 1fr;
  border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line);
  background: var(--paper-2);
}
.featured .f-text { padding: 26px; }
.featured .f-visual {
  min-height: 190px; display: grid; place-items: center; font-size: 60px;
  background: linear-gradient(140deg, var(--accent-soft), var(--paper-3));
}
.featured h3 { font-size: 20px; }
.featured ul { margin: 12px 0 16px; }

/* ------------------------------------------------------- 亮点数字条 */
.stat-strip {
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--paper-3); border-radius: var(--radius); padding: 18px; margin: 24px 0;
}
.stat-strip div b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--accent-2); }
.stat-strip div span { font-size: 13.5px; color: var(--muted); }

/* ------------------------------------------------------- 签证：资格速查卡 */
.elig {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 18px 0;
}
.elig-item { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px; background: var(--paper-2); }
.elig-item .q { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.elig-item .a { font-size: 14px; color: var(--ink-2); }

/* ------------------------------------------------------- 流程条（出发前→回国） */
.flow {
  display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 22px 0 8px;
}
.flow-step {
  text-align: center; padding: 14px 10px; border-radius: var(--radius-s);
  background: var(--paper-2); border: 1px solid var(--line); font-size: 14px;
}
.flow-step b { display: block; font-size: 15px; font-family: var(--font-display); }
.flow-step .fnum {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; margin-bottom: 6px;
}

/* ------------------------------------------------------- 词汇表 */
.glossary { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gloss-item { border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.gloss-item b { font-size: 16px; }
.gloss-item .py { color: var(--accent-2); font-size: 13.5px; margin-inline-start: 6px; }
.gloss-item p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }

/* ------------------------------------------------------- 路线卡 */
.route {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-2); padding: 20px; margin-bottom: 16px;
}
.route-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: space-between; }
.route-head h3 { margin: 0; font-size: 19px; }
.route-head .days { font-size: 13px; color: #fff; background: var(--accent); padding: 3px 10px; border-radius: 999px; }
.route ol { margin: 12px 0 0; padding-inline-start: 20px; font-size: 15px; }
.route ol li { margin-bottom: 6px; }

/* ------------------------------------------------------- 民族卡 */
.ethnic-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.ethnic-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.ethnic-card h3 { font-size: 17px; margin-bottom: 2px; }
.ethnic-card .where { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.ethnic-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* ------------------------------------------------------- 目的地卡 */
.dest-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.dest-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dest-card .dest-emoji {
  height: 96px; display: grid; place-items: center; font-size: 40px;
  background: linear-gradient(135deg, var(--accent-soft), var(--paper-3));
}
.dest-card .dest-body { padding: 16px; }
.dest-card h3 { font-size: 17.5px; margin-bottom: 4px; }
.dest-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* ------------------------------------------------------- 引用 / 出处 */
.sources { font-size: 14px; color: var(--muted); }
.sources ul { padding-inline-start: 18px; }
.disclaimer {
  margin-top: 26px; padding: 14px 16px; font-size: 13.5px; color: var(--muted);
  background: var(--paper-3); border-radius: var(--radius-s);
}

/* ------------------------------------------------------- 相关阅读 */
/* #513/#507：#related 包裹层与上方 share-bar 拉开间距，避免「继续阅读」贴住分享行 */
#related { margin-top: 18px; }
.related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 30px; }
.related a {
  display: block; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-s); background: var(--paper-2); font-size: 14.5px; font-weight: 600;
}
.related a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-2); }

/* ================================================================ 目的地详情页 */
.dest-head { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.dest-head-emoji {
  flex: 0 0 auto; font-size: 46px; line-height: 1;
  width: 74px; height: 74px; display: grid; place-items: center;
  border-radius: var(--radius); background: linear-gradient(135deg, var(--accent-soft), var(--paper-3));
}
.dest-head h1 { margin-bottom: 4px; }

.back-link-wrap { margin: 0 0 16px; }
.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* 可点击的目的地卡片 */
a.dest-card {
  display: block; text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.dest-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 26px rgba(0,0,0,.10); }
a.dest-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dest-go { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
a.dest-card:hover .dest-go { text-decoration: underline; }

/* 速览事实框 */
.facts {
  list-style: none; margin: 16px 0 0; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--paper-2); overflow: hidden;
}
.facts li {
  display: grid; grid-template-columns: 148px 1fr; gap: 12px;
  padding: 11px 14px; font-size: 14.5px; border-bottom: 1px solid var(--line);
}
.facts li:last-child { border-bottom: 0; }
.fact-k { color: var(--muted); font-weight: 600; }
.fact-v { color: var(--ink-2); }

/* 打勾清单（景点等） */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 24px; font-size: 15px; color: var(--ink-2); }
.ticks li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 700; }
.ticks li b { color: var(--ink); }

/* 底部「更多目的地」 */
#dest-more { margin-top: 28px; }
.strip-title { font-size: 17px; margin: 0 0 10px; }
.dest-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 10px; margin-bottom: 24px; }
.dest-chip {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 13px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--paper-2); text-decoration: none; color: inherit;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.dest-chip:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.dest-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dest-chip-emoji { font-size: 22px; line-height: 1.1; }
.dest-chip-name { font-size: 14.5px; font-weight: 600; }
.dest-chip-native { font-size: 12.5px; color: var(--muted); }

/* ── Shopping guide module: anchor nav, city switcher, crosslinks, freshness badges ── */
html { scroll-behavior: smooth; }
.anchor-nav {
  position: sticky; top: 64px; z-index: 5;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 6px 0 22px; padding: 10px 12px;
  background: #fff; border: 1px solid #ececf0; border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.anchor-nav a {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  background: #fbf3f4; color: #C8102E; font-size: 14px; font-weight: 600; text-decoration: none;
}
.anchor-nav a:hover { background: #C8102E; color: #fff; }

.city-switch {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 10px 12px;
  background: #fff; border: 1px solid #ececf0; border-radius: 14px;
}
.city-switch .cs-label { font-size: 13px; color: #888; margin-right: 2px; }
.city-switch a {
  padding: 6px 12px; border-radius: 999px; background: #f6f6f8;
  color: #333; font-size: 13.5px; text-decoration: none;
}
.city-switch a:hover { background: #C8102E; color: #fff; }
.city-switch a.current { background: #C8102E; color: #fff; font-weight: 600; }

.crosslink {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e6e6ec;
  font-size: 14.5px;
}
.crosslink a { color: #C8102E; font-weight: 600; white-space: nowrap; }

.updated-note { margin: 0 0 14px; font-size: 13.5px; color: #888; }
.updated-badge {
  display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px;
  background: #C8102E; color: #fff; font-size: 12.5px; font-weight: 600; vertical-align: middle;
}

/* ── Shopping tools (calculators / list / phrase cards) — shared by tools.html & tax-refund.html ── */
.tool { background: #fff; border: 1px solid #ececf0; border-radius: 14px; padding: 18px 18px 20px; margin: 0 0 22px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.tool h3 { margin: 0 0 12px; font-size: 19px; }
.tool .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 10px; }
.tool label { display: block; font-size: 13px; color: #666; margin-bottom: 5px; }
.tool input, .tool select { font-size: 15px; padding: 9px 11px; border: 1px solid #d8d8e0; border-radius: 9px; min-width: 160px; }
.tool .out { margin-top: 12px; background: #fbf3f4; border: 1px solid #f3d6da; border-radius: 10px; padding: 12px 14px; font-size: 15px; line-height: 1.7; }
.tool .out b { color: #C8102E; }
.tool .btn { background: #C8102E; color: #fff; border: 0; border-radius: 9px; padding: 10px 16px; font-size: 15px; cursor: pointer; }
.tool .btn.ghost { background: #fff; color: #C8102E; border: 1px solid #C8102E; }
.tool .disc { font-size: 12.5px; color: #888; margin-top: 10px; line-height: 1.6; }
.cat-group { border: 1px solid #ececf0; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.cat-group h4 { margin: 0 0 8px; font-size: 15px; color: #C8102E; }
.cat-group label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #333; padding: 3px 0; }
.cat-group input { min-width: 0; }
.phrase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.phrase-card { border: 1px solid #ececf0; border-radius: 11px; padding: 12px; cursor: pointer; transition: .15s; background: #fff; text-align: center; }
.phrase-card:hover { border-color: #C8102E; background: #fff7f8; }
.phrase-card .zh { font-size: 22px; font-weight: 700; }
.phrase-card .py { font-size: 12.5px; color: #999; margin: 3px 0; }
.phrase-card .en { font-size: 13px; color: #444; }
.phrase-card .ok { color: #2e9e4f; font-size: 11px; height: 14px; }
.tool-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
@media print { .ad-slot, .sidebar, .site-header, .site-footer, .tool-actions, .phrase-grid { display: none !important; } .tool { break-inside: avoid; } }

/* ── Shopping topic "Next in your shopping plan" card (40-components.js G2) ── */
.next-step {
  display: flex; flex-direction: column; gap: 2px;
  margin: 0 0 18px; padding: 14px 18px;
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius-s); background: var(--paper-2);
  text-decoration: none; color: inherit;
}
.next-step:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.next-step-k { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.next-step-t { font-size: 16px; font-weight: 700; color: var(--accent-2); }

/* ── Shopping location page → destination page CTA (40-components.js #501) ── */
.dest-cta {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 20px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2);
  text-decoration: none; color: inherit;
}
.dest-cta:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.dest-cta-emoji { font-size: 30px; line-height: 1; flex: 0 0 auto; }
.dest-cta-body { display: flex; flex-direction: column; gap: 2px; }
.dest-cta-k { font-size: 13px; color: var(--muted); }
.dest-cta-t { font-size: 15.5px; font-weight: 700; color: var(--accent-2); }

/* ── Destination page → shopping page CTA (40-components.js #603b) ──
   复用 .dest-cta 卡片外观；放大 margin-top 与上方广告位拉开间距。 */
.dest-shop-cta { margin: 24px 0 16px; }
.dest-shop-cta:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }

/* itineraries 页：文末广告与「分享」之间，跳「更多中国城市」的内链 */
.more-cities-link { margin: 22px 0 16px; }
.more-cities-link a { display: inline-block; font-weight: 700; color: var(--accent-2); text-decoration: none; }
.more-cities-link a:hover { text-decoration: underline; }

/* 中文标注(汉字,拼音) 显隐开关 —— 由 assets/js/85-annot.js 驱动 */
/* 显式指定「拉丁优先」字体栈：拼音用无衬线拉丁字体（声调符ǒ/ǔ 基线正确、不被截断），
   汉字回退到 PingFang/雅黑等无衬线 CJK；避免继承标题衬线字体导致拼音与汉字基线错位、声调符浮起/截断。 */
.cjk-annot {
  display: inline;
  vertical-align: baseline;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  /* 🔴 标注必须能被父容器断开（历史遗留，非合并引入）：
   *    标注文本 = 汉字 + 带调拼音，比原文长 1.5~2 倍。
   *    若父级带 white-space:nowrap（.crosslink a / 表格 th / .ti-meta …），
   *    标注整段不可断 → 在 375px 手机上把行宽撑到 546px → 页面出现横向滚动。
   *    这里显式声明 white-space:normal，让「标注内部」可以换行，父级的 nowrap 不再传导进来。
   *    实测：.crosslink a 宽度 612px → 345px（容器宽），页面 scrollWidth 546 → 375。
   *    🔴 overflow-wrap 用 break-word 而非 anywhere：
   *    anywhere 会参与 min-content 计算 → 窄表格列里拼音被拆成竖排单字
   *    （实测 zodiac 页 6 处「(牛, Niú)」竖排 3 行）；break-word 同样能断溢出，
   *    但不改 min-content → 拼音保持整词（实测 2 处，且那 2 处是列宽本身不足，与本规则无关）。 */
  white-space: normal;
  overflow-wrap: break-word;
}
html.hide-annot .cjk-annot { display: none; }
/* 开关改为顶部常驻栏内的图标按钮（与主题键同款），不再悬浮于正文之上，三端零遮挡 */
.annot-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper-2); color: var(--ink-2); cursor: pointer;
  display: grid; place-items: center; position: relative;
  transition: background .15s ease, color .15s ease;
}
.annot-toggle:hover { background: var(--paper-3); color: var(--ink); }
.annot-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.annot-toggle__ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.annot-toggle[data-state="hidden"] .annot-toggle__ic-eye { display: none; }
.annot-toggle[data-state="shown"] .annot-toggle__ic-eyeoff { display: none; }
/* 标签仅留给屏幕阅读器；顶栏空间有限，视觉上只显示眼睛图标 */
.annot-toggle__label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .annot-toggle { transition: none; }
}

/* =============================================================================
 * 05-ads.css — 合并自原 05-ads.css（勿拆分回多个文件）
 * ============================================================================= */
/* =============================================================================
 *  05-ads.css — 广告位样式
 *  原则：绝不遮挡正文、绝不弹窗、可关闭、有明确「广告」标识（AdSense 政策要求）
 * ========================================================================== */

.ad-slot {
  margin: 26px 0;
  min-height: 0;
  /* 预留最小高度，避免广告加载造成布局跳动（CLS） */
}
.ad-slot[data-ad="topBanner"] { margin: 18px 0 26px; }
.ad-slot[data-ad="sidebar"] { margin: 0; }
.ad-slot[data-ad="endOfArticle"] { margin: 34px 0 10px; }

/* 没渲染出内容的广告位不留空白（广告被限流 / 窄屏隐藏 / 未启用时） */
.ad-slot:empty,
.ad-slot.is-hidden-ad { display: none !important; }

.ad-label {
  display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px; text-align: center;
}
.ad-slot[data-ad="sidebar"] .ad-label { text-align: start; }

/* 正文内广告：柔和区隔，不打断阅读节奏 */
.ad-slot.ad-inarticle {
  padding: 14px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

/* ------------------------------------------------ 占位块（未填 AdSense 参数时） */
.ad-placeholder {
  display: grid; place-items: center; text-align: center;
  min-height: 100px; padding: 18px;
  border: 2px dashed var(--line); border-radius: var(--radius-s);
  background: repeating-linear-gradient(135deg, var(--paper-3) 0 10px, var(--paper-2) 10px 20px);
  color: var(--muted); font-size: 13px; line-height: 1.5;
}
.ad-placeholder b { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 2px; }
.ad-slot[data-ad="sidebar"] .ad-placeholder { min-height: 250px; }
.ad-slot[data-ad="mobileAnchor"] .ad-placeholder { min-height: 60px; }

/* ------------------------------------------------ 移动端底部吸附广告（可关闭） */
.ad-anchor {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 58;
  background: var(--paper-2); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(0,0,0,.10);
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%); transition: transform .25s ease;
}
.ad-anchor.show { transform: translateY(0); }
.ad-anchor .anchor-inner { position: relative; max-width: 480px; margin-inline: auto; }
.ad-anchor .anchor-close {
  position: absolute; top: -2px; inset-inline-end: -4px;
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper-2); color: var(--ink-2); cursor: pointer; font-size: 13px;
  display: grid; place-items: center; z-index: 2;
}
/* 有吸附广告时，正文底部留出空间，避免遮住最后一行 */
body.has-anchor { padding-bottom: 96px; }

/* ------------------------------------------------ PC 侧栏广告（随页面滚动固定） */
.ad-side-sticky { position: sticky; top: 84px; }

/* ------------------------------------------------ 广告在首页卡片流中的样式 */
.ad-slot[data-ad="homeCard"] {
  margin: 0;
  min-height: 150px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 18px; box-sizing: border-box;
  background: var(--paper-2); border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.ad-slot[data-ad="homeCard"] .ad-label { text-align: center; }
.ad-slot[data-ad="homeCard"] .ad-placeholder {
  border: 0; background: transparent; min-height: 0; padding: 0;
}

/* ------------------------------------------------ 深色模式下的广告容器 */
html[data-mode="dark"] .ad-placeholder { border-color: var(--line); }

/* ------------------------------------------------ Cookie 同意横幅（CMP） */
.consent-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  justify-content: center; text-align: center;
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom, 0px));
  background: var(--paper-1); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .12);
  font-size: 13px; line-height: 1.5; color: var(--ink-2);
}
.consent-bar .consent-txt { max-width: 760px; }
.consent-bar .consent-txt a { color: var(--accent, #C8102E); }
.consent-bar .consent-actions { display: flex; gap: 8px; }
.consent-bar button {
  border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 6px 16px; cursor: pointer; font-size: 13px;
  background: var(--paper-2); color: var(--ink);
}
.consent-bar .consent-accept {
  background: var(--accent, #C8102E); color: #fff; border-color: transparent;
}
@media (max-width: 520px) {
  .consent-bar { flex-direction: column; }
}

/* =============================================================================
 * 06-responsive.css — 合并自原 06-responsive.css（勿拆分回多个文件）
 * ============================================================================= */
/* =============================================================================
 *  06-responsive.css — 响应式（手机 / 平板 / PC / 大屏）
 *  兼容：iOS Safari、Android Chrome、鸿蒙 HarmonyOS 浏览器、微信内置浏览器
 *  说明：只使用广泛支持的 CSS，不用 :has()、容器查询等新特性，避免旧内核白屏
 * ========================================================================== */

/* ---------------------------------------------------------------- 大屏微调 */
@media (min-width: 1440px) {
  :root { --maxw: 1280px; }
}

/* ---------------------------------------------------------------- 平板及以下 */
@media (max-width: 1023px) {
  .layout.has-side { grid-template-columns: minmax(0, 1fr); }
  .layout.has-side .sidebar { display: none; }
  .nav { display: none; }              /* 平板/手机改用抽屉菜单 */
  .menu-toggle { display: grid; }
  .hero { border-radius: var(--radius); }
  /* 🔴 表格在平板竖屏（768~1023px，如 iPad）撑破页面（历史遗留，非合并引入）：
   *    宽表格（如 zodiac 的 12 生肖表）内容宽 847px > 可用 768px，
   *    而 overflow-x:auto 的表格规则原本只写在 ≤767px 断点里 → 768px 正好漏掉。
   *    这里把「表格可横滚」的断点从 767 提到 1023，768~1023 区间同样生效。
   *    注：display:block + overflow-x:auto 让表格脱离表格布局变成滚动容器，
   *    这是移动端宽表格的通用做法，不影响 1024px 以上的桌面表格。 */
  table { display: block; overflow-x: auto; }
}

/* 移动端导航抽屉 */
.drawer {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(20,16,12,.42);
}
.drawer.open { display: block; }
.drawer-panel {
  position: absolute; inset-block: 0; inset-inline-start: 0;
  width: min(84vw, 330px); background: var(--paper);
  padding: 18px; overflow-y: auto; box-shadow: var(--shadow-l);
  display: flex; flex-direction: column; gap: 4px;
}
html[dir="rtl"] .drawer-panel { inset-inline-start: auto; inset-inline-end: 0; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-panel a.nav-link { font-size: 16px; padding: 11px 12px; border-radius: 10px; }
.drawer-group-title { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 4px; }

/* ---------------------------------------------------------------- 手机 */
@media (max-width: 767px) {
  :root { --gutter: 15px; --fs-base: 16.5px; }
  .header-inner { min-height: 56px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 16px; }
  /* 🔴 顶栏溢出（历史遗留，非合并引入）：
   *    .brand 与 .header-actions 都是 flex:0 0 auto（不可压缩），
   *    375px 视口下 173 + 14 + 182 = 369px > 可用 345px → 最右侧按钮被切掉 10px。
   *    修法：让 brand 可压缩，文字用省略号截断；图标与按钮保持完整。 */
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand-text { min-width: 0; overflow: hidden; }
  .brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-actions { flex: 0 0 auto; min-width: 0; }
  .page { padding-block: 16px 44px; }
  .hero { padding: 26px 18px; }
  .hero-stats { gap: 18px; }
  .hero-stats div b { font-size: 19px; }
  h1 { font-size: 27px; }
  .grid, .grid-3, .paths, .why { grid-template-columns: 1fr; }
  .featured .f-visual { min-height: 130px; font-size: 44px; }
  .to-top { bottom: 108px; inset-inline-end: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .route-head { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------- 超小屏 */
@media (max-width: 380px) {
  .lang-btn span.lbl { display: none; }
  .hero-stats { gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- 打印 */
@media print {
  .site-header, .site-footer, .ad-slot, .to-top, .share-bar, .drawer, .ad-anchor { display: none !important; }
  body { background: #fff; }
  a { color: #000; text-decoration: underline; }
}

/* ------------------------------------------------- 目的地详情页的小屏适配 */
@media (max-width: 700px) {
  .dest-head { gap: 12px; }
  .dest-head-emoji { width: 56px; height: 56px; font-size: 34px; }
  /* 速览框改成上下两行，标签不再挤成一列 */
  .facts li { grid-template-columns: 1fr; gap: 2px; padding: 10px 13px; }
  .fact-k { font-size: 13px; }
  .dest-strip { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .ticks li { padding-inline-start: 20px; font-size: 14.5px; }
}
@media (max-width: 380px) {
  .dest-strip { grid-template-columns: repeat(2, 1fr); }
}
/* 触屏设备不做 hover 位移，避免点击后卡片「粘」在抬起状态 */
@media (hover: none) {
  a.dest-card:hover { transform: none; box-shadow: none; }
  .dest-chip:hover { transform: none; }
}

/* =============================================================================
 * 07-wiki.css — 合并自原 07-wiki.css（勿拆分回多个文件）
 * ============================================================================= */
/* =============================================================================
 *  07-wiki.css — 中国百科（China Wiki）专用样式
 *  ---------------------------------------------------------------------------
 *  只依赖 00-tokens.css 里的变量，不引入任何框架、不写死颜色。
 *  改配色请改 tokens；改百科版式改这里。
 * ========================================================================== */

/* ---------------------------------------------------------------- 百科总页头部 */
.wiki-hero {
  position: relative;
  margin: 0 0 30px;
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-soft) 0%, transparent 58%),
    var(--paper-2);
  overflow: hidden;
}
.wiki-hero::after {
  content: "百";
  position: absolute;
  inset-inline-end: -14px;
  bottom: -46px;
  font-family: var(--font-display);
  font-size: 190px;
  line-height: 1;
  color: var(--pattern);
  pointer-events: none;
}
.wiki-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: clamp(25px, 4vw, 38px);
}
.wiki-hero p {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}
.wiki-hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.wiki-hero-stats b {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--accent-2);
  margin-inline-end: 4px;
}

/* ---------------------------------------------------------------- 分类卡片网格 */
.wiki-group { margin-bottom: 34px; }
.wiki-group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.wiki-group-head h2 { margin: 0; font-size: 19px; }
.wiki-group-head .wiki-group-sub { font-size: 13.5px; color: var(--muted); }

.wiki-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
}

.wiki-card {
  display: block;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.wiki-card:hover,
.wiki-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-s);
  text-decoration: none;
}
.wiki-card-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 20px;
  line-height: 1;
}
.wiki-card h3 {
  margin: 0 0 5px;
  font-size: 16.5px;
  color: var(--ink);
}
.wiki-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.wiki-card-meta {
  display: block;
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--accent-2);
  font-weight: 600;
}
.wiki-card.is-tool .wiki-card-emoji { background: rgba(184, 139, 47, .14); }

/* 养生总览页：五条主线方法卡（响应式网格，窄屏自动单列） */
.wiki-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  margin: 14px 0 0;
}

/* ---------------------------------------------------------------- 类目页头部 */
.wiki-cat-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 6px;
}
.wiki-cat-emoji {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 27px;
  line-height: 1;
}
.wiki-cat-head h1 { margin: 0 0 4px; }
.wiki-cat-head p { margin: 0; color: var(--muted); font-size: 15px; }

/* 本页小节快捷导航（类目页顶部） */
.wiki-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 4px;
  padding: 0;
  list-style: none;
}
.wiki-quick a {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
}
.wiki-quick a:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  text-decoration: none;
}

/* 类目页底部：其他类目卡片流 */
.wiki-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin-top: 12px;
}
.wiki-strip a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper-2);
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.wiki-strip a:hover { border-color: var(--accent); color: var(--accent-2); text-decoration: none; }
.wiki-strip .wiki-strip-emoji { font-size: 16px; }

/* 返回百科总页 */
.back-link-wrap { margin: 8px 0 0; }
.back-link { font-size: 14px; color: var(--accent-2); text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- 词条小卡片 */
.wiki-entry {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--radius-s);
  background: var(--paper-2);
  margin-bottom: 12px;
}
.wiki-entry h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--ink);
}
.wiki-entry .wiki-entry-sub {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 400;
  margin-inline-start: 8px;
}
.wiki-entry p { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.wiki-entry p:last-child { margin-bottom: 0; }

/* 语种提示：默认隐藏，只有非中文读者才由 JS 打开（避免中文用户看到一闪而过的提示） */
#wiki-hint { display: none; }
#wiki-hint.show { display: block; }

/* ---------------------------------------------------------------- 六爻工具 */
.liuyao-wrap { margin-top: 8px; }

.liuyao-step {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  margin-bottom: 14px;
}
.liuyao-step > h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.liuyao-step .step-no {
  display: inline-block;
  min-width: 22px;
  height: 22px;
  margin-inline-end: 8px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  line-height: 22px;
  text-align: center;
  font-family: var(--font-body);
}

/* 场景选择 */
.liuyao-scenes {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.liuyao-scene {
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper);
  color: var(--ink);
  font-size: 14.5px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.liuyao-scene:hover { border-color: var(--accent); }
.liuyao-scene.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-2);
  font-weight: 600;
}
.liuyao-scene .scene-emoji { display: block; font-size: 20px; margin-bottom: 4px; }

/* 摇卦按钮 */
.liuyao-cast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.liuyao-hint { font-size: 13.5px; color: var(--muted); }
.liuyao-progress {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
}
.liuyao-progress i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line);
  display: inline-block;
}
.liuyao-progress i.on { background: var(--accent); }

/* 卦象盘面（自下而上：初爻在最下） */
.liuyao-lines { margin-top: 14px; }
.liuyao-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
}
.liuyao-line .line-name {
  flex: 0 0 62px;
  font-size: 13px;
  color: var(--muted);
  text-align: inline-end;
}
.liuyao-line .line-bar {
  flex: 1 1 auto;
  height: 14px;
  display: flex;
  gap: 10px;
}
.liuyao-line .bar {
  flex: 1 1 0;
  height: 14px;
  border-radius: 3px;
  background: var(--ink);
}
/* 阴爻：断开的两段 */
.liuyao-line.is-yin .line-bar { background: transparent; }
.liuyao-line.is-yin .bar { background: var(--ink); }
.liuyao-line.is-yin .line-bar::after {
  content: "";
  position: absolute;
  width: 22%;
  height: 14px;
  background: var(--paper-2);
}
.liuyao-line .line-tag {
  flex: 0 0 auto;
  min-width: 74px;
  font-size: 12.5px;
  font-weight: 600;
}
.liuyao-line.is-move .line-tag { color: var(--accent-2); }
.liuyao-line.is-move .bar { box-shadow: 0 0 0 2px var(--accent) inset; }

/* 本卦 / 变卦 */
.liuyao-result {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 10px;
}
.liuyao-gua {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.liuyao-gua .gua-label {
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.liuyao-gua .gua-symbol {
  font-size: 46px;
  line-height: 1.1;
  color: var(--accent-2);
  margin: 2px 0;
}
.liuyao-gua .gua-name {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 0 0 2px;
}
.liuyao-gua .gua-wuxing { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.liuyao-gua .gua-ci {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
}
.liuyao-gua .gua-xiang { font-size: 14.5px; color: var(--ink-2); margin: 8px 0 0; }
.liuyao-gua .gua-yi { font-size: 14.5px; color: var(--ink-2); margin: 6px 0 0; }

/* ------------------------------------------------------- 动爻爻辞（经文原文） */
.liuyao-yaoci {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.liuyao-yaoci h4 { margin: 0 0 8px; font-size: 15px; }
.liuyao-yaoci .yaoci-list { list-style: none; margin: 0; padding: 0; }
.liuyao-yaoci .yaoci-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px dashed var(--line);
  font-size: 14.5px;
  line-height: 1.75;
}
.liuyao-yaoci .yaoci-list li:first-child { border-top: 0; }
.liuyao-yaoci .yaoci-name { font-weight: 700; color: var(--ink); flex: 0 0 auto; }
.liuyao-yaoci .yaoci-tag {
  flex: 0 0 auto;
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong, var(--accent));
}
.liuyao-yaoci .yaoci-text {
  flex: 1 1 260px;
  font-family: var(--font-display);
  color: var(--ink-2);
}

.liuyao-verdict {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border-inline-start: 4px solid var(--accent);
  background: var(--accent-soft);
}
.liuyao-verdict.is-good { border-inline-start-color: var(--ok); background: rgba(47,122,79,.08); }
.liuyao-verdict.is-bad { border-inline-start-color: var(--danger); background: rgba(179,38,30,.08); }
.liuyao-verdict.is-flat { border-inline-start-color: var(--warn); background: rgba(179,112,26,.09); }
.liuyao-verdict h4 { margin: 0 0 6px; font-size: 16px; }
.liuyao-verdict p { margin: 0 0 8px; font-size: 15px; color: var(--ink-2); }
.liuyao-verdict p:last-child { margin-bottom: 0; }
.liuyao-verdict .v-ci {
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px dashed var(--line);
}
.liuyao-verdict .v-main { font-size: 15.5px; line-height: 1.85; color: var(--ink); }
.liuyao-verdict .v-trend {
  font-size: 15px;
  line-height: 1.85;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.liuyao-reset { margin-top: 14px; }

/* ---------------------------------------------------------------- 白话总说 */
/* 结果区最下面的一整块：把结论、卦象、爻辞、体用、应期、建议综合成大白话 */
.ly-plain {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2, var(--paper));
}
.ly-plain-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
}
.ly-plain-lead {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}
.ly-plain-sec { margin: 0 0 15px; }
.ly-plain-sec:last-child { margin-bottom: 0; }
.ly-plain-sec h5 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--accent-strong, var(--accent));
}
.ly-plain-sec h5::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.ly-plain-sec p {
  margin: 0;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink);
}

/* ======================================================== 综合结论卡（置顶） */
.ly-final {
  margin: 0 0 18px;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-inline-start: 4px solid var(--muted);
  background: var(--paper-2, var(--paper));
}
.ly-final.is-good { border-inline-start-color: var(--ok); background: rgba(47,122,79,.09); }
.ly-final.is-flat { border-inline-start-color: var(--warn); background: rgba(179,112,26,.10); }
.ly-final.is-bad { border-inline-start-color: var(--danger); background: rgba(179,38,30,.09); }

.ly-final-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ly-badge {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--muted);
}
.is-good .ly-badge { background: #2f7a4f; }
.is-flat .ly-badge { background: #b3701a; }
.is-bad  .ly-badge { background: #b3261e; }
.ly-final-sub { font-size: 13px; color: var(--ink-2); }

.ly-final-title {
  margin: 14px 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .08em;
}
.ly-head {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink);
}

/* 三项指标 */
.ly-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.ly-metric { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.ly-metric .m-label { color: var(--muted); font-weight: 700; }
.ly-metric .m-bar {
  display: inline-block;
  width: 120px;
  height: 8px;
  border-radius: 999px;
  background: rgba(120,120,120,.22);
  overflow: hidden;
}
.ly-metric .m-bar i { display: block; height: 100%; border-radius: 999px; background: var(--muted); }
.is-good .ly-metric .m-bar i { background: #2f7a4f; }
.is-flat .ly-metric .m-bar i { background: #b3701a; }
.is-bad  .ly-metric .m-bar i { background: #b3261e; }
.ly-metric .m-val { font-weight: 700; color: var(--ink); min-width: 38px; }
.ly-metric .m-chip {
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper-3, rgba(128,128,128,.12));
  color: var(--ink);
  font-weight: 700;
}

.ly-speed, .ly-yq {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
.ly-speed b, .ly-yq b { color: var(--ink); }

/* 行动建议 */
.ly-advice { margin-top: 14px; }
.ly-advice h5, .ly-var h5, .ly-lei h5 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.ly-advice ul { list-style: none; margin: 0 0 10px; padding: 0; }
.ly-advice li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink);
  padding: 5px 0;
}
.ad-mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}
.ad-mark.do { background: #2f7a4f; }
.ad-mark.no { background: #b3261e; }
.ly-avoid li { color: var(--ink-2); }

/* 变数所在 */
.ly-var { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ly-var .var-list { list-style: none; margin: 0; padding: 0; }
.ly-var .var-list li {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
  padding: 4px 0;
}
.ly-var .var-list b { color: var(--ink); }
.ly-var p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }

/* 类象提示 */
.ly-lei { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ly-lei .lei-list { margin: 0; display: grid; gap: 6px; }
.ly-lei .lei-row { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.75; }
.ly-lei dt { flex: 0 0 48px; font-weight: 700; color: var(--muted); margin: 0; }
.ly-lei dd { margin: 0; color: var(--ink-2); }

/* 评分明细 */
.ly-score {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2, var(--paper));
}
.ly-score summary { cursor: pointer; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.ly-score .score-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 8px;
  font-size: 13.5px;
}
.ly-score .score-table th {
  text-align: start;
  padding: 6px 8px;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.ly-score .score-table td { padding: 7px 8px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.ly-score .s-name { font-weight: 700; color: var(--ink); white-space: nowrap; }
.ly-score .s-src { color: var(--ink-2); line-height: 1.7; }
.ly-score .s-num { font-weight: 700; text-align: center; white-space: nowrap; }
.ly-score .s-num.up { color: #2f7a4f; }
.ly-score .s-num.down { color: #b3261e; }
.ly-score .s-num.zero { color: var(--muted); }
.ly-score .s-w { color: var(--muted); text-align: center; white-space: nowrap; }
.ly-score .score-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 700px) {
  .wiki-hero { padding: 22px 18px 20px; }
  .wiki-hero::after { font-size: 130px; bottom: -32px; }
  .wiki-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .wiki-cat-emoji { width: 44px; height: 44px; font-size: 22px; }
  .liuyao-line .line-name { flex-basis: 52px; font-size: 12px; }
  .liuyao-line .line-tag { min-width: 60px; font-size: 12px; }
  .ly-final { padding: 14px 15px 12px; }
  .ly-badge { font-size: 16px; padding: 5px 12px; }
  .ly-head { font-size: 15px; }
  .ly-metric .m-bar { width: 84px; }
  .ly-lei .lei-row { flex-direction: column; gap: 2px; }
  .ly-lei dt { flex: none; }
  .ly-score .score-table { font-size: 12.5px; }
  .ly-score .s-src { line-height: 1.6; }
}

/* =============================================================================
 * 08-zodiac.css — 合并自原 08-zodiac.css（勿拆分回多个文件）
 * ============================================================================= */
/* =============================================================================
 *  08-zodiac.css — 十二生肖：万年历控件 + 十二属相详解
 *  ---------------------------------------------------------------------------
 *  只吃 00-tokens.css 的变量，不写死颜色，换主题自动跟着变。
 *  控件结构由 78-zodiac.js 生成，类名以 zc- 开头；属相详解写在 HTML 里，
 *  类名以 za- 开头。两边互不依赖，改一边不用动另一边。
 * ========================================================================== */

/* ---------------------------------------------------------------- 容器 */
.zodiac-wrap {
  margin: 22px 0 0;
  padding: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}

.zodiac-cal + .zodiac-result { margin-top: 18px; }

/* ---------------------------------------------------------------- 顶部工具条 */
.zc-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.zc-gap { flex: 0 0 10px; }

.zc-nav,
.zc-today,
.zc-chip {
  font: inherit;
  font-size: 14px;
  line-height: 1;
  color: var(--ink-2);
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 7px 10px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.zc-nav:hover,
.zc-today:hover,
.zc-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-2);
}
.zc-nav:active,
.zc-today:active,
.zc-chip:active { transform: translateY(1px); }

.zc-nav { min-width: 34px; font-size: 16px; }

.zc-sel {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 6px 6px;
  cursor: pointer;
  max-width: 96px;
}
.zc-sel:focus-visible,
.zc-nav:focus-visible,
.zc-today:focus-visible,
.zc-chip:focus-visible,
.zc-day:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.zc-unit { font-size: 13px; color: var(--muted); }

.zc-today {
  margin-inline-start: auto;
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-2);
  font-weight: 600;
}

/* ---------------------------------------------------------------- 月历网格 */
.zc-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.zc-head { margin-bottom: 4px; }
.zc-wd {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 4px 0;
}
.zc-wd.is-sun { color: var(--accent); }

.zc-pad { min-height: 1px; }

.zc-day {
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 6px 2px;
  min-height: 48px;
  background: var(--paper-3);
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background .12s, border-color .12s, transform .12s;
}
.zc-day:hover { background: var(--accent-soft); transform: translateY(-1px); }
.zc-day b {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}
.zc-day i {
  font-style: normal;
  font-size: 11px;
  line-height: 1.1;
  color: var(--muted);
}
/* 农历初一：换个底色，一眼能数出这个月有几个农历月 */
.zc-day.is-moon1 { background: var(--accent-soft); }
.zc-day.is-moon1 i { color: var(--accent-2); font-weight: 700; }
/* 选中的那天 */
.zc-day.is-picked {
  background: var(--accent);
  border-color: var(--accent-2);
  box-shadow: var(--shadow-s);
}
.zc-day.is-picked b { color: #fff; }
.zc-day.is-picked i { color: rgba(255, 255, 255, .85); }

/* ---------------------------------------------------------------- 快捷年份 */
.zc-short {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.zc-short-lbl { font-size: 13px; color: var(--muted); }
.zc-chip { padding: 5px 10px; font-size: 13px; }

.zc-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- 结果卡 */
.zc-card {
  padding: 16px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.zc-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.zc-emoji {
  font-size: 46px;
  line-height: 1;
  flex: 0 0 auto;
}
.zc-hero-txt { min-width: 0; }
.zc-who {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent-2);
}
.zc-order { font-size: 13px; color: var(--muted); }

.zc-sum {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--ink-2);
}

.zc-kv { margin: 0 0 12px; }
.zc-kv th { width: 8.5em; }

/* 两套分界给出不同答案时的提示块 */
.zc-both {
  margin: 12px 0;
  padding: 12px 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: 14px;
}
.zc-both b {
  display: block;
  margin-bottom: 6px;
  color: var(--warn);
}
.zc-both span { display: block; color: var(--ink-2); }
.zc-both em { font-style: normal; font-weight: 700; color: var(--accent-2); }
.zc-both p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.zc-agree {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.zc-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.zc-more:hover { color: var(--accent); }

.zc-empty {
  margin: 0;
  padding: 18px 4px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ---------------------------------------------------------------- 十二属相详解 */
.zodiac-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.zodiac-animal {
  padding: 16px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.zodiac-animal:hover { box-shadow: var(--shadow-s); }

.zodiac-animal > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--ink);
}
.za-emoji { font-size: 26px; line-height: 1; }
.za-order {
  margin-inline-start: auto;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper-3);
  border-radius: 999px;
  padding: 3px 10px;
}

.za-summary {
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--gold);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.za-body h4 {
  margin: 14px 0 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent-2);
}
.za-body p { margin: 0 0 4px; font-size: 15px; }
.za-body ul { margin: 0 0 4px; padding-left: 1.15em; }
.za-body li { font-size: 15px; margin-bottom: 2px; }

.za-years {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px !important;
  color: var(--muted);
  word-break: break-word;
}

/* 点「看详解」跳过来时闪一下，告诉读者就是这一条 */
@keyframes za-flash {
  0%   { box-shadow: 0 0 0 0 var(--accent); border-color: var(--accent); }
  100% { box-shadow: 0 0 0 12px transparent; border-color: var(--line); }
}
.zodiac-animal.is-flash { animation: za-flash 1.4s ease-out 1; }

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 640px) {
  .zodiac-wrap { padding: 12px; }
  .zc-day { min-height: 42px; padding: 4px 1px; }
  .zc-day b { font-size: 14px; }
  .zc-day i { font-size: 10px; }
  .zc-emoji { font-size: 36px; }
  .zc-who { font-size: 23px; }
  .zc-kv th { width: 7em; }
  .zc-today { margin-inline-start: 0; }
  .zodiac-animal { padding: 13px 14px; }
}

/* ---------------------------------------------------------------- 深色调主题兜底 */
html[data-theme="dark"] .zc-day.is-picked b,
html[data-theme="dark"] .zc-day.is-picked i { color: #fff; }

/* =============================================================================
 * 09-terms.css — 合并自原 09-terms.css（勿拆分回多个文件）
 * ============================================================================= */
/* =============================================================================
 *  09-terms.css — 二十四节气：查询控件 + 二十四节气详解
 *  ---------------------------------------------------------------------------
 *  只吃 00-tokens.css 的变量，不写死颜色，换主题自动跟着变。
 *  控件结构由 79-terms.js 生成，类名以 jq- 开头；节气详解写在 HTML 里，
 *  类名以 ti- 开头。与 08-zodiac.css 同套路，两边互不依赖。
 * ========================================================================== */

/* ---------------------------------------------------------------- 容器 */
.terms-wrap {
  margin: 20px 0 0;
  padding: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}

/* ---------------------------------------------------------------- 日期选择条 */
.jq-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.jq-sel {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 6px;
  cursor: pointer;
  max-width: 100px;
}
.jq-unit { font-size: 13px; color: var(--muted); margin-right: 4px; }

.jq-today {
  font: inherit;
  font-size: 14px;
  line-height: 1;
  color: var(--ink-2);
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 7px 12px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.jq-today:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-2);
}
.jq-today:active { transform: translateY(1px); }

.jq-sel:focus-visible,
.jq-today:focus-visible,
.jq-row:focus-visible,
.jq-more:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ---------------------------------------------------------------- 结果卡 */
.jq-now + .jq-year { margin-top: 20px; }

.jq-card {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}

.jq-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.jq-emoji { font-size: 40px; line-height: 1; }
.jq-who {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
  line-height: 1.2;
}
.jq-order { margin-top: 4px; font-size: 13px; color: var(--muted); }

.jq-kv { margin: 0 0 12px; }
.jq-kv th { white-space: nowrap; }

.jq-next {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.jq-next b { color: var(--accent-2); }

.jq-more {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
}
.jq-more:hover { border-bottom-style: solid; }

.jq-empty { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- 全年交节表 */
.jq-year-title { margin: 0 0 4px; font-size: 17px; }
.jq-order-note { margin: 0 0 14px; font-size: 13px; color: var(--muted); }

.jq-group {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  overflow: hidden;
}
.jq-group-head {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--paper-3);
  border-bottom: 1px solid var(--line);
}

.jq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.jq-table th,
.jq-table td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.jq-table thead th {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper-2);
}
.jq-table tbody tr:last-child th,
.jq-table tbody tr:last-child td { border-bottom: 0; }
.jq-table tbody th { font-weight: 600; color: var(--ink); }

.jq-row { cursor: pointer; transition: background .12s; }
.jq-row:hover { background: var(--accent-soft); }
.jq-row.is-now { background: var(--accent-soft); }
.jq-row.is-now th { color: var(--accent-2); }
.jq-row.is-now th::after {
  content: ' ●';
  font-size: 9px;
  vertical-align: middle;
  color: var(--accent);
}

.jq-time,
.jq-lon { color: var(--muted); font-variant-numeric: tabular-nums; }

.jq-hint { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- 二十四节气详解 */
.terms-list { margin-top: 4px; }

.term-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.term-item:first-child { border-top: 0; padding-top: 4px; }

.term-item h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
}
.ti-emoji { margin-right: 4px; font-size: 20px; }
.ti-meta {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

.ti-summary {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--accent-2);
}

.ti-body p { margin: 0 0 10px; }
.ti-body p:last-child { margin-bottom: 0; }
.ti-note {
  padding: 10px 12px;
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: 14px;
  color: var(--ink-2);
}
.ti-note b { color: var(--ink); }

/* 结果卡点「看详解」时闪一下，和生肖页同一个交互 */
.term-item.is-flash { animation: jq-flash 1.6s ease-out 1; }
@keyframes jq-flash {
  0%, 40% { background: var(--accent-soft); }
  100% { background: transparent; }
}

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 640px) {
  .terms-wrap { padding: 12px; }
  .jq-emoji { font-size: 32px; }
  .jq-who { font-size: 22px; }
  .jq-table th, .jq-table td { padding: 6px 7px; font-size: 13px; }
  .ti-meta { display: block; margin-left: 0; margin-top: 2px; }
}

/* =============================================================================
 * 10-festivals.css — 合并自原 10-festivals.css（勿拆分回多个文件）
 * ============================================================================= */
/* =============================================================================
 *  10-festivals.css — 传统节日：日历控件 + 八个节日详解
 *  ---------------------------------------------------------------------------
 *  只吃 00-tokens.css 的变量，不写死颜色，换主题自动跟着变。
 *  控件结构由 80-festivals.js 生成，类名以 fest- 开头；节日详解写在 HTML 里，
 *  沿用 07-wiki.css 的 .section / .checklist / .steps / .note，这里只补节日特有的块。
 *  与 09-terms.css 同套路，两边互不依赖。
 * ========================================================================== */

/* ---------------------------------------------------------------- 控件容器 */
.fest-wrap {
  margin: 20px 0 0;
  padding: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}

/* ---------------------------------------------------------------- 年份选择条 */
.fest-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.fest-sel {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 6px;
  cursor: pointer;
  max-width: 120px;
}
.fest-unit { font-size: 13px; color: var(--muted); margin-inline-end: 4px; }

.fest-nav {
  font: inherit;
  font-size: 17px;
  line-height: 1;
  color: var(--ink-2);
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 6px 10px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.fest-nav:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-2);
}
.fest-nav:active { transform: translateY(1px); }

.fest-today {
  font: inherit;
  font-size: 14px;
  line-height: 1;
  color: var(--ink-2);
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 7px 12px;
  cursor: pointer;
  margin-inline-start: auto;
  transition: background .15s, color .15s, border-color .15s;
}
.fest-today:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-2);
}
.fest-today:active { transform: translateY(1px); }

.fest-sel:focus-visible,
.fest-nav:focus-visible,
.fest-today:focus-visible,
.fest-row:focus-visible,
.fest-go:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.fest-empty { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- 节日清单 */
.fest-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.fest-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  transition: border-color .15s, background .15s;
}
.fest-row:hover { border-color: var(--accent); background: var(--accent-soft); }
.fest-row.is-missing { opacity: .6; }

.fest-emoji { font-size: 26px; line-height: 1; flex: 0 0 auto; }

.fest-main { flex: 1 1 auto; min-width: 0; }

.fest-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
}
.fest-when {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.fest-solar {
  margin-top: 3px;
  font-size: 13px;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

.fest-go {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px dashed var(--accent);
}
.fest-go:hover { border-bottom-style: solid; }

/* ---------------------------------------------------------------- 八个节日详解 */
.fest-item {
  margin-top: 26px;
  padding: 0 0 4px;
  border-top: 2px solid var(--accent);
}
.fest-item:first-of-type { margin-top: 8px; }

.fest-item h3 {
  margin: 14px 0 6px;
  font-size: 21px;
  line-height: 1.35;
  color: var(--ink);
}

.fest-sum {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--accent-2);
}

.fest-block {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}
.fest-block h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-2);
}
.fest-block p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.75;
}
.fest-block p:last-child { margin-bottom: 0; }
.fest-block p + p { margin-top: 0; }

/* 点清单里的「看详解」时对应小节闪一下，和节气页同一个交互 */
.fest-item.is-flash { animation: fest-flash 1.6s ease-out 1; }
@keyframes fest-flash {
  0%, 40% { background: var(--accent-soft); }
  100% { background: transparent; }
}

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 640px) {
  .fest-wrap { padding: 12px; }
  .fest-list { grid-template-columns: 1fr; }
  .fest-emoji { font-size: 22px; }
  .fest-row { align-items: flex-start; }
  .fest-go { margin-top: 2px; }
  .fest-item h3 { font-size: 19px; }
  .fest-block { padding: 10px 12px; }
  .fest-block p { font-size: 14px; line-height: 1.7; }
}

/* ---------------------------------------------------------------- 降低动效 */
@media (prefers-reduced-motion: reduce) {
  .fest-item.is-flash { animation: none; }
}

