:root {
  --paper: #FBFBF9;
  --ink: #1F2328;
  --ink-soft: #4A5158;
  --ink-mute: #6B737B;
  --line: #E2E5E9;
  --surface: #EEF0F2;
  --surface-2: #F5F6F7;
  --blue: #3B6EA5;
  --blue-dark: #2C5580;
  --orange: #C97B2D;
  --green: #4A7C59;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(31, 35, 40, 0.06);
  --shadow-md: 0 4px 14px rgba(31, 35, 40, 0.10);
  --wrap: 1200px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: 0.95em;
}

/* --------------------------------------------------------------------------
   layout —— 页头、导航、主容器、面包屑、页脚骨架
   -------------------------------------------------------------------------- */

.fact-bar {
  margin: 0;
  padding: 8px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
}

.brand:hover {
  color: var(--blue);
  text-decoration: none;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 15px;
  white-space: nowrap;
}

.nav-list a:hover {
  background: var(--surface);
  color: var(--blue);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--blue);
  font-weight: 600;
  background: var(--surface);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.nav-toggle:hover {
  border-color: var(--blue);
}

.site-main {
  display: block;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.inner-main {
  padding-top: 16px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 4px 0 12px;
  font-size: 14px;
  color: var(--ink-mute);
}

.breadcrumb a {
  color: var(--ink-mute);
}

.breadcrumb a:hover {
  color: var(--blue);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

.page-header {
  padding: 4px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
}

.page-description {
  margin-top: 12px;
  max-width: 900px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-desc,
.section-intro {
  max-width: 900px;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.section-desc a,
.section-intro a {
  color: var(--blue);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(160px, 1fr)) minmax(200px, 1.2fr);
  gap: 32px 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-list a:hover {
  color: var(--blue);
}

.footer-copy {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.footer-copy p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.footer-copy p + p {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   components —— 通用标签、卡片、列表、表格、步骤、警示块
   -------------------------------------------------------------------------- */

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  background: var(--surface);
  color: var(--ink-soft);
}

.tag-genre {
  background: #E7EEF6;
  color: var(--blue-dark);
}

.tag-status {
  background: #E9F1EB;
  color: var(--green);
}

.tag-update {
  background: #F8EDE1;
  color: var(--orange);
}

.more-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

.more-link::after {
  content: " →";
}

.cover-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cover-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cover-card .cover-figure,
.cover-card .cover-media {
  margin: 0;
  background: var(--surface);
}

.cover-card .cover-figure img,
.cover-card .cover-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-card .cover-title,
.cover-card .cover-name {
  padding: 10px 12px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.cover-card .cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 12px;
}

.field-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}

.field-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 10px;
  font-size: 14px;
  color: var(--ink-mute);
}

.field-table th,
.field-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.field-table thead th {
  background: var(--surface);
  font-weight: 600;
  color: var(--ink);
}

.field-table tbody th {
  background: var(--surface-2);
  font-weight: 600;
  white-space: nowrap;
}

.warning-block {
  padding: 16px 18px;
  border: 1px solid #EBD9C2;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  background: #FDF8F2;
  margin-bottom: 16px;
}

.warning-title {
  font-size: 15px;
  font-weight: 600;
  color: #8A5320;
  margin-bottom: 6px;
}

.warning-block p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.status-ongoing,
.status-done,
.status-rest {
  display: inline-block;
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.6;
}

.status-ongoing {
  background: #E9F1EB;
  color: var(--green);
}

.status-done {
  background: #E7EEF6;
  color: var(--blue-dark);
}

.status-rest {
  background: var(--surface);
  color: var(--ink-mute);
}

/* --------------------------------------------------------------------------
   pages —— 首页
   -------------------------------------------------------------------------- */

.hero-section {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.1fr);
  gap: 40px;
  align-items: start;
  padding: 40px 0 8px;
}

.hero-text {
  padding-top: 8px;
  min-width: 0;
}

.hero-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
}

.hero-lead {
  margin-top: 16px;
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.hero-entries {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-entries li {
  display: block;
}

.entry-link {
  display: inline-block;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.entry-link:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}

.hero-entries li:not(:first-child) .entry-link {
  background: #fff;
  color: var(--blue);
}

.hero-entries li:not(:first-child) .entry-link:hover {
  background: var(--surface);
  color: var(--blue-dark);
}

.hero-media {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.genre-col {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
}

.genre-col:nth-child(2) {
  border-top-color: var(--orange);
}

.genre-col:nth-child(3) {
  border-top-color: var(--green);
}

.genre-col:nth-child(4) {
  border-top-color: var(--ink-mute);
}

.genre-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.genre-scope {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.genre-tags li {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.genre-rep {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.featured-main {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.featured-main:hover {
  box-shadow: var(--shadow-md);
}

.featured-main .cover-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cover-body {
  padding: 18px 20px 20px;
}

.cover-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
}

.cover-body .cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}

.cover-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.featured-sub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.dual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.col-title {
  font-size: 17px;
  font-weight: 600;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.update-group {
  margin-bottom: 18px;
}

.update-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.update-list {
  border-left: 2px solid var(--line);
  padding-left: 16px;
}

.update-item {
  padding: 8px 0;
}

.update-item + .update-item {
  border-top: 1px dashed var(--line);
}

.update-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.update-note {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.col-more {
  margin-top: 12px;
  font-size: 14px;
}

.rank-list {
  counter-reset: none;
}

.rank-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.rank-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--orange);
  font-weight: 600;
}

.rank-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.rank-genre {
  font-size: 13px;
  color: var(--ink-mute);
  white-space: nowrap;
}

.field-summary {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.summary-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.summary-list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  counter-reset: step;
}

.guide-step {
  position: relative;
  padding: 20px 18px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-step .step-no {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.guide-step .step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.guide-step .step-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.guide-entry {
  margin-top: 28px;
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.entry-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.entry-link-row {
  margin-top: 12px;
}

.site-index-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.index-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.index-item:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.index-item a {
  font-size: 15px;
  font-weight: 600;
}

.index-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
}

/* --------------------------------------------------------------------------
   pages —— 题材分类
   -------------------------------------------------------------------------- */
.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.direction-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.direction-name {
  padding: 14px 16px 10px;
  font-size: 17px;
  font-weight: 600;
}

.direction-media {
  margin: 0;
  background: var(--surface);
}

.direction-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.direction-scope {
  padding: 12px 16px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px 0;
}

.tag-list .tag {
  font-size: 12px;
}

.direction-rep {
  margin-top: auto;
  padding: 14px 16px 16px;
  font-size: 14px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.cover-note {
  padding: 0 12px 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-mute);
}

.status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.status-item {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
}

.status-item:nth-child(2) {
  border-left-color: var(--blue);
}

.status-item:nth-child(3) {
  border-left-color: var(--orange);
}

.status-item:nth-child(4) {
  border-left-color: var(--ink-mute);
}

.status-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.status-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.tags-media {
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.tags-media img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.tags-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
}

.tag-explain-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tag-explain {
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.tag-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.tag-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.next-links a {
  display: inline-block;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.next-links a:hover {
  border-color: var(--blue);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages —— 最近更新
   -------------------------------------------------------------------------- */
.batch-bar {
  margin-bottom: 40px;
}

.batch-card {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
}

.batch-id {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.batch-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
  font-size: 14px;
}

.batch-meta dt {
  color: var(--ink-mute);
  white-space: nowrap;
}

.batch-meta dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.update-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.update-items .update-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.update-cover {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.update-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.update-body {
  min-width: 0;
}

.update-body .update-name {
  font-size: 15px;
  font-weight: 600;
}

.update-meta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-mute);
}

.update-body .update-note {
  margin-top: 6px;
}

.field-scope {
  margin-bottom: 48px;
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.scope-item {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.scope-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.scope-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.path-guide {
  margin-bottom: 48px;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.path-steps .path-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-steps .step-index {
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.path-steps .step-body {
  min-width: 0;
}

.path-steps .step-action {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.path-steps .step-result {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.path-aside {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-soft);
}

.path-aside a {
  margin-right: 12px;
}

/* --------------------------------------------------------------------------
   pages —— 人气位次
   -------------------------------------------------------------------------- */
.ranking-list-section,
.ranking-scope-section,
.ranking-fields-section,
.ranking-change-section,
.ranking-links-section {
  margin-bottom: 48px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 72px 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ranking-cover {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ranking-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.ranking-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--orange);
  line-height: 1.4;
}

.ranking-body {
  min-width: 0;
}

.ranking-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.ranking-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.ranking-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.section-media {
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.section-media img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.section-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.scope-card {
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.scope-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.scope-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.scope-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.scope-note a {
  margin-right: 12px;
}

.change-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.change-item {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
}

.change-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.change-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.change-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.related-nav {
  display: block;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-list a {
  display: inline-block;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.related-list a:hover {
  border-color: var(--blue);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages —— 条目字段说明
   -------------------------------------------------------------------------- */
.fields-overview,
.fields-meanings,
.fields-rules,
.fields-pitfalls,
.fields-path {
  margin-bottom: 48px;
}

.field-name-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.field-name-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.field-name {
  font-size: 15px;
  font-weight: 600;
}

.field-name-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.fields-figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fields-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.fields-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
}

.field-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-table-wrap .field-table {
  border: 0;
  min-width: 640px;
}

.field-table-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink-mute);
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rule-item {
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rule-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.rule-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.path-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.path-list .path-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-list .path-index {
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.path-list .path-body {
  min-width: 0;
}

.path-list .path-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.path-list .path-body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.path-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages —— 查阅指引
   -------------------------------------------------------------------------- */
.guide-steps,
.guide-feedback,
.guide-faq,
.guide-index {
  margin-bottom: 48px;
}

.guide-figure {
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.step-item {
  padding: 20px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-item .step-index {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-item .step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-item .step-action {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.step-item .step-result {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.step-item .step-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.feedback-card {
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feedback-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.feedback-list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.feedback-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  position: relative;
  padding: 14px 44px 14px 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--blue);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] .faq-question {
  color: var(--blue-dark);
}

.faq-answer {
  padding: 0 18px 16px;
  border-top: 1px solid var(--line);
}

.faq-answer p {
  padding-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.index-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.index-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.index-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
}

.index-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-mute);
}

/* --------------------------------------------------------------------------
   pages —— 404
   -------------------------------------------------------------------------- */
.error-main {
  padding-top: 48px;
}

.error-panel {
  max-width: 720px;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
}

.error-panel h1 {
  font-size: 28px;
  font-weight: 600;
}

.error-code {
  margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--ink-mute);
}

.error-desc {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.error-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-btn {
  display: inline-block;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.error-btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}

.error-actions li:not(:first-child) .error-btn {
  background: #fff;
  color: var(--blue);
}

.error-actions li:not(:first-child) .error-btn:hover {
  background: var(--surface);
  color: var(--blue-dark);
}

.error-guide {
  margin-top: 40px;
}

.error-guide h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.error-guide p {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.error-links {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.error-links a {
  display: block;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
}

.error-links a:hover {
  border-color: var(--blue);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive —— 平板与手机
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .genre-grid,
  .direction-grid,
  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-index-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }

  .tag-explain-list,
  .scope-grid,
  .change-list,
  .rule-list,
  .path-list,
  .step-list,
  .guide-steps,
  .path-steps,
  .field-name-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .fact-bar {
    padding: 8px 16px;
    font-size: 12px;
    text-align: left;
  }

  .header-inner {
    padding: 10px 16px;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 56px;
  }

  .brand {
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    flex: 1 0 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 6px 0 10px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 8px;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }

  .site-main {
    padding: 0 16px 36px;
  }

  .inner-main {
    padding-top: 12px;
  }

  .page-header {
    padding-bottom: 18px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  .section {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: 20px;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px 0 4px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .genre-grid,
  .direction-grid,
  .cover-grid,
  .featured-layout,
  .featured-sub,
  .dual-layout,
  .guide-steps,
  .path-steps,
  .path-list,
  .step-list,
  .tag-explain-list,
  .scope-grid,
  .change-list,
  .rule-list,
  .field-name-list,
  .status-list,
  .update-items,
  .scope-list,
  .feedback-grid,
  .site-index-list,
  .index-grid,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-entries {
    flex-direction: column;
    align-items: stretch;
  }

  .entry-link {
    display: block;
    text-align: center;
  }

  .rank-item {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .rank-genre {
    grid-column: 2;
    white-space: normal;
  }

  .update-items .update-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .ranking-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .ranking-index {
    grid-column: 2;
    font-size: 16px;
  }

  .ranking-body {
    grid-column: 2;
  }

  .batch-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 0;
  }

  .batch-meta dd {
    margin-bottom: 8px;
  }

  .next-links a,
  .related-list a {
    flex: 1 1 100%;
    text-align: center;
  }

  .path-steps .path-step,
  .path-list .path-step {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 16px;
  }

  .path-steps .step-index,
  .path-list .path-index {
    width: 28px;
    height: 28px;
    line-height: 28px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 16px 20px;
  }

  .error-main {
    padding-top: 28px;
  }

  .error-panel {
    padding: 22px 18px;
  }

  .error-panel h1 {
    font-size: 22px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-btn {
    display: block;
    text-align: center;
  }

  .field-table-wrap .field-table {
    min-width: 560px;
  }
}

@media (max-width: 420px) {
  .header-inner {
    padding: 10px 12px;
  }

  .site-main {
    padding: 0 12px 32px;
  }

  .hero-title,
  .page-title {
    font-size: 22px;
  }

  .update-items .update-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-cover {
    max-width: 140px;
  }

  .ranking-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .ranking-cover {
    max-width: 120px;
  }

  .ranking-index,
  .ranking-body {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: reveal-in 0.45s ease both;
  }

  @keyframes reveal-in {
    from {
      transform: translateY(10px);
    }
    to {
      transform: translateY(0);
    }
  }
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 50;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.to-top.is-visible {
  display: block;
}

.to-top:hover {
  border-color: var(--blue);
  color: var(--blue);
}
