/* ==========================================================================
   麻豆影院 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base —— 变量、重置、排版基线
   -------------------------------------------------------------------------- */
:root {
  --ink-navy: #101820;
  --ink-navy-soft: #1b2733;
  --paper-cream: #f4efe4;
  --paper-white: #fffdf6;
  --graphite: #2c3a47;
  --graphite-soft: #55636f;
  --amber: #e3a008;
  --amber-deep: #b87c04;
  --signal-green: #7bd88f;
  --brick: #d9553f;
  --link-blue: #1e5d74;
  --rule: #cfc7b4;
  --rule-soft: #e2dccb;
  --shadow-panel: 0 1px 0 rgba(16, 24, 32, 0.08), 0 6px 18px rgba(16, 24, 32, 0.06);
  --font-mono: "IBM Plex Mono", "Noto Sans Mono CJK SC", "SFMono-Regular", Consolas, "Courier New", monospace;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --wrap: 1120px;
  --wrap-read: 860px;
  --radius: 6px;
  --radius-sm: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper-cream);
  color: var(--graphite);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink-navy);
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--link-blue);
  text-decoration: none;
}

a:hover {
  color: var(--amber-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible + span {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  text-align: left;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

strong {
  color: var(--ink-navy);
}

.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;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 18px;
  background-color: var(--amber);
  color: var(--ink-navy);
  font-family: var(--font-mono);
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   2. layout —— 全站骨架：页头、主导航、移动菜单、页脚、主容器、面包屑
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--ink-navy);
  color: var(--paper-cream);
  border-bottom: 3px solid var(--amber);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--paper-white);
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 6px 0;
}

.brand-logo::before {
  content: "#";
  color: var(--amber);
  margin-right: 4px;
}

.brand-logo:hover {
  color: var(--amber);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--paper-cream);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.nav-list a:hover {
  background-color: var(--ink-navy-soft);
  color: var(--amber);
  text-decoration: none;
}

.nav-list a.is-current {
  background-color: var(--amber);
  color: var(--ink-navy);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: transparent;
  border: 1px solid rgba(244, 239, 228, 0.35);
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle:hover {
  border-color: var(--amber);
}

.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--paper-cream);
}

.mobile-menu {
  display: none;
  background-color: var(--ink-navy-soft);
  border-top: 1px solid rgba(244, 239, 228, 0.16);
  padding: 12px 24px 20px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
}

.mobile-nav-list a {
  display: block;
  padding: 12px 4px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--paper-cream);
  border-bottom: 1px solid rgba(244, 239, 228, 0.12);
}

.mobile-nav-list a:hover {
  color: var(--amber);
  text-decoration: none;
}

.mobile-nav-list a[aria-current="page"] {
  color: var(--amber);
}

.mobile-extra {
  margin-top: 16px;
}

.mobile-extra-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--signal-green);
  margin-bottom: 6px;
}

.mobile-extra ul {
  display: flex;
  flex-direction: column;
}

.mobile-extra a {
  display: block;
  padding: 10px 4px;
  min-height: 44px;
  font-size: 14px;
  color: var(--paper-cream);
}

.mobile-extra a:hover {
  color: var(--amber);
  text-decoration: none;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--graphite-soft);
}

.breadcrumb a {
  color: var(--link-blue);
}

.breadcrumb-sep {
  color: var(--rule);
}

.breadcrumb-current {
  color: var(--graphite-soft);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: var(--rule);
  margin-right: 8px;
}

.page-header {
  padding: 18px 0 6px;
}

.page-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--ink-navy);
  line-height: 1.28;
}

.site-footer {
  background-color: var(--ink-navy);
  color: var(--paper-cream);
  margin-top: 0;
  border-top: 3px solid var(--amber);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2.1fr);
  gap: 40px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--paper-white);
  margin-bottom: 12px;
}

.footer-logo::before {
  content: "#";
  color: var(--amber);
  margin-right: 4px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(244, 239, 228, 0.78);
}

.footer-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-group {
  min-width: 0;
}

