/* ====== reset ====== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2B2342;
  background: #FFF7EB;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ====== layout ====== */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: #2B2342; margin-bottom: 8px; text-align: center; }
.section-sub { font-size: 16px; color: #8C7558; text-align: center; margin-bottom: 36px; }

/* ====== nav ====== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 247, 235, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(232, 216, 188, 0.5);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: inline-flex; }
.brand-text strong { font-size: 19px; font-weight: 800; }
.brand-text em { font-style: normal; color: #FF6B47; font-weight: 700; margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; }
.nav-links a { color: #5C4B3B; transition: color .15s; }
.nav-links a:hover { color: #FF6B47; }
/* v1.2.24: 语言切换 — 5 国语 dropdown */
.lang-menu { position: relative; display: inline-block; }
.lang-switch {
  border: 1px solid rgba(232, 216, 188, 0.7);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.lang-switch:hover { border-color: #FF6B47; }
.lang-menu-pop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 130px;
  background: white;
  border: 1px solid rgba(232, 216, 188, 0.8);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(70, 30, 0, .10);
  padding: 6px;
  z-index: 200;
}
/* v1.2.26: click toggle (不再 hover-only — 触屏 / 截屏不友好) */
.lang-menu.is-open .lang-menu-pop { display: block; }
.lang-switch[aria-expanded="true"] { border-color: #FF6B47; color: #FF6B47; }
.lang-menu-pop a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #5C4B3B !important;
}
.lang-menu-pop a:hover { background: #FFF7EB; color: #FF6B47 !important; }

/* ====== buttons ====== */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  font-size: 16px; font-weight: 700;
  border-radius: 999px;
  cursor: pointer; transition: all .15s ease;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #FF8C5A, #FF6B47);
  color: white;
  box-shadow: 0 6px 18px rgba(255, 107, 71, .38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 107, 71, .48); }
.btn-ghost {
  background: white; color: #5C4B3B;
  border: 1.5px solid rgba(232, 216, 188, 0.8);
}
.btn-ghost:hover { border-color: #FF6B47; color: #FF6B47; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 18px; }

/* ====== hero ====== */
.hero {
  padding: 64px 0 88px;
  /* v1.2.23 设计 pass: 删 3 层 radial+linear 渐变堆 (太"AI 模板"), 一条暖渐变就够 */
  background: linear-gradient(170deg, #FFF7EB 0%, #FFE8DD 100%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-tag {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  color: #FF6B47;
  background: rgba(255, 140, 90, .14);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero-text h1 { font-size: clamp(36px, 5.5vw, 56px); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero-text h1 u { text-decoration: none; background: linear-gradient(transparent 60%, rgba(255, 214, 107, .55) 60%); padding: 0 4px; }
.hero-sub { font-size: 18px; color: #5C4B3B; margin-bottom: 32px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: #8C7558; }

.hero-art { display: flex; justify-content: center; align-items: center; min-height: 380px; }
/* v1.2.23 设计 pass: polaroid 叠加孩子真作品 — 一眼看 "真孩子真做了" 的 trust signal, 比假 chat UI 强一万倍 */
.polaroid-stack {
  position: relative;
  width: 100%; max-width: 440px;
  height: 360px;
}
.polaroid {
  position: absolute;
  width: 200px;
  background: white;
  padding: 10px 10px 16px;
  box-shadow: 0 10px 24px rgba(70, 30, 0, .15);
  border-radius: 3px;
  transition: transform .25s;
}
.polaroid:hover { transform: translateY(-4px) scale(1.03) rotate(0deg) !important; z-index: 10; }
.polaroid-img {
  width: 180px; height: 180px;
  border-radius: 2px;
  overflow: hidden;
  background: #FFF7EB;
}
.polaroid-caption {
  margin-top: 12px;
  font-family: "Caveat", "Marker Felt", "Noto Sans SC", cursive;
  font-size: 16px;
  color: #5C4B3B;
  text-align: center;
  line-height: 1.3;
}
.polaroid-1 { top: 0; left: 40px; transform: rotate(-6deg); z-index: 3; }
.polaroid-2 { top: 30px; left: 130px; transform: rotate(3deg); z-index: 2; }
.polaroid-3 { top: 80px; left: 30px; transform: rotate(-2deg); z-index: 1; }

/* ====== promo video embed ====== */
.promo-embed { padding: 72px 0; background: linear-gradient(180deg, #FFE8DD 0%, white 100%); }
.promo-embed .section-sub { text-align:center; color:#5C4B3B; margin-bottom:32px; max-width:640px; margin-left:auto; margin-right:auto; }
/* responsive 16:9 wrapper — padding-bottom trick works in all browsers, no aspect-ratio dependency */
/* v1.3 size pass: 缩小 20% (max-width 960→768, max-height 540→432) */
.promo-embed-frame {
  position: relative;
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 9/16 = 0.5625 */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(70, 30, 0, .18), 0 4px 12px rgba(70, 30, 0, .08);
  background: #000;
  border: 1px solid rgba(232, 216, 188, 0.5);
  /* Cap height so on very wide viewports the 56.25% doesn't go absurd */
  max-height: 432px;
}
.promo-embed-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 640px) {
  .promo-embed { padding: 48px 0; }
  .promo-embed-frame {
    border-radius: 14px;
    max-width: 288px;
    /* portrait phone: 9:16 → padding-bottom 16/9 = 177.78% */
    padding-bottom: 177.78%;
    max-height: 512px;
  }
}

/* ====== features ====== */
.features { padding: 88px 0; background: white; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.feature {
  padding: 32px;
  background: linear-gradient(170deg, #FFF7EB 0%, #FFF1ED 100%);
  border-radius: 20px;
  border: 1px solid rgba(232, 216, 188, 0.5);
}
.feature-icon { font-size: 36px; margin-bottom: 16px; line-height: 0; }
.feature-icon svg { width: 64px; height: 64px; display: block; }
.feature h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; color: #2B2342; }
.feature p { color: #5C4B3B; font-size: 15px; }

/* ====== demos ====== */
.demos { padding: 88px 0; background: #FFF7EB; }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.demo-grid-9 { gap: 20px; }
/* v1.2.23 design pass: 9 张统一 SVG 插画 — 5 色品牌色板 (coral/honey/sky/cream/ink), 2.5px 圆头 stroke, 不再 emoji+ALL-CAPS 混搭 */
.demo-thumb {
  height: 180px;
  display: block;
  overflow: hidden;
  position: relative;
  font-size: 0; /* kill any fallback emoji size */
}
.demo-thumb svg { display: block; width: 100%; height: 100%; }
.demo-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  /* v1.2.23 设计 pass: soft shadow → 更克制, 减少 "AI 模板感" */
  box-shadow: 0 2px 12px rgba(70, 30, 0, .06);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.demo-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(70, 30, 0, .10); }
.demo-thumb {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 36px; font-weight: 900;
  letter-spacing: 3px;
}
/* v1.2.23: mecha/dog/lot 三个旧文字 thumb 删了, 统一走 .demo-thumb + 内嵌 SVG */
.demo-meta { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.demo-meta h4 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.demo-meta p { color: #8C7558; font-size: 14px; flex: 1; margin-bottom: 12px; }
.demo-tag { color: #FF6B47; font-weight: 700; font-size: 14px; }

/* ====== parents ====== */
.parents { padding: 88px 0; background: white; }
.parents-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.parents-text h2 { font-size: 36px; font-weight: 800; margin-bottom: 18px; }
.parents-text p { color: #5C4B3B; margin-bottom: 22px; font-size: 16px; }
.parents-bullets { margin-bottom: 28px; }
.parents-bullets li {
  padding-left: 28px; position: relative; margin-bottom: 12px;
  color: #5C4B3B;
}
.parents-bullets li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #FF6B47; font-weight: 900;
}
.parents-bullets li strong { color: #2B2342; }

.parents-art { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.share-card-preview {
  width: 100%; max-width: 360px;
  background: linear-gradient(160deg, #FFF7EB 0%, #FFE8DD 70%, #FFCFC0 100%);
  border-radius: 20px;
  padding: 28px 24px 22px;
  box-shadow: 0 20px 50px rgba(70, 30, 0, .14);
}
.share-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.share-card-mochi {
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFCF8, #F0E5D2);
  border: 1px solid #E5DAC4;
  position: relative;
}
.share-card-mochi::before, .share-card-mochi::after {
  content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #2B2342; top: 16px;
}
.share-card-mochi::before { left: 11px; } .share-card-mochi::after { right: 11px; }
.share-card-brand { font-size: 14px; font-weight: 700; color: #5C4B3B; }
.share-card-date { font-size: 11px; color: #B89878; }
.share-card-title { font-size: 28px; font-weight: 800; color: #2B2342; line-height: 1.15; margin-bottom: 6px; }
.share-card-by { font-size: 14px; color: #FF6B47; font-weight: 600; margin-bottom: 6px; }
.share-card-by strong { color: #2B2342; font-weight: 800; }
.share-card-sub { font-size: 14px; color: #8C7558; margin-bottom: 16px; }
.share-card-sub strong { color: #FF6B47; }
.share-card-shot {
  height: 180px;
  background: linear-gradient(135deg, #FFFCF8, #F0E5D2);
  border-radius: 14px;
  border: 3px solid white;
  position: relative;
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #B89878; font-size: 13px;
}
.share-card-shot::before { content: "你的作品截图"; }
.share-card-watermark {
  position: absolute; right: 10px; bottom: 10px;
  font-size: 10px; color: white; font-weight: 600;
  background: rgba(0,0,0,0.6); padding: 3px 8px; border-radius: 999px;
}
.share-card-footer { font-size: 11px; color: #FF6B47; font-weight: 600; text-align: center; }
.parents-caption { color: #8C7558; font-size: 13px; text-align: center; }

/* ====== download ====== */
.download {
  padding: 88px 0;
  background: linear-gradient(135deg, #FF8C5A, #FF6B47);
  color: white; text-align: center;
}
.download h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.download p { font-size: 16px; opacity: 0.9; margin-bottom: 28px; }
.download .btn-primary { background: white; color: #FF6B47; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.download .btn-primary:hover { background: #FFF7EB; }
.download-note { font-size: 13px; opacity: 0.85; margin-top: 18px; }
.download-note.small { font-size: 12px; }

/* ====== footer ====== */
.footer { background: #2B2342; color: rgba(255, 255, 255, 0.72); padding: 48px 0 32px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer strong { color: white; font-size: 18px; }
.footer-links { display: flex; gap: 24px; align-items: center; }
.footer-links a:hover { color: white; }
.footer-meta p { font-size: 13px; }

/* ====== responsive ====== */
@media (max-width: 920px) {
  .nav-links a { display: none; }
  .nav-links a.btn-primary { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: 1fr; gap: 18px; }
  .demo-grid { grid-template-columns: 1fr; gap: 18px; }
  .parents-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 48px 0 64px; }
  .features, .demos, .parents, .download { padding: 64px 0; }
  .hero-text h1 { font-size: 32px; }
}
