/* ==========================================================================
   base — 全局基础样式
   ========================================================================== */
:root {
  --bg-page: #f1f2f4;
  --bg-light: #fbffff;
  --bg-dark: #17222a;
  --bg-dark-soft: #20303a;
  --line-light: #dee2e6;
  --line-dark: rgba(240, 248, 255, 0.14);
  --accent: #d84736;
  --accent-soft: #f7c2b8;
  --text-main: #17222a;
  --text-reverse: #f3f7f5;
  --text-graphite: #6d7b85;
  --tag-blue: #7c9eb1;
  --content-width: 1240px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
  background-color: var(--bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.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;
}

/* ==========================================================================
   layout — 全站布局骨架
   ========================================================================== */

/* 站点根容器 */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
}

/* 页头 */
.site-header {
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--text-reverse);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-link:hover {
  text-decoration: none;
  color: var(--accent-soft);
}

.brand-name {
  white-space: nowrap;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-list li {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  color: var(--text-reverse);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-reverse);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--text-reverse);
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background-color: var(--accent);
  border-radius: 1px 1px 0 0;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 4px;
}

.nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-reverse);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 主内容区 */
.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  background-color: var(--bg-light);
}

.inner-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px 48px;
  width: 100%;
  flex: 1 0 auto;
}

/* 面包屑 */
.breadcrumb {
  padding: 16px 0 8px;
  font-size: 13px;
  color: var(--text-graphite);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: var(--text-graphite);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--text-graphite);
  display: inline-block;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 28px;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-graphite);
  max-width: 860px;
}

.page-tags,
.header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-item,
.tag-label,
.version-tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1.5;
  padding: 3px 10px;
  border-radius: 3px;
  background-color: var(--bg-dark);
  color: var(--text-reverse);
  letter-spacing: 0.04em;
  font-weight: 400;
}

.tag-blue {
  display: inline-block;
  font-size: 12px;
  line-height: 1.5;
  padding: 3px 10px;
  border-radius: 3px;
  background-color: var(--tag-blue);
  color: #fff;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.tag-red {
  display: inline-block;
  font-size: 12px;
  line-height: 1.5;
  padding: 3px 10px;
  border-radius: 3px;
  background-color: var(--accent);
  color: #fff;
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* 页脚 */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-reverse);
  margin-top: auto;
  flex-shrink: 0;
}

.footer-columns {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-about {
  max-width: 380px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-reverse);
  margin-bottom: 12px;
}

.footer-about p:not(.footer-brand) {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(240, 248, 255, 0.75);
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-reverse);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  color: rgba(240, 248, 255, 0.75);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}

.footer-col ul a:hover {
  color: var(--accent-soft);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 18px 20px;
}

.footer-bottom p {
  max-width: var(--content-width);
  margin: 0 auto;
  font-size: 13px;
  color: rgba(240, 248, 255, 0.55);
  text-align: left;
}

/* ==========================================================================
   components — 公共组件
   ========================================================================== */

/* 主按钮 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  background-color: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #c0382a;
  color: #fff;
  text-decoration: none;
}

/* 次级按钮 */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  background-color: transparent;
  color: var(--text-reverse);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--text-reverse);
  text-decoration: none;
}

/* 页面布局：侧栏在左 */
.sidebar-left {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* 侧栏通用 */
.aside-inner,
.glossary-aside {
  position: sticky;
  top: 84px;
  background-color: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 20px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.aside-title,
.aside-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-dark);
}

.anchor-group {
  margin-bottom: 16px;
}

.anchor-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-graphite);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.anchor-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.anchor-list li a {
  display: block;
  padding: 6px 8px;
  font-size: 14px;
  color: var(--text-main);
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

.anchor-list li a:hover {
  background-color: rgba(23, 34, 42, 0.06);
  color: var(--accent);
}

/* 表格通用 */
.table-wrap,
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  background-color: var(--bg-light);
}

.table-wrap table,
.table-scroll table {
  min-width: 640px;
  font-size: 14px;
}

.table-wrap th,
.table-wrap td,
.table-scroll th,
.table-scroll td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-light);
  vertical-align: top;
  line-height: 1.7;
}

