/* ==========================================================================
   午夜电影在线观看 · 全站样式表
   结构分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base — 变量、重置、排版基线
   -------------------------------------------------------------------------- */

:root {
  --ink: #16233a;
  --signal: #e8562a;
  --mist: #b9c4d4;
  --paper: #f7f5f1;
  --panel: #eceff3;
  --text: #1d1f24;
  --text-soft: #4a5162;
  --line: #d5dae2;
  --radius: 6px;
  --shell: 1120px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd {
  margin: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--signal);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.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;
}

/* --------------------------------------------------------------------------
   2. layout — 骨架：header / nav / main / breadcrumb / page-header / footer
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

/* --- 顶部线索说明条（仅首页） --- */

.top-clue-bar {
  background: var(--ink);
  color: #eef1f6;
  padding: 10px 0;
}

.top-clue-text {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* --- 页头与主导航 --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  padding: 6px 0;
}

.brand:hover {
  color: var(--signal);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.nav-link {
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--text-soft);
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--signal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle::before {
  top: 16px;
}

.nav-toggle::after {
  bottom: 16px;
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.action-btn:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}

/* --- 主内容区 --- */

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.home-main,
.inner-main {
  display: block;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* --- 面包屑 --- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--signal);
}

.breadcrumb-sep {
  color: var(--mist);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 700;
}

/* --- 内页标题区 --- */

.page-header {
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-title {
  font-size: 34px;
  line-height: 1.3;
  color: var(--ink);
  max-width: 26em;
}

.page-description {
  margin-top: 14px;
  max-width: 68ch;
  font-size: 16px;
  color: var(--text-soft);
}

.page-description a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-meta,
.page-updated {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* --- 页脚 --- */

.site-footer {
  background: var(--ink);
  color: #d7dde7;
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 12px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(140px, 1fr));
  gap: 32px 28px;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.footer-brand-desc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #a9b4c6;
  max-width: 34ch;
}

.footer-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  font-size: 13px;
  color: #a9b4c6;
}

.footer-list a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px 24px 32px;
  border-top: 1px solid rgba(185, 196, 212, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.footer-note {
  flex: 1 1 320px;
  font-size: 13px;
  color: #a9b4c6;
}

.footer-copy {
  flex: 1 1 100%;
  font-size: 12px;
  color: #8593a8;
}

.print-btn {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(215, 221, 231, 0.5);
  border-radius: var(--radius);
  color: #eef1f6;
  font-size: 13px;
}

.print-btn:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. components — 通用模块：section 头、表格、列表、卡片、字段、索引
   -------------------------------------------------------------------------- */

/* --- 首页 section 骨架 --- */

.section-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.section-head {
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  color: var(--ink);
  padding-left: 12px;
  border-left: 4px solid var(--signal);
}

.section-desc {
  margin-top: 10px;
  max-width: 68ch;
  font-size: 15px;
  color: var(--text-soft);
}

.section-foot {
  margin-top: 18px;
  font-size: 14px;
}

.section-foot a {
  color: var(--signal);
  font-weight: 700;
}

.section-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- 首页各区块纵向节奏 --- */

.channels-section,
.collections-section,
.brief-section,
.records-section,
.index-section {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

/* --- 内页 section 通用 --- */

.section {
  margin-bottom: 44px;
}

.section-lead,
.section-intro {
  margin-top: 10px;
  max-width: 68ch;
  font-size: 15px;
  color: var(--text-soft);
}

.section-intro a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- 表格通用外观 --- */

.channel-table,
.channel-map-table,
.mapping-table,
.field-table {
  font-size: 14px;
}

.channel-table th,
.channel-table td,
.channel-map-table th,
.channel-map-table td,
.mapping-table th,
.mapping-table td,
.field-table th,
.field-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.channel-table thead th,
.channel-map-table thead th,
.mapping-table thead th,
.field-table thead th {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  border-color: var(--ink);
}

.channel-table tbody tr:nth-child(even),
.channel-map-table tbody tr:nth-child(even),
.mapping-table tbody tr:nth-child(even),
.field-table tbody tr:nth-child(even) {
  background: var(--panel);
}

.channel-table tbody th,
.field-table tbody th,
.channel-map-table tbody th {
  background: #e3e8ef;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.channel-table td:first-child,
.mapping-table td:first-child {
  font-family: var(--font-mono);
  color: var(--signal);
  font-weight: 700;
  white-space: nowrap;
}

/* --- 相关入口列表（内页共用） --- */

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.related-item {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
}

.related-item a {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.related-item a:hover {
  color: var(--signal);
}

.related-item p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   4. pages — 首页
   -------------------------------------------------------------------------- */

/* --- 首屏 --- */

.hero-section {
  padding: 44px 0 48px;
}

.hero-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 40px;
  align-items: start;
}

.hero-text {
  min-width: 0;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--signal);
  text-transform: uppercase;
}

.hero-title {
  margin-top: 14px;
  font-size: 40px;
  line-height: 1.25;
  color: var(--ink);
  max-width: 20em;
}

.hero-lead {
  margin-top: 18px;
  max-width: 60ch;
  font-size: 16px;
  color: var(--text);
}

.hero-note {
  margin-top: 14px;
  max-width: 60ch;
  font-size: 14px;
  color: var(--text-soft);
  padding-left: 14px;
  border-left: 3px solid var(--mist);
}

.hero-cta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
}

.cta-primary {
  background: var(--signal);
  color: #fff;
  border: 1px solid var(--signal);
}

.cta-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.cta-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.cta-secondary:hover {
  color: var(--signal);
  border-color: var(--signal);
}

/* --- 首屏右栏 --- */

.hero-rail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.hero-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-soft);
  background: #fff;
}

