:root {
  --bg-page: #f7f8fa;
  --bg-surface: #ffffff;
  --bg-subtle: #eef1f5;
  --text-main: #1f2328;
  --text-sub: #5b6470;
  --text-muted: #7a838f;
  --accent: #1f6feb;
  --accent-dark: #1a5cc4;
  --accent-soft: #e8f0fd;
  --note-bg: #fff8e6;
  --note-border: #e6c34a;
  --line: #dfe3e8;
  --line-soft: #e9edf2;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(31, 35, 40, 0.06), 0 4px 12px rgba(31, 35, 40, 0.04);
  --container: 1180px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================
   base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.16s ease;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

time {
  font-style: normal;
}

/* ============================================================
   layout
   ============================================================ */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  display: block;
}

.inner-main {
  padding: 0 0 56px;
}

.layout-shell,
.page-layout {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
  margin-top: 8px;
}

.content-main,
.layout-main,
.records-section {
  min-width: 0;
}

.content-aside,
.content-sidebar,
.layout-aside,
.page-aside {
  min-width: 0;
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 首页各模块统一容器 */
.hero-section,
.channel-overview,
.topic-entry,
.record-digest,
.guide-summary,
.page-index {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px 24px;
}

/* ============================================================
   header / nav
   ============================================================ */

.top-strip {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--line-soft);
}

.top-strip-text {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px 24px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text-main);
  font-weight: 700;
  text-decoration: none;
  padding: 8px 0;
}

.brand:hover {
  color: var(--text-main);
  text-decoration: none;
}

.brand-mark {
  font-size: 19px;
  letter-spacing: 0;
  line-height: 1.3;
}

.brand-sub {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: block;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text-sub);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--accent);
  background-color: var(--accent-soft);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 700;
  background-color: var(--accent-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
}

/* ============================================================
   components · breadcrumb & page header
   ============================================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

.page-header {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px 4px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

.page-description {
  margin-top: 10px;
  max-width: 860px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.8;
}

.page-description a {
  color: var(--accent);
}

/* ============================================================
   components · section head / titles / text
   ============================================================ */

.section-head {
  margin-bottom: 22px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
}

.section-desc {
  margin-top: 8px;
  max-width: 820px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.8;
}

.section-intro,
.section-lead {
  margin-top: 8px;
  margin-bottom: 18px;
  max-width: 820px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.8;
}

.section-text {
  margin-bottom: 14px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}

.section-text:last-child {
  margin-bottom: 0;
}

.section-note {
  margin-top: 16px;
  padding: 12px 16px;
  background-color: var(--note-bg);
  border: 1px solid var(--note-border);
  border-radius: var(--radius-sm);
  color: #6b5410;
  font-size: 13.5px;
  line-height: 1.75;
}

.section-note a {
  color: #8a6a12;
  font-weight: 600;
}

