/* =========================================================
   欲漫天堂 · 全站样式表
   漫画书店风 · 纸张白底 · 分类书脊色
   ========================================================= */

/* =========================================================
   Base — 基础变量、重置、排版
   ========================================================= */
:root {
  --paper: #faf8f2;
  --ink: #222222;
  --ink-soft: #555555;
  --accent: #e8a33d;
  --adventure: #d1544f;
  --daily: #5a8f6d;
  --scifi: #3a6ea5;
  --fantasy: #7d5ba6;
  --romance: #d97b8f;
  --mystery: #4f5a66;
  --line: #e6e0d4;
  --card-bg: #ffffff;
  --radius: 8px;
  --shadow-sm: 0 1px 4px rgba(34, 34, 34, 0.08);
  --shadow-md: 0 4px 14px rgba(34, 34, 34, 0.1);
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Layout — 全站骨架：页头、主容器、页脚
   ========================================================= */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
}

.brand-logo: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 a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  line-height: 1.4;
}

.nav-list li a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav-list li a.is-current {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.nav-toggle-icon::before {
  transform: translateY(-6px);
}

.nav-toggle-icon::after {
  transform: translateY(4px);
}

.site-main {
  flex: 1;
  width: 100%;
}

.site-main.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 0 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: #aaa;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* 页面标题区 */
.page-header {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.page-description {
  margin-top: 10px;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 720px;
}

/* 页脚 */
.site-footer {
  background: #f1ece1;
  border-top: 1px solid var(--line);
  margin-top: 56px;
}

.footer-columns {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 1fr;
  gap: 32px;
}

.footer-col .footer-brand {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-col p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #888;
}

/* =========================================================
   Components — 通用组件：按钮、标签、卡片、表格、步骤、FAQ
   ========================================================= */
/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  line-height: 1.5;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #d98f2a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px 18px;
  font-size: 14px;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* 更新标签 */
.update-tag,
.status-tag,
.tag-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  line-height: 1.6;
}

.status-updating,
.tag-updating {
  background: rgba(232, 163, 61, 0.15);
  color: #b5761a;
}

.tag-end {
  background: rgba(79, 90, 102, 0.12);
  color: var(--mystery);
}

.tag-new {
  background: rgba(209, 84, 79, 0.12);
  color: var(--adventure);
}

/* 题材标签 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 4px;
  line-height: 1.6;
}

.tag-daily {
  background: rgba(90, 143, 109, 0.12);
  color: var(--daily);
}

.tag-scifi {
  background: rgba(58, 110, 165, 0.12);
  color: var(--scifi);
}

.tag-fantasy {
  background: rgba(125, 91, 166, 0.12);
  color: var(--fantasy);
}

.tag-romance {
  background: rgba(217, 123, 143, 0.12);
  color: var(--romance);
}

.tag-adventure {
  background: rgba(209, 84, 79, 0.12);
  color: var(--adventure);
}

/* 书脊色 */
.spine-color,
.spine {
  display: inline-block;
  width: 6px;
  height: 28px;
  border-radius: 3px;
  flex-shrink: 0;
}

.spine-color.adventure,
.spine-adventure {
  background: var(--adventure);
}

.spine-color.daily,
.spine-daily {
  background: var(--daily);
}

.spine-color.scifi,
.spine-scifi {
  background: var(--scifi);
}

.spine-color.fantasy,
.spine-fantasy {
  background: var(--fantasy);
}

.spine-color.romance,
.spine-romance {
  background: var(--romance);
}

.spine-color.mystery {
  background: var(--mystery);
}

.spine-all {
  background: var(--ink);
}

/* 筛选标签 */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card-bg);
  color: var(--ink-soft);
  transition: all 0.2s ease;
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tab.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* 模块标题 */
.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.section-heading .section-intro {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 680px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.4;
}

.section-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 680px;
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.calendar-table,
.schedule-table {
  min-width: 640px;
  background: var(--card-bg);
}

.calendar-table th,
.calendar-table td,
.schedule-table th,
.schedule-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.calendar-table thead th,
.schedule-table thead th {
  background: #f4efe6;
  font-weight: 700;
  color: var(--ink);
}

