@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

/* =====================
   CSS 变量 & 重置
   ===================== */
:root {
  --c-primary: #56228b;
  --c-primary-light: #7a3dbf;
  --c-primary-dark: #3a1660;
  --c-secondary: #8b4513;
  --c-secondary-light: #b05a1a;
  --c-bg: #1f1726;
  --c-bg-mid: #2a1e36;
  --c-bg-card: #2e2040;
  --c-bg-card2: #261c34;
  --c-text: #e8dff5;
  --c-text-muted: #a898c0;
  --c-text-dim: #7a6a90;
  --c-border: rgba(86,34,139,0.35);
  --c-accent: #c084fc;
  --c-gold: #d4a843;
  --radius-card: 10px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-soft: 0 4px 24px rgba(31,23,38,0.55);
  --shadow-card: 0 2px 12px rgba(31,23,38,0.45);
  --font-head: 'Lora', Georgia, serif;
  --font-body: 'Raleway', system-ui, sans-serif;
  --max-w: 860px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--c-bg);
  color: var(--c-text);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-primary-light); }
p { margin-bottom: 1.1em; }
ul, ol { padding-left: 1.4em; margin-bottom: 1em; }
li { margin-bottom: 0.3em; }

/* =====================
   排版
   ===================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-text);
  margin-bottom: 0.6em;
}

h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.8rem); margin-top: 1.6em; }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.35rem); margin-top: 1.2em; }

small.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-secondary-light);
  margin-bottom: 0.25em;
}

/* =====================
   布局容器
   ===================== */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

main { flex: 1; }

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =====================
   顶部导航
   ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(31,23,38,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  z-index: 100;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}
.nav-right { justify-content: flex-end; }

.nav-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-text-muted);
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  min-height: 40px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--c-accent);
  background: rgba(86,34,139,0.18);
}

.brand-center {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand-text {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.03em;
  white-space: nowrap;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--c-border);
}
.brand-text:hover { color: var(--c-primary-light); }

.logo-img { height: 36px; width: auto; }

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem;
  min-height: 40px;
  min-width: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-burger:hover { background: rgba(86,34,139,0.2); }
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* =====================
   全屏遮罩菜单
   ===================== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: rgba(31,23,38,0.98);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.menu-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--c-text-muted);
  cursor: pointer;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.menu-close:hover { color: var(--c-accent); background: rgba(86,34,139,0.2); }

.menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 2rem;
}

.menu-link {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 500;
  color: var(--c-text);
  padding: 0.7rem 2rem;
  border-radius: 14px;
  transition: color 0.2s, background 0.2s;
  text-align: center;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.menu-link:hover { color: var(--c-accent); background: rgba(86,34,139,0.18); }

/* =====================
   Hero — 首页
   ===================== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 1.5rem 6rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-bg) 0%, var(--c-bg-mid) 60%, #2e1a45 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--c-text);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-media {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  overflow: hidden;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-blob {
  background: radial-gradient(ellipse at 70% 40%, rgba(86,34,139,0.45) 0%, transparent 70%),
              radial-gradient(ellipse at 30% 80%, rgba(139,69,19,0.3) 0%, transparent 60%);
}

.hero-arc {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--c-bg);
  border-radius: 55% 55% 0 0 / 80% 80% 0 0;
  z-index: 3;
}

/* =====================
   页面 Hero（内页）
   ===================== */
.page-hero {
  padding: calc(var(--header-h) + 2.5rem) 0 2rem;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 2rem;
}

.page-hero--slim { padding-bottom: 1.5rem; }

.page-hero--compare,
.page-hero--review,
.page-hero--ranking {
  background: linear-gradient(180deg, var(--c-bg-mid) 0%, transparent 100%);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.page-h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.page-lead {
  font-size: 1.02rem;
  color: var(--c-text-muted);
  max-width: 640px;
  margin-bottom: 0.8rem;
}

.page-date {
  font-size: 0.82rem;
  color: var(--c-text-dim);
}
.page-date time { color: var(--c-secondary-light); }

/* =====================
   面包屑
   ===================== */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--c-text-dim);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb span { color: var(--c-text-dim); }

/* =====================
   正文区
   ===================== */
.content-section {
  margin: 0 0 3rem;
}

.prose {
  max-width: 100%;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
}
.prose h2 { color: var(--c-accent); }
.prose h3 { color: var(--c-text); }
.prose a { color: var(--c-accent); border-bottom: 1px solid rgba(192,132,252,0.3); }
.prose a:hover { border-bottom-color: var(--c-accent); }
.prose blockquote {
  border-left: 3px solid var(--c-primary);
  margin: 1.5em 0;
  padding: 0.8em 1.2em;
  background: var(--c-bg-card);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  color: var(--c-text-muted);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.93rem;
}
.prose table th {
  background: var(--c-bg-card);
  color: var(--c-accent);
  padding: 0.6em 1em;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
}
.prose table td {
  padding: 0.55em 1em;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
}
.prose table tr:last-child td { border-bottom: none; }
.prose code {
  background: var(--c-bg-card);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--c-accent);
}

