/* ============================================================
   客户端下载页 — 全屏沉浸式重设计
   深海军蓝 + 青绿强调，与后台统一品牌。仅样式 + 入场动画。
   ============================================================ */
:root {
  color-scheme: dark;

  --bg: #070d18;
  --bg-2: #0a1322;
  --ink: #f1f5fc;
  --soft: #c5cfe0;
  --muted: #8a98ad;
  --faint: #5d6b81;

  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --card: rgba(18, 28, 46, 0.66);

  --accent: #2dd4bf;
  --accent-2: #14b8a6;
  --accent-text: #5eead4;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --accent-line: rgba(45, 212, 191, 0.32);
  --accent-grad: linear-gradient(135deg, #2dd4bf 0%, #1fb6a4 100%);

  --blue: #38bdf8;
  --green: #34d399;
  --violet: #818cf8;

  --radius-sm: 11px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --nav-h: 66px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { color: #04201c; background: var(--accent); }

img { display: block; }

/* ============================================================
   顶部导航
   ============================================================ */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 48px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(7, 13, 24, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand img { border-radius: 9px; box-shadow: 0 6px 18px rgba(45, 212, 191, 0.24); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(148, 163, 184, 0.08); }
.nav-links .nav-cta {
  color: var(--accent-text);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
}
.nav-links .nav-cta:hover { color: #04201c; background: var(--accent); }

/* ============================================================
   全屏 Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) clamp(20px, 5vw, 48px) 80px;
  text-align: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.orb-1 { top: -10%; left: 8%; width: 460px; height: 460px; background: radial-gradient(circle, rgba(45,212,191,0.5), transparent 68%); animation: float1 14s ease-in-out infinite; }
.orb-2 { top: 6%; right: 4%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(56,189,248,0.4), transparent 66%); animation: float2 17s ease-in-out infinite; }
.orb-3 { bottom: -16%; left: 38%; width: 520px; height: 520px; background: radial-gradient(circle, rgba(129,140,248,0.32), transparent 68%); animation: float1 20s ease-in-out infinite reverse; }
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 42%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000, transparent 72%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  padding: 7px 16px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
.hero-title {
  margin: 0;
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  background: linear-gradient(180deg, #ffffff 0%, #bcd5e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  max-width: 600px;
  margin: 26px auto 0;
  color: var(--soft);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  background: var(--accent-grad);
  color: #04201c;
  font-size: 16px;
  font-weight: 850;
  box-shadow: 0 18px 40px rgba(45, 212, 191, 0.32);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cta-primary svg { width: 20px; height: 20px; fill: currentColor; }
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 56px rgba(45, 212, 191, 0.42); }
.cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: 15px 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(18, 28, 46, 0.5);
  color: var(--soft);
  font-size: 16px;
  font-weight: 750;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.cta-ghost:hover { border-color: var(--accent-line); color: var(--accent-text); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 6vw, 64px);
  margin: 64px 0 0;
}
.hero-stats div { text-align: center; }
.hero-stats dt {
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-stats dd {
  margin: 8px 0 0;
  font-size: 26px;
  font-weight: 850;
  color: #fff;
}
.hero-stats dd span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.scroll-hint svg { width: 22px; height: 22px; fill: currentColor; animation: bob 2s ease-in-out infinite; }
.scroll-hint:hover { color: var(--accent-text); }
/* ============================================================
   悬浮固定下载条
   ============================================================ */
.float-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 45;
  width: min(680px, calc(100% - 32px));
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  pointer-events: none;
}
.float-bar.visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.float-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 19, 34, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.float-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.float-meta img { border-radius: 8px; flex: 0 0 auto; }
.float-meta strong { display: block; font-size: 14px; font-weight: 800; }
.float-meta span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.float-btn {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}
.float-btn.primary {
  background: var(--accent-grad);
  color: #04201c;
  box-shadow: 0 10px 24px rgba(45, 212, 191, 0.3);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.float-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(45, 212, 191, 0.4); }

/* ============================================================
   分节标题（通用）
   ============================================================ */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.section-head.in-view { opacity: 1; transform: none; }
.section-eyebrow {
  margin: 0 0 14px;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #fff;
}

/* ============================================================
   功能展示（分屏交替）
   ============================================================ */
.features {
  position: relative;
  padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 48px);
  max-width: 1120px;
  margin: 0 auto;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  margin-bottom: clamp(64px, 9vw, 120px);
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.in-view { opacity: 1; transform: none; }
.feature-row.reverse .feature-text { order: 2; }

.feature-index {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.1em;
  color: transparent;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
}
.feature-text h3 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 820;
  letter-spacing: -0.02em;
  color: #fff;
}
.feature-text p {
  margin: 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

/* 可视化卡片基底 */
.visual-card {
  position: relative;
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card), rgba(10, 17, 32, 0.7));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.visual-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}

/* 01 聚合：浮动标签 */
.visual-aggregate {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 14px;
}
.visual-aggregate .chip {
  padding: 11px 20px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 750;
  animation: floatChip 5s ease-in-out infinite;
}
.visual-aggregate .chip:nth-child(2) { animation-delay: 0.6s; border-color: rgba(56,189,248,0.3); background: rgba(56,189,248,0.1); color: #7dd3fc; }
.visual-aggregate .chip:nth-child(3) { animation-delay: 1.2s; border-color: rgba(129,140,248,0.3); background: rgba(129,140,248,0.1); color: #c7cdff; }
.visual-aggregate .chip:nth-child(4) { animation-delay: 1.8s; }
.visual-aggregate .chip:nth-child(5) { animation-delay: 2.4s; border-color: rgba(56,189,248,0.3); background: rgba(56,189,248,0.1); color: #7dd3fc; }
.visual-flow {
  position: absolute;
  inset: auto -40% -50% -40%;
  height: 70%;
  background: radial-gradient(ellipse at center top, var(--accent-soft), transparent 70%);
}

/* 02 批量：进度行 */
.visual-batch {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.batch-row { display: flex; align-items: center; gap: 16px; }
.batch-row .bar {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.batch-row .bar.w80 { max-width: 80%; }
.batch-row .bar.w60 { max-width: 60%; background: var(--line-strong); }
.batch-row .bar.w90 { max-width: 90%; }
.batch-row i {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  position: relative;
}
.batch-row i.ok { background: var(--accent-soft); }
.batch-row i.ok::after {
  content: "";
  position: absolute;
  left: 7px; top: 5px;
  width: 5px; height: 9px;
  border: 2px solid var(--accent);
  border-top: 0; border-left: 0;
  transform: rotate(45deg);
}
.batch-row i.loading {
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

/* 03 同步：双节点 */
.visual-sync {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.sync-node {
  width: 92px; height: 92px;
  border: 1px solid var(--accent-line);
  border-radius: 22px;
  background: var(--accent-soft);
  position: relative;
}
.sync-node::after {
  content: "";
  position: absolute;
  inset: 26px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  opacity: 0.7;
}
.sync-node.mobile { width: 64px; height: 92px; border-radius: 16px; }
.sync-node.mobile::after { inset: 14px 18px; }
.sync-link {
  width: 120px;
  height: 2px;
  position: relative;
  background: var(--line-strong);
  overflow: hidden;
}
.sync-link::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: dataFlow 2.2s ease-in-out infinite;
}
/* ============================================================
   双平台下载区
   ============================================================ */
.platforms {
  position: relative;
  padding: clamp(80px, 12vw, 130px) clamp(20px, 5vw, 48px) clamp(100px, 14vw, 160px);
  max-width: 1080px;
  margin: 0 auto;
}
.platforms::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card), rgba(10, 17, 32, 0.78));
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.platform-card.in-view { opacity: 1; transform: none; }
.platform-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent-grad);
}
.platform-card.android::before { background: linear-gradient(135deg, #34d399, #10b981); }
.platform-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-line);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.56), 0 0 0 1px var(--accent-line);
}
.platform-card.android:hover { border-color: rgba(52,211,153,0.34); box-shadow: 0 40px 100px rgba(0,0,0,0.56), 0 0 0 1px rgba(52,211,153,0.34); }
.platform-card.is-suggested { border-color: var(--accent-line); }

.platform-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.platform-glyph {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  flex: 0 0 auto;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
}
.platform-card.android .platform-glyph {
  border-color: rgba(52,211,153,0.3);
  background: rgba(52,211,153,0.12);
  color: var(--green);
}
.platform-glyph svg, .platform-download svg { width: 27px; height: 27px; fill: currentColor; }
.platform-titles { flex: 1; min-width: 0; }
.platform-kicker {
  margin: 0 0 5px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.platform-titles h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 820;
  color: #fff;
}
.platform-tag {
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 800;
}
.platform-card.android .platform-tag { border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.12); color: #86efac; }

.platform-desc {
  margin: 22px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.spec-list {
  display: grid;
  gap: 2px;
  margin: auto 0 26px;
}
.spec-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.spec-list dt, .spec-list dd { margin: 0; }
.spec-list dt { color: var(--muted); font-size: 14px; }
.spec-list dd { color: var(--ink); font-size: 15px; font-weight: 800; text-align: right; }

.platform-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent-grad);
  color: #04201c;
  font-size: 16px;
  font-weight: 850;
  box-shadow: 0 16px 36px rgba(45, 212, 191, 0.26);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.platform-download:hover { transform: translateY(-2px); box-shadow: 0 24px 50px rgba(45, 212, 191, 0.38); }
.platform-card.android .platform-download {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #04261b;
  box-shadow: 0 16px 36px rgba(52, 211, 153, 0.26);
}
.platform-card.android .platform-download:hover { box-shadow: 0 24px 50px rgba(52, 211, 153, 0.38); }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-inner p {
  flex: 1;
  min-width: 240px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.footer-link {
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 750;
  transition: color 0.18s var(--ease);
}
.footer-link:hover { color: var(--accent); }

/* ============================================================
   关键帧
   ============================================================ */
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px,-26px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-24px,22px); } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.82); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes floatChip { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dataFlow { 0% { left: -40%; } 100% { left: 100%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
  .section-head, .feature-row, .platform-card { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 860px) {
  .feature-row, .feature-row.reverse .feature-text { grid-template-columns: 1fr; order: 0; }
  .feature-row { gap: 30px; }
  .feature-row.reverse .feature-visual { order: -1; }
  .feature-text p { max-width: none; }
  .platform-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-stats { gap: 26px; }
  .hero-stats dd { font-size: 22px; }
  .hero-cta { flex-direction: column; }
  .cta-primary, .cta-ghost { width: 100%; justify-content: center; }
  .float-meta div { display: none; }
  .float-meta { gap: 0; }
  .float-inner { padding: 10px 10px 10px 14px; }
  .float-btn { flex: 1; justify-content: center; }
  .platform-card { padding: 26px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
