/* ==========================================================================
   午夜影院 · 全站样式表
   站点：jauhfalw.cn
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 基础重置与全站变量
   -------------------------------------------------------------------------- */
:root {
  --ink: #1f3a5f;
  --ink-soft: #2c4a72;
  --map-teal: #2f7f8f;
  --paper: #f7f5f0;
  --paper-alt: #e8e6e0;
  --body-text: #2c2c2c;
  --text-muted: #5a5f66;
  --line: #cfcabe;
  --line-strong: #b3ada0;
  --warm: #c2683a;
  --warm-soft: #a8552c;
  --white: #ffffff;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1180px;
  --shell-narrow: 1080px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--body-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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(--map-teal);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

time {
  font-variant-numeric: tabular-nums;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--map-teal);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout · 骨架：页头 / 导航 / 主容器 / 面包屑 / 页脚
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  color: var(--body-text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(247, 245, 240, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-logo::before {
  content: "";
  width: 10px;
  height: 22px;
  border-radius: 2px;
  background-color: var(--map-teal);
}

.brand-logo:hover {
  color: var(--map-teal);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--map-teal);
  border-bottom-color: var(--map-teal);
}

.nav-link.is-current {
  color: var(--map-teal);
  border-bottom-color: var(--map-teal);
  font-weight: 600;
}

.nav-link-quiet {
  color: var(--text-muted);
  border-bottom-style: dashed;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background-color: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  padding-bottom: 56px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
  color: var(--map-teal);
  border-bottom-color: var(--map-teal);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

.page-header {
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}

.page-description {
  margin-top: 12px;
  max-width: 780px;
  font-size: 16px;
  color: var(--text-muted);
}

.page-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

.layout-shell {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.layout-shell.sidebar-right {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.layout-main,
.layout-content {
  min-width: 0;
}

.layout-aside,
.guide-aside,
.channel-aside,
.topics-aside,
.field-index {
  min-width: 0;
}

.site-footer {
  flex-shrink: 0;
  background-color: var(--paper-alt);
  border-top: 1px solid var(--line-strong);
  color: var(--body-text);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px 24px 28px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer-group-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
}

.footer-list a:hover {
  color: var(--map-teal);
  border-bottom-color: var(--map-teal);
}

.footer-scope {
  padding: 20px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 900px;
}

.footer-brand {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13.5px;
  color: var(--text-muted);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--white);
}

.back-to-top:hover {
  color: var(--white);
  background-color: var(--map-teal);
  border-color: var(--map-teal);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background-color: var(--ink);
  color: var(--white);
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 60;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   components · 通用区块、编号、卡片、表格、清单、提示
   -------------------------------------------------------------------------- */
.section-head {
  max-width: var(--shell);
  margin: 0 auto 22px;
  padding: 0 24px;
}

.section-title {
  font-size: 23px;
  color: var(--ink);
}

.section-desc,
.section-lead,
.section-intro {
  margin-top: 10px;
  max-width: 760px;
  font-size: 15.5px;
  color: var(--text-muted);
}

.section-foot {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.section-foot a {
  color: var(--warm);
  border-bottom: 1px solid var(--warm);
  padding-bottom: 1px;
}

.section-foot a:hover {
  color: var(--warm-soft);
  border-bottom-color: var(--warm-soft);
}

.route-no,
.route-num,
.step-no,
.step-index,
.topic-no,
.topic-nav-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--map-teal);
  background-color: rgba(47, 127, 143, 0.1);
  border: 1px solid rgba(47, 127, 143, 0.35);
  border-radius: var(--radius-sm);
}

.route-no,
.route-num {
  min-width: 42px;
  height: 26px;
  padding: 0 8px;
}

.step-no,
.step-index {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.topic-no,
.topic-nav-no {
  min-width: 46px;
  height: 26px;
  padding: 0 8px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
}

.field-table,
.compare-table {
  min-width: 620px;
  font-size: 14.5px;
}

.table-caption,
.compare-caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-muted);
  background-color: var(--paper-alt);
  border-bottom: 1px solid var(--line);
}

.field-table thead th,
.compare-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink);
  background-color: var(--paper-alt);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.field-table tbody th,
.field-table tbody td,
.compare-table tbody th,
.compare-table tbody td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--body-text);
}

