/* ==========================================================================
   九九在线播放 · 全站样式表
   结构：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base：变量、重置、排版基础
   -------------------------------------------------------------------------- */

:root {
  --brown: #8a5a3b;
  --green: #2f4a3f;
  --cream: #f7f3ec;
  --card: #fffdf9;
  --ink: #33302c;
  --line: #e0d6c8;
  --foot: #24211d;
  --ink-soft: #6b635a;
  --radius: 6px;
  --wrap: 1120px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--brown);
}

img {
  max-width: 100%;
  display: block;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brown);
  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;
}

/* 编号系统：等宽数字，统一用于频道、专题、记录编号 */
.num-badge,
.num-tag,
.channel-code,
.section-num,
.record-date,
.record-tag,
.hero-question .num-badge {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   layout：顶栏、页头、导航、主容器、面包屑、页标题、页脚
   -------------------------------------------------------------------------- */

/* 顶部信息条 */
.top-bar {
  background-color: var(--green);
  color: #f2ece2;
  font-size: 13px;
}

.top-bar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}

.top-bar-text {
  margin: 0;
  line-height: 1.5;
}

.top-bar-link {
  color: #f2ece2;
  border-bottom: 1px solid rgba(242, 236, 226, 0.5);
  padding-bottom: 1px;
  white-space: nowrap;
}

.top-bar-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* 页头与主导航 */
.site-header {
  background-color: var(--card);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  min-height: 44px;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--brown);
  border-left: 3px solid var(--brown);
  padding-left: 10px;
}

.brand-sub {
  font-size: 12px;
  color: var(--ink-soft);
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--green);
  border-bottom-color: var(--line);
}

.nav-link.is-current {
  color: var(--green);
  font-weight: 600;
  border-bottom-color: var(--green);
}

/* 移动端菜单按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
}

/* 主内容区 */
.site-main {
  display: block;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.home-main {
  padding-top: 0;
}

.inner-main {
  padding-top: 20px;
}

/* 面包屑：内页统一 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 6px 0 14px;
}

.breadcrumb a {
  color: var(--green);
}

.breadcrumb a:hover {
  color: var(--brown);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

/* 内页标题区：全站统一 */
.page-header {
  padding: 4px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.page-description {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.page-intro,
.page-lead {
  font-size: 16px;
  color: var(--ink);
  max-width: 780px;
}

/* 页脚 */
.site-footer {
  background-color: var(--foot);
  color: #d8d2c8;
  font-size: 14px;
}

.site-footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 26px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
  gap: 32px 48px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 600;
  color: #f4efe6;
  margin-bottom: 8px;
}

.footer-brand-text {
  color: #b3aca1;
  line-height: 1.7;
  max-width: 340px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: #f4efe6;
  margin-bottom: 10px;
}

.footer-list li {
  margin-bottom: 6px;
}

.footer-list a {
  color: #c6bfb4;
  display: inline-block;
  padding: 3px 0;
}

.footer-list a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #3a352e;
}

.footer-copyright {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 13px;
  color: #9a938a;
}

/* --------------------------------------------------------------------------
   components：通用区块、编号、按钮、表格、卡片、时间线
   -------------------------------------------------------------------------- */

.section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: 20px;
}

.section-head-main {
  max-width: 720px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.section-num {
  display: inline-block;
  font-size: 13px;
  color: var(--brown);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1px 8px;
  margin-bottom: 8px;
}

.section-desc,
.section-intro,
.section-lead,
.section-text {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 8px;
  max-width: 780px;
}

.section-more {
  font-size: 14px;
  color: var(--green);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  white-space: nowrap;
}

.section-more:hover {
  color: var(--brown);
  border-bottom-color: var(--brown);
}

.section-body {
  max-width: 820px;
}

.section-body p {
  margin-bottom: 12px;
}

.section-body p:last-child {
  margin-bottom: 0;
}

/* 编号标签：首页模块与专题卡共用 */
.num-badge {
  display: inline-block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--brown);
  background-color: #f2e9de;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1px 7px;
}

.num-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--brown);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1px 7px;
  margin-right: 8px;
  vertical-align: 2px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 15px;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background-color: var(--brown);
  color: #fffdf9;
  border-color: var(--brown);
}

.btn-primary:hover {
  background-color: #744a2f;
  border-color: #744a2f;
  color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-ghost:hover {
  background-color: var(--green);
  color: #f7f3ec;
}

/* 数据表格 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.table-caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 0 0 8px;
}

.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.data-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background-color: #f1eadf;
  white-space: nowrap;
}

.data-table tbody th {
  font-weight: 600;
  color: var(--ink);
  min-width: 140px;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.channel-row:hover th,
.channel-row:hover td {
  background-color: #faf5ec;
}

.channel-name {
  display: table-cell;
}

.channel-code {
  display: inline-block;
  font-size: 12px;
  color: var(--brown);
  margin-right: 8px;
}

/* 通用卡片容器 */
.collection-card,
.next-step-card,
.prepare-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.collection-card:hover,
.next-step-card:hover,
.prepare-card:hover {
  border-color: #c9b9a3;
  transform: translateY(-2px);
}

/* 图片容器：统一宽高约束 */
.hero-figure,
.collection-figure,
.collection-media,
.section-figure,
.guide-figure,
.record-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: #efe7db;
}

