/* ============================================================
   BASE · 全局基础
   ============================================================ */
:root {
  --color-bg: #f5f5f5;
  --color-surface: #ffffff;
  --color-text: #333333;
  --color-text-secondary: #666666;
  --color-text-light: #999999;
  --color-accent: #d32f2f;
  --color-accent-dark: #b71c1c;
  --color-border: #e0e0e0;

  --font-family: Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-xs: 12px;
  --font-size-lg: 18px;
  --font-size-xl: 22px;
  --font-size-xxl: 28px;
  --font-size-hero: 36px;

  --line-height: 1.6;

  --container-width: 1200px;
  --container-padding: 24px;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-dark);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-hero);
}

h2 {
  font-size: var(--font-size-xxl);
}

h3 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: 1em;
}

details summary {
  cursor: pointer;
}

/* ============================================================
   LAYOUT · 布局骨架
   ============================================================ */
.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.site-main.home-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.site-main.inner-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  padding-bottom: 60px;
}

.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: 60px;
}

.footer-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px var(--container-padding) 24px;
}

/* ============================================================
   COMPONENTS · 通用组件
   ============================================================ */

/* ---------- 品牌 Logo ---------- */
.brand-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--color-text);
  flex-shrink: 0;
}

.brand-logo:hover {
  color: var(--color-text);
}

.brand-name {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

/* ---------- 导航 ---------- */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-list li a:hover {
  color: var(--color-accent);
  background-color: rgba(211, 47, 47, 0.06);
}

.nav-list li a.is-current {
  color: var(--color-accent);
  font-weight: 700;
  background-color: rgba(211, 47, 47, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.breadcrumb a {
  color: var(--color-text-secondary);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb-sep {
  color: var(--color-text-light);
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 600;
}

/* ---------- 页面标题区 ---------- */
.page-header {
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 36px;
}

.page-title {
  font-size: var(--font-size-hero);
  margin-bottom: 12px;
}

.page-description {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  max-width: 720px;
}

/* ---------- 区块标题 ---------- */
.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: var(--font-size-xxl);
  margin-bottom: 8px;
}

.section-heading p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}

.section-title {
  font-size: var(--font-size-xxl);
  margin-bottom: 24px;
}

/* ---------- 按钮 ---------- */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  color: #ffffff;
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: rgba(211, 47, 47, 0.04);
}

/* ---------- 页脚 ---------- */
.footer-brand {
  margin-bottom: 32px;
}

.footer-slogan {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  max-width: 520px;
  margin-bottom: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

.footer-col h3 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.footer-col ul li a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
}

/* ---------- 图片容器 ---------- */
figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  padding: 8px 0 0;
  text-align: center;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: var(--font-size-xs);
  border-radius: var(--radius-sm);
  background-color: rgba(211, 47, 47, 0.08);
  color: var(--color-accent);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
  background-color: var(--color-surface);
}

.faq-item summary {
  font-weight: 600;
  font-size: var(--font-size-base);
  color: var(--color-text);
  list-style: none;
  position: relative;
  padding-right: 24px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: var(--font-size-xl);
  color: var(--color-accent);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* ============================================================
   PAGES · 页面专属
   ============================================================ */

/* ---------- 首页：Hero ---------- */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 56px;
}

.hero-copy h1 {
  font-size: var(--font-size-hero);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-media img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
}

