/* ==========================================================================
   麻花MV · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

:root {
  --shell-max: 1160px;
  --content-max: 1120px;
  --aside-width: 320px;
  --gap: 40px;

  --paper: #F2EFE6;
  --paper-light: #E7E1D3;
  --paper-card: #FAF8F2;
  --ink: #1F2321;
  --ink-soft: #62685F;
  --index-red: #A6422B;
  --archive-green: #536B58;
  --line: #CFC6B2;
  --line-soft: #DCD5C4;
  --footer-bg: #20251F;
  --footer-ink: #E7E1D3;
  --footer-ink-soft: #A8AFA0;

  --font-serif: "Noto Serif SC", "Songti SC", STSong, "SimSun", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: "SFMono-Regular", "DejaVu Sans Mono", Menlo, Consolas, monospace;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--index-red);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #7f2f1e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--index-red);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  text-align: left;
  vertical-align: top;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background-color: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--paper);
  text-decoration: none;
}

.mono,
.cell-code,
.index-tag,
.brand-index,
.step-num,
.step-index,
.page-meta,
.error-code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   2. layout
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 页头 --------------------------------------------------------------- */
.site-header {
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 50;
}

.header-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.brand-index {
  font-size: 12px;
  color: var(--index-red);
  border: 1px solid var(--index-red);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  line-height: 1.4;
}

/* 主导航 ------------------------------------------------------------- */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  position: relative;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink);
  background-color: var(--paper-light);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 600;
}

.nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background-color: var(--index-red);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: transparent;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background-color: var(--ink);
  transform: translateX(-50%);
}

.nav-toggle::before {
  top: 16px;
  box-shadow: 0 6px 0 var(--ink);
}

.nav-toggle::after {
  bottom: 16px;
  display: none;
}

.nav-toggle[aria-expanded="true"]::before {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: none;
}

.nav-toggle[aria-expanded="true"]::after {
  display: block;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background-color: var(--paper-light);
  padding: 8px 24px 16px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  padding: 12px 4px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  min-height: 44px;
  line-height: 1.5;
  text-decoration: none;
}

.mobile-nav-link.is-current {
  color: var(--index-red);
  font-weight: 600;
}

/* 主内容 ------------------------------------------------------------- */
.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.home-main {
  width: 100%;
}

/* 面包屑 ------------------------------------------------------------- */
.breadcrumb {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 16px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--index-red);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 13px;
  color: var(--ink-soft);
  list-style: none;
}

.breadcrumb-list .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--line);
}

.breadcrumb-list a {
  color: var(--ink-soft);
}

/* 页面标题区 --------------------------------------------------------- */
.page-header {
  padding: 10px 0 8px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

.page-title-block,
.page-title,
.page-title-inner {
  max-width: 100%;
}

.page-title-block {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 8px 24px 0;
}

.page-title-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-title {
  padding: 0;
}

.page-lead,
.page-lede {
  margin-top: 10px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 760px;
}

.page-meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.page-index {
  display: inline-block;
  font-size: 12px;
  color: var(--index-red);
  border: 1px solid var(--index-red);
  border-radius: var(--radius-sm);
  padding: 1px 8px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* 内页布局 ----------------------------------------------------------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  padding-top: 20px;
}

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--aside-width);
  gap: var(--gap);
  align-items: start;
}

.layout-with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--aside-width);
  gap: var(--gap);
  align-items: start;
}

.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.page-content {
  min-width: 0;
}

/* 页脚 --------------------------------------------------------------- */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-ink);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--footer-ink);
  margin: 0 0 12px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--footer-ink-soft);
  max-width: 320px;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--footer-ink);
  margin: 0 0 14px;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--footer-ink-soft);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--footer-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(231, 225, 211, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--footer-ink-soft);
}

.footer-note,
.footer-copy {
  margin: 0;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   3. components
   -------------------------------------------------------------------------- */

/* 通用按钮 ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.4;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background-color: var(--index-red);
  color: #FBF8F1;
  border-color: var(--index-red);
}

.btn-primary:hover {
  background-color: #8c341f;
  border-color: #8c341f;
  color: #FBF8F1;
  text-decoration: none;
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--ink-soft);
}

.btn-ghost:hover {
  background-color: var(--paper-light);
  color: var(--ink);
  border-color: var(--ink);
  text-decoration: none;
}

/* 索引标签 ----------------------------------------------------------- */
.index-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--index-red);
  border: 1px solid var(--index-red);
  border-radius: var(--radius-sm);
  padding: 1px 8px;
  line-height: 1.6;
  margin: 0 0 8px;
}