.table-wrap thead th,
.table-scroll thead th {
  background-color: var(--bg-dark);
  color: var(--text-reverse);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.table-wrap tbody tr:last-child td,
.table-scroll tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap tbody tr:nth-child(even),
.table-scroll tbody tr:nth-child(even) {
  background-color: rgba(23, 34, 42, 0.02);
}

/* 文本链接 */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link::after {
  content: "→";
  font-size: 14px;
  line-height: 1;
}

/* 区块标题通用 */
.section-title,
.section-heading h2,
.faq-preview-heading h2,
.flow-heading h2,
.term-preview-heading h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
}

.section-note {
  font-size: 14px;
  color: var(--text-graphite);
  margin-top: 6px;
  margin-bottom: 16px;
  line-height: 1.7;
}

/* 折叠问答 */
.faq-item {
  border: 1px solid var(--line-light);
  border-radius: 6px;
  background-color: var(--bg-light);
  margin-bottom: 10px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background-color: rgba(23, 34, 42, 0.04);
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--text-graphite);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 16px;
  border-top: 1px solid var(--line-light);
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-main);
  padding-top: 12px;
}

.faq-answer .faq-next {
  padding-top: 8px;
  font-size: 14px;
}

.faq-answer .faq-next a {
  color: var(--accent);
  font-weight: 500;
}

/* 相关链接条 */
.related-links {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px 20px 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.related-links-label {
  color: var(--text-graphite);
  font-weight: 500;
  white-space: nowrap;
}

.related-links-item {
  color: var(--text-main);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid var(--line-light);
  border-radius: 20px;
  background-color: var(--bg-light);
  font-size: 13px;
  line-height: 1.6;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.related-links-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* 图片容器 */
figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  font-size: 12px;
  color: var(--text-graphite);
  line-height: 1.6;
  padding: 8px 2px 0;
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

/* 首屏操作区 */
.hero-operation-panel {
  background-color: var(--bg-dark);
  color: var(--text-reverse);
  padding: 64px 20px 72px;
}

.hero-operation-panel .hero-copy,
.hero-operation-panel .hero-media {
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero-copy h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-reverse);
  max-width: 720px;
  margin-bottom: 18px;
}

.hero-copy p {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(240, 248, 255, 0.85);
  max-width: 640px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.link-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 4px;
  border-bottom: 1px solid transparent;
}

.link-secondary:hover {
  color: var(--accent-soft);
  text-decoration: underline;
  border-bottom-color: var(--accent-soft);
}

.hero-media {
  margin-top: 40px;
}

.hero-media figure {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
}

.hero-media img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

/* 边界声明条 */
.status-boundary-strip {
  background-color: var(--bg-dark-soft);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 14px 20px;
}

.status-boundary-strip p {
  max-width: var(--content-width);
  margin: 0 auto;
  font-size: 14px;
  color: rgba(240, 248, 255, 0.8);
  line-height: 1.7;
}

/* 内容地图双栏 */
.resource-map-two-column {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 56px 20px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.map-column h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.map-column > p {
  font-size: 14px;
  color: var(--text-graphite);
  line-height: 1.7;
  margin-bottom: 16px;
}

.map-entry-card {
  display: block;
  background-color: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 12px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.map-entry-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(23, 34, 42, 0.06);
  text-decoration: none;
}

.entry-tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1.5;
  padding: 2px 8px;
  border-radius: 3px;
  background-color: rgba(23, 34, 42, 0.08);
  color: var(--text-graphite);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.entry-title {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.entry-desc {
  display: block;
  font-size: 14px;
  color: var(--text-graphite);
  line-height: 1.7;
}

/* 场景片单三卡 */
.scene-playlist-three-card {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading p {
  font-size: 14px;
  color: var(--text-graphite);
  margin-top: 6px;
}

.scene-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.scene-card {
  background-color: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.scene-card figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.scene-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  padding: 16px 20px 4px;
}

.scene-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-graphite);
  padding: 0 20px;
  flex: 1 0 auto;
}

.scene-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 20px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.scene-card a::after {
  content: "→";
  font-size: 14px;
  line-height: 1;
}

.scene-card a:hover {
  text-decoration: underline;
}

/* 深色流程棋盘 */
.dark-flow-board {
  background-color: var(--bg-dark);
  padding: 56px 20px 64px;
}

.dark-flow-board .flow-heading {
  max-width: var(--content-width);
  margin: 0 auto 28px;
}

.flow-heading h2 {
  color: var(--text-reverse);
}

.flow-heading p {
  color: rgba(240, 248, 255, 0.75);
  font-size: 14px;
  margin-top: 6px;
}

.flow-step-list {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step-counter;
  list-style: none;
}

.flow-step {
  background-color: var(--bg-dark-soft);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 20px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
}

.flow-step .step-number {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-soft);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.flow-step h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-reverse);
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(240, 248, 255, 0.75);
  flex: 1 0 auto;
}

