/* ==========================================================================
   搜狐影视 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --paper: #f7f5ef;
  --ink: #172033;
  --signal: #c85828;
  --muted: #66758a;
  --sand: #e8e0d2;
  --rule: #d7d0c3;
  --deep: #101826;
  --radius: 6px;
  --content-max: 1080px;
  --sidebar-w: 232px;
  --gap: 40px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd {
  margin: 0;
}

dt {
  font-weight: 700;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--signal);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

caption {
  text-align: left;
}

summary {
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.brand:hover {
  color: var(--signal);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.site-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
}

.site-nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--signal);
  transition: right 0.2s ease;
}

.site-nav-item:hover::after,
.site-nav-item.is-current::after {
  right: 0;
}

.site-nav-item.is-current {
  color: var(--ink);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* 左侧目录布局：.sidebar-left 可在布局容器本身，也可在祖先节点 */
.page-shell,
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px 24px 56px;
  gap: var(--gap);
}

.page-shell.sidebar-left,
.page-layout.sidebar-left,
.sidebar-left .page-shell,
.sidebar-left .page-layout {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}

.side-nav {
  align-self: start;
  position: sticky;
  top: 84px;
  min-width: 0;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.side-nav-label,
.side-nav-caption {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.side-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-nav-item,
.side-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 10px 10px 12px;
  font-size: 15px;
  color: var(--ink);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.side-nav-item:hover,
.side-nav-link:hover {
  color: var(--signal);
  border-left-color: var(--signal);
  background: var(--paper);
}

.side-nav-item.is-current,
.side-nav-link.is-current {
  color: var(--ink);
  font-weight: 700;
  border-left-color: var(--signal);
  background: var(--paper);
}

.nav-num,
.side-nav-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--signal);
}

.side-nav-foot,
.side-nav-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.site-main {
  min-width: 0;
}

.inner-main {
  max-width: 100%;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--signal);
}

.breadcrumb-sep {
  color: var(--rule);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  margin-bottom: 8px;
}

.page-title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.24;
  color: var(--ink);
}

/* 内页统一页标题区 */
header.page-title {
  padding: 18px 0 26px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--rule);
}

.page-eyebrow,
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--signal);
}

.eyebrow-num {
  color: var(--signal);
}

.page-summary {
  max-width: 42em;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.continue-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.continue-hint::after {
  content: "↓";
  color: var(--signal);
  font-weight: 700;
}

.continue-hint:hover {
  color: var(--ink);
  border-color: var(--signal);
}

/* --------------------------------------------------------------------------
   layout · 页脚
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--deep);
  color: #cfd7e3;
  margin-top: 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 44px 24px 32px;
}

.footer-title {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  display: inline-block;
  min-height: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: #b3bfd0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 18px 24px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  color: #8f9db1;
}

.footer-brand {
  color: #cfd7e3;
  font-weight: 700;
}

.footer-year {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   components · 通用区块与表格
   -------------------------------------------------------------------------- */

section {
  margin-bottom: 52px;
}

section:last-child {
  margin-bottom: 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--signal);
}

.section-head h2,
.section-title,
section > h2 {
  margin: 6px 0 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.32;
}

.section-desc,
.section-lead,
.section-intro {
  max-width: 42em;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.section-more {
  margin-top: 18px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--signal);
}

.link-more::after {
  content: "→";
  transition: transform 0.18s ease;
}

.link-more:hover::after {
  transform: translateX(4px);
}

/* 表格通用 */
table thead th {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  color: var(--ink);
  background: var(--sand);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

table tbody td {
  padding: 11px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  line-height: 1.65;
}

table tbody tr:last-child td {
  border-bottom: 0;
}

table tbody tr:hover td {
  background: #fbf9f4;
}

.table-caption {
  padding: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

/* figure 与图片 */
figure {
  margin: 0;
}

.hero-media,
.stage-media,
.notes-media,
.media-figure,
.structure-figure,
.glossary-figure,
.log-figure,
.step-media {
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.hero-media img,
.stage-media img,
.notes-media img,
.media-figure img,
.structure-figure img,
.glossary-figure img,
.log-figure img,
.step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--rule);
}

/* 字段说明侧栏 */
.field-list {
  display: grid;
  gap: 4px;
  margin: 0;
}

.field-list dt {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal);
}

