/* ==========================================================================
   漫画岛 · 全站样式表
   版本：1.1
   说明：本文覆盖整站全部页面与组件，按 base / layout / components / pages / responsive 分组。
   ========================================================================== */

/* ==========================================================================
   Base · 基础变量、重置、字体与全局元素
   ========================================================================== */

:root {
  --bg: #f8f7f2;
  --text: #333333;
  --primary: #ff5a5f;
  --secondary: #3d7ea6;
  --accent: #ffcf4d;
  --card: #ffffff;
  --border: #e8e4d8;
  --text-light: #77736a;
  --text-lighter: #9b978e;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(51, 51, 51, 0.06);
  --shadow-hover: 0 6px 20px rgba(51, 51, 51, 0.1);
  --font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --container-width: 1200px;
  --header-height: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.4;
  color: var(--text);
}

h1 {
  font-size: 32px;
  font-weight: 700;
}

h2 {
  font-size: 24px;
  font-weight: 700;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

p {
  margin-bottom: 0;
}

figure {
  margin: 0;
}

.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;
  background-color: var(--bg);
}

.site-home {
  background-color: var(--bg);
}

.site-inner {
  background-color: var(--bg);
}

.site-error {
  background-color: var(--bg);
}

/* ---------- 页头 ---------- */

.site-header {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.brand-tagline {
  font-size: 13px;
  color: var(--text-light);
}

/* ---------- 导航 ---------- */

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--text);
  font-size: 15px;
  border-bottom: 2px solid transparent;
  line-height: 1.4;
}

.nav-list a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-list a.is-current {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- 主容器 ---------- */

.site-main {
  flex: 1;
  width: 100%;
}

.inner-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 24px 56px;
  width: 100%;
}

/* ---------- 面包屑 ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--text-lighter);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

/* ---------- 页面标题区 ---------- */

.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: var(--text-light);
  max-width: 720px;
}

/* ---------- 页脚 ---------- */

.site-footer {
  background-color: #2f2c28;
  color: #cfcbc2;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  color: #b5b0a6;
}

.footer-col h3 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-size: 14px;
  color: #b5b0a6;
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-brand {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #8f8a80;
}

/* ==========================================================================
   Components · 通用组件：封面卡、标签、榜单行、说明卡、区块标题
   ========================================================================== */

/* ---------- 区块标题 ---------- */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 24px;
  font-weight: 700;
}

.section-heading .more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--secondary);
  white-space: nowrap;
}

.section-heading .more-link:hover {
  color: var(--primary);
}

/* ---------- 封面卡 ---------- */

.recent-card {
  background-color: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.recent-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.recent-card a {
  display: block;
  color: var(--text);
}

.recent-card a:hover {
  color: var(--text);
}

.recent-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px 4px;
  line-height: 1.5;
}

.card-tags {
  font-size: 13px;
  color: var(--text-light);
  padding: 0 14px 14px;
}

/* ---------- 榜单行（首页） ---------- */

.rank-list {
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
}

.rank-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  min-width: 36px;
  text-align: center;
}

