@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* ===== 变量 ===== */
:root {
  --c-primary: #FF4D6D;
  --c-dark: #1A1A2E;
  --c-light: #F5F5F0;
  --c-primary-dark: #e6304f;
  --c-primary-light: #ff8099;
  --c-accent: #FF9F1C;
  --c-accent2: #2EC4B6;
  --c-text: #1A1A2E;
  --c-text-muted: #5a5a7a;
  --c-border: #e0e0e8;
  --c-card-bg: #ffffff;
  --c-hero-overlay: rgba(26,26,46,0.72);
  --nav-h: 56px;
  --radius: 4px;
  --font: 'Plus Jakarta Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --max-w: 800px;
  --transition: 160ms ease;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-light);
  min-height: 100vh;
  padding-bottom: var(--nav-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }
ol, ul { list-style: none; }
button, input, select, textarea { font: inherit; }

/* ===== 页面骨架 ===== */
.page-wrap { display: flex; flex-direction: column; min-height: 100vh; }

/* ===== 导航（底部固定条） ===== */
.site-header {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--c-dark);
  height: var(--nav-h);
  border-top: 2px solid var(--c-primary);
}
.site-nav {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.site-nav::-webkit-scrollbar { display: none; }

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 0.75rem 0 0;
  margin-right: 0.5rem;
  border-right: 2px solid var(--c-primary);
}
.brand-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-light);
  white-space: nowrap;
}
.brand-logo { height: 28px; width: auto; }

.site-nav > a:not(.brand-link) {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: rgba(245,245,240,0.8);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0 0.65rem;
  min-height: 40px;
  transition: color var(--transition);
  flex-shrink: 0;
  border-radius: var(--radius);
}
.site-nav > a:not(.brand-link):hover,
.site-nav > a:not(.brand-link)[aria-current="page"] {
  color: var(--c-primary);
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  min-height: 44px;
  transition: background var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--c-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  min-height: 44px;
  border: 2px solid var(--c-primary);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.btn-secondary:hover { background: var(--c-primary); color: #fff; }

/* ===== 眉题（eyebrow） ===== */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: rgba(255,77,109,0.1);
  padding: 0.2em 0.6em;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}
.eyebrow--light {
  color: var(--c-light);
  background: rgba(245,245,240,0.15);
}

/* ===== Hero（首页） ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--c-dark);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,77,109,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,77,109,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 2.5rem 1.5rem 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--c-light);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.hero-desc {
  color: rgba(245,245,240,0.8);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
}
.hero-skew {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--c-light);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 4;
}

/* ===== 页面级 Hero（非首页） ===== */.page-hero {
  position: relative;
  min-height: 280px;
  background: var(--c-dark);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero--ranking { background: #16213e; }
.page-hero--compare { background: #0f3460; }
.page-hero--faq { background: #1a1a2e; }

.page-hero-content {
  position: relative;
  z-index: 3;
  padding: 2rem 1.5rem 3.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.page-hero-content h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--c-light);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.page-hero-content p {
  color: rgba(245,245,240,0.75);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.page-hero-content time {
  font-size: 0.8rem;
  color: var(--c-primary-light);
}

/* ===== Review 头部 ===== */
.review-header {
  background: var(--c-dark);
  padding: 2rem 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}
.review-header-inner {
  flex: 1 1 300px;
  max-width: var(--max-w);
}
.review-header-inner h1 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--c-light);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.review-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.review-meta time {
  font-size: 0.8rem;
  color: var(--c-primary-light);
}
.review-hero-media {
  flex: 0 0 auto;
}
.review-hero-img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ===== About 头部 ===== */
.about-header {
  background: var(--c-primary);
  padding: 3rem 1.5rem 3rem;
}
.about-header-inner { max-width: var(--max-w); margin: 0 auto; }
.about-header-inner h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.about-lead { color: rgba(255,255,255,0.85); font-size: 1rem; }

/* ===== Privacy 头部 ===== */
.privacy-header {
  background: var(--c-dark);
  padding: 2.5rem 1.5rem;
  border-bottom: 3px solid var(--c-primary);
}
.privacy-header-inner { max-width: var(--max-w); margin: 0 auto; }
.privacy-header-inner h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--c-light);
  margin-bottom: 0.4rem;
}
.privacy-header-inner p {
  color: rgba(245,245,240,0.65);
  font-size: 0.85rem;
}
.privacy-header-inner time { color: var(--c-primary-light); }

/* ===== 主体布局 ===== */
.body-wrap {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.main-content { width: 100%; }

/* ===== 正文 ===== */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
}
.prose h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-dark);
  margin: 2rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 2px solid var(--c-primary);
}
.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-dark);
  margin: 1.5rem 0 0.5rem;
}
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol {
  margin: 0.75rem 0 1rem 1.25rem;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--c-primary); font-weight: 500; }