/* ---------- 首页：题材分类导航 ---------- */
.category-nav-section {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-item {
  display: inline-block;
  padding: 10px 20px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.tag-item:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: rgba(211, 47, 47, 0.04);
}

/* ---------- 首页：最近更新 ---------- */
.recent-updates-section {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.update-group {
  margin-bottom: 32px;
}

.update-group h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.update-item {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.update-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.update-link {
  display: flex;
  gap: 16px;
  padding: 12px;
  color: var(--color-text);
}

.update-link:hover {
  color: var(--color-text);
}

.update-link img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.update-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.update-title {
  font-weight: 600;
  font-size: var(--font-size-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-status {
  font-size: var(--font-size-xs);
  color: var(--color-accent);
  font-weight: 600;
}

.update-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  background-color: var(--color-bg);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* ---------- 首页：人气榜单 ---------- */
.ranking-section {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.ranking-list {
  counter-reset: ranking;
}

.ranking-item {
  margin-bottom: 12px;
}

.ranking-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.ranking-link:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: var(--color-text);
}

.ranking-num {
  font-size: var(--font-size-xxl);
  font-weight: 700;
  color: var(--color-accent);
  width: 40px;
  flex-shrink: 0;
  text-align: center;
}

.ranking-title {
  font-weight: 600;
  font-size: var(--font-size-base);
  min-width: 160px;
  flex-shrink: 0;
}

.ranking-reason {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 首页：阅读指南入口 ---------- */
.guide-entry-section {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--color-accent);
  transition: box-shadow var(--transition-base);
}

.guide-card:hover {
  box-shadow: var(--shadow-hover);
}

.guide-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: 12px;
}

.guide-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.card-link {
  font-weight: 600;
  font-size: var(--font-size-sm);
}

/* ---------- 首页：版权与反馈 ---------- */
.copyright-section {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.copyright-section h2 {
  font-size: var(--font-size-xl);
  margin-bottom: 16px;
}

.copyright-section p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  max-width: 800px;
}

/* ---------- 内页：题材分类页 ---------- */
.category-list {
  margin-bottom: 48px;
}

.category-list > h2 {
  font-size: var(--font-size-xxl);
  margin-bottom: 8px;
}

.category-list > p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: 24px;
}

.category-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base);
}

.category-card:hover {
  box-shadow: var(--shadow-hover);
}

.category-card-media figure {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.category-card-media img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
}

.category-card-body h3 {
  font-size: var(--font-size-xl);
  margin-bottom: 8px;
}

.category-card-body p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.category-card-body a {
  font-weight: 600;
  font-size: var(--font-size-sm);
}

/* ---------- 内页：推荐作品 ---------- */
.recommendations {
  margin-bottom: 48px;
}

.recommendations > h2 {
  font-size: var(--font-size-xxl);
  margin-bottom: 8px;
}

.recommendations > p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: 24px;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.recommendation-item {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  padding-bottom: 16px;
}

.recommendation-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.recommendation-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.recommendation-item h3 {
  font-size: var(--font-size-base);
  padding: 12px 16px 4px;
}

.recommendation-item p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  padding: 0 16px;
  margin-bottom: 8px;
}

