/* ===================== Design Tokens (Light) ===================== */
:root {
  /* 基础色 */
  --bg: #f4f9fb;            /* 页面底色：冷白 */
  --surface: #ffffff;       /* 卡片 */
  --surface-2: #ecf5f7;     /* 次级表面 */
  --text: #0c1f2e;          /* 主文字：深青黑 */
  --text-2: #54708a;        /* 次要文字 */
  --line: #dcebf0;          /* 分隔线 */

  /* 主题色（Primary）：青 —— 健康 × 科技 */
  --primary: #0891b2;
  --primary-2: #14b8a6;
  --grad: linear-gradient(120deg, #06b6d4, #14b8a6);

  /* 辅助色（按产品线） */
  --acc-eye: #0284c7;
  --acc-brain: #6366f1;
  --acc-sleep: #4f46e5;
  --acc-blood: #2563eb;
  --acc-muscle: #0d9488;

  --radius: 20px;
  --shadow: 0 12px 44px rgba(12, 60, 90, 0.1);
  --font: "Manrope", "Noto Sans SC", -apple-system, "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow: hidden;
}

/* ===================== Fullpage deck ===================== */
.deck {
  height: 100vh;
  height: 100svh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.deck::-webkit-scrollbar { display: none; }

.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 24px 48px;
  overflow: hidden;
}

.panel-inner {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
}

/* ===================== Nav ===================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(244, 249, 251, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 249, 251, 0.88);
  box-shadow: 0 4px 24px rgba(12, 60, 90, 0.06);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.35);
}
.logo-text { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo-text em { font-style: normal; color: var(--primary); }

.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  text-decoration: none;
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.lang-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font: 600 13px var(--font);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* ===================== Dot nav ===================== */
.dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(84, 112, 138, 0.45);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s;
}
.dots button:hover { border-color: var(--primary); }
.dots button.active {
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 0 10px rgba(8, 145, 178, 0.45);
  transform: scale(1.25);
}

/* ===================== Hero ===================== */
.hero {
  background:
    radial-gradient(ellipse 60% 50% at 75% 40%, rgba(6, 182, 212, 0.1), transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(20, 184, 166, 0.08), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(120deg, var(--text) 40%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub { font-size: 17px; color: var(--text-2); max-width: 460px; margin-bottom: 34px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.socials { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.socials-label { font-size: 13px; color: var(--text-2); margin-right: 4px; }
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { color: #fff; background: var(--primary); border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(8, 145, 178, 0.35); }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 26px rgba(8, 145, 178, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(8, 145, 178, 0.42); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---- Human figure ---- */
.hero-figure { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.figure-panel {
  position: relative;
  height: min(72vh, 640px);
  aspect-ratio: 1177 / 2506;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 32%, rgba(6, 182, 212, 0.12), transparent 65%),
    linear-gradient(rgba(8, 145, 178, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 145, 178, 0.05) 1px, transparent 1px),
    var(--surface);
  background-size: auto, 26px 26px, 26px 26px, auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.body-fig {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
  filter: drop-shadow(0 0 16px rgba(6, 182, 212, 0.35));
}

/* Hotspots */
.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 2;
}
/* Connector thread: dot -> chip */
.hotspot .thread {
  position: absolute;
  top: 14px;
  height: 1px;
  pointer-events: none;
  opacity: 0.55;
}
/* chip on the right: line runs from dot's right edge to under the chip */
.hotspot.r .thread {
  left: 22px;
  width: calc(var(--lx) - 16px);
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.5), rgba(8, 145, 178, 0.15));
}
/* chip on the left: line runs from under the chip to dot's left edge */
.hotspot:not(.r) .thread {
  left: calc(var(--lx) + 26px);
  width: calc(12px - var(--lx) - 26px);
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.15), rgba(8, 145, 178, 0.5));
}
.hotspot:hover .thread, .hotspot.active .thread { opacity: 1; }
.hotspot .dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(8, 70, 94, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45), 0 0 12px rgba(8, 145, 178, 0.5);
  position: relative;
  transition: transform 0.2s;
}
.hotspot .dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(8, 145, 178, 0.55);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}
.hotspot .chip {
  position: absolute;
  left: var(--lx);
  top: var(--ly);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(12, 60, 90, 0.12);
  backdrop-filter: blur(6px);
  transition: all 0.2s;
}
.hotspot:hover .dot, .hotspot.active .dot { transform: scale(1.3); }
/* Mobile-only short chip (e.g. "Eye") shown under/beside the dot */
.hotspot .chip-mob { display: none; }
.hotspot:hover .chip, .hotspot.active .chip {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.figure-hint { font-size: 13px; color: var(--text-2); }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 2px solid rgba(84, 112, 138, 0.4);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute;
  left: 50%; top: 7px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--primary);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ===================== Product panels ===================== */
