/* ==========================================================================
   午夜看片 chezhimou.com — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base — 变量、重置、排版基线
   -------------------------------------------------------------------------- */
:root {
  --paper: #f6f3ec;
  --card: #fffdf8;
  --ink: #23201b;
  --ink-soft: #4a453d;
  --brick: #9c3b2e;
  --line: #ddd6c8;
  --green: #3f6b4a;

  --serif: "Songti SC", "SimSun", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --wrap: 1120px;
  --radius: 6px;
  --radius-sm: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brick);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout — 页头、主导航、主容器、面包屑、页脚骨架
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

.brand-slogan {
  font-size: 12px;
  color: var(--ink-soft);
  font-family: var(--mono);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--brick);
  border-bottom-color: var(--brick);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.site-main {
  display: block;
}

.home-main,
.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.inner-main {
  padding-top: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-family: var(--mono);
  color: var(--ink-soft);
  padding: 4px 0 0;
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 18px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.page-description {
  max-width: 780px;
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.page-meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.footer-title {
  font-size: 14px;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: 0;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--brick);
}

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-copy,
.footer-note {
  margin: 0;
}

/* --------------------------------------------------------------------------
   components — 通用按钮、链接、表格、卡片、折叠、图片容器
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background: var(--brick);
  color: #fffaf4;
  border-color: var(--brick);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #85301f;
  border-color: #85301f;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--brick);
  color: var(--brick);
}

.text-link {
  font-size: 14px;
  color: var(--brick);
  border-bottom: 1px solid rgba(156, 59, 46, 0.35);
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: none;
  border-bottom-color: var(--brick);
}

.section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.section-desc,
.section-lead,
.section-intro {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 4px;
  max-width: 820px;
}

.section-foot {
  margin: 16px 0 0;
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table {
  min-width: 640px;
  font-size: 14px;
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: #f1ece0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr {
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.data-table tbody tr:hover {
  background: #f4efe4;
  box-shadow: inset 3px 0 0 var(--brick);
}

.cell-code,
.cell-field,
.cell-value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}

.cell-name {
  color: var(--ink);
  font-weight: 600;
}

.cell-name a {
  color: var(--ink);
}

.cell-name a:hover,
.cell-name a:focus-visible {
  color: var(--brick);
}

.collection-grid {
  display: grid;
  gap: 20px;
}

.collection-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.collection-card:hover {
  border-color: var(--brick);
  box-shadow: 0 2px 10px rgba(35, 32, 27, 0.06);
}

.collection-media,
.collection-cover {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #efe9dc;
}

.collection-media img,
.collection-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-body {
  padding: 16px 18px 18px;
}

.collection-code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brick);
  margin: 0 0 6px;
}

.collection-name {
  font-size: 18px;
  margin: 0 0 8px;
}

.collection-name a {
  color: var(--ink);
}

.collection-name a:hover,
.collection-name a:focus-visible {
  color: var(--brick);
}

.collection-desc,
.collection-scope,
.collection-channels,
.collection-tags {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

.collection-tags {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.collection-link {
  display: block;
  color: inherit;
}

.collection-link:hover,
.collection-link:focus-visible {
  text-decoration: none;
}

.split-columns,
.two-col,
.boundary-cols,
.system-cols,
.cross-grid,
.reason-columns,
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.split-col,
.col,
.boundary-col,
.system-col,
.cross-col,
.reason-column,
.intro-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.sub-title,
.col-title,
.boundary-col-title,
.system-col-title,
.cross-subtitle,
.reason-title,
.intro-subtitle {
  font-size: 17px;
  margin: 0 0 12px;
}

.field-list,
.boundary-list,
.reason-list {
  display: grid;
  gap: 10px;
}

.field-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
}

.field-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.field-name {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  min-width: 96px;
}

.field-note {
  font-size: 14px;
  color: var(--ink-soft);
  flex: 1 1 200px;
}

.boundary-list li,
.reason-list li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
}

.boundary-list li::before,
.reason-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--brick);
  border-radius: 1px;
}

.boundary-list strong {
  color: var(--ink);
  font-weight: 600;
}

.split-more {
  margin: 14px 0 0;
  font-size: 14px;
}

.record-months {
  display: grid;
  gap: 18px;
}

.record-month-title {
  font-size: 16px;
  font-family: var(--mono);
  color: var(--ink);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.record-list {
  display: grid;
  gap: 10px;
}

.record-item {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.record-item:last-child {
  border-bottom: 0;
}

.record-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brick);
  min-width: 88px;
}

.record-target {
  color: var(--ink);
  font-weight: 600;
  min-width: 120px;
}

.record-reason {
  color: var(--ink-soft);
  flex: 1 1 220px;
}

.step-list {
  display: grid;
  gap: 16px;
}

.step-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brick);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.step-index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brick);
  margin: 0 0 6px;
}

.step-name {
  font-size: 17px;
  margin: 0 0 8px;
}

.step-need,
.step-desc,
.step-check,
.step-link,
.step-entry {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

.step-link,
.step-entry {
  margin-bottom: 0;
}

.index-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.index-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.index-name {
  font-size: 16px;
  margin: 0 0 8px;
}

.index-name a {
  color: var(--ink);
}

.index-name a:hover,
.index-name a:focus-visible {
  color: var(--brick);
}

.index-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.media-figure,
.channel-figure,
.guide-figure,
.records-figure {
  margin: 20px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.media-figure img,
.channel-figure img,
.guide-figure img,
.records-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-figure figcaption,
.channel-figure figcaption,
.guide-figure figcaption,
.records-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  font-family: var(--mono);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.next-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.18s ease;
}

.next-card:hover {
  border-color: var(--brick);
}

.next-card-title {
  font-size: 16px;
  margin: 0 0 8px;
}

.next-card-title a {
  color: var(--ink);
}

.next-card-title a:hover,
.next-card-title a:focus-visible {
  color: var(--brick);
}

.next-card-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 18px;
}

.faq-question {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding: 16px 0;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "＋";
  float: right;
  font-family: var(--mono);
  color: var(--brick);
}

.faq-item[open] .faq-question::after {
  content: "－";
}

.faq-answer {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.checklist-table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.checklist-table thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  background: #f1ece0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.checklist-table tbody th {
  text-align: left;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.checklist-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.checklist-table tbody tr:last-child th,
.checklist-table tbody tr:last-child td {
  border-bottom: 0;
}

.overview-body {
  display: grid;
  gap: 10px;
  max-width: 860px;
  font-size: 15px;
}

.missing-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.missing-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.missing-title {
  font-size: 16px;
  margin: 0 0 8px;
}

.missing-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.related-list {
  display: grid;
  gap: 10px;
}

.related-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.related-link {
  color: var(--ink);
  font-weight: 600;
  min-width: 120px;
}

.related-link:hover,
.related-link:focus-visible {
  color: var(--brick);
}

.related-desc {
  color: var(--ink-soft);
  flex: 1 1 220px;
}

.records-reading-list {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  counter-reset: reading;
}

.records-reading-list li {
  padding-left: 16px;
  position: relative;
}

.records-reading-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--brick);
  border-radius: 1px;
}

.records-link-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.records-link-list li a {
  display: block;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
}

.records-link-list li a:hover,
.records-link-list li a:focus-visible {
  border-color: var(--brick);
  color: var(--brick);
  text-decoration: none;
}

.record-month-summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  list-style: none;
}

.record-month-summary::-webkit-details-marker {
  display: none;
}

.record-month-summary::after {
  content: "＋";
  float: right;
  color: var(--brick);
}

.record-month[open] .record-month-summary::after {
  content: "－";
}

.section-records-timeline .record-list {
  padding: 14px 18px 4px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--card);
}

.section-records-timeline .record-month {
  margin-bottom: 14px;
}

.section-records-timeline .record-month[open] .record-month-summary {
  border-radius: var(--radius) var(--radius) 0 0;
}

.section-tail {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.section-foot a + a {
  margin-left: 16px;
}

/* 页脚上方任务带 —— 首页 */
.footer-taskbar {
  background: #efe9dc;
  border-top: 1px solid var(--line);
}

.taskbar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.taskbar-text {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

.taskbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

/* 页脚上方任务带 —— 内页（channels / collections） */
.footer-task {
  background: #efe9dc;
  border-top: 1px solid var(--line);
}

.footer-task-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-task-text {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

.footer-task-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.task-link {
  font-size: 14px;
  color: var(--brick);
  border-bottom: 1px solid rgba(156, 59, 46, 0.35);
}

.task-link:hover,
.task-link:focus-visible {
  text-decoration: none;
  border-bottom-color: var(--brick);
}

/* 页脚上方任务带 —— fields */
.footer-task-title {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 16px;
}

.footer-task-list {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 24px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

/* 页脚上方任务带 —— guide */
.task-band {
  background: #efe9dc;
  border-top: 1px solid var(--line);
  padding: 24px;
}

.task-band-title {
  max-width: var(--wrap);
  margin: 0 auto 8px;
  font-size: 18px;
}

.task-band-desc {
  max-width: var(--wrap);
  margin: 0 auto 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

.task-band-list {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.task-band-link {
  font-size: 14px;
  color: var(--brick);
  border-bottom: 1px solid rgba(156, 59, 46, 0.35);
}

.task-band-link:hover,
.task-band-link:focus-visible {
  text-decoration: none;
  border-bottom-color: var(--brick);
}

/* --------------------------------------------------------------------------
   pages — 首页与各内页专属模块
   -------------------------------------------------------------------------- */
/* 首页：顶部线索说明条 */
.clue-bar {
  background: var(--ink);
}

.clue-bar-text {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: #f0e9dc;
}

/* 首页：档案式定位区 */
.hero-archive {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brick);
  margin: 0 0 12px;
}

.hero-title {
  font-size: 32px;
  line-height: 1.35;
  margin: 0 0 14px;
}

.hero-desc {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 0 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 16px;
  font-size: 13px;
  font-family: var(--mono);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* 首页：频道总览表 */
.channels-table {
  min-width: 620px;
}

/* 首页：专题合辑入口两列 */
.section-collections .collection-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* 首页：整理记录速览按月分组 */
.section-records .record-month {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}

/* 首页：浏览前准备四步横排 */
.section-prepare .step-list {
  grid-template-columns: repeat(4, 1fr);
}

/* 内页 channels：频道编号体系 */
.section-channel-system .system-cols {
  margin-bottom: 4px;
}

/* 内页 channels：频道索引表 */
.channel-table {
  min-width: 780px;
}

/* 内页 channels：边界说明 */
.boundary-note,
.boundary-steps {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 12px 0 0;
}

/* 内页 collections：专题编号说明 */
.section-collection-intro .intro-grid {
  margin-bottom: 4px;
}

.section-collection-list .collection-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* 内页 guide：步骤纵向 */
.guide-steps {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.guide-checklist {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.guide-faq {
  padding: 34px 0;
}

/* 内页 fields：字段字典 */
.section-fields .data-table {
  min-width: 720px;
}

/* 内页 records：时间线 */
.records-figure {
  margin-top: 20px;
}

/* 404 */
.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.error-panel {
  max-width: 620px;
}

.error-code {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--brick);
  margin: 0 0 10px;
}

.error-panel h1 {
  font-size: 32px;
  line-height: 1.35;
  margin: 0 0 14px;
}

.error-text {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.error-hint-list {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.error-hint-list li a {
  color: var(--brick);
}

/* --------------------------------------------------------------------------
   responsive — 900px / 600px 断点
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }

  .nav-link.is-current {
    border-bottom-color: var(--line);
    border-left-color: var(--brick);
    padding-left: 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .hero-archive {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0 30px;
  }

  .hero-media img {
    aspect-ratio: 16 / 9;
  }

  .split-columns,
  .two-col,
  .boundary-cols,
  .system-cols,
  .cross-grid,
  .reason-columns,
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-collections .collection-grid,
  .section-collection-list .collection-grid,
  .next-grid,
  .records-link-list {
    grid-template-columns: 1fr;
  }

  .section-prepare .step-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .index-columns,
  .missing-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .header-inner,
  .home-main,
  .inner-main,
  .footer-inner,
  .footer-bottom,
  .taskbar-inner,
  .footer-task-inner,
  .footer-task-title,
  .footer-task-list,
  .clue-bar-text,
  .task-band,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title,
  .hero-title,
  .error-panel h1 {
    font-size: 26px;
  }

  .section-title {
    font-size: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-prepare .step-list,
  .index-columns,
  .missing-list {
    grid-template-columns: 1fr;
  }

  .record-item,
  .related-item {
    flex-direction: column;
    gap: 2px;
  }

  .record-target,
  .related-link,
  .field-name {
    min-width: 0;
  }

  .table-wrap {
    border-radius: var(--radius-sm);
  }

  .data-table {
    min-width: 560px;
  }

  .channels-table,
  .channel-table,
  .section-fields .data-table {
    min-width: 560px;
  }

  .hero-actions .btn,
  .error-actions .btn {
    flex: 1 1 160px;
  }

  .taskbar-inner,
  .footer-task-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
