/* ============================================================
   韩漫网 全站样式表
   版本：1.0
   说明：本站为漫画题材分类与阅读参考站，样式围绕阅读手册感设计
   ============================================================ */

/* ============================================================
   Base — 基础变量、重置、字体、通用元素
   ============================================================ */
:root {
  --bg-body: #F7FAF9;
  --bg-card: #FFFFFF;
  --bg-tint: #EAF4F1;
  --bg-nav: rgba(247, 250, 249, 0.92);
  --text-main: #243946;
  --text-soft: #5B6B76;
  --text-faint: #82949E;
  --accent: #2E9E8F;
  --accent-dark: #237A70;
  --accent-soft: #D9EFEB;
  --secondary: #4A7BA6;
  --secondary-soft: #E3EDF5;
  --line: #DDE7E4;
  --line-strong: #C4D4CF;
  --white: #FFFFFF;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-card: 0 2px 8px rgba(36, 57, 70, 0.06);
  --shadow-float: 0 8px 24px rgba(36, 57, 70, 0.10);
  --header-h: 64px;
  --header-h-scroll: 52px;
  --content-w: 1200px;
  --font-stack: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  background-color: var(--bg-body);
  min-height: 100vh;
}

body.site-home {
  background-color: var(--bg-body);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.4;
  font-weight: 700;
  color: var(--text-main);
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.375rem;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 0.5em;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* 通用可访问性 */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ============================================================
   Layout — 全站骨架：页头、导航、页脚、内容容器
   ============================================================ */

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-nav);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(36, 57, 70, 0.08);
}

.header-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 0.2s ease;
}

.site-header.is-scrolled .header-inner {
  height: var(--header-h-scroll);
}

/* 品牌 */
.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.brand-link:hover .brand-name {
  color: var(--accent);
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  margin: 0;
}

.nav-link {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
  background-color: var(--accent-soft);
}

.nav-link.is-current {
  color: var(--accent-dark);
  background-color: var(--accent-soft);
  font-weight: 700;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9375rem;
  min-height: 44px;
}

.nav-toggle:hover {
  background-color: var(--accent-soft);
}

.nav-toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  position: relative;
  transition: background-color 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-toggle-text {
  font-weight: 500;
}

/* ---------- 主内容区 ---------- */
.site-main {
  min-height: 60vh;
}

.inner-main {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
  user-select: none;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.page-description {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 720px;
  line-height: 1.8;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background-color: transparent;
}

.footer-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-bottom: 0;
}

.footer-nav-col h4,
.footer-read-col h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-nav-col h4::after,
.footer-read-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--accent);
  border-radius: 1px;
}

.footer-nav-col ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 24px;
}

.footer-nav-col a {
  display: inline-block;
  padding: 4px 0;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.footer-nav-col a:hover {
  color: var(--accent);
}

.footer-read-col p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-top: 16px;
}

.footer-boundary-line {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  text-align: center;
}

.footer-boundary-line p {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin: 0;
  max-width: var(--content-w);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Components — 通用组件
   ============================================================ */

/* ---------- 文字链接 ---------- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.text-link::after {
  content: "→";
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* ---------- 按钮链接 ---------- */
.button-link {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--accent);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(46, 158, 143, 0.25);
}

.button-link:hover {
  background-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 158, 143, 0.30);
}

/* ---------- 封面卡 ---------- */
.cover-card {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 200px;
  background-color: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cover-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.cover-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center;
}

.cover-card .genre-tag {
  display: inline-block;
  align-self: flex-start;
  margin: 12px 12px 4px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-dark);
  background-color: var(--accent-soft);
  border-radius: 999px;
}

.cover-card .cover-reason {
  padding: 4px 12px 14px;
  font-size: 0.8125rem;
  color: var(--text-soft);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- FAQ 折叠 ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--line-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  min-height: 48px;
  list-style: none;
  position: relative;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-item[open] summary {
  background-color: var(--bg-tint);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] p,
.faq-item[open] .faq-answer {
  padding: 0 20px 20px;
  color: var(--text-soft);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin: 0;
}

.faq-item[open] .faq-answer p {
  padding: 0;
  margin-bottom: 8px;
}

.faq-item[open] .faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---------- 排序按钮 ---------- */
.move-up-btn,
.move-down-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  font-size: 0.8125rem;
  color: var(--text-soft);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.move-up-btn:hover,
.move-down-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: var(--accent-soft);
}

