/* =========================================================
   再漫画 · 整站样式表
   数据目录风 · 信息密度优先 · 清爽配色
   ========================================================= */

/* =========================================================
   Base — 变量、重置、全局基础
   ========================================================= */
:root {
  --color-ink: #1a1a2e;
  --color-accent: #e94560;
  --color-deep: #0f3460;
  --color-bg: #f5f5f5;
  --color-white: #ffffff;
  --color-text: #333344;
  --color-muted: #6b6b7b;
  --color-border: #e2e2ea;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --container-width: 1200px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3,
h4 {
  color: var(--color-ink);
  line-height: 1.3;
  font-weight: 600;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  font-size: 16px;
}

time {
  color: var(--color-muted);
  font-size: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Layout — 全站统一骨架
   ========================================================= */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
}

.inner-main {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px 20px 56px;
}

/* ---------- 页头 ---------- */
.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(26, 26, 46, 0.06);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 13px;
  color: var(--color-muted);
  white-space: nowrap;
}

/* ---------- 导航 ---------- */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-accent);
  background-color: rgba(233, 69, 96, 0.06);
}

.nav-item.is-current .nav-link,
.nav-link.is-current {
  color: var(--color-accent);
  font-weight: 600;
}

.nav-item.is-current .nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 24px;
  padding: 12px 0 0;
}

.breadcrumb a {
  color: var(--color-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb-sep {
  color: #aaa;
}

.breadcrumb-current {
  color: var(--color-ink);
  font-weight: 500;
}

/* ---------- 页面标题区 ---------- */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: var(--color-muted);
  max-width: 720px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background-color: var(--color-ink);
  color: #c8c8d4;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 40px;
}

.footer-brand .footer-slogan {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 8px;
}

.footer-brand .footer-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #a0a0b0;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-size: 14px;
  color: #a0a0b0;
}

.footer-col ul a:hover {
  color: var(--color-white);
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  text-align: center;
}

.footer-copyright p {
  font-size: 13px;
  color: #80808e;
}

/* =========================================================
   Components — 通用组件
   ========================================================= */

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #d63a52;
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-ink);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-outline {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-deep);
  border: 1px solid var(--color-deep);
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  background-color: var(--color-deep);
  color: var(--color-white);
}

/* ---------- 区块标题 ---------- */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.section-intro {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 20px;
}

/* ---------- 链接更多 ---------- */
.link-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.link-more:hover {
  color: var(--color-deep);
}

/* ---------- 标签 ---------- */
.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-text);
  transition: all 0.2s ease;
}

.tag-item:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(233, 69, 96, 0.12);
}

/* ---------- 封面图容器 ---------- */
.hero-media,
.update-media,
.rank-cover,
.genre-works .work-card > img,
.related-card > img,
.story-figure,
.guide-figure {
  overflow: hidden;
  background-color: #ececf2;
}

.hero-media img,
.update-media img,
.rank-cover img,
.genre-works .work-card > img,
.related-card > img,
.story-figure img,
.guide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   Pages — 首页
   ========================================================= */
.home-main {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  background-color: var(--color-deep);
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 52, 96, 0.9) 0%, rgba(15, 52, 96, 0.55) 60%, rgba(15, 52, 96, 0.25) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 64px 20px;
  width: 100%;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 24px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .btn-primary {
  background-color: var(--color-accent);
}

.hero-actions .btn-secondary {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-actions .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.22);
  color: var(--color-white);
  border-color: var(--color-white);
}

/* ---------- 分类标签带 ---------- */
.category-tags-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px 8px;
}

.category-tags-section .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 双栏内容区 ---------- */
.home-columns {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

/* 最近更新预览 */
.updates-preview {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--color-border);
}

.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: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-chapter {
  display: block;
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 2px;
}

.update-info time {
  font-size: 13px;
}

/* 人气榜单预览 */
.rankings-preview {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--color-border);
}

