/* 启宇算准 · 中国法规与国标计算器
 *
 * 视觉体系对齐官网 qyqiyu.com（brand consistency）：
 *   主色 #2563eb / 深 #1d4ed8 / 亮 #3b82f6
 *   辅助色（青）#06b6d4 / 深 #0891b2
 *   字体 Noto Sans SC + 系统栈
 *   圆角 6/10/16，容器 1160px
 * 与官网的差异：工具站要强调「依据与数据」，所以保留等宽字体用于数字，
 * 并加了一层极淡的网格纹理，让页面有「文书/数据」的质感而不是纯营销页。
 */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #06b6d4;
  --secondary-dark: #0891b2;

  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --bg-3: #f1f5f9;
  --line: #e2e8f0;
  --line-2: #cbd5e1;

  --ok: #059669;
  --warn: #d97706;
  --danger: #dc2626;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1);

  --grad: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 45%, var(--secondary) 100%);
  --grad-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08));

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
  --sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Microsoft YaHei", sans-serif;

  --container: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

html, body { overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* ============ 头部 ============ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  max-width: var(--container); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-divider { width: 1px; height: 22px; background: var(--line-2); flex: none; }
.brand-product {
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--ink); white-space: nowrap;
}
.brand-product::after {
  content: ""; display: block; height: 2px; margin-top: 3px;
  background: var(--grad); border-radius: 2px;
}
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.site-nav a {
  color: var(--ink-2); font-weight: 500; padding: 4px 0;
  border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover { color: var(--primary); border-bottom-color: var(--primary); }

main { max-width: var(--container); margin: 0 auto; padding: 0 24px 96px; }

/* ============ Hero ============ */
.hero { position: relative; padding: 72px 0 56px; }
.hero::before {
  content: ""; position: absolute; top: -24px; right: 0; bottom: 0; left: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: 56px; align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--primary); background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.16); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 22px;
}
.hero-kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--secondary); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1.18;
  letter-spacing: -0.03em; font-weight: 800; color: var(--ink);
}
.hero h1 b {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-weight: 800;
}
.hero-lede {
  margin-top: 22px; max-width: 33em; font-size: 16px;
  line-height: 1.85; color: var(--ink-2);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover {
  color: #fff; transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
}
.btn-ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line-2); }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); }
.hero-stats {
  list-style: none; display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats b {
  font-family: var(--mono); font-size: 26px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1.1;
}
.hero-stats span { font-size: 12.5px; color: var(--muted); }

/* ---- Hero 右侧：依据核对卡片 ---- */
.hero-visual { display: flex; justify-content: center; }
.spec-card {
  width: 100%; max-width: 400px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.spec-head {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.spec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.spec-dot:first-child { background: #fca5a5; }
.spec-dot:nth-child(2) { background: #fcd34d; }
.spec-dot:nth-child(3) { background: #86efac; }
.spec-title {
  margin-left: 8px; font-size: 12px; font-family: var(--mono);
  color: var(--muted); letter-spacing: 0.02em;
}
.spec-body { padding: 16px; }
.spec-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.spec-row span { color: var(--muted); }
.spec-row b {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2);
  font-weight: 600; text-align: right;
}
.spec-row b.ok { color: var(--ok); }
.spec-result {
  margin-top: 16px; padding: 14px 16px; background: var(--grad-soft);
  border: 1px solid rgba(37, 99, 235, 0.14); border-radius: var(--radius);
  display: flex; align-items: baseline; justify-content: space-between;
}
.spec-result span { font-size: 12.5px; color: var(--muted); }
.spec-result em {
  font-family: var(--mono); font-style: normal; font-size: 22px;
  font-weight: 700; color: var(--primary-dark); letter-spacing: -0.02em;
}

/* ============ 区块 ============ */
.sec { margin-top: 92px; }
.sec-head { margin-bottom: 34px; max-width: 720px; }
.sec-head h2 {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 750;
  letter-spacing: -0.02em; color: var(--ink);
}
.sec-head p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }

/* ---- 分类与工具卡 ---- */
.cat { margin-top: 46px; }
.cat:first-of-type { margin-top: 0; }
.cat-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 18px;
}
.cat-head h3 {
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink); position: relative; padding-left: 12px;
}
.cat-head h3::before {
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 3px; height: 16px;
  border-radius: 2px; background: var(--grad);
}
.cat-desc { font-size: 13px; color: var(--muted); flex: 1; min-width: 200px; }
.tool-list {
  list-style: none; display: grid;
  /* auto-fit：工具少的分类里卡片会拉宽铺满，不留空白格 */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.tool-card {
  max-width: 620px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 14px;
  transition: border-color 0.16s, box-shadow 0.2s, transform 0.16s;
  display: flex; flex-direction: column; gap: 12px;
}
.tool-card:hover {
  border-color: var(--primary-light); box-shadow: var(--shadow); transform: translateY(-2px);
}
.tool-link { display: flex; align-items: flex-start; gap: 13px; color: inherit; }
.tool-link:hover { color: inherit; }
.tool-ico {
  flex: none; width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--grad-soft); border: 1px solid rgba(37, 99, 235, 0.14);
  color: var(--primary-dark); font-size: 15px; font-weight: 700;
  display: grid; place-items: center; transition: background 0.2s, color 0.2s;
}
.tool-card:hover .tool-ico {
  background: var(--grad); color: #fff; border-color: transparent;
}
.tool-main { min-width: 0; flex: 1; }
.tool-main strong {
  display: block; font-size: 15px; font-weight: 650;
  color: var(--ink); line-height: 1.45;
}
.tool-card:hover .tool-main strong { color: var(--primary-dark); }
.tool-desc {
  display: block; margin-top: 5px; font-size: 12.5px;
  color: var(--muted); line-height: 1.6;
}
.tool-go {
  flex: none; color: var(--line-2); font-size: 16px; line-height: 1.3;
  transition: color 0.16s, transform 0.16s;
}
.tool-card:hover .tool-go { color: var(--primary); transform: translateX(3px); }
.tool-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-top: 10px; border-top: 1px solid var(--bg-3);
}

/* ---- 知识库核验标记 ---- */
.kb-badge {
  display: inline-block; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.02em; padding: 2px 8px; border-radius: 999px;
  white-space: nowrap; line-height: 1.6;
}
.kb-badge.ok {
  background: rgba(5, 150, 105, 0.09); color: var(--ok);
  border: 1px solid rgba(5, 150, 105, 0.2);
}
.kb-badge.pending {
  background: rgba(217, 119, 6, 0.09); color: var(--warn);
  border: 1px solid rgba(217, 119, 6, 0.2);
}
.tool-valid { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); }

