/* ==========================================================================
   paohuluo.cn 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --ink-900: #14161c;
  --ink-800: #1c1f27;
  --ink-700: #23262e;
  --ink-500: #4a4f5c;
  --ink-400: #6b7080;
  --line: #d9d4cc;
  --line-dark: #2b2f39;
  --paper: #f6f4f0;
  --paper-alt: #efece6;
  --accent: #e08a3c;
  --accent-soft: #f0c79a;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(20, 22, 28, 0.06), 0 8px 20px -14px rgba(20, 22, 28, 0.35);
  --container: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink-900);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

time {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   layout · 骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: #f6f4f0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
}

.brand::before {
  content: "";
  width: 10px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

.brand:hover,
.brand:focus-visible {
  color: #fff;
  border-bottom-color: var(--accent);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: #c9c6c0;
  font-size: 15px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  border-bottom-color: var(--accent-soft);
}

.nav-link.is-current {
  color: #fff;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #f6f4f0;
  border-radius: 1px;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.home-main {
  background: var(--paper);
}

.inner-main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 4px;
  font-size: 14px;
  color: var(--ink-400);
}

.breadcrumb a {
  color: var(--ink-500);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-700);
}

.page-header {
  padding: 12px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.page-title {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink-900);
  max-width: 72ch;
}

.page-description {
  margin-top: 12px;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-500);
}

.site-footer {
  background: var(--ink-900);
  color: #b9b6b0;
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-back {
  font-size: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-back a {
  color: var(--accent-soft);
}

.footer-back a:hover,
.footer-back a:focus-visible {
  color: #fff;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  padding: 28px 0;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: #f6f4f0;
  margin-bottom: 12px;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  display: inline-block;
  min-height: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: #b9b6b0;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent-soft);
}

.footer-about {
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
  line-height: 1.8;
  color: #9d9a95;
  max-width: 76ch;
}

.footer-copy {
  margin-top: 10px;
  font-size: 13px;
  color: #7b7873;
}

/* --------------------------------------------------------------------------
   components · 通用模块
   -------------------------------------------------------------------------- */

.section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2,
.section-title {
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink-900);
}

.section-desc,
.section-lead,
.section-intro {
  margin-top: 10px;
  max-width: 70ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-500);
}

.section-desc a,
.section-lead a,
.section-intro a,
.boundary-note a,
.channel-index-note a,
.channel-map-note a,
.guide-note a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.section-desc a:hover,
.section-lead a:hover,
.section-intro a:hover,
.boundary-note a:hover,
.channel-index-note a:hover,
.channel-map-note a:hover,
.guide-note a:hover {
  color: var(--ink-900);
  border-bottom-color: var(--ink-900);
}

/* 日志 / 记录列表（首页、频道、片单、字段共用） */
.log-list {
  border-top: 1px solid var(--line);
}

.log-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.log-date {
  font-size: 14px;
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}

.log-change,
.log-desc,
.log-text,
.log-action {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-700);
}

.log-scope,
.log-impact {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-400);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 24px;
  background: var(--ink-800);
  border-bottom: 1px solid var(--line-dark);
}

.topbar-text {
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.7;
  color: #b9b6b0;
}

.topbar-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b9b6b0;
  font-size: 18px;
  line-height: 1;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
}

.topbar-close:hover,
.topbar-close:focus-visible {
  color: #fff;
  border-color: var(--accent);
}

.topbar.is-hidden {
  display: none;
}

/* 首屏焦点区 */
.hero {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 48px;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--accent-soft);
  background: var(--ink-800);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.hero-title {
  font-size: 34px;
  line-height: 1.3;
  color: var(--ink-900);
}

.hero-desc {
  margin-top: 16px;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-500);
}

.hero-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  color: var(--ink-900);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quick-link:hover,
.quick-link:focus-visible {
  color: #fff;
  background: var(--ink-900);
  border-color: var(--ink-900);
}

.hero-media {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
}

.hero-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.hero-caption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-400);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

/* 题材频道方向总览 */
.channels-overview .section-head,
.collections-overview .section-head,
.fields-summary .section-head,
.path-overview .section-head,
.scope-log .section-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.channel-rows {
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: 180px repeat(3, minmax(0, 1fr));
  gap: 8px 24px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.channel-row .channel-name {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-900);
}

