/* ==========================================================================
   光棍手机电影 · 全站样式表
   视觉方向：农业产地风 —— 深叶绿 + 成熟麦黄 + 浅米色纸感底
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --leaf: #2F5D34;
  --leaf-deep: #24482A;
  --wheat: #C9A227;
  --paper: #F6F3EA;
  --card: #FFFFFF;
  --ink: #22301F;
  --muted: #6B7A66;
  --line: #DCD7C6;
  --line-soft: #E9E4D5;
  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1120px;
  --body-col: 760px;
  --shadow: 0 1px 2px rgba(34, 48, 31, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", "Songti SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

h1 { font-size: 32px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--leaf);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--leaf-deep);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--wheat);
  outline-offset: 2px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  text-align: left;
  vertical-align: top;
}

time,
.cell-num,
.timeline-date,
.adjust-date,
.step-index,
.step-number {
  font-variant-numeric: tabular-nums;
}

/* 跳转正文链接 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: 10px 16px;
  background: var(--leaf);
  color: #fff;
  border-radius: 0 0 var(--radius) 0;
  font-size: 15px;
}

.skip-link:focus {
  left: 0;
  color: #fff;
  text-decoration: none;
}

/* ==========================================================================
   layout —— 全站骨架
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 页头 */
.site-header {
  background: var(--leaf);
  border-bottom: 3px solid var(--wheat);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 12px 0;
  white-space: nowrap;
}

.brand:hover,
.brand:focus {
  color: #fff;
  text-decoration: none;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  background: var(--wheat);
  border-radius: 2px;
  vertical-align: 1px;
}

/* 导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.nav-list > li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 10px 12px;
  color: #EAF0E4;
  font-size: 15px;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.nav-list a.is-current {
  color: #fff;
  font-weight: 600;
  border-bottom-color: var(--wheat);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 9px 14px;
  min-height: 44px;
  font: inherit;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus {
  background: rgba(255, 255, 255, 0.2);
}

/* 主内容 */
.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  display: block;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 56px;
}

/* 页脚 */
.site-footer {
  background: var(--leaf-deep);
  color: #D8E1D2;
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 28px 24px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}

.footer-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #B9C8B2;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  color: var(--wheat);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-list {
  margin: 0;
}

.footer-list li {
  margin: 0 0 6px;
}

.footer-list a {
  color: #D8E1D2;
  font-size: 14px;
  line-height: 1.6;
}

.footer-list a:hover,
.footer-list a:focus {
  color: #fff;
}

.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: #9FB098;
}

/* ==========================================================================
   components —— 通用模块
   ========================================================================== */

/* 面包屑 */
.breadcrumb {
  padding: 18px 0 4px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--leaf);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: #A9B3A1;
}

.breadcrumb-current {
  color: var(--muted);
}

/* 页面标题区 */
.page-header {
  padding: 10px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: var(--body-col);
}

.page-description {
  max-width: var(--body-col);
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

/* 通用 section */
.section {
  margin-bottom: 48px;
}

.section-head {
  margin-bottom: 20px;
}

.section-title,
.section > h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--leaf);
  margin: 0 0 8px;
  padding-left: 12px;
  border-left: 4px solid var(--wheat);
  line-height: 1.35;
}

.section-desc,
.section-intro,
.section-lead {
  max-width: var(--body-col);
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.section-foot,
.section-tail,
.mapping-note,
.adjust-note,
.feedback-link-line {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.section-note {
  max-width: var(--body-col);
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.source-note {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: var(--card);
  border-left: 3px solid var(--wheat);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 22px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--leaf);
  color: #fff;
  border-color: var(--leaf);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--leaf-deep);
  border-color: var(--leaf-deep);
  color: #fff;
  text-decoration: none;
}

.btn-plain {
  background: transparent;
  color: var(--leaf);
  border-color: var(--leaf);
}

.btn-plain:hover,
.btn-plain:focus {
  background: rgba(47, 93, 52, 0.08);
  color: var(--leaf-deep);
  text-decoration: none;
}

/* 表格通用 */
.table-scroll {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px 0;
  font-size: 13px;
  color: var(--muted);
}

.channel-table,
.field-table,
.data-table {
  min-width: 640px;
  font-size: 15px;
}

.channel-table th,
.channel-table td,
.field-table th,
.field-table td,
.data-table th,
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.65;
}

