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

/* ===== CSS 变量 ===== */
:root {
  --c-pink: #ff0080;
  --c-magenta: #ff00ff;
  --c-dark: #26171f;
  --c-dark2: #1a0f16;
  --c-dark3: #320d25;
  --c-surface: #2e1222;
  --c-surface2: #3d1730;
  --c-text: #f0e0ea;
  --c-text-muted: #c090aa;
  --c-border: rgba(255,0,128,0.3);
  --c-border-bright: rgba(255,0,255,0.5);
  --nav-width: 220px;
  --font-display: 'Anton', 'Impact', sans-serif;
  --font-body: 'Epilogue', system-ui, -apple-system, sans-serif;
  --radius-pill: 999px;
  --transition: 0.25s ease;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-dark2);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-pink); text-decoration: none; }
a:hover { color: var(--c-magenta); }
a:focus-visible { outline: 2px solid var(--c-magenta); outline-offset: 3px; border-radius: 2px; }
ul, ol { list-style: none; }
dl, dt, dd { margin: 0; padding: 0; }

/* ===== Aurora 背景动画 ===== */
@keyframes aurora-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes hue-spin {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
@keyframes float-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { opacity: 0.15; }
  50%  { opacity: 0.35; }
  100% { opacity: 0.15; }
}

/* ===== 布局壳 ===== */
.site-shell {
  display: flex;
  min-height: 100vh;
}

/* ===== 左侧固定导航 ===== */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  background: var(--c-dark2);
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}
.side-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,0,128,0.08) 0%, transparent 60%, rgba(255,0,255,0.06) 100%);
  pointer-events: none;
}

.nav-brand {
  padding: 20px 16px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}
.brand-mark { width: 44px; height: 44px; object-fit: contain; }
.brand-icon {
  font-size: 32px;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 0 8px var(--c-pink));
}

/* 导航 dl/dt/dd */
.nav-dl {
  padding: 12px 0;
  width: 100%;
}
.nav-dl dt {
  display: block;
}
.nav-dl dt dd {
  display: block;
}
.nav-dl dt dd a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-muted);
  border-left: 3px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  line-height: 1.4;
}
.nav-dl dt dd a:hover,
.nav-dl dt dd a[aria-current="page"] {
  color: var(--c-text);
  background: rgba(255,0,128,0.1);
  border-left-color: var(--c-pink);
}
.nav-dl dt dd a[aria-current="page"] {
  color: var(--c-pink);
}

/* ===== 主体内容区 ===== */
.page-body {
  margin-left: var(--nav-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
main { flex: 1; }

/* ===== 通用 wrap ===== */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Hero 区块 ===== */
.hero-section,
.review-hero-section,
.compare-hero-section,
.ranking-hero-section,
.faq-hero-section,
.about-hero-section,
.privacy-hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--c-dark2);
}
.hero-section::before,
.review-hero-section::before,
.compare-hero-section::before,
.ranking-hero-section::before,
.faq-hero-section::before,
.about-hero-section::before,
.privacy-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 80% 50%, rgba(255,0,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 30%, rgba(255,0,128,0.20) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 60% 80%, rgba(255,0,128,0.10) 0%, transparent 50%),
    linear-gradient(135deg, var(--c-dark2) 0%, var(--c-dark3) 50%, var(--c-dark2) 100%);
  background-size: 200% 200%;
  animation: aurora-shift 12s ease infinite;
  pointer-events: none;
}

.hero-article {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 28px;
  gap: 40px;
}

.hero-text {
  flex: 0 0 55%;
  max-width: 55%;
  z-index: 2;
  animation: float-up 0.7s ease both;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-pink);
  background: rgba(255,0,128,0.12);
  border: 1px solid rgba(255,0,128,0.4);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  margin-bottom: 16px;
}

.hero-h1,
.page-h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(255,0,128,0.4);
}

.hero-desc {
  font-size: 16px;
  color: var(--c-text-muted);
  margin-bottom: 28px;
  max-width: 460px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--c-pink), var(--c-magenta));
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  text-shadow: none;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); color: #fff; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 24px;
  background: transparent;
  color: var(--c-text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-border-bright);
  transition: background var(--transition), color var(--transition);
}
.btn-ghost:hover { background: rgba(255,0,255,0.12); color: var(--c-magenta); }

.hero-media {
  flex: 0 0 40%;
  max-width: 40%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-bg-text {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 160px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,0,128,0.25);
  letter-spacing: 0.05em;
  animation: shimmer 4s ease infinite;
  user-select: none;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  mix-blend-mode: luminosity;
  opacity: 0.7;
}

