:root {
  --ink: #1A1A18;
  --ink-soft: #3A3A36;
  --paper: #F3EEE2;
  --paper-deep: #E8E1D0;
  --deep: #10201C;
  --deep-soft: #1B2E29;
  --amber: #E2A03B;
  --amber-deep: #C6852A;
  --rust: #B4523C;
  --muted: #6E7F76;
  --line: rgba(26, 26, 24, 0.16);
  --line-strong: rgba(26, 26, 24, 0.28);
  --line-light: rgba(243, 238, 226, 0.22);
  --radius: 5px;
  --radius-sm: 4px;
  --font-serif: "Noto Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
  --wrap: 1180px;
  --gutter: 24px;
  --transition: 160ms ease;
}

/* ============================================================
   base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: inherit;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
}

a:hover {
  color: var(--amber-deep);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

strong {
  font-weight: 700;
  color: var(--ink);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--paper-deep);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---- 全站骨架 ---- */

.site-header {
  background: var(--deep);
  color: var(--paper);
  border-bottom: 1px solid var(--line-light);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px var(--gutter) 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--paper);
}

.brand-tagline {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.header-note-link {
  font-size: 13px;
  color: var(--amber);
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  padding: 2px 0;
}

.header-note-link:hover {
  border-bottom-color: var(--amber);
  color: var(--amber);
}

.site-nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 4px 28px;
}

.nav-primary,
.nav-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 18px;
}

.nav-primary {
  padding-top: 12px;
  border-top: 1px solid var(--line-light);
  flex: 1 1 100%;
}

.nav-primary a {
  display: inline-block;
  font-size: 14px;
  padding: 6px 2px;
  color: rgba(243, 238, 226, 0.82);
  border-bottom: 2px solid transparent;
}

.nav-primary a:hover {
  color: var(--paper);
  border-bottom-color: var(--amber);
}

.nav-primary a.is-current {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.nav-role {
  flex: 1 1 100%;
  gap: 2px 20px;
}

.nav-role a {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  font-size: 12.5px;
  padding: 5px 2px;
  color: var(--muted);
  border-left: 2px solid transparent;
  padding-left: 8px;
}

.nav-role a:hover {
  color: var(--paper);
  border-left-color: var(--amber);
}

.nav-role a.is-current {
  color: var(--amber);
  border-left-color: var(--amber);
}

.nav-sub {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(110, 127, 118, 0.9);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--paper);
}

.site-main {
  display: block;
  width: 100%;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  padding: 18px 0 0;
}

.breadcrumb a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.breadcrumb a:hover {
  color: var(--amber-deep);
  border-bottom-color: var(--amber);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--muted);
}

.page-header {
  padding: 22px 0 8px;
}

.page-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  color: var(--ink);
  max-width: 22em;
}

.site-footer {
  background: var(--deep);
  color: rgba(243, 238, 226, 0.78);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px var(--gutter) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px 40px;
  align-items: start;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--paper);
  margin-bottom: 8px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(243, 238, 226, 0.7);
  max-width: 34em;
}

.footer-nav {
  display: flex;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 110px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(243, 238, 226, 0.8);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.footer-col a:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.footer-roles ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-roles a {
  font-size: 14px;
  color: rgba(243, 238, 226, 0.8);
}

.footer-roles a:hover {
  color: var(--amber);
}

.footer-boundary {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-light);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}

.footer-boundary p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(243, 238, 226, 0.62);
  max-width: 60em;
}

.footer-boundary a {
  color: var(--amber);
  border-bottom: 1px solid transparent;
}

.footer-boundary a:hover {
  border-bottom-color: var(--amber);
}

.footer-copy {
  font-size: 12.5px;
  color: rgba(243, 238, 226, 0.45);
}

.section-divider {
  border-top: 1px solid var(--line);
  margin: 56px 0 0;
  height: 56px;
}

/* ============================================================
   layout
   ============================================================ */

.page-layout {
  display: grid;
  gap: 36px;
  align-items: start;
  padding-top: 20px;
}

.page-layout.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
}

