/* =========================================================
   九一平台 bpyeya.com — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================= */

/* ---------- base ---------- */
:root {
  --paper: #f6f2e9;
  --paper-2: #ebe5d9;
  --ink: #202326;
  --ink-soft: #4a4d50;
  --ink-mute: #6d6a63;
  --line: #c9c1b3;
  --line-soft: #ddd6c8;
  --seal: #943b32;
  --seal-soft: #b25a4f;
  --mist: #405d6b;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --shell: 1120px;
  --read: 760px;
  --nav-w: 188px;
  --gap: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.32;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}

a:hover {
  color: var(--seal);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- layout：全站骨架 ---------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--seal);
  border-radius: 4px;
  background: var(--seal);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--paper);
  border-radius: 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.brand-tagline {
  font-size: 12px;
  color: var(--ink-mute);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-2);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* 桌面窄侧栏导航 */
.side-nav {
  width: var(--nav-w);
  flex: 0 0 var(--nav-w);
}

.side-nav-title {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0 8px;
  padding-left: 10px;
}

.side-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 15px;
  border-radius: 0 4px 4px 0;
}

.nav-link:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 700;
  border-left-color: var(--seal);
  background: var(--paper-2);
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid currentColor;
  border-radius: 3px;
  opacity: 0.75;
  position: relative;
}

.nav-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 6px;
  height: 1px;
  background: currentColor;
}

.side-nav-note {
  margin: 16px 0 0;
  padding: 10px 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.nav-scrim {
  display: none;
}

/* 主内容区 */
.site-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.home-main {
  padding-top: 32px;
}

.inner-main {
  padding-top: 0;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-mute);
  padding: 20px 0 0;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--ink-mute);
}

.breadcrumb a:hover {
  color: var(--seal);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

/* 页面标题区 */
.page-header {
  padding: 0 0 6px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 26px;
}

.page-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.page-heading {
  margin-bottom: 34px;
  max-width: 820px;
}

.page-eyebrow,
.eyebrow {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--seal);
  margin: 0 0 8px;
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--seal);
  border-radius: 3px;
}

.page-lead,
.page-lede,
.hero-lead {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin: 0 0 12px;
}

.page-note {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid var(--line);
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.6rem);
  margin: 0 0 6px;
}

.section-sub,
.section-note,
.section-intro {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0;
  max-width: 760px;
}

.section-intro {
  margin-bottom: 18px;
}

/* 页脚 */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 20px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-brand {
  max-width: 300px;
}

.footer-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.footer-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-mute);
  margin: 0;
}

.footer-title {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-group li a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-soft);
  min-height: 32px;
}

.footer-group li a:hover {
  color: var(--seal);
}

.footer-copy {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px 28px;
  font-size: 12px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line-soft);
}

/* ---------- components ---------- */
.text-link {
  display: inline-block;
  font-size: 14px;
  color: var(--seal);
  border-bottom: 1px solid var(--seal-soft);
  padding-bottom: 1px;
}

.text-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: var(--seal);
  color: #fdf9f1;
  border-color: var(--seal);
}

.btn-primary:hover {
  background: #7d3029;
  color: #fdf9f1;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--ink-soft);
}

/* 表格通用 */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf8f1;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  min-width: 640px;
}

