/* ============================================================
   base
   ============================================================ */
:root {
  --paper: #ffffff;
  --ink: #333333;
  --ink-light: #666666;
  --ink-faint: #999999;
  --line: #e8e6e0;
  --line-light: #f0eee9;
  --link: #1e90ff;
  --link-hover: #0f6fc0;
  --love: #ff6b9d;
  --hot: #ff4c4c;
  --mystery: #7a6bbd;
  --daily: #4caf50;
  --fantasy: #e8943a;
  --sci: #3a9bd5;
  --update-green: #4caf50;
  --container: 1200px;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.1);
  --header-h: 64px;
  --font-base: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.4;
  color: var(--ink);
  font-weight: 700;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

figure {
  margin: 0;
}

/* ============================================================
   layout
   ============================================================ */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 12px;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: 28px;
}

.nav-list a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  color: var(--link);
  border-bottom-color: var(--link);
}

.nav-list a.is-current {
  color: var(--link);
  border-bottom-color: var(--link);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.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-main {
  flex: 1;
  width: 100%;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 64px;
  width: 100%;
}

.site-footer {
  background: #f7f6f3;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
}

.footer-brand .footer-slogan {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-brand .footer-desc {
  font-size: 14px;
  color: var(--ink-light);
  max-width: 340px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 14px;
  color: var(--ink-light);
}

.footer-col a:hover {
  color: var(--link);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 20px 24px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ============================================================
   components
   ============================================================ */
/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--ink-light);
}

.breadcrumb a:hover {
  color: var(--link);
}

.breadcrumb-sep {
  color: #ccc;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-description {
  font-size: 15px;
  color: var(--ink-light);
  max-width: 720px;
  line-height: 1.8;
}

/* 区块标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 24px;
}

.section-intro {
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 24px;
  max-width: 720px;
}

/* 侧栏通用 */
.sidebar {
  min-width: 0;
}

.sidebar h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

/* ============================================================
   首页
   ============================================================ */
.home-main {
  width: 100%;
}

/* 首屏 */
.hero-section {
  background: #faf9f6;
  border-bottom: 1px solid var(--line);
}

.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px;
}

.hero-content h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-slogan {
  font-size: 18px;
  font-weight: 600;
  color: var(--love);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--link);
  color: #fff;
}

.btn-primary:hover {
  background: var(--link-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid #ccc;
}

.btn-secondary:hover {
  border-color: var(--link);
  color: var(--link);
  transform: translateY(-2px);
}

.hero-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* 题材分类带 */
.categories-nav-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.category-tags {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cat-tag {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #fff;
}

.cat-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #fff;
}

.cat-love {
  background: var(--love);
}

.cat-hot {
  background: var(--hot);
}

.cat-mystery {
  background: var(--mystery);
}

.cat-daily {
  background: var(--daily);
}

.cat-fantasy {
  background: var(--fantasy);
}

.cat-sci {
  background: var(--sci);
}

/* 最近更新 */
.recent-updates-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px;
}

.update-group {
  margin-bottom: 28px;
}

.update-date {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}

.update-date::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--link);
  border-radius: 2px;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.update-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.update-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.update-item img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.update-info {
  min-width: 0;
}

.update-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.update-title:hover {
  color: var(--link);
}

.update-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--ink-light);
  background: var(--line-light);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 6px;
}

.update-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--update-green);
}

/* 人气榜单 */
.ranking-section {
  background: #faf9f6;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ranking-section .section-title,
.ranking-section .section-desc {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.ranking-section .section-title {
  padding-top: 48px;
}

.ranking-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ranking-item {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.rank-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--link);
  line-height: 1;
}

.ranking-item:nth-child(2) .rank-num {
  color: var(--hot);
}

.ranking-item:nth-child(3) .rank-num {
  color: var(--fantasy);
}

.ranking-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
}

.rank-info {
  min-width: 0;
}

.rank-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-title:hover {
  color: var(--link);
}

.rank-reason {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 阅读指南入口 */
.guide-entry-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.guide-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.guide-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
}

.card-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* 专题推荐 */
.featured-topics-section {
  background: #faf9f6;
  border-top: 1px solid var(--line);
}

