:root {
  --bg: #f7f8fa;
  --bg-panel: #ffffff;
  --text: #1f2430;
  --text-soft: #5b6472;
  --text-mute: #7d8698;
  --brand: #2f6fed;
  --brand-dark: #1f56c4;
  --brand-soft: #e8eefc;
  --accent: #f0a020;
  --accent-soft: #fdf3e0;
  --border: #dfe3ea;
  --border-strong: #c6cedb;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(31, 36, 48, 0.05);
  --shadow-md: 0 6px 18px rgba(31, 36, 48, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --container: 1200px;
  --gutter: 24px;
}

/* ==========================================================================
   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: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
figcaption,
ul,
ol,
dl {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

time,
.ranking-index,
.rank-no,
.step-index,
.update-date,
.batch-code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   layout · 全站骨架
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--gutter) 56px;
}

.home-main {
  padding-top: 28px;
}

.inner-main {
  padding-top: 20px;
}

/* 顶部事实条 */
.fact-bar {
  background: var(--brand-soft);
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 13px;
}

.fact-bar p {
  max-width: var(--container);
  margin: 0 auto;
  padding: 7px var(--gutter);
  line-height: 1.6;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
}

.brand:hover {
  color: var(--brand-dark);
}

.brand-mark {
  display: inline-block;
  width: 10px;
  height: 22px;
  border-radius: 3px;
  background: var(--brand);
  box-shadow: 6px 0 0 0 var(--accent);
}

.brand-slogan {
  font-weight: 400;
  font-size: 13px;
  color: var(--text-mute);
  padding-left: 14px;
  border-left: 1px solid var(--border);
  line-height: 1.4;
}

/* 导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text-soft);
  font-size: 15px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.nav-list a.is-current {
  color: var(--brand-dark);
  font-weight: 600;
  border-bottom-color: var(--brand);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--border-strong);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

/* 内页标题区 */
.page-header {
  padding: 0 0 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.page-description {
  margin-top: 10px;
  max-width: 860px;
  color: var(--text-soft);
  font-size: 15px;
}

/* 通用区块标题 */
.section-head {
  margin-bottom: 18px;
}

.section-head h2,
.section-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.section-head p,
.section-lead,
.section-desc,
.section-intro {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 15px;
  max-width: 880px;
}

.section-title + .section-lead,
.section-title + .section-desc,
.section-title + .section-intro,
.section-title + .method-layout {
  margin-top: 6px;
}

.section-foot {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-soft);
}

.section-foot a {
  margin-right: 18px;
}

/* ==========================================================================
   components · 通用元件
   ========================================================================== */

.tag {
  display: inline-block;
  padding: 2px 9px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.7;
  white-space: nowrap;
}

.tag-status,
.tag-state {
  background: var(--accent-soft);
  color: #8a5a06;
}

.tag-genre {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* 封面卡 */
.cover-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cover-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--brand-soft);
}

.cover-name {
  padding: 10px 12px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 14px;
}

/* 更新记录 */
.update-list {
  display: flex;
  flex-direction: column;
}

.update-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
}

.update-item:last-child {
  border-bottom: 0;
}

.update-date {
  flex: 0 0 84px;
  font-size: 13px;
  color: var(--text-mute);
}

.update-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.aside-more {
  margin-top: 14px;
  font-size: 14px;
}

/* 位次条目（首页） */
.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-no {
  flex: 0 0 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
}

.rank-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  color: var(--text);
}

/* 字段口径对照（首页） */
.field-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-panel);
}

