/* ==========================================================
   香香漫画 · 全站样式表
   视觉方向：纸张感浅米底 + 白色卡片 + 墨灰蓝文字 + 玫瑰红强调
   ========================================================== */

/* ----------------------------------------------------------
   1. Base —— 变量、重置、全局基础
   ---------------------------------------------------------- */
:root {
  --paper: #F6F2EA;
  --card: #FFFFFF;
  --ink: #30353D;
  --ink-soft: #4A505A;
  --muted: #6B7280;
  --rose: #D98294;
  --rose-deep: #C96E82;
  --rose-soft: #F7E8EB;
  --sage: #7FAFA9;
  --sage-soft: #E4EFED;
  --line: #E5E0D8;
  --blue-soft: #E3EDF2;
  --blue-line: #C9DCE6;

  --font-main: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --shadow-card: 0 1px 3px rgba(48, 53, 61, 0.06), 0 1px 2px rgba(48, 53, 61, 0.04);
  --shadow-lift: 0 6px 18px rgba(48, 53, 61, 0.08), 0 2px 6px rgba(48, 53, 61, 0.05);

  --maxw: 1200px;
  --header-h: 66px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rose-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  font-weight: 700;
}

/* 跳转锚点平滑偏移 */
:target {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* ----------------------------------------------------------
   2. Layout —— 全站骨架容器
   ---------------------------------------------------------- */

/* 内页主容器 */
.site-main {
  width: 100%;
}

.inner-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px 56px;
  width: 100%;
}

/* 首页主容器 */
.home-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 56px;
  width: 100%;
}

/* 页面标题区（所有内页统一） */
.page-header {
  margin-bottom: 30px;
}

.page-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0;
  margin-bottom: 10px;
}

.page-description {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 760px;
  line-height: 1.8;
}

.page-description a {
  color: var(--rose-deep);
  font-weight: 500;
}

/* 面包屑（内页统一） */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--rose-deep);
  text-decoration: none;
}

.breadcrumb-sep {
  color: #B9B2A7;
  margin: 0 2px;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* 区块标题通用 */
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.section-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
  margin-top: 10px;
}

/* ----------------------------------------------------------
   3. Components —— 通用组件
   ---------------------------------------------------------- */

/* ---------- 页头 ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.brand-name::first-letter {
  color: var(--rose-deep);
}

/* 主导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list li a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius-lg);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  color: var(--rose-deep);
  background: var(--rose-soft);
  text-decoration: none;
}

.nav-list li a.is-current {
  color: var(--rose-deep);
  background: var(--rose-soft);
  font-weight: 600;
}

/* 汉堡按钮（默认隐藏） */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: var(--paper);
}

.nav-toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- 按钮 ---------- */
.btn-primary,
.btn-secondary,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius-lg);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  min-height: 44px;
}

.btn-primary {
  background: var(--rose);
  color: #fff;
  border: 1px solid var(--rose);
}

.btn-primary:hover {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
  text-decoration: none;
  box-shadow: var(--shadow-lift);
}

.btn-secondary {
  background: transparent;
  color: var(--rose-deep);
  border: 1px solid var(--rose);
}

.btn-secondary:hover {
  background: var(--rose-soft);
  text-decoration: none;
}

.btn {
  background: var(--rose);
  color: #fff;
  border: 1px solid var(--rose);
}

.btn:hover {
  background: var(--rose-deep);
  text-decoration: none;
}

