/* ==========================================================================
   base — 基础变量、reset、全局排版与骨架
   ========================================================================== */

:root {
  --primary: #F25C6B;
  --primary-dark: #d94a58;
  --primary-soft: #fdeef0;
  --secondary: #2E7D46;
  --secondary-soft: #eaf4ed;
  --accent: #FFD45B;
  --bg: #FAF8F5;
  --ink: #1F2933;
  --ink-soft: #4b5563;
  --ink-mute: #6b7280;
  --line: #e5e0da;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --container: 1200px;
  --read-width: 900px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --shadow-sm: 0 1px 2px rgba(31, 41, 51, 0.06);
  --shadow-md: 0 4px 12px rgba(31, 41, 51, 0.08);
  --shadow-lg: 0 8px 24px rgba(31, 41, 51, 0.1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
figure {
  display: block;
  max-width: 100%;
}

img {
  width: 100%;
  height: auto;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

p {
  margin-bottom: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   layout — 全站骨架、容器、页头、页脚、面包屑
   ========================================================================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0;
}

.brand-logo:hover {
  color: var(--ink);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--white);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  color: var(--secondary);
  background: var(--secondary-soft);
}

.nav-list li a.is-current {
  color: var(--secondary);
  background: var(--secondary-soft);
}

.mobile-nav-list {
  display: none;
}

.site-main {
  flex: 1;
  width: 100%;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 24px 64px;
  width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--secondary);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-soft);
  font-weight: 500;
}

.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 720px;
}

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--ink-mute);
}

.footer-col h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
}

/* ==========================================================================
   components — 通用组件：按钮、标签、卡片、表格、FAQ、链接条
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 700;
  background: var(--primary);
  color: var(--white);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-action:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-action.secondary {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-action.secondary:hover {
  background: var(--secondary);
  color: var(--white);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 700;
  background: var(--primary);
  color: var(--white);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.action-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.action-btn.secondary {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}

.action-btn.secondary:hover {
  background: var(--secondary);
  color: var(--white);
}

.entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 700;
  background: var(--primary);
  color: var(--white);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.entry-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.entry-btn.secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.entry-btn.secondary:hover {
  background: var(--secondary);
  color: var(--white);
}

.section-title {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--ink);
}

.section-desc {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 24px;
}

.section-lead {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 720px;
}

.section-intro {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 720px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 15px;
  color: var(--secondary);
}

.text-link:hover {
  color: var(--primary);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--secondary-soft);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.tag-chip:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.tag-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tag-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.related-links {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.related-links-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-right: 8px;
}

.related-links-item {
  font-size: 14px;
  color: var(--secondary);
  font-weight: 500;
  padding: 4px 8px;
}

.related-links-item:hover {
  color: var(--primary);
}

/* ==========================================================================
   components — 首页模块
   ========================================================================== */

.home-main {
  overflow: visible;
}

.home-hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.home-hero .hero-copy,
.home-hero .hero-figure {
  /* placeholder for actual hero layout below */
}

/* 首页各区块内部直接由页面结构驱动，见下方具体 section 规则 */

/* ==========================================================================
   pages — index.html
   ========================================================================== */

/* 首屏导引区 */
.home-hero {
  padding: 64px 0 56px;
  background: var(--white);
}

.home-hero > .hero-copy {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 40px;
  line-height: 1.25;
  margin-bottom: 16px;
  max-width: 520px;
}

.hero-lead {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-figure img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

/* 热门题材导航区 */
.hot-topics-nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 16px;
}

.topic-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.topic-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-soft);
  font-size: 24px;
  margin-bottom: 14px;
}

.topic-card:nth-child(2) .topic-icon {
  background: var(--secondary-soft);
}

.topic-card:nth-child(3) .topic-icon {
  background: #fff7e0;
}

.topic-card:nth-child(4) .topic-icon {
  background: #eef2ff;
}

.topic-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.topic-card p {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0;
}

/* 三步选漫路径 */
.pathway-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 16px;
}

