/* ============================================================
   漫漫漫画 - 全站样式表
   站点：hi-cnc.com
   说明：本样式表覆盖全站所有页面，按 base / layout / components / pages / responsive 分组
   ============================================================ */

/* ============================================================
   1. Base - 基础变量、重置与全站骨架
   ============================================================ */
:root {
  --color-primary: #FFC93C;
  --color-accent: #FF7A59;
  --color-blue: #4AA8FF;
  --color-bg: #FFF9EF;
  --color-text: #2B2B2B;
  --color-border: #EDE4D8;
  --color-update: #3ECF8E;
  --color-white: #FFFFFF;
  --color-gray: #F5F0E8;
  --color-dark-gray: #6B6258;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --font-family: -apple-system, PingFang SC, Microsoft YaHei, sans-serif;
  --container-width: 1200px;
  --header-height: 64px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}

ul, ol {
  list-style: none;
}

/* 全站视觉骨架 - 页头 */
.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}

.brand-tagline {
  font-size: 13px;
  color: var(--color-dark-gray);
  display: none;
}

/* 主导航 */
.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;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.nav-list li a:hover {
  color: var(--color-accent);
  background-color: rgba(255, 122, 89, 0.08);
}

.nav-list li a.is-current {
  color: var(--color-accent);
  background-color: rgba(255, 122, 89, 0.10);
  font-weight: 600;
}

/* 移动端汉堡按钮 - 默认隐藏 */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
}

/* 全站视觉骨架 - 页脚 */
.site-footer {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.footer-columns {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--color-dark-gray);
}

.footer-col ul li a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-dark-gray);
  line-height: 1.6;
}

/* 全站视觉骨架 - 主内容区 */
.site-main {
  flex: 1;
  width: 100%;
}

/* 全站视觉骨架 - 内页通用 */
.inner-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px 20px 56px;
  width: 100%;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-dark-gray);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-dark-gray);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb-sep {
  color: var(--color-border);
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 8px;
}

.page-description {
  font-size: 15px;
  color: var(--color-dark-gray);
  max-width: 720px;
  line-height: 1.7;
}

/* ============================================================
   2. Layout - 布局系统
   ============================================================ */

/* 内页两栏布局 - 侧栏在左 */
.sidebar-left {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

/* 侧栏通用 */
.sidebar,
.sidebar-panel,
.page-aside,
.help-tree {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.sidebar h2,
.sidebar-title,
.aside-title,
.tree-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

/* 侧栏列表 */
.genre-tree li,
.sidebar-tree li,
.category-tree li,
.tree-list li,
.aside-tree li {
  margin-bottom: 4px;
}

.genre-tree li a,
.sidebar-tree li a,
.category-tree li a,
.tree-list li a,
.aside-tree li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.genre-tree li a:hover,
.sidebar-tree li a:hover,
.category-tree li a:hover,
.tree-list li a:hover,
.aside-tree li a:hover {
  background-color: rgba(74, 168, 255, 0.10);
  color: var(--color-blue);
}

.sidebar-tree li a.is-current,
.tree-list li a.is-current,
.aside-tree li a.is-current,
.genre-tree li a.is-current,
.category-tree li a.is-current {
  background-color: rgba(74, 168, 255, 0.12);
  color: var(--color-blue);
  font-weight: 600;
}

/* 侧栏备注 */
.sidebar-note,
.tree-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-dark-gray);
  line-height: 1.6;
}

.sidebar-note a,
.tree-note a {
  color: var(--color-blue);
  font-weight: 500;
}

/* 内容区 */
.content-area,
.content-panel,
.page-content,
.article-main,
.content-main {
  min-width: 0;
}

/* ============================================================
   3. Components - 通用组件
   ============================================================ */

/* 按钮 */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  line-height: 1.5;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text);
}

.btn-primary:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* 模块标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 20px;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  line-height: 1.5;
}

.tag-blue {
  background-color: rgba(74, 168, 255, 0.12);
  color: #2B7FD4;
}

.tag-yellow {
  background-color: rgba(255, 201, 60, 0.18);
  color: #A87A00;
}

.tag-pink {
  background-color: rgba(255, 122, 89, 0.12);
  color: #D95A3C;
}

.tag-purple {
  background-color: rgba(150, 112, 220, 0.12);
  color: #7A5AB8;
}

.tag-green {
  background-color: rgba(62, 207, 142, 0.15);
  color: #1FA86B;
}

.tag-orange {
  background-color: rgba(255, 165, 60, 0.15);
  color: #D97A1F;
}

.tag-gray {
  background-color: rgba(107, 98, 88, 0.10);
  color: var(--color-dark-gray);
}

