/* ==========================================================================
   虫虫漫画 · 全站样式表
   纸感漫画编辑风：暖白纸底、墨绿主色、珊瑚强调
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base — 基础变量、重置、字体、色彩、通用元素
   -------------------------------------------------------------------------- */
:root {
  --paper: #f5f1e8;
  --ink: #1f2320;
  --pine: #163a3a;
  --pine-soft: #245050;
  --coral: #e2694f;
  --coral-deep: #c9543c;
  --sage: #8a9a8a;
  --sage-soft: #e3e8dd;
  --white: #ffffff;
  --line: #e2dccd;
  --line-dark: #cfc8b8;

  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", "STSong", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;

  --container: 1200px;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 2px 8px rgba(31, 35, 32, 0.06);
  --shadow-hover: 0 6px 18px rgba(31, 35, 32, 0.1);
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pine);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--coral);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.4;
  color: var(--pine);
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 0.5em;
}

strong {
  font-weight: 600;
}

/* 通用容器 */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* 通用图片容器 */
figure {
  margin: 0;
}

/* 表格基础 */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   2. Layout — 全站骨架：页头、页脚、主容器、面包屑、页面标题区
   -------------------------------------------------------------------------- */

/* -- 页头 -- */
.site-header {
  background-color: var(--white);
  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;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 800;
  color: var(--pine);
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 13px;
  color: var(--sage);
  white-space: nowrap;
}

/* 主导航 */
.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition);
}

.nav-list a:hover {
  color: var(--coral);
  background-color: rgba(226, 105, 79, 0.06);
}

.nav-list a.is-current {
  color: var(--pine);
  font-weight: 600;
  background-color: var(--sage-soft);
}

/* 移动端汉堡按钮，默认隐藏 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--pine);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -- 内页主容器 -- */
.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 64px;
  width: 100%;
}

/* -- 面包屑 -- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--sage);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--sage);
}

.breadcrumb a:hover {
  color: var(--coral);
}

.breadcrumb-sep {
  color: var(--line-dark);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* -- 页面标题区 -- */
.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--pine);
}

.page-description {
  font-size: 16px;
  color: #555a54;
  max-width: 720px;
}

/* -- 页脚 -- */
.site-footer {
  background-color: var(--pine);
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 340px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--coral);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
  margin: 0;
  max-width: var(--container);
  margin: 0 auto;
}

/* 通用区块标题 */
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  color: var(--pine);
}

.section-link {
  font-size: 14px;
  color: var(--coral);
  font-weight: 500;
  white-space: nowrap;
}

.section-link:hover {
  color: var(--coral-deep);
  text-decoration: underline;
}

/* -- 首页主容器 -- */
.home-main {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   3. Components — 通用组件：按钮、标签、卡片、FAQ、时间线、清单
   -------------------------------------------------------------------------- */

/* -- 按钮 -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color var(--transition), color var(--transition),
    box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--pine);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--pine-soft);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(22, 58, 58, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--pine);
  border-color: var(--pine);
}

.btn-secondary:hover {
  background-color: rgba(22, 58, 58, 0.06);
  color: var(--pine);
}

/* -- 文字链接 -- */
.text-link {
  font-size: 14px;
  color: var(--coral);
  font-weight: 500;
  display: inline-block;
}

.text-link:hover {
  color: var(--coral-deep);
  text-decoration: underline;
}

/* -- 相关链接 -- */
.related-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 14px;
  color: var(--sage);
  font-weight: 500;
}

.related-links-item {
  font-size: 14px;
  color: var(--pine);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color var(--transition), color var(--transition);
}

.related-links-item:hover {
  border-color: var(--coral);
  color: var(--coral);
}

/* -- 步骤编号 -- */
.step-num,
.stage-number,
.timeline-index,
.path-step-num,
.ranking-rank {
  font-family: var(--font-mono);
  font-weight: 600;
}

/* -- FAQ details -- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  margin-bottom: 12px;
  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: 44px;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--coral);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
  color: var(--coral);
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 15px;
  color: #4a4f49;
  line-height: 1.7;
}

.faq-item p a {
  color: var(--coral);
  text-decoration: underline;
}

/* -- 检查清单 -- */
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checklist-item {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.checklist-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--pine);
}

.checklist-item p {
  font-size: 14px;
  color: #555a54;
  margin: 0;
}

