/* ==========================================================================
   蛙漫 · 漫画阅读站 — 全站样式表
   结构：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   Base — 基础变量、重置、全局字体与色彩
   ========================================================================== */

:root {
  --color-bg: #F5F7FA;
  --color-text: #2B3A4A;
  --color-primary: #FF6B6B;
  --color-secondary: #4ECDC4;
  --color-accent: #FFD93D;
  --color-white: #FFFFFF;
  --color-border: #E6EAF0;
  --color-muted: #8A96A3;
  --color-dark: #1F2A36;

  --font-sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  --container-width: 1200px;
  --radius-card: 8px;
  --radius-tag: 4px;

  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #E85A5A;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  color: var(--color-dark);
  font-weight: 700;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p {
  line-height: 1.7;
}

/* 公共容器 */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container,
.header-inner,
.footer-columns,
.site-main {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Layout — 页头、导航、页脚、主容器、面包屑
   ========================================================================== */

/* ---- 页头 ---- */
.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: 1px;
}

.brand-link:hover .brand-name {
  color: var(--color-primary);
}

.brand-slogan {
  font-size: 13px;
  color: var(--color-muted);
  letter-spacing: 0.5px;
}

/* ---- 主导航 ---- */
.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-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-tag);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  color: var(--color-primary);
  background-color: rgba(255, 107, 107, 0.08);
}

.nav-list li a.is-current {
  color: var(--color-white);
  background-color: var(--color-primary);
  font-weight: 600;
}

/* ---- 面包屑 ---- */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 14px;
  color: var(--color-muted);
}

.breadcrumb ol,
.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: var(--color-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-sep {
  color: #C2C9D1;
  margin: 0 2px;
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

/* ---- 主容器 ---- */
.site-main {
  flex: 1;
  padding-top: 32px;
  padding-bottom: 56px;
}

.inner-main {
  padding-top: 24px;
  padding-bottom: 56px;
}

/* ---- 页面标题区 ---- */
.page-header {
  margin: 24px 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: var(--color-muted);
  max-width: 720px;
}

/* ---- 页脚 ---- */
.site-footer {
  background-color: var(--color-dark);
  color: #B8C2CC;
  padding: 48px 0 0;
  margin-top: auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer-col h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: #B8C2CC;
}

.footer-col ul li a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 13px;
}

.footer-brand {
  font-weight: 600;
  color: var(--color-white);
}

.footer-copy {
  color: #8A96A3;
}

/* ==========================================================================
   Components — 按钮、标签、卡片、列表、FAQ、链接组
   ========================================================================== */

/* ---- 按钮 ---- */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-card);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #E85A5A;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  transform: translateY(-2px);
}

/* ---- 区块标题 ---- */
.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.section-desc,
.section-intro,
.section-lead {
  font-size: 15px;
  color: var(--color-muted);
  max-width: 640px;
}

/* ---- 查看更多 ---- */
.section-more {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
}

.section-more:hover {
  color: #E85A5A;
}

/* ---- 分类标签 ---- */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-tag);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tag:hover {
  transform: translateY(-2px);
}

.tag-hot {
  background-color: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.3);
  color: #E85A5A;
}

.tag-hot:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.tag-love {
  background-color: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.25);
}

.tag-love:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.tag-sci {
  background-color: rgba(78, 205, 196, 0.1);
  border-color: rgba(78, 205, 196, 0.3);
  color: #3AA89F;
}

.tag-sci:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.tag-mystery {
  background-color: rgba(43, 58, 74, 0.06);
  border-color: rgba(43, 58, 74, 0.2);
}

.tag-mystery:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}

.tag-daily {
  background-color: rgba(255, 217, 61, 0.15);
  border-color: rgba(255, 217, 61, 0.4);
  color: #B89A00;
}

.tag-daily:hover {
  background-color: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
}

.tag-fantasy {
  background-color: rgba(78, 205, 196, 0.08);
  border-color: rgba(78, 205, 196, 0.25);
}

.tag-fantasy:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

/* ---- 更新时间列表（首页与更新页共用） ---- */
.update-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 12px 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.update-item:hover {
  box-shadow: 0 4px 16px rgba(43, 58, 74, 0.08);
  transform: translateY(-2px);
}

.update-item img,
.update-thumb {
  width: 64px;
  height: 88px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: cover;
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--color-secondary);
  background-color: rgba(78, 205, 196, 0.1);
  padding: 2px 10px;
  border-radius: 10px;
  margin-right: 8px;
}

.update-meta {
  font-size: 13px;
  color: var(--color-muted);
}

.update-status {
  font-size: 13px;
  color: var(--color-primary);
  margin-top: 2px;
}