.calendar-table tbody tr:last-child td,
.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.calendar-table tbody tr:hover td,
.schedule-table tbody tr:hover td {
  background: #faf6ee;
}

/* 步骤 */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.step-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 14px;
  color: var(--ink-soft);
}

.step-body p a {
  color: var(--accent);
  font-weight: 600;
}

.step-figure {
  margin-top: auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f4efe6;
}

.step-figure img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

/* FAQ */
.faq-block {
  margin-bottom: 28px;
}

.faq-block-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background: #faf6ee;
}

.faq-item p {
  padding: 0 18px 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

.faq-item p a {
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   Home — 首页专属模块
   ========================================================= */
/* 首屏焦点 */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(250, 248, 242, 0.95) 0%,
    rgba(250, 248, 242, 0.75) 50%,
    rgba(250, 248, 242, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
}

.hero-content h1 {
  font-size: 38px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.hero-slogan {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 10px;
}

.hero-desc {
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: 14px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  color: var(--ink);
  z-index: 2;
}

.hero-scroll:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 最近更新区 */
.recent-updates {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 16px;
}

.update-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.comic-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-link {
  display: block;
}

.card-link img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.comic-title {
  font-size: 16px;
  font-weight: 700;
  padding: 12px 14px 2px;
  line-height: 1.4;
}

.comic-chapter {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 0 14px 10px;
}

.comic-card .update-tag {
  margin: 0 14px 12px;
}

.module-more {
  text-align: center;
  padding: 20px 0;
}

.module-more a {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 20px;
  transition: all 0.2s ease;
}

.module-more a:hover {
  background: var(--accent);
  color: #fff;
}

/* 题材分类书脊区 */
.genre-spine-section {
  background: #f1ece1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.genre-spine-section .section-heading,
.genre-spine-section .genre-spine-list {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.genre-spine-section .section-heading {
  padding: 40px 24px 0;
}

.genre-spine-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px 24px 40px;
}

.genre-spine-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.genre-spine-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.genre-link {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.genre-example {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* 更新日历说明区 */
.calendar-intro-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px;
}

/* 阅读引导区 */
.guide-section {
  background: #f1ece1;
  border-top: 1px solid var(--line);
}

.guide-section .section-heading {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding: 40px 24px 0;
}

.guide-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.guide-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.guide-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.guide-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

/* =========================================================
   Inner pages — 内页统一骨架与页面专属模块
   ========================================================= */

/* 更新日历页 */
.update-scene {
  margin-bottom: 40px;
}

.scene-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card-bg);
}

.scene-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.scene-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--card-bg);
}

.schedule-section {
  margin-bottom: 40px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.note-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 4px solid var(--accent);
}

.note-card.note-short {
  border-top-color: var(--daily);
}

.note-card.note-done {
  border-top-color: var(--mystery);
}

.note-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.note-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.note-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 6px;
}

.rhythm-tip {
  background: #f1ece1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 40px 0 8px;
}

.tip-content p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.tip-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 18px;
}