/* ---------- 内容配图 ---------- */
.content-figure {
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-tint);
}

.content-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.content-figure figcaption {
  padding: 8px 16px;
  font-size: 0.8125rem;
  color: var(--text-faint);
  background-color: var(--bg-tint);
  border-top: 1px solid var(--line);
}

/* ============================================================
   Home — 首页专属样式
   ============================================================ */

.home-main {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 首屏服务清单区 ---------- */
.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 40px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 12px;
}

.hero-title span {
  color: var(--accent);
  position: relative;
}

.hero-lead {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 520px;
}

/* 服务入口网格 */
.service-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.service-entry-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-entry-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.entry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.entry-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.entry-text strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-text span {
  font-size: 0.8125rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 首屏主视觉 */
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  position: relative;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}

/* ---------- 功能提示条 ---------- */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin: 0 0 40px;
}

.notice-bar p {
  font-size: 0.875rem;
  color: var(--text-soft);
  margin: 0;
  flex: 1;
}

.notice-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.notice-link:hover {
  color: var(--accent-dark);
}

/* ---------- 封面墙区 ---------- */
.cover-wall-section {
  padding: 32px 0 48px;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.section-more-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.section-more-link:hover {
  color: var(--accent-dark);
}

.cover-wall-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.cover-wall-scroll::-webkit-scrollbar {
  height: 6px;
}

.cover-wall-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.cover-wall-scroll::-webkit-scrollbar-thumb {
  background-color: var(--line-strong);
  border-radius: 3px;
}

/* ---------- 题材分类速览 ---------- */
.genre-preview-section {
  padding: 32px 0 48px;
}

.genre-preview-section > .section-title {
  margin-bottom: 24px;
}

.genre-preview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.genre-preview-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px 12px 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.genre-preview-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
  transform: translateX(4px);
}

.genre-preview-item img {
  width: 88px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.genre-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.genre-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.genre-desc {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.genre-preview-section > .text-link {
  margin-top: 4px;
}

/* ---------- 双栏区 ---------- */
.dual-column-section {
  padding: 32px 0 48px;
}

.dual-col-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.updates-mini-col,
.ranking-mini-col {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.updates-mini-col h3,
.ranking-mini-col h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.update-snippet-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.update-snippet-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
}

.update-date {
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  background-color: var(--bg-tint);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 2px;
}

.update-text {
  color: var(--text-soft);
  line-height: 1.7;
}

.ranking-mini-col p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ---------- 阅读指引折叠区 ---------- */
.reading-faq-section {
  padding: 32px 0 48px;
}

.reading-faq-section > .section-title {
  margin-bottom: 8px;
}

.reading-faq-section > p {
  color: var(--text-soft);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.reading-faq-section > .faq-accordion {
  margin-bottom: 20px;
}

.reading-faq-section > .text-link {
  margin-top: 4px;
}

/* ---------- 版权与反馈引导条 ---------- */
.feedback-guide-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin: 16px 0 48px;
}

.feedback-guide-bar p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin: 0;
  flex: 1;
}

.feedback-guide-bar .notice-link {
  font-size: 0.9375rem;
}

/* ============================================================
   Inner Pages — 内页通用布局与组件
   ============================================================ */

/* ---------- 侧栏 + 主内容布局 ---------- */
.page-layout {
  display: grid;
  gap: 32px;
}

/* 侧栏在左 */
.sidebar-left {
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
}

.sidebar-left .page-layout {
  grid-template-columns: 220px minmax(0, 1fr);
}

/* 侧栏容器 */
.aside-toc,
.page-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
}

.aside-inner,
.sidebar-inner {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.aside-inner h2,
.sidebar-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.aside-inner ul,
.sidebar-list {
  padding: 8px 0 0;
}

.aside-inner li,
.sidebar-list li {
  margin-bottom: 2px;
}

.aside-inner a,
.sidebar-list a {
  display: block;
  padding: 6px 10px;
  font-size: 0.875rem;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.aside-inner a:hover,
.sidebar-list a:hover {
  color: var(--accent);
  background-color: var(--accent-soft);
  border-left-color: var(--accent);
}

/* 侧栏 CTA */
.aside-cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.aside-cta p {
  font-size: 0.8125rem;
  color: var(--text-faint);
  line-height: 1.6;
  margin-bottom: 8px;
}

.aside-cta a {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0;
  border: none;
  background: none;
}

.aside-cta a:hover {
  color: var(--accent-dark);
  background: none;
}

/* 主内容列 */
.main-content,
.page-content-col {
  min-width: 0;
}

/* 内容区块通用 */
.content-section {
  margin-bottom: 48px;
}

.content-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-soft);
}

