/* ============================================================
   SunModu Atlas — Grav theme "atlas"（"Reference Light" 基座 v2）
   品牌语言对齐 sunmodu.com（2026-09-21 浏览器实访定稿）：
   建筑编辑风——白/暖奶油交替分区、方角、细黑线、Inter Tight 紧排
   大标题、Playfair Display 斜体点缀、JetBrains Mono 方括号眉标。
   Tokens are the single source of truth.
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --bg-warm: #F5F3EE;          /* 主站 About 区暖奶油底 */
  --surface: #FFFFFF;
  --ink: #111111;
  --muted: #555555;
  --faint: #999999;
  --line: #111111;             /* 强细线（主站 --border-strong） */
  --line-soft: #E8E8E8;        /* 弱细线（主站 --border-subtle） */

  --accent: #111111;
  --accent-ink: #000000;
  --accent-tint: #F5F3EE;
  --accent-line: #111111;

  --ok: #178A50;
  --ok-tint: #E7F4EC;
  --warn: #9A6700;
  --warn-tint: #FBF1D8;
  --off: #6B7280;
  --off-tint: #EFF1F3;

  --radius: 0px;               /* 品牌方角 */
  --radius-sm: 0px;
  --shadow: none;              /* 主站无投影，靠 hairline 分层 */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif; /* 仅斜体点缀 */
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --measure: 70ch;
  --damp: cubic-bezier(.16, 1, .3, 1); /* 主站 ease-architectural */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16.5px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: #111111; color: #fff; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 衬线斜体点缀（主站 hero "Factory-Direct." 手法） */
.hero h1 em, .page-head h1 em, .footer-cta-card em {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  letter-spacing: -0.01em;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo .logo-img { height: 32px; width: auto; display: block; }
.logo .tag {
  font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--ink);
  padding: 2px 8px;
}
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a {
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: 8px 11px;
}
.main-nav a:hover { color: var(--ink); text-decoration: none; background: var(--bg-warm); }
.main-nav a.active, .main-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }

.header-search { margin-left: auto; position: relative; width: 260px; }
.header-search input {
  width: 100%; height: 38px; padding: 0 40px 0 36px;
  border: 1px solid var(--line-soft); border-radius: 0;
  background: var(--surface); font: 500 14px var(--sans); color: var(--ink);
}
.header-search input::placeholder { color: var(--faint); }
.header-search .icon { position: absolute; left: 11px; top: 50%; translate: 0 -50%; color: var(--faint); }
.header-search kbd {
  position: absolute; right: 8px; top: 50%; translate: 0 -50%;
  font: 600 11px var(--mono); color: var(--faint);
  border: 1px solid var(--line-soft); border-radius: 0; padding: 1px 5px; background: var(--bg);
}
.menu-btn { display: none; margin-left: auto; }

/* ---------------- Hero (homepage) ---------------- */
.hero { padding: 88px 0 48px; text-align: center; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 56px); line-height: 1.04;
  letter-spacing: -.03em; font-weight: 700; margin: 0 0 18px;
}
.hero .sub { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 17px; }
.hero-search { position: relative; max-width: 620px; margin: 32px auto 0; }
.hero-search input {
  width: 100%; height: 56px; padding: 0 16px 0 48px;
  font: 500 16.5px var(--sans); color: var(--ink);
  border: 1px solid var(--ink); border-radius: 0;
  background: var(--surface);
}
.hero-search input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink); }
.hero-search .icon { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--faint); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.chip {
  font: 500 12.5px var(--mono); color: var(--muted);
  border: 1px solid var(--line-soft); background: var(--surface);
  padding: 6px 12px; border-radius: 0; cursor: pointer;
}
.chip:hover { color: var(--ink); border-color: var(--ink); text-decoration: none; }

