/* ==========================================================================
   91果冻制作厂 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */
:root {
  --paper: #f6f4ee;
  --card: #ffffff;
  --ink: #16222c;
  --muted: #5c6b76;
  --amber: #b8611f;
  --line: #d9d3c6;
  --line-soft: #e7e2d7;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shell: 1120px;
  --shell-narrow: 720px;
  --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: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0 0 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 120ms ease, color 120ms ease;
}

a:hover,
a:focus-visible {
  border-bottom-color: var(--amber);
  color: var(--amber);
}

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

code {
  font-family: var(--mono);
  font-size: 13px;
  background: #f1eee5;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1px 6px;
  color: #3d4b56;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-mark {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  border-bottom: none;
  color: var(--ink);
}

.brand-mark:hover,
.brand-mark:focus-visible {
  color: var(--amber);
  border-bottom-color: transparent;
}

.brand-slogan {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.nav-link.is-current {
  border-bottom-color: var(--amber);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  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;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px 64px;
}

.breadcrumb {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 20px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.breadcrumb ol,
.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.inner-main > .breadcrumb {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
  margin: 0 0 10px;
}

.inner-main > .breadcrumb a {
  color: var(--muted);
}

.page-header {
  padding: 6px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.page-title {
  font-size: 34px;
  line-height: 1.28;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.page-title.section-index,
.page-title .section-index {
  font-family: var(--mono);
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(120px, 1fr));
  gap: 28px 32px;
  align-items: start;
}

.footer-brand {
  min-width: 0;
}

.footer-mark {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.footer-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-group {
  min-width: 0;
}

.footer-group-title {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-group a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 20px 28px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

.footer-copy {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   components · 通用模块
   -------------------------------------------------------------------------- */
.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--amber);
  flex: none;
}

.section-lead {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 68ch;
}

.section-note {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.section-head .section-note {
  margin-bottom: 0;
}

.section-index {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  margin: 0 0 6px;
}

.col-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.col-link:hover,
.col-link:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.col-title {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.figure-block,
.inline-figure,
.channel-figure,
.route-figure,
.hero-figure {
  margin: 0;
}

.figure-block img,
.inline-figure img,
.channel-figure img,
.route-figure img,
.hero-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  object-fit: cover;
}

/* 表格 */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
  min-width: 480px;
}

.data-table caption {
  text-align: left;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #efebe0;
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  white-space: nowrap;
}

.data-table tbody th {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  text-align: left;
  color: var(--ink);
  background: #fbf9f3;
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 14px;
  white-space: nowrap;
  width: 26%;
}

.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: #33424e;
  vertical-align: top;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody td:last-child {
  font-family: var(--mono);
  font-size: 13px;
  color: #3d4b56;
}

.sort-btn,
.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.sort-btn:hover,
.sort-button:hover,
.sort-btn:focus-visible,
.sort-button:focus-visible {
  color: var(--amber);
  border-color: var(--line);
  outline: none;
}

.sort-btn::after,
.sort-button::after {
  content: "↕";
  font-size: 11px;
  color: var(--muted);
}

.sort-btn[aria-sort="ascending"]::after,
.sort-button[aria-sort="ascending"]::after {
  content: "↑";
  color: var(--amber);
}

.sort-btn[aria-sort="descending"]::after,
.sort-button[aria-sort="descending"]::after {
  content: "↓";
  color: var(--amber);
}

.table-note,
.table-footnote {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* 任务清单 */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line-soft);
}

.task-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.task-list li::before {
  content: "□";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber);
  font-family: var(--mono);
}

/* 编号步骤 */
.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 0;
}

.step-item {
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.step-item .step-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 6px;
}

.step-item .step-title {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.step-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* 相关入口 */
.related {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.related h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.related-list li {
  min-width: 0;
}

.related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.related-list a:hover,
.related-list a:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.back-entry,
.back-link {
  margin: 34px 0 0;
  font-size: 14px;
}

.back-entry a,
.back-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.back-entry a:hover,
.back-link a:hover,
.back-entry a:focus-visible,
.back-link a:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* 检查清单 */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.7;
  color: #33424e;
}

.check-list .check-index,
.check-list .step-index {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
}

/* 侧栏 */
.aside-block {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 18px;
}

.aside-block:last-child {
  margin-bottom: 0;
}

.aside-title {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}

.aside-links a:hover,
.aside-links a:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* 小表格 */
.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
}

.mini-table thead th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.mini-table tbody th,
.mini-table tbody td {
  padding: 7px 4px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.mini-table tbody th {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--amber);
  white-space: nowrap;
  width: 34px;
}

.mini-table tbody tr:last-child th,
.mini-table tbody tr:last-child td {
  border-bottom: none;
}

/* 双栏容器 */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.col-block {
  min-width: 0;
}

.col-maintenance,
.col-correction {
  min-width: 0;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.division-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.division-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #33424e;
}

.division-list li::before {
  content: "·";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--amber);
  font-weight: 700;
}

