:root {
  --page-bg: #f7f8fa;
  --card-bg: #ffffff;
  --text-main: #1f2430;
  --text-sub: #5b6472;
  --brand: #2f6bff;
  --line: #e3e6ec;
  --brand-soft: #f0f4ff;
  --radius: 8px;
  --container: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    sans-serif;
}

/* ============================================================
   base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption,
table,
caption,
th,
td {
  margin: 0;
  padding: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease;
}

a:hover {
  color: #1c4fd6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--card-bg);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  font-size: 14px;
  transition: top 0.16s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ============================================================
   layout
   ============================================================ */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.home-main {
  padding-top: 32px;
}

.inner-main {
  padding-top: 24px;
}

/* 通用内容分栏：默认主内容在前、侧栏在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

/* 侧栏在左的真实布局（aside 在 DOM 中位于主内容之前） */
.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.main-column {
  min-width: 0;
}

.content-main {
  min-width: 0;
}

.section {
  margin-top: 44px;
  padding: 28px 28px 30px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.home-main > .section:first-of-type {
  margin-top: 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  line-height: 1.4;
}

.section-sub {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
  max-width: 760px;
}

.section-intro {
  margin-top: 10px;
  margin-bottom: 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
  max-width: 760px;
}

.section-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.section-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
}

/* ============================================================
   components — 页头与导航
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--card-bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text-main);
  font-weight: 600;
}

.brand:hover {
  color: var(--text-main);
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--brand);
  box-shadow: inset 0 0 0 4px var(--brand-soft);
}

.brand-name {
  font-size: 17px;
  line-height: 1.4;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}

.nav-item {
  min-width: 0;
}

.nav-link {
  display: inline-block;
  padding: 6px 2px;
  font-size: 15px;
  color: var(--text-sub);
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--text-main);
  border-bottom-color: var(--line);
}

.nav-link.is-current {
  color: var(--text-main);
  font-weight: 600;
  border-bottom-color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-main);
}

/* 次级标签栏（题材方向快捷入口） */
.sub-nav,
.subnav,
.subnav-bar {
  background: var(--brand-soft);
  border-bottom: 1px solid var(--line);
}

.sub-nav-inner,
.subnav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sub-nav-label,
.subnav-label {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--text-sub);
}