/* ---------- 文字链接 ---------- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rose-deep);
}

.text-link:hover {
  color: var(--rose-deep);
  text-decoration: underline;
}

.text-link::after {
  content: "→";
  font-size: 13px;
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #ECE7DE;
  border-top: 1px solid var(--line);
}

.footer-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 20px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-col h3.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list li a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.footer-list li a:hover {
  color: var(--rose-deep);
  text-decoration: none;
}

.footer-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-brief {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.copyright-line {
  font-size: 13px;
  color: #8C867B;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #D8D1C6;
}

/* ---------- 页脚相关链接条（页面底部） ---------- */
.related-links {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.related-links-label {
  font-size: 13px;
  color: var(--muted);
  margin-right: 4px;
}

.related-links-item {
  font-size: 14px;
  color: var(--rose-deep);
  background: var(--rose-soft);
  padding: 6px 16px;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.related-links-item:hover {
  background: #F0D9DE;
  text-decoration: none;
}

/* ---------- 封面卡通用 ---------- */
.genre-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--rose-deep);
  background: var(--rose-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* ---------- 状态标签 ---------- */
.status-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #4A6B7C;
}

/* ---------- 标签（通用） ---------- */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 999px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--rose-deep);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  background: var(--rose-soft);
}

.faq-item p {
  padding: 4px 20px 18px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ----------------------------------------------------------
   4. Pages —— 页面专属
   ---------------------------------------------------------- */

/* ==========================================================
   首页 index.html
   ========================================================== */

/* ---------- Hero 首屏 ---------- */
.hero-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 40px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 520px;
}

.hero-title em {
  font-style: normal;
  color: var(--rose-deep);
}

.hero-lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-note {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--rose-deep);
  padding: 6px 14px;
  box-shadow: var(--shadow-card);
}

/* ---------- 站内导览条 ---------- */
.guide-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0 36px;
}

.guide-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.guide-tile:hover {
  box-shadow: var(--shadow-lift);
  border-color: var(--rose);
  text-decoration: none;
  transform: translateY(-2px);
}

.tile-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.tile-name::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--sage);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.guide-tile:nth-child(2) .tile-name::before {
  background: var(--rose);
}

.guide-tile:nth-child(3) .tile-name::before {
  background: #B8A4C9;
}

.guide-tile:nth-child(4) .tile-name::before {
  background: #D9B382;
}

.tile-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 题材标签条 ---------- */
.genre-strip {
  margin-bottom: 38px;
}

.genre-strip .section-title {
  font-size: 20px;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 18px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.genre-tag:hover {
  color: var(--rose-deep);
  border-color: var(--rose);
  background: var(--rose-soft);
  text-decoration: none;
}

/* ---------- 编辑看板（本周推荐） ---------- */
.editor-picks {
  margin-bottom: 42px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading .section-title {
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pick-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pick-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.pick-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card-info {
  padding: 16px 16px 18px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.card-status {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.card-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 新章情报摘要 ---------- */
.news-digest {
  margin-bottom: 42px;
}

.news-digest .section-subtitle {
  margin-top: 6px;
}

.news-digest .section-subtitle a {
  color: var(--rose-deep);
  font-weight: 500;
}

.digest-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 6px 24px;
}

.digest-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.digest-item:last-child {
  border-bottom: none;
}

.digest-type {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--rose-deep);
  background: var(--rose-soft);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  flex-shrink: 0;
}

.digest-item:nth-child(2) .digest-type {
  color: var(--sage);
  background: var(--sage-soft);
}

.digest-item:nth-child(3) .digest-type {
  color: #4A6B7C;
  background: var(--blue-soft);
}

.digest-text {
  flex: 1;
  min-width: 200px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.digest-text strong {
  color: var(--ink);
}

/* ---------- 欢迎帮助（FAQ 引导） ---------- */
.welcome-help {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  margin-bottom: 42px;
}

.welcome-help .section-title {
  font-size: 20px;
}

.faq-mini {
  margin: 18px 0 20px;
}

.guide-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--rose-deep);
  padding: 10px 24px;
  border: 1px solid var(--rose);
  border-radius: var(--radius-lg);
  transition: background-color 0.2s ease;
}

.guide-link:hover {
  background: var(--rose-soft);
  text-decoration: none;
}

/* ==========================================================
   漫画书架页 xxmh/books.html
   ========================================================== */

.page-books .page-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}

/* 筛选侧栏 */
.filter-sidebar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.filter-group {
  margin-bottom: 26px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-btn {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  background: var(--paper);
  color: var(--rose-deep);
}

.filter-btn.is-active {
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-weight: 600;
  border-color: var(--rose);
}

/* 书目结果区 */
.book-results {
  min-width: 0;
}

.results-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}

.results-count {
  font-weight: 600;
  color: var(--ink);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.book-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.book-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.book-cover-wrap {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper);
}

.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.book-card:hover .book-cover {
  transform: scale(1.02);
}

.book-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.book-tags .tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--rose-deep);
  background: var(--rose-soft);
  border: none;
  padding: 3px 10px;
}

