/* ==========================================================================
   午夜免费电影 · 全站样式表
   分档：艺术展览风 / 暖灰米白 / 大幅图像 + 策展式说明
   分组：base → layout → components → pages → responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --bg-page: #f7f4ef;
  --bg-block: #ffffff;
  --ink-title: #1a1a1a;
  --ink-body: #2b2b2b;
  --ink-muted: #6b6b6b;
  --accent: #a8845c;
  --line: #e3ddd3;
  --line-strong: #cfc6b8;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow-soft: 0 1px 2px rgba(26, 26, 26, 0.04);
  --wrap: 1120px;
  --gutter: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--ink-body);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ol,
ul,
dl,
dd {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover {
  color: #8a6a45;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  color: var(--ink-title);
  font-weight: 600;
}

h1 {
  font-size: 32px;
  line-height: 1.3;
}

h2 {
  font-size: 24px;
  line-height: 1.35;
}

h3 {
  font-size: 18px;
  line-height: 1.4;
}

p {
  max-width: 68ch;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

time {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   layout · 全站骨架
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  background-color: rgba(247, 244, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}

.header-inner {
  max-width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink-title);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--ink-title);
  text-decoration: none;
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-tag {
  font-size: 13px;
  color: var(--ink-muted);
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink-body);
  border-bottom: 2px solid transparent;
  line-height: 1.4;
}

.nav-link:hover {
  color: var(--accent);
  text-decoration: none;
  border-bottom-color: var(--accent);
}

.nav-link.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--ink-title);
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px var(--gutter) 72px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background-color: var(--bg-block);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  z-index: 60;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
}

/* 内页统一：面包屑 + 页面标题区 */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--ink-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink-body);
}

.page-header {
  padding-bottom: 24px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink-title);
  max-width: 34ch;
}

.page-description {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 62ch;
}

/* 内页通用区块 */

.section {
  margin-bottom: 56px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 24px;
  line-height: 1.35;
  color: var(--ink-title);
}

.section-intro,
.section-lead {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 68ch;
}

.section-head {
  margin-bottom: 26px;
}

.section-desc {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 68ch;
}

.section-foot {
  margin-top: 22px;
  font-size: 15px;
}

/* ==========================================================================
   components · 通用组件
   ========================================================================== */

/* 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--ink-title);
  color: #fdfbf8;
  border-color: var(--ink-title);
}

.btn-primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink-title);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* 语义表格 */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background-color: var(--bg-block);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table {
  min-width: 560px;
  font-size: 15px;
}

.data-table caption,
.table-caption {
  caption-side: top;
  padding: 16px 20px 12px;
  text-align: left;
  font-size: 14px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-title);
  background-color: #fbf9f5;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody th {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-title);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 14px 20px;
  color: var(--ink-body);
  border-bottom: 1px solid var(--line);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background-color: #fbf8f3;
}

/* 问答折叠块 */

.faq-item {
  background-color: var(--bg-block);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  position: relative;
  padding: 16px 48px 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-title);
  cursor: pointer;
  list-style: none;
  line-height: 1.5;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--ink-body);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.faq-answer p {
  max-width: 66ch;
}

/* 边界要点列表 */

.boundary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.boundary-item {
  background-color: var(--bg-block);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.boundary-name {
  font-size: 16px;
  color: var(--ink-title);
  margin-bottom: 8px;
}

.boundary-text {
  font-size: 15px;
  color: var(--ink-body);
}

.boundary-note {
  margin-top: 20px;
  font-size: 15px;
  color: var(--ink-muted);
}

.boundary-note a {
  margin-right: 8px;
}

/* 关联卡片 */

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.related-card {
  background-color: var(--bg-block);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.related-name,
.related-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.related-scope,
.related-desc {
  font-size: 15px;
  color: var(--ink-muted);
}

/* 图片容器通用约束 */

.hero-media,
.collection-media,
.collection-figure,
.index-media,
.section-figure,
.guide-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: #ece7de;
}

.hero-media img,
.collection-media img,
.collection-figure img,
.index-media img,
.section-figure img,
.guide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption,
.index-caption,
.figure-caption {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 10px;
  line-height: 1.6;
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

.home-main {
  display: block;
}

/* —— 全宽列表首屏 —— */

.hero {
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink-title);
  max-width: 22ch;
}

.hero-lead {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  aspect-ratio: 4 / 3;
}

.hero-entries {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.hero-entry {
  border-bottom: 1px solid var(--line);
}

.hero-entry-link {
  display: block;
  padding: 18px 18px 18px 0;
  color: var(--ink-body);
}

.hero-entry-link:hover {
  text-decoration: none;
  color: var(--ink-body);
}

.hero-entry-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-title);
  margin-bottom: 4px;
}

.hero-entry-link:hover .hero-entry-name {
  color: var(--accent);
}

