:root {
  --bg-page: #F8F6F1;
  --bg-card: #FFFFFF;
  --ink: #1E2A38;
  --ink-soft: #4A5768;
  --ink-mute: #6E7A8A;
  --accent: #E4573D;
  --accent-dark: #C64429;
  --accent-soft: #FDEDE9;
  --teal: #2F6F6B;
  --teal-soft: #E6F0EF;
  --gold: #F0C24B;
  --gold-soft: #FBF3DC;
  --line: #D8D3C8;
  --line-soft: #ECE8E0;
  --radius-card: 8px;
  --radius-btn: 8px;
  --radius-pill: 999px;
  --container: 1120px;
  --gap-block: 64px;
  --shadow-card: 0 1px 2px rgba(30, 42, 56, 0.05);
  --shadow-hover: 0 8px 20px rgba(30, 42, 56, 0.10);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ============ base ============ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============ layout ============ */

.site-body {
  display: block;
  min-height: 100vh;
  background-color: var(--bg-page);
}

.site-main {
  display: block;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.inner-main {
  padding-bottom: var(--gap-block);
}

/* ============ header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container);
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.brand:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
}

.primary-nav {
  flex: 1 1 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-list > li {
  flex: 0 0 auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 64px;
  padding: 0 12px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 700;
}

.nav-link.is-current::after {
  transform: scaleX(1);
}

/* ============ footer ============ */

.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--line-soft);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 40px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 36px;
}