/* ---- 为什么 AI 会答错 ---- */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.why-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
  transition: background 0.2s, border-color 0.2s;
}
.why-card:hover { background: #fff; border-color: var(--primary-light); }
.why-icon {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--primary); margin-bottom: 12px;
}
.why-card h3 {
  font-size: 15.5px; font-weight: 700; color: var(--ink);
  line-height: 1.5; margin-bottom: 9px;
}
.why-card p { font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.why-card b { color: var(--primary-dark); font-weight: 650; }

/* ---- 信任三联 ---- */
.sec-trust { margin-top: 92px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.trust-item { background: #fff; padding: 30px 26px; }
.trust-item h3 {
  font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.trust-item h3::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px;
  background: var(--grad); flex: none;
}
.trust-item p { font-size: 13px; color: var(--ink-2); line-height: 1.8; }

/* ============ 页脚 ============ */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-inner { max-width: var(--container); margin: 0 auto; padding: 40px 24px 48px; }
.foot-top {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { height: 32px; width: auto; }
.foot-brand span { font-size: 12.5px; color: var(--muted); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12.5px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--primary); }
.foot-bottom {
  margin-top: 20px; display: flex; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; font-size: 11.5px; color: var(--muted-2); line-height: 1.9;
}
.foot-bottom a { color: var(--muted); }
.disclaimer { max-width: 640px; }

/* 工具页 body 不走首页 hero 的网格背景 */
body.tool-page .hero { display: none; }


/* ============================================================
 * 首页（工具优先版）
 *
 * 设计取舍：参考 iLovePDF / dute / UU —— 首屏直接给「可点击的工具」，
 * 说明性文字下沉到页面下方。目标是「一次点击就用上」。
 * ============================================================ */

.home-top {
  padding: 40px 0 26px;
  text-align: center;
}
.home-top h1 {
  font-size: clamp(25px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
}
.home-top h1 b {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-sub {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ---- 搜索框 ---- */
.tool-search {
  position: relative;
  max-width: 560px;
  margin: 24px auto 0;
}
.tool-search input {
  width: 100%;
  font-size: 15px;
  font-family: var(--sans);
  padding: 13px 46px 13px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tool-search input::placeholder { color: var(--muted-2); }
.tool-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}
.search-hint {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  pointer-events: none;
}

/* ---- 筛选项 ---- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.chip {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.chip:hover {
  border-color: var(--primary-light);
  color: var(--primary-dark);
}
.chip.is-active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.24);
}
.chip-n {
  font-family: var(--mono);
  font-size: 10.5px;
  opacity: 0.7;
}

/* ---- 首页工具列表：3 列密排，信息密度高于专题页 ---- */
.tool-list-home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.tool-list-home .tool-card {
  max-width: none;
  padding: 16px 16px 12px;
  gap: 10px;
}
.tool-list-home .tool-card[hidden] { display: none; }
.tool-list-home .tool-ico {
  width: 34px;
  height: 34px;
  font-size: 14px;
}
.tool-list-home .tool-main strong { font-size: 14.5px; }
.tool-list-home .tool-desc {
  font-size: 12px;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tool-topic {
  font-size: 10.5px;
  color: var(--muted);
  background: var(--bg-3);
  border-radius: 4px;
  padding: 2px 7px;
}
.empty-tip {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.empty-tip[hidden] { display: none; }

/* ---- 说明区（下沉到页面下方）---- */
.sec-about { margin-top: 76px; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-item {
  background: #fff;
  padding: 24px 22px;
}
.about-item h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-item h3::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--grad);
  flex: none;
}
.about-item p { font-size: 12.5px; color: var(--ink-2); line-height: 1.8; }

/* ---- 专题入口（次要，放说明区里）---- */
.topic-links { margin-top: 40px; }
.topic-links h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}
.topic-links ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.topic-links li a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.18s;
}
.topic-links li a:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}
.tl-ico {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.topic-links li a > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.topic-links b { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.topic-links em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
}
.tl-go { color: var(--line-2); font-size: 14px; }
.topic-links li a:hover .tl-go { color: var(--primary); }

/* ---- 为什么 AI 会答错：压缩到说明区底部 ---- */
.sec-about .why-grid { margin-top: 40px; }
.sec-about .why-card { padding: 18px 18px; }
.sec-about .why-card h3 { font-size: 13.5px; margin-bottom: 6px; }
.sec-about .why-card p { font-size: 12px; line-height: 1.75; }

@media (max-width: 900px) {
  .tool-list-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  .topic-links ul { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tool-list-home { grid-template-columns: 1fr; }
  .home-top { padding: 26px 0 18px; }
  .search-hint { display: none; }
}


/* ---- 工具页头部：标题 + 政策有效期标签（紧凑，让表单更靠上）---- */
.tool-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.tool-head h1 { margin: 0; }
.tool-flag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--warn);
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 4px;
  padding: 3px 9px;
  white-space: nowrap;
}
/* 工具页主容器稍窄，表单一屏可见 */
.toolbox { margin-top: 22px; }


/* ---- 工具说明（下沉到结果之后）---- */
.tool-about {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.tool-about h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.tool-about p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.9;
  max-width: 760px;
}


.headline-sub {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--mono);
}


/* ---- 表单字段跨列（radio 选项多时用）---- */
.tool-form {
  /* 用 auto-fit 时无法精确控制跨列；改用 12 列栅格以便 field-wide 跨 2 列 */
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.field-wide {
  grid-column: span 2;
}
@media (max-width: 700px) {
  .field-wide { grid-column: span 1; }
}
/* radio 组在宽字段里横排，节省纵向空间 */
.field-wide .radio-group {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}
.field-wide .radio {
  flex: 1 1 auto;
  min-width: 140px;
}


/* ============================================================
 * 法规原文阅读页（/law/）
 * 目标：长文可读性优先 —— 行宽、行高、字号都按阅读优化
 * ============================================================ */

.law-search {
  max-width: 560px;
  margin: 8px auto 36px;
}
.law-search input {
  width: 100%;
  font-size: 14.5px;
  font-family: var(--sans);
  padding: 12px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.law-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.law-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 10px;
}
.law-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.18s;
}
.law-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}
.law-card[hidden] { display: none; }
.law-link {
  display: block;
  padding: 14px 18px;
  color: inherit;
}
.law-link:hover { color: inherit; }
.law-title {
  display: block;
  font-size: 14px;
  font-weight: 640;
  color: var(--ink);
  line-height: 1.55;
}
.law-card:hover .law-title { color: var(--primary-dark); }
.law-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}
.law-no {
  font-family: var(--mono);
  background: var(--bg-3);
  border-radius: 4px;
  padding: 1px 7px;
}
.law-pub { color: var(--muted); }
.law-chars { font-family: var(--mono); color: var(--muted-2); margin-left: auto; }

/* ---- 单篇原文 ---- */
.law-article {
  max-width: 780px;
  margin: 0 auto;
}
.law-head {
  padding: 28px 0 24px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 32px;
}
.law-cat {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}
.law-head h1 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 780;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}
.law-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 24px;
  margin-top: 20px;
}
.law-facts > div { display: flex; flex-direction: column; gap: 2px; }
.law-facts dt {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
.law-facts dd {
  font-size: 12.5px;
  color: var(--ink-2);
  font-family: var(--mono);
  word-break: break-all;
}
.law-facts dd a { color: var(--primary); }
.law-source-note {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--muted);
  padding: 10px 14px;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
}

