/* ==========================================================================
   光棍手机电影 · 全站样式表
   站点：hulinshi.cn
   说明：单色品牌风，黑白灰为主体，识别色 #c2410c 用于入口与状态标记
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base · 基础重置与全局变量
   -------------------------------------------------------------------------- */

:root {
  --ink: #111111;
  --ink-soft: #555555;
  --ink-faint: #8a8a8a;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --surface: #f7f7f7;
  --surface-deep: #efefef;
  --paper: #ffffff;
  --accent: #c2410c;
  --accent-soft: #fdf1ea;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.06);
  --container: 1120px;
  --reading: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt {
  margin: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

figure {
  margin: 0;
}

figcaption {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
}

strong {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   2. layout · 全站骨架：页头、导航、主容器、面包屑、页脚
   -------------------------------------------------------------------------- */

/* 2.1 页头与品牌标识 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink);
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}

.brand-tag {
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.2;
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
}

/* 2.2 主导航 */

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
  background: var(--surface);
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: background-color 0.18s ease;
}

.nav-toggle:hover .nav-toggle-bar {
  background: var(--accent);
}

/* 2.3 主内容容器 */

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 72px;
}

.inner-main .page-header,
.inner-main .content-section,
.inner-main .section,
.inner-main .channel-overview,
.inner-main .channel-bridge,
.inner-main .channel-boundary {
  max-width: var(--reading);
}

/* 2.4 面包屑 */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 2.5 内页标题区 */

.page-header {
  padding-bottom: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
}

.page-description {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0;
}

/* 2.6 页脚 */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 80px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 28px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.footer-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: var(--ink-soft);
  min-height: 22px;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.footer-copy {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
}

/* --------------------------------------------------------------------------
   3. components · 通用组件
   -------------------------------------------------------------------------- */

/* 3.1 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #9a3309;
  border-color: #9a3309;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* 3.2 区块标题组 */

.section-head {
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-desc,
.section-intro,
.section-lead {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0;
}

.section-desc a,
.section-intro a,
.section-lead a {
  color: var(--accent);
  border-bottom: 1px solid rgba(194, 65, 12, 0.35);
}

.section-desc a:hover,
.section-intro a:hover,
.section-lead a:hover,
.section-desc a:focus-visible,
.section-intro a:focus-visible,
.section-lead a:focus-visible {
  color: #9a3309;
  border-bottom-color: #9a3309;
}

.subsection-title {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.section-foot {
  margin-top: 20px;
  font-size: 14px;
}

.section-foot a {
  color: var(--accent);
  font-weight: 600;
}

.section-foot a:hover,
.section-foot a:focus-visible {
  color: #9a3309;
}

/* 3.3 表格容器与数据表 */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.table-caption,
.data-table caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.field-table,
.data-table {
  min-width: 560px;
  font-size: 14px;
}

.field-table th,
.field-table td,
.data-table th,
.data-table td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.field-table thead th,
.data-table thead th {
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody th,
.data-table tbody th {
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  white-space: nowrap;
}

.field-table td,
.data-table td {
  color: var(--ink-soft);
}

.field-table .field-name {
  font-weight: 600;
  color: var(--ink);
}

.field-table td:first-child,
.data-table td:first-child {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* 3.4 编号步骤（首页概览 / 内页路径共用基础） */

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* 3.5 相关链接列表 */

.related-list,
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.related-item a {
  display: block;
  min-height: 44px;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-item a:hover,
.related-item a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* 3.6 图片容器通用约束 */

.hero-media img,
.card-media img,
.section-figure img,
.section-media img,
.content-figure img,
.collection-figure img,
.channel-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-deep);
}

/* --------------------------------------------------------------------------
   4. pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  display: block;
}

.home-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 0;
}

.home-section:last-of-type {
  padding-bottom: 8px;
}

/* 4.1 首屏 */

.home-hero {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-text {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  min-width: 0;
  margin: 0;
}

.hero-media img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}

.hero-media figcaption {
  margin-top: 10px;
}

/* 4.2 题材频道总览 */

.channel-list {
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 24px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.18s ease;
}

.channel-row:hover {
  background: var(--surface);
}

.channel-main {
  min-width: 0;
}

.channel-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.channel-focus {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 4px;
}

.channel-scope {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
}

.channel-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  white-space: nowrap;
}

.channel-link:hover,
.channel-link:focus-visible {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

/* 4.3 专题片单速览 */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.collection-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-media {
  margin: 0 0 16px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-scope {
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 8px;
}

.card-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.card-link::after {
  content: "→";
  margin-left: 6px;
  font-size: 13px;
}

.card-link:hover,
.card-link:focus-visible {
  color: #9a3309;
}

/* 4.4 条目字段摘要 */

.section-fields .table-wrap {
  background: var(--paper);
}

/* 4.5 查阅路径三步 */

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: home-step;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-body {
  min-width: 0;
}

.step-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* 4.6 范围调整记录 */

.log-list {
  border-top: 1px solid var(--line);
}

.log-item {
  display: grid;
  grid-template-columns: 110px 92px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.log-date {
  font-size: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.log-tag {
  display: inline-block;
  justify-self: start;
  padding: 2px 10px;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  white-space: nowrap;
}

.log-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. pages · 内页通用区块
   -------------------------------------------------------------------------- */

.content-section,
.section {
  margin-bottom: 48px;
}

.content-section:last-child,
.section:last-child {
  margin-bottom: 0;
}

.section-text {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.section-text-cta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14px;
}

.section-text-cta a {
  color: var(--accent);
  font-weight: 600;
}

.section-text-cta a:hover,
.section-text-cta a:focus-visible {
  color: #9a3309;
}

/* 5.1 要点列表（站点说明页） */

.point-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.point-item {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--ink-soft);
}

.point-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* 5.2 配图区块 */

.section-figure,
.section-media,
.content-figure {
  margin: 0 0 24px;
}

.section-figure img,
.content-figure img {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}

.section-media img {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}

.figure-caption,
.media-caption {
  margin-top: 10px;
}

/* 5.3 收录范围列表 */

.scope-list {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

.scope-item {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.scope-name {
  color: var(--ink);
  margin-right: 8px;
}

/* 5.4 规则列表 */

.rule-list {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}

.rule-item {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rule-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.rule-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* 5.5 边界卡片 */

.boundary-grid,
.boundary-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.boundary-card,
.boundary-item {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.boundary-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.boundary-entry {
  margin-top: 20px;
  font-size: 14px;
}

.boundary-entry a {
  color: var(--accent);
  font-weight: 600;
  margin-right: 20px;
}

.boundary-entry a:hover,
.boundary-entry a:focus-visible {
  color: #9a3309;
}

/* 5.6 时间线（范围调整记录） */

.timeline-list {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 92px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  font-size: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.timeline-direction {
  display: inline-block;
  justify-self: start;
  padding: 2px 10px;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  white-space: nowrap;
}

.timeline-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* --------------------------------------------------------------------------
   6. pages · 题材频道页
   -------------------------------------------------------------------------- */

.channel-overview,
.channel-bridge,
.channel-boundary {
  margin-bottom: 48px;
}

.channel-overview .section-intro,
.channel-bridge .section-intro,
.channel-boundary .section-intro {
  margin-bottom: 24px;
}

.channel-rows {
  display: grid;
  gap: 24px;
}

.channel-rows .channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.channel-rows .channel-row:hover {
  background: var(--paper);
  border-color: var(--line-strong);
}

.channel-row-main {
  min-width: 0;
}

.channel-row-main .channel-name {
  font-size: 20px;
  margin-bottom: 14px;
}

.channel-fields {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  font-size: 14px;
}

.channel-fields dt {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.channel-fields dd {
  color: var(--ink-soft);
  min-width: 0;
}

.channel-row-media {
  margin: 0;
  min-width: 0;
}

.channel-row-media img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}

.channel-row-media figcaption {
  margin-top: 8px;
}

.channel-row-entry {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.channel-row-entry a {
  color: var(--accent);
  font-weight: 600;
}

.channel-row-entry a:hover,
.channel-row-entry a:focus-visible {
  color: #9a3309;
}

/* 6.1 频道与片单衔接 */

.bridge-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: bridge;
}

.bridge-step {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bridge-step-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.bridge-step p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.bridge-entry {
  margin-top: 20px;
  font-size: 14px;
}

.bridge-entry a {
  color: var(--accent);
  font-weight: 600;
}

.bridge-entry a:hover,
.bridge-entry a:focus-visible {
  color: #9a3309;
}

/* --------------------------------------------------------------------------
   7. pages · 专题片单页
   -------------------------------------------------------------------------- */

.section-collection-list,
.section-collection-detail,
.section-collection-map {
  margin-bottom: 48px;
}

.section-collection-list .collection-grid {
  margin-top: 4px;
}

.collection-figure {
  margin: 0 0 16px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.collection-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.collection-scope {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.collection-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  font-size: 13px;
  padding: 12px 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.collection-facts dt {
  color: var(--ink-faint);
  white-space: nowrap;
}

.collection-facts dd {
  color: var(--ink);
  min-width: 0;
}

.collection-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.collection-link:hover,
.collection-link:focus-visible {
  color: #9a3309;
}

/* 7.1 片单明细 */

.collection-detail-list {
  display: grid;
  gap: 20px;
}

.detail-block {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
}

.detail-list {
  display: grid;
  gap: 8px;
}

.detail-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   8. pages · 条目字段说明页
   -------------------------------------------------------------------------- */

.page-layout {
  display: block;
}

.page-layout .content-section {
  margin-bottom: 48px;
}

.page-layout .content-section:last-child {
  margin-bottom: 0;
}

.missing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.missing-item {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.missing-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.missing-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.related-section .related-list {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   9. pages · 查阅路径页
   -------------------------------------------------------------------------- */

.section-path-steps,
.section-mobile-order,
.section-faq,
.section-related {
  margin-bottom: 48px;
}

.path-steps {
  display: grid;
  gap: 16px;
  margin-top: 4px;
}

.path-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-step .step-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.path-step .step-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.path-step .step-desc a {
  color: var(--accent);
  font-weight: 600;
}

.path-step .step-desc a:hover,
.path-step .step-desc a:focus-visible {
  color: #9a3309;
}

/* 9.1 移动端浏览顺序 */

.order-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.order-item {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.order-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.order-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* 9.2 常见问题 */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.faq-question {
  position: relative;
  display: block;
  padding: 16px 46px 16px 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 18px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* --------------------------------------------------------------------------
   10. pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 24px 80px;
}

.error-block {
  max-width: var(--reading);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.error-code {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 12px;
  font-variant-numeric: tabular-nums;
}

.error-block h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}

.error-text {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 620px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.error-links {
  max-width: var(--reading);
  padding-top: 36px;
}

.error-links h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.error-link-list a {
  display: block;
  min-height: 44px;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-link-list a:hover,
.error-link-list a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   11. responsive · 响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .footer-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-list,
  .bridge-steps,
  .order-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* 页头与移动导航 */
  .header-inner {
    padding: 0 16px;
    min-height: 58px;
    flex-wrap: wrap;
    gap: 0;
  }

  .brand-tag {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 46px;
    padding: 0 4px;
    font-size: 16px;
    border-radius: 0;
  }

  .nav-link.is-current {
    box-shadow: inset 3px 0 0 var(--accent);
    padding-left: 12px;
  }

  /* 主容器 */
  .inner-main {
    padding: 24px 16px 56px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-header {
    margin-bottom: 32px;
  }

  /* 首页 */
  .home-section {
    padding: 40px 16px 0;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 16px 40px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-media {
    order: -1;
    max-width: 520px;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }

  .channel-link {
    justify-self: start;
  }

  .collection-grid,
  .step-list,
  .bridge-steps,
  .order-list,
  .boundary-grid,
  .boundary-pair,
  .missing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .log-item,
  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .log-tag,
  .timeline-direction {
    justify-self: start;
  }

  /* 题材频道页 */
  .channel-rows .channel-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }

  .channel-row-media {
    order: -1;
  }

  .channel-row-entry {
    grid-column: auto;
  }

  .channel-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .channel-fields dt {
    margin-top: 8px;
  }

  /* 页脚 */
  .site-footer {
    margin-top: 56px;
  }

  .footer-inner {
    padding: 36px 16px 24px;
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }
}

@media (max-width: 480px) {
  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .btn,
  .error-actions .btn {
    flex: 1 1 auto;
  }

  .collection-card,
  .detail-block,
  .bridge-step,
  .order-item,
  .missing-item,
  .boundary-card,
  .boundary-item,
  .path-step,
  .step-item {
    padding: 16px;
  }
}

/* 打印与动效偏好 */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