/* -- 下一步出口 -- */
.next-step {
  margin-top: 48px;
  padding: 32px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.next-step h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.next-step p {
  color: #555a54;
  margin-bottom: 20px;
}

.next-step-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* -- 下一步出口卡片（genres） -- */
.next-step-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.next-step-card h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.next-step-card p {
  color: #555a54;
  margin-bottom: 20px;
}

.next-step-link {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--pine);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
}

.next-step-link:hover {
  background-color: var(--pine-soft);
  color: var(--white);
}

/* -- 图片内容 -- */
.content-figure,
.reading-figure {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.content-figure img,
.reading-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.content-figure figcaption,
.reading-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--sage);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* --------------------------------------------------------------------------
   4. Pages — 各页面模块样式
   -------------------------------------------------------------------------- */

/* ==========================================================================
   4.1 首页 index.html
   ========================================================================== */

/* -- 首屏阅读横幅 -- */
.hero-banner {
  position: relative;
  background-color: var(--pine);
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}

.hero-title {
  font-size: 40px;
  color: var(--white);
  margin-bottom: 16px;
  max-width: 640px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-lead {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  background-color: var(--coral);
  color: var(--white);
}

.hero-actions .btn-primary:hover {
  background-color: var(--coral-deep);
}

.hero-actions .btn-secondary {
  border-color: var(--white);
  color: var(--white);
}

.hero-actions .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* -- 横向题材标签 -- */
.genre-strip {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.genre-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-dark) transparent;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.genre-scroll::-webkit-scrollbar {
  height: 6px;
}

.genre-scroll::-webkit-scrollbar-thumb {
  background-color: var(--line-dark);
  border-radius: 3px;
}

.genre-tag {
  flex-shrink: 0;
  padding: 8px 20px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--pine);
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition);
}

.genre-tag:hover {
  background-color: var(--pine);
  color: var(--white);
  border-color: var(--pine);
}

.genre-scroll-hint {
  flex-shrink: 0;
  align-self: center;
  font-size: 13px;
  color: var(--sage);
  padding-right: 8px;
}

/* -- 本周更新索引 -- */
.update-index {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.update-summary p {
  color: #555a54;
  margin-bottom: 16px;
}

.update-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.update-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.update-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.update-card p {
  font-size: 14px;
  color: #555a54;
  margin-bottom: 12px;
}

.card-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--coral);
  background-color: rgba(226, 105, 79, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}

/* -- 作品库精选卡 -- */
.featured-works {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.work-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--sage-soft);
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-card:hover .work-cover img {
  transform: scale(1.03);
}

.work-title {
  font-size: 17px;
  padding: 14px 16px 4px;
  margin-bottom: 0;
}

.work-genre {
  font-size: 13px;
  color: var(--coral);
  padding: 0 16px;
  margin-bottom: 4px;
}

.work-status {
  font-size: 12px;
  color: var(--sage);
  padding: 0 16px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.work-note {
  font-size: 14px;
  color: #555a54;
  padding: 0 16px 16px;
  margin: 0;
}

/* -- 站内排行说明 -- */
.ranking-explainer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px;
  background-color: var(--sage-soft);
  border-radius: var(--radius);
}

.ranking-desc {
  color: #555a54;
  margin-bottom: 24px;
  max-width: 640px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.ranking-item {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ranking-rank {
  font-size: 28px;
  color: var(--coral);
  line-height: 1;
}

.ranking-topic {
  font-size: 16px;
  font-weight: 600;
  color: var(--pine);
}

.ranking-note {
  font-size: 13px;
  color: var(--sage);
}

/* -- 追更指南入口 -- */
.guide-entry {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
}

.guide-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.timeline-step {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.timeline-step .step-num {
  display: block;
  font-size: 24px;
  color: var(--coral);
  margin-bottom: 8px;
  line-height: 1;
}

.timeline-step .step-text {
  font-size: 14px;
  color: #555a54;
  margin: 0;
}

.guide-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   4.2 作品库 ccmh/works.html
   ========================================================================== */

/* -- 题材筛选条 -- */
.genre-filter {
  margin-bottom: 40px;
}

.filter-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.filter-list {
  display: flex;
  gap: 10px;
  min-width: max-content;
}

.filter-item {
  display: block;
  padding: 8px 20px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--pine);
  transition: background-color var(--transition), color var(--transition);
}

.filter-item:hover {
  background-color: var(--pine);
  color: var(--white);
}

.filter-tip {
  font-size: 13px;
  color: var(--sage);
  margin-top: 12px;
}

/* -- 作品目录卡片列表 -- */
.works-catalog {
  margin-bottom: 48px;
}

.work-group {
  margin-bottom: 40px;
}

.group-title {
  font-size: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 20px;
  position: relative;
}

.group-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background-color: var(--coral);
}

.work-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.works-catalog .work-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 12px;
}

