/* ==========================================================================
   妻友app · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --ink: #0f2a3d;
  --ink-soft: #24384a;
  --sand: #f4efe6;
  --panel: #ffffff;
  --amber: #e3a72f;
  --amber-deep: #b9821c;
  --teal: #2c6e6a;
  --muted: #5a6672;
  --line: #d8d2c6;
  --line-soft: #e8e2d7;
  --radius: 6px;
  --shell: 1120px;
  --gap: 24px;
  --shadow-card: 0 1px 2px rgba(15, 42, 61, 0.06);
  --shadow-lift: 0 4px 14px rgba(15, 42, 61, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--sand);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--amber-deep);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

summary {
  cursor: pointer;
}

details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout · 骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  background: var(--sand);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.site-header {
  background: var(--ink);
  color: #ffffff;
  border-bottom: 3px solid var(--amber);
}

.header-bar {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.brand-mark:hover,
.brand-mark:focus-visible {
  color: var(--amber);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: #d9e1e8;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: #ffffff;
  border-bottom-color: var(--teal);
}

.nav-list a.is-current {
  color: #ffffff;
  border-bottom-color: var(--amber);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.channel-index {
  background: var(--ink-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.channel-index-list {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.channel-index-list li {
  display: flex;
  flex: 0 0 auto;
}

.channel-index-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #cdd8e1;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.channel-index-list a:hover,
.channel-index-list a:focus-visible {
  color: #ffffff;
  border-bottom-color: var(--teal);
}

.mobile-drawer {
  background: var(--ink-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mobile-drawer[hidden] {
  display: none;
}

.drawer-nav {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px 24px 16px;
}

.drawer-list {
  display: flex;
  flex-direction: column;
}

.drawer-list a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 4px;
  color: #e6edf3;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.drawer-list a.is-current {
  color: var(--amber);
}

.site-main {
  display: block;
}

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  padding: 4px 0 16px;
}

.breadcrumb a {
  color: var(--teal);
  font-weight: 600;
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--muted);
}

.page-header {
  padding: 0 0 4px;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--ink);
}

.page-head {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
}

.page-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 74ch;
}

.page-lead + .page-lead {
  margin-top: 10px;
}

.page-lead-sub {
  color: var(--muted);
  font-size: 15px;
}

.page-figure {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--sand);
}

.page-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.page-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  background: var(--panel);
  border-top: 1px solid var(--line-soft);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--gap);
  align-items: start;
}

.layout-main {
  min-width: 0;
}

/* 侧栏统一面板外观 */
.field-panel,
.reading-order,
.layout-aside,
.entry-checklist,
.check-reminder {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-card);
}

.field-panel h2,
.reading-order h2,
.layout-aside h2,
.entry-checklist h2,
.check-reminder h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   layout · 页脚
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #d5dee6;
  margin-top: 40px;
}

.footer-groups {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

.link-group h2 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.link-group ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-group a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  color: #c3ced7;
}

.link-group a:hover,
.link-group a:focus-visible {
  color: var(--amber);
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-note p {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 4px 24px;
  font-size: 13px;
  line-height: 1.7;
  color: #a9b6c1;
}

.footer-note p:first-child {
  padding-top: 18px;
}

.footer-note p:last-child {
  padding-bottom: 22px;
}

/* --------------------------------------------------------------------------
   components · 通用文字与链接
   -------------------------------------------------------------------------- */

.section-desc,
.section-note,
.section-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 70ch;
  margin-bottom: 16px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--amber-deep);
  border-bottom-color: var(--amber);
}