.page-layout.layout-main-aside {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.page-layout.sidebar-right {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.page-layout.layout-routes {
  grid-template-columns: 240px minmax(0, 1fr);
}

.portal {
  grid-template-columns: 240px minmax(0, 1fr) 260px;
}

.content-primary,
.main-column,
.content-column,
.channels-body,
.routes-detail {
  min-width: 0;
}

.portal-main {
  min-width: 0;
}

.portal-index,
.portal-side,
.channels-tree-aside,
.content-aside,
.side-column,
.side-index,
.aside-column {
  min-width: 0;
}

/* ============================================================
   components
   ============================================================ */

.section-title {
  font-size: 24px;
  line-height: 1.3;
  padding-left: 14px;
  border-left: 3px solid var(--amber);
  margin-bottom: 8px;
}

.section-title-spaced {
  margin-top: 32px;
}

.channels-body > h2,
.channel-transitions > h2,
.next-step > h2,
.routes-detail > h2,
.route-compare > h2,
.next-steps > h2,
.guide-checklist > h2,
.guide-steps > h2,
.batch-switcher > h2,
.batch-history > h2,
.change-legend > h2,
.faq-group-head h2,
.faq-next > h2,
.boundary-section > h2,
.verify-section > h2,
.role-section > h2,
.principles > h2,
.collection-list > h2,
.aside-panel h2,
.aside-card h2,
.side-title {
  font-size: 22px;
  line-height: 1.35;
  padding-left: 14px;
  border-left: 3px solid var(--amber);
  margin-bottom: 10px;
}

.section-note,
.section-intro,
.section-lead,
.aside-intro,
.aside-note,
.page-lead,
.history-intro,
.legend-intro,
.faq-group-intro,
.switcher-note {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 68ch;
}

.text-link {
  display: inline-block;
  font-size: 14px;
  color: var(--rust);
  border-bottom: 1px solid rgba(180, 82, 60, 0.35);
  padding-bottom: 1px;
}

.text-link:hover {
  color: var(--amber-deep);
  border-bottom-color: var(--amber);
}

.text-link::after {
  content: " →";
  font-size: 0.9em;
}

.badge {
  display: inline-block;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.badge-batch,
.badge-channel,
.badge-type {
  background: var(--paper-deep);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.badge-important {
  background: var(--rust);
  color: var(--paper);
}

.badge-collection {
  background: rgba(226, 160, 59, 0.18);
  color: var(--amber-deep);
  border: 1px solid rgba(226, 160, 59, 0.4);
}

.badge-position {
  background: rgba(110, 127, 118, 0.16);
  color: var(--muted);
  border: 1px solid rgba(110, 127, 118, 0.32);
}

.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-light);
  color: var(--paper);
  background: rgba(16, 32, 28, 0.55);
}

.num-badge,
.index-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--deep);
  background: var(--amber);
  border-radius: var(--radius-sm);
}

.entry-list {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entry-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.entry-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.entry-list .item-no,
.entry-list .entry-no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--rust);
  flex: 0 0 auto;
  padding-top: 2px;
}

.entry-list-compact li {
  font-size: 13.5px;
}

details summary {
  cursor: pointer;
  list-style: none;
  position: relative;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--amber-deep);
}

details[open] summary::after {
  content: "−";
}

/* ---- 频道分类树 ---- */

.channel-tree {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tree-group-name,
.tree-node > a {
  display: block;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding: 4px 0 4px 10px;
  border-left: 2px solid var(--line-strong);
}

.tree-group-name:hover,
.tree-node > a:hover {
  border-left-color: var(--amber);
  color: var(--amber-deep);
}

.tree-items,
.tree-children {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  padding-left: 12px;
}

.tree-items li,
.tree-children li {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.tree-items li a,
.tree-children li a {
  color: var(--ink-soft);
}

.tree-items li a:hover,
.tree-children li a:hover {
  color: var(--amber-deep);
}

.tree-node.is-active > a {
  border-left-color: var(--amber);
  color: var(--amber-deep);
}

.tree-node.is-active > a::before {
  content: "●";
  font-size: 8px;
  color: var(--amber);
  margin-right: 6px;
  vertical-align: middle;
}

/* ============================================================
   pages
   ============================================================ */

/* ---- 首页 ---- */

.home-main {
  display: block;
}

.hero {
  background: var(--deep);
  color: var(--paper);
  padding: 44px 0 0;
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
  padding-bottom: 8px;
}

.hero-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
  border: 1px solid rgba(226, 160, 59, 0.5);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  margin-bottom: 16px;
}

.hero-copy h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.22;
  color: var(--paper);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(243, 238, 226, 0.82);
  max-width: 34em;
  margin-bottom: 10px;
}

