/* ==========================================================================
   饱饱妙食官网 · 单页样式
   - 无外部依赖，纯 CSS 变量 + Flex/Grid
   - 断点：720 / 1024；主色暖橙 + 米色背景，贴合婴幼儿调性
   ========================================================================== */

/* ---------- Reset & tokens ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }

:root {
  --bg: #fdf7f0;
  --bg-alt: #f7ebdd;
  --surface: #ffffff;
  --text: #2d1f17;
  --text-soft: #6b5a4f;
  --text-mute: #97877c;
  --primary: #e86a3c;
  --primary-dark: #c8532a;
  --secondary: #7ab898;
  --accent: #ffd166;
  --border: rgba(45, 31, 23, 0.08);
  --shadow-sm: 0 2px 8px rgba(45, 31, 23, 0.06);
  --shadow-md: 0 12px 32px rgba(45, 31, 23, 0.08);
  --shadow-lg: 0 20px 60px rgba(232, 106, 60, 0.18);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container.narrow { max-width: 820px; }

section { padding-block: clamp(72px, 10vw, 120px); }

.section-head {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 12px;
}
.section-head p {
  color: var(--text-soft);
  font-size: clamp(15px, 1.3vw, 17px);
  max-width: 620px;
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 247, 240, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: var(--text-soft);
}
.site-nav a { transition: color 160ms ease; }
.site-nav a:hover { color: var(--primary); }
.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #fff !important;
  font-weight: 500;
  transition: transform 160ms ease, background 160ms ease;
}
.nav-cta:hover { background: var(--primary); transform: translateY(-1px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-invert {
  background: var(--bg);
  color: var(--text);
  padding: 16px 32px;
}
.btn-invert:hover { background: var(--accent); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(60px, 8vw, 100px) clamp(80px, 10vw, 140px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw; max-width: 720px;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 209, 102, 0.35), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(232, 106, 60, 0.1);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 500;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}
.hero-title {
  margin-top: 20px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero-title .hl {
  display: inline-block;
  position: relative;
  color: var(--primary);
  padding-inline: 0.05em;
}
.hero-title .hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6%;
  height: 26%;
  background: var(--accent);
  z-index: -1;
  border-radius: 6px;
  transform: skew(-6deg);
  opacity: 0.55;
}
.hero-sub {
  margin-top: 24px;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-soft);
  max-width: 540px;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-metrics {
  margin-top: 56px;
  display: flex;
  gap: clamp(24px, 5vw, 56px);
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px dashed var(--border);
}
.hero-metrics li { display: flex; flex-direction: column; }
.hero-metrics strong {
  font-size: clamp(26px, 3vw, 34px);
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero-metrics span {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 4px;
}

/* Hero art (pure CSS illustration) */
.hero-art {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  margin-inline: auto;
  width: 100%;
}
.plate {
  position: absolute; inset: 12% 12% 12% 12%;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff, #f7ebdd);
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(45, 31, 23, 0.06);
}
.plate-ring {
  position: absolute; inset: 10%;
  border-radius: 50%;
  border: 2px dashed rgba(232, 106, 60, 0.25);
  animation: rotate 40s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.plate-food {
  position: absolute;
  border-radius: 50%;
  opacity: 0.9;
}
.food-1 { width: 32%; height: 32%; background: #ffb26b; top: 18%; left: 20%; }
.food-2 { width: 24%; height: 24%; background: #7ab898; top: 28%; right: 20%; }
.food-3 { width: 30%; height: 30%; background: #ffd166; bottom: 18%; left: 34%; }

.bubble {
  position: absolute;
  padding: 10px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  font-size: 13px;
  animation: float 6s ease-in-out infinite;
}
.bubble span { font-weight: 600; color: var(--text); }
.bubble em { font-style: normal; color: var(--text-mute); margin-top: 2px; }
.bubble-1 { top: 6%; left: -4%; animation-delay: 0s; }
.bubble-2 { top: 46%; right: -6%; animation-delay: -2s; }
.bubble-3 { bottom: 6%; left: 12%; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Features ---------- */
.features { background: var(--bg-alt); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--surface);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 260ms ease, box-shadow 260ms ease;
  position: relative;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(232, 106, 60, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.7;
}
.feature-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feature-tags li {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-soft);
  font-size: 12px;
}
.feature-card.is-featured {
  background: linear-gradient(160deg, var(--primary) 0%, #f28f5c 100%);
  color: #fff;
  border-color: transparent;
}
.feature-card.is-featured h3 { color: #fff; }
.feature-card.is-featured p { color: rgba(255, 255, 255, 0.88); }
.feature-card.is-featured .feature-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.feature-card.is-featured .feature-tags li {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.feature-alt {
  background: linear-gradient(160deg, #fff8ee, #f5ebd8);
}
.mini-list { margin-top: 6px; }
.mini-list li {
  position: relative;
  padding-left: 22px;
  margin-block: 8px;
  color: var(--text-soft);
  font-size: 14.5px;
}
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0.35;
}

/* ---------- Platforms ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.platform-item {
  background: var(--surface);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 220ms ease;
}
.platform-item:hover { transform: translateY(-4px); }
.platform-icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--bg-alt);
  color: var(--primary);
  display: grid; place-items: center;
}
.platform-item h3 { font-size: 17px; margin-bottom: 6px; }
.platform-item p { color: var(--text-soft); font-size: 14px; margin-bottom: 14px; }
.platform-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-mute);
  font-size: 12px;
  font-weight: 500;
}
.platform-tag-live {
  background: rgba(122, 184, 152, 0.15);
  color: #4a8b6a;
}
.platform-tag-link {
  background: var(--text);
  color: #fff;
  transition: background 180ms ease;
}
.platform-tag-link:hover { background: var(--primary); color: #fff; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-alt); }
.faq-item {
  background: var(--surface);
  padding: 20px 26px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  border: 1px solid var(--border);
  transition: box-shadow 200ms ease;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--primary);
  transition: transform 220ms ease;
}
.faq-item[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}
.faq-item p, .faq-item code {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.75;
}
.faq-item code {
  padding: 1px 6px;
  background: var(--bg-alt);
  border-radius: 4px;
  font-size: 13px;
  margin-top: 0;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--text) 0%, #4a3a30 100%);
  color: #fff;
  padding-block: clamp(56px, 8vw, 80px);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, 0.72); font-size: 15.5px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1e1611;
  color: rgba(255, 255, 255, 0.6);
  padding-block: 44px;
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-brand .brand-name {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}
.footer-brand p { margin-top: 6px; }
.footer-links {
  display: flex; flex-direction: column; gap: 8px;
}
.footer-links a:hover { color: var(--primary); }
.footer-legal {
  text-align: right;
  display: flex; flex-direction: column; gap: 6px;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 180ms ease;
  font-variant-numeric: tabular-nums;
}
.footer-legal a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 400px; margin-top: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-legal { text-align: left; grid-column: span 2; }
}
@media (max-width: 720px) {
  .site-nav { gap: 14px; font-size: 14px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero-metrics { gap: 20px; }
  .hero-metrics li { flex: 1 1 40%; }
  section { padding-block: 72px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .bubble-1 { left: 0; }
  .bubble-2 { right: 0; }
  .bubble-3 { left: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-legal { grid-column: auto; text-align: left; }
}

/* ---------- Accessibility ---------- */
@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; }
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
