/* ============================================================
   base — 全局基础样式
   ============================================================ */
:root {
  --ink: #1C2333;
  --brand: #E34D6B;
  --brand-dark: #C93A56;
  --paper: #F8F5F0;
  --text: #3D3D3D;
  --tag: #F2B134;
  --green: #2A9D8F;
  --line: #E5E0D8;
  --white: #FFFFFF;
  --muted: #6B7280;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Fira Code", Consolas, "Liberation Mono", Menlo, monospace;
  --container: 1200px;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.sr-only,
.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;
}

/* ============================================================
   layout — 全站统一骨架
   ============================================================ */
.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo:hover {
  color: var(--white);
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav .nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav .nav-list a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.site-nav .nav-list a.is-current {
  color: var(--white);
  background: var(--brand);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* 内页统一骨架 */
.inner-main {
  padding-top: 32px;
  padding-bottom: 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb-sep {
  color: #B0B0B0;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  max-width: 840px;
}

/* 页脚 */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 280px;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text);
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  max-width: var(--container);
  margin: 0 auto;
}

/* ============================================================
   components — 通用组件
   ============================================================ */
/* 摘要框 */
.summary-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 40px;
}

.summary-box .section-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.summary-box p {
  margin-bottom: 16px;
}

.summary-box p:last-child {
  margin-bottom: 0;
}

/* 区块标题 */
.section-head {
  margin-bottom: 28px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.section-intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* 题材标签 */
.genre-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(227, 77, 107, 0.08);
  padding: 2px 10px;
  border-radius: 4px;
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 32px;
}

.genre-table,
.rankings-table,
.field-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.genre-table th,
.genre-table td,
.rankings-table th,
.rankings-table td,
.field-table th,
.field-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.genre-table th,
.rankings-table th,
.field-table th {
  background: var(--paper);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.genre-table tr:last-child td,
.rankings-table tr:last-child td,
.field-table tr:last-child td {
  border-bottom: 0;
}

.genre-table tbody tr:hover,
.rankings-table tbody tr:hover,
.field-table tbody tr:hover {
  background: #FAFAF8;
}

/* FAQ 折叠 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary {
  background: var(--paper);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

.faq-answer p {
  margin-bottom: 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* 相关链接块 */
.related-links {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.related-links .section-title {
  font-size: 20px;
  margin-bottom: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-grid a,
.related-list a {
  display: block;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.related-grid a:hover,
.related-list a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 步骤条 */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guide-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 12px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
}

.guide-step a {
  font-size: 14px;
  font-weight: 600;
}

/* 内容配图 */
.content-media {
  margin: 24px 0;
}

.content-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.content-media figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 4px 0;
  line-height: 1.6;
}

.content-media-inline {
  max-width: 720px;
}

/* 步骤列表 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.step-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 8px;
}

.step-text a {
  font-weight: 600;
}

.step-tip {
  font-size: 13px;
  color: var(--muted);
  background: var(--paper);
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 3px solid var(--tag);
}

/* ============================================================
   pages — 首页
   ============================================================ */
.home-main {
  padding-bottom: 64px;
}

/* 首屏摘要与封面墙 */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 48px;
}

.hero-content {
  max-width: 540px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  background: rgba(227, 77, 107, 0.08);
  padding: 4px 12px;
  border-radius: 4px;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-links a {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--brand);
  background: var(--white);
  color: var(--brand);
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-links a:first-child {
  background: var(--brand);
  color: var(--white);
}

.hero-links a:first-child:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.hero-links a:hover {
  background: var(--brand);
  color: var(--white);
}

.hero-cover-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 12px;
}

.cover-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  aspect-ratio: 3 / 4;
}

.cover-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.cover-item-main {
  grid-row: span 2;
  aspect-ratio: auto;
}

.cover-item-main img {
  aspect-ratio: auto;
  height: 100%;
}

/* 通用区块 */
.section-block {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.section-block:first-of-type {
  border-top: 0;
}

/* 题材分类索引 */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.genre-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.genre-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(28, 35, 51, 0.06);
}

