:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --ink: #22262B;
  --ink-soft: #4C545E;
  --ink-mute: #6B7480;
  --line: #D9DDE3;
  --line-soft: #E8EBEF;
  --primary: #2F5FD0;
  --primary-dark: #24499F;
  --accent: #E2703A;
  --green: #3E8E6E;
  --amber: #B7791F;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(34, 38, 43, 0.06), 0 6px 18px rgba(34, 38, 43, 0.05);
  --wrap: 1180px;
  --gap: 24px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
}

/* =========================================================
   base
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
ol,
ul {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--primary-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

time,
.rank-no,
.rank-index,
.archive-year,
.update-date,
.update-day-count,
.step-index,
.path-step-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.inline-link {
  color: var(--primary);
  border-bottom: 1px solid rgba(47, 95, 208, 0.35);
  padding-bottom: 1px;
}

.inline-link:hover {
  border-bottom-color: var(--primary-dark);
}

/* =========================================================
   layout — 全站骨架
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.brand-slogan {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.3;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink-soft);
  font-size: 15px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--primary);
  background: #F1F4FA;
}

.nav-link.is-current {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.site-main {
  display: block;
}

.inner-main {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px 20px 56px;
}

.home-main {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
  gap: 32px;
}

.footer-about {
  max-width: 340px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mute);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--ink-soft);
  min-height: 22px;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}

.footer-copy {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--ink-mute);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 32px;
  line-height: 1.32;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.page-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 860px;
}

.page-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 860px;
  margin-top: 10px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
}

.page-meta-item {
  font-size: 13px;
  color: var(--ink-mute);
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* 通用 section 与标题 */
.section {
  margin-bottom: 44px;
}

.section-title {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-lead,
.section-desc,
.section-intro {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 880px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head .section-title {
  margin-bottom: 10px;
}

.column-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.column-lead {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mute);
  margin-bottom: 16px;
}

.column-more {
  margin-top: 16px;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.more-link::after {
  content: "→";
  font-size: 13px;
}

.more-link:hover {
  color: var(--primary-dark);
}

/* 表格 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
}

.data-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--ink);
  background: #F1F4FA;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody th,
.data-table tbody td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  vertical-align: top;
  line-height: 1.65;
}

.data-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover th,
.data-table tbody tr:hover td {
  background: #FAFBFD;
}

.table-link {
  color: var(--primary);
}

.table-link:hover {
  color: var(--primary-dark);
}

/* 图片容器 */
.hero-figure,
.genres-figure,
.page-media,
.figure-media,
.section-media,
.media-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line-soft);
  border: 1px solid var(--line);
}

.hero-figure img,
.genres-figure img,
.page-media img,
.figure-media img,
.section-media img,
.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-figcaption,
.genres-figure-caption,
.page-media-caption,
.figure-caption,
.media-caption {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
}

