/* 视觉令牌，取自 App 的“夜空”风格（ios/BlindBox/Design/Theme.swift） */
:root {
  --t1: #fff;
  --t2: rgba(255, 255, 255, .74);
  --t3: rgba(255, 255, 255, .55);
  --teal: #7FE3F7;
  --teal-g: linear-gradient(180deg, #5FD8F0, #1A9DC2);
  --teal-glow: rgba(46, 190, 225, .5);
  --amber: #FFD27A;
  --amber-g: linear-gradient(180deg, #FFD98A 0%, #F5B942 55%, #E39E22 100%);
  --amber-glow: rgba(245, 185, 66, .45);
  --amber-ink: #2B1B00;
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
  --card-border: rgba(255, 255, 255, .10);
  --bg-top: #0F3646;
  --bg-mid: #0A2331;
  --bg-bot: #061722;
  --radius: 22px;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--t1);
  background: var(--bg-bot);
  background-image:
    radial-gradient(900px 520px at 50% -120px, rgba(60, 196, 224, .30), transparent 70%),
    linear-gradient(180deg, var(--bg-top) 0, var(--bg-mid) 900px, var(--bg-bot) 1800px);
  background-repeat: no-repeat;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* 星空 */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.sky i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fff; opacity: .35; box-shadow: 0 0 6px rgba(255, 255, 255, .6);
  animation: twinkle 5s ease-in-out infinite;
}
.sky i:nth-child(3n) { width: 2px; height: 2px; animation-delay: -1.7s; }
.sky i:nth-child(3n+1) { animation-delay: -3.2s; animation-duration: 6.5s; }
@keyframes twinkle { 50% { opacity: .9; } }

/* 顶部导航 */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 28, 40, .62);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-in { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.brand img { border-radius: 22%; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--t2); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--t1); }

/* App Store 按钮 */
.store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 18px; border-radius: 14px;
  background: #000; border: 1px solid rgba(255, 255, 255, .28);
  transition: transform .16s var(--ease), border-color .2s;
}
.store svg { width: 26px; height: 26px; fill: #fff; }
.store-tx { display: flex; flex-direction: column; line-height: 1.1; }
.store-tx small { font-size: 11px; color: var(--t2); letter-spacing: .04em; }
.store-tx b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.store:hover { border-color: rgba(255, 255, 255, .55); }
.store:active { transform: scale(.97); }
.store.is-soon { cursor: default; }
.store.is-soon:active { transform: none; }
.store-sm { height: 40px; padding: 0 14px 0 12px; border-radius: 10px; gap: 7px; }
.store-sm svg { width: 18px; height: 18px; }
.store-sm .store-tx small { font-size: 9px; }
.store-sm .store-tx b { font-size: 14px; }

/* 首屏 */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
  min-height: calc(100vh - 64px); max-height: 980px; padding-top: 48px; padding-bottom: 48px;
}
/* 首屏产品名：进场淡入，之后图标像盲盒一样偶尔晃一下，名字上扫过一道光 */
.hero-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; animation: brand-in .9s var(--ease) both; }
.hero-brand img {
  width: 56px; height: 56px; border-radius: 22%; box-shadow: 0 10px 30px -8px var(--amber-glow);
  transform-origin: 50% 80%; animation: wiggle 5s ease-in-out 1.2s infinite;
}
.brand-name {
  font-size: clamp(30px, 3.4vw, 40px); font-weight: 900; letter-spacing: .08em; line-height: 1.2;
  background: linear-gradient(100deg, #fff 0 40%, #FFE2A0 48%, #fff 56% 100%) 100% 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s ease-in-out 1.2s infinite;
}
@keyframes brand-in { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }
@keyframes wiggle { 0%, 70%, 90%, 100% { rotate: 0deg; } 74% { rotate: -8deg; } 78% { rotate: 7deg; } 82% { rotate: -5deg; } 86% { rotate: 3deg; } }
@keyframes shine { 0% { background-position: 100% 0; } 30%, 100% { background-position: 0 0; } }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 600; font-size: 15px; letter-spacing: .04em; }
.spark { color: var(--amber); }
h1 {
  margin-top: 18px; font-size: clamp(34px, 5vw, 58px); line-height: 1.22;
  font-weight: 800; letter-spacing: -.01em;
}
h1 em {
  font-style: normal;
  background: var(--amber-g); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { text-wrap: pretty; margin-top: 22px; font-size: 18px; color: var(--t2); max-width: 32em; }
.cta-row { display: flex; align-items: center; gap: 20px; margin-top: 36px; flex-wrap: wrap; }
.cta-note { font-size: 13px; color: var(--t3); line-height: 1.7; }

.hero-art { position: relative; height: 640px; }
.hero-art .phone { position: absolute; width: 270px; }
.phone-back { left: 4%; top: 40px; transform: rotate(-7deg); opacity: .78; }
.phone-front { right: 6%; top: 0; transform: rotate(4deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(4deg) translateY(-12px); } }
/* 手机背后的光晕：琥珀色内核 + 青色外圈 + 缓慢旋转的光芒（呼应图标里礼盒透出的光） */
.halo {
  position: absolute; z-index: -1; left: 62%; top: 46%; width: min(880px, 160vw); aspect-ratio: 1; translate: -50% -50%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 214, 130, .75) 0, rgba(245, 185, 66, .4) 26%, transparent 54%),
    radial-gradient(circle, rgba(46, 190, 225, .55) 0, rgba(46, 190, 225, .22) 42%, transparent 70%);
  filter: blur(18px);
  animation: glow 6s ease-in-out infinite;
}
.halo::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 226, 160, .28) 0 5deg, transparent 5deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 12%, transparent 66%);
  mask: radial-gradient(circle, #000 12%, transparent 66%);
  animation: spin 80s linear infinite;
}
@keyframes glow { 50% { opacity: .72; scale: .95; } }
@keyframes spin { to { rotate: 360deg; } }