.step-site .step-number {
  color: var(--accent-soft);
}

.step-user .step-number {
  color: var(--tag-blue);
}

.btn-flow-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 28px auto 0;
  padding: 10px 28px;
  background-color: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  max-width: var(--content-width);
}

.btn-flow-link:hover {
  background-color: #c0382a;
  color: #fff;
  text-decoration: none;
}

/* 词表预览 */
.light-term-preview-table {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 56px 20px 32px;
}

.term-preview-heading {
  margin-bottom: 20px;
}

.term-preview-heading p {
  font-size: 14px;
  color: var(--text-graphite);
  margin-top: 6px;
}

.term-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  background-color: var(--bg-light);
  margin-bottom: 16px;
}

.term-preview-table {
  min-width: 640px;
  font-size: 14px;
}

.term-preview-table th,
.term-preview-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-light);
  line-height: 1.7;
  vertical-align: top;
}

.term-preview-table thead th {
  background-color: var(--bg-dark);
  color: var(--text-reverse);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.term-preview-table tbody tr:last-child td {
  border-bottom: 0;
}

.term-preview-table tbody tr:nth-child(even) {
  background-color: rgba(23, 34, 42, 0.02);
}

.link-term-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.link-term-more::after {
  content: "→";
  font-size: 14px;
  line-height: 1;
}

.link-term-more:hover {
  text-decoration: underline;
}

/* FAQ 预览 */
.faq-collapse-preview {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.faq-preview-heading {
  margin-bottom: 20px;
}

.faq-preview-heading p {
  font-size: 14px;
  color: var(--text-graphite);
  margin-top: 6px;
}

.faq-preview-list {
  margin-bottom: 16px;
}

.faq-preview-list .faq-item summary {
  font-size: 15px;
}

.faq-preview-list .faq-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-main);
  padding-top: 12px;
}

.link-faq-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.link-faq-more::after {
  content: "→";
  font-size: 14px;
  line-height: 1;
}

.link-faq-more:hover {
  text-decoration: underline;
}

/* 边界收束条 */
.boundary-closing-strip {
  background-color: var(--bg-dark);
  padding: 14px 20px;
}

.boundary-closing-strip p {
  max-width: var(--content-width);
  margin: 0 auto;
  font-size: 13px;
  color: rgba(240, 248, 255, 0.7);
  line-height: 1.6;
}

/* ==========================================================================
   pages — 频道索引 channels.html
   ========================================================================== */

.page-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.channel-aside {
  position: sticky;
  top: 84px;
}

.channel-content {
  min-width: 0;
}

/* 频道概念 */
.channel-concept {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background-color: var(--bg-dark);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
  align-items: center;
}

.concept-media {
  min-width: 0;
}

.concept-figure {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
}

.concept-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.concept-figure figcaption {
  color: rgba(240, 248, 255, 0.6);
}

.concept-copy h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-reverse);
  margin-bottom: 12px;
}

.concept-copy p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(240, 248, 255, 0.8);
  margin-bottom: 10px;
}

/* 频道区块 */
.channel-section {
  margin-bottom: 36px;
}

.channel-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-item {
  background-color: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 16px 20px;
  transition: border-color 0.2s ease;
}

.channel-item:hover {
  border-color: var(--tag-blue);
}

.channel-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.channel-item-head h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.channel-status {
  font-size: 12px;
  color: var(--text-graphite);
  padding: 2px 8px;
  background-color: rgba(23, 34, 42, 0.06);
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.channel-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 4px;
}

.channel-fit {
  font-size: 13px;
  color: var(--text-graphite);
  line-height: 1.7;
}

