/* ==========================================================================
   九一影视 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #14181d;
  --ink-soft: #4a5560;
  --accent: #b4531a;
  --line: #e5e0d5;
  --deep: #123f38;
  --tint: #f3efe6;
  --sans: -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Noto Sans SC", monospace;
  --shell: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.table-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

strong {
  font-weight: 600;
}

/* 图片与图注 */
figure {
  margin: 0;
}

figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

/* 屏幕阅读器专用 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background-color: var(--deep);
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: var(--shell);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.brand:hover .brand-mark {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-left: auto;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-group-title {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  gap: 18px;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-bottom: 2px;
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--line);
}

.nav-list a.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 移动端汉堡按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0 10px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-main {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.inner-main {
  min-width: 0;
  padding-top: 24px;
  padding-bottom: 64px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: var(--line);
}

/* 页面标题区 */
.page-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}

.page-head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-lead,
.page-lede {
  max-width: 720px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

/* 内页双栏 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.page-aside {
  position: sticky;
  top: 88px;
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

/* 页脚 */
.site-footer {
  margin-top: auto;
  background-color: var(--deep);
  color: #e8e4d9;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fbfaf7;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.7;
  color: #c9d3cf;
}

.footer-title {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: #9fb5ae;
  text-transform: uppercase;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col li a {
  display: inline-block;
  min-height: 24px;
  color: #e8e4d9;
  font-size: 14px;
  text-decoration: none;
}

.footer-col li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 24px;
  font-size: 13px;
  line-height: 1.7;
  color: #a9bdb6;
}

.footer-note {
  font-size: 13px;
  line-height: 1.7;
  color: #a9bdb6;
}

/* --------------------------------------------------------------------------
   components · 通用元件
   -------------------------------------------------------------------------- */

/* 等宽元信息条 */
.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-item + .meta-item::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.page-description .meta-item + .meta-item::before {
  content: "/";
}

/* 表格 */
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}

.data-table caption {
  text-align: left;
}

.data-table thead th {
  padding: 12px 16px;
  background-color: var(--tint);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.data-table tbody th,
.data-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink);
}

.data-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) th,
.data-table tbody tr:nth-child(even) td {
  background-color: var(--tint);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody td a {
  color: var(--accent);
}

/* 内容图片 */
.content-figure,
.media-figure {
  margin: 32px 0;
}

.content-figure img,
.media-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--tint);
}

/* 折叠问答 */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 14px 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item p {
  padding-bottom: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.faq-item p:last-child {
  padding-bottom: 18px;
}

.faq-body {
  padding-bottom: 8px;
}

.faq-body p {
  padding-bottom: 12px;
}

.faq-body a {
  color: var(--accent);
}

/* 侧栏目录与链接 */
.toc-title,
.aside-title {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.toc ul,
.aside-nav,
.aside-links,
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc a,
.aside-nav a,
.aside-links a,
.toc-list a {
  display: block;
  padding: 6px 0 6px 12px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
  border-left: 2px solid transparent;
}

.toc a:hover,
.aside-nav a:hover,
.aside-links a:hover,
.toc-list a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.aside-links {
  margin-top: 0;
}

.aside-block + .aside-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.aside-nav li,
.aside-links li,
.toc-list li {
  min-width: 0;
}

/* 锚点目标避让固定页头 */
[id] {
  scroll-margin-top: 88px;
}

/* 纯文本列表 */
.plain-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.plain-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 1px;
  background-color: var(--accent);
}

/* 有序步骤列表（专题判断、支持处理顺序） */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  counter-reset: step;
}