.book-tags .tag.tag-genre {
  color: #4A6B7C;
  background: var(--blue-soft);
}

.book-tags .tag.tag-status {
  color: var(--sage);
  background: var(--sage-soft);
}

.book-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.book-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.book-note-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--rose-deep);
  margin-top: auto;
}

/* 延伸阅读条（书目区底部） */
.book-results .related-links {
  padding: 20px 0 0;
  margin: 0;
}

.related-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.related-desc {
  font-size: 14px;
  color: var(--muted);
}

/* ==========================================================
   选漫路线页 xxmh/paths.html
   ========================================================== */

/* 推荐逻辑条 */
.logic-strip {
  background: var(--sage-soft);
  border: 1px solid #CFE0DD;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 36px;
}

.logic-strip .section-title {
  font-size: 18px;
}

.logic-strip .section-title::after {
  background: var(--sage);
}

.logic-content p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* 场景路线 */
.route-section {
  margin-bottom: 40px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.route-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.route-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.route-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.route-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.route-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.route-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.route-time-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.route-body > p:not(.route-time-note) {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.route-tags {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.route-tags strong {
  color: var(--ink);
  font-weight: 600;
}

.route-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--rose-deep);
}

/* 题材标签对照区 */
.tag-mapping-section {
  margin-bottom: 40px;
}

.mapping-intro {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.mapping-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mapping-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mapping-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--rose-deep);
  background: var(--rose-soft);
  border-radius: 999px;
  padding: 4px 14px;
  flex-shrink: 0;
}

.mapping-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* 下一步引导区 */
.next-step-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}

.next-step-content p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.next-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  min-height: 44px;
  background: var(--rose);
  color: #fff;
  border: 1px solid var(--rose);
  transition: background-color 0.2s ease;
}

.action-link:hover {
  background: var(--rose-deep);
  text-decoration: none;
}

.action-link + .action-link {
  background: transparent;
  color: var(--rose-deep);
  border-color: var(--rose);
}

.action-link + .action-link:hover {
  background: var(--rose-soft);
}

/* ==========================================================
   新章情报页 xxmh/news.html
   ========================================================== */

.news-section {
  margin-bottom: 44px;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
}

.section-heading-row .section-title {
  font-size: 20px;
  margin-bottom: 0;
}

.section-heading-row .section-title::after {
  display: none;
}

.section-note {
  font-size: 13px;
  color: var(--muted);
}

/* 新作首话区 */
.debut-feature {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 18px;
}

.debut-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.debut-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.debut-figure figcaption {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 4px 0;
  line-height: 1.5;
}

.debut-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.debut-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.debut-status {
  margin-bottom: 10px;
}

.debut-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* 紧凑条目 */
.debut-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.news-item-compact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.item-status {
  margin: 8px 0;
}

.item-brief {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* 连载恢复列表 */
.resume-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 6px 24px;
}

.news-item-line {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  align-items: start;
}

.news-item-line:last-child {
  border-bottom: none;
}

.item-main {
  min-width: 0;
}

.item-main .item-title {
  margin-bottom: 6px;
}

/* 完结提醒卡片 */
.end-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-item-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.news-item-card .item-title {
  margin-bottom: 8px;
}

