/* =========================================================
   俄乌冲突深度档案 — 设计系统
   纸质编辑风格：暖白纸、细线、衬线标题、深青强调
   ========================================================= */

:root {
  --paper: #f7f4ec;
  --paper-2: #f1ece1;
  --card: #fdfbf6;
  --ink: #1c2024;
  --ink-2: #3c434b;
  --muted: #6b7280;
  --faint: #8d8577;
  --rule: #ded6c6;
  --rule-strong: #c9bfab;
  --accent: #2f5d62;
  --accent-soft: #e4ecea;
  --rust: #a8492f;
  --rust-soft: #f3e6e0;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SF Mono", monospace;
  --maxw: 1180px;
  --measure: 44rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* 纸张纹理：极淡的噪点，避免大面积死白 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(120, 110, 90, .045) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 64%, rgba(120, 110, 90, .04) 0 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 93, 98, .28);
  transition: border-color .18s ease, color .18s ease;
}
a:hover { border-bottom-color: var(--accent); }

::selection { background: #d6e4e0; color: #14242a; }

/* ------------------ 顶部导航 ------------------ */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 60;
  transition: width .1s linear;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 236, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.topbar.is-stuck {
  border-bottom-color: var(--rule);
  box-shadow: 0 8px 24px -20px rgba(28, 32, 36, .5);
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}
.brand .dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-2px);
}
.brand small {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  border: 0;
  padding: 6px 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  border-radius: 3px;
  letter-spacing: .04em;
}
.nav a:hover { background: rgba(47, 93, 98, .07); color: var(--accent); }
.nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 650;
  background: var(--accent-soft);
}

/* ------------------ 版心 ------------------ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.hero {
  padding: 62px 0 0;
}

.hero .kicker {
  font-size: 11.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero .kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--rule-strong);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.14;
  letter-spacing: -.01em;
  margin: 0 0 26px;
  font-weight: 700;
  max-width: 20ch;
}
h1 .thin {
  display: block;
  font-size: .36em;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .04em;
  margin-top: 16px;
  line-height: 1.55;
  max-width: 44ch;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 40em;
  margin: 0 0 34px;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .06em;
  padding: 16px 0 26px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.byline span { display: inline-flex; align-items: center; gap: 7px; }
.byline b { color: var(--ink-2); font-weight: 600; }

/* ------------------ 数据带 ------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  margin: 54px 0 0;
}
.stat {
  padding: 26px 26px 30px 0;
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}
.stat .num small { font-size: .5em; letter-spacing: 0; font-weight: 500; }
.stat p {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.7;
  color: var(--muted);
}
.stat p b { color: var(--ink-2); font-weight: 600; display: block; margin-bottom: 2px; letter-spacing: .02em; }

/* ------------------ 章节 ------------------ */
section { margin: 0 0 8px; }

.chapter {
  padding: 84px 0 0;
}
.chapter-head {
  display: block;
  border-top: 1px solid var(--rule-strong);
  padding-top: 20px;
  margin-bottom: 30px;
}
.chapter-num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.7vw, 35px);
  line-height: 1.35;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -.005em;
  max-width: 20em;
}
.chapter-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
  max-width: 42em;
}

h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.45;
  margin: 46px 0 14px;
  font-weight: 700;
}
h3 .tag {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 500;
  margin-left: 10px;
  vertical-align: middle;
}
h4 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 30px 0 8px;
  color: var(--ink);
}

p { margin: 0 0 18px; }

