/* Xiaoli Color Lab · 基础样式：字体、色板、手机外壳、导航、弹层 */
@font-face { font-family: "Fredoka"; src: url(../fonts/Fredoka-600.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/Poppins-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/Poppins-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/Poppins-600.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --green: #12A150; --green-d: #0B7A3C; --green-l: #E3F4E9; --mint: #BFE8CF;
  --ink: #1C1C1E; --ink-2: #4A4A4F; --ink-3: #8A8A90; --line: #ECE6DA;
  --paper: #FBF8F1; --card: #FFFFFF; --yellow: #F6C21B; --red: #E8452C; --blue: #1F5FB4;
  --radius: 18px; --shadow: 0 6px 20px rgba(60, 50, 20, .08);
  --title: "Fredoka", "Poppins", sans-serif; --body: "Poppins", -apple-system, "Segoe UI", sans-serif;
  --tab-h: 64px; --top-h: 88px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--body); color: var(--ink); background: #10331F; font-size: 15px; line-height: 1.6; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
b, strong { font-weight: 700; }
h1, h2, h3 { margin: 0; font-weight: 400; font-family: var(--title); letter-spacing: .5px; }
p { margin: 0; }

/* 桌面：左侧介绍 + 居中手机 */
.stage { min-height: 100%; display: flex; align-items: center; justify-content: center; gap: 72px; padding: 32px;
  background: radial-gradient(ellipse at 30% 20%, rgba(18,161,80,.55), transparent 60%), linear-gradient(rgba(10,40,24,.78), rgba(10,40,24,.9)), url(../assets/scene/hero.webp) center/cover fixed; }
.intro { max-width: 360px; color: #F3F7F2; }
.intro-brand { font-size: 13px; letter-spacing: 3px; color: var(--mint); }
.intro-title { font-size: 56px; line-height: 1.15; margin-top: 10px; color: #fff; }
.intro-en { font-family: var(--title); font-size: 20px; color: var(--yellow); margin-bottom: 20px; }
.intro-text { font-size: 15px; color: #D8E6DC; }
.intro-list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.intro-list li { font-size: 14px; color: #C9DBCF; padding-left: 14px; border-left: 3px solid var(--green); }
.intro-list b { color: #fff; margin-right: 8px; }
.intro-foot { font-size: 12px; color: #8FB39C; }

.phone { position: relative; width: 390px; height: 844px; flex: none; border-radius: 48px; overflow: hidden; background: var(--paper);
  box-shadow: 0 0 0 10px #0E0E10, 0 0 0 12px #3A3A3E, 0 40px 80px rgba(0,0,0,.5); isolation: isolate; }
@media (max-width: 860px) {
  body { background: var(--paper); }
  .stage { padding: 0; display: block; background: var(--paper); }
  .intro { display: none; }
  .phone { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
}

/* 状态栏 + 小程序导航栏 */
.statusbar { position: absolute; z-index: 30; top: 0; left: 0; right: 0; height: 44px; padding: 14px 28px 0; display: flex; justify-content: space-between;
  font-size: 15px; font-weight: 700; pointer-events: none; }
.sb-right { display: flex; gap: 6px; align-items: center; }
.sb-signal { width: 17px; height: 11px; background: linear-gradient(to right, currentColor 3px, transparent 3px 4.6px, currentColor 4.6px 7.6px, transparent 7.6px 9.2px, currentColor 9.2px 12.2px, transparent 12.2px 13.8px, currentColor 13.8px);
  clip-path: polygon(0 75%, 22% 75%, 22% 50%, 45% 50%, 45% 25%, 70% 25%, 70% 0, 100% 0, 100% 100%, 0 100%); }
.sb-wifi { width: 15px; height: 11px; background: currentColor; clip-path: polygon(50% 100%, 0 30%, 15% 12%, 50% 0, 85% 12%, 100% 30%); border-radius: 2px; }
.sb-batt { width: 24px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; opacity: .9; }
.sb-batt::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: currentColor; border-radius: 1px; }
.navbar { position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: var(--top-h); padding: 44px 12px 0; display: flex; align-items: center; justify-content: center;
  background: rgba(251,248,241,.92); backdrop-filter: blur(12px); transition: background .25s; }
.navbar.clear { background: transparent; backdrop-filter: none; }
.nav-title { font-size: 19px; }
.nav-back { position: absolute; left: 10px; top: 50px; width: 32px; height: 32px; display: none; }
.nav-back::before { content: ""; position: absolute; left: 12px; top: 10px; width: 11px; height: 11px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); }
.navbar.has-back .nav-back { display: block; }
.capsule { position: absolute; right: 10px; top: 50px; width: 87px; height: 32px; border-radius: 16px; border: 1px solid rgba(0,0,0,.1); background: rgba(255,255,255,.72);
  display: flex; align-items: center; justify-content: space-around; }
.cap-dots { display: flex; gap: 3px; } .cap-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.cap-dots i:nth-child(2) { width: 7px; height: 7px; margin-top: -1px; }
.cap-sep { width: 1px; height: 18px; background: rgba(0,0,0,.12); }
.cap-ring { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--ink); position: relative; }
.cap-ring::after { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--ink); }

.view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: var(--top-h) 0 calc(var(--tab-h) + 18px); scroll-behavior: smooth; scrollbar-width: none; }
.view::-webkit-scrollbar { display: none; }
.view.no-tab { padding-bottom: 24px; }
.view:not(.full) { top: var(--top-h); padding-top: 0; }
.view.full { padding-top: 0; }
.page { animation: pageIn .35s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }

/* 底部 Tab */
.tabbar { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: flex; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); transition: transform .3s; }
.tabbar.hide { transform: translateY(150%); visibility: hidden; transition: transform .3s, visibility 0s .3s; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--ink-3); }
.tabbar a img { width: 28px; height: 28px; object-fit: contain; filter: grayscale(1) opacity(.55); transition: .2s; }
.tabbar a.on { color: var(--green-d); font-weight: 700; } .tabbar a.on img { filter: none; transform: scale(1.1); }
.tab-main .tab-bubble { width: 56px; height: 56px; margin-top: -26px; border-radius: 50%; background: var(--green); border: 4px solid #fff; box-shadow: 0 6px 16px rgba(18,161,80,.4); overflow: hidden; }
.tab-main .tab-bubble img { width: 100%; height: 100%; object-fit: cover; filter: none !important; transform: none !important; }

/* 启动页 */
.splash { position: absolute; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; transition: opacity .6s, visibility .6s; }
.splash.gone { opacity: 0; visibility: hidden; }
.splash-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.splash-card { position: relative; text-align: center; margin-bottom: 70px; }
.splash-char { height: 400px; margin: 0 auto -18px; animation: bob 2.4s ease-in-out infinite; filter: drop-shadow(0 12px 18px rgba(0,0,0,.25)); }
.splash h1 { font-size: 46px; color: #fff; text-shadow: 0 3px 0 var(--green-d), 0 6px 18px rgba(0,0,0,.35); }
.splash-card p { color: #fff; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.splash-foot { position: relative; margin-bottom: 30px; font-size: 12px; letter-spacing: 2px; color: rgba(255,255,255,.9); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* 底部弹层 + 提示 */
.sheet-mask { position: absolute; inset: 0; z-index: 40; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: .25s; }
.sheet { position: absolute; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; background: var(--paper); border-radius: 24px 24px 0 0;
  padding: 10px 18px 28px; transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); scrollbar-width: none; }
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: #D9D2C3; margin: 0 auto 12px; }
.sheet-open .sheet-mask { opacity: 1; visibility: visible; } .sheet-open .sheet { transform: none; }
.toast { position: absolute; z-index: 60; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(.9); max-width: 76%; padding: 12px 18px; border-radius: 14px;
  background: rgba(28,28,30,.86); color: #fff; font-size: 14px; text-align: center; opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, -50%); }
