:root {
  --paper: #F7F5F0;
  --ink: #1F1D1A;
  --ink-soft: #6B6660;
  --brand: #E4572E;
  --running: #2A6F97;
  --done: #8A8578;
  --line: #E2DED6;
  --surface: #FFFFFF;
  --surface-alt: #F1EEE7;

  --c-red: #C44536;
  --c-orange: #E08D2F;
  --c-green: #7A9E3F;
  --c-cyan: #3E8E8E;
  --c-indigo: #5C6BC0;
  --c-purple: #A05195;
  --c-brown: #B0885A;
  --c-gray: #5A5A5A;

  --radius: 5px;
  --radius-sm: 4px;
  --shell: 1180px;
  --prose: 760px;
  --pad-x: 32px;
  --reading-size: 17px;

  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. layout —— 骨架：页头、导航、主容器、面包屑、页标题、页脚
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- 页头 --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  flex: none;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand::before {
  content: "";
  width: 8px;
  height: 18px;
  margin-right: 8px;
  background: var(--brand);
  border-radius: 2px;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  color: var(--ink);
}

.nav-list a.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--brand);
}

.menu-toggle {
  flex: none;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  position: relative;
}

.menu-toggle::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 15px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 12px 0 var(--ink);
}

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav-list {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 4px var(--pad-x) 10px;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-nav-list li:last-child a {
  border-bottom: 0;
}

.mobile-nav-list a.is-current {
  color: var(--brand);
  font-weight: 600;
}

/* --- 主容器 --- */
.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad-x) 56px;
}

.home-main {
  padding-bottom: 56px;
}

/* --- 面包屑 --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

/* --- 页标题区 --- */
.page-header {
  padding: 14px 0 0;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
}

.page-hero,
.page-intro,
.page-head {
  padding: 14px 0 0;
  max-width: var(--prose);
}

.page-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-hero-inner {
  max-width: var(--prose);
}

.status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.status-tag,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* --- 页脚 --- */
.site-footer {
  margin-top: 40px;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px var(--pad-x) 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 28px 32px;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 340px;
}

.footer-list li + li {
  margin-top: 2px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-list a:hover {
  color: var(--brand);
}

.footer-note {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad-x) 32px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* --------------------------------------------------------------------------
   3. components —— 通用组件
   -------------------------------------------------------------------------- */

/* --- 按钮 --- */
.btn,
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #C9461F;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* --- 模块标题头 --- */
.section {
  padding: 40px 0 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.section-head h2,
.section-title {
  font-size: 22px;
  font-weight: 600;
}

.section-more {
  font-size: 14px;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.section-more:hover {
  text-decoration: underline;
}

.section-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: var(--prose);
  margin-top: 8px;
}

.section-title + .section-desc {
  margin-top: 6px;
}

/* --- 题材标签色板 --- */
.topic-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.7;
  border-radius: var(--radius-sm);
  border: 1px solid currentColor;
  white-space: nowrap;
}

.tone-red,
.topic-tag--red,
.tag-red,
.topic-red {
  color: var(--c-red);
}

.tone-orange,
.topic-tag--orange,
.tag-orange,
.topic-orange {
  color: var(--c-orange);
}

.tone-green,
.topic-tag--green,
.topic-green {
  color: var(--c-green);
}

.tone-cyan,
.topic-tag--teal,
.tag-teal,
.topic-cyan {
  color: var(--c-cyan);
}

.tone-indigo,
.topic-tag--indigo,
.topic-indigo {
  color: var(--c-indigo);
}

.tone-purple,
.topic-tag--purple,
.tag-purple,
.topic-purple {
  color: var(--c-purple);
}

.tone-brown,
.topic-tag--brown,
.topic-brown {
  color: var(--c-brown);
}

.tone-gray,
.topic-tag--gray,
.topic-gray {
  color: var(--c-gray);
}

.tag-topic-chi {
  color: var(--c-red);
}

.tag-topic-cheng {
  color: var(--c-orange);
}

.tag-topic-lv {
  color: var(--c-green);
}

.tag-topic-qing {
  color: var(--c-cyan);
}

.tag-topic-lan {
  color: var(--c-indigo);
}

.tag-topic-zi {
  color: var(--c-purple);
}

.tag-topic-zong {
  color: var(--c-brown);
}

.tag-topic-hui {
  color: var(--c-gray);
}

.tag-chapter {
  color: var(--c-indigo);
}

.tag-font {
  color: var(--c-orange);
}

.tag-area {
  color: var(--c-cyan);
}

.tag-nav {
  color: var(--c-gray);
}

.tag-status,
.tag-block {
  color: var(--ink-soft);
}

/* --- 连载状态徽标 --- */
.serial-badge,
.status-badge,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.7;
  border-radius: var(--radius-sm);
  border: 1px solid currentColor;
  white-space: nowrap;
}