.featured-topics-section .section-title,
.featured-topics-section .section-desc {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.featured-topics-section .section-title {
  padding-top: 48px;
}

.featured-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.topic-card {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.topic-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.topic-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.topic-card h3 {
  font-size: 18px;
  padding: 20px 20px 4px;
}

.topic-card p {
  font-size: 14px;
  color: var(--ink-light);
  padding: 0 20px;
  line-height: 1.7;
}

.topic-link {
  display: inline-block;
  margin: 12px 20px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
}

.topic-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* ============================================================
   内页通用
   ============================================================ */
.page-layout {
  display: grid;
  gap: 32px;
}

/* 分类页 */
.sidebar-left .page-layout {
  grid-template-columns: 260px 1fr;
}

.category-index-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-index-list a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  border-radius: 4px;
  border-left: 3px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.category-index-list a:hover {
  background: var(--line-light);
  border-left-color: var(--link);
}

.sidebar-tip {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.6;
  padding: 12px;
  background: var(--line-light);
  border-radius: 4px;
}

.category-detail {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.category-detail:last-of-type {
  border-bottom: none;
}

.category-detail h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.category-detail p {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

.category-figure {
  margin: 16px 0;
}

.category-figure img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
}

.category-figure figcaption {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 6px;
}

.category-tips {
  background: var(--line-light);
  border-radius: var(--radius);
  padding: 24px;
}

.category-tips h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.category-tips p {
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 8px;
}

/* 阅读指南页 */
.guide-layout {
  max-width: 860px;
}

.guide-section {
  margin-bottom: 40px;
}

.process-list {
  counter-reset: process;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.process-item {
  display: flex;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.process-step {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--link);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.process-content h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.process-content p {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.7;
}

.tips-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tips-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.tips-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.tips-item p {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.7;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: var(--paper);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--ink-faint);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.7;
}

.feedback-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-light);
}

.guide-figure {
  margin: 32px 0;
}

.guide-figure img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

.guide-figure figcaption {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 8px;
  text-align: center;
}

/* 恋爱漫画页 */
.page-layout:has(.content-area) {
  grid-template-columns: 1fr 300px;
}

.page-layout:has(.content-area) .content-area {
  min-width: 0;
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.comic-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.comic-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.comic-cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.comic-info {
  padding: 16px;
}

.comic-info h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.comic-genre {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.comic-reason {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.6;
}

.comic-desc {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.6;
  margin-bottom: 8px;
}

.comic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--line-light);
  color: var(--ink-light);
}

.tag-romance {
  background: #ffe8f0;
  color: #d4487a;
}

.tag-sweet {
  background: #fff0f5;
  color: #e06b8e;
}

.tag-drama {
  background: #f0ecff;
  color: #7a5bd0;
}

.tag-school {
  background: #e8f4ff;
  color: #3a7bd5;
}

.tag-life {
  background: #f0f7e8;
  color: #4a8f3a;
}

.tag-fantasy {
  background: #fff2e0;
  color: #c77a2a;
}

.tag-adult {
  background: #f5f5f5;
  color: #888;
}

.comic-audience {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.reason-item {
  background: var(--line-light);
  border-radius: var(--radius);
  padding: 20px;
}

.reason-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.reason-item p {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.7;
}

.related-links {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-links h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.related-links p {
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 12px;
}

.related-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-link-list a {
  font-size: 14px;
  color: var(--link);
}

.related-link-list a:hover {
  text-decoration: underline;
}

.sidebar-card {
  background: var(--line-light);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-card h2 {
  font-size: 16px;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-list li {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}

.tip-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--link);
  font-weight: 700;
}

.sidebar-card p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-faint);
}

.sidebar-card a {
  font-size: 14px;
  font-weight: 600;
}

/* 热血漫画页 */
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.reason-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.reason-list .reason-item {
  background: var(--paper);
  border: 1px solid var(--line);
}

.related-links ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.related-links ul a {
  font-size: 14px;
  color: var(--link);
  padding: 8px 12px;
  background: var(--line-light);
  border-radius: 4px;
  display: block;
}

.related-links ul a:hover {
  background: #f0ecff;
  text-decoration: none;
}

/* ============================================================
   404 页
   ============================================================ */
.site-error {
  min-height: 100vh;
}

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  flex: 1;
}

.error-section {
  text-align: center;
  max-width: 520px;
}

.error-code {
  font-size: 72px;
  font-weight: 800;
  color: var(--line);
  line-height: 1;
  margin-bottom: 8px;
}

.error-title {
  font-size: 28px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-home,
.btn-categories {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-home {
  background: var(--link);
  color: #fff;
}

.btn-home:hover {
  background: var(--link-hover);
  color: #fff;
  transform: translateY(-2px);
}

.btn-categories {
  background: transparent;
  border: 1px solid #ccc;
  color: var(--ink);
}

.btn-categories:hover {
  border-color: var(--link);
  color: var(--link);
  transform: translateY(-2px);
}

.error-tip {
  font-size: 13px;
  color: var(--ink-faint);
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1024px) {
  .update-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .comic-grid,
  .recommendation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 99;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 16px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line-light);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    padding: 14px 8px;
    font-size: 16px;
  }

  .inner-main {
    padding: 24px 16px 48px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 16px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-figure img {
    height: 220px;
  }

  .categories-nav-section {
    padding: 32px 16px 16px;
  }

  .category-tags {
    gap: 10px;
  }

  .cat-tag {
    padding: 8px 16px;
    font-size: 13px;
  }

  .recent-updates-section {
    padding: 24px 16px;
  }

  .update-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ranking-section .section-title,
  .ranking-section .section-desc {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ranking-list {
    grid-template-columns: 1fr;
    padding: 16px 16px 32px;
    gap: 12px;
  }

  .ranking-item {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .ranking-item img {
    width: 72px;
    height: 96px;
    flex-shrink: 0;
  }

  .rank-num {
    font-size: 22px;
  }

  .guide-entry-section {
    padding: 32px 16px;
  }

  .guide-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .featured-topics-section .section-title,
  .featured-topics-section .section-desc {
    padding-left: 16px;
    padding-right: 16px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    padding: 16px 16px 32px;
    gap: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 16px 24px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .sidebar-left .page-layout {
    grid-template-columns: 1fr;
  }

  .page-layout:has(.content-area) {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

  .content-area {
    order: 1;
  }

  .tips-list {
    grid-template-columns: 1fr;
  }

  .reason-grid,
  .reason-list {
    grid-template-columns: 1fr;
  }

  .comic-grid,
  .recommendation-grid {
    grid-template-columns: 1fr;
  }

  .comic-cover img {
    height: 200px;
  }

  .breadcrumb {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .process-item {
    padding: 16px;
  }

  .guide-section {
    margin-bottom: 32px;
  }

  .category-detail {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  .error-code {
    font-size: 56px;
  }

  .error-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .brand-tag {
    display: none;
  }

  .brand-name {
    font-size: 19px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    text-align: center;
    width: 100%;
  }

  .hero-slogan {
    font-size: 16px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .section-title {
    font-size: 20px;
  }

  .update-item img {
    width: 64px;
    height: 88px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-step {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .footer-bottom {
    font-size: 12px;
    padding: 16px;
  }
}