/* 封面卡 */
.cover-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cover-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cover-figure {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-gray);
}

.cover-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  padding: 12px 14px 4px;
}

.cover-tags {
  padding: 0 14px 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cover-desc {
  padding: 0 14px 16px;
  font-size: 13px;
  color: var(--color-dark-gray);
  line-height: 1.6;
}

/* 更新列表 */
.update-list {
  display: flex;
  flex-direction: column;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.update-item:last-child {
  border-bottom: none;
}

.update-item img {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-info h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.update-info h3 a {
  color: var(--color-text);
}

.update-info h3 a:hover {
  color: var(--color-accent);
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.update-time {
  font-size: 12px;
  color: var(--color-dark-gray);
}

.update-desc {
  font-size: 13px;
  color: var(--color-dark-gray);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* FAQ 展开项 */
.faq-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--color-dark-gray);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary:hover {
  color: var(--color-accent);
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--color-dark-gray);
  line-height: 1.7;
}

.faq-item p a {
  color: var(--color-blue);
  font-weight: 500;
}

/* 文本链接 */
.text-link {
  color: var(--color-blue);
  font-size: 14px;
  font-weight: 500;
}

.text-link:hover {
  color: var(--color-accent);
}

/* ============================================================
   4. Pages - 首页
   ============================================================ */

.home-main {
  width: 100%;
}

/* 上下分栏首屏 */
.hero-split {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 20px 0;
}

.hero-branding {
  margin-bottom: 36px;
}

#hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 16px;
  color: var(--color-dark-gray);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-quick-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-featured {
  margin-bottom: 48px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* 题材筛选区 */
.genre-filter {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 48px;
}

.tag-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.tag-cluster a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.2s ease;
  min-height: 36px;
  line-height: 1.4;
}

.tag-cluster a:hover {
  transform: translateY(-2px);
}

.filter-note {
  font-size: 13px;
  color: var(--color-dark-gray);
}

.filter-note a {
  color: var(--color-blue);
  font-weight: 500;
}

/* 编辑专题区 */
.editorial-picks {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 48px;
}

.featured-special {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.spotlight-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.spotlight-figure {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-gray);
}

.spotlight-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-content {
  padding: 20px;
}

.spotlight-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.spotlight-content p {
  font-size: 14px;
  color: var(--color-dark-gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

.side-specials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-special-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.side-special-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.side-special-card figure {
  width: 80px;
  flex-shrink: 0;
}

.side-special-card figure img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.side-special-card h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}

.side-special-card p {
  font-size: 13px;
  color: var(--color-dark-gray);
  line-height: 1.5;
  margin-bottom: 8px;
}

.side-special-card a {
  font-size: 13px;
  color: var(--color-blue);
  font-weight: 500;
}

/* 最近更新 */
.recent-updates {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 48px;
}

.updates-footer-link {
  margin-top: 20px;
  text-align: center;
}

/* 双栏：大家在看 + 新手三步 */
.home-duo {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.trending-panel,
.newbie-guide {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.trending-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.trending-list li:last-child {
  border-bottom: none;
}

.trending-list li a {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.trend-tag {
  font-size: 12px;
  color: var(--color-dark-gray);
  background-color: var(--color-gray);
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.panel-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-dark-gray);
}

.panel-note a {
  color: var(--color-blue);
  font-weight: 500;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  background-color: var(--color-primary);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.steps li h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}

.steps li p {
  font-size: 13px;
  color: var(--color-dark-gray);
  line-height: 1.6;
}

/* 漫读助手问答预告 */
.helper-preview {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 48px;
}

.faq-preview-list {
  max-width: 800px;
  margin-bottom: 20px;
}

.helper-more {
  text-align: center;
}

/* 反馈入口条 */
.feedback-banner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 48px;
}

.feedback-content {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.feedback-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.feedback-content p {
  font-size: 14px;
  color: var(--color-dark-gray);
  margin-bottom: 20px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   5. Pages - 内页
   ============================================================ */

/* --- 漫画书库 mmmh/manga.html --- */
.page-manga .sidebar {
  position: sticky;
}

.genre-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.genre-strip a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.genre-strip a:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.manga-grid {
  margin-bottom: 32px;
}

.manga-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.manga-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.manga-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.manga-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-gray);
}

.manga-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manga-card h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  padding: 12px 14px 4px;
}

.manga-tags {
  padding: 0 14px 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.manga-desc {
  padding: 0 14px 44px;
  font-size: 13px;
  color: var(--color-dark-gray);
  line-height: 1.5;
}

.card-link {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-size: 13px;
  color: var(--color-blue);
  font-weight: 500;
}

.browse-tip {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

.browse-tip h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.browse-tip p {
  font-size: 14px;
  color: var(--color-dark-gray);
  line-height: 1.6;
}

.browse-tip p a {
  color: var(--color-blue);
  font-weight: 500;
}

.related-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
}

.related-links-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark-gray);
}

.related-links-item {
  font-size: 13px;
  color: var(--color-blue);
}

.related-links-item:hover {
  color: var(--color-accent);
}

/* --- 题材索引 mmmh/genres.html --- */
.genre-tag-wall {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}

.section-desc {
  font-size: 14px;
  color: var(--color-dark-gray);
  margin-bottom: 16px;
  line-height: 1.6;
}

.tag-wall-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-wall-list li a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--color-text);
  background-color: var(--color-gray);
  border-radius: 999px;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.tag-wall-list li a:hover {
  background-color: var(--color-primary);
}

.genre-detail-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.genre-detail-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.genre-detail-head {
  margin-bottom: 16px;
}

.genre-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.genre-summary {
  font-size: 14px;
  color: var(--color-dark-gray);
  line-height: 1.6;
}

.genre-sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.genre-sample {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--color-gray);
}

.genre-sample img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.genre-more-link {
  font-size: 14px;
  color: var(--color-blue);
  font-weight: 500;
}

.genre-more-link:hover {
  color: var(--color-accent);
}

.genre-to-library {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.library-entry-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.entry-card {
  display: block;
  padding: 12px 16px;
  background-color: var(--color-gray);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.2s ease;
  line-height: 1.4;
}

.entry-card:hover {
  background-color: var(--color-primary);
  color: var(--color-text);
}

/* --- 编辑精选 mmmh/picks.html --- */
.page-aside .aside-tree li a {
  font-size: 14px;
}

.featured-panel {
  margin-bottom: 32px;
}

.featured-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.featured-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-gray);
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-body {
  padding: 24px;
}

.featured-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.featured-body p {
  font-size: 14px;
  color: var(--color-dark-gray);
  line-height: 1.6;
  margin-bottom: 12px;
}

.playlist-section {
  margin-bottom: 32px;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.playlist-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.playlist-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.playlist-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--color-gray);
  margin-bottom: 12px;
}