.step-list li {
  position: relative;
  padding-left: 40px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
  counter-increment: step;
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.step-list .step-title {
  font-weight: 600;
  color: var(--ink);
}

.step-list li strong {
  display: inline-block;
  margin-right: 4px;
  color: var(--ink);
}

/* 相关内容行 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: 15px;
}

/* 模块说明尾注 */
.block-note {
  margin-top: 16px;
  padding: 14px 16px;
  background-color: var(--tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  padding-bottom: 72px;
}

/* 首屏 */
.hero-intro {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 10px;
  background-color: var(--tint);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.hero-intro h1 {
  max-width: 780px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.hero-lead {
  max-width: 660px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn-primary {
  background-color: var(--deep);
  border: 1px solid var(--deep);
  color: #fbfaf7;
}

.btn-primary:hover {
  background-color: #0c2f2a;
  border-color: #0c2f2a;
}

.btn-ghost {
  background-color: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-figure {
  margin: 0;
  padding: 32px 0 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--tint);
}

.hero-figure figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* 首页模块通用 */
.home-main > section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.home-main > section:last-of-type {
  border-bottom: 0;
}

.home-main h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.section-lead {
  max-width: 720px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.section-foot {
  margin-top: 20px;
  font-size: 15px;
}

.section-foot a {
  color: var(--accent);
}

/* 内容地图 */
.map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.map-col {
  min-width: 0;
  padding: 20px 20px 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.map-col h3 {
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--ink);
}

.map-col > p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.map-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-col li a {
  display: block;
  padding: 4px 0;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.6;
}

/* 频道清单与角色表共用表格容器 */
.channel-overview .table-scroll,
.role-overview .table-scroll {
  margin-top: 24px;
}

/* 专题精选 */
.topic-highlights .topic-item {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 24px;
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 200ms ease;
}

.topic-highlights .topic-item:hover {
  border-color: var(--accent);
}

.topic-media {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
}

.topic-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
  background-color: var(--tint);
  transition: transform 200ms ease;
}

.topic-highlights .topic-item:hover .topic-media img {
  transform: scale(1.03);
}

.topic-body {
  min-width: 0;
}

.topic-body h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--ink);
}

.topic-use {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
}

.topic-scene {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.topic-body a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  color: var(--accent);
  font-size: 15px;
}

/* 观看流程四段 */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.flow-block {
  min-width: 0;
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--deep);
  border-radius: 6px;
}

.flow-num {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.flow-block h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--ink);
}

.flow-block ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flow-block li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.flow-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background-color: var(--accent);
}

/* 变更摘要 */
.digest-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.digest-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.digest-scope {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.digest-pages,
.digest-check {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* 支持入口 */
.support-entry > p {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 18px;
}

.support-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   pages · 频道索引
   -------------------------------------------------------------------------- */

.content-block {
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.content-block:last-of-type {
  border-bottom: 0;
}

.content-block h2 {
  margin-bottom: 12px;
  font-size: 24px;
  color: var(--ink);
}

.content-block > p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.content-block > p:last-child {
  margin-bottom: 0;
}

.content-block .table-scroll {
  margin-top: 18px;
}

.channel-entry {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.channel-entry:first-of-type {
  margin-top: 24px;
}

.channel-entry h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--ink);
}

.channel-entry > p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 1px;
  background-color: var(--accent);
}

.entry-link {
  margin-top: 8px;
  font-size: 15px;
}

.entry-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 专题档案
   -------------------------------------------------------------------------- */

.page-hero {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.topic-entry {
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.topic-entry h3 {
  margin-bottom: 12px;
  font-size: 20px;
  color: var(--ink);
}

.topic-entry .topic-use {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
}

.topic-entry .label {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  background-color: var(--tint);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  vertical-align: 1px;
}

.topic-boundary,
.topic-structure {
  margin-bottom: 16px;
}

.topic-boundary > .label,
.topic-structure > .label {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  background-color: transparent;
  border: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.topic-figure {
  margin: 20px 0;
}

.topic-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--tint);
}

.topic-entry .topic-scene {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.topic-link {
  font-size: 15px;
}

.topic-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 观看流程
   -------------------------------------------------------------------------- */

.page-title-block {
  margin-bottom: 8px;
}

.content-section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.content-section:last-of-type {
  border-bottom: 0;
}

.content-section h2 {
  margin-bottom: 12px;
  font-size: 24px;
  color: var(--ink);
}

.content-section > p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.content-section > p:last-child {
  margin-bottom: 0;
}

.main-column {
  min-width: 0;
}

/* 四段流程块 */
.step-block {
  margin-top: 24px;
  padding: 20px 22px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--deep);
  border-radius: 6px;
}

.step-index {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.step-block h3 {
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--ink);
}

.step-block > p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.step-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.step-points li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
}

.step-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 1px;
  background-color: var(--accent);
}