.rank-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.rank-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---------- 标签云（首页） ---------- */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-cloud li a {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tag-cloud li a:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- 说明卡 ---------- */

.guide-card {
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.guide-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.guide-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- 通用说明窄条 ---------- */

.list-note,
.rank-note {
  margin-top: 40px;
  padding: 20px 24px;
  background-color: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.note-text,
.rank-note-inner p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.note-text a,
.rank-note-inner a {
  font-weight: 500;
}

/* ==========================================================================
   Pages · 首页
   ========================================================================== */

.home-main {
  width: 100%;
}

/* ---------- 首屏焦点 ---------- */

.focus-section {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.focus-layout {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: stretch;
}

.focus-feature {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.focus-figure {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.focus-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.focus-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 32px 28px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
}

.focus-caption h1 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 6px;
}

.focus-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 560px;
}

.focus-rapid {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.rapid-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.rapid-list li {
  margin-bottom: 4px;
}

.rapid-list li:last-child {
  margin-bottom: 0;
}

.rapid-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  transition: background-color 0.2s ease;
}

.rapid-list a:hover {
  background-color: var(--card);
}

.rapid-tag {
  flex-shrink: 0;
  font-size: 12px;
  padding: 2px 10px;
  background-color: var(--accent);
  color: #5a4a00;
  border-radius: 999px;
  font-weight: 600;
}

.rapid-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* ---------- 最近更新 ---------- */

.recent-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

/* ---------- 热门题材榜 ---------- */

.rank-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px 24px;
}

/* ---------- 题材标签墙 ---------- */

.tag-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px 24px;
}

/* ---------- 阅读指南入口 ---------- */

.guide-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ==========================================================================
   Pages · 漫画目录（list）
   ========================================================================== */

.page-list {
  background-color: var(--bg);
}

/* ---------- 题材筛选条 ---------- */

.filter-bar {
  margin-bottom: 40px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-tags a {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-tags a:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

/* ---------- 题材分组 ---------- */

.grouped-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.topic-group {
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.topic-head {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.topic-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.topic-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.topic-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.topic-group:nth-child(n + 7) .topic-items {
  grid-template-columns: repeat(2, 1fr);
}

.topic-item {
  display: flex;
  gap: 16px;
  background-color: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  transition: box-shadow 0.2s ease;
}

.topic-item:hover {
  box-shadow: var(--shadow);
}

.topic-cover {
  width: 84px;
  height: 112px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.topic-info {
  flex: 1;
  min-width: 0;
}

.topic-item-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.topic-item-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topic-tags li {
  font-size: 12px;
  color: var(--secondary);
  background-color: rgba(61, 126, 166, 0.08);
  padding: 2px 10px;
  border-radius: 999px;
}

/* ==========================================================================
   Pages · 排行榜（rank）
   ========================================================================== */

.page-rank {
  background-color: var(--bg);
}

/* ---------- 榜单切换 ---------- */

.rank-tabs {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.rank-tabs-inner {
  display: flex;
  gap: 8px;
}

.rank-tab {
  display: inline-block;
  padding: 10px 20px;
  font-size: 15px;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.rank-tab:hover {
  color: var(--primary);
}

.rank-tab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ---------- 榜单区块 ---------- */

.rank-section {
  margin-bottom: 48px;
  padding: 0;
}

.rank-section-head {
  margin-bottom: 20px;
}

.rank-section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.rank-section-desc {
  font-size: 14px;
  color: var(--text-light);
}

/* ---------- 榜单条目 ---------- */

.rank-list .rank-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rank-media {
  width: 72px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.rank-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-media-small {
  width: 56px;
  height: 72px;
}

.rank-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.rank-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  min-width: 40px;
}

.rank-body {
  flex: 1;
  min-width: 0;
}

.rank-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.rank-tags {
  font-size: 13px;
  color: var(--secondary);
  margin-bottom: 2px;
}

.rank-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-link {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.rank-link:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

/* ---------- 紧凑榜单 ---------- */

.rank-list-compact .rank-item {
  padding-top: 12px;
  padding-bottom: 12px;
}

.rank-list-compact .rank-desc {
  display: none;
}

/* ---------- 新作推荐 ---------- */

.newcomer-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.newcomer-item {
  display: flex;
  gap: 20px;
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.newcomer-media {
  width: 96px;
  height: 128px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.newcomer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newcomer-info {
  flex: 1;
  min-width: 0;
}

.newcomer-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.newcomer-tags {
  font-size: 13px;
  color: var(--secondary);
  margin-bottom: 6px;
}

.newcomer-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.newcomer-link {
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================================================
   Pages · 阅读指南（guide）
   ========================================================================== */

.page-guide {
  background-color: var(--bg);
}

/* ---------- 步骤导航 ---------- */

.steps-nav {
  margin-bottom: 48px;
}

.steps-list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.step-item {
  flex: 1;
  min-width: 140px;
}

.step-item a {
  display: block;
  text-align: center;
  padding: 14px 16px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-item a:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow);
}

/* ---------- 指南区块 ---------- */

.guide-section {
  margin-bottom: 48px;
  padding: 0;
}

.guide-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-intro {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* ---------- 步骤内容 ---------- */

.steps-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.guide-step {
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.guide-step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.guide-step p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

.guide-step p:last-child {
  margin-bottom: 0;
}

/* ---------- 示意图 ---------- */

.guide-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.guide-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.guide-figure figcaption {
  background-color: var(--card);
  padding: 12px 20px;
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
}

/* ---------- 规则列表 ---------- */

.rule-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.rule-item {
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.rule-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.rule-item p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--secondary);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item p {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ==========================================================================
   Pages · 关于本站（about）
   ========================================================================== */

.page-about {
  background-color: var(--bg);
}

.about-section {
  margin-bottom: 48px;
}

.about-section .section-heading {
  justify-content: flex-start;
}

.about-section .section-heading h2 {
  font-size: 22px;
}

/* ---------- 建站定位 ---------- */

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.intro-text p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text);
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.about-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.about-figure figcaption {
  background-color: var(--card);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
}

/* ---------- 收录原则 ---------- */

.section-desc {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.principle-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.principle-list li {
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.principle-list h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.principle-list p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---------- 边界说明 ---------- */

.boundary-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.boundary-list li {
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.boundary-list h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.boundary-list p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---------- 版权与反馈 ---------- */

.copyright-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.copyright-card {
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.copyright-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.copyright-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

.copyright-card p:last-child {
  margin-bottom: 0;
}

.feedback-note {
  font-size: 14px;
  color: var(--text-light);
}

.feedback-note a {
  font-weight: 500;
}

/* ==========================================================================
   Pages · 题材导航（tags）
   ========================================================================== */

.page-tags {
  background-color: var(--bg);
}

/* ---------- 标签云 ---------- */

.tag-cloud-section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.tag-cloud-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-item {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tag-item:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tag-hot {
  background-color: rgba(255, 90, 95, 0.08);
  border-color: rgba(255, 90, 95, 0.3);
}

.tag-love {
  background-color: rgba(255, 207, 77, 0.15);
  border-color: rgba(255, 207, 77, 0.4);
}

.tag-mystery {
  background-color: rgba(61, 126, 166, 0.08);
  border-color: rgba(61, 126, 166, 0.3);
}

.tag-fantasy {
  background-color: rgba(139, 94, 166, 0.08);
  border-color: rgba(139, 94, 166, 0.3);
}

.tag-daily {
  background-color: rgba(102, 153, 102, 0.08);
  border-color: rgba(102, 153, 102, 0.3);
}

.tag-scifi {
  background-color: rgba(61, 126, 166, 0.08);
  border-color: rgba(61, 126, 166, 0.3);
}

.tag-action {
  background-color: rgba(255, 90, 95, 0.08);
  border-color: rgba(255, 90, 95, 0.3);
}

.tag-healing {
  background-color: rgba(102, 153, 102, 0.08);
  border-color: rgba(102, 153, 102, 0.3);
}

.tag-historical {
  background-color: rgba(166, 139, 94, 0.08);
  border-color: rgba(166, 139, 94, 0.3);
}

.tag-sports {
  background-color: rgba(61, 126, 166, 0.08);
  border-color: rgba(61, 126, 166, 0.3);
}

.tag-horror {
  background-color: rgba(51, 51, 51, 0.06);
  border-color: rgba(51, 51, 51, 0.2);
}

.tag-school {
  background-color: rgba(255, 90, 95, 0.08);
  border-color: rgba(255, 90, 95, 0.3);
}

/* ---------- 代表视觉 ---------- */

.tag-pairs-section {
  margin-bottom: 48px;
}

.tag-pair-block {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
  min-height: 220px;
}

.tag-pair-block:last-child {
  margin-bottom: 0;
}

.tag-pair-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag-pair-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tag-pair-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.tag-pair-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.tag-pair-media {
  position: relative;
  min-height: 220px;
}

.tag-pair-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* ---------- 相关入口 ---------- */

.tag-related-links {
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.related-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.related-link-list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.related-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.related-link:hover {
  border-color: var(--secondary);
  background-color: rgba(61, 126, 166, 0.05);
}

.related-link-icon {
  font-size: 16px;
}

.related-link-text {
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================================================
   Pages · 404
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  flex: 1;
}

.error-section {
  max-width: 560px;
  text-align: center;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.error-back {
  display: inline-block;
  padding: 10px 28px;
  background-color: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 40px;
}

.error-back:hover {
  background-color: #e04a4f;
  color: #fff;
}

.error-suggest p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.error-suggest ul {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.error-suggest a {
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================================================
   Responsive · 响应式断点
   ========================================================================== */

/* ---------- 平板 ≤ 1024px ---------- */

@media (max-width: 1024px) {
  .recent-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .focus-layout {
    grid-template-columns: 1fr 300px;
  }

  .topic-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-group:nth-child(n + 7) .topic-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .tag-pair-block {
    grid-template-columns: 1fr 240px;
  }
}

/* ---------- 手机 ≤ 768px ---------- */

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .brand-tagline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    display: none;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: block;
    padding: 12px 24px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .nav-list a:hover {
    border-bottom: none;
    border-left-color: var(--primary);
  }

  .nav-list a.is-current {
    border-bottom: none;
    border-left-color: var(--primary);
  }

  .inner-main {
    padding: 24px 16px 40px;
  }

  .page-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-description {
    font-size: 15px;
  }

  .focus-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }

  .focus-section {
    padding: 24px 0;
  }

  .focus-figure {
    min-height: 280px;
  }

  .focus-caption {
    padding: 32px 20px 20px;
  }

  .focus-caption h1 {
    font-size: 22px;
  }

  .focus-desc {
    font-size: 14px;
  }

  .recent-section,
  .rank-section,
  .tag-section,
  .guide-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .recent-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .rank-section {
    padding: 32px 16px 16px;
  }

  .tag-section {
    padding: 32px 16px 16px;
  }

  .guide-section {
    padding: 32px 16px 40px;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .rank-item {
    padding: 14px 16px;
  }

  .rank-num {
    font-size: 20px;
    min-width: 28px;
  }

  .rank-body h3 {
    font-size: 15px;
  }

  .rank-body p {
    font-size: 13px;
  }

  .topic-group {
    padding: 20px;
  }

  .topic-items {
    grid-template-columns: 1fr;
  }

  .topic-group:nth-child(n + 7) .topic-items {
    grid-template-columns: 1fr;
  }

  .topic-item {
    flex-direction: row;
  }

  .topic-cover {
    width: 72px;
    height: 96px;
  }

  .rank-list .rank-item {
    gap: 12px;
  }

  .rank-media {
    width: 56px;
    height: 72px;
  }

  .rank-media-small {
    width: 48px;
    height: 64px;
  }

  .rank-info {
    gap: 12px;
  }

  .rank-number {
    font-size: 22px;
    min-width: 28px;
  }

  .rank-desc {
    display: none;
  }

  .rank-link {
    padding: 4px 10px;
    font-size: 12px;
  }

  .newcomer-list {
    grid-template-columns: 1fr;
  }

  .newcomer-item {
    flex-direction: row;
  }

  .newcomer-media {
    width: 80px;
    height: 106px;
  }

  .steps-list {
    flex-direction: column;
  }

  .step-item {
    min-width: 0;
  }

  .steps-content {
    grid-template-columns: 1fr;
  }

  .rule-list {
    grid-template-columns: 1fr;
  }

  .about-intro-grid {
    grid-template-columns: 1fr;
  }

  .about-figure img {
    height: 200px;
  }

  .principle-list {
    grid-template-columns: 1fr;
  }

  .boundary-list {
    grid-template-columns: 1fr;
  }

  .copyright-grid {
    grid-template-columns: 1fr;
  }

  .tag-pair-block {
    grid-template-columns: 1fr;
  }

  .tag-pair-media {
    min-height: 180px;
    order: -1;
  }

  .tag-pair-media img {
    position: static;
    height: 180px;
  }

  .tag-pair-info {
    padding: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 16px 24px;
  }

  .footer-bottom {
    padding: 16px;
  }

  .error-main {
    padding: 60px 16px;
  }

  .error-code {
    font-size: 56px;
  }
}

/* ---------- 小屏手机 ≤ 480px ---------- */

@media (max-width: 480px) {
  .recent-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card-title {
    font-size: 14px;
    padding: 10px 12px 2px;
  }

  .card-tags {
    font-size: 12px;
    padding: 0 12px 12px;
  }

  .brand-name {
    font-size: 20px;
  }

  .focus-figure {
    min-height: 220px;
  }

  .focus-caption h1 {
    font-size: 20px;
  }

  .focus-desc {
    font-size: 13px;
    line-height: 1.6;
  }

  .section-heading h2 {
    font-size: 20px;
  }

  .section-heading .more-link {
    font-size: 13px;
  }

  .rank-info {
    flex-wrap: wrap;
  }

  .rank-link {
    margin-left: auto;
  }

  .newcomer-item {
    flex-direction: column;
  }

  .newcomer-media {
    width: 100%;
    height: 160px;
  }

  .newcomer-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .guide-step {
    padding: 20px;
  }

  .faq-item summary {
    padding: 16px 44px 16px 16px;
    font-size: 14px;
  }

  .faq-item p {
    padding: 0 16px 16px;
  }

  .tag-item {
    padding: 6px 14px;
    font-size: 14px;
  }

  .tag-pair-info {
    padding: 20px;
  }

  .tag-pair-name {
    font-size: 18px;
  }

  .related-link-list {
    flex-direction: column;
  }

  .related-link {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- 打印 ---------- */

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .breadcrumb {
    display: none;
  }

  .site-main {
    padding: 0;
  }

  .inner-main {
    max-width: none;
    padding: 0;
  }

  body {
    background-color: #fff;
  }
}