/* 区块标题 ----------------------------------------------------------- */
.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.section-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 760px;
}

.section-intro {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 18px;
  max-width: 760px;
}

.section-foot {
  margin-top: 16px;
  font-size: 14px;
}

.text-link {
  color: var(--index-red);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.text-link:hover {
  color: #7f2f1e;
  text-decoration: none;
}

/* 表格容器与密集表 --------------------------------------------------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
}

.dense-table,
.ledger-table,
.field-table,
.data-table,
.topic-table,
.topic-map-table {
  width: 100%;
  font-size: 14px;
  line-height: 1.65;
}

.dense-table th,
.dense-table td,
.ledger-table th,
.ledger-table td,
.field-table th,
.field-table td,
.data-table th,
.data-table td,
.topic-table th,
.topic-table td,
.topic-map-table th,
.topic-map-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.dense-table thead th,
.ledger-table thead th,
.field-table thead th,
.data-table thead th,
.topic-table thead th,
.topic-map-table thead th {
  background-color: var(--paper-light);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.dense-table tbody tr:last-child td,
.ledger-table tbody tr:last-child td,
.field-table tbody tr:last-child td,
.data-table tbody tr:last-child td,
.topic-table tbody tr:last-child td,
.topic-map-table tbody tr:last-child td {
  border-bottom: 0;
}

.dense-table tbody tr:hover,
.ledger-table tbody tr:hover,
.data-table tbody tr:hover,
.topic-table tbody tr:hover,
.topic-map-table tbody tr:hover {
  background-color: #F6F2E8;
}

.dense-table tbody tr:hover td:first-child,
.ledger-table tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--index-red);
}

.cell-code {
  font-size: 13px;
  color: var(--archive-green);
  white-space: nowrap;
}

.cell-name {
  font-weight: 600;
  color: var(--ink);
}

.field-table th {
  width: 30%;
  background-color: transparent;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}

.table-caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background-color: var(--paper-light);
}

/* 步骤列表（首页） --------------------------------------------------- */
.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-item {
  position: relative;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  min-width: 0;
}

.step-num {
  display: inline-block;
  font-size: 13px;
  color: var(--index-red);
  border-bottom: 2px solid var(--index-red);
  padding-bottom: 2px;
  margin-bottom: 10px;
}

.step-title {
  font-size: 17px;
  margin: 0 0 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* 侧栏通用 ----------------------------------------------------------- */
.sidebar {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  align-self: start;
}

.aside-title {
  font-size: 18px;
  margin: 0 0 10px;
}

.aside-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}

.aside-subtitle {
  font-size: 14px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}

.aside-block {
  margin-top: 18px;
}

.aside-block p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.filter-links,
.aside-links {
  margin-top: 18px;
}

.filter-links:first-of-type,
.aside-links:first-of-type {
  margin-top: 0;
}

.filter-list,
.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-list a,
.aside-link-list a {
  display: block;
  padding: 7px 10px;
  font-size: 14px;
  color: var(--ink);
  border-left: 2px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  line-height: 1.5;
}

.filter-list a:hover,
.aside-link-list a:hover {
  background-color: var(--paper-light);
  border-left-color: var(--index-red);
  color: var(--ink);
  text-decoration: none;
}

/* 筛选锚点条（专题页） --------------------------------------------- */
.filter-strip {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 24px;
  margin-top: 16px;
}

.filter-strip-title {
  font-size: 13px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

.filter-strip .filter-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-link {
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--ink);
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  line-height: 1.5;
}

.filter-link:hover {
  background-color: var(--paper-light);
  border-color: var(--index-red);
  color: var(--index-red);
  text-decoration: none;
}

/* 图片容器 ----------------------------------------------------------- */
.hero-media,
.shelf-media,
.special-media,
.channel-figure,
.field-figure,
.media-figure,
.archive-figure,
.router-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-light);
}

.hero-media img,
.shelf-media img,
.special-media img,
.channel-figure img,
.field-figure img,
.media-figure img,
.archive-figure img,
.router-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption,
.special-caption,
.media-caption,
.figure-caption,
.router-caption {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  background-color: var(--paper-card);
}