.table-scroll thead th {
  background: var(--paper-2);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table-scroll tbody th,
.table-scroll tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.table-scroll tbody th {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  background: #f3eee3;
  white-space: nowrap;
}

.table-scroll tbody tr:last-child th,
.table-scroll tbody tr:last-child td {
  border-bottom: 0;
}

.table-scroll tbody tr:hover th,
.table-scroll tbody tr:hover td {
  background: #f1ebdd;
}

.table-hint,
.table-note {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 10px 0 0;
}

/* 图注 */
figcaption {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.65;
  margin-top: 8px;
}

/* 术语小注 */
.term-note {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.7;
  margin: 8px 0 0;
  padding: 8px 10px;
  background: var(--paper-2);
  border-left: 2px solid var(--seal-soft);
  border-radius: 0 4px 4px 0;
}

.term-label {
  font-weight: 700;
  color: var(--ink);
  margin-right: 4px;
}

/* 状态标签 */
.status-tag,
.status,
.batch-status,
.cover-batch,
.status-new,
.status-fill,
.status-move,
.status-merged,
.status-migrated,
.status-checking {
  display: inline-block;
  font-size: 12px;
  line-height: 1.6;
  padding: 1px 8px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
  white-space: nowrap;
}

.status-new,
.status-fill {
  border-color: var(--seal-soft);
  color: var(--seal);
}

.status-move,
.status-migrated {
  border-color: var(--mist);
  color: var(--mist);
}

/* 相关内容条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 40px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-mute);
}

.related-links-item {
  font-size: 14px;
  color: var(--mist);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.related-links-item:hover {
  color: var(--seal);
  border-bottom-color: var(--seal);
}

/* ---------- pages：首页 ---------- */
.hero-decision {
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 31fr) minmax(0, 25fr);
  gap: var(--gap);
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 10px 0 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.reading-picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pick {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf8f1;
  min-height: 60px;
  color: var(--ink);
}

.pick:hover {
  border-color: var(--seal-soft);
  background: var(--paper-2);
  color: var(--ink);
}

.pick-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
}

.pick-desc {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.55;
}

.hero-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.hero-figure {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-2);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 8px 10px;
  margin: 0;
  border-top: 1px solid var(--line-soft);
  background: #fbf8f1;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.thumb-figure {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fbf8f1;
}

.thumb-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.thumb-figure figcaption {
  padding: 6px 8px;
  margin: 0;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
}

.hero-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.rail-block {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf8f1;
  padding: 14px;
}

.rail-title {
  font-size: 15px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.rail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-list li {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rail-batch {
  font-size: 11px;
  color: var(--seal);
  font-variant-numeric: tabular-nums;
}

.rail-list a {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

.rail-list a:hover {
  color: var(--seal);
}

.rail-order {
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: rail;
}

.rail-order li {
  counter-increment: rail;
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.rail-order li::before {
  content: counter(rail, decimal-leading-zero);
  font-family: var(--serif);
  color: var(--seal);
  font-size: 12px;
  flex: 0 0 auto;
  padding-top: 3px;
}

.rail-order a {
  color: var(--ink-soft);
}

.rail-order a:hover {
  color: var(--seal);
}

.rail-note {
  font-size: 12px;
  color: var(--ink-mute);
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  line-height: 1.65;
}

/* 题材标签带 */
.genre-tag-band {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.genre-tags {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.genre-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  height: 100%;
  padding: 12px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf8f1;
  color: var(--ink);
}

.genre-tag:hover {
  border-color: var(--seal-soft);
  background: var(--paper-2);
  color: var(--ink);
}

.tag-icon {
  width: 22px;
  height: 22px;
  border: 1px solid var(--seal);
  border-radius: 3px;
  position: relative;
}

.tag-icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-top: 1px solid var(--seal);
  border-bottom: 1px solid var(--seal);
}

.tag-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
}

.tag-note {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.55;
}

/* 比较维度表 */
.comparison-table {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.comparison-table table {
  min-width: 720px;
}

/* 封面瀑布流 */
.cover-waterfall {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.waterfall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.cover-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f1;
  overflow: hidden;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.cover-card:hover {
  border-color: var(--ink-soft);
  background: #fdfaf4;
}

.cover-link {
  display: block;
  color: var(--ink);
  padding: 10px 12px 14px;
}

.cover-link:hover {
  color: var(--ink);
}

.cover-figure {
  margin: 0 0 10px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--paper-2);
}

.cover-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 六张封面卡高度不一：交替纵横比 */
.cover-card:nth-child(1) .cover-figure img {
  aspect-ratio: 3 / 4;
}

.cover-card:nth-child(2) .cover-figure img {
  aspect-ratio: 4 / 5;
}

.cover-card:nth-child(3) .cover-figure img {
  aspect-ratio: 2 / 3;
}

.cover-card:nth-child(4) .cover-figure img {
  aspect-ratio: 4 / 5;
}

.cover-card:nth-child(5) .cover-figure img {
  aspect-ratio: 3 / 4;
}

.cover-card:nth-child(6) .cover-figure img {
  aspect-ratio: 5 / 7;
}

.cover-title {
  font-size: 16px;
  margin: 0 0 6px;
  line-height: 1.45;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-size: 12px;
}

.cover-genre {
  color: var(--mist);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 6px;
  line-height: 1.7;
}

/* 时间线预览 */
.timeline-preview {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--line);
  padding-left: 22px;
  margin-left: 6px;
}

.timeline-preview .timeline-item {
  position: relative;
  padding: 0 0 22px;
}

.timeline-preview .timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-preview .timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--seal);
}

.timeline-label {
  display: inline-block;
  font-family: var(--serif);
  font-size: 12px;
  color: var(--seal);
  border: 1px solid var(--seal-soft);
  border-radius: 3px;
  padding: 0 7px;
  margin-bottom: 6px;
}

.timeline-heading {
  font-size: 17px;
  margin: 0 0 4px;
}

.timeline-body p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0 0 6px;
  max-width: 720px;
}