.genre-tag {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.genre-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* 最近更新 */
.update-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.update-item:hover {
  border-color: var(--brand);
}

.update-status {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  min-width: 44px;
  text-align: center;
}

.update-status.is-new {
  background: var(--brand);
  color: var(--white);
}

.update-status.is-updated {
  background: var(--green);
  color: var(--white);
}

.update-link {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.update-link:hover {
  color: var(--brand);
}

.update-meta {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* 热门榜单节选 */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: start;
}

.ranking-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  padding-top: 4px;
}

.ranking-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ranking-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.ranking-title:hover {
  color: var(--brand);
}

.ranking-tag {
  font-size: 13px;
  color: var(--brand);
  background: rgba(227, 77, 107, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.ranking-reason {
  grid-column: 2;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.section-more {
  margin-top: 24px;
  text-align: right;
}

.section-more a {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  color: var(--brand);
  transition: background 0.2s ease, color 0.2s ease;
}

.section-more a:hover {
  background: var(--brand);
  color: var(--white);
}

/* 阅读指南入口 */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guide-step {
  background: var(--paper);
}

/* 内容边界说明 */
.scope-section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.scope-inner {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 32px 40px;
}

.scope-inner .section-title {
  color: var(--white);
  margin-bottom: 12px;
}

.scope-text {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  max-width: 860px;
}

/* ============================================================
   pages — 内页通用模块
   ============================================================ */
/* 题材分类页 */
.genre-overview {
  margin-bottom: 48px;
}

.genre-entries {
  margin-bottom: 48px;
}

.genre-entries .genre-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.genre-entries .genre-card {
  flex-direction: row;
  gap: 20px;
  padding: 0;
  overflow: hidden;
}

.genre-media {
  flex-shrink: 0;
  width: 180px;
}

.genre-media figure {
  height: 100%;
}

.genre-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.genre-body {
  padding: 20px 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.genre-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.genre-body .genre-tag {
  align-self: flex-start;
}

.genre-body p:not(.genre-tag) {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.genre-link {
  font-size: 14px;
  font-weight: 600;
  margin-top: auto;
}

/* 热门题材作品入口 */
.genre-hot {
  margin-bottom: 48px;
}

.hot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hot-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.hot-card:hover {
  border-color: var(--brand);
}

.hot-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hot-body {
  padding: 16px 20px 20px;
}

.hot-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.hot-body .genre-tag {
  margin-bottom: 8px;
}

.hot-body p:not(.genre-tag) {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.hot-link {
  font-size: 14px;
  font-weight: 600;
}

/* 编辑策展页 */
.curation-intro {
  margin-bottom: 40px;
}

.curation-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.meta-item dt {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.meta-item dd {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.curation-chapters {
  margin-bottom: 48px;
}

.curation-chapter {
  margin-bottom: 40px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chapter-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.chapter-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.chapter-head h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.chapter-intro {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  padding-left: 50px;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.work-card:hover {
  border-color: var(--brand);
}

.work-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.work-card figcaption {
  padding: 16px;
}

.work-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(227, 77, 107, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.work-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.work-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.work-card a {
  font-size: 13px;
  font-weight: 600;
}

/* 延伸阅读 */
.extended-reading {
  margin-bottom: 48px;
}

.extended-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.extended-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.extended-item:hover {
  border-color: var(--brand);
}

.extended-tag {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(227, 77, 107, 0.08);
  padding: 4px 12px;
  border-radius: 4px;
}

.extended-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

/* 阅读提示 */
.reading-tip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.reading-tip .section-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.reading-tip p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.reading-tip a {
  font-weight: 600;
}

/* 热门榜单页 */
.rankings-section {
  margin-bottom: 48px;
}

.rankings-table-wrap {
  overflow-x: auto;
  margin-bottom: 32px;
}

.rankings-table .rank-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
}

.rankings-table .rank-title {
  font-weight: 600;
  color: var(--ink);
}

.hot-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--tag);
  background: rgba(242, 177, 52, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

/* 上榜理由 */
.rankings-reasons {
  margin-bottom: 48px;
}

.reason-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reason-item {
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reason-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.reason-item p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

/* 题材分布 */
.rankings-genres {
  margin-bottom: 48px;
}

.genre-distribution {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.dist-row {
  display: grid;
  grid-template-columns: 120px 1fr 48px;
  gap: 16px;
  align-items: center;
}

.dist-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.dist-bar {
  display: block;
  height: 12px;
  background: var(--paper);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.dist-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand);
  border-radius: 6px;
  width: var(--bar-width, 0%);
}

.dist-bar-1::after { --bar-width: 92%; }
.dist-bar-2::after { --bar-width: 84%; }
.dist-bar-3::after { --bar-width: 76%; }
.dist-bar-4::after { --bar-width: 68%; }
.dist-bar-5::after { --bar-width: 60%; }
.dist-bar-6::after { --bar-width: 52%; }
.dist-bar-7::after { --bar-width: 44%; }
.dist-bar-8::after { --bar-width: 36%; }

.dist-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}

.dist-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.rankings-figure {
  margin-top: 24px;
}

.rankings-figure img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.rankings-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 4px 0;
}

/* 阅读指南页 */
.guide-section {
  margin-bottom: 48px;
}

.reading-path-section .step-item {
  background: var(--paper);
}

.field-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

.guide-media {
  margin-top: 24px;
}

.guide-media img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.guide-media figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 4px 0;
}

/* 术语索引页 */
.glossary-section {
  margin-bottom: 48px;
}

.glossary-section .content-media {
  max-width: 640px;
  margin-bottom: 16px;
}

.glossary-section .section-intro {
  margin-bottom: 24px;
}

.glossary-group {
  margin-bottom: 28px;
}

.group-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--paper);
  margin-bottom: 16px;
}

.term-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.term-item {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.term-item:last-child {
  border-bottom: 0;
}

.term-name {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  min-width: 120px;
}

.term-def {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

/* 题材词条解释 */
.genre-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.genre-term-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s ease;
}

.genre-term-card:hover {
  border-color: var(--brand);
}

.genre-term-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.genre-term-def {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* 相关术语链接 */
.related-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-links-list a {
  display: block;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.related-links-list a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* 帮助反馈页 */
.feedback-process {
  margin-bottom: 48px;
}

.feedback-process .content-media {
  max-width: 640px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.process-steps li {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-steps .step-number {
  background: var(--brand);
}

.process-steps h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.process-steps p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.feedback-boundary {
  margin-bottom: 48px;
}

.boundary-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.boundary-col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.boundary-col h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boundary-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}

.boundary-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--brand);
  font-weight: 700;
}

.feedback-faq {
  margin-bottom: 48px;
}

/* ============================================================
   pages — 404
   ============================================================ */
.error-main {
  padding: 80px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.error-panel {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 40px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.error-link {
  display: inline-block;
  padding: 10px 24px;
  background: var(--brand);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 24px;
}

.error-link:hover {
  background: var(--brand-dark);
  color: var(--white);
}

.error-help {
  font-size: 14px;
  color: var(--muted);
}

.error-help a {
  font-weight: 600;
  margin: 0 8px;
}

/* ============================================================
   responsive — 响应式
   ============================================================ */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-cover-wall {
    max-width: 640px;
  }

  .genre-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .work-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .genre-entries .genre-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .curation-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    min-height: 60px;
    padding: 10px 16px;
    flex-wrap: wrap;
  }

  .brand-logo {
    font-size: 19px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    width: 100%;
    order: 3;
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list a {
    padding: 12px 8px;
    font-size: 15px;
    border-radius: 4px;
  }

  .site-main {
    padding: 0 16px;
  }

  .inner-main {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .page-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-section {
    padding: 36px 0 32px;
    gap: 28px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-cover-wall {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .section-block {
    padding: 32px 0;
  }

  .section-title {
    font-size: 20px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .guide-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .update-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .update-link {
    flex-basis: calc(100% - 60px);
  }

  .update-meta {
    width: 100%;
    padding-left: 60px;
  }

  .ranking-item {
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }

  .ranking-reason {
    grid-column: 2;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-desc {
    max-width: 100%;
  }

  .summary-box {
    padding: 20px;
  }

  .step-item {
    flex-direction: column;
    gap: 12px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .genre-entries .genre-card {
    flex-direction: column;
  }

  .genre-media {
    width: 100%;
  }

  .genre-media img {
    aspect-ratio: 16 / 9;
  }

  .genre-body {
    padding: 16px;
  }

  .hot-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .curation-chapter {
    padding: 20px;
  }

  .chapter-intro {
    padding-left: 0;
  }

  .boundary-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .genre-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .dist-row {
    grid-template-columns: 90px 1fr 40px;
    gap: 12px;
  }

  .error-main {
    padding: 48px 16px;
  }

  .error-panel {
    padding: 32px 24px;
  }

  .error-code {
    font-size: 48px;
  }

  .breadcrumb {
    margin-bottom: 16px;
  }

  .hero-links a {
    flex: 1;
    text-align: center;
  }

  .hero-cover-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .cover-item-main {
    grid-row: span 1;
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

  .cover-item-main img {
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

@media (max-width: 480px) {
  .genre-grid {
    grid-template-columns: 1fr;
  }

  .genre-entries .genre-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-cover-wall {
    grid-template-columns: 1fr 1fr;
  }

  .cover-item-main {
    grid-column: span 2;
  }

  .ranking-item {
    grid-template-columns: 32px 1fr;
  }

  .ranking-num {
    font-size: 20px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .dist-row {
    grid-template-columns: 76px 1fr 36px;
    gap: 8px;
  }

  .dist-label {
    font-size: 13px;
  }

  .term-item {
    flex-direction: column;
    gap: 4px;
  }

  .term-name {
    min-width: 0;
  }

  .process-steps li {
    flex-direction: column;
    gap: 8px;
  }

  .hero-links {
    flex-direction: column;
  }

  .hero-links a {
    text-align: center;
  }

  .update-item {
    padding: 12px 14px;
  }

  .update-status {
    min-width: 40px;
    font-size: 11px;
  }

  .update-link {
    font-size: 14px;
  }

  .update-meta {
    font-size: 12px;
    padding-left: 0;
  }

  .scope-inner {
    padding: 24px 20px;
  }

  .footer-bottom {
    padding: 16px;
  }

  .error-help a {
    display: inline-block;
    margin: 4px;
  }
}
