/* ==========================================================================
   光棍影院111 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base — 变量、重置、排版基调
   -------------------------------------------------------------------------- */
:root {
  --ink: #12161c;
  --ink-soft: #5a6472;
  --paper: #f7f5f1;
  --surface: #ffffff;
  --accent: #1f6f5c;
  --accent-soft: #e6efeb;
  --rule: #c9d1cd;
  --rule-soft: #e3e6e3;
  --stamp: #8a6d3b;
  --stamp-soft: #f2ece0;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  --wrap: 1120px;
  --wrap-narrow: 860px;
  --radius: 6px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body.site-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption,
table,
caption,
thead,
tbody,
tr,
th,
td {
  margin: 0;
  padding: 0;
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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;
  border-radius: 3px;
}

time {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   2. layout — 骨架：页头、导航、主容器、页脚
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-mark {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

.brand-sub {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  padding-left: 10px;
  border-left: 1px solid var(--rule);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-icon {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle-icon::before {
  top: -5px;
}

.nav-toggle-icon::after {
  top: 5px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 10px 14px;
  font-size: 0.9375rem;
  color: var(--ink);
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.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);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.home-main {
  padding-bottom: 64px;
}

/* 页脚 */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(140px, 1fr));
  gap: 28px 24px;
}

.footer-brand {
  max-width: 320px;
}

.footer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.footer-desc {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--rule-soft);
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px 28px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule-soft);
}

/* --------------------------------------------------------------------------
   3. components — 全站通用组件
   -------------------------------------------------------------------------- */

/* 通用区块头 */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 0;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 22px;
}

.section-title {
  font-size: 1.375rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.section-desc {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.section-intro {
  max-width: 62ch;
  margin: 10px 0 20px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.section-note {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--rule);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 内页标题区 */
.page-header {
  max-width: 62ch;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.page-description {
  font-size: 0.8125rem;
  color: var(--stamp);
  margin-bottom: 8px;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
}

.page-lead {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #185844;
  border-color: #185844;
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--rule);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* 字段标签 */
.tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 0.75rem;
  line-height: 1.6;
  border-radius: 4px;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  background: var(--paper);
}

.tag-channel,
.tag-field {
  background: var(--accent-soft);
  border-color: #bcd4cb;
  color: #1a5a4b;
}

.tag-edit {
  background: var(--stamp-soft);
  border-color: #ddcfae;
  color: var(--stamp);
}

.tag-obj,
.tag-add,
.tag-collection {
  background: #eef1f3;
  border-color: var(--rule);
  color: var(--ink-soft);
}

/* 图片容器统一约束 */
.hero-media img,
.channel-media img,
.collection-media img,
.channel-figure img,
.guide-figure img,
.page-figure img,
.records-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--rule-soft);
}

figcaption {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* 通用条目列表（能力边界 / 使用限制） */
.boundary-list,
.limit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.boundary-item,
.limit-item {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--ink);
}

.limit-title {
  font-size: 1rem;
  margin-bottom: 6px;
}

.limit-item p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* 表格通用 */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

caption {
  text-align: left;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  padding-bottom: 10px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}

thead th {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

tbody th {
  font-weight: 700;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   4. pages — 首页
   -------------------------------------------------------------------------- */
.site-note {
  background: var(--ink);
  color: #e8e6e1;
  font-size: 0.8125rem;
  text-align: center;
  padding: 8px 24px;
}

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 52px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: 44px;
  align-items: center;
}

.hero-text {
  max-width: 38em;
}

.hero-kicker {
  font-size: 0.8125rem;
  color: var(--stamp);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
}

.hero-lead {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 38em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--rule-soft);
}

.hero-media img {
  aspect-ratio: 4 / 3;
}

.hero-media figcaption {
  padding: 10px 14px;
  margin: 0;
  background: var(--surface);
  border-top: 1px solid var(--rule-soft);
}

/* 首页 · 站点定位三栏 */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.about-col {
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.about-subtitle {
  font-size: 1rem;
  margin-bottom: 8px;
}

.about-col p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* 首页 · 题材频道方向索引 */
.channel-index {
  border-top: 1px solid var(--rule);
}

.channel-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--rule-soft);
}

.channel-no {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--stamp);
  padding-top: 3px;
}

.channel-name {
  font-size: 1rem;
  margin-bottom: 6px;
}

