/* ==========================================================
   牛马 AI 建站 · 哔哩哔哩漫画 全站样式
   站点：pifzujtj.cn
   说明：本文件为整站唯一 CSS，覆盖全部页面 DOM。
   ========================================================== */

/* ==========================================================
   1. Base
   ========================================================== */
:root {
  --color-primary: #2F4F4F;
  --color-bg: #F5F5F0;
  --color-accent: #C0392B;
  --color-text: #34495E;
  --color-tag: #E67E22;
  --color-white: #FFFFFF;
  --color-border: #E0DED6;
  --font-sans: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --container-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-card: 0 2px 8px rgba(47, 79, 79, 0.08);
  --shadow-card-hover: 0 6px 20px rgba(47, 79, 79, 0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
}

/* ==========================================================
   2. Layout
   ========================================================== */

/* 全站统一容器 */
.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  width: 100%;
}

.inner-main {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* 页头 */
.site-header {
  background-color: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(47, 79, 79, 0.18);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.5px;
}

.brand-link:hover .brand-name {
  color: #E8C4B8;
}

/* 导航 */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-list li a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.nav-list li a.is-current {
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
}

/* 汉堡按钮（默认隐藏） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  transition: background-color 0.2s ease;
}

.nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 8px;
  font-size: 14px;
  color: #7F8C8D;
}

.breadcrumb a {
  color: var(--color-primary);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb-sep {
  color: #BDC3C7;
  font-size: 12px;
}

.breadcrumb-current {
  color: #7F8C8D;
}

/* 页面标题区（内页统一） */
.page-header {
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 36px;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.25;
}

.page-description {
  margin-top: 12px;
  font-size: 16px;
  color: #5D6D7E;
  max-width: 720px;
  line-height: 1.7;
}

/* 通用区块标题 */
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background-color: var(--color-accent);
}

.section-intro {
  font-size: 15px;
  color: #5D6D7E;
  margin-bottom: 28px;
  max-width: 720px;
}

/* 页脚 */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 20px 24px;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
}