.ranking-list {
  display: flex;
  flex-direction: column;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.ranking-item:last-child {
  border-bottom: none;
}

.rank-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.ranking-item img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-reason {
  font-size: 13px;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 入口卡片 ---------- */
.guide-cards-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 8px 20px 48px;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.guide-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.guide-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.guide-card-text {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  flex: 1;
}

/* =========================================================
   Pages — 题材分类页
   ========================================================= */
.tag-grid {
  margin-bottom: 40px;
}

.tag-grid .tag-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tag-grid .tag-item {
  justify-content: space-between;
  width: 100%;
}

.tag-count {
  font-size: 13px;
  color: var(--color-muted);
  background-color: var(--color-bg);
  padding: 2px 8px;
  border-radius: 10px;
}

/* 题材作品块 */
.works-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.genre-block {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
}

.genre-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 6px;
  padding-left: 12px;
  border-left: 4px solid var(--color-accent);
}

.genre-desc {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.genre-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.work-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.work-card:hover {
  box-shadow: 0 4px 16px rgba(26, 26, 46, 0.12);
  transform: translateY(-2px);
}

.work-card > img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.work-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.work-card p {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.7;
}

/* 相关链接侧栏 */
.related-links {
  margin-top: 40px;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--color-border);
}

.aside-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 16px;
}

.related-links ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.related-links ul li:last-child {
  border-bottom: none;
}

.related-links ul a {
  font-size: 15px;
  color: var(--color-text);
}

.related-links ul a:hover {
  color: var(--color-accent);
}

/* =========================================================
   Pages — 阅读指南页
   ========================================================= */
.guide-steps {
  margin-bottom: 40px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-item {
  display: flex;
  gap: 20px;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--color-border);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
}

/* 指南提示卡片 */
.guide-tips {
  margin-bottom: 40px;
}

.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tip-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--color-border);
}

.tip-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.tip-card p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
}

.tip-card a {
  color: var(--color-accent);
  font-weight: 500;
}

/* 相关链接 */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-list li a {
  display: block;
  padding: 14px 20px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--color-text);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.related-list li a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* 指南插图 */
.guide-figure {
  margin: 40px 0;
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 16px;
}

.guide-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.guide-figure figcaption {
  padding: 12px 4px 4px;
  font-size: 14px;
  color: var(--color-muted);
  text-align: center;
}

/* =========================================================
   Pages — 最近更新页
   ========================================================= */
.update-groups {
  margin-bottom: 40px;
}

.update-groups h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-ink);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
  margin-bottom: 20px;
}

.update-groups .update-item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
  display: flex;
  gap: 16px;
  align-items: center;
}