.update-time {
  font-size: 13px;
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- 排行榜（首页） ---- */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 12px 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  box-shadow: 0 4px 16px rgba(43, 58, 74, 0.08);
  transform: translateY(-2px);
}

.rank-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-number {
  color: var(--color-primary);
}

.rank-item:nth-child(2) .rank-number {
  color: #FF9F43;
}

.rank-item:nth-child(3) .rank-number {
  color: var(--color-accent);
}

.rank-detail {
  flex: 1;
  min-width: 0;
}

.rank-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-reason {
  font-size: 14px;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- 指南卡片（首页） ---- */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.guide-card:hover {
  box-shadow: 0 6px 20px rgba(43, 58, 74, 0.08);
  transform: translateY(-4px);
}

.guide-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.guide-card-text {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.card-link:hover {
  color: #E85A5A;
}

/* ---- 专题推荐卡（首页） ---- */
.recommend-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.recommend-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.recommend-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.recommend-content h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.recommend-desc {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 24px;
}

/* ---- FAQ 折叠 ---- */
.faq-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary:hover {
  color: var(--color-primary);
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--color-muted);
}

/* ---- 相关链接组 ---- */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
}

.related-links-item {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.related-links-item:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.text-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 8px;
}

.text-link:hover {
  color: #E85A5A;
}

/* ==========================================================================
   Pages — 首页
   ========================================================================== */

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 48px;
  margin-bottom: 48px;
  border: 1px solid var(--color-border);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-lead {
  font-size: 16px;
  color: var(--color-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* ---- 首页各区块 ---- */
.categories-section,
.updates-section,
.rank-section,
.guide-section,
.recommend-section {
  margin-bottom: 56px;
}

/* ==========================================================================
   Pages — 分类页 category.html
   ========================================================================== */

.category-section,
.topic-section {
  margin-bottom: 48px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  box-shadow: 0 6px 20px rgba(43, 58, 74, 0.08);
  transform: translateY(-4px);
}

.category-card-media {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-body {
  padding: 20px;
}

.category-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.category-desc {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.category-direction {
  font-size: 13px;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.category-card-body a {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.category-card-body a:hover {
  color: #E85A5A;
}

/* ---- 专题区块（分类页底部） ---- */
.topic-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.topic-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  transition: box-shadow 0.2s ease;
}

.topic-item:hover {
  box-shadow: 0 4px 16px rgba(43, 58, 74, 0.06);
}

.topic-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.topic-item p {
  font-size: 14px;
  color: var(--color-muted);
}

.topic-more {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.topic-more a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
}

.topic-more a:hover {
  color: #E85A5A;
}

/* ==========================================================================
   Pages — 阅读指南 guide.html
   ========================================================================== */

.guide-section {
  margin-bottom: 48px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.step-card:hover {
  box-shadow: 0 6px 20px rgba(43, 58, 74, 0.08);
  transform: translateY(-4px);
}

.step-media {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
}

.step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-media figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: var(--color-white);
  font-size: 12px;
}

.step-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-dark);
  padding: 16px 20px 8px;
}

.step-text {
  font-size: 14px;
  color: var(--color-muted);
  padding: 0 20px 20px;
}

.step-text a {
  color: var(--color-primary);
  font-weight: 500;
}

/* ---- 工具列表（指南页） ---- */
.tool-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tool-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tool-item:hover {
  box-shadow: 0 4px 16px rgba(43, 58, 74, 0.06);
  transform: translateY(-2px);
}

.tool-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.tool-desc {
  font-size: 14px;
  color: var(--color-muted);
}

/* ---- 追更技巧（指南页） ---- */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tip-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: box-shadow 0.2s ease;
}

.tip-card:hover {
  box-shadow: 0 4px 16px rgba(43, 58, 74, 0.06);
}

.tip-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.tip-text {
  font-size: 14px;
  color: var(--color-muted);
}

/* ---- 指南页 FAQ ---- */
.faq {
  margin-bottom: 32px;
}

/* ---- 指南页底部相关 ---- */
.guide-related {
  margin-top: 32px;
}

/* ==========================================================================
   Pages — 最近更新 update.html
   ========================================================================== */

.updates-section {
  margin-bottom: 48px;
}

.week-group {
  margin-bottom: 32px;
}

.week-date {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.week-list .update-item {
  margin-bottom: 12px;
}

.update-guide-links {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.update-guide-links p {
  font-size: 14px;
  color: var(--color-text);
}

.update-guide-links a {
  color: var(--color-primary);
  font-weight: 500;
  margin: 0 4px;
}

.update-guide-links a:hover {
  color: #E85A5A;
}

/* ==========================================================================
   Pages — 人气榜单 rank.html
   ========================================================================== */

.editor-picks,
.popular-ranking {
  margin-bottom: 48px;
}

.picks-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pick-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pick-card:hover {
  box-shadow: 0 6px 20px rgba(43, 58, 74, 0.08);
  transform: translateY(-4px);
}

.pick-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.pick-info {
  padding: 20px;
}

.pick-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.pick-tags {
  font-size: 13px;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.pick-reason {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 12px;
}

/* ---- 人气排行（榜单页） ---- */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 12px 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  box-shadow: 0 4px 16px rgba(43, 58, 74, 0.08);
  transform: translateY(-2px);
}

.rank-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.ranking-item:nth-child(1) .rank-num {
  color: var(--color-primary);
}

.ranking-item:nth-child(2) .rank-num {
  color: #FF9F43;
}

.ranking-item:nth-child(3) .rank-num {
  color: var(--color-accent);
}

.rank-cover {
  width: 56px;
  height: 76px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  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;
}

/* ==========================================================================
   Pages — 热血漫画推荐 recommend.html
   ========================================================================== */

.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.content-main {
  min-width: 0;
}

.content-side {
  min-width: 0;
}

/* ---- 特征列表 ---- */
.features-section,
.directions-section,
.tips-section,
.related-section {
  margin-bottom: 48px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 16px;
  align-items: center;
  transition: box-shadow 0.2s ease;
}

.feature-item:hover {
  box-shadow: 0 4px 16px rgba(43, 58, 74, 0.06);
}

.feature-image {
  width: 200px;
  height: 120px;
  border-radius: 4px;
  object-fit: cover;
}

.feature-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.feature-text {
  font-size: 14px;
  color: var(--color-muted);
}

/* ---- 作品方向卡片 ---- */
.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.direction-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.direction-card:hover {
  box-shadow: 0 6px 20px rgba(43, 58, 74, 0.08);
  transform: translateY(-4px);
}

.direction-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.direction-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  padding: 16px 16px 6px;
}

.direction-text {
  font-size: 13px;
  color: var(--color-muted);
  padding: 0 16px 16px;
}

/* ---- 追更建议 ---- */
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tip-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  transition: box-shadow 0.2s ease;
}

.tip-item:hover {
  box-shadow: 0 4px 16px rgba(43, 58, 74, 0.06);
}

.tip-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.tip-text {
  font-size: 14px;
  color: var(--color-muted);
}

.tips-more {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.tips-more a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
}

.tips-more a:hover {
  color: #E85A5A;
}

/* ---- 相关推荐（推荐页） ---- */
.related-section .related-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.related-section .related-links li a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.related-section .related-links li a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ---- 侧栏 ---- */
.side-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 24px;
}

.side-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
}

