@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

/* =============================================
   CSS 变量 & 基础
============================================= */
:root {
  --c-primary: #56228b;
  --c-primary-light: #7a3fbf;
  --c-primary-dark: #3b166b;
  --c-secondary: #8b4513;
  --c-secondary-light: #b05b1a;
  --c-ink: #1f1726;
  --c-ink-soft: #2d2040;
  --c-surface: #2a1c38;
  --c-surface-2: #342248;
  --c-surface-3: #3e2a56;
  --c-text: #e8dff5;
  --c-text-muted: #b09ac8;
  --c-text-faint: #7a6890;
  --c-border: rgba(86,34,139,0.35);
  --c-border-warm: rgba(139,69,19,0.35);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-soft: 0 4px 24px rgba(31,23,38,0.45);
  --shadow-card: 0 2px 12px rgba(31,23,38,0.3);
  --header-h: 68px;
  --font-body: 'Cormorant Infant', 'Georgia', serif;
  --font-display: 'Great Vibes', cursive;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-light); text-decoration: none; }
a:hover { color: var(--c-text); }
ul { list-style: none; }

/* =============================================
   Great Vibes 辅助类
============================================= */
.great-vibes { font-family: var(--font-display); }

/* =============================================
   按钮
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  min-height: 44px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn-primary:hover {
  background: var(--c-primary-light);
  border-color: var(--c-primary-light);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--c-primary-light);
  border-color: var(--c-primary);
}
.btn-outline:hover {
  background: var(--c-primary);
  color: #fff;
}

.btn-cta {
  background: var(--c-secondary);
  color: #fff;
  border-color: var(--c-secondary);
}
.btn-cta:hover {
  background: var(--c-secondary-light);
  border-color: var(--c-secondary-light);
  color: #fff;
}

/* =============================================
   Header / Nav
============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(31,23,38,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  height: var(--header-h);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--c-text);
}
.brand-logo:hover { color: var(--c-text); }

.brand-name {
  font-size: 1.8rem;
  color: var(--c-primary-light);
  line-height: 1;
}

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

.main-nav {
  flex: 1;
  overflow: visible;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  min-height: 44px;
  color: var(--c-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.main-nav > ul > li > a:hover {
  color: var(--c-text);
  background: var(--c-surface);
}

/* details/summary 下拉 */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  min-height: 44px;
  color: var(--c-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s, background 0.2s;
  font-family: var(--font-body);
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after {
  content: '▾';
  margin-left: 4px;
  font-size: 0.75rem;
  transition: transform 0.2s;
}
.nav-dropdown[open] > summary::after { transform: rotate(180deg); }
.nav-dropdown > summary:hover {
  color: var(--c-text);
  background: var(--c-surface);
}
.nav-dropdown[open] > summary {
  color: var(--c-text);
  background: var(--c-surface);
}

.nav-dropdown > menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-soft);
  z-index: 200;
}

.nav-dropdown > menu > li > a {
  display: block;
  padding: 10px 14px;
  min-height: 40px;
  color: var(--c-text-muted);
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  line-height: 1.3;
}
.nav-dropdown > menu > li > a:hover {
  color: var(--c-text);
  background: var(--c-surface-3);
}

/* =============================================
   Hero — 首页
============================================= */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 30% 60%, rgba(86,34,139,0.35) 0%, transparent 65%),
              radial-gradient(ellipse at 80% 20%, rgba(139,69,19,0.2) 0%, transparent 55%),
              var(--c-ink);
  overflow: hidden;
  padding: 100px 24px 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-secondary-light);
  margin-bottom: 16px;
  font-weight: 600;
}

.hero-section h1 {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-text);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-blob-wrap {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}
.hero-blob { width: 100%; }

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* =============================================
   Hero — 内页
============================================= */
.page-hero-section {
  position: relative;
  background: radial-gradient(ellipse at 20% 80%, rgba(86,34,139,0.3) 0%, transparent 60%),
              radial-gradient(ellipse at 85% 15%, rgba(139,69,19,0.15) 0%, transparent 50%),
              var(--c-ink);
  padding: 80px 24px 60px;
  overflow: hidden;
}

.page-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero-section h1 {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
  margin: 10px 0 14px;
}

.page-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
}
.page-hero-wave svg { width: 100%; height: 60px; }

