/* ==========================================================================
   妖姬漫画 · 站点样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --paper: #f6f2ea;
  --paper-deep: #efe8db;
  --sand: #e7d9c4;
  --ink: #17233b;
  --ink-soft: #2b3852;
  --berry: #d94a64;
  --berry-deep: #b8364e;
  --teal: #2f8f83;
  --teal-soft: #e3f0ed;
  --muted: #6b7280;
  --line: #ded4c4;
  --line-soft: #eae2d5;
  --white: #fffdf9;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 2px 10px rgba(23, 35, 59, 0.06);
  --shadow-lift: 0 8px 22px rgba(23, 35, 59, 0.1);
  --container: 1180px;
  --reading: 760px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 38px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--berry);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--berry-deep);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: relative;
  z-index: 40;
  background-color: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #fff;
  min-height: 44px;
}

.brand:hover,
.brand:focus-visible {
  color: #fff;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--berry);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.brand-slogan {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.is-current {
  color: #fff;
  background-color: rgba(217, 74, 100, 0.22);
  box-shadow: inset 0 -2px 0 var(--berry);
}

.header-help {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.header-help:hover,
.header-help:focus-visible {
  color: var(--ink);
  background-color: #fff;
  border-color: #fff;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius-sm);
  background-color: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #fff;
  border-radius: 1px;
}

.mobile-nav {
  background-color: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.mobile-nav-link.is-current {
  color: #fff;
  background-color: rgba(217, 74, 100, 0.24);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--berry);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb-sep {
  color: #b3a999;
}

.breadcrumb-current {
  color: var(--muted);
}

.page-header {
  margin-bottom: 28px;
}

.page-title {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.page-title-area {
  margin-bottom: 28px;
}

.page-summary {
  max-width: 820px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}

.section-sub,
.section-desc,
.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.section-lead {
  margin-bottom: 18px;
}

/* 页脚 */

.site-footer {
  margin-top: 0;
  background-color: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 40px;
}

.footer-brand-name {
  margin: 0 0 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.footer-brand-desc {
  margin: 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-col-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copy {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   components · 通用组件
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background-color: var(--berry);
  border-color: var(--berry);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--berry-deep);
  border-color: var(--berry-deep);
  color: #fff;
  box-shadow: 0 6px 16px rgba(217, 74, 100, 0.28);
}

.btn-ghost {
  background-color: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.tag-genre {
  background-color: var(--teal-soft);
  color: var(--teal);
}

.tag-sub {
  background-color: var(--sand);
  color: var(--ink-soft);
}

.tag-theme {
  background-color: rgba(217, 74, 100, 0.12);
  color: var(--berry-deep);
}

/* 侧栏块通用 */

.aside-block {
  margin-bottom: 24px;
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.aside-block:last-child {
  margin-bottom: 0;
}

.aside-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.aside-lead {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.aside-link-list,
.aside-route-list,
.aside-tip-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-link-list a,
.aside-route-list a,
.aside-tip-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 14px;
  border-left: 2px solid transparent;
}

.aside-link-list a:hover,
.aside-route-list a:hover,
.aside-tip-list a:hover,
.aside-link-list a:focus-visible,
.aside-route-list a:focus-visible,
.aside-tip-list a:focus-visible {
  background-color: var(--paper);
  border-left-color: var(--berry);
  color: var(--berry-deep);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  width: 100%;
}

.section-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* 首屏 */

.hero-section {
  padding: 40px 0 48px;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.hero-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 36px;
  align-items: start;
}

.hero-main {
  min-width: 0;
}

.hero-figure {
  position: relative;
  margin-bottom: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--sand);
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-title {
  margin: 0 0 14px;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--ink);
}

.hero-desc {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-updates {
  min-width: 0;
  padding: 22px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-updates-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--berry);
  font-size: 18px;
  font-weight: 700;
}

.update-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.update-mini-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.update-mini-item:last-child {
  border-bottom: 0;
}

.update-mini-item .tag-genre {
  margin-bottom: 6px;
}

.update-mini-link {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.update-mini-link:hover,
.update-mini-link:focus-visible {
  color: var(--berry);
}

.update-mini-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.hero-updates-more {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--berry);
}

.hero-updates-more:hover,
.hero-updates-more:focus-visible {
  color: var(--berry-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 题材索引横带 */

.genre-band {
  padding: 48px 0;
  background-color: var(--paper-deep);
  border-bottom: 1px solid var(--line-soft);
}

.genre-band-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.genre-band-item {
  min-width: 0;
}

.genre-band-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.genre-band-link:hover,
.genre-band-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--shadow-lift);
}

.genre-band-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.genre-band-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* 三步 */

.start-steps {
  padding: 48px 0;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--teal-soft);
  color: var(--teal);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.step-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.step-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--berry);
}