.hero-figure img,
.collection-figure img,
.collection-media img,
.section-figure img,
.guide-figure img,
.record-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption,
.guide-figure-caption,
.section-figure figcaption,
.record-figure figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 8px 12px;
  margin: 0;
  border-top: 1px solid var(--line);
  background-color: var(--card);
}

/* --------------------------------------------------------------------------
   pages：首页
   -------------------------------------------------------------------------- */

/* 首屏整理台 */
.hero {
  padding: 36px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px 44px;
  align-items: start;
}

.hero-lead {
  min-width: 0;
}

.hero-kicker {
  font-size: 13px;
  color: var(--brown);
  border-left: 3px solid var(--brown);
  padding-left: 10px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.hero-text {
  font-size: 16px;
  color: var(--ink);
  max-width: 560px;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-figure {
  aspect-ratio: 16 / 9;
}

.hero-questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-question {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.hero-question .num-badge {
  flex: 0 0 auto;
  margin-top: 3px;
}

.hero-question-body {
  min-width: 0;
}

.hero-question-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.hero-question-body p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* 首页频道总览 */
.section-channels .table-wrap {
  border-radius: var(--radius);
}

/* 首页专题卡 */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.collection-grid .collection-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.collection-grid .collection-figure {
  aspect-ratio: 3 / 2;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.collection-grid .collection-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.collection-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.collection-scope {
  font-size: 14px;
  color: var(--ink);
}

.collection-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: auto;
}

/* 首页观看指引摘要 */
.guide-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.guide-col {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-width: 0;
}

.guide-col-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.guide-list li:last-child {
  margin-bottom: 0;
}

.guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  background-color: var(--brown);
  border-radius: 50%;
}

/* 首页整理记录速览 */
.record-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.record-group {
  min-width: 0;
}

.record-month {
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.record-item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 14px;
  padding: 10px 12px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.record-date {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--brown);
}

.record-target {
  color: var(--ink);
  font-weight: 600;
}

.record-reason {
  color: var(--ink-soft);
  flex: 1 1 100%;
}

/* 首页站内页面索引 */
.page-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.page-index-col {
  border-top: 2px solid var(--brown);
  background-color: var(--card);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 14px 16px;
  min-width: 0;
}

.page-index-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.page-index-title a {
  color: var(--ink);
}

.page-index-title a:hover {
  color: var(--brown);
}

.page-index-col p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages：频道分类
   -------------------------------------------------------------------------- */

.section-rationale .section-figure {
  margin-top: 18px;
  aspect-ratio: 21 / 9;
}

.section-channel-table .data-table {
  margin-top: 4px;
}

.channel-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.channel-map-col {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-width: 0;
}

.channel-map-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 10px;
}

.channel-map-list {
  display: flex;
  flex-direction: column;
}

.channel-map-item {
  font-size: 14px;
  color: var(--ink);
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.channel-map-item:last-child {
  border-bottom: 0;
}

.next-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.next-step-card {
  padding: 16px 18px;
  min-width: 0;
}

.next-step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.next-step-card p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages：专题片单
   -------------------------------------------------------------------------- */

.section-intro .section-body p {
  font-size: 15px;
}

.section-collections .collection-card {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  margin-bottom: 20px;
}

.section-collections .collection-card:last-child {
  margin-bottom: 0;
}

.section-collections .collection-media {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  aspect-ratio: 4 / 3;
  height: 100%;
}

.section-collections .collection-body {
  padding: 18px 20px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.collection-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.collection-field {
  min-width: 0;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 4px;
}

.collection-field p {
  font-size: 14px;
  color: var(--ink-soft);
}

.crossref-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.crossref-col {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-width: 0;
}

.crossref-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 10px;
}

.crossref-item {
  font-size: 14px;
  color: var(--ink);
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.crossref-item:last-child {
  border-bottom: 0;
}

.crossref-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

/* --------------------------------------------------------------------------
   pages：观看指引
   -------------------------------------------------------------------------- */

.section-fields .guide-figure {
  aspect-ratio: 21 / 9;
  margin-bottom: 20px;
}

.field-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--card);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.field-row:last-child {
  border-bottom: 0;
}

.field-row-head {
  background-color: #f1eadf;
}

.field-name {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  border-right: 1px solid var(--line);
  min-width: 0;
}

details.field-row > summary.field-name {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 34px;
}

details.field-row > summary.field-name::-webkit-details-marker {
  display: none;
}

details.field-row > summary.field-name::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 12px;
  font-family: var(--font-mono);
  color: var(--brown);
}

details.field-row[open] > summary.field-name::after {
  content: "–";
}

details.field-row[open] > summary.field-name {
  color: var(--brown);
  background-color: #faf5ec;
}

.field-desc {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  min-width: 0;
}

.field-desc p {
  margin-bottom: 6px;
}

.field-desc p:last-child {
  margin-bottom: 0;
}

.field-note {
  font-size: 13px;
  color: var(--brown);
}

.prepare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.prepare-card {
  padding: 16px 18px;
  min-width: 0;
}

.prepare-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.prepare-list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.prepare-list li:last-child {
  margin-bottom: 0;
}

.prepare-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  background-color: var(--green);
  border-radius: 50%;
}

