/* ==========================================================================
   午夜影院在线观看 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1c2028;
  --text: #e8eaf0;
  --text-dim: #9aa1b1;
  --accent: #e5484d;
  --accent-soft: rgba(229, 72, 77, 0.14);
  --line: #262a33;
  --line-strong: #333846;
  --radius: 6px;
  --radius-sm: 4px;
  --content: 1120px;
  --gap: 24px;
  --font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--text);
  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);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ==========================================================================
   layout · 全站骨架
   ========================================================================== */

.site-body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 17, 21, 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  line-height: 1.25;
}

.brand-mark {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.brand-sub {
  font-size: 12px;
  color: var(--text-dim);
}

.brand:hover .brand-mark {
  color: var(--accent);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--text);
  background: var(--surface);
}

.nav-list a.is-current {
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  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: var(--text);
  border-radius: 1px;
}

.site-main {
  display: block;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
}

.inner-main {
  padding-top: 24px;
  padding-bottom: 64px;
}

.site-footer {
  margin-top: 48px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  max-width: 320px;
}

.footer-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.footer-desc {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-dim);
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-list a {
  font-size: 14px;
  color: var(--text-dim);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--content);
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

.back-top {
  font-size: 13px;
  color: var(--text-dim);
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.back-top:hover,
.back-top:focus-visible {
  color: var(--text);
  border-color: var(--accent);
}

/* 内页公共骨架：面包屑 + 页面标题区 */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 18px;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-dim);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text);
}

.page-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.page-description {
  margin-top: 14px;
  max-width: 44em;
  font-size: 16px;
  color: var(--text-dim);
}

/* ==========================================================================
   components · 通用模块
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #c93a3f;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

.text-link,
.entry-link,
.section-foot a,
.section-note a {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.text-link:hover,
.text-link:focus-visible,
.entry-link:hover,
.entry-link:focus-visible,
.section-foot a:hover,
.section-foot a:focus-visible,
.section-note a:hover,
.section-note a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* 区块标题组 */