.recommendation-item a {
  display: inline-block;
  margin: 0 16px;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* ---------- 内页：阅读指南 ---------- */
.guide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 88px;
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.guide-toc h2 {
  font-size: var(--font-size-base);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.guide-toc ol li {
  margin-bottom: 8px;
}

.guide-toc ol li a {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  display: block;
  padding: 4px 0;
}

.guide-toc ol li a:hover {
  color: var(--color-accent);
}

.guide-content {
  min-width: 0;
}

.guide-section {
  margin-bottom: 48px;
}

.guide-section h2 {
  font-size: var(--font-size-xl);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.guide-section p {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.guide-figure {
  margin: 20px 0;
}

.guide-figure img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.guide-related {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.guide-related h2 {
  font-size: var(--font-size-lg);
  margin-bottom: 12px;
}

.guide-related p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.guide-related p a {
  margin-right: 16px;
  font-weight: 600;
}

/* ---------- 内页：追更技巧 ---------- */
.content-section {
  margin-bottom: 48px;
}

.content-section h2 {
  font-size: var(--font-size-xl);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.content-section > p {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.content-media {
  margin: 20px 0;
}

.content-media-inline {
  float: none;
}

.content-media img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.method-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.method-item {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border-left: 3px solid var(--color-accent);
}

.method-item h3 {
  font-size: var(--font-size-base);
  margin-bottom: 8px;
}

.method-item p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.tips-panel {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.tips-panel h2 {
  font-size: var(--font-size-xl);
  margin-bottom: 20px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tip-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 20px;
}

.tip-card h3 {
  font-size: var(--font-size-base);
  margin-bottom: 8px;
  color: var(--color-accent);
}

.tip-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.related-section {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.related-section h2 {
  font-size: var(--font-size-lg);
  margin-bottom: 12px;
}

.related-section > p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.related-section > p a {
  margin-right: 16px;
  font-weight: 600;
}

/* ---------- 内页：恋爱漫画 ---------- */
.work-grid {
  margin-bottom: 48px;
}

.grid-shell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.comic-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.comic-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-figure {
  overflow: hidden;
}

.card-figure img {
  aspect-ratio: 3 / 4;
  width: 100%;
  height: auto;
}

.card-body {
  padding: 16px;
}

.card-title {
  font-size: var(--font-size-base);
  margin-bottom: 8px;
}

.card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.card-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.features {
  margin-bottom: 48px;
}

.features-shell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.feature-title {
  font-size: var(--font-size-base);
  margin-bottom: 8px;
  color: var(--color-accent);
}

.feature-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.related-links {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.related-links h2 {
  font-size: var(--font-size-lg);
  margin-bottom: 12px;
}

.related-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.related-text a {
  margin-right: 16px;
  font-weight: 600;
}

/* ---------- 内页：科幻漫画 ---------- */
.work-section {
  margin-bottom: 48px;
}

.work-section > h2 {
  font-size: var(--font-size-xxl);
  margin-bottom: 24px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.work-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.work-cover {
  overflow: hidden;
}

.work-cover img {
  aspect-ratio: 3 / 4;
  width: 100%;
  height: auto;
}

.work-info {
  padding: 16px;
}

.work-info h3 {
  font-size: var(--font-size-base);
  margin-bottom: 8px;
}

.work-tag {
  display: inline-block;
  font-size: var(--font-size-xs);
  color: var(--color-accent);
  background-color: rgba(211, 47, 47, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 8px;
}

.work-info p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.worldview-section {
  margin-bottom: 48px;
}

.worldview-section > h2 {
  font-size: var(--font-size-xxl);
  margin-bottom: 24px;
}

.worldview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.worldview-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.worldview-card h3 {
  font-size: var(--font-size-base);
  margin-bottom: 8px;
  color: var(--color-accent);
}

.worldview-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.worldview-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.worldview-note a {
  margin-right: 16px;
  font-weight: 600;
}

/* ---------- 404 页 ---------- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 60px var(--container-padding);
}

.error-content {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-size: 96px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-content h1 {
  font-size: var(--font-size-xxl);
  margin-bottom: 16px;
}

.error-desc {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.error-link {
  display: inline-block;
  padding: 12px 32px;
  background-color: var(--color-accent);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

.error-link:hover {
  background-color: var(--color-accent-dark);
  color: #ffffff;
}

/* ============================================================
   RESPONSIVE · 响应式
   ============================================================ */

/* ---------- 平板 ---------- */
@media (max-width: 1024px) {
  .recommendation-grid,
  .grid-shell,
  .work-grid,
  .method-list,
  .tips-grid,
  .features-shell,
  .worldview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card {
    grid-template-columns: 200px 1fr;
  }

  .guide-layout {
    grid-template-columns: 200px 1fr;
    gap: 32px;
  }
}

/* ---------- 手机 ---------- */
@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
    --font-size-hero: 28px;
    --font-size-xxl: 22px;
    --font-size-xl: 18px;
  }

  .header-shell {
    height: 60px;
  }

  .brand-tag {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 14px 16px;
    font-size: var(--font-size-base);
    border-radius: var(--radius-sm);
  }

  .nav-list li a.is-current {
    background-color: rgba(211, 47, 47, 0.08);
  }

  /* Hero */
  .hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    text-align: center;
  }

  /* 首页更新列表 */
  .update-list {
    grid-template-columns: 1fr;
  }

  /* 首页榜单 */
  .ranking-link {
    flex-wrap: wrap;
    gap: 8px;
  }

  .ranking-num {
    width: 32px;
    font-size: var(--font-size-xl);
  }

  .ranking-title {
    min-width: 0;
    flex: 1;
  }

  .ranking-reason {
    width: 100%;
    padding-left: 52px;
    white-space: normal;
  }

  /* 指南卡片 */
  .guide-cards {
    grid-template-columns: 1fr;
  }

  /* 分类卡片 */
  .category-card {
    grid-template-columns: 1fr;
  }

  .category-card-media img {
    aspect-ratio: 16 / 9;
  }

  /* 指南布局 */
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-toc {
    position: static;
    order: 2;
    margin-bottom: 32px;
  }

  .guide-content {
    order: 1;
  }

  /* 页脚 */
  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* 推荐网格 */
  .recommendation-grid,
  .grid-shell,
  .work-grid,
  .method-list,
  .tips-grid,
  .features-shell,
  .worldview-grid {
    grid-template-columns: 1fr;
  }

  /* 面包屑 */
  .breadcrumb {
    padding-top: 16px;
  }

  /* 页面标题 */
  .page-header {
    padding: 24px 0 20px;
    margin-bottom: 28px;
  }

  .page-title {
    font-size: var(--font-size-hero);
  }

  /* 内容区块间距 */
  .content-section,
  .tips-panel,
  .related-section,
  .worldview-section,
  .features,
  .work-section,
  .category-list,
  .recommendations {
    margin-bottom: 40px;
  }

  .section-heading,
  .section-title {
    margin-bottom: 16px;
  }
}

/* ---------- 小屏手机 ---------- */
@media (max-width: 390px) {
  .footer-links {
    grid-template-columns: 1fr;
  }

  .update-link img {
    width: 64px;
    height: 84px;
  }

  .ranking-reason {
    padding-left: 40px;
  }

  .ranking-num {
    width: 28px;
  }
}