.update-media {
  width: 96px;
  height: 128px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.update-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.update-title a {
  color: inherit;
}

.update-title a:hover {
  color: var(--color-accent);
}

.update-meta {
  font-size: 14px;
  color: var(--color-muted);
}

/* 归档链接 */
.archive-links {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.archive-links h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.archive-desc {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.archive-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.archive-list li a {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.archive-list li a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* 相关阅读（更新页） */
.related-links p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
}

.related-links p a {
  color: var(--color-accent);
  font-weight: 500;
}

/* =========================================================
   Pages — 人气榜单页
   ========================================================= */
.rankings-shell {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.rankings-section {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
}

.rankings-section .ranking-list {
  display: flex;
  flex-direction: column;
}

.rankings-section .ranking-item {
  padding: 0;
  border-bottom: 1px solid var(--color-border);
}

.rankings-section .ranking-item:last-child {
  border-bottom: none;
}

.ranking-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  width: 100%;
}

.rank-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-accent);
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.rank-cover {
  width: 72px;
  height: 96px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  background-color: var(--color-bg);
  border-radius: 10px;
  font-size: 12px;
  color: var(--color-muted);
}

.rank-reason {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.7;
}

/* 推荐理由 */
.reason-section {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
}

.reason-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.reason-item {
  padding: 20px;
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
}

.reason-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.reason-text {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
}

/* 榜单使用提示 */
.rank-tips {
  background-color: var(--color-deep);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: rgba(255, 255, 255, 0.9);
}

.rank-tips .section-title {
  color: var(--color-white);
}

.tips-text {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.tips-text a {
  color: #ffb3c0;
  font-weight: 500;
}

.tips-text a:hover {
  color: var(--color-white);
}

/* =========================================================
   Pages — 剧情介绍页
   ========================================================= */
.story-section {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.story-section .section-title {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
  margin-bottom: 20px;
}

.story-content {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}

.story-block {
  min-width: 0;
}

.story-block-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 10px;
}

.story-block p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.9;
  margin-bottom: 12px;
}

.story-figure {
  border-radius: var(--radius-md);
}

.story-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.story-figure figcaption {
  padding: 10px 4px;
  font-size: 13px;
  color: var(--color-muted);
  text-align: center;
}

/* 相关推荐 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  box-shadow: 0 4px 16px rgba(26, 26, 46, 0.12);
  transform: translateY(-2px);
}

.related-card > img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.related-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.related-card p {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.7;
}

/* =========================================================
   Pages — 404
   ========================================================= */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.error-section {
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: var(--color-muted);
  margin-bottom: 28px;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-home {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-home:hover {
  background-color: #d63a52;
  color: var(--color-white);
}

.btn-link {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--color-white);
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.error-tip {
  font-size: 14px;
  color: var(--color-muted);
}

/* =========================================================
   Responsive — 响应式
   ========================================================= */

/* ---------- 平板及以下 ---------- */
@media (max-width: 992px) {
  .home-columns {
    grid-template-columns: 1fr;
  }

  .rankings-preview {
    order: -1;
  }

  .tag-grid .tag-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .genre-works {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-content {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reason-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- 手机 768px ---------- */
@media (max-width: 768px) {
  .header-inner {
    min-height: 56px;
    padding: 0 16px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .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);
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item.is-current .nav-link::after {
    display: none;
  }

  .nav-link {
    padding: 12px 8px;
    font-size: 15px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  /* 内页 */
  .inner-main {
    padding: 16px 16px 40px;
  }

  .breadcrumb {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  /* 首页 */
  .hero-section {
    min-height: 340px;
  }

  .hero-content {
    padding: 48px 16px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 240px;
  }

  .category-tags-section {
    padding: 28px 16px 4px;
  }

  .home-columns {
    padding: 24px 16px;
    gap: 20px;
  }

  .updates-preview,
  .rankings-preview {
    padding: 18px;
  }

  .guide-cards-section {
    padding: 4px 16px 40px;
  }

  .guide-card-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    padding: 20px;
  }

  /* 分类页 */
  .tag-grid .tag-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .tag-item {
    padding: 8px 12px;
    font-size: 13px;
  }

  .genre-block {
    padding: 18px;
  }

  .genre-works {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .work-card {
    padding: 12px;
  }

  .work-card > img {
    height: 140px;
  }

  /* 指南页 */
  .step-item {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .guide-figure img {
    height: 200px;
  }

  /* 更新页 */
  .update-groups .update-item {
    flex-direction: row;
    padding: 12px;
  }

  .update-media {
    width: 72px;
    height: 96px;
  }

  .update-title {
    font-size: 15px;
  }

  .update-meta {
    font-size: 13px;
  }

  /* 榜单页 */
  .rankings-section,
  .reason-section,
  .rank-tips {
    padding: 18px;
  }

  .ranking-card {
    gap: 12px;
  }

  .rank-number {
    font-size: 20px;
    width: 28px;
  }

  .rank-cover {
    width: 56px;
    height: 76px;
  }

  .rank-name {
    font-size: 15px;
  }

  .rank-reason {
    font-size: 13px;
  }

  /* 剧情页 */
  .story-section {
    padding: 18px;
  }

  .story-figure img {
    height: 180px;
  }

  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .related-card {
    padding: 12px;
  }

  .related-card > img {
    height: 120px;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 16px 20px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-copyright {
    padding: 14px 16px;
  }
}

/* ---------- 小屏手机 390px ---------- */
@media (max-width: 480px) {
  .brand-name {
    font-size: 19px;
  }

  .hero-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 20px;
  }

  .tag-grid .tag-list {
    grid-template-columns: 1fr 1fr;
  }

  .genre-works {
    grid-template-columns: 1fr;
  }

  .work-card > img {
    height: 180px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .update-item {
    gap: 12px;
  }

  .update-item img {
    width: 56px;
    height: 72px;
  }

  .error-code {
    font-size: 48px;
  }
}