.hero-entry-desc {
  display: block;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* —— 首页通用分区容器 —— */

.channels,
.collections,
.fields,
.guide,
.updates {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 52px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.updates {
  border-bottom: 0;
}

/* —— 题材频道方向总览 —— */

.channel-list {
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.channel-main {
  min-width: 0;
}

.channel-name {
  font-size: 18px;
  color: var(--ink-title);
  margin-bottom: 6px;
}

.channel-desc {
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 60ch;
}

.channel-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.channel-scene {
  font-size: 13px;
  color: var(--ink-muted);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
}

.channel-link {
  font-size: 15px;
}

/* —— 本期专题片单速览 —— */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-block);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.collection-media,
.collection-figure {
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

.collection-card h3,
.collection-card p,
.collection-card a {
  margin-left: 20px;
  margin-right: 20px;
}

.collection-name {
  margin-top: 18px;
  font-size: 18px;
  color: var(--ink-title);
}

.collection-curation,
.collection-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.65;
}

.collection-scope {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-body);
}

.scope-label {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.collection-count {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

.collection-link {
  margin-top: 16px;
  margin-bottom: 20px;
  font-size: 15px;
  align-self: flex-start;
}

/* —— 条目字段与收录边界摘要 —— */

.fields .section-desc a {
  margin-left: 4px;
}

/* —— 查阅路径三步概览 —— */

.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  counter-reset: none;
}

.step-item {
  position: relative;
  background-color: var(--bg-block);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 22px 22px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.step-name {
  font-size: 17px;
  color: var(--ink-title);
  margin-bottom: 8px;
}

.step-goal {
  font-size: 15px;
  color: var(--ink-muted);
}

/* —— 站内更新记录 —— */

.update-list {
  border-top: 1px solid var(--line);
}

.update-item {
  display: grid;
  grid-template-columns: 120px 96px minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.update-date {
  font-size: 14px;
  color: var(--ink-muted);
}

.update-type {
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 2px 10px;
  justify-self: start;
}

.update-text {
  font-size: 15px;
  color: var(--ink-body);
  max-width: 62ch;
}

/* ==========================================================================
   pages · 题材频道页
   ========================================================================== */

.section-channels .channel-list {
  border-top: 1px solid var(--line);
}

.section-channels .channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 240px) auto;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.section-channels .channel-row-main {
  min-width: 0;
}

.section-channels .channel-name {
  font-size: 18px;
  margin-bottom: 6px;
}

.section-channels .channel-name a {
  color: var(--ink-title);
}

.section-channels .channel-name a:hover {
  color: var(--accent);
}

.section-channels .channel-desc {
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 60ch;
}

.section-channels .channel-meta {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.65;
}

.section-channels .channel-enter {
  font-size: 15px;
  white-space: nowrap;
}

/* 条目索引分组 */

.index-group {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.index-group:last-child {
  border-bottom: 0;
}

.index-media {
  aspect-ratio: 16 / 9;
  max-width: 560px;
  margin-bottom: 16px;
}

.index-group-title {
  font-size: 18px;
  color: var(--ink-title);
  margin-bottom: 12px;
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 28px;
}

.entry-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.entry-name {
  color: var(--ink-title);
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}

.entry-year {
  color: var(--ink-muted);
  font-size: 14px;
  margin-left: auto;
}

.entry-genre {
  color: var(--ink-muted);
  font-size: 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 1px 8px;
  white-space: nowrap;
}

/* ==========================================================================
   pages · 专题片单页
   ========================================================================== */

.section-overview .collection-grid {
  align-items: stretch;
}

.section-overview .collection-card {
  padding-bottom: 20px;
}

.section-scope .scope-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.scope-item {
  background-color: var(--bg-block);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.scope-name {
  font-size: 17px;
  color: var(--ink-title);
  margin-bottom: 12px;
}

.scope-in,
.scope-out {
  font-size: 14px;
  line-height: 1.7;
}

.scope-in {
  color: var(--ink-body);
}

.scope-out {
  color: var(--ink-muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-strong);
}

.section-items .item-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.item-group {
  background-color: var(--bg-block);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.item-group-title {
  font-size: 17px;
  color: var(--ink-title);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.item-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.item-row:last-child {
  border-bottom: 0;
}

.item-title {
  color: var(--ink-title);
  min-width: 0;
  overflow-wrap: anywhere;
}

.item-year {
  color: var(--ink-muted);
  font-size: 14px;
  margin-left: auto;
}

.item-genre {
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.section-related .section-foot a {
  margin-right: 14px;
}

/* ==========================================================================
   pages · 条目字段说明页
   ========================================================================== */

.fields-table-section,
.fields-detail-section,
.fields-boundary-section,
.fields-faq-section,
.fields-related-section {
  margin-bottom: 56px;
}

.fields-related-section {
  margin-bottom: 0;
}

.section-figure {
  margin: 22px 0 28px;
  aspect-ratio: 16 / 7;
}

.field-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 8px 28px;
  align-items: start;
}

.field-item:last-child {
  border-bottom: 0;
}

.field-name {
  font-size: 17px;
  color: var(--ink-title);
  grid-row: span 2;
}

.field-desc {
  font-size: 15px;
  color: var(--ink-body);
  max-width: 62ch;
}

.field-example {
  grid-column: 2;
  font-size: 14px;
  color: var(--ink-muted);
  background-color: #fbf9f5;
  border-left: 2px solid var(--line-strong);
  padding: 8px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ==========================================================================
   pages · 查阅路径页
   ========================================================================== */

.guide-steps,
.guide-boundary,
.guide-faq,
.guide-next {
  margin-bottom: 56px;
}

.guide-next {
  margin-bottom: 0;
}

.guide-steps .step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.guide-steps .step-item {
  padding: 22px;
}

.guide-steps .step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.guide-steps .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.guide-steps .step-name {
  font-size: 17px;
  color: var(--ink-title);
}

.guide-steps .step-name a {
  color: var(--ink-title);
}

.guide-steps .step-name a:hover {
  color: var(--accent);
}

.guide-steps .step-goal,
.guide-steps .step-basis {
  font-size: 15px;
  color: var(--ink-body);
  margin-top: 8px;
}

.guide-steps .step-basis {
  color: var(--ink-muted);
}

.step-label {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.guide-figure {
  margin: 0 0 56px;
  aspect-ratio: 16 / 7;
}

.guide-boundary .boundary-item {
  padding: 20px 22px;
}

.guide-faq .faq-list {
  display: block;
}

.guide-next .next-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.guide-next .next-item a {
  display: block;
  padding: 14px 18px;
  min-height: 44px;
  background-color: var(--bg-block);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-title);
  font-size: 15px;
}

.guide-next .next-item a:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* ==========================================================================
   pages · 404
   ========================================================================== */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px var(--gutter) 72px;
}

.error-hero {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.error-code {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 12px;
}

.error-main h1 {
  font-size: 32px;
  line-height: 1.3;
  max-width: 24ch;
}

.error-lead {
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 56ch;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 22px;
  background-color: var(--ink-title);
  color: #fdfbf8;
  border-radius: var(--radius);
  font-size: 15px;
}

.error-home-link:hover {
  background-color: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

.error-routes,
.error-tips {
  margin-top: 44px;
}

.error-routes-desc {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-muted);
}

.error-route-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.error-route-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background-color: var(--bg-block);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-route-list a {
  font-size: 16px;
  color: var(--ink-title);
  font-weight: 600;
}

.error-route-list a:hover {
  color: var(--accent);
}

.error-route-list span {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.error-tip-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.error-tip-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-body);
  max-width: 66ch;
}

/* ==========================================================================
   layout · 页脚
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background-color: #f2eee7;
  border-top: 1px solid var(--line);
  color: var(--ink-body);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 52px var(--gutter) 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-title);
}

.footer-desc {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 34ch;
  line-height: 1.7;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-title);
  margin-bottom: 12px;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  font-size: 14px;
  color: var(--ink-muted);
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 32px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 22px;
  }

  .site-header {
    height: 60px;
  }

  .header-inner {
    gap: 12px;
  }

  .brand-tag {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    background-color: var(--bg-page);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 12px 4px;
    min-height: 44px;
    border-bottom: 1px solid var(--line);
  }

  .nav-link:last-child {
    border-bottom: 0;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-top: 40px;
  }

  .hero-title {
    font-size: 28px;
    max-width: none;
  }

  .hero-media {
    aspect-ratio: 16 / 10;
  }

  .channels,
  .collections,
  .fields,
  .guide,
  .updates {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .channel-row,
  .section-channels .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .channel-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .section-channels .channel-enter {
    justify-self: start;
  }

  .update-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .field-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-name {
    grid-row: auto;
  }

  .field-example {
    grid-column: 1;
  }

  .page-title,
  .error-main h1 {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 15px;
  }

  h1,
  .page-title,
  .hero-title,
  .error-main h1 {
    font-size: 24px;
  }

  h2,
  .section-title {
    font-size: 20px;
  }

  .inner-main {
    padding-top: 20px;
    padding-bottom: 56px;
  }

  .hero-inner {
    padding-top: 30px;
    padding-bottom: 28px;
  }

  .hero-entries {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-entry-link {
    padding: 14px 0;
  }

  .collection-grid,
  .related-grid,
  .boundary-list,
  .step-list,
  .guide-steps .step-list,
  .scope-list,
  .section-items .item-groups,
  .error-route-list,
  .guide-next .next-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-question {
    padding: 14px 44px 14px 16px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 12px 16px 16px;
  }

  .data-table {
    min-width: 520px;
    font-size: 14px;
  }

  .data-table thead th,
  .data-table tbody th,
  .data-table tbody td {
    padding: 12px 14px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    padding-top: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-desc {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
