/* ==========================================================================
   天美免费在线观看 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ---------------------------------- base ---------------------------------- */

:root {
  --paper: #f5f2ec;
  --paper-deep: #ece7dc;
  --ink: #16181d;
  --ink-soft: #2b2e35;
  --red: #c8402c;
  --blue: #2f4f8f;
  --yellow: #d8a72b;
  --gray: #6d7178;
  --line: #d5d0c4;
  --line-strong: #b9b2a2;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --wrap: 1180px;
  --gutter: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

strong {
  font-weight: 700;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* 数字与编号统一等宽 */
.latest-id,
.version-code,
.version-id,
.entry-no,
.history-code,
.change-code,
.focus-meta dd,
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------- layout --------------------------------- */

.site-main {
  display: block;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 64px;
}

.inner-main {
  padding-top: 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 40;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
  color: var(--paper);
}

/* 页头 */
.site-header {
  position: relative;
  z-index: 30;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 68px;
}

.brand-mark {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  padding: 6px 0;
}

.brand-mark:hover,
.brand-mark:focus-visible {
  color: var(--red);
  text-decoration: none;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 18px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 15px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: transparent;
  transition: background-color 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
  text-decoration: none;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  background: var(--line-strong);
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 700;
}

.nav-link.is-current::after {
  background: var(--red);
}

.header-info {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.header-info:hover,
.header-info:focus-visible {
  border-color: var(--ink);
  color: var(--red);
}

.icon-info {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-close {
  display: block;
  width: 100%;
  padding: 14px var(--gutter);
  text-align: left;
  font-size: 14px;
  color: var(--gray);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.mobile-nav-list {
  padding: 8px var(--gutter) 20px;
}

.mobile-nav-list li {
  border-bottom: 1px solid var(--line);
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 16px;
  color: var(--ink);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0 0;
  font-size: 13px;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--gray);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--red);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 页面标题区 */
.page-header {
  padding: 18px 0 0;
}

.page-title {
  font-size: 34px;
  line-height: 1.3;
  color: var(--ink);
  padding-bottom: 20px;
}

section.page-title {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 18px 0 22px;
  margin-top: 10px;
}

.page-title .page-index,
.page-title .page-index-no,
.page-title .page-kicker,
.page-title .section-index {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--red);
}

.page-title .page-lead,
.page-title .page-task {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--ink-soft);
}

/* 版本条（全站通用） */
.version-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}

.version-bar a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.version-bar a:hover,
.version-bar a:focus-visible {
  color: #fff;
}

.version-bar .version-label,
.version-bar .version-bar-label {
  font-weight: 700;
}

.version-bar .version-no,
.version-bar .version-code,
.version-bar .version-num,
.version-bar .version-bar-code,
.version-bar .mono {
  font-family: var(--mono);
  font-weight: 700;
}

.version-bar .version-note,
.version-bar .version-bar-note {
  color: var(--ink-soft);
}

/* 双栏页面布局：正文在前，aside 在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding: 32px 0 8px;
}

.page-layout > .editorial-body,
.page-layout > .field-content,
.page-layout > .change-list {
  min-width: 0;
}

/* 侧栏在前的布局 */
.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.sidebar-left .page-layout > .filter-panel,
.sidebar-left .page-layout > .field-index,
.sidebar-left .page-layout > .version-list,
.page-layout.sidebar-left > .filter-panel,
.page-layout.sidebar-left > .field-index,
.page-layout.sidebar-left > .version-list {
  min-width: 0;
}

/* 页脚 */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px var(--gutter) 28px;
}

.footer-brand {
  padding-bottom: 22px;
  border-bottom: 1px solid #3a3d45;
}

.footer-brand-mark {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--paper);
}

.footer-slogan {
  margin: 0;
  font-size: 14px;
  color: #b8b3a8;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid #3a3d45;
}

.footer-group-title {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
}

.footer-group ul li {
  margin: 0 0 8px;
}

.footer-group a {
  color: #d9d5cc;
  font-size: 14px;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: #fff;
}

.footer-boundary {
  padding: 20px 0 14px;
  border-bottom: 1px solid #3a3d45;
}

.footer-boundary p {
  margin: 0 0 6px;
  font-size: 13px;
  color: #a9a49a;
  line-height: 1.7;
}

.footer-bottom {
  margin: 16px 0 0;
  font-size: 12px;
  color: #8c8880;
}

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid var(--ink);
  border-radius: 0;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

