/* ==========================================================================
   BabyDaily 官网样式
   品牌色严格按三层使用（与 App 内 docs/design/design-system.md 一致）：
     soft   #FDE4EC → #F9C2D4   大面积浅粉底
     ink    #B02E5A             只用于 soft 底上的标题与金额
     accent #CE3872             全局主色：按钮 / 链接 / 强调
   白底上不用 ink 做正文，正文一律中性深色。
   ========================================================================== */

:root {
  --soft-a: #FDE4EC;
  --soft-b: #F9C2D4;
  --ink: #B02E5A;
  --accent: #CE3872;
  --accent-dark: #AE2A5E;
  --accent-wash: #FDF0F5;

  --text: #241B1F;
  --text-2: #5E5257;
  --text-3: #8C8085;
  --line: #F0E4E8;
  --bg: #FFFCFC;
  --surface: #FFFFFF;

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --shadow-s: 0 2px 10px rgba(176, 46, 90, 0.05);
  --shadow-m: 0 12px 30px rgba(176, 46, 90, 0.08);
  --shadow-l: 0 28px 60px rgba(176, 46, 90, 0.12);

  --max: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 252, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 17px;
  letter-spacing: 0.2px;
}

.brand:hover { color: var(--text); }

.brand svg { width: 30px; height: 30px; flex: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
}

.nav a { color: var(--text-2); }
.nav a:hover { color: var(--accent); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(206, 56, 114, 0.24);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(206, 56, 114, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(176, 46, 90, 0.18);
  color: var(--accent);
}

.btn-ghost:hover { background: #fff; border-color: rgba(176, 46, 90, 0.32); }

.btn[aria-disabled="true"] {
  cursor: default;
  opacity: 0.58;
  box-shadow: none;
}

.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--soft-a) 0%, var(--soft-b) 62%, #FBD3E0 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% -10%;
  height: 60%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255, 255, 255, 0.75), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: var(--ink);
  font-weight: 750;
}

.hero p.lead {
  margin: 0 0 30px;
  max-width: 30em;
  color: #6B4756;
  font-size: 17px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: #7C5766;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: #6B4756;
}

.hero-trust li { display: flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; flex: none; }

/* ---------- 手机示意 ---------- */

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
  min-height: 470px;
}

.phone {
  width: 240px;
  height: 486px;
  border-radius: 38px;
  background: #fff;
  border: 1px solid rgba(176, 46, 90, 0.1);
  box-shadow: var(--shadow-l);
  padding: 12px;
  position: relative;
  overflow: hidden;
  flex: none;
}

.phone.is-back {
  width: 218px;
  height: 440px;
  margin-bottom: -14px;
  transform: rotate(-5deg);
  box-shadow: 0 18px 44px rgba(176, 46, 90, 0.14);
}

.phone.is-front { transform: rotate(3deg); }

.phone .screen {
  height: 100%;
  border-radius: 28px;
  background: #FFFBFB;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.p-status {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px 2px;
  font-size: 9.5px;
  font-weight: 600;
  color: #3B2C32;
}

.p-title {
  padding: 4px 16px 10px;
  font-size: 15px;
  font-weight: 700;
  color: #2A1F24;
}

.p-title span { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-3); }