/* 正文阅读排版：优先可读性 */
.law-body {
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
}
.law-body p {
  margin-bottom: 1.1em;
  text-align: justify;
  word-break: break-word;
}
/* 条款编号（第一条、第二章等）加粗，便于扫读 */
.law-body p:first-child { margin-top: 0; }

.law-related {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.law-related h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}
.law-related .tool-list {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (max-width: 640px) {
  .law-body { font-size: 14.5px; line-height: 1.9; }
  .law-list { grid-template-columns: 1fr; }
}


/* 「原文已核」做成可点链接时的样式 */
.kb-badge-link {
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.kb-badge-link:hover {
  background: rgba(5, 150, 105, 0.16);
  border-color: rgba(5, 150, 105, 0.4);
  color: var(--ok);
}


/* ---- 条文锚点与目录 ---- */
.law-toc {
  margin-bottom: 32px;
  padding: 18px 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.law-toc-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.law-toc ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 132px;
  overflow-y: auto;
}
.law-toc li a {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 8px;
  transition: all 0.15s;
}
.law-toc li a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* 条文块：支持 #art-47 精确定位 */
.law-article-block {
  position: relative;
  scroll-margin-top: 92px;
}
.law-article-block:target {
  background: rgba(37, 99, 235, 0.06);
  border-left: 3px solid var(--primary);
  margin-left: -16px;
  padding-left: 13px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.law-anchor {
  position: absolute;
  left: -26px;
  top: 0.35em;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--line-2);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}
.law-article-block:hover .law-anchor {
  opacity: 1;
  color: var(--primary);
}
/* 条文序号加粗以便扫读 */
.law-article-block p {
  margin-bottom: 1.1em;
}

@media (max-width: 900px) {
  .law-anchor { display: none; }
  .law-toc ul { max-height: 96px; }
}


/* ---- 结果区操作条（分享）---- */
.result-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.share-btn {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.24);
  transition: transform 0.12s, box-shadow 0.2s, opacity 0.2s;
}
.share-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}
.share-btn:disabled {
  opacity: 0.7;
  cursor: default;
}
.share-tip {
  font-size: 12px;
  color: var(--muted);
}