.content-section > p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ---------- 页面级标题区 ---------- */
.page-hero-img {
  margin-bottom: 32px;
}

/* ============================================================
   题材分类页 — genres
   ============================================================ */

.genre-overview {
  margin-bottom: 48px;
}

.genre-overview h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.genre-overview > p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.table-scroll-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.genre-table {
  width: 100%;
  font-size: 0.9375rem;
  background-color: var(--bg-card);
}

.genre-table thead {
  background-color: var(--bg-tint);
}

.genre-table th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.genre-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  line-height: 1.7;
  vertical-align: top;
}

.genre-table tr:last-child td {
  border-bottom: none;
}

.genre-table tr:hover td {
  background-color: rgba(234, 244, 241, 0.5);
}

/* 题材单卡 */
.genre-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.genre-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.genre-figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-tint);
}

.genre-figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
}

.genre-card-body {
  min-width: 0;
}

.genre-card-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  border: none;
  padding: 0;
}

.genre-card-body > p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 10px;
}

.genre-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 12px;
  margin-bottom: 6px;
}

.genre-card-body .text-link {
  margin-top: 12px;
}

/* 相关入口 */
.related-links {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
}

.related-links h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.related-links > p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-list li {
  margin: 0;
}

.related-list a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-dark);
  background-color: var(--accent-soft);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.related-list a:hover {
  background-color: var(--accent);
  color: var(--white);
}

/* ============================================================
   最近更新页 — updates
   ============================================================ */

/* 更新规则区 */
.rule-item-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rule-item {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s ease;
}

.rule-item:hover {
  border-color: var(--line-strong);
}

.rule-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}

.rule-item h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.rule-item p {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}

/* 时间轴列表 */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  align-items: center;
  transition: border-color 0.2s ease;
}

.timeline-item:hover {
  border-color: var(--line-strong);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  grid-column: 1 / -1;
  margin-bottom: -8px;
}

.timeline-date {
  font-size: 0.8125rem;
  color: var(--text-faint);
  background-color: var(--bg-tint);
  padding: 2px 10px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.timeline-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary);
  background-color: var(--secondary-soft);
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.timeline-content {
  min-width: 0;
  grid-column: 1 / -1;
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}

.timeline-controls {
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

/* 相关链接区 */
.related-link-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.related-link strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
}

.related-link span {
  font-size: 0.8125rem;
  color: var(--text-faint);
}

/* ============================================================
   人气榜单页 — ranking
   ============================================================ */

.layout-shell {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
}

.layout-shell .inner-main {
  padding: 32px 0 64px;
}

/* 榜单维度说明 */
.rank-dimension-section {
  margin-bottom: 48px;
}

.rank-dimension-section h2,
.ranking-list-section h2,
.rank-order-note h2,
.related-links-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.section-intro {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-bottom: 24px;
  max-width: 680px;
}

.dimension-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dimension-item {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 3px solid var(--accent);
  transition: box-shadow 0.2s ease;
}

.dimension-item:hover {
  box-shadow: var(--shadow-card);
}

.dimension-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.dimension-item p {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}

/* 榜单卡片网格 */
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ranking-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.ranking-figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-tint);
}

.ranking-figure img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  object-position: center;
}

.ranking-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ranking-tier {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  background-color: var(--secondary-soft);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.ranking-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.ranking-reason {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}

.ranking-card-body .text-link {
  margin-top: auto;
}

/* 排序说明 */
.rank-order-note {
  background-color: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 48px 0;
}

.rank-order-note h2 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.rank-order-note p {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 8px;
}

.rank-order-note p:last-child {
  margin-bottom: 0;
}

/* 相关入口 */
.related-links-section {
  margin-top: 40px;
}

.related-links-section p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.8;
}