.channel-table-section {
  margin-bottom: 36px;
}

.connection-strip {
  background-color: var(--bg-dark);
  border-radius: 8px;
  padding: 28px;
  margin-top: 8px;
}

.connection-strip h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-reverse);
  margin-bottom: 4px;
}

.connection-strip .section-note {
  color: rgba(240, 248, 255, 0.75);
}

.connection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.connection-strip .btn-secondary {
  border-color: rgba(255, 255, 255, 0.35);
}

.connection-tip {
  font-size: 13px;
  color: rgba(240, 248, 255, 0.6);
  line-height: 1.7;
  margin-top: 8px;
}

/* ==========================================================================
   pages — 片单库 playlists.html
   ========================================================================== */

.playlist-intro {
  background-color: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 32px;
}

.playlist-intro .section-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.playlist-intro p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 8px;
}

.scenario-card-list {
  margin-bottom: 36px;
}

.scenario-card-list > .section-title {
  margin-bottom: 20px;
}

.scenario-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.scenario-card-list > .section-title {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.scenario-card {
  background-color: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.scenario-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.scenario-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scenario-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.scenario-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.scenario-time {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}

.scenario-card-body p:not(.scenario-time):not(.scenario-meta) {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 10px;
  flex: 1 0 auto;
}

.scenario-meta {
  font-size: 13px;
  color: var(--text-graphite);
  line-height: 1.7;
  margin-bottom: 12px;
  border-top: 1px solid var(--line-light);
  padding-top: 10px;
}

.playlist-field-table {
  margin-bottom: 32px;
}

.playlist-field-table > .section-title {
  margin-bottom: 16px;
}

.boundary-note {
  background-color: rgba(216, 71, 54, 0.06);
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 16px 24px;
  margin-bottom: 32px;
}

.boundary-note .section-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.boundary-note p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-main);
}

.next-entry-strip {
  background-color: var(--bg-dark);
  border-radius: 8px;
  padding: 28px;
}

.next-entry-strip .section-title {
  font-size: 18px;
  color: var(--text-reverse);
  margin-bottom: 16px;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-reverse);
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.entry-link:hover {
  background-color: rgba(255, 255, 255, 0.16);
  color: var(--text-reverse);
  text-decoration: none;
}

/* ==========================================================================
   pages — 观剧路径 watching.html
   ========================================================================== */

.path-overview {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  background-color: var(--bg-dark);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 32px;
}

.overview-text .section-title {
  color: var(--text-reverse);
  font-size: 18px;
  margin-bottom: 10px;
}

.overview-text p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(240, 248, 255, 0.8);
  margin-bottom: 8px;
}

.overview-figure {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
}

.overview-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-figure figcaption {
  color: rgba(240, 248, 255, 0.6);
}

.four-step-board {
  margin-bottom: 36px;
}

.board-heading {
  margin-bottom: 20px;
}

.board-heading p {
  font-size: 14px;
  color: var(--text-graphite);
  margin-top: 4px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  background-color: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.step-card .step-number {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-graphite);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.step-lead {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 8px;
}

.step-card p:not(.step-lead) {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-graphite);
  flex: 1 0 auto;
}

.step-owner {
  align-self: flex-start;
  margin-top: 12px;
  margin-bottom: 8px;
}

.step-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.step-link::after {
  content: "→";
  font-size: 13px;
}

.step-link:hover {
  text-decoration: underline;
}

.responsibility-table {
  margin-bottom: 36px;
}

.responsibility-table > .section-title {
  margin-bottom: 16px;
}

.entry-check-tips {
  background-color: var(--bg-dark);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 36px;
}

.tips-inner .section-title {
  color: var(--text-reverse);
  font-size: 18px;
  margin-bottom: 10px;
}

.tips-inner > p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(240, 248, 255, 0.8);
  margin-bottom: 16px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.check-list li {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(240, 248, 255, 0.85);
  padding-left: 20px;
  position: relative;
}

.check-list li::before {
  content: "□";
  position: absolute;
  left: 0;
  color: var(--accent-soft);
  font-size: 14px;
  line-height: 1.8;
}

.check-list strong {
  color: var(--text-reverse);
  font-weight: 600;
}