/* 原生 details 问答 ------------------------------------------------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 16px 44px 16px 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
  position: relative;
  min-height: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--index-red);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] .faq-question {
  background-color: var(--paper-light);
  border-bottom: 1px solid var(--line-soft);
}

.faq-answer {
  padding: 14px 18px 18px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.faq-answer p + p {
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   4. pages
   -------------------------------------------------------------------------- */

/* 首页 --------------------------------------------------------------- */
.hero-cover {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 40px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;
}

.hero-copy .index-tag {
  margin-bottom: 14px;
}

.hero-copy h1 {
  font-size: 48px;
  line-height: 1.25;
  margin: 0 0 18px;
  color: var(--ink);
}

.hero-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-index-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 24px;
}

.hero-index-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.index-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--index-red);
}

.index-text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 状态条 ------------------------------------------------------------- */
.status-bar {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.status-cell {
  padding: 4px 20px;
  border-left: 1px solid var(--line-soft);
  min-width: 0;
}

.status-cell:first-child {
  border-left: 0;
  padding-left: 0;
}

.status-title {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--ink);
}

.status-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* 首页通用区块 ------------------------------------------------------- */
.channel-index,
.special-shelf,
.field-preview,
.start-route,
.archive-ledger,
.feedback-summary {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 48px 24px;
  border-bottom: 1px solid var(--line);
}

.channel-index .section-head h2,
.special-shelf .section-head h2,
.field-preview .section-head h2,
.start-route .section-head h2,
.archive-ledger .section-head h2,
.feedback-summary .section-head h2 {
  font-size: 22px;
}

/* 专题档案架 --------------------------------------------------------- */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.shelf-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  overflow: hidden;
  min-width: 0;
}

.shelf-media {
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
}

.shelf-media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.shelf-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shelf-title {
  font-size: 17px;
  margin: 0;
  line-height: 1.4;
}

.shelf-title a {
  color: var(--ink);
  text-decoration: none;
}

.shelf-title a:hover {
  color: var(--index-red);
  text-decoration: none;
}

.shelf-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* 排查反馈摘要 ------------------------------------------------------- */
.feedback-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.issue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.issue-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--archive-green);
  border-radius: var(--radius-sm);
  background-color: var(--paper-card);
  min-width: 0;
}

.issue-title {
  font-size: 16px;
  margin: 0 0 6px;
}

.issue-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.feedback-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-light);
  min-width: 0;
}

.feedback-card-title {
  font-size: 17px;
  margin: 0 0 10px;
}

.feedback-card-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* 频道索引页 --------------------------------------------------------- */
.channel-table-section,
.channel-detail-section,
.topic-map-section {
  margin-top: 32px;
}

.channel-table-section h2,
.channel-detail-section h2,
.topic-map-section h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.channel-table,
.topic-map-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  overflow: hidden;
}

.channel-table {
  display: table;
}

.channel-detail-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.channel-detail-section > h2,
.channel-detail-section > .section-desc {
  grid-column: 1 / -1;
}

.channel-item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  overflow: hidden;
  min-width: 0;
}

.channel-item-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line-soft);
  background-color: var(--paper-light);
}

.channel-item-head .index-tag {
  margin-bottom: 6px;
}

.channel-item-head h3 {
  font-size: 17px;
  margin: 0;
  line-height: 1.4;
}

.channel-item-body {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-scope {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.channel-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.channel-types li {
  font-size: 12px;
  color: var(--archive-green);
  border: 1px solid var(--archive-green);
  border-radius: var(--radius-sm);
  padding: 1px 8px;
  line-height: 1.6;
}

.channel-figure {
  margin: 18px 0 20px;
}

.channel-figure img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.channel-figure figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  background-color: var(--paper-card);
}

.topic-map-section .section-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* 专题档案页 --------------------------------------------------------- */
.special-list-section {
  margin-top: 28px;
}

.special-list-section h2,
.topic-notes-section h2,
.batch-order-section h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.special-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  overflow: hidden;
  margin-bottom: 18px;
  min-width: 0;
}

.special-media {
  border: 0;
  border-right: 1px solid var(--line-soft);
  border-radius: 0;
  min-width: 0;
}

