:root {
  --ink: #12151c;
  --ink-soft: #1c2029;
  --paper: #f7f8fa;
  --card: #ffffff;
  --line: #dfe3ea;
  --line-strong: #c6ccd8;
  --link: #1f6feb;
  --link-dark: #175bc4;
  --hot: #d9480f;
  --live: #2f9e44;
  --muted: #5c6470;
  --muted-soft: #7b828e;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1120px;
  --shadow: 0 1px 2px rgba(18, 21, 28, 0.06), 0 6px 16px -10px rgba(18, 21, 28, 0.18);
}

/* ============================================================
   base —— 全站基础与排版
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
ol,
ul {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

a:hover {
  color: var(--link-dark);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

strong {
  font-weight: 700;
}

time {
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   layout —— 页头、导航、主容器、页脚骨架
   ============================================================ */

.fact-bar,
.site-factbar {
  background: var(--ink-soft);
  color: #c3c9d4;
  font-size: 13px;
  line-height: 1.6;
  padding: 8px 20px;
  text-align: center;
}

.fact-bar p,
.site-factbar {
  margin: 0;
  max-width: var(--shell);
  margin-inline: auto;
}

.site-header {
  background: var(--ink);
  color: #eef1f6;
  position: relative;
  z-index: 30;
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  padding: 6px 0;
  min-height: 44px;
}

.brand:hover {
  color: #ffffff;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: var(--radius-sm);
  background: var(--link);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px 6px;
  background: #ffffff;
  border-radius: 1px;
  opacity: 0.9;
}

.brand-text {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 44px;
  border: 1px solid #39404d;
  border-radius: var(--radius-sm);
  background: #1b202a;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #e7eaf0;
  border-radius: 1px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.nav-group {
  position: relative;
  padding: 4px 10px 10px;
  border-radius: var(--radius-sm);
}

.nav-group-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.5;
}

.nav-group-note {
  display: block;
  font-size: 12px;
  color: #98a1b0;
  line-height: 1.5;
}

.nav-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 6px;
}

.nav-sub a {
  color: #d5dae3;
  font-size: 14px;
  text-decoration: none;
  padding: 6px 2px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.nav-sub a:hover {
  color: #ffffff;
  border-bottom-color: var(--link);
}

.nav-sub a.is-current {
  color: #ffffff;
  font-weight: 700;
  border-bottom-color: var(--hot);
}

.site-main {
  display: block;
}

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 26px 20px 56px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px 20px 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0 12px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 2px;
}

.breadcrumb a:hover {
  color: var(--link);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 700;
}

