/* ===========================================================
   疟疾与工伤认定专题 · 二级页面共享样式
   设计令牌与首页保持一致（品牌红 #9E1B24 / 墨色 #252525）
   =========================================================== */

:root {
  --brand-red: #9E1B24;
  --brand-red-dark: #7A151C;
  --brand-red-light: #B52B34;
  --ink-900: #252525;
  --ink-700: #444444;
  --ink-500: #666666;
  --ink-300: #8A8A8A;
  --slate-blue: #34445A;
  --slate-blue-light: #4A5D78;
  --paper: #FFFFFF;
  --paper-warm: #F6F6F6;
  --paper-tint: #FAF7F7;
  --border: #E5E5E5;
  --border-strong: #D4D4D4;
  --shadow-sm: 0 1px 2px rgba(37, 37, 37, 0.06);
  --shadow-md: 0 8px 24px rgba(37, 37, 37, 0.08);
  --shadow-lg: 0 18px 40px rgba(37, 37, 37, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --radius: 6px;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-700);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--brand-red);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ---------- 顶部站点条 ---------- */
.site-topbar {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}
.site-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 38px;
  flex-wrap: wrap;
}
.site-topbar a:hover { color: #fff; }

/* ---------- 主导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--brand-red);
  color: #fff;
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand-text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink-900);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.brand-text span {
  display: block;
  font-size: 12px;
  color: var(--ink-500);
  letter-spacing: 0.14em;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--ink-700);
  border-radius: 4px;
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.main-nav a:hover { color: var(--brand-red); background: var(--paper-tint); }
.main-nav a[aria-current="page"] {
  color: var(--brand-red);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--brand-red);
  border-radius: 0;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  cursor: pointer;
  color: var(--ink-900);
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- 页面头图 ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(120deg, var(--brand-red-dark) 0%, var(--brand-red) 58%, #A8232C 100%);
  color: #fff;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, rgba(255,255,255,0.07) 0 2px, transparent 2px 100%);
  background-size: 120px 100%;
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
  padding-top: 54px;
  padding-bottom: 54px;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.page-hero .lead {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
}
.page-hero .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
  color: var(--ink-500);
}
.breadcrumb a:hover { color: var(--brand-red); }
.breadcrumb .sep { color: var(--ink-300); }
.breadcrumb [aria-current] { color: var(--ink-900); }

/* ---------- 正文布局 ---------- */
.page-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 44px;
  padding-bottom: 72px;
}

.side-nav {
  position: sticky;
  top: 104px;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.side-nav h2 {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--ink-500);
  font-weight: 600;
  margin-bottom: 12px;
}
.side-nav ol { counter-reset: toc; }
.side-nav li { counter-increment: toc; }
.side-nav a {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-700);
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: all 0.2s var(--ease-out);
}
.side-nav a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--ink-300);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.side-nav a:hover {
  color: var(--brand-red);
  background: #fff;
  border-left-color: var(--brand-red);
}
.side-nav a.is-active {
  color: var(--brand-red);
  font-weight: 600;
  background: #fff;
  border-left-color: var(--brand-red);
}
.side-nav .side-cta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-strong);
  font-size: 13px;
  color: var(--ink-500);
}
.side-nav .side-cta a { color: var(--brand-red); font-weight: 600; }

/* ---------- 区块 ---------- */
.section { margin-bottom: 56px; scroll-margin-top: 96px; }
.section:last-child { margin-bottom: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--ink-900);
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: 0.02em;
}
.section-head .en {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-300);
  text-transform: uppercase;
}
.section-head .count {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-500);
}

.sub-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 18px;
}
.sub-head:first-child { margin-top: 0; }
.sub-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
}
.sub-head .tag {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--paper-tint);
  color: var(--brand-red);
  border: 1px solid #EED9DB;
}

