/* ==========================================================
   base — reset, variables, typography
   ========================================================== */
:root {
  --bg: #FAF7F2;
  --text: #333333;
  --text-light: #6B6B6B;
  --text-faint: #999999;
  --line: #E8E2D9;
  --line-light: #F0ECE5;
  --card-bg: #FFFFFF;
  --primary: #C98A96;
  --primary-soft: #F3E3E6;
  --primary-deep: #B06E7B;
  --sci: #8FA3BF;
  --mys: #9C8FB8;
  --heal: #A5B89A;
  --rom: #C98A96;
  --hot: #D8AE82;
  --daily: #B9B2A7;
  --radius: 8px;
  --radius-sm: 6px;
  --container: 1120px;
  --header-h: 64px;
  --shadow: 0 2px 8px rgba(51, 51, 51, 0.06);
  --shadow-hover: 0 6px 16px rgba(51, 51, 51, 0.10);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 21px;
}

h3 {
  font-size: 16px;
}

p {
  margin-bottom: 0.6em;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ==========================================================
   layout — shared shell
   ========================================================== */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--primary);
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav .nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
  min-height: 40px;
  line-height: 24px;
}

.site-nav .nav-list li a:hover {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.site-nav .nav-list li a.is-current {
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-main {
  flex: 1;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 56px;
  width: 100%;
}

/* breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 8px;
  font-size: 13px;
  color: var(--text-faint);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary-deep);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text);
}

/* page header */
.page-header {
  padding: 16px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-description {
  font-size: 13px;
  color: var(--primary-deep);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.page-title {
  font-size: 30px;
  margin-bottom: 10px;
}

.page-summary {
  font-size: 15px;
  color: var(--text-light);
  max-width: 720px;
  line-height: 1.8;
}

/* section title common */
.section-title {
  font-size: 21px;
  margin-bottom: 8px;
}

.section-desc,
.section-intro {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 720px;
}

/* footer */
.site-footer {
  background: #F1ECE4;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-about p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-light);
  display: inline-block;
  padding: 2px 0;
  min-height: 28px;
  line-height: 24px;
}

.footer-col ul li a:hover {
  color: var(--primary-deep);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0;
}

/* ==========================================================
   components — buttons, cards, steps, notice
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--primary-deep);
  color: #FFFFFF;
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-deep);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

/* notice bar */
.notice-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--primary-soft);
  padding: 8px 16px;
  font-size: 14px;
  color: var(--primary-deep);
  position: relative;
}

.notice-text {
  margin: 0;
  padding-right: 44px;
}

.notice-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary-deep);
  border-radius: var(--radius-sm);
}

.notice-close:hover {
  background: rgba(201, 138, 150, 0.2);
}

/* step nodes */
.path-steps,
.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.path-step,
.method-step {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 15px;
  font-weight: 600;
  border-radius: 50%;
  margin-bottom: 12px;
}

.path-step h3,
.method-step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.path-step p,
.method-step p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

/* related links */
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 36px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 14px;
  color: var(--text-faint);
}

.related-links-item {
  font-size: 14px;
  color: var(--primary-deep);
  padding: 6px 4px;
  min-height: 36px;
  line-height: 24px;
}

/* image figures */
figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
  padding: 8px 0 0;
}

/* ==========================================================
   pages — index
   ========================================================== */
.home-main {
  width: 100%;
}

/* hero */
.hero-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  font-size: 13px;
  color: var(--primary-deep);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.hero-content h1 {
  font-size: 32px;
  margin-bottom: 14px;
  line-height: 1.35;
}