.footer-group-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--signal-green);
  margin-bottom: 10px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-group a {
  display: inline-block;
  padding: 3px 0;
  font-size: 14px;
  color: rgba(244, 239, 228, 0.85);
}

.footer-group a:hover {
  color: var(--amber);
}

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px 24px 32px;
  border-top: 1px solid rgba(244, 239, 228, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  font-size: 13px;
  color: rgba(244, 239, 228, 0.7);
}

.footer-boundary {
  flex: 1 1 320px;
  min-width: 0;
}

.footer-copy {
  flex: 0 1 auto;
}

.back-to-top {
  display: inline-block;
  padding: 8px 14px;
  min-height: 44px;
  line-height: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-navy);
  background-color: var(--amber);
  border-radius: var(--radius-sm);
}

.back-to-top:hover {
  background-color: var(--paper-white);
  color: var(--ink-navy);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   3. components —— 通用模块：区块标题、按钮、表格、FAQ、步骤、相关入口
   -------------------------------------------------------------------------- */
.section-head {
  margin-bottom: 22px;
}

.section-eyebrow,
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 8px;
}

.section-head h2,
.section-title,
.section-intro + h2 {
  font-size: 26px;
  color: var(--ink-navy);
}

.section-lead,
.section-desc,
.section-intro,
.groups-intro,
.faq-intro,
.check-intro,
.switch-intro {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--graphite-soft);
  max-width: 72ch;
}

.btn-primary,
.btn-ghost,
.btn.btn-primary,
.btn.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn-primary,
.btn.btn-primary {
  background-color: var(--amber);
  color: var(--ink-navy);
  border-color: var(--amber);
}

.btn-primary:hover,
.btn.btn-primary:hover {
  background-color: var(--amber-deep);
  border-color: var(--amber-deep);
  color: var(--paper-white);
  text-decoration: none;
}

.btn-ghost,
.btn.btn-ghost {
  background-color: transparent;
  color: var(--ink-navy);
  border-color: var(--ink-navy);
}

.btn-ghost:hover,
.btn.btn-ghost:hover {
  background-color: var(--ink-navy);
  color: var(--paper-white);
  text-decoration: none;
}

/* 表格通用外壳：横向滚动仅出现在表格自身 */
.table-scroll,
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background-color: var(--paper-white);
}

.channel-result-table,
.matrix-grid,
.source-label-table,
.condition-table,
.scope-table,
.data-table {
  width: 100%;
  font-size: 14px;
  line-height: 1.6;
}

.channel-result-table caption,
.matrix-grid caption,
.source-label-table caption,
.scope-table caption,
.table-caption {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--graphite-soft);
  text-align: left;
  border-bottom: 1px solid var(--rule-soft);
}

.channel-result-table thead th,
.matrix-grid thead th,
.source-label-table thead th,
.condition-table thead th,
.scope-table thead th,
.data-table thead th {
  background-color: var(--ink-navy);
  color: var(--paper-cream);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 11px 14px;
  white-space: nowrap;
}

.channel-result-table tbody th,
.matrix-grid tbody th,
.source-label-table tbody th,
.condition-table tbody th,
.scope-table tbody th,
.data-table tbody th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-navy);
  padding: 12px 14px;
  background-color: var(--paper-cream);
  border-bottom: 1px solid var(--rule-soft);
}

.channel-result-table tbody td,
.matrix-grid tbody td,
.source-label-table tbody td,
.condition-table tbody td,
.scope-table tbody td,
.data-table tbody td {
  padding: 12px 14px;
  color: var(--graphite);
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}

.channel-result-table tbody tr:last-child th,
.channel-result-table tbody tr:last-child td,
.matrix-grid tbody tr:last-child th,
.matrix-grid tbody tr:last-child td,
.source-label-table tbody tr:last-child th,
.source-label-table tbody tr:last-child td,
.condition-table tbody tr:last-child th,
.condition-table tbody tr:last-child td,
.scope-table tbody tr:last-child th,
.scope-table tbody tr:last-child td,
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.channel-result-table tbody tr:hover th,
.channel-result-table tbody tr:hover td,
.matrix-grid tbody tr:hover th,
.matrix-grid tbody tr:hover td {
  background-color: #fbf6e8;
}

