@font-face {
  font-family: "KuaiLe";
  src: url("assets/fonts/ZCOOLKuaiLe-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg-deep: #141126;
  --bg-night: #1d1838;
  --bg-plum: #2c2352;
  --cream: #fff7e8;
  --cream-top: #fffdf7;
  --ink: #2c1e3b;
  --muted-dark: #6f5e7f;
  --muted-light: #dfd0be;
  --gold-light: #ffe394;
  --gold: #ffb84d;
  --gold-deep: #f09528;
  --gold-ledge: #b35f14;
  --outline: #261836;
  --glass: rgba(38, 30, 72, 0.62);
  --glass-border: rgba(255, 224, 158, 0.22);
  --radius: 24px;
  --font-fun: "KuaiLe", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-sans: "PingFang SC", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #fff3de;
  background: radial-gradient(120% 80% at 50% 0%, #2d2457 0%, #191533 52%, #110e22 100%) fixed;
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

/* 顶部导航 */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(20, 17, 38, 0.72);
  border-bottom: 1px solid rgba(255, 224, 158, 0.14);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff5e1;
}
.brand-mascot {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(255, 196, 86, 0.35));
}
.brand-name {
  font-family: var(--font-fun);
  font-size: 25px;
  letter-spacing: 0.5px;
}
.brand-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255, 211, 122, 0.18);
  border: 1px solid rgba(255, 211, 122, 0.38);
  color: var(--gold-light);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  color: #eadbc9;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-light); }

/* 绘本触感按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-fun);
  border-radius: 999px;
  border: 2.5px solid var(--outline);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.2s ease;
  white-space: nowrap;
}
.btn-gold {
  color: var(--outline);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 58%, var(--gold-deep) 100%);
  box-shadow: 0 5px 0 var(--gold-ledge), 0 12px 26px rgba(255, 174, 66, 0.34);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--gold-ledge), 0 16px 32px rgba(255, 174, 66, 0.46);
}
.btn-gold:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-ledge); }

.btn-cream {
  color: var(--outline);
  background: linear-gradient(180deg, #fffdf9, #f7ebd4);
  box-shadow: 0 5px 0 #c9b08e, 0 10px 22px rgba(0, 0, 0, 0.25);
}
.btn-cream:hover { transform: translateY(-2px); }

.btn-ghost {
  color: #fff4df;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 224, 158, 0.38);
  box-shadow: 0 4px 0 rgba(12, 9, 25, 0.65);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 15px; }
.btn-lg { padding: 14px 28px; font-size: 19px; }
.btn-full { width: 100%; padding: 13px 20px; font-size: 17px; }

/* Hero */
.hero {
  position: relative;
  padding: 68px 0 74px;
}
.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 193, 94, 0.22) 0%, rgba(145, 108, 225, 0.14) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.08fr;
  gap: 44px;
  align-items: center;
}
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 99px;
  background: rgba(255, 245, 224, 0.09);
  border: 1px solid var(--glass-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 10px #6ee7b7;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}
.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-fun);
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.22;
  letter-spacing: 0.5px;
  text-shadow: 0 6px 24px rgba(10, 6, 22, 0.5);
}
.text-gold {
  background: linear-gradient(90deg, #fff0ba 0%, #ffc45a 55%, #ff9d42 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 0 0 28px;
  font-size: 17px;
  color: var(--muted-light);
  max-width: 540px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.platform-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.platform-strip span {
  font-size: 12.5px;
  font-weight: 600;
  color: #d6c5b3;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 演示平板外框 */
.hero-stage { position: relative; }
.device-frame {
  border-radius: 28px;
  background: linear-gradient(180deg, #32275b 0%, #20193d 100%);
  border: 3px solid rgba(255, 217, 145, 0.45);
  box-shadow: 0 28px 65px rgba(7, 4, 18, 0.68), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  padding: 12px;
}
.device-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 6px 10px;
}
.device-dots { display: flex; gap: 6px; }
.device-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 232, 189, 0.32);
}
.demo-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.demo-tab {
  border: 1px solid rgba(255, 224, 158, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #efe1cf;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
}
.demo-tab.active {
  background: var(--gold);
  color: var(--outline);
  border-color: var(--outline);
}
.device-screen {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #141026;
}
.device-screen video,
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(19, 15, 38, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 224, 158, 0.26);
  font-size: 12px;
  font-weight: 600;
  color: #ffeec9;
}
.floating-mascot {
  position: absolute;
  right: -24px;
  bottom: -26px;
  width: 118px;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.55));
  animation: floatBob 4.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