.boundary-block {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brown);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 24px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--brown);
  border-radius: 1px;
}

.boundary-more {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

/* --------------------------------------------------------------------------
   pages：整理记录
   -------------------------------------------------------------------------- */

.record-intro {
  padding: 0 0 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.record-intro-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 28px 36px;
  align-items: start;
  margin-top: 16px;
}

.record-intro-body p {
  font-size: 15px;
  margin-bottom: 12px;
}

.record-intro-body p:last-child {
  margin-bottom: 0;
}

.record-figure {
  aspect-ratio: 4 / 3;
}

.record-timeline {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.record-month {
  margin-bottom: 26px;
}

.record-month-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--green);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.record-timeline .record-item {
  display: grid;
  grid-template-columns: minmax(72px, 96px) minmax(0, 1fr);
  gap: 4px 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  align-items: start;
}

.record-timeline .record-item:last-child {
  margin-bottom: 0;
}

.record-tag {
  font-size: 13px;
  color: var(--brown);
  padding-top: 2px;
}

.record-body {
  min-width: 0;
}

.record-body p {
  font-size: 14px;
  margin-bottom: 4px;
}

.record-body p:last-child {
  margin-bottom: 0;
}

.record-body .record-target {
  font-weight: 600;
  color: var(--ink);
}

.record-body .record-reason {
  color: var(--ink-soft);
}

.record-body .record-scope {
  font-size: 13px;
  color: var(--brown);
}

.record-summary {
  padding-top: 34px;
}

.summary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 18px;
}

.summary-col {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-width: 0;
}

.summary-col-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 10px;
}

.summary-item {
  font-size: 14px;
  color: var(--ink);
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.summary-item:last-child {
  border-bottom: 0;
}

.summary-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

/* --------------------------------------------------------------------------
   pages：404
   -------------------------------------------------------------------------- */

.error-main {
  padding-top: 40px;
}

.error-panel {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brown);
  border-radius: var(--radius);
  padding: 28px 26px;
  max-width: 760px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brown);
  margin-bottom: 10px;
}

.error-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
}

.error-text {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.error-reason-list {
  margin-bottom: 22px;
}

.error-reason-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
}

.error-reason-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--brown);
  border-radius: 1px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-guide {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  max-width: 760px;
}

.error-link-list {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.error-link-list a {
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.error-link-list a:hover {
  border-bottom-color: var(--brown);
}

/* --------------------------------------------------------------------------
   responsive：900px 与 600px 断点
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .site-header-inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 6px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    justify-content: flex-start;
    border-bottom: 1px solid var(--line);
    padding: 0 4px;
  }

  .nav-link.is-current {
    border-bottom-color: var(--line);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-title {
    font-size: 28px;
  }

  .page-title {
    font-size: 28px;
  }

  .site-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .footer-brand-text {
    max-width: none;
  }

  .section-collections .collection-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-collections .collection-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .record-intro-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-figure {
    max-width: 520px;
  }

  .section-rationale .section-figure,
  .section-fields .guide-figure {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 600px) {
  .top-bar-inner {
    padding: 8px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .site-header-inner {
    padding: 10px 16px;
  }

  .site-main {
    padding: 0 16px 44px;
  }

  .site-footer-inner {
    padding: 32px 16px 22px;
  }

  .footer-copyright {
    padding: 14px 16px;
  }

  .hero {
    padding: 26px 0 32px;
  }

  .hero-title,
  .page-title,
  .error-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .section {
    padding: 26px 0;
  }

  .hero-actions .btn,
  .error-actions .btn {
    flex: 1 1 180px;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .channel-map-grid,
  .crossref-grid,
  .summary-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 表格在窄屏改为条目式列表 */
  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table {
    border: 0;
    background-color: transparent;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody tr {
    background-color: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 6px 4px;
  }

  .data-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .data-table tbody th,
  .data-table tbody td {
    border-bottom: 0;
    padding: 6px 12px;
  }

  .data-table tbody th {
    font-size: 15px;
    border-bottom: 1px dashed var(--line);
    margin-bottom: 4px;
  }

  .data-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: var(--brown);
  }

  /* 字段说明表改为条目式 */
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-name {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .field-row-head {
    display: none;
  }

  .record-timeline .record-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .record-tag {
    padding-top: 0;
  }

  .boundary-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .page-index-col {
    padding: 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