.channel-result-table tbody td a,
.matrix-grid tbody td a {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* 通用定义列表 */
.field-definition,
.field-list,
.reading-definitions,
.field-example-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* FAQ 折叠 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-navy);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 18px;
  color: var(--amber-deep);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--rule-soft);
}

.faq-item > p,
.faq-answer {
  padding: 12px 16px 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--graphite);
}

.faq-answer p + p {
  margin-top: 8px;
}

/* 通用编号步骤 */
.step-list,
.viewing-steps,
.entry-steps,
.prep-list,
.flow-list {
  display: grid;
  gap: 16px;
}

.step-item,
.entry-step {
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.step-item .step-num,
.entry-step .step-num,
.viewing-steps .step-num,
.prep-list .prep-index,
.flow-list .flow-step {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-navy);
  background-color: var(--amber);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  margin-bottom: 8px;
}

.step-item h3,
.entry-step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.step-item p,
.entry-step p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--graphite-soft);
}

/* 通用相关链接（内页底部） */
.related-links {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.related-links .section-title,
.related-title {
  font-size: 20px;
  margin-bottom: 14px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.related-list li {
  min-width: 0;
}

.related-list a {
  display: block;
  padding: 12px 16px;
  min-height: 44px;
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--link-blue);
}

.related-list a:hover {
  border-color: var(--amber);
  color: var(--ink-navy);
  text-decoration: none;
}

/* 首页与频道矩阵页的紧凑相关入口条 */
nav.related-links:not(:has(.related-list)) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.related-links-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--graphite-soft);
}

.related-links-item {
  display: inline-block;
  padding: 6px 12px;
  min-height: 44px;
  line-height: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   4. pages —— 首页
   -------------------------------------------------------------------------- */
.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.home-extended-index {
  background-color: var(--ink-navy-soft);
  border-bottom: 1px solid rgba(244, 239, 228, 0.12);
}

.extended-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.extended-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--signal-green);
}

.extended-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.extended-list a {
  display: inline-block;
  padding: 6px 12px;
  min-height: 36px;
  line-height: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--paper-cream);
  border: 1px solid rgba(244, 239, 228, 0.28);
  border-radius: var(--radius-sm);
}

.extended-list a:hover {
  border-color: var(--amber);
  color: var(--amber);
  text-decoration: none;
}

/* 混合门户首屏 */
.hero-portal {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
  padding: 32px 0 8px;
  align-items: stretch;
}

.hero-main-recommend {
  display: flex;
  flex-direction: column;
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}

.hero-figure {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--ink-navy);
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  padding: 22px 24px 26px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber-deep);
  margin-bottom: 8px;
}

.hero-text h1 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--graphite-soft);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-three-entries {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background-color: var(--paper-white);
  color: var(--graphite);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.entry-card:hover {
  border-color: var(--amber);
  text-decoration: none;
}

.entry-card.entry-strong {
  background-color: var(--ink-navy);
  border-color: var(--ink-navy);
  color: var(--paper-cream);
}

.entry-card.entry-strong .entry-title {
  color: var(--paper-white);
}

.entry-card.entry-strong .entry-desc {
  color: rgba(244, 239, 228, 0.82);
}

.entry-card.entry-mid {
  background-color: #fbf6e8;
}

.entry-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber-deep);
}

.entry-card.entry-strong .entry-tag {
  color: var(--signal-green);
}

.entry-title {
  font-size: 18px;
  line-height: 1.4;
}

.entry-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--graphite-soft);
}

.entry-more {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--link-blue);
}

.entry-card.entry-strong .entry-more {
  color: var(--amber);
}

/* 频道矩阵工作区 */
.channel-workbench {
  padding: 48px 0 8px;
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 24px;
  align-items: start;
}

.workbench-main {
  min-width: 0;
}