.playlist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.playlist-info p {
  font-size: 13px;
  color: var(--color-dark-gray);
  line-height: 1.5;
}

.archive-section {
  margin-bottom: 32px;
}

.archive-list li {
  padding: 12px 16px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.archive-list li:hover {
  border-color: var(--color-accent);
}

.archive-list li a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.archive-list li a:hover {
  color: var(--color-accent);
}

.more-links {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.more-links p {
  font-size: 14px;
  color: var(--color-dark-gray);
  line-height: 1.6;
}

.more-links p a {
  color: var(--color-blue);
  font-weight: 500;
  margin-right: 16px;
}

/* --- 新书速递 mmmh/updates.html --- */
.update-group {
  margin-bottom: 32px;
}

.update-group .section-title {
  font-size: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.update-link {
  font-size: 13px;
  color: var(--color-blue);
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

.update-note {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.update-note p {
  font-size: 14px;
  color: var(--color-dark-gray);
  line-height: 1.6;
}

.update-note p a {
  color: var(--color-blue);
  font-weight: 500;
  margin-right: 16px;
}

/* --- 漫读助手 mmmh/guide.html --- */
.content-block {
  margin-bottom: 40px;
}

.content-block .section-title {
  font-size: 20px;
}

.need-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.need-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.need-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.need-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.need-card p {
  font-size: 13px;
  color: var(--color-dark-gray);
  line-height: 1.6;
  margin-bottom: 12px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.step-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.step-item p {
  font-size: 14px;
  color: var(--color-dark-gray);
  line-height: 1.6;
}

.trouble-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trouble-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.trouble-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.trouble-item p {
  font-size: 14px;
  color: var(--color-dark-gray);
  line-height: 1.6;
}

.guide-figure {
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-gray);
  max-width: 640px;
}

.guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--color-dark-gray);
  background-color: var(--color-white);
}

/* --- 帮助与反馈 mmmh/help.html --- */
.faq-section {
  margin-bottom: 40px;
}

.faq-list {
  margin-bottom: 24px;
}

.faq-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-gray);
  max-width: 640px;
}

.faq-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feedback-section {
  margin-bottom: 40px;
}

.feedback-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feedback-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.feedback-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.feedback-card p {
  font-size: 14px;
  color: var(--color-dark-gray);
  line-height: 1.6;
}

.process-section {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 16px;
}

.process-item {
  position: relative;
  padding-top: 40px;
}

.process-num {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background-color: var(--color-primary);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.process-item p {
  font-size: 13px;
  color: var(--color-dark-gray);
  line-height: 1.6;
}

.process-note {
  font-size: 13px;
  color: var(--color-dark-gray);
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  line-height: 1.6;
}

/* --- 404 页面 --- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.error-panel {
  text-align: center;
  max-width: 520px;
}

.error-code {
  font-size: 72px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.error-desc {
  font-size: 15px;
  color: var(--color-dark-gray);
  margin-bottom: 24px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-home,
.btn-genres {
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  line-height: 1.5;
  min-height: 44px;
}

.btn-home {
  background-color: var(--color-primary);
  color: var(--color-text);
}

.btn-home:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-genres {
  background-color: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-genres:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============================================================
   6. Responsive - 响应式
   ============================================================ */

/* 桌面端（默认） */

/* 平板 992px */
@media (max-width: 992px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .manga-card-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .need-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .playlist-grid {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-duo {
    grid-template-columns: 1fr;
  }
}

/* 移动端 768px */
@media (max-width: 768px) {
  /* 导航切换 */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 12px 20px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    padding: 12px 8px;
    font-size: 16px;
    border-radius: var(--radius-sm);
    min-height: 44px;
    line-height: 1.4;
  }

  /* 内页两栏改为单栏，侧栏折叠到顶部 */
  .sidebar-left {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sidebar,
  .sidebar-panel,
  .page-aside,
  .help-tree {
    position: static;
    order: -1;
  }

  /* 但移动端要求 H1 在侧栏之前，侧栏折叠为面板放在正文前 */
  .page-layout.sidebar-left > .page-header {
    order: -2;
  }

  /* 首页首屏调整 */
  #hero-title {
    font-size: 30px;
  }

  .hero-split {
    padding-top: 24px;
  }

  .featured-special {
    grid-template-columns: 1fr;
  }

  .side-specials {
    flex-direction: row;
  }

  .side-special-card {
    flex: 1;
  }

  .genre-sample-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .library-entry-list {
    grid-template-columns: 1fr;
  }

  .feedback-cards {
    grid-template-columns: 1fr;
  }

  .process-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-item {
    padding-top: 40px;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px 20px 24px;
  }

  .update-item {
    align-items: flex-start;
  }

  .update-desc {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* 小屏 480px */
@media (max-width: 480px) {
  .header-shell {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-tagline {
    display: none;
  }

  .inner-main {
    padding: 20px 16px 40px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-split {
    padding: 20px 16px 0;
  }

  #hero-title {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-quick-links {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-quick-links .btn {
    text-align: center;
  }

  .genre-filter,
  .editorial-picks,
  .recent-updates,
  .home-duo,
  .helper-preview,
  .feedback-banner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .featured-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .cover-title {
    font-size: 14px;
    padding: 10px 10px 2px;
  }

  .cover-tags {
    padding: 0 10px 6px;
  }

  .cover-desc {
    padding: 0 10px 12px;
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .side-specials {
    flex-direction: column;
  }

  .spotlight-content {
    padding: 16px;
  }

  .spotlight-content h3 {
    font-size: 18px;
  }

  .manga-card-list {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .manga-card h3 {
    font-size: 14px;
    padding: 10px 10px 2px;
  }

  .manga-tags {
    padding: 0 10px 6px;
  }

  .manga-desc {
    padding: 0 10px 38px;
    font-size: 12px;
  }

  .card-link {
    left: 10px;
    bottom: 10px;
    font-size: 12px;
  }

  .genre-sample-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .genre-detail-card {
    padding: 16px;
  }

  .genre-name {
    font-size: 18px;
  }

  .need-grid {
    grid-template-columns: 1fr;
  }

  .trending-panel,
  .newbie-guide {
    padding: 16px;
  }

  .feedback-content {
    padding: 24px 16px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-col h3 {
    margin-bottom: 12px;
  }

  .update-item {
    gap: 12px;
  }

  .update-item img {
    width: 48px;
    height: 60px;
  }

  .update-info h3 {
    font-size: 14px;
  }

  .update-meta {
    gap: 6px;
  }

  .update-desc {
    font-size: 12px;
  }

  .update-link {
    font-size: 12px;
  }

  .step-item,
  .trouble-item {
    padding: 16px;
  }

  .process-list {
    gap: 20px;
  }

  .error-code {
    font-size: 56px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .btn-home,
  .error-actions .btn-genres {
    text-align: center;
  }
}

/* 滚动出现动画 - 仅作为增强，不影响初始可见性 */
@media (prefers-reduced-motion: no-preference) {
  .cover-card,
  .manga-card,
  .side-special-card,
  .playlist-item,
  .need-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