/* 信任指标条 */
.metrics-bar {
  padding: 16px 0 28px;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metric-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 18px 20px;
  backdrop-filter: blur(12px);
}
.metric-item strong {
  display: block;
  font-family: var(--font-fun);
  font-size: 26px;
  color: var(--gold-light);
  line-height: 1.15;
  margin-bottom: 4px;
}
.metric-item span { font-size: 13.5px; color: var(--muted-light); }

/* 区块通用头部 */
.section { padding: 76px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-fun);
  font-size: clamp(27px, 3.3vw, 40px);
  line-height: 1.25;
}
.section-head p { margin: 0; color: var(--muted-light); font-size: 16px; }
.section-head code {
  background: rgba(255, 217, 145, 0.16);
  color: var(--gold-light);
  padding: 2px 8px;
  border-radius: 8px;
}

/* 四伙伴交互舞台 */
.partner-stage {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  border: 3px solid rgba(255, 224, 158, 0.35);
  box-shadow: 0 24px 60px rgba(8, 5, 20, 0.65);
  min-height: 410px;
  display: flex;
  align-items: center;
}
.partner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 0.55s ease, transform 0.8s ease;
  transform: scale(1.03);
}
.partner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(18, 14, 36, 0.48) 0%, rgba(18, 14, 36, 0.88) 54%, rgba(18, 14, 36, 0.94) 100%);
}
.partner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
}
.partner-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.partner-halo {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 206, 112, 0.42) 0%, transparent 70%);
}
.partner-avatar {
  position: relative;
  width: 225px;
  height: 225px;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.5));
  animation: floatBob 4.6s ease-in-out infinite;
  transition: opacity 0.25s ease, transform 0.35s ease;
}
.partner-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.partner-pill {
  border: 2px solid rgba(255, 224, 158, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #f6e7d4;
  font-family: var(--font-fun);
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
}
.partner-pill:hover { background: rgba(255, 255, 255, 0.16); }
.partner-pill.active {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--outline);
  border-color: var(--outline);
  box-shadow: 0 3px 0 var(--gold-ledge);
}
.partner-info h3 {
  margin: 0 0 10px;
  font-family: var(--font-fun);
  font-size: 30px;
  color: #fff5e0;
}
.partner-info p {
  margin: 0 0 20px;
  color: #eadbc8;
  font-size: 16.5px;
  max-width: 600px;
}
.partner-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.meta-chip {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 99px;
  background: rgba(255, 245, 224, 0.11);
  border: 1px solid rgba(255, 224, 158, 0.25);
  color: #ffecc8;
}
.btn-bgm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 99px;
  border: 1.5px solid var(--gold);
  background: rgba(255, 184, 77, 0.16);
  color: var(--gold-light);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-bgm.playing {
  background: var(--gold);
  color: var(--outline);
}

/* 三步卡片 */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step-card {
  position: relative;
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.step-card:hover { transform: translateY(-6px); border-color: rgba(255, 211, 122, 0.55); }
.step-num {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-fun);
  font-size: 18px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--outline);
  border: 2px solid var(--outline);
}
.step-thumb {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  background: #17122c;
}
.step-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-fun);
  font-size: 21px;
  color: #fff4de;
}
.step-card p { margin: 0; font-size: 14.5px; color: var(--muted-light); }

/* 故事种子与画廊 */
.seeds-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.seed-card {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  border-radius: 20px;
  border: 2.5px solid var(--outline);
  box-shadow: 0 5px 0 #c9b08e;
  overflow: hidden;
  transition: transform 0.22s ease;
}
.seed-card:hover { transform: translateY(-6px) rotate(-1deg); }
.seed-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.seed-card figcaption { padding: 10px 10px 12px; text-align: center; }
.seed-card b { display: block; font-family: var(--font-fun); font-size: 18px; color: var(--ink); }
.seed-card span { font-size: 12px; color: var(--muted-dark); font-weight: 600; }