/* ---------------- 眉标（主站 [ SECTION ] 手法） ---------------- */
.section-title {
  font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); margin: 56px 0 18px;
}
.section-title::before { content: "[\00a0\00a0"; color: var(--faint); }
.section-title::after { content: "\00a0\00a0]"; color: var(--faint); }

/* ---------------- 全宽暖色带（主站白/奶油交替分区） ---------------- */
.band { padding: 8px 0 64px; }
.band-warm { background: var(--bg-warm); padding: 48px 0 64px; margin-top: 56px; }
.band-warm .section-title { margin-top: 0; }

/* ---------------- Section cards (homepage) ---------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
.section-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 24px 22px;
  transition: background .15s;
}
.section-card:hover { background: var(--bg-warm); text-decoration: none; }
.section-card .icon-tile {
  width: 38px; height: 38px; background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
  display: grid; place-items: center; margin-bottom: 6px;
}
.section-card h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.section-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; flex: 1; }
.section-card .meta { font: 500 11.5px var(--mono); letter-spacing: .04em; color: var(--faint); border-top: 1px solid var(--line-soft); padding-top: 12px; }

/* ---------------- Latest additions ---------------- */
.latest { background: transparent; border: none; box-shadow: none; }
.latest-row {
  display: grid; grid-template-columns: 150px 1fr auto auto; gap: 16px; align-items: center;
  padding: 15px 4px; border-bottom: 1px solid var(--line-soft); color: var(--ink);
  background: transparent;
}
.latest-row:first-child { border-top: 1px solid var(--line-soft); }
.latest-row:last-child { border-bottom: 1px solid var(--line-soft); }
.latest-row:hover { background: rgba(255, 255, 255, .75); text-decoration: none; }
.type-tag {
  font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: transparent;
  padding: 0; text-align: left; white-space: nowrap;
}
.latest-row .t { font-weight: 600; font-size: 14.5px; }
.latest-row .d { color: var(--faint); font: 500 12px var(--mono); white-space: nowrap; }

/* ---------------- Badges ---------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font: 500 11px var(--mono); letter-spacing: .06em; padding: 3px 9px; border-radius: 0; white-space: nowrap; text-transform: uppercase; }
.badge svg { flex: none; }
.badge.ok { color: var(--ok); background: var(--ok-tint); }
.badge.warn { color: var(--warn); background: var(--warn-tint); }
.badge.off { color: var(--off); background: var(--off-tint); }
.badge.acc { color: var(--ink); background: var(--accent-tint); border: 1px solid var(--line-soft); }

/* ---------------- Breadcrumb / page meta ---------------- */
.crumbs {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); padding: 28px 0 6px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--line-soft); }
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(30px, 4.2vw, 48px); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; margin: 8px 0 14px;
}
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; color: var(--muted); font: 500 12px var(--mono); letter-spacing: .04em; }
.meta-row .dot { color: var(--line-soft); }

/* ---------------- Article layout (content + TOC) ---------------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; padding: 12px 0 64px; }
.article { max-width: var(--measure); }
.article h2 { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 44px 0 12px; scroll-margin-top: 84px; }
.article h3 { font-size: 17.5px; font-weight: 700; margin: 28px 0 8px; scroll-margin-top: 84px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 24px; }
.article li { margin-bottom: 6px; }
.article figure { margin: 20px 0; }
.article em { font-family: var(--serif); font-style: italic; font-weight: 500; }

/* Quick answer box */
.quick-answer {
  background: var(--bg-warm); border: 1px solid var(--ink); border-left: 4px solid var(--ink);
  padding: 18px 20px; margin: 24px 0 8px;
}
.quick-answer .label {
  display: inline-block; font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 8px;
}
.quick-answer p { margin: 0; font-size: 15.5px; }
.quick-answer em { font-family: var(--serif); font-style: italic; }