.related-links-section p a {
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.related-links-section p a:hover {
  border-bottom-color: var(--accent);
}

/* ============================================================
   阅读指引页 — reading
   ============================================================ */

.reading-path-section {
  margin-bottom: 48px;
}

.reading-path-section h2,
.reading-rhythm-section h2,
.reading-faq-section h2,
.reading-links-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.reading-path-section > p,
.reading-faq-section > p,
.reading-links-section > p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.path-step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.path-step-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.path-step-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.path-step-card p {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 8px;
}

.path-step-card p:last-child {
  margin-bottom: 0;
}

.path-step-card a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

/* 阅读节奏区 */
.rhythm-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.rhythm-figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.rhythm-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
}

.rhythm-figure figcaption {
  padding: 8px 12px;
  font-size: 0.8125rem;
  color: var(--text-faint);
  background-color: var(--bg-tint);
}

.rhythm-tips {
  min-width: 0;
}

.rhythm-tips h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.rhythm-tips ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.rhythm-tips li {
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.rhythm-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--accent);
}

.rhythm-tips li strong {
  color: var(--text-main);
  font-weight: 700;
}

.rhythm-tips > p {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}

/* FAQ 列表 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-list .faq-item {
  margin-bottom: 12px;
}

.faq-list .faq-item:last-child {
  margin-bottom: 0;
}

/* 延伸链接 */
.reading-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.reading-link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.reading-link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.reading-link-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.reading-link-card p {
  font-size: 0.8125rem;
  color: var(--text-faint);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   版权说明页 — statement
   ============================================================ */

.statement-section {
  max-width: 760px;
  margin-bottom: 48px;
}

.statement-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-soft);
}

.statement-section > p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-media-inline {
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-tint);
  margin-bottom: 20px;
  max-width: 480px;
}

.content-media-inline img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.content-media-inline figcaption {
  padding: 8px 16px;
  font-size: 0.8125rem;
  color: var(--text-faint);
  background-color: var(--bg-tint);
  border-top: 1px solid var(--line);
}

.statement-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.statement-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.statement-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