.works-catalog .work-cover {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.work-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.tag-genre,
.tag-status {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.tag-genre {
  background-color: var(--sage-soft);
  color: var(--pine);
}

.tag-status {
  font-family: var(--font-mono);
}

.tag-want {
  background-color: rgba(226, 105, 79, 0.1);
  color: var(--coral-deep);
}

.tag-reading {
  background-color: rgba(22, 58, 58, 0.1);
  color: var(--pine);
}

.tag-backlog {
  background-color: rgba(138, 154, 138, 0.15);
  color: #5a6a5a;
}

.work-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.work-desc {
  font-size: 13px;
  color: #555a54;
  margin: 0;
  line-height: 1.6;
}

/* -- 阅读状态标签说明 -- */
.status-guide {
  margin-bottom: 48px;
}

.status-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.status-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.status-badge {
  display: inline-block;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.status-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.status-card p {
  font-size: 14px;
  color: #555a54;
  margin: 0;
}

.status-note {
  font-size: 14px;
  color: var(--sage);
}

/* -- 下一步出口（works） -- */
.next-step-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.next-link {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--pine);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
}

.next-link:hover {
  background-color: var(--pine-soft);
  color: var(--white);
}

/* ==========================================================================
   4.3 题材档案 ccmh/genres.html
   ========================================================================== */

/* -- 题材档案卡 -- */
.genre-cards-section {
  margin-bottom: 48px;
}

.genre-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.genre-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.genre-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.genre-card-figure {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--sage-soft);
}

.genre-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.genre-card-body {
  padding: 20px 24px;
}

.genre-card-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.genre-keywords {
  font-size: 13px;
  color: var(--coral);
  margin-bottom: 10px;
  font-family: var(--font-mono);
}

.genre-card-body p {
  font-size: 14px;
  color: #555a54;
  margin-bottom: 10px;
}

.genre-audience {
  font-size: 13px;
  color: var(--sage);
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* -- 题材速查表 -- */
.genre-table-section {
  margin-bottom: 48px;
}

.genre-table-wrap {
  overflow-x: auto;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-table {
  min-width: 640px;
}

.genre-table th {
  background-color: var(--pine);
  color: var(--white);
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}

.genre-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}

.genre-table tbody tr:last-child td {
  border-bottom: none;
}

.genre-table tbody tr:nth-child(even) {
  background-color: rgba(245, 241, 232, 0.5);
}

/* -- 从题材到选作品的路径 -- */
.genre-path-section {
  margin-bottom: 48px;
}

.genre-path-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.path-step {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.path-step-num {
  font-size: 28px;
  color: var(--coral);
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

.path-step-body h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.path-step-body p {
  font-size: 14px;
  color: #555a54;
  margin: 0;
}

/* ==========================================================================
   4.4 阅读准备 ccmh/reading-guide.html
   ========================================================================== */

/* -- 阅读准备检查清单 -- */
.checklist-section {
  margin-bottom: 48px;
}

/* -- 追更前时间线 -- */
.timeline-section {
  margin-bottom: 48px;
}

.timeline-list {
  position: relative;
  padding-left: 32px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--line-dark);
}

.timeline-stage {
  position: relative;
  margin-bottom: 24px;
}

.stage-number {
  position: absolute;
  left: -32px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--pine);
  color: var(--white);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.stage-content {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.stage-content h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.stage-content p {
  font-size: 14px;
  color: #555a54;
  margin: 0;
}

/* -- 节点详情 -- */
.stage-detail-section {
  margin-bottom: 48px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.detail-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.detail-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-card p {
  font-size: 14px;
  color: #555a54;
  margin-bottom: 8px;
}

.detail-card p:last-child {
  margin-bottom: 0;
}

.detail-card strong {
  color: var(--pine);
  font-weight: 600;
}

/* -- 阅读配图 -- */
.reading-figure {
  margin: 48px 0;
}

/* ==========================================================================
   4.5 追更指南 ccmh/update-guide.html
   ========================================================================== */

.content-section {
  margin-bottom: 48px;
}

/* -- 追更节奏总览 -- */
.overview-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  border-left: 4px solid var(--coral);
}

.overview-card p {
  font-size: 15px;
  color: #555a54;
  margin-bottom: 12px;
}

.task-link {
  display: inline-block;
  color: var(--coral);
  font-weight: 600;
  font-size: 14px;
}

.task-link:hover {
  text-decoration: underline;
}

/* -- 阶段时间线（横向） -- */
.timeline-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.timeline-item {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.timeline-index {
  font-size: 24px;
  color: var(--coral);
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}

.timeline-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 13px;
  color: #555a54;
  margin: 0;
}

/* -- 节点详情 -- */
.node-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.node-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.node-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.node-card p {
  font-size: 14px;
  color: #555a54;
  margin-bottom: 8px;
}

.node-card p:last-child {
  margin-bottom: 0;
}

.node-card strong {
  color: var(--pine);
}

/* -- 追更检查清单（按周） -- */
.checklist-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.checklist-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  background-color: var(--white);
  border-bottom: 1px solid var(--line);
}

.checklist-row:last-child {
  border-bottom: none;
}

.checklist-day {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--pine);
  background-color: var(--sage-soft);
  font-family: var(--font-mono);
}

.checklist-item {
  padding: 16px 20px;
  font-size: 14px;
  color: #555a54;
  border-left: 1px solid var(--line);
}

.checklist-note {
  font-size: 13px;
  color: var(--sage);
  margin-top: 12px;
}

/* -- 下一步出口 -- */
.next-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   4.6 常见问题 ccmh/faq.html
   ========================================================================== */

/* -- 主题分组锚点导航 -- */
.faq-anchor-nav {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.anchor-btn {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pine);
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition);
}

.anchor-btn:hover {
  background-color: var(--pine);
  color: var(--white);
  border-color: var(--pine);
}

/* -- 问答组 -- */
.faq-group {
  margin-bottom: 48px;
}

.faq-group-title {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  position: relative;
}

.faq-group-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background-color: var(--coral);
}

