/* ==========================================================================
   汗汗漫画 官网 · style.css
   主题：玫红品红 · 版式：居中 Hero / 漫画分类胶囊 / 功能卡片 / 双屏展示
   ========================================================================== */

:root {
  --pink-900: #3d0f22;
  --pink-800: #52142f;
  --pink-700: #7c1f45;
  --pink-600: #e0296f;
  --pink-500: #f04a86;
  --pink-400: #ff6ba0;
  --pink-300: #ff9dbc;
  --pink-200: #ffc6d9;
  --pink-100: #ffe4ee;
  --pink-50: #fff5f9;
  --gold: #ffd166;
  --cream: #fffafc;
  --ink: #3a1626;
  --ink-2: #6d4a5c;
  --ink-3: #a38294;
  --card: #ffffff;
  --line: #f6e0e9;
  --line-dark: rgba(255, 255, 255, .14);
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(61, 15, 34, .06);
  --shadow-md: 0 14px 36px -16px rgba(61, 15, 34, .28);
  --container: 1160px;
  --nav-h: 68px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--pink-500); outline-offset: 2px; }

.container { width: min(var(--container), 92%); margin: 0 auto; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 30px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--pink-600); color: #fff; box-shadow: 0 8px 20px -10px rgba(224, 41, 111, .55); }
.btn-primary:hover { background: var(--pink-700); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .08); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .16); }
.btn-light { background: #fff; color: var(--pink-700); }
.btn-light:hover { background: var(--pink-50); }
.btn-lg { padding: 16px 38px; font-size: 17px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- 导航 ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 250, 252, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: .01em; color: var(--pink-700); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color .2s ease, background-color .2s ease;
}
.nav-link:hover { color: var(--pink-700); background: var(--pink-50); }
.nav-link.active { color: var(--pink-600); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--pink-700); transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero：居中大标题 + 手机 ---------- */
.hero {
  padding: calc(var(--nav-h) + 64px) 0 40px;
  background:
    radial-gradient(560px 300px at 85% 0%, rgba(255, 157, 188, .28), transparent 62%),
    radial-gradient(480px 280px at 8% 90%, rgba(255, 198, 217, .3), transparent 60%),
    linear-gradient(180deg, #fff0f6, var(--cream));
}
.hero-inner { text-align: center; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--pink-200);
  border-radius: 999px;
  background: var(--pink-50);
  color: var(--pink-700);
  font-size: 13px;
  font-weight: 600;
}
.hero-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink-500); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--pink-800);
}
.hero-sub { margin: 18px auto 0; max-width: 620px; color: var(--ink-2); font-size: 16.5px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

.hero-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 44px;
}
.hero-phone-wrap::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 160, .22), transparent 68%);
  pointer-events: none;
}
.phone-hero { width: 258px; }

/* 数据条 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
  padding: 26px 8px 0;
  border-top: 1px solid var(--line);
}
.hero-stat dt { font-size: 26px; font-weight: 800; color: var(--pink-600); line-height: 1.2; }
.hero-stat .stat-suffix { font-size: 15px; font-weight: 700; }
.hero-stat dd { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* ---------- 手机相框 ---------- */
.phone {
  position: relative;
  border-radius: 42px;
  border: 10px solid var(--pink-800);
  background: var(--pink-800);
  box-shadow: 0 18px 44px -16px rgba(61, 15, 34, .5);
  overflow: hidden;
  aspect-ratio: 9 / 19;
  flex: none;
}
.phone-top {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 20px;
  border-radius: 999px;
  background: var(--pink-800);
  z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-shot { width: 226px; border-width: 8px; border-radius: 34px; }
.phone-shot .phone-top { width: 64px; height: 16px; top: 7px; }

/* ---------- 区块通用 ---------- */
.section { padding: 92px 0; }
.section-alt { background: #fff; }
.section-cta { background: var(--cream); }
.section-dark {
  background:
    radial-gradient(720px 360px at 12% 0%, rgba(255, 107, 160, .16), transparent 60%),
    var(--pink-900);
  color: #ffe8f0;
}
.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pink-600);
  margin-bottom: 12px;
}
.section-label::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--pink-400); }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.3; color: var(--pink-800); letter-spacing: -.01em; }
.section-lead { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
.section-dark .section-label { color: var(--pink-300); }
.section-dark .section-label::before { background: var(--pink-300); }
.section-dark h2 { color: #fff; }
.section-dark .section-lead { color: rgba(255, 232, 240, .72); }

/* ---------- 热门漫画：胶囊 ---------- */
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 900px; margin: 0 auto; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.chip:hover { transform: translateY(-2px); border-color: var(--pink-300); box-shadow: var(--shadow-sm); }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--pink-500)); }