/* 模块标题与说明 */
.section-title {
  font-size: 24px;
  padding-top: 8px;
}

.section-lead,
.section-note,
.section-intro {
  max-width: 760px;
  margin: 8px 0 20px;
  font-size: 15px;
  color: var(--ink-soft);
}

.module-note {
  margin: 6px 0 14px;
  font-size: 14px;
  color: var(--gray);
}

/* 色标 */
.channel-swatch,
.swatch-red,
.swatch-blue,
.swatch-yellow {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--gray);
}

.swatch-red {
  background: var(--red);
}

.swatch-blue {
  background: var(--blue);
}

.swatch-yellow {
  background: var(--yellow);
}

/* 通用表格 */
.data-table,
.entries-table,
.entry-table,
.diff-grid,
.correction-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--paper);
}

.data-table caption,
.entries-table caption,
.entry-table-caption,
.diff-grid caption,
.correction-table caption,
.table-caption {
  caption-side: top;
  padding: 0 0 10px;
  text-align: left;
  font-size: 13px;
  color: var(--gray);
}

.data-table th,
.data-table td,
.entries-table th,
.entries-table td,
.entry-table th,
.entry-table td,
.diff-grid th,
.diff-grid td,
.correction-table th,
.correction-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table thead th,
.entries-table thead th,
.entry-table thead th,
.diff-grid thead th,
.correction-table thead th {
  background: var(--paper-deep);
  border-bottom: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.data-table tbody th,
.diff-grid tbody th,
.correction-table tbody th {
  font-weight: 700;
  color: var(--ink);
  background: transparent;
}

/* 图片容器约束 */
.focus-item img,
.strip-img,
.collection-figure img,
.notes-figure img,
.guide-figure img,
.field-figure img,
.change-figure img,
.faq-figure img,
.editorial-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--paper-deep);
}

/* ------------------------------- components ------------------------------- */

/* 首页首屏标题行 */
.hero-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 36px 0 28px;
  border-bottom: 3px solid var(--ink);
}

.hero-heading-text {
  min-width: 0;
}

.hero-heading h1 {
  font-size: 40px;
  line-height: 1.28;
}

.hero-sub {
  max-width: 640px;
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 首页三列工作区 */
.hero-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.focus-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

.focus-item img {
  aspect-ratio: 16 / 10;
}

.focus-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.focus-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.focus-channel {
  font-size: 13px;
  color: var(--gray);
}

.focus-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.focus-meta > div {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.focus-meta > div:nth-child(2n) {
  border-right: 0;
}

.focus-meta dt {
  margin: 0 0 2px;
  font-size: 12px;
  color: var(--gray);
}

.focus-meta dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  word-break: break-word;
}

/* 频道筛选 */
.channel-select {
  min-width: 0;
}

.channel-select h2,
.latest-list-wrap h2 {
  font-size: 20px;
}

.channel-dropdown {
  position: relative;
  margin-bottom: 14px;
}

.channel-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-size: 15px;
  text-align: left;
}

.channel-trigger:hover,
.channel-trigger:focus-visible {
  background: var(--paper-deep);
}

.channel-trigger-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--ink);
}

.channel-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--ink);
}

.channel-options[hidden] {
  display: none;
}

