/* ============================================================
   BASE
   ============================================================ */
:root {
  --paper: #f5f0e6;
  --paper-deep: #ece4d4;
  --ink: #3a2e28;
  --ink-soft: #6b5b50;
  --ink-faint: #8a7a6d;
  --accent: #d94f30;
  --accent-deep: #b83a1f;
  --accent-soft: #f7e3db;
  --leaf: #4a7c59;
  --leaf-deep: #3a6447;
  --leaf-soft: #e4efe5;
  --gold: #e0b84c;
  --gold-deep: #b8912f;
  --gold-soft: #faf0d3;
  --line: #ddd2bf;
  --white: #fffdf8;
  --shadow-sm: 0 1px 3px rgba(58, 46, 40, 0.1);
  --shadow-md: 0 4px 14px rgba(58, 46, 40, 0.1);
  --shadow-lg: 0 10px 30px rgba(58, 46, 40, 0.12);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 8px;
  --container: 1200px;
  --header-h: 68px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-title: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-deep);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-title);
  line-height: 1.35;
  color: var(--ink);
}

h1 {
  font-size: 32px;
  font-weight: 700;
}

h2 {
  font-size: 24px;
  font-weight: 700;
}

h3 {
  font-size: 18px;
  font-weight: 600;
}

h4 {
  font-size: 16px;
  font-weight: 600;
}

p {
  line-height: 1.75;
}

/* ============================================================
   LAYOUT / SHELL
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 13px;
  color: var(--ink-faint);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-list li {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
  background-color: var(--paper);
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 600;
  background-color: var(--accent-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle:hover {
  background-color: var(--paper);
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-main {
  min-height: 60vh;
}

/* 内页主容器 */
.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 36px;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-description {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 720px;
}

/* 页脚 */
.site-footer {
  background: var(--ink);
  color: #d8cfc4;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: #b5aa9d;
  line-height: 1.7;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #c9bfb2;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 24px;
  text-align: center;
}

.copyright {
  font-size: 13px;
  color: #9a8f83;
}

/* 通用区块标题 */
.section-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 680px;
}

.section-intro {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 680px;
}

.section-more {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.section-more:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

/* 封面卡片通用 */
.cover-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease;
}

.cover-card:hover {
  box-shadow: var(--shadow-md);
}

.cover-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.cover-card:hover .cover-image {
  transform: scale(1.03);
}

.cover-caption {
  padding: 12px 14px;
}

.cover-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.update-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ============================================================
   COMPONENTS
   ============================================================ */

/* ---------- 首页 Hero 封面墙 ---------- */
.hero-wall {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  padding: 40px 24px;
}