.channel-field {
  min-width: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-500);
}

.field-label {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  color: var(--ink-400);
}

/* 专题片单速览 */
.collection-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.collection-card .collection-name {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-900);
}

.collection-scope {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-700);
}

.collection-channels,
.collection-picks {
  margin-top: 10px;
  padding-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-400);
  border-top: 1px dashed var(--line);
}

/* 条目字段与收录边界摘要 */
.fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.fields-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.fields-table {
  min-width: 480px;
}

.fields-caption {
  padding: 14px 16px 0;
  text-align: left;
  font-size: 14px;
  color: var(--ink-400);
}

.fields-table th,
.fields-table td {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.7;
  border-bottom: 1px solid var(--line);
}

.fields-table thead th {
  background: var(--paper-alt);
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
}

.fields-table tbody tr:last-child th,
.fields-table tbody tr:last-child td {
  border-bottom: 0;
}

.fields-table tbody th {
  font-weight: 600;
  color: var(--ink-900);
  white-space: nowrap;
}

.fields-table tbody td {
  color: var(--ink-500);
}

.boundary-note {
  min-width: 0;
  padding: 22px 20px;
  background: var(--paper-alt);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.boundary-title {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.boundary-note p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-500);
}

.boundary-note p + p {
  margin-top: 10px;
}

.boundary-link {
  margin-top: 14px;
  font-size: 15px;
}

/* 查阅路径三步概览 */
.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.path-step {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-step .step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--ink-900);
  border-radius: 50%;
}

.path-step .step-body {
  min-width: 0;
}

.path-step .step-title {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-900);
}

.path-step .step-text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-500);
}

.path-step .step-target {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--accent);
}

.path-media {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
}

.path-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.path-caption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-400);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

/* 收录范围调整记录 */
.scope-log .log-list {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   pages · 题材频道
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
}

.channel-index {
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 20px;
}

.channel-index-title {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.channel-index-list li + li {
  margin-top: 4px;
}

.channel-index-list a {
  display: block;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-700);
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
}

.channel-index-list a:hover,
.channel-index-list a:focus-visible {
  color: var(--ink-900);
  background: var(--paper-alt);
  border-left-color: var(--accent);
}

.channel-index-note {
  margin-top: 14px;
  padding-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-400);
  border-top: 1px dashed var(--line);
}

.channel-overview {
  min-width: 0;
}

.channel-overview > h2 {
  font-size: 24px;
  line-height: 1.4;
}

.channel-overview .section-intro {
  margin-bottom: 24px;
}

.channel-overview .channel-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.channel-overview .channel-row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.channel-figure {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
}

.channel-figure img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.channel-body {
  min-width: 0;
}

.channel-body .channel-name {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-900);
}

.channel-fields {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 16px;
}

.channel-fields dt {
  font-size: 14px;
  color: var(--ink-400);
}

.channel-fields dd {
  margin: 0;
  min-width: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-700);
}

.channel-scope {
  margin-top: 48px;
}

.channel-scope .section-intro {
  margin-bottom: 24px;
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.scope-col {
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.scope-col-out {
  background: var(--paper-alt);
}

.scope-title {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.scope-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-500);
}

.scope-list li + li {
  margin-top: 8px;
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.scope-col-out .scope-list li::before {
  background: var(--ink-400);
}

.channel-map {
  margin-top: 48px;
}

.channel-map .section-intro {
  margin-bottom: 20px;
}

.channel-map-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.channel-map-caption {
  padding: 12px 16px 0;
  text-align: left;
  font-size: 14px;
  color: var(--ink-400);
}

.channel-map-table th,
.channel-map-table td {
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.7;
  border-bottom: 1px solid var(--line);
}

.channel-map-table thead th {
  background: var(--paper-alt);
  color: var(--ink-900);
  font-weight: 700;
}

.channel-map-table tbody th {
  font-weight: 600;
  color: var(--ink-900);
  white-space: nowrap;
}

.channel-map-table tbody td {
  color: var(--ink-500);
}

.channel-map-table tbody tr:last-child th,
.channel-map-table tbody tr:last-child td {
  border-bottom: 0;
}

.channel-map-note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-400);
}

.channel-map-note a + a {
  margin-left: 12px;
}

.channel-log {
  margin-top: 48px;
}

