:root {
  --paper: #f7f6f3;
  --ink: #1c1b19;
  --ink-soft: #5c5952;
  --red: #c0392b;
  --line: #dedbd4;
  --card: #ffffff;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow-card: 0 1px 2px rgba(28, 27, 25, 0.04);
  --wrap: 1120px;
  --gap: 24px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--red);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ===== layout: 全站骨架 ===== */

.site-header {
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  padding-left: 12px;
  border-left: 4px solid var(--red);
}

.brand-slogan {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--card);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
}

.site-nav {
  flex: 0 1 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover {
  color: var(--ink);
  border-bottom-color: var(--line);
}

.nav-link.is-current {
  color: var(--red);
  font-weight: 700;
  border-bottom-color: var(--red);
}

.site-main {
  display: block;
}

.home-main,
.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.inner-main {
  padding-top: 20px;
}

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 4px 0 16px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 700;
}

.page-header {
  padding: 4px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-description {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 820px;
}

.page-description a {
  color: var(--red);
  border-bottom: 1px solid rgba(192, 57, 43, 0.35);
}

.page-lead {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 820px;
  margin-top: 10px;
}

.page-header .page-description + .page-title {
  margin-top: 10px;
}

.site-footer {
  background-color: #f1efe9;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 20px 12px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  max-width: 320px;
}

.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  padding-left: 10px;
  border-left: 4px solid var(--red);
  margin-bottom: 10px;
}

.footer-slogan {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-list a {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-list a:hover {
  color: var(--red);
}

.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 20px 28px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* ===== layout: 内页两栏 ===== */

.page-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.layout-shell.sidebar-left {
  grid-template-columns: 268px minmax(0, 1fr);
}

.ranking-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

/* ===== components: 通用区块标题 ===== */

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  padding-left: 12px;
  border-left: 4px solid var(--red);
  margin-bottom: 8px;
}

.section-desc,
.section-note,
.section-intro {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.section-note,
.section-intro {
  margin-bottom: 18px;
}

.section-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  border-bottom: 1px solid rgba(192, 57, 43, 0.4);
  padding-bottom: 2px;
}

.section-more:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.column-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.subsection-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

/* ===== components: 卡片与条目通用 ===== */

.genre-card,
.cover-card,
.work-card,
.feature-card,
.topic-card,
.scope-card,
.featured-item,
.rank-item,
.ranking-item,
.update-item,
.choice-item,
.note-item,
.reading-order-item,
.feedback-item {
  position: relative;
}

.genre-card:hover,
.cover-card:hover,
.work-card:hover,
.feature-card:hover,
.topic-card:hover,
.scope-card:hover,
.featured-item:hover {
  border-color: #c8c4ba;
}

/* ===== pages: 首页 ===== */

.fact-bar {
  background-color: #efece5;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  padding: 8px 20px;
  line-height: 1.6;
}

.hero-index {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 32px;
  padding: 34px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--ink);
  margin-bottom: 14px;
}

.hero-summary {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 20px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-tag a {
  display: inline-block;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--ink);
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.hero-tag a:hover {
  color: var(--red);
  border-color: var(--red);
}

.hero-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--card);
  box-shadow: var(--shadow-card);
}

.hero-visual img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.hero-visual figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.hero-side-block {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.hero-side-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.hero-side-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.hero-side-item:last-child {
  border-bottom: none;
}

.side-date {
  color: var(--ink-soft);
  font-size: 13px;
}

.side-name {
  color: var(--ink);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-genre {
  color: var(--red);
  font-size: 12px;
  border: 1px solid rgba(192, 57, 43, 0.4);
  border-radius: var(--radius-sm);
  padding: 1px 7px;
  white-space: nowrap;
}

.hero-side-rank .side-name {
  font-weight: 400;
}

.side-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
}

.side-more:hover {
  color: var(--ink);
}

.genre-overview,
.cover-wall,
.update-log,
.rank-feature,
.guide-feedback,
.site-index {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.site-index {
  border-bottom: none;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.genre-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease;
}

.genre-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.genre-scope {
  font-size: 14px;
  color: var(--ink-soft);
  flex: 1 1 auto;
  margin-bottom: 14px;
}

.genre-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  align-self: flex-start;
  border-bottom: 1px solid rgba(192, 57, 43, 0.4);
}

.genre-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cover-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cover-card:hover {
  box-shadow: 0 4px 12px rgba(28, 27, 25, 0.07);
}

.cover-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.cover-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding: 14px 16px 6px;
}