.field-table tbody th {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
  white-space: nowrap;
  background-color: rgba(232, 230, 224, 0.45);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.field-table tbody tr:hover,
.compare-table tbody tr:hover {
  background-color: rgba(47, 127, 143, 0.05);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.step-item:last-child {
  border-bottom: none;
}

.step-text {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  color: var(--body-text);
}

.step-link {
  flex-shrink: 0;
  align-self: center;
  font-size: 14px;
  color: var(--warm);
  border-bottom: 1px solid var(--warm);
}

.step-link:hover {
  color: var(--warm-soft);
  border-bottom-color: var(--warm-soft);
}

.tip-bar {
  margin-top: 20px;
  padding: 14px 16px;
  font-size: 14.5px;
  color: var(--warm);
  background-color: rgba(194, 104, 58, 0.06);
  border: 1px solid rgba(194, 104, 58, 0.4);
  border-radius: var(--radius-sm);
}

.aside-title {
  font-size: 16px;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--map-teal);
  margin-bottom: 14px;
}

.aside-lead,
.aside-note,
.aside-tip {
  font-size: 14px;
  color: var(--text-muted);
}

.aside-note {
  margin-bottom: 12px;
}

.aside-tip {
  margin-top: 14px;
  padding: 10px 12px;
  color: var(--warm);
  border: 1px solid rgba(194, 104, 58, 0.4);
  border-radius: var(--radius-sm);
  background-color: rgba(194, 104, 58, 0.05);
}

.aside-list,
.aside-link-list,
.field-index-list,
.toc-list,
.topic-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-item a,
.aside-link-list a,
.field-index-list a,
.toc-list a,
.topic-nav-item a {
  display: block;
  padding: 8px 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.aside-item a:hover,
.aside-link-list a:hover,
.field-index-list a:hover,
.toc-list a:hover,
.topic-nav-item a:hover {
  color: var(--map-teal);
  background-color: rgba(47, 127, 143, 0.08);
  border-left-color: var(--map-teal);
}

.aside-foot {
  margin-top: 16px;
  font-size: 14px;
}

.aside-foot a {
  color: var(--warm);
  border-bottom: 1px solid var(--warm);
}

.aside-foot a:hover {
  color: var(--warm-soft);
  border-bottom-color: var(--warm-soft);
}

.aside-block {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.content-media,
.hero-figure,
.channel-media,
.topic-figure,
.guide-figure,
.content-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--paper-alt);
}

.content-media img,
.hero-figure img,
.channel-media img,
.topic-figure img,
.guide-figure img,
.content-figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-figure img {
  aspect-ratio: 4 / 3;
}

figcaption,
.figure-caption {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text-muted);
  background-color: var(--white);
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.home-hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.9fr);
  grid-template-areas:
    "lead entries figure"
    "media media figure";
  gap: 28px 32px;
  align-items: start;
}

.hero-lead {
  grid-area: lead;
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--map-teal);
  border-bottom: 1px solid var(--map-teal);
  padding-bottom: 2px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 34px;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: 0;
}

.hero-text {
  margin-top: 16px;
  font-size: 16px;
  color: var(--body-text);
}

.hero-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 12px;
  border-left: 2px solid var(--warm);
}

.hero-entries {
  grid-area: entries;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.entry-block {
  padding: 16px 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-block:hover {
  border-color: var(--map-teal);
}

.entry-title {
  margin-top: 10px;
  font-size: 17px;
}

.entry-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.entry-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--warm);
  border-bottom: 1px solid var(--warm);
}

.entry-link:hover {
  color: var(--warm-soft);
  border-bottom-color: var(--warm-soft);
}

.hero-figure {
  grid-area: figure;
  min-width: 0;
}

.content-media-primary {
  grid-area: media;
  min-width: 0;
}

.home-channels,
.home-topics,
.home-fields,
.home-order,
.home-updates {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 46px 24px 0;
}

.home-channels .section-head,
.home-topics .section-head,
.home-fields .section-head,
.home-order .section-head,
.home-updates .section-head {
  padding: 0;
  margin-bottom: 22px;
}

.channel-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.channel-item {
  position: relative;
  padding: 18px 20px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--map-teal);
}

.channel-item:hover {
  border-color: var(--map-teal);
  border-top-color: var(--ink);
}

.channel-name {
  margin-top: 12px;
  font-size: 18px;
}

.channel-name a {
  color: var(--ink);
}

.channel-name a:hover {
  color: var(--map-teal);
}

.channel-scope {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--body-text);
}

.channel-sample {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.topic-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.topic-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1.2fr) 120px;
  gap: 18px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.topic-row:hover {
  background-color: rgba(47, 127, 143, 0.05);
}

.topic-name {
  font-size: 17px;
}

.topic-name a {
  color: var(--ink);
}

.topic-name a:hover {
  color: var(--map-teal);
}