.channel-options li {
  padding: 10px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.channel-options li:last-child {
  border-bottom: 0;
}

.channel-options li:hover,
.channel-options li:focus {
  background: var(--paper-deep);
  outline: none;
}

.channel-options li[aria-selected="true"] {
  color: var(--red);
  font-weight: 700;
}

.channel-rows {
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: 10px minmax(72px, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.channel-name {
  font-weight: 700;
  white-space: nowrap;
}

.channel-desc {
  color: var(--gray);
  font-size: 13px;
}

/* 最新条目 */
.latest-list-wrap {
  min-width: 0;
}

.latest-list {
  border-top: 1px solid var(--line);
}

.latest-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.latest-id {
  font-size: 12px;
  color: var(--red);
}

.latest-link {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

.latest-link:hover,
.latest-link:focus-visible {
  color: var(--red);
}

.latest-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--gray);
}

/* 首页条目表工作台 */
.catalog-workbench {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(240px, 4fr);
  gap: 32px;
  align-items: start;
  margin-top: 8px;
}

.entries-main {
  min-width: 0;
}

.result-summary {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: var(--paper-deep);
  border-left: 3px solid var(--red);
  font-size: 13px;
  color: var(--ink-soft);
}

.entries-table {
  font-size: 14px;
}

.entries-table th.cell-id,
.entries-table td.cell-id,
.entries-table th.cell-num,
.entries-table td.cell-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.entries-table tbody tr:hover,
.entries-table tbody tr:focus-within {
  background: var(--paper-deep);
}

.entries-table td a {
  color: var(--ink);
}

.entries-table td a:hover,
.entries-table td a:focus-visible {
  color: var(--red);
}

/* 字段速查侧注 */
.field-legend {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.field-legend h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.legend-list {
  margin: 0;
}

.legend-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.legend-item dt {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.legend-item dd {
  margin: 0;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.65;
}

.legend-item-link {
  padding-top: 12px;
  border-bottom: 0;
}

.legend-item-link a {
  font-size: 14px;
  font-weight: 700;
}

/* 首页专题横条 */
.collection-strip {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.strip-list {
  display: grid;
  gap: 16px;
}

.strip-item {
  border: 1px solid var(--line);
}

.strip-link {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: stretch;
  color: var(--ink);
}

.strip-link:hover,
.strip-link:focus-visible {
  text-decoration: none;
  background: var(--paper-deep);
}

.strip-img {
  height: 100%;
  min-height: 140px;
  aspect-ratio: 16 / 10;
}

.strip-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  gap: 4px 16px;
  padding: 18px 22px;
}

.strip-num {
  grid-row: 1 / span 3;
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
}

.strip-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.strip-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.strip-count {
  font-size: 13px;
  color: var(--gray);
}

/* 首页观看准备四步 */
.guide-steps {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.step-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step-block {
  padding: 20px 18px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.step-block:last-child {
  border-right: 0;
}

.step-block .step-num {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 6px;
}

.step-block .step-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-block .step-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}

.step-link {
  font-size: 14px;
  font-weight: 700;
}

/* 首页版本摘要 */
.version-brief {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.version-brief .version-bar {
  margin: 0 0 16px;
}

.version-notes {
  border-top: 1px solid var(--line);
}

.version-note {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

.version-note .version-id {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

/* 首页常见疑问折叠 */
.faq-fold {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.faq-fold .faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-fold .faq-item:first-of-type {
  border-top: 1px solid var(--line);
}

/* 通用折叠问答 */
.faq-item > summary {
  position: relative;
  display: block;
  padding: 14px 44px 14px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  line-height: 1.6;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.faq-item[open] > summary::after {
  content: "−";
}

.faq-item > summary:hover {
  color: var(--red);
}

.faq-fold .faq-item > p {
  margin: 0;
  padding: 0 0 16px;
  max-width: 760px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* 首页收尾双列 */
.closing-entry {
  padding: 32px 0 8px;
}

.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 8px;
}

.closing-text h3 {
  font-size: 16px;
  margin: 18px 0 6px;
}

.closing-text h3:first-child {
  margin-top: 0;
}

.closing-text p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

.closing-cards {
  display: grid;
  gap: 14px;
}

.entry-card {
  display: block;
  padding: 18px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.entry-card:hover,
.entry-card:focus-visible {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.entry-card-title {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.entry-card-desc {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: var(--gray);
}

.entry-card:hover .entry-card-desc,
.entry-card:focus-visible .entry-card-desc {
  color: #c9c4ba;
}

/* 内页页尾关联入口带 */
.related-band,
.related-entry {
  margin: 32px 0 0;
  padding: 20px 0 0;
  border-top: 3px solid var(--ink);
}

.related-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.related-list li {
  min-width: 0;
}

.related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  color: var(--ink);
}

.related-list a:hover,
.related-list a:focus-visible {
  border-color: var(--ink);
  color: var(--red);
  text-decoration: none;
}

/* 内页相关内容链接行 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 32px 0 0;
  padding: 18px 0 0;
  border-top: 3px solid var(--ink);
}

.related-links-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  color: var(--ink);
}

.related-links-item:hover,
.related-links-item:focus-visible {
  border-color: var(--ink);
  color: var(--red);
  text-decoration: none;
}

/* ------------------------------- pages ----------------------------------- */

/* 条目索引页 */
.catalog-layout {
  padding-top: 28px;
}

.filter-panel {
  position: sticky;
  top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.filter-title {
  font-size: 18px;
  margin-bottom: 6px;
}

.filter-intro {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.65;
}

.filter-group {
  border-top: 1px solid var(--line);
}

.filter-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.filter-group-title::-webkit-details-marker {
  display: none;
}

.filter-group-title::after {
  content: "+";
  font-family: var(--mono);
  font-size: 15px;
  color: var(--gray);
}

.filter-group[open] .filter-group-title::after {
  content: "−";
}

.filter-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gray);
}

.filter-options {
  padding: 0 0 12px;
}

.filter-options li {
  margin: 0 0 4px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 2px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
}

.filter-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
  margin: 0;
  flex: 0 0 auto;
}

.filter-reset-note {
  margin: 8px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--gray);
}

.result-area {
  min-width: 0;
}

.result-area .result-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: var(--paper-deep);
  border-left: 3px solid var(--red);
}

.result-count {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.result-hint {
  margin: 0;
  font-size: 13px;
  color: var(--gray);
}

.entry-table {
  font-size: 13px;
}

.entry-table .col-thumb {
  width: 76px;
}

.entry-table .col-no {
  width: 88px;
  font-family: var(--mono);
  white-space: nowrap;
}

.entry-table .col-duration,
.entry-table .col-batch,
.entry-table .col-status {
  white-space: nowrap;
}

.entry-table td.col-thumb img {
  width: 64px;
  height: 40px;
  object-fit: cover;
  background: var(--paper-deep);
}

.entry-row:hover,
.entry-row:focus-within {
  background: var(--paper-deep);
  box-shadow: inset 3px 0 0 var(--red);
}

.entry-table td.col-channel {
  white-space: nowrap;
}

.entry-table td.col-channel .channel-swatch {
  margin-right: 6px;
  vertical-align: middle;
}

.th-hint {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--gray);
  white-space: normal;
}

.status-tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

.status-live {
  border-color: var(--blue);
  color: var(--blue);
}

.status-review {
  border-color: var(--yellow);
  color: #8a6a10;
}

.status-pending {
  border-color: var(--line-strong);
  color: var(--gray);
}

.empty-result {
  margin: 20px 0 0;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  background: var(--paper);
}

.empty-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.empty-text {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.empty-tips {
  display: grid;
  gap: 6px;
}

.empty-tips li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.empty-tips li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--red);
  font-weight: 700;
}

.relation-strip {
  margin: 36px 0 0;
  padding: 24px 0 0;
  border-top: 3px solid var(--ink);
}

.relation-title {
  font-size: 20px;
  margin-bottom: 6px;
}

.relation-lead {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

.relation-list {
  border-top: 1px solid var(--line);
}

.relation-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.relation-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.relation-entries {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.relation-entries .entry-no {
  padding: 2px 8px;
  font-size: 12px;
  color: var(--blue);
  border: 1px solid var(--line-strong);
}

.relation-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 专题片单页 */
.collection-list {
  padding: 28px 0 8px;
}

.collection-list > h2 {
  font-size: 24px;
}

.collection-row {
  display: grid;
  grid-template-columns: 72px 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.collection-row:last-child {
  border-bottom: 1px solid var(--line);
}

.collection-num {
  margin: 0;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
}

.collection-figure {
  min-width: 0;
}

.collection-figure img {
  aspect-ratio: 16 / 10;
}

.collection-body {
  min-width: 0;
}

.collection-name {
  font-size: 20px;
  margin-bottom: 6px;
}

.collection-desc {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

.collection-meta {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--gray);
}

.collection-meta .num {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink);
}

.collection-link {
  font-size: 14px;
  font-weight: 700;
}

.composition-notes {
  padding: 32px 0 8px;
}

.notes-figure {
  margin: 0 0 20px;
  border: 1px solid var(--line);
}

.notes-figure img {
  aspect-ratio: 21 / 9;
}

.notes-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.notes-block {
  padding: 16px;
  border-top: 3px solid var(--ink);
  background: var(--paper);
}

.notes-block h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.notes-block p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.notes-block p:last-child {
  margin-bottom: 0;
}

.diff-table {
  padding: 32px 0 8px;
}

.diff-grid {
  font-size: 14px;
}

.jump-note {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.jump-note h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.jump-note p {
  font-size: 14px;
  color: var(--ink-soft);
}

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
}

.jump-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--ink);
  font-size: 14px;
  color: var(--ink);
}

.jump-links a:hover,
.jump-links a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

/* 观看准备页 */
.step-flow {
  padding: 28px 0 8px;
}

.step-flow > h2 {
  font-size: 24px;
}

.step-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.step-row:last-child {
  border-bottom: 1px solid var(--line);
}

.step-marker {
  min-width: 0;
}

.step-marker .step-num {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
}

.step-marker .step-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  margin: 0;
}

.step-body {
  min-width: 0;
}

.step-body p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.step-body .step-link {
  font-size: 14px;
  font-weight: 700;
}

.check-table,
.issue-table {
  padding: 32px 0 8px;
}

.guide-figure {
  margin: 0 0 18px;
  border: 1px solid var(--line);
}

.guide-figure img {
  aspect-ratio: 21 / 9;
}

.guide-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.check-data,
.issue-data {
  font-size: 14px;
}

.check-data tbody th,
.issue-data tbody th {
  width: 22%;
}

.device-note {
  padding: 32px 0 8px;
}

.note-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.note-list li {
  padding: 12px 14px;
  border-left: 3px solid var(--yellow);
  background: var(--paper-deep);
  font-size: 14px;
  color: var(--ink-soft);
}

.note-list strong {
  color: var(--ink);
  margin-right: 6px;
}

/* 字段说明页 */
.field-index {
  position: sticky;
  top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.aside-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.field-index-list {
  border-top: 1px solid var(--line);
}

.field-index-list li {
  border-bottom: 1px solid var(--line);
}

.field-index-list a {
  display: block;
  padding: 9px 0 9px 12px;
  font-size: 14px;
  color: var(--ink);
  border-left: 3px solid transparent;
}

.field-index-list a:hover,
.field-index-list a:focus-visible {
  border-left-color: var(--red);
  color: var(--red);
  text-decoration: none;
}

.field-index-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
}

.field-content {
  min-width: 0;
}

.section-heading {
  font-size: 22px;
  margin-bottom: 8px;
}

.field-visual {
  padding-bottom: 24px;
}

.field-figure {
  margin: 12px 0 0;
  border: 1px solid var(--line);
}

.field-figure img {
  aspect-ratio: 21 / 9;
}

.field-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.field-list {
  padding: 8px 0 16px;
}

.field-block {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.field-block:last-child {
  border-bottom: 1px solid var(--line);
}

.field-name {
  font-size: 19px;
  margin-bottom: 10px;
}

.field-definition {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
}

.field-definition dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
}

.field-definition dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  word-break: break-word;
}

.field-value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
}

.reading-order {
  padding: 24px 0 8px;
  border-top: 3px solid var(--ink);
}

.reading-order-list {
  display: grid;
  gap: 10px;
  counter-reset: reading;
}

.reading-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.reading-step .step-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.change-link {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.change-link p {
  font-size: 14px;
  color: var(--ink-soft);
}

.change-link-action {
  margin: 8px 0 0;
}

.change-link-action a {
  font-weight: 700;
}

.related-entry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.related-entry-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  color: var(--ink);
}

.related-entry-list a:hover,
.related-entry-list a:focus-visible {
  border-color: var(--ink);
  color: var(--red);
  text-decoration: none;
}

/* 版本与变更页 */
.version-list {
  position: sticky;
  top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.aside-note {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.65;
}

.version-items {
  border-top: 1px solid var(--line);
}

.version-item {
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
}

.version-item a {
  display: block;
  padding: 10px 10px 10px 12px;
  color: var(--ink);
}

.version-item a:hover,
.version-item a:focus-visible {
  background: var(--paper-deep);
  text-decoration: none;
}

.version-item.is-active {
  border-left-color: var(--red);
  background: var(--paper-deep);
}

.version-item .version-code {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.version-item .version-scope {
  display: block;
  font-size: 12px;
  color: var(--blue);
  margin: 2px 0;
}

.version-item .version-summary {
  display: block;
  font-size: 12px;
  color: var(--gray);
  line-height: 1.55;
}

.change-list {
  min-width: 0;
}

.change-list > h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.change-intro {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.change-items {
  border-top: 1px solid var(--line);
}

.change-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.change-code {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
}

.change-body {
  min-width: 0;
}

.change-target {
  font-size: 16px;
  margin-bottom: 4px;
}

.change-diff {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.change-figure {
  margin: 20px 0 0;
  border: 1px solid var(--line);
}

.change-figure img {
  aspect-ratio: 21 / 9;
}

.change-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.affected-pages {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 3px solid var(--ink);
}

.affected-pages > h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.affected-intro {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

.affected-list {
  border-top: 1px solid var(--line);
}

.affected-item {
  border-bottom: 1px solid var(--line);
}

.affected-item a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 0;
  color: var(--ink);
}

.affected-item a:hover,
.affected-item a:focus-visible {
  color: var(--red);
  text-decoration: none;
}

.affected-page {
  font-size: 15px;
  font-weight: 700;
}

.affected-field {
  font-size: 13px;
  color: var(--gray);
}

.affected-arrow {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--red);
  text-align: right;
}

.version-history {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 3px solid var(--ink);
}

.version-history > h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.history-intro {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

.history-items {
  border-top: 1px solid var(--line);
}

.history-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 6px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.history-code {
  grid-row: 1 / span 2;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.history-target {
  font-size: 16px;
  margin: 0;
}

.history-text {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 常见疑问页 */
.faq-figure {
  margin: 24px 0 0;
  border: 1px solid var(--line);
}

.faq-figure img {
  aspect-ratio: 21 / 9;
}

.faq-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.faq-group {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 3px solid var(--ink);
}

.faq-group-title {
  font-size: 22px;
  margin-bottom: 4px;
}

.faq-group-lead {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--gray);
}

.faq-group .faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-group .faq-item:first-of-type {
  border-top: 1px solid var(--line);
}

.faq-answer {
  padding: 0 0 16px;
  max-width: 820px;
}

.faq-answer p {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-fallback {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.faq-fallback h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.faq-fallback p {
  font-size: 14px;
  color: var(--ink-soft);
}

.fallback-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
}

.fallback-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--ink);
  font-size: 14px;
  color: var(--ink);
}

.fallback-links a:hover,
.fallback-links a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

/* 编务与边界页 */
.editorial-body {
  min-width: 0;
}

.editorial-section {
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.editorial-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.editorial-section h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.editorial-section h3 {
  font-size: 17px;
  margin: 16px 0 6px;
}

.editorial-section p {
  max-width: 760px;
  font-size: 15px;
  color: var(--ink-soft);
}

.editorial-figure {
  margin: 16px 0;
  border: 1px solid var(--line);
}

.editorial-figure img {
  aspect-ratio: 21 / 9;
}

.editorial-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.scope-list {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.scope-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

.scope-label {
  font-weight: 700;
  color: var(--ink);
}

.principle-list {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.principle-item {
  padding: 14px 16px;
  border-left: 3px solid var(--blue);
  background: var(--paper-deep);
}

.principle-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.principle-item p {
  margin: 0;
  font-size: 14px;
}

.correction-table {
  font-size: 14px;
  margin-top: 10px;
}

.correction-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.fact-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  align-self: start;
}

.fact-block {
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.fact-block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.fact-title {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink);
}

.fact-block p {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
}

.fact-block p:last-child {
  margin-bottom: 0;
}

/* 404 */
.error-main {
  padding-top: 56px;
  padding-bottom: 80px;
}

.error-panel {
  max-width: 720px;
  padding-bottom: 32px;
  border-bottom: 3px solid var(--ink);
}

.error-code {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
}

.error-title {
  font-size: 32px;
  margin-bottom: 10px;
}

.error-lead {
  max-width: 620px;
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-hints {
  margin-top: 32px;
}

.error-hints-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.error-hint-list {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.error-hint-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  font-size: 15px;
  color: var(--ink);
}

.error-hint-list a:hover,
.error-hint-list a:focus-visible {
  border-color: var(--ink);
  color: var(--red);
  text-decoration: none;
}

/* 滚动出现（仅增强，不影响初始可见） */
@media (prefers-reduced-motion: no-preference) {
  .collection-strip .strip-item,
  .guide-steps .step-block {
    transition: transform 0.25s ease;
  }

  .strip-item:hover {
    transform: translateY(-2px);
  }
}

/* ------------------------------- responsive ------------------------------- */

@media (max-width: 1080px) {
  :root {
    --gutter: 20px;
  }

  .nav-list {
    gap: 2px 12px;
  }

  .nav-link {
    font-size: 14px;
  }

  .hero-workspace {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .latest-list-wrap {
    grid-column: 1 / -1;
  }

  .workbench-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
  }

  .collection-row {
    grid-template-columns: 56px 200px minmax(0, 1fr);
  }

  .step-row {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 60px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand-mark {
    flex: 1 1 auto;
    font-size: 18px;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .header-info {
    order: 2;
    width: 44px;
    height: 44px;
  }

  .site-nav {
    order: 4;
    flex: 1 1 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--line);
    padding: 4px 0 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line);
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 16px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.is-current {
    color: var(--red);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  /* 首页 */
  .hero-heading {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding: 24px 0 20px;
  }

  .hero-heading h1 {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px 0;
  }

  .latest-list-wrap {
    grid-column: auto;
  }

  .focus-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .focus-meta > div {
    border-right: 0;
  }

  .strip-link {
    grid-template-columns: minmax(0, 1fr);
  }

  .strip-img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .strip-body {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 14px 16px;
  }

  .strip-num {
    font-size: 26px;
  }

  .step-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-block {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step-block:last-child {
    border-bottom: 0;
  }

  .version-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .closing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  /* 内页标题 */
  .page-title {
    font-size: 26px;
  }

  /* 双栏 -> 单栏 */
  .page-layout,
  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .filter-panel,
  .field-index,
  .version-list {
    position: static;
  }

  /* 表格横向滚动容器 */
  .entries-main,
  .result-area,
  .diff-table,
  .check-table,
  .issue-table,
  .correction-table,
  .entries-table,
  .entry-table {
    min-width: 0;
  }

  .entries-table,
  .entry-table,
  .diff-grid,
  .check-data,
  .issue-data,
  .correction-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .entries-table thead,
  .entry-table thead,
  .diff-grid thead,
  .check-data thead,
  .issue-data thead,
  .correction-table thead {
    display: table;
    width: 100%;
    min-width: 640px;
  }

  .entries-table tbody,
  .entry-table tbody,
  .diff-grid tbody,
  .check-data tbody,
  .issue-data tbody,
  .correction-table tbody {
    display: table;
    width: 100%;
    min-width: 640px;
  }

  .entries-table thead tr,
  .entries-table tbody tr,
  .entry-table thead tr,
  .entry-table tbody tr,
  .diff-grid thead tr,
  .diff-grid tbody tr,
  .check-data thead tr,
  .check-data tbody tr,
  .issue-data thead tr,
  .issue-data tbody tr,
  .correction-table thead tr,
  .correction-table tbody tr {
    display: table-row;
  }

  .entries-table th,
  .entries-table td,
  .entry-table th,
  .entry-table td,
  .diff-grid th,
  .diff-grid td,
  .check-data th,
  .check-data td,
  .issue-data th,
  .issue-data td,
  .correction-table th,
  .correction-table td {
    display: table-cell;
  }

  /* 专题 */
  .collection-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px 16px;
  }

  .collection-figure {
    grid-column: 1 / -1;
  }

  .collection-body {
    grid-column: 1 / -1;
  }

  .notes-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  /* 观看准备 */
  .step-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  /* 字段 */
  .field-definition {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 0;
  }

  .field-definition dt {
    margin-top: 6px;
  }

  /* 版本 */
  .change-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .history-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .history-code {
    grid-row: auto;
  }

  .affected-item a {
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 4px 12px;
  }

  .affected-field {
    grid-column: 1 / 2;
  }

  .affected-arrow {
    grid-row: 1 / span 2;
    grid-column: 2 / 3;
    align-self: center;
  }

  /* 编务 */
  .scope-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  /* 页脚 */
  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .footer-group ul li {
    margin-bottom: 4px;
  }

  .footer-group a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-title {
    font-size: 26px;
  }
}

@media (max-width: 540px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 15px;
  }

  .site-main {
    padding-bottom: 48px;
  }

  .hero-heading h1 {
    font-size: 26px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 21px;
  }

  .collection-list > h2,
  .step-flow > h2,
  .change-list > h2,
  .faq-group-title,
  .editorial-section h2,
  .section-heading {
    font-size: 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .focus-meta > div {
    padding: 8px 12px;
  }

  .latest-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .latest-item .channel-swatch {
    grid-column: 1 / -1;
    display: none;
  }

  .strip-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .strip-num {
    grid-row: auto;
    font-size: 22px;
  }

  .version-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .related-list,
  .related-links,
  .jump-links,
  .fallback-links,
  .related-entry-list {
    flex-direction: column;
    align-items: stretch;
  }

  .related-list a,
  .related-links-item,
  .jump-links a,
  .fallback-links a,
  .related-entry-list a {
    justify-content: flex-start;
    width: 100%;
  }

  .footer-inner {
    padding: 32px var(--gutter) 24px;
  }

  .error-main {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
  }
}