/* Callout */
.callout { background: var(--surface); border: 1px solid var(--line-soft); border-left: 3px solid var(--warn); padding: 14px 18px; margin: 20px 0; }
.callout.ok { border-left-color: var(--ok); }
.callout .label { font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--warn); display: block; margin-bottom: 6px; }
.callout.ok .label { color: var(--ok); }
.callout p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* TOC */
.toc-col { position: relative; }
.toc { position: sticky; top: 88px; font-size: 13.5px; }
.toc .toc-title { font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.toc a { display: block; color: var(--muted); padding: 5px 0 5px 12px; border-left: 1px solid var(--line-soft); line-height: 1.45; }
.toc a:hover { color: var(--ink); text-decoration: none; border-left-color: var(--faint); }
.toc a.active { color: var(--ink); border-left: 2px solid var(--ink); font-weight: 600; }
.toc .toc-extra { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-soft); }

/* ---------------- Tables ---------------- */
/* Markdown 正文表格（无类名）与 Twig 侧 table.data 同款样式；窄屏时表格横向滚动 */
.table-scroll { overflow-x: auto; border: 1px solid var(--line-soft); background: var(--surface); margin: 16px 0 8px; }
table.data, .article table { width: 100%; border-collapse: collapse; font-size: 14px; }
.article table { border: 1px solid var(--line-soft); background: var(--surface); margin: 16px 0 8px; }
table.data th, .article table th {
  text-align: left; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: var(--bg-warm); padding: 11px 14px; border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
table.data td, .article table td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tr:last-child td, .article table tr:last-child td { border-bottom: none; }
table.data td.num, table.data .num, .article table td.num { font-family: var(--mono); font-size: 13px; }
table.data tr:hover td, .article table tr:hover td { background: var(--bg-warm); }
@media (max-width: 1000px) {
  .article table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.table-note { font: 500 12px var(--mono); color: var(--faint); margin: 0 0 16px; }

/* Option rows (pathway options) */
.option { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line-soft); padding: 16px 18px; margin: 12px 0; }
.option .n {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font: 600 13px var(--mono);
}
.option.recommended { border-color: var(--ink); }
.option h3 { margin: 0 0 4px; font-size: 15.5px; }
.option p { margin: 0; font-size: 14px; color: var(--muted); }
.option .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0 0 16px; }
.checklist li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: 15px; }
.checklist li:last-child { border-bottom: none; }
.checklist svg { flex: none; margin-top: 4px; color: var(--ok); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 16px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 44px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font: 600 13px var(--mono);
}
.steps li::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 1px; background: var(--line-soft); }
.steps li:last-child::after { display: none; }
.steps strong { display: block; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* FAQ — 方角手风琴 */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.faq-item {
  background: var(--surface); border: none; border-bottom: 1px solid var(--line-soft);
  transition: background .25s var(--damp);
}
.faq-item:hover { background: var(--bg-warm); }
.faq-item.open { background: var(--bg-warm); }
.faq-q {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px;
  background: none; border: none; cursor: pointer; text-align: left;
  font: 600 15px/1.5 var(--sans); color: var(--ink); padding: 16px 4px;
}
.faq-q .fx {
  flex: none; width: 26px; height: 26px;
  display: grid; place-items: center;
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  transition: transform .42s var(--damp), background .25s, color .25s;
}
.faq-item.open .fx { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .46s var(--damp); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { color: var(--muted); font-size: 14.5px; margin: 0; padding: 0 46px 16px 4px; }

/* ---------------- Project CTA box ---------------- */
.product-cta {
  display: flex; gap: 18px; align-items: center;
  background: var(--bg-warm); border: 1px solid var(--ink);
  padding: 18px; margin: 28px 0 8px;
}
.product-cta .thumb {
  flex: none; width: 96px; height: 96px;
  background: var(--surface); border: 1px solid var(--line-soft);
  display: grid; place-items: center; color: var(--ink);
}
.product-cta .info { flex: 1; min-width: 0; }
.product-cta .eyebrow { font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.product-cta h3 { margin: 3px 0 4px; font-size: 16.5px; }
.product-cta p { margin: 0; font-size: 13.5px; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: #fff; font: 600 14px var(--sans);
  padding: 11px 18px; border: 1px solid var(--ink); cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #000; color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--bg-warm); }

/* ---------------- Sources & verification ---------------- */
.sources {
  border-top: 1px solid var(--ink); margin-top: 36px; padding-top: 16px;
  font-size: 13px; color: var(--muted);
}
.sources .label { font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); display: block; margin-bottom: 8px; }
.sources ul { margin: 0; padding-left: 18px; }
.sources li { margin-bottom: 3px; }

/* ---------------- Corrections（开放纠错：邀请 + 署名致谢位） ---------------- */
.corrections {
  border: 1px dashed #C9C6BD; background: var(--surface);
  padding: 14px 18px; margin: 14px 0 8px; font-size: 13.5px; color: var(--muted);
}
.corrections .label { font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); display: block; margin-bottom: 6px; }
.corrections p { margin: 0 0 4px; }
.corrections a { text-decoration: underline; text-underline-offset: 2px; }
.corrections ul { margin: 8px 0 0; padding-left: 18px; }
.corrections li { margin-bottom: 3px; color: var(--ink); }

/* ---------------- Trust strip (homepage) ---------------- */
.trust {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line-soft);
  padding: 18px 22px; margin-top: 48px; color: var(--muted); font-size: 14px;
}
.trust svg { flex: none; color: var(--ok); margin-top: 2px; }
.trust strong { color: var(--ink); }

/* ---------------- Footer ---------------- */
/* 预底部 CTA 横幅（墨黑方角，标题带衬线斜体点缀） */
.footer-cta { margin-top: 72px; }
.footer-cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: #111111; padding: 36px 38px; color: #fff;
}
.footer-cta-card h3 { margin: 0 0 6px; font-family: var(--display); font-size: 24px; letter-spacing: -.02em; font-weight: 700; }
.footer-cta-card p { margin: 0; color: #B9B9BC; font-size: 14px; max-width: 560px; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--bg-warm); }

.site-footer { border-top: 1px solid var(--line-soft); margin-top: 56px; background: var(--bg-warm); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding: 44px 0 36px; }
.footer-grid h4 { font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; }
.footer-grid .col-desc { font-size: 12px; color: var(--faint); margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--muted); font-size: 14px; }
.footer-grid a:hover { color: var(--ink); }
.footer-brand p { font-size: 13.5px; color: var(--muted); max-width: 320px; margin: 12px 0 0; }
.footer-promise { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed #D9D6CD; }
.footer-promise li {
  font-size: 13px; color: var(--muted); padding: 3px 0 3px 24px; position: relative;
}
.footer-promise li::before {
  content: "✓"; position: absolute; left: 2px; top: 3px;
  color: var(--ok); font-weight: 700; font-size: 12px;
}
.footer-popular li a { font-family: var(--mono); font-size: 12px; }
.footer-bottom {
  border-top: 1px solid #D9D6CD; padding: 18px 0 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font: 500 11.5px var(--mono); letter-spacing: .04em; color: var(--faint);
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: var(--faint); font-size: 12px; }
.footer-legal a:hover { color: var(--ink); }

/* ---------------- WhatsApp 悬浮导流（样式复用主站 .whatsapp-float） ---------------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #24D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition: transform 200ms var(--damp);
}
.whatsapp-float:hover { transform: translateY(-3px); color: #fff; text-decoration: none; }
.whatsapp-float svg { width: 26px; height: 26px; }

/* ---------------- Search ---------------- */
.header-search { position: relative; }
.search-results { position: absolute; top: calc(100% + 10px); right: 0; width: 380px; max-height: 440px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 60; }
.search-results[hidden] { display: none; }
.sr { display: block; padding: 10px 14px; border-top: 1px solid var(--line-soft); text-decoration: none; }
.sr:first-child { border-top: 0; }
.sr:hover, .sr.sel { background: var(--accent-tint); }
.sr-title { display: block; font: 600 13.5px var(--sans); color: var(--ink); }
.sr-meta { display: block; font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }
.sr-snip { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.sr mark, .search-res mark { background: var(--accent-tint); color: var(--accent-ink); padding: 0 1px; border-radius: 3px; }
.sr-empty { padding: 12px 14px; font-size: 13px; color: var(--muted); }
.search-page { max-width: 720px; padding: 8px 0 64px; }
.search-box input { width: 100%; font: 500 17px var(--sans); padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.search-box input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-tint); }
.search-hint { font-size: 13px; color: var(--faint); margin: 10px 0 18px; }
.search-res-list { display: flex; flex-direction: column; gap: 10px; }
.search-res { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; text-decoration: none; display: block; }
.search-res:hover { border-color: var(--accent-line); }
.search-res .sr-title { font-size: 15px; }
.search-res .sr-snip { font-size: 13px; margin-top: 4px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .article { min-width: 0; }
  .toc-col { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-search { width: 200px; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line-soft); flex-direction: column; padding: 10px 16px; gap: 2px; }
  .main-nav.open { display: flex; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 7px; margin-left: auto;
    background: var(--surface); border: 1px solid var(--ink);
    padding: 8px 13px; font: 600 14px var(--sans); color: var(--ink); cursor: pointer;
  }
  .header-search { margin-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .whatsapp-float { width: 46px; height: 46px; right: 14px; bottom: 14px; }
  .header-inner { gap: 10px; }
  .header-search { display: none; }   /* homepage hero search remains */
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 28px; }
  .latest-row { grid-template-columns: 1fr auto; }
  .latest-row .type-tag { display: block; }
  .latest-row .d { grid-column: 1; }
  .product-cta { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-cta-card { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}

/* ============================================================
   Regulation Finder（/regulations/ 顶部查询器）
   ============================================================ */
.finder { margin: 28px 0 40px; border: 1px solid var(--line); padding: 28px 28px 20px; background: var(--bg-warm); }
.finder-eyebrow { font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.finder-head h2 { font: 700 26px/1.2 var(--display); letter-spacing: -.02em; margin: 10px 0 8px; }
.finder-head p { margin: 0 0 18px; max-width: 68ch; color: var(--muted); font-size: 15.5px; }
.finder-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.finder-controls label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.finder-controls select {
  min-width: 280px; padding: 10px 12px; font: 500 15px var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
}
.finder-card { background: var(--surface); border: 1px solid var(--line-soft); padding: 24px; min-height: 120px; }
.fc-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.fc-head h3 { font: 700 24px/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 2px; }
.fc-country { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.fc-badges { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.fc-answer { font-size: 16px; margin: 0 0 4px; }
.finder-card h4 { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 22px 0 8px; }
.fc-rules, .fc-laws { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; }
.fc-pathways { margin: 0; display: grid; gap: 10px; font-size: 15px; }
.fc-pathways dt { font-weight: 600; }
.fc-pathways dd { margin: 2px 0 0; color: var(--muted); }
.fc-clocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.fc-clocks li { display: flex; gap: 12px; align-items: baseline; border-bottom: 1px dashed var(--line-soft); padding-bottom: 8px; }
.fc-clock { flex: none; min-width: 110px; font-weight: 600; }
.fc-fees { margin: 0; font-size: 15px; color: var(--muted); }
.fc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; }
.fc-src { font-size: 11.5px; color: var(--faint); }
.finder-empty { margin: 0; color: var(--muted); font-size: 15px; }
.finder-note { margin: 12px 0 0; font-size: 11.5px; color: var(--faint); }
@media (max-width: 720px) {
  .finder { padding: 18px 16px; }
  .finder-controls select { min-width: 0; width: 100%; }
  .fc-badges { align-items: flex-start; }
}