.pathway-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}

.step-item:nth-child(2) .step-num {
  background: var(--secondary);
}

.step-item:nth-child(3) .step-num {
  background: #d97706;
}

.step-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.step-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
}

.step-link:hover {
  color: var(--primary);
}

/* 主题档案卷宗浏览 */
.archive-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 16px;
}

.archive-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}

.archive-index {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.archive-index-item {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}

.archive-index-item:hover {
  background: var(--secondary-soft);
  color: var(--secondary);
  border-color: var(--secondary);
}

.archive-reels {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.reel-group {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--line);
}

.reel-title {
  font-size: 18px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

.reel-group:nth-child(2) .reel-title {
  border-left-color: var(--secondary);
}

.reel-group:nth-child(3) .reel-title {
  border-left-color: #d97706;
}

.reel-group:nth-child(4) .reel-title {
  border-left-color: #6d28d9;
}

.cover-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cover-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  margin: 0;
}

.cover-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* 题材标签墙 */
.tag-wall-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 16px;
}

.tag-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 编辑选读与整理双栏 */
.editorial-duo {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 16px;
}

.duo-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.duo-col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}

.duo-col h3 {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-soft);
}

.duo-col.recent-guides h3 {
  border-bottom-color: var(--secondary-soft);
}

.pick-list li,
.guide-list li {
  margin-bottom: 4px;
}

.pick-list a,
.guide-list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
  transition: color 0.2s ease;
}

.pick-list a:hover,
.guide-list a:hover {
  color: var(--primary);
}

.pick-list li:last-child a,
.guide-list li:last-child a {
  border-bottom: none;
}

.pick-list a::before {
  content: "▸";
  color: var(--primary);
  font-weight: 700;
}

.guide-list a::before {
  content: "→";
  color: var(--secondary);
  font-weight: 700;
}

/* 场景速选卡 */
.scene-quickpick {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 16px;
}

.scene-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.scene-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scene-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.scene-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-soft);
  font-size: 28px;
  margin-bottom: 14px;
}

.scene-card:nth-child(2) .scene-emoji {
  background: #eef2ff;
}

.scene-card:nth-child(3) .scene-emoji {
  background: var(--secondary-soft);
}

.scene-card:nth-child(4) .scene-emoji {
  background: #fff7e0;
}

.scene-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.scene-card p {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0;
}

/* 读者常问折叠区 */
.home-faq {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 16px;
}

.home-faq .faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.home-faq .faq-item summary {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.home-faq .faq-item summary::-webkit-details-marker {
  display: none;
}

.home-faq .faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.home-faq .faq-item[open] summary::after {
  content: "−";
}

.home-faq .faq-item p {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.faq-more-link {
  margin-top: 16px;
  text-align: center;
}

.faq-more-link a {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--secondary);
  color: var(--secondary);
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s ease;
}

.faq-more-link a:hover {
  background: var(--secondary);
  color: var(--white);
}

/* ==========================================================================
   pages — xgmh/category.html
   ========================================================================== */

.page-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.category-index {
  position: sticky;
  top: 88px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.category-index h2 {
  font-size: 17px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-soft);
}

.index-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.index-tags a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg);
  transition: all 0.2s ease;
}

.index-tags a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.index-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.6;
}

.category-content {
  min-width: 0;
}

.theme-group {
  margin-bottom: 48px;
  scroll-margin-top: 88px;
}

.theme-group h2 {
  font-size: 22px;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}

.theme-group:nth-of-type(2) h2 {
  border-left-color: var(--secondary);
}

.theme-group:nth-of-type(3) h2 {
  border-left-color: #d97706;
}

.theme-group:nth-of-type(4) h2 {
  border-left-color: #6d28d9;
}

.theme-group:nth-of-type(5) h2 {
  border-left-color: #0891b2;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.genre-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.genre-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.genre-card h3 {
  font-size: 17px;
}

