/* 小鹿宝宝官网:暖奶油底 + 木色 + 樱粉。字号偏大,长辈和子女都看得清。 */
:root {
  --cream: #fbf7f1;
  --paper: #ffffff;
  --sand: #f3ebe1;
  --ink: #2a2421;
  --ink-2: #5b524c;
  --ink-3: #8d847d;
  --rose: #e7889f;
  --rose-deep: #c75f7b;
  --rose-soft: #fbe6eb;
  --wood: #a8744a;
  --wood-soft: #efe1d2;
  --sage: #6f8f7a;
  --line: rgba(42, 36, 33, .09);
  --shadow: 0 1px 2px rgba(60, 40, 30, .04), 0 12px 40px -12px rgba(60, 40, 30, .16);
  --r: 28px;
  --wrap: 1180px;
  --sans: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --serif: var(--sans);   /* 标题也用黑体:Windows 上宋体粗体发虚,各平台不一致 */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 18px/1.75 var(--sans); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; letter-spacing: .02em; }
.serif { font-family: var(--serif); }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; color: var(--ink-3); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .18em; color: var(--rose-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

/* ---------- 顶栏 */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 241, .82); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 72px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: .06em; }
.brand svg { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 16px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--sand); color: var(--ink); }
.nav-links a.on { color: var(--ink); font-weight: 600; }
.nav-cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ---------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 28px; border-radius: 999px; font-size: 17px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(42, 36, 33, .6); }
.btn-rose { background: var(--rose-deep); color: #fff; box-shadow: 0 10px 24px -10px rgba(199, 95, 123, .7); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.link-arrow { color: var(--rose-deep); font-weight: 600; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- 首屏 */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: center right / cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cream) 0%, rgba(251, 247, 241, .92) 34%, rgba(251, 247, 241, 0) 62%); }
.hero .wrap { position: relative; padding: 80px 0; }
.hero h1 { font-family: var(--serif); font-size: clamp(42px, 6vw, 76px); line-height: 1.12; max-width: 9.5em; }
.hero h1 em { font-style: normal; color: var(--rose-deep); }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 28em; margin: 26px 0 36px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .note { margin-top: 28px; font-size: 14px; color: var(--ink-3); }

.page-hero { padding: 96px 0 56px; text-align: center; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 60px); margin: 14px 0 18px; }
.page-hero p { font-size: 20px; color: var(--ink-2); max-width: 34em; margin: 0 auto; }