.section-head {
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.section-desc,
.section-intro,
.section-lead {
  margin-top: 10px;
  max-width: 46em;
  font-size: 15px;
  color: var(--text-dim);
}

.section-foot {
  margin-top: 20px;
  font-size: 14px;
}

.section-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

.section-note a + a {
  margin-left: 16px;
}

/* 表格 */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.field-table,
.data-table {
  min-width: 560px;
  font-size: 15px;
}

.field-table caption,
.data-table caption,
.table-caption,
.field-table-caption {
  padding: 14px 18px 0;
  text-align: left;
  font-size: 14px;
  color: var(--text-dim);
}

.field-table th,
.field-table td,
.data-table th,
.data-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.field-table thead th,
.data-table thead th {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  white-space: nowrap;
}

.field-table tbody th,
.data-table tbody th {
  font-weight: 700;
  color: var(--text);
  width: 22%;
}

.field-table tbody td,
.data-table tbody td {
  color: var(--text-dim);
}

.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 tr:hover,
.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* 步骤清单（首页 / 频道页共用容器，内部类各自限定） */

.step-list {
  display: grid;
  gap: 16px;
}

.step-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.step-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.step-desc {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-dim);
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

.home-main {
  padding-bottom: 24px;
}

/* 首屏 */

.hero {
  padding: 48px 0 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.hero-title {
  margin-top: 12px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.hero-lead {
  margin-top: 16px;
  max-width: 38em;
  font-size: 16px;
  color: var(--text-dim);
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-paths {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.hero-paths-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.hero-paths .path-list {
  display: grid;
  gap: 10px;
}

.hero-paths .path-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.hero-paths .path-item a {
  display: block;
  padding: 12px 14px;
}

.hero-paths .path-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.hero-paths .path-note {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-dim);
}

.hero-paths .path-item:hover {
  border-color: var(--accent);
}

.hero-paths .path-item:hover .path-name {
  color: var(--accent);
}

.hero-media {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.hero-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* 首页通用区块间距 */

.home-section {
  padding: 56px 0 8px;
}

.home-section + .home-section {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 48px;
}

/* 频道方向总览 */

.channel-rows {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(180px, 0.9fr) minmax(140px, 0.5fr);
  gap: 20px;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}

.channel-row-main {
  min-width: 0;
}

.channel-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.channel-intro {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-dim);
}

.channel-fit {
  font-size: 14px;
  color: var(--text-dim);
}

.channel-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  justify-self: start;
}

.channel-link:hover,
.channel-link:focus-visible {
  color: var(--text);
}

/* 本期专题片单速览 */

.special-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.special-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.special-card:hover {
  border-color: var(--line-strong);
}

.special-media {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.special-media img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.special-name {
  padding: 18px 20px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.special-scope {
  padding: 10px 20px 0;
  font-size: 14px;
  color: var(--text-dim);
}

.special-fields {
  padding: 8px 20px 0;
  font-size: 14px;
  color: var(--text-dim);
}

.special-card .btn {
  margin: 18px 20px 20px;
  align-self: flex-start;
}

/* 条目字段与收录边界摘要 */

.section-fields .field-table th {
  width: 20%;
}

/* 浏览顺序三步摘要 */

.section-flow .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-flow .step-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-flow .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.section-flow .step-note {
  font-size: 15px;
  color: var(--text-dim);
}

/* 收录边界与站内反馈入口 */

.boundary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.boundary-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.boundary-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.boundary-text {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-dim);
}

/* 站内实景图集 */

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.visual-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.visual-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.visual-caption {
  padding: 12px 16px 16px;
  font-size: 14px;
  color: var(--text-dim);
}

/* ==========================================================================
   pages · 题材频道
   ========================================================================== */

.page-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 48px;
}

.page-hero img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.page-hero figcaption {
  padding: 12px 18px 16px;
  font-size: 14px;
  color: var(--text-dim);
}

.section {
  padding-bottom: 48px;
}

.section + .section {
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.section-paths .path-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.section-paths .path-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.section-paths .path-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.section-paths .path-desc {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-dim);
}

/* 频道行列表 */

.section-channels .channel-row {
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.section-channels .channel-row:last-child {
  border-bottom: 1px solid var(--line);
}

.channel-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.channel-figure img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.channel-body {
  min-width: 0;
}

.channel-desc {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-dim);
}

.channel-meta {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 14px;
  font-size: 14px;
}

.channel-meta dt {
  color: var(--text-dim);
}

.channel-meta dd {
  margin: 0;
  color: var(--text);
}

.channel-meta dd a {
  color: var(--accent);
  font-weight: 700;
}

.channel-meta dd a:hover,
.channel-meta dd a:focus-visible {
  color: var(--text);
}

/* 频道与专题对应关系 */

.section-mapping .section-intro a {
  color: var(--accent);
  font-weight: 700;
}

.section-mapping .section-intro a:hover,
.section-mapping .section-intro a:focus-visible {
  color: var(--text);
}

/* 下一步 */

.section-next .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-next .step-desc a {
  color: var(--accent);
  font-weight: 700;
}

.section-next .step-desc a:hover,
.section-next .step-desc a:focus-visible {
  color: var(--text);
}

/* ==========================================================================
   pages · 专题片单
   ========================================================================== */

.specials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.special-figure {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.special-figure img {
  width: 100%;
  height: 172px;
  object-fit: cover;
}

.special-body {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  flex: 1;
}

.special-body .special-name {
  padding: 0;
  font-size: 17px;
}

.special-range {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-dim);
}

.special-label,
.advice-label {
  color: var(--text);
  font-weight: 700;
  margin-right: 6px;
}

.special-fields {
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 12px;
  font-size: 14px;
}

.special-fields dt {
  color: var(--text-dim);
}

.special-fields dd {
  margin: 0;
  color: var(--text);
}

.special-body .entry-link {
  margin-top: auto;
  padding-top: 18px;
}

/* 字段表区块 */

.section-field-table .section-foot a + a {
  margin-left: 16px;
}

/* 片单适用人群与浏览建议 */

.advice-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.advice-item {
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}

.advice-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.advice-audience,
.advice-order {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-dim);
}

.section-specials-advice .section-foot a + a {
  margin-left: 16px;
}

/* ==========================================================================
   pages · 观看指南
   ========================================================================== */

.guide-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 48px;
}

.guide-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 12px 18px 16px;
  font-size: 14px;
  color: var(--text-dim);
}

