/* ==========================================================================
   天美麻豆在线观看 · 全站样式
   base → layout → components → pages → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */
:root {
  --paper: #F7F5EF;
  --ink: #14202B;
  --ink-soft: #3D4A55;
  --ink-mute: #66717B;
  --teal: #0F5B5A;
  --teal-deep: #0A4241;
  --amber: #C77A2A;
  --teal-pale: #DCE8E4;
  --rule: #D9D3C7;
  --white: #FFFFFF;
  --shadow-soft: 0 1px 2px rgba(20, 32, 43, 0.06), 0 6px 18px rgba(20, 32, 43, 0.05);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --wrap: 1180px;
  --radius: 6px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.4em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--amber);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

figcaption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
}

.num,
.stat-num,
.track-index,
.row-index,
.step-index,
.step-num,
.step-no,
.check-index,
.classify-index,
.field-no,
.principle-num,
.flow-num,
.page-code,
.meta-no {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 28px;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px 72px;
}

.site-footer {
  background: var(--teal-pale);
  border-top: 1px solid var(--rule);
  color: var(--ink);
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 28px 28px;
}

/* 内页统一：面包屑 + 页面标题区 + 页头 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
}

.breadcrumb a {
  color: var(--teal);
}

.breadcrumb-sep {
  color: var(--rule);
}

.breadcrumb-current {
  color: var(--ink-mute);
}

.page-header {
  padding: 18px 0 26px;
  border-bottom: 2px solid var(--teal);
  margin-bottom: 32px;
}

.page-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.page-hero {
  background: var(--teal-pale);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 40px;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 300px);
  gap: 28px;
  align-items: start;
}

.page-hero-copy,
.page-hero-text,
.page-hero-main {
  min-width: 0;
}

.page-hero-meta {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid rgba(15, 91, 90, 0.22);
  font-size: 13px;
  color: var(--ink-soft);
}

.page-hero-meta p {
  margin-bottom: 8px;
}

.page-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
}

.page-eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
}

.page-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-code {
  display: inline-block;
  font-size: 13px;
  color: var(--teal);
  margin: 0 0 6px;
}

.page-task,
.page-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
}

.meta-label {
  margin: 0 0 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.meta-value {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
}

.meta-no {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
}

.meta-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
}

/* 通用 section 间距 */
.section {
  margin-bottom: 48px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2,
.section-title {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}

.section-note,
.section-desc,
.section-intro {
  margin: 0;
  max-width: 780px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.section-more {
  margin: 22px 0 0;
  font-size: 14px;
}

.section-footnote {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.section-footnote a {
  margin-right: 18px;
}

.section-tail {
  margin: 24px 0 0;
  font-size: 14px;
}

.section-tail a {
  margin-right: 18px;
}

/* --------------------------------------------------------------------------
   components · 页头 / 导航
   -------------------------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}

.brand:hover {
  color: var(--teal);
}

.brand-mark {
  display: inline-block;
  width: 10px;
  height: 26px;
  background: var(--teal);
  border-radius: 2px;
}

.brand-sub {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 1px;
}

.primary-nav {
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: inline-block;
  padding: 6px 2px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--teal);
  border-bottom-color: var(--teal-pale);
}

.nav-list a.is-current {
  color: var(--teal);
  font-weight: 700;
  border-bottom-color: var(--teal);
}

/* --------------------------------------------------------------------------
   components · 按钮 / 文本链接 / 注释条
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--teal);
  color: var(--white);
}

.text-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid var(--teal-pale);
  padding-bottom: 1px;
}

.text-link:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.note-bar {
  margin: 22px 0 0;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--white);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.annotation-bar {
  margin: 20px 0 0;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--white);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.inline-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
}

/* --------------------------------------------------------------------------
   components · 表格
   -------------------------------------------------------------------------- */
.table-scroll,
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  min-width: 640px;
  font-size: 14px;
  line-height: 1.65;
}

.data-table caption,
.table-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-mute);
  text-align: left;
  caption-side: top;
}

.data-table thead th {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--teal);
  background: var(--teal-pale);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

.data-table tbody th,
.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}

.data-table tbody th {
  font-weight: 700;
  color: var(--ink);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #FBFAF6;
}

.data-table .cell-name {
  font-weight: 700;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   components · 图片容器
   -------------------------------------------------------------------------- */
.hero-figure,
.content-media,
.aside-figure,
.media-figure,
.check-figure,
.principles-media,
.template-figure,
.collection-figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--teal-pale);
  border: 1px solid var(--rule);
}