.channel-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.channel-filter-tabs a {
  display: inline-block;
  padding: 8px 14px;
  min-height: 40px;
  line-height: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--link-blue);
}

.channel-filter-tabs a:hover {
  border-color: var(--amber);
  background-color: #fbf6e8;
  color: var(--ink-navy);
  text-decoration: none;
}

.field-notes {
  min-width: 0;
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
}

.field-notes h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.field-definition dt {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-navy);
  padding-top: 10px;
}

.field-definition dt:first-child {
  padding-top: 0;
}

.field-definition dd {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite-soft);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--rule-soft);
}

.field-definition dd:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.field-notes-link {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
}

/* 放映企划胶片带 */
.screening-strip {
  padding: 48px 0 8px;
}

.strip-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.strip-item {
  display: flex;
  flex-direction: column;
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.strip-figure {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--ink-navy);
  overflow: hidden;
}

.strip-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strip-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1 1 auto;
}

.strip-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--amber-deep);
}

.strip-body h3 {
  font-size: 17px;
  line-height: 1.45;
}

.strip-body p:not(.strip-index) {
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite-soft);
}

.strip-link {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
}

/* 观看条件开关面板 */
.viewing-switch-panel {
  padding: 48px 0 8px;
}

.viewing-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: start;
}

.switch-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.switch-item {
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.switch-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
}

.switch-input {
  width: 20px;
  height: 20px;
  accent-color: var(--amber-deep);
  flex: 0 0 auto;
}

.switch-text {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-navy);
}

.switch-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--graphite-soft);
}

.viewing-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.viewing-steps li {
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--ink-navy);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  min-width: 0;
}

.viewing-steps li h3 {
  font-size: 16px;
  margin: 8px 0 6px;
}

.viewing-steps li p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite-soft);
}

.viewing-more {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 14px;
}

/* 编辑原则与纠错 */
.editorial-feedback {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 48px 0 8px;
}

.editorial-column,
.feedback-column {
  min-width: 0;
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}

.principle-list,
.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.principle-list li,
.feedback-list li {
  padding-left: 14px;
  border-left: 3px solid var(--amber);
}

.feedback-list li {
  border-left-color: var(--brick);
}

.principle-list h3,
.feedback-list h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.principle-list p,
.feedback-list p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite-soft);
}

.feedback-link {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 14px;
}

/* 首页 FAQ */
.home-faq {
  padding: 48px 0 8px;
}

/* --------------------------------------------------------------------------
   5. pages —— 内页共用标题区与内容区
   -------------------------------------------------------------------------- */
.page-title-block,
.matrix-title,
.program-title,
.desk-title,
.reading-title {
  margin-top: 18px;
}

.matrix-title,
.program-title,
.desk-title .title-grid,
.reading-title-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
  align-items: start;
}

.matrix-title-text,
.title-text,
.reading-title-text {
  min-width: 0;
}

.page-lead,
.title-lead,
.reading-title-text .lead,
.summary-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--graphite-soft);
  max-width: 62ch;
}

.matrix-title-media,
.title-figure,
.reading-title-figure,
.page-figure {
  min-width: 0;
}

.matrix-title-media img,
.title-figure img,
.reading-title-figure img,
.page-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background-color: var(--ink-navy);
}

.matrix-title-media figcaption,
.title-figure figcaption,
.reading-title-figure figcaption,
.page-figure figcaption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--graphite-soft);
}

.page-title-block .eyebrow {
  margin-bottom: 10px;
}

.page-title-block .page-figure {
  margin-top: 20px;
}

/* 内页通用 section 内边距 */
.inner-main > section,
.inner-main > .page-layout {
  margin-top: 36px;
}

.inner-main .page-header + section,
.inner-main .page-header + .page-layout {
  margin-top: 18px;
}

.section-title,
.section-intro + h2,
.inner-main section > h2 {
  font-size: 24px;
  color: var(--ink-navy);
}

/* --------------------------------------------------------------------------
   6. pages —— 频道矩阵
   -------------------------------------------------------------------------- */