.guide-steps,
.guide-detail,
.guide-misread,
.guide-next {
  padding-bottom: 48px;
}

.guide-steps + .guide-detail,
.guide-detail + .guide-misread,
.guide-misread + .guide-next {
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.guide-steps > h2,
.guide-detail > h2,
.guide-misread > h2,
.guide-next > h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.guide-steps .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.guide-steps .step-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-steps .step-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.guide-steps .step-goal {
  font-size: 15px;
  color: var(--text-dim);
}

.guide-steps .step-point {
  font-size: 15px;
  color: var(--text-dim);
}

.guide-steps .step-point a {
  color: var(--accent);
  font-weight: 700;
}

.guide-steps .step-point a:hover,
.guide-steps .step-point a:focus-visible {
  color: var(--text);
}

.guide-steps .step-next {
  margin-top: auto;
  padding-top: 10px;
  font-size: 14px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
}

/* 每步判断要点 */

.guide-detail .detail-block {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.guide-detail .detail-block h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.guide-detail .detail-points {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.guide-detail .detail-points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--text-dim);
}

.guide-detail .detail-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.guide-detail .detail-faq {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.guide-detail .detail-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.guide-detail .detail-a {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-dim);
}

/* 容易误解的字段 */

.guide-misread .section-intro a {
  color: var(--accent);
  font-weight: 700;
}

.guide-misread .section-intro a:hover,
.guide-misread .section-intro a:focus-visible {
  color: var(--text);
}

.guide-misread .table-wrap {
  margin-top: 24px;
}

/* 继续浏览 */

.guide-next .next-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.guide-next .next-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.guide-next .next-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.guide-next .next-desc {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-dim);
}

.guide-next .next-desc a {
  color: var(--accent);
  font-weight: 700;
}

.guide-next .next-desc a:hover,
.guide-next .next-desc a:focus-visible {
  color: var(--text);
}

/* ==========================================================================
   pages · 条目字段说明
   ========================================================================== */

.page-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 48px;
}

.page-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.page-figure figcaption {
  padding: 12px 18px 16px;
  font-size: 14px;
  color: var(--text-dim);
}

.field-section {
  padding-bottom: 48px;
}

.field-section + .field-section {
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.field-section .field-table {
  margin-top: 24px;
}

.standard-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.standard-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.standard-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.standard-item p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-dim);
}

.standard-item p a {
  color: var(--accent);
  font-weight: 700;
}

.standard-item p a:hover,
.standard-item p a:focus-visible {
  color: var(--text);
}

.field-section .boundary-list {
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-section .boundary-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 15px;
  color: var(--text-dim);
}

/* 字段速查侧栏 */

.field-aside {
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.aside-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.field-aside > p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-dim);
}

