/* ==========================================================================
   光棍在线影院 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --bg: #f7f7f5;
  --bg-panel: #ffffff;
  --bg-subtle: #f0f0ec;
  --text: #23262b;
  --text-soft: #5c6169;
  --text-faint: #7b8088;
  --accent: #2f6f6a;
  --accent-soft: #e3ede9;
  --border: #dcdcd6;
  --border-strong: #c8c8c0;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(35, 38, 43, 0.05);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shell: 1080px;
  --read: 720px;
  --aside: 300px;
  --header-h: 72px;
  --header-h-compact: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
table {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  text-align: left;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 页头 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(247, 247, 245, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(6px);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 0.2s ease;
}

.site-header.is-compact .header-inner {
  height: var(--header-h-compact);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex: 0 0 auto;
  line-height: 1.2;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand-sub {
  font-size: 12.5px;
  color: var(--text-faint);
  font-weight: 400;
  border-left: 1px solid var(--border-strong);
  padding-left: 10px;
}

/* 主导航 */

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list > li > a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-list > li > a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-list > li > a.is-current {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* 汉堡按钮（桌面隐藏） */

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg-panel);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text);
  transition: transform 0.2s ease, opacity 0.2s 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 {
  flex: 1 1 auto;
  width: 100%;
}

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px 24px 72px;
}

/* 面包屑 */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--border-strong);
}

.breadcrumb-current {
  color: var(--text);
}

/* 页面标题区 */

.page-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.page-title {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.page-description {
  max-width: var(--read);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
}

/* 通用两栏（正文 + 侧栏） */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--aside);
  gap: 48px;
  align-items: start;
}

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--aside);
  gap: 48px;
  align-items: start;
}

.content-main,
.content-column,
.layout-main {
  min-width: 0;
}

.content-main,
.content-column {
  max-width: var(--read);
}

/* 页脚 */

.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--bg-subtle);
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand {
  max-width: 320px;
}

.footer-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-soft);
}

.footer-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
}

.footer-group a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-copy {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 32px;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   components · 通用组件
   -------------------------------------------------------------------------- */

/* 按钮 */

.btn-primary {
  display: inline-block;
  padding: 11px 22px;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background-color: #275c58;
  text-decoration: none;
}

.btn-ghost {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 15px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn-text {
  display: inline-block;
  padding: 11px 4px;
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
}

.btn-text:hover {
  text-decoration: underline;
}

.text-link {
  font-size: 14.5px;
  color: var(--accent);
  text-decoration: none;
}

.text-link::after {
  content: " →";
  font-size: 13px;
}

.text-link:hover {
  text-decoration: underline;
}

/* 区块通用 */

.section {
  padding: 44px 0;
  border-top: 1px solid var(--border);
}

.section:first-of-type {
  border-top: none;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2,
.section-title {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-desc,
.section-intro,
.section-lead {
  max-width: var(--read);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
}

.section-text {
  max-width: var(--read);
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text);
}

.sub-title,
.subsection-title {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}

.section-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-soft);
}

.section-note a {
  margin-right: 16px;
}

/* 图片与图注 */

figure {
  margin: 0;
}

.hero-figure,
.section-figure,
.channel-figure,
.collection-figure,
.guide-figure {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-figure img,
.section-figure img,
.channel-figure img,
.collection-figure img,
.guide-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-figure figcaption,
.section-figure figcaption,
.channel-figure figcaption,
.collection-figure figcaption,
.guide-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  background-color: var(--bg-panel);
}

/* 表格 */

.fields-table,
.changelog-table,
.field-table,
.mapping-table,
.record-table {
  width: 100%;
  font-size: 14.5px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.fields-table caption,
.changelog-caption,
.field-table caption,
.mapping-table caption,
.record-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-faint);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.fields-table th,
.fields-table td,
.changelog-table th,
.changelog-table td,
.field-table th,
.field-table td,
.mapping-table th,
.mapping-table td,
.record-table th,
.record-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
}

