/* ==========================================================================
   午夜影院在线观看 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与基础重置
   -------------------------------------------------------------------------- */
:root {
  --bg-page: #f4f6f7;
  --ink-main: #0f3b4c;
  --ink-link: #1c6b7d;
  --mark-orange: #e07a3f;
  --text-body: #3c4a52;
  --text-muted: #7a8a92;
  --panel-bg: #ffffff;
  --line-soft: #d8e0e3;
  --shell-width: 1120px;
  --font-stack: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.75;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink-link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--mark-orange);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mark-orange);
  outline-offset: 2px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   layout · 骨架：页头 / 主导航 / 主容器 / 面包屑 / 页标题 / 页脚
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--panel-bg);
  border-bottom: 2px solid var(--ink-main);
}

.header-inner {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-main);
  line-height: 1.4;
  padding: 8px 0;
  flex: 0 0 auto;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink-main);
  text-decoration: none;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 22px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-block;
  padding: 8px 0;
  font-size: 15px;
  color: var(--ink-main);
  line-height: 1.5;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--mark-orange);
  text-decoration: underline;
}

.nav-list a.is-current {
  color: var(--ink-main);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--panel-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink-main);
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 24px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--ink-link);
}

.breadcrumb-sep {
  color: var(--line-soft);
}

.breadcrumb-current {
  color: var(--text-muted);
}

.page-header {
  padding: 20px 0 32px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink-main);
}

.page-description {
  margin-top: 14px;
  max-width: 860px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
}

.site-footer {
  background: var(--ink-main);
  color: #cfdce1;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 40px 24px 32px;
}

.footer-top {
  font-size: 14px;
  margin-bottom: 28px;
}

.footer-top a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-top a:hover,
.footer-top a:focus-visible {
  color: var(--mark-orange);
}

.footer-brand {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.5;
}

.footer-desc {
  margin-top: 10px;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.7;
  color: #b9cbd2;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
}

.footer-group-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  font-size: 14px;
  line-height: 1.6;
  color: #cfdce1;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--mark-orange);
}

.footer-copy {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  line-height: 1.7;
  color: #9db2ba;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink-main);
  border-radius: 6px;
  background: var(--panel-bg);
  color: var(--ink-main);
  font-size: 14px;
  line-height: 1.2;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 40;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--ink-main);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   components · 通用模块元素
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink-main);
  color: #ffffff;
  border-color: var(--ink-main);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--ink-link);
  border-color: var(--ink-link);
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-main);
  border-color: var(--ink-main);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--ink-main);
  color: #ffffff;
  text-decoration: none;
}

.btn-plain {
  background: transparent;
  color: var(--ink-main);
  border-color: var(--line-soft);
}

.btn-plain:hover,
.btn-plain:focus-visible {
  border-color: var(--ink-main);
  text-decoration: none;
}

.section {
  margin-bottom: 56px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink-main);
}

.section-intro {
  margin-top: 12px;
  max-width: 880px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
}

.section-lead {
  margin-top: 12px;
  max-width: 880px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

.section-note {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.section-note a {
  margin-right: 16px;
}

.figure,
.figure-inline,
.records-figure,
.channel-figure,
.guide-figure {
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-bg);
}

.figure img,
.figure-inline img,
.records-figure img,
.channel-figure img,
.guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.figure figcaption,
.figure-inline figcaption,
.records-figure figcaption,
.channel-figure figcaption,
.guide-figure figcaption {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid var(--line-soft);
}

/* 步骤列表（topics / guide 共用，父级限定作用域） */
.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.step-item {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--ink-main);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step-name,
.step-title {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-main);
}

.step-desc,
.step-item p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

/* 相关链接列表（fields / guide / topics 共用） */
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.related-list li {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
  padding: 16px 18px;
}

.related-list a {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-main);
}

.related-list p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* 数据表格 */
.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
}

.data-table,
.channel-table,
.records-type-table {
  width: 100%;
  min-width: 560px;
  background: var(--panel-bg);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  font-size: 15px;
}

.data-table caption,
.channel-table-caption,
.records-type-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  background: #eef2f3;
  border-bottom: 1px solid var(--line-soft);
}