.hero-lead-sub {
  font-size: 14px;
  color: rgba(243, 238, 226, 0.6);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14.5px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn-primary {
  background: var(--amber);
  color: var(--deep);
  border-color: var(--amber);
}

.btn-primary:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  color: var(--deep);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(243, 238, 226, 0.4);
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.hero-media {
  position: relative;
  min-width: 0;
}

.hero-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
}

.hero-tags {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-scroll-hint {
  max-width: var(--wrap);
  margin: 28px auto 0;
  padding: 12px var(--gutter);
  font-size: 13px;
  color: rgba(243, 238, 226, 0.55);
  border-top: 1px solid var(--line-light);
  letter-spacing: 0.02em;
}

.portal {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px var(--gutter) 0;
}

.portal-index,
.portal-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.32);
  padding: 18px 16px;
}

.collection-feature {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
  padding: 16px;
  transition: border-color var(--transition), transform var(--transition);
}

.collection-feature:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
}

.collection-cover {
  min-width: 0;
}

.collection-cover img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.collection-body {
  min-width: 0;
}

.collection-body h3,
.minor-card h3 {
  font-size: 19px;
  line-height: 1.4;
  margin: 8px 0 6px;
}

.collection-desc,
.minor-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.collection-minor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.minor-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
  padding: 14px;
  transition: border-color var(--transition), transform var(--transition);
}

.minor-card:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
}

.minor-cover img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.role-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
  padding: 16px;
  transition: border-color var(--transition), transform var(--transition);
}

.role-card:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
}

.role-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.role-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 12px;
}

.batch-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

.batch-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.batch-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.batch-no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--rust);
}

.batch-item p {
  flex: 1 1 100%;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.help-item {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.help-item:last-of-type {
  border-bottom: 0;
}

.help-item summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding-right: 20px;
}

.help-item p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 8px;
}

.help-item p a {
  color: var(--rust);
  border-bottom: 1px solid rgba(180, 82, 60, 0.35);
}

.portal-side > .text-link {
  margin-top: 12px;
}

.prep {
  background: var(--paper-deep);
  margin-top: 48px;
  padding: 48px 0;
}

.prep-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}

.prep-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.prep-media figcaption {
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 8px;
  line-height: 1.6;
}

.prep-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: prep;
}

.prep-list li {
  padding-left: 44px;
  position: relative;
  counter-increment: prep;
}

.prep-list li::before {
  content: counter(prep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--deep);
  background: var(--amber);
  border-radius: var(--radius-sm);
  width: 30px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prep-list h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.prep-list p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.prep-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.prep-note a {
  color: var(--rust);
  border-bottom: 1px solid rgba(180, 82, 60, 0.35);
}

.boundary {
  padding: 48px 0;
}

.boundary-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}

.boundary-col {
  min-width: 0;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.boundary-list li {
  border-left: 1px solid var(--line-strong);
  padding-left: 14px;
}

.boundary-list h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.boundary-list p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.faq-item:first-of-type {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding-right: 24px;
}

.faq-item summary:hover {
  color: var(--amber-deep);
}

.faq-answer {
  padding-top: 10px;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--rust);
  border-bottom: 1px solid rgba(180, 82, 60, 0.35);
}

.continue-bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px var(--gutter) 56px;
  border-top: 1px solid var(--line);
}

.continue-bar p {
  font-size: 14px;
  color: var(--muted);
}

.continue-bar a {
  color: var(--rust);
  border-bottom: 1px solid rgba(180, 82, 60, 0.35);
}

/* ---- 内页标题区 ---- */

.page-hero,
.page-title,
.page-head,
.page-title-block {
  padding: 6px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.section-label,
.page-label,
.page-kicker,
.section-kicker,
.section-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--rust);
  border: 1px solid rgba(180, 82, 60, 0.35);
  border-radius: var(--radius-sm);
  padding: 2px 9px;
  margin-bottom: 12px;
}

.page-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 16px;
}

.page-meta,
.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0;
}

.page-meta > div,
.meta-bar > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
}