/* 手机框：边框、圆角都按手机宽度（cqw）等比缩放，比例参照 iPhone 实机；
   屏幕圆角 13.2cqw + 边框 3.2cqw = 外框圆角 16.4cqw，内外同心 */
.phone { position: relative; isolation: isolate; container-type: inline-size; }
.phone::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 16.4cqw;
  background: linear-gradient(160deg, #3b4f5a, #121d24 32%, #0a1318 68%, #2c3d47);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) inset, 0 0 0 2px #05090c inset,
    0 40px 80px -20px rgba(0, 0, 0, .65), 0 0 60px -10px rgba(46, 190, 225, .25);
}
.phone::after {
  content: ""; position: absolute; left: 50%; top: 5.4cqw; width: 28cqw; height: 7.6cqw;
  translate: -50% 0; border-radius: 99px; background: #000;
}
.phone img { width: calc(100% - 6.4cqw); margin: 3.2cqw; border-radius: 13.2cqw; }

/* 通用区块 */
.block { padding-top: 120px; }
.kicker { color: var(--teal); font-weight: 600; font-size: 14px; letter-spacing: .12em; }
.title { text-wrap: balance; margin-top: 10px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.3; font-weight: 800; letter-spacing: -.005em; }
.block > .title:first-child { margin-top: 0; }
.block > .title, .block > .kicker { text-align: center; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card {
  padding: 28px; border-radius: var(--radius);
  background: var(--card-bg); border: 1px solid var(--card-border);
}
.card h3 { margin-top: 18px; font-size: 19px; }
.card p { margin-top: 8px; color: var(--t2); font-size: 15px; }
.ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; }
.ic svg, .tasks svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-teal { color: #04202B; background: var(--teal-g); box-shadow: 0 8px 24px -8px var(--teal-glow); }
.ic-amber { color: var(--amber-ink); background: var(--amber-g); box-shadow: 0 8px 24px -8px var(--amber-glow); }

/* 三步 */
.step {
  display: grid; grid-template-columns: 1fr 300px; align-items: center; gap: 80px;
  max-width: 900px; margin: 72px auto 0;
}
.step-rev { grid-template-columns: 300px 1fr; }
.step-rev .step-copy { order: 2; }
.num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--amber-g); color: var(--amber-ink); font-weight: 800; font-size: 18px;
  box-shadow: 0 8px 24px -6px var(--amber-glow);
}
.step h3 { margin-top: 18px; font-size: 26px; }
.step p { margin-top: 10px; color: var(--t2); font-size: 17px; }
.tasks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; list-style: none; }
.tasks li {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(127, 227, 247, .08); border: 1px solid rgba(127, 227, 247, .22);
  color: var(--teal); font-size: 15px;
}
.tasks svg { width: 18px; height: 18px; }
.tasks .dashed { border-style: dashed; background: none; color: var(--t2); border-color: rgba(255, 255, 255, .25); }