.column-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.inline-link,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ============================================================
   components · buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.btn-ghost {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  color: var(--text-main);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   components · figures & images
   ============================================================ */

.hero-figure,
.topic-figure,
.content-figure,
.records-figure,
.section-figure {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-subtle);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.topic-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.content-figure img,
.section-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.records-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.hero-figure figcaption,
.figure-caption {
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
  background-color: var(--bg-surface);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.records-figure figcaption {
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
  background-color: var(--bg-surface);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

/* ============================================================
   components · tables (channel)
   ============================================================ */

.channel-table {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-surface);
}

.channel-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 0;
  border-bottom: 1px solid var(--line-soft);
}

.channel-row:last-child {
  border-bottom: 0;
}

.channel-row-head {
  background-color: var(--bg-subtle);
}

.channel-cell {
  padding: 12px 16px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
  border-right: 1px solid var(--line-soft);
}

.channel-cell:last-child {
  border-right: 0;
}

.channel-row-head .channel-cell {
  color: var(--text-main);
  font-weight: 700;
  font-size: 13.5px;
}

.channel-name,
.channel-cell-name {
  color: var(--text-main);
  font-weight: 600;
}

.channel-theme,
.channel-cell-genre {
  color: var(--text-sub);
}

.channel-organize,
.channel-cell-organize {
  color: var(--text-muted);
  font-size: 13.5px;
}

/* ============================================================
   components · topic cards
   ============================================================ */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.topic-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.topic-card .topic-figure {
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
}

.topic-name {
  padding: 14px 18px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.topic-scope {
  padding: 8px 18px 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.topic-count {
  padding: 8px 18px 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.topic-link {
  margin: 14px 18px 18px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   components · record lists
   ============================================================ */

.record-months,
.records-month {
  display: block;
}

.record-month,
.records-month {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.record-month:last-child,
.records-month:last-child {
  margin-bottom: 0;
}

.record-month-title,
.month-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}

.record-list,
.records-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-item {
  display: grid;
  grid-template-columns: 96px 108px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line-soft);
}

.record-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.record-date {
  color: var(--text-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.record-channel {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.record-desc {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

/* ============================================================
   components · field lists & boundary lists
   ============================================================ */

.field-list,
.field-table {
  display: block;
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-list .field-name,
.field-list .field-desc {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.field-list .field-name {
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  background-color: var(--bg-subtle);
}

.field-list .field-desc {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.field-list .field-desc:last-child {
  border-bottom: 0;
}

.field-table .field-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  border-bottom: 1px solid var(--line-soft);
}

.field-table .field-row:last-child {
  border-bottom: 0;
}

.field-table .field-name {
  padding: 12px 16px;
  background-color: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  border-right: 1px solid var(--line-soft);
}

.field-table .field-desc {
  padding: 12px 16px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-item {
  position: relative;
  padding: 12px 16px 12px 38px;
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.boundary-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

.boundary-name {
  display: block;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 2px;
}

.boundary-text {
  display: block;
}

.boundary-note {
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

/* ============================================================
   components · aside / sidebar
   ============================================================ */

.aside-block,
.sidebar-block {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.aside-title,
.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 10px;
}

.aside-text,
.sidebar-text {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

.aside-list,
.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside-item,
.sidebar-item {
  display: block;
}

.aside-link,
.sidebar-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside-note {
  background-color: var(--note-bg);
  border-color: var(--note-border);
}

.aside-note .aside-title {
  color: #6b5410;
  border-bottom-color: rgba(230, 195, 74, 0.5);
}

.aside-note .aside-text {
  color: #6b5410;
}

/* ============================================================
   components · FAQ
   ============================================================ */

.faq-group {
  margin-bottom: 22px;
}

.faq-group:last-child {
  margin-bottom: 0;
}

.faq-group-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line-soft);
  background-color: var(--accent-soft);
}

.faq-answer {
  padding: 12px 16px 16px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

/* ============================================================
   components · guide columns
   ============================================================ */

.guide-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-column {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.guide-column-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.guide-column-text {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

.guide-column-link {
  margin-top: 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   components · footer
   ============================================================ */

.site-footer {
  flex: 0 0 auto;
  margin-top: 24px;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-brand-name {
  display: block;
  color: var(--text-main);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-brand-desc {
  max-width: 340px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

.footer-group {
  min-width: 0;
}

.footer-group-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--text-sub);
  font-size: 14px;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  background-color: var(--bg-subtle);
}

.footer-copy {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ============================================================
   pages · index
   ============================================================ */

.hero-section {
  padding-top: 40px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.hero-intro {
  min-width: 0;
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

.hero-lead {
  margin-top: 14px;
  max-width: 640px;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  min-width: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.facts-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}

.facts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fact-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.fact-name {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
}

.fact-desc {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.hero-figure {
  margin-top: 32px;
}

.channel-overview,
.topic-entry,
.record-digest,
.guide-summary,
.page-index {
  border-top: 1px solid var(--line-soft);
}

.guide-columns {
  align-items: start;
}

.guide-fields,
.guide-boundary {
  min-width: 0;
}

.guide-summary .guide-columns {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.guide-fields .field-list .field-name {
  border-bottom: 1px solid var(--line-soft);
}

.guide-boundary .boundary-list {
  margin-bottom: 14px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.index-column {
  min-width: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.index-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.index-desc {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.index-link {
  margin-top: 12px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   pages · inner shared sections
   ============================================================ */

.section {
  margin-bottom: 34px;
}

.section:last-child {
  margin-bottom: 0;
}

.content-section {
  margin-bottom: 34px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.channel-visual-section .content-figure,
.section-fields .section-figure {
  margin-top: 4px;
}

.channel-pick-section .section-text {
  margin-bottom: 12px;
}

.channel-boundary-section .boundary-list {
  margin-top: 4px;
}

.topics-section .topic-grid {
  margin-top: 4px;
}

.topics-organize .organize-text {
  margin-bottom: 14px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}

.topics-organize .organize-text:last-child {
  margin-bottom: 0;
}

.topics-boundary .boundary-list {
  margin-top: 4px;
}

.records-section .records-figure {
  margin: 4px 0 22px;
}

.records-read-guide .field-list {
  margin-top: 4px;
}

.records-read-guide .section-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}

.records-read-guide .section-note a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.records-boundary .boundary-list {
  margin-top: 4px;
}

.section-columns-guide .guide-columns {
  margin-top: 4px;
}

.section-columns-guide .section-note {
  margin-top: 18px;
}

.section-faq .faq-group {
  margin-top: 4px;
}

/* ============================================================
   pages · 404
   ============================================================ */

.error-main {
  padding: 0 0 64px;
}

.error-hero {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 40px;
}

.error-code {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.error-hero h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

.error-desc {
  margin-top: 14px;
  max-width: 680px;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.85;
}

.error-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-routes {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 0;
  border-top: 1px solid var(--line-soft);
}

.error-routes h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.error-route-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.error-route-item {
  min-width: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.error-route-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.error-route-desc {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .content-aside,
  .content-sidebar,
  .layout-aside,
  .page-aside {
    position: static;
    top: auto;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .guide-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .top-strip-text {
    font-size: 12.5px;
  }

  .header-inner {
    min-height: 60px;
    padding: 0 16px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .brand-mark {
    font-size: 17px;
  }

  .brand-sub {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    width: 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line-soft);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    font-size: 15px;
  }

  .layout-shell,
  .page-layout,
  .breadcrumb,
  .page-header,
  .hero-section,
  .channel-overview,
  .topic-entry,
  .record-digest,
  .guide-summary,
  .page-index,
  .error-hero,
  .error-routes,
  .footer-inner,
  .footer-copy {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 20px;
  }

  .hero-section,
  .channel-overview,
  .topic-entry,
  .record-digest,
  .guide-summary,
  .page-index {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-columns,
  .guide-summary .guide-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-route-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-cell {
    border-right: 0;
    border-bottom: 1px dashed var(--line-soft);
    padding: 10px 14px;
  }

  .channel-row .channel-cell:last-child {
    border-bottom: 0;
  }

  .channel-row-head {
    display: none;
  }

  .channel-cell-name::before {
    content: "频道：";
    color: var(--text-muted);
    font-weight: 500;
  }

  .channel-cell-genre::before {
    content: "题材方向：";
    color: var(--text-muted);
    font-weight: 500;
  }

  .channel-cell-organize::before {
    content: "条目组织：";
    color: var(--text-muted);
    font-weight: 500;
  }

  .field-table .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-table .field-name {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .record-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .fact-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 22px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 23px;
  }

  .page-title {
    font-size: 22px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