.field-list dt:first-child {
  margin-top: 0;
}

.field-list dd {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 14px 46px 14px 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--signal);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--rule);
}

.faq-item > p,
.faq-answer {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.faq-answer p + p {
  margin-top: 8px;
}

/* 相关链接条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.related-links-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  color: var(--signal);
}

/* 来源说明块 */
.source-note {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
}

.source-note h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.source-note p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
}

.source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--signal);
}

/* 编号列表通用 */
.prereq-list,
.boundary-list,
.field-index-list,
.scope-list,
.position-list {
  display: grid;
  gap: 14px;
}

.prereq-item,
.boundary-item,
.field-index-item,
.scope-item,
.position-item {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.prereq-title,
.boundary-name,
.field-index-name,
.position-item h3 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 700;
}

.prereq-item p,
.boundary-item p,
.field-index-item p,
.scope-item p,
.position-item p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 34px;
  align-items: start;
  padding-bottom: 40px;
  margin-bottom: 52px;
  border-bottom: 1px solid var(--rule);
}

.hero-copy {
  min-width: 0;
}

.hero-copy .eyebrow {
  margin-bottom: 12px;
}

.hero-copy h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.22;
}

.hero-lead {
  max-width: 30em;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--signal);
  color: #fff;
}

.btn-primary:hover {
  background: #a8461f;
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-ghost:hover {
  color: var(--signal);
  border-color: var(--signal);
}

.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 5px 14px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
}

.tag:hover {
  color: var(--signal);
  border-color: var(--signal);
}

.hero-media {
  margin: 0;
  min-width: 0;
}

.hero-media img {
  aspect-ratio: 16 / 10;
}

.hero .continue-hint {
  grid-column: 1 / -1;
  justify-self: start;
}

/* 频道图谱速览 */
.channel-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.channel-table {
  min-width: 0;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.channel-table table {
  min-width: 420px;
}

.channel-notes,
.lineup-notes {
  min-width: 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.channel-notes h3,
.lineup-notes h3 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}

.channel-notes .link-more,
.lineup-notes .link-more {
  margin-top: 10px;
}

/* 专题时间轴精选 */
.stage-block {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}

.stage-block:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.stage-block .stage-label {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--signal);
}

.stage-body {
  min-width: 0;
}

.stage-body h3 {
  font-size: 20px;
  font-weight: 700;
}

.stage-body > p {
  max-width: 40em;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.stage-block .stage-media {
  margin: 16px 0 0;
}

.stage-block .stage-media img {
  aspect-ratio: 16 / 9;
}

.stage-items {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.stage-items li {
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--sand);
  border-radius: var(--radius);
}

/* 本期片单编排 */
.lineup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.lineup-table {
  min-width: 0;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.lineup-table table {
  min-width: 460px;
}

.lineup-notes .notes-media {
  margin: 16px 0 0;
}

.lineup-notes .notes-media img {
  aspect-ratio: 4 / 3;
}

/* 观看环境自查：首页横向步骤条 */
.viewing-check .step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.viewing-check .step-item {
  padding: 18px 18px 20px;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--signal);
  border-radius: var(--radius);
}

.viewing-check .step-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--signal);
}

.viewing-check .step-item h3 {
  font-size: 16px;
  font-weight: 700;
}

.viewing-check .step-item p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.viewing-check .step-record {
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}

/* 更正记录摘要：外层滚动容器 */
.correction-strip .correction-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.correction-strip .correction-table thead,
.correction-strip .correction-table tbody {
  display: table;
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}

