/* =========================================================
   光棍手机影院 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================= */

/* ---------- base ---------- */

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #22252a;
  --ink-soft: #5c626b;
  --line: #dfe1e0;
  --line-strong: #c9ccca;
  --accent: #2f6f6a;
  --accent-soft: #eef3f2;
  --mark: #8a6d3b;
  --radius: 6px;
  --wrap: 1080px;
  --wrap-narrow: 720px;
  --gap: 24px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

th, td {
  text-align: left;
  vertical-align: top;
}

strong {
  font-weight: 600;
}

time {
  font-variant-numeric: tabular-nums;
}

/* 锚点跳转避开粘性页头 */
[id] {
  scroll-margin-top: 84px;
}

/* ---------- layout ---------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: var(--radius);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.inner-main {
  max-width: var(--wrap);
}

/* ---------- components ---------- */

/* 顶部线索说明条 */
.top-hint {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
}

.top-hint p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 9px 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #245a56;
  border-color: #245a56;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* 页面标题区 */
.page-header {
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
}

.page-description {
  max-width: var(--wrap-narrow);
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 首页 section 通用 */
.section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.section:first-child {
  border-top: 0;
  padding-top: 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 22px;
  line-height: 1.4;
}

.section-head p {
  max-width: var(--wrap-narrow);
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.section-more {
  margin-top: 18px;
  font-size: 15px;
}

.section-more a {
  font-weight: 600;
}

/* 内页 section */
.inner-main .section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.inner-main .section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.inner-main .section h2 {
  font-size: 22px;
  line-height: 1.4;
}

.section-intro,
.section-lead {
  max-width: var(--wrap-narrow);
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.section-intro + *,
.section-lead + * {
  margin-top: 20px;
}

/* 表格通用外观 */
.channel-table,
.pair-table,
.map-table,
.mapping-table,
.condition-table,
.field-table {
  font-size: 14px;
  line-height: 1.6;
}

.channel-table th,
.channel-table td,
.pair-table th,
.pair-table td,
.map-table th,
.map-table td,
.mapping-table th,
.mapping-table td,
.condition-table th,
.condition-table td,
.field-table th,
.field-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.channel-table thead th,
.pair-table thead th,
.map-table thead th,
.mapping-table thead th,
.condition-table thead th,
.field-table thead th {
  font-weight: 600;
  color: var(--ink);
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.channel-table tbody th,
.pair-table tbody th,
.map-table tbody th,
.mapping-table tbody th,
.condition-table tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 30%;
}

/* 字段完整度标注 */
.field-status {
  display: inline-block;
  padding: 1px 8px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  white-space: nowrap;
}

.field-status-full {
  color: var(--accent);
  border-color: #b7d2cf;
  background: var(--accent-soft);
}

.field-status-part {
  color: var(--mark);
  border-color: #ddcdb0;
  background: #f7f2e8;
}

.field-status-miss {
  color: var(--ink-soft);
  border-color: var(--line-strong);
  background: #f0f0ee;
}

/* 页脚 */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 34px 24px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.2fr;
  gap: 24px 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.footer-col {
  min-width: 0;
}

.footer-col h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col a {
  color: var(--ink-soft);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--accent);
}

.footer-col p + p {
  margin-top: 6px;
}

.footer-nav {
  min-width: 0;
}

.footer-boundary {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 6px 24px 26px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- pages ---------- */

/* 首页 · 首屏定位区 */
.home-main {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.hero-text {
  min-width: 0;
}

.hero-title {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 600;
}

.hero-lead {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}

.hero-note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* 首页 · 频道方向总览表 */
.channels-overview .channel-table {
  border-top: 1px solid var(--line-strong);
}

.channel-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 2fr) minmax(0, 1.4fr) 132px;
  gap: 16px;
  align-items: start;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.channel-row:first-child {
  border-top: 1px solid var(--line);
}

.channel-no {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.channel-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.channel-scene {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.channel-field {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mark);
}

/* 首页 · 专题片单入口 */
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.playlist-card {
  min-width: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.playlist-cover {
  margin-bottom: 12px;
}

.playlist-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.playlist-card h3 {
  font-size: 17px;
  line-height: 1.5;
}

.playlist-theme {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.playlist-count {
  margin-top: 6px;
  font-size: 14px;
  color: var(--mark);
}

/* 首页 · 浏览顺序四步 */
.browse-steps .step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: browse-step;
}

.browse-steps .step-item {
  min-width: 0;
  padding-top: 14px;
  border-top: 2px solid var(--accent);
}

.browse-steps .step-name {
  font-size: 17px;
  line-height: 1.5;
}

.browse-steps .step-cond {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 首页 · 字段口径与收录边界摘要 */
.fields-summary .fields-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 36px;
}

.fields-col {
  min-width: 0;
}

.fields-col h3 {
  font-size: 17px;
  line-height: 1.5;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
}

.field-brief {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-brief li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  font-size: 14px;
  line-height: 1.7;
}

.field-name {
  font-weight: 600;
  color: var(--accent);
}

.field-mean {
  color: var(--ink-soft);
}

.boundary-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.boundary-list li {
  padding-left: 14px;
  position: relative;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--line-strong);
  border-radius: 50%;
}

.boundary-list strong {
  color: var(--ink);
}

/* 首页 · 整理记录速览 */
.records-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.record-group {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
}

.record-group h3 {
  font-size: 16px;
  line-height: 1.5;
}

.record-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.record-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.record-list time {
  display: block;
  font-size: 13px;
  color: var(--mark);
}

/* 首页 · 站内栏目索引 */
.index-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.index-grid li {
  min-width: 0;
  padding: 14px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.index-grid a {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.index-grid span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* 频道分类页 */
.channel-table-wrap,
.pair-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.channel-table-wrap .channel-table,
.pair-table-wrap .pair-table {
  min-width: 640px;
  margin: 0;
}

.channel-table-wrap .channel-table th,
.channel-table-wrap .channel-table td,
.pair-table-wrap .pair-table th,
.pair-table-wrap .pair-table td {
  border-bottom: 1px solid var(--line);
}

.channel-table-wrap .channel-table tbody tr:last-child th,
.channel-table-wrap .channel-table tbody tr:last-child td,
.pair-table-wrap .pair-table tbody tr:last-child th,
.pair-table-wrap .pair-table tbody tr:last-child td {
  border-bottom: 0;
}

.channel-figure {
  margin-top: 22px;
}

.channel-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.advice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.advice-item {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
}

.advice-item h3 {
  font-size: 16px;
  line-height: 1.5;
}

.advice-item p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.field-note-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.field-note {
  min-width: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-note h3 {
  font-size: 16px;
  line-height: 1.5;
}

.field-note p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 专题片单页 */
.theme-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.theme-item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.theme-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.theme-media {
  min-width: 0;
}

.theme-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.theme-body {
  min-width: 0;
}

.theme-body h3 {
  font-size: 17px;
  line-height: 1.5;
}

.theme-body p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.theme-meta {
  font-size: 14px;
  color: var(--mark);
}

.sequence-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: seq;
}

.sequence-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.sequence-item:last-child {
  border-bottom: 0;
}

.sequence-no {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.sequence-body {
  min-width: 0;
}

.sequence-body h3 {
  font-size: 16px;
  line-height: 1.5;
}

.sequence-body p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.order-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.order-rule {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
}

.order-rule h3 {
  font-size: 16px;
  line-height: 1.5;
}

.order-rule p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.map-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.map-table tbody tr:last-child th,
.map-table tbody tr:last-child td {
  border-bottom: 0;
}

.map-foot {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 15px;
}

/* 浏览指引页 */
.guide-steps .step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: browse-step;
}

.guide-steps .step-item {
  min-width: 0;
  padding-top: 14px;
  counter-increment: browse-step;
  border-top: 2px solid var(--accent);
}

.guide-steps .step-index {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.guide-steps .step-name {
  font-size: 17px;
  line-height: 1.5;
}

.guide-steps .step-item p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.guide-figure {
  margin-top: 26px;
}

.guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-conditions .condition-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.guide-conditions .condition-table tbody tr:last-child th,
.guide-conditions .condition-table tbody tr:last-child td {
  border-bottom: 0;
}

.guide-faq .faq-item {
  border-bottom: 1px solid var(--line);
}

.guide-faq .faq-item summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.guide-faq .faq-item summary::-webkit-details-marker {
  display: none;
}

.guide-faq .faq-item summary::before {
  content: "＋";
  flex: 0 0 auto;
  margin-right: 10px;
  color: var(--accent);
  font-weight: 600;
}

.guide-faq .faq-item[open] summary::before {
  content: "－";
}

.guide-faq .faq-item summary:hover {
  color: var(--accent);
}

.guide-faq .faq-item p {
  max-width: var(--wrap-narrow);
  padding: 0 4px 16px 26px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.guide-return .return-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.return-item {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
}

.return-item h3 {
  font-size: 16px;
  line-height: 1.5;
}

.return-item p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.return-note {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 15px;
}

/* 字段口径页 */
.field-diagram .field-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-table-section .field-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.field-table-section .field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table-section .field-table tbody td:first-child {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.field-default .default-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 36px;
}

.default-col {
  min-width: 0;
}

.default-col h3 {
  font-size: 17px;
  line-height: 1.5;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
}

.range-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.range-list li {
  padding-left: 14px;
  position: relative;
}

.range-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--line-strong);
  border-radius: 50%;
}

.default-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.field-boundary .boundary-list {
  margin-top: 14px;
  gap: 12px;
  font-size: 15px;
}

.field-change .change-links {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}

/* 整理记录页 */
.record-figure {
  margin-bottom: 28px;
}

.record-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.record-months details.record-group {
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.record-months details.record-group summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.record-months details.record-group summary::-webkit-details-marker {
  display: none;
}

.record-months details.record-group summary::before {
  content: "＋";
  flex: 0 0 auto;
  margin-right: 10px;
  color: var(--accent);
  font-weight: 600;
}

.record-months details.record-group[open] summary::before {
  content: "－";
}

.record-months details.record-group summary:hover {
  color: var(--accent);
}

.record-months .record-list {
  margin: 0 0 18px;
  padding-left: 26px;
  border-left: 2px solid var(--line);
  gap: 16px;
}

.record-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.record-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.record-date {
  font-size: 13px;
  color: var(--mark);
  font-variant-numeric: tabular-nums;
}

.record-scope {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.record-note {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.record-mapping .mapping-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.record-mapping .mapping-table tbody tr:last-child td {
  border-bottom: 0;
}

.record-mapping .mapping-table tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
}

.record-usage p + p {
  margin-top: 10px;
}

.record-usage p {
  max-width: var(--wrap-narrow);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.record-usage-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.record-usage-list li {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 404 页 */
.error-main {
  max-width: var(--wrap);
}

.error-panel {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
}

.error-code {
  font-size: 15px;
  font-weight: 600;
  color: var(--mark);
  font-variant-numeric: tabular-nums;
}

.error-panel h1 {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.35;
}

.error-lead {
  max-width: var(--wrap-narrow);
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.error-hint {
  padding: 30px 0 0;
}

.error-hint h2 {
  font-size: 22px;
  line-height: 1.4;
}

.error-hint p {
  max-width: var(--wrap-narrow);
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.error-links {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.error-links li {
  min-width: 0;
  padding: 14px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-links a {
  display: block;
  min-height: 24px;
  font-size: 15px;
  font-weight: 600;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --gap: 20px;
  }

  .header-inner {
    padding: 10px 16px;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .brand {
    font-size: 17px;
  }

  .site-nav {
    flex: 0 0 auto;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 40;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .nav-list li:last-child a {
    border-bottom: 0;
  }

  .site-main {
    padding: 24px 16px 44px;
  }

  .top-hint p {
    padding: 8px 16px;
  }

  .page-title,
  .hero-title,
  .error-panel h1 {
    font-size: 24px;
    line-height: 1.4;
  }

  .section-head h2,
  .inner-main .section h2,
  .error-hint h2 {
    font-size: 20px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 28px;
  }

  .channel-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 6px 14px;
  }

  .channel-scene,
  .channel-field {
    grid-column: 2;
  }

  .playlist-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .browse-steps .step-list,
  .guide-steps .step-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .fields-summary .fields-columns,
  .field-default .default-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .records-groups,
  .advice-list,
  .field-note-list,
  .order-rules,
  .guide-return .return-list,
  .record-usage-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .error-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 26px 16px 16px;
  }

  .footer-boundary,
  .footer-copy {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 10px 14px;
  }

  .site-main {
    padding: 20px 14px 40px;
  }

  .top-hint p {
    padding: 8px 14px;
  }

  .page-title,
  .hero-title,
  .error-panel h1 {
    font-size: 22px;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .channel-scene,
  .channel-field {
    grid-column: 1;
  }

  .field-brief li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .sequence-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .index-grid,
  .error-links,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions,
  .error-actions,
  .map-foot,
  .return-note {
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .guide-faq .faq-item p {
    padding-left: 22px;
  }
}