.special-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.special-caption {
  border-top: 1px solid var(--line-soft);
}

.special-body {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.special-title {
  font-size: 18px;
  margin: 0;
  line-height: 1.4;
}

.special-scope {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.special-channel,
.special-batch {
  font-size: 13px;
  color: var(--archive-green);
  line-height: 1.6;
}

.special-more {
  margin-top: 6px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--index-red);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.special-more:hover {
  color: #7f2f1e;
  text-decoration: none;
}

.topic-notes-section {
  margin-top: 32px;
}

.topic-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  overflow: hidden;
}

.batch-order-section {
  margin-top: 32px;
}

.batch-rule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.batch-rule {
  padding: 12px 16px;
  border-left: 3px solid var(--archive-green);
  background-color: var(--paper-card);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.batch-rule strong {
  color: var(--ink);
  margin-right: 8px;
}

/* 专题页侧栏 */
.content-aside {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  align-self: start;
}

.content-aside h2 {
  font-size: 18px;
  margin: 0 0 10px;
}

.aside-intro {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.tip-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.tip-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.tip-title {
  font-size: 15px;
  margin: 0 0 6px;
}

.tip-item p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.aside-links-title {
  font-size: 14px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}

/* 观看起步页 --------------------------------------------------------- */
.start-steps,
.device-table,
.entry-checklist {
  margin-top: 32px;
}

.start-steps:first-child,
.device-table:first-child,
.entry-checklist:first-child {
  margin-top: 0;
}

.start-steps h2,
.device-table h2,
.entry-checklist h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.media-figure {
  margin: 18px 0 22px;
}

.media-figure img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.start-steps .step-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.start-steps .step-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-areas:
    "idx title"
    "idx text"
    "idx check";
  gap: 4px 16px;
  padding: 16px 18px;
  border-left: 3px solid var(--index-red);
}

.start-steps .step-index {
  grid-area: idx;
  font-size: 14px;
  color: var(--index-red);
  align-self: start;
  padding-top: 2px;
}

.start-steps .step-title {
  grid-area: title;
  font-size: 17px;
  margin: 0;
}

.start-steps .step-text {
  grid-area: text;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.start-steps .step-check {
  grid-area: check;
  font-size: 13px;
  color: var(--archive-green);
  line-height: 1.6;
  margin-top: 4px;
}

.device-table .data-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  overflow: hidden;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.check-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  min-width: 0;
}

.check-title {
  font-size: 15px;
  margin: 0 0 6px;
}

.check-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.side-column {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  align-self: start;
}

.side-column .aside-title {
  font-size: 18px;
  margin: 0 0 10px;
}

.aside-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 14px;
}

.side-column .aside-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.side-column .aside-links a {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--ink);
  border-left: 2px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  line-height: 1.5;
}

.side-column .aside-links a:hover {
  background-color: var(--paper-light);
  border-left-color: var(--index-red);
  color: var(--ink);
  text-decoration: none;
}

.aside-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

/* 字段与标注页 ------------------------------------------------------- */
.field-table-section,
.status-batch-section,
.catalog-rules-section {
  margin-top: 32px;
}

.field-table-section:first-child,
.status-batch-section:first-child,
.catalog-rules-section:first-child {
  margin-top: 0;
}

.field-table-section h2,
.status-batch-section h2,
.catalog-rules-section h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.field-figure {
  margin: 18px 0 20px;
}

.field-figure img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.field-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  overflow: hidden;
}

.mark-block-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.mark-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  min-width: 0;
}

.mark-title {
  font-size: 16px;
  margin: 0 0 8px;
}

.mark-def {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 10px;
}

.mark-example {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--archive-green);
  background-color: var(--paper-light);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  line-height: 1.6;
  word-break: break-word;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.rule-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  min-width: 0;
}

.rule-title {
  font-size: 16px;
  margin: 0 0 6px;
}

.rule-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.inner-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inner-aside .aside-block {
  margin-top: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
}

.aside-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #FBF8F1;
  background-color: var(--index-red);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.aside-action:hover {
  background-color: #8c341f;
  color: #FBF8F1;
  text-decoration: none;
}

/* 归档台账页 --------------------------------------------------------- */
.latest-batch,
.batch-groups,
.impact-table-section {
  margin-top: 32px;
}