/* =====================
   按钮
   ===================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  min-height: 44px;
  letter-spacing: 0.02em;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--c-accent);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--c-primary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  min-height: 44px;
}
.btn-secondary:hover { background: var(--c-primary); color: #fff; }

/* =====================
   卡片列表（card-table）
   ===================== */
.card-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.85rem;
}

.card-row { vertical-align: top; }

.card-td { padding: 0; }

.card-link { display: block; text-decoration: none; border-radius: var(--radius-card); }

.card {
  background: var(--c-bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-card);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

.card-body { padding: 1.1rem 1.3rem; }

.card-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-secondary-light);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.card-title {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.4rem;
}

.card-desc {
  font-size: 0.87rem;
  color: var(--c-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* =====================
   评测列表（review-table）
   ===================== */
.review-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.75rem;
}

.review-row { vertical-align: top; }
.review-td { padding: 0; }

.review-card-link { display: block; text-decoration: none; border-radius: var(--radius-card); }

.review-card {
  background: var(--c-bg-card2);
  border-radius: var(--radius-card);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s, transform 0.2s;
  box-shadow: var(--shadow-card);
}
.review-card:hover { background: var(--c-bg-card); transform: translateX(4px); }

.review-num {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-primary);
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
}

.review-info { flex: 1; }

.review-title {
  display: block;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.3rem;
}

.review-desc {
  font-size: 0.84rem;
  color: var(--c-text-muted);
  margin: 0 0 0.3rem;
  line-height: 1.5;
}

.review-date {
  font-size: 0.75rem;
  color: var(--c-text-dim);
}

.review-arrow {
  font-size: 1.1rem;
  color: var(--c-text-dim);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}
.review-card:hover .review-arrow { color: var(--c-accent); transform: translateX(3px); }

/* =====================
   排行榜（ranking-table）
   ===================== */
.ranking-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.6rem;
}

.ranking-row { vertical-align: middle; }

.rank-num-td {
  padding: 0.8rem 0.6rem 0.8rem 0;
  width: 3rem;
  text-align: center;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--c-bg-card);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-text-muted);
}
.rank-num.rank-top {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  color: #fff;
}

.rank-info-td {
  padding: 0.8rem 0.8rem;
  background: var(--c-bg-card2);
  border-radius: var(--radius-card);
}

.rank-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
}
.rank-link strong { font-family: var(--font-head); font-size: 0.95rem; color: var(--c-text); }
.rank-link:hover strong { color: var(--c-accent); }

.rank-desc {
  font-size: 0.82rem;
  color: var(--c-text-muted);
}

.rank-date-td {
  padding: 0.8rem 0.5rem 0.8rem 0.8rem;
  font-size: 0.78rem;
  color: var(--c-text-dim);
  white-space: nowrap;
  text-align: right;
}

/* =====================
   链接列表（link-table）
   ===================== */
.link-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.4rem;
}

