:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1f2329;
  --text-soft: #5c6570;
  --accent: #2f6df6;
  --accent-soft: #eaf0fe;
  --state: #e8a33d;
  --state-soft: #fdf3e2;
  --line: #e3e6eb;
  --line-strong: #ccd2da;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 1px 2px rgba(31, 35, 41, 0.05);
  --shadow-hover: 0 6px 18px rgba(31, 35, 41, 0.09);
  --shell: 1120px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, "Courier New", monospace;
}

/* ============ base ============ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

h1 {
  font-size: 32px;
  line-height: 1.3;
}

h2 {
  font-size: 22px;
  line-height: 1.4;
}

h3 {
  font-size: 17px;
  line-height: 1.5;
}

p {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ============ layout ============ */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.home-main {
  padding-bottom: 56px;
}

.inner-main {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.site-main > section,
.page-content > section,
.layout-content > section {
  scroll-margin-top: 84px;
}

/* 内页统一骨架：面包屑 + 页面标题区 */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 13px;
  color: var(--text-soft);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumb-item a {
  color: var(--text-soft);
}

.breadcrumb-item a:hover {
  color: var(--accent);
}

.page-header {
  padding: 14px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-title {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text);
}

.page-description {
  margin-top: 10px;
  max-width: 760px;
  color: var(--text-soft);
  font-size: 15px;
}

/* 内页三栏 / 两栏文档结构 */

.page-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.page-layout.sidebar-left,
.sidebar-left .page-layout {
  grid-template-columns: 240px minmax(0, 1fr);
}

.page-content,
.layout-content {
  min-width: 0;
}

.page-aside,
.layout-aside,
.side-panel {
  min-width: 0;
  position: sticky;
  top: 84px;
  font-size: 14px;
}

/* ============ components ============ */

/* 页头与主导航 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
}

.brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: block;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 15px;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

/* 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #245bd6;
  border-color: #245bd6;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 通用链接与标签 */

.link-more {
  font-size: 14px;
  font-weight: 500;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13px;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* 首页区块通用头部 */

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 22px;
}

.section-desc {
  margin-top: 8px;
  max-width: 780px;
  color: var(--text-soft);
}

.section-more,
.section-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-soft);
}

/* 内页正文区块 */

.section-title {
  font-size: 22px;
  line-height: 1.4;
}

.section-intro,
.section-lead {
  margin-top: 10px;
  max-width: 760px;
  color: var(--text-soft);
}

.section-intro a,
.section-lead a,
.advice-text a {
  font-weight: 500;
}

.content-section,
.section,
.field-section,
.scope-section,
.correction-section,
.example-section {
  margin-bottom: 44px;
}

/* 图片容器 */

.hero-media,
.list-media,
.list-card-media,
.media-figure,
.field-figure,
.section-figure,
.entry-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-media img,
.list-media img,
.list-card-media img,
.media-figure img,
.field-figure img,
.section-figure img,
.entry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-figure,
.field-figure,
.section-figure {
  margin: 20px 0 0;
  border: 1px solid var(--line);
}

.media-figure img,
.field-figure img,
.section-figure img {
  aspect-ratio: 16 / 9;
}

.media-caption,
.field-figure figcaption,
.section-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-soft);
  background: var(--surface);
}

/* 侧栏 */

.aside-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 10px;
}

.aside-version {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
}

.aside-toc,
.aside-related {
  margin-bottom: 24px;
}

.aside-list,
.aside-nav-list,
.aside-link-list,
.side-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-list a,
.aside-nav-list a,
.aside-link-list a,
.side-list a {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid var(--line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
  font-size: 14px;
}

.aside-list a:hover,
.aside-nav-list a:hover,
.aside-link-list a:hover,
.side-list a:hover {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.aside-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-soft);
}

.aside-block,
.side-block {
  margin-bottom: 24px;
}

.aside-text {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-soft);
}

/* 页脚 */

.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 32px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 36px 24px 28px;
}

.footer-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.footer-desc {
  margin-top: 8px;
  max-width: 320px;
  font-size: 13px;
  color: var(--text-soft);
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-soft);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-soft);
}

.footer-note,
.footer-copy {
  color: var(--text-soft);
}

/* ============ pages ============ */

/* 首页首屏 */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px 24px 40px;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}

.hero-title {
  margin-top: 14px;
  font-size: 34px;
  line-height: 1.28;
}

