:root {
  --bg: #0B1220;
  --bg2: #0F1A2C;
  --card: #121D31;
  --line: rgba(255, 255, 255, .08);
  --text: #E8EEF9;
  --sub: #8FA3BF;
  --dim: #5C6F8A;
  --accent: #2DD4BF;
  --deep: #34D399;
  --light: #60A5FA;
  --awake: #FBBF24;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(45, 212, 191, .10), transparent 60%),
    radial-gradient(700px 450px at 90% 0%, rgba(96, 165, 250, .08), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(11, 18, 32, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .02em;
}
.brand:hover { text-decoration: none; }
.brand em {
  color: var(--sub);
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  margin-left: 2px;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  font-size: 14px;
}
.nav nav a { color: var(--sub); }
.nav nav a:hover { color: var(--text); text-decoration: none; }

main { overflow: hidden; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 100px) clamp(18px, 5vw, 40px) clamp(40px, 6vw, 80px);
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(45, 212, 191, .35);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .04em;
  background: rgba(45, 212, 191, .06);
}

h1 {
  margin: 20px 0 18px;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.18;
  letter-spacing: -.01em;
}

.lead {
  margin: 0 0 26px;
  color: var(--sub);
  font-size: clamp(15px, 1.6vw, 17px);
  max-width: 540px;
}
.lead strong { color: var(--text); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #04120F;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.05); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn.small { min-height: 36px; padding: 0 16px; font-size: 13px; }

.meta { margin-top: 16px; color: var(--dim); font-size: 12px; }

.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: min(340px, 86vw);
  border-radius: 38px;
  padding: 10px;
  background: linear-gradient(160deg, #1B2940, #0C1526);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.phone-screen {
  border-radius: 30px;
  background: var(--bg);
  padding: 20px 18px 18px;
  min-height: 560px;
}
.phone-top {
  width: 86px;
  height: 5px;
  border-radius: 999px;
  background: #263650;
  margin: 0 auto 8px;
}
.app-head { display: flex; justify-content: space-between; align-items: baseline; }
.app-title { font-size: 22px; font-weight: 800; letter-spacing: .04em; }
.app-ver { color: var(--dim); font-size: 10px; }
.app-sub { color: var(--dim); font-size: 9px; margin-top: 2px; }

.score-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}
.score-label { color: var(--sub); font-size: 11px; }
.score-row { display: flex; align-items: baseline; gap: 6px; }
.score { color: var(--accent); font-size: 54px; font-weight: 800; line-height: 1.1; }
.score-unit { color: var(--sub); font-size: 12px; }
.score-note { color: var(--dim); font-size: 10px; margin-top: 2px; }

.stage-bar {
  display: flex;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  margin: 18px 0 8px;
  background: #0C1626;
}
.stage-bar .deep, .rc-bar .deep { background: var(--deep); }
.stage-bar .light, .rc-bar .light { background: var(--light); }
.stage-bar .awake, .rc-bar .awake { background: var(--awake); }

.stage-legend {
  display: flex;
  justify-content: space-between;
  color: var(--sub);
  font-size: 9px;
}
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; }
.dot.deep { background: var(--deep); }
.dot.light { background: var(--light); }
.dot.awake { background: var(--awake); }

.mini-chart { width: 100%; height: 108px; margin-top: 14px; border-radius: 10px; }
.axis { display: flex; justify-content: space-between; color: var(--dim); font-size: 8px; margin-top: 4px; }
.event-line { margin-top: 14px; color: var(--dim); font-size: 9px; text-align: center; }

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) clamp(18px, 5vw, 40px);
}
.section-head { max-width: 640px; margin-bottom: 30px; }
h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.25;
}
.section-head p { margin: 0; color: var(--sub); }

.grid { display: grid; gap: 16px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  border: 1px solid var(--line);
}
.card .icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(45, 212, 191, .09);
  font-size: 20px;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--sub); font-size: 14px; }

.step .num { color: var(--accent); font-weight: 800; letter-spacing: .08em; font-size: 12px; margin-bottom: 10px; }

.report {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.report-copy h2 { margin-top: 16px; }
.check { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.check li {
  color: var(--sub);
  font-size: 14px;
  padding-left: 24px;
  position: relative;
}
.check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.check strong { color: var(--text); }
.note { color: var(--dim); font-size: 12px; margin-top: 20px; }

.report-card {
  padding: 22px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.rc-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.rc-score { color: var(--accent); font-size: 34px; font-weight: 800; }
.rc-sub { color: var(--dim); font-size: 11px; margin: 2px 0 16px; }
.rc-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--sub);
  font-size: 13px;
}
.rc-row b { color: var(--text); font-weight: 600; }
.rc-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; margin: 16px 0 12px; }
.rc-events { color: var(--dim); font-size: 11px; }

.privacy { padding-top: 0; }
.privacy-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(45, 212, 191, .10), rgba(96, 165, 250, .06));
  border: 1px solid rgba(45, 212, 191, .22);
}
.privacy-card .lock {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(45, 212, 191, .14);
  color: var(--accent);
  font-size: 22px;
}
.privacy-card h2 { font-size: clamp(22px, 2.6vw, 30px); }
.privacy-card p { margin: 8px 0 0; color: var(--sub); font-size: 14px; }

.download { padding-top: 0; }
.download-card {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(26px, 4vw, 44px);
  border-radius: 24px;
  background: linear-gradient(140deg, #12243A, #0E1828);
  border: 1px solid var(--line);
}
.download-card h2 { margin-bottom: 8px; }
.download-card p { color: var(--sub); font-size: 14px; }
.download-card .cta { margin: 20px 0 10px; }
.tiny { color: var(--dim) !important; font-size: 11px !important; }
.qr-note {
  border-left: 1px solid var(--line);
  padding-left: clamp(18px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mail { font-size: 13px; color: var(--sub); }
.mail a { font-size: 17px; font-weight: 700; }
.qr-note p { margin: 10px 0 0; font-size: 12px; color: var(--dim); }

footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px clamp(18px, 5vw, 40px) 46px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
  color: var(--dim);
  font-size: 12px;
}
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--sub); font-weight: 600; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--sub); }
.copyright { width: 100%; color: var(--dim); }

/* 子页面（隐私政策 / 用户协议） */
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(18px, 5vw, 30px) 70px;
}
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin: 18px 0 6px; }
.doc .updated { color: var(--dim); font-size: 12px; margin-bottom: 28px; }
.doc h2 { font-size: 21px; margin: 32px 0 10px; color: var(--accent); }
.doc p, .doc li { color: var(--sub); font-size: 15px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.doc th, .doc td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.doc th { color: var(--sub); }
.doc .back { display: inline-block; margin-bottom: 10px; }

@media (max-width: 980px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .hero, .report { grid-template-columns: 1fr; }
  .phone-wrap { order: -1; }
  .phone { width: min(320px, 80vw); }
}

@media (max-width: 720px) {
  .nav nav a:not(.btn) { display: none; }
  .grid.three { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: 1fr; }
  .qr-note { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; }
  .foot-links { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .grid.four { grid-template-columns: 1fr; }
  .hero { padding-top: 34px; }
  h1 { font-size: 32px; }
}