.fields-table thead th,
.changelog-table thead th,
.field-table thead th,
.mapping-table thead th,
.record-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
  background-color: var(--bg-subtle);
  white-space: nowrap;
}

.fields-table tbody tr:last-child th,
.fields-table tbody tr:last-child td,
.changelog-table tbody tr:last-child th,
.changelog-table tbody tr:last-child td,
.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.mapping-table tbody tr:last-child th,
.mapping-table tbody tr:last-child td,
.record-table tbody tr:last-child th,
.record-table tbody tr:last-child td {
  border-bottom: none;
}

.fields-table tbody th,
.record-table tbody th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* 侧栏通用 */

.content-aside,
.sidebar-column,
.page-aside,
.layout-side,
.sidebar {
  min-width: 0;
  font-size: 14px;
}

.aside-title,
.side-title,
.sidebar-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.content-aside > .aside-title + .aside-toc,
.content-aside > .aside-title + .aside-links,
.page-aside > .aside-title + .aside-nav {
  margin-bottom: 28px;
}

.aside-toc ul,
.aside-links ul,
.aside-nav ul,
.side-list,
.aside-list,
.quick-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--border);
}

.aside-toc li a,
.aside-links li a,
.aside-nav li a,
.side-list li a {
  display: block;
  padding: 6px 0 6px 14px;
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
}

.aside-toc li a:hover,
.aside-links li a:hover,
.aside-nav li a:hover,
.side-list li a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
  text-decoration: none;
}

/* 相关帮助区块 */

.aside-help {
  margin-top: 28px;
}

.aside-help h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.aside-help ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-help a {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}

.aside-help a:hover {
  text-decoration: underline;
}

/* FAQ */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-faint);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 0 16px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-soft);
  max-width: var(--read);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

/* 首屏 */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
  padding: 56px 0 52px;
}

.hero-text {
  min-width: 0;
}

.hero-kicker {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 40px;
  line-height: 1.24;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-lead {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-soft);
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-figure img {
  aspect-ratio: 16 / 10;
}

/* 题材频道总览 */

.channel-rows {
  border-top: 1px solid var(--border);
}

.channel-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 200px 96px;
  gap: 24px;
  align-items: baseline;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border);
}

.channel-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.channel-scope {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-soft);
}

.channel-audience {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-faint);
}

.channel-link {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  text-align: right;
  white-space: nowrap;
}

.channel-link:hover {
  text-decoration: underline;
}

.channels-overview .section-figure {
  margin-top: 28px;
}

.channels-overview .section-figure img {
  aspect-ratio: 21 / 9;
}

/* 专题片单速览 */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.collection-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.collection-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.collection-scope {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
}

.collection-channels {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-faint);
}

.collection-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}

.collection-link:hover {
  text-decoration: underline;
}

.collections-preview .section-figure {
  margin-top: 28px;
}

.collections-preview .section-figure img {
  aspect-ratio: 21 / 9;
}

/* 条目字段与收录边界摘要 */

.fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.fields-table-wrap {
  min-width: 0;
}

.fields-aside {
  min-width: 0;
  padding: 22px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.fields-aside-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.fields-aside p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.fields-aside-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 0;
}

/* 查阅路径三步概览 */

.path-list {
  border-top: 1px solid var(--border);
}

.path-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border);
}

.path-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.6;
}

.path-body {
  min-width: 0;
}

.path-action {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 6px;
}

.path-result {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-soft);
}

.path-more {
  margin-top: 22px;
  font-size: 14.5px;
}

/* 收录范围调整记录 */

.changelog-table {
  margin-bottom: 20px;
}

.changelog-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.changelog-more {
  font-size: 14.5px;
}

/* --------------------------------------------------------------------------
   pages · 内页共用模块
   -------------------------------------------------------------------------- */

/* 频道页 · 逐条方向说明 */

.channel-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.channel-item:first-of-type {
  border-top: 1px solid var(--border);
}

.channel-item h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 14px;
}

.channel-figure {
  margin-bottom: 16px;
}

.channel-figure img {
  aspect-ratio: 16 / 9;
}