/* 步骤 / 编号清单 */
.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding: 18px 18px 18px 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-index {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* =========================================================
   components — 首页
   ========================================================= */

.fact-bar {
  background: var(--ink);
  color: #E9ECF1;
}

.fact-bar-text {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 9px 20px;
  font-size: 13px;
  line-height: 1.6;
}

.hero-index {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  padding: 44px 0 48px;
  border-bottom: 1px solid var(--line);
}

.hero-column {
  min-width: 0;
}

.hero-title {
  font-size: 38px;
  line-height: 1.28;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero-summary {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 26px;
  max-width: 620px;
}

.hero-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.hero-path {
  min-width: 0;
}

.hero-path-link {
  display: block;
  height: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hero-path-link:hover {
  border-left-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.hero-path-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.hero-path-desc {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-mute);
}

.hero-aside {
  min-width: 0;
  display: grid;
  gap: 20px;
  align-content: start;
}

.hero-figure {
  aspect-ratio: 16 / 9;
}

.archive-index {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.archive-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.archive-list {
  display: grid;
  gap: 10px;
}

.archive-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.archive-item:last-child {
  border-bottom: 0;
}

.archive-year {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.archive-note {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-mute);
}

/* 题材方向总览 */
.genre-overview {
  padding: 44px 0 0;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.genre-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.genre-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.genre-no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.genre-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.genre-trait {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.genre-sample {
  margin-top: auto;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

/* 更新与位次并列 */
.updates-ranking {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  padding: 44px 0 0;
}

.updates-column,
.ranking-column {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.update-list {
  display: grid;
  gap: 2px;
}

.update-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 78px 68px;
  align-items: center;
  gap: 12px;
  padding: 11px 6px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.update-row:last-child {
  border-bottom: 0;
}

.update-row:hover {
  background: #FAFBFD;
}

.update-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.update-work {
  color: var(--ink);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-type {
  font-size: 13px;
  color: var(--ink-mute);
}

.update-status {
  font-size: 12px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-ongoing {
  color: var(--green);
  background: rgba(62, 142, 110, 0.1);
  border-color: rgba(62, 142, 110, 0.28);
}

.status-done {
  color: var(--primary);
  background: rgba(47, 95, 208, 0.1);
  border-color: rgba(47, 95, 208, 0.26);
}

.status-paused {
  color: var(--amber);
  background: rgba(183, 121, 31, 0.1);
  border-color: rgba(183, 121, 31, 0.26);
}

.rank-list {
  display: grid;
  gap: 2px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 68px;
  align-items: center;
  gap: 12px;
  padding: 11px 6px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background: #FAFBFD;
}

.rank-no {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

.rank-work {
  color: var(--ink);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-genre {
  font-size: 13px;
  color: var(--ink-mute);
  text-align: right;
}

/* 字段口径与收录边界 */
.fields-boundary {
  padding: 44px 0 0;
}

.fields-boundary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.fields-column,
.boundary-column {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-list {
  display: grid;
  gap: 14px;
}

.field-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.field-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.boundary-list {
  display: grid;
  gap: 12px;
}

.boundary-item {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.boundary-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
}

/* 栏目索引 */
.site-index {
  padding: 44px 0 0;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.index-card {
  display: block;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.index-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.index-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.index-desc {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

/* 档案图片组 */
.archive-media {
  padding: 44px 0 0;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.media-item {
  display: flex;
  flex-direction: column;
}

.media-item img {
  aspect-ratio: 4 / 3;
}

/* =========================================================
   pages — 内页业务模块
   ========================================================= */

/* 题材分类 */
.genres-visual {
  margin-bottom: 40px;
}

.genres-visual .section-title {
  margin-bottom: 14px;
}

.genres-figure {
  aspect-ratio: 21 / 9;
}

.genres-group {
  margin-bottom: 44px;
}

.genre-container-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.genre-container {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
}

.genre-index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.genre-container .genre-name {
  font-size: 17px;
  margin-bottom: 10px;
}

.genre-container .genre-trait {
  margin-bottom: 12px;
}

.genre-tags {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  padding: 8px 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.genre-container .genre-sample {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.genres-table-section {
  margin-bottom: 44px;
}

.genres-table-section .section-lead {
  margin-bottom: 18px;
}

.genres-steps {
  margin-bottom: 44px;
}

.genres-steps .section-lead {
  margin-bottom: 20px;
}

.genres-more {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genres-more .section-title {
  font-size: 18px;
  margin-bottom: 14px;
}

.more-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 24px;
}

.more-item {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft);
}

/* 最近更新 */
.page-media {
  aspect-ratio: 21 / 9;
  margin-bottom: 40px;
}

.updates-section {
  margin-bottom: 44px;
}

.update-day-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.update-day {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.update-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #F1F4FA;
  border-bottom: 1px solid var(--line);
}

.update-day-head .update-date {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.update-day-count {
  font-size: 13px;
  color: var(--ink-mute);
}

.update-rows {
  display: grid;
}

.update-rows .update-row {
  grid-template-columns: minmax(0, 1fr) 96px 96px 76px;
  padding: 12px 18px;
}

.update-name {
  color: var(--ink);
  font-weight: 500;
}

.update-genre {
  font-size: 13px;
  color: var(--ink-mute);
}

.update-status.is-ongoing {
  color: var(--green);
  background: rgba(62, 142, 110, 0.1);
  border-color: rgba(62, 142, 110, 0.28);
}

.update-status.is-finished {
  color: var(--primary);
  background: rgba(47, 95, 208, 0.1);
  border-color: rgba(47, 95, 208, 0.26);
}

.update-status.is-paused {
  color: var(--amber);
  background: rgba(183, 121, 31, 0.1);
  border-color: rgba(183, 121, 31, 0.26);
}

.update-fields {
  margin-bottom: 44px;
}

.update-fields .field-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.field-item {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-item .field-name {
  font-size: 15px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.update-path {
  margin-bottom: 20px;
}

.path-steps {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.path-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
}

.path-step-body {
  min-width: 0;
}

.path-step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.path-step-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 人气位次 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}

.ranking-layout {
  display: block;
}

.ranking-list-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.section-media {
  aspect-ratio: 21 / 9;
  margin: 18px 0 22px;
}

.ranking-list {
  display: grid;
  gap: 2px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.18s ease;
}

.ranking-item:last-child {
  border-bottom: 0;
}

.ranking-item:hover {
  background: #FAFBFD;
}

.rank-index {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

.ranking-item:nth-child(-n + 3) .rank-index {
  color: var(--accent);
}

.rank-body {
  min-width: 0;
}

.rank-name {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.rank-name:hover {
  color: var(--primary);
}

.rank-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.rank-tag {
  font-size: 12px;
  color: var(--ink-soft);
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.ranking-note-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.note-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.note-item {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.note-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 2px;
}

.ranking-scope-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.scope-col {
  min-width: 0;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.scope-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.scope-text {
  font-size: 14px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.scope-footnote {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mute);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 32px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  font-size: 14px;
  color: var(--primary);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.related-links-item:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* 条目字段说明 */
.content-column {
  min-width: 0;
}

.sidebar {
  min-width: 0;
  display: grid;
  gap: 20px;
  align-content: start;
}

.sidebar-block {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.sidebar-list {
  display: grid;
  gap: 10px;
}

.sidebar-item {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-soft);
}

.sidebar-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.sidebar-term {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.sidebar-links {
  display: grid;
  gap: 8px;
}

.sidebar-link-item {
  font-size: 14px;
}

.sidebar-link {
  color: var(--primary);
}

.sidebar-link:hover {
  color: var(--primary-dark);
}

.section-faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.section-faq .section-intro {
  margin-bottom: 18px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--primary);
  background: var(--surface);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.section-fields-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.section-fields-table .section-intro {
  margin-bottom: 18px;
}

.figure-media {
  aspect-ratio: 21 / 9;
  margin-bottom: 20px;
}

.section-steps {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.section-steps .section-intro {
  margin-bottom: 18px;
}

.section-related {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 24px;
  margin-top: 14px;
}

.related-item {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 14px;
}

.related-link {
  color: var(--primary);
}

.related-link:hover {
  color: var(--primary-dark);
}

/* 404 */
.error-main {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 60px 20px 72px;
}

.error-block {
  max-width: 680px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 16px;
}

.error-title {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.error-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.error-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.error-path-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-path-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.error-home-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
}

.error-home-button:hover {
  color: #fff;
  background: var(--primary-dark);
}

/* =========================================================
   responsive
   ========================================================= */

@media (max-width: 1024px) {
  .hero-index {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 34px 0 38px;
  }

  .hero-title {
    font-size: 32px;
  }

  .updates-ranking {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 36px;
  }

  .fields-boundary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .sidebar {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-about {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 12px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 0 8px;
    border-bottom: 0;
    border-left: 2px solid transparent;
    border-radius: var(--radius-sm);
  }

  .nav-link.is-current {
    border-bottom-color: transparent;
    border-left-color: var(--primary);
    background: #F1F4FA;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 20px;
  }

  .genre-grid,
  .genre-container-grid,
  .media-grid,
  .index-grid,
  .hero-paths,
  .error-paths,
  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-row {
    grid-template-columns: 74px minmax(0, 1fr) 62px;
  }

  .update-row .update-type {
    display: none;
  }

  .update-rows .update-row {
    grid-template-columns: minmax(0, 1fr) 76px;
    row-gap: 6px;
  }

  .update-rows .update-row .update-genre {
    grid-column: 1 / -1;
    order: 3;
  }

  .ranking-item {
    grid-template-columns: 36px minmax(0, 1fr);
    row-gap: 8px;
  }

  .ranking-item .rank-tag {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .footer-nav {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

  .error-block {
    padding: 28px 22px;
  }

  .error-code {
    font-size: 42px;
  }

  .error-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .fact-bar-text {
    font-size: 12px;
    padding: 8px 16px;
  }

  .hero-title {
    font-size: 24px;
  }

  .page-title {
    font-size: 23px;
  }

  .section-title {
    font-size: 19px;
  }

  .hero-summary,
  .page-description,
  .page-lead {
    font-size: 15px;
  }

  .updates-column,
  .ranking-column,
  .fields-column,
  .boundary-column,
  .ranking-list-section,
  .ranking-note-section,
  .ranking-scope-section,
  .section-faq,
  .section-fields-table,
  .section-steps,
  .section-related,
  .genres-more {
    padding: 18px;
  }

  .rank-row {
    grid-template-columns: 30px minmax(0, 1fr);
    row-gap: 4px;
  }

  .rank-row .rank-genre {
    grid-column: 2 / -1;
    text-align: left;
  }

  .path-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .data-table {
    min-width: 560px;
    font-size: 13px;
  }

  .data-table thead th,
  .data-table tbody th,
  .data-table tbody td {
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