/* ---------- 区块 */
section { padding: 112px 0; }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-family: var(--serif); font-size: clamp(30px, 3.8vw, 46px); margin: 14px 0 16px; }
.sec-head p { font-size: 19px; color: var(--ink-2); margin: 0; }
.bg-paper { background: var(--paper); }
.bg-sand { background: var(--sand); }
.bg-ink { background: #221d1a; color: #f4ede6; }
.bg-ink .muted, .bg-ink .sec-head p { color: #c9bfb6; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--paper); border-radius: var(--r); padding: 36px; box-shadow: var(--shadow); }
.bg-paper .card { background: var(--cream); box-shadow: none; }
.card h3 { font-size: 22px; margin: 18px 0 10px; }
.card p { color: var(--ink-2); margin: 0; }
.icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--rose-soft); color: var(--rose-deep);
}
.icon svg { width: 28px; height: 28px; }
.icon.wood { background: var(--wood-soft); color: var(--wood); }
.icon.sage { background: #e3ece6; color: var(--sage); }
.icon.ink { background: #ece7e2; color: var(--ink); }

/* 大图 + 文字 */
.split { display: grid; grid-template-columns: 1.08fr 1fr; gap: 72px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split .media { border-radius: 36px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.split .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.split .media:hover img { transform: scale(1.03); }
.split h2 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); margin: 14px 0 18px; }
.split .text > p { font-size: 19px; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--rose-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23c75f7b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.bg-ink .ticks li { color: #d9cfc6; }

/* 对话气泡 */
.chat { display: grid; gap: 14px; }
.bubble { max-width: 88%; padding: 14px 20px; border-radius: 22px; font-size: 17px; line-height: 1.6; }
.bubble.me { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bubble.lu { justify-self: start; background: var(--paper); border-bottom-left-radius: 6px; box-shadow: var(--shadow); }
.bubble.lu b { color: var(--rose-deep); font-weight: 600; }
.bubble .who { display: block; font-size: 13px; opacity: .6; margin-bottom: 2px; }
.chat-card { background: var(--sand); border-radius: var(--r); padding: 32px; }
.chat-card h4 { font-size: 15px; color: var(--ink-3); font-weight: 600; letter-spacing: .1em; margin-bottom: 18px; }

/* 事实条 */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 40px 28px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact .n { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--ink); }
.fact .n small { font-size: 20px; margin-left: 4px; color: var(--ink-2); }
.fact .t { margin-top: 12px; color: var(--ink-2); font-size: 16px; }

/* 产品陈列:左右两列讲部件,中间放图 */
.anatomy { display: grid; grid-template-columns: 1fr minmax(280px, 520px) 1fr; gap: 40px; align-items: center; }
.anatomy .stage { border-radius: 44px; overflow: hidden; background: #f6efe8; box-shadow: var(--shadow); }
.anatomy .side { display: grid; gap: 44px; }
.anatomy .side.l { text-align: right; }
.part h3 { font-size: 21px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.side.l .part h3 { justify-content: flex-end; }
.part h3 i { width: 10px; height: 10px; border-radius: 50%; background: var(--rose-deep); box-shadow: 0 0 0 5px rgba(199, 95, 123, .16); flex: none; }
.part p { color: var(--ink-2); margin: 0; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chips span { background: var(--paper); border-radius: 999px; padding: 12px 22px; font-size: 17px; box-shadow: var(--shadow); }
.chips span::before { content: "「"; color: var(--rose-deep); }
.chips span::after { content: "」"; color: var(--rose-deep); }
.faces { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 28px; }
.face { aspect-ratio: 1; border-radius: 50%; background: #191514; display: grid; place-items: center; box-shadow: inset 0 0 0 4px #2d2622; }
.face svg { width: 62%; height: 62%; }
.face-cap { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* 规格表 */
.spec { width: 100%; border-collapse: collapse; font-size: 17px; }
.spec th, .spec td { text-align: left; padding: 22px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 26%; color: var(--ink-3); font-weight: 500; padding-right: 24px; }
.spec td { color: var(--ink); }

/* 手机样机(家人端) */
.phones { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }
.phone {
  width: 300px; border-radius: 46px; padding: 12px; background: #1d1917;
  box-shadow: 0 40px 80px -30px rgba(40, 25, 20, .45), inset 0 0 0 2px #3a332f;
}
.phone .screen { position: relative; border-radius: 36px; overflow: hidden; background: #f7f3ee; height: 600px; padding: 50px 18px 18px; font-size: 14px; line-height: 1.5; }
.phone .screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #1d1917; }
.app-title { font-size: 20px; font-weight: 700; margin: 6px 4px 14px; }
.app-sub { font-size: 13px; color: var(--ink-3); margin: -10px 4px 14px; }
.app-card { background: #fff; border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.app-card .h { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 6px; }
.app-card .h small { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.pill { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: #e8f2ec; color: #3f7a57; font-weight: 600; }
.pill.warn { background: #fdecec; color: #c0443f; }
.pill.wait { background: #fff4df; color: #a86d12; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid #f1ece6; }
.row:first-of-type { border-top: 0; }
.row .t { color: var(--ink-3); font-size: 12px; }
.code-box { display: flex; justify-content: center; gap: 8px; margin: 18px 0; }
.code-box b { width: 36px; height: 46px; border-radius: 10px; background: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: inset 0 0 0 1.5px #e7ddd3; }
.app-btn { display: block; text-align: center; background: var(--rose-deep); color: #fff; border-radius: 14px; padding: 12px; font-weight: 600; margin-top: 8px; }
.phone-cap { text-align: center; margin-top: 18px; font-weight: 600; }
.phone-cap small { display: block; font-weight: 400; color: var(--ink-3); font-size: 15px; }

/* 承诺 / 对照表 */
.promise { display: flex; gap: 22px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.promise:last-child { border-bottom: 0; }
.promise .num { font-family: var(--serif); font-size: 28px; color: var(--rose-deep); width: 48px; flex: none; line-height: 1.2; }
.promise h3 { font-size: 22px; margin-bottom: 8px; }
.promise p { color: var(--ink-2); margin: 0; }
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); font-size: 17px; }
.matrix th, .matrix td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--line); }
.matrix thead th { background: var(--sand); font-size: 15px; color: var(--ink-2); }
.matrix tr:last-child td { border-bottom: 0; }
.yes { color: #3f7a57; font-weight: 600; }
.no { color: #b6463f; font-weight: 600; }

/* FAQ */
.faq details { background: var(--paper); border-radius: 20px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 64px 24px 28px; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 28px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 300; color: var(--rose-deep); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 28px 26px; color: var(--ink-2); }
.faq-group { margin-bottom: 56px; }
.faq-group > h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 20px; }

/* 步骤 */
.steps { counter-reset: s; display: grid; gap: 20px; }
.step { counter-increment: s; display: flex; gap: 20px; align-items: flex-start; }
.step::before { content: counter(s); flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.step h4 { font-size: 19px; margin: 6px 0 4px; }
.step p { margin: 0; color: var(--ink-2); }

/* 引言 / 收尾 */
.quote { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.5; max-width: 22em; margin: 0 auto; text-align: center; }
.quote small { display: block; margin-top: 22px; font-family: var(--sans); font-size: 16px; color: var(--ink-3); }
.cta-band { border-radius: 40px; padding: 72px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; background: linear-gradient(135deg, #f7dfe5 0%, #f5e9dc 100%); overflow: hidden; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 16px; }
.cta-band img { border-radius: 28px; box-shadow: var(--shadow); }
.notice { background: var(--rose-soft); border-radius: 20px; padding: 22px 26px; color: #8a3e52; font-size: 16px; }
.notice b { color: #6e2a3c; }

/* 页脚 */
footer { background: #1f1a17; color: #b9afa7; padding: 80px 0 40px; font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
footer h5 { color: #fff; font-size: 15px; margin: 0 0 16px; letter-spacing: .1em; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer a:hover { color: #fff; }
footer .brand { color: #fff; margin-bottom: 16px; }
footer .legal { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: #8d837b; }

/* 进场动画 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- 窄屏 */
@media (max-width: 1024px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split { gap: 44px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  section { padding: 80px 0; }
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; padding: 12px 20px 24px;
    background: var(--cream); border-bottom: 1px solid var(--line); gap: 2px;
  }
  .nav.open .nav-links a { padding: 14px 12px; font-size: 18px; }
  .nav.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .menu-btn span:nth-child(2) { opacity: 0; }
  .nav.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: auto; flex-direction: column; align-items: stretch; }
  .hero-bg { position: relative; height: 56vw; background-position: 78% center; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(251, 247, 241, 0) 55%, var(--cream) 100%); }
  .hero .wrap { padding: 8px 0 64px; }
  .g2, .g3, .split, .cta-band { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .cta-band { padding: 40px 28px; }
  .anatomy { grid-template-columns: 1fr; }
  .anatomy .stage { order: -1; }
  .anatomy .side, .anatomy .side.l { text-align: left; gap: 24px; }
  .side.l .part h3 { justify-content: flex-start; }
  .faces { grid-template-columns: repeat(3, 1fr); }
  .spec th { width: 34%; }
  .matrix th, .matrix td { padding: 14px 14px; font-size: 15px; }
}
@media (max-width: 560px) {
  .g4, .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .card { padding: 28px; }
  footer .cols { grid-template-columns: 1fr; }
  .phone { width: 100%; max-width: 320px; }
}