.genre-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.reading-hint {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 12px;
  background: var(--secondary-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  margin: 0;
}

.featured-topic {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: center;
  margin-top: 8px;
}

.featured-copy h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.featured-copy p {
  font-size: 15px;
  color: var(--ink-soft);
}

.featured-topic img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   pages — xgmh/compare.html
   ========================================================================== */

.compare-hero-section {
  margin-bottom: 48px;
}

.compare-hero-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
}

.compare-tags-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.compare-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
}

.tag-hot {
  background: var(--primary-soft);
  color: var(--primary);
}

.tag-daily {
  background: var(--secondary-soft);
  color: var(--secondary);
}

.vs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.compare-hero-desc {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 520px;
}

.compare-hero-figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.compare-hero-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.compare-hero-figure figcaption {
  font-size: 13px;
  color: var(--ink-mute);
  padding: 8px 4px 0;
  text-align: center;
}

.compare-table-section {
  margin-bottom: 48px;
}

.compare-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table thead th {
  background: var(--bg);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody th {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--bg);
  width: 120px;
}

.compare-table tbody td {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.compare-tips-section {
  margin-bottom: 48px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tip-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  border-top: 4px solid var(--primary);
}

.tip-card:nth-child(2) {
  border-top-color: var(--secondary);
}

.tip-card:nth-child(3) {
  border-top-color: var(--accent);
}

.tip-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.tip-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.compare-related-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  margin-bottom: 48px;
}

.compare-related-section p {
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 24px;
}

.related-links-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   pages — xgmh/scene.html
   ========================================================================== */

.scene-intro-block {
  margin-bottom: 40px;
  max-width: 780px;
}

.scene-intro-block p {
  font-size: 15px;
  color: var(--ink-soft);
}

.scene-list-section {
  margin-bottom: 48px;
}

.scene-card-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scene-card-list .scene-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  text-align: left;
  transition: box-shadow 0.2s ease;
}

.scene-card-list .scene-card:hover {
  box-shadow: var(--shadow-md);
  transform: none;
}

.scene-card-media {
  overflow: hidden;
}

.scene-card-media img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.scene-card-body {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scene-card-body h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.scene-desc {
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 12px;
}

.scene-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-mute);
}

.scene-reason {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.7;
}

.scene-reason strong {
  color: var(--ink);
}

.scene-tip-block {
  background: var(--secondary-soft);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 40px;
}

.tip-inner {
  max-width: 720px;
}

.tip-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.tip-inner p {
  font-size: 14px;
  color: var(--ink-soft);
}

.tip-inner a {
  font-weight: 700;
}

.inner-entry-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* ==========================================================================
   pages — xgmh/guide.html
   ========================================================================== */

.chapter-toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  margin-bottom: 40px;
}