/* --------------------------------------------------------------------------
   pages · 专题时间轴
   -------------------------------------------------------------------------- */

.stage-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.stage-jump-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.stage-jump-link:hover {
  color: var(--signal);
  border-color: var(--signal);
}

.timeline-stages {
  margin-bottom: 44px;
}

.timeline-stage {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.timeline-stage:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.timeline-stage .stage-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-stage .stage-num {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--signal);
}

.timeline-stage .stage-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.stage-title {
  font-size: 20px;
  font-weight: 700;
}

.stage-desc {
  max-width: 40em;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.timeline-stage .stage-media {
  margin: 16px 0;
}

.timeline-stage .stage-media img {
  aspect-ratio: 16 / 9;
}

/* 阶段片单表：外层滚动容器 */
.timeline-stage .stage-table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.timeline-stage .stage-table thead,
.timeline-stage .stage-table tbody {
  display: table;
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.stage-table thead th:first-child,
.stage-table tbody td:first-child {
  font-family: var(--font-mono);
  color: var(--signal);
}

.prerequisite-note {
  padding: 24px 0 8px;
  border-top: 1px solid var(--rule);
}

.prerequisite-note .prereq-list {
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   pages · 频道图谱
   -------------------------------------------------------------------------- */

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.filter-tag:hover {
  color: var(--signal);
  border-color: var(--signal);
}

.filter-tag.is-active {
  color: #fff;
  background: var(--signal);
  border-color: var(--signal);
}

.filter-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.channel-results {
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.result-table {
  min-width: 520px;
}

.cell-num {
  font-family: var(--font-mono);
  color: var(--signal);
  white-space: nowrap;
}

.cell-name {
  font-weight: 700;
  white-space: nowrap;
}

.filter-empty {
  margin-top: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
}

.channel-field-notes {
  min-width: 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.channel-field-notes h3 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}

.channel-field-notes .media-figure {
  margin-top: 16px;
}

.channel-field-notes .media-figure img {
  aspect-ratio: 4 / 3;
}

.field-link {
  margin-top: 12px;
}

.field-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--signal);
}

.channel-boundaries {
  margin-top: 44px;
}

.channel-boundaries .boundary-in,
.channel-boundaries .boundary-out {
  margin-top: 6px;
  font-size: 14px;
}

.boundary-tag {
  display: inline-block;
  min-width: 64px;
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.boundary-link {
  margin-top: 8px;
}

.boundary-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--signal);
}

.field-index {
  margin-top: 44px;
}

.field-index-rule,
.field-index-misread {
  margin-top: 6px;
  font-size: 14px;
}

.field-index-tag {
  display: inline-block;
  min-width: 64px;
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 片单编排
   -------------------------------------------------------------------------- */

.principle-list {
  display: grid;
  gap: 14px;
}

.principle-item {
  position: relative;
  padding: 18px 20px 18px 62px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.principle-num {
  position: absolute;
  top: 18px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--signal);
}

.principle-name {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 700;
}

.principle-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.structure-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.9fr);
  gap: 28px;
  align-items: start;
}

/* 结构表：外层滚动容器 */
.structure-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.structure-table thead,
.structure-table tbody {
  display: table;
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}

.structure-figure {
  margin: 0;
  min-width: 0;
}

.structure-figure img {
  aspect-ratio: 3 / 4;
}

.map-layers {
  display: grid;
  gap: 14px;
}

.map-layer {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
}

.map-layer-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--signal);
}

.map-layer-title {
  margin: 6px 0;
  font-size: 17px;
  font-weight: 700;
}

.map-layer-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

/* 片单编排页检查清单 */
.lineup-checklist .checklist {
  display: grid;
  gap: 12px;
}

.lineup-checklist .checklist-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.lineup-checklist .checklist-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--signal);
}

