/* ==========================================================================
   光棍影院2020 · hzhykt.com
   base → layout → components → pages → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base：变量、重置、排版、通用工具类
   -------------------------------------------------------------------------- */

:root {
  --bg: #F7F7F5;
  --bg-raised: #FFFFFF;
  --ink: #1C1C1A;
  --ink-soft: #55554F;
  --line: #D9D9D3;
  --line-soft: #E7E7E2;
  --accent: #1F5C4A;
  --accent-soft: #E8EFEB;
  --mark: #8A6A1F;
  --mark-soft: #F4EEDD;
  --radius: 6px;
  --shell: 1120px;
  --prose: 720px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: normal;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 92, 74, 0.28);
}

a:hover,
a:focus-visible {
  border-bottom-color: var(--accent);
}

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;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

dl,
dt,
dd {
  margin: 0;
}

figcaption {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   2. layout：全站骨架 —— body / header / nav / main / footer
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

/* 页头 ---------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 30;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
  border-bottom: 0;
}

.brand-mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 2px;
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--bg-raised);
}

.nav-toggle-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

.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;
}

.nav-toggle-text {
  font-size: 14px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 15px;
  border-bottom: 0;
  border-radius: var(--radius);
}

.nav-item > a:hover {
  background: var(--accent-soft);
}

.nav-item > a.is-current {
  color: var(--accent);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 8px;
  color: var(--ink-soft);
  font-size: 15px;
}

.dropdown-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  display: none;
  min-width: 216px;
  padding: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-item.has-dropdown:hover .nav-sub,
.nav-item.has-dropdown:focus-within .nav-sub,
.nav-sub.is-open {
  display: block;
}

.nav-sub li a {
  display: block;
  padding: 9px 10px;
  color: var(--ink);
  font-size: 14px;
  border-bottom: 0;
  border-radius: 4px;
}

.nav-sub li a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* 主内容区 ------------------------------------------------------------ */

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.home-main,
.inner-main,
.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.site-note {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
}

.site-note p {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 10px 24px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

/* 内页外壳 ------------------------------------------------------------ */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--ink-soft);
  border-bottom-color: rgba(85, 85, 79, 0.32);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 14px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
}

.page-description {
  max-width: var(--prose);
  margin-top: 12px;
  color: var(--ink-soft);
}

/* 页脚 ---------------------------------------------------------------- */

.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
}

.footer-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-text {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 14px;
  border-bottom: 0;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   3. components：区块外壳、按钮、表格、卡片、步骤、FAQ、状态标记
   -------------------------------------------------------------------------- */

.section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.section:first-child {
  border-top: 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 600;
}

.section-title,
.section-heading {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-desc,
.section-intro,
.section-note {
  max-width: var(--prose);
  color: var(--ink-soft);
  font-size: 15px;
}

.section-desc {
  margin-top: 8px;
}

.section-intro,
.section-note {
  margin-bottom: 20px;
}

.section-text {
  max-width: var(--prose);
  margin-bottom: 12px;
}

.section-action {
  margin-top: 14px;
}

.text-link {
  font-weight: 600;
}

/* 按钮 ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border-bottom-width: 1px;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #17493A;
  border-color: #17493A;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

/* 数据表格 ------------------------------------------------------------ */

.channel-table,
.data-table,
.sidebar-table {
  width: 100%;
  font-size: 15px;
}

.channel-table thead th,
.data-table thead th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.channel-table tbody td,
.data-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}

.channel-table tbody tr:hover,
.data-table tbody tr:hover {
  background: rgba(31, 92, 74, 0.045);
}

.cell-code,
.channel-code {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  white-space: nowrap;
}

.row-entry td {
  font-weight: 600;
}

.row-entry td a {
  border-bottom-color: transparent;
}

.row-entry td a:hover {
  border-bottom-color: var(--accent);
}

.table-caption {
  caption-side: top;
  padding: 0 0 10px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: left;
}

/* 状态标记 ------------------------------------------------------------ */

.status,
.status-tag,
.record-tag,
.timeline-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}

.status-ok,
.status-stable,
.status-active,
.status-added,
.record-tag-new,
.tag-add {
  background: var(--accent-soft);
  color: var(--accent);
}

.status-doing,
.status-review,
.status-adjusted,
.record-tag-adjust,
.tag-adjust {
  background: var(--mark-soft);
  color: var(--mark);
}

.status-paused,
.record-tag-fix,
.tag-fix {
  background: #EDEDE8;
  color: var(--ink-soft);
}

/* 专题片单卡片 -------------------------------------------------------- */

.collection-cards,
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.collection-media,
.collection-cover {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--line-soft);
  overflow: hidden;
}