.prose a:hover { color: var(--c-primary-dark); }
.prose strong { font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.prose th { background: var(--c-dark); color: var(--c-light); padding: 0.6rem 0.75rem; text-align: left; font-weight: 700; }
.prose td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--c-border); }
.prose tr:nth-child(even) td { background: rgba(255,77,109,0.04); }
.prose blockquote {
  border-left: 4px solid var(--c-primary);
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: rgba(255,77,109,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.prose time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-bottom: 0.75rem;
}
.prose--faq h2 { border-top: none; border-left: 4px solid var(--c-primary); padding: 0.4rem 0.75rem; background: rgba(255,77,109,0.06); border-radius: 0 var(--radius) var(--radius) 0; }
.prose--legal h2 { font-size: 1.1rem; border-top: 1px solid var(--c-border); border-left: none; padding-top: 1rem; background: none; }

/* ===== h2 眉题装饰（结构抽签要求：h2 前有 small） ===== */
small.eyebrow + h2 {
  margin-top: 0.25rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 1rem;
}

/* ===== 卡片列表（ol > li > a） ===== */
.card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}
.card-list--wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--c-card-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  color: var(--c-text);
  transition: border-color var(--transition), background var(--transition);
}
.card:hover {
  border-color: var(--c-primary);
  background: rgba(255,77,109,0.04);
  color: var(--c-text);
}
.card strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.35;
}
.card small {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  line-height: 1.4;
}
.card--flat { border-color: transparent; background: rgba(26,26,46,0.04); }
.card--flat:hover { border-color: var(--c-primary); background: rgba(255,77,109,0.04); }

/* ===== 排行列表 ===== */
.rank-ol {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.rank-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--c-card-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color var(--transition);
}
.rank-item:hover { border-color: var(--c-primary); }
.rank-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2rem;
}
.rank-item > a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--c-text);
  flex: 1;
}
.rank-item strong { font-size: 0.95rem; font-weight: 700; color: var(--c-dark); }
.rank-item small { font-size: 0.8rem; color: var(--c-text-muted); }
.rank-item time { font-size: 0.75rem; color: var(--c-text-muted); }

/* ===== 对比列表 ===== */
.compare-ol {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--c-card-bg);
  border-left: 4px solid var(--c-accent2);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  border-top: 1.5px solid var(--c-border);
  border-right: 1.5px solid var(--c-border);
  border-bottom: 1.5px solid var(--c-border);
  transition: border-color var(--transition);
}
.compare-item:hover { border-left-color: var(--c-primary); }
.compare-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-accent2);
  flex-shrink: 0;
  min-width: 2rem;
}
.compare-item > a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--c-text);
  flex: 1;
}
.compare-item strong { font-size: 0.95rem; font-weight: 700; color: var(--c-dark); }
.compare-item small { font-size: 0.8rem; color: var(--c-text-muted); }
.compare-item time { font-size: 0.75rem; color: var(--c-text-muted); }

/* ===== CTA 块 ===== */
.review-cta-block {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255,77,109,0.06);
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,77,109,0.2);
}
.faq-cta, .compare-cta, .about-links {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--c-card-bg);
  border-radius: var(--radius);
  border: 1.5px solid var(--c-border);
}
.faq-cta h2, .compare-cta h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-dark);
  margin: 0.25rem 0 0.5rem;
}
.faq-cta p, .compare-cta p { font-size: 0.9rem; color: var(--c-text-muted); margin-bottom: 1rem; }
.faq-cta { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.faq-cta .btn-primary, .faq-cta .btn-secondary { margin-top: 0.25rem; }

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(245,245,240,0.6);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(245,245,240,0.7); }
.breadcrumb a:hover { color: var(--c-primary-light); }
.breadcrumb span[aria-current="page"] { color: var(--c-light); }

/* ===== 首页区块 ===== */
.home-cards, .home-discovery {
  margin-top: 2.5rem;
}
.rank-list-wrap, .rank-reviews,
.related-pages, .privacy-nav {
  margin-top: 2.5rem;
}
.compare-grid { margin-top: 2.5rem; }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--c-dark);
  color: var(--c-light);
  margin-bottom: var(--nav-h);
}
.footer-cta {
  background: var(--c-primary);
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.footer-cta strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.footer-cta span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  flex: 1 1 200px;
}
.footer-cta .btn-primary {
  background: var(--c-dark);
  color: var(--c-light);
  flex-shrink: 0;
}
.footer-cta .btn-primary:hover { background: #2a2a4e; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.footer-cols dl dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-primary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.footer-cols dl dd { margin-bottom: 0.5rem; }
.footer-cols dl dd a {
  color: rgba(245,245,240,0.7);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-cols dl dd a:hover { color: var(--c-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  color: rgba(245,245,240,0.5);
}
.footer-bottom a {
  color: rgba(245,245,240,0.55);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--c-light); }

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== 无障碍 ===== */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* ===== 桌面断点 ===== */
@media (min-width: 640px) {
  .card-list { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding: 3rem 2rem 5rem; }
  .body-wrap { padding: 2.5rem 2rem 4rem; }
  .review-hero-img { width: 240px; height: 160px; }
}

@media (min-width: 900px) {
  .card-list { grid-template-columns: repeat(3, 1fr); }
  .card-list--wide { grid-template-columns: repeat(4, 1fr); }
  .hero-content { padding: 4rem 2.5rem 6rem; }
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
