/* ============================================================
   蛋圈漫画 官网样式表 v2（抹茶奶绿 · 蛋黄黄 清新泡泡风）
   主题：奶绿白底 + 抹茶绿主色 + 蛋黄黄点缀，圆润气泡装饰；
   Hero 泡泡视觉 + 数据卡 + 杂志式图文交错体验区；
   界面截图以 9:16 手机框全屏展示，零裁切。
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #F6FBF2;
  --bg-2: #EDF7E6;
  --card: #FFFFFF;
  --green: #2FA96B;
  --green-deep: #1E8A52;
  --lime: #7ED957;
  --amber: #FFC24B;
  --ink: #1F3129;
  --text-soft: #6B8376;
  --line: rgba(47, 169, 107, 0.16);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --shadow-card: 0 14px 34px rgba(47, 169, 107, 0.14);
  --shadow-soft: 0 24px 56px rgba(47, 169, 107, 0.22);
  --grad: linear-gradient(135deg, #2FA96B, #7ED957);
  --header-h: 72px;
  --space: clamp(72px, 10vw, 128px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

.container { width: min(1160px, 100% - 48px); margin-inline: auto; }

.container-narrow { width: min(820px, 100% - 48px); }

.section { padding-block: var(--space); }

.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--green-deep);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(27px, 3.8vw, 40px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 1px;
}

.section-sub { margin-top: 12px; color: var(--text-soft); font-size: 15px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 700;
  padding: 13px 26px;
  font-size: 15px;
  min-height: 46px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(47, 169, 107, 0.42);
}

.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 32px rgba(47, 169, 107, 0.52); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--green-deep);
  border: 1px solid rgba(47, 169, 107, 0.4);
}

.btn-ghost:hover { border-color: var(--green); transform: translateY(-2px); }

.btn-green {
  background: #14301F;
  color: var(--amber);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.30);
}

.btn-green:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42); }

.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-xl { padding: 18px 44px; font-size: 17px; }

/* ---------- 顶部导航 ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(246, 251, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(47, 169, 107, 0.12);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }

.brand-logo { width: 42px; height: 42px; border-radius: 14px; box-shadow: 0 0 0 2px rgba(47, 169, 107, 0.35); }

.brand-name { font-size: 20px; font-weight: 900; letter-spacing: 1px; }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  color: var(--text-soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover { color: var(--ink); background: rgba(47, 169, 107, 0.12); }

.nav a.active { color: #fff; background: var(--grad); font-weight: 700; box-shadow: 0 6px 16px rgba(47, 169, 107, 0.35); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero（奶绿泡泡） ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 88px);
  padding-bottom: 84px;
  overflow: hidden;
  background:
    radial-gradient(560px 460px at 88% 12%, rgba(126, 217, 87, 0.22), transparent 65%),
    radial-gradient(480px 420px at 6% 24%, rgba(47, 169, 107, 0.10), transparent 65%);
}

.hero-blobs { position: absolute; inset: 0; z-index: 0; }

.blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), rgba(126, 217, 87, 0.18));
  border: 1px solid rgba(47, 169, 107, 0.20);
  opacity: 0.8;
}

.blob-1 { width: 220px; height: 220px; top: 14%; right: 6%; }
.blob-2 { width: 130px; height: 130px; top: 68%; left: 4%; }
.blob-3 { width: 84px; height: 84px; bottom: 10%; right: 40%; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 72px;
}

.hero-text { max-width: 580px; }

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(47, 169, 107, 0.12);
  border: 1px solid rgba(47, 169, 107, 0.35);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
  text-shadow: 0 4px 16px rgba(255, 194, 75, 0.5);
  -webkit-text-stroke: 1px #E8A800;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-soft);
  margin-bottom: 34px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }

.hero-note { font-size: 14px; color: var(--text-soft); }

/* 主视觉：9:16 手机框（截图全屏展示，零裁切） */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.hero-card {
  position: relative;
  width: min(300px, 88%);
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  border: 6px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 26px 60px rgba(47, 169, 107, 0.30), 0 0 0 9px rgba(126, 217, 87, 0.22);
  overflow: hidden;
  background: #fff;
  transform: rotate(-1.4deg);
  transition: transform 0.3s ease;
}

.hero-card:hover { transform: rotate(0deg) scale(1.02); }

.hero-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.hero-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 6px 12px 6px 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  font-size: 13px;
  font-weight: 700;
  color: #1F3129;
}

.hero-chip img { width: 30px; height: 30px; border-radius: 11px; }

.hero-caption { font-size: 14px; color: var(--text-soft); }

/* ---------- 数据统计（白卡 + 渐变数字） ---------- */
.stats { padding-block: 44px; background: var(--bg-2); border-block: 1px solid var(--line); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }

