/* ==================== 基础 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #10122b;
  --bg-2: #171a3a;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f2f4ff;
  --text-2: #9ca3af;
  --text-3: #6b7280;
  --primary: #7e69ff;
  --primary-2: #6ea8ff;
  --radius: 18px;
  --nav-h: 68px;
  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ==================== 导航 ==================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(16, 18, 43, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(16, 18, 43, 0.88);
  border-bottom-color: var(--panel-border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 24px; width: auto; }
.brand-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(120deg, #fff 20%, #b9adff 60%, #6ea8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--text-2);
  font-size: 15px;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  padding: 8px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(126, 105, 255, 0.35);
}
.nav-cta:hover { opacity: 0.92; color: #fff; }

/* ==================== Hero ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 80% 10%, #2b2e5f 0%, #232648 34%, #151735 66%, #0e1026 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.glow-1 { width: 480px; height: 480px; background: #4c3f9e; top: -140px; left: -120px; }
.glow-2 { width: 420px; height: 420px; background: #314a94; bottom: -180px; right: -80px; }
.glow-3 { width: 300px; height: 300px; background: #7e69ff; top: 42%; left: 44%; opacity: 0.22; }
.grid-line {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  padding: calc(var(--nav-h) + 40px) 24px 70px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  font-size: 13.5px;
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5ad8a6;
  box-shadow: 0 0 0 4px rgba(90, 216, 166, 0.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(90, 216, 166, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(90, 216, 166, 0.05); }
}

.hero-title {
  font-size: clamp(40px, 5.4vw, 62px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 1px;
}
.grad-text {
  background: linear-gradient(120deg, #8f7bff 10%, #6ea8ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin-top: 20px;
  color: var(--text-2);
  font-size: 16.5px;
  max-width: 540px;
}

.hero-chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips span {
  font-size: 13px;
  color: #cfd6ff;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(126, 105, 255, 0.12);
  border: 1px solid rgba(126, 105, 255, 0.28);
}

.hero-btns { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #7e69ff, #5d8bff);
  box-shadow: 0 10px 30px rgba(126, 105, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(126, 105, 255, 0.5); }
.btn-ghost {
  color: #dfe3ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-2px); }

.hero-meta { margin-top: 26px; color: var(--text-3); font-size: 13.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hero-meta .sep { opacity: 0.5; }

/* ---- 手机示意 ---- */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 1216 / 2640;
  border-radius: 40px;
  background: #171a3d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.5),
    0 0 0 7px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
.phone .app-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
/* .phone 内展示真实 App 首页截图 assets/app_home.jpg */

/* ==================== 通用 Section ==================== */
.section { padding: 96px 0; }
.section-alt {
  background:
    radial-gradient(80% 90% at 0% 20%, rgba(74, 60, 150, 0.28), transparent 55%),
    var(--bg-2);
}
.section-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-title { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: 1px; }
.section-desc { color: var(--text-2); margin-top: 14px; font-size: 15.5px; }