.channel-log .section-intro {
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   pages · 专题片单
   -------------------------------------------------------------------------- */

.section-collection-list .section-lead,
.section-selection-logic .section-lead,
.section-coverage .section-lead,
.section-update-log .section-lead,
.section-related .section-lead {
  margin-bottom: 24px;
}

.section-collection-list .collection-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 0;
  overflow: hidden;
}

.section-collection-list .collection-card + .collection-card {
  margin-top: 24px;
}

.collection-media {
  min-width: 0;
  height: 100%;
  background: var(--paper-alt);
}

.collection-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.collection-body {
  min-width: 0;
  padding: 22px 22px 22px 0;
}

.collection-body .collection-name {
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-900);
}

.collection-body .collection-scope {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-700);
}

.collection-meta {
  margin: 14px 0 0;
  padding-top: 14px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 16px;
  border-top: 1px dashed var(--line);
}

.collection-meta dt {
  font-size: 14px;
  color: var(--ink-400);
}

.collection-meta dd {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-500);
}

.logic-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.logic-item:last-of-type {
  border-bottom: 1px solid var(--line);
}

.logic-item h3 {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.logic-item p {
  max-width: 72ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-500);
}

.coverage-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.coverage-table caption {
  padding: 12px 16px 0;
  text-align: left;
  font-size: 14px;
  color: var(--ink-400);
}

.coverage-table th,
.coverage-table td {
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.7;
  border-bottom: 1px solid var(--line);
}

.coverage-table thead th {
  background: var(--paper-alt);
  color: var(--ink-900);
  font-weight: 700;
}

.coverage-table tbody th {
  font-weight: 600;
  color: var(--ink-900);
  white-space: nowrap;
}

.coverage-table tbody td {
  color: var(--ink-500);
}

.coverage-table tbody tr:last-child th,
.coverage-table tbody tr:last-child td {
  border-bottom: 0;
}

.section-related .related-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.related-list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-list a:hover,
.related-list a:focus-visible {
  color: #fff;
  background: var(--ink-900);
  border-color: var(--ink-900);
}

/* --------------------------------------------------------------------------
   pages · 条目字段说明
   -------------------------------------------------------------------------- */

.section-fields-dict .section-lead,
.section-fields-rules .section-lead,
.section-fields-boundary .section-lead,
.section-fields-log .section-lead {
  margin-bottom: 24px;
}

.section-figure {
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
}

.section-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.section-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-400);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.field-dict {
  margin: 0;
  border-top: 1px solid var(--line);
}

.field-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.field-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink-900);
}

.field-body {
  margin: 0;
  min-width: 0;
}

.field-meaning {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-700);
}

.field-example {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-400);
}

.rules-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.rules-col {
  min-width: 0;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rules-col-condition {
  background: var(--paper-alt);
}

.rules-title {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.rules-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-700);
}

.rules-list {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.rules-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-500);
}

.rules-list li + li {
  margin-top: 8px;
}

.rules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.boundary-item {
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.boundary-item .boundary-title {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.boundary-item .boundary-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-500);
}

.section-fields-boundary .boundary-note {
  margin-top: 24px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   pages · 观看路径指引
   -------------------------------------------------------------------------- */

.guide-steps .section-lead,
.guide-mapping .section-lead,
.guide-faq .section-lead,
.guide-feedback .section-lead {
  margin-bottom: 24px;
}

.step-list {
  border-top: 1px solid var(--line);
}

.step-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.step-item .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--ink-900);
  border-radius: 50%;
}

.step-item .step-body {
  min-width: 0;
}

.step-item .step-heading {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-900);
}

.step-item .step-text {
  margin-top: 8px;
  max-width: 72ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-500);
}

.step-item .step-done {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--accent);
}

.guide-figure {
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
}

.guide-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-400);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.guide-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.guide-table caption {
  padding: 12px 16px 0;
  text-align: left;
  font-size: 14px;
  color: var(--ink-400);
}

.guide-table th,
.guide-table td {
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.7;
  border-bottom: 1px solid var(--line);
}

.guide-table thead th {
  background: var(--paper-alt);
  color: var(--ink-900);
  font-weight: 700;
}

.guide-table tbody th {
  font-weight: 600;
  color: var(--ink-900);
  white-space: nowrap;
}

.guide-table tbody td {
  color: var(--ink-500);
}