.art-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.art-tile {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 224, 158, 0.25);
  aspect-ratio: 4 / 3;
}
.art-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.art-tile:hover img { transform: scale(1.06); }
.art-tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 10px 8px;
  background: linear-gradient(transparent, rgba(14, 10, 28, 0.88));
  font-size: 12px;
  font-weight: 600;
  color: #ffefd0;
}

/* 奶油绘本纸家长区 */
.paper-section {
  background: linear-gradient(180deg, #fff9ee 0%, #f8edd8 100%);
  color: var(--ink);
  border-top: 3px solid var(--outline);
  border-bottom: 3px solid var(--outline);
}
.eyebrow-dark { color: #9a5a18; }
.paper-section h2 {
  margin: 0 0 10px;
  font-family: var(--font-fun);
  font-size: clamp(28px, 3.2vw, 38px);
  color: var(--ink);
}
.paper-lead { margin: 0 0 24px; color: var(--muted-dark); font-size: 16px; }
.parent-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 36px;
  align-items: center;
}
.guard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.guard-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--cream-top);
  border: 2px solid #decbb0;
  border-radius: 18px;
  padding: 14px 15px;
  box-shadow: 0 4px 0 #e6d6bd;
}
.guard-ico { font-size: 24px; line-height: 1.1; flex: none; }
.guard-card h4 { margin: 0 0 4px; font-size: 15.5px; color: var(--ink); }
.guard-card p { margin: 0; font-size: 13px; color: var(--muted-dark); line-height: 1.5; }
.phone-bezel {
  max-width: 300px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 34px;
  background: #221833;
  border: 3px solid #3c2e56;
  box-shadow: 0 22px 46px rgba(44, 30, 59, 0.28);
}
.phone-bezel img { width: 100%; border-radius: 24px; display: block; }

/* 下载中心 */
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--glass);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  backdrop-filter: blur(12px);
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.dl-card:hover { transform: translateY(-5px); border-color: rgba(255, 211, 122, 0.58); }
.dl-card.recommended {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 184, 77, 0.28), 0 20px 44px rgba(0, 0, 0, 0.45);
}
.dl-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--gold);
  color: var(--outline);
  border: 2px solid var(--outline);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 10px;
}
.dl-icon { font-size: 34px; margin-bottom: 10px; }
.dl-card h3 { margin: 0 0 6px; font-family: var(--font-fun); font-size: 21px; }
.dl-meta { margin: 0 0 12px; font-size: 13px; color: var(--muted-light); min-height: 42px; }
.dl-size {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.dl-card .btn { margin-top: auto; }
.dl-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #cbbba8;
  line-height: 1.5;
}
.cloud-note {
  margin-top: 24px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted-light);
}
.cloud-note b { color: var(--gold-light); }

/* 页脚 */
.site-footer {
  border-top: 1px solid rgba(255, 224, 158, 0.14);
  padding: 32px 0 42px;
  background: rgba(12, 9, 24, 0.72);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 42px; height: 42px; object-fit: contain; }
.footer-brand strong { font-family: var(--font-fun); font-size: 19px; display: block; }
.footer-brand p { margin: 2px 0 0; font-size: 13px; color: var(--muted-light); }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12.5px; color: #b8a89a; }

/* 滚动显现动效 */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .floating-mascot, .partner-avatar, .dot-live { animation: none; }
}

/* 响应式 */
@media (max-width: 1020px) {
  .hero-grid, .parent-layout, .partner-content { grid-template-columns: 1fr; }
  .metrics-grid, .download-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .seeds-row, .art-strip { grid-template-columns: repeat(2, 1fr); }
  .floating-mascot { width: 84px; right: 6px; bottom: -18px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .metrics-grid, .download-grid, .guard-grid { grid-template-columns: 1fr; }
  .partner-content { padding: 26px 20px; text-align: center; }
  .partner-pills, .partner-meta { justify-content: center; }
  .footer-meta { align-items: flex-start; }
}