.data-table th,
.data-table td,
.channel-table th,
.channel-table td,
.records-type-table th,
.records-type-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
  border-bottom: 1px solid var(--line-soft);
}

.data-table thead th,
.channel-table thead th,
.records-type-table thead th {
  background: #eef2f3;
  color: var(--ink-main);
  font-weight: 700;
  font-size: 14px;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.channel-table tbody tr:last-child td,
.records-type-table tbody tr:last-child th,
.records-type-table tbody tr:last-child td {
  border-bottom: none;
}

.records-type-table tbody th {
  color: var(--ink-main);
  font-weight: 600;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.site-notice {
  background: #eef2f3;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
  padding: 10px 24px;
  text-align: center;
}

.home-main {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.hero-title {
  font-size: 32px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink-main);
}

.hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
}

.hero-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 3px solid var(--mark-orange);
  padding-left: 16px;
}

.hero-points li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.hero-media {
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-bg);
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-caption {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid var(--line-soft);
}

.home-channels,
.home-topics,
.home-path,
.home-records,
.home-index {
  margin-top: 56px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink-main);
}

.section-head p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.channel-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
  overflow: hidden;
}

.channel-row {
  display: grid;
  grid-template-columns: 64px minmax(140px, 1fr) minmax(120px, 1fr) minmax(180px, 1.6fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  border-left: 3px solid transparent;
}

.channel-row:last-child {
  border-bottom: none;
}

.channel-row:hover {
  border-left-color: var(--mark-orange);
}

.channel-code {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-main);
  font-variant-numeric: tabular-nums;
}

.channel-name {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-main);
}

.channel-tag {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-link);
}

.channel-scope {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.channel-link {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
  border-left: 3px solid transparent;
  padding: 18px;
}

.topic-card:hover {
  border-left-color: var(--mark-orange);
}

.topic-media {
  margin: 0 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
}

.topic-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.topic-name {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-main);
}

.topic-idea {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

.topic-link {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

.path-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.path-col {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
  padding: 22px;
  min-width: 0;
}

.path-col-title {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-main);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px;
}

.path-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.path-list li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
  padding-left: 18px;
  position: relative;
}

.path-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mark-orange);
}

.record-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.record-group {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
  padding: 20px 22px;
}

.record-month {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-main);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

.record-type {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--mark-orange);
  border-radius: 6px;
  color: var(--mark-orange);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.index-item {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
  padding: 18px;
  border-top: 3px solid var(--ink-main);
}

.index-name {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
}

.index-name a {
  color: var(--ink-main);
}

.index-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   pages · 频道分类
   -------------------------------------------------------------------------- */
.channel-overview,
.channel-detail,
.channel-boundary,
.channel-topics {
  margin-bottom: 56px;
}

.channel-detail .channel-item {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2.2fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.channel-detail .channel-item:first-of-type {
  border-top: 1px solid var(--line-soft);
}

.channel-item-head {
  min-width: 0;
}

.channel-item-title {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-main);
}

.channel-item-code {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mark-orange);
  font-variant-numeric: tabular-nums;
}

.channel-item-body {
  min-width: 0;
}

.channel-item-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

.channel-item-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.channel-item-list li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
  padding-left: 18px;
  position: relative;
}

.channel-item-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-link);
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.boundary-item {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
  padding: 20px;
}

.boundary-title {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-main);
  margin-bottom: 8px;
}

.boundary-item p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

.boundary-note {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.topic-entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.topic-entry {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
  padding: 20px;
  border-left: 3px solid transparent;
}

.topic-entry:hover {
  border-left-color: var(--mark-orange);
}

.topic-entry-title {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
}

.topic-entry-title a {
  color: var(--ink-main);
}

.topic-entry p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.channel-figure {
  margin-top: 28px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
}

.related-links-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-main);
}

.related-links-item {
  font-size: 14px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   pages · 专题片单
   -------------------------------------------------------------------------- */
.section-topic-intro,
.section-topic-list,
.section-topic-map,
.section-topic-order,
.section-related {
  margin-bottom: 56px;
}

.section-topic-intro h2,
.section-topic-list h2,
.section-topic-map h2,
.section-topic-order h2,
.section-related h2 {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink-main);
}