.page-meta dt,
.meta-bar dt {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-meta dd,
.meta-bar dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

.page-meta > span,
.meta-bar > span {
  font-size: 13px;
  color: var(--muted);
}

/* ---- 频道结构页 ---- */

.channels-tree-aside {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.32);
  padding: 18px 16px;
}

.aside-title {
  font-size: 18px;
  margin-bottom: 6px;
}

.channels-body > h2 {
  margin-bottom: 14px;
}

.channel-figure {
  margin-bottom: 18px;
}

.channel-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.channel-figure figcaption {
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 8px;
  line-height: 1.6;
}

.channels-intro {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 68ch;
}

.channel-entry {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.channel-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.channel-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--paper);
  background: var(--deep);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
}

.channel-entry-head h3 {
  font-size: 20px;
  flex: 1 1 auto;
}

.channel-tag {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
}

.channel-scope,
.channel-boundary,
.channel-form {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 8px;
  max-width: 68ch;
}

.channel-scope strong,
.channel-boundary strong,
.channel-form strong {
  display: inline-block;
  font-size: 13px;
  color: var(--rust);
  margin-right: 6px;
}

.channel-transitions,
.next-step {
  padding: 40px 0 0;
}

.transition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.transition-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
  padding: 16px;
}

.transition-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.transition-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.transition-tip {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  font-size: 13px;
  color: var(--muted);
}

.next-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.next-step-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
  padding: 16px;
  transition: border-color var(--transition), transform var(--transition);
}

.next-step-card:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
}

.next-step-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--rust);
}

.next-step-text {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

/* ---- 专题合辑页 ---- */

.section-block {
  margin-bottom: 36px;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.principle-item {
  display: flex;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
  padding: 14px;
}

.principle-body {
  min-width: 0;
}

.principle-body h3 {
  font-size: 15.5px;
  margin-bottom: 4px;
}

.principle-body p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.collection-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.collection-item:first-of-type {
  border-top: 0;
  padding-top: 8px;
}

.collection-item .collection-cover img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.collection-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.collection-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--rust);
}

.collection-head h3 {
  font-size: 20px;
  flex: 1 1 auto;
}

.collection-tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  white-space: nowrap;
}

.entry-summary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.entry-summary-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.entry-summary-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.entry-summary-list .entry-no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--rust);
  flex: 0 0 auto;
  padding-top: 2px;
}

.collection-link {
  margin-top: 8px;
}

.collection-link a {
  font-size: 14px;
  color: var(--rust);
  border-bottom: 1px solid rgba(180, 82, 60, 0.35);
}

.collection-link a:hover {
  color: var(--amber-deep);
  border-bottom-color: var(--amber);
}

.aside-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.32);
  padding: 18px 16px;
}

.aside-block + .aside-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.picker-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.picker-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.picker-row dt {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.picker-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-link-list a {
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  display: block;
}

.aside-link-list a:hover {
  color: var(--amber-deep);
  border-bottom-color: var(--amber);
}

/* ---- 角色路径页 ---- */

.side-index {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.32);
  padding: 18px 16px;
}

.side-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.route-index-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.route-index-item a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 2px 8px;
  padding: 8px 0 8px 8px;
  border-left: 2px solid var(--line);
  transition: border-color var(--transition), background-color var(--transition);
}

.route-index-item a:hover {
  border-left-color: var(--amber);
  background: rgba(226, 160, 59, 0.08);
}

.route-index-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--rust);
  grid-row: 1 / 3;
  padding-top: 2px;
}

.route-index-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.route-index-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.routes-detail > h2 {
  margin-bottom: 14px;
}

.content-media {
  margin-bottom: 18px;
}

.content-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.content-media figcaption {
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 8px;
  line-height: 1.6;
}

.route-block {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.route-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.route-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--paper);
  background: var(--deep);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
}

.route-head h3 {
  font-size: 20px;
  flex: 1 1 auto;
}

.route-goal {
  flex: 1 1 100%;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.route-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: route;
}

.route-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  position: relative;
  counter-increment: route;
}

.route-step::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 30px;
  bottom: -12px;
  width: 1px;
  background: var(--line);
}

.route-step:last-child::before {
  display: none;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--deep);
  background: var(--paper-deep);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.step-body {
  min-width: 0;
}

