/* ==========================================================================
   base — 全站基础
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  background-color: #f5f5f5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e74c3c;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.3;
  color: #333333;
}

p {
  margin: 0 0 1em;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ==========================================================================
   layout — 全站骨架
   ========================================================================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #e74c3c;
  letter-spacing: 0.5px;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav .nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: #333333;
  border-radius: 4px;
  line-height: 1.4;
}

.site-nav .nav-list a:hover {
  color: #e74c3c;
  background-color: #f5f5f5;
}

.site-nav .nav-list a.is-current {
  color: #e74c3c;
  font-weight: 600;
  background-color: rgba(231, 76, 60, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #333333;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-main {
  flex: 1;
  width: 100%;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: #888888;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
}

.breadcrumb a {
  color: #3498db;
}

.breadcrumb a:hover {
  color: #e74c3c;
}

.breadcrumb-sep {
  color: #cccccc;
  margin: 0 2px;
}

.breadcrumb-current {
  color: #666666;
}

.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 8px;
  line-height: 1.3;
}

.page-description {
  font-size: 16px;
  color: #666666;
  max-width: 720px;
  margin-bottom: 0;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 16px;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: #e74c3c;
  border-radius: 2px;
}

.section-intro {
  font-size: 15px;
  color: #666666;
  margin-bottom: 20px;
  max-width: 760px;
}

/* ==========================================================================
   components — 全站通用组件
   ========================================================================== */

/* ---------- 页脚 ---------- */

.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e5e5e5;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 24px;
}

.footer-brand {
  margin-bottom: 28px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: #e74c3c;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  color: #888888;
  max-width: 420px;
  margin-bottom: 0;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid #f0f0f0;
}

.footer-col-title {
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 12px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
}

.footer-col ul a:hover {
  color: #e74c3c;
}

.footer-copyright {
  font-size: 13px;
  color: #999999;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  margin-bottom: 0;
}

/* ---------- 图片容器 ---------- */

.hero-figure,
.compact-cover,
.update-cover,
.ranking-cover,
.topic-cover,
.category-card-media,
.representative-media,
.comic-cover,
.comic-media,
.step-media {
  background-color: #f0f0f0;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
}

.hero-figure img,
.compact-cover,
.update-cover,
.ranking-cover,
.topic-cover,
.category-card-media img,
.representative-media img,
.comic-cover img,
.comic-media img,
.step-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

.home-main {
  width: 100%;
}

/* ---------- 首屏全宽列表 ---------- */

