:root {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --primary: #1f3a5f;
  --primary-soft: #2f6f8f;
  --accent: #c98a2b;
  --text: #1c2530;
  --text-muted: #5b6672;
  --line: #dde2e7;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(28, 37, 48, 0.05);
  --container: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--primary-soft);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--primary-soft);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 40;
  padding: 10px 16px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
  text-decoration: none;
}

/* ==========================================================================
   layout · 全站骨架
   ========================================================================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 62px;
}

.site-main {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.inner-main {
  padding-top: 20px;
}

.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

/* ==========================================================================
   components · 顶部信息条
   ========================================================================== */

.topbar {
  background-color: #eef1f4;
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 24px;
}

.topbar-inner p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   components · 品牌与导航
   ========================================================================== */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover,
.brand:focus-visible {
  color: var(--primary);
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 2px;
  background-color: var(--accent);
}

.brand-name {
  font-size: 18px;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 1px;
}

.site-nav {
  flex: 1 1 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  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;
  font-size: 15px;
  color: var(--text);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background-color: #eef1f4;
  color: var(--primary);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--primary);
  font-weight: 600;
  background-color: #e7ecf1;
}

/* ==========================================================================
   components · 通用文本与链接
   ========================================================================== */

.text-link {
  color: var(--primary-soft);
  font-weight: 500;
  border-bottom: 1px solid rgba(47, 111, 143, 0.35);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

.entry-sep {
  color: var(--line);
  padding: 0 6px;
}

/* ==========================================================================
   components · 面包屑与页面标题区
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0 14px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--primary);
  font-weight: 500;
}

.page-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.page-description {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 760px;
}

/* ==========================================================================
   components · 页内目录
   ========================================================================== */

.anchor-nav,
.toc-nav {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 16px;
  margin-bottom: 32px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary-soft);
  border-radius: var(--radius-sm);
}

.anchor-nav-label,
.toc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.anchor-list,
.toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.anchor-list a,
.toc-list a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}

.anchor-list a:hover,
.toc-list a:hover,
.anchor-list a:focus-visible,
.toc-list a:focus-visible {
  color: var(--primary);
  border-color: var(--primary-soft);
  text-decoration: none;
}

/* ==========================================================================
   components · 区块通用
   ========================================================================== */

.section {
  margin-bottom: 44px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section-head h2,
.section > h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
}

.section-note {
  font-size: 13px;
  color: var(--text-muted);
}

.section-intro,
.section-lead {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 20px;
}

.section-footnote {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 18px;
}

/* ==========================================================================
   components · 封面卡
   ========================================================================== */

.cover-grid,
.cover-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease;
}

.cover-card:hover {
  border-color: var(--primary-soft);
  box-shadow: 0 4px 12px rgba(28, 37, 48, 0.09);
  transform: translateY(-2px);
}

.cover-media,
.cover-figure {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #e7ecf1;
  border-bottom: 1px solid var(--line);
}

.cover-media img,
.cover-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-card .cover-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  padding: 14px 16px 6px;
}

.cover-genre,
.cover-meta {
  font-size: 13px;
  color: var(--accent);
  padding: 0 16px;
  font-weight: 500;
}

.cover-summary {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 16px 16px;
  line-height: 1.7;
}

/* ==========================================================================
   components · 榜单卡片
   ========================================================================== */

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ranking-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ranking-card:hover {
  border-color: var(--primary-soft);
  box-shadow: 0 4px 12px rgba(28, 37, 48, 0.09);
}

.ranking-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.ranking-basis {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: rank;
}

.ranking-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--text);
}

.ranking-list li:last-child {
  border-bottom: none;
}

.ranking-list li::before {
  counter-increment: rank;
  content: counter(rank);
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--surface);
  background-color: var(--primary-soft);
  border-radius: 4px;
}

/* ==========================================================================
   components · 字段说明与边界清单
   ========================================================================== */

.field-list {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.field-list dt {
  padding: 10px 12px 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid var(--line);
}

.field-list dd {
  margin: 0;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.field-row dt {
  padding: 12px 12px 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.field-row dd {
  margin: 0;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.bound-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bound-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.bound-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--accent);
}

/* ==========================================================================
   components · 提示列表
   ========================================================================== */

.tip-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.tip-item {
  padding: 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary-soft);
  border-radius: var(--radius);
}

.tip-item h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
}

.tip-item p {
  font-size: 14px;
  color: var(--text-muted);
}

.tips-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  counter-reset: tips;
}

.tips-item {
  padding: 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.tips-name {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
}

.tips-item p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   components · 页脚
   ========================================================================== */

.footer-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 24px 28px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.footer-back,
.footer-top-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--primary-soft);
  text-decoration: none;
}