/* 阅读前核对清单 */
.reading-checklist {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.checklist-item {
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}

.checklist-heading {
  font-size: 16px;
  margin: 0 0 8px;
}

.checklist-item p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

/* 更正提示条 */
.correction-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 34px;
  padding: 20px 22px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--seal);
  border-radius: 0 6px 6px 0;
}

.correction-main h2 {
  font-size: 17px;
  margin: 0 0 6px;
}

.correction-main p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}

.correction-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
}

.correction-note {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.7;
}

/* ---------- pages：内页通用双栏 ---------- */
.page-layout {
  display: grid;
  gap: 36px;
  align-items: start;
}

.content-two-col {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.main-column {
  min-width: 0;
}

.fact-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.aside-title {
  font-size: 15px;
  color: var(--ink-mute);
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.fact-column section {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf8f1;
  padding: 16px;
}

.fact-column h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.aside-intro {
  font-size: 13.5px;
  color: var(--ink-mute);
  margin: 0 0 12px;
  line-height: 1.7;
}

/* ---------- pages：更新动态 ---------- */
.update-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--line);
  padding-left: 22px;
  margin-left: 6px;
}

.update-timeline .timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.update-timeline .timeline-item:last-child {
  padding-bottom: 0;
}

.update-timeline .timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--seal);
}

.timeline-entry {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf8f1;
  padding: 16px 18px;
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.batch-no {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--seal);
  border: 1px solid var(--seal-soft);
  border-radius: 3px;
  padding: 0 7px;
  line-height: 1.8;
}

.timeline-figure {
  margin: 0 0 12px;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: var(--paper-2);
}

.timeline-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.timeline-figure figcaption {
  padding: 6px 10px;
  margin: 0;
  border-top: 1px solid var(--line-soft);
  background: #fdfaf4;
}

.entry-name {
  font-size: 17px;
  margin: 0 0 6px;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0 8px;
}

.entry-scope {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}