.cover-genre {
  font-size: 12px;
  color: var(--red);
  padding: 0 16px 8px;
}

.cover-note {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 0 16px 16px;
  line-height: 1.65;
}

.update-list {
  border-top: 1px solid var(--line);
}

.update-item {
  display: grid;
  grid-template-columns: 96px 180px 88px minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.update-item:hover {
  background-color: #fbfaf8;
}

.update-date {
  color: var(--ink-soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.update-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.update-genre {
  font-size: 12px;
  color: var(--red);
  border: 1px solid rgba(192, 57, 43, 0.4);
  border-radius: var(--radius-sm);
  padding: 1px 7px;
  justify-self: start;
  white-space: nowrap;
}

.update-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
  min-width: 0;
}

.rank-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.rank-column {
  min-width: 0;
}

.rank-list {
  border-top: 1px solid var(--line);
}

.rank-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 180px) auto minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.rank-no {
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.rank-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-genre {
  font-size: 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1px 7px;
  justify-self: start;
  white-space: nowrap;
}

.rank-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
  min-width: 0;
}

.feature-column {
  min-width: 0;
}

.feature-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  transition: border-color 0.18s ease;
}

.feature-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 10px;
}

.feature-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  border-bottom: 1px solid rgba(192, 57, 43, 0.4);
}

.feature-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.guide-feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.guide-column,
.feedback-column {
  min-width: 0;
}

.field-list {
  border-top: 1px solid var(--line);
}

.field-term {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  padding: 12px 0 4px;
}

.field-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.feedback-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 14px;
}

.feedback-list {
  border-top: 1px solid var(--line);
}

.feedback-item {
  font-size: 14px;
  color: var(--ink);
  padding: 11px 0 11px 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.feedback-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 20px;
  width: 6px;
  height: 6px;
  background-color: var(--red);
  border-radius: 50%;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.index-cell {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.18s ease;
}

.index-cell:hover {
  border-color: #c8c4ba;
}

.index-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.index-name a {
  color: var(--ink);
}

.index-name a:hover {
  color: var(--red);
}

.index-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ===== pages: 题材分类 ===== */

.filter-panel {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.panel-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
}

.filter-chip {
  flex: 1 1 auto;
  min-height: 44px;
  text-align: left;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink);
  background-color: #fbfaf8;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.filter-chip:hover {
  border-color: var(--red);
  color: var(--red);
}

.filter-chip.is-active {
  background-color: #fdf3f1;
  border-color: var(--red);
  color: var(--red);
  font-weight: 700;
}

.filter-count {
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.filter-reset-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

.filter-reset-note a {
  color: var(--red);
  border-bottom: 1px solid rgba(192, 57, 43, 0.4);
}

.result-panel {
  min-width: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.work-card:hover {
  box-shadow: 0 4px 12px rgba(28, 27, 25, 0.07);
}

.work-cover {
  border-bottom: 1px solid var(--line);
}

.work-cover img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.work-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  padding: 12px 14px 4px;
}

.work-genre {
  font-size: 12px;
  color: var(--red);
  padding: 0 14px 8px;
}

.work-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
  padding: 0 14px 14px;
}

.choice-note {
  margin-top: 26px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.choice-list {
  counter-reset: choice;
}

.choice-item {
  counter-increment: choice;
  position: relative;
  padding: 8px 0 8px 30px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  border-bottom: 1px dashed var(--line);
}

.choice-item:last-child {
  border-bottom: none;
}

.choice-item::before {
  content: counter(choice);
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background-color: var(--red);
  border-radius: 50%;
}

.scope-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.scope-column {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.scope-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.scope-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.scope-tips {
  border-top: 1px solid var(--line);
}

.scope-tip {
  font-size: 14px;
  color: var(--ink);
  padding: 11px 0 11px 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.scope-tip::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 20px;
  width: 6px;
  height: 6px;
  background-color: var(--red);
  border-radius: 50%;
}

/* ===== pages: 最近更新 ===== */

.field-legend {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 36px;
}

.content-media-inline {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 640px;
}

.content-media-inline img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.content-media-inline figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

.field-legend .field-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  border-top: none;
}

.field-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.field-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
}