.side-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-links li a {
  font-size: 14px;
  color: var(--color-text);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.side-links li a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

/* ==========================================================================
   Pages — 404 错误页
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.error-panel {
  text-align: center;
  max-width: 480px;
  padding: 48px 24px;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 32px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Responsive — 响应式断点（768px 及以下）
   ========================================================================== */

@media (max-width: 768px) {
  /* ---- 导航 ---- */
  .header-inner {
    height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .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(43, 58, 74, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px;
    gap: 4px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: var(--radius-tag);
  }

  .nav-list li a.is-current {
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--color-primary);
  }

  /* ---- 页脚 ---- */
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* ---- 首页 Hero ---- */
  .hero {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 24px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-visual img {
    height: 220px;
  }

  /* ---- 首页指南卡片 ---- */
  .guide-cards {
    grid-template-columns: 1fr;
  }

  /* ---- 首页专题卡 ---- */
  .recommend-card {
    grid-template-columns: 1fr;
  }

  .recommend-card img {
    height: 200px;
  }

  .recommend-content {
    padding: 24px;
  }

  /* ---- 分类页 ---- */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-list {
    grid-template-columns: 1fr;
  }

  /* ---- 指南页 ---- */
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .tool-list {
    grid-template-columns: 1fr;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  /* ---- 更新页 ---- */
  .update-item {
    flex-wrap: wrap;
  }

  .update-item img,
  .update-thumb {
    width: 56px;
    height: 76px;
  }

  .update-time {
    width: 100%;
    text-align: left;
  }

  /* ---- 榜单页 ---- */
  .picks-list {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    flex-wrap: wrap;
  }

  .rank-cover {
    width: 48px;
    height: 64px;
  }

  /* ---- 推荐页 ---- */
  .content-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .content-side {
    order: 2;
  }

  .feature-item {
    grid-template-columns: 1fr;
  }

  .feature-image {
    width: 100%;
    height: 160px;
  }

  .direction-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .direction-grid {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
  }

  .brand-slogan {
    display: none;
  }

  .page-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 20px;
  }
}