.status-legend {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legend-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.legend-item {
  border-top: 2px solid var(--ink);
  padding-top: 10px;
}

.legend-name {
  font-size: 15px;
  margin: 0 0 6px;
}

.legend-mean {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

.legend-scope {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-item {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.plan-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.plan-name {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 2px;
}

.plan-target {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 2px;
}

.plan-order {
  font-size: 12px;
  color: var(--ink-mute);
  margin: 0;
}

.archive-link .text-link {
  margin-top: 4px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.related-list a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1px dotted var(--line);
}

.related-list li:last-child a {
  border-bottom: 0;
}

.related-list a:hover {
  color: var(--seal);
}

/* ---------- pages：近期专题 ---------- */
.gallery-selector {
  margin-bottom: 40px;
}

.section-title {
  font-size: clamp(1.3rem, 2.1vw, 1.6rem);
  margin: 0 0 6px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}

.main-figure {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-2);
}

.main-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.main-figure figcaption {
  padding: 10px 14px 4px;
  margin: 0;
}

.current-flag {
  font-size: 12px;
  color: var(--seal);
  margin: 0;
  padding: 0 14px 12px;
}

.current-flag::before {
  content: "✓ ";
}

.thumb-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.thumb-item {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fbf8f1;
  cursor: pointer;
  padding: 0;
}

.thumb-item:hover {
  border-color: var(--ink-soft);
}

.thumb-item.is-active {
  border-color: var(--seal);
  box-shadow: inset 0 0 0 1px var(--seal);
}

.thumb-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.thumb-radio:focus-visible + .thumb-check {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
}

.thumb-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fdfaf4;
  z-index: 2;
}

.thumb-item.is-active .thumb-check {
  border-color: var(--seal);
  background: var(--seal);
}

.thumb-item.is-active .thumb-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fdf9f1;
  border-bottom: 2px solid #fdf9f1;
  transform: rotate(40deg);
}

.thumb-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.thumb-label {
  display: block;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
  line-height: 1.5;
}

.thumb-item.is-active .thumb-label {
  color: var(--seal);
  font-weight: 700;
}

.feature-list {
  margin-bottom: 40px;
}

.feature-item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.feature-item:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.feature-no {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--seal);
  border: 1px solid var(--seal-soft);
  border-radius: 3px;
  padding: 0 7px;
  flex: 0 0 auto;
}

.feature-name {
  font-size: 19px;
  margin: 0;
}

.feature-fields {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0 0 12px;
  max-width: 760px;
}

.feature-fields dt {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding-top: 1px;
}

.feature-fields dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.feature-link {
  margin: 0;
}

.reading-order {
  padding-top: 4px;
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}

.order-step {
  display: flex;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf8f1;
  padding: 16px;
  min-width: 0;
}

.order-no {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--seal);
  line-height: 1;
  flex: 0 0 auto;
}

.order-body {
  min-width: 0;
}

.order-name {
  font-size: 16px;
  margin: 0 0 6px;
}

.order-reason {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

.order-meta {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin: 0;
}

.order-foot {
  margin: 20px 0 0;
}

/* ---------- pages：题材索引 ---------- */
.page-figure {
  margin: 18px 0 0;
  max-width: 620px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-2);
}

.page-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-figure figcaption {
  padding: 8px 12px;
  margin: 0;
  border-top: 1px solid var(--line-soft);
  background: #fbf8f1;
}

.genre-table {
  margin-bottom: 40px;
}

.genre-table .data-table {
  min-width: 760px;
}

.representative-list {
  margin-bottom: 40px;
}

.representative-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}

.representative-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.representative-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf8f1;
  padding: 16px;
}

.representative-title {
  font-size: 16px;
  margin: 0 0 6px;
}

.representative-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 12px;
}

.representative-meta .tag {
  color: var(--mist);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 6px;
  line-height: 1.7;
}

.representative-meta .orient {
  color: var(--seal);
  border: 1px solid var(--seal-soft);
  border-radius: 3px;
  padding: 0 6px;
  line-height: 1.7;
}

.representative-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.cross-link-band {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.cross-link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}

.cross-link-item {
  border-top: 2px solid var(--ink);
  padding-top: 10px;
  min-width: 0;
}

.cross-link-title {
  font-size: 16px;
  margin: 0 0 6px;
}

.cross-link-title a {
  color: var(--ink);
}

.cross-link-title a:hover {
  color: var(--seal);
}

.cross-link-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- pages：历史归档 ---------- */
.heading-figure {
  margin: 18px 0 0;
  max-width: 620px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-2);
}

.heading-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.heading-figure figcaption {
  padding: 8px 12px;
  margin: 0;
  border-top: 1px solid var(--line-soft);
  background: #fbf8f1;
}

.segment-overview {
  margin-bottom: 40px;
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 18px;
}

.segment-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf8f1;
  padding: 16px 18px;
  min-width: 0;
}

