/* ==========================================================================
   秋霞电视剧大全 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --bg: #f6f4ef;
  --bg-card: #fbfaf7;
  --ink: #22302b;
  --ink-soft: #5c6b64;
  --accent: #4f7a63;
  --accent-clay: #b5764f;
  --line: #dde3de;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-rest: 0 1px 2px rgba(34, 48, 43, 0.05);
  --shadow-hover: 0 4px 14px rgba(34, 48, 43, 0.1);
  --wrap: 1120px;
  --wrap-narrow: 880px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.35em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-clay);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 0.6em;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  caption-side: top;
  text-align: left;
  font-size: 0.875rem;
  color: var(--ink-soft);
  padding: 0 0 0.6em;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.7em 0.9em;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
  color: var(--ink);
}

time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

dt {
  font-weight: 600;
  color: var(--ink);
}

dd {
  margin: 0 0 0.9em;
  color: var(--ink-soft);
}

dl {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 244, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
  transition: box-shadow 0.2s ease;
}

.site-header.is-stuck {
  box-shadow: 0 1px 6px rgba(34, 48, 43, 0.07);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-brand {
  flex: 0 0 auto;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  white-space: nowrap;
}

.site-brand:hover,
.site-brand:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--accent);
  background: rgba(79, 122, 99, 0.08);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--accent);
  font-weight: 600;
  background: rgba(79, 122, 99, 0.1);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.2s ease;
}

.nav-toggle::before {
  top: 16px;
}

.nav-toggle::after {
  bottom: 16px;
}

.nav-toggle[aria-expanded="true"]::before {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.site-footer {
  margin-top: 4rem;
  background: #eef0ea;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem;
}

.footer-brand {
  max-width: 420px;
}

.footer-name {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-title {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin: 0 0 0.45rem;
}

.footer-list a {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent);
}

.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1rem 1.5rem 1.75rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* 内页外壳 */

.inner-main {
  width: 100%;
  padding: 0 1.5rem 1rem;
}