.tips-note {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(240, 248, 255, 0.7);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tips-note a {
  color: var(--accent-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 194, 184, 0.4);
  padding-bottom: 1px;
}

.tips-note a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   pages — 短剧词表 terms.html
   ========================================================================== */

.layout-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.terms-content {
  min-width: 0;
}

.term-figure {
  margin-top: 20px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
}

.term-aside-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.term-group {
  margin-bottom: 36px;
  scroll-margin-top: 90px;
}

.term-group-heading {
  position: sticky;
  top: 64px;
  z-index: 10;
  background-color: var(--bg-page);
  padding: 12px 0;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--bg-dark);
}

.term-group-heading h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.term-group-heading p {
  font-size: 13px;
  color: var(--text-graphite);
  line-height: 1.6;
}

.term-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  background-color: var(--bg-light);
}

.term-table {
  min-width: 720px;
  font-size: 14px;
}

.term-table th,
.term-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-light);
  line-height: 1.7;
  vertical-align: top;
}

.term-table thead th {
  background-color: var(--bg-dark);
  color: var(--text-reverse);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.term-table tbody tr:last-child td {
  border-bottom: 0;
}

.term-table tbody tr:nth-child(even) {
  background-color: rgba(23, 34, 42, 0.02);
}

.terminology-connection {
  background-color: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 24px;
}

.terminology-connection .section-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.terminology-connection > p {
  font-size: 14px;
  color: var(--text-graphite);
  margin-bottom: 16px;
}

.connection-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.connection-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  background-color: var(--bg-dark);
  color: var(--text-reverse);
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.connection-link:hover {
  background-color: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ==========================================================================
   pages — 常见问题 faq.html
   ========================================================================== */

.question-category-note {
  margin-bottom: 32px;
}

.question-category-note .section-title {
  font-size: 18px;
  margin-bottom: 16px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.category-item {
  background-color: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 18px 20px;
}

.category-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.category-item h3::before {
  content: "▪";
  color: var(--accent);
  margin-right: 6px;
  font-size: 13px;
}

.category-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-graphite);
}

.hot-question-accordion {
  margin-bottom: 32px;
}

.hot-question-accordion > h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.unresolved-question-entry {
  background-color: var(--bg-dark);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 32px;
}

.unresolved-question-entry .section-title {
  font-size: 18px;
  color: var(--text-reverse);
  margin-bottom: 8px;
}

.section-lead {
  font-size: 14px;
  color: rgba(240, 248, 255, 0.75);
  margin-bottom: 16px;
  line-height: 1.7;
}

.unresolved-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.unresolved-item {
  background-color: var(--bg-dark-soft);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  padding: 16px;
}

.unresolved-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-reverse);
  margin-bottom: 6px;
}

.unresolved-item p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(240, 248, 255, 0.7);
}

.unresolved-action {
  margin-top: 4px;
}

.unresolved-action a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  background-color: var(--accent);
  color: #fff;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
}

.unresolved-action a:hover {
  background-color: #c0382a;
  color: #fff;
}

.ask-guide-note {
  margin-bottom: 32px;
}

.ask-guide-note .section-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.ask-guide-note .section-lead {
  color: var(--text-graphite);
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.guide-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 16px;
  background-color: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.guide-link:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.guide-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--bg-dark);
  color: var(--text-reverse);
  font-size: 13px;
  font-family: var(--font-mono);
  border-radius: 4px;
  flex-shrink: 0;
}

.guide-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
}

.guide-note-text {
  font-size: 13px;
  color: var(--text-graphite);
  line-height: 1.7;
}

.faq-closing-figure {
  aspect-ratio: 16 / 5;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}

.faq-closing-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   pages — 收录与反馈 boundaries.html
   ========================================================================== */

.scope-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.scope-block {
  border-radius: 8px;
  padding: 24px;
}

.scope-do {
  background-color: var(--bg-dark);
}

.scope-do .section-title {
  color: var(--text-reverse);
  font-size: 18px;
  margin-bottom: 10px;
}