.field-legend .field-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  padding-bottom: 0;
  border-bottom: none;
}

.update-log .update-list {
  border-top: 1px solid var(--line);
}

.update-log .update-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
}

.update-log .update-item:hover {
  background-color: #fbfaf8;
}

.update-body {
  min-width: 0;
}

.update-log .update-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.update-log .update-genre {
  font-size: 12px;
  color: var(--red);
  border: 1px solid rgba(192, 57, 43, 0.4);
  border-radius: var(--radius-sm);
  padding: 1px 7px;
  white-space: nowrap;
}

.update-log .update-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.update-notes {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.note-list {
  border-top: 1px solid var(--line);
}

.note-item {
  font-size: 14px;
  color: var(--ink);
  padding: 11px 0 11px 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.note-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 20px;
  width: 6px;
  height: 6px;
  background-color: var(--red);
  border-radius: 50%;
}

/* ===== pages: 人气榜单 ===== */

.ranking-list-section {
  min-width: 0;
}

.ranking-list {
  border-top: 1px solid var(--line);
}

.ranking-item {
  display: grid;
  grid-template-columns: 40px 92px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.ranking-item:hover {
  background-color: #fbfaf8;
}

.rank-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.rank-cover {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--card);
}

.rank-cover img {
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.rank-body {
  min-width: 0;
}

.rank-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.rank-body .rank-genre {
  display: inline-block;
  font-size: 12px;
  color: var(--red);
  border: 1px solid rgba(192, 57, 43, 0.4);
  border-radius: var(--radius-sm);
  padding: 1px 7px;
  margin-bottom: 8px;
}

.rank-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.68;
}

.ranking-aside {
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.aside-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.aside-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.topic-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
  transition: border-color 0.18s ease;
}

.topic-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.topic-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 10px;
}

.topic-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  border-bottom: 1px solid rgba(192, 57, 43, 0.4);
}

.topic-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.topic-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 6px;
}

.topic-figure img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.topic-caption {
  font-size: 12px;
  color: var(--ink-soft);
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

.reading-order-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.reading-order-list {
  counter-reset: order;
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}

.reading-order-item {
  counter-increment: order;
  position: relative;
  padding: 12px 0 12px 32px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.75;
  border-bottom: 1px solid var(--line);
}

.reading-order-item::before {
  content: counter(order);
  position: absolute;
  left: 0;
  top: 14px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background-color: var(--ink);
  border-radius: 50%;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-link {
  display: inline-block;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--ink);
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.related-link:hover {
  color: var(--red);
  border-color: var(--red);
}

/* ===== pages: 阅读说明 ===== */

.guide-tree {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.tree-list {
  border-top: 1px solid var(--line);
}

.tree-item {
  border-bottom: 1px solid var(--line);
}

.tree-link {
  display: block;
  padding: 11px 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.tree-link:hover {
  color: var(--red);
}

.tree-link.is-current {
  color: var(--red);
  padding-left: 14px;
  position: relative;
}

.tree-link.is-current::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 6px;
  height: 6px;
  background-color: var(--red);
  border-radius: 50%;
}

.tree-sublist {
  padding: 0 0 10px 14px;
}

.tree-sublink {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.tree-sublink:hover {
  color: var(--red);
}

.guide-content {
  min-width: 0;
}

.guide-section {
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.guide-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.guide-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  background-color: var(--card);
}

.guide-figure img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.guide-figure figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

.field-table-wrap {
  margin-bottom: 24px;
}

.field-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.field-caption {
  text-align: left;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 0;
}

.field-table th,
.field-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background-color: #fbfaf8;
  white-space: nowrap;
}

.field-table tbody td {
  color: var(--ink-soft);
  line-height: 1.7;
}

.field-table tbody tr:last-child td {
  border-bottom: none;
}

.entry-structure p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 10px;
}

.entry-structure a {
  color: var(--red);
  border-bottom: 1px solid rgba(192, 57, 43, 0.4);
}

.entry-structure a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.path-steps {
  counter-reset: path;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.path-step {
  counter-increment: path;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 16px 46px;
  position: relative;
  min-width: 0;
}

.path-step::before {
  content: counter(path);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background-color: var(--red);
  border-radius: 50%;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.scope-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease;
}

.scope-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.scope-card .scope-desc {
  flex: 1 1 auto;
  margin-bottom: 12px;
}

.scope-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  align-self: flex-start;
  border-bottom: 1px solid rgba(192, 57, 43, 0.4);
}

.scope-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.featured-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.featured-item {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.18s ease;
}

.featured-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.featured-meta {
  font-size: 12px;
  color: var(--red);
  margin-bottom: 8px;
}

.featured-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  flex: 1 1 auto;
  margin-bottom: 12px;
}

.featured-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  align-self: flex-start;
  border-bottom: 1px solid rgba(192, 57, 43, 0.4);
}