.lineup-checklist .checklist-point {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.lineup-checklist .checklist-standard {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.related-item {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.related-item a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 16px;
  font-weight: 700;
  color: var(--signal);
}

.related-desc {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 观看指南
   -------------------------------------------------------------------------- */

.guide-steps .step-list {
  display: grid;
  gap: 16px;
}

.guide-steps .step-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.guide-steps .step-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--signal);
}

.step-body {
  min-width: 0;
}

.guide-steps .step-title {
  font-size: 18px;
  font-weight: 700;
}

.guide-steps .step-goal,
.guide-steps .step-action,
.guide-steps .step-record {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.guide-steps .step-record {
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}

.guide-steps .step-media {
  margin-top: 14px;
}

.guide-steps .step-media img {
  aspect-ratio: 16 / 9;
}

.guide-faq {
  margin-top: 44px;
}

.boundary-note {
  margin-top: 44px;
}

.boundary-note .boundary-list {
  margin-top: 18px;
}

.boundary-title {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   pages · 字段字典
   -------------------------------------------------------------------------- */

.glossary-table .section-head {
  margin-bottom: 18px;
}

.glossary-figure {
  margin: 0 0 20px;
}

.glossary-figure img {
  aspect-ratio: 21 / 9;
}

.table-wrap {
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.data-table {
  min-width: 560px;
}

.data-table caption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
  background: #fff;
  border-bottom: 1px solid var(--rule);
}

.data-table tbody td:first-child {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--signal);
  white-space: nowrap;
}

.glossary-notes {
  margin-top: 32px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
}

.glossary-notes h2 {
  font-size: 20px;
  font-weight: 700;
}

.notes-intro {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.notes-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.notes-list li {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.notes-list h3 {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
}

.notes-list p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.usage-positions {
  margin-top: 40px;
}

.usage-positions .position-list {
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   pages · 更正记录
   -------------------------------------------------------------------------- */

.correction-scope .scope-item {
  position: relative;
  padding-left: 62px;
}

.scope-num {
  position: absolute;
  top: 18px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--signal);
}

.scope-item h3 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 700;
}

.scope-action {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
  font-size: 14px;
  color: var(--ink);
}

.log-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.log-main {
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.log-table {
  min-width: 520px;
}

.cell-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
}

.status {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
}

.status-done {
  color: #1d4d2e;
  background: #dcefe2;
}

.status-check {
  color: #7a3a12;
  background: #f6e2d2;
}

.status-note {
  color: var(--muted);
  background: var(--sand);
}

.log-side {
  min-width: 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.log-figure {
  margin: 0 0 16px;
}

.log-figure img {
  aspect-ratio: 4 / 3;
}

.log-legend {
  display: grid;
  gap: 4px;
}

.log-legend dt {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal);
}

.log-legend dt:first-child {
  margin-top: 0;
}

.log-legend dd {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.request-checklist {
  margin-top: 44px;
}

.request-checklist .checklist {
  display: grid;
  gap: 12px;
}

.request-checklist .checklist-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.request-checklist .check-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--signal);
}

.request-checklist .checklist-item h3 {
  font-size: 16px;
  font-weight: 700;
}

.request-checklist .checklist-item p {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  justify-content: center;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.error-panel {
  width: 100%;
  max-width: 640px;
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--signal);
  border-radius: var(--radius);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--signal);
}

.error-title {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 700;
}

.error-text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 22px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--signal);
  border-radius: var(--radius);
}

.error-btn:hover {
  color: #fff;
  background: #a8461f;
}

.error-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--signal);
}

.error-note {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .page-shell,
  .page-layout {
    gap: 28px;
  }

  .page-shell.sidebar-left,
  .page-layout.sidebar-left,
  .sidebar-left .page-shell,
  .sidebar-left .page-layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}