/* hero 变体色调 */
.ranking-hero { background-blend-mode: normal; }
.compare-hero {
  background: radial-gradient(ellipse at 70% 30%, rgba(139,69,19,0.25) 0%, transparent 55%),
              radial-gradient(ellipse at 20% 70%, rgba(86,34,139,0.25) 0%, transparent 60%),
              var(--c-ink);
}
.faq-hero {
  background: radial-gradient(ellipse at 50% 40%, rgba(86,34,139,0.2) 0%, transparent 65%),
              var(--c-ink);
}

/* =============================================
   面包屑
============================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--c-text-faint);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-primary-light); }
.breadcrumb span[aria-hidden] { color: var(--c-text-faint); }

/* =============================================
   眉题 small
============================================= */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-secondary-light);
  margin-bottom: 8px;
}

/* =============================================
   页面元信息
============================================= */
.page-meta {
  font-size: 0.88rem;
  color: var(--c-text-faint);
  margin-bottom: 12px;
}
.page-meta time { color: var(--c-text-muted); }

/* =============================================
   内容区布局
============================================= */
.content-section {
  padding: 60px 24px 80px;
  background: var(--c-ink);
}

.alt-section {
  background: var(--c-ink-soft);
}

.content-with-aside {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

/* aside 在左 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.sidebar-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 12px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-links li a {
  display: block;
  font-size: 0.88rem;
  color: var(--c-text-muted);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
  transition: color 0.2s, background 0.2s;
}
.sidebar-links li a:hover {
  color: var(--c-primary-light);
  background: var(--c-surface-2);
}

.main-content-area {
  min-width: 0;
}

/* =============================================
   Prose 正文
============================================= */
.prose {
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.8;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-text);
  margin: 2em 0 0.7em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}

.prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--c-primary-light);
  margin: 1.6em 0 0.5em;
}

.prose h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  margin: 1.4em 0 0.4em;
}

.prose p { margin-bottom: 1.2em; }

.prose ul, .prose ol {
  margin: 0.8em 0 1.2em 1.4em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }

.prose a {
  color: var(--c-primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--c-text); }

.prose strong { color: var(--c-text); font-weight: 600; }
.prose em { color: var(--c-text-muted); font-style: italic; }

.prose blockquote {
  border-left: 3px solid var(--c-primary);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--c-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-text-muted);
  font-style: italic;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.92rem;
}
.prose th {
  background: var(--c-surface-2);
  color: var(--c-text);
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--c-border);
}
.prose td {
  padding: 9px 14px;
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
}
.prose tr:nth-child(even) td { background: rgba(86,34,139,0.06); }

.prose code {
  font-family: 'Courier New', monospace;
  font-size: 0.88em;
  background: var(--c-surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--c-primary-light);
}

.prose pre {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  margin: 1.5em 0;
}
.prose pre code { background: none; padding: 0; }

/* =============================================
   导航后按钮组
============================================= */
.post-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}

/* =============================================
   首页：section-header
============================================= */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 10px;
}
.section-desc {
  font-size: 1rem;
  color: var(--c-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* =============================================
   首页：卡片网格（子页列表，a > strong 结构）
============================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  color: var(--c-text);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.feature-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(86,34,139,0.25);
  color: var(--c-text);
}

.feature-card > strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-primary-light);
  line-height: 1.35;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  flex: 1;
}

.card-arrow {
  align-self: flex-end;
  color: var(--c-secondary-light);
  font-size: 1.1rem;
  transition: transform 0.2s;
}
.feature-card:hover .card-arrow { transform: translateX(4px); }

/* =============================================
   首页：评测列表
============================================= */
.ranking-preview-section,
.review-preview-section {
  padding: 60px 24px 80px;
}

.ranking-preview-section {
  background: var(--c-ink);
}

.review-preview-section {
  background: var(--c-ink-soft);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.review-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 20px;
  row-gap: 6px;
  padding: 20px 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  color: var(--c-text);
  transition: border-color 0.2s, transform 0.15s;
}
.review-item:hover {
  border-color: var(--c-primary);
  transform: translateX(4px);
  color: var(--c-text);
}

.review-item > strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-primary-light);
  grid-column: 1;
  grid-row: 1;
}

.review-meta {
  font-size: 0.82rem;
  color: var(--c-text-faint);
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  white-space: nowrap;
}