.matrix-filter-note {
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.filter-anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.filter-anchor-list a {
  display: inline-block;
  padding: 8px 14px;
  min-height: 40px;
  line-height: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  background-color: var(--paper-cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}

.filter-anchor-list a:hover {
  border-color: var(--amber);
  text-decoration: none;
}

.channel-matrix-table .section-desc {
  margin-bottom: 14px;
}

.field-definition-list {
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
}

.field-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 24px;
  margin-top: 16px;
}

.field-item {
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid var(--rule-soft);
}

.field-item dt {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-navy);
  margin-bottom: 4px;
}

.field-item dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite-soft);
}

.field-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite-soft);
}

.channel-choice-steps .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   7. pages —— 放映企划
   -------------------------------------------------------------------------- */
.program-summary {
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
}

.summary-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.summary-principles li {
  min-width: 0;
  padding: 12px 14px;
  background-color: var(--paper-cream);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite-soft);
}

.summary-principles strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  margin-bottom: 4px;
}

.program-list .section-intro {
  margin-bottom: 18px;
}

.program-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.program-item + .program-item {
  margin-top: 18px;
}

.program-number {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-navy);
  background-color: var(--amber);
  border-radius: var(--radius);
  padding: 14px 0;
  text-align: center;
  align-self: start;
}

.program-body {
  min-width: 0;
}

.program-body h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.program-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--graphite-soft);
}

.program-slate {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.program-slate li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  background-color: var(--paper-cream);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  min-width: 0;
}

.slate-no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-deep);
}

.slate-text {
  min-width: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite);
}

.slate-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-navy);
  margin-bottom: 2px;
}

.slate-note {
  display: block;
  color: var(--graphite-soft);
}

.program-entry {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.slate-reading {
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
}

.reading-definitions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 16px;
}

.definition-item {
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid var(--rule-soft);
}

.definition-item dt {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-navy);
  margin-bottom: 4px;
}

.definition-item dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite-soft);
}

.schedule-note {
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--brick);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.schedule-list li {
  padding-left: 14px;
  border-left: 2px solid var(--rule);
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite-soft);
}

.schedule-link {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   8. pages —— 观看条件
   -------------------------------------------------------------------------- */
.conditions-title .title-text {
  min-width: 0;
}

.switch-panel {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px;
  align-items: start;
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
}

.switch-controls {
  min-width: 0;
}

.switch-controls h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.switch-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.switch-panel .switch-item {
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background-color: var(--paper-cream);
}

.switch-name {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-navy);
}

.switch-notes {
  min-width: 0;
  border-left: 1px solid var(--rule-soft);
  padding-left: 24px;
}

.switch-notes h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.switch-notes p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--graphite-soft);
}

.switch-steps {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.switch-steps li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite-soft);
  padding-left: 14px;
  border-left: 2px solid var(--amber);
}

.condition-groups {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.condition-group {
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.group-head h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.group-head p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite-soft);
  margin-bottom: 14px;
}

.condition-table {
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.condition-table thead th {
  background-color: var(--ink-navy);
}

.condition-table tbody th {
  width: 28%;
  background-color: var(--paper-cream);
}

.self-check {
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--signal-green);
  border-radius: var(--radius);
  padding: 22px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.check-item {
  min-width: 0;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  background-color: var(--paper-cream);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.check-input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--amber-deep);
  flex: 0 0 auto;
}

.check-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--graphite);
}

.check-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--graphite-soft);
}

.conditions-faq .faq-list {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   9. pages —— 来源与入口（报告式单列）
   -------------------------------------------------------------------------- */
.page-source-entry .inner-main > section,
.page-source-entry .inner-main > .page-title-block {
  max-width: var(--wrap-read);
}

.executive-summary {
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--ink-navy);
  border-radius: var(--radius);
  padding: 22px;
}

.summary-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.summary-points li {
  padding-left: 16px;
  position: relative;
  font-size: 14px;
  line-height: 1.8;
  color: var(--graphite-soft);
}

