:root {
  --text-main: #23282d;
  --text-sub: #5b6570;
  --line: #dfe3e6;
  --bg-page: #f7f8f9;
  --bg-content: #ffffff;
  --accent: #1f7a6b;
  --accent-soft: #e6f1ee;
  --state: #2f6f9f;
  --state-soft: #e8f0f7;
  --radius: 6px;
  --wrap: 1120px;
  --read: 760px;
}

/* ===== base ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  background: var(--bg-page);
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 17px;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: #155a4f;
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--state);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  text-align: left;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== layout ===== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg-content);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0;
  white-space: nowrap;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--text-sub);
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--text-main);
  text-decoration: none;
  border-bottom-color: var(--line);
}

.nav-list a.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text-main);
}

.nav-toggle::before {
  top: 16px;
}

.nav-toggle::after {
  bottom: 16px;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.inner-main {
  max-width: var(--read);
  padding-top: 20px;
}

.site-footer {
  background: var(--bg-content);
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 24px 20px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 10px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-group a {
  font-size: 14px;
  color: var(--text-sub);
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-sub);
}

/* ===== components ===== */

.section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2,
.section-title,
.section h2 {
  font-size: 20px;
}

.section-lead,
.section-intro {
  margin: 0;
  max-width: 720px;
  color: var(--text-sub);
  font-size: 15px;
}

.section-more {
  margin: 20px 0 0;
  font-size: 15px;
}

.section-more a::after {
  content: " →";
  color: var(--accent);
}

.sub-title {
  font-size: 16px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* 频道行：首页与频道页共用基础，父级限定差异化 */

.channel-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  align-items: start;
  gap: 4px 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.section-channels .channel-row {
  grid-template-columns: minmax(140px, 1fr) minmax(220px, 1.6fr) minmax(200px, 1.4fr) auto;
  align-items: center;
}

.channel-name {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.section-channels .channel-name {
  color: var(--text-main);
}

.channel-scope {
  color: var(--text-main);
  font-size: 15px;
}

.channel-note {
  color: var(--text-sub);
  font-size: 14px;
}

.channel-enter {
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--accent);
  white-space: nowrap;
}

.channel-enter:hover,
.channel-enter:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

/* 片单条目 */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.collection-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.collection-figure,
.collection-media {
  margin: 0;
  background: var(--accent-soft);
}

.collection-figure img,
.collection-media img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.collection-name {
  margin: 16px 16px 8px;
  font-size: 17px;
}

.collection-scope,
.collection-source {
  margin: 0 16px 10px;
  font-size: 14px;
  color: var(--text-sub);
}

.collection-source {
  margin-bottom: 18px;
}

.field-label {
  color: var(--text-main);
  font-weight: 600;
  margin-right: 4px;
}

/* 字段表 */

.fields-table-wrap {
  min-width: 0;
}

.fields-table,
.field-table,
.map-table {
  border: 1px solid var(--line);
  background: var(--bg-content);
  font-size: 15px;
}

.fields-table th,
.fields-table td,
.field-table th,
.field-table td,
.map-table th,
.map-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
}

.fields-table thead th,
.field-table thead th,
.map-table thead th {
  background: var(--bg-page);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  white-space: nowrap;
}

.fields-table tbody tr:last-child th,
.fields-table tbody tr:last-child td,
.field-table tbody tr:last-child td,
.map-table tbody tr:last-child th,
.map-table tbody tr:last-child td {
  border-bottom: 0;
}

.fields-table th[scope="row"],
.map-table tbody th {
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-content);
}

/* 收录边界块 */

.bounds-block p {
  color: var(--text-sub);
  font-size: 15px;
}

.bounds-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
}

.bounds-in,
.bounds-out {
  position: relative;
  padding: 10px 12px 10px 34px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.7;
}

.bounds-in {
  background: var(--accent-soft);
  color: #17594f;
}

.bounds-out {
  background: #f3f4f5;
  color: var(--text-sub);
}

.bounds-in::before,
.bounds-out::before {
  position: absolute;
  left: 12px;
  top: 10px;
  font-weight: 700;
}

.bounds-in::before {
  content: "含";
  color: var(--accent);
}

.bounds-out::before {
  content: "除";
  color: var(--text-sub);
}

.bounds-more {
  margin: 0;
  font-size: 15px;
}

/* 编号步骤（首页） */

.step-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.step-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--state-soft);
  color: var(--state);
  font-size: 14px;
  font-weight: 600;
}

.step-body {
  min-width: 0;
}

.step-title {
  margin: 0 0 6px;
  font-size: 16px;
}

.step-desc {
  margin: 0;
  color: var(--text-sub);
  font-size: 15px;
}