.footer-back:hover,
.footer-top-link:hover,
.footer-back:focus-visible,
.footer-top-link:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 24px;
}

.footer-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-group a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

.hero {
  padding: 40px 0 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 34px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 560px;
}

.hero-entry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 15px;
}

.hero-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #e7ecf1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 题材分类方向总览 */

.genre-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.genre-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(180px, 1fr) minmax(0, 1.6fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.genre-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.genre-trait {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.genre-org {
  font-size: 14px;
  color: var(--text-muted);
}

/* 最近更新记录（首页） */

.update-month {
  margin-bottom: 26px;
}

.update-month:last-child {
  margin-bottom: 0;
}

.update-month-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.update-list {
  display: flex;
  flex-direction: column;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.update-item:last-child {
  border-bottom: none;
}

.update-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  min-width: 0;
}

.update-genre {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.update-status {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.status-new {
  color: var(--primary-soft);
  border-color: rgba(47, 111, 143, 0.4);
  background-color: rgba(47, 111, 143, 0.08);
}

.status-update {
  color: var(--accent);
  border-color: rgba(201, 138, 43, 0.4);
  background-color: rgba(201, 138, 43, 0.08);
}

.status-note {
  color: var(--text-muted);
  border-color: var(--line);
  background-color: #eef1f4;
}

.update-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: auto;
}

/* 阅读说明与收录边界摘要 */

.guide-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.guide-col {
  padding: 22px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-col h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 14px;
}

.guide-fields {
  border-left: 3px solid var(--primary-soft);
}

.guide-bounds {
  border-left: 3px solid var(--accent);
}

/* 站内页面索引 */

.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.index-col {
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.index-col h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
}

.index-col p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

/* ==========================================================================
   pages · 题材分类
   ========================================================================== */

.genre-table {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.genre-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background-color: #eef1f4;
  border-bottom: 1px solid var(--line);
}

.genre-table tbody th {
  text-align: left;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  width: 22%;
}

.genre-table tbody td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.genre-table tbody tr:last-child th,
.genre-table tbody tr:last-child td {
  border-bottom: none;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.note-card {
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary-soft);
  border-radius: var(--radius);
}

.note-card h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
}

.note-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   pages · 最近更新
   ========================================================================== */

.layout-shell {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.update-log .section-head,
.update-fields .section-head,
.update-tips .section-head,
.update-links .section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.update-log .section-head h2,
.update-fields .section-head h2,
.update-tips .section-head h2,
.update-links .section-head h2 {
  font-size: 20px;
  color: var(--primary);
}

.update-log .month-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.update-log .update-month {
  margin-bottom: 26px;
}

.update-log .update-month:last-child {
  margin-bottom: 0;
}

.update-log .update-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.update-log .update-item:last-child {
  border-bottom: none;
}

.update-thumb {
  display: block;
  width: 72px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: #e7ecf1;
}

.update-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.update-body .update-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.update-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-muted);
  background-color: #eef1f4;
}

.tag-genre {
  color: var(--accent);
  border-color: rgba(201, 138, 43, 0.4);
  background-color: rgba(201, 138, 43, 0.08);
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--primary-soft);
  background-color: rgba(47, 111, 143, 0.08);
}

.status-adjust {
  color: var(--accent);
  border-color: rgba(201, 138, 43, 0.4);
  background-color: rgba(201, 138, 43, 0.08);
}

.status-fill {
  color: var(--text-muted);
  border-color: var(--line);
  background-color: #eef1f4;
}

.update-fields .field-list {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
  grid-template-columns: minmax(140px, auto) minmax(0, 1fr);
}

.update-fields .field-row:last-child {
  border-bottom: none;
}

.update-links .link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.update-links .link-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--primary-soft);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.update-links .link-list a:hover,
.update-links .link-list a:focus-visible {
  color: var(--primary);
  border-color: var(--primary-soft);
  text-decoration: none;
}

/* ==========================================================================
   pages · 榜单排行
   ========================================================================== */

.rankings-overview .ranking-card-head {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.ranking-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.rankings-overview .ranking-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.rankings-overview .ranking-item:last-child {
  border-bottom: none;
}

.rankings-overview .ranking-item::before {
  display: none;
}

.ranking-thumb {
  display: block;
  width: 44px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background-color: #e7ecf1;
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  min-width: 0;
}

.ranking-item-genre {
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
}

.ranking-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-muted);
}

.basis-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.basis-item {
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary-soft);
  border-radius: var(--radius);
}

.basis-name {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 12px;
}