.stat-num {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label { margin-top: 4px; font-size: 14px; color: var(--text-soft); }

/* ---------- 阅读体验（杂志式图文交错） ---------- */
.section-showcase { padding-top: 0; }

.feature-story {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 56px;
  padding: 36px;
  margin-bottom: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-story:hover { transform: translateY(-6px); border-color: rgba(47, 169, 107, 0.5); box-shadow: var(--shadow-card); }

.feature-story-reverse { grid-template-columns: 1.15fr 0.85fr; }

.feature-story-reverse .story-phone { order: 2; }

.feature-story-reverse .story-text { order: 1; }

.story-phone {
  width: min(210px, 80%);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  border: 6px solid #EAF7E0;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(47, 169, 107, 0.16);
}

.story-phone img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.story-phone-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #2FA96B, #7ED957);
}

.story-phone-brand img { width: 46%; height: auto; object-fit: contain; }

.story-text { padding: 10px 6px; }

.story-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(47, 169, 107, 0.38);
}

.story-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--green-deep);
  background: rgba(47, 169, 107, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.story-text h3 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 900;
  margin-bottom: 12px;
}

.story-text p { font-size: 15px; color: var(--text-soft); margin-bottom: 14px; max-width: 46ch; }

.story-note { margin-top: 30px; text-align: center; font-size: 13px; color: var(--text-soft); }

/* ---------- 下载 CTA（蛋黄黄撞色） ---------- */
.section-cta { padding-top: 0; }

.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #4A2C00;
  background: linear-gradient(150deg, #FFC24B, #FFD97A);
  border: 4px solid rgba(255, 255, 255, 0.65);
  border-radius: 36px;
  padding: 70px 32px;
  box-shadow: 0 24px 60px rgba(255, 194, 75, 0.40);
}

.cta-card::before,
.cta-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.cta-card::before { width: 330px; height: 330px; top: -150px; right: -100px; }
.cta-card::after { width: 270px; height: 270px; bottom: -130px; left: -80px; }

.cta-kicker {
  position: relative;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(74, 44, 0, 0.72);
  margin-bottom: 18px;
}

.cta-logo {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.cta-card h2 {
  position: relative;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.cta-card p { position: relative; font-size: 15px; opacity: 0.9; margin-bottom: 28px; }

.cta-note { margin-bottom: 0 !important; font-size: 13px !important; margin-top: 18px; opacity: 0.85 !important; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.open { border-color: rgba(47, 169, 107, 0.55); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.faq-arrow {
  flex: none;
  display: inline-flex;
  color: var(--green);
  transition: transform 0.25s ease;
}

.faq-arrow svg { width: 20px; height: 20px; }

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a p { padding: 0 24px 20px; font-size: 14.5px; color: var(--text-soft); }

/* ---------- 页脚（深抹茶绿） ---------- */
.footer {
  background: #14301F;
  color: #EAF7E0;
  padding: 56px 0 32px;
  margin-top: var(--space);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}

.footer-brand { display: flex; gap: 14px; align-items: center; }

.footer-brand img { width: 52px; height: 52px; border-radius: 16px; }

.footer-brand strong { display: block; font-size: 18px; font-weight: 900; }

.footer-brand span { display: block; font-size: 14px; color: #A8D8B8; }

.footer-nav { display: flex; gap: 6px; flex-wrap: wrap; }

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 14px;
  color: #A8D8B8;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
}

.footer-nav a:hover { color: #fff; background: rgba(126, 217, 87, 0.3); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  text-align: center;
  font-size: 13px;
  color: #A8D8B8;
}

.footer-disclaimer { margin-top: 6px; font-size: 12px; opacity: 0.85; }

/* ---------- 焦点可见性 ---------- */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .feature-story,
  .feature-story-reverse { grid-template-columns: 1fr; text-align: center; gap: 32px; }

  .feature-story-reverse .story-phone { order: 1; }
  .feature-story-reverse .story-text { order: 2; }

  .story-text p { max-width: none; }

  .story-phone { width: min(230px, 72%); }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(246, 251, 242, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px;
    display: none;
  }

  .nav.open { display: flex; }

  .nav a { padding: 12px 14px; font-size: 16px; }

  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 52px; }
  .hero-text { max-width: none; text-align: center; }
  .hero-cta, .hero-note { justify-content: center; }
  .hero { padding-top: calc(var(--header-h) + 44px); }
  .hero-card { width: min(280px, 80%); transform: rotate(0deg); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 620px) {
  .header-actions .btn-sm { display: none; }
  .container { width: min(1160px, 100% - 36px); }
  .container-narrow { width: min(820px, 100% - 36px); }
  .cta-card { padding: 54px 24px; }
  .feature-story { padding: 22px 16px; }
  .story-phone { width: min(250px, 80%); }
}

/* ---------- 动画（克制：仅首屏编排一次 + 计数滚动） ---------- */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge { animation: heroUp 0.6s ease both; }
.hero h1 { animation: heroUp 0.6s ease 0.12s both; }
.hero-sub { animation: heroUp 0.6s ease 0.22s both; }
.hero-cta { animation: heroUp 0.6s ease 0.32s both; }
.hero-note { animation: heroUp 0.6s ease 0.42s both; }
.hero-visual { animation: heroUp 0.7s ease 0.18s both; }

@keyframes blobFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.blob-1 { animation: blobFloat 7s ease-in-out infinite; }
.blob-2 { animation: blobFloat 9s ease-in-out 1s infinite; }
.blob-3 { animation: blobFloat 6s ease-in-out 0.5s infinite; }

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