.division-link {
  margin: 16px 0 0;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
}

.home-main > section {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.home-main > section:last-of-type {
  border-bottom: none;
}

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: start;
  padding-top: 40px;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
}

.hero-text h1 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.8;
  color: #33424e;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 26px;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 120ms ease, color 120ms ease, background-color 120ms ease;
}

.entry-link:hover,
.entry-link:focus-visible {
  color: var(--amber);
  border-color: var(--amber);
}

.entry-link.entry-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fdfcf8;
}

.entry-link.entry-primary:hover,
.entry-link.entry-primary:focus-visible {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.fact-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
}

.fact-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.hero-figure {
  min-width: 0;
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 6px;
}

/* 共享视野 */
.shared-view .section-lead {
  margin-bottom: 26px;
}

.shared-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: start;
}

.shared-col {
  min-width: 0;
}

.channel-strip {
  display: flex;
  flex-direction: column;
}

.channel-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "num name"
    "num scope";
  gap: 2px 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.channel-item:first-child {
  padding-top: 0;
}

.channel-item:last-child {
  border-bottom: none;
}

.channel-num {
  grid-area: num;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  padding-top: 2px;
}

.channel-name {
  grid-area: name;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.channel-scope {
  grid-area: scope;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.entry-card {
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 14px;
}

.entry-card:last-child {
  margin-bottom: 0;
}

.entry-name {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.entry-fields {
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.field-row dt {
  font-family: var(--mono);
  color: var(--muted);
}

.field-row dd {
  margin: 0;
  color: #33424e;
  min-width: 0;
  overflow-wrap: anywhere;
}

.entry-tag {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--amber);
  font-family: var(--mono);
}

.note-block {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.note-title {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.note-block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.note-callout {
  padding: 14px 16px;
  background: #fbf9f3;
  border-left: 3px solid var(--amber);
  border-radius: 0 6px 6px 0;
}

.note-callout p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #33424e;
}

.note-callout .col-link {
  margin-top: 8px;
}

.shared-view .inline-figure {
  margin-top: 30px;
}

.shared-view .inline-figure img {
  height: 200px;
  object-fit: cover;
}

/* 专题路径轨道 */
.route-track .route-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 26px;
}

.route-head-text {
  min-width: 0;
}

.route-head-text .section-lead {
  margin-bottom: 0;
}

.route-track .route-figure {
  min-width: 0;
}

.route-track .route-figure img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.route-item {
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}

.route-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 6px;
}

.route-name {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.route-start {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.65;
  color: #33424e;
}

.route-meta {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.route-item .col-link {
  margin-top: auto;
  padding-top: 12px;
  align-self: flex-start;
}

/* 参数表 */
.param-table .param-hint {
  display: block;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* 词条摘录 */
.glossary-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.glossary-group {
  margin: 0;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 18px;
}

.glossary-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.4fr) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.glossary-row:last-child {
  border-bottom: none;
}

.glossary-row dt {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.glossary-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  min-width: 0;
}

/* 校正流程 */
.correction-steps .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 维护规则摘要 */
.rules-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.rules-block {
  min-width: 0;
  padding-top: 14px;
  border-top: 2px solid var(--line);
}

.rules-block-title {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.rules-block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 内页通用外壳
   -------------------------------------------------------------------------- */
.inner-main > .page-title {
  max-width: none;
  font-size: 34px;
  line-height: 1.28;
  margin: 0;
}

.inner-main .page-title {
  font-size: 34px;
  line-height: 1.28;
  font-weight: 600;
  color: var(--ink);
}

.inner-main > .page-header {
  padding: 6px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.inner-main > .page-title {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.inner-main > section.page-title {
  padding: 0 0 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.inner-main .page-title .page-number,
.inner-main .page-title .section-index,
.inner-main .page-title .page-index {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
}

.inner-main .page-title .page-lead,
.inner-main .page-title .page-task,
.inner-main .page-title .page-index + .page-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #33424e;
  max-width: 68ch;
}

.inner-main .page-title .task-list {
  margin-top: 16px;
}

/* 内页布局容器 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.page-layout.layout-shell {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.page-layout .main-column {
  min-width: 0;
}

.page-layout aside.page-aside,
.page-layout .routes-aside {
  min-width: 0;
  position: sticky;
  top: 20px;
}

/* 左侧栏布局：aside 在 DOM 中先出现 */
.sidebar-left {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.sidebar-left .side-index {
  min-width: 0;
  position: sticky;
  top: 20px;
}

.side-index .aside-title {
  font-size: 15px;
  margin-bottom: 12px;
}

.index-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.index-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
}

.index-list a:hover,
.index-list a:focus-visible {
  color: var(--amber);
  border-color: var(--amber);
}

/* --------------------------------------------------------------------------
   pages · 分区索引
   -------------------------------------------------------------------------- */
.channel-list {
  min-width: 0;
}

.channel-list > .breadcrumb {
  margin-bottom: 10px;
}

.channel-list > .page-header {
  padding: 6px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.channel-figure {
  margin-bottom: 30px;
}

.channel-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.channel-block {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.channel-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.channel-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.channel-title .channel-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  font-weight: 500;
}

.channel-scope {
  font-size: 15px;
  line-height: 1.8;
  color: #33424e;
  max-width: 66ch;
}

.channel-samples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0 14px;
}

.sample-item {
  min-width: 0;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.sample-name {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.sample-field {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.channel-edge {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 8px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
}

.channel-route {
  margin: 0;
  font-size: 14px;
}

.channel-route a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.channel-route a:hover,
.channel-route a:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.page-aside {
  min-width: 0;
}

.judge-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.judge-item {
  min-width: 0;
}

.judge-question {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.judge-rule {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 词条目录
   -------------------------------------------------------------------------- */
.glossary-main,
.inner-main .term-index {
  margin-bottom: 34px;
}

.term-index .section-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.term-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.term-index-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  white-space: nowrap;
}

.term-index-list a:hover,
.term-index-list a:focus-visible {
  color: var(--amber);
  border-color: var(--amber);
}

.term-list .section-title,
.term-index .section-title,
.naming-rules .section-title,
.field-position .section-title,
.related .section-title {
  font-size: 20px;
}

.term-group {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.term-group:first-of-type {
  margin-top: 18px;
}

.term-group-title {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--ink);
}

.term-dl {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 18px;
}

.term-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.term-row:last-child {
  border-bottom: none;
}

.term-row dt {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.term-row dd {
  margin: 0;
  min-width: 0;
}

.term-def {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.75;
  color: #33424e;
}

.term-where,
.term-basis {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.term-sample {
  display: inline-block;
  margin-top: 4px;
}

.naming-rules,
.field-position {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.naming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.naming-card {
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.naming-card h3 {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.naming-card p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.naming-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.naming-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #33424e;
}

.naming-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--amber);
}

.field-position .figure-block {
  margin-bottom: 24px;
}

.field-position .figure-block img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.position-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.position-item {
  min-width: 0;
  padding-top: 14px;
  border-top: 2px solid var(--line);
}

.position-item h3 {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.position-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 专题路径
   -------------------------------------------------------------------------- */
.routes-main {
  min-width: 0;
}

.routes-main > .breadcrumb {
  margin-bottom: 10px;
}

.routes-main > .page-header {
  padding: 6px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.routes-main .route-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
}

.routes-main .route-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.routes-main .route-head {
  display: block;
  margin: 0;
  min-width: 0;
}

.routes-main .route-no {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
}

.routes-main .route-name {
  font-size: 19px;
  line-height: 1.4;
  margin: 0;
}

.routes-main .route-body {
  min-width: 0;
}

.routes-main .route-start,
.routes-main .route-purpose,
.routes-main .route-stop {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.75;
  color: #33424e;
}

.routes-main .field-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-right: 8px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbf9f3;
  vertical-align: 1px;
}

.routes-main .route-subtitle {
  font-size: 15px;
  line-height: 1.4;
  margin: 16px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}

.routes-main .node-list {
  counter-reset: node;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
}

.routes-main .node-item {
  position: relative;
  padding: 10px 14px 10px 44px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: #33424e;
  min-width: 0;
}

.routes-main .node-item::before {
  counter-increment: node;
  content: counter(node, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
}

.routes-main .node-no {
  display: none;
}

.routes-main .node-name {
  font-weight: 600;
  color: var(--ink);
  margin-right: 6px;
}

.routes-main .node-reason {
  color: var(--muted);
}

.routes-main .route-figure {
  margin-top: 26px;
}

.routes-main .route-figure img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.routes-aside {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   pages · 播放参数
   -------------------------------------------------------------------------- */
.param-table {
  margin-top: 4px;
}

.page-playback .param-table {
  margin-bottom: 8px;
}

.page-playback .param-table .section-head h2 {
  font-size: 22px;
}

.table-caption {
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 14px 0;
}

.page-playback .data-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fbf9f3;
}

.param-reading {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.reading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.reading-item {
  min-width: 0;
  padding-top: 14px;
  border-top: 2px solid var(--line);
}

.reading-item h3 {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.reading-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.inline-link {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.param-reading .figure-block {
  margin-top: 24px;
}

.param-reading .figure-block img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.page-playback .two-col {
  margin-top: 40px;
}

.page-playback .two-col .col-block {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   pages · 条目校正
   -------------------------------------------------------------------------- */
.sidebar-left .main-column > section {
  margin-bottom: 36px;
}

.sidebar-left .main-column > section:last-of-type {
  margin-bottom: 0;
}

.correction-classes > h2,
.four-part > h2,
.self-check > h2,
.related > h2 {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.section-intro {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 66ch;
}

.class-block {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 16px;
}

.class-block:last-child {
  margin-bottom: 0;
}

.class-block h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.class-block .class-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  font-weight: 500;
}

.class-block > p:not(.class-distinguish) {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.75;
  color: #33424e;
}

.class-block .check-list {
  margin-bottom: 12px;
}

.class-distinguish {
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  background: #fbf9f3;
  border-left: 2px solid var(--line);
  border-radius: 0 4px 4px 0;
}

.four-part .figure-block {
  margin-bottom: 20px;
}

.four-part .figure-block img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.four-part-list {
  counter-reset: part;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.four-part-list li {
  position: relative;
  min-width: 0;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.four-part-list li::before {
  counter-increment: part;
  content: counter(part, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 6px;
}

.four-part-list h3 {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.four-part-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.self-check .step-list {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.self-check .step-item {
  padding: 16px 18px;
}

.self-check .step-item h3 {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.self-check .step-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.self-check .step-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   pages · 维护规则
   -------------------------------------------------------------------------- */
.scope-table {
  margin-bottom: 40px;
}

.scope-table > h2,
.update-criteria > h2,
.page-rules .two-col > div > h2,
.page-rules .two-col section > h2 {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.compare-table caption {
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  padding: 0 0 8px;
}

.compare-table thead th {
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #efebe0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.compare-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: #33424e;
  vertical-align: top;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody td:first-child {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  width: 120px;
}

.scope-table .figure-block {
  margin-top: 22px;
}

.scope-table .figure-block img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.scope-table .section-note {
  margin-top: 12px;
  margin-bottom: 0;
}

.update-criteria {
  margin-bottom: 40px;
}

.criterion {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 16px;
}

.criterion:last-child {
  margin-bottom: 0;
}

.criterion h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.criterion .criterion-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  font-weight: 500;
}

.criterion > p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.75;
  color: #33424e;
}

.criterion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.criterion-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.criterion-list li::before {
  content: "·";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--amber);
  font-weight: 700;
}

.page-rules .two-col {
  margin-top: 0;
}

.page-rules .two-col h2 {
  font-size: 18px;
}

.page-rules .two-col .section-lead {
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.error-panel {
  max-width: 640px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.error-code {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
}

.error-title {
  font-size: 30px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.error-code-inline {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
}

.error-lead {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.8;
  color: #33424e;
}

.error-reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.error-reasons li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.error-reasons li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--amber);
}

.error-tip {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  transition: border-color 120ms ease, color 120ms ease, background-color 120ms ease;
}

.btn:hover,
.btn:focus-visible {
  color: var(--amber);
  border-color: var(--amber);
}

.btn.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fdfcf8;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus-visible {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}

.btn.btn-ghost {
  background: transparent;
}

.error-links {
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.error-links-title {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.error-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.error-links a:hover,
.error-links a:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .shared-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shared-notes {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    align-items: start;
  }

  .shared-notes .col-title {
    grid-column: 1 / -1;
  }

  .shared-notes .note-callout {
    grid-column: 1 / -1;
    margin-top: 4px;
  }

  .page-layout,
  .page-layout.layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .page-layout aside.page-aside,
  .page-layout .routes-aside,
  .sidebar-left .side-index {
    position: static;
  }

  .sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .sidebar-left .side-index {
    margin-bottom: 24px;
  }

  .sidebar-left .index-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar-left .index-list a {
    padding: 0 14px;
    white-space: nowrap;
  }

  .correction-steps .step-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .rules-blocks {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-figure img {
    height: 260px;
  }

  .route-track .route-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .route-track .route-figure img {
    height: 200px;
  }

  .glossary-pairs {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .routes-main .route-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 12px 20px;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
    min-height: 60px;
  }

  .brand-mark {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 12px;
  }

  .nav-toggle {
    display: flex;
    flex: none;
  }

  .site-nav {
    flex: 1 0 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
    border-top: 1px solid var(--line);
    margin-top: 6px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line-soft);
    border-left: 2px solid transparent;
  }

  .nav-link.is-current {
    border-bottom-color: var(--line-soft);
    border-left-color: var(--amber);
    padding-left: 10px;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    border-bottom-color: var(--line-soft);
    border-left-color: var(--amber);
    padding-left: 10px;
  }

  .site-main,
  .inner-main,
  .home-main,
  .error-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .inner-main {
    padding-bottom: 48px;
  }

  .breadcrumb {
    padding: 14px 20px 0;
    font-size: 12px;
  }

  .inner-main > .breadcrumb {
    padding: 0;
    margin-bottom: 8px;
  }

  .page-title,
  .inner-main .page-title,
  .inner-main > .page-title {
    font-size: 26px;
    line-height: 1.32;
  }

  .page-header {
    padding: 4px 0 12px;
    margin-bottom: 20px;
  }

  .inner-main > .page-header {
    padding: 4px 0 12px;
    margin-bottom: 20px;
  }

  .inner-main > section.page-title {
    padding-bottom: 18px;
    margin-bottom: 24px;
  }

  .inner-main .page-title .page-lead,
  .inner-main .page-title .page-task {
    font-size: 15px;
  }

  .home-main > section {
    padding: 34px 0;
  }

  .hero {
    padding-top: 26px;
  }

  .hero-text h1 {
    font-size: 26px;
    line-height: 1.32;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .entry-link {
    justify-content: center;
  }

  .hero-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .fact-item {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .hero-figure img {
    height: 200px;
  }

  .section-title {
    font-size: 19px;
  }

  .section-lead {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .shared-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .shared-notes {
    grid-column: auto;
    display: block;
  }

  .shared-notes .note-callout {
    margin-top: 0;
  }

  .shared-view .inline-figure img {
    height: 170px;
  }

  .route-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .glossary-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .glossary-row dt {
    font-size: 14px;
  }

  .correction-steps .step-list,
  .self-check .step-list,
  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .rules-blocks {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .field-row {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .term-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .term-dl {
    padding: 0 14px;
  }

  .term-index-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .term-index-list a {
    flex: none;
  }

  .naming-grid,
  .position-list,
  .reading-grid,
  .four-part-list,
  .channel-samples {
    grid-template-columns: minmax(0, 1fr);
  }

  .routes-main .route-item {
    padding: 20px 0;
  }

  .routes-main .route-name {
    font-size: 17px;
  }

  .routes-main .node-item {
    padding: 10px 12px 10px 40px;
  }

  .data-table {
    min-width: 460px;
    font-size: 14px;
  }

  .data-table thead th,
  .data-table tbody th,
  .data-table tbody td {
    padding: 10px 12px;
  }

  .compare-table {
    font-size: 14px;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table {
    border: none;
    background: transparent;
  }

  .compare-table tbody tr {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 6px 0;
  }

  .compare-table tbody td {
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 14px;
  }

  .compare-table tbody td:first-child {
    width: auto;
    white-space: normal;
    font-size: 12px;
    background: #fbf9f3;
  }

  .compare-table tbody tr td:last-child {
    border-bottom: none;
  }

  .aside-block {
    padding: 16px;
  }

  .mini-table {
    font-size: 12px;
  }

  .class-block,
  .criterion,
  .page-playback .two-col .col-block,
  .col-maintenance,
  .col-correction {
    padding: 16px;
  }

  .error-main {
    padding: 32px 20px 48px;
  }

  .error-panel {
    padding: 22px;
  }

  .error-title {
    font-size: 24px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 32px 20px 20px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    padding: 14px 20px 24px;
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .header-inner {
    padding: 10px 16px;
  }

  .site-main,
  .inner-main,
  .home-main,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-inner,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-text h1,
  .page-title,
  .inner-main .page-title {
    font-size: 24px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .field-row dt {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