.step-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.step-text {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.route-stop {
  margin-top: 12px;
  padding: 8px 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: rgba(226, 160, 59, 0.12);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.route-compare {
  padding: 40px 0 0;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
  vertical-align: top;
}

.compare-table thead th {
  background: var(--deep);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
}

.compare-table tbody th {
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.4);
}

.compare-table tbody td {
  color: var(--ink-soft);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-tip {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.next-steps {
  padding: 40px 0 0;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.next-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
  padding: 16px;
  transition: border-color var(--transition), transform var(--transition);
}

.next-card:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
}

.next-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--rust);
}

.next-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.next-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.related-links {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 13px;
}

.related-links-label {
  color: var(--muted);
}

.related-links-item {
  color: var(--rust);
  border-bottom: 1px solid rgba(180, 82, 60, 0.35);
}

.related-links-item:hover {
  color: var(--amber-deep);
  border-bottom-color: var(--amber);
}

/* ---- 观看准备页 ---- */

.guide-checklist {
  margin-bottom: 36px;
}

.guide-figure {
  margin-bottom: 20px;
}

.guide-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.guide-figure figcaption {
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 8px;
  line-height: 1.6;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.checklist-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
  padding: 16px;
}

.checklist-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.checklist-card > p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 10px;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checklist-items li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.checklist-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: guide;
}

.step-item {
  position: relative;
  padding: 16px 0 16px 46px;
  border-top: 1px solid var(--line);
  counter-increment: guide;
}

.step-item::before {
  content: counter(guide, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  width: 32px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--deep);
  background: var(--amber);
  border-radius: var(--radius-sm);
}

.step-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.step-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 64ch;
}

.side-column .aside-panel > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 14px;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.aside-links li a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: border-color var(--transition), background-color var(--transition);
}

.aside-links li a:hover {
  border-color: var(--amber);
  background: rgba(226, 160, 59, 0.08);
}

.aside-link-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.aside-link-desc {
  display: block;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 2px;
}

.aside-details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.aside-details summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding-right: 20px;
}

.aside-details p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 8px;
}

.aside-footnote {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

.aside-footnote a {
  color: var(--rust);
  border-bottom: 1px solid rgba(180, 82, 60, 0.35);
}

/* ---- 更新记录页 ---- */

.updates-visual {
  margin-bottom: 8px;
}

.updates-visual img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.updates-visual figcaption {
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 8px;
  line-height: 1.6;
}

.batch-switcher {
  padding: 28px 0 0;
}

.batch-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.batch-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--transition), background-color var(--transition), color var(--transition);
}

.batch-btn:hover {
  border-color: var(--amber);
  color: var(--ink);
}

.batch-btn.is-active {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--paper);
}

.batch-current {
  padding: 24px 0 0;
}

.batch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.batch-head h2 {
  font-size: 22px;
  line-height: 1.35;
  padding-left: 14px;
  border-left: 3px solid var(--amber);
}

.batch-summary {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 68ch;
  margin-bottom: 16px;
}

.change-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.change-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.change-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.change-item h3 {
  font-size: 16px;
  grid-column: 2;
  margin: 0;
}

.change-item p {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  max-width: 64ch;
}

.change-item .badge {
  grid-row: 1 / 3;
  align-self: start;
  margin-top: 2px;
}

.change-list-compact {
  gap: 10px;
  padding-top: 12px;
}

.change-list-compact .change-item {
  padding-bottom: 10px;
}

.change-list-compact .change-item p {
  font-size: 13.5px;
}

.batch-history {
  padding: 36px 0 0;
}

.batch-panels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.batch-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
  padding: 12px 16px;
}

.batch-panel[open] {
  border-color: var(--line-strong);
}

.batch-panel-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding-right: 24px;
  min-height: 28px;
}

.batch-panel-summary .batch-no {
  font-size: 14px;
  color: var(--ink);
}

.batch-count {
  font-size: 13px;
  color: var(--muted);
}

.change-legend {
  padding: 36px 0 0;
}

.legend-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.legend-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.legend-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  max-width: 64ch;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.next-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
  padding: 14px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color var(--transition), transform var(--transition);
}

.next-link:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
}

.next-sub {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}

/* ---- 常见问题页 ---- */