.link-td { padding: 0.2rem 0; }

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.93rem;
  color: var(--c-text-muted);
  padding: 0.5rem 0.2rem;
  min-height: 40px;
  transition: color 0.2s;
}
.inline-link::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
  flex-shrink: 0;
}
.inline-link:hover { color: var(--c-accent); }

/* =====================
   review meta
   ===================== */
.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.6rem;
}
.meta-item {
  font-size: 0.82rem;
  color: var(--c-text-dim);
}
.meta-item time { color: var(--c-secondary-light); }

.review-hero-media {
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 380px;
}
.review-hero-img { width: 100%; height: 100%; object-fit: cover; }

/* =====================
   特色/首页分区
   ===================== */
.featured-section, .compare-section, .related-section,
.children-section, .siblings-section, .about-nav-section,
.ranking-list-section, .back-section, .privacy-nav {
  margin: 2.5rem 0;
}

/* =====================
   页脚
   ===================== */
.site-footer {
  background: var(--c-bg-mid);
  border-top: 1px solid var(--c-border);
  margin-top: auto;
}

.footer-cta {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-secondary) 100%);
  text-align: center;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.footer-cta p {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.footer-cols {
  display: flex;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
  flex-wrap: wrap;
}

.footer-dl {
  flex: 1;
  min-width: 140px;
  padding: 0 1rem;
}
.footer-dl dt {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--c-border);
}
.footer-dl dd {
  margin: 0 0 0.35rem;
}
.footer-dl dd a {
  font-size: 0.84rem;
  color: var(--c-text-muted);
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 0.15rem 0;
  transition: color 0.2s;
}
.footer-dl dd a:hover { color: var(--c-accent); }

.footer-bottom {
  text-align: center;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--c-border);
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--c-text-dim);
  margin: 0;
}

/* =====================
   Scroll Reveal 动效
   ===================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .stagger-item {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .stagger-item.is-visible {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger-item { opacity: 1; transform: none; transition: none; }
}

/* =====================
   移动端断点
   ===================== */
@media (max-width: 700px) {
  :root { --header-h: 56px; }

  .nav-left, .nav-right { display: none; }

  .site-nav { justify-content: space-between; }

  .brand-text { font-size: 1rem; padding: 0.3rem 0.6rem; }

  .hero-section {
    min-height: 70vh;
    padding: calc(var(--header-h) + 2rem) 1rem 5rem;
  }
  .hero-media { width: 100%; opacity: 0.2; }
  .hero-content { max-width: 100%; }

  .hero-h1 { font-size: 1.7rem; }

  .footer-cols { flex-direction: column; gap: 1.2rem; }
  .footer-dl { padding: 0; }

  .review-card { flex-wrap: wrap; }
  .review-num { width: auto; }

  .ranking-table, .review-table, .card-table, .link-table {
    display: block;
    width: 100%;
  }
  .ranking-table tbody, .review-table tbody,
  .card-table tbody, .link-table tbody { display: block; }
  .ranking-row, .review-row, .card-row { display: block; }
  .rank-num-td, .rank-info-td, .rank-date-td { display: inline-block; }
  .rank-date-td { display: none; }
  .review-td, .card-td, .link-td { display: block; }

  .footer-cta { border-radius: 0; }
}

@media (max-width: 480px) {
  .page-hero--compare, .page-hero--review, .page-hero--ranking {
    border-radius: 0;
  }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* =====================
   有机装饰：SVG blob 背景点缀
   ===================== */
.page-home .hero-section::before {
  content: '';
  position: absolute;
  left: -120px; bottom: 40px;
  width: 380px; height: 380px;
  background: radial-gradient(ellipse, rgba(86,34,139,0.22) 0%, transparent 70%);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  pointer-events: none;
  z-index: 1;
}

.page-home .featured-section::before {
  content: '';
  position: fixed;
  right: -80px; top: 30%;
  width: 260px; height: 260px;
  background: radial-gradient(ellipse, rgba(139,69,19,0.14) 0%, transparent 70%);
  border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
  pointer-events: none;
  z-index: 0;
}