.hero-figure img,
.content-media img,
.aside-figure img,
.media-figure img,
.check-figure img,
.principles-media img,
.template-figure img,
.collection-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-figure figcaption,
.content-media figcaption,
.aside-figure figcaption,
.media-figure figcaption,
.check-figure figcaption,
.principles-media figcaption,
.template-figure figcaption,
.collection-figure figcaption {
  padding: 10px 14px;
  background: var(--white);
  border-top: 1px solid var(--rule);
}

/* --------------------------------------------------------------------------
   components · 页脚
   -------------------------------------------------------------------------- */
.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(15, 91, 90, 0.18);
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal);
}

.footer-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.footer-group {
  min-width: 0;
}

.footer-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--teal);
}

.footer-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-group li {
  margin: 0 0 8px;
}

.footer-group a {
  display: inline-block;
  padding: 2px 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--teal);
}

.footer-bottom {
  padding-top: 22px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.footer-bottom p {
  margin: 0 0 6px;
}

.footer-statement {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.home-main {
  width: 100%;
}

/* 首屏观察台 */
.hero-observatory {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 48px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 26px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-figure {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
}

.hero-figure img {
  flex: 1 1 auto;
  min-height: 0;
}

.hero-stats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-stats li {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num name"
    "num link";
  align-items: center;
  gap: 2px 12px;
  padding: 12px 14px;
  background: var(--white);
}

.hero-stats .stat-num {
  grid-area: num;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
}

.hero-stats .stat-name {
  grid-area: name;
  font-size: 13px;
  color: var(--ink-soft);
}

.hero-stats a {
  grid-area: link;
  font-size: 12px;
  color: var(--teal);
}

.content-media-primary {
  width: 100%;
  max-width: var(--wrap);
  margin: 32px auto 0;
  aspect-ratio: 21 / 7;
}

.content-media-primary img {
  width: 100%;
  height: 100%;
}

/* 频道快捷带 */
.channel-strip {
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
}

.section-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.channel-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.channel-tags li {
  margin: 0;
}

.channel-tags a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.channel-tags a:hover,
.channel-tags a:focus-visible {
  border-color: var(--teal);
  box-shadow: var(--shadow-soft);
}

.tag-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.tag-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
}

/* 任务轨道 */
.task-track {
  padding: 44px 0;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.track-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: track;
}

.track-item {
  margin: 0;
  min-width: 0;
  padding: 18px 18px 16px;
  border-top: 3px solid var(--teal);
  background: var(--paper);
  border-radius: 0 0 var(--radius) var(--radius);
}

.track-index {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--amber);
}

.track-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.track-item p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.track-item a {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}

/* 专题编排预览 */
.collection-preview {
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
}

.collection-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.collection-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 120px;
  gap: 20px;
  align-items: start;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.row-index {
  font-size: 18px;
  font-weight: 700;
  color: var(--teal);
}

.row-body {
  min-width: 0;
}

.row-body h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.row-direction {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.row-channels {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
}

.row-link {
  align-self: center;
  justify-self: end;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  white-space: nowrap;
}

.row-link:hover,
.row-link:focus-visible {
  background: var(--teal);
  color: var(--white);
}

/* 频道目录表 */
.channel-table {
  padding: 44px 0;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

/* 观看准备预览 */
.guide-preview {
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
}

.step-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-cell {
  margin: 0;
  min-width: 0;
  padding: 16px 16px 18px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.step-cell .step-index {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--white);
  background: var(--teal);
  border-radius: 3px;
}

.step-cell h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.step-cell p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 入口识别摘要 */
.entry-summary {
  padding: 44px 0;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.entry-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.entry-col {
  min-width: 0;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
}

.entry-col h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.entry-judge {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.entry-example {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

/* 编务与纠错双列 */
.editorial-and-feedback {
  padding: 44px 0 56px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
}

.col-editorial,
.col-feedback {
  min-width: 0;
  padding: 26px 28px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.col-editorial h2,
.col-feedback h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.col-editorial p,
.col-feedback p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.editorial-list {
  margin: 16px 0;
  padding-left: 1.1em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   pages · 内容光谱 channels
   -------------------------------------------------------------------------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 40px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.aside-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--teal);
}

.aside-figure {
  margin-bottom: 20px;
  aspect-ratio: 4 / 3;
}

.note-item {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--rule);
}

.note-item:last-of-type {
  border-bottom: 0;
}

.note-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.note-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.aside-links {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.aside-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aside-link-list li {
  margin-bottom: 8px;
}

.aside-link-list a {
  font-size: 14px;
  color: var(--teal);
}

/* 目录密度工具 */
.density-tool {
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.density-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 16px;
}

.density-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.density-range {
  flex: 1 1 200px;
  min-width: 160px;
  max-width: 340px;
  height: 28px;
  accent-color: var(--teal);
}

.density-number {
  width: 76px;
  min-height: 40px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.density-status {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
}

.density-status .num {
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
}

/* 相邻频道区分 */
.channel-pairs {
  display: grid;
  gap: 18px;
}

.pair-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.pair-col {
  min-width: 0;
  padding: 18px 20px;
  background: var(--white);
}

.pair-col h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--teal);
}

.pair-col p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.pair-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  background: #FBFAF6;
  border-top: 1px solid var(--rule);
}

/* 频道阅读顺序 */
.reading-order .step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.reading-order .step-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 16px;
  margin: 0 0 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.reading-order .step-num {
  grid-row: span 3;
  font-size: 18px;
  font-weight: 700;
  color: var(--teal);
}

.reading-order .step-title {
  margin: 0;
  font-size: 1rem;
}

.reading-order .step-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.reading-order .step-check {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--amber);
}

/* --------------------------------------------------------------------------
   pages · 专题编排 collections
   -------------------------------------------------------------------------- */
.collection-list {
  display: grid;
  gap: 20px;
}

.collection-item {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.collection-figure {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
}

.collection-figure img {
  flex: 1 1 auto;
  min-height: 0;
}

.collection-body {
  min-width: 0;
}

.collection-index {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
}

.collection-name {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.collection-topic {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
}

.collection-desc {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.collection-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
}

.collection-meta div {
  min-width: 0;
}

.collection-meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin-bottom: 2px;
}

.collection-meta dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.breakdown-col {
  min-width: 0;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
}

.breakdown-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.breakdown-col p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.breakdown-list {
  margin: 0;
  padding-left: 1.1em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.breakdown-list li {
  margin-bottom: 6px;
}

.breakdown-ordered {
  list-style: decimal;
}

.breakdown-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}

.rules-table {
  width: 100%;
  min-width: 620px;
  font-size: 14px;
  line-height: 1.7;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.rules-table thead th {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  background: var(--teal-pale);
  border-bottom: 1px solid var(--rule);
}

.rules-table tbody th,
.rules-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}

.rules-table tbody th {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.rules-table tbody tr:last-child th,
.rules-table tbody tr:last-child td {
  border-bottom: 0;
}

.section-rules {
  overflow-x: auto;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.diff-col {
  min-width: 0;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.diff-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--teal);
}

.diff-sub {
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
}

.diff-sub:first-of-type {
  margin-top: 0;
}

.diff-list {
  margin: 0 0 4px;
  padding-left: 1.1em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 观看准备 viewing-guide
   -------------------------------------------------------------------------- */
.guide-intro {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.guide-intro-media {
  min-width: 0;
}

.media-figure {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
}

.media-figure img {
  flex: 1 1 auto;
  min-height: 0;
}

.guide-intro-text {
  min-width: 0;
}

.guide-intro-text h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.guide-intro-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.checklist-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.checklist-inline li {
  position: relative;
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.checklist-inline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 1px;
}

.prep-steps .step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prep-steps .step-item {
  margin: 0;
  min-width: 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.prep-steps .step-index {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
}

.prep-steps .step-name {
  margin: 0 0 8px;
  font-size: 1rem;
}

.prep-steps .step-check,
.prep-steps .step-done,
.prep-steps .step-alert {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.prep-steps .step-done {
  color: var(--teal);
}

.prep-steps .step-alert {
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
  color: var(--ink-mute);
}

.exception-table .data-table {
  min-width: 560px;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.device-col {
  min-width: 0;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.device-name {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--teal);
}

.device-notes {
  margin: 0;
  padding-left: 1.1em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.device-notes li {
  margin-bottom: 6px;
}

.checklist-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist-list li {
  position: relative;
  margin: 0;
  padding: 10px 14px 10px 34px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.checklist-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 1.05em;
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 1px;
}

.checklist-foot {
  margin: 22px 0 0;
  font-size: 14px;
}

.checklist-foot a {
  margin-right: 18px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-item {
  margin: 0;
  min-width: 0;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.related-item a {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
}

.related-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

/* --------------------------------------------------------------------------
   pages · 入口识别 entry-check
   -------------------------------------------------------------------------- */
.section-check .check-figure {
  margin-bottom: 24px;
  aspect-ratio: 21 / 8;
}

.section-check .check-figure img {
  width: 100%;
  height: 100%;
}

.check-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.check-col {
  min-width: 0;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
}

.check-index {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--amber);
}

.check-col h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.check-claim {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.check-list {
  margin: 0;
  padding-left: 1.1em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.check-list li {
  margin-bottom: 5px;
}

.section-path .data-table {
  min-width: 620px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 20px;
}

.faq-item summary {
  padding: 16px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--teal);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary:hover {
  color: var(--teal);
}

.faq-item p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.section-record .step-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-record .step-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.section-record .step-no {
  font-size: 18px;
  font-weight: 700;
  color: var(--teal);
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.step-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.related-card {
  min-width: 0;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.related-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.related-card h3 a {
  color: var(--teal);
}

.related-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

/* --------------------------------------------------------------------------
   pages · 纠错记录 feedback
   -------------------------------------------------------------------------- */
.classify-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.classify-card {
  min-width: 0;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
}

.classify-index {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--amber);
}

.classify-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.classify-card p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.classify-focus {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  font-size: 13px;
  color: var(--ink-mute);
}

.classify-focus span {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--teal);
}

.template-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.template-figure {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
}

.template-figure img {
  flex: 1 1 auto;
  min-height: 0;
}

.template-fields {
  margin: 0;
  padding: 0;
  list-style: none;
}

.template-fields li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--rule);
}

.template-fields li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.field-no {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
}

.field-body {
  min-width: 0;
}

.field-body h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.field-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.precheck-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.precheck-steps li {
  margin: 0;
  min-width: 0;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.precheck-steps .step-no {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
}

.precheck-steps h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.precheck-steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.policy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.policy-list li {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.policy-list h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--teal);
}

.policy-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 编务口径 editorial-notes
   -------------------------------------------------------------------------- */
.page-hero-note {
  min-width: 0;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
}

.note-label {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
}

.note-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.principles-media {
  margin-bottom: 24px;
  aspect-ratio: 21 / 7;
}

.principles-media img {
  width: 100%;
  height: 100%;
}

.principle-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.principle-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 4px 18px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.principle-num {
  grid-row: span 2;
  font-size: 18px;
  font-weight: 700;
  color: var(--teal);
}

.principle-name {
  margin: 0;
  font-size: 1.05rem;
}

.principle-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.source-table {
  min-width: 640px;
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.boundary-col {
  min-width: 0;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.boundary-provide {
  border-top: 3px solid var(--teal);
}

.boundary-withhold {
  border-top: 3px solid var(--amber);
}

.boundary-heading {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.boundary-provide .boundary-heading {
  color: var(--teal);
}

.boundary-withhold .boundary-heading {
  color: var(--amber);
}

.boundary-list {
  margin: 0;
  padding-left: 1.1em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.boundary-list li {
  margin-bottom: 6px;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-item {
  margin: 0;
  min-width: 0;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.flow-num {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
}

.flow-name {
  margin: 0 0 6px;
  font-size: 1rem;
}

.flow-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 20px;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.chip-link:hover,
.chip-link:focus-visible {
  border-color: var(--teal);
  color: var(--teal-deep);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 28px 72px;
}

.error-hero {
  padding: 32px 0 40px;
  border-bottom: 2px solid var(--teal);
  margin-bottom: 40px;
}

.error-code {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.error-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.22;
}

.error-lead {
  margin: 0 0 24px;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-reasons {
  margin-bottom: 44px;
}

.error-reasons h2,
.error-routes h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.error-list {
  margin: 0 0 16px;
  padding-left: 1.2em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.error-note {
  margin: 0;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--white);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.error-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.error-route {
  min-width: 0;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.error-route h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.error-route p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.error-route a {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   responsive · 960px
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    flex-basis: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--rule);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: block;
    padding: 12px 4px;
    min-height: 44px;
    border-bottom: 1px solid var(--rule);
  }

  .nav-list a.is-current {
    border-bottom-color: var(--teal);
  }

  .inner-main {
    padding: 0 20px 56px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 0 20px;
  }

  .hero-observatory {
    padding: 36px 0 32px;
  }

  .content-media-primary {
    padding: 0 20px;
    background-clip: content-box;
    aspect-ratio: 16 / 7;
  }

  .section-inner {
    padding: 0 20px;
  }

  .page-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .page-hero-meta {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid rgba(15, 91, 90, 0.22);
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .track-list,
  .step-row,
  .prep-steps .step-list,
  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-columns,
  .check-columns,
  .breakdown-grid,
  .device-grid,
  .related-list,
  .related-grid,
  .error-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .precheck-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col,
  .diff-grid,
  .boundary-columns,
  .classify-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-item {
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 20px;
  }

  .guide-intro,
  .template-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .guide-intro-media,
  .template-figure {
    max-width: 420px;
  }

  .collection-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 6px 16px;
  }

  .row-link {
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-inner {
    padding: 36px 20px 24px;
  }

  .error-main {
    padding: 40px 20px 56px;
  }
}

/* --------------------------------------------------------------------------
   responsive · 640px
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  .header-inner {
    padding: 10px 16px;
  }

  .brand-sub {
    font-size: 0.98rem;
  }

  .inner-main {
    padding: 0 16px 48px;
  }

  .hero-inner {
    padding: 0 16px;
  }

  .hero-observatory {
    padding: 28px 0 26px;
  }

  .hero-copy h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-media-primary {
    padding: 0 16px;
    aspect-ratio: 16 / 9;
    margin-top: 24px;
  }

  .section-inner {
    padding: 0 16px;
  }

  .channel-strip,
  .task-track,
  .collection-preview,
  .channel-table,
  .guide-preview,
  .entry-summary,
  .editorial-and-feedback {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .channel-tags,
  .track-list,
  .step-row,
  .prep-steps .step-list,
  .flow-list,
  .entry-columns,
  .check-columns,
  .breakdown-grid,
  .device-grid,
  .related-list,
  .related-grid,
  .error-route-grid,
  .precheck-steps,
  .checklist-list,
  .checklist-inline {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 0;
  }

  .row-index {
    font-size: 15px;
  }

  .row-link {
    grid-column: auto;
    justify-self: start;
    margin-top: 8px;
  }

  .page-hero {
    padding: 20px 18px;
    margin-bottom: 32px;
  }

  .page-header {
    padding: 14px 0 20px;
    margin-bottom: 24px;
  }

  .section {
    margin-bottom: 36px;
  }

  .section-head h2,
  .section-title {
    font-size: 1.25rem;
  }

  .collection-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .collection-figure {
    aspect-ratio: 16 / 10;
  }

  .collection-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .pair-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .pair-note {
    grid-column: auto;
  }

  .reading-order .step-item,
  .section-record .step-item,
  .principle-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 14px 16px;
  }

  .template-fields li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .col-editorial,
  .col-feedback,
  .breakdown-col,
  .check-col,
  .classify-card,
  .boundary-col,
  .device-col,
  .related-card,
  .related-item,
  .error-route,
  .density-tool {
    padding: 18px;
  }

  .layout-aside {
    padding: 18px;
  }

  .guide-intro,
  .template-layout {
    padding: 18px;
  }

  .guide-intro-media,
  .template-figure {
    max-width: none;
  }

  .section-check .check-figure,
  .principles-media {
    aspect-ratio: 16 / 9;
  }

  .data-table {
    font-size: 13px;
    min-width: 560px;
  }

  .data-table thead th,
  .data-table tbody th,
  .data-table tbody td {
    padding: 10px 12px;
  }

  .rules-table {
    min-width: 560px;
    font-size: 13px;
  }

  .rules-table thead th,
  .rules-table tbody th,
  .rules-table tbody td {
    padding: 10px 12px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .footer-inner {
    padding: 30px 16px 22px;
  }

  .footer-group a {
    min-height: 32px;
    padding: 4px 0;
  }

  .error-main {
    padding: 32px 16px 48px;
  }

  .error-hero {
    padding: 24px 0 30px;
    margin-bottom: 32px;
  }

  .error-actions .btn {
    flex: 1 1 auto;
  }

  .density-controls {
    gap: 10px 12px;
  }

  .density-range {
    flex-basis: 100%;
    max-width: none;
  }

  .link-row {
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
   动效增强 · 尊重减少动态偏好
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .track-item,
  .step-cell,
  .entry-col,
  .collection-row,
  .related-item,
  .related-card,
  .classify-card,
  .flow-item,
  .device-col {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .track-item:hover,
  .step-cell:hover,
  .entry-col:hover,
  .related-item:hover,
  .related-card:hover,
  .classify-card:hover,
  .flow-item:hover,
  .device-col:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
  }

  .collection-row:hover {
    background: rgba(220, 232, 228, 0.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