.aside-links {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.aside-links a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.aside-links a:hover,
.aside-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   pages · 收录边界与反馈
   ========================================================================== */

.scope-section,
.feedback-path-section,
.faq-section {
  padding-bottom: 48px;
}

.scope-section + .feedback-path-section,
.feedback-path-section + .faq-section {
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.scope-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 32px;
}

.scope-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.scope-figure figcaption {
  padding: 12px 18px 16px;
  font-size: 14px;
  color: var(--text-dim);
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.scope-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.scope-col-in {
  border-top: 3px solid var(--accent);
}

.scope-col-out {
  border-top: 3px solid var(--line-strong);
}

.scope-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.scope-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.scope-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--text-dim);
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.scope-col-in .scope-list li::before {
  background: var(--accent);
}

/* 站内更正反馈路径 */

.path-steps {
  display: grid;
  gap: 16px;
}

.path-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.path-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.path-step-body {
  min-width: 0;
}

.path-step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.path-step-text {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-dim);
}

.path-step-text a {
  color: var(--accent);
  font-weight: 700;
}

.path-step-text a:hover,
.path-step-text a:focus-visible {
  color: var(--text);
}

/* 常见边界疑问 */

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-question {
  position: relative;
  padding: 18px 52px 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
  margin-top: -3px;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.faq-answer a {
  color: var(--accent);
  font-weight: 700;
}

.faq-answer a:hover,
.faq-answer a:focus-visible {
  color: var(--text);
}

/* ==========================================================================
   pages · 404
   ========================================================================== */

.error-main {
  padding-top: 72px;
  padding-bottom: 96px;
}

.error-block {
  max-width: 640px;
}

.error-code {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.error-title {
  margin-top: 12px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.error-text {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-dim);
}

.error-links {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.error-links a {
  display: block;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.error-note {
  margin-top: 24px;
  font-size: 15px;
  color: var(--text-dim);
}

.error-note a {
  color: var(--accent);
  font-weight: 700;
}

.error-note a:hover,
.error-note a:focus-visible {
  color: var(--text);
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 13px 4px;
    font-size: 15px;
    border-radius: 0;
  }

  .nav-list a.is-current {
    box-shadow: inset 2px 0 0 var(--accent);
    padding-left: 12px;
  }

  .site-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-media img {
    height: 260px;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1.6fr) minmax(160px, 0.9fr);
  }

  .channel-link {
    grid-column: 1 / -1;
  }

  .special-grid,
  .specials-grid,
  .visual-grid,
  .boundary-list,
  .section-flow .step-list,
  .section-next .step-list,
  .guide-steps .step-list,
  .guide-next .next-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 40px 20px 28px;
  }

  .footer-bottom {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .page-title,
  .hero-title,
  .error-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 20px;
  }

  .page-header {
    margin-bottom: 32px;
  }

  .hero {
    padding-top: 32px;
  }

  .home-section {
    padding-top: 40px;
  }

  .home-section + .home-section {
    margin-top: 36px;
    padding-top: 36px;
  }

  .section-channels .channel-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-figure img {
    height: 180px;
  }

  .section-paths .path-list,
  .standard-list,
  .field-section .boundary-list,
  .scope-columns,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-hero img,
  .guide-figure img,
  .page-figure img,
  .scope-figure img {
    height: 220px;
  }

  .hero-media {
    margin-top: 28px;
  }

  .hero-media img {
    height: 200px;
  }

  .path-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .header-inner,
  .site-main,
  .footer-inner,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title,
  .hero-title,
  .error-title {
    font-size: 23px;
  }

  .special-grid,
  .specials-grid,
  .visual-grid,
  .boundary-list,
  .section-flow .step-list,
  .section-next .step-list,
  .guide-steps .step-list,
  .guide-next .next-list,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .channel-fit {
    font-size: 14px;
  }

  .channel-link {
    grid-column: auto;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .special-card .btn {
    margin-left: 18px;
    margin-right: 18px;
  }

  .step-item,
  .boundary-item,
  .standard-item,
  .scope-col,
  .path-step,
  .guide-detail .detail-block {
    padding: 18px;
  }

  .field-table th,
  .field-table td,
  .data-table th,
  .data-table td {
    padding: 12px 14px;
  }

  .error-main {
    padding-top: 48px;
    padding-bottom: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