.btn-primary,
.btn-ghost,
.button-primary,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary,
.button-primary {
  background: var(--amber);
  color: #2a1c00;
  border: 1px solid var(--amber);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.button-primary:hover,
.button-primary:focus-visible {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  color: #ffffff;
}

.btn-ghost,
.button-link {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible,
.button-link:hover,
.button-link:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.code-inline {
  display: inline-block;
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   components · 筛选标签 / 分类标签
   -------------------------------------------------------------------------- */

.filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-strip li {
  display: flex;
}

.filter-strip a,
.filter-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.filter-strip a:hover,
.filter-strip a:focus-visible,
.filter-tag:hover,
.filter-tag:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.topic-tags,
.problem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-tags li {
  display: flex;
}

.topic-tags a,
.problem-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
}

.topic-tags a:hover,
.topic-tags a:focus-visible,
.problem-tags a:hover,
.problem-tags a:focus-visible {
  border-color: var(--teal);
  background: #eef5f4;
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   components · 表格
   -------------------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  -webkit-overflow-scrolling: touch;
}

.channel-table {
  min-width: 640px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.channel-table caption {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  color: var(--muted);
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.channel-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: #eee7da;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.channel-table tbody th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.channel-table tbody td {
  padding: 12px 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.channel-table tbody tr:last-child th,
.channel-table tbody tr:last-child td {
  border-bottom: none;
}

.channel-table tbody tr:hover th,
.channel-table tbody tr:hover td {
  background: #f6f2e9;
}

/* --------------------------------------------------------------------------
   components · 字段解释
   -------------------------------------------------------------------------- */

.field-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.field-item {
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.field-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.field-item dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.field-item dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.field-mean {
  color: var(--ink-soft);
}

.field-use {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   components · 步骤卡 / 路径
   -------------------------------------------------------------------------- */

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.step-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-lift);
}

.step-card .step-num,
.step-card .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: var(--teal);
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}

.step-card h3 {
  font-size: 18px;
}

.step-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.step-card .step-link,
.step-card .card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
}

.step-card .step-link:hover,
.step-card .card-link:hover,
.step-card .step-link:focus-visible,
.step-card .card-link:focus-visible {
  color: var(--amber-deep);
}

/* --------------------------------------------------------------------------
   components · 折叠批次
   -------------------------------------------------------------------------- */

details.current-batch,
details.history-batch {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

details.current-batch > summary,
details.history-batch > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

details.current-batch > summary::after,
details.history-batch > summary::after {
  content: "展开";
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}

details[open].current-batch > summary::after,
details[open].history-batch > summary::after {
  content: "收起";
}

details.current-batch[open] > summary {
  border-bottom: 1px solid var(--line-soft);
  background: #f6f2e9;
}

details.history-batch[open] > summary {
  border-bottom: 1px solid var(--line-soft);
}

.release-body {
  padding: 16px 18px 18px;
}

.change-list li,
.release-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.change-list li:last-child,
.release-list li:last-child {
  margin-bottom: 0;
}

.change-list li::before,
.release-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
}

.release-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --------------------------------------------------------------------------
   components · 入口卡 / 关联入口
   -------------------------------------------------------------------------- */

.entry-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.entry-card:hover,
.entry-card:focus-visible {
  border-color: var(--teal);
  box-shadow: var(--shadow-lift);
}

.entry-card h3 {
  font-size: 16px;
}

.entry-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.entry-card p,
.entry-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   components · 警示
   -------------------------------------------------------------------------- */

.alert-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: #6b4a05;
  background: #fdf3dc;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
}

.alert-bar::before {
  content: "!";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: var(--amber-deep);
  border-radius: 50%;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}

.warning-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.warning-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
}

.warning-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: var(--amber-deep);
  border-radius: 50%;
}

.warning-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   components · FAQ
   -------------------------------------------------------------------------- */

.preparation-faq details,
.troubleshoot-faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.preparation-faq summary,
.troubleshoot-faq summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.preparation-faq summary::after,
.troubleshoot-faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 18px;
  font-weight: 700;
  color: var(--teal);
}

.preparation-faq details[open] summary::after,
.troubleshoot-faq details[open] summary::after {
  content: "−";
}

.preparation-faq details[open] summary,
.troubleshoot-faq details[open] summary {
  border-bottom: 1px solid var(--line-soft);
}

.preparation-faq details > p,
.troubleshoot-faq details > p {
  padding: 14px 18px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   components · 区块通用标题 / 分节
   -------------------------------------------------------------------------- */

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.section-head p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 70ch;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  background: #eef5f4;
  border: 1px solid #cfe3e1;
  border-radius: 999px;
}

.hero h1 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.hero-meta li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

.hero-media {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--sand);
}

.hero-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--panel);
  border-top: 1px solid var(--line-soft);
}

.channel-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--gap);
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.workspace-main {
  min-width: 0;
}

.workspace-main h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.workspace-figure {
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}

.workspace-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.workspace-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

.workspace-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.workspace-note a {
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.workspace-note a:hover,
.workspace-note a:focus-visible {
  border-bottom-color: var(--amber);
  color: var(--amber-deep);
}

.aside-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 16px;
}

