/* ==========================================================================
   樱花动漫 maikaile.cn — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base — 变量、重置、排版、通用元素
   -------------------------------------------------------------------------- */

:root {
  --bg-page: #faf6ef;
  --bg-card: #ffffff;
  --text-main: #2f2a24;
  --text-muted: #6f6659;
  --accent: #c8452f;
  --accent-2: #e08a3c;
  --tag-bg: #f6e6d7;
  --line: #e6dccd;
  --radius-card: 8px;
  --radius-tag: 6px;
  --shadow-card: 0 1px 2px rgba(47, 42, 36, 0.05);
  --shadow-hover: 0 6px 16px rgba(47, 42, 36, 0.12);
  --font-serif: "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --width-max: 1120px;
  --width-text: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-main);
}

h1 {
  font-size: 32px;
  line-height: 1.3;
}

h2 {
  font-size: 24px;
  line-height: 1.35;
}

h3 {
  font-size: 18px;
  line-height: 1.4;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent-2);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. layout — 骨架、容器、页头、导航、主区、页脚
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  color: var(--text-main);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--width-max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text-main);
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  color: var(--text-main);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-tag);
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
}

.brand-slogan {
  font-size: 12px;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  background: var(--bg-card);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 1px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-tag);
  font-size: 15px;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--tag-bg);
  color: var(--accent);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 600;
  background: var(--tag-bg);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.section {
  padding: 40px 0;
}

.section-inner {
  width: 100%;
  max-width: var(--width-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 24px;
  line-height: 1.35;
}

.section-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.section-intro {
  margin: 6px 0 20px;
  max-width: var(--width-text);
  font-size: 15px;
  color: var(--text-muted);
}

.inner-main {
  width: 100%;
  max-width: var(--width-max);
  margin: 0 auto;
  padding: 0 20px 48px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0 4px;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text-main);
}

.page-header {
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-title {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-main);
}

.page-description {
  margin-top: 10px;
  max-width: var(--width-text);
  font-size: 15px;
  color: var(--text-muted);
}

.site-footer {
  flex: 0 0 auto;
  margin-top: 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: 100%;
  max-width: var(--width-max);
  margin: 0 auto;
  padding: 32px 20px 20px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 28px 40px;
}

.footer-about {
  min-width: 0;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.footer-group {
  min-width: 0;
}

.footer-group-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   3. components — 通用卡片、标签、按钮、链接、列表行
   -------------------------------------------------------------------------- */

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-tag);
  background: var(--tag-bg);
  color: var(--accent);
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
}

.tag-status {
  background: #fdf0e2;
  color: var(--accent-2);
}

.tag-topic {
  background: var(--tag-bg);
  color: var(--accent);
}

.tag-genre {
  background: var(--tag-bg);
  color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-tag);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-2);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-main);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.text-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-2);
}

.cover-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cover-card:hover,
.cover-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-2);
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--tag-bg);
}

.cover-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 12px;
}

.cover-title {
  flex: 1 1 100%;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 12px;
}

.cover-figure {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cover-figure:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-2);
}

.cover-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--tag-bg);
}

.update-list {
  display: flex;
  flex-direction: column;
}

.update-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.update-row:last-child {
  border-bottom: 0;
}

.update-thumb {
  flex: 0 0 auto;
  width: 56px;
  border-radius: var(--radius-tag);
  overflow: hidden;
  background: var(--tag-bg);
}

.update-thumb img {
  width: 56px;
  height: 74px;
  object-fit: cover;
}

.update-body {
  min-width: 0;
  flex: 1 1 auto;
}

.update-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.update-type {
  font-size: 13px;
  color: var(--accent-2);
}