.faq-group {
  padding: 30px 0 0;
}

.faq-group-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 12px;
  align-items: center;
  margin-bottom: 14px;
}

.faq-group-head .index-badge {
  grid-row: 1 / 3;
}

.faq-group-head h2 {
  border-left: 0;
  padding-left: 0;
  font-size: 22px;
}

.faq-group-intro {
  margin: 0;
  font-size: 14px;
}

.faq-media {
  margin: 28px 0 0;
}

.faq-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.faq-media figcaption {
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 8px;
  line-height: 1.6;
}

.faq-next {
  padding: 40px 0 0;
}

.faq-next-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.next-card-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--rust);
}

.next-card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.next-card-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---- 内容说明页 ---- */

.boundary-section,
.verify-section,
.role-section {
  padding-bottom: 32px;
}

.boundary-figure {
  margin-bottom: 20px;
}

.boundary-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.boundary-figure figcaption {
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 8px;
  line-height: 1.6;
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.boundary-col h3 {
  font-size: 16px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
}

.boundary-in h3 {
  color: var(--deep);
}

.boundary-out h3 {
  color: var(--rust);
}

.boundary-col .boundary-list {
  gap: 10px;
  margin-bottom: 0;
}

.boundary-col .boundary-list li {
  display: flex;
  gap: 10px;
  border-left: 0;
  padding-left: 0;
}

.boundary-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  flex: 0 0 auto;
  padding-top: 3px;
}

.boundary-col .boundary-list p {
  margin: 0;
}

.verify-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 14px;
}

.verify-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.verify-step:last-child {
  border-bottom: 1px solid var(--line);
}

.verify-step .step-num {
  margin-top: 2px;
}

.verify-step h3 {
  font-size: 15.5px;
  margin-bottom: 3px;
}

.verify-step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 64ch;
}

.role-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 14px;
}

.role-columns .role-card {
  padding: 16px;
}

.role-columns .role-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.inline-link {
  display: inline-block;
  font-size: 14px;
  color: var(--rust);
  border-bottom: 1px solid rgba(180, 82, 60, 0.35);
}

.inline-link:hover {
  color: var(--amber-deep);
  border-bottom-color: var(--amber);
}

.aside-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.32);
  padding: 18px 16px;
}

.aside-card + .aside-card {
  margin-top: 20px;
}

.aside-card h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.fix-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.fix-links a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

.fix-links a:hover {
  color: var(--amber-deep);
  border-bottom-color: var(--amber);
}

.fix-links p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin: 4px 0 0;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

/* ---- 404 ---- */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px var(--gutter) 0;
}

.error-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
  padding: 32px 24px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--rust);
  margin-bottom: 10px;
}

.error-panel h1 {
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.3;
  margin-bottom: 14px;
}

.error-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 8px;
}

.error-hint {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 20px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.error-actions li {
  display: flex;
}

.error-action-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  color: var(--deep);
  background: var(--paper-deep);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--transition), background-color var(--transition);
}

.error-action-primary:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--deep);
}

.error-notes {
  padding: 36px 0 0;
}

.error-notes h2 {
  font-size: 20px;
  padding-left: 14px;
  border-left: 3px solid var(--amber);
  margin-bottom: 14px;
}