/* 引导区 */
.news-guide {
  margin-top: 10px;
}

.guide-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
}

.guide-box h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.guide-box > p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.guide-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.guide-note {
  font-size: 13px;
  color: var(--muted);
}

.guide-note a {
  color: var(--rose-deep);
}

/* ==========================================================
   漫游手账页 xxmh/journal.html
   ========================================================== */

.journal-entry {
  max-width: 900px;
}

.entry-header {
  margin-bottom: 28px;
}

.entry-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--rose-deep);
  background: var(--rose-soft);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 12px;
}

.entry-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 8px;
}

.entry-meta {
  font-size: 13px;
  color: var(--muted);
}

/* 起始段 */
.entry-lead {
  margin-bottom: 42px;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: center;
}

.lead-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.lead-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.lead-figure figcaption {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 4px 0;
  line-height: 1.5;
}

.lead-copy p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 14px;
}

.lead-copy p:last-child {
  margin-bottom: 0;
}

/* 观察拆解区 */
.entry-observation {
  margin-bottom: 42px;
}

.observation-intro {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 760px;
}

.figure-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.strip-figure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.strip-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.strip-figure figcaption {
  font-size: 12px;
  color: var(--muted);
  padding: 8px;
  line-height: 1.5;
}

.observation-copy p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 14px;
  max-width: 760px;
}

/* 同题材延伸 */
.related-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 36px;
}

.related-list .section-title {
  font-size: 18px;
}

.related-intro {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.related-items li {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.related-items li:first-child {
  border-top: none;
}

.related-items li:last-child {
  padding-bottom: 0;
}

.related-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #4A6B7C;
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 6px;
}

.related-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.related-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 6px;
}

.related-items a {
  font-size: 13px;
  font-weight: 600;
  color: var(--rose-deep);
}

/* 结尾 */
.journal-outro {
  margin-bottom: 20px;
}

.outro-links p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 18px;
  max-width: 760px;
}

.outro-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.outro-nav a {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--rose-deep);
  background: var(--rose-soft);
  border-radius: 999px;
  padding: 8px 20px;
  transition: background-color 0.2s ease;
}

.outro-nav a:hover {
  background: #F0D9DE;
  text-decoration: none;
}

/* ==========================================================
   阅读向导页 xxmh/guide.html
   ========================================================== */

.guide-section {
  margin-bottom: 44px;
}

.guide-section .section-heading-row {
  margin-bottom: 18px;
}

.section-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 720px;
}

/* 字段拆解图 */
.field-explainer-figure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 22px;
}

.field-explainer-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.field-explainer-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
  line-height: 1.6;
  background: var(--paper);
}

/* 字段说明网格 */
.field-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.field-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.field-item-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}

.field-item-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--rose);
}

.field-item:nth-child(2) .field-item-title::before {
  background: var(--sage);
}

.field-item:nth-child(3) .field-item-title::before {
  background: #B8A4C9;
}

.field-item:nth-child(4) .field-item-title::before {
  background: #D9B382;
}

.field-item-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* FAQ 分组 */
.faq-group-section {
  max-width: 760px;
}

.faq-accordion {
  margin-top: 4px;
}

.faq-accordion .faq-item summary {
  font-size: 16px;
}

.faq-content p {
  padding-top: 0;
}

/* 下一步引导条 */
.guide-next-strip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}

.next-strip-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.next-strip-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.7;
  flex: 1;
  min-width: 260px;
}

.next-strip-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================
   版权与反馈页 xxmh/copyright.html
   ========================================================== */

.copyright-visual {
  margin-bottom: 40px;
}

.visual-figure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.visual-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.visual-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
  line-height: 1.6;
  background: var(--paper);
}

/* 边界说明 */
.boundary-section {
  margin-bottom: 40px;
}

.section-intro {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 18px;
  max-width: 760px;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.boundary-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  border-top: 3px solid var(--rose);
}