.prose {
  max-width: 47rem;
  font-size: 17px;
  line-height: 1.95;
}
.prose p + p { margin-top: 0; }
.prose strong { font-weight: 650; }
.prose em { font-style: normal; background: linear-gradient(transparent 62%, #e8e0c9 62%); }

.dropcap::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 3.6em;
  line-height: .82;
  padding: .06em .12em 0 0;
  color: var(--accent);
  font-weight: 700;
}

.note {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
  border-left: 2px solid var(--rule-strong);
  padding: 2px 0 2px 16px;
  margin: 26px 0;
  max-width: 40em;
}
.note b { color: var(--ink-2); }

/* ------------------ 图 ------------------ */
figure {
  margin: 40px 0 44px;
}
figure img,
figure .fig-svg {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--rule);
}
figcaption {
  margin-top: 14px;
  font-size: 12.8px;
  line-height: 1.75;
  color: var(--muted);
  padding-top: 12px;
  padding-left: 34px;
  position: relative;
  border-top: 1px solid var(--rule);
  display: block;
  
  
}
figcaption::before {
  content: "图";
  font-family: var(--serif);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .1em;
  position: absolute;
  left: 0;
  top: 15px;
  border: 1px solid var(--rule-strong);
  width: 20px; height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  transform: translateY(2px);
}
figcaption b { color: var(--ink-2); font-weight: 600; }

/* ------------------ 卡片网格 ------------------ */
.grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 32px 0;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cell {
  background: var(--card);
  padding: 26px 24px;
}
.cell .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .12em;
  display: block;
  margin-bottom: 10px;
}
.cell h5 {
  font-family: var(--serif);
  font-size: 17px;
  margin: 0 0 8px;
  line-height: 1.5;
}
.cell p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* 章节导航卡片 */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px 0 20px;
}
.card {
  display: block;
  border: 1px solid var(--rule);
  background: var(--card);
  padding: 30px 28px 26px;
  color: var(--ink);
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -32px rgba(28, 32, 36, .55);
}
.card .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}
.card p {
  margin: 0 0 20px;
  font-size: 13.8px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 32em;
}
.card .go {
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: .1em;
}
.card .go::after { content: " →"; }

/* ------------------ 时间线 ------------------ */
.tl {
  margin: 34px 0 10px;
  border-top: 1px solid var(--rule);
}
.tl-era {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 28px;
  padding: 34px 0 6px;
  border-bottom: 1px solid var(--rule);
}
.tl-era:last-child { border-bottom: 0; }
.era-label {
  position: sticky;
  top: 90px;
  align-self: start;
}
.era-label .y {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  color: var(--accent);
  display: block;
  letter-spacing: -.01em;
}
.era-label .t {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .1em;
  display: block;
  margin-top: 6px;
}

.events { border-left: 1px solid var(--rule-strong); padding-left: 26px; }
.ev {
  position: relative;
  padding: 0 0 26px;
}
.ev::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 9px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--accent);
}
.ev.key::before { background: var(--accent); }
.ev .d {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--faint);
  display: block;
  margin-bottom: 4px;
}
.ev h5 {
  font-family: var(--serif);
  font-size: 17.5px;
  margin: 0 0 6px;
  line-height: 1.5;
}
.ev p {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 38em;
}

.chip {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: .08em;
  padding: 1px 7px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  color: var(--muted);
  vertical-align: 2px;
  margin-left: 8px;
  white-space: nowrap;
  font-family: var(--sans);
}
.chip.disputed { border-color: #d8bfae; color: var(--rust); background: var(--rust-soft); }
.chip.fact { border-color: #b9cfc9; color: var(--accent); background: var(--accent-soft); }

/* ------------------ 表格 ------------------ */
.tablewrap {
  overflow-x: auto;
  margin: 30px 0 34px;
  border: 1px solid var(--rule);
  background: var(--card);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.6px;
  line-height: 1.75;
  min-width: 640px;
}
thead th {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 600;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule-strong);
  background: var(--paper-2);
  white-space: nowrap;
}
tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink-2);
}
tbody tr:last-child td { border-bottom: 0; }
tbody th {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--rule);
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
}
tbody tr:hover td, tbody tr:hover th { background: rgba(47, 93, 98, .035); }

/* ------------------ 引文 ------------------ */
.quote {
  margin: 38px 0;
  padding: 4px 0 4px 28px;
  border-left: 2px solid var(--accent);
  max-width: 40em;
}
.quote p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.9;
  color: var(--ink-2);
  margin: 0 0 10px;
}
.quote cite {
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .06em;
}