.latest-batch:first-child,
.batch-groups:first-child,
.impact-table-section:first-child {
  margin-top: 0;
}

.latest-batch h2,
.batch-groups h2,
.impact-table-section h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.latest-table,
.impact-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  overflow: hidden;
}

.archive-figure {
  margin: 24px 0;
}

.archive-figure img {
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.batch-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  margin-top: 16px;
  overflow: hidden;
}

.batch-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background-color: var(--paper-light);
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  margin: 0;
}

.batch-heading .cell-code {
  font-size: 13px;
  color: var(--index-red);
}

.batch-list {
  display: flex;
  flex-direction: column;
}

.batch-list li {
  padding: 10px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.batch-list li:last-child {
  border-bottom: 0;
}

.batch-obj {
  color: var(--ink);
  font-weight: 600;
  margin-right: 8px;
}

.archive-aside {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  align-self: start;
}

.archive-aside h2 {
  font-size: 18px;
  margin: 0 0 10px;
}

.archive-aside .aside-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.archive-aside .aside-links a {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--ink);
  border-left: 2px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  line-height: 1.5;
}

.archive-aside .aside-links a:hover {
  background-color: var(--paper-light);
  border-left-color: var(--index-red);
  color: var(--ink);
  text-decoration: none;
}

/* 排查反馈页 --------------------------------------------------------- */
.issue-router,
.paths-four,
.preparation-checklist,
.faq {
  margin-top: 32px;
}

.issue-router:first-child,
.paths-four:first-child,
.preparation-checklist:first-child,
.faq:first-child {
  margin-top: 0;
}

.issue-router h2,
.paths-four h2,
.preparation-checklist h2,
.faq h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.router-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}

.router-media {
  min-width: 0;
}

.router-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.router-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.router-item {
  min-width: 0;
}

.router-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name anchor"
    "symptom anchor";
  gap: 2px 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--archive-green);
  border-radius: var(--radius-sm);
  background-color: var(--paper-card);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.router-link:hover {
  background-color: var(--paper-light);
  border-left-color: var(--index-red);
  text-decoration: none;
}

.router-name {
  grid-area: name;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.router-symptom {
  grid-area: symptom;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.router-anchor {
  grid-area: anchor;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--index-red);
  white-space: nowrap;
}

.path-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  padding: 20px;
  margin-top: 16px;
  min-width: 0;
}

.path-block h3 {
  font-size: 17px;
  margin: 0 0 12px;
}

.path-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: pathstep;
}

.path-step {
  position: relative;
  padding-left: 34px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  counter-increment: pathstep;
}

.path-step::before {
  content: counter(pathstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--index-red);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 24px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--paper-light);
}

.path-next {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}

.prep-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.prep-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper-card);
  min-width: 0;
}

.prep-title {
  font-size: 15px;
  margin: 0 0 6px;
}

.prep-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.faq .section-head {
  margin-bottom: 18px;
}

/* 404 --------------------------------------------------------------- */
.error-main {
  padding: 0 24px;
}

.error-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 0 80px;
}

.error-code {
  font-size: 13px;
  color: var(--index-red);
  margin-bottom: 12px;
}

.error-inner h1 {
  font-size: 32px;
  margin: 0 0 14px;
}

.error-lead {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 560px;
}

.error-paths,
.error-notes {
  margin-top: 28px;
}

.error-paths h2,
.error-notes h2 {
  font-size: 20px;
  margin: 0 0 12px;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.error-link-list a {
  display: block;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--paper-card);
  text-decoration: none;
  line-height: 1.5;
}

.error-link-list a:hover {
  background-color: var(--paper-light);
  border-color: var(--index-red);
  color: var(--index-red);
  text-decoration: none;
}