.page-header {
  padding: 4px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.page-title {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.page-description {
  font-size: 15px;
  color: var(--muted);
  max-width: 78ch;
}

.page-description a {
  font-weight: 700;
}

.section {
  margin-bottom: 44px;
}

.section-head {
  margin-bottom: 18px;
}

.section-title {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.section-desc,
.section-note {
  font-size: 14px;
  color: var(--muted);
  max-width: 82ch;
}

.site-footer {
  background: var(--ink);
  color: #b9c0cc;
  padding: 34px 20px 0;
  margin-top: 12px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 26px 32px;
  padding-bottom: 26px;
}

.footer-name {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-slogan {
  color: #dfe3ea;
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #98a1b0;
  max-width: 40ch;
}

.footer-title {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: 0;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #b9c0cc;
  font-size: 14px;
  text-decoration: none;
}

.footer-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copy {
  max-width: var(--shell);
  margin: 0 auto;
  border-top: 1px solid #262c37;
  padding: 16px 0 22px;
  font-size: 13px;
  color: #8b93a1;
}

/* ============================================================
   components —— 通用按钮、标签、状态、FAQ、字段、卡片
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: var(--link);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--link-dark);
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  text-decoration: none;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.tag-link:hover {
  background: var(--link);
  border-color: var(--link);
  color: #ffffff;
  text-decoration: none;
}

.tag-genre {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  background: #eef2fb;
  border: 1px solid #d3ddf3;
  color: #1c4f9e;
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-ongoing,
.is-ongoing {
  background: #eaf7ed;
  border-color: #bfe4c8;
  color: #1f7a33;
}

.status-complete,
.status-completed,
.is-complete {
  background: #eef1f6;
  border-color: #d3d9e3;
  color: #4b5563;
}

.status-paused,
.is-hiatus {
  background: #fdf0e8;
  border-color: #f3d3bd;
  color: #b03d0c;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
}

.faq-question {
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding: 15px 26px 15px 0;
  position: relative;
  line-height: 1.6;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 700;
  color: var(--link);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-answer {
  font-size: 15px;
  color: #333a45;
  padding: 0 0 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.faq-answer p {
  margin-bottom: 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.field-list,
.method-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.field-item,
.method-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.field-name,
.method-term {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}

.field-desc,
.method-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.index-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.index-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.index-item a {
  font-weight: 700;
  font-size: 15px;
}

.index-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   pages —— 首页
   ============================================================ */

.hero-section {
  margin-bottom: 46px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.hero-title {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 16px;
  color: #3b424e;
  margin-bottom: 18px;
  max-width: 60ch;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-figure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e7eaf0;
}

.hero-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

.today-updates {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.today-title {
  font-size: 17px;
  margin-bottom: 10px;
}

.today-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.today-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.today-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.today-date {
  color: var(--muted);
  font-size: 13px;
  min-width: 52px;
}

.today-updates .today-list a,
.today-updates .update-name {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.today-updates .today-list a:hover {
  color: var(--link);
  text-decoration: underline;
}

.today-chapter,
.today-updates .update-genre {
  font-size: 13px;
  color: var(--muted);
}

.today-note {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.genre-overview {
  margin-bottom: 46px;
}

.genre-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.genre-column {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.genre-name {
  font-size: 17px;
}

.genre-name a {
  color: var(--ink);
  text-decoration: none;
}

.genre-name a:hover {
  color: var(--link);
  text-decoration: underline;
}

.genre-scope {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.genre-count {
  font-size: 13px;
  color: var(--muted);
  margin-top: auto;
}

.count-num {
  font-weight: 700;
  color: var(--hot);
  font-size: 15px;
}

.cover-wall {
  margin-bottom: 46px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cover-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.cover-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.cover-figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e7eaf0;
}

.cover-card .cover-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-card.cover-tall .cover-figure img {
  aspect-ratio: 2 / 3;
}

.cover-name {
  font-size: 16px;
  line-height: 1.45;
}

.cover-name a {
  color: var(--ink);
  text-decoration: none;
}

.cover-name a:hover {
  color: var(--link);
  text-decoration: underline;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cover-link {
  font-size: 14px;
  margin-top: auto;
}

.rank-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.rank-column,
.editor-column {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.sub-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.rank-list,
.update-list {
  display: flex;
  flex-direction: column;
}

.rank-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-no {
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  border-radius: var(--radius-sm);
  background: #eef1f6;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.rank-item:nth-child(-n + 3) .rank-no {
  background: var(--hot);
  color: #ffffff;
}

.rank-item a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.rank-item a:hover {
  color: var(--link);
  text-decoration: underline;
}

.rank-genre {
  font-size: 13px;
  color: var(--muted);
}

.rank-more,
.update-more,
.read-more,
.feedback-more {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  margin-top: 10px;
}

.editor-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.editor-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fbfcfe;
}

.editor-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.editor-name a {
  color: var(--ink);
  text-decoration: none;
}

.editor-name a:hover {
  color: var(--link);
  text-decoration: underline;
}

.editor-reason {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.editor-fit {
  font-size: 13px;
  color: var(--muted-soft);
  margin-top: 6px;
}

.read-feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.read-column,
.feedback-column {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.reading-text,
.feedback-text {
  font-size: 15px;
  color: #333a45;
}

.reading-text {
  margin-bottom: 12px;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.feedback-list p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.site-index {
  margin-bottom: 20px;
}

/* ============================================================
   pages —— 题材分类
   ============================================================ */

.genre-index .genre-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.genre-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.genre-group-title-wrap {
  min-width: 0;
}

.genre-group-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.genre-group-range {
  font-size: 14px;
  color: var(--muted);
  max-width: 66ch;
}

.genre-group-count {
  font-size: 13px;
  color: var(--muted);
  background: #eef1f6;
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  white-space: nowrap;
}

.genre-entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px 22px;
}

.genre-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}

.entry-name {
  font-weight: 700;
  color: var(--ink);
}

.entry-status {
  font-size: 12px;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  white-space: nowrap;
}

.entry-status.status-ongoing {
  background: #eaf7ed;
  border-color: #bfe4c8;
  color: #1f7a33;
}

.entry-status.status-completed {
  background: #eef1f6;
  border-color: #d3d9e3;
  color: #4b5563;
}

.entry-status.status-paused {
  background: #fdf0e8;
  border-color: #f3d3bd;
  color: #b03d0c;
}

.entry-link {
  margin-left: auto;
  font-size: 13px;
  white-space: nowrap;
}

.scope-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.scope-figure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.scope-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e7eaf0;
}

.scope-caption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

.scope-body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.scope-subtitle {
  font-size: 16px;
  margin-bottom: 8px;
}

.scope-subtitle + p,
.scope-subtitle + ul {
  margin-bottom: 16px;
}

.scope-body p {
  font-size: 15px;
  color: #333a45;
}

.scope-points {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scope-points li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.7;
}

.scope-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--link);
}

.status-table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}

.status-caption {
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  padding: 12px 16px 0;
  caption-side: top;
}

.status-table th,
.status-table td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
}

.status-table thead th {
  background: #f1f3f7;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.status-table tbody th {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.status-table tbody tr:last-child th,
.status-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-figure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.status-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: #e7eaf0;
}

.status-figure .status-caption {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   pages —— 最近更新
   ============================================================ */

.update-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 18px;
}

.update-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.update-row:last-child {
  border-bottom: 0;
}

.update-cover {
  grid-row: span 2;
  width: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e7eaf0;
}

.update-cover img {
  width: 60px;
  height: 80px;
  object-fit: cover;
}

.update-date {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.update-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  min-width: 0;
}

.update-work {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

.update-work:hover {
  color: var(--link);
  text-decoration: underline;
}

.update-genre {
  font-size: 13px;
  color: var(--muted);
}

.update-chapter {
  font-size: 13px;
  color: var(--hot);
  font-weight: 700;
}

.update-entry {
  font-size: 13px;
  white-space: nowrap;
}

.updates-fields .field-list {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.hint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hint-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hint-title {
  font-size: 16px;
}

.hint-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.hint-link {
  font-size: 14px;
  margin-top: auto;
}

.reading-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.reading-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.reading-subtitle {
  font-size: 16px;
  margin-bottom: 12px;
}

.reading-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: read-step;
}

.reading-step {
  font-size: 14px;
  color: #333a45;
  line-height: 1.75;
  padding-left: 30px;
  position: relative;
  counter-increment: read-step;
}

.reading-step::before {
  content: counter(read-step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  background: #eef1f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   pages —— 人气榜单
   ============================================================ */

.ranking-hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 34px;
}

.ranking-hero img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  background: #e7eaf0;
}

.ranking-hero-caption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 20px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 40px 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-item:last-child {
  border-bottom: 0;
}

.ranking-pos {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #eef1f6;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ranking-item:nth-child(-n + 3) .ranking-pos {
  background: var(--hot);
  color: #ffffff;
}

.ranking-thumb {
  width: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e7eaf0;
}

.ranking-thumb img {
  width: 72px;
  height: 96px;
  object-fit: cover;
}

.ranking-body {
  min-width: 0;
}

.ranking-name {
  font-size: 16px;
  margin-bottom: 4px;
}

.ranking-name a {
  color: var(--ink);
  text-decoration: none;
}

.ranking-name a:hover {
  color: var(--link);
  text-decoration: underline;
}

.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.tag-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.ranking-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.ranking-entry {
  font-size: 14px;
  white-space: nowrap;
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pick-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pick-name {
  font-size: 17px;
}

.pick-name a {
  color: var(--ink);
  text-decoration: none;
}

.pick-name a:hover {
  color: var(--link);
  text-decoration: underline;
}

.pick-reason {
  font-size: 14px;
  color: #333a45;
  line-height: 1.75;
}

.pick-audience {
  font-size: 13px;
  color: var(--muted-soft);
}

.pick-entry {
  font-size: 14px;
  margin-top: auto;
}

.ranking-method .method-list {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.section-index .index-list {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

/* ============================================================
   pages —— 阅读说明
   ============================================================ */

.guide-fields .field-table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(150px, 240px) minmax(0, 1fr);
  gap: 6px 22px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.field-row:last-child {
  border-bottom: 0;
}

.field-key {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.field-value {
  min-width: 0;
}

.field-value p {
  font-size: 15px;
  color: #333a45;
  line-height: 1.75;
}

.field-example {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.guide-figure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  background: #e7eaf0;
}

.guide-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.order-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.order-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--link);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.order-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.order-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-feedback .feedback-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.feedback-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.guide-feedback .feedback-item p {
  font-size: 14px;
  color: #333a45;
  line-height: 1.75;
}

.feedback-prep {
  color: var(--muted) !important;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.related-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.related-item a {
  font-weight: 700;
  font-size: 15px;
}

/* ============================================================
   pages —— 404
   ============================================================ */

.error-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 20px 72px;
}

.error-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  margin-bottom: 26px;
}

.error-code {
  font-size: 44px;
  font-weight: 700;
  color: var(--hot);
  line-height: 1.1;
  margin-bottom: 8px;
}

.error-title {
  font-size: 26px;
  margin-bottom: 10px;
}

.error-text {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 60ch;
}

.error-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius);
  background: var(--link);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.error-home:hover {
  background: var(--link-dark);
  color: #ffffff;
  text-decoration: none;
}

.error-links-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.error-links-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.error-links-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}

.error-links-list a:hover {
  border-color: var(--link);
  color: var(--link);
}

/* ============================================================
   responsive —— 960px / 640px 两档断点
   ============================================================ */

@media (max-width: 960px) {
  .header-inner {
    gap: 10px 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #2b323d;
    margin-top: 8px;
    max-height: 70vh;
    overflow-y: auto;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-group {
    padding: 12px 4px;
    border-bottom: 1px solid #262c37;
  }

  .nav-sub {
    gap: 4px 18px;
    margin-top: 8px;
  }

  .nav-sub a {
    min-height: 44px;
    font-size: 15px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .hero-title {
    font-size: 28px;
  }

  .genre-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-editor-layout,
  .read-feedback-layout,
  .reading-cols,
  .scope-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hint-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-item {
    grid-template-columns: 34px 64px minmax(0, 1fr);
  }

  .ranking-thumb,
  .ranking-thumb img {
    width: 64px;
  }

  .ranking-thumb img {
    height: 86px;
  }

  .ranking-entry {
    grid-column: 3;
    justify-self: start;
  }

  .update-row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
  }

  .update-cover,
  .update-cover img {
    width: 56px;
  }

  .update-cover img {
    height: 74px;
  }

  .update-entry {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .fact-bar,
  .site-factbar {
    font-size: 12px;
    padding: 7px 14px;
    text-align: left;
  }

  .header-inner {
    padding: 10px 14px;
  }

  .home-main,
  .inner-main {
    padding: 18px 14px 44px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 20px;
  }

  .section {
    margin-bottom: 34px;
  }

  .genre-columns,
  .cover-grid,
  .hint-grid,
  .pick-grid,
  .order-steps,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-card.cover-tall .cover-figure img,
  .cover-card .cover-figure img {
    aspect-ratio: 3 / 4;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .genre-entry-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-entry {
    align-items: baseline;
  }

  .entry-link {
    margin-left: 0;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .status-table {
    min-width: 560px;
  }

  .update-list,
  .ranking-list {
    padding: 4px 14px;
  }

  .update-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .update-cover,
  .update-cover img {
    width: 52px;
  }

  .update-cover img {
    height: 70px;
  }

  .update-date,
  .update-entry {
    grid-column: 2;
  }

  .update-row > .status {
    grid-column: 2;
    justify-self: start;
  }

  .ranking-item {
    grid-template-columns: 30px 56px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .ranking-thumb,
  .ranking-thumb img {
    width: 56px;
  }

  .ranking-thumb img {
    height: 76px;
  }

  .ranking-entry {
    grid-column: 3;
  }

  .error-main {
    padding: 32px 14px 52px;
  }

  .error-block {
    padding: 22px 18px;
  }

  .error-code {
    font-size: 36px;
  }

  .error-title {
    font-size: 22px;
  }

  .site-footer {
    padding: 26px 14px 0;
  }

  .footer-inner {
    gap: 20px;
  }
}

@media print {
  .nav-toggle,
  .hero-actions,
  .footer-list,
  .breadcrumb {
    display: none;
  }

  body.site-body {
    background: #ffffff;
  }
}