.hero-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(255,0,128,0.15) 0%, rgba(255,0,255,0.10) 100%);
  border: 1px solid var(--c-border);
}

.hero-compact { min-height: 30vh; }

/* ===== 面包屑 ===== */
.breadcrumb {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-pink); }

/* ===== 日期 ===== */
.date-row { margin: 8px 0 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.pub-date, .mod-date {
  font-size: 13px;
  color: var(--c-text-muted);
  font-weight: 500;
}

/* ===== 内容区通用 ===== */
.content-section {
  padding: 48px 0 64px;
}
.home-content { padding-top: 32px; }

/* 含侧边栏的布局 */
.review-layout,
.compare-layout,
.ranking-layout,
.faq-layout,
.about-layout,
.privacy-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* ===== aside 侧边栏（内容左侧）===== */
.content-aside {
  flex: 0 0 220px;
  min-width: 0;
  order: -1;
}
.aside-inner {
  position: sticky;
  top: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 20px;
}
.aside-title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--c-pink);
  margin-bottom: 10px;
}
.aside-links { display: flex; flex-direction: column; gap: 4px; }
.aside-links li a {
  display: block;
  padding: 7px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-muted);
  border-bottom: 1px solid rgba(255,0,128,0.1);
  transition: color var(--transition);
}
.aside-links li:last-child a { border-bottom: none; }
.aside-links li a:hover { color: var(--c-pink); }
.aside-cta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===== 文章容器 ===== */
.content-article { flex: 1; min-width: 0; }

/* ===== 标题 ===== */
.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--c-text);
  margin-bottom: 12px;
}
hr {
  border: none;
  border-top: 1px solid var(--c-border-bright);
  margin-bottom: 28px;
  position: relative;
}
hr::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-pink), var(--c-magenta));
}

.page-header { margin-bottom: 24px; }
.page-header .page-h1 { font-size: clamp(24px, 3.5vw, 42px); }

/* ===== 正文排版 ===== */
.prose-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
}
.prose-body h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--c-text);
  margin: 36px 0 8px;
  letter-spacing: 0.03em;
}
.prose-body h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
  margin: 24px 0 8px;
}
.prose-body p { margin-bottom: 16px; }
.prose-body ul, .prose-body ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.prose-body ul { list-style: disc; }
.prose-body ol { list-style: decimal; }
.prose-body li { margin-bottom: 6px; }
.prose-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 15px;
}
.prose-body th, .prose-body td {
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  text-align: left;
}
.prose-body th {
  background: var(--c-surface);
  color: var(--c-pink);
  font-weight: 700;
}
.prose-body td { color: var(--c-text-muted); }
.prose-body tr:nth-child(even) td { background: rgba(255,0,128,0.04); }
.prose-body a { color: var(--c-pink); border-bottom: 1px solid rgba(255,0,128,0.3); }
.prose-body a:hover { color: var(--c-magenta); border-bottom-color: var(--c-magenta); }
.prose-body strong { color: #fff; font-weight: 700; }
.prose-body blockquote {
  border-left: 3px solid var(--c-pink);
  padding: 12px 20px;
  background: rgba(255,0,128,0.06);
  margin: 20px 0;
  color: var(--c-text-muted);
  font-style: italic;
}

/* FAQ 样式 */
.faq-body details {
  border: 1px solid var(--c-border);
  margin-bottom: 12px;
  background: var(--c-surface);
}
.faq-body details summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  color: var(--c-text);
  list-style: none;
}
.faq-body details summary::-webkit-details-marker { display: none; }
.faq-body details[open] summary { color: var(--c-pink); border-bottom: 1px solid var(--c-border); }
.faq-body details .detail-content { padding: 14px 18px; }

/* ===== 首页卡片网格 ===== */
.cards-section { padding: 0 0 48px; }
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 4px;
}
.app-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 22px 20px;
  transition: border-color var(--transition), transform var(--transition);
}
.app-card:hover {
  border-color: var(--c-pink);
  transform: translateY(-3px);
}
.app-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.app-card h3 a { color: var(--c-text); }
.app-card h3 a:hover { color: var(--c-pink); }
.app-card p { font-size: 14px; color: var(--c-text-muted); line-height: 1.6; }

/* ===== 快速入口 ===== */
.quick-nav-section { padding: 0 0 56px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-border-bright);
  color: var(--c-text-muted);
  font-size: 14px;
  font-weight: 600;
  background: rgba(255,0,255,0.06);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.pill-link:hover {
  background: rgba(255,0,128,0.14);
  color: var(--c-pink);
  border-color: var(--c-pink);
}