.segment-index {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--seal);
  margin: 0 0 4px;
}

.segment-name {
  font-size: 17px;
  margin: 0 0 8px;
}

.segment-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.segment-range {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin: 0 0 12px;
}

.segment-link {
  margin-top: auto;
  font-size: 14px;
  color: var(--seal);
  border-bottom: 1px solid var(--seal-soft);
  align-self: flex-start;
  padding-bottom: 1px;
}

.segment-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.archive-table-section {
  margin-bottom: 40px;
}

.archive-table {
  min-width: 760px;
}

.table-caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--ink-mute);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: #f3eee3;
}

.migration-note {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.migration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}

.migration-item {
  border-top: 2px solid var(--ink);
  padding-top: 10px;
  min-width: 0;
}

.migration-name {
  font-size: 16px;
  margin: 0 0 6px;
}

.migration-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.migration-link {
  font-size: 14px;
  color: var(--seal);
  border-bottom: 1px solid var(--seal-soft);
  padding-bottom: 1px;
}

.migration-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- pages：阅读说明 ---------- */
.reading-heading {
  max-width: var(--read);
}

.entry-field-table {
  max-width: var(--read);
  margin-bottom: 40px;
}

.field-table {
  min-width: 620px;
}

.follow-path {
  max-width: var(--read);
  margin-bottom: 40px;
}

.path-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.path-step {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf8f1;
  padding: 16px;
  min-width: 0;
}

.step-index {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--seal);
  margin: 0 0 4px;
}

.path-step h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.path-step > p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.path-step .term-note {
  margin-bottom: 12px;
}

.reading-faq {
  max-width: var(--read);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf8f1;
  overflow: hidden;
}

.faq-question {
  position: relative;
  cursor: pointer;
  padding: 14px 44px 14px 16px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  min-height: 48px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--seal);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] .faq-question {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
}

.faq-question:hover {
  background: #f3eee3;
}

.faq-answer {
  padding: 14px 16px;
}

.faq-answer p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---------- pages：更正与反馈 ---------- */
.correction-log {
  margin-bottom: 40px;
}

.correction-log .data-table {
  min-width: 760px;
}

.scroll-hint {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin: 8px 0 0;
}

.scope-list {
  margin-bottom: 40px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}

.scope-item {
  border-top: 2px solid var(--ink);
  padding-top: 10px;
  min-width: 0;
}

.scope-item h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.scope-item > p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.scope-exclude {
  font-size: 13px;
  color: var(--ink-mute);
  padding-left: 10px;
  border-left: 2px solid var(--line);
}

.check-steps {
  margin-bottom: 40px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}

.step-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf8f1;
  padding: 16px;
  min-width: 0;
}

.step-no {
  display: inline-block;
  font-family: var(--serif);
  font-size: 12px;
  color: var(--seal);
  border: 1px solid var(--seal-soft);
  border-radius: 3px;
  padding: 0 7px;
  margin-bottom: 8px;
}

.step-item h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.step-item p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.step-entry {
  margin: 0;
}

.step-entry a {
  font-size: 14px;
  color: var(--seal);
  border-bottom: 1px solid var(--seal-soft);
  padding-bottom: 1px;
}

.step-entry a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.content-boundary {
  padding: 22px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.content-boundary h2 {
  font-size: 18px;
  margin: 0 0 10px;
}

.content-boundary > p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--seal);
  border-radius: 1px;
}

.boundary-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
}

.boundary-more a {
  font-size: 14px;
  color: var(--seal);
  border-bottom: 1px solid var(--seal-soft);
  padding-bottom: 1px;
}

.boundary-more a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- pages：404 ---------- */
.error-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 56px;
  padding-bottom: 72px;
}

.error-inner {
  max-width: 640px;
  width: 100%;
}

.error-code {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 700;
  color: var(--seal);
  line-height: 1;
  margin: 0 0 12px;
}

.error-inner h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}

.error-lead {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 6px;
  background: var(--seal);
  color: #fdf9f1;
  font-size: 15px;
  font-weight: 600;
}

