/* TOPEYE帝视 H5 · 视觉沿用华与华版包装与三折页：帝视蓝 / 活力橙 / 深海；开机与主视觉为深海 + 金色爆珠 */
:root {
  --blue: #1769B0; --deep: #0D3A66; --abyss: #05182E; --navy: #1A1747;
  --orange: #F7901E; --orange-d: #C9661A; --yellow: #FFC83A;
  --gold-1: #FBE9AE; --gold-2: #F2C14E; --gold-3: #D49B32;
  --bg: #F2F5F9; --bg-light: #E8F2FA; --cream: #FFF1DE; --line: #E3E8EF; --card: #fff;
  --text: #1A1747; --text-2: #5B6B7C; --text-3: #9AA7B6;
  --ok: #1E9E6A; --warn: #E08A00; --danger: #D9363E;
  --r-s: 10px; --r-m: 16px; --r-l: 24px;
  --shadow: 0 6px 24px rgba(13, 58, 102, 0.08);
  --shadow-l: 0 18px 50px rgba(5, 24, 46, 0.18);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", "Songti SC", "STSongti-SC-Bold", "STSong", "SimSun", serif;
  --sans: -apple-system, "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --num: "Poppins", "DIN Alternate", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --tabbar-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --col: 480px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--text); font-size: 15px; line-height: 1.6;
  background: radial-gradient(1200px 700px at 50% -10%, #0f5a90 0%, #072a4d 45%, #020c19 100%) fixed;
  min-height: 100vh; overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.ic { flex: none; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.serif { font-family: var(--serif); }
.gold-text {
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 48%, var(--gold-3) 78%, #F7D98A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--text-2); }
.tiny { font-size: 12px; color: var(--text-3); }
.hide { display: none !important; }

/* ———— 应用骨架：手机宽度居中，桌面端四周是深海 ———— */
#app {
  position: relative; max-width: var(--col); margin: 0 auto; min-height: 100vh; background: var(--bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 30px 120px rgba(0, 0, 0, 0.45); overflow-x: hidden;
}
.view { min-height: 100vh; padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px); animation: viewIn 0.42s cubic-bezier(.2, .7, .2, 1) both; }
.view.no-tab { padding-bottom: calc(88px + var(--safe-b)); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.demo-ribbon {
  position: fixed; top: 13px; right: max(10px, calc(50% - var(--col) / 2 + 10px)); z-index: 60; pointer-events: none;
  font-size: 10px; letter-spacing: 0.06em; color: #fff; background: rgba(217, 54, 62, 0.85); padding: 1px 8px; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ———— 底部导航 ———— */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, var(--col)); z-index: 50;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-top: 1px solid rgba(13, 58, 102, 0.06);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 11px; color: var(--text-3); transition: color .2s; }
.tabbar a.on { color: var(--blue); font-weight: 600; }
.tabbar a.on .ic { stroke-width: 2; }

/* ———— 子页导航 ———— */
.navbar {
  position: sticky; top: 0; z-index: 40; height: 50px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(13, 58, 102, 0.05); font-weight: 600; font-size: 16px;
}
.navbar .back { position: absolute; left: 6px; top: 5px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.navbar.dark { background: rgba(5, 24, 46, 0.72); color: #fff; border-bottom-color: rgba(255, 255, 255, 0.06); }

/* ———— 通用组件 ———— */
.section { padding: 28px 16px 8px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 14px; }
.section-title h2 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 800; letter-spacing: 0.02em; }
.section-title .more { font-size: 13px; color: var(--blue); display: inline-flex; align-items: center; }
.card { background: var(--card); border-radius: var(--r-m); box-shadow: var(--shadow); }
.pad { padding: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.gap-8 { gap: 8px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: var(--bg-light); color: var(--blue); white-space: nowrap; }
.chip.orange { background: #FFEBD2; color: var(--orange-d); }
.chip.gold { background: linear-gradient(90deg, #FFF3CC, #FFE29A); color: #8A5A00; }
.chip.gray { background: #EEF1F5; color: var(--text-2); }
.chip.green { background: #E2F5EC; color: var(--ok); }
.chip.red { background: #FDE8E9; color: var(--danger); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; transition: transform .12s, filter .2s, opacity .2s; user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn.block { display: flex; width: 100%; }
.btn.primary { color: #fff; background: linear-gradient(180deg, #FFA43A 0%, var(--orange) 55%, #E87C0C 100%); box-shadow: 0 8px 20px rgba(247, 144, 30, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn.blue { color: #fff; background: linear-gradient(180deg, #2a82cc, var(--blue)); box-shadow: 0 8px 20px rgba(23, 105, 176, 0.28); }
.btn.gold { color: #4A2E00; background: linear-gradient(180deg, #FFF0B8 0%, #F6CF5C 55%, #E2A93A 100%); box-shadow: 0 8px 24px rgba(242, 193, 78, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn.ghost { color: var(--blue); background: var(--bg-light); }
.btn.line { color: var(--text); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.btn.wx { color: #fff; background: #07C160; box-shadow: 0 8px 20px rgba(7, 193, 96, 0.3); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn.xs { height: 28px; padding: 0 12px; font-size: 13px; }
.list { background: #fff; border-radius: var(--r-m); box-shadow: var(--shadow); overflow: hidden; }
.list .item { display: flex; align-items: center; gap: 12px; padding: 15px 16px; position: relative; }
.list .item + .item::before { content: ""; position: absolute; left: 50px; right: 0; top: 0; height: 1px; background: var(--line); }
.list .item .ic:first-child { color: var(--blue); }
.list .item .chev { color: var(--text-3); margin-left: auto; }
.kv { display: grid; grid-template-columns: 82px 1fr; gap: 10px 12px; font-size: 14px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }
.empty { text-align: center; color: var(--text-3); padding: 40px 16px; font-size: 14px; }
.empty .ic { color: #C7D3E0; margin: 0 auto 8px; }
.notice { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 10px 12px; border-radius: 12px; background: #FFF6E6; color: #8A5A00; }
.notice.blue { background: var(--bg-light); color: var(--deep); }
.notice.red { background: #FDECEC; color: #A3262C; }
.notice.green { background: #E6F6EE; color: #11724B; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }

/* 表单 */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 105, 176, 0.12); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.radio-list { display: grid; gap: 8px; }
.radio-list label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.radio-list label:has(input:checked) { border-color: var(--blue); background: #F4F9FE; }
.radio-list input { accent-color: var(--blue); }

/* 底部操作栏 */
.actionbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, var(--col)); z-index: 45;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(10px + var(--safe-b)); background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -6px 24px rgba(13, 58, 102, 0.08);
}
.actionbar .mini { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--text-2); width: 46px; }

/* Toast / Sheet / Modal */
.toast {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(0.96); z-index: 1200; max-width: min(84vw, 380px);
  background: rgba(10, 20, 35, 0.88); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; text-align: center;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; backdrop-filter: blur(8px);
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.mask { position: fixed; inset: 0; z-index: 900; background: rgba(3, 12, 25, 0.5); opacity: 0; transition: opacity .25s; }
.mask.show { opacity: 1; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%); width: min(100%, var(--col)); max-height: 88vh; overflow: auto;
  z-index: 901; background: #fff; border-radius: 22px 22px 0 0; padding: 8px 16px calc(18px + var(--safe-b)); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.sheet.show { transform: translate(-50%, 0); }
.sheet .grab { width: 38px; height: 4px; border-radius: 4px; background: #D5DCE5; margin: 4px auto 12px; }
.sheet h3 { margin: 0 0 12px; font-size: 17px; }

/* ———— 开机画面 ———— */
#splash {
  position: fixed; inset: 0; z-index: 1000; background: #03152b; overflow: hidden; color: #fff;
  clip-path: circle(150% at 50% 72%); transition: clip-path 1.05s cubic-bezier(.7, 0, .2, 1), opacity .6s;
}
#splash canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
#splash.on canvas { opacity: 1; }
#splash .sp-text { position: absolute; left: 0; right: 0; top: 17%; text-align: center; padding: 0 18px; pointer-events: none; }
#splash .sp-logo { width: min(36vw, 210px); margin: 0 auto 6vh; color: #fff; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .35)); }
#splash .sp-logo .wordmark, .wordmark { display: block; height: auto; }
#splash .sp-logo .wordmark { width: 100%; }
#splash .sp-logo path, #splash .sp-logo circle { stroke-dasharray: 1 1.2; stroke-dashoffset: 1; opacity: 0; }
#splash.logo .sp-logo path, #splash.logo .sp-logo circle { opacity: 1; transition: opacity .15s; }
#splash.logo .sp-logo path, #splash.logo .sp-logo circle { animation: draw 1.3s cubic-bezier(.6, .1, .2, 1) forwards; }
#splash.logo .sp-logo circle { animation-delay: .12s; }
#splash.logo .sp-logo path:nth-of-type(2) { animation-delay: .24s; } #splash.logo .sp-logo path:nth-of-type(3) { animation-delay: .36s; }
#splash.logo .sp-logo path:nth-of-type(4) { animation-delay: .48s; } #splash.logo .sp-logo path:nth-of-type(5) { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
#splash .sp-l1, #splash .sp-l2 { font-family: var(--serif); font-weight: 900; letter-spacing: 0.04em; line-height: 1.35; margin: 0; }
#splash .sp-l1 { font-size: clamp(24px, 6.4vw, 46px); color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
#splash .sp-l2 { font-size: clamp(25px, 6.8vw, 50px); margin-top: 1.2vh; filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .5)); }
#splash .ch { display: inline-block; opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity .7s, transform .9s cubic-bezier(.2, .8, .2, 1), filter .8s; }
#splash .ch.in { opacity: 1; transform: none; filter: none; }
#splash .sp-l2 .ch { background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 50%, var(--gold-3) 82%, #F7D98A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
#splash .sp-chips { margin-top: 3.4vh; font-size: clamp(12px, 3.3vw, 16px); color: rgba(225, 236, 248, .82); letter-spacing: .06em; opacity: 0; transform: translateY(8px); transition: opacity 1s, transform 1s; }
#splash .sp-chips.in { opacity: 1; transform: none; }
#splash .sp-chips i { font-style: normal; margin: 0 .5em; color: rgba(242, 193, 78, .8); }
#splash .sp-enter {
  position: absolute; left: 50%; bottom: calc(7vh + var(--safe-b)); transform: translate(-50%, 12px); opacity: 0; transition: opacity .8s, transform .8s;
  display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; color: rgba(225, 236, 248, .7); letter-spacing: .2em;
}
#splash .sp-enter.in { opacity: 1; transform: translate(-50%, 0); }
#splash .sp-enter .btn { letter-spacing: .3em; padding: 0 34px 0 40px; }
#splash .sp-skip {
  position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 2; font-size: 12px; color: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 4px 12px; background: rgba(0, 0, 0, .18); backdrop-filter: blur(6px);
}
#splash .sp-note { position: absolute; left: 0; right: 0; bottom: calc(14px + var(--safe-b)); text-align: center; font-size: 10px; color: rgba(255, 255, 255, .32); letter-spacing: .1em; }
#splash.out { clip-path: circle(0% at var(--px, 50%) var(--py, 72%)); }

/* ———— 首页主视觉 ———— */
.hero { position: relative; height: min(100vh, 820px); min-height: 620px; overflow: hidden; color: #fff; background: #062a4d; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .hero-inner { position: relative; z-index: 2; padding: 64px 22px 0; text-align: center; }
.hero .wordmark { width: 118px; margin: 0 auto 26px; color: #fff; opacity: .95; }
.hero .kicker { font-size: 12px; letter-spacing: .5em; color: var(--gold-2); margin-bottom: 10px; padding-left: .5em; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(28px, 8.2vw, 38px); line-height: 1.35; letter-spacing: .04em; text-shadow: 0 4px 26px rgba(0, 0, 0, .4); }
.hero h1 .gold-text { filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .4)); }
.hero .sub { margin: 14px auto 0; max-width: 330px; font-size: 13px; color: rgba(225, 236, 248, .82); letter-spacing: .04em; }
.hero .stage { position: absolute; left: 0; right: 0; bottom: 92px; height: 46%; z-index: 2; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.hero .can { width: min(60%, 270px); position: relative; z-index: 2; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.hero .can-glow { position: absolute; bottom: 4%; left: 50%; width: 72%; height: 60%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 196, 80, .38), rgba(255, 170, 50, 0)); z-index: 1; animation: glow 6s ease-in-out infinite; }
.pearl { position: absolute; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 32% 28%, #fff7d6 0%, #ffd65a 22%, #f4a21f 60%, #b5600c 100%);
  box-shadow: 0 0 24px rgba(255, 190, 70, .55), inset -3px -4px 8px rgba(120, 50, 0, .35); }
.pearl::after { content: ""; position: absolute; left: 20%; top: 14%; width: 30%; height: 20%; border-radius: 50%; background: rgba(255, 255, 255, .85); transform: rotate(-30deg); filter: blur(.3px); }
.hero .p1 { width: 30px; height: 30px; left: 16%; bottom: 40%; animation: floaty 5s ease-in-out infinite; }
.hero .p2 { width: 22px; height: 22px; right: 17%; bottom: 52%; animation: floaty 6.2s ease-in-out -2s infinite; }
.hero .p3 { width: 16px; height: 16px; right: 24%; bottom: 22%; animation: floaty 4.6s ease-in-out -1s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes glow { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.hero .wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; width: 100%; height: 70px; }
.scroll-hint { display: none; position: absolute; left: 50%; bottom: 82px; z-index: 4; transform: translateX(-50%); width: 22px; height: 34px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 12px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: hint 1.8s infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* 产品卡（压在主视觉下缘） */
.product-card { position: relative; z-index: 5; margin: -44px 16px 0; padding: 16px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-l); display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
.product-card .thumb { width: 112px; height: 112px; border-radius: 16px; background: radial-gradient(circle at 50% 40%, #fff, #EAF3FB 70%); display: grid; place-items: center; overflow: hidden; }
.product-card .thumb img { width: 92%; }
.product-card h3 { margin: 4px 0 2px; font-size: 16px; line-height: 1.35; }
.price { color: var(--orange); font-family: var(--num); font-weight: 700; }
.price small { font-size: 0.55em; margin-right: 1px; }
.product-card .price { font-size: 26px; line-height: 1.1; }

/* 信任点 */
.trust { display: grid; gap: 12px; }
.trust .t { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 16px; }
.trust .t .ib { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #2B86D1, var(--blue)); box-shadow: 0 6px 14px rgba(23, 105, 176, .25); }
.trust .t b { display: block; font-size: 16px; }
.trust .t p { margin: 2px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* 一袋 3 粒 */
.perbag { position: relative; overflow: hidden; border-radius: var(--r-l); padding: 22px 20px; color: #fff;
  background: radial-gradient(120% 90% at 85% 10%, #1F7BC6 0%, var(--deep) 55%, #072241 100%); box-shadow: var(--shadow-l); }
.perbag .pearls { position: absolute; right: 18px; top: 20px; width: 110px; height: 96px; }
.perbag .pearls .pearl:nth-child(1) { width: 52px; height: 52px; left: 6px; top: 34px; }
.perbag .pearls .pearl:nth-child(2) { width: 52px; height: 52px; left: 52px; top: 34px; }
.perbag .pearls .pearl:nth-child(3) { width: 52px; height: 52px; left: 29px; top: -4px; }
.perbag h3 { margin: 0; font-family: var(--serif); font-size: 26px; letter-spacing: .06em; }
.perbag .big { font-size: 38px; font-weight: 700; line-height: 1.1; margin-top: 18px; }
.perbag .big small { font-size: 15px; font-weight: 500; margin-left: 4px; color: rgba(255, 255, 255, .8); }
.perbag .line2 { font-size: 13px; color: rgba(225, 236, 248, .82); margin-top: 6px; }
.perbag .note { font-size: 11px; color: rgba(225, 236, 248, .55); margin-top: 14px; }

/* 孩子愿意天天吃（奶油底 + E 纹样） */
.kids { position: relative; border-radius: var(--r-l); padding: 22px 18px 18px; background: var(--cream); overflow: hidden; }
.kids::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M10 9h11v3.5h-7v2.2h6v3.4h-6v2.4h7V24H10z' fill='%23F7901E' fill-opacity='.12'/%3E%3Cpath d='M30 29h7v2.2h-4.4v1.4h3.8v2.2h-3.8v1.5h4.4V39H30z' fill='%23F7901E' fill-opacity='.08'/%3E%3C/svg%3E"); }
.kids > * { position: relative; }
.kids h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 22px; color: var(--orange-d); }
.kids .k { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 12px; background: rgba(255, 255, 255, .78); border-radius: 14px; }
.kids .k + .k { margin-top: 10px; }
.kids .k .ib { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #FFE2BD; color: var(--orange-d); }
.kids .k b { display: block; font-size: 15px; }
.kids .k span { font-size: 13px; color: var(--text-2); }

/* 8 步横滑 */
.hscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.step-mini { flex: none; width: 128px; scroll-snap-align: start; padding: 14px 12px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.step-mini .n { font-family: var(--num); font-weight: 700; font-size: 22px; color: var(--blue); opacity: .9; }
.step-mini b { display: block; font-size: 14px; margin-top: 2px; }
.step-mini p { margin: 4px 0 0; font-size: 12px; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 门店卡 */
.store-card { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px 16px; }
.store-card b { font-size: 15px; }
.store-card .meta { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.store-card .dist { font-family: var(--num); font-weight: 600; color: var(--blue); font-size: 13px; text-align: right; }
.store-card + .store-card { border-top: 1px solid var(--line); }

/* 页脚 */
.footer { padding: 28px 20px 12px; text-align: center; font-size: 11.5px; color: var(--text-3); line-height: 1.9; }
.footer .wordmark { width: 76px; color: #B7C3D1; margin: 0 auto 10px; }
.footer a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; margin: 0 6px; }

/* ———— 商品详情 ———— */
.gallery { position: relative; background: radial-gradient(circle at 50% 42%, #fff 0%, #EAF3FB 72%); }
.gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .slide { flex: none; width: 100%; aspect-ratio: 1 / 1; scroll-snap-align: center; display: grid; place-items: center; }
.gallery .slide img { max-width: 86%; max-height: 86%; object-fit: contain; }
.gallery .slide img.cover { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; }
.gallery .dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery .dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(13, 58, 102, .2); transition: width .25s, background .25s; }
.gallery .dots i.on { width: 18px; background: var(--blue); }
.gallery .img-note { position: absolute; top: 12px; right: 12px; font-size: 10.5px; color: var(--text-2); background: rgba(255, 255, 255, .8); padding: 2px 8px; border-radius: 999px; }
.pd-head { padding: 16px; background: #fff; }
.pd-head .price { font-size: 32px; }
.pd-head h1 { margin: 6px 0 4px; font-size: 19px; line-height: 1.4; }
.promo-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: linear-gradient(90deg, #FFF3E0, #FFF9EF); font-size: 13px; color: var(--orange-d); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td:first-child { color: var(--text-2); width: 86px; }
.table tr:last-child td { border-bottom: 0; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: var(--bg); }
.qty button { width: 40px; height: 40px; display: grid; place-items: center; color: var(--blue); }
.qty button[disabled] { color: var(--text-3); }
.qty b { min-width: 34px; text-align: center; font-family: var(--num); font-size: 18px; }

/* ———— 好原料：时间线 ———— */
.ing-hero { position: relative; height: 300px; overflow: hidden; color: #fff; background: #0a3d6c; }
.ing-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ing-hero .txt { position: absolute; left: 0; right: 0; bottom: 40px; padding: 0 22px; z-index: 2; }
.ing-hero h1 { margin: 0; font-family: var(--serif); font-size: 30px; letter-spacing: .06em; }
.ing-hero p { margin: 6px 0 0; font-size: 13px; color: rgba(225, 236, 248, .85); }
.timeline { position: relative; padding: 8px 16px 0 16px; }
.timeline::before { content: ""; position: absolute; left: 39px; top: 24px; bottom: 30px; width: 2px; background: linear-gradient(180deg, var(--blue), #8CC2EC 60%, var(--orange)); border-radius: 2px; opacity: .35; }
.timeline .fill { position: absolute; left: 39px; top: 24px; width: 2px; height: 0; background: linear-gradient(180deg, var(--blue), var(--orange)); border-radius: 2px; transition: height .2s linear; }
.tl { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 12px 0; opacity: 0; transform: translateY(16px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.tl.in { opacity: 1; transform: none; }
.tl .node { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue); box-shadow: 0 0 0 4px var(--bg), var(--shadow); font-family: var(--num); font-weight: 700; font-size: 17px; }
.tl.last .node { background: linear-gradient(145deg, #FFB443, var(--orange)); color: #fff; }
.tl .body { padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.tl .body b { font-size: 16px; }
.tl .body p { margin: 4px 0 0; font-size: 13px; color: var(--text-2); }
.epax { position: relative; overflow: hidden; border-radius: var(--r-l); padding: 22px 20px; background: linear-gradient(160deg, #10234A, #1A1747); color: #fff; }
.epax .lh { position: absolute; right: -40px; bottom: -20px; width: 240px; opacity: .35; }
.epax .name { font-family: var(--num); font-size: 30px; font-weight: 700; letter-spacing: .02em; color: #fff; }
.epax p { color: rgba(225, 236, 248, .8); font-size: 13px; margin: 6px 0 0; max-width: 78%; position: relative; }

/* ———— DHA 知识 ———— */
.dha-hero { padding: 26px 18px 18px; background: linear-gradient(180deg, #fff, var(--bg)); }
.dha-hero .big { font-family: var(--num); font-size: 56px; font-weight: 800; color: var(--orange); line-height: 1; letter-spacing: -.01em; }
.dha-hero h1 { margin: 6px 0 0; font-family: var(--serif); font-size: 22px; }
.dha-hero p { margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.figure { border-radius: var(--r-m); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.figure img { width: 100%; }
.fact { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 16px; }
.fact + .fact { border-top: 1px solid var(--line); }
.fact .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--num); font-weight: 700; font-size: 14px; }
.fact b { font-size: 15px; }
.fact p { margin: 3px 0 0; font-size: 13px; color: var(--text-2); }
sup.ref { color: var(--blue); font-family: var(--num); font-size: 10px; margin-left: 1px; }
.struct { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff; }
.struct + .struct { margin-top: 8px; }
.struct .code { height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--num); font-weight: 700; color: var(--deep); background: var(--cream); }
.struct.hl { background: #F1F8FF; box-shadow: inset 0 0 0 1.5px rgba(23, 105, 176, .4); }
.struct.hl .code { background: var(--blue); color: #fff; }
.refs { font-size: 12px; color: var(--text-2); line-height: 1.6; padding-left: 0; list-style: none; margin: 0; }
.refs li { padding: 10px 0; border-bottom: 1px dashed var(--line); display: grid; grid-template-columns: 22px 1fr; }
.refs li:last-child { border: 0; }
.refs a { color: var(--blue); word-break: break-all; }

/* ———— 我的 ———— */
.me-head { position: relative; padding: 54px 18px 70px; color: #fff; overflow: hidden; background: radial-gradient(120% 120% at 90% 0%, #2280cc 0%, var(--deep) 50%, #071f3b 100%); }
.me-head .wm-bg { position: absolute; right: -30px; bottom: 12px; width: 220px; color: rgba(255, 255, 255, .06); }
.avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 700; color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); flex: none; }
.me-head .name { font-size: 20px; font-weight: 700; }
.me-head .tag { font-size: 12px; color: rgba(225, 236, 248, .8); }
.me-orders { margin: -48px 16px 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); padding: 14px 6px; }
.me-orders a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); position: relative; }
.me-orders a .ic { color: var(--deep); }
.me-orders .badge { position: absolute; top: -4px; right: 18%; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--orange); color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-family: var(--num); }
.role-card { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 16px; border-radius: var(--r-m); color: #fff; background: linear-gradient(120deg, #F7901E, #FFB64D); box-shadow: 0 10px 26px rgba(247, 144, 30, .3); }
.role-card.blue { background: linear-gradient(120deg, var(--blue), #3A9BE3); box-shadow: 0 10px 26px rgba(23, 105, 176, .28); }
.role-card.navy { background: linear-gradient(120deg, var(--navy), #2E3A7A); box-shadow: 0 10px 26px rgba(26, 23, 71, .3); }
.role-card .ib { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.role-card b { font-size: 16px; }
.role-card span { font-size: 12px; opacity: .85; display: block; }

/* ———— 推荐官中心 ———— */
.ref-head { position: relative; padding: 18px 18px 82px; color: #fff; overflow: hidden; background: radial-gradient(130% 120% at 100% 0%, #1F7BC6 0%, var(--deep) 46%, #061B34 100%); }
.ref-head .label { font-size: 13px; color: rgba(225, 236, 248, .75); }
.ref-head .total { font-size: 40px; font-weight: 700; margin-top: 4px; line-height: 1.1; }
.ref-head .total small { font-size: 18px; margin-right: 2px; }
.ref-head .code { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.bal-grid { margin: -62px 16px 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 4px; }
.bal-grid div { text-align: center; }
.bal-grid b { display: block; font-family: var(--num); font-size: 16px; }
.bal-grid span { font-size: 11.5px; color: var(--text-2); }
.bal-grid .avail b { color: var(--orange); }
.progress { height: 10px; border-radius: 6px; background: #E9EEF4; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #F6CF5C, var(--orange)); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.grid-entry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid-entry a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 6px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); font-size: 13px; }
.grid-entry a .ib { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--blue); background: var(--bg-light); }
.ledger .li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ledger .li:last-child { border: 0; }
.ledger .li .amt { font-family: var(--num); font-weight: 600; text-align: right; }
.ledger .li .amt.neg { color: var(--danger); }
.ledger .li .sub { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); }

/* 海报 */
.poster-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.poster-tabs button { flex: none; padding: 6px 14px; border-radius: 999px; background: #fff; font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); }
.poster-tabs button.on { background: var(--blue); color: #fff; box-shadow: none; }
.poster-wrap { margin-top: 12px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-l); background: #0a2a4c; aspect-ratio: 3 / 5; display: grid; place-items: center; color: rgba(255, 255, 255, .6); }
.poster-wrap img { width: 100%; height: 100%; object-fit: cover; }
.copy-item { padding: 14px 16px; font-size: 14px; line-height: 1.7; }
.copy-item + .copy-item { border-top: 1px solid var(--line); }
.qrbox { display: grid; place-items: center; padding: 18px; }
.qrbox canvas, .qrbox img { width: 180px; height: 180px; image-rendering: pixelated; }

/* 支付 sheet（模拟微信） */
.wxpay { text-align: center; padding: 8px 4px 0; }
.wxpay .merchant { font-size: 14px; color: var(--text-2); }
.wxpay .amt { font-family: var(--num); font-size: 40px; font-weight: 600; margin: 6px 0 2px; }
.wxpay .amt small { font-size: 22px; margin-right: 2px; }
.success-ring { width: 84px; height: 84px; border-radius: 50%; margin: 10px auto 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #2BC27A, #13A35E); box-shadow: 0 12px 30px rgba(19, 163, 94, .35); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* 演示面板 */
.demo-fab {
  position: fixed; z-index: 55; right: max(12px, calc(50% - var(--col) / 2 + 12px)); bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px);
  height: 40px; padding: 0 14px 0 10px; border-radius: 999px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: #4A2E00; background: linear-gradient(180deg, #FFF0B8, #F6CF5C); box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}
.demo-fab .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; }
body.no-tab .demo-fab { bottom: calc(92px + var(--safe-b)); height: 34px; font-size: 12px; opacity: .92; }
.id-list { display: grid; gap: 8px; }
.id-list button { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 14px; background: var(--bg); }
.id-list button.on { background: #EAF4FD; box-shadow: inset 0 0 0 1.5px var(--blue); }
.id-list .avatar { width: 38px; height: 38px; font-size: 15px; box-shadow: none; }
.id-list b { font-size: 14px; display: block; }
.id-list span { font-size: 12px; color: var(--text-2); }
.code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.code-grid button { text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 13px; line-height: 1.4; }
.code-grid button b { display: block; font-family: var(--num); color: var(--blue); }
.demo-card { margin: 16px 16px 0; padding: 14px; border-radius: 16px; border: 1.5px dashed rgba(217, 54, 62, .35); background: #FFF8F8; font-size: 13px; }
.demo-card .h { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--danger); font-size: 12px; letter-spacing: .04em; margin-bottom: 6px; }

/* 状态标签 */
.st { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: #EEF1F5; color: var(--text-2); white-space: nowrap; }
.st.estimated { background: #EEF4FB; color: var(--blue); }
.st.pending { background: #FFF4E0; color: var(--warn); }
.st.available { background: #E3F6EC; color: var(--ok); }
.st.withdrawing { background: #F1ECFB; color: #6B45C2; }
.st.withdrawn { background: #EEF1F5; color: var(--text-2); }
.st.cancelled { background: #F5F5F5; color: #999; text-decoration: line-through; }
.st.clawback { background: #FDE8E9; color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  .view, .tl, .hero .can, .pearl { animation: none !important; transition: none !important; }
}
@media (min-width: 520px) {
  #app { border-radius: 0; }
}