.boundary-card:nth-child(2) {
  border-top-color: var(--sage);
}

.boundary-card:nth-child(3) {
  border-top-color: #B8A4C9;
}

.boundary-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.boundary-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* 使用原则 */
.usage-principle {
  margin-bottom: 40px;
}

.principle-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  max-width: 860px;
}

.principle-block p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 12px;
}

.principle-block p:last-child {
  margin-bottom: 0;
}

/* 反馈路径 */
.feedback-path {
  margin-bottom: 40px;
}

.feedback-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feedback-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.feedback-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.feedback-item p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* 相关卡片 */
.copyright-page-related {
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.related-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  box-shadow: var(--shadow-lift);
  border-color: var(--rose);
  text-decoration: none;
}

.related-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.related-name::after {
  content: "→";
  color: var(--rose-deep);
  margin-left: 6px;
}

.related-desc {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================
   404 页面
   ========================================================== */

.error-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 20px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.error-panel {
  text-align: center;
  max-width: 560px;
}

.error-code {
  font-size: 72px;
  font-weight: 800;
  color: var(--rose);
  line-height: 1.1;
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 24px;
}

.error-home-btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--rose);
  border-radius: var(--radius-lg);
  padding: 12px 32px;
  margin-bottom: 20px;
  transition: background-color 0.2s ease;
}

.error-home-btn:hover {
  background: var(--rose-deep);
  text-decoration: none;
}

.error-help {
  font-size: 14px;
  color: var(--muted);
}

.error-help a {
  color: var(--rose-deep);
  font-weight: 500;
  margin: 0 6px;
}

/* ----------------------------------------------------------
   5. Responsive —— 响应式
   ---------------------------------------------------------- */

/* ---------- 平板及以下 ---------- */
@media (max-width: 1024px) {
  .hero-panel {
    gap: 28px;
    padding-top: 36px;
  }

  .hero-title {
    font-size: 36px;
  }

  .route-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mapping-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .figure-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .picks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 移动端 768px ---------- */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .header-shell {
    padding: 0 16px;
  }

  .home-main {
    padding: 0 16px 48px;
  }

  .inner-main {
    padding: 20px 16px 44px;
  }

  /* 汉堡菜单 */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    margin-left: 0;
    box-shadow: var(--shadow-lift);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: var(--radius-md);
  }

  /* 页脚 */
  .footer-shell {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 36px 16px 20px;
  }

  /* 首页 hero */
  .hero-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 28px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-visual {
    order: 2;
    max-width: 560px;
    width: 100%;
  }

  /* 导览条 */
  .guide-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 编辑看板 */
  .picks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 漫画书架：侧栏折叠 */
  .page-books .page-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .filter-sidebar {
    position: static;
    order: 2;
  }

  .book-results {
    order: 1;
  }

  /* 新章情报 */
  .debut-feature {
    grid-template-columns: 1fr;
  }

  .debut-list {
    grid-template-columns: 1fr;
  }

  .end-grid {
    grid-template-columns: 1fr;
  }

  .news-item-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  /* 漫游手账 */
  .lead-grid {
    grid-template-columns: 1fr;
  }

  .entry-title {
    font-size: 26px;
  }

  .figure-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 阅读向导 */
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* 版权与反馈 */
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .feedback-list {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .next-strip-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 极窄 390px ---------- */
@media (max-width: 390px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
  }

  .guide-tiles {
    grid-template-columns: 1fr;
  }

  .picks-grid {
    grid-template-columns: 1fr;
  }

  .route-grid {
    grid-template-columns: 1fr;
  }

  .mapping-list {
    grid-template-columns: 1fr;
  }

  .mapping-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .figure-strip {
    grid-template-columns: 1fr;
  }

  .digest-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .digest-text {
    min-width: 0;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .error-code {
    font-size: 56px;
  }

  .error-panel h1 {
    font-size: 22px;
  }
}