.channel-table thead th,
.field-table thead th,
.data-table thead th {
  background: #EFEBDC;
  color: var(--leaf);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.channel-table tbody tr:last-child th,
.channel-table tbody tr:last-child td,
.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.channel-table tbody tr:hover,
.field-table tbody tr:hover,
.data-table tbody tr:hover {
  background: #FAF8F1;
}

.channel-table tbody th,
.data-table tbody th,
.field-table tbody th {
  color: var(--ink);
  font-weight: 600;
}

.cell-num {
  color: var(--wheat);
  font-weight: 600;
  white-space: nowrap;
}

/* 图片容器通用约束 */
.hero-media,
.card-media,
.media-figure,
.collection-cover,
.field-figure,
.step-figure,
.record-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #E7E2D2;
}

.hero-media img,
.card-media img,
.media-figure img,
.collection-cover img,
.field-figure img,
.step-figure img,
.record-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

figcaption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* 相关入口通用列表 */
.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.related-list li {
  margin: 0;
}

.related-list a {
  display: block;
  padding: 10px 16px;
  min-height: 44px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--leaf);
  line-height: 1.5;
}

.related-list a:hover,
.related-list a:focus {
  background: #EFEBDC;
  border-color: var(--leaf);
  text-decoration: none;
}

/* ==========================================================================
   pages —— 首页
   ========================================================================== */

/* 顶部事实说明条 */
.fact-bar {
  margin: 0;
  padding: 10px 20px;
  background: #EFEBDC;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

/* 首屏 */
.hero {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 20px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "copy media"
    "panels panels";
  gap: 28px 36px;
  align-items: start;
}

.hero-copy {
  grid-area: copy;
  min-width: 0;
}

.hero-title {
  font-size: 34px;
  font-weight: 600;
  color: var(--leaf);
  margin: 0 0 14px;
  line-height: 1.28;
  max-width: 22em;
}

.hero-lead {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.8;
  margin: 0 0 14px;
  max-width: 34em;
}

.hero-order {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 22px;
  padding: 12px 14px;
  background: var(--paper);
  border-left: 3px solid var(--wheat);
  border-radius: var(--radius-sm);
  max-width: 34em;
}

.hero-media {
  grid-area: media;
  min-width: 0;
}

.hero-media img {
  aspect-ratio: 4 / 3;
}

.hero-media figcaption {
  padding: 10px 2px 0;
}

/* 首屏双入口面板 */
.hero-panels {
  grid-area: panels;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.hero-panel {
  min-width: 0;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--leaf);
  border-radius: var(--radius);
}

.panel-title {
  font-size: 19px;
  color: var(--leaf);
  margin: 0 0 8px;
}

.panel-desc {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.75;
}

.panel-list {
  margin: 0 0 14px;
}

.panel-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.7;
}

.panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--wheat);
  border-radius: 1px;
}

.panel-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 0;
  min-height: 44px;
  line-height: 1.75;
  border-bottom: 2px solid var(--wheat);
}

.panel-link:hover,
.panel-link:focus {
  text-decoration: none;
  color: var(--leaf-deep);
}

/* 首页各区段容器 */
.home-main .section {
  max-width: var(--wrap);
  margin: 0 auto 48px;
  padding: 0 20px;
}

.home-main .hero + .section {
  margin-top: 48px;
}

/* 片单卡片（首页两卡） */
.collection-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-media {
  border-radius: 0;
}

.card-media img {
  aspect-ratio: 16 / 9;
}

.collection-card > h3,
.collection-card > p,
.collection-card > a {
  margin-left: 20px;
  margin-right: 20px;
}

.card-title {
  font-size: 18px;
  color: var(--leaf);
  margin-top: 18px;
  margin-bottom: 8px;
}

.card-topic {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 8px;
}

.card-meta {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.card-link {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 8px 0;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.75;
  border-bottom: 2px solid var(--wheat);
}

.card-link:hover,
.card-link:focus {
  text-decoration: none;
  color: var(--leaf-deep);
}

/* 四步流程条 */
.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  counter-reset: step;
}

.step-item {
  position: relative;
  min-width: 0;
  padding: 20px 18px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-item::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--wheat);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.step-name {
  font-size: 17px;
  color: var(--leaf);
  margin: 0 0 10px;
}

.step-check,
.step-done {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 6px;
  color: var(--ink);
}

.step-done {
  color: var(--muted);
  margin-bottom: 0;
}

/* 字段与边界两栏 */
.fields-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.fields-col {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 6px;
  box-shadow: var(--shadow);
}