.section-topic-intro p,
.section-topic-list > p,
.section-topic-map > p,
.section-topic-order > p {
  margin-top: 12px;
  max-width: 880px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
}

.figure-topic-cover {
  margin-top: 24px;
}

.topic-item {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}

.topic-item:first-of-type {
  border-top: 1px solid var(--line-soft);
}

.topic-item-media {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
  overflow: hidden;
}

.topic-item-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.topic-item-name {
  padding: 12px 16px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-main);
  border-top: 1px solid var(--line-soft);
}

.topic-item-body {
  min-width: 0;
}

.topic-item-idea {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

.topic-item-rule {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

.topic-item-link {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   pages · 观看指引
   -------------------------------------------------------------------------- */
.guide-summary,
.guide-section,
.guide-related {
  margin-bottom: 56px;
}

.summary-panel {
  margin-top: 20px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--mark-orange);
  border-radius: 8px;
  background: var(--panel-bg);
  padding: 22px;
}

.summary-panel p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
}

.summary-panel p + p {
  margin-top: 12px;
}

.guide-section .section-title {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.guide-section .section-intro {
  margin-top: 16px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.check-item {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
  padding: 18px;
}

.check-title {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-main);
  margin-bottom: 8px;
}

.check-item p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

.faq-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
  overflow: hidden;
}

.faq-question {
  cursor: pointer;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-main);
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover,
.faq-question:focus-visible {
  color: var(--mark-orange);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.guide-related .related-item {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
  padding: 16px 18px;
}

.back-top-wrap {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.back-top {
  color: var(--ink-link);
}

/* --------------------------------------------------------------------------
   pages · 字段说明
   -------------------------------------------------------------------------- */
.site-note {
  background: #eef2f3;
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
  text-align: center;
}

.section-summary,
.section-fields,
.section-boundary {
  margin-bottom: 56px;
}

.section-summary h2,
.section-fields h2,
.section-boundary h2,
.section-related h2 {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink-main);
}

.section-summary p {
  margin-top: 12px;
  max-width: 880px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
}

.figure-inline {
  margin-top: 24px;
}

.field-list {
  margin-top: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
  overflow: hidden;
}

.field-item {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2.4fr);
  gap: 24px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.field-item:last-child {
  border-bottom: none;
}

.field-name {
  min-width: 0;
}

.field-name h3 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-main);
}

.field-tag {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mark-orange);
}

.field-body {
  min-width: 0;
}

.field-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

.field-body p + p {
  margin-top: 8px;
  color: var(--text-muted);
}

.section-boundary p {
  margin-top: 12px;
  max-width: 880px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

/* --------------------------------------------------------------------------
   pages · 整理记录
   -------------------------------------------------------------------------- */
.records-org,
.records-months,
.records-types,
.records-map,
.records-help {
  margin-bottom: 56px;
}

.records-org h2,
.records-months h2,
.records-types h2,
.records-map h2,
.records-help h2 {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink-main);
}

.records-org p,
.records-months > p,
.records-types > p,
.records-map > p,
.records-help > p {
  margin-top: 12px;
  max-width: 880px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
}

.records-figure {
  margin-top: 24px;
}

.records-month {
  margin-top: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
  overflow: hidden;
}

.records-month-title {
  padding: 14px 20px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-main);
  background: #eef2f3;
  border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
  position: sticky;
  top: 0;
  z-index: 2;
}

.records-month-list {
  display: flex;
  flex-direction: column;
}

.records-month-list li {
  display: grid;
  grid-template-columns: 96px minmax(140px, 1fr) minmax(0, 2.2fr);
  gap: 14px;
  align-items: start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.records-month-list li:last-child {
  border-bottom: none;
}

.records-type {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--mark-orange);
  border-radius: 6px;
  color: var(--mark-orange);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.records-target {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 600;
  color: var(--ink-main);
}

.records-reason {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

.records-map-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.records-map-list li {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
  padding: 20px;
}

.records-map-list h3 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-main);
  margin-bottom: 8px;
}

.records-map-list p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