.hero-lead {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 24px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* home columns */
.home-columns {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 24px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.column-block {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.column-block h2 {
  font-size: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 16px;
}

.topic-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-light);
}

.topic-list li:last-child {
  border-bottom: none;
}

.topic-list li a {
  display: block;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  padding: 4px 0;
}

.topic-list li a:hover {
  color: var(--primary-deep);
}

.pick-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.pick-card:hover {
  background: var(--bg);
}

.pick-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.pick-title {
  font-size: 14px;
  color: var(--text);
  display: block;
  line-height: 1.5;
}

.pick-status {
  font-size: 12px;
  color: var(--text-faint);
  display: block;
}

.news-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.news-list li:last-child {
  border-bottom: none;
}

/* genre index */
.genre-index {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 8px;
}

.genre-index .section-desc {
  margin-bottom: 24px;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.genre-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 100px;
  justify-content: center;
}

.genre-block:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.genre-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: block;
}

.genre-name {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.genre-sci .genre-dot {
  background: var(--sci);
}

.genre-mys .genre-dot {
  background: var(--mys);
}

.genre-heal .genre-dot {
  background: var(--heal);
}

.genre-rom .genre-dot {
  background: var(--rom);
}

.genre-hot .genre-dot {
  background: var(--hot);
}

.genre-daily .genre-dot {
  background: var(--daily);
}

/* recent updates */
.recent-updates {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 8px;
}

.update-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.update-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.update-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.update-card h3 {
  font-size: 15px;
  padding: 12px 14px 4px;
}

.update-status {
  display: inline-block;
  font-size: 12px;
  color: var(--primary-deep);
  background: var(--primary-soft);
  padding: 3px 8px;
  border-radius: 4px;
  margin: 12px 14px 0;
}

/* reading path */
.reading-path {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 8px;
}

/* entry cards */
.entry-cards {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.entry-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.entry-card h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.entry-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.entry-card .btn {
  margin-top: auto;
}

/* ==========================================================
   pages — catalog
   ========================================================== */
.status-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
}

.status-tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 24px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.status-tab:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
}

.catalog-section {
  margin-bottom: 48px;
  scroll-margin-top: 80px;
}

.catalog-section .section-desc {
  margin-bottom: 24px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.work-card > a {
  display: block;
}

.work-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.work-card-body {
  padding: 16px;
}

.work-genre {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.work-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.work-status {
  display: inline-block;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.work-status.is-updating {
  color: var(--primary-deep);
  background: var(--primary-soft);
}

.work-status.is-finished {
  color: var(--text-light);
  background: var(--line-light);
}

.work-brief {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.path-note {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.path-note p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.path-note a {
  display: inline-block;
  margin: 0 8px;
  padding: 6px 12px;
  font-size: 15px;
  color: var(--primary-deep);
  min-height: 40px;
  line-height: 28px;
}

/* ==========================================================
   pages — tags
   ========================================================== */
.genre-overview {
  margin-bottom: 40px;
}

.genre-swatch-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.genre-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
}

.swatch-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: block;
}

.swatch-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.swatch-note {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.5;
}

.genre-swatch-sci-fi .swatch-dot {
  background: var(--sci);
}

.genre-swatch-mystery .swatch-dot {
  background: var(--mys);
}

.genre-swatch-healing .swatch-dot {
  background: var(--heal);
}

.genre-swatch-daily .swatch-dot {
  background: var(--daily);
}

.genre-swatch-hotblood .swatch-dot {
  background: var(--hot);
}

.genre-swatch-romance .swatch-dot {
  background: var(--rom);
}

.genre-section {
  margin-bottom: 44px;
  scroll-margin-top: 80px;
}

.genre-section-head {
  margin-bottom: 16px;
}

.genre-title {
  font-size: 19px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.genre-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

#sci-fi .genre-title::before {
  background: var(--sci);
}

#mystery .genre-title::before {
  background: var(--mys);
}

#healing .genre-title::before {
  background: var(--heal);
}

#daily .genre-title::before {
  background: var(--daily);
}

#hotblood .genre-title::before {
  background: var(--hot);
}

#romance .genre-title::before {
  background: var(--rom);
}