.sub-nav-list,
.subnav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sub-nav-link,
.subnav-link {
  display: inline-block;
  padding: 5px 12px;
  min-height: 30px;
  line-height: 20px;
  font-size: 13px;
  color: var(--text-sub);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.sub-nav-link:hover,
.subnav-link:hover {
  color: var(--brand);
  border-color: var(--brand);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 0;
  font-size: 13px;
  color: var(--text-sub);
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb-sep {
  color: #a6adba;
}

.breadcrumb-current {
  color: var(--text-main);
}

/* 页面标题区 */
.page-header {
  margin-top: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 4px;
}

.page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.page-tags .page-tag {
  margin-bottom: 0;
}

.page-title {
  font-size: 30px;
  line-height: 1.3;
}

.page-description {
  margin-top: 12px;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-sub);
}

.page-lead {
  margin-top: 12px;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.btn-primary {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover {
  color: #ffffff;
  background: #1c4fd6;
  border-color: #1c4fd6;
}

.btn-ghost {
  color: var(--text-main);
  background: var(--card-bg);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--brand);
  border-color: var(--brand);
}

/* 图片容器与图注 */
.hero-figure,
.section-figure,
.page-figure,
.field-figure,
.guide-figure,
.section-media {
  margin: 0;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-figure img,
.section-figure img,
.page-figure img,
.field-figure img,
.guide-figure img,
.section-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-figure img {
  aspect-ratio: 16 / 11;
}

.section-figure img,
.page-figure img,
.field-figure img,
.guide-figure img,
.section-media img {
  aspect-ratio: 16 / 9;
}

.hero-figure figcaption,
.section-figure figcaption,
.page-figure figcaption,
.field-figure-caption,
.guide-figure-caption,
.section-media figcaption,
.figure-caption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
}

/* 表格 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.field-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}

.field-table caption,
.field-caption,
.field-table-caption {
  padding-bottom: 12px;
  text-align: left;
  font-size: 13px;
  color: var(--text-sub);
}

.field-table th,
.field-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.field-table thead th {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  background: var(--brand-soft);
  border-bottom: 1px solid var(--line);
}

.field-table tbody th {
  width: 22%;
  font-weight: 600;
  color: var(--text-main);
}

.field-table tbody td {
  color: var(--text-sub);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.faq-item[open] {
  border-color: #cdd6ea;
  background: #fcfdff;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
  transition: transform 0.16s ease;
}

.faq-item[open] .faq-question::before {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 16px 16px 34px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
}

/* 侧栏 */
.side-panel,
.sidebar,
.content-sidebar {
  min-width: 0;
  padding: 22px 20px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-title,
.sidebar-title {
  font-size: 16px;
  line-height: 1.4;
}

.side-list,
.sidebar-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-item,
.sidebar-item {
  border-bottom: 1px solid var(--line);
}

.side-item:last-child,
.sidebar-item:last-child {
  border-bottom: 0;
}

.side-link,
.sidebar-link {
  display: block;
  padding: 10px 2px;
  font-size: 15px;
  color: var(--text-main);
}

.side-link:hover,
.sidebar-link:hover {
  color: var(--brand);
}

.side-item.is-current .side-link {
  color: var(--brand);
  font-weight: 600;
}

.sidebar-desc {
  padding: 0 2px 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

.side-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

.sidebar-note {
  margin-top: 18px;
  padding: 14px 14px 16px;
  background: var(--brand-soft);
  border-radius: var(--radius);
}

.sidebar-note-title {
  font-size: 14px;
  line-height: 1.5;
}

.sidebar-note p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* ============================================================
   components — 页脚
   ============================================================ */

.site-footer {
  margin-top: auto;
  background: var(--card-bg);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 24px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.footer-heading {
  font-size: 16px;
  line-height: 1.4;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-link {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--text-sub);
}

.footer-link:hover {
  color: var(--brand);
}

.footer-link.is-current {
  color: var(--text-main);
  font-weight: 600;
}

.footer-mid {
  padding: 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 32px;
}

.footer-about,
.footer-boundary {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-sub);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-sub);
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  color: var(--brand);
}

/* ============================================================
   pages — 首页
   ============================================================ */

.hero {
  padding: 32px 28px 30px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 40px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 4px;
}

.hero-title {
  margin-top: 14px;
  font-size: 30px;
  line-height: 1.3;
}

.hero-lead {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-sub);
}

.hero-points {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figure {
  min-width: 0;
}

.hero-entries {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  padding: 16px 18px;
  color: var(--text-main);
  background: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-card:hover {
  color: var(--text-main);
  background: var(--brand-soft);
  border-color: #c9d6ff;
}

.entry-kicker {
  font-size: 12px;
  line-height: 1.6;
  color: var(--brand);
}

.entry-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.entry-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* 栏目方向总览 */
.column-list {
  display: flex;
  flex-direction: column;
}

.column-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 120px;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.column-row:last-child {
  border-bottom: 0;
}

.column-name {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.column-title {
  font-size: 18px;
  line-height: 1.5;
}

.column-tag {
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-sub);
  background: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.column-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.column-link {
  justify-self: end;
  font-size: 14px;
  white-space: nowrap;
}

.column-link:hover {
  text-decoration: underline;
}

.section-columns .section-figure {
  margin-top: 22px;
}

/* 查阅起点 */
.start-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: step;
}

.step-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 50%;
}

.step-body {
  min-width: 0;
}

.step-title {
  font-size: 16px;
  line-height: 1.5;
}

.step-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.start-aside {
  min-width: 0;
  padding: 20px 18px;
  background: var(--brand-soft);
  border-radius: var(--radius);
}

.aside-title {
  font-size: 16px;
  line-height: 1.5;
}

.aside-facts {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px 12px;
  font-size: 13px;
  line-height: 1.7;
}

.aside-facts dt {
  color: var(--text-sub);
}

.aside-facts dd {
  color: var(--text-main);
}

.aside-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-size: 14px;
}

/* 站内维护记录 */
.log-list {
  display: flex;
  flex-direction: column;
}

.log-item {
  display: grid;
  grid-template-columns: 108px 96px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.log-item:last-child {
  border-bottom: 0;
}

.log-date {
  font-size: 13px;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}

.log-type {
  justify-self: start;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 4px;
}

.log-desc,
.log-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

/* ============================================================
   pages — 题材栏目
   ============================================================ */

.page-topics .page-layout {
  margin-top: 28px;
}

.section-genres .section-intro,
.section-scope .section-intro,
.section-compare .section-intro,
.section-next .section-intro {
  margin-bottom: 20px;
}

.genre-block {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.genre-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.genre-name {
  font-size: 18px;
  line-height: 1.5;
}

.genre-desc {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
}

.genre-meta {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 14px;
  font-size: 14px;
  line-height: 1.7;
}

.genre-meta-key {
  color: var(--text-sub);
}

.genre-meta-value {
  color: var(--text-main);
}

.genre-entry {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-size: 14px;
}

.genre-entry:hover {
  text-decoration: underline;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.scope-card {
  min-width: 0;
  padding: 18px;
  background: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-name {
  font-size: 15px;
  line-height: 1.5;
}

.scope-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scope-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.compare-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
}

.compare-row + .compare-row {
  border-top: 1px solid var(--line);
}

.compare-cell {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.75;
}

.compare-cell-left {
  color: var(--text-main);
  background: var(--page-bg);
  border-right: 1px solid var(--line);
}

.compare-cell-right {
  color: var(--text-sub);
}

.compare-head .compare-cell {
  font-weight: 600;
  color: var(--text-main);
  background: var(--brand-soft);
}

.section-compare .section-figure {
  margin-top: 22px;
}

.section-next {
  padding-bottom: 30px;
}

.next-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.next-item {
  min-width: 0;
  padding: 16px 18px;
  background: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.next-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.next-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* ============================================================
   pages — 条目字段说明
   ============================================================ */

.page-fields .page-layout {
  margin-top: 28px;
}

.field-figure {
  margin-bottom: 20px;
}

.section-field-rules .faq-list {
  margin-top: 4px;
}

.boundary-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.boundary-point {
  min-width: 0;
  padding: 16px 18px;
  background: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-point-title {
  font-size: 15px;
  line-height: 1.5;
}

.boundary-point p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.sidebar-item {
  padding-bottom: 4px;
}

/* ============================================================
   pages — 查阅路径
   ============================================================ */

.page-guide .page-layout {
  margin-top: 28px;
  display: block;
}

.guide-flow,
.guide-judge,
.guide-feedback {
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-judge,
.guide-feedback {
  margin-top: 28px;
}

.guide-figure {
  margin-bottom: 24px;
}

.flow-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 30px;
}

.flow-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.flow-node {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.flow-node-marker {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--brand);
}

.flow-node-body {
  min-width: 0;
  padding: 16px 18px;
  background: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-node-title {
  font-size: 16px;
  line-height: 1.5;
}

.flow-node-text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.judge-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.judge-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.judge-title {
  font-size: 16px;
  line-height: 1.5;
}

.judge-columns {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.judge-col {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.judge-col-ok {
  background: #f5fbf6;
  border-color: #d8ebdc;
}

.judge-col-warn {
  background: #fdf8f2;
  border-color: #f0e0cd;
}

.judge-col-title {
  font-size: 14px;
  line-height: 1.5;
}

.judge-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.judge-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.judge-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.feedback-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.feedback-main,
.feedback-side {
  min-width: 0;
  padding: 18px;
  background: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-subtitle {
  font-size: 15px;
  line-height: 1.5;
}

.feedback-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.feedback-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.feedback-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.feedback-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  font-size: 14px;
}

.guide-note {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* ============================================================
   pages — 收录边界与反馈
   ============================================================ */

.page-boundary .page-layout {
  margin-top: 28px;
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.scope-col {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-col-in {
  background: #f5fbf6;
  border-color: #d8ebdc;
}

.scope-col-out {
  background: #fdf8f2;
  border-color: #f0e0cd;
}

.scope-col-title {
  font-size: 15px;
  line-height: 1.5;
}

.scope-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.scope-item {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.section-scope .section-media {
  margin-top: 22px;
}

.feedback-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 50%;
}

.feedback-body {
  min-width: 0;
}

.feedback-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.feedback-text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

/* ============================================================
   pages — 404
   ============================================================ */

.site-error .site-main {
  padding-top: 40px;
}

.error-block {
  padding: 36px 28px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand);
}

.error-title {
  margin-top: 10px;
  font-size: 26px;
  line-height: 1.35;
}

.error-text {
  margin: 14px auto 0;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
}

.error-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.error-hint {
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-hint-title {
  font-size: 18px;
  line-height: 1.5;
}

.error-hint-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.error-hint-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-main);
  background: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-hint-list a:hover {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: #c9d6ff;
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1024px) {
  .header-inner {
    padding: 12px 20px;
    gap: 18px;
  }

  .site-main {
    padding: 0 20px 56px;
  }

  .page-layout,
  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .start-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .feedback-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .column-row {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 12px 20px;
  }

  .column-link {
    grid-column: 2;
    justify-self: start;
  }

  .footer-mid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    min-height: 44px;
    padding: 10px 4px;
    border-bottom: 0;
    border-left: 2px solid transparent;
    padding-left: 12px;
  }

  .nav-link:hover {
    border-bottom-color: transparent;
    border-left-color: var(--line);
  }

  .nav-link.is-current {
    border-bottom-color: transparent;
    border-left-color: var(--brand);
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 10px 16px;
  }

  .brand-name {
    font-size: 16px;
  }

  .sub-nav-inner,
  .subnav-inner {
    padding: 10px 16px;
    gap: 8px;
  }

  .site-main {
    padding: 0 16px 48px;
  }

  .home-main {
    padding-top: 20px;
  }

  .inner-main {
    padding-top: 16px;
  }

  .section {
    margin-top: 28px;
    padding: 20px 16px 22px;
  }

  .hero {
    padding: 22px 16px 24px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 19px;
  }

  .hero-entries {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .column-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .column-link {
    grid-column: 1;
  }

  .step-item,
  .feedback-step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .log-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .log-type {
    justify-self: start;
  }

  .genre-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .genre-meta-value {
    margin-bottom: 6px;
  }

  .compare-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-cell-left {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .judge-columns,
  .scope-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-flow,
  .guide-judge,
  .guide-feedback {
    padding: 20px 16px 22px;
  }

  .flow-timeline {
    padding-left: 26px;
  }

  .flow-node-marker {
    left: -26px;
    width: 16px;
    height: 16px;
  }

  .error-block {
    padding: 26px 16px;
  }

  .error-code {
    font-size: 36px;
  }

  .error-title {
    font-size: 20px;
  }

  .error-hint {
    padding: 20px 16px;
  }

  .footer-inner {
    padding: 24px 16px 20px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-nav {
    gap: 4px 16px;
  }

  .field-table {
    min-width: 460px;
  }

  .aside-facts {
    grid-template-columns: 80px minmax(0, 1fr);
  }
}