.hero-lead {
  margin-top: 14px;
  max-width: 560px;
  color: var(--text-soft);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-media {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-media img {
  aspect-ratio: 4 / 3;
}

.hero-media figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-soft);
}

/* 首页题材频道索引 */

.genre-index,
.recent-updates,
.rankings,
.themed-lists,
.scope-summary {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px 24px 0;
}

.genre-list {
  border-top: 1px solid var(--line);
}

.genre-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.3fr) minmax(200px, 1.6fr) minmax(140px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.genre-name h3 {
  font-size: 17px;
}

.genre-tone {
  color: var(--text-soft);
  font-size: 14px;
}

.genre-focus {
  color: var(--text);
  font-size: 14px;
}

.genre-pick {
  font-size: 14px;
  text-align: right;
}

/* 首页最近更新 */

.update-list {
  border-top: 1px solid var(--line);
}

.update-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1.7fr) minmax(90px, 0.8fr) minmax(110px, 0.9fr);
  gap: 14px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}

.update-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-soft);
}

.update-name {
  min-width: 0;
  font-size: 15px;
}

.update-genre {
  font-size: 13px;
  color: var(--text-soft);
}

.update-state {
  justify-self: start;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  background: var(--state-soft);
  color: #a86a12;
  font-size: 12px;
  white-space: nowrap;
}

/* 首页榜单 */

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ranking-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ranking-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.ranking-name {
  font-size: 17px;
}

.ranking-rule {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text);
}