.field-row {
  display: flex;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.field-row:last-child {
  border-bottom: 0;
}

.field-row dt {
  flex: 0 0 96px;
  font-weight: 600;
  color: var(--text);
}

.field-row dd {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-soft);
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
  padding: 28px 28px 30px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.hero-text {
  min-width: 0;
}

.hero-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.hero-lead {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 15px;
  max-width: 560px;
}

.hero-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-path {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 150px;
  min-width: 140px;
  padding: 10px 14px;
  background: var(--brand-soft);
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.hero-path a {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.hero-path a:hover {
  text-decoration: underline;
}

.hero-path span {
  font-size: 13px;
  color: var(--text-soft);
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.hero-media figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-mute);
}

/* 题材方向总览（首页） */
.genre-overview {
  margin-bottom: 40px;
}

.genre-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.genre-column {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.genre-column .genre-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.genre-column .genre-scope {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

.genre-samples {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.genre-samples li {
  font-size: 13px;
  color: var(--text-soft);
  padding-left: 14px;
  position: relative;
}

.genre-samples li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

.genre-more {
  margin-top: 16px;
  font-size: 14px;
}

/* 首页并列区 */
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  align-items: start;
}

.split-main {
  min-width: 0;
}

.split-aside {
  min-width: 0;
  padding: 18px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.split-aside .update-item {
  padding: 9px 0;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* 站内栏目索引 */
.site-index {
  margin-bottom: 8px;
}

.index-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.index-column {
  padding: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.index-column h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.index-column h3 a {
  text-decoration: none;
}

.index-column h3 a:hover {
  text-decoration: underline;
}

.index-column p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

/* ==========================================================================
   pages · 题材分类
   ========================================================================== */

.genre-overview .genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.genre-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  scroll-margin-top: 84px;
}

.genre-card .genre-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.genre-card .genre-scope {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

.genre-card .genre-for {
  margin-top: 10px;
  padding: 8px 10px;
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-soft);
}

.genre-method {
  margin-top: 40px;
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
  margin-top: 16px;
}

.method-text {
  min-width: 0;
}

.method-text p {
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 15px;
}

.method-text p:last-child {
  margin-bottom: 0;
}

.method-figure {
  min-width: 0;
}

.method-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.method-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-mute);
}

.genre-entries {
  margin-top: 40px;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.entry-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.entry-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.entry-cover {
  min-width: 0;
}

.entry-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
}

.entry-body {
  min-width: 0;
}

.entry-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.entry-desc {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.archive-note {
  margin-top: 18px;
  padding: 12px 16px;
  background: var(--bg-panel);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-soft);
}

/* ==========================================================================
   pages · 最近更新
   ========================================================================== */

.page-layout {
  display: block;
}

.batch-bar {
  padding: 18px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.batch-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.batch-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.batch-code {
  font-weight: 600;
  color: var(--accent);
}

.update-timeline {
  margin-bottom: 32px;
}

.update-figure {
  margin: 18px 0 4px;
}

.update-figure img {
  width: 100%;
  max-height: 300px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.update-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-mute);
}

.update-timeline .update-list {
  margin-top: 16px;
  padding-left: 22px;
  border-left: 2px solid var(--border);
}

.update-timeline .update-item {
  position: relative;
  display: block;
  padding: 14px 0 14px 4px;
  border-bottom: 0;
}

.update-timeline .update-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--bg-panel);
}

.update-timeline .update-date {
  display: block;
  flex: none;
  font-size: 13px;
  color: var(--text-mute);
}

.update-body {
  margin-top: 4px;
}

.update-body .update-name {
  font-size: 16px;
  font-weight: 600;
}

.update-note {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-soft);
}

.update-body .tag {
  margin-top: 8px;
}

.update-note-block {
  padding: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.update-note-block p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-soft);
}

.update-note-block p a {
  margin-right: 14px;
}

.archive-hint {
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

/* ==========================================================================
   pages · 人气位次
   ========================================================================== */

.ranking-section {
  margin-bottom: 40px;
}

.ranking-figure {
  margin: 18px 0 4px;
}

.ranking-figure img {
  width: 100%;
  max-height: 300px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.ranking-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-mute);
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 18px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ranking-index {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.4;
  text-align: right;
}

.ranking-body {
  min-width: 0;
}

.ranking-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.ranking-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

.fields-section {
  margin-bottom: 40px;
}

.fields-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 20px;
  margin-top: 18px;
}

.fields-col {
  min-width: 0;
  padding: 18px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.fields-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.fields-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fields-item {
  font-size: 14px;
  color: var(--text-soft);
  padding-left: 14px;
  position: relative;
}

.fields-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--brand);
}

.notice-section {
  padding: 22px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.notice-body {
  margin-top: 14px;
}

.notice-body p {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-soft);
}

.notice-body p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   pages · 阅读说明
   ========================================================================== */

