/* ==========================================================================
   摩托保指南 · 站点样式表
   设计基调：编辑部式排版（editorial），纸感底色 + 单一强调色 + 细分割线
   零依赖、无构建步骤，可直接部署到任意静态托管
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 色板 */
  --paper: #faf8f4;
  --paper-2: #f2ede4;
  --paper-3: #eae4d9;
  --ink: #15171b;
  --ink-2: #3c4149;
  --muted: #727880;
  --rule: #e0dbd0;
  --rule-2: #cdc6b8;
  --accent: #c2410c;
  --accent-ink: #8a2e08;
  --accent-soft: #fdf1e9;
  --teal: #0f5257;
  --teal-soft: #eaf2f2;
  --warn: #a16207;
  --warn-soft: #fdf6e3;

  /* 字体：中文优先系统字体，避免第三方字体阻塞与国内加载失败 */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas,
    "Liberation Mono", Menlo, monospace;

  /* 尺寸 */
  --wrap: 1120px;
  --measure: 37em;
  --head-h: 64px;

  --shadow-sm: 0 1px 2px rgba(21, 23, 27, 0.05);
  --shadow-md: 0 1px 2px rgba(21, 23, 27, 0.04), 0 10px 28px -14px rgba(21, 23, 27, 0.16);
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-ink);
}

::selection {
  background: #f6d9c8;
  color: var(--ink);
}

/* 键盘可见焦点，禁止用 outline:none 抹掉 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* 跳转链接：仅在聚焦时可见 */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 0 0 4px 0;
}

.skip:focus {
  left: 0;
}

/* ---------- 3. 顶栏 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.masthead-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--head-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-name em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
  margin-left: 6px;
  letter-spacing: 0.04em;
}

/* 配置里没填副名时不留空隙 */
.brand-name em:empty {
  display: none;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.topnav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  padding: 6px 11px;
  border-radius: 3px;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.topnav a:hover {
  color: var(--ink);
  background: var(--paper-2);
}

.topnav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
}

.nav-btn {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- 4. 面包屑 ---------- */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 22px;
  padding-bottom: 0;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.crumbs span[aria-hidden] {
  color: var(--rule-2);
}

/* ---------- 5. 页头 ---------- */
.page-head {
  padding-top: 20px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--rule);
}

.kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-head h1 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: -0.022em;
  font-weight: 800;
  max-width: 20em;
}

.lead {
  margin: 0 0 20px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 34em;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* 分隔点放在后一项之前，换行时不会孤零零留在行尾 */
.meta span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rule-2);
  margin-right: 14px;
  vertical-align: middle;
}

/* ---------- 6. 文章布局：正文 + 侧边目录 ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 216px;
  gap: 64px;
  padding-top: 44px;
  padding-bottom: 24px;
  align-items: start;
}

.prose {
  max-width: var(--measure);
  min-width: 0;
}

/* 单栏版式（无侧边目录时使用） */
.layout--single {
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
}

.layout--single .prose {
  width: 100%;
  max-width: 43em;
}

.layout--single .prose > h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

/* 目录 */
.toc {
  position: sticky;
  top: calc(var(--head-h) + 28px);
  font-size: 13.5px;
  line-height: 1.6;
  border-left: 1px solid var(--rule);
  padding-left: 18px;
}

.toc-h {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin-bottom: 7px;
}

.toc a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 2px 0 2px 0;
  border-left: 2px solid transparent;
  margin-left: -20px;
  padding-left: 18px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero) " ";
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--rule-2);
  margin-right: 5px;
}

.toc a:hover {
  color: var(--ink);
}

.toc a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}

/* ---------- 7. 正文排版 ---------- */
.prose > p,
.prose > ul,
.prose > ol,
.prose > dl,
.prose > blockquote {
  margin: 0 0 1.15em;
}

.prose > p {
  color: var(--ink-2);
}

.prose h2 {
  margin: 2.4em 0 0.9em;
  padding-top: 0.75em;
  border-top: 1px solid var(--rule);
  font-size: 1.42rem;
  line-height: 1.45;
  letter-spacing: -0.012em;
  font-weight: 700;
  scroll-margin-top: calc(var(--head-h) + 20px);
}

.prose h2::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--accent);
  margin-right: 11px;
  vertical-align: 0.12em;
}

.prose h3 {
  margin: 1.9em 0 0.55em;
  font-size: 1.09rem;
  font-weight: 700;
  line-height: 1.55;
}

.prose h4 {
  margin: 1.5em 0 0.4em;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.prose strong {
  font-weight: 700;
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose li {
  margin-bottom: 0.5em;
  color: var(--ink-2);
}

.prose li::marker {
  color: var(--accent);
}

.prose ul li::marker {
  content: "— ";
  font-size: 0.9em;
}

.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--rule-2);
  color: var(--muted);
  font-size: 0.97rem;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.6em 0;
}