.product-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.glow-eye::before    { background: radial-gradient(ellipse 55% 45% at 28% 50%, rgba(2, 132, 199, 0.1), transparent 70%); }
.glow-brain::before  { background: radial-gradient(ellipse 55% 45% at 72% 50%, rgba(99, 102, 241, 0.1), transparent 70%); }
.glow-sleep::before  { background: radial-gradient(ellipse 55% 45% at 28% 50%, rgba(79, 70, 229, 0.08), transparent 70%); }
.glow-blood::before  { background: radial-gradient(ellipse 55% 45% at 72% 50%, rgba(37, 99, 235, 0.1), transparent 70%); }
.glow-muscle::before { background: radial-gradient(ellipse 55% 45% at 28% 50%, rgba(13, 148, 136, 0.1), transparent 70%); }

.product {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 52px 56px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.product-panel:nth-of-type(odd) .product-visual { order: 2; }
.product-panel:nth-of-type(odd) .product { grid-template-columns: 1fr 320px; }
.product.flash { animation: flash 1.6s ease; }
@keyframes flash {
  0%, 100% { box-shadow: var(--shadow); }
  30% { box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.35), var(--shadow); }
}

.product-visual {
  height: 280px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
}
.grad-eye    { background: linear-gradient(135deg, #38bdf8, var(--acc-eye)); box-shadow: 0 12px 36px rgba(2, 132, 199, 0.28); }
.grad-brain  { background: linear-gradient(135deg, #818cf8, var(--acc-brain)); box-shadow: 0 12px 36px rgba(99, 102, 241, 0.28); }
.grad-sleep  { background: linear-gradient(135deg, #818cf8, var(--acc-sleep)); box-shadow: 0 12px 36px rgba(79, 70, 229, 0.26); }
.grad-blood  { background: linear-gradient(135deg, #60a5fa, var(--acc-blood)); box-shadow: 0 12px 36px rgba(37, 99, 235, 0.28); }
.grad-muscle { background: linear-gradient(135deg, #2dd4bf, var(--acc-muscle)); box-shadow: 0 12px 36px rgba(13, 148, 136, 0.28); }

.product-icon { width: 96px; height: 96px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.22)); }

.product-name { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.product-tagline { font-size: 17px; font-weight: 600; margin: 4px 0 20px; }
.glow-eye .product-tagline    { color: var(--acc-eye); }
.glow-brain .product-tagline  { color: var(--acc-brain); }
.glow-sleep .product-tagline  { color: var(--acc-sleep); }
.glow-blood .product-tagline  { color: var(--acc-blood); }
.glow-muscle .product-tagline { color: var(--acc-muscle); }

.product-features { list-style: none; margin-bottom: 28px; }
.product-features li {
  position: relative;
  padding-left: 26px;
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 8px;
}
.product-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  background: var(--grad);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="4"><path d="M4 12l5 5 11-11"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="4"><path d="M4 12l5 5 11-11"/></svg>') center/contain no-repeat;
}

.store-btns { display: flex; gap: 12px; flex-wrap: wrap; }
/* AeroEye: 4 buttons in one row, slightly compact */
.store-btns.one-row { flex-wrap: nowrap; gap: 8px; }
.store-btns.one-row .store-btn { padding: 8px 12px; gap: 8px; }
.store-btns.one-row .store-btn strong { font-size: 13px; }
.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0c1f2e;
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(12, 31, 46, 0.28); }
/* Coming-soon (not yet released) */
.store-btn.soon {
  background: #e8eef2;
  color: #7d93a6;
  cursor: default;
  box-shadow: none;
}
.store-btn.soon:hover { transform: none; box-shadow: none; }
.store-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn small { font-size: 10px; opacity: 0.7; }
.store-btn strong { font-size: 15px; }

/* ===================== About panel ===================== */
.about {
  background: radial-gradient(ellipse 60% 45% at 50% 30%, rgba(6, 182, 212, 0.08), transparent 70%);
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}
/* Watermark photo behind footer */
.about-photo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 460px;
  pointer-events: none;
  z-index: 0;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.45;
  filter: saturate(0.85);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%);
  mask-image: linear-gradient(to bottom, transparent, #000 28%);
}
.about-inner { text-align: center; }
.section-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-sub { color: var(--text-2); font-size: 16px; max-width: 620px; margin: 0 auto; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 20px;
  box-shadow: var(--shadow);
}
.stat strong {
  display: block;
  font-size: 38px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { color: var(--text-2); font-size: 14px; font-weight: 600; }
.stat .stat-text { font-size: 28px; }

.footer {
  margin-top: auto;
  width: 100%;
  padding: 26px 0 22px;
  text-align: center;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
  background: rgba(244, 249, 251, 0.55);
  backdrop-filter: blur(2px);
}
.footer-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 10px; flex-wrap: wrap; }
.footer-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-mail { display: inline-flex; align-items: center; gap: 7px; }
.footer-mail svg { width: 16px; height: 16px; flex-shrink: 0; }
.copyright { color: rgba(84, 112, 138, 0.65); font-size: 13px; }

/* ===================== Legal pages (privacy / terms) ===================== */
body.legal-body { overflow: auto; }
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(244, 249, 251, 0.8);
  border-bottom: 1px solid var(--line);
}
.legal-nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.legal-nav-inner .logo { margin-right: auto; }
.legal-back, .legal-lang {
  text-decoration: none;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.legal-back:hover, .legal-lang:hover { color: var(--primary); border-color: var(--primary); }
.legal { max-width: 760px; margin: 0 auto; padding: 48px 24px 90px; }
.legal h1 { font-size: 30px; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal-updated { color: rgba(84, 112, 138, 0.75); font-size: 13px; margin-bottom: 36px; }
.legal h2 { font-size: 18px; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--text-2); font-size: 15px; margin-bottom: 6px; }
.legal ul { padding-left: 22px; margin-bottom: 6px; }
.legal a { color: var(--primary); text-decoration: none; }
.legal .lang-en { display: none; }
body.show-en .lang-en { display: block; }
body.show-en .lang-zh { display: none; }

/* ===================== Reveal animation ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===================== Responsive ===================== */
@media (max-width: 960px) {
  .deck { scroll-snap-type: y proximity; }
  .panel { padding: 90px 20px 40px; min-height: 100svh; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .socials { justify-content: center; }
  .figure-panel { height: min(48vh, 420px); }
  .product, .product-panel:nth-of-type(odd) .product {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px;
  }
  .product-panel:nth-of-type(odd) .product-visual { order: 0; }
  .product-visual { height: 180px; }
  .product-name { font-size: 28px; }
  .dots { right: 12px; }
}

@media (max-width: 640px) {
  /* AeroEye: 2x2 grid, equal width & per-row height */
  .store-btns.one-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .store-btns.one-row .store-btn { justify-content: center; height: 100%; }
  /* Hide human figure on mobile */
  .hero-figure { display: none; }
  /* Other product cards: 2 store buttons in one row, equal width */
  .store-btns:not(.one-row) { flex-wrap: nowrap; }
  .store-btns:not(.one-row) .store-btn { flex: 1; min-width: 0; justify-content: center; padding: 8px 6px; gap: 6px; }
  .store-btns:not(.one-row) .store-btn svg { width: 18px; height: 18px; }
  .store-btns:not(.one-row) .store-btn small { font-size: 9px; }
  .store-btns:not(.one-row) .store-btn strong { font-size: 12px; white-space: nowrap; }
  .nav-links { display: none; }
  .hotspot .chip { display: none; }
  /* No watermark photo on mobile */
  .about-photo { display: none; }
  .stats { grid-template-columns: 1fr; gap: 14px; }
  .stat { padding: 18px; }
  .dots { display: none; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .deck { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hotspot .dot::after, .scroll-hint span { animation: none; }
}

/* ===================== Toast ===================== */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  margin-top: -26px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--text-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(12, 31, 46, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, margin-top 0.25s;
  z-index: 200;
  white-space: nowrap;
}
.toast.show { opacity: 1; margin-top: -38px; }
