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

html, body { height: 100%; }

body {
  background: #05070b;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* ===== 单屏 Hero ===== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #05070b;
  color: #fff;
}

/* ===== 背景（WebGL 流体光晕 + 粒子网格；无 WebGL2 时回退到可见的 CSS 动效光晕）===== */
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bg-base {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 82% 38%, rgba(83, 141, 202, .28), transparent 62%),
    radial-gradient(ellipse 60% 50% at 12% 4%, rgba(45, 68, 139, .24), transparent 60%),
    #080a12;
}

.fallback-glow { display: none; }
html.no-webgl .fallback-glow {
  display: block;
  position: absolute;
  border-radius: 50%;
  filter: blur(58px);
  will-change: transform;
}
html.no-webgl .fallback-glow-a {
  left: -12%;
  top: -26%;
  width: min(74vw, 1080px);
  aspect-ratio: 1.55;
  background: radial-gradient(ellipse at center, rgba(83, 141, 202, .40), transparent 67%);
  animation: fallback-drift 12s ease-in-out infinite alternate;
}
html.no-webgl .fallback-glow-b {
  right: -10%;
  top: -16%;
  width: min(58vw, 880px);
  aspect-ratio: 1.3;
  background: radial-gradient(ellipse at center, rgba(45, 68, 139, .45), transparent 67%);
  animation: fallback-drift 15s ease-in-out 2s infinite alternate-reverse;
}
@keyframes fallback-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2.5%, 4%, 0) scale(1.1); }
}

.bg-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(rgba(0,0,0,.988) 0%, rgba(0,0,0,.91) 8.98%, transparent 100%);
  mask-image: linear-gradient(rgba(0,0,0,.988) 0%, rgba(0,0,0,.91) 8.98%, transparent 100%);
}
.bg-layer canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.bg-layer-b { z-index: 5; display: none; }
@media (min-width: 768px) { .bg-layer-b { display: block; } }

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 1;
  flex-direction: column;
}

/* ===== 主体双栏栅格（左侧文案占更大比例）===== */
.hero-grid {
  display: grid;
  height: 100%;
  width: calc(100% - 48px);
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  gap: 40px;
}
@media (min-width: 768px) { .hero-grid { width: calc(100% - 144px); } }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(460px, .95fr); gap: 32px; }
}
@media (min-width: 1560px) { .hero-grid { width: calc(100% - 160px); max-width: 1280px; } }

/* ===== 左栏文案 ===== */
.hero-copy {
  position: relative;
  z-index: 10;
  transform: translateY(-16px);
}
@media (min-width: 1024px) { .hero-copy { transform: translate(-32px, -28px); } }

.hero-copy h1 {
  max-width: 660px;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.12;
  color: #fff;
}
@media (min-width: 768px) { .hero-copy h1 { font-size: 60px; } }
@media (min-width: 1280px) { .hero-copy h1 { font-size: 72px; } }

.subtitle {
  margin-top: 24px;
  max-width: 600px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(244, 247, 251, .55);
}
@media (min-width: 768px) { .subtitle { margin-top: 32px; font-size: 22px; } }

.disclaimer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  max-width: 600px;
  font-size: 13.5px;
  line-height: 20px;
  color: rgba(244, 247, 251, .45);
}
.disclaimer svg { width: 16px; height: 16px; flex: none; color: rgba(244, 247, 251, .55); }

/* ===== 下载按钮（白色胶囊）===== */
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 640px) { .cta-row { flex-direction: row; margin-top: 28px; } }

.btn {
  display: inline-flex;
  width: fit-content;
  height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 14px;
  background: #fff;
  color: #0a0f16;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease, box-shadow .22s ease;
}
.btn svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.btn:hover {
  background: rgba(255, 255, 255, .9);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}

/* ===== 统计行 ===== */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 20px;
  row-gap: 12px;
  margin-top: 20px;
}
.stat {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(244, 247, 251, .45);
}
.stat svg { width: 16px; height: 16px; flex: none; color: rgba(244, 247, 251, .55); }
.stat strong {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(244, 247, 251, .75);
}

.load-error { margin-top: 12px; font-size: 13px; color: #fca5a5; }

/* ===== 右栏截图（深色窗口框 + 蓝色背光 + 3D 透视，溢出到屏幕边缘）===== */
.hero-shot {
  position: relative;
  display: none;
  height: 100%;
  align-items: center;
}
@media (min-width: 1024px) { .hero-shot { display: flex; } }
.shot-wrap {
  position: absolute;
  left: -64px;
  width: clamp(980px, 74vw, 1440px);
  perspective: 1600px;
}
.shot-glow {
  position: absolute;
  inset: -14%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(83, 141, 202, .30), rgba(45, 68, 139, .12) 55%, transparent 72%);
  filter: blur(46px);
}
.shot-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: #0b1016;
  box-shadow:
    0 34px 70px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(83, 141, 202, .10),
    0 0 110px rgba(45, 68, 139, .22);
  transform: rotateY(-5deg) rotateX(1.6deg);
  transform-origin: 70% 50%;
}
.frame-bar {
  display: flex;
  height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  background: #0d141c;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.frame-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.frame-bar .dot.red { background: #ff5f57; }
.frame-bar .dot.yellow { background: #febc2e; }
.frame-bar .dot.green { background: #28c840; }
.frame-bar b {
  margin-left: 10px;
  color: rgba(244, 247, 251, .45);
  font-size: 12px;
  font-weight: 500;
}
.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