.breadcrumb {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.25rem 0 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.page-description {
  max-width: 760px;
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
}

.page-shell {
  max-width: var(--wrap);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   components · 通用组件
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #40654f;
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(79, 122, 99, 0.1);
  color: var(--accent);
  text-decoration: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
}

.text-link::after {
  content: "→";
  font-size: 0.9em;
  transition: transform 0.18s ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(3px);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
}

.data-table thead th {
  background: #eff2ec;
  font-size: 0.875rem;
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: rgba(79, 122, 99, 0.05);
}

/* 图片容器统一约束 */

.hero-media,
.topic-media,
.topic-cover,
.media-figure,
.guide-figure,
.record-figure {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media img,
.topic-media img,
.topic-cover img,
.media-figure img,
.guide-figure img,
.record-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e7ebe5;
}

/* 卡片基础 */

.topic-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-rest);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.topic-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.topic-name {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.topic-desc {
  margin: 0 0 0.6rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.topic-channels {
  margin: auto 0 0;
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--accent);
  border-top: 1px dashed var(--line);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.site-home {
  background: var(--bg);
}

.site-lead-bar {
  margin: 0;
  padding: 0.6rem 1.5rem;
  background: #eef0ea;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-align: center;
}

.home-main {
  padding-bottom: 1rem;
}

.home-hero {
  padding: 3rem 1.5rem 2.5rem;
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-title {
  font-size: 2.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.hero-desc {
  max-width: 34em;
  font-size: 1rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-media img {
  aspect-ratio: 16 / 10;
}

.home-channels,
.home-topics,
.home-fields,
.home-records,
.home-index,
.home-path {
  padding: 2.75rem 1.5rem;
}

.home-channels,
.home-records {
  background: #f1f2ec;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: var(--wrap);
  margin: 0 auto 1.5rem;
}

.section-head h2,
.home-main .section-head h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.section-desc {
  margin: 0;
  max-width: 720px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.home-channels .table-scroll,
.home-topics .topic-grid,
.home-fields .fields-layout,
.home-records .record-groups,
.home-index .index-grid,
.home-path .path-layout {
  max-width: var(--wrap);
  margin: 0 auto;
}

.channel-table caption {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.channel-table th,
.channel-table td {
  font-size: 0.9375rem;
}

.channel-table tbody th {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  white-space: nowrap;
  color: var(--accent);
}

.home-topics .topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.home-topics .topic-media img {
  aspect-ratio: 16 / 9;
}

.home-topics .topic-name,
.home-topics .topic-desc,
.home-topics .topic-channels {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.home-topics .topic-name {
  margin-top: 1rem;
}

.home-topics .topic-channels {
  margin-bottom: 1.25rem;
  margin-left: 1.25rem;
  margin-right: 1.25rem;
  padding-left: 0;
  padding-right: 0;
}

.section-more {
  max-width: var(--wrap);
  margin: 1.5rem auto 0;
  text-align: right;
}

.fields-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.fields-col {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.sub-title {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.field-list dt {
  font-size: 0.9375rem;
}

.field-list dd {
  font-size: 0.9375rem;
}

.record-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.record-group {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
}

.record-month {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.record-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.record-item {
  margin: 0 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.record-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.record-item time {
  display: block;
  margin-bottom: 0.2rem;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.index-col {
  min-width: 0;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.index-name {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.index-name a {
  color: var(--ink);
}

.index-name a:hover,
.index-name a:focus-visible {
  color: var(--accent);
}

.index-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.path-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.path-item {
  min-width: 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.path-name {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.path-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 内页通用 section
   -------------------------------------------------------------------------- */

.section {
  padding: 2.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-inner {
  max-width: var(--wrap);
  margin: 0 auto;
}

.section-title {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.section-intro {
  max-width: 760px;
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.section-note {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.section-note a {
  margin-right: 0.75rem;
}

.channels-table-section .table-caption {
  font-size: 0.8125rem;
}

.channels-visual .media-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.media-figure img {
  aspect-ratio: 3 / 2;
}

.channels-fields .term-list {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.term-item {
  display: contents;
}

.channels-fields .term-item dt {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: #eff2ec;
  font-size: 0.9375rem;
}

.channels-fields .term-item dd {
  margin: 0;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.channels-fields .term-item:last-child dt,
.channels-fields .term-item:last-child dd {
  border-bottom: 0;
}

.compare-columns,
.reason-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.compare-col,
.reason-col {
  min-width: 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-heading,
.reason-col h3 {
  margin: 0 0 0.85rem;
  font-size: 1.0625rem;
  font-weight: 600;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.compare-list,
.reason-list {
  margin: 0;
  padding-left: 1.15rem;
}

.compare-list li,
.reason-list li {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* 专题片单 */

.topic-list-section .topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.topic-list-section .topic-grid .topic-card {
  padding-bottom: 1.25rem;
}

.topic-cover img {
  aspect-ratio: 16 / 9;
}

.topic-list-section .topic-name,
.topic-list-section .topic-desc,
.topic-list-section .topic-channels {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.topic-list-section .topic-name {
  margin-top: 1rem;
}

.topic-list-section .topic-channels {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
  padding-left: 0;
  padding-right: 0;
}

.topic-note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.topic-note-item {
  min-width: 0;
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-note-heading {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.topic-note-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.topic-map-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.topic-map-column {
  min-width: 0;
}

.column-title {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.topic-map-table caption {
  font-size: 0.8125rem;
}

/* 浏览指引 */

.guide-figure {
  max-width: var(--wrap);
  margin: 0 auto 2rem;
}

.guide-figure img {
  aspect-ratio: 21 / 9;
}

.guide-section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}

.field-table {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table thead th {
  background: #eff2ec;
  font-size: 0.875rem;
  white-space: nowrap;
}

.field-table tbody th {
  width: 30%;
  font-size: 0.9375rem;
  background: transparent;
}

.field-table tbody td {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.boundary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.boundary-item {
  min-width: 0;
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-clay);
  border-radius: var(--radius);
}

.boundary-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.boundary-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.step-item {
  min-width: 0;
  margin: 0;
  padding: 1.5rem 1.25rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}

.step-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
}

.step-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.step-item p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.step-check {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  font-size: 0.875rem;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  padding: 1rem 1.75rem 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  margin: 0;
  padding: 0 2rem 1.25rem 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.next-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.next-item {
  min-width: 0;
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.next-item a {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.next-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* 整理记录 */

.record-figure {
  max-width: var(--wrap);
  margin: 0 auto 2rem;
}

.record-figure img {
  aspect-ratio: 21 / 9;
}

.record-months,
.record-objects,
.record-reasons {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.25rem 0;
}

.record-months {
  padding-top: 0.5rem;
}

.record-objects,
.record-reasons {
  border-top: 1px solid var(--line);
}

.record-months h2,
.record-objects h2,
.record-reasons h2 {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.record-months .record-group {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.record-months .record-group:last-child {
  margin-bottom: 0;
}

.record-months .record-list {
  counter-reset: rec;
}

.record-months .record-item {
  font-size: 0.9375rem;
}

.record-meta {
  margin: 0 0 0.25rem;
}

.record-text {
  margin: 0;
  color: var(--ink-soft);
}

.record-objects .field-table tbody th {
  width: 26%;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.site-error {
  background: var(--bg);
}

.error-main {
  padding: 0 1.5rem;
}

.error-hero {
  padding: 4rem 0 2.5rem;
}

.error-inner {
  max-width: 640px;
  margin: 0 auto;
}

.error-code {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--accent-clay);
}

.error-main h1 {
  font-size: 1.875rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.error-text {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.error-links {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 0 1rem;
  border-top: 1px solid var(--line);
}

.error-links h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.error-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.error-link-list li {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .hero-media img {
    aspect-ratio: 16 / 9;
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-groups .record-group:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    margin-left: 0;
    order: 3;
    flex: 1 1 100%;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--line);
    margin-top: 0.25rem;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 0.75rem 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .nav-list li:last-child a {
    border-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .footer-brand {
    max-width: none;
  }

  .fields-layout,
  .compare-columns,
  .reason-columns,
  .topic-map-layout,
  .media-pair,
  .boundary-list,
  .topic-note-list,
  .home-topics .topic-grid,
  .topic-list-section .topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .path-layout,
  .next-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .channels-fields .term-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .channels-fields .term-item dt {
    border-bottom: 0;
    padding-bottom: 0.35rem;
  }

  .channels-fields .term-item dd {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-lead-bar {
    padding: 0.6rem 1rem;
    text-align: left;
    font-size: 0.8125rem;
  }

  .header-inner {
    padding: 0.75rem 1rem;
  }

  .home-hero,
  .home-channels,
  .home-topics,
  .home-fields,
  .home-records,
  .home-index,
  .home-path {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-title {
    font-size: 1.625rem;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .section-head h2,
  .home-main .section-head h2,
  .section-title,
  .record-months h2,
  .record-objects h2,
  .record-reasons h2 {
    font-size: 1.25rem;
  }

  .inner-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .record-groups,
  .index-grid,
  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-groups .record-group:last-child {
    grid-column: auto;
  }

  .error-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .error-hero {
    padding-top: 2.5rem;
  }

  .error-actions .btn {
    flex: 1 1 auto;
  }

  .footer-inner {
    padding: 2rem 1rem 1rem;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .footer-copy {
    padding: 1rem 1rem 1.5rem;
  }

  .section-more {
    text-align: left;
  }

  .section-note a {
    display: inline-block;
    margin-bottom: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
