/* AI 滥用案例库 · 编辑体视觉系统
   纸色底、深褐顶栏、砖色点缀。不用警报红、国旗或黑客意象。 */
:root {
  --bg: #f4f0e8;
  --bg-deep: #ebe4d8;
  --surface: #fffcf7;
  --ink: #1c1916;
  --ink-soft: #5c564e;
  --line: #ddd4c6;
  --line-strong: #c9bead;
  --accent: #9a3412;
  --accent-hover: #7c2d12;
  --accent-soft: #f4e4d8;
  --gold: #b0894a;
  --header: #171512;
  --header-text: #f4efe6;
  --ok: #2f5d45;
  --ok-bg: #e7f0ea;
  --unk-bg: #f1ece3;
  --warn-bg: #f7eee4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 25, 22, 0.04), 0 8px 24px rgba(28, 25, 22, 0.05);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --header-h: 64px;
}

/* 中文 */
html[lang="zh-Hans"] {
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
}

/* 日本語 */
html[lang="ja"] {
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --font-serif: "Noto Serif JP", "Yu Mincho", "MS Mincho", Georgia, serif;
}

/* 阿拉伯语 RTL */
html[lang="ar"] {
  --font-sans: "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-serif: "Noto Naskh Arabic", "Traditional Arabic", Georgia, serif;
}
html[dir="rtl"] { text-align: right; }
html[dir="rtl"] .wrap { direction: rtl; }
html[dir="rtl"] ol, html[dir="rtl"] ul { padding-right: 1.4em; padding-left: 0; }
html[dir="rtl"] .breadcrumb ol { padding-right: 0; }
html[dir="rtl"] .step-n, html[dir="rtl"] .topic-n, html[dir="rtl"] .pick-n { margin-left: 12px; margin-right: 0; }
html[dir="rtl"] .main-nav { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .stat-row li { border-right: 0; border-left: 1px solid var(--line-strong); }
html[dir="rtl"] .stat-row li:last-child { border-left: 0; }
html[dir="rtl"] .breadcrumb li + li::before { margin-right: 0; margin-left: 8px; }
html[dir="rtl"] .lang-select select { background-position: left 10px center; padding-left: 28px; padding-right: 12px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  font-feature-settings: "palt" 1;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
main.wrap { padding-top: 28px; padding-bottom: 80px; }
main.wrap.article { max-width: 780px; }
main.wrap.article:has(.case-layout) { max-width: 1180px; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, label:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--ink);
}
h1 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); margin: 0.15em 0 0.5em; }
h2 {
  font-size: 1.35rem;
  margin: 2.4em 0 0.7em;
  padding-top: 0.2em;
  border-top: none;
}
h3 { font-size: 1.08rem; margin: 1.3em 0 0.4em; font-weight: 600; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 42em; }
.fine { font-size: 0.84rem; color: var(--ink-soft); }
.hero-kicker {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin: 0 0 10px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 8px 16px; z-index: 20;
}
.skip:focus { left: 12px; top: 12px; }

.logo-mark { width: 22px; height: 22px; flex: none; display: block; }

/* ----- Header ----- */
.site-header {
  background: var(--header);
  color: var(--header-text);
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(244, 239, 230, 0.08);
}
.header-row {
  display: flex; align-items: center; gap: 16px;
  min-height: var(--header-h);
  padding: 0 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--header-text); font-weight: 700; font-size: 1.02rem;
  text-decoration: none; letter-spacing: 0.02em;
}
.brand:hover { color: #fff; text-decoration: none; }
.brand-text { font-family: var(--font-serif); }
.brand-sub {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em;
  color: var(--gold); border: 1px solid rgba(176, 137, 74, 0.45);
  border-radius: 999px; padding: 2px 8px; text-transform: uppercase;
}
.main-nav { display: flex; gap: 4px 6px; margin-left: auto; align-items: center; }
.main-nav a {
  color: rgba(244, 239, 230, 0.78);
  text-decoration: none;
  padding: 8px 12px;
  font-size: 0.92rem;
  border-radius: 999px;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-search {
  color: var(--header) !important;
  background: var(--gold) !important;
  font-weight: 700;
}
.nav-search:hover { filter: brightness(1.08); color: var(--header) !important; }

/* Language selector in nav */
.lang-select select {
  background: rgba(255,255,255,0.08);
  color: var(--header-text);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 7px 28px 7px 12px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b0894a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.lang-select select:hover { background-color: rgba(255,255,255,0.12); }
.lang-select select option { background: var(--header); color: var(--header-text); }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

@media (max-width: 720px) {
  .brand-sub { display: none; }
  .lang-select { margin-left: auto; margin-right: 8px; }
  .lang-select select {
    padding: 8px 28px 8px 10px;
    font-size: 0.85rem;
  }
  .nav-toggle-label {
    display: flex; width: 40px; height: 40px;
    align-items: center; justify-content: center; cursor: pointer;
    border-radius: 8px;
  }
  .nav-toggle-label::before {
    content: ""; width: 18px; height: 2px; background: var(--header-text);
    box-shadow: 0 -6px 0 var(--header-text), 0 6px 0 var(--header-text);
  }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--header); flex-direction: column; padding: 12px 20px 20px;
    border-bottom: 1px solid rgba(244,239,230,0.08);
  }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .main-nav a { padding: 10px 12px; }
}

/* ----- Breadcrumb ----- */
.breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 4px;
  padding: 0; margin: 0 0 18px; font-size: 0.82rem; color: var(--ink-soft);
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }

/* ----- Cards & grids ----- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin: 16px 0 32px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(28,25,22,0.06), 0 12px 32px rgba(28,25,22,0.07); }
.card h3, .card h2 { margin: 0.15em 0 0.45em; padding: 0; border: 0; font-size: 1.12rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0.35em 0; color: var(--ink-soft); font-size: 0.95rem; }
.card-kicker {
  font-size: 0.75rem; letter-spacing: 0.08em; font-weight: 700;
  color: var(--gold); margin: 0 0 8px;
}
.card-summary {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-more { margin-top: 14px !important; font-size: 0.88rem !important; font-weight: 600; }
.section-note { color: var(--ink-soft); font-size: 0.95rem; max-width: 40em; }
.section-head { margin-bottom: 8px; }
.section-head h2 { margin-top: 0; }
.count-note {
  font-size: 0.9rem; color: var(--ink-soft);
  background: var(--unk-bg); border-radius: 8px; padding: 10px 16px;
  border-left: 3px solid var(--gold);
}

/* topic color ticks — not flags, just a quiet identity */
.topic-card::before,
.case-card::before,
.pick-card::before,
.fact-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--gold);
}
.topic-cyber-operations::before { background: #3d5a73; }
.topic-influence-operations::before { background: #b0894a; }
.topic-surveillance-operations::before { background: #6b4c7a; }
.topic-conventional-weapons::before { background: #4d5c3a; }
.topic-biological-misuse::before { background: #2f5d45; }
.topic-scams-and-fraud::before { background: #9a3412; }
.topic-illicit-distillation::before { background: #57534e; }

/* ----- Home ----- */
.page-home main.wrap { padding-top: 8px; }
.hero {
  padding: 48px 0 28px;
  max-width: 820px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.35rem); line-height: 1.18; margin-bottom: 0.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0 8px; }
.hero-lang-hint { font-size: 0.85rem; color: var(--ink-soft); margin: 8px 0 0; }
.hero-lang-hint a { color: var(--accent); text-decoration: none; }
.hero-lang-hint a:hover { text-decoration: underline; }
.search-box {
  display: flex; gap: 0; flex: 1; min-width: min(100%, 420px); max-width: 560px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 999px; overflow: hidden; box-shadow: var(--shadow);
}
.search-box input {
  flex: 1; font-size: 1rem; padding: 12px 18px; border: 0;
  background: transparent; color: var(--ink); font-family: inherit;
}
.search-box input:focus { outline: none; }
.search-box button, .btn {
  font-family: inherit; font-size: 0.95rem; font-weight: 700;
  padding: 12px 22px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; display: inline-block;
  text-decoration: none; border-radius: 999px;
}
.search-box button { border-radius: 0 999px 999px 0; }
.btn:hover, .search-box button:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); }

.stat-row {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0;
  padding: 22px 0 8px; margin: 28px 0 12px;
  border-top: 1px solid var(--line); max-width: none;
}
.stat-row li {
  flex: 1 1 140px;
  padding: 4px 20px 4px 0;
  border-right: 1px solid var(--line);
}
.stat-row li:last-child { border-right: 0; }
.stat-row strong {
  display: block; font-family: var(--font-serif);
  font-size: 1.7rem; line-height: 1.2; color: var(--ink);
}
.stat-row span { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.04em; }

.band { margin: 48px -24px; padding: 36px 24px; background: var(--bg-deep); }
@media (min-width: 1228px) {
  .band { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: calc(50vw - 590px); padding-right: calc(50vw - 590px); }
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}
.topic-card { min-height: 180px; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.topic-card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(28,25,22,0.08), 0 12px 32px rgba(28,25,22,0.08); }
.topic-n {
  font-family: var(--font-serif); font-size: 1.65rem; color: var(--gold);
  line-height: 1; margin-bottom: 10px; font-weight: 700;
}
.topic-meta { margin-top: auto !important; font-size: 0.78rem !important; letter-spacing: 0.04em; }

.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0 8px; }
@media (max-width: 900px) { .pick-grid { grid-template-columns: 1fr; } }
.pick-card { min-height: 100%; }
.pick-n {
  display: inline-block; margin-right: 8px; color: var(--ink);
  font-family: var(--font-serif);
}

.step-grid {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (max-width: 720px) { .step-grid { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border-radius: var(--radius);
  padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line);
}
.step p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.step-n {
  font-family: var(--font-serif); color: var(--gold);
  font-size: 1.2rem; font-weight: 700; line-height: 1.2;
}

.report-panel {
  background: var(--header); color: var(--header-text);
  border-radius: 18px; padding: 36px 40px; margin: 48px 0 24px;
}
.report-panel h2 { color: #fff; margin-top: 0; }
.report-panel p { color: rgba(244,239,230,0.82); }
.report-panel a:not(.btn) { color: #e8c48a; }
.report-panel .btn { margin-top: 8px; }

.page-intro { max-width: 720px; margin-bottom: 28px; }

/* ----- Source notice ----- */
.source-notice {
  background: var(--warn-bg);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 16px 0 20px;
  font-size: 0.92rem;
}
.notice-kicker {
  display: block; font-size: 0.72rem; letter-spacing: 0.14em;
  font-weight: 700; color: var(--gold); margin-bottom: 4px;
}
.source-notice p { margin: 0; color: var(--ink-soft); }

/* ----- Fact card / metrics ----- */
.fact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 8px;
  margin: 22px 0 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.fact-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-soft);
  margin-bottom: 14px;
}
.fact-meta span + span::before { content: "·"; margin-right: 16px; color: var(--line-strong); }
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.metric {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px 14px;
}
.metric-value {
  display: block; font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 700; line-height: 1.3;
}
.metric-label { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; }
.fact-note { display: block; font-size: 0.75rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.45; }
.meta-dl { margin: 8px 0 12px; }
.dl-row { display: grid; grid-template-columns: minmax(7em, 9.5em) 1fr; gap: 8px 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.dl-row dt { color: var(--ink-soft); font-weight: 600; }
.dl-row dd { margin: 0; }
.meta-table { width: 100%; border-collapse: collapse; }
.meta-table th, .meta-table td { text-align: left; vertical-align: top; padding: 10px 8px; border-top: 1px solid var(--line); }
.meta-table th { width: 8.5em; color: var(--ink-soft); font-weight: 600; }

/* ----- Case layout ----- */
.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 40px;
  align-items: start;
}
.case-main { max-width: 720px; }
.case-rail { position: sticky; top: calc(var(--header-h) + 16px); }
.toc {
  font-size: 0.86rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.toc-label { font-size: 0.72rem; letter-spacing: 0.14em; font-weight: 700; color: var(--gold); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .case-layout { grid-template-columns: 1fr; }
  .case-rail { position: static; }
}

.article h2 { border-top: 1px solid var(--line); padding-top: 1em; }

/* Known / unknown */
.ku-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .ku-grid { grid-template-columns: 1fr; } }
.ku-grid h3 { margin-top: 0; font-size: 1rem; }
.ku-grid ul { margin: 0; padding-left: 18px; }
.ku-grid > div { border-radius: 12px; padding: 16px 18px; }
.ku-grid > div:first-child { background: var(--ok-bg); }
.ku-grid > div:last-child { background: var(--unk-bg); }

.report-figure { margin: 28px 0; }
.report-figure img {
  max-width: 100%; height: auto; border-radius: 10px;
  background: #fff; display: block; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.report-figure figcaption { font-size: 0.84rem; color: var(--ink-soft); margin-top: 10px; }
.fig-note { font-size: 0.78rem; }

.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; padding: 2px 10px; margin: 2px 4px 2px 0;
  letter-spacing: 0.02em;
}

/* Filter */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 22px; }
.filter-bar button {
  font-family: inherit; font-size: 0.86rem; padding: 6px 14px;
  border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.filter-bar button[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: #fff;
}

.compare-add { display: block; margin-top: 12px; font-size: 0.82rem; color: var(--ink-soft); }
.compare-tray {
  position: sticky; bottom: 16px; background: var(--header); color: var(--header-text);
  border-radius: 999px; padding: 10px 18px 10px 22px;
  display: flex; gap: 16px; align-items: center;
  width: max-content; max-width: calc(100% - 24px); margin: 16px auto 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.compare-tray[hidden] { display: none !important; }
.compare-tray .btn { padding: 7px 16px; font-size: 0.88rem; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; display: block; overflow-x: auto; }
.compare-table th, .compare-table td {
  border: 1px solid var(--line); padding: 10px 12px; vertical-align: top;
  text-align: left; min-width: 200px; background: var(--surface);
}
.compare-table tbody th { background: var(--unk-bg); white-space: nowrap; min-width: 8em; }

.search-results { list-style: none; padding: 0; }
.search-results li { border-top: 1px solid var(--line); padding: 16px 0; }
.search-results .r-type { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--gold); font-weight: 700; }
.search-results h2, .search-results h3 { border: 0; margin: 4px 0; padding: 0; font-size: 1.08rem; }
.search-results mark { background: #f0d9a8; padding: 0 2px; border-radius: 2px; }

.findings { padding-left: 22px; }
.findings li { margin-bottom: 10px; }
.chapter-list { padding-left: 22px; }
.chapter-list > li { margin-bottom: 16px; }
.limits {
  background: var(--unk-bg); border-radius: 10px; padding: 12px 16px;
  border-left: 3px solid var(--line-strong);
}
.claim-label {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.08em;
  background: var(--unk-bg); border-radius: 6px; padding: 3px 10px; color: var(--ink-soft); font-weight: 700;
}
.term-def { font-size: 1.2rem; font-family: var(--font-serif); color: var(--ink); }
.prev-next {
  display: flex; justify-content: space-between; gap: 12px;
  margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--line);
}
.prev-next a { text-decoration: none; font-weight: 600; }
.action {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px 20px 14px; margin: 12px 0;
}
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 20px 14px; margin: 12px 0;
}

/* Language page */
.page-lang { min-height: 100vh; display: flex; align-items: center; }
.lang-select { padding: 64px 0; max-width: 640px; }
.lang-select h1 { font-size: clamp(2rem, 5vw, 3rem); }
.locale-list { list-style: none; padding: 0; margin: 36px 0; }
.locale-list li {
  padding: 16px 4px; border-top: 1px solid var(--line);
  font-size: 1.2rem; display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-serif);
}
.locale-current a { color: var(--ink); text-decoration: none; font-weight: 700; }
.locale-current a:hover { color: var(--accent); }
.locale-disabled { color: var(--ink-soft); }
.locale-state { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--gold); }

/* Footer */
.site-footer {
  background: var(--header); color: var(--header-text);
  margin-top: 24px; padding: 40px 0 48px;
}
.footer-grid { display: grid; gap: 20px; }
.footer-name {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; margin: 0 0 10px;
}
.independence { font-size: 0.9rem; color: rgba(244,239,230,0.72); max-width: 46em; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a { color: rgba(244,239,230,0.7); font-size: 0.9rem; text-decoration: none; }
.foot-nav a:hover { color: #fff; }
.footer-meta { color: rgba(244,239,230,0.45) !important; margin: 8px 0 0; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .hero { padding-top: 28px; }
  .dl-row { grid-template-columns: 1fr; gap: 2px; }
  .stat-row li { border-right: 0; flex-basis: 45%; }
  .report-panel { padding: 24px 20px; }
}

@media print {
  .site-header, .site-footer, .toc, .filter-bar, .compare-tray, .breadcrumb, .nav-toggle-label { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .case-layout { display: block; }
  a { color: inherit; }
}

/* ===== 首页优化 ===== */
.hero {
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20px; right: -40px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(176,137,74,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.topic-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(28,25,22,0.06), 0 16px 40px rgba(28,25,22,0.08);
}

.pick-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(28,25,22,0.06), 0 16px 40px rgba(28,25,22,0.08);
}

.stat-row strong {
  transition: color 0.2s ease;
}
.stat-row li:hover strong {
  color: var(--accent);
}

/* 语言选择器 */
.lang-select {
  margin-left: 8px;
}
.lang-select select {
  background: rgba(255,255,255,0.08);
  color: var(--header-text);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f4efe6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}
.lang-select select:hover {
  background-color: rgba(255,255,255,0.14);
}
.lang-select select option {
  background: var(--header);
  color: var(--header-text);
}

@media (max-width: 720px) {
  .lang-select {
    margin: 8px 0 4px;
  }
}

/* ----- Share buttons ----- */
.share-block {
  margin: 32px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.share-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
  font-weight: 600;
}
.share-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.share-btn {
  display: inline-block;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.share-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.share-x:hover { background: #000; border-color: #000; color: #fff; }
.share-reddit:hover { background: #ff4500; border-color: #ff4500; color: #fff; }
.share-facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-telegram:hover { background: #0088cc; border-color: #0088cc; color: #fff; }
.share-linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.share-whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; }