.hero-layout {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.hero-feature {
  display: flex;
}

.cover-feature {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.cover-feature .cover-image {
  aspect-ratio: 16 / 9;
  flex: 1;
}

.hero-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.hero-cta {
  display: inline-block;
  padding: 8px 20px;
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.hero-cta:hover {
  background: var(--accent-deep);
  color: var(--white);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cover-side {
  display: flex;
  align-items: stretch;
  flex: 1;
}

.cover-side .cover-image {
  aspect-ratio: 16 / 9;
}

.cover-side .cover-caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cover-link {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- 题材分类带 ---------- */
.category-strip {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-tags li {
  flex: 0 0 auto;
}

.cat-tag {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.cat-romance {
  background: #f9d6d1;
}

.cat-action {
  background: #f4c9b8;
}

.cat-mystery {
  background: #d3d9e8;
}

.cat-fantasy {
  background: #d8e0d0;
}

.cat-sci {
  background: #cddce8;
}

.cat-slice {
  background: #f0e4c8;
}

/* ---------- 最近更新轨道 ---------- */
.recent-track {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.update-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.update-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.update-item .cover-image {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
}

.update-item .cover-caption {
  padding: 12px 14px;
}

.update-item .cover-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.update-item .update-tag {
  margin-bottom: 6px;
}

.update-date {
  display: block;
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---------- 人气榜单预览 ---------- */
.ranking-preview {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 24px;
}

.ranking-preview .section-title,
.ranking-preview .section-desc {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.rank-list {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.rank-num {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-deep);
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
}

.rank-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.rank-reason {
  font-size: 13px;
  color: var(--ink-soft);
}

.rank-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* ---------- 阅读指南入口 ---------- */
.guide-entry {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
}

.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.guide-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--leaf);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.guide-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.guide-card:nth-child(2) {
  border-left-color: var(--gold);
}

.guide-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.guide-card-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.guide-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--leaf);
}

.guide-card-link:hover {
  color: var(--leaf-deep);
  text-decoration: underline;
}

/* ---------- 长尾推荐预告 ---------- */
.feature-topic {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.feature-media {
  position: relative;
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.feature-caption {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-name {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.feature-link {
  display: inline-block;
  align-self: flex-start;
  padding: 8px 24px;
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.feature-link:hover {
  background: var(--accent-deep);
  color: var(--white);
}

/* ============================================================
   内页：分类页 categories
   ============================================================ */

/* 题材色标列表 */
.genre-swatches {
  margin-bottom: 48px;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.swatch-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.swatch-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.swatch-color {
  width: 56px;
  height: 72px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.swatch-hot-blood {
  background: #d94f30;
}

.swatch-romance {
  background: #e88a9a;
}

.swatch-suspense {
  background: #5a6b8c;
}

.swatch-fantasy {
  background: #6f8f6a;
}

.swatch-sci-fi {
  background: #4a7a9c;
}

.swatch-daily {
  background: #d4a94c;
}

.swatch-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.swatch-desc {
  font-size: 13px;
  color: var(--ink-soft);
}

/* 代表作品卡片 */
.representative-works {
  margin-bottom: 48px;
}

.work-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.work-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.work-figure {
  overflow: hidden;
}

.work-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.work-card:hover .work-cover {
  transform: scale(1.04);
}

.work-meta {
  padding: 14px 16px;
}

.genre-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 20px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 8px;
}

.work-title {
  font-size: 16px;
  font-weight: 600;
}

/* 相关阅读导航 */
.related-links {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.related-links .section-title {
  font-size: 18px;
  margin-bottom: 16px;
}

.related-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.related-desc a {
  font-weight: 600;
  margin: 0 4px;
}

/* ============================================================
   内页：阅读指南 guide
   ============================================================ */
.guide-section {
  margin-bottom: 48px;
}

.guide-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.guide-section .section-intro {
  margin-bottom: 24px;
}

/* 步骤条 */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-item {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--leaf);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.step-content a {
  font-weight: 600;
}

.step-example {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
}

.example-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 4px;
}

.step-example p {
  font-size: 13px;
  margin-bottom: 0;
  color: var(--ink);
}

/* 追更技巧 */
.tips-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tip-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.tip-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--accent);
}

.tip-item p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* 书单部分 */
.guide-list {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.guide-list h2 {
  margin-bottom: 16px;
}

.guide-media {
  margin-bottom: 16px;
}

.guide-media img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.list-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

/* 更多入口 */
.guide-more {
  background: var(--gold-soft);
  border-radius: var(--radius);
  padding: 28px;
}

.guide-more h2 {
  margin-bottom: 12px;
}

.guide-more p {
  font-size: 14px;
  color: var(--ink-soft);
}

.guide-more a {
  font-weight: 600;
  margin-right: 12px;
}

/* ============================================================
   内页：最近更新 recent
   ============================================================ */
.update-groups {
  margin-bottom: 48px;
}

.update-group {
  margin-bottom: 36px;
}

.group-date {
  font-size: 18px;
  font-weight: 700;
  color: var(--leaf-deep);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--leaf);
  margin-bottom: 16px;
  display: inline-block;
}

.update-card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.update-card {
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease;
}

.update-card:hover {
  box-shadow: var(--shadow-md);
}

.card-cover-wrap {
  flex-shrink: 0;
  width: 88px;
}

.card-cover {
  width: 88px;
  height: 112px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card-update-status {
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.card-link {
  font-size: 13px;
  font-weight: 600;
}

/* 更新状态说明 */
.update-status-guide {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.status-tag-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.status-tag-item {
  padding: 16px;
  background: var(--paper);
  border-radius: var(--radius-sm);
}

.tag-badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 8px;
}

.tag-new {
  background: var(--accent-soft);
  color: var(--accent);
}

.tag-final {
  background: var(--leaf-soft);
  color: var(--leaf-deep);
}

.tag-hiatus {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.tag-description {
  font-size: 13px;
  color: var(--ink-soft);
}

.status-note {
  font-size: 14px;
  color: var(--ink-soft);
}

.status-note a {
  font-weight: 600;
  margin: 0 4px;
}

/* 相关入口 */
.recent-related-links {
  background: var(--gold-soft);
  border-radius: var(--radius);
  padding: 20px 28px;
}

.recent-related-links p {
  font-size: 14px;
}

.recent-related-links a {
  font-weight: 600;
  margin-right: 12px;
}

/* ============================================================
   内页：人气榜单 ranking
   ============================================================ */
.ranking-section {
  margin-bottom: 56px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ranking-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.rank-number {
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 800;
  color: var(--gold-deep);
  width: 48px;
  text-align: center;
  flex-shrink: 0;
}

.rank-cover {
  flex-shrink: 0;
}

.rank-cover img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.rank-info {
  flex: 1;
}

.rank-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.rank-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.rank-reason {
  font-size: 14px;
  color: var(--ink-soft);
}

/* 编辑推荐 */
.editor-picks-section {
  margin-bottom: 56px;
}

.editor-picks-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.editor-pick-item {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
  transition: box-shadow 0.25s ease;
}

.editor-pick-item:hover {
  box-shadow: var(--shadow-md);
}

.pick-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-deep);
  background: var(--gold-soft);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.pick-cover {
  margin-bottom: 12px;
}

.pick-cover img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.pick-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pick-tag {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
}

.pick-reason {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.pick-audience {
  font-size: 13px;
  color: var(--leaf-deep);
  font-weight: 500;
}

/* ============================================================
   内页：热血推荐 recommend
   ============================================================ */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.recommend-section {
  margin-bottom: 48px;
  min-width: 0;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.manga-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.manga-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-cover {
  overflow: hidden;
}

.card-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.manga-card:hover .card-cover img {
  transform: scale(1.04);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-tags {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  flex: 1;
}

.recommend-reason {
  padding: 12px 16px;
  background: var(--gold-soft);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink);
  border-left: 3px solid var(--gold);
}

/* 推荐理由说明 */
.reason-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}

.reason-section h2 {
  margin-bottom: 12px;
}

.reason-intro {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.reason-list {
  margin-bottom: 16px;
}

.reason-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.reason-list li:last-child {
  border-bottom: none;
}

.reason-list strong {
  color: var(--ink);
  font-weight: 600;
}

.reason-note {
  font-size: 14px;
  color: var(--ink-soft);
}

.reason-note a {
  font-weight: 600;
  margin-right: 8px;
}

/* 侧栏 */
.recommend-aside {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.aside-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

.recommend-aside p {
  font-size: 14px;
  color: var(--ink-soft);
}

.recommend-aside a {
  font-weight: 600;
}

/* ============================================================
   404 页面
   ============================================================ */
.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px;
  min-height: 60vh;
}

.error-section {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 56px 40px;
  box-shadow: var(--shadow-md);
}

.error-code {
  font-family: var(--font-title);
  font-size: 88px;
  font-weight: 800;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.btn-back,
.btn-categories {
  display: inline-block;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-back {
  background: var(--accent);
  color: var(--white);
}

.btn-back:hover {
  background: var(--accent-deep);
  color: var(--white);
}

.btn-categories {
  background: var(--leaf);
  color: var(--white);
}

.btn-categories:hover {
  background: var(--leaf-deep);
  color: var(--white);
}

.error-help {
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.error-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.error-links a {
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---------- 平板 ---------- */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr 1fr;
  }

  .swatch-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .update-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-image {
    aspect-ratio: 16 / 8;
  }

  .page-layout {
    grid-template-columns: 1fr 260px;
    gap: 24px;
  }

  .recommend-grid {
    grid-template-columns: 1fr;
  }

  .editor-picks-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- 手机 ---------- */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .site-nav {
    order: 4;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 14px 12px;
    border-radius: 0;
  }

  .nav-link.is-current {
    background: var(--paper);
  }

  /* 首页 */
  .hero-wall {
    padding: 24px 16px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .cover-side {
    flex-direction: column;
  }

  .cover-side .cover-image {
    aspect-ratio: 3 / 4;
  }

  .category-strip {
    padding: 32px 16px 16px;
  }

  .category-tags {
    gap: 8px;
  }

  .cat-tag {
    padding: 6px 14px;
    font-size: 13px;
  }

  .recent-track {
    padding: 24px 16px;
  }

  .update-list {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ranking-preview {
    padding: 32px 16px;
  }

  .rank-item {
    gap: 12px;
    padding: 12px 14px;
  }

  .rank-num {
    font-size: 20px;
    width: 32px;
  }

  .rank-thumb {
    width: 52px;
    height: 52px;
  }

  .rank-reason {
    font-size: 12px;
  }

  .guide-entry {
    padding: 32px 16px;
  }

  .guide-card {
    padding: 20px;
  }

  .feature-topic {
    padding: 0 16px 40px;
  }

  .feature-caption {
    padding: 20px;
  }

  .feature-name {
    font-size: 20px;
  }

  /* 内页通用 */
  .inner-main {
    padding: 20px 16px 48px;
  }

  .breadcrumb {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-description {
    font-size: 15px;
  }

  .section-title {
    font-size: 20px;
  }

  /* 分类页 */
  .swatch-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .swatch-item {
    padding: 14px;
  }

  .work-card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .work-meta {
    padding: 10px 12px;
  }

  .work-title {
    font-size: 14px;
  }

  .related-links {
    padding: 20px;
  }

  /* 指南页 */
  .guide-section {
    margin-bottom: 32px;
  }

  .step-item {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }

  .step-num {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .tips-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guide-list,
  .guide-more {
    padding: 20px;
  }

  /* 最近更新 */
  .update-card-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .update-card {
    padding: 12px;
  }

  .card-cover-wrap {
    width: 72px;
  }

  .card-cover {
    width: 72px;
    height: 96px;
  }

  .status-tag-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 榜单 */
  .ranking-item {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
  }

  .rank-number {
    width: 32px;
    font-size: 24px;
  }

  .rank-cover img {
    width: 56px;
    height: 72px;
  }

  .rank-info {
    min-width: calc(100% - 120px);
  }

  .editor-pick-item {
    padding: 18px;
  }

  /* 推荐 */
  .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .recommend-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .recommend-aside {
    position: static;
    padding: 20px;
  }

  /* 404 */
  .error-main {
    padding: 40px 16px;
  }

  .error-section {
    padding: 40px 24px;
  }

  .error-code {
    font-size: 64px;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-back,
  .btn-categories {
    width: 100%;
    max-width: 240px;
    text-align: center;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 16px 24px;
  }
}

/* ---------- 窄屏手机 ---------- */
@media (max-width: 420px) {
  .brand-name {
    font-size: 20px;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .work-card-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .rank-num {
    text-align: left;
  }

  .rank-info {
    min-width: 100%;
  }

  .rank-thumb {
    width: 64px;
    height: 64px;
  }
}

/* ============================================================
   动效增强（不影响初始可见性）
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .cover-card .cover-image,
  .work-cover,
  .card-cover img {
    transition: transform 0.35s ease;
  }

  .update-item,
  .work-card,
  .manga-card,
  .swatch-item {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
  }
}