.guide-steps {
  margin-bottom: 40px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.step-item {
  padding: 18px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-index {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  padding: 1px 8px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

.step-title {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.step-item p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

.guide-figure {
  margin-top: 22px;
}

.guide-figure img {
  width: 100%;
  max-height: 280px;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.guide-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-mute);
}

.guide-fields {
  margin-bottom: 40px;
}

.field-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.field-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.field-table caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border);
}

.field-table th,
.field-table td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.field-table thead th {
  background: var(--brand-soft);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.field-table tbody th {
  width: 160px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.field-table tbody td {
  color: var(--text-soft);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.boundary-note {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
}

.boundary-note h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.boundary-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boundary-list li {
  font-size: 14px;
  color: var(--text-soft);
  padding-left: 16px;
  position: relative;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 2px;
  background: var(--accent);
}

.guide-feedback {
  margin-bottom: 40px;
  padding: 22px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.guide-feedback > p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-soft);
}

.feedback-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.feedback-list li {
  font-size: 14px;
  color: var(--text-soft);
  padding-left: 16px;
  position: relative;
}

.feedback-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--brand);
}

.feedback-list strong {
  color: var(--text);
  font-weight: 600;
}

.feedback-entry {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 14px;
}

.guide-faq {
  margin-bottom: 40px;
}

.faq-item {
  margin-top: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--text-soft);
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

.guide-index {
  margin-bottom: 8px;
}

.column-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.column-item {
  padding: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.column-item h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.column-item h3 a {
  text-decoration: none;
}

.column-item h3 a:hover {
  text-decoration: underline;
}

.column-item p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

/* ==========================================================================
   pages · 404
   ========================================================================== */

.error-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.error-panel {
  padding: 32px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
}

.error-panel h1 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.error-text {
  margin-top: 12px;
  max-width: 640px;
  color: var(--text-soft);
  font-size: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  margin-top: 20px;
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #ffffff;
}

.error-links {
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.error-links h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin-top: 16px;
}

.error-link-list li {
  font-size: 15px;
}

.error-link-list a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 16px;
  width: 100%;
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
}

.error-link-list a:hover {
  background: #dbe6fb;
  text-decoration: underline;
}

/* ==========================================================================
   layout · 页脚
   ========================================================================== */

.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--gutter) 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.footer-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
  max-width: 340px;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.footer-group ul {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-group li a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
}

.footer-group li a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.footer-copy {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter) 26px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mute);
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .genre-columns,
  .genre-overview .genre-grid,
  .index-columns,
  .column-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 15px;
  }

  .site-main {
    padding: 24px var(--gutter) 40px;
  }

  .header-inner {
    min-height: 58px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .brand {
    font-size: 17px;
    padding: 8px 0;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 6px 0 10px;
    border-top: 1px solid var(--border);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 44px;
    padding: 0 8px;
    border-bottom: 0;
    border-left: 3px solid transparent;
    border-radius: 0;
  }

  .nav-list a.is-current {
    border-left-color: var(--brand);
    background: var(--brand-soft);
  }

  .page-header {
    padding-bottom: 18px;
    margin-bottom: 22px;
  }

  .page-title,
  .hero-title,
  .error-panel h1 {
    font-size: 24px;
  }

  .section-head h2,
  .section-title {
    font-size: 20px;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
    margin-bottom: 30px;
  }

  .hero-path {
    flex: 1 1 100%;
  }

  .genre-columns,
  .genre-overview .genre-grid,
  .cover-grid,
  .index-columns,
  .column-index,
  .step-list,
  .fields-grid,
  .feedback-list,
  .error-link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-split,
  .method-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .entry-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .ranking-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .ranking-index {
    font-size: 18px;
  }

  .field-row {
    flex-direction: column;
    gap: 2px;
  }

  .field-row dt {
    flex: none;
  }

  .field-table tbody th {
    width: auto;
    white-space: normal;
  }

  .update-timeline .update-list {
    padding-left: 16px;
  }

  .update-timeline .update-item::before {
    left: -22px;
  }

  .error-panel {
    padding: 22px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 26px var(--gutter) 20px;
  }

  .footer-desc {
    max-width: none;
  }
}

@media (max-width: 390px) {
  .brand {
    font-size: 16px;
  }

  .entry-item {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .ranking-item {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 12px;
  }

  .update-date {
    flex: none;
  }

  .tag {
    font-size: 11px;
    padding: 1px 8px;
  }
}