/* 内联图片 */
.content-media-inline {
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
}

.content-media-inline img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.content-media-inline figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--sage);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-top: none;
}

/* -- 反馈方式说明 -- */
.feedback-note {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin-bottom: 48px;
}

.feedback-note h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feedback-note p {
  font-size: 14px;
  color: #555a54;
}

.feedback-note a {
  color: var(--coral);
  text-decoration: underline;
}

/* -- 下一步 -- */
.next-btn {
  display: inline-block;
  padding: 10px 28px;
  background-color: var(--pine);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
}

.next-btn:hover {
  background-color: var(--pine-soft);
  color: var(--white);
}

/* ==========================================================================
   4.7 内容边界 ccmh/boundary.html
   ========================================================================== */

.boundary-section {
  margin-bottom: 48px;
}

.page-boundary .section-intro {
  font-size: 15px;
  color: #555a54;
  margin-bottom: 24px;
  max-width: 720px;
}

.boundary-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.boundary-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.boundary-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.boundary-card p {
  font-size: 14px;
  color: #555a54;
  margin: 0;
}

/* -- 版权与转载原则 -- */
.copyright-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.copyright-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.copyright-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.copyright-card p {
  font-size: 14px;
  color: #555a54;
  margin: 0;
}

/* -- 反馈与修正流程 -- */
.feedback-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.process-timeline {
  position: relative;
  padding-left: 28px;
}

.process-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--line-dark);
}

.process-node {
  position: relative;
  margin-bottom: 20px;
}

.process-node::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--white);
  border: 3px solid var(--pine);
}

.process-node h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.process-node p {
  font-size: 14px;
  color: #555a54;
  margin: 0;
}

.feedback-figure {
  border-radius: var(--radius);
  overflow: hidden;
}

.feedback-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* -- 下一步出口 -- */
.next-step-text {
  font-size: 15px;
  color: #555a54;
  margin-bottom: 16px;
}

.next-step-link {
  display: inline-block;
  padding: 10px 28px;
  background-color: var(--pine);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
}

.next-step-link:hover {
  background-color: var(--pine-soft);
  color: var(--white);
}