.step-check {
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* 侧栏相关页面 */
.related-pages {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-pages ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.related-pages a {
  display: block;
  padding: 6px 0 6px 12px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
  border-left: 2px solid transparent;
}

.related-pages a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 术语与格式
   -------------------------------------------------------------------------- */

.term-list {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.term-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.term-item dt {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.term-item dd {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages · 变更记录
   -------------------------------------------------------------------------- */

.page-description {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.change-entry {
  margin-top: 20px;
  padding: 18px 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.change-id {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.change-scope {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.change-pages,
.change-check {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.change-desc {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages · 支持与反馈
   -------------------------------------------------------------------------- */

.page-head-inner {
  max-width: 720px;
}

.content-main {
  min-width: 0;
}

.content-aside {
  position: sticky;
  top: 88px;
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.aside-toc {
  margin-bottom: 24px;
}

.aside-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.aside-toc summary::-webkit-details-marker {
  display: none;
}

.aside-toc summary::after {
  content: "+";
  font-size: 16px;
  color: var(--accent);
}

.aside-toc[open] summary::after {
  content: "−";
}

.content-aside .aside-block {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.content-aside .aside-links a {
  padding: 6px 0 6px 12px;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  padding-top: 64px;
  padding-bottom: 80px;
}

.error-intro {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.error-intro h1 {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
}

.error-lead {
  max-width: 640px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.error-paths {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.error-paths h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.error-path-list li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  transition: border-color 200ms ease, color 200ms ease;
}

.error-path-list li a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.error-next {
  padding-top: 36px;
}

.error-next h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.error-next > p {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.btn-home,
.btn-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn-home {
  background-color: var(--deep);
  border: 1px solid var(--deep);
  color: #fbfaf7;
}

.btn-home:hover {
  background-color: #0c2f2a;
  border-color: #0c2f2a;
}

.btn-help {
  background-color: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-help:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .header-inner {
    gap: 20px;
  }

  .site-nav {
    gap: 20px;
  }

  .nav-list {
    gap: 14px;
  }

  .nav-list a {
    font-size: 14px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
  }

  .page-aside,
  .content-aside {
    padding-left: 20px;
  }

  .hero-intro h1 {
    font-size: 34px;
  }

  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-highlights .topic-item {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
  }

  .digest-item {
    grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0;
    min-height: 64px;
    padding: 10px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    gap: 16px;
    margin-left: 0;
    padding: 16px 0 8px;
    border-top: 1px solid var(--line);
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    display: flex;
  }

  .nav-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 240ms ease;
  }

  .nav-list.is-open {
    max-height: 480px;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    min-height: 48px;
    padding: 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav-list a.is-current {
    border-bottom-color: var(--accent);
  }

  .site-main {
    padding: 0 20px;
  }

  .inner-main {
    padding-top: 20px;
    padding-bottom: 48px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .page-aside,
  .content-aside {
    position: static;
    margin-top: 8px;
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .page-title {
    font-size: 26px;
  }

  .page-header {
    margin-bottom: 22px;
    padding-bottom: 18px;
  }

  .hero-intro {
    padding: 40px 0 26px;
  }

  .hero-intro h1 {
    font-size: 28px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-figure {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .hero-figure img {
    aspect-ratio: 16 / 9;
  }

  .home-main > section {
    padding: 36px 0;
  }

  .map-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .topic-highlights .topic-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .topic-media img {
    aspect-ratio: 16 / 9;
  }

  .flow-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .digest-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 0;
  }

  .term-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .term-item dt {
    padding-top: 2px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    padding: 36px 20px 24px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-bottom p {
    padding: 14px 20px 22px;
  }

  .error-main {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .error-path-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-intro h1 {
    font-size: 26px;
  }

  .related-links {
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .site-main {
    padding: 0 16px;
  }

  .header-inner {
    padding: 10px 16px;
  }

  .brand-mark {
    font-size: 17px;
  }

  .hero-intro h1 {
    font-size: 26px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-primary,
  .btn-ghost {
    flex: 1 1 100%;
    min-height: 48px;
  }

  .home-main h2 {
    font-size: 21px;
  }

  .content-block h2,
  .content-section h2 {
    font-size: 21px;
  }

  .page-title {
    font-size: 24px;
  }

  .step-block {
    padding: 16px 16px;
  }

  .change-entry {
    padding: 16px;
  }

  .data-table {
    min-width: 560px;
    font-size: 13px;
  }

  .data-table thead th,
  .data-table tbody th,
  .data-table tbody td {
    padding: 10px 12px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 16px 20px;
  }

  .footer-bottom p {
    padding: 14px 16px 20px;
  }

  .error-actions {
    gap: 10px;
  }

  .btn-home,
  .btn-help {
    flex: 1 1 100%;
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