.collection-media img,
.collection-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.collection-meta,
.collection-note,
.collection-status {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.collection-meta {
  margin-bottom: 6px;
}

.collection-note {
  margin-bottom: 10px;
}

.collection-body {
  padding: 18px 18px 20px;
}

.collection-desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  margin: 8px 0 12px;
}

.collection-body .collection-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
}

.collection-body .collection-meta dt {
  color: var(--ink-soft);
  font-size: 13px;
}

.collection-body .collection-meta dd {
  color: var(--ink);
  font-size: 14px;
}

.card-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

/* 步骤条 -------------------------------------------------------------- */

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.step-item {
  padding: 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-index {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}

.step-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-field,
.step-text,
.step-desc,
.step-next {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.step-field {
  margin-bottom: 8px;
}

.step-next {
  margin-top: 8px;
  color: var(--ink);
}

/* FAQ 展开收起 -------------------------------------------------------- */

.faq-item {
  border-bottom: 1px solid var(--line-soft);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "＋";
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 400;
}

.faq-item[open] .faq-question::before {
  content: "－";
}

.faq-answer {
  padding: 0 0 16px 26px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.faq-answer p + p {
  margin-top: 8px;
}

/* 字段速查（首页摘要 / 侧栏） ----------------------------------------- */

.field-brief {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 16px;
  font-size: 14px;
}

.field-brief dt {
  font-family: var(--mono);
  color: var(--accent);
  white-space: nowrap;
}

.field-brief dd {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   4. pages：首页
   -------------------------------------------------------------------------- */

/* 首屏 ---------------------------------------------------------------- */

.hero {
  padding: 48px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}

.hero-lead {
  max-width: 640px;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-text {
  color: var(--ink-soft);
  max-width: var(--prose);
  margin-bottom: 22px;
}

.hero-media {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-soft);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 14px;
  background: var(--bg-raised);
  border-top: 1px solid var(--line-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 首屏时间线 ---------------------------------------------------------- */

.hero-timeline {
  padding: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 9px;
  left: -21px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-date {
  display: inline-block;
  margin-right: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
}

.timeline-item p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.timeline-more {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}

/* 频道总览表 ---------------------------------------------------------- */

.section-channels .channel-table {
  margin-top: 6px;
}

/* 浏览顺序四步（首页） ------------------------------------------------ */

.section-steps .step-list {
  margin-top: 6px;
}

/* 字段与边界摘要 ------------------------------------------------------ */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.summary-col {
  min-width: 0;
}

.summary-heading {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.summary-more {
  margin-top: 14px;
  font-size: 14px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mark);
}

/* 整理记录速览 -------------------------------------------------------- */

.record-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.record-group {
  padding: 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.record-month {
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.record-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
}

.record-text {
  flex: 1 1 100%;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* 站内栏目索引 -------------------------------------------------------- */

.section-index {
  padding-bottom: 56px;
}

.index-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.index-item a {
  display: block;
  height: 100%;
  padding: 16px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-bottom-width: 1px;
}

.index-item a:hover {
  border-color: var(--accent);
}

.index-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.index-desc {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   5. pages：频道分类
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-sidebar,
.layout-aside {
  min-width: 0;
  padding: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sidebar-title,
.aside-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.sidebar-desc,
.aside-text {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.sidebar-table th,
.sidebar-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.sidebar-table th {
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 400;
  white-space: nowrap;
  padding-right: 12px;
}

.sidebar-table td {
  color: var(--ink-soft);
}

.sidebar-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.sidebar-links-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.sidebar-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link-list a {
  font-size: 14px;
}

.media-figure {
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-soft);
}

.media-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-caption {
  padding: 10px 14px;
  background: var(--bg-raised);
  border-top: 1px solid var(--line-soft);
}

.channel-row .channel-direction {
  font-weight: 600;
}

.channel-row .channel-scope {
  color: var(--ink-soft);
}

.channel-next {
  margin-top: 16px;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.status-item {
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.status-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.status-text {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.status-item .status-tag {
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   6. pages：专题片单
   -------------------------------------------------------------------------- */

.section-collection-cards .collection-grid {
  margin-top: 6px;
}

.division-columns,
.field-roles-grid,
.path-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.division-column,
.field-roles-col,
.path-col {
  min-width: 0;
}

.column-heading,
.subsection-title,
.path-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.division-column p,
.subsection-text,
.path-desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.division-column p + p {
  margin-top: 10px;
}

.path-points,
.field-roles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.path-points li,
.field-roles-list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.path-points li::before,
.field-roles-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-top: 16px;
}

.related-item a {
  display: block;
  padding: 12px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
}

.related-item a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   7. pages：浏览指引
   -------------------------------------------------------------------------- */

.guide-steps .section-title {
  margin-bottom: 8px;
}

.guide-figure {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-soft);
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 14px;
  background: var(--bg-raised);
  border-top: 1px solid var(--line-soft);
}

.guide-steps .step-list {
  margin-top: 4px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  counter-reset: check;
}

.check-item {
  position: relative;
  padding: 12px 14px 12px 44px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: check;
  font-size: 14px;
  line-height: 1.7;
}

.check-item::before {
  content: counter(check, decimal-leading-zero);
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.prep-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 16px;
}

.prep-item {
  padding: 16px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prep-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.prep-desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.guide-faq .faq-item:first-of-type {
  border-top: 1px solid var(--line-soft);
}

/* --------------------------------------------------------------------------
   8. pages：字段说明
   -------------------------------------------------------------------------- */

.fields-table th:nth-child(1),
.fields-table td:nth-child(1) {
  font-family: var(--mono);
  color: var(--accent);
  white-space: nowrap;
}

.fields-table td:nth-child(3) {
  color: var(--ink-soft);
}

.content-figure {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-soft);
}

.content-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.content-figure figcaption {
  padding: 10px 14px;
  background: var(--bg-raised);
  border-top: 1px solid var(--line-soft);
}

.field-read-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.field-read-item {
  position: relative;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.field-read-item::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.change-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.change-item {
  padding: 16px 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.change-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.change-text {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.aside-links a {
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   9. pages：整理记录
   -------------------------------------------------------------------------- */

.records-section .section-media {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-soft);
}

.section-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.section-media figcaption {
  padding: 10px 14px;
  background: var(--bg-raised);
  border-top: 1px solid var(--line-soft);
}

.records-section .record-group {
  margin-bottom: 20px;
}

.records-section .record-month {
  font-size: 17px;
}

.records-section .record-list {
  gap: 14px;
}

.records-section .record-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.records-section .record-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.records-section .record-text {
  flex: 1 1 320px;
  margin: 0;
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.scope-item {
  padding: 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.scope-text {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.category-card {
  padding: 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-top: 3px solid var(--mark);
  border-radius: var(--radius);
}

.category-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.category-text {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.category-section .section-note {
  margin-top: 18px;
  font-size: 14px;
}

.faq-section .faq-item:first-of-type {
  border-top: 1px solid var(--line-soft);
}

/* --------------------------------------------------------------------------
   10. pages：404
   -------------------------------------------------------------------------- */

.error-main {
  padding-top: 48px;
}

.error-hero {
  max-width: var(--prose);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.error-code {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 10px;
}

.error-hero h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 14px;
}

.error-text {
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-help {
  padding-top: 28px;
}

.error-help h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 14px;
}

.error-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.error-list li {
  padding: 12px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-list a {
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   11. responsive：960px / 640px 两个断点
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-lead {
    max-width: none;
  }

  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .scope-list,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 8px;
    border-top: 1px solid var(--line-soft);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item > a,
  .dropdown-toggle {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 0 10px;
  }

  .dropdown-toggle {
    justify-content: space-between;
  }

  .nav-sub {
    position: static;
    display: block;
    min-width: 0;
    margin: 2px 0 6px;
    padding: 4px 0 4px 12px;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
  }

  .nav-sub li a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 10px;
  }

  .site-note p {
    padding: 10px 16px;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding: 0 16px 48px;
  }

  .page-header {
    padding: 12px 0 20px;
    margin-bottom: 24px;
  }

  .page-title,
  .hero-title,
  .error-hero h1 {
    font-size: 24px;
  }

  .section {
    padding: 28px 0;
  }

  .section-title,
  .section-heading,
  .section-head h2,
  .error-help h2 {
    font-size: 19px;
  }

  .hero {
    padding: 28px 0 24px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .timeline-list {
    padding-left: 14px;
  }

  .timeline-item::before {
    left: -19px;
  }

  .channel-table thead,
  .data-table thead {
    display: none;
  }

  .channel-table tbody tr,
  .data-table tbody tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .channel-table tbody td,
  .data-table tbody td {
    display: block;
    padding: 3px 0;
    border-bottom: 0;
  }

  .channel-table tbody td::before,
  .data-table tbody td::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 76px;
    color: var(--ink-soft);
    font-size: 13px;
  }

  .row-entry td::before {
    content: none;
  }

  .collection-cards,
  .collection-grid,
  .summary-grid,
  .division-columns,
  .field-roles-grid,
  .path-columns,
  .check-list,
  .prep-items,
  .field-read-list,
  .related-list,
  .step-list,
  .record-groups,
  .scope-list,
  .category-grid,
  .index-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .records-section .record-text {
    flex: 1 1 100%;
  }

  .footer-inner {
    padding: 32px 16px 24px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .error-main {
    padding-top: 32px;
  }

  .error-actions .btn {
    flex: 1 1 100%;
  }
}