/* ==========================================================================
   4.8 404 页面 404.html
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.error-panel {
  max-width: 560px;
  text-align: center;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 40px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 26px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: #555a54;
  margin-bottom: 28px;
}

.error-action {
  display: inline-block;
  padding: 12px 32px;
  background-color: var(--pine);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 32px;
}

.error-action:hover {
  background-color: var(--pine-soft);
  color: var(--white);
}

.error-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.error-links a {
  font-size: 14px;
  color: var(--pine);
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.error-links a:hover {
  border-color: var(--coral);
  color: var(--coral);
}

/* --------------------------------------------------------------------------
   5. Responsive — 响应式断点
   -------------------------------------------------------------------------- */

/* -- 平板及以下 -- */
@media (max-width: 1024px) {
  .update-index {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .guide-timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline-step:nth-child(4),
  .timeline-step:nth-child(5) {
    grid-column: span 1;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .genre-path-steps {
    grid-template-columns: 1fr 1fr;
  }

  .genre-path-steps .path-step:last-child {
    grid-column: span 2;
  }
}

/* -- 移动端断点 -- */
@media (max-width: 768px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .brand-tagline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(31, 35, 32, 0.08);
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 14px 24px;
    border-radius: 0;
    font-size: 16px;
  }

  .nav-list a.is-current {
    background-color: var(--sage-soft);
  }

  .inner-main {
    padding: 24px 16px 48px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-description {
    font-size: 15px;
  }

  .breadcrumb {
    font-size: 13px;
    margin-bottom: 16px;
  }

  /* 首页 */
  .hero-banner {
    min-height: 400px;
  }

  .hero-content {
    padding: 60px 20px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .genre-strip {
    padding: 32px 16px 16px;
  }

  .update-index,
  .featured-works,
  .ranking-explainer,
  .guide-entry {
    padding-left: 16px;
    padding-right: 16px;
  }

  .update-cards {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .guide-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-step:nth-child(5) {
    grid-column: span 2;
  }

  /* 内页通用 */
  .section-heading {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .section-title {
    font-size: 20px;
  }

  /* 作品库 */
  .work-list {
    grid-template-columns: 1fr;
  }

  .works-catalog .work-card {
    grid-template-columns: 80px 1fr;
  }

  .status-cards {
    grid-template-columns: 1fr;
  }

  /* 题材档案 */
  .genre-card-grid {
    grid-template-columns: 1fr;
  }

  .genre-table-wrap {
    margin: 0 -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .genre-path-steps {
    grid-template-columns: 1fr;
  }

  .genre-path-steps .path-step:last-child {
    grid-column: auto;
  }

  /* 阅读准备 */
  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  /* 追更指南 */
  .timeline-strip {
    grid-template-columns: 1fr 1fr;
  }

  .node-grid {
    grid-template-columns: 1fr;
  }

  .checklist-row {
    grid-template-columns: 90px 1fr;
  }

  .checklist-day,
  .checklist-item {
    padding: 12px 14px;
  }

  /* 常见问题 */
  .faq-anchor-nav {
    flex-direction: column;
  }

  .anchor-btn {
    text-align: center;
  }

  /* 内容边界 */
  .boundary-card-grid {
    grid-template-columns: 1fr;
  }

  .copyright-grid {
    grid-template-columns: 1fr;
  }

  .feedback-layout {
    grid-template-columns: 1fr;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 16px 24px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-bottom {
    padding: 16px;
  }

  /* 下一步 */
  .next-step {
    padding: 24px 20px;
  }

  .next-step-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .next-step-actions .btn {
    width: 100%;
  }

  /* 相关链接 */
  .related-links {
    gap: 10px;
  }

  .related-links-item {
    padding: 8px 16px;
  }

  /* 404 */
  .error-main {
    padding: 48px 16px;
  }

  .error-panel {
    padding: 32px 24px;
  }

  .error-code {
    font-size: 48px;
  }
}

/* -- 小屏手机 -- */
@media (max-width: 480px) {
  .works-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .work-title {
    font-size: 15px;
    padding: 10px 12px 2px;
  }

  .work-genre,
  .work-status,
  .work-note {
    padding-left: 12px;
    padding-right: 12px;
  }

  .work-note {
    font-size: 13px;
  }

  .guide-timeline {
    grid-template-columns: 1fr;
  }

  .timeline-step:nth-child(5) {
    grid-column: auto;
  }

  .timeline-strip {
    grid-template-columns: 1fr;
  }

  .checklist-row {
    grid-template-columns: 1fr;
  }

  .checklist-day {
    border-bottom: 1px solid var(--line);
  }

  .checklist-item {
    border-left: none;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    padding: 12px 20px;
  }
}