.statement-path-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.statement-path-list li {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.statement-path-list a {
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.statement-path-list a:hover {
  border-bottom-color: var(--accent);
}

.statement-return {
  max-width: 760px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.statement-return > p {
  font-size: 0.9375rem;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 16px;
}

.return-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.return-links a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-dark);
  background-color: var(--accent-soft);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.return-links a:hover {
  background-color: var(--accent);
  color: var(--white);
}

/* ============================================================
   404 页
   ============================================================ */

.error-main {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 64px 24px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-section {
  text-align: center;
  max-width: 560px;
  padding: 48px 32px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-section h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.error-desc {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.error-link {
  display: inline-block;
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-dark);
  background-color: var(--accent-soft);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.error-link:hover {
  background-color: var(--accent);
  color: var(--white);
}

/* ============================================================
   Responsive — 响应式断点
   ============================================================ */

/* ---------- 小于 1024px ---------- */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0;
  }

  .hero-media img {
    max-height: 320px;
    min-height: 220px;
  }

  .sidebar-left {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
  }

  .sidebar-left .page-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
  }

  .genre-card {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
  }

  .rule-item-list {
    grid-template-columns: 1fr;
  }

  .dimension-list {
    grid-template-columns: 1fr;
  }

  .ranking-grid {
    grid-template-columns: 1fr 1fr;
  }

  .path-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rhythm-content {
    grid-template-columns: 1fr;
  }

  .rhythm-figure img {
    height: 220px;
  }

  .reading-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-link-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ---------- 小于 768px ---------- */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    height: var(--header-h);
  }

  .site-header.is-scrolled .header-inner {
    height: var(--header-h);
  }

  /* 汉堡按钮显示 */
  .nav-toggle {
    display: inline-flex;
  }

  /* 导航列表默认收起 */
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-float);
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-link.is-current {
    background-color: var(--accent-soft);
  }

  /* 首页主容器 */
  .home-main {
    padding: 0 16px;
  }

  .inner-main {
    padding: 24px 16px 48px;
  }

  .hero-section {
    padding: 24px 0 32px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-media img {
    min-height: 200px;
  }

  /* 移动端顺序：hero 图在前，文案在后 */
  .hero-section {
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    order: 2;
  }

  .hero-media {
    order: 1;
    width: 100%;
  }

  /* 服务入口网格 */
  .service-entry-grid {
    grid-template-columns: 1fr;
  }

  .service-entry-card {
    padding: 14px 16px;
  }

  .notice-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    margin-bottom: 32px;
  }

  .cover-wall-section,
  .genre-preview-section,
  .dual-column-section,
  .reading-faq-section {
    padding: 24px 0 32px;
  }

  .cover-wall-scroll {
    margin: 0 -16px;
    padding: 8px 16px 16px;
  }

  .cover-card {
    width: 180px;
  }

  .cover-card img {
    height: 130px;
  }

  .dual-col-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .updates-mini-col,
  .ranking-mini-col {
    padding: 20px;
  }

  .feedback-guide-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    margin-bottom: 32px;
  }

  /* 页面标题 */
  .page-header {
    padding-bottom: 16px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .breadcrumb {
    margin-bottom: 16px;
  }

  /* 侧栏布局改单列 */
  .sidebar-left {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sidebar-left .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .aside-toc,
  .page-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    order: 2;
  }

  .main-content,
  .page-content-col {
    order: 1;
  }

  /* 题材卡 */
  .genre-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .genre-figure img {
    height: 160px;
  }

  .genre-table th,
  .genre-table td {
    padding: 12px 14px;
    font-size: 0.875rem;
  }

  .related-links {
    padding: 20px;
  }

  /* 更新页 */
  .rule-item-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline-item {
    padding: 16px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-meta {
    grid-column: 1;
    flex-wrap: wrap;
  }

  .timeline-content {
    grid-column: 1;
  }

  .timeline-controls {
    grid-column: 1;
    justify-content: flex-start;
  }

  .related-link-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 榜单页 */
  .layout-shell {
    padding: 0 16px;
  }

  .layout-shell .inner-main {
    padding: 24px 0 48px;
  }

  .dimension-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dimension-item {
    padding: 20px;
  }

  .ranking-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ranking-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .ranking-figure img {
    height: 160px;
  }

  .rank-order-note {
    padding: 20px;
    margin: 32px 0;
  }

  /* 阅读指引 */
  .path-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .path-step-card {
    padding: 20px;
  }

  .rhythm-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }

  .rhythm-figure img {
    height: 180px;
  }

  .reading-links-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 版权页 */
  .statement-section {
    margin-bottom: 32px;
  }

  .statement-return {
    padding: 20px;
  }

  .return-links {
    flex-direction: column;
    align-items: stretch;
  }

  .return-links a {
    text-align: center;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 16px 24px;
  }

  .footer-nav-col ul {
    grid-template-columns: 1fr 1fr;
  }

  .footer-boundary-line {
    padding: 16px;
  }

  /* 404 */
  .error-main {
    padding: 32px 16px;
  }

  .error-section {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 3rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-link {
    text-align: center;
  }
}

/* ---------- 小于 480px ---------- */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-lead {
    font-size: 0.9375rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .genre-preview-item {
    gap: 12px;
    padding: 10px;
  }

  .genre-preview-item img {
    width: 72px;
    height: 56px;
  }

  .genre-name {
    font-size: 0.9375rem;
  }

  .genre-desc {
    font-size: 0.8125rem;
  }

  .cover-card {
    width: 160px;
  }

  .cover-card img {
    height: 120px;
  }

  .footer-nav-col ul {
    grid-template-columns: 1fr;
  }

  .page-description {
    font-size: 0.9375rem;
  }
}

/* ---------- 打印样式 ---------- */
@media print {
  .site-header,
  .site-footer,
  .aside-toc,
  .page-sidebar,
  .breadcrumb,
  .notice-bar,
  .feedback-guide-bar,
  .timeline-controls,
  .move-up-btn,
  .move-down-btn {
    display: none !important;
  }

  body {
    background-color: var(--white);
  }

  .inner-main,
  .home-main,
  .layout-shell {
    max-width: 100%;
    padding: 0;
  }

  .sidebar-left,
  .sidebar-left .page-layout {
    grid-template-columns: 1fr;
  }

  .main-content,
  .page-content-col {
    order: 1;
  }

  .dual-col-wrap,
  .ranking-grid,
  .path-steps,
  .dimension-list,
  .rule-item-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .genre-card {
    grid-template-columns: 1fr;
  }

  .rhythm-content {
    grid-template-columns: 1fr;
  }

  .reading-links-grid,
  .related-link-list {
    grid-template-columns: 1fr 1fr;
  }
}