.channel-desc {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.channel-range {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

.channel-media {
  margin-top: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--rule-soft);
}

.channel-media img {
  aspect-ratio: 21 / 9;
}

.channel-media figcaption {
  padding: 10px 14px;
  margin: 0;
  background: var(--surface);
  border-top: 1px solid var(--rule-soft);
}

/* 首页 · 专题片单入口 */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.collection-card {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}

.collection-card:hover {
  border-color: var(--accent);
}

.collection-media {
  background: var(--rule-soft);
}

.collection-media img {
  aspect-ratio: 16 / 9;
}

.collection-name {
  font-size: 1rem;
  margin: 16px 18px 6px;
}

.collection-desc,
.collection-theme {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin: 0 18px;
}

.collection-meta {
  margin: 12px 18px 18px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.collection-meta dt {
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

.collection-meta dd {
  color: var(--ink);
  margin-right: 6px;
}

/* 首页 · 字段口径与整理记录摘要 */
.brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
}

.brief-col {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.brief-subtitle {
  font-size: 1rem;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
}

.field-brief {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 16px;
  font-size: 0.9375rem;
}

.field-brief dt {
  font-family: var(--font-mono);
  color: var(--accent);
  white-space: nowrap;
}

.field-brief dd {
  color: var(--ink-soft);
}

.brief-lead {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.record-brief {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-brief li {
  padding-left: 14px;
  border-left: 2px solid var(--stamp);
  font-size: 0.9375rem;
  color: var(--ink);
}

.record-brief time {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--stamp);
  margin-bottom: 2px;
}

.brief-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* 首页 · 站内栏目索引 */
.nav-index-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.nav-index-item a {
  display: block;
  height: 100%;
  padding: 16px 14px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.nav-index-item a:hover,
.nav-index-item a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.nav-index-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.nav-index-desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. pages — 内页：题材频道
   -------------------------------------------------------------------------- */
.channels-index {
  margin-bottom: 44px;
}

.channels-index h2,
.scope-boundary h2,
.channel-collection h2,
.section-collection-grid h2,
.section-collection-status h2,
.section-collection-logic h2,
.guide-visual h2,
.guide-steps h2,
.guide-confirm h2,
.guide-boundary h2,
.guide-faq h2,
.section-field-defs h2,
.section-field-scope h2,
.section-field-limits h2,
.section-related h2,
.records-monthly h2,
.records-types h2,
.records-scope h2 {
  font-size: 1.375rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.channel-rows {
  margin-top: 20px;
  border-top: 1px solid var(--rule-soft);
}

.channel-rows .channel-row {
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
}

.channel-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  background: var(--rule-soft);
}

.channel-figure img {
  aspect-ratio: 3 / 2;
}

.channel-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--stamp);
  margin-bottom: 6px;
}

.channel-scope {
  margin-top: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  font-size: 0.8125rem;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}

.channel-scope dt {
  font-family: var(--font-mono);
  color: var(--ink-soft);
  white-space: nowrap;
}

.channel-scope dd {
  color: var(--ink);
}

/* 覆盖范围与边界对照 */
.scope-boundary {
  margin-bottom: 44px;
}

.scope-boundary-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.scope-column {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.scope-column h3 {
  font-size: 1rem;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
}

.scope-column-in h3 {
  color: var(--accent);
}

.scope-column-out h3 {
  color: var(--stamp);
}

.scope-list,
.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.scope-list li {
  padding-left: 16px;
  position: relative;
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.scope-column-out .boundary-list li {
  padding-left: 16px;
  position: relative;
}

.scope-column-out .boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stamp);
}

.scope-footnote {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* 频道与片单对应关系 */
.channel-collection {
  margin-bottom: 12px;
}

.relation-rows {
  margin-top: 20px;
  border-top: 1px solid var(--rule);
}

.relation-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.9375rem;
}

.relation-code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--stamp);
}

.relation-channel {
  font-weight: 700;
  color: var(--ink);
}

.relation-collection {
  color: var(--ink-soft);
}

.relation-note {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   6. pages — 内页：专题片单
   -------------------------------------------------------------------------- */
.section-collection-grid {
  padding-top: 0;
  margin-bottom: 44px;
}

.section-collection-status,
.section-collection-logic {
  margin-bottom: 44px;
}

.collection-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.status-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  background: var(--surface);
}

.status-table {
  min-width: 640px;
}

.status-caption {
  padding: 14px 16px 0;
}

.status-tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--rule);
  white-space: nowrap;
}

.status-done {
  background: var(--accent-soft);
  border-color: #bcd4cb;
  color: #1a5a4b;
}

.status-part {
  background: var(--stamp-soft);
  border-color: #ddcfae;
  color: var(--stamp);
}

.status-pending {
  background: #eef1f3;
  border-color: var(--rule);
  color: var(--ink-soft);
}

.logic-body {
  margin-top: 20px;
  max-width: 70ch;
}