@media (max-width: 860px) {
  /* 页头与移动导航：仅 .nav-list 默认收起，由 .nav-list.is-open 展开 */
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    gap: 4px 14px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--rule);
  }

  .site-nav-item {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 4px;
    font-size: 15px;
    border-bottom: 0;
  }

  .site-nav-item::after {
    display: none;
  }

  .site-nav-item.is-current {
    color: var(--signal);
  }

  /* 单列布局：主内容在前，侧栏在后 */
  .page-shell,
  .page-layout,
  .page-shell.sidebar-left,
  .page-layout.sidebar-left,
  .sidebar-left .page-shell,
  .sidebar-left .page-layout {
    display: flex;
    flex-direction: column;
    padding: 20px 18px 44px;
    gap: 28px;
  }

  .side-nav {
    position: static;
    order: 2;
    width: 100%;
    padding: 16px;
  }

  .site-main {
    order: 1;
    width: 100%;
  }

  /* 页标题 */
  .page-title,
  .hero-copy h1 {
    font-size: 30px;
    line-height: 1.28;
  }

  header.page-title {
    padding: 14px 0 20px;
    margin-bottom: 26px;
  }

  .page-summary,
  .hero-lead {
    font-size: 15px;
  }

  section {
    margin-bottom: 40px;
  }

  .section-head h2,
  .section-title,
  section > h2 {
    font-size: 22px;
  }

  /* 首页焦点区：单列 */
  .home-main .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 32px;
    margin-bottom: 40px;
  }

  .hero .continue-hint {
    grid-column: auto;
    justify-self: stretch;
    justify-content: center;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  /* 多栏模块收为单列 */
  .channel-overview-grid,
  .lineup-grid,
  .filter-body,
  .structure-body,
  .log-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .stage-block,
  .timeline-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 22px 0;
  }

  .stage-block .stage-label,
  .timeline-stage .stage-num {
    font-size: 44px;
  }

  .timeline-stage .stage-label {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }

  /* 表格：外层滚动，不撑破视口 */
  .channel-table,
  .lineup-table,
  .channel-results,
  .log-main,
  .table-wrap,
  .correction-strip .correction-table,
  .timeline-stage .stage-table,
  .structure-table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .channel-table table,
  .lineup-table table,
  .result-table,
  .log-table,
  .data-table {
    min-width: 520px;
  }

  .correction-strip .correction-table thead,
  .correction-strip .correction-table tbody,
  .timeline-stage .stage-table thead,
  .timeline-stage .stage-table tbody,
  .structure-table thead,
  .structure-table tbody {
    min-width: 480px;
  }

  /* 步骤与卡片 */
  .viewing-check .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-steps .step-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .guide-steps .step-num {
    font-size: 20px;
  }

  .lineup-checklist .checklist-item,
  .request-checklist .checklist-item {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 14px;
  }

  .principle-item,
  .correction-scope .scope-item {
    padding: 16px 16px 16px 52px;
  }

  .principle-num,
  .scope-num {
    top: 16px;
    left: 16px;
  }

  .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 32px 18px 24px;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px 24px;
  }

  /* 404 */
  .error-main {
    padding: 36px 18px 56px;
  }

  .error-panel {
    padding: 26px 20px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 10px 14px;
  }

  .page-shell,
  .page-layout,
  .page-shell.sidebar-left,
  .page-layout.sidebar-left,
  .sidebar-left .page-shell,
  .sidebar-left .page-layout {
    padding: 16px 14px 36px;
  }

  .page-title,
  .hero-copy h1 {
    font-size: 26px;
  }

  .channel-notes,
  .lineup-notes,
  .channel-field-notes,
  .log-side,
  .glossary-notes,
  .source-note {
    padding: 16px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}

/* 程序验收反馈：移动端防溢出 */
@media (max-width: 768px) {
  .site-main,
  .site-main * {
    min-width: 0;
    max-width: 100%;
  }

  .site-main :is(h1, h2, h3, h4, p, a, span) {
    overflow-wrap: anywhere;
  }
}