/* 成就画廊 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.gallery .phone { max-width: 280px; margin: 0 auto; }
.gallery figcaption { text-wrap: balance; margin-top: 24px; text-align: center; color: var(--t2); font-size: 15px; padding: 0 8px; }
.gallery figcaption b { display: block; color: var(--t1); font-size: 18px; margin-bottom: 4px; }

/* 惊喜 */
.surprise {
  display: flex; align-items: center; gap: 56px; padding: 56px 64px; border-radius: 32px;
  background: radial-gradient(600px 300px at 15% 50%, rgba(160, 120, 255, .16), transparent 70%), var(--card-bg);
  border: 1px solid var(--card-border);
}
.surprise .title { margin-top: 8px; }
.surprise .lead { margin-top: 14px; }
.mystery {
  flex: none; display: grid; place-items: center; width: 160px; height: 160px; border-radius: 40px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02));
  border: 1px dashed rgba(255, 255, 255, .28);
  box-shadow: 0 0 80px -10px rgba(160, 120, 255, .45);
  animation: breathe 4.5s ease-in-out infinite;
}
.mystery span { font-size: 72px; font-weight: 800; color: rgba(255, 255, 255, .85); line-height: 1; }
@keyframes breathe { 50% { box-shadow: 0 0 110px -6px rgba(160, 120, 255, .6); } }

/* 价格 */
.price {
  max-width: 640px; margin: 0 auto; padding: 48px; border-radius: 32px; text-align: center;
  background: var(--card-bg); border: 1px solid rgba(245, 185, 66, .35);
  box-shadow: 0 0 120px -40px var(--amber-glow);
}
.price-big { margin-top: 12px; font-size: clamp(40px, 6vw, 56px); font-weight: 800; line-height: 1.2; }
.price-big span { background: var(--amber-g); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-sub { margin-top: 8px; font-size: 18px; color: var(--t2); }
.price-sub b { color: var(--t1); font-size: 22px; }
.price-list { list-style: none; margin: 32px auto 0; max-width: 400px; text-align: left; }
.price-list li { position: relative; padding: 9px 0 9px 32px; font-size: 16px; border-top: 1px solid rgba(255, 255, 255, .07); }
.price-list li:first-child { border-top: 0; }
.price-list li::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 14px; height: 8px; margin-top: -6px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}
.fine { margin-top: 28px; font-size: 13px; color: var(--t3); }

/* 常见问题 */
.faq { margin-top: 40px; }
.faq details { border-bottom: 1px solid rgba(255, 255, 255, .09); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--t3); border-bottom: 2px solid var(--t3);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { padding: 0 4px 22px; color: var(--t2); font-size: 16px; }

/* 收尾 */
.final { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-bottom: 40px; }
.final img { border-radius: 22%; box-shadow: 0 20px 60px -10px var(--amber-glow); }
.final .title { margin: 0; }

/* 页脚 */
.foot { margin-top: 80px; border-top: 1px solid rgba(255, 255, 255, .07); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; font-size: 13px; color: var(--t3); }
.foot .brand { font-size: 15px; color: var(--t2); margin-right: auto; }
.foot a:hover { color: var(--t1); }

/* 进入视口时淡入 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* 平板与手机 */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; text-align: center; padding-top: 40px; }
  .hero-brand, .eyebrow, .cta-row { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-note { text-align: left; }
  .hero-art { height: 520px; max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-art .phone { width: 220px; }
  .grid3 { grid-template-columns: 1fr; }
  .step, .step-rev { grid-template-columns: 1fr; gap: 32px; text-align: center; margin-top: 64px; }
  .step-rev .step-copy { order: 0; }
  .step .num { margin: 0 auto; }
  .step .phone { width: 260px; margin: 0 auto; }
  .tasks { justify-content: center; }
  .gallery { grid-template-columns: 1fr; gap: 56px; }
  .surprise { flex-direction: column; text-align: center; padding: 48px 28px; gap: 32px; }
  .block { padding-top: 96px; }
}
@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero-art { height: 440px; }
  .hero-art .phone { width: 180px; }
  .phone-back { left: 2%; }
  .phone-front { right: 2%; }
  .price { padding: 36px 22px; }
  .card { padding: 24px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky i, .phone-front, .mystery, .halo, .halo::before, .hero-brand, .hero-brand img, .brand-name { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