.col-title {
  font-size: 17px;
  color: var(--leaf);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.fields-col .field-table {
  min-width: 0;
  font-size: 14px;
}

.fields-col .field-table th,
.fields-col .field-table td {
  padding: 10px 8px;
}

.fields-col .field-table thead th {
  background: transparent;
  border-bottom: 2px solid var(--line);
  padding-left: 0;
  padding-right: 8px;
}

.fields-col .field-table tbody th,
.fields-col .field-table tbody td {
  padding-left: 0;
}

.boundary-block {
  margin-bottom: 16px;
}

.boundary-sub {
  font-size: 15px;
  color: var(--leaf);
  margin: 0 0 8px;
}

.boundary-list {
  margin: 0;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--wheat);
  border-radius: 1px;
}

/* 整理记录速览 */
.record-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.record-group {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.group-title {
  font-size: 16px;
  color: var(--leaf);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.record-list {
  margin: 0;
}

.record-item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  line-height: 1.7;
}

.record-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.record-item time {
  display: inline-block;
  color: var(--wheat);
  font-weight: 600;
  margin-right: 8px;
}

.record-scope {
  display: inline-block;
  padding: 1px 8px;
  margin-right: 8px;
  background: #EFEBDC;
  border-radius: 10px;
  font-size: 13px;
  color: var(--leaf);
}

.record-text {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

/* 站内栏目索引 */
.index-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.index-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 92px;
  padding: 16px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--wheat);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  color: var(--leaf);
  line-height: 1.5;
  box-shadow: var(--shadow);
}

.index-item:hover,
.index-item:focus {
  background: #EFEBDC;
  text-decoration: none;
  color: var(--leaf-deep);
}

.index-note {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   pages —— 题材频道
   ========================================================================== */

.section-channels-table .data-table {
  min-width: 720px;
}

.section-channel-pairing .media-figure {
  margin-bottom: 22px;
  border: 1px solid var(--line);
}

.section-channel-pairing .media-figure img {
  aspect-ratio: 16 / 7;
}

.section-channel-pairing .media-figure figcaption {
  padding: 10px 16px 12px;
  background: var(--card);
}

.pairing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.pairing-col {
  min-width: 0;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pairing-col h3 {
  font-size: 17px;
  color: var(--leaf);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.pairing-list {
  margin: 0;
}

.pairing-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.75;
}

.pairing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--wheat);
  border-radius: 1px;
}

/* 按场景选频道 */
.scene-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.scene-item {
  min-width: 0;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--leaf);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.scene-item h3 {
  font-size: 16px;
  color: var(--leaf);
  margin: 0 0 10px;
}