.tip-list li {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.tip-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.tip-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.tip-btn:hover {
  background: var(--ink);
  color: #fff;
}

/* 最近章节页 */
.filter-section {
  margin-bottom: 36px;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.update-card {
  display: flex;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.card-cover {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
}

.card-chapter {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}

.card-meta time {
  font-size: 13px;
  color: #999;
}

/* 图例 */
.legend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.legend-item p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* 相关栏目 */
.related-links {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.related-links p {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.related-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-links ul li a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.related-links ul li a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 作品目录页 */
.page-layout.sidebar-left {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

.catalog-filter {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 84px;
}

.filter-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.filter-list li {
  margin-bottom: 4px;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-item:hover {
  background: #f4efe6;
  color: var(--ink);
}

.filter-item.is-active {
  background: #f4efe6;
  color: var(--ink);
  font-weight: 700;
}

.filter-hint {
  font-size: 13px;
  color: #999;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.catalog-main {
  min-width: 0;
}

.catalog-section {
  margin-bottom: 36px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.work-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.work-cover {
  position: relative;
  overflow: hidden;
}

.work-cover img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.work-info {
  padding: 14px;
}

.work-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.work-update {
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.work-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
}

/* 字段说明 */
.field-guide {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.guide-item {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.guide-item dt {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.guide-item dd {
  font-size: 13px;
  color: var(--ink-soft);
}

.guide-note {
  font-size: 14px;
  color: var(--ink-soft);
}

.guide-note a {
  color: var(--accent);
  font-weight: 600;
  margin-right: 14px;
}

/* 收藏说明页 */
.collect-steps-section,
.track-mark-section,
.reading-history-section {
  margin-bottom: 44px;
}

.mark-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mark-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  border-top: 4px solid var(--accent);
}

.mark-card.mark-finished {
  border-top-color: var(--mystery);
}

.mark-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.mark-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.history-info-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  align-items: center;
}

.history-text h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.history-text p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.history-figure {
  border-radius: var(--radius);
  overflow: hidden;
}

.history-figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-links-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.related-links-inner p {
  font-size: 15px;
  color: var(--ink-soft);
}

.related-links-inner a {
  color: var(--accent);
  font-weight: 600;
  margin-right: 16px;
}

/* 问题反馈页 */
.problem-categories {
  margin-bottom: 36px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.category-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.category-card p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.category-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.help-scene {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 36px;
}

.help-scene img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.help-scene figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--card-bg);
}

.troubleshooting {
  margin-bottom: 40px;
}

.troubleshoot-steps {
  counter-reset: step;
}

.step-item {
  display: flex;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  color: var(--ink-soft);
}

.feedback-note {
  background: #f1ece1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 8px;
}

.feedback-note p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

/* =========================================================
   404 页面
   ========================================================= */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.error-content {
  max-width: 520px;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.error-btn:hover {
  background: #d98f2a;
  color: #fff;
  transform: translateY(-1px);
}

.error-help {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-soft);
}

.error-help a {
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   Responsive — 响应式布局
   ========================================================= */
@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .notes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* 导航 */
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 0;
    box-shadow: var(--shadow-md);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  /* 主容器 */
  .site-main.inner-main {
    padding: 0 16px;
  }

  .page-header {
    padding: 20px 0 16px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  /* 首页 */
  .hero-content {
    padding: 40px 16px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-slogan {
    font-size: 16px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-section {
    min-height: 360px;
  }

  .recent-updates {
    padding: 32px 16px 8px;
  }

  .update-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .card-link img {
    height: 150px;
  }

  .genre-spine-section .section-heading {
    padding: 32px 16px 0;
  }

  .genre-spine-list {
    grid-template-columns: 1fr 1fr;
    padding: 16px 16px 32px;
    gap: 12px;
  }

  .genre-spine-item {
    padding: 14px;
  }

  .calendar-intro-section {
    padding: 32px 16px;
  }

  .guide-section .section-heading {
    padding: 32px 16px 0;
  }

  .guide-grid {
    grid-template-columns: 1fr;
    padding: 16px 16px 32px;
  }

  /* 页脚 */
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 16px 16px;
  }

  .footer-bottom {
    padding: 12px 16px;
  }

  /* 内页通用 */
  .breadcrumb {
    padding-top: 14px;
  }

  /* 更新日历 */
  .scene-figure img {
    height: 180px;
  }

  .notes-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rhythm-tip {
    padding: 18px;
  }

  /* 最近章节 */
  .update-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .legend-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card-cover {
    width: 84px;
    height: 112px;
  }

  /* 作品目录 */
  .page-layout.sidebar-left {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .catalog-filter {
    position: static;
  }

  .filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .filter-list li {
    margin-bottom: 0;
  }

  .filter-item {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
  }

  .catalog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .work-cover img {
    height: 150px;
  }

  .guide-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* 收藏说明 */
  .step-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .step-figure img {
    height: 100px;
  }

  .mark-compare-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .history-info-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 问题反馈 */
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .category-card {
    padding: 16px;
  }

  .help-scene img {
    height: 150px;
  }

  .step-item {
    padding: 14px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .update-grid {
    grid-template-columns: 1fr;
  }

  .card-link img {
    height: 180px;
  }

  .genre-spine-list {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .work-cover img {
    height: 180px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .update-card {
    flex-direction: column;
  }

  .card-cover {
    width: 100%;
    height: 160px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .error-code {
    font-size: 48px;
  }
}