/* 调整记录 */

.log-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.log-item {
  display: grid;
  grid-template-columns: 120px 108px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.log-time {
  font-size: 14px;
  color: var(--text-sub);
  white-space: nowrap;
}

.log-type {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--state-soft);
  color: var(--state);
  font-size: 13px;
  justify-self: start;
  white-space: nowrap;
}

.log-desc {
  margin: 0;
  font-size: 15px;
}

/* 面包屑与页面标题区 */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-sub);
  padding: 4px 0 12px;
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text-sub);
}

.page-header {
  padding: 0 0 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 10px;
}

.page-description {
  margin: 0;
  max-width: 700px;
  color: var(--text-sub);
  font-size: 15px;
}

/* FAQ */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 32px 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--state);
  outline-offset: 2px;
}

.faq-item p {
  margin: 0 0 16px;
  color: var(--text-sub);
  font-size: 15px;
}

/* 相关内容链接条 */

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 20px 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.related-links-label {
  color: var(--text-sub);
  font-size: 14px;
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-content);
  font-size: 14px;
}

.related-links-item:hover,
.related-links-item:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

/* ===== pages ===== */

/* 首页首屏 */

.hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.hero-text {
  min-width: 0;
}

.hero-title {
  font-size: 28px;
  margin: 0 0 14px;
}

.hero-lead {
  font-size: 16px;
  color: var(--text-main);
  margin: 0 0 10px;
}

.hero-note {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0;
}

.hero-paths {
  background: var(--bg-content);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.hero-paths-title {
  font-size: 15px;
  color: var(--text-sub);
  font-weight: 600;
  margin: 0 0 12px;
}

.path-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.path-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.path-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.path-item a {
  font-size: 16px;
  font-weight: 600;
}

.path-desc {
  font-size: 14px;
  color: var(--text-sub);
}

.hero-figure {
  margin: 28px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-content);
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
}

/* 首页字段摘要两栏 */

.fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* 频道页 */

.channels-overview .channel-row {
  grid-template-columns: 168px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.channel-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--accent-soft);
}

.channel-media img {
  width: 100%;
  height: 104px;
  object-fit: cover;
}

.channel-body {
  min-width: 0;
}

.channel-body .channel-name {
  margin: 0 0 6px;
}

.channel-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 4px 12px;
  font-size: 14px;
}

.channel-meta dt {
  color: var(--text-sub);
}

.channel-meta dd {
  margin: 0;
  color: var(--text-main);
}

.channels-diff .section-title,
.channels-boundary .section-title {
  margin-bottom: 8px;
}

.channels-diff .section-intro,
.channels-boundary .section-intro {
  margin-bottom: 20px;
}

.diff-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-content);
}

.diff-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  border-bottom: 1px solid var(--line);
}

.diff-row:last-child {
  border-bottom: 0;
}

.diff-head {
  background: var(--bg-page);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
}

.diff-col {
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.7;
  min-width: 0;
}

.diff-col-left {
  border-right: 1px solid var(--line);
  font-weight: 600;
}

.diff-head .diff-col-left {
  font-weight: 600;
}

.diff-row:not(.diff-head) .diff-col-right {
  color: var(--text-sub);
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.boundary-col,
.boundary-column {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--bg-content);
}

.boundary-title,
.boundary-column h3 {
  font-size: 16px;
  margin: 0 0 12px;
}

.boundary-include .boundary-title,
.boundary-include h3 {
  color: var(--accent);
}

.boundary-exclude .boundary-title,
.boundary-exclude h3 {
  color: var(--text-sub);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
}

.boundary-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.boundary-include .boundary-list li::before {
  content: "·";
  color: var(--accent);
}

.boundary-exclude .boundary-list li::before {
  content: "×";
  color: var(--text-sub);
  font-size: 13px;
}

.boundary-note {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--text-sub);
}

/* 片单页 */

.section-collection-list .section-intro,
.section-selection-logic .section-intro,
.section-collection-map .section-intro,
.section-next-steps .section-intro {
  margin-bottom: 20px;
}

.section-collection-list .collection-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  margin-bottom: 20px;
}

.section-collection-list .collection-item:last-child {
  margin-bottom: 0;
}

.section-collection-list .collection-media img {
  height: 100%;
  min-height: 168px;
}

.collection-body {
  min-width: 0;
  padding: 18px 20px 12px;
}

.collection-body .collection-name {
  margin: 0 0 10px;
}

.collection-body .collection-scope,
.collection-body .collection-source {
  margin: 0 0 10px;
}

.logic-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: logic;
}

.logic-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.logic-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--state-soft);
  color: var(--state);
  font-size: 14px;
  font-weight: 600;
}

