/* ============================================================
   base — 变量、重置、全局基础
   ============================================================ */
:root {
  --c-primary: #FF6B6B;
  --c-secondary: #4ECDC4;
  --c-bg: #F7F7F7;
  --c-text: #333333;
  --c-white: #FFFFFF;
  --c-border: #E5E5E5;
  --c-muted: #777777;
  --radius-sm: 4px;
  --radius-md: 8px;
  --container-width: 1200px;
  --header-height: 64px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
  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(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #E85A5A;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-text);
}

/* ============================================================
   layout — 全站骨架容器、页头、页脚、内页三栏布局
   ============================================================ */
.site-header {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-primary);
  white-space: nowrap;
}

.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: var(--c-text);
  border-radius: var(--radius-sm);
}

.site-nav .nav-list a:hover {
  color: var(--c-primary);
  background: rgba(255, 107, 107, 0.06);
}

.site-nav .nav-list a.is-current {
  color: var(--c-primary);
  font-weight: 600;
  background: rgba(255, 107, 107, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 8px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle-icon::after {
  top: 7px;
}

.site-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-footer {
  background: #2B2B2B;
  color: #B8B8B8;
  margin-top: 60px;
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
}

.footer-brand .footer-name {
  font-size: 18px;
  color: var(--c-white);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: #9A9A9A;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h3 {
  font-size: 15px;
  color: var(--c-white);
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-col li {
  margin-bottom: 6px;
}

.footer-col a {
  color: #B8B8B8;
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--c-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  text-align: center;
  font-size: 13px;
  color: #888888;
}

/* —— 内页三栏骨架：左侧目录 + 主内容 + 右侧小目录 —— */
.layout-shell,
.page-layout {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 200px;
  gap: 32px;
  align-items: start;
}

.layout-shell.sidebar-left,
.page-layout.sidebar-left {
  grid-template-columns: 200px minmax(0, 1fr);
}

/* categories 页：左侧目录 + 主内容 + 右侧小目录 */
.page-layout.sidebar-left.aside-left {
  grid-template-columns: 200px minmax(0, 1fr) 200px;
}

/* —— 侧栏通用 —— */
.aside-inner,
.sidebar-inner,
.toc-inner,
.side-inner,
.side-nav-inner,
.side-toc-inner {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.aside-title,
.sidebar-title,
.toc-title,
.side-title,
.side-nav-title,
.side-toc-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-secondary);
  color: var(--c-text);
}

.aside-nav-list li,
.sidebar-list li,
.toc-list li,
.side-list li,
.side-nav-list li,
.side-toc-list li {
  margin-bottom: 4px;
}

.aside-nav-list a,
.sidebar-list a,
.toc-list a,
.side-list a,
.side-nav-list a,
.side-toc-list a {
  display: block;
  padding: 7px 10px;
  font-size: 14px;
  color: var(--c-text);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
}

.aside-nav-list a:hover,
.sidebar-list a:hover,
.toc-list a:hover,
.side-list a:hover,
.side-nav-list a:hover,
.side-toc-list a:hover {
  color: var(--c-primary);
  background: rgba(255, 107, 107, 0.04);
  border-left-color: var(--c-primary);
}

.sidebar-text {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.8;
}

/* —— 主内容区 —— */
.inner-main {
  min-width: 0;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 28px 32px 36px;
}

/* —— 面包屑 —— */
.breadcrumb {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--c-muted);
}

.breadcrumb a:hover {
  color: var(--c-primary);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: #BBBBBB;
}

.breadcrumb-current {
  color: var(--c-text);
}

/* —— 页面标题区 —— */
.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-description {
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.8;
}

/* ============================================================
   components — 通用组件
   ============================================================ */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--c-primary);
  border-radius: 2px;
}

.section-intro {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.content-section {
  margin-bottom: 40px;
}

.content-section .section-title {
  margin-bottom: 12px;
}

/* —— 步骤列表 —— */
.steps-list {
  counter-reset: step;
}

.step-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border);
}

.step-item:last-child {
  border-bottom: none;
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-secondary);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.8;
}

/* —— 提示列表 —— */
.tips-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tip-item {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.tip-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--c-text);
}

.tip-item p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.8;
}

/* —— FAQ 手风琴 —— */
.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: var(--c-white);
}

.faq-question {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--c-text);
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--c-primary);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.8;
}

/* —— 内页相关链接 —— */
.related-links {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}

.related-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.related-links p {
  font-size: 14px;
  line-height: 2;
}

.related-links a {
  margin-right: 16px;
  display: inline-block;
}

/* —— 图片容器 —— */
.content-media {
  margin-bottom: 20px;
}

.content-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.content-media-inline {
  max-width: 100%;
}

.content-media-inline figcaption {
  font-size: 13px;
  color: var(--c-muted);
  text-align: center;
  margin-top: 8px;
}

/* ============================================================
   pages — 首页
   ============================================================ */
.home-main {
  padding-bottom: 20px;
}

/* —— Hero 区：左文右图 —— */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 40px;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--c-text);
}