.channel-strip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.strip-title {
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.strip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.strip-list a {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--text);
  background: var(--panel);
  border-radius: var(--radius);
  border-left: 3px solid var(--mist);
}

.strip-list a:hover {
  color: var(--ink);
  border-left-color: var(--signal);
  background: #e3e8ef;
}

.continue-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.continue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.continue-list li {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.continue-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.continue-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--signal);
  letter-spacing: 0.04em;
}

.continue-text {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text);
}

/* --- 首页频道总览表 --- */

.channel-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.channel-table {
  min-width: 720px;
}

.channel-table caption {
  text-align: left;
}

.channel-table tbody tr {
  position: relative;
}

.channel-table tbody tr:hover {
  background: #e3e8ef;
}

.channel-table tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--signal);
}

.cell-code {
  font-family: var(--font-mono);
  color: var(--signal);
  font-weight: 700;
}

.cell-name {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* --- 首页专题卡 --- */

.collection-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.collection-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.collection-cover {
  margin: 0;
  overflow: hidden;
  background: var(--panel);
}

.collection-cover img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.collection-card:hover .collection-cover img {
  transform: scale(1.02);
}

.collection-body {
  padding: 18px 20px 20px;
}

.collection-name {
  font-size: 17px;
  color: var(--ink);
}

.collection-clue {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text);
}

.collection-structure {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-soft);
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

/* --- 首页字段摘要与收录边界 --- */

.brief-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.field-brief,
.scope-brief {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}

.brief-subtitle {
  font-size: 16px;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.field-list {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px 14px;
  font-size: 14px;
}

.field-list dt {
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

.field-list dd {
  color: var(--text-soft);
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.scope-list li {
  padding-left: 16px;
  position: relative;
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--signal);
}

.brief-more {
  margin-top: 16px;
  font-size: 14px;
}

.brief-more a {
  color: var(--signal);
  font-weight: 700;
}

.brief-more a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- 首页整理记录速览 --- */

.record-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.record-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.month-label {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.record-list {
  display: flex;
  flex-direction: column;
}

.record-item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.record-item:last-child {
  border-bottom: 0;
}

.record-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal);
  min-width: 84px;
}

.record-target {
  font-weight: 700;
  color: var(--ink);
  min-width: 120px;
}

.record-note {
  flex: 1 1 240px;
  color: var(--text-soft);
}

/* --- 首页站内页面索引 --- */

.index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.index-cell {
  min-width: 0;
}

.index-cell a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
}