.channel-item .channel-scope {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 10px;
}

.channel-item .channel-lead {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-soft);
}

/* 频道页 · 适用人群对照 */

.audience-table {
  margin-top: 18px;
}

/* 频道页 · 频道与片单对应 */

.map-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 18px;
}

.map-column {
  min-width: 0;
}

.map-column h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.map-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-list li {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.map-list li:last-child {
  border-bottom: none;
}

/* 片单页 */

.collection-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.collection-item:first-of-type {
  border-top: 1px solid var(--border);
}

.collection-item h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 14px;
}

.collection-figure {
  margin-bottom: 16px;
}

.collection-figure img {
  aspect-ratio: 16 / 9;
}

.collection-item p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.collection-item .text-link {
  display: inline-block;
  margin-top: 4px;
}

.organize-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

.organize-point {
  padding-left: 16px;
  border-left: 2px solid var(--accent-soft);
}

.organize-point h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 6px;
}

.organize-point p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-soft);
}

.section-mapping p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.mapping-table {
  margin-bottom: 16px;
}

/* 字段页 */

.field-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.field-item:first-of-type {
  border-top: 1px solid var(--border);
}

.field-name {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.field-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 10px;
}

.field-sample {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft);
  background-color: var(--bg-subtle);
  border-left: 3px solid var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
}

.field-sample-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  margin-right: 8px;
}

.section-fields-read .section-figure {
  margin: 18px 0 26px;
}

.section-fields-read .section-figure img {
  aspect-ratio: 16 / 9;
}

.read-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.read-col {
  min-width: 0;
}

.read-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.read-list li {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-soft);
  padding-left: 18px;
  position: relative;
}

.read-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent);
}

.read-col-wrong .read-list li::before {
  background-color: var(--border-strong);
}

/* 指引页 */

.step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  counter-reset: guide-step;
}

.step-item {
  list-style: none;
}

.step-article {
  padding: 22px 22px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background-color: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  margin-bottom: 10px;
}

.step-action {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
}

.step-result {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-soft);
}

.step-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-faint);
}

.guide-figure {
  margin: 26px 0;
}

.guide-figure img {
  aspect-ratio: 16 / 9;
}

.checkpoint-table {
  margin-top: 18px;
}

.help-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

.help-item {
  padding: 18px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.help-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 6px;
}

.help-desc {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.help-link {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}

.help-link:hover {
  text-decoration: underline;
}

.guide-faq {
  margin-top: 8px;
}

/* 指引页侧栏 */

.layout-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.side-block {
  min-width: 0;
}

/* 边界页 */

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.scope-item {
  padding-left: 16px;
  border-left: 2px solid var(--accent-soft);
}

.scope-item-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 6px;
}

.scope-item p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-soft);
}

.section-scope .section-figure {
  margin: 20px 0 6px;
}

.section-scope .section-figure img {
  aspect-ratio: 16 / 9;
}

.exclude-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.exclude-item {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.exclude-item:first-child {
  border-top: 1px solid var(--border);
}

.exclude-item-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.exclude-item p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-soft);
}

.section-adjust p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.record-table {
  margin-bottom: 28px;
}

.correct-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.correct-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: baseline;
}

.correct-step .step-index {
  grid-row: 1 / span 2;
  margin-bottom: 0;
  text-align: center;
}

.correct-step .step-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 4px;
}

.correct-step p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-soft);
}

.help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}

.help-links a {
  font-size: 14.5px;
  color: var(--accent);
  text-decoration: none;
}

.help-links a:hover {
  text-decoration: underline;
}

/* 边界页侧栏 */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-block {
  min-width: 0;
}

.quick-list {
  border-left: none;
  gap: 0;
}

.quick-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}

.quick-item:last-child {
  border-bottom: none;
}

.quick-key {
  color: var(--text-faint);
  flex: 0 0 auto;
}

.quick-value {
  color: var(--text);
  text-align: right;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 404 */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 96px;
}

.page-wrap {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
}

.error-wrap {
  max-width: 640px;
  text-align: left;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}