.p-hero {
  margin: 0 12px 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(150deg, #FDE4EC, #F9C2D4);
}

.p-hero b { display: block; font-size: 12.5px; color: var(--ink); }
.p-hero u {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.4px;
}
.p-hero small { display: block; margin-top: 2px; font-size: 9.5px; color: #96506A; }

.p-rows { padding: 0 12px; display: flex; flex-direction: column; gap: 7px; }

.p-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #F4E9ED;
}

.p-dot { width: 7px; height: 7px; border-radius: 999px; flex: none; }
.p-row i { font-style: normal; font-size: 10px; color: #2A1F24; font-weight: 600; }
.p-row em { margin-left: auto; font-style: normal; font-size: 9.5px; color: var(--text-3); }

.p-chart {
  margin: 4px 12px 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #F4E9ED;
  border-radius: 14px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 108px;
}

.p-chart b {
  flex: 1;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, #F7A8C4, #FBD5E2);
  display: block;
}
.p-chart b:nth-child(4) { background: linear-gradient(180deg, #CE3872, #E5809F); }

.p-tab {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex: none;
  padding: 12px 6px 14px;
  border-top: 1px solid #F6EAEE;
  font-size: 9px;
  letter-spacing: 0.2px;
  color: #B4A6AB;
}
.p-tab span { display: block; }
.p-tab span.on { color: var(--accent); font-weight: 700; }

/* ---------- 通用区块 ---------- */

.section { padding: 84px 0; }
.section.tight { padding: 60px 0; }
.section.wash { background: #FFF7F9; }
.section.softband { background: linear-gradient(180deg, #FFF7F9, #FFFBFC); }

.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.3px;
  font-weight: 720;
}

.section-head p { margin: 0; color: var(--text-2); font-size: 16px; }

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 1.4px;
  color: var(--accent);
  text-transform: uppercase;
}

/* ---------- 功能网格 ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px 24px;
  box-shadow: var(--shadow-s);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
  border-color: #F3D9E2;
}

.card .ico {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-wash);
  color: var(--accent);
  margin-bottom: 16px;
}

.card .ico svg { width: 21px; height: 21px; }

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 680;
  letter-spacing: 0.1px;
}

.card p { margin: 0; color: var(--text-2); font-size: 14.6px; line-height: 1.78; }

/* ---------- 信任区块 ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.trust-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }

.trust-item {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}

.trust-item .tick {
  width: 26px; height: 26px; flex: none;
  border-radius: 999px;
  background: #EAF7F1;
  color: #2E9C79;
  display: grid; place-items: center;
}

.trust-item .tick svg { width: 14px; height: 14px; }

.trust-item h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 650; }
.trust-item p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.72; }

.panel {
  padding: 34px 32px;
  border-radius: var(--radius-l);
  background: linear-gradient(155deg, var(--soft-a), var(--soft-b));
  color: var(--ink);
}

.panel h3 { margin: 0 0 14px; font-size: 20px; color: var(--ink); }
.panel p { margin: 0 0 10px; font-size: 14.6px; line-height: 1.8; color: #7C4055; }
.panel p:last-child { margin-bottom: 0; }
.panel .big {
  display: block;
  font-size: 40px;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 6px;
}

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 0 auto; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-s);
}

.faq summary {
  cursor: pointer;
  font-weight: 640;
  font-size: 15.6px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--text-2); font-size: 14.8px; line-height: 1.8; }

/* ---------- 下载条 ---------- */

.cta {
  padding: 54px 44px;
  border-radius: var(--radius-l);
  background: linear-gradient(150deg, #FDE4EC, #F9C2D4 70%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta h2 { margin: 0 0 8px; color: var(--ink); font-size: 27px; letter-spacing: -0.3px; }
.cta p { margin: 0; color: #7C4055; font-size: 15px; }
.cta .btn-primary { background: var(--ink); box-shadow: 0 10px 24px rgba(176, 46, 90, 0.26); }
.cta .btn-primary:hover { background: #96264C; }

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #FFF9FA;
  padding: 48px 0 30px;
  font-size: 14px;
  color: var(--text-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}

.footer-grid h4 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.6px;
  color: var(--text-3);
  font-weight: 650;
}

.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.footer-grid a { color: var(--text-2); }
.footer-grid a:hover { color: var(--accent); }

.footer-brand p { margin: 10px 0 0; font-size: 13.6px; line-height: 1.75; color: var(--text-3); max-width: 24em; }

.legal {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12.8px;
  color: var(--text-3);
}

.legal a { color: var(--text-3); }
.legal a:hover { color: var(--accent); }

.wrap.narrow { max-width: 856px; }

/* ---------- 文档页 ---------- */

.doc-head {
  background: linear-gradient(170deg, var(--soft-a), #FFF6F9 70%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.doc-head h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--ink);
  letter-spacing: -0.4px;
}

.doc-head .meta { margin: 0; font-size: 13.4px; color: #7C5766; }

.doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 46px 0 76px;
}

.doc h2 {
  margin: 38px 0 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.doc h2:first-of-type { margin-top: 0; }

.doc p { margin: 0 0 12px; color: var(--text-2); font-size: 15.6px; line-height: 1.9; }

.doc ul { margin: 0 0 14px; padding-left: 0; list-style: none; }

.doc ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--text-2);
  font-size: 15.6px;
  line-height: 1.85;
}

.doc ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #E7B3C6;
}

.doc ul ul {
  margin: 8px 0 4px;
  padding-left: 16px;
}

.doc ul ul li::before { background: #EFC9D7; top: 11px; width: 4px; height: 4px; }

.doc .callout {
  margin: 22px 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--accent-wash);
  border: 1px solid #F6DDE6;
  color: #7C4055;
  font-size: 14.8px;
  line-height: 1.8;
}

.doc-nav {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.doc-nav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 13.6px;
}

.doc-nav a:hover { border-color: #F0CBD8; color: var(--accent); }

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; padding-top: 54px; padding-bottom: 64px; }
  .phones { min-height: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .section { padding: 64px 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav { display: none; }
  .grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .phone { width: 214px; height: 440px; }
  .phone.is-back { display: none; }
  .cta { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 8px 14px; font-size: 13px; }
  .doc { padding: 32px 0 60px; }
}