.guide-table tbody tr:last-child th,
.guide-table tbody tr:last-child td {
  border-bottom: 0;
}

.guide-note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-400);
}

.guide-note a + a {
  margin-left: 12px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: block;
  position: relative;
  padding: 16px 40px 16px 0;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-item[open] .faq-question {
  color: var(--accent);
}

.faq-answer {
  padding: 0 0 18px;
}

.faq-answer p {
  max-width: 72ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-500);
}

.feedback-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feedback-item {
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-item .feedback-heading {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.feedback-item .feedback-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-500);
}

.feedback-note {
  margin-top: 20px;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-500);
  background: var(--paper-alt);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.error-hero {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.error-code {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.error-title {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1.3;
  color: var(--ink-900);
}

.error-text {
  margin-top: 14px;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-500);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.error-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  color: var(--ink-900);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-action:hover,
.error-action:focus-visible {
  color: #fff;
  background: var(--ink-900);
  border-color: var(--ink-900);
}

.error-links {
  padding-top: 40px;
}

.error-links-title {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 18px;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.error-link-list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-700);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-link-list a:hover,
.error-link-list a:focus-visible {
  color: #fff;
  background: var(--ink-900);
  border-color: var(--ink-900);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    gap: 16px;
    min-height: 60px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .nav-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 14px;
    background: var(--ink-800);
    border-bottom: 1px solid var(--line-dark);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 48px;
    padding: 0 12px;
    border-bottom: 1px solid var(--line-dark);
  }

  .nav-link.is-current {
    border-bottom-color: var(--accent);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 40px 24px 40px;
  }

  .hero-media img {
    height: 280px;
  }

  .channel-row {
    grid-template-columns: 150px repeat(3, minmax(0, 1fr));
    gap: 8px 16px;
  }

  .collection-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fields-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .path-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-media img {
    height: 220px;
  }

  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-index {
    position: static;
  }

  .channel-index-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
  }

  .channel-index-list li + li {
    margin-top: 0;
  }

  .section-collection-list .collection-card {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .collection-media img {
    height: 100%;
    min-height: 200px;
  }

  .section-related .related-list,
  .error-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boundary-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .inner-main,
  .hero,
  .error-main,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    padding: 8px 16px;
    gap: 10px;
  }

  .brand {
    font-size: 18px;
  }

  .page-title,
  .hero-title,
  .error-title {
    font-size: 26px;
    line-height: 1.35;
  }

  .page-header {
    padding: 10px 0 22px;
    margin-bottom: 28px;
  }

  .section {
    padding: 32px 0;
  }

  .section-head h2,
  .section-title,
  .channel-overview > h2,
  .error-links-title {
    font-size: 20px;
  }

  .hero {
    padding: 28px 16px 32px;
  }

  .hero-media img {
    height: 200px;
  }

  .hero-quick {
    gap: 8px;
  }

  .quick-link {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 14px;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 0;
  }

  .channel-row .channel-name {
    font-size: 17px;
  }

  .collection-cards,
  .path-steps,
  .feedback-list,
  .scope-columns,
  .rules-columns,
  .section-related .related-list,
  .error-link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .log-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .log-scope,
  .log-impact {
    grid-column: 1;
  }

  .channel-overview .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .channel-figure img {
    height: 180px;
  }

  .channel-fields,
  .collection-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 0;
  }

  .channel-fields dt,
  .collection-meta dt {
    margin-top: 8px;
  }

  .channel-index-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-collection-list .collection-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-media img {
    height: 180px;
    min-height: 0;
  }

  .collection-body {
    padding: 18px 18px 20px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 0;
  }

  .step-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px 16px;
    padding: 20px 0;
  }

  .step-item .step-index {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .path-step {
    padding: 16px;
  }

  .path-media img,
  .section-figure img,
  .guide-figure img {
    height: 180px;
  }

  .fields-table,
  .channel-map-table,
  .coverage-table,
  .guide-table {
    min-width: 0;
  }

  .fields-table th,
  .fields-table td,
  .channel-map-table th,
  .channel-map-table td,
  .coverage-table th,
  .coverage-table td,
  .guide-table th,
  .guide-table td {
    padding: 10px 12px;
    font-size: 14px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .footer-inner {
    padding-top: 32px;
  }
}