.topic-reason,
.topic-makeup {
  font-size: 14.5px;
  color: var(--text-muted);
  min-width: 0;
}

.topic-path {
  font-size: 13.5px;
  color: var(--warm);
  font-family: var(--font-mono);
  text-align: right;
}

.home-fields .table-wrap {
  background-color: var(--white);
}

.home-order .step-list {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 20px;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.update-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 14px 16px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--map-teal);
  border-radius: var(--radius-sm);
}

.update-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--map-teal);
  grid-column: 1;
  grid-row: 1;
}

.update-type {
  grid-column: 2;
  grid-row: 1;
  font-size: 13px;
  color: var(--warm);
  text-align: right;
}

.update-scope {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 14.5px;
  color: var(--body-text);
}

/* --------------------------------------------------------------------------
   pages · 题材频道
   -------------------------------------------------------------------------- */
.page-channels .page-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.page-primary {
  min-width: 0;
}

.channel-blocks {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.channel-block {
  padding: 22px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.channel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.channel-head .channel-name {
  margin-top: 0;
  font-size: 20px;
}

.channel-block .channel-media {
  margin-top: 18px;
}

.channel-body {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.channel-desc {
  font-size: 15px;
  color: var(--body-text);
  min-width: 0;
}

.channel-types {
  font-size: 14px;
  color: var(--text-muted);
  min-width: 0;
  padding-left: 14px;
  border-left: 2px solid var(--paper-alt);
}

.channel-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--warm);
  border-bottom: 1px solid var(--warm);
}

.channel-link:hover {
  color: var(--warm-soft);
  border-bottom-color: var(--warm-soft);
}

.channel-judge,
.channel-compare {
  margin-top: 40px;
}

.judge-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.judge-item {
  padding: 16px 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-bottom: 3px solid var(--map-teal);
}

.judge-name {
  font-size: 16px;
  color: var(--ink);
}

.judge-desc {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.compare-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.compare-note a {
  color: var(--warm);
  border-bottom: 1px solid var(--warm);
}

.channel-aside {
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 86px;
}

/* --------------------------------------------------------------------------
   pages · 专题片单
   -------------------------------------------------------------------------- */
.topics-layout {
  grid-template-columns: 260px minmax(0, 1fr);
}

.topics-aside {
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 86px;
}

.topic-nav-item a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topic-nav-name {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.topic-nav-item a:hover .topic-nav-name {
  color: var(--map-teal);
}

.topics-main {
  min-width: 0;
}

.topic-blocks {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.topic-block {
  padding: 22px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.topic-head .topic-name {
  margin-top: 0;
  font-size: 20px;
}

.topic-figure {
  margin-top: 18px;
}

.topic-body {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.topic-col {
  min-width: 0;
  padding: 14px 16px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--body-text);
}

.topic-path {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.topic-path a {
  color: var(--warm);
  border-bottom: 1px solid var(--warm);
}

.topic-path a:hover {
  color: var(--warm-soft);
  border-bottom-color: var(--warm-soft);
}

.topic-channel-map {
  margin-top: 40px;
}

.topic-tips {
  margin-top: 40px;
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.tip-card {
  padding: 18px 20px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--warm);
  border-radius: var(--radius-sm);
}

.tip-title {
  font-size: 16px;
  color: var(--ink);
}

.tip-card p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.tip-link {
  font-size: 14px;
}

.tip-link a {
  color: var(--warm);
  border-bottom: 1px solid var(--warm);
}

/* --------------------------------------------------------------------------
   pages · 浏览指引
   -------------------------------------------------------------------------- */
.layout-shell.sidebar-right {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.guide-steps,
.precheck,
.mistakes {
  padding-bottom: 8px;
}

.guide-figure {
  margin-top: 18px;
}

.guide-steps .step-list {
  margin-top: 22px;
}

.guide-steps .step-item {
  padding: 18px 0;
}

.step-body {
  min-width: 0;
  flex: 1;
}

.step-title {
  font-size: 16px;
  color: var(--ink);
}

.step-body p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--body-text);
}

.step-meta {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.step-meta a {
  color: var(--warm);
  border-bottom: 1px solid var(--warm);
}

.step-check {
  margin-top: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--map-teal);
  background-color: rgba(47, 127, 143, 0.07);
  border-left: 2px solid var(--map-teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.precheck {
  margin-top: 40px;
}

.check-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.check-item {
  padding: 16px 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-title {
  font-size: 15.5px;
  color: var(--ink);
}

.check-text {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.mistakes {
  margin-top: 40px;
}

.mistake-item {
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.mistake-item:last-child {
  border-bottom: none;
}

.mistake-title {
  font-size: 16px;
  color: var(--warm);
}

.mistake-text {
  margin-top: 8px;
  font-size: 15px;
  color: var(--body-text);
}

.guide-aside {
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 86px;
}

.toc-item.toc-sub a {
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.toc-item.toc-sub a:hover {
  color: var(--map-teal);
}

/* --------------------------------------------------------------------------
   pages · 收录边界与反馈
   -------------------------------------------------------------------------- */
.page-layout.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.field-index {
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 86px;
}

.field-index-list a {
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.section {
  padding-bottom: 8px;
}

.field-table-section .content-figure {
  margin-top: 18px;
}

.field-table-section .table-wrap {
  margin-top: 20px;
}

.fill-rules-section {
  margin-top: 40px;
}

.faq-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--map-teal);
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
  background-color: rgba(47, 127, 143, 0.06);
}

.faq-answer {
  padding: 14px 18px 18px;
  font-size: 15px;
  color: var(--body-text);
}

.scope-feedback-section {
  margin-top: 40px;
}

.scope-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.scope-column {
  min-width: 0;
  padding: 18px 20px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.subsection-title {
  font-size: 16px;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scope-item,
.scope-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--body-text);
}

.scope-item::before,
.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background-color: var(--map-teal);
}

.feedback-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--body-text);
}

.feedback-step .step-text {
  flex: 1;
  min-width: 0;
}

.field-name {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--map-teal);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.site-error .error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 24px 90px;
}

.error-panel {
  width: 100%;
  max-width: 640px;
  padding: 36px 32px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--map-teal);
  border-radius: var(--radius);
  text-align: left;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--map-teal);
  letter-spacing: 0;
}

.error-title {
  margin-top: 12px;
  font-size: 28px;
  color: var(--ink);
}

.error-text {
  margin-top: 14px;
  font-size: 15.5px;
  color: var(--text-muted);
}

.error-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
  color: var(--white);
  background-color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
}

.error-btn:hover {
  color: var(--white);
  background-color: var(--map-teal);
  border-color: var(--map-teal);
}

.error-link {
  font-size: 14.5px;
  color: var(--warm);
  border-bottom: 1px solid var(--warm);
}

.error-link:hover {
  color: var(--warm-soft);
  border-bottom-color: var(--warm-soft);
}

/* --------------------------------------------------------------------------
   responsive · 平板与手机
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "lead lead"
      "entries figure"
      "media media";
  }

  .page-layout,
  .page-layout.sidebar-left,
  .layout-shell,
  .layout-shell.sidebar-right,
  .topics-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-aside,
  .topics-aside,
  .guide-aside,
  .field-index {
    position: static;
  }

  .topic-row {
    grid-template-columns: 56px minmax(0, 1fr) 110px;
  }

  .topic-makeup {
    grid-column: 2 / -1;
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 12px 18px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    order: 3;
    width: 100%;
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    min-height: 46px;
    padding: 0 6px;
    border-bottom: 1px solid var(--line);
  }

  .inner-main {
    padding: 0 18px 52px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "lead"
      "entries"
      "figure"
      "media";
    padding: 28px 18px 8px;
    gap: 22px;
  }

  .hero-title {
    font-size: 26px;
  }

  .section-head,
  .home-channels,
  .home-topics,
  .home-fields,
  .home-order,
  .home-updates {
    padding-left: 18px;
    padding-right: 18px;
  }

  .home-channels .section-head,
  .home-topics .section-head,
  .home-fields .section-head,
  .home-order .section-head,
  .home-updates .section-head {
    padding-left: 0;
    padding-right: 0;
  }

  .section-title {
    font-size: 20px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-header {
    padding: 18px 0 22px;
    margin-bottom: 26px;
  }

  .channel-body,
  .topic-body,
  .scope-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-types {
    padding-left: 0;
    padding-top: 12px;
    border-left: none;
    border-top: 2px solid var(--paper-alt);
  }

  .topic-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 2px;
  }

  .topic-path {
    text-align: left;
  }

  .channel-aside,
  .topics-aside,
  .guide-aside,
  .field-index {
    padding: 16px;
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .footer-inner {
    padding: 34px 18px 24px;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .error-panel {
    padding: 26px 20px;
  }

  .error-title {
    font-size: 22px;
  }

  .step-item {
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    font-size: 18px;
  }

  .hero-title {
    font-size: 23px;
  }

  .channel-list,
  .update-list,
  .judge-list,
  .check-list,
  .tip-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-table,
  .compare-table {
    min-width: 540px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
