/* ==========================================================================
   天美高清 · 全站样式表
   结构：base → layout → components → pages → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与重置
   -------------------------------------------------------------------------- */

:root {
  --bg: #f3f4f1;
  --panel: #ffffff;
  --line: #d9ddd6;
  --line-strong: #c3c9c0;
  --ink: #1c201d;
  --ink-2: #5c635e;
  --ink-3: #7d847e;
  --green: #1f7a4d;
  --green-soft: #e6f0ea;
  --row-hover: #f6f7f4;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Mono", monospace;
  --sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 3px;
  --shell: 1120px;
  --pad: 32px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd {
  margin: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--green);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
}

.brand-mark {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.brand-mark:hover {
  color: var(--ink);
}

.brand-slogan {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink-3);
}

.main-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-block;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--row-hover);
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
}

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  padding: 8px 0 12px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-nav-link:hover {
  color: var(--green);
}

.site-main {
  display: block;
  padding-bottom: 8px;
}

.inner-main {
  padding-top: 0;
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.breadcrumb-inner {
  padding-top: 18px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumb a,
.breadcrumb-current {
  color: var(--ink-2);
}

.breadcrumb a:hover {
  color: var(--green);
}

.breadcrumb-sep {
  color: var(--line-strong);
  padding: 0 2px;
}

.inner-main > .breadcrumb {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--pad) 0;
}

.page-header {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px var(--pad) 0;
}

.page-title {
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

section.page-title {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 10px var(--pad) 18px;
  border-bottom: 1px solid var(--line);
}

.page-title-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.page-title-text {
  min-width: 0;
}

.page-title-main {
  min-width: 0;
}

.page-title-side {
  flex: 0 0 auto;
}

.page-summary {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 68ch;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-sep {
  color: var(--line-strong);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  padding-top: 28px;
  padding-bottom: 8px;
}

.page-layout.layout-log {
  grid-template-columns: minmax(0, 1fr);
}

.content-column {
  min-width: 0;
}

.side-column,
.sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer {
  margin-top: 40px;
  padding-top: 28px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 24px;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-list a {
  font-size: 13px;
  color: var(--ink-2);
}

.footer-list a:hover {
  color: var(--green);
}

.footer-boundary {
  padding-top: 14px;
  padding-bottom: 14px;
  border-top: 1px solid var(--line);
}

.footer-boundary p {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
}

.footer-type {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   components · 按钮、标签、链接、区块标题
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.2;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #2c332e;
  border-color: #2c332e;
  color: #fff;
}

.btn-ghost {
  background: var(--panel);
  color: var(--ink-2);
}

.btn-ghost:hover {
  background: var(--row-hover);
  color: var(--ink);
}

.btn-print {
  white-space: nowrap;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.text-link::after {
  content: "\2192";
  font-size: 12px;
}

.text-link:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.prompt-mark {
  display: inline-block;
  margin-right: 8px;
  color: var(--green);
  font-family: var(--mono);
  font-weight: 600;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 17px;
  font-weight: 600;
}

.section-sub {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 72ch;
}

.section-title {
  font-size: 17px;
  font-weight: 600;
}

.section-lead {
  margin-top: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 72ch;
}

.sub-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.block-title,
.module-title {
  font-size: 17px;
  font-weight: 600;
}

.block-intro,
.module-lead {
  margin-top: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 72ch;
}

.block-footnote,
.module-tail,
.section-footnote,
.inline-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
}

.block-footnote a,
.module-tail a,
.section-footnote a,
.inline-note a,
.transfer-next a,
.check-hint a,
.checklist-note a {
  color: var(--green);
  border-bottom: 1px solid var(--line-strong);
}

.block-footnote a:hover,
.module-tail a:hover,
.section-footnote a:hover,
.inline-note a:hover,
.transfer-next a:hover,
.check-hint a:hover,
.checklist-note a:hover {
  border-bottom-color: var(--green);
}

/* 图片容器通用约束 */
figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

figcaption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* 折叠面板通用 */
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

/* 侧栏模块 */
.side-module,
.side-box {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.side-anchors,
.anchor-list,
.related-list,
.side-anchor-list,
.side-link-list,
.link-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-anchors a,
.anchor-list a,
.related-list a,
.side-anchor-list a,
.side-link-list a,
.link-list a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  border-bottom: 1px dashed transparent;
}

.side-anchors a:hover,
.anchor-list a:hover,
.related-list a:hover,
.side-anchor-list a:hover,
.side-link-list a:hover,
.link-list a:hover {
  color: var(--green);
  border-bottom-color: var(--line);
}

.side-note,
.side-text {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-3);
}

.related-desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-3);
}

/* 页尾下一步条 */
.next-step {
  margin-top: 32px;
  padding: 24px 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.next-heading,
.next-title,
.next-step-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
}

.next-grid,
.next-step-grid,
.next-step-items,
.next-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.next-item,
.next-card,
.next-step-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}