.index-cell a:hover {
  border-top-color: var(--signal);
}

.index-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.index-desc {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   4. pages — 内页：题材频道
   -------------------------------------------------------------------------- */

.basis-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.basis-item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.basis-name {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.basis-item p {
  font-size: 14px;
  color: var(--text-soft);
}

.channel-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.channel-item:first-of-type {
  border-top: 1px solid var(--line);
}

.channel-thumb {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.channel-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.channel-info {
  min-width: 0;
}

.channel-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.channel-name {
  margin-top: 6px;
  font-size: 19px;
  color: var(--ink);
}

.channel-desc {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text);
  max-width: 62ch;
}

.channel-meta {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px 14px;
  font-size: 14px;
}

.channel-meta dt {
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

.channel-meta dd {
  color: var(--text-soft);
}

.adjacent-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.adjacent-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.adjacent-title {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.adjacent-item p {
  font-size: 14px;
  color: var(--text-soft);
}

.channel-map-table {
  min-width: 640px;
}

.section-channel-map {
  overflow-x: auto;
}

/* --------------------------------------------------------------------------
   4. pages — 内页：专题片单
   -------------------------------------------------------------------------- */

.clue-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.clue-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.clue-name {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.clue-desc {
  font-size: 14px;
  color: var(--text-soft);
}

.collection-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.collection-item:first-of-type {
  border-top: 1px solid var(--line);
}

.collection-item .collection-cover {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.collection-item .collection-cover img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.collection-item:hover .collection-cover img {
  transform: scale(1.02);
}

.collection-info {
  min-width: 0;
}

.collection-info .collection-name {
  font-size: 19px;
}

.collection-info .collection-clue {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text);
  max-width: 62ch;
}

.collection-formation,
.collection-order {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.collection-formation {
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.mapping-table {
  min-width: 600px;
}

.mapping-caption {
  text-align: left;
  font-size: 14px;
  color: var(--text-soft);
  padding-bottom: 10px;
}

.section-mapping {
  overflow-x: auto;
}

.cover-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.cover-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.cover-name {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.cover-desc {
  font-size: 14px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   4. pages — 内页：浏览指引
   -------------------------------------------------------------------------- */

.guide-prep,
.guide-verify,
.guide-lookup,
.guide-exclude,
.related-entry {
  margin-bottom: 44px;
}

.guide-prep h2,
.guide-verify h2,
.guide-lookup h2,
.guide-exclude h2,
.related-entry h2 {
  font-size: 24px;
  color: var(--ink);
  padding-left: 12px;
  border-left: 4px solid var(--signal);
}

.guide-prep > p,
.guide-verify > p,
.guide-lookup > p,
.guide-exclude > p,
.related-entry > p {
  margin-top: 10px;
  max-width: 68ch;
  font-size: 15px;
  color: var(--text-soft);
}

.prep-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.prep-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.prep-item h3 {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.prep-item p {
  font-size: 14px;
  color: var(--text-soft);
}

.guide-figure {
  margin: 20px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.guide-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-soft);
  background: #fff;
}

.verify-steps {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: verify;
}

.verify-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 18px 68px;
  position: relative;
  min-width: 0;
}

.verify-step .step-index {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
}

.verify-step h3 {
  font-size: 16px;
  color: var(--ink);
}

.verify-step .step-owner {
  margin-top: 6px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--signal);
}

.verify-step > p:last-child {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
  max-width: 66ch;
}

.lookup-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.lookup-item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--mist);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.lookup-item h3 {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.lookup-item p {
  font-size: 14px;
  color: var(--text-soft);
}

.lookup-item a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.exclude-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.exclude-item {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--signal);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.exclude-item h3 {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.exclude-item p {
  font-size: 14px;
  color: var(--text-soft);
}

.scope-note {
  margin-top: 22px;
  background: var(--panel);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.scope-note h3 {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.scope-note p {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 68ch;
}

.scope-note a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   4. pages — 内页：字段说明
   -------------------------------------------------------------------------- */

.field-visual,
.field-list-section,
.field-diff-section,
.field-uncertainty-section,
.scope-section,
.related-section {
  margin-bottom: 44px;
}

.field-figure {
  margin: 20px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.field-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.field-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-soft);
  background: #fff;
}

.field-visual-list {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.field-visual-item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
}

.field-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-top: 20px;
}

.field-table {
  min-width: 680px;
}

.field-table caption {
  text-align: left;
}

.field-diff-columns {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.objective-field,
.editorial-field {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  min-width: 0;
}

.objective-field {
  border-top: 3px solid var(--ink);
}

.editorial-field {
  border-top: 3px solid var(--signal);
}

.subsection-title {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 10px;
}

.objective-field > p,
.editorial-field > p {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 60ch;
}

.field-diff-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.field-diff-list li {
  padding-left: 16px;
  position: relative;
}

.field-diff-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--mist);
}

.uncertainty-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.uncertainty-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.uncertainty-name {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.uncertainty-item p {
  font-size: 14px;
  color: var(--text-soft);
}

.scope-section .scope-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.scope-section .scope-item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.scope-name {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.scope-item p {
  font-size: 14px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   4. pages — 内页：整理记录
   -------------------------------------------------------------------------- */

.section-records-intro,
.section-records-timeline,
.section-record-fields,
.section-record-scope {
  margin-bottom: 44px;
}

.rule-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.rule-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.rule-name {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.rule-text {
  font-size: 14px;
  color: var(--text-soft);
}

.month-group {
  border-top: 1px solid var(--line);
}

.month-group:last-child {
  border-bottom: 1px solid var(--line);
}

.month-group .month-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0 14px;
  border-bottom: 0;
  cursor: pointer;
}

.month-group .month-label:hover .month-name {
  color: var(--signal);
}

.month-group .month-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--signal);
  line-height: 1.1;
}

.month-group .month-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.month-group .record-list {
  padding-bottom: 8px;
}

.month-group .record-list[hidden] {
  display: none;
}

.month-group .record-row {
  display: grid;
  grid-template-columns: 96px 180px minmax(0, 1fr);
  gap: 6px 18px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.month-group .record-row:last-child {
  border-bottom: 0;
}

.month-group .record-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal);
}

.month-group .record-target {
  font-weight: 700;
  color: var(--ink);
}

.month-group .record-desc {
  color: var(--text-soft);
  min-width: 0;
}

.field-change-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.field-change-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr) 110px;
  gap: 6px 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.field-change-row:last-child {
  border-bottom: 0;
}

.field-change-row:nth-child(even) {
  background: var(--panel);
}

.field-change-name {
  font-weight: 700;
  color: var(--ink);
}

.field-change-before,
.field-change-after {
  color: var(--text-soft);
  min-width: 0;
}

.field-change-month {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal);
}

.scope-columns {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.scope-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  min-width: 0;
}

.scope-col-included {
  border-top: 3px solid var(--ink);
}

.scope-col-excluded {
  border-top: 3px solid var(--signal);
}

.scope-col-title {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 14px;
}

.scope-col .scope-list {
  gap: 8px;
}

.record-figure {
  margin: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.record-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.record-figure-caption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-soft);
  background: #fff;
}

/* --------------------------------------------------------------------------
   4. pages — 404
   -------------------------------------------------------------------------- */

.site-error .error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px 24px 48px;
}

.error-block {
  max-width: 720px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--signal);
}

.error-block h1 {
  margin-top: 16px;
  font-size: 32px;
  color: var(--ink);
}

.error-lead {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text);
  max-width: 60ch;
}

.error-tip {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-soft);
  max-width: 60ch;
}

