@charset "UTF-8";
/* ==========================================================================
   Fuglekig — style.css
   版式照源站 birdwatchinghq.com 的结构重建（见 docs/TEMPLATE.md）：
     · 两行页头：深色细条 + 品牌左 / 导航右，导航下划线指针，masthead 下一条深红横线
     · 方角、零阴影、发丝线 #e7e2e2 切分一切
     · 卡片只有「图 + 标题」，归档页 4:5 竖裁
     · 文章页 H1 居中、通栏图、4 格事实条、节间横线 + 两位编号
     · 页脚：浅色链接带 + 一条极薄近黑底条
   字体（由 site.json 注入）：Zilla Slab 粗衬线 = 标题/数字，Karla = 正文/界面。
   ========================================================================== */

:root {
  --ink: #231f20;
  --ink-2: #4b4648;
  --muted: #878787;
  --red: #9e2233;
  --red-dark: #7b1826;
  --red-soft: #e6a3ad;
  --paper: #ffffff;
  --paper-2: #f7f7f7;
  --rule: #e7e2e2;
  --shell: 1280px;
  --pad: 24px;
  --sans: "Karla", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --slab: "Zilla Slab", "Rockwell", Georgia, serif;
  --r: 0;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16.5px/1.68 var(--sans);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

h1, h2, h3 { margin: 0; font-family: var(--slab); font-weight: 700; line-height: 1.12; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

/* body 类名（site.json → body_class）承载两个版式钩子 */
body.fugl-slab h1,
body.fugl-slab h2,
body.fugl-slab h3 { font-family: var(--slab); }

body.fugl-square .btn,
body.fugl-square .card__media,
body.fugl-square .card__media img,
body.fugl-square .hero__figure img,
body.fugl-square .recent__thumb img,
body.fugl-square .panel,
body.fugl-square .note,
body.fugl-square .summary { border-radius: var(--r); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.measure { max-width: 44rem; margin-left: auto; margin-right: auto; }
.wide { max-width: 61rem; margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.skip-link:focus { left: 0; color: #fff; }

/* ── 页头：第 1 行深色细条 ─────────────────────────────────────────── */
.site-header { position: relative; z-index: 30; }

.strip { background: var(--ink); }
.strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
}
.strip__slogan {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b6afb1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.strip__links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.strip__links a { color: #fff; }
.strip__links a:hover { color: var(--red-soft); }

/* ── 页头：第 2 行品牌 + 导航 ─────────────────────────────────────── */
.masthead {
  position: relative;
  z-index: auto;               /* 抽屉/遮罩/按钮的同一层叠上下文 */
  background: var(--paper);
  border-bottom: 3px solid var(--red);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}

.brand { display: flex; align-items: baseline; gap: 14px; margin: 0; }
.brand__name {
  position: relative;
  padding-left: 16px;
  font: 700 27px/1 var(--slab);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.44em;
  width: 8px;
  height: 8px;
  background: var(--red);
}
.brand__name:hover { color: var(--red); }
.brand__where {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-primary__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.menu {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu__link {
  position: relative;
  display: block;
  padding: 10px 11px;
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.menu__link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 1px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}
.menu__link:hover,
.menu__link.is-active { color: var(--red); }
.menu__link:hover::after,
.menu__link.is-active::after { transform: scaleX(1); }

.menu-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.menu-toggle-label { display: none; }
.nav-scrim { display: none; }

/* ── 按钮 ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 15px 24px;
  background: var(--ink);
  color: #fff;
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn:hover { background: var(--red); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ── 首页 hero：左图右文分栏 ─────────────────────────────────────── */
.hero { background: var(--paper-2); }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
  padding-top: clamp(34px, 4.4vw, 68px);
  padding-bottom: clamp(34px, 4.4vw, 68px);
}
.hero__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__kicker {
  margin: 0 0 14px;
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}
.hero__title {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: -0.015em;
  max-width: 22ch;
}
.hero__lead { margin: 0 0 26px; font-size: 17px; color: var(--ink-2); max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* ── 首页分类条：发丝线切分的等方格 ───────────────────────────────── */
.topics { padding: clamp(26px, 3.2vw, 42px) 0 0; }
.topics__label {
  margin: 0 0 12px;
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.topics__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.topics__cell { background: var(--paper); }
.topics__link { display: flex; flex-direction: column; gap: 7px; height: 100%; padding: 16px 16px 18px; }
.topics__name { font: 600 15px/1.25 var(--slab); color: var(--ink); }
.topics__count {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.topics__link:hover { background: var(--paper-2); }
.topics__link:hover .topics__name { color: var(--red); }
.topics__link--alt .topics__name { color: var(--red); }

/* ── 首页分组：大写标题 + 右侧 more ───────────────────────────────── */
.band { padding: clamp(34px, 4vw, 58px) 0; }
.band__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 26px;
}
.band__title {
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.band__more { margin: 0; }
.band__more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── 卡片：方角、图在上、只有标题 ─────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card__media { display: block; overflow: hidden; background: var(--rule); }
.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .card__media img { transform: scale(1.035); }
.grid--portrait .card__media img { aspect-ratio: 4 / 5; }
.card__title { margin: 14px 0 0; font-size: 19px; font-weight: 600; line-height: 1.2; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--red); }

/* ── 首页：分类行 + 缩略图行列表 ──────────────────────────────────── */
.topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topic { border-top: 1px solid var(--rule); }
.topic__link { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 18px 0 20px; }
.topic__name { font: 600 19px/1.2 var(--slab); color: var(--ink); }
.topic__count {
  align-self: center;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.topic__intro { grid-column: 1 / -1; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.topic__link:hover .topic__name { color: var(--red); }

.recent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.recent__item { border-top: 1px solid var(--rule); }
.recent__link { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 18px 0; }
.recent__thumb img { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; }
.recent__kicker {
  display: block;
  font: 700 10.5px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.recent__title { display: block; margin: 7px 0 6px; font: 600 18px/1.25 var(--slab); color: var(--ink); }
.recent__excerpt { display: block; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.recent__link:hover .recent__title { color: var(--red); }

/* ── 归档/分类：深色 hero 带 + 计数线 + 网格 ─────────────────────── */
.arch { background: var(--ink); color: #fff; padding: clamp(34px, 4.6vw, 64px) 0 clamp(30px, 4vw, 54px); text-align: center; }
.arch__kicker {
  margin: 0 0 12px;
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-soft);
}
.arch__title { font-size: clamp(30px, 3.8vw, 50px); letter-spacing: -0.015em; color: #fff; }
.arch__lead { margin: 16px auto 0; max-width: 60ch; font-size: 16.5px; color: #b6afb1; }

.crumbs {
  display: block;
  margin: 0 0 18px;
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs a { color: var(--ink); }
.crumbs a:hover { color: var(--red); }
.crumbs .sep { color: var(--red); margin: 0 6px; }
.crumbs [aria-current] { color: var(--muted); }
.arch .crumbs { color: #b6afb1; }
.arch .crumbs a { color: #fff; }
.arch .crumbs .sep { color: var(--red-soft); }
.arch .crumbs [aria-current] { color: #b6afb1; }

.listing { padding: clamp(26px, 3.4vw, 44px) 0 clamp(40px, 5vw, 72px); }
.count-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.listing__note { margin: 0 0 30px; font-size: 16px; color: var(--ink-2); text-align: center; }
.prose + .count-line { margin-top: 30px; }
.cat-empty { font-style: italic; color: var(--muted); }

/* ── 静态页页头 ───────────────────────────────────────────────────── */
.page-head { background: var(--paper-2); padding: clamp(34px, 4.4vw, 60px) 0 clamp(30px, 3.6vw, 48px); }
.page-head__kicker {
  margin: 0 0 12px;
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}
.page-head__title { margin: 0 0 14px; font-size: clamp(29px, 3.4vw, 44px); letter-spacing: -0.015em; }
.page-head__lead { margin: 0; font-size: 17.5px; color: var(--ink-2); }

.page-body { padding: clamp(30px, 3.6vw, 52px) 0 clamp(44px, 5vw, 76px); }

.prose p { margin: 0 0 1.1em; }
.prose--drop p:first-child::first-letter {
  float: left;
  padding: 4px 12px 0 0;
  font: 700 56px/0.85 var(--slab);
  color: var(--red);
}

.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.col { border-top: 2px solid var(--ink); padding-top: 14px; }
.col__title { margin: 0 0 12px; font-size: 20px; }

.facts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts-list li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.5; }
.facts-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--red);
}

/* ── 正文页 ───────────────────────────────────────────────────────── */
.post { padding: clamp(24px, 3vw, 40px) 0 clamp(40px, 5vw, 72px); }
.post__head { text-align: center; }
.post__head .crumbs { text-align: center; }
.post__kicker {
  margin: 22px 0 0;
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}
.post__title { margin: 12px 0 0; font-size: clamp(30px, 3.5vw, 46px); letter-spacing: -0.015em; }
.post__byline {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.post__byline span { color: var(--red); }
.post__head .crumbs { margin-bottom: 0; }

.post__figure { margin-top: clamp(26px, 3vw, 42px); }
.post__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post__figure figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.post__body { margin-top: clamp(24px, 2.6vw, 36px); }
.standfirst { margin: 0; font-size: 19px; line-height: 1.62; }
.standfirst::first-letter {
  float: left;
  padding: 6px 12px 0 0;
  font: 700 62px/0.84 var(--slab);
  color: var(--red);
}

/* 事实条：4 格发丝线 */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(26px, 3vw, 40px);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.facts .param { border-left: 1px solid var(--rule); padding: 18px 20px; }
.facts .param:first-child { border-left: 0; padding-left: 0; }
.param__label {
  display: block;
  margin-bottom: 9px;
  font: 700 10.5px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.param__value { display: block; font: 500 15px/1.45 var(--slab); color: var(--ink); }

/* 小节：节间横线 + 两位编号 */
.blocks { margin-top: clamp(30px, 3.4vw, 44px); counter-reset: sec; }
.blocks .block {
  counter-increment: sec;
  border-top: 1px solid var(--rule);
  padding-top: clamp(20px, 2.2vw, 28px);
}
.blocks .block + .block { margin-top: clamp(28px, 3vw, 40px); }
.blocks .block:first-child { border-top: 3px solid var(--ink); }
.blocks .block > h2 {
  position: relative;
  margin: 0 0 14px;
  padding-left: 3.2rem;
  font-size: clamp(21px, 2.1vw, 27px);
  letter-spacing: -0.01em;
}
.blocks .block > h2::before {
  content: counter(sec, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.22em;
  font: 700 15px/1 var(--slab);
  letter-spacing: 0.04em;
  color: var(--red);
}
.blocks--plain .block { counter-increment: none; }
.blocks--plain .block > h2 { padding-left: 0; }
.blocks--plain .block > h2::before { content: none; }
.block p { margin: 0 0 1.05em; }
.block ul, .prose ul, .block ol { margin: 0 0 1.1em; padding-left: 1.2em; }
.block li, .prose li { margin-bottom: 0.45em; }
.block li::marker, .prose li::marker { color: var(--red); }
.block a, .prose a, .post__body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* 清单带：顶部粗红线 */
.summary {
  margin-top: clamp(30px, 3.4vw, 46px);
  background: var(--paper-2);
  border-top: 3px solid var(--red);
  padding: clamp(22px, 2.6vw, 34px) clamp(20px, 2.4vw, 30px);
}
.summary__title { margin: 0 0 18px; font-size: clamp(19px, 1.9vw, 24px); }

.steps { counter-reset: step; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 34px; }
.steps li { position: relative; padding-left: 2.5rem; font-size: 16px; line-height: 1.55; counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05em;
  font: 700 14px/1.6 var(--slab);
  color: var(--red);
}

/* 提示面板：顶部粗线，不用左竖线 */
.panel, .note {
  margin: clamp(28px, 3vw, 40px) 0 0;
  background: var(--paper-2);
  border-top: 3px solid var(--ink);
  padding: clamp(20px, 2.4vw, 30px);
}
.panel p, .note p { margin: 0; }
.panel p + p { margin-top: 1em; }
.panel__title { margin: 0 0 12px; font-size: 22px; }
.note strong {
  display: block;
  margin-bottom: 8px;
  font: 700 10.5px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

/* 相关阅读：三格「下一篇」条 */
.next { margin-top: clamp(36px, 4vw, 54px); border-top: 2px solid var(--ink); padding-top: 22px; }
.next__head {
  margin: 0 0 20px;
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.next__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin: 0; padding: 0; list-style: none; }
.next__item { border-top: 1px solid var(--rule); padding-top: 14px; }
.next__link { display: block; }
.next__kicker {
  display: block;
  font: 700 10.5px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.next__name { display: block; margin-top: 9px; font: 600 20px/1.2 var(--slab); color: var(--ink); }
.next__link::after { content: "→"; display: block; margin-top: 10px; font-size: 15px; color: var(--red); }
.next__link:hover .next__name { color: var(--red); }

/* ── 表格（图片kilder） ──────────────────────────────────────────── */
.updated {
  margin: 26px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  font: 700 10.5px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tbody tr:hover { background: var(--paper-2); }

/* ── 页脚：浅色链接带 + 极薄深色底条 ─────────────────────────────── */
.foot-top { background: var(--paper-2); border-top: 1px solid var(--rule); padding: clamp(34px, 4vw, 56px) 0; }
.foot-top__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.foot-note__brand {
  position: relative;
  margin: 0 0 14px;
  padding-left: 16px;
  font: 700 24px/1 var(--slab);
}
.foot-note__brand::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 8px;
  height: 8px;
  background: var(--red);
}
.foot-note__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.foot-note__meta {
  margin: 16px 0 0;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-head {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.foot-list { margin: 0; padding: 0; list-style: none; }
.foot-list li { margin-bottom: 10px; }
.foot-list a {
  font: 600 12px/1.5 var(--sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.foot-list a:hover { color: var(--red); }

.foot-bar { background: var(--ink); }
.foot-bar__inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 46px; }
.foot-bar__copy, .foot-bar__mark, .foot-bar__dot {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9b9497;
}
.foot-bar__mark { color: #fff; }
.foot-bar__dot { color: var(--red-soft); }

/* ── ≤1100px：导航压缩（桌面仍有 9 项，字距变紧） ─────────────────── */
@media (max-width: 1100px) {
  .menu__link { padding: 10px 9px; font-size: 11px; letter-spacing: 0.07em; }
  .menu__link::after { left: 9px; right: 9px; }
  .brand__where { display: none; }
}

/* ── ≤900px：抽屉菜单三断点之一 ─────────────────────────────────── */
@media (max-width: 900px) {
  /* 汉堡按钮：与抽屉同层（120 > 110 > 遮罩 100） */
  .menu-toggle-label {
    position: relative;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 40px;
    background: var(--paper);
    border: 1px solid var(--rule);
    cursor: pointer;
  }
  .menu-toggle-label span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
  .menu-toggle-label span + span { margin-top: 5px; }
  .menu-toggle:checked ~ .menu-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle:checked ~ .menu-toggle-label span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked ~ .menu-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 抽屉：transform 会成 fixed 后代的包含块，所以遮罩不能挂它身上 */
  .nav-primary {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 110;
    width: min(86vw, 340px);
    height: 100vh;
    padding: 24px 0 40px;
    overflow-y: auto;
    background: var(--paper);
    border-left: 1px solid var(--rule);
    transform: translateX(102%);
    transition: transform 0.28s ease;
  }
  .menu-toggle:checked ~ .nav-primary { transform: translateX(0); }

  .nav-primary__title {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0 26px 14px;
    overflow: visible;
    clip-path: none;
    border-bottom: 1px solid var(--rule);
    font: 700 10.5px/1 var(--sans);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .menu { flex-direction: column; align-items: stretch; }
  /* 桌面为排版加的 nowrap 必须在这里回收 */
  .menu__link { padding: 15px 26px; font-size: 13px; letter-spacing: 0.12em; white-space: normal; border-bottom: 1px solid var(--rule); }
  .menu__link::after { display: none; }

  /* 遮罩：挂在页头内部 position:relative; z-index:auto 的 .masthead 上，不与抽屉同体 */
  .nav-scrim {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    height: 100vh;
    background: rgba(35, 31, 32, 0.6);
    display: none;
  }
  .menu-toggle:checked ~ .nav-scrim { display: block; }

  .strip__slogan { display: none; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero__title { max-width: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols3 { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .foot-top__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-note { grid-column: 1 / -1; }
}

/* ≤900 且 >520：事实条排成 2×2（只在中间断点生效，避免污染窄屏） */
@media (min-width: 521px) and (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts .param { border-top: 1px solid var(--rule); }
  .facts .param:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts .param:nth-child(-n + 2) { border-top: 0; }
}

/* ── ≤520px：单列 ────────────────────────────────────────────────── */
@media (max-width: 520px) {
  body { font-size: 16px; }
  .strip__inner { min-height: 34px; }
  .strip__links { gap: 14px; font-size: 10px; }
  .masthead__inner { min-height: 66px; }
  .brand__name { font-size: 23px; }
  .hero__title { font-size: 29px; }
  .hero__lead { font-size: 16px; }
  .grid,
  .topic-list,
  .recent,
  .topics__grid,
  .steps--two,
  .next__list,
  .facts-list,
  .foot-top__inner { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts .param { border-left: 0; padding-left: 0; padding-top: 16px; border-top: 1px solid var(--rule); }
  .facts .param:first-child { border-top: 0; padding-top: 18px; }
  .facts .param:nth-child(2) { border-top: 1px solid var(--rule); }
  .recent__link { grid-template-columns: 80px 1fr; gap: 14px; }
  .recent__thumb img { width: 80px; }
  .band__head { border-bottom-width: 2px; }
  .foot-note { grid-column: auto; }
  .post__byline { font-size: 10px; }
  .panel, .note, .summary { padding: 18px; }
}