.hero-tagline {
  font-size: 16px;
  color: var(--c-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-link {
  display: inline-block;
  padding: 12px 28px;
  background: var(--c-primary);
  color: var(--c-white);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}

.cta-link:hover {
  background: #E85A5A;
  color: var(--c-white);
}

.cta-link.cta-secondary {
  background: var(--c-white);
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}

.cta-link.cta-secondary:hover {
  background: rgba(255, 107, 107, 0.06);
}

.hero-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* —— 题材分类导航带 —— */
.category-strip {
  padding: 40px 0;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-tags a {
  display: inline-block;
  padding: 10px 20px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--c-text);
  transition: all 0.2s ease;
}

.category-tags a:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: rgba(255, 107, 107, 0.04);
}

/* —— 最近更新 —— */
.updates-section {
  padding: 40px 0;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.update-item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.update-item:hover {
  box-shadow: var(--shadow-md);
}

.update-cover {
  overflow: hidden;
}

.update-cover img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.update-info {
  padding: 14px 16px;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.5;
}

.update-status {
  display: inline-block;
  font-size: 12px;
  color: var(--c-primary);
  background: rgba(255, 107, 107, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
}

/* —— 人气榜单 —— */
.rankings-section {
  padding: 40px 0;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ranking-item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.ranking-item:hover {
  box-shadow: var(--shadow-md);
}

.ranking-cover {
  overflow: hidden;
}

.ranking-cover img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.ranking-detail {
  padding: 12px 14px;
}

.ranking-detail h3 {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.ranking-detail h3 a {
  color: var(--c-text);
}

.ranking-detail h3 a:hover {
  color: var(--c-primary);
}

.ranking-detail p {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
}

/* —— 阅读指南入口 —— */
.guide-entry {
  padding: 40px 0;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow 0.2s ease;
}

.guide-card:hover {
  box-shadow: var(--shadow-md);
}

.guide-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.guide-card h3 a {
  color: var(--c-text);
}

.guide-card h3 a:hover {
  color: var(--c-primary);
}

.guide-card p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.8;
}

/* ============================================================
   pages — categories 分类页
   ============================================================ */
.category-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.category-card:hover {
  box-shadow: var(--shadow-md);
}

.category-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.category-card h3 {
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px 4px;
}

.category-card p {
  font-size: 13px;
  color: var(--c-muted);
  padding: 0 14px 14px;
  line-height: 1.6;
}

/* —— 分类说明 —— */
.desc-list {
  display: grid;
  gap: 12px;
}

.desc-item {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.desc-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.desc-item p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.8;
}

/* —— 内页底部链接 —— */
.inner-links {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
  font-size: 14px;
  line-height: 2;
}

.inner-links a {
  margin-right: 16px;
  display: inline-block;
}

/* ============================================================
   pages — guide 阅读指南页
   ============================================================ */
.guide-page .content-section {
  margin-bottom: 40px;
}

.guide-figure {
  margin-top: 40px;
}

.guide-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* ============================================================
   pages — romance / action 推荐页
   ============================================================ */
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.recommend-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.recommend-card:hover {
  box-shadow: var(--shadow-md);
}

.card-cover,
.card-figure {
  overflow: hidden;
}

.card-cover img,
.card-figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.5;
}

.card-tags {
  font-size: 13px;
  color: var(--c-primary);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.8;
}

/* —— 推荐理由 —— */
.reason-list {
  display: grid;
  gap: 16px;
}

.reason-item {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.reason-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.reason-text {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.8;
}

/* —— 适合人群标签 —— */
.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.audience-tags .tag-item {
  background: var(--c-white);
  border: 1px solid var(--c-secondary);
  color: var(--c-secondary);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-group .tag-item {
  background: var(--c-white);
  border: 1px solid var(--c-secondary);
  color: var(--c-secondary);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
}

/* —— 更多推荐链接 —— */
.more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.more-links a {
  display: inline-block;
  padding: 8px 18px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--c-text);
}

.more-links a:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

/* —— action 页段落内链接 —— */
.section-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 2;
}

.section-note a {
  margin-right: 12px;
  display: inline-block;
}

.section-outro {
  margin-top: 16px;
  font-size: 14px;
}

/* ============================================================
   pages — 404 页
   ============================================================ */
.error-main {
  max-width: 720px;
  padding: 80px 20px;
}

.error-panel {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  text-align: center;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--c-muted);
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
}

.btn-primary:hover {
  background: #E85A5A;
  color: var(--c-white);
}

.btn-secondary {
  background: var(--c-white);
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}

.btn-secondary:hover {
  background: rgba(255, 107, 107, 0.06);
}

.error-help {
  font-size: 13px;
  color: var(--c-muted);
}

/* ============================================================
   responsive — 响应式断点
   ============================================================ */
@media (max-width: 1024px) {
  .layout-shell,
  .page-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
  }

  .page-layout.sidebar-left.aside-left {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  /* categories 页右侧小目录在平板隐藏 */
  .page-layout.sidebar-left.aside-left .aside-right {
    display: none;
  }

  .update-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .recommend-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: static;
  }

  .site-nav .nav-list {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    z-index: 99;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list a {
    padding: 12px 14px;
    font-size: 16px;
  }

  /* —— 内页三栏改单栏：主内容优先 —— */
  .layout-shell,
  .page-layout,
  .layout-shell.sidebar-left,
  .page-layout.sidebar-left,
  .page-layout.sidebar-left.aside-left {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px 16px 40px;
  }

  .layout-shell > aside,
  .page-layout > aside {
    order: 2;
  }

  .layout-shell > main,
  .page-layout > main {
    order: 1;
  }

  .inner-main {
    padding: 20px 18px 28px;
  }

  .page-title {
    font-size: 26px;
  }

  .site-main {
    padding: 0 16px;
  }

  /* —— 首页 —— */
  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0 24px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-figure img {
    height: 220px;
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .ranking-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .guide-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .recommend-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tips-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* —— 页脚 —— */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 16px 24px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-bottom {
    padding: 14px 16px;
  }
}

@media (max-width: 480px) {
  .ranking-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ranking-cover img {
    height: 130px;
  }

  .category-grid-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .category-thumb {
    height: 100px;
  }

  .hero-figure img {
    height: 190px;
  }

  .update-cover img {
    height: 160px;
  }

  .card-cover img,
  .card-figure img {
    height: 160px;
  }

  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