/* ==================== 功能卡片 ==================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(126, 105, 255, 0.5);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}
.card-icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--tint, #7e69ff) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint, #7e69ff) 34%, transparent);
  margin-bottom: 18px;
}
.card-icon img { width: 26px; height: 26px; }
.card h3 { font-size: 18px; font-weight: 700; }
.card p { color: var(--text-2); font-size: 14.5px; margin-top: 10px; }

/* ==================== 中医未病 ==================== */
.tech-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.tech-tag {
  display: inline-block;
  font-size: 13px;
  color: #ffd97a;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 217, 122, 0.35);
  background: rgba(255, 217, 122, 0.08);
  margin-bottom: 18px;
}
.tech-copy .section-desc { max-width: 560px; }
.tech-links { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.chip-link {
  padding: 9px 20px;
  font-size: 14px;
  color: #dfe3ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  transition: background 0.2s, border-color 0.2s;
}
.chip-link:hover { background: rgba(126, 105, 255, 0.16); border-color: rgba(126, 105, 255, 0.55); }

.tech-visual {
  position: relative;
  height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.orbit-core {
  width: 148px; height: 148px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: 17px; font-weight: 700; color: #fff; line-height: 1.35;
  background: radial-gradient(circle at 30% 25%, #7e69ff, #4c3f9e 75%);
  box-shadow: 0 0 70px rgba(126, 105, 255, 0.55);
  animation: corePulse 4s ease-in-out infinite;
}
@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 50px rgba(126, 105, 255, 0.45); }
  50% { box-shadow: 0 0 95px rgba(126, 105, 255, 0.8); }
}
.orbit-1 {
  position: absolute; inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-node {
  position: absolute;
  width: 56px; height: 56px; border-radius: 50%;
  background: #20234d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}
.orbit-node img { width: 26px; height: 26px; }
.node-heart { top: 0; left: 50%; transform: translateX(-50%); }
.node-report { right: 2%; top: 42%; }
.node-compare { bottom: 2%; left: 50%; transform: translateX(-50%); }

/* ==================== 步骤 ==================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  text-align: center;
  padding: 34px 20px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s;
}
.step:hover { transform: translateY(-5px); border-color: rgba(126, 105, 255, 0.5); }
.step-num {
  width: 46px; height: 46px; margin: 0 auto 16px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #7e69ff, #5d8bff);
  box-shadow: 0 8px 22px rgba(126, 105, 255, 0.4);
}
.step h3 { font-size: 16.5px; font-weight: 700; }
.step p { color: var(--text-2); font-size: 13.5px; margin-top: 8px; }

/* ==================== 下载 ==================== */
.section-download {
  background:
    radial-gradient(90% 120% at 50% 100%, rgba(78, 60, 160, 0.4), transparent 60%),
    var(--bg);
}
.download-card {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.download-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 44px;
}
.platform {
  padding: 34px 24px 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  transition: transform 0.25s, border-color 0.25s;
}
.platform:hover { transform: translateY(-4px); border-color: rgba(126, 105, 255, 0.55); }
.platform-badge {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.android-badge { background: linear-gradient(135deg, #3cba7c, #1e9e61); box-shadow: 0 10px 28px rgba(60, 186, 124, 0.35); }
.ios-badge { background: linear-gradient(135deg, #6d8dff, #3a5bd9); box-shadow: 0 10px 28px rgba(61, 90, 217, 0.35); }
.platform h3 { font-size: 18px; font-weight: 700; }
.platform p { color: var(--text-2); font-size: 13.5px; margin: 6px 0 18px; }
.platform .btn { width: 100%; }
.download-tip {
  margin-top: 26px;
  color: var(--text-3);
  font-size: 13px;
}

/* ==================== 页脚 ==================== */
.footer {
  border-top: 1px solid var(--panel-border);
  background: #0d0f26;
  padding: 46px 0 34px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.footer-brand .brand-logo { height: 30px; margin: 0 auto 12px; }
.footer-brand p { color: var(--text-2); font-size: 14px; }
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 22px; margin: 24px 0 20px;
}
.footer-links a { color: var(--text-2); font-size: 13.5px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy p { color: var(--text-3); font-size: 12.5px; }
.footer-disclaimer { margin-top: 6px; opacity: 0.85; }

/* ==================== Toast ==================== */
.toast {
  position: fixed;
  left: 50%; bottom: 56px;
  transform: translate(-50%, 20px);
  background: rgba(20, 23, 54, 0.96);
  border: 1px solid rgba(126, 105, 255, 0.5);
  color: #fff;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  z-index: 200;
  max-width: 82vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 26px; }
  .phone-wrap { order: -1; }
  .phone { width: 250px; }
  .tech-grid { grid-template-columns: 1fr; gap: 30px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-title { font-size: 38px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .download-platforms { grid-template-columns: 1fr; }
  .section { padding: 66px 0; }
  .tech-visual { height: 320px; }
}