.featured-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.feedback-entry {
  background-color: #fbfaf8;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.feedback-entry > p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 12px;
}

.feedback-entry .feedback-list {
  margin-bottom: 12px;
}

.feedback-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  background-color: var(--card);
}

.faq-question {
  cursor: pointer;
  list-style: none;
  padding: 15px 40px 15px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  min-height: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
}

.faq-question:hover {
  color: var(--red);
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* ===== pages: 404 ===== */

.error-panel {
  max-width: 640px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  box-shadow: var(--shadow-card);
}

.error-code {
  font-size: 40px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.1;
  margin-bottom: 12px;
}

.error-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.error-text {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.error-link,
.error-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--ink);
  background-color: #fbfaf8;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.error-link:hover,
.error-button:hover {
  color: var(--red);
  border-color: var(--red);
}

.error-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ===== responsive ===== */

@media (max-width: 1024px) {
  .hero-index {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-visual img {
    height: 260px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-shell.sidebar-left {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 24px;
  }

  .ranking-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }

  .field-legend .field-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .layout-shell.sidebar-left,
  .ranking-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .guide-tree {
    order: 2;
  }

  .guide-content {
    order: 1;
  }

  .filter-panel {
    order: 2;
  }

  .result-panel {
    order: 1;
  }

  .ranking-list-section {
    order: 1;
  }

  .ranking-aside {
    order: 2;
  }
}

@media (max-width: 640px) {
  body.site-body {
    font-size: 15px;
  }

  .header-inner {
    min-height: 60px;
    padding: 0 16px;
    flex-wrap: wrap;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    min-height: 44px;
    padding: 11px 6px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-link:hover {
    border-bottom-color: var(--line);
  }

  .nav-link.is-current {
    border-bottom-color: var(--red);
  }

  .home-main,
  .inner-main,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero-title {
    font-size: 27px;
  }

  .hero-visual img {
    height: 200px;
  }

  .hero-side-item {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .genre-grid,
  .cover-grid,
  .work-grid,
  .index-grid,
  .scope-columns,
  .scope-grid,
  .featured-list,
  .path-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-card img,
  .work-cover img {
    height: 180px;
  }

  .update-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .update-log .update-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .rank-item {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px 10px;
  }

  .rank-item .rank-genre {
    grid-column: 2;
  }

  .rank-item .rank-note {
    grid-column: 2;
  }

  .ranking-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-cover {
    grid-column: 2;
    max-width: 180px;
  }

  .rank-body {
    grid-column: 2;
  }

  .rank-cover img {
    height: 110px;
  }

  .field-legend {
    padding: 18px;
  }

  .field-legend .field-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-media-inline img {
    height: 170px;
  }

  .guide-figure img {
    height: 180px;
  }

  .field-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 16px 10px;
  }

  .footer-copy {
    padding: 16px 16px 24px;
  }

  .error-panel {
    padding: 26px 20px;
  }

  .error-title {
    font-size: 24px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-link,
  .error-button {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