.logic-text {
  margin: 0;
  padding-top: 2px;
  font-size: 15px;
}

.map-table caption {
  padding: 0 0 10px;
  font-size: 14px;
  color: var(--text-sub);
}

.next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.next-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-content);
  font-size: 15px;
}

.next-links a:hover,
.next-links a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

/* 字段说明页 */

.field-table-section h2,
.boundary-section h2,
.faq-section h2 {
  margin-bottom: 8px;
}

.field-table-section .section-intro,
.boundary-section .section-intro,
.faq-section .section-intro {
  margin-bottom: 20px;
}

.field-figure {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-content);
}

.field-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.field-figure figcaption {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
}

.field-table-wrap,
.field-table {
  min-width: 0;
}

.boundary-section {
  padding: 40px 0 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.faq-section {
  padding: 40px 0 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

/* 指引页 */

.section-steps .section-lead,
.section-faq .section-lead,
.section-index .section-lead {
  margin-bottom: 20px;
}

.media-figure {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-content);
}

.media-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.media-figure figcaption {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
}

.section-steps .step-list {
  border-top: 1px solid var(--line);
}

.section-steps .step-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 6px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.section-steps .step-index {
  grid-row: 1 / span 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.section-steps .step-title {
  margin: 4px 0 4px;
  font-size: 16px;
}

.section-steps .step-action,
.section-steps .step-result {
  margin: 0;
  font-size: 15px;
  min-width: 0;
}

.section-steps .step-result {
  color: var(--text-sub);
}

.section-foot {
  margin: 20px 0 0;
  font-size: 15px;
}

.section-foot a::after {
  content: " →";
  color: var(--accent);
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.index-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--bg-content);
  min-width: 0;
}

.index-card-title {
  font-size: 16px;
  margin: 0 0 8px;
}

.index-card-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-sub);
}

/* 404 */

.error-main {
  max-width: var(--read);
  padding-top: 56px;
}

.error-block {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.error-block h1 {
  margin: 0 0 12px;
}

.error-lead {
  color: var(--text-sub);
  margin: 0 0 20px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
  font-size: 15px;
}

.error-home-link:hover,
.error-home-link:focus-visible {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

.error-paths {
  padding-top: 32px;
}

.error-paths h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.error-path-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-content);
  font-size: 15px;
}

.error-path-list a:hover,
.error-path-list a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

/* 滚动增强：默认完全可见，仅位移过渡 */

.reveal {
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.reveal.is-visible {
  transform: none;
}

/* ===== responsive ===== */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .fields-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-channels .channel-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .section-channels .channel-scope,
  .section-channels .channel-note {
    grid-column: 1 / -1;
  }

  .channels-overview .channel-row {
    grid-template-columns: 140px minmax(0, 1fr) auto;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 0 16px;
    min-height: 58px;
    gap: 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    margin-left: 0;
    width: 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    width: 100%;
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-list a.is-current {
    border-bottom-color: var(--accent);
  }

  .nav-list li:last-child a {
    border-bottom: 0;
  }

  .site-main {
    padding: 0 16px 40px;
  }

  .inner-main {
    padding-top: 16px;
  }

  h1,
  .hero-title,
  .page-title {
    font-size: 24px;
  }

  h2,
  .section-head h2,
  .section-title,
  .section h2 {
    font-size: 19px;
  }

  .hero {
    padding: 28px 0 24px;
  }

  .hero-figure img {
    height: 200px;
  }

  .section {
    padding: 28px 0;
  }

  .section-channels .channel-row,
  .channels-overview .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .section-channels .channel-scope,
  .section-channels .channel-note {
    grid-column: auto;
  }

  .channel-enter {
    justify-self: start;
  }

  .channel-media img {
    height: 160px;
  }

  .collection-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-collection-list .collection-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-collection-list .collection-media img {
    height: 180px;
    min-height: 0;
  }

  .collection-figure img {
    height: 180px;
  }

  .log-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .log-time,
  .log-type {
    justify-self: start;
  }

  .diff-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .diff-col-left {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .boundary-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid,
  .error-path-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-figure img,
  .media-figure img {
    height: 200px;
  }

  .fields-table,
  .field-table,
  .map-table {
    font-size: 14px;
  }

  .fields-table th,
  .fields-table td,
  .field-table th,
  .field-table td,
  .map-table th,
  .map-table td {
    padding: 8px 10px;
  }

  .footer-inner {
    padding: 24px 16px 16px;
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 390px) {
  .header-inner,
  .site-main,
  .footer-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-steps .step-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 6px 12px;
  }

  .section-steps .step-index {
    width: 28px;
    height: 28px;
  }

  .logic-item {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    transform: none;
  }
}