/* ---------- 法规卡片 ---------- */
.law-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.law-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.law-card > summary {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s var(--ease-out);
}
.law-card > summary::-webkit-details-marker { display: none; }
.law-card > summary:hover { background: var(--paper-tint); }
.law-card[open] > summary { background: var(--paper-tint); }
.law-index {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  background: var(--brand-red);
  color: #fff;
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
}
.law-title { flex: 1; min-width: 0; }
.law-title h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.5;
}
.law-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-500);
}
.law-meta span { display: inline-flex; gap: 4px; }
.law-meta b { font-weight: 500; color: var(--ink-300); }
.status {
  flex-shrink: 0;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 3px;
  background: #E8F3EC;
  color: #1E7A45;
  border: 1px solid #C7E3D2;
  white-space: nowrap;
}
.status.is-other { background: var(--paper-warm); color: var(--ink-500); border-color: var(--border-strong); }
.caret {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--ink-300);
  transition: transform 0.25s var(--ease-out);
  align-self: center;
}
.law-card[open] .caret { transform: rotate(180deg); }

.law-body {
  padding: 4px 22px 24px;
  border-top: 1px solid var(--border);
}
.law-summary {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-700);
  padding-top: 16px;
}
.article-list { margin-top: 16px; display: grid; gap: 12px; }
.article-item {
  background: var(--paper-warm);
  border-left: 3px solid var(--brand-red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
}
.article-item h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.article-item p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-700);
}
.law-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-500);
  padding: 10px 14px;
  background: var(--paper-tint);
  border: 1px dashed #E3C9CC;
  border-radius: 4px;
}

/* ---------- 筛选条 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.filter-bar .label { font-size: 13px; color: var(--ink-500); margin-right: 2px; }
.filter-btn {
  padding: 7px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink-700);
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.filter-btn:hover { border-color: var(--brand-red); color: var(--brand-red); }
.filter-btn.is-active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  font-weight: 600;
}

/* ---------- 案例卡片 ---------- */
.case-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease-out);
}
.case-card:hover { box-shadow: var(--shadow-md); }
.case-card > summary {
  display: grid;
  gap: 12px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
}
.case-card > summary::-webkit-details-marker { display: none; }
.case-card > summary:hover { background: var(--paper-tint); }
.case-card[open] > summary { background: var(--paper-tint); }
.case-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.case-cat {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--slate-blue);
  color: #fff;
}
.case-cat.c2 { background: #6A4A7A; }
.case-cat.c3 { background: #2F6B62; }
.case-cat.c4 { background: #8A5A20; }
.case-no {
  font-size: 13px;
  color: var(--ink-500);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.case-card h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.55;
}
.case-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 13px;
  color: var(--ink-500);
}
.case-quick b { font-weight: 500; color: var(--ink-300); }
.case-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--brand-red);
}
.case-flag svg { width: 16px; height: 16px; }
.case-body {
  padding: 4px 24px 26px;
  border-top: 1px solid var(--border);
}
.case-block { padding-top: 18px; }
.case-block h5 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 8px;
}
.case-block h5::before {
  content: "";
  width: 3px; height: 14px;
  background: var(--brand-red);
  border-radius: 2px;
}
.case-block p, .case-block li {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-700);
}
.case-block ul { display: grid; gap: 8px; }
.case-block li {
  padding-left: 18px;
  position: relative;
}
.case-block li::before {
  content: "";
  position: absolute;
  left: 4px; top: 12px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-red);
}
.quote {
  padding: 14px 18px;
  background: var(--paper-warm);
  border-left: 3px solid var(--slate-blue);
  border-radius: 0 4px 4px 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-700);
}
.quote + .quote { margin-top: 10px; }
.keywords { display: flex; flex-wrap: wrap; gap: 6px; }
.keywords span {
  font-size: 12.5px;
  padding: 3px 10px;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--ink-500);
}

/* ---------- 问答 ---------- */
.qa-search {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 26px;
}
.qa-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink-900);
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.qa-search input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(158, 27, 36, 0.12);
}
.qa-search .hint { font-size: 13px; color: var(--ink-500); white-space: nowrap; }