.summary-points li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--amber-deep);
}

.source-label-section .section-intro {
  margin-bottom: 14px;
}

.source-label-table tbody th {
  width: 26%;
}

.entry-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.exception-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.exception-card {
  min-width: 0;
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--brick);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.exception-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.exception-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--graphite-soft);
}

.exception-footer {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   10. pages —— 条目读法（主内容 + 右侧目录）
   -------------------------------------------------------------------------- */
.reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 32px;
  align-items: start;
}

.reading-main {
  min-width: 0;
}

.reading-main > section + section {
  margin-top: 34px;
}

.reading-main section > h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.reading-main section > p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--graphite-soft);
}

.field-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.field-card {
  min-width: 0;
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.field-name {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink-navy);
}

.field-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite-soft);
}

.field-example {
  margin-top: 18px;
  background-color: var(--paper-white);
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.field-example-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--amber-deep);
  margin-bottom: 10px;
}

.field-example-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--rule-soft);
}

.field-example-row dt {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-navy);
}

.field-example-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--graphite-soft);
}

.affiliation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.affiliation-col {
  min-width: 0;
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.affiliation-col h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.affiliation-col p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--graphite-soft);
}

.relation-diagram {
  margin-top: 18px;
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px;
}

.relation-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--amber-deep);
  margin-bottom: 14px;
}

.relation-canvas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.relation-node {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background-color: var(--paper-cream);
  color: var(--ink-navy);
  text-align: center;
  max-width: 100%;
}

.relation-node-core {
  background-color: var(--ink-navy);
  border-color: var(--ink-navy);
  color: var(--paper-white);
  margin-bottom: 0;
}

.relation-node-core::after {
  content: "";
  display: block;
  width: 2px;
  height: 18px;
  margin: 8px auto -18px;
  background-color: var(--rule);
}

.relation-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  padding-top: 26px;
  border-top: 2px solid var(--rule);
  margin-top: 0;
}

.relation-branches .relation-node {
  width: 100%;
}

.relation-node-channel {
  border-color: var(--link-blue);
}

.relation-node-program {
  border-color: var(--amber);
}

.relation-node-source {
  border-color: var(--signal-green);
}

.source-note-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.source-note-list li {
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--signal-green);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  min-width: 0;
}

.source-note-list h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.source-note-list p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--graphite-soft);
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.checklist-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 14px;
  background-color: var(--paper-white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  min-width: 0;
}

.checklist-mark {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-navy);
  background-color: var(--signal-green);
  border-radius: var(--radius-sm);
  text-align: center;
  line-height: 24px;
  height: 24px;
}

.checklist-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite);
}

.reading-toc-aside {
  min-width: 0;
  position: sticky;
  top: 20px;
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}

.toc-title {
  font-size: 16px;
  margin-bottom: 10px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
}

.toc-list a {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 7px 4px;
  min-height: 40px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--link-blue);
  border-bottom: 1px dashed var(--rule-soft);
}

.toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber-deep);
  flex: 0 0 auto;
}

.toc-list a:hover {
  color: var(--ink-navy);
  text-decoration: none;
}

.toc-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--graphite-soft);
}

/* --------------------------------------------------------------------------
   11. pages —— 站务日志
   -------------------------------------------------------------------------- */
.desk-top,
.desk-bottom {
  display: grid;
  gap: 24px;
  align-items: start;
}

.desk-top {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.desk-bottom {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.desk-format,
.desk-recent,
.feedback-prep,
.handling-flow {
  min-width: 0;
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
}

.desk-format h2,
.desk-recent h2,
.feedback-prep h2,
.handling-flow h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.desk-format > p,
.desk-recent > p,
.feedback-prep > p,
.handling-flow > p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--graphite-soft);
}

.desk-format .field-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--rule-soft);
  min-width: 0;
}

.field-row dt {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-navy);
}

.field-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite-soft);
}

.recent-entry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.recent-entry-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--rule-soft);
  min-width: 0;
}