.error-btn:hover {
  background: #7d3029;
  color: #fdf9f1;
}

.error-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
}

.error-link:hover {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--ink-soft);
}

.error-paths {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 20px;
}

.error-paths h2 {
  font-size: 16px;
  margin: 0 0 12px;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}

.error-path-list a {
  display: block;
  padding: 8px 0;
  font-size: 14.5px;
  color: var(--mist);
  border-bottom: 1px dotted var(--line);
}

.error-path-list a:hover {
  color: var(--seal);
}

.error-note {
  font-size: 13.5px;
  color: var(--ink-mute);
  margin: 0;
}

.error-note a {
  color: var(--seal);
  border-bottom: 1px solid var(--seal-soft);
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-decision {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero-rail {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
  }

  .hero-rail .rail-block {
    flex: 1 1 0;
    min-width: 0;
  }

  .genre-tags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    padding: 10px 18px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  /* 移动端：导航收成抽屉，父容器保持可显示 */
  .side-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 84vw;
    flex: none;
    background: var(--paper);
    border-right: 1px solid var(--line);
    padding: 20px 16px 28px;
    overflow-y: auto;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    visibility: hidden;
  }

  .side-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .side-nav-title {
    padding-left: 0;
    font-size: 14px;
  }

  .nav-link {
    min-height: 48px;
    font-size: 16px;
    border-radius: 0 5px 5px 0;
  }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(32, 35, 38, 0.42);
    z-index: 50;
  }

  .nav-scrim[hidden] {
    display: none;
  }

  .site-main {
    padding: 0 18px 44px;
  }

  .home-main {
    padding-top: 24px;
  }

  .hero-decision {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 6vw, 2.6rem);
  }

  .hero-rail {
    grid-column: auto;
    flex-direction: column;
  }

  .hero-figure img {
    aspect-ratio: 4 / 3;
  }

  .genre-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .waterfall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checklist-grid,
  .legend-list,
  .order-steps,
  .cross-link-list,
  .segment-grid,
  .migration-grid,
  .scope-grid,
  .step-list,
  .path-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .thumb-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .representative-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .correction-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 32px 18px 16px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .footer-copy {
    padding: 14px 18px 24px;
  }

  .page-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }
}

@media (max-width: 720px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .reading-picks {
    grid-template-columns: minmax(0, 1fr);
  }

  .waterfall-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .checklist-grid,
  .legend-list,
  .order-steps,
  .cross-link-list,
  .segment-grid,
  .migration-grid,
  .scope-grid,
  .step-list,
  .path-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .thumb-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .feature-fields dt {
    margin-top: 8px;
  }

  .timeline-figure {
    max-width: none;
  }

  .error-path-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15.5px;
    line-height: 1.8;
  }

  .header-inner {
    padding: 10px 14px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tagline {
    font-size: 11px;
  }

  .site-main {
    padding: 0 14px 36px;
  }

  .home-main {
    padding-top: 18px;
  }

  .genre-tags {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-heading {
    margin-bottom: 26px;
  }

  .page-eyebrow,
  .eyebrow {
    font-size: 12px;
  }

  .update-timeline,
  .timeline-list {
    padding-left: 16px;
    margin-left: 4px;
  }

  .update-timeline .timeline-item::before,
  .timeline-preview .timeline-item::before {
    left: -21px;
  }

  .timeline-entry {
    padding: 14px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 26px 14px 12px;
  }

  .footer-copy {
    padding: 12px 14px 22px;
  }

  .correction-strip,
  .content-boundary {
    padding: 16px;
  }

  .error-main {
    padding-top: 36px;
    padding-bottom: 48px;
  }

  .error-code {
    font-size: 44px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-btn,
  .error-link {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 程序验收反馈：移动端防溢出 */
@media (max-width: 768px) {
  .site-main,
  .site-main * {
    min-width: 0;
    max-width: 100%;
  }

  .site-main :is(h1, h2, h3, h4, p, a, span) {
    overflow-wrap: anywhere;
  }
}