.ranking-reader {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

/* 首页专题书单 */

.list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.list-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.list-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.list-media {
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

.list-media img {
  aspect-ratio: 16 / 10;
}

.list-name {
  padding: 16px 18px 0;
  font-size: 17px;
}

.list-tone {
  padding: 8px 18px 0;
  font-size: 14px;
  color: var(--text);
}

.list-scope {
  padding: 6px 18px 18px;
  font-size: 13px;
  color: var(--text-soft);
}

/* 首页阅读说明与收录边界 */

.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.scope-col {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-col h3 {
  font-size: 17px;
}

.scope-col > p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

.scope-field-list,
.scope-boundary-list,
.scope-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.scope-field-list li,
.scope-boundary-list li,
.scope-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text);
}

.scope-field-list li::before,
.scope-boundary-list li::before,
.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.scope-boundary-list li::before {
  background: var(--state);
}

.scope-link {
  margin-top: 14px;
  font-size: 14px;
}

/* 题材频道页：频道总览表 */

.genre-table {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.genre-table .genre-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(150px, 1.3fr) minmax(190px, 1.6fr) minmax(130px, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.genre-table .genre-row:last-child {
  border-bottom: 0;
}

.genre-row-head {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.genre-row-head .genre-cell {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

.genre-cell {
  min-width: 0;
  font-size: 14px;
}

.genre-cell-name {
  font-weight: 600;
  color: var(--text);
}

.genre-cell-tone {
  color: var(--text-soft);
}

.genre-cell-focus {
  color: var(--text);
}

.genre-cell-rep {
  color: var(--accent);
}

/* 题材频道页：比较维度 */

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.dimension-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dimension-name {
  font-size: 16px;
}

.dimension-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

/* 题材频道页：代表条目卡片 */

.entry-group-title {
  margin: 26px 0 12px;
  font-size: 16px;
  color: var(--text);
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.entry-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.entry-card img {
  aspect-ratio: 3 / 2;
  border-bottom: 1px solid var(--line);
}

.entry-body {
  padding: 14px 16px 16px;
  font-size: 14px;
}

.entry-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.entry-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-soft);
}

/* 题材频道页：选择指南 */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.guide-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-name {
  font-size: 16px;
}

.guide-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text);
}

.guide-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

/* 专题书单页 */

.list-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.list-overview-grid .list-card {
  overflow: hidden;
}

.list-card-media {
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

.list-card-media img {
  aspect-ratio: 16 / 10;
}

.list-card-title {
  padding: 16px 18px 0;
  font-size: 17px;
}

.list-card-field {
  padding: 6px 18px 0;
  font-size: 13px;
  color: var(--text-soft);
}

.list-card-field:last-child {
  padding-bottom: 18px;
}

.field-label {
  display: inline-block;
  min-width: 62px;
  margin-right: 6px;
  color: var(--text);
  font-weight: 600;
}

.criteria-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.criteria-item {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.criteria-title {
  font-size: 16px;
}

.criteria-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

.entry-group {
  margin-top: 26px;
}

.entry-group .entry-group-title {
  margin-top: 0;
}

.entry-list {
  border-top: 1px solid var(--line);
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(80px, 0.7fr) minmax(90px, 0.8fr) minmax(90px, 0.8fr);
  gap: 14px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.entry-row .entry-name {
  min-width: 0;
}

.entry-genre,
.entry-length {
  color: var(--text-soft);
  font-size: 13px;
}

.entry-status {
  justify-self: start;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  background: var(--state-soft);
  color: #a86a12;
  font-size: 12px;
  white-space: nowrap;
}

.advice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.advice-item {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.advice-title {
  font-size: 16px;
}

.advice-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

/* 字段说明页 */

.field-table {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  font-size: 14px;
}

.field-caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--text-soft);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.field-table thead th {
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
}

.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.field-table td {
  color: var(--text-soft);
}

.scope-columns .scope-in {
  border-top: 3px solid var(--accent);
}

.scope-columns .scope-out {
  border-top: 3px solid var(--state);
}

.scope-title {
  font-size: 16px;
}

.scope-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-soft);
}

.correction-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.correction-step {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.correction-step .step-index,
.path-step .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.correction-step .step-title {
  font-size: 16px;
}

.correction-step .step-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

.example-card {
  margin-top: 20px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.example-name {
  font-size: 17px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.example-fields {
  margin-top: 4px;
}

.example-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.example-row:last-child {
  border-bottom: 0;
}

.example-row dt {
  color: var(--text-soft);
  font-weight: 600;
}

.example-row dd {
  margin: 0;
  color: var(--text);
}

.example-summary {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-soft);
}

.example-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-size: 14px;
}

/* 查阅路径页 */

.path-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.path-step {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-step .step-title {
  font-size: 16px;
}

.path-step .step-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

.path-step .step-entry {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.path-step .step-entry a {
  font-weight: 500;
}

.entry-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.entry-mode-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-mode-title {
  font-size: 16px;
}

.entry-mode-scene {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text);
}

.entry-mode-start {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.faq-list {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-soft);
}

.faq-item[open] .faq-question::after {
  content: "−";
  color: var(--accent);
}

.faq-question:hover {
  background: var(--bg);
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--text-soft);
}

.back-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.back-item {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.back-title {
  font-size: 16px;
}

.back-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

/* 404 页 */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.error-panel {
  width: 100%;
  max-width: 620px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
}

.error-panel h1 {
  margin-top: 14px;
  font-size: 26px;
}

.error-text {
  margin-top: 12px;
  color: var(--text-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
}

.error-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ============ responsive ============ */

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    justify-content: flex-start;
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px 24px 32px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-media {
    max-width: 560px;
  }

  .genre-row,
  .genre-table .genre-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 16px;
    align-items: start;
  }

  .genre-pick {
    text-align: left;
  }

  .ranking-grid,
  .list-grid,
  .list-overview-grid,
  .dimension-grid,
  .guide-grid,
  .entry-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout,
  .page-layout.sidebar-left,
  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-aside,
  .layout-aside,
  .side-panel {
    position: static;
    top: auto;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14.5px;
  }

  .header-inner,
  .inner-main,
  .footer-top,
  .footer-bottom,
  .breadcrumb-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .genre-index,
  .recent-updates,
  .rankings,
  .themed-lists,
  .scope-summary {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1,
  .page-title {
    font-size: 24px;
  }

  .hero-title {
    font-size: 24px;
  }

  h2,
  .section-title,
  .section-head h2 {
    font-size: 19px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .update-row {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 4px 12px;
    align-items: baseline;
  }

  .update-genre,
  .update-state {
    grid-column: 2;
  }

  .update-state {
    justify-self: start;
  }

  .ranking-grid,
  .list-grid,
  .list-overview-grid,
  .dimension-grid,
  .guide-grid,
  .entry-mode-grid,
  .scope-columns,
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-row,
  .genre-table .genre-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 12px;
    align-items: baseline;
  }

  .entry-row .entry-genre,
  .entry-row .entry-status,
  .entry-row .entry-length {
    grid-column: 2;
  }

  .entry-row .entry-status {
    justify-self: start;
  }

  .field-table {
    display: block;
    overflow-x: auto;
  }

  .field-table th,
  .field-table td {
    padding: 10px 12px;
  }

  .example-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