.recent-entry-list a {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.entry-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--graphite-soft);
}

.desk-scope {
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--brick);
  border-radius: var(--radius);
  padding: 22px;
}

.desk-scope h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.desk-scope > p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--graphite-soft);
  margin-bottom: 14px;
}

.scope-table tbody th {
  width: 24%;
}

.prep-list {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.prep-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--rule-soft);
  min-width: 0;
}

.prep-list .prep-index {
  margin-bottom: 0;
  text-align: center;
}

.prep-list p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite-soft);
}

.flow-list {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.flow-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--rule-soft);
  min-width: 0;
}

.flow-list .flow-step {
  margin-bottom: 0;
  text-align: center;
  background-color: var(--ink-navy);
  color: var(--paper-cream);
}

.flow-list p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite-soft);
}

.desk-faq .faq-list {
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   12. pages —— 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.error-panel {
  background-color: var(--ink-navy);
  color: var(--paper-cream);
  border-radius: var(--radius);
  padding: 40px 32px;
  border-bottom: 4px solid var(--amber);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--signal-green);
  margin-bottom: 10px;
}

.error-panel h1 {
  font-size: 34px;
  color: var(--paper-white);
  margin-bottom: 12px;
}

.error-lead {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(244, 239, 228, 0.82);
  max-width: 62ch;
}

.error-hints {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.error-hints li {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 239, 228, 0.82);
}