/* ============================================================
 * 问答题库（/faq/）
 * 目标：长列表可扫读 —— 问题本身就是导航，答案折叠
 * ============================================================ */

.faq-search { max-width: 620px; }

.faq-group { margin-top: 48px; }
.faq-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 4px;
}
.faq-group-head h2 {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-group-head p {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.faq-group[hidden] { display: none; }

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item[hidden] { display: none; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 34px 16px 0;
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary); }
/* 展开指示符 */
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 14px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--muted-2);
  transition: transform 0.2s, color 0.15s;
}
.faq-item[open] summary::after {
  content: '−';
  color: var(--primary);
}
.faq-item[open] summary { color: var(--primary-dark); }

.faq-a {
  padding: 0 34px 18px 0;
}
.faq-a p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}
.faq-src {
  margin-top: 10px;
  font-size: 12.5px;
}
.faq-src a { color: var(--primary); font-weight: 600; }

@media (max-width: 640px) {
  .faq-item summary { font-size: 14.5px; padding-right: 28px; }
  .faq-a { padding-right: 0; }
  .faq-group-head { flex-direction: column; gap: 4px; }
}


/* 工具页 FAQ 区标题行（带「查看全部问题」入口） */
.faq-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.faq-head a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* ============================================================
 * 专题组件（站点 → 专题 → 工具 三级结构）
 * ============================================================ */