.footer-brand-name {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.footer-slogan {
  margin-top: 8px;
  max-width: 320px;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col-title {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px 32px;
  border-top: 1px solid var(--line-soft);
}

.footer-note {
  color: var(--ink-mute);
  font-size: 13px;
  line-height: 1.8;
}

.footer-copyright {
  margin-top: 6px;
  color: var(--ink-mute);
  font-size: 13px;
}

/* ============ shared components ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #FFFFFF;
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.tag-genre {
  background-color: var(--accent-soft);
  color: var(--accent-dark);
}

.tag-status {
  background-color: var(--teal-soft);
  color: var(--teal);
}

.tag-ongoing {
  background-color: var(--teal-soft);
  color: var(--teal);
}

.tag-completed {
  background-color: #EEF1F5;
  color: var(--ink-soft);
}

.tag-paused {
  background-color: var(--gold-soft);
  color: #8A6A12;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.link-more::after {
  content: "→";
  font-size: 14px;
  transition: transform 0.2s ease;
}

.link-more:hover {
  color: var(--accent-dark);
}

.link-more:hover::after {
  transform: translateX(3px);
}

.breadcrumb {
  display: block;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 13px;
  color: var(--ink-mute);
}

.breadcrumb a {
  color: var(--ink-mute);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item {
  color: var(--ink-mute);
}

.breadcrumb-item.is-current {
  color: var(--ink-soft);
}

.page-header {
  padding: 24px 0 8px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}

.page-head {
  padding: 0 0 32px;
  border-bottom: 1px solid var(--line-soft);
}

.page-lead {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.section-title {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
}

.section-note,
.section-intro,
.section-lead {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

/* ============ index: hero ============ */

.hero {
  padding: 40px 0 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  padding: 40px 32px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  font-size: 34px;
  line-height: 1.3;
}

.hero-lead {
  margin-top: 16px;
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

.hero-fact {
  position: relative;
  padding-left: 14px;
  color: var(--ink-soft);
  font-size: 14px;
}

.hero-fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

.hero-visual {
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line-soft);
}

.hero-caption {
  margin-top: 10px;
  color: var(--ink-mute);
  font-size: 13px;
}

/* ============ index: genre quickbar ============ */

.genre-quickbar {
  margin-top: 32px;
  padding: 20px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.quickbar-title {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
}

.quickbar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quickbar-tag {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  background-color: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

.quickbar-tag:hover {
  background-color: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* ============ index: main layout ============ */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  margin-top: 48px;
  align-items: start;
}

.cover-wall {
  min-width: 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-desc {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cover-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.cover-figure {
  overflow: hidden;
  background-color: var(--bg-page);
}

.cover-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cover-card:hover .cover-figure img {
  transform: scale(1.04);
}

.cover-title {
  margin: 14px 16px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.cover-author {
  margin: 6px 16px 0;
  color: var(--ink-mute);
  font-size: 13px;
}

.cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 16px 16px;
}

.cover-brief {
  margin: 0 16px 16px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.section-more {
  margin-top: 24px;
}

/* ============ index: status rail ============ */

.status-rail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.rail-block {
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.rail-title {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
}

.rail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rail-item {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line-soft);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.rail-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.rail-status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rail-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

.rail-more {
  margin-top: 16px;
}

/* ============ index: topic teaser ============ */

.topic-teaser {
  margin-top: var(--gap-block);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.topic-name {
  font-size: 17px;
  font-weight: 700;
}

.topic-scene {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.topic-reason {
  margin-top: 10px;
  color: var(--ink-mute);
  font-size: 13px;
  line-height: 1.75;
}

.topic-more {
  margin-top: auto;
  padding-top: 16px;
}

/* ============ index: serial status ============ */

.serial-status {
  margin-top: var(--gap-block);
}

.status-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.status-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
}

.status-name a {
  color: var(--ink);
}

.status-name a:hover {
  color: var(--accent);
}

/* ============ index: ranking basis ============ */

.ranking-basis {
  margin-top: var(--gap-block);
}

.basis-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.basis-item {
  padding: 22px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-card);
}

.basis-name {
  font-size: 16px;
  font-weight: 700;
}

.basis-text {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* ============ index: reading notes + faq ============ */

.reading-notes {
  margin-top: var(--gap-block);
}

.notes-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.note-block {
  padding: 22px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.note-title {
  font-size: 16px;
  font-weight: 700;
}

.note-text {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.faq-question {
  position: relative;
  padding: 16px 44px 16px 20px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* ============ library page ============ */

.page-library .toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.toolbar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.toolbar-label {
  flex: 0 0 auto;
  color: var(--ink-mute);
  font-size: 13px;
  font-weight: 600;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  background-color: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip.is-active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.toolbar-modes {
  justify-content: flex-start;
}

.mode-switch {
  display: inline-flex;
  gap: 0;
  padding: 3px;
  background-color: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
}

.mode-btn {
  min-height: 34px;
  padding: 0 16px;
  background-color: transparent;
  border: none;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.mode-btn.is-active {
  background-color: var(--bg-card);
  color: var(--accent);
  box-shadow: var(--shadow-card);
}

.mode-live {
  color: var(--ink-mute);
  font-size: 13px;
}

.library-body {
  margin-top: 40px;
}

.library-body .cover-grid {
  margin-top: 20px;
}

.compact-list {
  margin-top: 20px;
}

.list-table {
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.list-caption {
  padding: 16px 20px;
  color: var(--ink-mute);
  font-size: 13px;
  text-align: left;
}

.list-table th,
.list-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  text-align: left;
}

.list-table thead th {
  background-color: var(--bg-page);
  color: var(--ink);
  font-weight: 700;
}

.list-table tbody tr:last-child th,
.list-table tbody tr:last-child td {
  border-bottom: none;
}

.list-table tbody td {
  color: var(--ink-soft);
}

.list-mode-note,
.browse-method,
.related {
  margin-top: var(--gap-block);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.note-card {
  padding: 22px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.method-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.method-item {
  padding: 22px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.method-name {
  font-size: 16px;
  font-weight: 700;
}

.method-text {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.related-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.related-name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.related-card:hover .related-name {
  color: var(--accent);
}

.related-text {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* ============ genres page ============ */

.genre-anchor {
  margin-top: 32px;
  padding: 16px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.genre-anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-anchor-list a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  background-color: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

.genre-anchor-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.genre-block {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
  margin-top: 40px;
  padding: 28px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.genre-copy {
  min-width: 0;
}

.genre-name {
  font-size: 20px;
  font-weight: 700;
}

.genre-desc {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.genre-fit {
  margin-top: 12px;
  padding: 12px 16px;
  background-color: var(--bg-page);
  border-left: 3px solid var(--teal);
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.genre-picks {
  min-width: 0;
}

.genre-figure {
  overflow: hidden;
  border-radius: var(--radius-card);
  background-color: var(--bg-page);
}

.genre-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.genre-figure-cap {
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 12px;
}

.genre-pick-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.genre-pick-list li {
  padding-left: 16px;
  position: relative;
}

.genre-pick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

.genre-pick-list a {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.genre-pick-list a:hover {
  color: var(--accent);
}

.genre-advice {
  margin-top: var(--gap_block, 64px);
  margin-top: var(--gap-block);
}

.advice-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.advice-step {
  padding: 22px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.advice-title {
  font-size: 16px;
  font-weight: 700;
}

.advice-step p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.related-link {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.related-link:hover {
  color: var(--accent);
}

.related-desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* ============ ranking page ============ */

.basis {
  margin-top: 40px;
}

.basis .basis-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.basis .basis-item {
  padding: 22px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-card);
}

.basis .basis-item h3 {
  font-size: 16px;
  font-weight: 700;
}

.basis .basis-item p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.pick-groups {
  margin-top: var(--gap-block);
}

.pick-group {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
  margin-top: 24px;
  padding: 26px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.pick-figure {
  overflow: hidden;
  border-radius: var(--radius-card);
  background-color: var(--bg-page);
}

.pick-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.pick-copy {
  min-width: 0;
}

.pick-copy h3 {
  font-size: 18px;
  font-weight: 700;
}

.pick-scene {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.pick-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.pick-links li {
  padding-left: 16px;
  position: relative;
}

.pick-links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

.pick-links a {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.pick-links a:hover {
  color: var(--accent);
}

.sorting-note {
  margin-top: var(--gap-block);
  padding: 26px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-card);
}

.sorting-note h2 {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 700;
}

.sorting-note p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.page-ranking .related {
  margin-top: var(--gap-block);
}

.page-ranking .related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.page-ranking .related-card {
  padding: 0;
  background-color: transparent;
  border: none;
}

.page-ranking .related-card a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.page-ranking .related-card a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.page-ranking .related-name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.page-ranking .related-card a:hover .related-name {
  color: var(--accent);
}

.page-ranking .related-desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* ============ status page ============ */

.status-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.status-column {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.status-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.status-column-title {
  font-size: 18px;
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.status-badge-ongoing {
  background-color: var(--teal-soft);
  color: var(--teal);
}

.status-badge-finished {
  background-color: #EEF1F5;
  color: var(--ink-soft);
}

.status-badge-paused {
  background-color: var(--gold-soft);
  color: #8A6A12;
}

.status-figure {
  overflow: hidden;
  border-radius: var(--radius-card);
  background-color: var(--bg-page);
}

.status-figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.status-column-text {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.status-entry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-soft);
}

.status-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-entry-name {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.status-entry-genre {
  color: var(--ink-mute);
  font-size: 12px;
}

.follow-method,
.status-legend {
  margin-top: var(--gap-block);
}

.follow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.follow-step {
  padding: 22px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.follow-step-title {
  font-size: 16px;
  font-weight: 700;
}

.follow-step-text {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.legend-table {
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.legend-caption {
  padding: 16px 20px;
  color: var(--ink-mute);
  font-size: 13px;
  text-align: left;
}

.legend-table th,
.legend-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  text-align: left;
}

.legend-table thead th {
  background-color: var(--bg-page);
  color: var(--ink);
  font-weight: 700;
}

.legend-table tbody th {
  width: 160px;
}

.legend-table tbody td {
  color: var(--ink-soft);
}

.legend-table tbody tr:last-child th,
.legend-table tbody tr:last-child td {
  border-bottom: none;
}

.page-status .related {
  margin-top: var(--gap-block);
}

.page-status .related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.page-status .related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.page-status .related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.page-status .related-link {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.page-status .related-card:hover .related-link {
  color: var(--accent);
}

.page-status .related-text {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* ============ topics page ============ */

.topic-anchor {
  margin-top: 32px;
  padding: 16px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.topic-anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-anchor-link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  background-color: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

.topic-anchor-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.topic-list {
  margin-top: 8px;
}

.topic-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 32px;
  padding: 28px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.topic-copy {
  min-width: 0;
}

.topic-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  background-color: var(--gold-soft);
  border-radius: var(--radius-pill);
  color: #8A6A12;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.topic-copy .topic-name {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 700;
}

.topic-copy .topic-scene {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.topic-copy .topic-reason {
  margin-top: 12px;
  padding: 12px 16px;
  background-color: var(--bg-page);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.topic-picks {
  min-width: 0;
}

.topic-figure {
  overflow: hidden;
  border-radius: var(--radius-card);
  background-color: var(--bg-page);
}

.topic-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.topic-figure-caption {
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 12px;
}

.topic-picks-title {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
}

.topic-order {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  counter-reset: topic-order;
}

.topic-order-item {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  counter-increment: topic-order;
}

.topic-order-item::before {
  content: counter(topic-order);
  position: absolute;
  left: 0;
  top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.topic-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.topic-entry::after {
  content: "→";
  transition: transform 0.2s ease;
}

.topic-entry:hover {
  color: var(--accent-dark);
}

.topic-entry:hover::after {
  transform: translateX(3px);
}

.topic-usage {
  margin-top: var(--gap-block);
}

.topic-usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.topic-usage-item {
  padding: 22px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.topic-usage-title {
  font-size: 16px;
  font-weight: 700;
}

.topic-usage-text {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.page-topics .related {
  margin-top: var(--gap-block);
}

.page-topics .related-card {
  display: flex;
  flex-direction: column;
}

.page-topics .related-card-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.page-topics .related-card:hover .related-card-title {
  color: var(--accent);
}

.page-topics .related-card-text {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* ============ guide page ============ */

.entry-structure,
.genre-label,
.follow-rhythm,
.scope-note,
.faq {
  margin-top: var(--gap-block);
}

.entry-structure-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
}

.guide-figure {
  overflow: hidden;
  border-radius: var(--radius-card);
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
}

.guide-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 12px 18px;
  color: var(--ink-mute);
  font-size: 13px;
  line-height: 1.7;
}

.guide-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field-item {
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.field-name {
  font-size: 15px;
  font-weight: 700;
}

.field-desc {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.label-table {
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.label-table-caption {
  padding: 16px 20px;
  color: var(--ink-mute);
  font-size: 13px;
  text-align: left;
}

.label-table th,
.label-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  text-align: left;
}

.label-table thead th {
  background-color: var(--bg-page);
  color: var(--ink);
  font-weight: 700;
}

.label-table tbody th {
  width: 180px;
  color: var(--ink);
  font-weight: 600;
}

.label-table tbody td {
  color: var(--ink-soft);
}

.label-table tbody tr:last-child th,
.label-table tbody tr:last-child td {
  border-bottom: none;
}

.rhythm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rhythm-step {
  padding: 22px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.rhythm-step-title {
  font-size: 16px;
  font-weight: 700;
}

.rhythm-step-desc {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.scope-note-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scope-block {
  padding: 22px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-card);
}

.scope-block-title {
  font-size: 16px;
  font-weight: 700;
}

.scope-block-desc {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.page-guide .faq-list {
  margin-top: 0;
}

.page-guide .related {
  margin-top: var(--gap-block);
}

.page-guide .related-card-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.page-guide .related-card:hover .related-card-title {
  color: var(--accent);
}

.page-guide .related-card-desc {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* ============ 404 page ============ */

.error-main {
  padding-top: 40px;
  padding-bottom: var(--gap-block);
}

.error-panel {
  padding: 48px 32px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  text-align: center;
}

.error-code {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.error-title {
  margin-top: 12px;
  font-size: 26px;
  font-weight: 700;
}

.error-text {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.error-guide {
  margin-top: var(--gap-block);
}

.error-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.error-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.error-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ responsive ============ */

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-block {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }

  .pick-group {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }

  .topic-block {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }

  .entry-structure-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .site-main {
    padding: 0 16px;
  }

  .breadcrumb {
    padding: 16px 16px 0;
  }

  .header-inner {
    height: 56px;
    padding: 0 16px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow-hover);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list > li {
    flex: 1 1 auto;
  }

  .nav-link {
    height: 48px;
    min-height: 44px;
    padding: 0 8px;
    justify-content: flex-start;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-list > li:last-child .nav-link {
    border-bottom: none;
  }

  .nav-link::after {
    display: none;
  }

  .page-title {
    font-size: 22px;
  }

  .page-header {
    padding: 20px 0 6px;
  }

  .page-head {
    padding: 0 0 24px;
  }

  .hero {
    padding: 24px 0 0;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px 20px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .hero-visual img {
    height: 220px;
  }

  .genre-quickbar {
    margin-top: 24px;
    padding: 18px 20px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-top: 32px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .cover-figure img {
    height: 180px;
  }

  .topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .basis-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .notes-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .status-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .note-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .method-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
  }

  .advice-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .basis .basis-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .pick-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 22px;
  }

  .page-ranking .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .status-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .follow-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-status .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 22px;
  }

  .topic-usage-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-structure-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .guide-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .rhythm-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .scope-note-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-panel {
    padding: 32px 20px;
  }

  .error-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px 16px 24px;
  }

  .footer-bottom {
    padding: 18px 16px 28px;
  }
}

@media (max-width: 390px) {
  .cover-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy h1 {
    font-size: 23px;
  }

  .page-title {
    font-size: 21px;
  }

  .section-title {
    font-size: 19px;
  }

  .toolbar {
    padding: 18px 16px;
  }

  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* 程序验收反馈：修复网格孤项 */
@media (min-width: 769px) {
  .cover-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