.genre-desc {
  font-size: 14px;
  color: var(--text-light);
}

.genre-work-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.work-mini-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.work-mini-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.work-mini-cover {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.work-mini-title {
  font-size: 14px;
  color: var(--text);
  display: block;
  line-height: 1.5;
}

.work-mini-status {
  font-size: 12px;
  color: var(--text-faint);
  display: block;
}

.genre-more {
  margin-top: 12px;
  font-size: 14px;
}

.genre-more a {
  color: var(--primary-deep);
  padding: 4px 0;
  display: inline-block;
  min-height: 32px;
  line-height: 24px;
}

.pick-tips {
  margin-top: 8px;
}

.pick-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pick-step {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.pick-step .step-num {
  margin-bottom: 10px;
}

.step-title {
  font-size: 16px;
  margin-bottom: 6px;
  display: block;
}

.step-text {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

.tips-footer {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-light);
}

.tips-footer a {
  color: var(--primary-deep);
}

/* ==========================================================
   pages — detail
   ========================================================== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.main-col {
  min-width: 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}

.detail-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
}

.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-info .section-title {
  margin-bottom: 16px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.info-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
}

.info-item dt {
  font-weight: 600;
  color: var(--text);
  min-width: 72px;
}

.info-item dd {
  color: var(--text-light);
}

.genre-tag,
.status-tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.genre-scifi .genre-tag {
  background: rgba(143, 163, 191, 0.15);
  color: #5A6E8A;
}

.intro-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

.reading-advice {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.reading-advice p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

.back-to-catalog {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.back-to-catalog p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

.back-to-catalog a {
  color: var(--primary-deep);
  padding: 4px 0;
  display: inline-block;
  min-height: 32px;
  line-height: 24px;
}

.aside-col {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.aside-title {
  font-size: 17px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 16px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.related-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.related-link:hover {
  background: var(--bg);
}

.related-link img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.related-title {
  font-size: 14px;
  margin-bottom: 2px;
}

.related-genre {
  font-size: 12px;
  color: var(--text-faint);
}

.aside-links {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
}

.aside-links p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.aside-links a {
  font-size: 13px;
  color: var(--primary-deep);
  padding: 2px 0;
  display: inline-block;
  min-height: 28px;
  line-height: 24px;
}

/* ==========================================================
   pages — compare
   ========================================================== */
.compare-section {
  margin-bottom: 44px;
}

.compare-section > h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.compare-section > p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.compare-table-wrap {
  overflow-x: auto;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-light);
  vertical-align: top;
}

.compare-table thead th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  width: 140px;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table td {
  color: var(--text-light);
  line-height: 1.7;
}

.compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.compare-card h3 {
  font-size: 17px;
  padding: 16px 20px 4px;
}

.compare-meta {
  padding: 0 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-chip,
.status-chip {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
}

.genre-scifi .genre-chip {
  background: rgba(143, 163, 191, 0.15);
  color: #5A6E8A;
}

.genre-mystery .genre-chip {
  background: rgba(156, 143, 184, 0.15);
  color: #6E628A;
}

.status-chip {
  background: var(--line-light);
  color: var(--text-light);
}

.compare-meta p {
  width: 100%;
  font-size: 13px;
  color: var(--text-light);
  margin: 6px 0 0;
  line-height: 1.7;
}

.method-steps {
  margin-bottom: 8px;
}

.more-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.more-links a {
  color: var(--primary-deep);
  font-size: 15px;
  padding: 6px 0;
  min-height: 40px;
  line-height: 28px;
}

.text-link {
  display: inline-block;
  color: var(--primary-deep);
  font-size: 14px;
  padding: 4px 0;
  min-height: 32px;
  line-height: 24px;
}

/* ==========================================================
   pages — help
   ========================================================== */
.help-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.help-nav-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.help-nav-item:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
}

.help-path-figure {
  margin-bottom: 36px;
}

.help-path-figure img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

.help-section {
  margin-bottom: 40px;
  scroll-margin-top: 80px;
}

.help-section .section-title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary {
  background: var(--bg);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--primary-deep);
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

.faq-item p a {
  color: var(--primary-deep);
  padding: 2px 0;
  display: inline-block;
  min-height: 28px;
  line-height: 24px;
}

.help-fallback {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
}

.help-fallback p {
  font-size: 14px;
  color: var(--text-light);
}

.help-fallback p a {
  color: var(--primary-deep);
  font-size: 15px;
  padding: 6px 0;
  display: inline-block;
  min-height: 36px;
  line-height: 24px;
}

/* ==========================================================
   pages — feedback
   ========================================================== */
.section {
  margin-bottom: 44px;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feedback-type-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.feedback-type-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.feedback-type-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.type-example {
  font-size: 13px;
  color: var(--text-faint);
  border-top: 1px solid var(--line-light);
  padding-top: 8px;
}

.process-group {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.process-group-title {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.process-step .step-num {
  margin-bottom: 0;
}

.step-text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

.step-text strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 2px;
}

.update-note {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.update-figure {
  margin-bottom: 16px;
}

.update-figure img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}

.update-note p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ==========================================================
   pages — about
   ========================================================== */
.about-visual {
  margin-bottom: 36px;
}

.about-figure img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-section {
  margin-bottom: 40px;
}

.about-section > h2 {
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.about-section p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 10px;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scope-list li {
  font-size: 14px;
  color: var(--text-light);
  padding-left: 18px;
  position: relative;
  line-height: 1.7;
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.boundary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.boundary-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.boundary-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.boundary-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

.entrance-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.entrance-links li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 24px;
  background: var(--card-bg);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--primary-deep);
  transition: background 0.2s ease;
}

.entrance-links li a:hover {
  background: var(--primary-soft);
}

/* ==========================================================
   pages — 404
   ========================================================== */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
}

.error-section {
  text-align: center;
  max-width: 560px;
}

.error-code {
  font-size: 64px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 8px;
}

.error-section h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.error-tip {
  font-size: 13px;
  color: var(--text-faint);
}

/* ==========================================================
   responsive
   ========================================================== */
@media (max-width: 1024px) {
  .genre-grid,
  .genre-swatch-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .update-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .type-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-media img {
    height: 260px;
  }

  .home-columns {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .aside-col {
    order: 2;
  }

  .main-col {
    order: 1;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 99;
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 2px;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list li a {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }

  .inner-main {
    padding: 0 16px 40px;
  }

  .breadcrumb {
    padding: 16px 0 6px;
  }

  .page-header {
    padding: 12px 0 20px;
    margin-bottom: 28px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero-section {
    padding: 32px 16px 24px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .home-columns,
  .genre-index,
  .recent-updates,
  .reading-path,
  .entry-cards {
    padding-left: 16px;
    padding-right: 16px;
  }

  .genre-grid,
  .genre-swatch-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .update-wall {
    grid-template-columns: 1fr;
  }

  .path-steps,
  .method-steps,
  .pick-steps {
    grid-template-columns: 1fr;
  }

  .entry-cards,
  .compare-cards,
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 20px;
  }

  .footer-bottom {
    padding: 12px 16px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .genre-work-list {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-figure img {
    height: 240px;
  }

  .type-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .status-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .status-tab {
    justify-content: center;
  }

  .help-category-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .help-nav-item {
    justify-content: center;
  }

  .compare-table-wrap {
    margin: 0 -4px;
  }

  .error-code {
    font-size: 48px;
  }
}

@media (max-width: 390px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .genre-grid,
  .genre-swatch-list {
    grid-template-columns: 1fr;
  }

  .update-card img {
    height: 160px;
  }

  .work-card img {
    height: 180px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .btn {
    width: 100%;
  }

  .footer-bottom p {
    font-size: 12px;
  }
}