.error-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-actions .action-btn {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.error-actions .action-btn:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}

.error-note {
  margin-top: 26px;
  font-size: 14px;
  color: var(--text-soft);
  padding-left: 14px;
  border-left: 3px solid var(--mist);
}

/* --------------------------------------------------------------------------
   5. responsive — 900px / 600px
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 20px;
    min-height: 56px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    flex: 1 1 100%;
    order: 4;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav-link.is-current {
    border-bottom-color: var(--signal);
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .action-btn {
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-title {
    font-size: 32px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
    padding: 40px 20px 8px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 18px 20px 28px;
  }

  .inner-main {
    padding: 0 20px 56px;
  }

  .section-inner {
    padding: 0 20px;
  }

  .page-title {
    font-size: 30px;
  }

  .collection-cards,
  .brief-columns,
  .field-diff-columns,
  .scope-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-item,
  .collection-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .channel-thumb img,
  .collection-item .collection-cover img {
    height: 200px;
  }

  .month-group .record-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .month-group .record-desc {
    grid-column: 1 / -1;
  }

  .field-change-row {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .field-change-before,
  .field-change-after,
  .field-change-month {
    grid-column: 2;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .top-clue-text {
    padding: 0 16px;
    font-size: 12px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .brand {
    font-size: 16px;
  }

  .header-actions .action-btn:nth-child(n + 3) {
    display: none;
  }

  .hero-section {
    padding: 28px 0 32px;
  }

  .hero-inner {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 26px;
    max-width: none;
  }

  .hero-figure img {
    height: 180px;
  }

  .strip-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-inner {
    padding: 0 16px;
  }

  .section-title,
  .guide-prep h2,
  .guide-verify h2,
  .guide-lookup h2,
  .guide-exclude h2,
  .related-entry h2 {
    font-size: 21px;
  }

  .channels-section,
  .collections-section,
  .brief-section,
  .records-section,
  .index-section {
    padding: 32px 0;
  }

  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .inner-main {
    padding: 0 16px 48px;
  }

  .page-header {
    padding: 14px 0 22px;
    margin-bottom: 28px;
  }

  .page-title {
    font-size: 26px;
  }

  .field-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px 0;
  }

  .field-list dd {
    margin-bottom: 8px;
  }

  .channel-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px 0;
  }

  .channel-meta dd {
    margin-bottom: 8px;
  }

  .channel-thumb img,
  .collection-item .collection-cover img,
  .guide-figure img,
  .field-figure img,
  .record-figure img {
    height: 170px;
  }

  .verify-step {
    padding: 16px 16px 16px 60px;
  }

  .verify-step .step-index {
    left: 14px;
    top: 16px;
    width: 32px;
    height: 32px;
  }

  .month-group .month-num {
    font-size: 22px;
  }

  .month-group .record-row,
  .field-change-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .month-group .record-desc,
  .field-change-before,
  .field-change-after,
  .field-change-month {
    grid-column: 1;
  }

  .field-change-row {
    padding: 14px 16px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 16px 8px;
  }

  .footer-bottom {
    padding: 16px 16px 24px;
  }

  .error-code {
    font-size: 52px;
  }

  .error-block h1 {
    font-size: 24px;
  }

  .error-actions .action-btn {
    flex: 1 1 auto;
  }
}

/* --------------------------------------------------------------------------
   6. print — 打印版简化
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .top-clue-bar,
  .nav-toggle,
  .print-btn,
  .header-actions,
  .breadcrumb,
  .related-entry,
  .related-section,
  .section-related {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .inner-main,
  .section-inner,
  .hero-inner {
    max-width: none;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}
