:root {
  --paper: #f7f4ee;
  --ink: #1f1c19;
  --accent: #8c2f22;
  --muted: #6b6459;
  --line: #ddd6c9;
  --paper-soft: #fbf9f5;
  --shell: 1120px;
  --read: 760px;
  --radius: 6px;
}

/* ============ base ============ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul, ol, dl, dd, dt, figure, figcaption {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

time,
.channel-no,
.record-date,
.month-date,
.index-code,
.topic-no,
.prep-index,
.error-code {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============ layout ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-main {
  display: block;
}

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 8px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.site-footer {
  margin-top: 40px;
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px 24px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-copy {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 28px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ============ components ============ */

/* 顶部线索条 */
.site-notice {
  background: var(--ink);
}

.site-notice-text {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 13px;
  color: #f0ece4;
  line-height: 1.6;
}

/* 品牌与导航 */
.brand {
  flex: none;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: normal;
  white-space: nowrap;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-toggle {
  display: none;
  padding: 10px 14px;
  min-height: 44px;
  font-size: 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.nav-link {
  display: inline-block;
  padding: 4px 0;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.header-tools {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
}

.tool-link {
  font-size: 14px;
  color: var(--muted);
}

.tool-link:hover,
.tool-link:focus-visible {
  color: var(--accent);
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  min-height: 44px;
  font-size: 15px;
  line-height: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  text-align: center;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fdfbf7;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #74261b;
  border-color: #74261b;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(140, 47, 34, 0.07);
}

/* 通用区块 */
.section {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 22px;
}

.section-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.section-desc,
.section-intro,
.section-note {
  max-width: var(--read);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

.section-more,
.section-foot {
  margin-top: 20px;
  font-size: 15px;
}

.section-foot a + a {
  margin-left: 20px;
}

.text-link {
  border-bottom: 1px solid rgba(140, 47, 34, 0.4);
}

.text-link:hover,
.text-link:focus-visible {
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* 面包屑与内页标题区 */
.breadcrumb {
  padding: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  max-width: var(--read);
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 30px;
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.page-description a {
  border-bottom: 1px solid rgba(140, 47, 34, 0.4);
}

/* ============ pages: 首页 ============ */

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 40px;
  align-items: start;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero-text {
  max-width: 560px;
}

.hero-kicker {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: normal;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 34px;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-next {
  margin-top: 22px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e9e3d8;
}

.hero-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* 题材栏目锚点目录 */
.channel-list {
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.channel-no {
  font-size: 14px;
  color: var(--accent);
  padding-top: 3px;
}

.channel-body {
  min-width: 0;
}

.channel-name {
  font-size: 17px;
  margin-bottom: 6px;
}

.channel-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

.channel-link {
  align-self: center;
  font-size: 14px;
  white-space: nowrap;
}

/* 专题合辑入口 */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  overflow: hidden;
}

.topic-figure {
  margin: 0;
}

.topic-figure img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #e9e3d8;
}

.topic-name {
  font-size: 17px;
  margin: 16px 18px 8px;
}

.topic-reason {
  margin: 0 18px 10px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

.topic-related {
  margin: 0 18px 12px;
  font-size: 13px;
  color: var(--muted);
}

.topic-link {
  margin: auto 18px 18px;
  font-size: 14px;
}

/* 字段说明与收录边界摘要 */
.guide-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.guide-col {
  min-width: 0;
}

.guide-subtitle {
  font-size: 17px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.field-list {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  column-gap: 16px;
}

.field-name {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.field-value {
  padding: 10px 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  border-bottom: 1px solid var(--line);
}

.boundary-list {
  display: grid;
  gap: 10px;
}

.boundary-item {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

.boundary-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

/* 整理记录速览 */
.record-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.record-group {
  min-width: 0;
}

.record-month {
  font-size: 16px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.record-list {
  display: grid;
  gap: 14px;
}

.record-item {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  column-gap: 10px;
  row-gap: 4px;
}

.record-date {
  font-size: 13px;
  color: var(--muted);
}

.record-type {
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(140, 47, 34, 0.35);
  border-radius: 3px;
  padding: 0 6px;
  line-height: 18px;
  align-self: center;
}

.record-text {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* 站内页面索引 */
.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.index-col {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.index-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.index-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.index-link {
  font-size: 14px;
}

/* ============ pages: 题材栏目 ============ */

.channel-table-section {
  border-top: 0;
  padding-top: 0;
}

.channel-rows {
  border-top: 1px solid var(--line);
  margin-top: 22px;
}

.channel-rows .channel-row {
  grid-template-columns: 60px minmax(0, 1fr) auto;
}

.channel-meta {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.channel-meta + .channel-meta {
  margin-top: 4px;
}

.meta-label {
  display: inline-block;
  min-width: 72px;
  color: var(--ink);
  font-weight: 600;
}

.channel-anchor {
  align-self: center;
  font-size: 14px;
  white-space: nowrap;
}

.boundary-section {
  border-top: 1px solid var(--line);
  padding-top: 44px;
  margin-top: 8px;
}

.boundary-pairs {
  display: grid;
  gap: 24px;
  margin-top: 22px;
}

.boundary-pair {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: 20px;
}

.boundary-name {
  font-size: 17px;
  margin-bottom: 14px;
}

.boundary-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.boundary-col {
  min-width: 0;
}

.boundary-sub {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--ink);
}

.boundary-in .boundary-sub {
  color: var(--accent);
}

.boundary-out .boundary-sub {
  color: var(--muted);
}

.boundary-col .boundary-list {
  gap: 8px;
}

.boundary-col .boundary-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.boundary-col .boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 1px;
}

.boundary-out .boundary-list li::before {
  background: var(--line);
}

.mapping-section {
  border-top: 1px solid var(--line);
  padding-top: 44px;
  margin-top: 32px;
}

.mapping-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.mapping-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.mapping-channel {
  font-size: 16px;
  font-weight: 600;
}

.mapping-arrow {
  color: var(--line);
  font-size: 14px;
}

.mapping-topic {
  font-size: 15px;
  color: var(--accent);
}

.mapping-reason {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.related-section {
  border-top: 1px solid var(--line);
  padding-top: 44px;
  margin-top: 32px;
}

.related-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.related-item {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.related-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.section-figure {
  margin-top: 22px;
}

.section-figure img {
  width: 100%;
  max-width: 760px;
  height: 260px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e9e3d8;
}

.figure-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ============ pages: 专题合辑 ============ */

.topic-grid-section {
  border-top: 0;
  padding-top: 0;
}

.topic-grid-section .topic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topic-media {
  margin: 0;
}

.topic-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #e9e3d8;
}

.topic-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px 18px 18px;
}

.topic-no {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 6px;
}

.topic-body .topic-name {
  margin: 0 0 8px;
  font-size: 17px;
}

.topic-body .topic-reason {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

.topic-body .topic-link {
  margin: auto 0 0;
  padding-top: 8px;
  font-size: 14px;
}

.topic-map-section {
  border-top: 1px solid var(--line);
  padding-top: 44px;
}

.topic-map-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.topic-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.map-topic {
  font-size: 16px;
  font-weight: 600;
}

.map-channel {
  font-size: 14px;
  color: var(--accent);
}

.map-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.topic-update-section {
  border-top: 1px solid var(--line);
  padding-top: 44px;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.update-item {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.update-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.update-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.site-index-section {
  border-top: 1px solid var(--line);
  padding-top: 44px;
  margin-top: 32px;
}

.site-index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}

/* ============ pages: 浏览指引 ============ */

.guide-visual {
  margin-bottom: 40px;
}

.guide-figure {
  margin-top: 20px;
}

.guide-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e9e3d8;
}

.guide-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.field-section {
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.field-table {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  overflow: hidden;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1.6fr) minmax(0, 1.4fr);
  border-bottom: 1px solid var(--line);
}

.field-row:last-child {
  border-bottom: 0;
}

.field-cell {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.7;
  border-right: 1px solid var(--line);
}

.field-cell:last-child {
  border-right: 0;
}

.field-head {
  background: #f1ece2;
}

.field-head .field-cell {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.field-table .field-name {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 0;
  padding: 14px 16px;
}

.field-table .field-mean,
.field-table .field-read {
  color: var(--muted);
}

.boundary-section .boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 22px;
}

.boundary-columns .boundary-col {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.boundary-subtitle {
  font-size: 16px;
  margin-bottom: 12px;
}

.boundary-in .boundary-subtitle {
  color: var(--accent);
}

.boundary-out .boundary-subtitle {
  color: var(--muted);
}

.boundary-columns .boundary-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

.boundary-columns .boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 1px;
}

.boundary-out .boundary-list li::before {
  background: var(--line);
}

.prep-section {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-top: 40px;
}

.prep-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.prep-step {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.prep-index {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}

.prep-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.prep-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.faq-section {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-top: 40px;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: 0 18px;
}

.faq-question {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "展开";
  float: right;
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
}

.faq-item[open] .faq-question::after {
  content: "收起";
}

.faq-answer {
  padding: 0 0 18px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.index-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.index-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.index-back {
  margin-top: 20px;
  font-size: 15px;
}

/* ============ pages: 整理记录 ============ */

.records-intro {
  margin-bottom: 40px;
}

.records-figure {
  margin: 20px 0;
}

.records-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e9e3d8;
}

.records-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.records-intro-text {
  max-width: var(--read);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

.records-monthly {
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.month-group {
  margin-top: 28px;
}

.month-title {
  font-size: 17px;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.month-list {
  display: grid;
}

.month-item {
  display: grid;
  grid-template-columns: 96px 84px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.month-date {
  font-size: 14px;
  color: var(--muted);
}

.month-type {
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(140, 47, 34, 0.35);
  border-radius: 3px;
  padding: 0 6px;
  line-height: 18px;
  justify-self: start;
}

.month-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

.records-basis {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-top: 40px;
}

.basis-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.basis-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.basis-caption {
  text-align: left;
  padding: 14px 16px 0;
  font-size: 13px;
  color: var(--muted);
}

.basis-table th,
.basis-table td {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.basis-table thead th {
  background: #f1ece2;
  font-weight: 600;
  font-size: 14px;
}

.basis-table tbody tr:last-child td {
  border-bottom: 0;
}

.basis-table tbody td {
  color: var(--muted);
}

.basis-table tbody td:first-child {
  color: var(--ink);
  font-weight: 600;
}

.records-index {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-top: 40px;
}

.index-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 22px;
}

.index-columns .index-col {
  padding: 0;
  border: 0;
  background: none;
}

.index-col-title {
  font-size: 16px;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.index-list {
  display: grid;
}

.index-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.index-code {
  font-size: 13px;
  color: var(--accent);
}

.index-name {
  color: var(--ink);
}

.index-footnote {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.related-entry {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-top: 40px;
}

.related-entry .related-list {
  margin-top: 18px;
}

.related-entry .related-item {
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
}

.related-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ============ pages: 404 ============ */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.error-inner {
  max-width: var(--read);
  padding: 72px 0 64px;
}

.error-code {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 12px;
}

.error-title {
  font-size: 30px;
  margin-bottom: 14px;
}

.error-text {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 26px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.error-links {
  display: grid;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.error-links li {
  font-size: 15px;
}

/* ============ 页脚 ============ */

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-slogan {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-list {
  display: grid;
  gap: 8px;
}

.footer-list a {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent);
}

/* ============ responsive ============ */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 32px;
  }

  .hero-title {
    font-size: 30px;
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .index-grid,
  .site-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prep-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 12px 18px;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 10px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    border-bottom: 1px solid var(--line);
  }

  .nav-link {
    display: block;
    padding: 12px 2px;
    min-height: 44px;
  }

  .header-tools {
    margin-left: auto;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-notice-text,
  .footer-inner,
  .footer-copy {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 0 32px;
  }

  .hero-text {
    max-width: none;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-figure img {
    height: 240px;
  }

  .section {
    padding: 34px 0;
  }

  .page-header {
    padding: 14px 0 22px;
    margin-bottom: 26px;
  }

  .page-title {
    font-size: 24px;
  }

  .channel-row,
  .channel-rows .channel-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .channel-link,
  .channel-anchor {
    grid-column: 2;
    justify-self: start;
    padding-top: 4px;
  }

  .topic-grid,
  .topic-grid-section .topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-columns,
  .boundary-cols,
  .boundary-section .boundary-columns,
  .index-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .field-list {
    grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
  }

  .record-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .mapping-row,
  .topic-map-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-items: start;
  }

  .mapping-arrow {
    display: none;
  }

  .related-item,
  .related-entry .related-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .month-item {
    grid-template-columns: 88px 76px minmax(0, 1fr);
    gap: 10px;
  }

  .update-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-row {
    grid-template-columns: minmax(0, 130px) minmax(0, 1fr) minmax(0, 1fr);
  }

  .field-cell,
  .field-table .field-name {
    padding: 12px 12px;
    font-size: 14px;
  }

  .prep-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid,
  .site-index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 32px;
  }
}

@media (max-width: 480px) {
  .site-notice-text {
    font-size: 12px;
  }

  .brand {
    font-size: 17px;
  }

  .header-tools {
    gap: 12px;
  }

  .tool-link {
    font-size: 13px;
  }

  .hero-title {
    font-size: 23px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-figure img {
    height: 200px;
  }

  .section-title {
    font-size: 18px;
  }

  .topic-figure img,
  .topic-media img {
    height: 170px;
  }

  .field-list {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .field-name {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .field-value {
    padding-top: 4px;
  }

  .record-item {
    grid-template-columns: auto auto;
  }

  .month-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .field-cell:last-child {
    border-bottom: 0;
  }

  .field-table .field-name {
    background: #f1ece2;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-title {
    font-size: 24px;
  }

  .guide-figure img,
  .records-figure img,
  .section-figure img {
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