.step-link:hover,
.step-link:focus-visible {
  color: var(--berry-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 封面墙 */

.cover-wall {
  padding: 48px 0;
  background-color: var(--paper-deep);
  border-bottom: 1px solid var(--line-soft);
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cover-card {
  min-width: 0;
}

.cover-link {
  display: block;
  height: 100%;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cover-link:hover,
.cover-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.cover-figure {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--sand);
  overflow: hidden;
}

.cover-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-info {
  padding: 14px 16px 18px;
}

.cover-name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.cover-note {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cover-wall-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.cover-wall-more:hover,
.cover-wall-more:focus-visible {
  background-color: var(--ink);
  color: #fff;
}

/* 更新时间轴 */

.update-timeline {
  padding: 48px 0;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--line);
  margin-left: 8px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 160px;
  gap: 20px;
  align-items: start;
  padding: 18px 0 18px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--berry);
  box-shadow: 0 0 0 3px var(--paper);
}

.timeline-period {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.timeline-body {
  min-width: 0;
}

.timeline-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.timeline-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.timeline-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  font-weight: 600;
  color: var(--berry);
}

.timeline-link:hover,
.timeline-link:focus-visible {
  color: var(--berry-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 榜单与追更提示 */

.ranking-tips {
  padding: 48px 0;
  background-color: var(--paper-deep);
  border-bottom: 1px solid var(--line-soft);
}

.ranking-tips-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.ranking-summary {
  padding: 22px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ranking-summary-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
}

.ranking-list {
  display: flex;
  flex-direction: column;
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-no {
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background-color: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ranking-row:nth-child(1) .ranking-no {
  background-color: var(--berry);
  color: #fff;
}

.ranking-row:nth-child(2) .ranking-no,
.ranking-row:nth-child(3) .ranking-no {
  background-color: var(--teal);
  color: #fff;
}

.ranking-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ranking-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.ranking-more {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--berry);
}

.ranking-more:hover,
.ranking-more:focus-visible {
  color: var(--berry-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tips-panel {
  padding: 22px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tips-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tips-item {
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.tips-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.tips-item-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.tips-item-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* 站务说明 */

.site-notes {
  padding: 48px 0;
  background-color: var(--paper);
}

.notes-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.notes-card {
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.notes-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.notes-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.notes-help-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 20px;
  padding: 0 20px;
  border: 1px solid var(--teal);
  border-radius: var(--radius-sm);
  color: var(--teal);
  font-size: 15px;
  font-weight: 600;
}

.notes-help-link:hover,
.notes-help-link:focus-visible {
  background-color: var(--teal);
  color: #fff;
}

/* --------------------------------------------------------------------------
   pages · 题材分类
   -------------------------------------------------------------------------- */

.genre-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 32px;
  align-items: start;
  padding: 24px;
  margin-bottom: 40px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.genre-intro-media {
  min-width: 0;
}

.genre-figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--sand);
}

.genre-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.genre-figure-caption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  background-color: var(--paper);
  border-top: 1px solid var(--line-soft);
}

.genre-intro-body {
  min-width: 0;
}

.genre-intro-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.genre-intro-points {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.genre-intro-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.genre-intro-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--teal);
}

.genre-groups {
  margin-bottom: 40px;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.genre-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-margin-top: 24px;
}

.genre-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.genre-card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.genre-card-note {
  margin: 0;
  padding: 8px 10px;
  background-color: var(--paper);
  border-left: 2px solid var(--teal);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.genre-card-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--berry);
}

.genre-card-link:hover,
.genre-card-link:focus-visible {
  color: var(--berry-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.genre-cross {
  margin-bottom: 40px;
}

.cross-tag-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cross-tag-item {
  min-width: 0;
}

.cross-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}

.cross-tag:hover,
.cross-tag:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
  background-color: var(--teal-soft);
}

.genre-usage {
  padding: 24px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.usage-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.usage-item {
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.usage-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.usage-item-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.usage-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.genre-next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   pages · 更新记录
   -------------------------------------------------------------------------- */

.page-head {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.page-lead {
  margin: 0 0 20px;
  max-width: 860px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 32px;
  align-items: start;
}

.layout-shell {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.content-main {
  min-width: 0;
}

.content-side {
  min-width: 0;
}

.updates-groups {
  margin-bottom: 32px;
}

.group-tags {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.group-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 8px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

.group-tag:hover,
.group-tag:focus-visible {
  border-color: var(--berry);
  color: var(--berry);
  background-color: rgba(217, 74, 100, 0.06);
}

.updates-list-section {
  margin-bottom: 8px;
}

.update-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  margin-bottom: 16px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-margin-top: 24px;
}

.update-item-featured {
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  align-items: start;
}

.update-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--sand);
}

.update-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.update-body {
  min-width: 0;
}

.update-period {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.update-work-name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.update-tagline {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.update-note {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.update-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--berry);
}

.update-link:hover,
.update-link:focus-visible {
  color: var(--berry-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copy-strip {
  padding: 20px;
  margin-bottom: 24px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--berry);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.side-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.side-desc {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.copy-text {
  margin: 0 0 12px;
  padding: 12px;
  max-height: 220px;
  overflow: auto;
  background-color: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--berry);
  border-radius: var(--radius-sm);
  background-color: var(--berry);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.copy-button:hover,
.copy-button:focus-visible {
  background-color: var(--berry-deep);
  border-color: var(--berry-deep);
}

.copy-hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.field-guide {
  padding: 20px;
  margin-bottom: 24px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-item {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.field-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.field-name {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.field-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.follow-entry {
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.entry-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entry-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 14px;
  border-left: 2px solid transparent;
}

.entry-links a:hover,
.entry-links a:focus-visible {
  background-color: var(--paper);
  border-left-color: var(--berry);
  color: var(--berry-deep);
}

/* --------------------------------------------------------------------------
   pages · 作品资料
   -------------------------------------------------------------------------- */

.page-primary {
  min-width: 0;
}

.page-aside {
  min-width: 0;
}

.works-intro {
  margin-bottom: 32px;
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.works-intro-text {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.works-intro-text:last-child {
  margin-bottom: 0;
}

.works-grid-section {
  margin-bottom: 36px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.work-card:hover,
.work-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.work-card-cover {
  aspect-ratio: 4 / 3;
  background-color: var(--sand);
  overflow: hidden;
}

.work-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}

.work-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.work-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.work-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.genre-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background-color: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.work-card-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--berry);
}

.work-card-link:hover,
.work-card-link:focus-visible {
  color: var(--berry-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.works-cross {
  margin-bottom: 36px;
}

.cross-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cross-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.cross-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.cross-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.cross-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--berry);
}

.cross-link:hover,
.cross-link:focus-visible {
  color: var(--berry-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.works-order {
  padding: 22px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.order-panel {
  margin-top: 12px;
}

.order-text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.order-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.order-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--berry);
}

.order-more {
  margin: 0;
}

.order-more a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--berry);
}

.order-more a:hover,
.order-more a:focus-visible {
  color: var(--berry-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.relation-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.relation-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.relation-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.relation-text {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.relation-link {
  margin: 0;
}

.relation-link a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
  color: var(--berry);
}

.relation-link a:hover,
.relation-link a:focus-visible {
  color: var(--berry-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   pages · 排行榜
   -------------------------------------------------------------------------- */

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 32px;
  align-items: start;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
}

.page-title-block {
  margin-bottom: 24px;
}

.ranking-section {
  margin-bottom: 36px;
}

.ranking-section .ranking-list {
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 8px 20px;
  box-shadow: var(--shadow);
}

.ranking-section .ranking-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.ranking-section .ranking-row:last-child {
  border-bottom: 0;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ranking-section .ranking-row:nth-child(1) .rank-badge {
  background-color: var(--berry);
  color: #fff;
}

.ranking-section .ranking-row:nth-child(2) .rank-badge,
.ranking-section .ranking-row:nth-child(3) .rank-badge {
  background-color: var(--teal);
  color: #fff;
}

.rank-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rank-work {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.rank-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.rank-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  background-color: rgba(217, 74, 100, 0.1);
  color: var(--berry-deep);
  font-size: 12px;
  white-space: nowrap;
}

.rank-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
  color: var(--berry);
  white-space: nowrap;
}

.rank-link:hover,
.rank-link:focus-visible {
  color: var(--berry-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-media {
  margin: 20px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
}

.content-media-inline img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.content-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  background-color: var(--paper);
  border-top: 1px solid var(--line-soft);
}

.subchart-section {
  margin-bottom: 8px;
}

.subchart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.subchart-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-margin-top: 24px;
}

.subchart-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.subchart-scope {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.subchart-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 0;
  counter-reset: subchart;
}

.subchart-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  counter-increment: subchart;
}

.subchart-list li::before {
  content: counter(subchart);
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background-color: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.subchart-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--berry);
}

.subchart-link:hover,
.subchart-link:focus-visible {
  color: var(--berry-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ranking-aside .aside-block {
  margin-bottom: 24px;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rules-item {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.rules-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.rules-name {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.rules-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.aside-entry .aside-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.aside-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}

.entry-btn-primary {
  background-color: var(--berry);
  border-color: var(--berry);
  color: #fff;
}

.entry-btn-primary:hover,
.entry-btn-primary:focus-visible {
  background-color: var(--berry-deep);
  border-color: var(--berry-deep);
  color: #fff;
}

.entry-btn-ghost {
  background-color: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.entry-btn-ghost:hover,
.entry-btn-ghost:focus-visible {
  background-color: var(--ink);
  color: #fff;
}

.aside-hint {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.aside-hint a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   pages · 新读者入门
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 32px 0 36px;
  background-color: var(--paper-deep);
  border-bottom: 1px solid var(--line-soft);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.page-hero-text {
  min-width: 0;
}

.page-hero-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.page-hero-media {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--sand);
  box-shadow: var(--shadow);
}

.page-hero-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.page-hero-media figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
  background-color: var(--white);
  border-top: 1px solid var(--line-soft);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 32px;
  align-items: start;
  padding-top: 32px;
  padding-bottom: 64px;
}

.guide-aside {
  min-width: 0;
}

.guide-steps,
.guide-glossary,
.guide-pitfalls,
.guide-next {
  margin-bottom: 40px;
}

.guide-layout .step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-layout .step-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--berry);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.guide-layout .step-index {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: rgba(217, 74, 100, 0.12);
  color: var(--berry-deep);
  font-size: 16px;
}

.step-body {
  min-width: 0;
}

.guide-layout .step-title {
  margin: 0 0 6px;
  font-size: 17px;
}

.guide-layout .step-desc {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.guide-layout .step-link {
  margin-top: 0;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.glossary-item {
  padding: 16px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.glossary-item dt {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.glossary-item dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.pitfall-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pitfall-item {
  padding: 16px 18px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.pitfall-wrong {
  position: relative;
  margin: 0 0 6px;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--berry-deep);
}

.pitfall-wrong::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.pitfall-right {
  position: relative;
  margin: 0;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--teal);
}

.pitfall-right::before {
  content: "√";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.next-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.next-card:hover,
.next-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.next-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.next-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 阅读帮助
   -------------------------------------------------------------------------- */

.help-container {
  padding-bottom: 64px;
}

.help-brief {
  margin-bottom: 32px;
  padding: 20px 22px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.help-brief-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.help-faq {
  margin-bottom: 36px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--teal);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--paper);
  color: var(--berry);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
  background-color: rgba(217, 74, 100, 0.12);
}

.faq-question:hover {
  color: var(--berry-deep);
}

.faq-answer {
  padding: 0 18px 16px;
  border-top: 1px dashed var(--line);
}

.faq-answer p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.help-feedback {
  margin-bottom: 36px;
  padding: 22px;
  background-color: var(--paper-deep);
  border-radius: var(--radius);
}

.help-feedback-intro {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.feedback-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feedback-item {
  padding: 16px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.feedback-item-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.feedback-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.help-feedback-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.help-recover {
  margin-bottom: 36px;
}

.recover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.recover-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.recover-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.recover-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.recover-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--berry);
}

.recover-link:hover,
.recover-link:focus-visible {
  color: var(--berry-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.help-related {
  margin-bottom: 8px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.related-media {
  aspect-ratio: 16 / 10;
  background-color: var(--sand);
  overflow: hidden;
}

.related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card-title {
  margin: 14px 16px 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.related-card p {
  margin: 0 16px 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.related-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0 16px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--berry);
}

.related-link:hover,
.related-link:focus-visible {
  color: var(--berry-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.error-block {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.error-code {
  margin: 0 0 8px;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--berry);
  font-variant-numeric: tabular-nums;
}

.error-block h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
}

.error-text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  background-color: var(--berry);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.error-home-link:hover,
.error-home-link:focus-visible {
  background-color: var(--berry-deep);
  color: #fff;
}

.error-links {
  max-width: 720px;
  margin: 0 auto;
}

.error-links h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.error-link-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}

.error-link-list a:hover,
.error-link-list a:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
  background-color: var(--teal-soft);
}

/* --------------------------------------------------------------------------
   responsive · 960px
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    gap: 16px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav .nav-list {
    display: none;
  }

  .site-nav .nav-list.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    padding: 8px 16px 16px;
  }

  .header-help {
    padding: 0 12px;
    font-size: 13px;
  }

  .hero-section {
    padding: 28px 0 36px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 0 16px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-figure img {
    height: 240px;
  }

  .section-inner {
    padding: 0 16px;
  }

  .genre-band,
  .start-steps,
  .cover-wall,
  .update-timeline,
  .ranking-tips,
  .site-notes {
    padding: 36px 0;
  }

  .genre-band-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
  }

  .timeline-meta {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .ranking-tips-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .notes-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 16px 24px;
  }

  .footer-copy {
    padding: 14px 16px;
  }

  .inner-main {
    padding: 20px 16px 48px;
  }

  .container {
    padding: 0 16px;
  }

  .page-head {
    padding: 0 16px;
  }

  .layout-shell,
  .ranking-layout {
    padding: 0 16px 48px;
  }

  .page-title {
    font-size: 30px;
  }

  .genre-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
  }

  .genre-figure img {
    height: 220px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cross-tag-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .group-tags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .update-item-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-media img {
    height: 200px;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cross-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ranking-section .ranking-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .rank-link {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .subchart-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-hero {
    padding: 24px 0 28px;
  }

  .page-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .page-hero-media img {
    height: 200px;
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .glossary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .next-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .recover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-container {
    padding-bottom: 48px;
  }
}

/* --------------------------------------------------------------------------
   responsive · 640px
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    min-height: 64px;
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .brand-slogan {
    font-size: 15px;
  }

  .header-help {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .site-nav .nav-list.is-open {
    padding: 6px 12px 14px;
  }

  .mobile-nav-list {
    padding: 6px 12px 14px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-figure img {
    height: 200px;
  }

  .hero-updates {
    padding: 18px;
  }

  .section-title {
    font-size: 20px;
  }

  .page-title {
    font-size: 28px;
  }

  .genre-band-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 18px;
    gap: 6px;
  }

  .timeline-period {
    font-size: 12px;
  }

  .timeline-meta {
    grid-column: 1;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .notes-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cross-tag-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .update-item {
    padding: 16px;
  }

  .works-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ranking-section .ranking-list {
    padding: 4px 14px;
  }

  .ranking-section .ranking-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-tag {
    grid-column: 2;
    justify-self: start;
  }

  .rank-link {
    grid-column: 2;
  }

  .content-media-inline img {
    height: 170px;
  }

  .next-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .recover-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-main {
    padding: 48px 16px 64px;
  }

  .error-code {
    font-size: 52px;
  }

  .error-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-next {
    flex-direction: column;
    align-items: stretch;
  }

  .genre-next .btn {
    width: 100%;
  }

  .aside-actions {
    gap: 8px;
  }
}