.logic-body > p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.logic-points {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.logic-points li {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.logic-tail {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   7. pages — 内页：浏览指引
   -------------------------------------------------------------------------- */
.guide-visual,
.guide-steps,
.guide-confirm,
.guide-boundary,
.guide-faq {
  margin-bottom: 44px;
}

.guide-figure {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  background: var(--rule-soft);
}

.guide-figure img {
  aspect-ratio: 21 / 9;
}

.guide-figure figcaption {
  padding: 10px 14px;
  margin: 0;
  background: var(--surface);
  border-top: 1px solid var(--rule-soft);
}

.step-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-item {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
}

.step-index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--stamp);
  margin-bottom: 8px;
}

.step-name {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.confirm-table {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.confirm-table caption {
  padding: 14px 16px 0;
}

.guide-boundary .boundary-list {
  margin-top: 20px;
}

/* FAQ */
.faq-list {
  margin-top: 20px;
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule-soft);
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 34px 16px 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 4px 18px;
  max-width: 68ch;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   8. pages — 内页：字段说明
   -------------------------------------------------------------------------- */
.page-figure {
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  background: var(--rule-soft);
}

.page-figure img {
  aspect-ratio: 21 / 9;
}

.page-figure figcaption {
  padding: 10px 14px;
  margin: 0;
  background: var(--surface);
  border-top: 1px solid var(--rule-soft);
}

.section-field-defs,
.section-field-scope,
.section-field-limits,
.section-related {
  padding-top: 0;
  margin-bottom: 44px;
}

.field-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-item {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.field-name {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--rule);
}

.field-meaning {
  font-size: 0.9375rem;
  color: var(--ink);
}

.field-example {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.field-table {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-caption {
  padding: 14px 16px 0;
}

.related-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.related-item a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.related-item a:hover,
.related-item a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.related-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.related-desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. pages — 内页：整理记录
   -------------------------------------------------------------------------- */
.records-figure {
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  background: var(--rule-soft);
}

.records-figure img {
  aspect-ratio: 21 / 9;
}

.records-figure figcaption {
  padding: 10px 14px;
  margin: 0;
  background: var(--surface);
  border-top: 1px solid var(--rule-soft);
}

.records-monthly,
.records-types,
.records-scope {
  margin-bottom: 44px;
}

.month-group {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid transparent;
}

.month-head::-webkit-details-marker {
  display: none;
}

.month-group[open] .month-head {
  border-bottom-color: var(--rule-soft);
}

.month-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding-left: 20px;
}

.month-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stamp);
}

.month-count {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.record-list {
  padding: 4px 18px 14px;
}

.record-item {
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule-soft);
}

.record-item:last-child {
  border-bottom: 0;
}

.record-item time {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--stamp);
  margin-bottom: 4px;
}

.record-text {
  font-size: 0.9375rem;
  color: var(--ink);
  max-width: 68ch;
}

.record-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.records-table {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.records-table caption {
  padding: 14px 16px 0;
}

.records-table time {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--stamp);
  white-space: nowrap;
}

.records-scope > p {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: 68ch;
}

.scope-points {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scope-points li {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--ink);
}

.scope-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   10. pages — 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.error-block {
  max-width: 46em;
  padding: 40px 0 0;
  border-top: 2px solid var(--ink);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--stamp);
  margin-bottom: 10px;
}

.error-title {
  font-size: 2rem;
  font-weight: 700;
}

.error-text {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 38em;
}

.error-links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.9375rem;
}

.error-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 28px;
  padding: 10px 22px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
}

.error-home:hover,
.error-home:focus-visible {
  background: #185844;
  border-color: #185844;
  color: #fff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   11. responsive — 1024px
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .nav-index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   12. responsive — 768px
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .header-inner {
    min-height: 60px;
    padding: 0 16px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
    padding-bottom: 10px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--rule-soft);
    padding-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--rule-soft);
    border-radius: 0;
    padding: 10px 6px;
  }

  .nav-list a.is-current {
    border-bottom-color: var(--rule-soft);
    border-left: 3px solid var(--accent);
    padding-left: 12px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 16px 40px;
  }

  .hero-title,
  .page-title,
  .error-title {
    font-size: 1.625rem;
  }

  .section {
    padding: 34px 16px 0;
  }

  .inner-main {
    padding: 22px 16px 52px;
  }

  .about-grid,
  .collection-grid,
  .brief-grid,
  .scope-boundary-grid,
  .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .brief-grid {
    gap: 20px;
  }

  .nav-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .channel-rows .channel-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-no {
    padding-top: 0;
  }

  .relation-row {
    grid-template-columns: 72px minmax(0, 1fr);
    row-gap: 4px;
  }

  .relation-collection {
    grid-column: 2 / 3;
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 32px 16px 20px;
  }

  .footer-copy {
    padding: 14px 16px 24px;
  }

  .error-main {
    padding: 44px 16px 64px;
  }

  .status-table,
  .confirm-table,
  .field-table,
  .records-table {
    min-width: 560px;
  }

  .status-table-wrap,
  .confirm-table,
  .field-table,
  .records-table {
    overflow-x: auto;
  }
}

/* --------------------------------------------------------------------------
   13. responsive — 480px
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  body.site-body {
    font-size: 15px;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .brand-sub {
    border-left: 0;
    padding-left: 0;
    font-size: 0.75rem;
  }

  .hero-title,
  .page-title,
  .error-title {
    font-size: 1.4375rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .nav-index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-brief,
  .channel-scope {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .field-brief dd,
  .channel-scope dd {
    margin-bottom: 8px;
  }

  .relation-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .relation-collection {
    grid-column: auto;
  }

  .scope-column,
  .field-item,
  .brief-col {
    padding: 16px 16px;
  }

  .record-list {
    padding: 4px 14px 12px;
  }

  .error-links {
    flex-direction: column;
    gap: 10px;
  }
}
