/* ============================================================
   栗子漫画 v2 — 淡粉紫白水彩少女风
   配色：淡粉白 #fdf4ff / 白卡 #ffffff / 深紫 #4a044e / 紫粉 #d946ef / 紫 #a855f7
   ============================================================ */

:root {
  --bg: #fdf4ff;
  --bg-soft: #fae8ff;
  --card: #ffffff;
  --line: #f5d0fe;
  --text: #4a044e;
  --text-soft: #a21caf;
  --pink: #d946ef;
  --purple: #a855f7;
  --gradient: linear-gradient(135deg, #d946ef, #a855f7);
  --radius: 20px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 导航 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 244, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img {
  width: 40px; height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
}
.brand-name em { font-style: normal; color: var(--pink); }
.brand-tag {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-soft);
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 24px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.nav-links a:hover { color: var(--pink); }
.nav-cta {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  background: var(--gradient);
  color: #fff;
  border-radius: 999px;
  transition: opacity 0.15s ease;
}
.nav-cta:hover { opacity: 0.9; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

/* ========== Hero ========== */
.hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(217, 70, 239, 0.12), transparent 60%),
    radial-gradient(500px 250px at 15% 80%, rgba(168, 85, 247, 0.1), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--pink);
  background: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  font-weight: 700;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 480px;
  margin-bottom: 24px;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  background: var(--gradient);
  color: #fff;
  border-radius: 999px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-ghost {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: #fff;
}
.hero-meta {
  font-size: 13px;
  color: var(--text-soft);
}
.hero-meta b { color: var(--text); font-weight: 700; }

.hero-art { display: flex; justify-content: center; }
.hero-art img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(217, 70, 239, 0.25);
}

/* ========== 功能卡 ========== */
.section { padding: 64px 0; }
.section-head { margin-bottom: 36px; text-align: center; }
.section-head h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
}
.section-head p { color: var(--text-soft); max-width: 560px; margin: 0 auto; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(217, 70, 239, 0.15);
}
.feature-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.feature-body { padding: 20px; }
.feature-body h3 { font-size: 17px; margin-bottom: 6px; }
.feature-body p { font-size: 14px; color: var(--text-soft); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 14px;
}
.feature-icon svg { width: 24px; height: 24px; }

/* ========== FAQ ========== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after {
  content: "+";
  font-size: 22px;
  color: var(--pink);
  font-weight: 700;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--text-soft);
  font-size: 14px;
  padding: 0 22px;
}
.faq-item.open .faq-a {
  max-height: 240px;
  padding: 0 22px 18px;
}

/* ========== 下载 CTA ========== */
.download-cta {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 56px 32px;
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 60px rgba(217, 70, 239, 0.3);
}
.download-cta h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}
.download-cta p { margin-bottom: 28px; opacity: 0.9; }
.download-cta .btn-primary {
  background: #fff;
  color: var(--pink);
}
.download-meta {
  font-size: 13px;
  margin-top: 16px;
  opacity: 0.85;
}
.download-meta b { font-weight: 700; }

/* ========== Footer ========== */
.site-footer {
  padding: 40px 0 48px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.site-footer .brand { justify-content: center; margin-bottom: 10px; }
.site-footer .brand img { width: 28px; height: 28px; }
.site-footer .brand-name { font-size: 16px; }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 20px;
    gap: 16px;
  }
}