.error-path {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 2px 8px;
  margin-right: 8px;
  border: 1px solid rgba(244, 239, 228, 0.3);
  border-radius: var(--radius-sm);
  color: var(--amber);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.error-panel .btn-ghost,
.error-panel .btn.btn-ghost {
  color: var(--paper-cream);
  border-color: rgba(244, 239, 228, 0.5);
}

.error-panel .btn-ghost:hover,
.error-panel .btn.btn-ghost:hover {
  background-color: var(--paper-cream);
  color: var(--ink-navy);
}

.error-guide {
  margin-top: 32px;
  background-color: var(--paper-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
}

.error-guide h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.error-guide > p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--graphite-soft);
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.error-links a {
  display: block;
  padding: 10px 14px;
  min-height: 44px;
  line-height: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  background-color: var(--paper-cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}

.error-links a:hover {
  border-color: var(--amber);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   13. responsive —— 900px 与 640px 断点
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .header-inner {
    padding: 0 18px;
    min-height: 60px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .home-main,
  .inner-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .extended-inner {
    padding: 8px 18px;
    justify-content: flex-start;
  }

  .hero-portal {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .hero-three-entries {
    grid-template-rows: none;
    grid-template-columns: minmax(0, 1fr);
  }

  .workbench-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .strip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viewing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .viewing-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .editorial-feedback {
    grid-template-columns: minmax(0, 1fr);
  }

  .matrix-title,
  .program-title,
  .desk-title .title-grid,
  .reading-title-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .channel-choice-steps .step-list,
  .entry-steps,
  .summary-principles,
  .reading-definitions {
    grid-template-columns: minmax(0, 1fr);
  }

  .switch-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .switch-notes {
    border-left: 0;
    border-top: 1px solid var(--rule-soft);
    padding-left: 0;
    padding-top: 16px;
  }

  .reading-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .reading-toc-aside {
    position: static;
    order: 0;
  }

  .desk-top,
  .desk-bottom {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 18px 24px;
  }

  .footer-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    padding: 18px 18px 28px;
  }

  .error-main {
    padding: 32px 18px 48px;
  }

  .error-panel {
    padding: 28px 22px;
  }

  .error-panel h1 {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-text {
    padding: 18px 16px 20px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    flex: 1 1 auto;
  }

  .section-head h2,
  .section-title,
  .inner-main section > h2 {
    font-size: 21px;
  }

  .strip-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .viewing-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .program-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .program-number {
    width: 64px;
    font-size: 24px;
    padding: 10px 0;
  }

  .program-slate li {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 9px 10px;
  }

  .field-example-row,
  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .field-card-list,
  .affiliation-grid,
  .exception-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .relation-branches {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .check-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-to-top {
    align-self: flex-start;
  }

  /* 表格在窄屏转为字段行式卡片，彻底避免横向溢出 */
  .table-scroll,
  .table-wrap {
    overflow-x: visible;
    border: 0;
    background-color: transparent;
    border-radius: 0;
  }

  .channel-result-table,
  .matrix-grid,
  .source-label-table,
  .condition-table,
  .scope-table,
  .data-table {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 14px;
  }

  .channel-result-table caption,
  .matrix-grid caption,
  .source-label-table caption,
  .scope-table caption,
  .table-caption {
    display: block;
    padding: 0 0 10px;
    border-bottom: 0;
  }

  .channel-result-table thead,
  .matrix-grid thead,
  .source-label-table thead,
  .condition-table thead,
  .scope-table thead,
  .data-table thead {
    display: none;
  }

  .channel-result-table tbody,
  .matrix-grid tbody,
  .source-label-table tbody,
  .condition-table tbody,
  .scope-table tbody,
  .data-table tbody {
    display: block;
    width: 100%;
  }

  .channel-result-table tbody tr,
  .matrix-grid tbody tr,
  .source-label-table tbody tr,
  .condition-table tbody tr,
  .scope-table tbody tr,
  .data-table tbody tr {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
    padding: 6px 14px 10px;
    background-color: var(--paper-white);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
  }

  .channel-result-table tbody tr:last-child,
  .matrix-grid tbody tr:last-child,
  .source-label-table tbody tr:last-child,
  .condition-table tbody tr:last-child,
  .scope-table tbody tr:last-child,
  .data-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .channel-result-table tbody th,
  .matrix-grid tbody th,
  .source-label-table tbody th,
  .condition-table tbody th,
  .scope-table tbody th,
  .data-table tbody th {
    display: block;
    width: 100%;
    max-width: 100%;
    background-color: transparent;
    border-bottom: 1px solid var(--rule-soft);
    padding: 8px 0;
    font-size: 14px;
  }

  .channel-result-table tbody td,
  .matrix-grid tbody td,
  .source-label-table tbody td,
  .condition-table tbody td,
  .scope-table tbody td,
  .data-table tbody td {
    display: block;
    width: 100%;
    max-width: 100%;
    border-bottom: 1px dashed var(--rule-soft);
    padding: 8px 0;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .channel-result-table tbody td:last-child,
  .matrix-grid tbody td:last-child,
  .source-label-table tbody td:last-child,
  .condition-table tbody td:last-child,
  .scope-table tbody td:last-child,
  .data-table tbody td:last-child {
    border-bottom: 0;
  }

  .channel-result-table tbody tr:hover th,
  .channel-result-table tbody tr:hover td,
  .matrix-grid tbody tr:hover th,
  .matrix-grid tbody tr:hover td {
    background-color: transparent;
  }

  .condition-table {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .condition-table tbody th {
    background-color: transparent;
  }

  .field-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-title-block,
  .matrix-title,
  .program-title,
  .desk-title,
  .reading-title {
    margin-top: 14px;
  }

  .inner-main > section,
  .inner-main > .page-layout {
    margin-top: 28px;
  }

  .editorial-column,
  .feedback-column,
  .field-notes,
  .switch-panel,
  .self-check,
  .executive-summary,
  .desk-format,
  .desk-recent,
  .feedback-prep,
  .handling-flow,
  .desk-scope,
  .program-summary,
  .slate-reading,
  .schedule-note,
  .channel-matrix-table .field-definition-list {
    padding: 18px 16px;
  }

  .condition-group {
    padding: 16px 14px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-panel h1 {
    font-size: 24px;
  }

  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 程序验收反馈：移动端防溢出 */
@media (max-width: 768px) {
  .site-main,
  .site-main * {
    min-width: 0;
    max-width: 100%;
  }

  .site-main :is(h1, h2, h3, h4, p, a, span) {
    overflow-wrap: anywhere;
  }
}