.error-notes p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   5. responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .header-inner {
    gap: 16px;
  }

  .nav-link {
    padding: 8px 9px;
    font-size: 13px;
  }

  .hero-cover {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 32px 24px 40px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .layout-shell,
  .layout-with-aside {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
  }

  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-desc {
    max-width: 100%;
  }

  .status-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .status-cell {
    border-left: 0;
    padding: 0;
  }

  .shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mark-block-grid,
  .prep-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .error-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .mobile-nav:not([hidden]) {
    display: block;
  }

  .header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .brand-mark {
    font-size: 19px;
  }

  .inner-main {
    padding: 0 16px 48px;
  }

  .breadcrumb {
    padding: 12px 0 0;
    font-size: 12px;
  }

  .breadcrumb-list {
    padding: 12px 16px 0;
    font-size: 12px;
  }

  .page-header {
    padding: 8px 0 6px;
  }

  .page-title {
    font-size: 28px;
    line-height: 1.35;
  }

  .page-title-block {
    padding: 8px 16px 0;
  }

  .page-lead,
  .page-lede {
    font-size: 15px;
  }

  .page-layout {
    padding-top: 16px;
    gap: 28px;
  }

  .layout-shell,
  .layout-with-aside,
  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  /* 左侧栏在手机上排到主内容之后 */
  .sidebar-left .page-layout .sidebar,
  .page-layout.sidebar-left .sidebar {
    order: 2;
  }

  .sidebar-left .page-layout .page-content,
  .page-layout.sidebar-left .page-content {
    order: 1;
  }

  .hero-cover {
    padding: 28px 16px 32px;
    gap: 26px;
  }

  .hero-copy h1 {
    font-size: 32px;
    line-height: 1.3;
  }

  .hero-lead {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .hero-index-list {
    padding: 14px 0;
    margin-bottom: 18px;
  }

  .channel-index,
  .special-shelf,
  .field-preview,
  .start-route,
  .archive-ledger,
  .feedback-summary {
    padding: 32px 16px;
  }

  .status-bar {
    padding: 26px 16px;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .status-cell {
    padding: 0 0 16px;
    border-bottom: 1px solid var(--line-soft);
  }

  .status-cell:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .shelf-grid,
  .special-card,
  .channel-detail-section,
  .feedback-cols,
  .router-layout,
  .mark-block-grid,
  .prep-list,
  .check-list,
  .error-link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .special-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .special-media {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .special-media img {
    aspect-ratio: 16 / 9;
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .start-steps .step-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .filter-strip {
    padding: 10px 16px;
  }

  .footer-inner {
    padding: 36px 16px 24px;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    padding: 16px 16px 24px;
    flex-direction: column;
    gap: 8px;
  }

  .error-main {
    padding: 0 16px;
  }

  .error-inner {
    padding: 48px 0 56px;
  }

  .error-inner h1 {
    font-size: 28px;
  }

  .router-link {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "name"
      "symptom"
      "anchor";
    gap: 4px;
  }

  .router-anchor {
    justify-self: start;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .page-title {
    font-size: 26px;
  }

  .section-head h2,
  .channel-index .section-head h2,
  .special-shelf .section-head h2,
  .field-preview .section-head h2,
  .start-route .section-head h2,
  .archive-ledger .section-head h2,
  .feedback-summary .section-head h2,
  .channel-table-section h2,
  .channel-detail-section h2,
  .topic-map-section h2,
  .special-list-section h2,
  .topic-notes-section h2,
  .batch-order-section h2,
  .start-steps h2,
  .device-table h2,
  .entry-checklist h2,
  .field-table-section h2,
  .status-batch-section h2,
  .catalog-rules-section h2,
  .latest-batch h2,
  .batch-groups h2,
  .impact-table-section h2,
  .issue-router h2,
  .paths-four h2,
  .preparation-checklist h2,
  .faq h2 {
    font-size: 19px;
  }

  .hero-index-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    flex: 1 1 auto;
    padding: 10px 16px;
    font-size: 14px;
  }

  .shelf-body,
  .special-body {
    padding: 14px 14px 16px;
  }

  .channel-item-head,
  .channel-item-body,
  .path-block,
  .feedback-card,
  .sidebar,
  .content-aside,
  .side-column,
  .inner-aside .aside-block,
  .archive-aside {
    padding: 16px;
  }

  .dense-table th,
  .dense-table td,
  .ledger-table th,
  .ledger-table td,
  .field-table th,
  .field-table td,
  .data-table th,
  .data-table td,
  .topic-table th,
  .topic-table td,
  .topic-map-table th,
  .topic-map-table td {
    padding: 10px 10px;
    font-size: 13px;
  }

  .faq-question {
    padding: 14px 40px 14px 14px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 12px 14px 16px;
  }

  .footer-title {
    margin-bottom: 10px;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}

/* 程序验收反馈：移动端防溢出 */
@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;
  }
}
