/* =========================================================
   51动漫 · 全站样式
   base → layout → components → pages → responsive
   字体：标题衬线 / 正文无衬线；配色：米白纸感 + 墨色 + 克制鎏金
   ========================================================= */

/* ---------------------------------------------------------
   base
   --------------------------------------------------------- */
:root {
  --bg: #F7F5F0;
  --card: #FFFFFF;
  --ink: #1E1B16;
  --ink-soft: #6C6455;
  --gold: #B98A2E;
  --teal: #2F5D62;
  --line: #E4DDD0;
  --tint: #F0E7D4;
  --radius: 8px;
  --radius-pill: 999px;
  --shell: 1180px;
  --pad: 24px;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 1px 2px rgba(30, 27, 22, .04);
  --shadow-hover: 0 6px 18px rgba(30, 27, 22, .08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
}

img {
  max-width: 100%;
  display: block;
}

figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   layout · 全站骨架
   --------------------------------------------------------- */
.site-body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  display: block;
  flex: 1 1 auto;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 240, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  flex: 0 0 auto;
  color: var(--ink);
}

.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand-slogan {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
  white-space: nowrap;
}

.nav-item > a:hover {
  color: var(--gold);
  background: var(--tint);
}

.nav-item > a.is-current,
.nav-item.is-current > a {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.nav-has-sub:hover .nav-sub,
.nav-has-sub:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-sub a {
  display: block;
  padding: 7px 10px;
  font-size: 14px;
  color: var(--ink-soft);
  border-radius: 6px;
}

.nav-sub a:hover {
  color: var(--ink);
  background: var(--tint);
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-drawer {
  border-top: 1px solid var(--line);
  background: var(--card);
}

.mobile-drawer[hidden] {
  display: none;
}

.drawer-list {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px var(--pad) 20px;
}

.drawer-list > li > a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.drawer-sub {
  padding: 4px 0 8px 12px;
}

.drawer-sub a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 内页外壳 */
.inner-main {
  display: block;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad) 8px;
  width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 14px 0 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  max-width: 26em;
}

.page-hero {
  padding: 28px 0 8px;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 32px;
  align-items: center;
}

.page-hero-text {
  max-width: 62ch;
}

.page-hero-lead,
.page-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-hero-meta,
.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.meta-item {
  color: var(--ink-soft);
}

.meta-sep {
  color: var(--line);
}

.page-hero-media,
.page-hero-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.page-hero-media img,
.page-hero-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.page-hero-figure figcaption,
.figure-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* 内页通用双栏 / 单栏容器 */
.page-layout {
  display: block;
}

.layout-shell {
  display: grid;
  gap: 32px;
  padding: 32px 0 8px;
}

/* 页脚 */
.site-footer {
  margin-top: 48px;
  background: var(--tint);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px var(--pad) 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  max-width: 46ch;
}

.footer-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.footer-slogan {
  margin-top: 6px;
  font-size: 14px;
  color: var(--teal);
}

.footer-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.footer-col-title {
  font-size: 15px;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px var(--pad) 28px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------
   components · 通用组件
   --------------------------------------------------------- */

/* 章节入口文字链接 */
.chapter-link,
.chapter-entry {
  display: inline-block;
  font-size: 14px;
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.chapter-link:hover,
.chapter-entry:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.text-link {
  display: inline-block;
  font-size: 14px;
  color: var(--teal);
}

.text-link:hover {
  color: var(--gold);
}

/* 题材标签 */
.tag,
.tag-pill {
  display: inline-block;
  padding: 2px 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--teal);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

a.tag,
a.tag-pill {
  color: var(--teal);
}

a.tag:hover,
a.tag-pill:hover {
  color: var(--ink);
  border-color: var(--gold);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 章节标题区 */
.section-head {
  margin-bottom: 18px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.section-desc,
.section-lead {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* 侧栏区块 */
.aside-block,
.side-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.aside-block + .aside-block,
.side-block + .side-block {
  margin-top: 20px;
}

.aside-title,
.side-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.aside-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.aside-links li + li {
  margin-top: 8px;
}

.aside-links a {
  font-size: 14px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--gold);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------------------------------------------------------
   pages · 首页
   --------------------------------------------------------- */
.home-main {
  display: block;
}

/* 首屏 */
.hero {
  padding: 40px 0 8px;
}

.hero-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 40px;
  align-items: center;
}

.hero-text {
  max-width: 60ch;
}

.hero-eyebrow {
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 600;
  letter-spacing: 0;
}

.hero-lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}

.hero-facts li {
  position: relative;
  padding-left: 14px;
  color: var(--ink-soft);
}

.hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.hero-facts a {
  color: var(--ink-soft);
}

.hero-facts a:hover {
  color: var(--gold);
}

.hero-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.hero-visual img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-visual figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* 今日更新条 */
.today-bar {
  margin-top: 40px;
  padding: 28px 0;
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.today-bar > .section-head,
.today-bar > .today-list,
.today-bar > .today-more {
  max-width: var(--shell);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.today-list {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.today-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 20px 6px 0;
  margin-right: 20px;
  border-right: 1px solid var(--line);
  font-size: 14px;
  white-space: nowrap;
}

.today-item:last-child {
  border-right: 0;
  margin-right: 0;
}

.today-name {
  color: var(--ink);
  font-weight: 600;
}

.today-scope {
  color: var(--ink-soft);
}

.today-more {
  margin-top: 14px;
  font-size: 14px;
}

/* 双轨：左定位轨 + 右内容流 */
.home-layout {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px var(--pad) 8px;
}

.sidebar-left .home-layout,
.home-layout.sidebar-left {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.aside-track {
  display: block;
}

.block-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.block-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.block-text + .block-text {
  margin-top: 10px;
}

.aside-track .tag-cloud {
  margin-top: 4px;
}

/* 编辑推荐 */
.editor-pick {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.pick-feature {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.pick-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--tint);
}

.pick-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}

.pick-body {
  min-width: 0;
}

.pick-title {
  font-size: 19px;
  font-weight: 600;
}

.pick-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pick-reason {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.pick-entry {
  margin-top: 12px;
}

.pick-list {
  margin-top: 18px;
}

.pick-item {
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.pick-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pick-item-title {
  font-size: 17px;
  font-weight: 600;
}

/* 最近更新时间线 */
.update-timeline {
  margin-top: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.timeline-list {
  display: block;
}

.timeline-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-date {
  color: var(--ink-soft);
  font-size: 13px;
  white-space: nowrap;
}

.timeline-name {
  color: var(--ink);
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.timeline-scope {
  color: var(--ink-soft);
  font-size: 13px;
  white-space: nowrap;
}

.timeline-more {
  margin-top: 16px;
  font-size: 14px;
}

/* 封面墙 */
.cover-wall {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px var(--pad) 8px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cover-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cover-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-hover);
}

.cover-figure {
  border-radius: 6px;
  overflow: hidden;
  background: var(--tint);
}

.cover-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}

.cover-title {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 600;
}

.cover-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 榜单速览 */
.charts-preview {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px var(--pad) 8px;
}

.charts-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.chart-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.chart-name {
  font-size: 17px;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.chart-list {
  margin-top: 8px;
}

.chart-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.chart-item:last-child {
  border-bottom: 0;
}

.chart-rank {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  text-align: center;
}

.chart-title {
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.chart-more {
  margin-top: 14px;
  font-size: 14px;
}

/* 阅读说明要点 */
.guide-points {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px var(--pad) 8px;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.guide-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.guide-step {
  display: inline-block;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 8px;
}

.guide-title {
  font-size: 17px;
  font-weight: 600;
}

.guide-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.guide-more {
  margin-top: 16px;
  font-size: 14px;
}

/* 题材观察摘录 */
.notes-excerpt {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px var(--pad) 8px;
}

.notes-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.notes-excerpt .note-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.notes-excerpt .note-title {
  font-size: 17px;
  font-weight: 600;
}

.note-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.note-entry {
  margin-top: 12px;
  font-size: 14px;
}

/* 常见问题摘要 */
.faq-preview {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px var(--pad) 8px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
}

.faq-answer {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.faq-more {
  margin-top: 16px;
  font-size: 14px;
}

/* 关联入口（首页底部） */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.related-links-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
}

.related-links-label {
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   pages · 题材分类
   --------------------------------------------------------- */
.genres-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.genre-anchors {
  padding: 24px 0 0;
}

.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-groups {
  display: block;
}

.genre-groups > .section-title,
.genre-groups > .section-lead {
  margin-bottom: 6px;
}

.genre-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
  box-shadow: var(--shadow);
  scroll-margin-top: 90px;
}

.genre-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.genre-name {
  font-size: 19px;
  font-weight: 600;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-feature {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.genre-audience {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.genre-label {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  font-size: 13px;
  color: var(--teal);
  background: var(--tint);
  border-radius: var(--radius-pill);
}

.genre-works {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.genre-works li {
  font-size: 14px;
  min-width: 0;
}

.genre-works a {
  color: var(--teal);
}

.genre-works a:hover {
  color: var(--gold);
}

.genres-aside {
  display: block;
}

/* 阅读路径步骤 */
.reading-path {
  margin-top: 36px;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.path-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.path-step .step-index {
  display: inline-block;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 8px;
}

.path-step .step-name {
  font-size: 16px;
  font-weight: 600;
}

.path-step .step-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   pages · 最近更新
   --------------------------------------------------------- */
.layout-shell:has(.content-main) {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.content-main {
  display: block;
  min-width: 0;
}

.content-aside {
  display: block;
}

.update-today,
.update-week {
  margin-top: 28px;
}

.update-list {
  display: block;
}

.update-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.update-time {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
  white-space: nowrap;
}

.update-name {
  color: var(--ink);
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.update-range {
  color: var(--ink-soft);
  font-size: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.timeline-day {
  margin-top: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.timeline-day .timeline-date {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.timeline-day .timeline-list {
  margin-top: 6px;
}

.timeline-day .timeline-item {
  grid-template-columns: 96px minmax(0, 1fr) auto auto;
}

.rhythm-list {
  margin-top: 4px;
}

.rhythm-item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.rhythm-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.content-aside .rhythm-name {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.rhythm-text {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   pages · 榜单
   --------------------------------------------------------- */
.page-layout:has(.page-main-col) {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.page-main-col {
  display: block;
  min-width: 0;
}

.page-side-col {
  display: block;
}

.chart-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.chart-block + .chart-block {
  margin-top: 24px;
}

.chart-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.chart-head h2 {
  font-size: 20px;
  font-weight: 600;
}

.chart-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.chart-block .chart-list {
  margin-top: 10px;
}

.chart-block .chart-item {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: start;
  padding: 12px 0;
}

.chart-body {
  min-width: 0;
}

.chart-body .chart-title {
  font-size: 16px;
  font-weight: 600;
}

.chart-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chart-note {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.chart-block .chapter-entry {
  align-self: center;
  white-space: nowrap;
}

.rule-list {
  margin-top: 4px;
}

.rule-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.rule-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rule-name {
  font-size: 15px;
  font-weight: 600;
}

.rule-item p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.side-note {
  margin-top: 14px;
  font-size: 14px;
}

.related-list {
  margin-top: 4px;
}

.related-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.related-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.related-item a {
  font-size: 15px;
  font-weight: 600;
}

.related-item p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   pages · 阅读说明
   --------------------------------------------------------- */
.section {
  padding: 40px 0 0;
}

.steps-block > .section-head,
.ops-block > .section-head,
.rhythm-block > .section-head,
.related-block > .section-head {
  margin-bottom: 20px;
}

.steps-block .section-head h2,
.ops-block .section-head h2,
.rhythm-block .section-head h2,
.related-block .section-head h2 {
  font-size: 22px;
  font-weight: 600;
}

.steps-block .section-head p,
.ops-block .section-head p,
.rhythm-block .section-head p,
.related-block .section-head p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 68ch;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.step-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.step-item .step-index {
  display: inline-block;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 8px;
}

.step-item .step-name {
  font-size: 17px;
  font-weight: 600;
}

.step-item .step-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.step-item .step-entry {
  margin-top: 12px;
  font-size: 14px;
}

.ops-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.ops-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.ops-name {
  font-size: 16px;
  font-weight: 600;
}

.ops-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.rhythm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rhythm-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.rhythm-card .rhythm-name {
  font-size: 17px;
  font-weight: 600;
}

.rhythm-fit {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.rhythm-tip {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.related-block .related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.related-block .related-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.related-block .related-name {
  font-size: 16px;
  font-weight: 600;
}

.related-block .related-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.related-block .related-entry {
  margin-top: 12px;
  font-size: 14px;
}

/* ---------------------------------------------------------
   pages · 帮助排查
   --------------------------------------------------------- */
.help-overview,
.help-cases,
.help-checklist,
.help-related {
  padding: 40px 0 0;
}

.overview-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.flow-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.flow-title {
  font-size: 17px;
  font-weight: 600;
}

.flow-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.case-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 14px;
  box-shadow: var(--shadow);
}

.case-summary {
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
}

.case-summary::-webkit-details-marker {
  display: none;
}

.case-summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--gold);
}

.case-item[open] .case-summary::after {
  content: "−";
}

.case-summary:hover {
  color: var(--gold);
}

.case-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--line);
}

.case-cause {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.case-steps {
  margin-top: 12px;
  padding-left: 4px;
  counter-reset: case-step;
}

.case-steps li {
  position: relative;
  padding: 6px 0 6px 30px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  counter-increment: case-step;
}

.case-steps li::before {
  content: counter(case-step);
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  color: var(--teal);
  background: var(--tint);
  border-radius: 50%;
}

.case-check {
  margin-top: 12px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--tint);
  border-radius: 6px;
}

.checklist-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin-top: 20px;
}

.checklist-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.checklist-name {
  font-weight: 600;
  color: var(--ink);
}

.checklist-pass {
  color: var(--ink-soft);
}

.help-related .related-links {
  margin-top: 20px;
}

.related-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  font-size: 15px;
  color: var(--teal);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ---------------------------------------------------------
   pages · 题材观察
   --------------------------------------------------------- */
.notes-articles,
.notes-picks,
.notes-related {
  padding: 40px 0 0;
}

.note-list {
  display: block;
  margin-top: 20px;
}

.notes-articles .note-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.notes-articles .note-item + .note-item {
  margin-top: 20px;
}

.note-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.note-meta {
  font-size: 13px;
  color: var(--ink-soft);
}

.notes-articles .note-title {
  margin-top: 6px;
  font-size: 19px;
  font-weight: 600;
}

.note-conclusion {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.note-body {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.note-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.pick-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.pick-card .pick-name {
  font-size: 17px;
  font-weight: 600;
}

.pick-scene {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.pick-advice {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.pick-links {
  margin-top: 12px;
  font-size: 14px;
}

.notes-related .related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.notes-related .related-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.notes-related .related-name {
  font-size: 16px;
  font-weight: 600;
}

.notes-related .related-name a {
  color: var(--ink);
}

.notes-related .related-name a:hover {
  color: var(--gold);
}

.notes-related .related-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   pages · 关于本站
   --------------------------------------------------------- */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 36px;
  padding: 40px 0 0;
  align-items: start;
}

.about-story {
  min-width: 0;
}

.about-story .section-title {
  margin-bottom: 14px;
}

.about-story p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.about-story p + p {
  margin-top: 14px;
}

.about-org {
  min-width: 0;
}

.about-org .section-title {
  margin-bottom: 14px;
}

.org-track {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.org-track + .org-track {
  margin-top: 16px;
}

.org-track-title {
  font-size: 16px;
  font-weight: 600;
}

.org-track p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.org-track .text-link {
  margin-top: 10px;
}

.org-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.about-boundary,
.about-feedback,
.about-related {
  padding: 40px 0 0;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin-top: 20px;
}

.boundary-item {
  position: relative;
  padding: 12px 16px 12px 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.boundary-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 21px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

.feedback-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feedback-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.feedback-title {
  font-size: 17px;
  font-weight: 600;
}

.feedback-item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.feedback-item .text-link {
  margin-top: 12px;
}

.about-related .related-links {
  margin-top: 20px;
  gap: 12px 28px;
}

/* ---------------------------------------------------------
   pages · 404
   --------------------------------------------------------- */
.error-main {
  display: block;
  flex: 1 1 auto;
}

.error-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 88px var(--pad) 96px;
  text-align: left;
}

.error-code {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  color: var(--gold);
}

.error-title {
  margin-top: 16px;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 600;
}

.error-text {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.error-paths {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-paths a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  font-size: 15px;
  color: var(--teal);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-paths a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.error-actions {
  margin-top: 24px;
}

.error-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 24px;
  font-size: 15px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
}

.error-home:hover {
  background: var(--gold);
  color: #fff;
}

.error-note {
  margin-top: 18px;
  font-size: 14px;
}

/* ---------------------------------------------------------
   responsive
   --------------------------------------------------------- */

/* 平板与窄桌面：双栏转单栏 */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-visual img {
    height: 260px;
  }

  .sidebar-left .home-layout,
  .home-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .genres-layout,
  .layout-shell:has(.content-main),
  .page-layout:has(.page-main-col) {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-hero-media img,
  .page-hero-figure img {
    height: 220px;
  }

  .cover-grid,
  .charts-columns,
  .guide-list,
  .rhythm-grid,
  .pick-grid,
  .feedback-list,
  .notes-related .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-block .chart-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .chart-block .chapter-entry {
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }
}

/* 手机端：导航转抽屉、字号下调 */
@media (max-width: 768px) {
  :root {
    --pad: 16px;
  }

  .header-inner {
    min-height: 60px;
    gap: 12px;
    justify-content: space-between;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
  }

  .nav-list.is-open {
    display: flex;
  }

  .section-title,
  .steps-block .section-head h2,
  .ops-block .section-head h2,
  .rhythm-block .section-head h2,
  .related-block .section-head h2 {
    font-size: 19px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-visual img {
    height: 220px;
  }

  .pick-feature {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
  }

  .timeline-item,
  .timeline-day .timeline-item,
  .update-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 14px 0;
  }

  .timeline-date,
  .update-time {
    color: var(--gold);
  }

  .timeline-scope,
  .update-range {
    white-space: normal;
  }

  .cover-grid,
  .charts-columns,
  .guide-list,
  .notes-list,
  .faq-list,
  .path-steps,
  .steps-list,
  .ops-list,
  .rhythm-grid,
  .related-block .related-list,
  .overview-flow,
  .checklist-list,
  .pick-grid,
  .feedback-list,
  .boundary-list,
  .notes-related .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-works {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-top: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .error-panel {
    padding: 56px var(--pad) 64px;
  }
}

/* 小屏：卡片单列、进一步收敛间距 */
@media (max-width: 520px) {
  .hero-title {
    font-size: 26px;
  }

  .page-title {
    font-size: 24px;
  }

  .pick-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .pick-cover img {
    aspect-ratio: 16 / 9;
  }

  .editor-pick,
  .update-timeline,
  .genre-card,
  .chart-block,
  .notes-articles .note-item,
  .case-summary,
  .case-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }
}