/* ===== 排行榜 ===== */
.rank-list-title { margin-top: 40px; }
.rank-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.rank-item { opacity: 0; transform: translateY(20px); }
.rank-item.revealed { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }
.rank-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 18px 20px;
  transition: border-color var(--transition);
}
.rank-card:hover { border-color: var(--c-pink); }
.rank-num {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--c-pink);
  flex-shrink: 0;
  width: 52px;
}
.rank-info { flex: 1; }
.rank-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.rank-info h3 a { color: var(--c-text); }
.rank-info h3 a:hover { color: var(--c-pink); }
.rank-info p { font-size: 14px; color: var(--c-text-muted); line-height: 1.6; }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--c-dark2);
  border-top: 1px solid var(--c-border);
  padding: 0;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-pink), var(--c-magenta), transparent);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--c-pink);
  margin-bottom: 14px;
}

.footer-address {
  font-style: normal;
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.9;
}
.footer-address strong { color: var(--c-text); font-weight: 700; }

/* 页脚 nav-dl */
.footer-col .nav-dl { padding: 0; }
.footer-col .nav-dl dt dd a {
  font-size: 13px;
  min-height: 36px;
  padding: 6px 0;
  border-left: none;
  background: none;
  color: var(--c-text-muted);
}
.footer-col .nav-dl dt dd a:hover {
  color: var(--c-pink);
  background: none;
  border-left: none;
}

/* 页脚 ul */
.footer-links { display: flex; flex-direction: column; gap: 0; }
.footer-links li a {
  display: block;
  padding: 7px 0;
  font-size: 13px;
  color: var(--c-text-muted);
  border-bottom: 1px solid rgba(255,0,128,0.08);
  transition: color var(--transition);
}
.footer-links li:last-child a { border-bottom: none; }
.footer-links li a:hover { color: var(--c-pink); }

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding: 18px 28px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--c-text-muted);
}

/* ===== 滚动揭示动效 ===== */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
}
.stagger-item.revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ===== 移动端 ===== */
@media (max-width: 900px) {
  :root { --nav-width: 0px; }

  .side-nav {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    border-right: none;
    border-top: 1px solid var(--c-border);
    z-index: 200;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .side-nav::before { display: none; }
  .nav-brand {
    padding: 8px 12px;
    border-bottom: none;
    border-right: 1px solid var(--c-border);
    min-height: 52px;
    flex-shrink: 0;
  }
  .brand-icon { font-size: 22px; }

  .side-nav nav { overflow-x: auto; flex: 1; }
  .nav-dl {
    display: flex;
    flex-direction: row;
    padding: 0;
    white-space: nowrap;
  }
  .nav-dl dt { display: inline-flex; }
  .nav-dl dt dd a {
    min-height: 52px;
    padding: 6px 14px;
    font-size: 12px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .nav-dl dt dd a:hover,
  .nav-dl dt dd a[aria-current="page"] {
    border-left: none;
    border-bottom-color: var(--c-pink);
    background: rgba(255,0,128,0.08);
  }

  .page-body {
    margin-left: 0;
    padding-bottom: 60px;
  }

  .hero-article {
    flex-direction: column;
    padding: 32px 20px;
    gap: 24px;
  }
  .hero-text { flex: none; max-width: 100%; }
  .hero-media {
    flex: none;
    max-width: 100%;
    width: 100%;
    justify-content: flex-end;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.3;
  }

  .hero-section,
  .review-hero-section,
  .compare-hero-section,
  .ranking-hero-section,
  .faq-hero-section,
  .about-hero-section,
  .privacy-hero-section {
    min-height: auto;
  }

  .wrap { padding: 0 16px; }

  .review-layout,
  .compare-layout,
  .ranking-layout,
  .faq-layout,
  .about-layout,
  .privacy-layout {
    flex-direction: column;
    gap: 24px;
  }
  .content-aside { flex: none; width: 100%; order: 0; }
  .aside-inner { position: static; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 16px 20px;
  }
  .footer-bottom { padding: 14px 16px; }

  .app-grid { grid-template-columns: 1fr; }
  .quick-links { gap: 8px; }
  .hero-h1, .page-h1 { font-size: clamp(22px, 6vw, 38px); }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn-primary, .btn-ghost { font-size: 14px; padding: 9px 18px; }
  .rank-card { flex-direction: column; gap: 8px; }
  .rank-num { font-size: 28px; width: auto; }
  .section-title { font-size: 18px; }
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .stagger-item, .rank-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