.error-note-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.error-note-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.error-note-list li:last-child {
  border-bottom: 0;
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 960px) {
  .header-inner {
    padding-top: 14px;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line-light);
    margin-top: 12px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-primary,
  .nav-role {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex: 1 1 auto;
    padding-top: 0;
    border-top: 0;
  }

  .nav-primary a,
  .nav-role a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .nav-primary a.is-current,
  .nav-role a.is-current {
    border-left-color: var(--amber);
    background: rgba(226, 160, 59, 0.08);
  }

  .nav-role {
    padding-top: 12px;
    border-top: 1px dashed var(--line-light);
  }

  .page-layout,
  .page-layout.sidebar-left,
  .page-layout.layout-main-aside,
  .page-layout.sidebar-right,
  .page-layout.layout-routes,
  .portal {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .portal-index,
  .portal-side,
  .channels-tree-aside,
  .content-aside,
  .side-column,
  .side-index,
  .aside-column {
    order: 2;
  }

  .portal-main,
  .channels-body,
  .content-primary,
  .main-column,
  .content-column,
  .routes-detail {
    order: 1;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-media img {
    height: 280px;
  }

  .prep-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .prep-media img {
    height: 240px;
  }

  .boundary-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
  }

  .footer-boundary {
    grid-column: 1 / -1;
  }

  .checklist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principle-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .transition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .next-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-feature {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .collection-item {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 15px;
    line-height: 1.7;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-tagline {
    font-size: 11px;
  }

  .header-note-link {
    font-size: 12px;
  }

  .page-title {
    font-size: 26px;
  }

  .breadcrumb {
    padding-top: 14px;
    font-size: 12.5px;
  }

  .page-header {
    padding: 16px 0 6px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-lead-sub {
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-media img {
    height: 210px;
  }

  .hero-tags {
    left: 10px;
    bottom: 10px;
    gap: 6px;
  }

  .portal {
    padding-top: 28px;
  }

  .section-title,
  .channels-body > h2,
  .channel-transitions > h2,
  .next-step > h2,
  .routes-detail > h2,
  .route-compare > h2,
  .next-steps > h2,
  .guide-checklist > h2,
  .guide-steps > h2,
  .batch-switcher > h2,
  .batch-history > h2,
  .change-legend > h2,
  .faq-group-head h2,
  .faq-next > h2,
  .boundary-section > h2,
  .verify-section > h2,
  .role-section > h2,
  .principles > h2,
  .collection-list > h2,
  .aside-panel h2,
  .aside-card h2,
  .side-title {
    font-size: 19px;
  }

  .collection-feature,
  .collection-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .collection-cover img,
  .collection-item .collection-cover img {
    height: 170px;
    min-height: 0;
  }

  .collection-minor,
  .role-grid,
  .next-step-grid,
  .next-grid,
  .faq-next-links,
  .boundary-columns,
  .role-columns,
  .principle-list,
  .checklist-grid,
  .transition-grid,
  .next-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .prep {
    padding: 32px 0;
    margin-top: 32px;
  }

  .prep-media img {
    height: 200px;
  }

  .prep-list li {
    padding-left: 40px;
  }

  .boundary {
    padding: 32px 0;
  }

  .page-hero,
  .page-title,
  .page-head,
  .page-title-block {
    padding-bottom: 16px;
  }

  .page-lead {
    font-size: 15px;
  }

  .page-meta,
  .meta-bar {
    gap: 8px 20px;
  }

  .page-meta > div,
  .meta-bar > div {
    min-width: 110px;
  }

  .channel-figure img,
  .content-media img,
  .guide-figure img,
  .updates-visual img,
  .faq-media img,
  .boundary-figure img {
    height: 190px;
  }

  .channel-entry {
    padding: 18px 0;
  }

  .channel-entry-head h3,
  .route-head h3,
  .collection-head h3 {
    font-size: 17px;
  }

  .route-step {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
  }

  .route-step::before {
    left: 12px;
  }

  .step-num {
    width: 26px;
    height: 24px;
    font-size: 11.5px;
  }

  .step-item {
    padding-left: 42px;
  }

  .step-item::before {
    width: 30px;
    height: 26px;
  }

  .verify-step {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
  }

  .change-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .change-item .badge {
    grid-row: auto;
    justify-self: start;
  }

  .change-item h3,
  .change-item p {
    grid-column: 1;
  }

  .batch-panel {
    padding: 10px 12px;
  }

  .batch-panel-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .batch-panel-summary::after {
    top: 14px;
    transform: none;
  }

  .faq-group-head {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 2px 10px;
  }

  .index-badge,
  .num-badge {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    font-size: 12px;
  }

  .faq-item summary {
    font-size: 14.5px;
  }

  .faq-item {
    padding: 10px 0;
  }

  .compare-table {
    min-width: 500px;
    font-size: 13px;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 36px var(--gutter) 32px;
  }

  .footer-nav {
    gap: 24px;
  }

  .footer-col {
    min-width: 0;
    flex: 1 1 0;
  }

  .footer-boundary {
    flex-direction: column;
    gap: 8px;
  }

  .section-divider {
    margin-top: 40px;
    height: 40px;
  }

  .error-main {
    padding-top: 32px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions li {
    width: 100%;
  }

  .error-action-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