.scene-fields {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.scene-fields dt {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.scene-fields dd {
  margin: 2px 0 0;
  color: var(--ink);
}

/* 频道字段速查 */
.section-channel-fields .field-table {
  min-width: 560px;
}

.section-related .related-nav {
  margin-top: 4px;
}

/* ==========================================================================
   pages —— 专题片单
   ========================================================================== */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.collection-grid .collection-card {
  box-shadow: var(--shadow);
}

.collection-cover {
  border-radius: 0;
}

.collection-cover img {
  aspect-ratio: 16 / 9;
}

.collection-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  padding: 18px 20px 20px;
}

.collection-name {
  font-size: 18px;
  color: var(--leaf);
  margin: 0 0 8px;
}

.collection-theme {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.75;
  margin: 0 0 8px;
}

.collection-meta {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

.collection-link {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 0;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.75;
  border-bottom: 2px solid var(--wheat);
}

.collection-link:hover,
.collection-link:focus {
  text-decoration: none;
  color: var(--leaf-deep);
}

/* 片单浏览顺序 */
.order-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  counter-reset: order;
}

.order-step {
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.order-step .step-index {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 10px;
  background: var(--leaf);
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.order-step .step-name {
  font-size: 16px;
  color: var(--leaf);
  margin: 0 0 8px;
}

.order-step .step-check {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* 片单与频道对应 */
.mapping-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.mapping-col {
  min-width: 0;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mapping-heading {
  font-size: 17px;
  color: var(--leaf);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.mapping-list {
  margin: 0;
}

.mapping-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.75;
}

.mapping-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--wheat);
  border-radius: 1px;
}

/* 片单调整记录 */
.adjust-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.adjust-group {
  min-width: 0;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.adjust-heading {
  font-size: 16px;
  color: var(--leaf);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.adjust-list {
  margin: 0;
}

.adjust-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.adjust-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.adjust-date {
  display: inline-block;
  color: var(--wheat);
  font-weight: 600;
  margin-right: 8px;
}

/* ==========================================================================
   pages —— 浏览指引
   ========================================================================== */

.guide-steps .step-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: none;
}

.guide-steps .step-item {
  padding-top: 18px;
}

.guide-steps .step-item::before {
  content: none;
}

.guide-steps .step-index {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  background: var(--leaf);
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.guide-steps .step-name {
  font-size: 16px;
  color: var(--leaf);
  margin: 0 0 8px;
}

.guide-steps .step-check {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  margin: 0 0 6px;
}

.guide-steps .step-done {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.step-figure {
  margin-top: 22px;
  border: 1px solid var(--line);
}

.step-figure img {
  aspect-ratio: 16 / 7;
}

.step-figure figcaption {
  padding: 10px 16px 12px;
  background: var(--card);
}

/* 准备事项清单 */
.prepare-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.prepare-item {
  min-width: 0;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--wheat);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prepare-name {
  font-size: 16px;
  color: var(--leaf);
  margin: 0 0 6px;
}

.prepare-reason {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* 常见卡点表 */
.issue-table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.issue-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #EFEBDC;
}

.issue-head .issue-col {
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--leaf);
  line-height: 1.6;
}

.issue-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
}

.issue-symptom,
.issue-fix {
  margin: 0;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.75;
}

.issue-symptom {
  color: var(--ink);
  border-right: 1px solid var(--line-soft);
}

.issue-fix {
  color: var(--muted);
}

/* 指引与实际内容对应 */
.guide-mapping > p {
  max-width: var(--body-col);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.guide-note {
  padding: 12px 16px;
  background: var(--card);
  border-left: 3px solid var(--wheat);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--muted);
}

/* ==========================================================================
   pages —— 字段说明
   ========================================================================== */

.field-figure {
  margin: 0 0 32px;
  border: 1px solid var(--line);
}

.field-figure img {
  aspect-ratio: 16 / 6;
}

.field-figure figcaption {
  padding: 10px 16px 12px;
  background: var(--card);
}

.field-table-section .field-table {
  min-width: 620px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.field-table-section .field-table caption {
  padding: 12px 16px 0;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
}

/* 收录边界 */
.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.boundary-col {
  min-width: 0;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.boundary-in {
  border-top: 3px solid var(--leaf);
}

.boundary-out {
  border-top: 3px solid var(--wheat);
}

.subsection-title {
  font-size: 17px;
  color: var(--leaf);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.boundary-out .subsection-title {
  color: #8A6A12;
}

/* FAQ */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--leaf);
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "＋";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wheat);
  font-size: 16px;
  font-weight: 600;
}

.faq-item[open] .faq-question::after {
  content: "－";
}

.faq-question:hover {
  background: #FAF8F1;
}

.faq-answer {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.field-update-section .section-note {
  padding: 12px 16px;
  background: var(--card);
  border-left: 3px solid var(--wheat);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* ==========================================================================
   pages —— 整理记录
   ========================================================================== */

.record-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.record-type-item {
  min-width: 0;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--wheat);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.record-type-name {
  font-size: 17px;
  color: var(--leaf);
  margin: 0 0 8px;
}

.record-type-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* 时间线 */
.record-figure {
  margin: 0 0 26px;
  border: 1px solid var(--line);
}

.record-figure img {
  aspect-ratio: 16 / 6;
}

.record-figure-caption {
  padding: 10px 16px 12px;
  background: var(--card);
}

.timeline-group {
  margin-bottom: 26px;
  padding-left: 22px;
  border-left: 2px solid var(--line);
}

.timeline-stage {
  font-size: 17px;
  color: var(--leaf);
  margin: 0 0 14px;
  position: relative;
}

.timeline-stage::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--wheat);
  border: 2px solid var(--paper);
  border-radius: 50%;
}

.timeline-list {
  margin: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 130px minmax(0, 1fr);
  gap: 6px 16px;
  align-items: baseline;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline-date {
  color: var(--wheat);
  font-weight: 600;
  font-size: 14px;
}

.timeline-scope {
  display: inline-block;
  padding: 1px 8px;
  background: #EFEBDC;
  border-radius: 10px;
  font-size: 13px;
  color: var(--leaf);
  justify-self: start;
}

.timeline-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

/* 记录与字段对应 */
.record-map-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.record-map-col {
  min-width: 0;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.record-map-heading {
  font-size: 17px;
  color: var(--leaf);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.record-map-list {
  margin: 0;
}

.record-map-item {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
  line-height: 1.7;
}

.record-map-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* 反馈说明 */
.feedback-body {
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--leaf);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feedback-text {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.feedback-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.feedback-link-line {
  margin-top: 16px;
}

/* ==========================================================================
   pages —— 404
   ========================================================================== */

.error-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 20px 72px;
}

.error-block {
  width: 100%;
  max-width: 720px;
  padding: 32px 34px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--wheat);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.error-code {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--wheat);
  font-variant-numeric: tabular-nums;
}

.error-block h1 {
  font-size: 30px;
  color: var(--leaf);
  margin: 0 0 12px;
}

.error-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 46em;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.error-links {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.error-links h2 {
  font-size: 17px;
  color: var(--leaf);
  margin: 0 0 12px;
}

.error-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.error-list a {
  display: block;
  padding: 10px 16px;
  min-height: 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.5;
}

.error-list a:hover,
.error-list a:focus {
  background: #EFEBDC;
  text-decoration: none;
}

.error-note {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .header-inner {
    gap: 16px;
  }

  .nav-list a {
    padding: 10px 9px;
    font-size: 14px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "media"
      "panels";
    padding: 32px 20px 36px;
  }

  .hero-title {
    font-size: 30px;
  }

  .step-list,
  .guide-steps .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  h1 { font-size: 24px; }
  h2 { font-size: 19px; }
  h3 { font-size: 17px; }

  .header-inner {
    padding: 0 16px;
    min-height: 56px;
    flex-wrap: wrap;
    gap: 0;
  }

  .brand {
    font-size: 17px;
    padding: 10px 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 4px;
    min-height: 44px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
  }

  .nav-list a.is-current {
    border-bottom-color: var(--wheat);
  }

  .fact-bar {
    font-size: 13px;
    text-align: left;
    padding: 10px 16px;
  }

  .hero-inner {
    padding: 24px 16px 28px;
    gap: 22px;
  }

  .hero-title {
    font-size: 24px;
    max-width: none;
  }

  .hero-lead,
  .hero-order {
    max-width: none;
  }

  .hero-panels {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .hero-panel {
    padding: 18px;
  }

  .home-main .section {
    margin: 0 auto 36px;
    padding: 0 16px;
  }

  .home-main .hero + .section {
    margin-top: 36px;
  }

  .section {
    margin-bottom: 36px;
  }

  .inner-main {
    padding: 0 16px 44px;
  }

  .breadcrumb {
    padding: 14px 0 2px;
    font-size: 13px;
  }

  .page-header {
    padding: 8px 0 20px;
    margin-bottom: 26px;
  }

  .page-title {
    font-size: 24px;
    max-width: none;
  }

  .page-description {
    max-width: none;
    font-size: 15px;
  }

  .section-title,
  .section > h2 {
    font-size: 19px;
  }

  .section-desc,
  .section-intro,
  .section-lead {
    max-width: none;
  }

  .collection-cards,
  .collection-grid,
  .fields-columns,
  .pairing-grid,
  .scene-list,
  .mapping-columns,
  .boundary-columns,
  .record-map-columns,
  .prepare-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-groups,
  .adjust-groups,
  .record-type-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-list,
  .guide-steps .step-list,
  .order-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-item {
    min-height: 84px;
    padding: 14px 12px;
    font-size: 15px;
  }

  .collection-card > h3,
  .collection-card > p,
  .collection-card > a {
    margin-left: 16px;
    margin-right: 16px;
  }

  .collection-body {
    padding: 16px 16px 18px;
  }

  .issue-symptom {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .timeline-scope {
    justify-self: start;
  }

  .timeline-group {
    padding-left: 16px;
  }

  .timeline-stage::before {
    left: -23px;
  }

  .error-main {
    padding: 36px 16px 52px;
  }

  .error-block {
    padding: 24px 20px 22px;
  }

  .error-block h1 {
    font-size: 23px;
  }

  .error-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 16px 22px;
    gap: 22px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-copy {
    padding: 14px 16px 22px;
  }

  .related-list {
    gap: 8px;
  }

  .related-list a {
    padding: 10px 14px;
    font-size: 14px;
  }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