/* 正文内链接 */
.prose p a,
.prose li a,
.prose dd a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: #e8b69c;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose p a:hover,
.prose li a:hover {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* ---------- 8. 表格 ---------- */
.table-scroll {
  overflow-x: auto;
  margin: 1.5em 0 1.7em;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px 0;
  font-size: 12.5px;
  color: var(--muted);
}

th,
td {
  padding: 11px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

thead th {
  background: var(--paper-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 1px solid var(--rule-2);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fdfbf7;
}

td strong {
  color: var(--ink);
  white-space: nowrap;
}

.num {
  font-family: var(--font-mono);
  font-size: 13.5px;
  white-space: nowrap;
}

/* 省级对照表：列多，给最小宽度，避免数字被压成两行 */
.table-scroll--wide {
  max-height: min(72vh, 620px);
  overflow: auto;
}

.table-scroll--wide table {
  min-width: 600px;
}

/* 数字列居中，六列并排时比左对齐整齐得多 */
.table-scroll--wide th:not(:first-child),
.table-scroll--wide td {
  text-align: center;
}

.table-scroll--wide thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* 横向滚动时把「地区」列钉在左边，否则滚到右边就不知道在看哪个省 */
.table-scroll--wide thead th:first-child,
.table-scroll--wide tbody th.prov {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 1px 0 0 var(--rule);
}

.table-scroll--wide thead th:first-child {
  z-index: 3;
  background: var(--paper-2);
}

.prov {
  font-weight: 600;
  white-space: nowrap;
}

.prov-s {
  display: inline-block;
  margin-left: 7px;
  padding: 0 5px;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  vertical-align: 1px;
}

/* 执行上浮费率的地区，用强调色挑出来 */
td.hi {
  color: var(--accent-ink);
  font-weight: 600;
}

td.total {
  color: var(--ink);
  font-weight: 600;
}

tr[hidden] {
  display: none;
}

/* 表格筛选：输入框由脚本注入，无 JS 时不出现空控件 */
.table-tools {
  margin: 1.5em 0 -0.7em;
}

.table-tools:empty {
  display: none;
}

.table-filter {
  width: 100%;
  max-width: 260px;
  padding: 9px 12px;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}

.table-filter::placeholder {
  color: var(--muted);
}

.filter-count {
  margin: 7px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.table-note {
  margin-top: -0.8em;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 9. 提示框 ---------- */
.callout {
  margin: 1.6em 0;
  padding: 16px 20px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.callout p:first-child {
  margin-top: 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout b,
.callout strong {
  color: var(--ink);
}

.callout-t {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.callout--tip {
  background: var(--teal-soft);
  border-left-color: var(--teal);
}

.callout--tip .callout-t {
  color: var(--teal);
}

.callout--warn {
  background: var(--warn-soft);
  border-left-color: var(--warn);
}

.callout--warn .callout-t {
  color: var(--warn);
}

/* ---------- 10. 步骤列表 ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 1.6em 0;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 1.15em;
  min-height: 32px;
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 32px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-align: left;
  letter-spacing: -0.02em;
}

.steps > li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 1.9em;
  bottom: -0.9em;
  width: 1px;
  background: var(--rule);
}

.steps > li:last-child::after {
  display: none;
}

.steps b {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
  color: var(--ink);
}

/* ---------- 11. 关键数字卡片 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin: 1.7em 0;
  overflow: hidden;
}

.stat {
  background: #fff;
  padding: 16px 18px;
}

.stat-k {
  display: block;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat-v {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-n {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- 12. 双列对比卡 ---------- */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 1.7em 0;
}

.duo-card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 18px 20px;
  background: #fff;
}

.duo-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.duo-card ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: 14px;
}

.duo-card li {
  margin-bottom: 4px;
}

.duo-card--accent {
  border-color: #ecc4ab;
  background: var(--accent-soft);
}

/* ---------- 13. 相关阅读卡片 ---------- */
.related {
  padding-top: 40px;
  padding-bottom: 8px;
}

.related-h {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cards li {
  margin: 0;
}

.cards a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  padding: 18px 20px;
  background: #fff;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.cards a:hover {
  background: var(--paper-2);
}

.card-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-t {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.card-d {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 14. FAQ ---------- */
.faq {
  padding-top: 40px;
  padding-bottom: 20px;
}

.faq-h {
  margin: 0 0 4px;
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.faq-list {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-a {
  padding: 0 0 18px;
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 40em;
}

.faq-a a {
  color: var(--accent);
}

/* ---------- 15. 行动区 ---------- */
.cta {
  margin-top: 48px;
  margin-bottom: 64px;
}

.cta-inner {
  background: var(--ink);
  color: #f4f1ea;
  border-radius: 5px;
  padding: 38px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 34px solid rgba(194, 65, 12, 0.22);
  pointer-events: none;
}

.cta .kicker {
  color: #f0a179;
  margin-bottom: 10px;
}

.cta h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.5;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: #fff;
  max-width: 26em;
}

.cta p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: #b8b3a9;
  max-width: 34em;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 3px;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #a8370a;
  color: #fff;
}

.btn-ghost {
  border: 1px solid #4a4f57;
  color: #ddd8cf;
}

.btn-ghost:hover {
  border-color: #8b9099;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- 16. 页脚 ---------- */
.foot {
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  padding-top: 44px;
  margin-top: 24px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.9fr;
  gap: 40px;
  padding-bottom: 36px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.foot-mark {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.foot-note {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 34em;
}

.foot-contact {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.foot-contact a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
}

.foot-contact a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.foot-h {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.foot-col a {
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.5;
}

.foot-col a:hover {
  color: var(--accent);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 28px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--muted);
}

.foot-base p {
  margin: 0;
}

.foot-base a {
  color: var(--muted);
  text-decoration: none;
}

.foot-base a:hover {
  color: var(--accent);
}

/* 页脚微信号：等宽字显示，点击即复制 */
.wx-id {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  white-space: nowrap;
}

.wx-id.is-copyable {
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.wx-id.is-copyable:hover,
.wx-id.is-copyable:focus-visible,
.wx-id.is-copied {
  color: var(--accent);
  border-color: var(--accent);
}

.wx-id.is-copied::after {
  content: " 已复制";
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0;
}

.wx-sep {
  margin: 0 2px;
  color: var(--muted);
}

/* 免责声明条 */
.disclaimer {
  background: var(--paper-3);
  border-top: 1px solid var(--rule-2);
  padding: 14px 0;
  font-size: 12px;
  line-height: 1.7;
  color: #5d6268;
}

.disclaimer p {
  margin: 0;
}

/* ---------- 17. 首页专用 ---------- */
.hero {
  padding-top: 52px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(1.9rem, 4.4vw, 3.05rem);
  line-height: 1.26;
  letter-spacing: -0.028em;
  font-weight: 800;
  max-width: 18em;
}

/* 中文标题避免把「交强险」这类固定词从中间拆行 */
.nw {
  white-space: nowrap;
}

.hero .lead {
  font-size: 1.12rem;
  max-width: 32em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions .btn-primary {
  padding: 12px 24px;
}

.hero-actions .btn-outline {
  padding: 12px 24px;
  border: 1px solid var(--rule-2);
  color: var(--ink);
  background: #fff;
}

.hero-actions .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 首页目录卡片 */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  list-style: none;
  padding: 0;
  margin: 2em 0;
}

.index-grid li {
  margin: 0;
}

.index-grid a {
  display: block;
  height: 100%;
  padding: 22px 24px;
  background: #fff;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.index-grid a:hover {
  background: var(--paper-2);
}

.index-grid .card-t {
  display: block;
  font-size: 16.5px;
  margin: 6px 0 5px;
}

.index-grid .card-d {
  display: block;
}

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .toc {
    display: none;
  }

  .prose {
    max-width: none;
  }

  .cta-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16.5px;
  }

  .nav-btn {
    display: inline-block;
  }

  .topnav {
    display: none;
    position: absolute;
    top: var(--head-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px 16px 14px;
    box-shadow: var(--shadow-md);
  }

  .topnav.is-open {
    display: flex;
  }

  .topnav a {
    padding: 11px 8px;
    border-radius: 0;
    border-bottom: 1px solid var(--rule);
    font-size: 15px;
  }

  .topnav a:last-child {
    border-bottom: 0;
  }

  .masthead-row {
    position: relative;
    gap: 12px;
  }

  .page-head {
    padding-bottom: 26px;
  }

  .layout {
    padding-top: 32px;
  }

  .cta-inner {
    padding: 26px 22px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .foot-base {
    flex-direction: column;
  }

  .hero {
    padding-top: 36px;
  }

  .prose h2 {
    font-size: 1.28rem;
  }

  table {
    font-size: 13.5px;
  }

  th,
  td {
    padding: 9px 12px;
  }

  .related,
  .faq {
    padding-top: 32px;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding: 0 18px;
  }

  .brand-name em {
    display: none;
  }
}

/* 窄屏：省级表收紧列宽，简称标签让位给数字 */
@media (max-width: 600px) {
  /* 元信息会折行，去掉分隔点改用间距，避免圆点孤零零挂在行首或行尾 */
  .meta span + span::before {
    display: none;
  }

  .meta {
    gap: 4px 18px;
  }

  .table-scroll--wide table {
    min-width: 500px;
  }

  .table-scroll--wide th,
  .table-scroll--wide td {
    padding: 9px 8px;
  }

  .prov-s {
    display: none;
  }
}

/* ---------- 19. 打印 ---------- */
@media print {
  .masthead,
  .toc,
  .cta,
  .related,
  .foot,
  .nav-btn {
    display: none !important;
  }

  body {
    background: #fff;
    font-size: 11pt;
  }

  .prose {
    max-width: none;
  }

  /* 打印时表格整张摊开，不做内部滚动 */
  .table-scroll,
  .table-scroll--wide {
    max-height: none;
    overflow: visible;
  }

  .table-tools {
    display: none;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}

/* ---------- 20. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