/* ---------- 功能特色：卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; }
.feature-card {
  padding: 30px 26px 26px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--pink-300); box-shadow: var(--shadow-md); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--pink-100);
  color: var(--pink-600);
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 17px; color: var(--pink-800); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }

/* ---------- 应用展示：双屏 ---------- */
.showcase-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 860px; margin: 0 auto; }
.showcase-item { text-align: center; }
.showcase-item .phone { margin: 0 auto; }
.showcase-item figcaption { margin-top: 20px; }
.showcase-item h3 { font-size: 17px; color: #fff; margin-bottom: 4px; }
.showcase-item p { font-size: 14px; color: rgba(255, 232, 240, .68); max-width: 300px; margin: 0 auto; }

/* ---------- 为什么选择：六宫格 ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; }
.why-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.why-card:hover { transform: translateY(-3px); border-color: var(--pink-200); box-shadow: var(--shadow-md); }
.why-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--pink-100);
  flex: none;
  min-width: 52px;
}
.why-card h3 { font-size: 16.5px; color: var(--pink-800); margin-bottom: 6px; }
.why-card p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }

/* ---------- 用户评价：四宫格 ---------- */
.voices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.voice-card {
  position: relative;
  padding: 28px 22px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.voice-card::before {
  content: "“";
  position: absolute;
  top: 6px; right: 16px;
  font-size: 52px;
  line-height: 1;
  color: var(--pink-100);
  font-family: Georgia, serif;
}
.voice-card p { font-size: 14.5px; color: var(--ink); line-height: 1.8; }
.voice-card footer { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 关于 + 数据带 ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 56px;
  padding: 34px 30px;
  border-radius: 24px;
  background:
    radial-gradient(480px 220px at 90% 0%, rgba(255, 107, 160, .2), transparent 60%),
    var(--pink-900);
  color: #fff;
}
.stats-band-item { text-align: center; }
.stats-band-item dt { font-size: 30px; font-weight: 800; color: var(--pink-300); line-height: 1.2; }
.stats-band-item dd { font-size: 13px; color: rgba(255, 232, 240, .65); margin-top: 4px; }

/* ---------- FAQ：手风琴 ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item.open { border-color: var(--pink-300); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--pink-800);
  text-align: left;
  cursor: pointer;
}
.faq-q svg { width: 20px; height: 20px; color: var(--pink-500); flex: none; transition: transform .3s ease; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 20px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- 下载 CTA：通栏 ---------- */
.cta-full {
  position: relative;
  padding: 64px 32px;
  text-align: center;
  border-radius: 28px;
  background:
    radial-gradient(480px 240px at 12% 0%, rgba(255, 198, 217, .3), transparent 62%),
    radial-gradient(420px 220px at 90% 100%, rgba(255, 157, 188, .26), transparent 60%),
    linear-gradient(135deg, var(--pink-700), var(--pink-500));
  color: #fff;
  overflow: hidden;
}
.cta-deco { position: absolute; inset: 0; pointer-events: none; }
.cta-deco::before, .cta-deco::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .22);
}
.cta-deco::before { width: 240px; height: 240px; left: -70px; top: -90px; }
.cta-deco::after { width: 170px; height: 170px; right: -50px; bottom: -70px; }
.cta-full h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.4; letter-spacing: -.01em; }
.cta-full p { margin-top: 14px; color: rgba(255, 255, 255, .85); }
.cta-full .btn { margin-top: 28px; }
.cta-note { font-size: 12.5px; color: rgba(255, 255, 255, .62) !important; margin-top: 16px !important; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--pink-900); color: rgba(255, 232, 240, .78); padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.brand-footer .brand-name { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 14px; max-width: 280px; }
.footer-col h3 { font-size: 15px; color: #fff; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255, 232, 240, .7); transition: color .2s ease; }
.footer-col a:hover { color: var(--pink-300); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 20px 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-bottom p { font-size: 12.5px; color: rgba(255, 232, 240, .5); }

/* ---------- 移动端下载条 / 返回顶部 ---------- */
.mobile-download {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px -12px rgba(61, 15, 34, .18);
}
.mobile-download-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-download strong { display: block; font-size: 15px; color: var(--pink-800); }
.mobile-download span { font-size: 12px; color: var(--ink-3); }

.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pink-200);
  border-radius: 50%;
  background: #fff;
  color: var(--pink-700);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--pink-50); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 滚动揭示动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .voices-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .showcase-pair { grid-template-columns: 1fr; gap: 40px; max-width: 420px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 4vw 20px;
    background: rgba(255, 250, 252, .98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .mobile-download { display: block; }
  body { padding-bottom: 62px; }
  .to-top { bottom: 78px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: calc(var(--nav-h) + 40px) 0 32px; }
  .phone-hero { width: 218px; }
  .feature-grid { grid-template-columns: 1fr; }
  .voices-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; padding: 26px 18px; }
  .cta-full { padding: 48px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom .container { flex-direction: column; }
  .btn-lg { padding: 14px 30px; }
  .chip { padding: 10px 18px; font-size: 14px; }
  /* 移动端触控目标 ≥ 44px */
  .btn { min-height: 44px; }
  .brand { min-height: 44px; align-items: center; }
  .nav-link { min-height: 44px; display: flex; align-items: center; }
}

/* ---------- 无障碍：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