.hero-list {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

.hero-list .hero-feature {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-figure {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  padding: 8px 0;
}

.hero-content h1 {
  font-size: 32px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero-lead {
  font-size: 16px;
  color: #666666;
  margin-bottom: 20px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-block;
  background-color: #e74c3c;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.hero-cta:hover {
  background-color: #c0392b;
  color: #ffffff;
}

.hero-compact-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 32px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.compact-item {
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.compact-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.compact-cover {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0;
}

.compact-info {
  padding: 12px;
}

.compact-title {
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-status {
  font-size: 13px;
  color: #e74c3c;
  margin-bottom: 0;
}

/* ---------- 题材分类导航 ---------- */

.category-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 8px;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-item {
  display: inline-block;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  transition: all 0.2s ease;
}

.tag-item:hover {
  background-color: #e74c3c;
  border-color: #e74c3c;
  color: #ffffff;
}

/* ---------- 最近更新 ---------- */

.recent-updates {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 8px;
}

.update-group {
  margin-bottom: 20px;
}

.update-date {
  font-size: 15px;
  font-weight: 600;
  color: #666666;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.update-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 12px;
  transition: box-shadow 0.2s ease;
}

.update-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.update-cover {
  width: 64px;
  height: 80px;
  border-radius: 6px;
}

.update-info {
  min-width: 0;
}

.update-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-title:hover {
  color: #e74c3c;
}

.update-time {
  font-size: 13px;
  color: #999999;
}

/* ---------- 人气榜单 ---------- */

.ranking {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 8px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ranking-item {
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow 0.2s ease;
}

.ranking-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ranking-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  margin-bottom: 12px;
}

.ranking-info {
  text-align: center;
}

.ranking-title {
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
  line-height: 1.4;
}

.ranking-reason {
  font-size: 13px;
  color: #888888;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ---------- 阅读指南入口 ---------- */

.guide-entry {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 8px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-card {
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 24px 20px;
  position: relative;
  transition: box-shadow 0.2s ease;
}

.guide-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.guide-card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #e74c3c;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 12px;
}

.guide-card .step-title {
  font-size: 17px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

.guide-card .step-text {
  font-size: 14px;
  color: #666666;
  margin-bottom: 0;
  line-height: 1.6;
}

.guide-more {
  display: inline-block;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 500;
  color: #3498db;
}

.guide-more:hover {
  color: #e74c3c;
}

/* ---------- 长尾推荐预告 ---------- */

.longtail-preview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.topic-card {
  display: flex;
  gap: 16px;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 16px;
  align-items: stretch;
  transition: box-shadow 0.2s ease;
}

.topic-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.topic-cover {
  width: 120px;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
}

.topic-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.topic-title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

.topic-desc {
  font-size: 14px;
  color: #666666;
  margin-bottom: 12px;
  line-height: 1.6;
}

.topic-link {
  font-size: 14px;
  font-weight: 500;
  color: #3498db;
  margin-top: auto;
}

.topic-link:hover {
  color: #e74c3c;
}

/* ==========================================================================
   pages — 分类页
   ========================================================================== */

.category-grid-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.category-card {
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.category-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-body {
  padding: 16px;
}

.category-card-name {
  font-size: 17px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

.category-card-desc {
  font-size: 14px;
  color: #666666;
  margin-bottom: 12px;
  line-height: 1.6;
}

.category-card-body a {
  font-size: 14px;
  font-weight: 500;
  color: #3498db;
}

.category-card-body a:hover {
  color: #e74c3c;
}

/* ---------- 代表作品 ---------- */

.representative-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.representative-item {
  display: flex;
  gap: 16px;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 16px;
  align-items: center;
}

.representative-media {
  width: 100px;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  flex-shrink: 0;
}

.representative-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.representative-body {
  flex: 1;
  min-width: 0;
}

.representative-name {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
}

.representative-desc {
  font-size: 14px;
  color: #666666;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ---------- 分类提示 ---------- */

.category-tips {
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 24px;
}

.tips-lead {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

.tips-body {
  font-size: 14px;
  color: #666666;
  margin-bottom: 0;
  line-height: 1.7;
}

.tips-body a {
  color: #3498db;
  font-weight: 500;
}

.tips-body a:hover {
  color: #e74c3c;
}

/* ==========================================================================
   pages — 阅读指南页
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.step-card {
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 20px;
  position: relative;
}

.step-card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #e74c3c;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 12px;
}

.step-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  margin-bottom: 16px;
}

.step-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-title {
  font-size: 17px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: #666666;
  margin-bottom: 0;
  line-height: 1.7;
}

.step-desc a {
  color: #3498db;
  font-weight: 500;
}

.step-desc a:hover {
  color: #e74c3c;
}

/* ---------- 追更技巧 ---------- */

.tips-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.tip-item {
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 20px;
}

.tip-title {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

.tip-desc {
  font-size: 14px;
  color: #666666;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ---------- 相关阅读 ---------- */

.related-links {
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 40px;
}

.related-title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 16px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}

.related-list li {
  margin-bottom: 4px;
}

.related-list a {
  font-size: 14px;
  color: #3498db;
  line-height: 1.5;
}

.related-list a:hover {
  color: #e74c3c;
}

/* ==========================================================================
   pages — 热血漫画推荐页
   ========================================================================== */

.article-list {
  margin-bottom: 40px;
}

.article-list > h2 {
  font-size: 22px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 8px;
}

.article-list > p {
  font-size: 15px;
  color: #666666;
  margin-bottom: 24px;
  max-width: 760px;
}

.comic-entry {
  display: flex;
  gap: 20px;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.comic-cover-wrap {
  flex-shrink: 0;
}

.comic-cover {
  width: 140px;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
}

.comic-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comic-info {
  flex: 1;
  min-width: 0;
}

.comic-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

.comic-info p {
  font-size: 14px;
  color: #666666;
  margin-bottom: 8px;
  line-height: 1.7;
}

.comic-info p:last-child {
  margin-bottom: 0;
}

/* ---------- 推荐理由 ---------- */

.recommend-reasons {
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 40px;
}

.recommend-reasons h2 {
  font-size: 20px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 16px;
}

.reason-list li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: #666666;
  padding: 8px 0;
  line-height: 1.6;
  border-bottom: 1px solid #f5f5f5;
}

.reason-list li:last-child {
  border-bottom: 0;
}

.reason-list strong {
  color: #e74c3c;
  font-weight: 600;
  flex-shrink: 0;
}

/* ==========================================================================
   pages — 恋爱漫画推荐页
   ========================================================================== */

.comic-media {
  width: 140px;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  flex-shrink: 0;
}

.comic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.comic-tags .tag {
  display: inline-block;
  background-color: rgba(52, 152, 219, 0.1);
  color: #3498db;
  font-size: 13px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  line-height: 1.4;
}

.comic-reason {
  font-size: 14px;
  color: #666666;
  margin-bottom: 0;
  line-height: 1.7;
}

.comic-reason strong {
  color: #e74c3c;
  font-weight: 600;
}

/* ---------- 选读指南 ---------- */

.selection-guide {
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 24px;
  margin-top: 40px;
}

.selection-guide h2 {
  font-size: 20px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 16px;
}

.selection-guide p {
  font-size: 14px;
  color: #666666;
  margin-bottom: 12px;
  line-height: 1.7;
}

.selection-guide p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   pages — 404 页
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  min-height: 60vh;
}

.error-section {
  text-align: center;
  max-width: 480px;
}

.error-title {
  font-size: 32px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 12px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: #e74c3c;
  margin-bottom: 8px;
  line-height: 1;
}

.error-desc {
  font-size: 16px;
  color: #666666;
  margin-bottom: 24px;
}

.error-btn {
  display: inline-block;
  background-color: #e74c3c;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.error-btn:hover {
  background-color: #c0392b;
  color: #ffffff;
}

.error-help {
  font-size: 14px;
  color: #999999;
  margin-top: 16px;
  margin-bottom: 0;
}

/* ==========================================================================
   responsive — 响应式
   ========================================================================== */

@media (max-width: 992px) {
  .hero-list .hero-feature {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-compact-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .update-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 56px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 19px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px;
    gap: 0;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list a {
    padding: 12px 8px;
    border-bottom: 1px solid #f5f5f5;
    border-radius: 0;
    font-size: 15px;
  }

  .site-nav .nav-list li:last-child a {
    border-bottom: 0;
  }

  .inner-main {
    padding: 20px 16px 40px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 19px;
  }

  .hero-list .hero-feature {
    padding: 24px 16px 12px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-compact-list {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 16px 24px;
    gap: 12px;
  }

  .category-nav,
  .recent-updates,
  .ranking,
  .guide-entry,
  .longtail-preview {
    padding-left: 16px;
    padding-right: 16px;
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .ranking-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }

  .topic-cards {
    grid-template-columns: 1fr;
  }

  .topic-card {
    flex-direction: column;
  }

  .topic-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .footer-inner {
    padding: 32px 16px 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0;
  }

  .category-grid-list {
    grid-template-columns: 1fr;
  }

  .representative-list {
    grid-template-columns: 1fr;
  }

  .representative-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .representative-media {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .tips-list {
    grid-template-columns: 1fr;
  }

  .related-list {
    grid-template-columns: 1fr;
  }

  .comic-entry {
    flex-direction: column;
    gap: 16px;
  }

  .comic-cover-wrap {
    width: 100%;
  }

  .comic-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .comic-media {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .error-main {
    padding: 60px 16px;
  }

  .error-title {
    font-size: 26px;
  }

  .error-code {
    font-size: 56px;
  }
}

@media (max-width: 480px) {
  .hero-compact-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .compact-cover {
    aspect-ratio: 4 / 5;
  }

  .compact-info {
    padding: 8px;
  }

  .compact-title {
    font-size: 14px;
  }

  .tag-item {
    padding: 6px 14px;
    font-size: 13px;
  }

  .ranking-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ranking-item {
    padding: 12px;
  }

  .guide-card {
    padding: 20px 16px;
  }

  .topic-card {
    padding: 12px;
  }

  .category-card-body {
    padding: 12px;
  }

  .step-card {
    padding: 16px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   reduced motion — 减少动画
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
