/* ==========================================================================
   欧美午夜影院 pmmen.cn — 全站样式表
   base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BASE — 变量、重置、全局排版
   -------------------------------------------------------------------------- */
:root {
  --ink: #1b2a41;
  --ink-soft: #33455f;
  --sand: #c9a87c;
  --sand-deep: #a9865a;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #2c2f36;
  --text-muted: #5c6572;
  --line: #d8dce3;
  --line-soft: #e8ebf0;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-hover: 0 6px 18px rgba(27, 42, 65, 0.09);
  --shell: 1160px;
  --gutter: 24px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", "WenQuanYi Micro Hei", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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;
}

a:hover {
  color: var(--sand-deep);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--sand-deep);
  outline-offset: 2px;
}

/* 通用容器 */
.header-inner,
.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --------------------------------------------------------------------------
   2. LAYOUT — 全站骨架：页头、导航、主区、面包屑、页脚
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: #ffffff;
  padding: 6px 0;
}

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  color: #ffffff;
}

.brand-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.site-nav {
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 10px 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.is-current {
  color: #ffffff;
  font-weight: 600;
  border-bottom-color: var(--sand);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
}

.site-main {
  display: block;
}

.inner-main {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 26px var(--gutter) 64px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--sand-deep);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 内页页面标题区 */
.page-header {
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-description {
  max-width: 820px;
  font-size: 15px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   3. COMPONENTS — 通用组件：按钮、章节头、卡片、表格、步骤、侧栏、分页
   -------------------------------------------------------------------------- */

/* 3.1 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--ink-soft);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--sand-deep);
  color: var(--sand-deep);
}

/* 3.2 章节头 */
.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 23px;
  margin-bottom: 8px;
}

.section-head p {
  font-size: 15px;
  color: var(--text-muted);
}

.section-head a {
  color: var(--sand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-lead,
.section-intro {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* 3.3 细线表格 */
.field-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14.5px;
}

.field-table caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line-soft);
}

.field-table th,
.field-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.field-table thead th {
  background: #f0f2f6;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.field-table tbody tr:last-child td {
  border-bottom: none;
}

.field-table .field-name {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

/* 3.4 步骤清单 */
.step-list {
  display: grid;
  gap: 14px;
}

.step-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-index {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.step-body {
  min-width: 0;
}

.step-name {
  font-size: 17px;
  margin-bottom: 6px;
}

.step-basis,
.step-target,
.step-body,
.step-goal,
.step-text {
  font-size: 14.5px;
  color: var(--text-muted);
}

.step-target {
  margin-top: 6px;
}

.step-target a,
.step-goal a {
  color: var(--sand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 3.5 侧栏 */
.layout-aside,
.page-aside,
.side-column {
  min-width: 0;
}

.aside-block,
.side-block {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-block + .aside-block,
.side-block + .side-block {
  margin-top: 16px;
}

.aside-title,
.side-title {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.aside-heading {
  font-size: 14.5px;
  margin-bottom: 6px;
}

.aside-text,
.side-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.aside-link,
.side-links a {
  display: inline-block;
  font-size: 14px;
  color: var(--sand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aside-links {
  display: grid;
  gap: 10px;
}

.aside-links a {
  display: inline-block;
  padding: 6px 0;
  font-size: 14.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}

.aside-links a:hover {
  color: var(--sand-deep);
}

.aside-steps {
  display: grid;
  gap: 12px;
}

.aside-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.aside-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.aside-step a {
  font-size: 14.5px;
  color: var(--ink);
}

.aside-note {
  font-size: 13px;
  color: var(--text-muted);
}

.side-links {
  display: grid;
  gap: 8px;
}

.side-notes {
  font-size: 13px;
  color: var(--text-muted);
}

/* 3.6 分页（上一篇 / 下一篇） */
.page-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.pager-link {
  flex: 1 1 240px;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pager-link:hover {
  border-color: var(--sand);
  box-shadow: var(--shadow-hover);
}

.pager-next {
  justify-content: flex-end;
  text-align: right;
}

/* --------------------------------------------------------------------------
   4. HEADER & FOOTER 细节
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 44px 0 30px;
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
}

.footer-heading {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links a:hover {
  color: var(--sand);
}

.footer-meta {
  min-width: 0;
}

.footer-boundary {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
}

.back-to-top:hover {
  color: #ffffff;
  border-color: var(--sand);
}

/* --------------------------------------------------------------------------
   5. PAGES — 首页
   -------------------------------------------------------------------------- */
.home-main {
  display: block;
}

/* 5.1 首屏 */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero .hero-text,
.hero .hero-media {
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 52px var(--gutter) 56px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--sand-deep);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 36px;
  line-height: 1.28;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 34em;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef0f4;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

/* 5.2 题材频道方向总览 */
.channels-overview,
.collections-overview,
.catalog-fields,
.guide-steps,
.boundaries-entry {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 52px var(--gutter) 0;
}

.channels-overview {
  padding-bottom: 52px;
}

.channel-rows {
  display: grid;
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 96px;
  gap: 20px;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.18s ease;
}

.channel-row:hover {
  background: #fbfbfd;
}

.channel-row-main {
  min-width: 0;
}

.channel-name {
  font-size: 17px;
  margin-bottom: 4px;
}

.channel-desc {
  font-size: 14.5px;
  color: var(--text-muted);
}

.channel-slot {
  font-size: 13.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.channel-enter {
  justify-self: end;
  font-size: 14px;
  font-weight: 600;
  color: var(--sand-deep);
  white-space: nowrap;
}

/* 5.3 专题片单速览 */
.collections-overview {
  padding-bottom: 52px;
}

.collection-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.collection-card:hover {
  border-color: var(--sand);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.collection-media {
  background: #eef0f4;
}

.collection-media img {
  width: 100%;
  height: 172px;
  object-fit: cover;
}

.collection-name {
  font-size: 17px;
  margin: 16px 18px 8px;
}

.collection-scope {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0 18px 8px;
}

.collection-slot {
  font-size: 13.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin: 0 18px 14px;
}

.collection-enter,
.collection-link {
  margin: auto 18px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sand-deep);
}

/* 5.4 剧集目录字段 */
.catalog-fields {
  padding-bottom: 52px;
}

/* 5.5 浏览路径三步概览 */
.guide-steps {
  padding-bottom: 52px;
}

/* 5.6 收录边界与反馈入口 */
.boundaries-entry {
  padding-bottom: 64px;
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.boundary-column {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-column h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.boundary-list {
  display: grid;
  gap: 9px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand);
}

.boundary-note {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.boundary-note a {
  color: var(--sand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   6. PAGES — 内页通用两栏
   -------------------------------------------------------------------------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}

.layout-main-aside,
.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}

.layout-main,
.main-column {
  min-width: 0;
}

.page-layout .layout-main,
.page-layout .main-column {
  min-width: 0;
}

.page-layout .layout-aside,
.page-layout .page-aside,
.page-layout .side-column {
  min-width: 0;
}

/* 栏目内 section 间距 */
.section + .section,
.content-block + .content-block {
  margin-top: 40px;
}

.section,
.content-block {
  min-width: 0;
}

/* 6.1 题材频道页 */
.channel-list .channel-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 20px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.channel-list .channel-row:hover {
  border-color: var(--sand);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.channel-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eef0f4;
}

.channel-media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.channel-body {
  min-width: 0;
}

.channel-body .channel-name {
  font-size: 17px;
  margin-bottom: 6px;
}

.channel-orient {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.channel-time {
  font-size: 13.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 10px;
}

.channel-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--sand-deep);
}

.channel-scope .scope-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.channel-scope .scope-list dt {
  padding-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.channel-scope .scope-list dd {
  margin: 0;
  padding: 4px 0 14px;
  font-size: 14.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line-soft);
}

.channel-scope .scope-list dd:last-of-type {
  border-bottom: none;
}

.channel-scope .label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--sand-deep);
}

/* 6.2 专题片单页 */
.collection-list .collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.collection-list .collection-card {
  display: flex;
  flex-direction: column;
}

.collection-fields {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  margin: 0 18px 14px;
  font-size: 14px;
}

.collection-fields dt {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
}

.collection-fields dd {
  margin: 0;
  color: var(--text);
}

.collection-channel-map .map-list {
  display: grid;
  gap: 14px;
}

.collection-channel-map .map-item {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.map-text {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.map-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--sand-deep);
}

.collection-order .order-list {
  display: grid;
  gap: 14px;
}

.collection-order .order-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.order-step {
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sand);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.order-name {
  font-size: 16px;
}

.order-text {
  font-size: 14.5px;
  color: var(--text-muted);
}

.order-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--sand-deep);
}

/* 6.3 剧集目录页 */
.catalog-media {
  margin-bottom: 34px;
}

.media-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.media-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.media-figure figcaption {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--line-soft);
}

.table-wrap {
  overflow-x: auto;
}

.catalog-usage .usage-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.usage-col {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.usage-col h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.usage-col p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.usage-list {
  display: grid;
  gap: 8px;
}

.usage-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.usage-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand);
}

.catalog-boundary .boundary-list {
  margin-bottom: 16px;
}

/* 6.4 浏览指引页 */
.page-media {
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.page-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.media-caption {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--line-soft);
}

.guide-duration .duration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.duration-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.duration-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.duration-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.duration-points {
  display: grid;
  gap: 8px;
}

.duration-point {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.duration-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand);
}

.guide-faq .faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
}

.faq-question {
  padding: 14px 0;
  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: "+";
  float: right;
  font-size: 18px;
  color: var(--sand-deep);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 16px;
  font-size: 14.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.guide-next .next-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.next-item a {
  display: block;
  min-height: 44px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14.5px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.next-item a:hover {
  border-color: var(--sand);
  box-shadow: var(--shadow-hover);
}

/* 6.5 收录边界与反馈页 */
.scope-summary .block-figure {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.scope-summary .block-figure img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.scope-summary .block-figure figcaption {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--line-soft);
}

.scope-summary .scope-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.scope-item {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.scope-text {
  font-size: 14.5px;
  color: var(--text-muted);
}

.excluded-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.excluded-item {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.excluded-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.excluded-text {
  font-size: 14.5px;
  color: var(--text-muted);
}

.correction-steps {
  display: grid;
  gap: 14px;
}

.correction-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px 14px;
  align-items: start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.correction-step .step-index {
  grid-row: 1 / span 2;
}

.correction-step .step-name {
  font-size: 16px;
}

.correction-step .step-text {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. PAGE — 404
   -------------------------------------------------------------------------- */
.error-main {
  display: block;
}

.error-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 72px var(--gutter) 80px;
  text-align: left;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--sand-deep);
  margin-bottom: 12px;
}

.error-title {
  font-size: 30px;
  margin-bottom: 14px;
}

.error-desc {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.error-entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.error-entry-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.error-entry-link:hover {
  border-color: var(--sand);
  box-shadow: var(--shadow-hover);
}

.error-tip {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.error-tip a {
  color: var(--sand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 24px;
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
}

.error-home-link:hover {
  background: var(--ink-soft);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE — 1024px / 768px / 390px
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 40px;
    padding-bottom: 44px;
  }

  .hero-media {
    order: -1;
  }

  .hero-media img {
    min-height: 240px;
  }

  .hero-title {
    font-size: 30px;
  }

  .collection-cards,
  .boundary-columns,
  .scope-summary .scope-list,
  .guide-next .next-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout,
  .layout-main-aside,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 18px;
  }

  body {
    font-size: 15.5px;
  }

  .header-inner {
    min-height: 60px;
    gap: 12px;
  }

  .brand-mark {
    font-size: 18px;
  }

  .brand-note {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex: 1 1 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 12px 4px;
    font-size: 15.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 2px solid transparent;
  }

  .nav-link.is-current {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    border-left-color: var(--sand);
    padding-left: 12px;
  }

  .inner-main {
    padding: 20px var(--gutter) 52px;
  }

  .page-title {
    font-size: 25px;
  }

  .page-header {
    padding-bottom: 18px;
    margin-bottom: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-head h2 {
    font-size: 20px;
  }

  .channels-overview,
  .collections-overview,
  .catalog-fields,
  .guide-steps,
  .boundaries-entry {
    padding-top: 38px;
  }

  .channels-overview,
  .collections-overview,
  .catalog-fields,
  .guide-steps {
    padding-bottom: 38px;
  }

  .boundaries-entry {
    padding-bottom: 48px;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 2px;
  }

  .channel-enter {
    justify-self: start;
  }

  .collection-cards,
  .boundary-columns,
  .scope-summary .scope-list,
  .guide-next .next-list,
  .collection-list .collection-grid,
  .catalog-usage .usage-columns,
  .guide-duration .duration-grid,
  .error-entry-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-list .channel-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .channel-media img {
    height: 168px;
  }

  .excluded-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .table-wrap {
    overflow-x: visible;
  }

  .field-table {
    border: none;
    background: transparent;
    font-size: 14.5px;
  }

  .field-table caption {
    padding: 0 0 12px;
    border-bottom: none;
  }

  .field-table thead {
    display: none;
  }

  .field-table,
  .field-table tbody,
  .field-table tr,
  .field-table td {
    display: block;
    width: 100%;
  }

  .field-table tr {
    padding: 14px 16px;
    margin-bottom: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .field-table td {
    padding: 0 0 8px;
    border-bottom: none;
  }

  .field-table td:last-child {
    padding-bottom: 0;
  }

  .field-table .field-name {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .field-table td[data-label]::before {
    content: none;
  }

  .step-item {
    padding: 16px;
    gap: 12px;
  }

  .correction-step,
  .collection-order .order-item {
    padding: 16px;
  }

  .page-media img,
  .scope-summary .block-figure img {
    height: 190px;
  }

  .media-figure img {
    height: 200px;
  }

  .collection-media img {
    height: 168px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .site-footer {
    padding: 34px 0 26px;
  }

  .pager-link {
    flex: 1 1 100%;
  }

  .pager-next {
    justify-content: flex-start;
    text-align: left;
  }

  .error-inner {
    padding: 48px var(--gutter) 60px;
  }

  .error-title {
    font-size: 25px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 25px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .step-item {
    flex-direction: column;
    gap: 10px;
  }

  .correction-step,
  .collection-order .order-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .correction-step .step-index,
  .order-step {
    grid-row: auto;
  }

  .collection-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .collection-fields dd {
    margin-bottom: 8px;
  }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