.error-title {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 16px;
}

.error-text {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 26px 0 36px;
}

.error-links {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.error-links-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.error-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.error-links a {
  font-size: 14.5px;
  color: var(--accent);
  text-decoration: none;
}

.error-links a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .content-main,
  .content-column {
    max-width: none;
  }

  .content-aside,
  .sidebar-column,
  .page-aside,
  .layout-side,
  .sidebar {
    max-width: var(--read);
  }

  .channel-row {
    grid-template-columns: 160px minmax(0, 1fr) 96px;
  }

  .channel-audience {
    display: none;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    --header-h-compact: 56px;
  }

  .header-inner {
    padding: 0 18px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 18px rgba(35, 38, 43, 0.06);
    padding: 8px 18px 16px;
  }

  .site-header.is-compact .site-nav {
    top: var(--header-h-compact);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list > li > a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-list > li:last-child > a {
    border-bottom: none;
  }

  .nav-list > li > a.is-current {
    border-bottom-color: var(--border);
    color: var(--accent);
  }

  .home-main,
  .inner-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 0 40px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-lead {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    text-align: center;
  }

  .section {
    padding: 34px 0;
  }

  .section-head h2,
  .section-title {
    font-size: 21px;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 18px 2px;
  }

  .channel-link {
    text-align: left;
  }

  .collection-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .fields-layout,
  .read-columns,
  .map-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .path-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
  }

  .exclude-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  /* 表格转字段卡片，字段顺序不变 */

  .fields-table,
  .changelog-table,
  .field-table,
  .mapping-table,
  .record-table {
    border: none;
    background-color: transparent;
  }

  .fields-table caption,
  .changelog-caption,
  .field-table caption,
  .mapping-table caption,
  .record-caption {
    padding: 0 0 12px;
    border-bottom: none;
  }

  .fields-table thead,
  .changelog-table thead,
  .field-table thead,
  .mapping-table thead,
  .record-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .fields-table tbody tr,
  .changelog-table tbody tr,
  .field-table tbody tr,
  .mapping-table tbody tr,
  .record-table tbody tr {
    display: block;
    background-color: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 14px;
    margin-bottom: 12px;
  }

  .fields-table tbody th,
  .fields-table tbody td,
  .changelog-table tbody th,
  .changelog-table tbody td,
  .field-table tbody th,
  .field-table tbody td,
  .mapping-table tbody th,
  .mapping-table tbody td,
  .record-table tbody th,
  .record-table tbody td {
    display: block;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    white-space: normal;
  }

  .fields-table tbody tr > *:last-child,
  .changelog-table tbody tr > *:last-child,
  .field-table tbody tr > *:last-child,
  .mapping-table tbody tr > *:last-child,
  .record-table tbody tr > *:last-child {
    border-bottom: none;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 40px 18px 26px;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-copy {
    padding: 0 18px 28px;
  }

  .error-main {
    padding: 48px 18px 72px;
  }

  .error-title {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .brand-sub {
    display: none;
  }

  .hero-title {
    font-size: 26px;
  }

  .page-title {
    font-size: 23px;
  }

  .section-head h2,
  .section-title {
    font-size: 19px;
  }

  .step-article,
  .help-item,
  .fields-aside {
    padding: 18px 16px;
  }

  .correct-step {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 12px;
  }

  .quick-item {
    flex-direction: column;
    gap: 2px;
  }

  .quick-value {
    text-align: left;
  }
}

/* 深色模式 */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181b;
    --bg-panel: #1d2024;
    --bg-subtle: #1a1d21;
    --text: #e6e6e2;
    --text-soft: #a8adb4;
    --text-faint: #7f858d;
    --accent: #6bb3ab;
    --accent-soft: #24322f;
    --border: #2c3035;
    --border-strong: #3a3f45;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }

  .site-header {
    background-color: rgba(22, 24, 27, 0.94);
  }

  .btn-primary {
    color: #10161a;
  }

  .btn-primary:hover {
    background-color: #7cc2ba;
  }
}