/* ---- 站点导航：当前专题高亮 ---- */
.site-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ---- 首页：专题卡片网格 ---- */
.topic-grid {
  display: grid;
  /* 两列布局：4 个专题正好 2×2，视觉均衡。
     用 auto-fit 会在 3 列时变成「3+1」，第 4 张卡独占一行显得孤单。 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 860px) {
  .topic-grid { grid-template-columns: 1fr; }
}
.topic-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  transition: border-color 0.16s, box-shadow 0.2s, transform 0.16s;
}
.topic-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.topic-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
}
.topic-link:hover { color: inherit; }
.topic-ico {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--grad);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.24);
}
.topic-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.topic-head strong {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.35;
}
.topic-card:hover .topic-head strong { color: var(--primary-dark); }
.topic-head em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.topic-intro {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.8;
  /* 卡片高度不齐时保持底部对齐 */
  flex: 1;
}
.topic-tools {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.topic-tools li a {
  display: inline-block;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.topic-tools li a:hover {
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--primary-dark);
}
.topic-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--bg-3);
  font-size: 12px;
  color: var(--muted);
}
.topic-count { font-family: var(--mono); }
.topic-more {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---- 专题首页：Hero ---- */
.topic-hero {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 28px;
  padding: 34px 0 10px;
}
.topic-hero-ico {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--grad);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.26);
}
.topic-hero-body { min-width: 0; }
.topic-hero-sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.topic-hero h1 {
  margin-top: 0;
  font-size: clamp(27px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
}
.topic-hero-intro {
  margin-top: 14px;
  max-width: 44em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
}
.topic-hero-audience {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}
.topic-hero-audience b {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 4px;
  padding: 2px 7px;
}

/* ---- 专题：核心问题清单 ---- */
.question-list {
  list-style: none;
  display: grid;
  /* 用两列：问题数通常是 3-5 个，三列会出现「最后一行留空灰色格子」。
     两列 + 卡片自带边框，末行不齐也不露底色。 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.question-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px 16px 42px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.question-list li:hover {
  border-color: var(--primary-light);
  background: var(--bg-2);
}
.question-list li::before {
  content: "Q";
  position: absolute;
  left: 16px;
  top: 17px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}
.question-list a { color: var(--primary); }

/* ---- 专题：依据清单 ---- */
.basis-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.basis-list li {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
  padding-left: 22px;
  position: relative;
}
.basis-list li::before {
  content: "§";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}
.basis-list a {
  color: var(--primary);
  border-bottom: 1px solid rgba(37, 99, 235, 0.24);
}
.basis-list a:hover { border-bottom-color: var(--primary); }

/* ============================================================
 * 工具页组件（表单 / 结果 / 依据 / FAQ）
 * 与首页同一套视觉变量，保持品牌一致
 * ============================================================ */

/* ---- 面包屑 ---- */
.crumb {
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--primary); }
.crumb span { color: var(--ink-2); }

/* ---- 工具页标题区 ---- */
main > h1 {
  margin-top: 18px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.22;
}
main > .lede {
  margin-top: 14px;
  max-width: 46em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
}

/* ---- 工具箱 ---- */
.toolbox {
  margin-top: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tool-loading {
  padding: 40px 24px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---- 表单 ---- */
.tool-form {
  display: grid;
  /* auto-fit + flex 兜底：字段数不是列数整数倍时，最后一行会留空白格，
     且空白格显示的是 --line 背景色（灰块），很难看。
     改用 auto-fill 让末行空位不占背景，并配合 .field 自身白底 + 边框分隔。 */
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.field {
  background: #fff;
  padding: 18px 20px;
  border-right: 1px solid var(--bg-3);
  border-bottom: 1px solid var(--bg-3);
  /* 用自身边框代替父级 gap 露底色，末行空位不会再出现灰块 */
  margin-right: -1px;
  margin-bottom: -1px;
}
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.field input[type="number"],
.field input[type="text"],
.field select {
  width: 100%;
  font-family: var(--mono);
  font-size: 16px;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.hint {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.65;
}
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radio {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1.55;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background 0.15s;
}
.radio:hover { border-color: var(--primary-light); background: var(--bg-2); }
.radio input { margin-top: 3px; accent-color: var(--primary); flex: none; }
.radio:has(input:checked) {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

/* ---- 结果区 ---- */
.result { padding: 26px 22px 28px; }
.headline {
  border-left: 3px solid var(--primary);
  padding: 6px 0 6px 18px;
  margin-bottom: 22px;
}
.headline-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.headline-value {
  font-family: var(--mono);
  font-size: clamp(24px, 3.6vw, 34px);
  letter-spacing: -0.03em;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-top: 6px;
  font-weight: 700;
}

.rows {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.row {
  display: grid;
  grid-template-columns: minmax(130px, 250px) 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.row dt { font-size: 13px; color: var(--muted); }
.row dd { margin: 0; }
.row .v {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}
.row .n {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.65;
  font-family: var(--sans);
  font-weight: 400;
}

/* ---- 结果表格 ---- */
.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 460px;
}
th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 11px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  color: var(--ink-2);
  font-size: 12px;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-2); }

/* ---- 警告 / 提示 ---- */
.warnings {
  list-style: none;
  margin-top: 24px;
  padding: 16px 18px;
  background: rgba(217, 119, 6, 0.05);
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: var(--radius);
  display: grid;
  gap: 9px;
}
.warnings li {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.75;
  padding-left: 18px;
  position: relative;
}
.warnings li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.16);
  color: var(--warn);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.callout {
  margin-top: 24px;
  border-left: 3px solid var(--primary-light);
  background: var(--bg-2);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.8;
}
.callout.warn {
  border-left-color: var(--warn);
  background: rgba(217, 119, 6, 0.05);
}

/* ---- 依据 / FAQ ---- */
.basis, .faq { margin-top: 56px; }
.basis h2, .faq h2 {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.basis ul {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.basis li {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}
.basis li::before {
  content: "§";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}
.basis a { color: var(--primary); border-bottom: 1px solid rgba(37, 99, 235, 0.24); }
.basis a:hover { border-bottom-color: var(--primary); }
.basis .meta {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 28px;
  line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: -1px;
  font-family: var(--mono);
  color: var(--primary);
  font-size: 18px;
  font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq-a {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.9;
  margin-top: 10px;
  max-width: 720px;
}

/* ---- 知识库说明 ---- */
.kb-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-content: flex-start; }
  .spec-card { max-width: 100%; }
  .trust-grid { grid-template-columns: 1fr; }
  .sec, .sec-trust { margin-top: 64px; }
}
@media (max-width: 760px) {
  .question-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .head-inner {
    padding: 10px 16px;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
  }
  .brand { flex: none; }
  .brand-logo { height: 28px; }
  .brand-divider, .brand-product { display: none; }
  /* 导航不换行、横向可滑，避免把 logo 挤成两行 */
  .site-nav {
    gap: 16px;
    font-size: 13px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-left: auto;
    padding-left: 4px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; white-space: nowrap; }
  main { padding: 0 16px 64px; }
  .hero h1 { font-size: 27px; }
  .hero-lede { font-size: 14.5px; }
  .hero-stats { gap: 26px; margin-top: 32px; }
  .hero-stats b { font-size: 22px; }
  .tool-list { grid-template-columns: 1fr; }
  .foot-inner { padding: 32px 16px 40px; }
}