.scope-do p {
  color: rgba(240, 248, 255, 0.75);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.scope-not {
  background-color: var(--bg-light);
  border: 1px solid var(--line-light);
}

.scope-not .section-title {
  color: var(--text-main);
  font-size: 18px;
  margin-bottom: 10px;
}

.scope-not p {
  color: var(--text-graphite);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scope-list li {
  font-size: 14px;
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
}

.scope-do .scope-list li {
  color: rgba(240, 248, 255, 0.85);
}

.scope-not .scope-list li {
  color: var(--text-main);
}

.scope-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  font-size: 16px;
  line-height: 1.6;
}

.scope-do .scope-list li::before {
  color: var(--accent-soft);
}

.scope-not .scope-list li::before {
  color: var(--accent);
}

.scope-list li a {
  color: inherit;
  text-decoration: underline;
}

.allow-list {
  margin-bottom: 36px;
}

.allow-list .section-heading {
  margin-bottom: 16px;
}

.allow-list .section-heading p {
  font-size: 14px;
  color: var(--text-graphite);
  margin-top: 4px;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-list li {
  background-color: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: start;
}

.rule-list h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
}

.rule-list p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-graphite);
}

.deny-list {
  margin-bottom: 36px;
}

.deny-list .section-heading {
  margin-bottom: 16px;
}

.deny-list .section-heading p {
  font-size: 14px;
  color: var(--text-graphite);
  margin-top: 4px;
}

.deny-list-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.deny-list-items li {
  background-color: var(--bg-light);
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
}

.boundary-figure {
  aspect-ratio: 16 / 6;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 36px;
}

.boundary-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feedback-path-list {
  margin-bottom: 36px;
}

.feedback-path-list .section-heading {
  margin-bottom: 16px;
}

.feedback-path-list .section-heading p {
  font-size: 14px;
  color: var(--text-graphite);
  margin-top: 4px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feedback-card {
  background-color: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.feedback-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feedback-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-graphite);
  flex: 1 0 auto;
  margin-bottom: 12px;
}

.feedback-card a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  min-height: 32px;
}

.feedback-card a::after {
  content: "→";
  font-size: 14px;
}

.feedback-card a:hover {
  text-decoration: underline;
}

.return-entry {
  background-color: var(--bg-dark);
  border-radius: 8px;
  padding: 28px;
  text-align: left;
}

.return-entry .section-title {
  font-size: 18px;
  color: var(--text-reverse);
  margin-bottom: 8px;
}

.return-entry > p {
  font-size: 14px;
  color: rgba(240, 248, 255, 0.75);
  margin-bottom: 16px;
  line-height: 1.7;
}

.return-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.return-links .btn-secondary {
  border-color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   pages — 404 页
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  flex: 1 0 auto;
}