.records-help-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.records-help-list li {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
  padding: 16px 18px;
}

.records-help-list a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-main);
}

.records-help-list span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.error-inner {
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--mark-orange);
  border-radius: 8px;
  background: var(--panel-bg);
  padding: 40px;
  max-width: 760px;
}

.error-code {
  font-size: 15px;
  font-weight: 700;
  color: var(--mark-orange);
  font-variant-numeric: tabular-nums;
}

.error-title {
  margin-top: 10px;
  font-size: 32px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink-main);
}

.error-text {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.error-links a {
  display: block;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-main);
  text-align: center;
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--mark-orange);
  color: var(--mark-orange);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive · 960px 断点
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .channel-row {
    grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 6px;
  }

  .channel-scope {
    grid-column: 2 / 4;
  }

  .channel-link {
    grid-column: 2 / 4;
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-detail .channel-item,
  .topic-item,
  .field-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .records-month-list li {
    grid-template-columns: 96px minmax(0, 1fr);
    row-gap: 6px;
  }

  .records-reason {
    grid-column: 2 / 3;
  }
}

/* --------------------------------------------------------------------------
   responsive · 640px 断点
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 60px;
    flex-wrap: wrap;
    gap: 0 12px;
  }

  .brand {
    font-size: 17px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 8px 0 16px;
    border-top: 1px solid var(--line-soft);
    margin-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: block;
    padding: 12px 4px;
    min-height: 44px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .inner-main,
  .home-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-main {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .breadcrumb {
    padding-top: 18px;
  }

  .page-header {
    padding: 16px 0 24px;
    margin-bottom: 32px;
  }

  .page-title,
  .hero-title,
  .error-title {
    font-size: 24px;
    line-height: 1.4;
  }

  .section-title,
  .section-head h2,
  .section-topic-intro h2,
  .section-topic-list h2,
  .section-topic-map h2,
  .section-topic-order h2,
  .section-summary h2,
  .section-fields h2,
  .section-boundary h2,
  .records-org h2,
  .records-months h2,
  .records-types h2,
  .records-map h2,
  .records-help h2,
  .section-related h2 {
    font-size: 20px;
  }

  .section,
  .channel-overview,
  .channel-detail,
  .channel-boundary,
  .channel-topics,
  .section-topic-intro,
  .section-topic-list,
  .section-topic-map,
  .section-topic-order,
  .section-related,
  .guide-summary,
  .guide-section,
  .guide-related,
  .section-summary,
  .section-fields,
  .section-boundary,
  .records-org,
  .records-months,
  .records-types,
  .records-map,
  .records-help {
    margin-bottom: 40px;
  }

  .home-channels,
  .home-topics,
  .home-path,
  .home-records,
  .home-index {
    margin-top: 40px;
  }

  .home-hero {
    padding-bottom: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    min-height: 44px;
    padding: 12px 18px;
  }

  .channel-list {
    border-radius: 6px;
  }

  .channel-row {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 14px;
    row-gap: 4px;
  }

  .channel-tag,
  .channel-scope,
  .channel-link {
    grid-column: 2 / 3;
  }

  .topic-grid,
  .path-columns,
  .topic-entry-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .record-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .record-type {
    justify-self: start;
  }

  .records-month-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px 16px;
  }

  .records-reason {
    grid-column: 1 / 2;
  }

  .records-type {
    justify-self: start;
  }

  .records-month-title {
    font-size: 17px;
    padding: 12px 16px;
  }

  .step-list,
  .check-list,
  .related-list,
  .records-map-list,
  .records-help-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .data-table,
  .channel-table,
  .records-type-table {
    min-width: 520px;
    font-size: 14px;
  }

  .data-table th,
  .data-table td,
  .channel-table th,
  .channel-table td,
  .records-type-table th,
  .records-type-table td {
    padding: 10px 12px;
  }

  .error-inner {
    padding: 24px 18px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    padding: 32px 16px 24px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-group a {
    display: block;
    min-height: 44px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .footer-group li:last-child a {
    border-bottom: none;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    font-size: 13px;
  }

  .site-notice,
  .site-note {
    padding: 10px 16px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .back-to-top {
    transition: none;
  }
}