.chapter-toc ol {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.chapter-toc li {
  font-size: 15px;
}

.chapter-toc li a {
  font-weight: 700;
  color: var(--secondary);
}

.chapter-toc li a:hover {
  color: var(--primary);
}

.guide-content {
  max-width: var(--read-width);
}

.guide-step {
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.guide-step:nth-child(even) {
  grid-template-columns: 320px 1fr;
}

.guide-step:nth-child(even) .step-text {
  order: 2;
}

.guide-step:nth-child(even) .step-media {
  order: 1;
}

.step-text {
  min-width: 0;
}

.step-text h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.step-text p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.tip-box {
  background: #fff7e0;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-top: 16px;
}

.tip-box p {
  font-size: 14px;
  margin: 0;
}

.tip-box strong {
  color: var(--ink);
}

.step-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.step-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.step-media figcaption {
  font-size: 13px;
  color: var(--ink-mute);
  padding: 8px 4px 0;
  text-align: center;
}

.guide-example {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: center;
}

.example-text h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

.example-text p {
  font-size: 15px;
  color: var(--ink-soft);
}

.example-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.example-media figcaption {
  font-size: 13px;
  color: var(--ink-mute);
  padding: 8px 4px 0;
  text-align: center;
}

.guide-related-links .link-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ==========================================================================
   pages — xgmh/faq.html
   ========================================================================== */

.faq-group {
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list .faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-list .faq-item summary {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-list .faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-list .faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-list .faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 24px 18px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.faq-help-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}

.help-content p {
  font-size: 15px;
  color: var(--ink-soft);
}

.help-content a {
  font-weight: 700;
}

.help-figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.related-link-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.related-link-list a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
  border-bottom: 1px dashed var(--line);
}

.related-link-list a:hover {
  color: var(--primary);
}

.related-link-list li:last-child a {
  border-bottom: none;
}

/* ==========================================================================
   pages — xgmh/about.html
   ========================================================================== */

.about-content {
  max-width: var(--read-width);
}

.about-intro-block {
  margin-bottom: 48px;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
}

.about-text-block p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.about-media-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.about-media-figure figcaption {
  font-size: 13px;
  color: var(--ink-mute);
  padding: 8px 4px 0;
  text-align: center;
}

.about-boundaries {
  margin-bottom: 48px;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.boundary-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  border-top: 4px solid var(--primary);
}

.boundary-list li:nth-child(2) {
  border-top-color: var(--secondary);
}

.boundary-list li:nth-child(3) {
  border-top-color: #d97706;
}

.boundary-list li:nth-child(4) {
  border-top-color: #6d28d9;
}

.boundary-list h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.boundary-list p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.about-principles {
  margin-bottom: 48px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.principle-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.principle-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--secondary);
}

.principle-item p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.about-exit-links {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  margin-bottom: 48px;
}

.about-exit-links p {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.exit-action-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.about-related-links {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.about-related-links h3 {
  font-size: 17px;
  margin-bottom: 16px;
}

.about-related-links ul li {
  margin-bottom: 4px;
}

.about-related-links a {
  display: block;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
}

.about-related-links a:hover {
  color: var(--primary);
}

/* ==========================================================================
   pages — 404.html
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.error-content {
  max-width: 560px;
  text-align: center;
}

.error-code {
  font-size: 96px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-content h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.error-content p {
  color: var(--ink-soft);
  font-size: 15px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.error-help {
  margin-top: 24px;
}

.error-link {
  display: inline-block;
  font-weight: 700;
  color: var(--secondary);
}

/* ==========================================================================
   responsive — 响应式断点
   ========================================================================== */

@media (max-width: 1024px) {
  .home-hero > .hero-copy {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero-lead {
    max-width: 100%;
  }

  .hero-figure img {
    height: 300px;
  }

  .topic-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scene-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-layout {
    grid-template-columns: 1fr;
  }

  .archive-index {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .archive-index-item {
    padding: 8px 16px;
    font-size: 14px;
  }

  .duo-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .compare-hero-layout {
    grid-template-columns: 1fr;
  }

  .compare-hero-figure img {
    height: 180px;
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compare-table-wrap {
    overflow-x: auto;
  }

  .scene-card-list .scene-card {
    grid-template-columns: 220px 1fr;
  }

  .guide-step {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .guide-step:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .guide-step:nth-child(even) .step-text {
    order: 1;
  }

  .guide-step:nth-child(even) .step-media {
    order: 2;
  }

  .guide-example {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .brand-col {
    grid-column: 1 / -1;
  }

  .about-intro-grid {
    grid-template-columns: 1fr;
  }

  .about-media-figure img {
    height: 180px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .boundary-list {
    grid-template-columns: 1fr;
  }

  .faq-help-panel {
    grid-template-columns: 1fr;
  }

  .help-figure img {
    height: 160px;
  }

  .featured-topic {
    grid-template-columns: 1fr;
  }

  .featured-topic img {
    height: 180px;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .category-index {
    position: static;
    padding: 16px 20px;
  }

  .category-index h2 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .index-tags {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .index-tags a {
    padding: 6px 16px;
    font-size: 14px;
  }

  .index-note {
    margin-top: 12px;
    padding-top: 12px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .desktop-nav-list {
    display: none;
  }

  .site-nav .nav-list {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: var(--radius-md);
  }

  .mobile-nav-list {
    display: flex;
  }

  .home-main .nav-list {
    position: static;
    box-shadow: none;
    border-bottom: none;
    padding: 0;
  }

  .inner-main {
    padding: 16px 16px 48px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .brand-col {
    grid-column: auto;
  }

  .footer-bottom {
    padding: 12px 16px;
  }

  .pathway-steps {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .topic-card-grid {
    grid-template-columns: 1fr;
  }

  .scene-card-grid {
    grid-template-columns: 1fr;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .scene-card-list .scene-card {
    grid-template-columns: 1fr;
  }

  .scene-card-media img {
    height: 180px;
    min-height: auto;
  }

  .scene-card-body {
    padding: 16px;
  }

  .home-hero > .hero-copy {
    padding: 0 16px;
  }

  .hot-topics-nav,
  .pathway-section,
  .archive-section,
  .tag-wall-section,
  .editorial-duo,
  .scene-quickpick,
  .home-faq {
    padding-left: 16px;
    padding-right: 16px;
  }

  .chapter-toc ol {
    flex-direction: column;
    gap: 8px;
  }

  .tag-wall {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 21px;
  }

  h3 {
    font-size: 18px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn,
  .btn-action,
  .action-btn,
  .entry-btn {
    width: 100%;
    padding: 12px 16px;
  }

  .hero-figure img {
    height: 220px;
  }

  .duo-columns {
    gap: 16px;
  }

  .duo-col {
    padding: 20px;
  }

  .compare-hero-layout {
    padding: 20px;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
  }

  .compare-related-section {
    padding: 24px 16px;
  }

  .guide-example {
    padding: 20px;
  }

  .faq-help-panel {
    padding: 20px;
  }

  .about-intro-grid {
    padding: 20px;
  }

  .about-exit-links {
    padding: 24px 16px;
  }

  .faq-answer,
  .faq-list .faq-item summary {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-faq .faq-item summary {
    padding: 16px;
    font-size: 15px;
  }

  .home-faq .faq-item p {
    padding: 0 16px 16px;
  }

  .cover-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cover-card img {
    height: 140px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-description {
    font-size: 15px;
  }

  .section-title {
    font-size: 21px;
  }

  .theme-group h2 {
    font-size: 19px;
  }

  .featured-topic {
    padding: 20px;
  }

  .featured-copy h2 {
    font-size: 19px;
  }

  .genre-card img {
    height: 140px;
  }

  .compare-tag {
    padding: 6px 14px;
    font-size: 14px;
  }

  .vs-badge {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .compare-hero-desc {
    font-size: 14px;
  }

  .compare-table-wrap {
    border-radius: var(--radius-sm);
  }

  .scene-tip-block {
    padding: 24px 16px;
  }

  .scene-intro-block {
    margin-bottom: 32px;
  }

  .chapter-toc {
    padding: 16px 20px;
  }

  .guide-step {
    margin-bottom: 40px;
  }

  .step-text p {
    font-size: 14px;
    line-height: 1.75;
  }

  .step-media img {
    height: 160px;
  }

  .step-media figcaption,
  .example-media figcaption,
  .compare-hero-figure figcaption,
  .about-media-figure figcaption {
    font-size: 12px;
  }

  .example-text p {
    font-size: 14px;
  }

  .example-media img {
    height: 180px;
  }

  .related-links {
    margin-top: 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .related-links-label {
    margin-bottom: 4px;
  }

  .related-links-item {
    padding: 4px 0;
  }

  .error-code {
    font-size: 64px;
  }

  .error-main {
    padding: 48px 16px;
  }

  .error-actions {
    flex-direction: column;
  }

  .footer-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==========================================================================
   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;
  }

  .topic-card,
  .scene-card,
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-action,
  .action-btn,
  .entry-btn {
    transform: none !important;
  }
}