.is-running,
.status-badge--ongoing,
.status-running,
.badge-ongoing {
  color: var(--running);
}

.is-paused,
.status-badge--hiatus,
.status-intermittent,
.badge-intermittent {
  color: var(--c-orange);
}

.is-done,
.status-badge--ended,
.status-finished,
.badge-done {
  color: var(--done);
}

/* --- 条目行 --- */
.entry-list {
  border-top: 1px solid var(--line);
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.entry-name {
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  overflow-wrap: anywhere;
}

a.entry-name:hover {
  color: var(--brand);
}

.entry-range,
.entry-chapter {
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* --- 折叠问答 --- */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 32px 10px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq-answer {
  padding: 0 0 16px;
  max-width: var(--prose);
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* --- 相关支持入口条 --- */
.support-strip,
.support-bar,
.section-support {
  padding-top: 40px;
}

.support-strip h2,
.support-bar h2,
.section-support h2,
.support-title {
  font-size: 22px;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.support-cell,
.support-item,
.support-card {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.support-cell h3,
.support-item h3,
.support-card h3,
.support-item-title,
.support-cell-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.support-cell p,
.support-item p,
.support-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.support-link,
.support-cell a,
.support-item a,
.support-card a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--brand);
}

.support-link:hover,
.support-cell a:hover,
.support-item a:hover,
.support-card a:hover {
  text-decoration: underline;
}

/* --- 返回顶部 --- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(31, 29, 26, 0.08);
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 10px;
  height: 10px;
  margin: -7px 0 0 -5px;
  border-left: 2px solid var(--ink);
  border-top: 2px solid var(--ink);
  transform: rotate(45deg);
}

.back-to-top:hover {
  border-color: var(--brand);
}

/* --- 通用图文区 --- */
.page-figure,
.page-media,
.section-figure,
.topic-figure,
.reading-figure {
  margin: 20px 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-figure img,
.page-media img,
.section-figure img,
.topic-figure img,
.reading-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--surface-alt);
}

.page-figure figcaption,
.page-media figcaption,
.section-figure figcaption,
.topic-figure figcaption,
.reading-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* --- 通用建议三列 --- */
.advice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.advice-col {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.advice-col h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.advice-col p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.advice-col p + p {
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   4. pages —— 各页面专属模块
   -------------------------------------------------------------------------- */

/* ===== 4.1 首页 ===== */
.hero {
  padding: 28px 0 0;
}

.hero-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.hero-lead {
  min-width: 0;
}

.hero-lead h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  max-width: 620px;
}

.hero-slogan {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.today-shelf {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-title {
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.shelf-list {
  padding: 4px 0 0;
}

.shelf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.shelf-name {
  font-size: 15px;
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}

.topic-index {
  margin-top: 14px;
}

.topic-index-label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.topic-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

.topic-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.hero-media {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.hero-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  background: var(--surface-alt);
}

/* 最近更新摘要 */
.recent-updates {
  padding-top: 40px;
}

/* 题材分区速览 */
.topic-overview {
  padding-top: 40px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.topic-cell {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-cell:hover {
  border-color: var(--brand);
}

.topic-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.topic-count {
  font-size: 14px;
  color: var(--ink);
}

.topic-status {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* 封面墙 */
.cover-wall {
  padding-top: 40px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cover-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.cover-card a {
  display: block;
  padding: 10px;
}

.cover-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  transition: transform 0.25s ease;
}

.cover-card:hover {
  border-color: var(--brand);
}

.cover-card:hover img {
  transform: scale(1.03);
}

.cover-name {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.cover-card .topic-tag {
  margin-top: 6px;
}

/* 热度编排速览 */
.chart-overview {
  padding-top: 40px;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dimension-cell,
.dimension-card {
  padding: 14px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dimension-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.dimension-value,
.dimension-range {
  font-size: 14px;
  color: var(--ink-soft);
}

.dimension-note {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.rank-cell {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rank-no {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}

.rank-name {
  display: block;
  margin: 6px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* 连载日程摘要 */
.schedule-overview {
  padding-top: 40px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.schedule-col {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.schedule-day {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.schedule-entry {
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* 阅读须知摘要 */
.reading-brief {
  padding-top: 40px;
}

.brief-list {
  border-top: 1px solid var(--line);
}

.brief-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.brief-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.brief-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: var(--prose);
}

/* 更正与反馈入口条 */
.feedback-strip {
  margin-top: 40px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-strip h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feedback-strip p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.feedback-strip a {
  color: var(--brand);
}

.feedback-strip a:hover {
  text-decoration: underline;
}

/* ===== 4.2 书架总览 ===== */
.alpha-nav {
  margin-top: 22px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.alpha-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.alpha-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

.alpha-link:hover,
.alpha-link.is-active {
  border-color: var(--brand);
  color: var(--brand);
}

.index-guide {
  padding-top: 32px;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-item {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.guide-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.shelf-index {
  padding-top: 40px;
}

.alpha-group + .alpha-group {
  margin-top: 8px;
}

.group-heading {
  position: sticky;
  top: 62px;
  z-index: 5;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.status-legend {
  margin-top: 32px;
}

.legend-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.legend-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.legend-item--note {
  grid-column: 1 / -1;
  background: var(--surface-alt);
}

.support-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.support-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* ===== 4.3 题材分区 ===== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.topics-table {
  min-width: 640px;
}

.topics-table th,
.topics-table td {
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.topics-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-alt);
  white-space: nowrap;
}

.topics-table tbody th {
  font-weight: 600;
}

.topics-table tbody th a {
  color: var(--brand);
}

.topics-table tbody th a:hover {
  text-decoration: underline;
}

.topics-table tbody tr:last-child th,
.topics-table tbody tr:last-child td {
  border-bottom: 0;
}

.topic-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.topic-block .topic-figure {
  margin: 0;
}

.topic-block .topic-figure img {
  height: 200px;
}

.topic-block-reverse .topic-figure {
  order: 2;
}

.topic-body {
  min-width: 0;
}

.topic-body h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 10px 0 8px;
}

.topic-body p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: var(--prose);
}

.topic-body p + p {
  margin-top: 6px;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--brand);
}

.entry-link:hover {
  text-decoration: underline;
}

/* ===== 4.4 连载日程 ===== */
.week-board {
  padding-top: 32px;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.week-col {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.week-day {
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.week-list {
  padding-top: 6px;
}

.week-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.week-item:last-child {
  border-bottom: 0;
}

.week-item a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.week-item a:hover {
  color: var(--brand);
}

.week-chapter {
  font-size: 12px;
  color: var(--ink-soft);
}

.status-groups {
  padding-top: 40px;
}

.status-group {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
}

.group-desc {
  margin: 6px 0 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: var(--prose);
}

.pacing-advice {
  padding-top: 40px;
}

/* ===== 4.5 热度编排 ===== */
.charts-intro {
  padding-top: 32px;
}

.charts-intro > p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: var(--prose);
}

.charts-dimensions {
  padding-top: 40px;
}

.charts-dimensions .dimension-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.charts-ranking {
  padding-top: 40px;
}

.rank-list {
  border-top: 1px solid var(--line);
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rank-index {
  flex: none;
  width: 34px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.3;
}

.rank-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.rank-title {
  flex: 1 1 200px;
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.rank-title a:hover {
  color: var(--brand);
}

.rank-length {
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.charts-single {
  padding-top: 40px;
}

.single-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.single-column {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.single-title {
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.single-list {
  padding-top: 6px;
}

.single-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.single-row:last-child {
  border-bottom: 0;
}

.single-index {
  flex: none;
  width: 20px;
  font-weight: 600;
  color: var(--brand);
}

.single-row a {
  min-width: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.single-row a:hover {
  color: var(--brand);
}

.charts-usage {
  padding-top: 40px;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.usage-col {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.usage-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.usage-col p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ===== 4.6 阅读须知 ===== */
.section-structure {
  padding-top: 32px;
}

.structure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.structure-block {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.block-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.structure-block p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.structure-block p + p {
  margin-top: 6px;
}

.section-font {
  padding-top: 40px;
}

.font-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.font-notes {
  min-width: 0;
}

.font-note-list {
  margin-top: 10px;
}

.font-note {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.font-level {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--ink-soft);
}

.font-level-small {
  color: var(--c-cyan);
}

.font-level-medium {
  color: var(--c-orange);
}

.font-level-large {
  color: var(--c-purple);
}

.font-note p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.font-demo {
  min-width: 0;
}

.reading-demo-box {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reading-demo-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.font-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--ink-soft);
}

.font-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.font-btn.is-active {
  border-color: var(--brand);
  color: var(--brand);
  background: #FCEBE5;
}

.reading-demo-text {
  margin-top: 12px;
  font-size: var(--reading-size);
  line-height: 1.85;
  color: var(--ink);
}

.section-faq {
  padding-top: 40px;
}

/* ===== 4.7 更正与反馈 ===== */
.section-scope {
  padding-top: 32px;
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.scope-list {
  padding: 6px 18px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.scope-item:last-child {
  border-bottom: 0;
}

.scope-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.scope-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.section-steps {
  padding-top: 40px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-item {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--brand);
  border-radius: var(--radius-sm);
}

.step-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.section-reject {
  padding-top: 40px;
}

.reject-list {
  border-top: 1px solid var(--line);
}

.reject-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.reject-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.reject-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: var(--prose);
}

/* ===== 4.8 404 ===== */
.error-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px var(--pad-x) 56px;
}

.error-panel {
  width: 100%;
  max-width: 620px;
  padding: 28px 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand);
}

.error-title {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
}

.error-text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--brand);
}

.error-links a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   5. responsive —— 断点：1080px / 760px / 480px
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  :root {
    --pad-x: 24px;
  }

  .hero-columns {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 22px;
  }

  .hero-media img {
    height: 300px;
  }

  .topic-grid,
  .cover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .schedule-grid,
  .week-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .charts-dimensions .dimension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legend-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --pad-x: 16px;
  }

  body {
    font-size: 16px;
  }

  /* 页头与导航 */
  .header-inner {
    min-height: 56px;
    gap: 12px;
    justify-content: space-between;
  }

  .site-nav .nav-list {
    display: none;
  }

  .site-nav .nav-list.is-open {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    padding: 4px 0;
  }

  .site-nav .nav-list.is-open a {
    width: 100%;
    min-height: 48px;
    border-bottom: 1px solid var(--line);
  }

  .menu-toggle {
    display: block;
  }

  .group-heading {
    top: 56px;
  }

  /* 页标题 */
  .page-title,
  .hero-lead h1 {
    font-size: 26px;
  }

  /* 首屏改为上下 */
  .hero {
    padding-top: 20px;
  }

  .hero-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero-media {
    margin-top: 20px;
  }

  .hero-media img {
    height: 220px;
  }

  /* 网格降列 */
  .topic-grid,
  .cover-grid,
  .dimension-grid,
  .charts-dimensions .dimension-grid,
  .advice-grid,
  .guide-list,
  .structure-grid,
  .single-grid,
  .usage-grid,
  .support-grid,
  .support-list,
  .scope-columns,
  .step-list,
  .legend-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 日程与周表改纵向 */
  .schedule-grid,
  .week-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-col,
  .week-col {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
  }

  .schedule-day,
  .week-day {
    flex: 1 1 100%;
    padding-bottom: 6px;
  }

  /* 条目行与榜单 */
  .entry-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }

  .entry-name {
    grid-column: 1 / -1;
  }

  .rank-row {
    align-items: flex-start;
    gap: 10px;
  }

  .rank-body {
    gap: 4px 12px;
  }

  .rank-title {
    flex: 1 1 100%;
  }

  /* 图文块 */
  .topic-block,
  .font-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .topic-block-reverse .topic-figure {
    order: 0;
  }

  .page-figure img,
  .page-media img,
  .section-figure img,
  .reading-figure img {
    height: 200px;
  }

  .topic-block .topic-figure img {
    height: 180px;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 32px;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-note {
    padding-bottom: 28px;
  }

  .back-to-top {
    right: 14px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    gap: 10px;
  }

  .btn-primary,
  .btn-ghost {
    flex: 1 1 auto;
  }

  .rank-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-panel {
    padding: 22px 18px 20px;
  }

  .error-code {
    font-size: 34px;
  }

  .error-title {
    font-size: 22px;
  }
}