.footer-tagline {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-group ul li {
  margin-bottom: 10px;
}

.footer-group ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-group ul li a:hover {
  color: var(--color-white);
}

.copyright {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ==========================================================
   3. Components
   ========================================================== */

/* ---------- 首页 Hero ---------- */
.hero-module {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 56px 20px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 17px;
  color: #5D6D7E;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-cta {
  display: inline-block;
  padding: 12px 32px;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover {
  background-color: #A93226;
  color: var(--color-white);
  transform: translateY(-2px);
}

.hero-figure {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}

.hero-figure img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ---------- 首页题材分类标签 ---------- */
.category-nav-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-link {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 15px;
  color: var(--color-primary);
  transition: all 0.2s ease;
}

.tag-link:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ---------- 首页最近更新 ---------- */
.updates-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.update-item {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.update-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.update-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.update-info {
  padding: 16px;
}

.update-info .item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.update-status {
  display: inline-block;
  font-size: 13px;
  color: var(--color-accent);
  background-color: rgba(192, 57, 43, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- 首页人气榜单 ---------- */
.ranking-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease;
}

.ranking-item:hover {
  box-shadow: var(--shadow-card-hover);
}

.rank-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-accent);
  min-width: 36px;
  text-align: center;
}

.ranking-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-info .item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.rank-reason {
  font-size: 14px;
  color: #7F8C8D;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 首页阅读指南入口 ---------- */
.guide-entry-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  display: block;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--color-primary);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.guide-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.guide-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.guide-card-desc {
  font-size: 14px;
  color: #7F8C8D;
  line-height: 1.65;
}

/* ---------- 首页专题推荐卡 ---------- */
.feature-cards-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  display: block;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.feature-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.feature-text {
  padding: 20px 24px 24px;
}

.feature-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.feature-text p {
  font-size: 14px;
  color: #7F8C8D;
  line-height: 1.65;
}

/* ---------- 内页：分类卡片 ---------- */
.category-overview,
.category-notes,
.category-tips,
.related-topics {
  margin-bottom: 48px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.category-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.category-card-body {
  padding: 20px;
}

.category-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.category-card-desc {
  font-size: 14px;
  color: #7F8C8D;
  line-height: 1.65;
  margin-bottom: 14px;
}

.category-card-body a {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.category-card-body a:hover {
  text-decoration: underline;
}

/* ---------- 内页：分类说明 ---------- */
.notes-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.notes-block {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.notes-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.notes-block p {
  font-size: 14px;
  color: #7F8C8D;
  line-height: 1.65;
}

/* ---------- 内页：分类技巧 ---------- */
.tips-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tips-item {
  display: flex;
  gap: 16px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.tips-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-tag);
  line-height: 1;
  flex-shrink: 0;
}

.tips-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.tips-text {
  font-size: 14px;
  color: #7F8C8D;
  line-height: 1.6;
}

/* ---------- 内页：相关专题 ---------- */
.topics-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.topic-card {
  display: block;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.topic-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.topic-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.topic-card-desc {
  font-size: 14px;
  color: #7F8C8D;
  line-height: 1.65;
  margin-bottom: 12px;
}

.topic-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

/* ---------- 内页：指南侧栏布局 ---------- */
.layout-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.guide-sidebar {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 84px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-list li {
  margin-bottom: 4px;
}

.sidebar-list li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-list li a:hover {
  background-color: rgba(47, 79, 79, 0.06);
  color: var(--color-accent);
}

.sidebar-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: #7F8C8D;
  line-height: 1.6;
}

.sidebar-note a {
  color: var(--color-accent);
  font-weight: 600;
}

/* ---------- 内页：指南正文 ---------- */
.guide-content {
  min-width: 0;
}

.guide-section {
  margin-bottom: 48px;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.guide-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.guide-section > p {
  font-size: 15px;
  color: #5D6D7E;
  line-height: 1.7;
  margin-bottom: 24px;
}

.guide-step {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.guide-step:last-child {
  border-bottom: none;
}

.guide-step h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.guide-step p {
  font-size: 14px;
  color: #7F8C8D;
  line-height: 1.65;
}

.guide-figure {
  margin: 20px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.guide-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 16px;
  background-color: var(--color-bg);
  font-size: 13px;
  color: #7F8C8D;
  text-align: center;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--color-accent);
}

.faq-item p {
  padding: 0 0 16px;
  font-size: 14px;
  color: #7F8C8D;
  line-height: 1.65;
}

/* 指南相关 */
.guide-related {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.guide-related h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.guide-related p {
  font-size: 14px;
  color: #5D6D7E;
  line-height: 1.65;
}

.guide-related a {
  color: var(--color-accent);
  font-weight: 600;
  margin-right: 16px;
}

.guide-related a:hover {
  text-decoration: underline;
}

/* ---------- 内页：推荐列表（love / hotblood 共用） ---------- */
.recommendation-list {
  margin-bottom: 48px;
}

.recommend-card,
.recommendation-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.recommend-card:hover,
.recommendation-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.card-media {
  position: relative;
  overflow: hidden;
}

.card-media img,
.card-image {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 24px 24px 24px 0;
  min-width: 0;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.card-tags .tag,
.card-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--color-tag);
  background-color: rgba(230, 126, 34, 0.1);
  border-radius: 999px;
}

.card-reason {
  font-size: 14px;
  color: #7F8C8D;
  line-height: 1.7;
}

.card-reason strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* ---------- 内页：推荐指南（love） ---------- */
.recommend-guide {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.recommend-guide > p {
  font-size: 15px;
  color: #5D6D7E;
  line-height: 1.7;
  margin-bottom: 20px;
}

.guide-list {
  margin-bottom: 20px;
}

.guide-list li {
  padding: 8px 0;
  font-size: 14px;
  color: #7F8C8D;
  line-height: 1.65;
}

.guide-list li strong {
  color: var(--color-primary);
}

.recommend-guide > p a {
  color: var(--color-accent);
  font-weight: 600;
  margin-right: 16px;
}

.recommend-guide > p a:hover {
  text-decoration: underline;
}

/* ---------- 内页：热血推荐理由 ---------- */
.reason-section {
  margin-bottom: 48px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.reason-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

.reason-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.reason-text {
  font-size: 14px;
  color: #7F8C8D;
  line-height: 1.7;
}

.reason-text strong {
  color: var(--color-text);
  font-weight: 600;
}

.reason-note {
  margin-top: 24px;
  font-size: 14px;
  color: #5D6D7E;
  line-height: 1.7;
}

.reason-note a {
  color: var(--color-accent);
  font-weight: 600;
  margin-right: 16px;
}

.reason-note a:hover {
  text-decoration: underline;
}

/* ---------- 404 页面 ---------- */
.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.error-section {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-size: 96px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.error-desc {
  font-size: 16px;
  color: #7F8C8D;
  line-height: 1.7;
  margin-bottom: 32px;
}

.error-btn {
  display: inline-block;
  padding: 12px 32px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.error-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* ==========================================================
   4. 页面级微调（仅内部业务模块，不覆盖全局） 
   ========================================================== */

/* 首页 */
.site-home .hero-module {
  background: linear-gradient(180deg, rgba(245, 245, 240, 0) 0%, rgba(245, 245, 240, 1) 100%);
}

/* 指南页：侧栏在左 */
.site-guide .layout-shell {
  grid-template-columns: 260px 1fr;
}

/* 推荐页：内容包裹 */
.content-wrapper {
  max-width: 100%;
}

/* ==========================================================
   5. Responsive
   ========================================================== */

/* 平板及以下 */
@media (max-width: 992px) {
  .hero-module {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .hero-figure img {
    height: 320px;
  }

  .update-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid,
  .notes-content,
  .tips-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .guide-sidebar {
    position: static;
  }

  .recommend-card,
  .recommendation-card {
    grid-template-columns: 180px 1fr;
  }
}

/* 手机端 */
@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  .inner-main {
    padding: 0 16px 48px;
  }

  .breadcrumb {
    padding: 12px 0 8px;
    font-size: 13px;
  }

  .page-header {
    padding: 20px 0 24px;
    margin-bottom: 28px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-description {
    font-size: 15px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 18px;
  }

  /* 首页 */
  .hero-module {
    padding: 36px 16px 32px;
    gap: 24px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .hero-cta {
    padding: 10px 24px;
    font-size: 15px;
  }

  .hero-figure img {
    height: 220px;
  }

  .category-nav-section,
  .updates-section,
  .ranking-section,
  .guide-entry-section,
  .feature-cards-section {
    padding: 28px 16px;
  }

  .category-tags {
    gap: 8px;
  }

  .tag-link {
    padding: 8px 16px;
    font-size: 14px;
  }

  .update-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .update-item img {
    height: 180px;
  }

  .ranking-item {
    padding: 10px 12px;
    gap: 12px;
  }

  .rank-number {
    font-size: 18px;
    min-width: 28px;
  }

  .ranking-item img {
    width: 52px;
    height: 52px;
  }

  .rank-reason {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .guide-cards,
  .feature-cards,
  .topics-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card img {
    height: 180px;
  }

  /* 分类页 */
  .category-grid,
  .notes-content,
  .tips-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-card img {
    height: 160px;
  }

  /* 指南页 */
  .layout-shell {
    gap: 24px;
  }

  .guide-sidebar {
    padding: 20px;
  }

  .guide-section {
    padding: 20px;
    margin-bottom: 24px;
  }

  .guide-section h2 {
    font-size: 20px;
  }

  .guide-figure img {
    height: 160px;
  }

  /* 推荐页 */
  .recommend-card,
  .recommendation-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .card-media img,
  .card-image {
    height: 180px;
    min-height: 0;
  }

  .card-body {
    padding: 20px 16px;
  }

  .card-title {
    font-size: 18px;
  }

  .reason-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .recommend-guide {
    padding: 20px;
  }

  /* 页脚 */
  .footer-inner {
    padding: 36px 16px 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0;
  }

  /* 404 */
  .error-code {
    font-size: 72px;
  }

  .error-title {
    font-size: 24px;
  }
}

/* 小屏手机（390px 及以下） */
@media (max-width: 390px) {
  .brand-name {
    font-size: 18px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .page-title {
    font-size: 24px;
  }

  .update-item img {
    height: 160px;
  }

  .ranking-item {
    flex-wrap: wrap;
  }

  .rank-info {
    flex: 1 1 100%;
  }

  .rank-reason {
    white-space: normal;
  }
}

/* 滚动出现动画（仅作为增强，不影响初始可见性） */
@media (prefers-reduced-motion: no-preference) {
  .site-home .category-nav-section,
  .site-home .updates-section,
  .site-home .ranking-section,
  .site-home .guide-entry-section,
  .site-home .feature-cards-section {
    animation: fadeInUp 0.5s ease both;
  }

  .site-home .category-nav-section {
    animation-delay: 0.05s;
  }

  .site-home .updates-section {
    animation-delay: 0.1s;
  }

  .site-home .ranking-section {
    animation-delay: 0.15s;
  }

  .site-home .guide-entry-section {
    animation-delay: 0.2s;
  }

  .site-home .feature-cards-section {
    animation-delay: 0.25s;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