.update-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.update-note {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.update-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.update-link:hover,
.update-link:focus-visible {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   4. pages — 首页
   -------------------------------------------------------------------------- */

.home-main .section-lead {
  padding-top: 32px;
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.lead-intro {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-tag);
  background: var(--tag-bg);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.lead-title {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.lead-desc {
  max-width: 560px;
  font-size: 16px;
  color: var(--text-muted);
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.lead-figure {
  min-width: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.lead-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.lead-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

.lead-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.lead-card {
  min-width: 0;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.lead-card-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.lead-card-text {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.topics-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.topics-sidebar {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 8px;
  box-shadow: var(--shadow-card);
}

.genre-list {
  display: flex;
  flex-direction: column;
}

.genre-item {
  padding: 12px 12px 14px;
  border-bottom: 1px dashed var(--line);
}

.genre-item:last-child {
  border-bottom: 0;
}

.genre-link {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.genre-link:hover,
.genre-link:focus-visible {
  color: var(--accent);
}

.genre-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.genre-count {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-2);
}

.coverwall {
  min-width: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-tag {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  background: var(--bg-card);
  font-size: 14px;
  color: var(--text-muted);
  min-height: 36px;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.filter-tag:hover,
.filter-tag:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tag.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.coverwall-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.board-col {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.board-title {
  font-size: 18px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.board-col .text-link {
  margin-top: 14px;
}

.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  flex: 0 0 28px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-2);
  text-align: center;
}

.rank-body {
  min-width: 0;
  flex: 1 1 auto;
}

.rank-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.rank-note {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.feature-name {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-scope {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.feature-card .text-link {
  margin-top: auto;
}

.boundary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.boundary-col {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.boundary-text {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.path-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

.path-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.path-no {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tag-bg);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.path-body {
  min-width: 0;
  flex: 1 1 auto;
}

.path-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.path-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. pages — 题材频道
   -------------------------------------------------------------------------- */

.topic-rows {
  margin-bottom: 40px;
}

.topic-row {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.topic-row:last-child {
  border-bottom: 0;
}

.topic-row-intro {
  min-width: 0;
}

.topic-name {
  font-size: 20px;
  margin-bottom: 8px;
}

.topic-orientation {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.topic-meta {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  font-size: 14px;
}

.topic-meta dt {
  color: var(--text-muted);
  white-space: nowrap;
}

.topic-meta dd {
  margin: 0;
  color: var(--text-main);
  min-width: 0;
}

.topic-entry {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.topic-entry:hover,
.topic-entry:focus-visible {
  color: var(--accent-2);
}

.topic-row-covers {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.topic-topic-map {
  margin-bottom: 36px;
}

.topic-map-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.topic-map-col {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.topic-map-heading {
  font-size: 17px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.topic-map-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topic-map-item {
  font-size: 15px;
  color: var(--text-muted);
}

.topic-map-item a {
  font-weight: 600;
}

.topic-next {
  padding: 20px 0 8px;
  border-top: 1px solid var(--line);
}

.topic-next p {
  font-size: 15px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. pages — 最近更新
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.updates-main {
  min-width: 0;
}

.updates-main .section-title {
  margin-bottom: 4px;
}

.updates-main .update-list {
  margin-bottom: 16px;
}

.updates-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.updates-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aside-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.aside-title {
  font-size: 17px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.aside-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.change-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.change-item {
  min-width: 0;
}

.change-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.change-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.rank-basis-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: rank-basis;
}

.rank-basis-item {
  min-width: 0;
  padding-left: 26px;
  position: relative;
  counter-increment: rank-basis;
}

.rank-basis-item::before {
  content: counter(rank-basis);
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tag-bg);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-basis-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.rank-basis-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. pages — 条目字段说明
   -------------------------------------------------------------------------- */

.field-table-section {
  margin-bottom: 40px;
}

.field-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.field-table {
  min-width: 640px;
  font-size: 15px;
}

.field-table-caption {
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.field-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--tag-bg);
  border-bottom: 1px solid var(--line);
}

.field-table tbody th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.field-table tbody td {
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
  min-width: 180px;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-figure {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.field-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.field-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

.boundary-section {
  margin-bottom: 40px;
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.boundary-column {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.boundary-heading {
  font-size: 17px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.boundary-included .boundary-heading {
  color: var(--accent);
}

.boundary-excluded .boundary-heading {
  color: var(--text-muted);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: var(--text-muted);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

.field-topic-section {
  margin-bottom: 24px;
}

.field-topic-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.field-topic-column {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.subsection-title {
  font-size: 17px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.field-topic-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-topic-list li {
  font-size: 15px;
  color: var(--text-muted);
}

.field-topic-list a {
  font-weight: 600;
}

.section-footnote {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   8. pages — 查阅路径
   -------------------------------------------------------------------------- */

.path-steps {
  margin-bottom: 32px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.step-badge {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body {
  min-width: 0;
  flex: 1 1 auto;
}

.step-name {
  font-size: 18px;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.step-result {
  font-size: 14px;
  color: var(--accent-2);
  margin: 0;
}

.path-note {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.path-figure {
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.path-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.path-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

.path-linkage {
  margin-bottom: 32px;
}

.linkage-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.linkage-col {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.linkage-title {
  font-size: 17px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.linkage-text {
  font-size: 15px;
  color: var(--text-muted);
}

.path-feedback {
  margin-bottom: 24px;
}

.feedback-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feedback-item {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.feedback-target {
  font-size: 17px;
  margin-bottom: 8px;
}

.feedback-text {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   9. pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  width: 100%;
  max-width: var(--width-max);
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.error-block {
  max-width: var(--width-text);
}

.error-block h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.error-text {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   10. responsive — 960px 与 640px 断点
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 12px 10px;
    font-size: 16px;
    min-height: 44px;
  }

  .lead-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .topics-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .board-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .boundary-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .topic-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  h1,
  .lead-title,
  .page-title,
  .error-block h1 {
    font-size: 24px;
  }

  h2,
  .section-title {
    font-size: 20px;
  }

  h3 {
    font-size: 17px;
  }

  .header-inner,
  .section-inner,
  .inner-main,
  .footer-inner,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-slogan {
    display: none;
  }

  .section {
    padding: 28px 0;
  }

  .lead-secondary {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .cover-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
  }

  .topic-row-covers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .topic-map-columns,
  .boundary-columns,
  .field-topic-columns,
  .linkage-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .step-item {
    gap: 12px;
    padding: 16px;
  }

  .step-badge {
    flex: 0 0 34px;
    height: 34px;
    font-size: 15px;
  }

  .lead-actions .btn,
  .error-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .board-col,
  .boundary-col,
  .aside-block,
  .topic-map-col,
  .boundary-column,
  .field-topic-column,
  .linkage-col,
  .feedback-item {
    padding: 16px;
  }

  .field-table {
    min-width: 560px;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .footer-copy {
    font-size: 12px;
  }
}
