/* ==========================================================================
   base — 全局基础样式
   ========================================================================== */

:root {
  --color-dark: #1a1a2e;
  --color-navy: #16213e;
  --color-blue: #0f3460;
  --color-accent: #e94560;
  --color-bg: #f5f5f5;
  --color-white: #ffffff;
  --color-text: #2d2d2d;
  --color-text-light: #6b6b6b;
  --color-border: #e0e0e0;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --container-width: 1200px;
  --header-height: 64px;
  --header-height-scrolled: 52px;
  --radius: 8px;
  --radius-sm: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-blue);
  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-dark);
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* ==========================================================================
   layout — 全站布局骨架
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.site-header.is-scrolled .header-inner {
  height: var(--header-height-scrolled);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 0.2s ease;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-list a.is-current {
  color: var(--color-white);
  background-color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-main {
  flex: 1;
  width: 100%;
}

.site-main.home-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-main.inner-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-main.error-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.site-footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col ul a:hover {
  color: var(--color-white);
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ==========================================================================
   components — 通用组件
   ========================================================================== */

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 8px;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--color-blue);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb-sep {
  color: var(--color-text-light);
}

.breadcrumb-current {
  color: var(--color-text-light);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  padding: 16px 0 32px;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.page-description {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 720px;
  margin: 0;
}

/* 通用区块标题 */
.section-desc {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

/* 按钮 */
.btn-guide,
.btn-categories {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-guide {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-guide:hover {
  background-color: #d63851;
  color: var(--color-white);
}

.btn-categories {
  background-color: transparent;
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
}

.btn-categories:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

/* ==========================================================================
   components — 首页模块
   ========================================================================== */

/* 首屏 */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 56px;
}

.hero-copy h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-dark);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.hero-figure img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* 题材分类预览 */
.categories-preview {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.categories-preview h2,
.updates-section h2,
.ranking-section h2,
.guide-entry h2,
.longtail-preview h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tag-list li {
  margin: 0;
}

.tag-list a {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-dark);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tag-list a:hover {
  background-color: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
}

/* 最近更新 */
.updates-section {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.updates-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.update-item {
  background-color: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.update-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.update-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.update-info {
  padding: 16px;
}

.update-info h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.update-info time {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* 人气榜单 */
.ranking-section {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.ranking-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.ranking-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ranking-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  min-width: 40px;
  line-height: 1.2;
}

.ranking-content h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.ranking-content p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: 0;
}

/* 阅读指南入口 */
.guide-entry {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.guide-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.guide-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.guide-card p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
  flex: 1;
}

.card-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* 长尾推荐预告 */
.longtail-preview {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.topic-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.topic-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.topic-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.topic-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.topic-card h3 {
  padding: 16px 16px 8px;
  font-size: 1.125rem;
}

.topic-card p {
  padding: 0 16px;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.topic-link {
  display: inline-block;
  margin: 8px 16px 16px;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ==========================================================================
   components — 分类页
   ========================================================================== */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-item {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-dark);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tag-item:hover {
  background-color: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
}

.tag-descriptions {
  margin-top: 48px;
  display: grid;
  gap: 40px;
}

.tag-block {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tag-block-head h2 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.tag-block-head p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin: 0;
}

.tag-figure {
  border-radius: var(--radius);
  overflow: hidden;
}

.tag-figure img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.tag-figure figcaption {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  padding: 8px;
  background-color: var(--color-bg);
}

.tag-more {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* 内联指南 */
.inline-guide {
  margin-top: 48px;
  background-color: var(--color-navy);
  border-radius: var(--radius);
  padding: 32px;
  color: rgba(255, 255, 255, 0.85);
}

.inline-guide h2 {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.inline-guide p {
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.inline-guide a {
  display: inline-block;
  margin-right: 24px;
  color: var(--color-accent);
  font-weight: 600;
}

.inline-guide a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   components — 阅读指南页
   ========================================================================== */

.page-container {
  padding-bottom: 48px;
}

.guide-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.guide-section:first-of-type {
  padding-top: 0;
}

.section-title {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.section-lead {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.method-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.method-number {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  background-color: rgba(233, 69, 96, 0.1);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.method-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.method-card p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: 0;
}

.method-card a {
  font-weight: 600;
}

.related-section {
  padding: 32px 0;
}

.related-links p {
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.related-links a {
  display: inline-block;
  margin-right: 24px;
  font-weight: 600;
}

/* 步骤列表（guide 页专用） */
.steps-list {
  display: grid;
  gap: 24px;
}

.step-item {
  display: flex;
  gap: 20px;
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.step-index {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  min-width: 48px;
}

.step-content h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin: 0;
}

/* 工具推荐 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tool-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.tool-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin: 0;
}

/* ==========================================================================
   components — 热血漫画推荐页
   ========================================================================== */

.recommend-list {
  padding-bottom: 48px;
}

.recommend-list h2 {
  font-size: 1.375rem;
  margin-bottom: 24px;
}

.recommend-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-media {
  border-radius: var(--radius);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.card-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  background-color: rgba(233, 69, 96, 0.1);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.card-desc h4 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
  color: var(--color-dark);
}

.card-desc p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

/* 选漫提示 */
.pick-tips {
  background-color: var(--color-navy);
  border-radius: var(--radius);
  padding: 32px;
  color: rgba(255, 255, 255, 0.85);
}

.pick-tips h2 {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.pick-tips p {
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.pick-tips a {
  color: var(--color-accent);
  font-weight: 600;
}

.pick-tips a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   components — 恋爱漫画推荐页
   ========================================================================== */

.work-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.work-cover {
  border-radius: var(--radius);
  overflow: hidden;
}

.work-cover img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.work-info h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.work-genre {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  background-color: rgba(233, 69, 96, 0.1);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.work-desc {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.work-info h4 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
  color: var(--color-dark);
}

.work-info p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

/* 亮点分析 */
.highlight-analysis {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.highlight-analysis h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.highlight-analysis p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.highlight-analysis a {
  font-weight: 600;
}

/* 适读人群 */
.audience-guide {
  background-color: var(--color-navy);
  border-radius: var(--radius);
  padding: 32px;
  color: rgba(255, 255, 255, 0.85);
}

.audience-guide h2 {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.audience-guide p {
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.audience-guide a {
  color: var(--color-accent);
  font-weight: 600;
}

.audience-guide a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   components — 404 页
   ========================================================================== */

.error-section {
  text-align: center;
  padding: 80px 0;
}

.error-code {
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  max-width: 480px;
  margin: 0 auto 32px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-btn {
  display: inline-block;
  padding: 12px 32px;
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease;
}

.error-btn:hover {
  background-color: #d63851;
  color: var(--color-white);
}

.error-btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-dark);
  color: var(--color-dark);
}

.error-btn-secondary:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

/* ==========================================================================
   responsive — 响应式断点
   ========================================================================== */

/* 平板 */
@media (max-width: 1024px) {
  .hero-section {
    gap: 32px;
  }

  .hero-copy h1 {
    font-size: 2.125rem;
  }

  .hero-figure img {
    height: 300px;
  }

  .updates-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .tag-block {
    grid-template-columns: 1fr 220px;
  }

  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 手机 */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .nav-list.is-open {
    max-height: 400px;
    padding: 8px 16px 16px;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }

  .nav-list a.is-current {
    background-color: transparent;
    color: var(--color-accent);
  }

  .site-main.home-main,
  .site-main.inner-main,
  .site-main.error-main {
    padding: 0 16px;
  }

  /* 首屏 */
  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }

  .hero-copy h1 {
    font-size: 1.75rem;
  }

  .hero-figure img {
    height: 220px;
  }

  /* 更新列表 */
  .updates-list {
    grid-template-columns: 1fr;
  }

  .update-item img {
    height: 180px;
  }

  /* 指南卡片 */
  .guide-cards {
    grid-template-columns: 1fr;
  }

  /* 专题卡片 */
  .topic-cards {
    grid-template-columns: 1fr;
  }

  /* 分类页 */
  .tag-block {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .tag-figure img {
    height: 140px;
  }

  /* 指南页 */
  .method-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .step-item {
    flex-direction: column;
    gap: 12px;
  }

  .step-index {
    font-size: 1.5rem;
  }

  /* 推荐页 */
  .recommend-card,
  .work-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .card-media img,
  .work-cover img {
    height: 180px;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 16px 16px;
  }

  .footer-bottom {
    padding: 16px;
  }
}

/* 小屏手机 */
@media (max-width: 390px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-guide,
  .btn-categories {
    width: 100%;
  }

  .ranking-item {
    padding: 12px 16px;
    gap: 12px;
  }

  .ranking-num {
    font-size: 1.25rem;
    min-width: 32px;
  }

  .tag-list a,
  .tag-item {
    padding: 8px 16px;
    font-size: 0.875rem;
  }
}

/* ==========================================================================
   motion — 动效，尊重 prefers-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;
  }
}