/* ------------------ 对照：两种叙事 ------------------ */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 34px 0;
}
.duo > div {
  background: var(--card);
  padding: 28px 26px;
}
.duo h5 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
}
.duo h5 b { color: var(--ink); font-size: 14px; letter-spacing: .02em; display: block; margin-top: 4px; text-transform: none; }
.duo ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.duo li {
  position: relative;
  padding-left: 16px;
  font-size: 13.8px;
  line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.duo li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 6px; height: 1px;
  background: var(--rule-strong);
}

/* ------------------ 判定条 ------------------ */
.verdict {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  margin: 14px 0 0;
  font-size: 13.4px;
  line-height: 1.75;
  color: var(--ink-2);
}
.verdict .badge {
  flex: none;
  font-size: 10.5px;
  letter-spacing: .08em;
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 650;
  margin-top: 2px;
  white-space: nowrap;
}
.badge.no { background: #efe1db; color: #8d3a24; }
.badge.partial { background: #f2ead9; color: #7a5a1f; }
.badge.yes { background: var(--accent-soft); color: var(--accent); }
.badge.unknown { background: #e7e4dc; color: #57534a; }

/* ------------------ 页脚 ------------------ */
.footer {
  margin-top: 100px;
  border-top: 1px solid var(--rule-strong);
  background: var(--paper-2);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 52px 28px 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
}
.footer h6 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ink-2);
  text-transform: uppercase;
  font-weight: 650;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 7px; }
.footer a { color: var(--ink-2); border-bottom-color: transparent; }
.footer a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer .about b {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  display: block;
  margin-bottom: 10px;
  letter-spacing: .02em;
}
.footer .colophon {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* 防止长内容撑破栅格 */
article, .with-toc > * { min-width: 0; }
.verdict > div { min-width: 0; }
.verdict { flex-wrap: wrap; }
.duo > div { min-width: 0; }
.grid > .cell { min-width: 0; }
.duo li, .ev p, .cell p { overflow-wrap: anywhere; }

/* ------------------ 目录侧栏 ------------------ */
.with-toc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 208px;
  gap: 76px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  font-size: 12.5px;
  padding-top: 8px;
  display: none;
}
.toc-title {
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.toc a {
  display: block;
  border: 0;
  color: var(--muted);
  padding: 5px 0 5px 12px;
  border-left: 1px solid var(--rule);
  line-height: 1.6;
}
.toc a:hover { color: var(--accent); }
.toc a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 650;
}

/* ------------------ 页首（内页） ------------------ */
.pagehead {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--rule-strong);
}
.pagehead .kicker {
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.pagehead h1 {
  font-size: clamp(30px, 3.7vw, 47px);
  max-width: 22ch;
  margin-bottom: 18px;
}
.pagehead .lede {
  font-size: 18px;
  margin-bottom: 0;
  max-width: 38em;
}

/* ------------------ 动画 ------------------ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------ 响应式 ------------------ */
@media (min-width: 1080px) {
  .toc { display: block; }
}

@media (max-width: 980px) {
  .with-toc { grid-template-columns: 1fr; gap: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .cards { grid-template-columns: 1fr; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; line-height: 1.85; }
  .wrap { padding: 0 20px; }
  .topbar-inner { padding: 12px 20px; gap: 12px; }
  .brand small { display: none; }
  .nav { gap: 0; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 7px; font-size: 12px; white-space: nowrap; letter-spacing: 0; }
  figure { overflow-x: auto; padding-bottom: 4px; }
  figure img,
  figure .fig-svg { width: 560px; max-width: none; height: auto; }
  .stat { padding: 20px 16px 24px 0; }
  .stat .num { font-size: 30px; }
  .hero { padding-top: 44px; }
  .chapter { padding-top: 56px; }
  .chapter-head { grid-template-columns: 1fr; gap: 8px; }
  .chapter-num { padding-top: 0; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .tl-era { grid-template-columns: 1fr; gap: 10px; }
  .era-label { position: static; display: flex; align-items: baseline; gap: 10px; }
  .era-label .y { font-size: 24px; }
  .events { padding-left: 18px; }
  .ev::before { left: -23px; }
  .quote { padding-left: 18px; }
  figure { margin: 30px 0; }
  figcaption { flex-direction: column; gap: 4px; }
}