.error-panel {
  max-width: 560px;
  text-align: center;
  background-color: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 48px 40px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.error-lead {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.7;
}

.error-detail {
  font-size: 14px;
  color: var(--text-graphite);
  margin-bottom: 24px;
  line-height: 1.7;
}

.error-panel .btn-primary,
.error-panel .btn-secondary {
  margin: 6px;
}

/* ==========================================================================
   responsive — 响应式
   ========================================================================== */

@media (max-width: 1024px) {
  .scene-card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .step-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-step-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-map-two-column {
    gap: 20px;
  }

  .sidebar-left,
  .page-layout,
  .layout-shell {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
  }

  .rule-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .channel-concept {
    grid-template-columns: 1fr;
  }

  .path-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* 导航切换 */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--line-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 20px;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 14px 8px;
    border-bottom: 1px solid var(--line-dark);
    font-size: 15px;
  }

  .nav-link.is-current::after {
    left: 8px;
    right: auto;
    width: 3px;
    height: auto;
    top: 8px;
    bottom: 8px;
    border-radius: 0 2px 2px 0;
  }

  /* 首页布局切换 */
  .resource-map-two-column {
    grid-template-columns: 1fr;
  }

  .scene-card-grid {
    grid-template-columns: 1fr;
  }

  .flow-step-list {
    grid-template-columns: 1fr;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .category-list {
    grid-template-columns: 1fr;
  }

  .unresolved-list {
    grid-template-columns: 1fr;
  }

  .scenario-card-list {
    grid-template-columns: 1fr;
  }

  .scope-card {
    grid-template-columns: 1fr;
  }

  .deny-list-items {
    grid-template-columns: 1fr;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 20px 28px;
  }

  /* 侧栏布局切换 */
  .sidebar-left,
  .page-layout,
  .layout-shell {
    display: block;
  }

  .channel-aside,
  .glossary-aside {
    position: static;
    margin-top: 24px;
    max-height: none;
    overflow: visible;
  }

  .channel-content,
  .terms-content {
    width: 100%;
  }

  .channel-aside {
    order: 2;
  }

  .channel-content {
    order: 1;
  }

  .glossary-aside {
    margin-bottom: 24px;
  }

  .term-group-heading {
    position: static;
  }

  /* 首页移动顺序 */
  .home-main .resource-map-two-column {
    order: 3;
  }

  .home-main .scene-playlist-three-card {
    order: 2;
  }

  /* 内页移动顺序 */
  .page-layout .channel-aside {
    order: 2;
  }

  .page-layout .channel-content {
    order: 1;
  }

  .layout-shell .glossary-aside {
    order: 2;
  }

  .layout-shell .terms-content {
    order: 1;
  }

  /* 表格横向滚动 */
  .term-preview-table,
  .channel-field-table,
  .term-table {
    min-width: 560px;
  }

  .table-wrap table,
  .table-scroll table {
    min-width: 560px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
    height: 56px;
  }

  .brand-name {
    font-size: 16px;
  }

  .site-nav {
    top: 56px;
  }

  .inner-main {
    padding: 0 16px 32px;
  }

  .breadcrumb {
    padding: 12px 0 6px;
    font-size: 12px;
  }

  .page-header {
    padding: 16px 0 20px;
    margin-bottom: 20px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-description {
    font-size: 14px;
  }

  .hero-operation-panel {
    padding: 40px 16px 48px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .resource-map-two-column {
    padding: 36px 16px 28px;
  }

  .scene-playlist-three-card {
    padding: 16px 16px 36px;
  }

  .dark-flow-board {
    padding: 36px 16px 44px;
  }

  .light-term-preview-table {
    padding: 36px 16px 24px;
  }

  .faq-collapse-preview {
    padding: 24px 16px 32px;
  }

  .footer-columns {
    padding: 32px 16px 24px;
  }

  .footer-bottom {
    padding: 14px 16px;
  }

  .status-boundary-strip,
  .boundary-closing-strip {
    padding: 12px 16px;
  }

  .related-links {
    padding: 16px 16px 6px;
  }

  .channel-concept {
    padding: 16px;
  }

  .connection-strip {
    padding: 20px;
  }

  .connection-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .connection-actions .btn-primary,
  .connection-actions .btn-secondary {
    width: 100%;
  }

  .entry-links {
    flex-direction: column;
    align-items: stretch;
  }

  .entry-link {
    justify-content: center;
  }

  .next-entry-strip {
    padding: 20px;
  }

  .return-entry {
    padding: 20px;
  }

  .return-links {
    flex-direction: column;
    align-items: stretch;
  }

  .return-links .btn-primary,
  .return-links .btn-secondary {
    width: 100%;
  }

  .scope-block {
    padding: 18px;
  }

  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 48px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .rule-list li {
    display: block;
  }

  .rule-list h3 {
    margin-bottom: 4px;
  }

  .connection-link-row {
    flex-direction: column;
    align-items: stretch;
  }

  .connection-link {
    justify-content: center;
  }

  .guide-link {
    align-items: flex-start;
  }

  .guide-index {
    margin-top: 4px;
  }

  .strip-links {
    flex-direction: column;
    align-items: stretch;
  }

  .strip-link {
    justify-content: center;
  }

  .tips-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .unresolved-action a {
    width: 100%;
    justify-content: center;
  }
}

/* 导航打开状态 */
.nav-list.is-open {
  display: flex;
}

@media (max-width: 768px) {
  .site-nav.is-open {
    max-height: 480px;
  }
}

/* 确保正文宽度足够 */
.channel-content,
.terms-content {
  min-width: 0;
}

/* 步骤坐标编号 */
.flow-step .step-number::before {
  content: "STEP ";
  font-size: 12px;
  opacity: 0.6;
}

.step-card .step-number::before {
  content: "STEP ";
  font-size: 12px;
  opacity: 0.6;
}