.basis-fields {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

.basis-fields dt {
  padding: 8px 10px 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid var(--line);
}

.basis-fields dd {
  margin: 0;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.basis-fields dt:last-of-type,
.basis-fields dd:last-of-type {
  border-bottom: none;
}

/* ==========================================================================
   pages · 阅读说明
   ========================================================================== */

.section-fields .field-figure {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #e7ecf1;
}

.section-fields .field-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section-fields .field-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  background-color: var(--surface);
  border-top: 1px solid var(--line);
}

.field-table {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background-color: #eef1f4;
  border-bottom: 1px solid var(--line);
}

.field-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background-color: #eef1f4;
  border-bottom: 1px solid var(--line);
}

.field-table tbody td {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table tbody tr:last-child td {
  border-bottom: none;
}

.genre-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.status-card {
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary-soft);
  border-radius: var(--radius);
}

.status-card h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
}

.status-card p {
  font-size: 14px;
  color: var(--text-muted);
}

.status-card p + p {
  margin-top: 8px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.faq-item summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "＋";
  float: right;
  color: var(--primary-soft);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "－";
}

.faq-item p {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.path-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  counter-reset: path;
}

.path-item {
  position: relative;
  padding: 20px 20px 20px 56px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-item::before {
  counter-increment: path;
  content: counter(path);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--surface);
  background-color: var(--primary-soft);
  border-radius: 4px;
}

.path-item h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
}

.path-item p {
  font-size: 14px;
  color: var(--text-muted);
}

.path-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   pages · 404
   ========================================================================== */

.error-main {
  padding-top: 40px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.error-hero {
  padding: 40px 0 44px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.error-hero-inner {
  max-width: 720px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.error-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
}

.error-text {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 620px;
}

.error-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--primary-soft);
  border-color: var(--primary-soft);
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
}

.error-links {
  padding-bottom: 40px;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.error-link-list li {
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary-soft);
  border-radius: var(--radius);
}

.error-link-list a {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  text-decoration: none;
}

.error-link-list a:hover,
.error-link-list a:focus-visible {
  color: var(--primary-soft);
  text-decoration: underline;
}

.error-link-list p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   responsive · 960px
   ========================================================================== */

@media (max-width: 960px) {
  .header-inner,
  .topbar-inner,
  .site-main,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 0 0 auto;
    position: relative;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, calc(100vw - 36px));
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(28, 37, 48, 0.12);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    justify-content: flex-start;
    width: 100%;
    padding: 0 12px;
  }

  .hero {
    padding: 32px 0 36px;
    margin-bottom: 36px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-media {
    aspect-ratio: 16 / 9;
  }

  .hero-title {
    font-size: 28px;
  }

  .cover-grid,
  .cover-wall,
  .ranking-grid,
  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .footer-desc {
    max-width: none;
  }

  .genre-row {
    grid-template-columns: minmax(120px, 0.9fr) minmax(0, 1.4fr);
    row-gap: 6px;
  }

  .genre-org {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   responsive · 600px
   ========================================================================== */

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    min-height: 56px;
    gap: 10px;
  }

  .brand-name {
    font-size: 17px;
  }

  .site-main {
    padding-bottom: 40px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-header {
    padding-bottom: 18px;
    margin-bottom: 24px;
  }

  .section {
    margin-bottom: 34px;
  }

  .section-head {
    gap: 8px;
  }

  .hero {
    padding: 24px 0 28px;
    margin-bottom: 30px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-entry {
    font-size: 14px;
  }

  .cover-grid,
  .cover-wall,
  .ranking-grid,
  .index-grid,
  .note-grid,
  .basis-list,
  .genre-status-grid,
  .tip-list,
  .tips-list,
  .path-list,
  .error-link-list,
  .update-links .link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
  }

  .genre-org {
    grid-column: auto;
  }

  .field-list,
  .update-fields .field-list,
  .basis-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-list dt,
  .field-row dt,
  .basis-fields dt {
    padding-bottom: 2px;
    border-bottom: none;
  }

  .field-list dd,
  .field-row dd,
  .basis-fields dd {
    padding-top: 2px;
    padding-bottom: 12px;
  }

  .update-log .update-item {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
  }

  .update-thumb {
    width: 60px;
  }

  .update-item {
    align-items: flex-start;
  }

  .update-date {
    margin-left: 0;
    width: 100%;
  }

  .genre-table,
  .field-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .genre-table thead th,
  .genre-table tbody th,
  .genre-table tbody td,
  .field-table thead th,
  .field-table tbody td {
    padding: 10px 12px;
    white-space: normal;
  }

  .genre-table tbody th {
    width: auto;
  }

  .error-title {
    font-size: 24px;
  }

  .error-hero {
    padding: 28px 0 32px;
    margin-bottom: 30px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .path-item {
    padding: 18px 18px 18px 52px;
  }

  .path-item::before {
    left: 18px;
    top: 18px;
  }
}

/* ==========================================================================
   motion · 尊重系统偏好
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