.review-excerpt {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  grid-column: 1 / span 2;
  grid-row: 2;
  line-height: 1.5;
}

/* =============================================
   首页：正文区
============================================= */
.home-content-section {
  padding: 60px 24px 60px;
  background: var(--c-ink-soft);
}

/* =============================================
   FAQ 专用
============================================= */
.faq-intro {
  background: var(--c-surface);
  border: 1px solid var(--c-border-warm);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: var(--c-text-muted);
}
.faq-intro a { color: var(--c-primary-light); }

.faq-content .prose details {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-content .prose details summary {
  padding: 14px 18px;
  font-weight: 600;
  cursor: pointer;
  background: var(--c-surface);
  color: var(--c-text);
  list-style: none;
  transition: background 0.2s;
}
.faq-content .prose details summary::-webkit-details-marker { display: none; }
.faq-content .prose details[open] summary { background: var(--c-surface-2); }
.faq-content .prose details > *:not(summary) {
  padding: 14px 18px;
  background: var(--c-ink);
}

/* =============================================
   About：统计
============================================= */
.stat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.stat-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-primary-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

/* =============================================
   引用区 / Lead
============================================= */
.lead-text {
  font-size: 1.05rem;
  color: var(--c-text);
  line-height: 1.7;
}
.lead-text a { color: var(--c-primary-light); text-decoration: underline; }

/* =============================================
   Footer
============================================= */
.site-footer {
  background: var(--c-ink-soft);
  border-top: 1px solid var(--c-border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  font-size: 3rem;
  color: var(--c-primary-light);
  display: block;
  line-height: 1.1;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--c-text-faint);
  line-height: 1.6;
  max-width: 320px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav li a {
  display: block;
  font-size: 0.9rem;
  color: var(--c-text-muted);
  padding: 6px 0;
  min-height: 40px;
  line-height: 28px;
  transition: color 0.2s;
}
.footer-nav li a:hover { color: var(--c-primary-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--c-text-faint);
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--c-text-faint);
  transition: color 0.2s;
  min-height: 40px;
  line-height: 40px;
}
.footer-links a:hover { color: var(--c-primary-light); }

/* =============================================
   SVG 装饰 / Blob 动效
============================================= */
@media (prefers-reduced-motion: no-preference) {
  .hero-blob {
    animation: blobFloat 8s ease-in-out infinite alternate;
  }

  @keyframes blobFloat {
    from { transform: scale(1) rotate(0deg); }
    to   { transform: scale(1.06) rotate(6deg); }
  }

  .feature-card,
  .review-item {
    will-change: transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================
   响应式
============================================= */
@media (max-width: 900px) {
  .content-with-aside {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .sidebar-card {
    flex: 1 1 200px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 680px) {
  html { font-size: 17px; }

  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .brand-name { font-size: 1.4rem; }

  .main-nav {
    display: none;
  }

  .hero-section {
    min-height: 70vh;
    padding: 80px 16px 60px;
  }

  .hero-blob-wrap { display: none; }

  .hero-cta-group { flex-direction: column; align-items: center; }

  .page-hero-section {
    padding: 60px 16px 40px;
  }

  .content-section,
  .ranking-preview-section,
  .review-preview-section,
  .home-content-section {
    padding: 40px 16px 56px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .review-item {
    grid-template-columns: 1fr;
  }
  .review-meta { grid-column: 1; grid-row: 2; }
  .review-excerpt { grid-row: 3; }

  .post-nav { flex-direction: column; }
  .post-nav .btn { width: 100%; justify-content: center; }

  .footer-inner { padding: 32px 16px 24px; }
  .footer-brand { font-size: 2.2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  .btn-cta { padding: 10px 16px; font-size: 0.88rem; }
}

@media (max-width: 400px) {
  html { font-size: 16px; }

  .header-inner { gap: 8px; }
  .brand-name { font-size: 1.2rem; }

  .hero-section h1 { font-size: 1.5rem; }
  .page-hero-section h1 { font-size: 1.3rem; }
}

/* =============================================
   滚差视差（仅非减少动效）
============================================= */
@media (prefers-reduced-motion: no-preference) {
  .hero-section {
    background-attachment: fixed;
  }
}

/* =============================================
   私隐页特殊排版
============================================= */
.privacy-prose h2 {
  margin-top: 2.5em;
}

/* =============================================
   辅助工具类
============================================= */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