.next-state,
.next-step-state {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.next-item a,
.next-card a,
.next-step-item a,
.next-link {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  border-bottom: 1px solid var(--line-strong);
  align-self: flex-start;
}

.next-item a:hover,
.next-card a:hover,
.next-step-item a:hover,
.next-link:hover {
  border-bottom-color: var(--green);
}

/* 表格通用 */
.data-table,
.ledger-table {
  font-size: 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table th,
.data-table td,
.ledger-table th,
.ledger-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th,
.ledger-table thead th {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: var(--row-hover);
  white-space: nowrap;
}

.data-table tbody tr:last-child td,
.ledger-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover,
.ledger-table tbody tr:hover {
  background: var(--row-hover);
}

.table-caption {
  caption-side: top;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  text-align: left;
}

.table-scroll,
.table-wrap {
  overflow-x: auto;
}

/* 条目行通用（等宽字段串） */
.entry-lines,
.entry-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 10px 0;
  border-top: 1px solid var(--line);
}

.entry-line,
.entry-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 7px 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.entry-line:hover,
.entry-row:hover {
  background: var(--row-hover);
}

.entry-id,
.entry-no {
  color: var(--ink);
  font-weight: 600;
}

.entry-tag {
  padding: 1px 6px;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.entry-dur,
.entry-duration {
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

/* 首屏 */
.hero {
  padding: 28px 0 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.hero-media {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-copy {
  grid-column: 1;
  grid-row: 2;
  padding-top: 16px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.hero-copy h1 {
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 600;
  line-height: 1.25;
}

.hero-lead {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-digest {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.digest-line {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
}

.digest-line:last-child {
  border-bottom: 0;
}

/* 频道标签横条 */
.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
}

.channel-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.channel-tag:hover {
  transform: translateY(-1px);
  color: var(--ink);
  border-color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 角色分流 */
.role-router {
  padding: 32px 0 8px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.role-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.role-name {
  font-size: 14px;
  font-weight: 600;
}

.role-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.role-fields dt {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.role-fields dd {
  color: var(--ink-2);
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}

.role-fields dd:last-of-type {
  border-bottom: 0;
}

.role-card .text-link {
  margin-top: auto;
}

/* 首页双栏 */
.home-main .page-layout {
  padding-top: 28px;
}

.channel-overview,
.batch-digest {
  padding-bottom: 28px;
}

.channel-overview {
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.overview-media {
  margin-bottom: 18px;
}

.overview-media img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.channel-block {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.channel-name {
  font-size: 15px;
  font-weight: 600;
}

.channel-scope {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

.channel-block .text-link {
  margin-top: auto;
  padding-top: 10px;
}

.channel-exclude {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
}

.batch-digest .ledger-table {
  margin-bottom: 14px;
}

/* 侧栏速览 */
.side-column .side-module ul {
  margin: 0;
}

/* 专题片单精选 */
.playlist-picks {
  padding: 32px 0 8px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.picks-media {
  margin-bottom: 18px;
}

.picks-media img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pick-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pick-name {
  font-size: 15px;
  font-weight: 600;
}

.pick-basis {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

.pick-seq {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 0;
  counter-reset: pick;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}

.pick-seq li {
  counter-increment: pick;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}

.pick-seq li::before {
  content: counter(pick, decimal-leading-zero) " ";
  color: var(--ink-3);
  margin-right: 6px;
}

.pick-card .text-link {
  margin-top: auto;
  padding-top: 8px;
}

/* 观看前核验 */
.precheck {
  padding: 32px 0 8px;
}

.check-list {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.check-item:last-child {
  border-bottom: 0;
}

.check-index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.check-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.check-name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.check-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

.check-state,
.status-mark {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid #c6ddcf;
  border-radius: 2px;
  white-space: nowrap;
}

.check-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
}

/* 内容范围 */
.scope-note {
  padding: 32px 0 8px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.scope-col {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-heading {
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

.scope-list li {
  position: relative;
  padding-left: 14px;
}

.scope-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   pages · 内页通用区块
   -------------------------------------------------------------------------- */

.inner-main .block,
.inner-main .module,
.inner-main .content-section {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.inner-main .block:last-child,
.inner-main .module:last-child,
.inner-main .content-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.block-media,
.module-figure,
.ledger-figure,
.guide-figure,
.section-figure {
  margin: 16px 0 20px;
}

.block-media img,
.module-figure img,
.ledger-figure img,
.guide-figure img,
.section-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* 频道页 */
.layer-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.layer-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.layer-name {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.layer-def {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}

.layer-example {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
}

#channel-list .channel-block {
  margin-bottom: 12px;
}

#channel-list .channel-block:last-child {
  margin-bottom: 0;
}

.dual-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.judge-card {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.judge-title {
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.judge-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: judge;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

.judge-list li {
  counter-increment: judge;
  position: relative;
  padding-left: 22px;
}

.judge-list li::before {
  content: counter(judge) ".";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  color: var(--ink-3);
}

.transfer-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.transfer-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.transfer-cond {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}

.transfer-result {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* 专题片单页 */
.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.panel-text p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}

.panel-text p + p {
  margin-top: 10px;
}

.panel-text h3.rule-title {
  margin-bottom: 6px;
}

.field-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.field-list dt {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding-top: 10px;
}

.field-list dd {
  padding-bottom: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.field-list dt:last-of-type + dd,
.field-list dd:last-of-type {
  border-bottom: 0;
}

.playlist-block {
  padding: 16px;
  margin-bottom: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.playlist-name {
  font-size: 15px;
  font-weight: 600;
}

.playlist-desc {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

.playlist-order {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

.field-key {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.playlist-seq {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 12px 0;
  border-top: 1px solid var(--line);
}

.playlist-seq li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.seq-no {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.seq-text {
  min-width: 0;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rule-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.rule-item p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

.rule-item p + p {
  margin-top: 6px;
}

#maintenance .split-panel .panel-text {
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* 最新内容页 */
.ledger-read-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.field-box {
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-note {
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-note p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

.field-note p + p {
  margin-top: 8px;
}

.field-row,
.field-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
}

.field-row:last-child,
.field-item:last-child {
  border-bottom: 0;
}

.field-name {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--ink);
}

.field-desc {
  color: var(--ink-2);
}

.batch-group {
  margin-bottom: 20px;
}

.batch-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
}

.batch-tag {
  display: inline-block;
  padding: 1px 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.ledger-list {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ledger-row {
  display: grid;
  grid-template-columns: 72px 96px 84px minmax(0, 1fr) 72px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row:hover {
  background: var(--row-hover);
}

.ledger-no {
  font-weight: 600;
  color: var(--ink);
}

.ledger-channel {
  color: var(--ink);
}

.ledger-topic {
  min-width: 0;
}

.ledger-id,
.ledger-len {
  color: var(--ink-3);
}

.rule-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rule-trigger {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.rule-result {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* 观看说明页 */
.prep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.prep-card {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prep-standard {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

.prep-hint {
  margin-top: 8px;
  padding-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
  border-top: 1px dashed var(--line);
}

.checklist-list {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checklist-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.checklist-item:last-child {
  border-bottom: 0;
}

.checklist-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.checklist-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

.checklist-state {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  white-space: nowrap;
}

.checklist-state.is-verified {
  color: var(--green);
  background: var(--green-soft);
  border-color: #c6ddcf;
}

.checklist-state.is-pending {
  color: var(--ink-2);
  background: var(--bg);
}

.checklist-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
}

.branch-panel {
  margin-bottom: 10px;
}

.branch-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.branch-summary::before {
  content: "+";
  color: var(--ink-3);
}

.branch-panel[open] .branch-summary::before {
  content: "-";
  color: var(--green);
}

.branch-panel[open] .branch-summary {
  border-bottom: 1px solid var(--line);
}

.branch-body {
  padding: 12px 16px 16px;
}

.branch-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: branch;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

.branch-steps li {
  counter-increment: branch;
  position: relative;
  padding-left: 22px;
}

.branch-steps li::before {
  content: counter(branch) ".";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  color: var(--ink-3);
}

.branch-stop {
  margin-top: 10px;
  padding-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
  border-top: 1px dashed var(--line);
}

.transfer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.transfer-card {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.transfer-card h3 {
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.transfer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

.transfer-next {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
}

.transfer-next a + a {
  margin-left: 12px;
}

/* 更新记录页 */
.version-panel {
  margin-bottom: 10px;
}

.version-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 44px;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 13px;
}

.version-summary::before {
  content: "+";
  color: var(--ink-3);
}

.version-panel[open] .version-summary::before {
  content: "-";
  color: var(--green);
}

.version-panel[open] .version-summary {
  border-bottom: 1px solid var(--line);
}

.version-no {
  font-weight: 600;
  color: var(--ink);
}

.version-type {
  padding: 1px 8px;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.version-flag {
  padding: 1px 8px;
  font-size: 12px;
  border-radius: 2px;
}

.version-flag.is-current {
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid #c6ddcf;
}

.version-flag.is-important {
  color: #8a5a12;
  background: #f8efdc;
  border: 1px solid #e5d3ae;
}

.version-changes {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 16px 14px;
}

.version-changes li {
  padding: 7px 0 7px 16px;
  position: relative;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
}

.version-changes li:last-child {
  border-bottom: 0;
}

.version-changes li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--ink-3);
}

.supersede-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.supersede-row {
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.supersede-old {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}

.supersede-new {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* 纠错说明页 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.step-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.step-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 2px;
}

.step-body {
  min-width: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

.step-body p + p {
  margin-top: 4px;
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.issue-card {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.issue-card h3 {
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.issue-basis {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

.issue-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.issue-fields li {
  position: relative;
  padding-left: 14px;
}

.issue-fields li::before {
  content: "-";
  position: absolute;
  left: 0;
}

.publish-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.publish-item {
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.publish-item h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.publish-item p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* 404 */
.error-main {
  padding: 48px 0 32px;
}

.error-panel {
  max-width: 640px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  margin-bottom: 8px;
}

.error-title {
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 600;
  line-height: 1.25;
}

.error-desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}

.error-hints {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.error-hints a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  border-bottom: 1px solid var(--line-strong);
  align-self: flex-start;
}

.error-hints a:hover {
  border-bottom-color: var(--green);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   responsive · 1024px
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --pad: 24px;
  }

  .header-inner {
    gap: 16px;
  }

  .nav-link {
    padding: 8px 7px;
    font-size: 12px;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 268px;
    gap: 22px;
  }

  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .picks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prep-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ledger-row {
    grid-template-columns: 64px 88px 76px minmax(0, 1fr) 64px;
    gap: 8px;
    padding: 10px 12px;
  }
}

/* --------------------------------------------------------------------------
   responsive · 720px
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  :root {
    --pad: 18px;
  }

  body {
    font-size: 15px;
  }

  /* 页头：隐藏桌面导航，显示汉堡按钮 */
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
    order: 3;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
    min-height: 0;
  }

  .brand-block {
    order: 1;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .header-actions .btn {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .mobile-nav-list {
    padding-bottom: 10px;
  }

  .breadcrumb-inner {
    padding-top: 14px;
  }

  .inner-main > .breadcrumb {
    padding-top: 14px;
  }

  .page-header {
    padding-top: 6px;
  }

  section.page-title {
    padding-top: 8px;
    padding-bottom: 14px;
  }

  .page-title-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .page-title-side {
    order: 2;
  }

  .page-title-inner .btn-print,
  .page-title .btn-print {
    width: 100%;
    min-height: 44px;
  }

  .page-summary {
    font-size: 14px;
  }

  /* 首页首屏：先图后文，摘要块下移 */
  .hero {
    padding: 20px 0 18px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .hero-media {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 2;
    padding-top: 0;
  }

  .hero-digest {
    grid-column: 1;
    grid-row: 3;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .channel-tag {
    min-height: 40px;
  }

  /* 角色分流 */
  .role-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .role-card {
    padding: 14px;
  }

  /* 双栏塌成单列，正文在前 */
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 20px;
  }

  .side-column,
  .sidebar {
    gap: 12px;
  }

  /* 频道总览 */
  .channel-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .overview-media img,
  .picks-media img,
  .block-media img,
  .module-figure img,
  .ledger-figure img,
  .guide-figure img,
  .section-figure img {
    aspect-ratio: 16 / 9;
  }

  .ledger-table,
  .data-table {
    font-size: 12px;
  }

  .ledger-table th,
  .ledger-table td,
  .data-table th,
  .data-table td {
    padding: 8px 10px;
  }

  /* 专题片单精选 */
  .picks-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 核验清单 */
  .check-item,
  .checklist-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 12px 14px;
  }

  .check-state,
  .checklist-state {
    grid-column: 2;
    justify-self: start;
  }

  /* 内容范围 */
  .scope-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 内页多栏 */
  .dual-cards,
  .split-panel,
  .ledger-read-grid,
  .rule-box,
  .prep-grid,
  .transfer-grid,
  .issue-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 台账行改两行字段 */
  .ledger-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .ledger-topic {
    grid-column: 1 / -1;
  }

  /* 字段行 */
  .field-row,
  .field-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  /* 下一步 */
  .next-grid,
  .next-step-grid,
  .next-step-items,
  .next-step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .next-item,
  .next-card,
  .next-step-item {
    padding: 12px 14px;
  }

  /* 页脚 */
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 18px;
  }

  .footer-title {
    padding-bottom: 6px;
    margin-bottom: 8px;
  }

  .footer-list {
    gap: 4px;
  }

  .footer-list a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }

  .footer-bottom {
    padding-bottom: 18px;
  }

  /* 404 */
  .error-main {
    padding: 28px 0 24px;
  }

  .error-panel {
    padding: 20px;
  }

  .error-actions .btn {
    flex: 1 1 auto;
    min-height: 44px;
  }

  /* 版本摘要两行 */
  .version-summary {
    padding: 10px 14px;
  }

  .version-changes {
    padding: 8px 14px 12px;
  }
}

/* --------------------------------------------------------------------------
   print · 打印样式
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .next-step,
  .side-column,
  .sidebar,
  .breadcrumb,
  .btn,
  .print-btn,
  .skip-link,
  .mobile-menu,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .shell {
    max-width: none;
    padding: 0;
  }

  .page-layout {
    display: block;
  }

  details {
    border: 1px solid #999;
  }

  details > summary {
    font-weight: 600;
  }

  .checklist-item,
  .check-item {
    break-inside: avoid;
  }
}