.playlist-path {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.playlist-path h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.update-fold {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.update-fold h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.history-batches {
  margin-top: 4px;
}

.update-more {
  margin-top: 14px;
  font-size: 14px;
}

.update-more a {
  font-weight: 600;
  color: var(--teal);
}

.update-more a:hover,
.update-more a:focus-visible {
  color: var(--amber-deep);
}

.preparation-alert {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.alert-copy {
  min-width: 0;
}

.alert-copy h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.alert-copy .btn-ghost {
  margin-top: 4px;
}

.alert-figure {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}

.alert-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.alert-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

.troubleshoot-entry {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.troubleshoot-entry h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.troubleshoot-entry .entry-row {
  margin-top: 18px;
}

.troubleshoot-entry .entry-row p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 8px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-links-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
}

.related-links-item:hover,
.related-links-item:focus-visible {
  color: var(--amber-deep);
}

/* --------------------------------------------------------------------------
   pages · 频道地图
   -------------------------------------------------------------------------- */

.channel-workbench {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.channel-workbench h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.channel-choice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.channel-choice h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.choice-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf9f4;
}

.choice-card h3 {
  font-size: 16px;
}

.choice-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.choice-card .text-link {
  margin-top: auto;
}

.related-entry {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.related-entry h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

.aside-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 16px;
}

.aside-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 示例片单
   -------------------------------------------------------------------------- */

.playlist-grid {
  margin-bottom: 28px;
}

.playlist-grid h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.playlist-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.playlist-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.playlist-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-lift);
}

.playlist-cover {
  margin: 0;
}

.playlist-cover img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.playlist-card h3 {
  font-size: 17px;
  padding: 0 18px;
}

.playlist-scene {
  padding: 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.playlist-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px;
}

.playlist-tags li {
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  background: #eef5f4;
  border: 1px solid #cfe3e1;
  border-radius: 999px;
}

.playlist-order {
  padding: 0 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.playlist-card .card-link {
  margin-top: auto;
  padding: 0 18px;
}

.selection-path {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.selection-path h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.related-update {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.related-update h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.related-update > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 14px;
}

.reading-order-list {
  counter-reset: reading;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reading-order-list li {
  counter-increment: reading;
  position: relative;
  padding-left: 30px;
}

.reading-order-list li::before {
  content: counter(reading);
  position: absolute;
  left: 0;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: var(--teal);
  border-radius: 50%;
}

.reading-order-list h3 {
  font-size: 15px;
  margin-bottom: 2px;
}

.reading-order-list p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 更新记录
   -------------------------------------------------------------------------- */

.current-release,
.history-releases,
.change-fields {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.current-release h2,
.history-releases h2,
.change-fields h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.current-release .current-batch {
  border-left: 3px solid var(--amber);
  box-shadow: none;
}

.batch-id {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.batch-status {
  padding: 1px 9px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: var(--teal);
  border-radius: 999px;
}

.batch-summary {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.history-releases .history-batch {
  box-shadow: none;
}

.change-fields .field-list {
  margin-top: 12px;
}

.layout-aside {
  position: sticky;
  top: 16px;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.aside-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

.related-playlist {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.related-playlist h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   pages · 观看准备
   -------------------------------------------------------------------------- */

.preparation-steps,
.device-warning,
.manual-path {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.preparation-steps h2,
.device-warning h2,
.manual-path h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.preparation-steps > p,
.device-warning > p,
.manual-path > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 18px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: #fbf9f4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-block .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: var(--teal);
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}

.step-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}

.step-figure img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.step-block h3 {
  font-size: 16px;
}

.step-block p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.path-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.path-tabs h3 {
  font-size: 16px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-list li {
  display: flex;
}

.tab-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fbf9f4;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.tab-list a:hover,
.tab-list a:focus-visible {
  color: var(--teal);
  border-color: var(--teal);
  background: #eef5f4;
}

.manual-path-note {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.manual-path-note a {
  font-weight: 600;
  color: var(--teal);
}

.manual-path-note a:hover,
.manual-path-note a:focus-visible {
  color: var(--amber-deep);
}

.entry-checklist > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 14px;
}

.checklist {
  counter-reset: check;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist li {
  counter-increment: check;
  position: relative;
  padding-left: 28px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
}

.checklist li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.checklist li::before {
  content: counter(check);
  position: absolute;
  left: 0;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: var(--teal);
  border-radius: 50%;
}

.check-question {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
}

.check-note {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.preparation-faq,
.related-entry {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.preparation-faq h2,
.related-entry h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

.preparation-faq {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   pages · 问题排查
   -------------------------------------------------------------------------- */

.problem-tabs,
.troubleshoot-steps,
.feedback-prep,
.troubleshoot-faq {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.problem-tabs h2,
.troubleshoot-steps h2,
.feedback-prep h2,
.troubleshoot-faq h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.problem-tabs > p,
.troubleshoot-steps > p,
.feedback-prep > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 16px;
}

.step-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas:
    "no title"
    "no judge"
    "no action"
    "no next";
  column-gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}

.step-row:first-of-type {
  border-top: none;
  padding-top: 4px;
}

.step-row .step-no {
  grid-area: no;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: var(--teal);
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}

.step-row h3 {
  grid-area: title;
  font-size: 17px;
  margin-bottom: 4px;
}

.step-judge {
  grid-area: judge;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.step-action {
  grid-area: action;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.step-action a {
  font-weight: 600;
  color: var(--teal);
}

.step-action a:hover,
.step-action a:focus-visible {
  color: var(--amber-deep);
}

.step-next {
  grid-area: next;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.feedback-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.feedback-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
}

.feedback-list strong {
  color: var(--ink);
}

.feedback-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.feedback-note a {
  font-weight: 600;
  color: var(--teal);
}

.feedback-note a:hover,
.feedback-note a:focus-visible {
  color: var(--amber-deep);
}

.reminder-block {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.reminder-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.reminder-block h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.reminder-block p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 内容原则
   -------------------------------------------------------------------------- */

.classification-principles,
.terminology-table,
.boundary-notes,
.correction-note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.principle-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: #fbf9f4;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
}

.principle-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  background: #eef5f4;
  border: 1px solid #cfe3e1;
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}

.principle-card h3 {
  font-size: 16px;
}

.principle-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.term-table {
  min-width: 560px;
  font-size: 14px;
}

.term-table caption {
  padding: 0 0 12px;
  font-size: 13px;
  text-align: left;
  color: var(--muted);
}

.term-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: #eee7da;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.term-table tbody th {
  width: 22%;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  background: #fbf9f4;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.term-table tbody td {
  padding: 12px 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.term-table tbody tr:last-child th,
.term-table tbody tr:last-child td {
  border-bottom: none;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.boundary-list li {
  padding: 16px 18px;
  background: #fbf9f4;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
}

.boundary-list h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.boundary-list p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.correction-list {
  counter-reset: correction;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.correction-list li {
  counter-increment: correction;
  position: relative;
  padding-left: 34px;
}

.correction-list li::before {
  content: counter(correction);
  position: absolute;
  left: 0;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: var(--teal);
  border-radius: 50%;
}

.correction-list h3 {
  font-size: 16px;
  margin-bottom: 2px;
}

.correction-list p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.correction-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}

.correction-entry a {
  font-weight: 600;
  color: var(--teal);
}

.correction-entry a:hover,
.correction-entry a:focus-visible {
  color: var(--amber-deep);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.error-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 40px 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
}

.error-code {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.error-panel h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 18px;
}

.error-hint-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.error-hint-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.error-hint-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-links {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.error-links h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.error-link-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  background: #fbf9f4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-link-list a:hover,
.error-link-list a:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
  background: #eef5f4;
}

/* --------------------------------------------------------------------------
   responsive · 960px
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-bar {
    gap: 16px;
    padding: 0 18px;
  }

  .channel-index-list {
    padding: 0 18px;
  }

  .drawer-nav {
    padding: 8px 18px 16px;
  }

  .home-main,
  .inner-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .footer-groups {
    padding: 32px 18px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-note p {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-media img {
    height: 260px;
  }

  .channel-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout-aside {
    position: static;
  }

  .preparation-alert {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .path-grid,
  .steps-grid,
  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-grid > :last-child:nth-child(odd),
  .steps-grid > :last-child:nth-child(odd),
  .choice-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-figure img {
    height: 220px;
  }

  .page-title {
    font-size: 30px;
  }

  .page-head {
    padding: 22px 20px;
  }
}

/* --------------------------------------------------------------------------
   responsive · 640px
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-bar {
    min-height: 60px;
    padding: 0 14px;
    flex-wrap: nowrap;
  }

  .brand-mark {
    font-size: 19px;
  }

  .channel-index-list {
    padding: 0 14px;
    gap: 2px;
  }

  .channel-index-list a {
    padding: 0 8px;
    font-size: 13px;
  }

  .drawer-nav {
    padding: 6px 14px 14px;
  }

  .home-main,
  .inner-main {
    padding: 20px 14px 40px;
  }

  .breadcrumb {
    font-size: 12px;
    padding-bottom: 12px;
  }

  .page-title {
    font-size: 28px;
    line-height: 1.32;
  }

  .page-head {
    padding: 18px 16px;
    margin-bottom: 20px;
  }

  .page-lead {
    font-size: 15px;
  }

  .page-figure img {
    height: 180px;
  }

  .hero {
    padding: 18px;
    margin-bottom: 26px;
    gap: 18px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
  }

  .hero-media img {
    height: 200px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 6px;
  }

  .channel-workspace,
  .playlist-path,
  .update-fold,
  .preparation-alert,
  .troubleshoot-entry {
    padding: 22px 0;
  }

  .workspace-main h2,
  .playlist-path h2,
  .update-fold h2,
  .alert-copy h2,
  .troubleshoot-entry h2 {
    font-size: 20px;
  }

  .workspace-figure img {
    height: 160px;
  }

  .path-grid,
  .steps-grid,
  .choice-grid,
  .principle-grid,
  .playlist-cards,
  .path-tabs,
  .boundary-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .path-grid > :last-child:nth-child(odd),
  .steps-grid > :last-child:nth-child(odd),
  .choice-grid > :last-child:nth-child(odd) {
    grid-column: auto;
  }

  .channel-workbench,
  .channel-choice,
  .related-entry,
  .selection-path,
  .related-update,
  .current-release,
  .history-releases,
  .change-fields,
  .related-playlist,
  .preparation-steps,
  .device-warning,
  .manual-path,
  .preparation-faq,
  .problem-tabs,
  .troubleshoot-steps,
  .feedback-prep,
  .troubleshoot-faq,
  .classification-principles,
  .terminology-table,
  .boundary-notes,
  .correction-note {
    padding: 18px 16px;
    margin-bottom: 20px;
  }

  .channel-workbench h2,
  .channel-choice h2,
  .related-entry h2,
  .selection-path h2,
  .related-update h2,
  .current-release h2,
  .history-releases h2,
  .change-fields h2,
  .related-playlist h2,
  .preparation-steps h2,
  .device-warning h2,
  .manual-path h2,
  .preparation-faq h2,
  .problem-tabs h2,
  .troubleshoot-steps h2,
  .feedback-prep h2,
  .troubleshoot-faq h2,
  .section-head h2 {
    font-size: 20px;
  }

  .field-panel,
  .reading-order,
  .layout-aside,
  .entry-checklist,
  .check-reminder {
    padding: 18px 16px;
  }

  .filter-strip {
    gap: 6px;
  }

  .filter-strip a,
  .filter-tag {
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }

  .topic-tags,
  .problem-tags {
    flex-direction: column;
    gap: 8px;
  }

  .topic-tags li,
  .problem-tags a {
    width: 100%;
  }

  .topic-tags a,
  .problem-tags a {
    width: 100%;
    justify-content: flex-start;
  }

  .channel-table {
    min-width: 560px;
    font-size: 13px;
  }

  .channel-table thead th,
  .channel-table tbody th,
  .channel-table tbody td {
    padding: 10px 12px;
  }

  .term-table {
    min-width: 480px;
    font-size: 13px;
  }

  .term-table tbody th {
    width: 30%;
    white-space: normal;
  }

  .step-row {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 12px;
  }

  .step-row .step-no {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .step-row h3 {
    font-size: 16px;
  }

  .playlist-cover img {
    height: 160px;
  }

  .alert-figure img {
    height: 180px;
  }

  .related-links {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px 14px 16px;
    gap: 20px;
  }

  .footer-note p {
    padding-left: 14px;
    padding-right: 14px;
  }

  .error-main {
    padding: 28px 14px 44px;
  }

  .error-panel {
    padding: 26px 18px;
  }

  .error-panel h1 {
    font-size: 26px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .button-primary,
  .error-actions .button-link {
    width: 100%;
  }

  .error-links {
    padding: 18px 16px;
  }
}

/* --------------------------------------------------------------------------
   动效增强 · 尊重系统偏好
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .step-card,
  .entry-card,
  .playlist-card,
  .choice-card {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