.qa-group { margin-bottom: 14px; }
.qa-group > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s var(--ease-out);
}
.qa-group > summary::-webkit-details-marker { display: none; }
.qa-group > summary:hover { background: #EFEFEF; }
.qa-group[open] > summary {
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom-color: transparent;
}
.qa-group-index {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-red);
  flex-shrink: 0;
}
.qa-group > summary h3 {
  flex: 1;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink-900);
}
.qa-group-body {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 6px 20px 20px;
}
.qa-item {
  border-bottom: 1px dashed var(--border);
  padding: 16px 0;
}
.qa-item:last-child { border-bottom: none; }
.qa-item > summary {
  display: flex;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  align-items: flex-start;
}
.qa-item > summary::-webkit-details-marker { display: none; }
.qa-item > summary:hover .q-text { color: var(--brand-red); }
.q-num {
  flex-shrink: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--brand-red);
  font-weight: 600;
  padding-top: 3px;
}
.q-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.7;
  transition: color 0.2s var(--ease-out);
}
.qa-answer { padding: 12px 0 4px 46px; }
.qa-answer p { font-size: 15px; line-height: 1.9; color: var(--ink-700); }
.qa-answer p + p { margin-top: 10px; }
.qa-answer .q-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-red);
  margin-bottom: 4px;
}
.qa-answer .q-label.tip { color: var(--slate-blue); }
.qa-answer .q-label.law { color: #1E7A45; }
.qa-answer strong { color: var(--ink-900); }

/* ---------- 流程/指引 ---------- */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.step-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand-red);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step-card .num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  color: #EED9DB;
  line-height: 1;
  margin-bottom: 8px;
}
.step-card h4 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 8px;
}
.step-card p { font-size: 14.5px; line-height: 1.8; color: var(--ink-700); }
.step-card .basis {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
  color: var(--ink-500);
}

.checklist { display: grid; gap: 12px; }
.checklist li {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  background: var(--paper-warm);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.8;
}
.checklist li svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--brand-red);
  margin-top: 4px;
}
.checklist li b { color: var(--ink-900); font-weight: 600; }

.callout {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  background: var(--paper-tint);
  border: 1px solid #EED9DB;
  border-left: 4px solid var(--brand-red);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 24px;
}
.callout svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--brand-red); margin-top: 3px; }
.callout h4 { font-size: 15.5px; font-weight: 700; color: var(--ink-900); margin-bottom: 6px; }
.callout p { font-size: 14.5px; line-height: 1.85; color: var(--ink-700); }

/* ---------- 文章正文 ---------- */
.prose { max-width: 820px; }
.prose p {
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--ink-700);
  margin-bottom: 18px;
  text-align: justify;
}
.prose h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 32px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--brand-red);
}
.prose h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 24px 0 10px;
}
.prose blockquote {
  padding: 4px 0 4px 18px;
  margin: 18px 0;
  border-left: 3px solid var(--slate-blue);
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink-500);
}
.prose ul { display: grid; gap: 10px; margin-bottom: 18px; }
.prose ul li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.85;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-red);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-500);
}

/* ---------- 分页/上下篇 ---------- */
.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding-top: 28px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.page-nav a { color: var(--brand-red); }
.page-nav a:hover { text-decoration: underline; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 52px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.footer-grid li + li { margin-top: 8px; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { line-height: 1.85; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 30;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--ink-700);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s var(--ease-out);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .page-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .side-nav {
    position: static;
    order: -1;
  }
  .side-nav ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .side-nav a { border-left: none; border-radius: 4px; padding: 6px 12px; }
  .side-nav a.is-active, .side-nav a:hover { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 8px; }
  .main-nav a { padding: 12px 14px; }
  .main-nav a[aria-current="page"] { box-shadow: none; background: var(--paper-tint); }
  .menu-toggle { display: grid; }
  .site-header .container { min-height: 64px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .page-hero .container { padding-top: 40px; padding-bottom: 40px; }
  .page-body { padding-top: 32px; padding-bottom: 52px; }
  .section-head h2 { font-size: 21px; }
  .law-card > summary, .case-card > summary { padding: 18px; }
  .law-body, .case-body { padding-left: 18px; padding-right: 18px; }
  .qa-answer { padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .to-top { right: 16px; bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
