:root {
  --bg: #060914;
  --bg2: #0b1020;
  --card: rgba(17, 24, 39, 0.6);
  --text: #e6f0ff;
  --muted: #9fb0c9;
  --p1: #6c5cff;
  --p2: #00e5ff;
  --p3: #00ffa3;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 20% 20%, #111a33 0%, var(--bg) 40%), linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body { min-height: 100svh; }

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 10% 10%, rgba(108,92,255,.25), transparent),
    radial-gradient(600px 400px at 90% 20%, rgba(0,229,255,.2), transparent),
    radial-gradient(600px 400px at 50% 90%, rgba(0,255,163,.15), transparent);
  z-index: 0;
  animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% {
    background:
      radial-gradient(600px 400px at 10% 10%, rgba(108,92,255,.25), transparent),
      radial-gradient(600px 400px at 90% 20%, rgba(0,229,255,.2), transparent),
      radial-gradient(600px 400px at 50% 90%, rgba(0,255,163,.15), transparent);
  }
  100% {
    background:
      radial-gradient(600px 400px at 15% 15%, rgba(108,92,255,.35), transparent),
      radial-gradient(600px 400px at 85% 25%, rgba(0,229,255,.3), transparent),
      radial-gradient(600px 400px at 45% 85%, rgba(0,255,163,.22), transparent);
  }
}

/* 粒子背景 */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.section {
  position: relative;
  z-index: 1;
  padding: 24px 16px;
  max-width: 960px;
  margin: 0 auto;
}

/* ===== Hero ===== */
.hero { padding-top: max(20px, env(safe-area-inset-top)); }
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeInDown .8s ease;
}

.logo {
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 18px;
  background: linear-gradient(120deg, var(--p2), var(--p1), var(--p3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-btn {
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(230,240,255,.3);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--p2), var(--p1));
  opacity: 0;
  transition: opacity .3s ease;
  border-radius: 999px;
}
.nav-btn:hover {
  border-color: var(--p2);
  color: #fff;
  box-shadow: 0 0 20px rgba(0,229,255,.25);
}
.nav-btn:hover::before {
  opacity: .15;
}

.hero-content {
  padding: 50px 0 10px;
  animation: fadeInUp .8s ease .2s both;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--p2);
  border: 1px solid rgba(0,229,255,.35);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  background: rgba(0,229,255,.06);
  animation: tagGlow 2s ease-in-out infinite alternate;
}
.tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--p2);
  box-shadow: 0 0 8px var(--p2);
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.5); }
}
@keyframes tagGlow {
  0% { box-shadow: 0 0 0 rgba(0,229,255,.1); }
  100% { box-shadow: 0 0 20px rgba(0,229,255,.15); }
}

h1 {
  margin: 16px 0 10px;
  font-size: clamp(30px, 8vw, 52px);
  line-height: 1.16;
  background: linear-gradient(120deg, #fff 20%, var(--p2) 50%, var(--p3) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: textShine 4s ease-in-out infinite alternate;
}

@keyframes textShine {
  0% { background-position: 0% center; }
  100% { background-position: 100% center; }
}

.subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary {
  color: #031018;
  background: linear-gradient(120deg, var(--p2), var(--p3));
  box-shadow: 0 4px 20px rgba(0,229,255,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0,229,255,.45);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(230,240,255,.28);
  background: rgba(255,255,255,.03);
}
.btn-ghost:hover {
  border-color: var(--p1);
  background: rgba(108,92,255,.1);
  box-shadow: 0 0 24px rgba(108,92,255,.2);
  transform: translateY(-2px);
}

/* ===== Section Title ===== */
h2 {
  margin: 8px 0 16px;
  font-size: 22px;
  position: relative;
  display: inline-block;
}
h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 40%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--p2), var(--p3), transparent);
}

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: 12px;
}
.features-grid, .advantages-grid { grid-template-columns: 1fr; }
.stats-grid { grid-template-columns: 1fr 1fr; }

/* ===== Card ===== */
.card {
  background: var(--card);
  border: 1px solid rgba(230,240,255,.1);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(108,92,255,.06) inset, 0 8px 24px rgba(0,0,0,.25);
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.3), transparent);
  opacity: 0;
  transition: opacity .4s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,229,255,.25);
  box-shadow:
    0 0 0 1px rgba(108,92,255,.1) inset,
    0 12px 36px rgba(0,0,0,.35),
    0 0 30px rgba(0,229,255,.08);
}
.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin: 4px 0 8px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card h3 .icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}

/* ===== Timeline ===== */
.timeline {
  display: grid;
  gap: 0;
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--p2), var(--p1), var(--p3));
  opacity: .4;
}
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(14, 22, 41, .75);
  border: 1px solid rgba(0,229,255,.15);
  position: relative;
  transition: all .3s ease;
  margin-bottom: 10px;
}
.step:last-child { margin-bottom: 0; }
.step::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p2);
  box-shadow: 0 0 8px rgba(0,229,255,.5);
  z-index: 1;
}
.step:hover {
  border-color: rgba(0,229,255,.35);
  background: rgba(14, 22, 41, .9);
  transform: translateX(4px);
  box-shadow: 0 0 16px rgba(0,229,255,.1);
}
.step span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 13px;
  color: #031018;
  font-weight: 800;
  background: linear-gradient(120deg, var(--p2), var(--p3));
  box-shadow: 0 2px 12px rgba(0,229,255,.3);
  flex-shrink: 0;
}
.step p { margin: 0; font-weight: 600; font-size: 14px; }

/* ===== Stats ===== */
.stat {
  text-align: center;
}
.stat p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat h3 {
  margin: 8px 0 0;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(180deg, var(--p2), var(--p3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}
.stat small {
  color: var(--muted);
  font-size: 14px;
  margin-left: 2px;
}

/* ===== Contact ===== */
.contact { text-align: center; }
.qr-wrap {
  width: min(62vw, 240px);
  margin: 14px auto;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(230,240,255,.15);
  transition: all .4s ease;
  position: relative;
}
.qr-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, var(--p2), var(--p1), var(--p3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s ease;
}
.qr-wrap:hover::before {
  opacity: 1;
}
.qr-wrap:hover {
  box-shadow: 0 0 30px rgba(0,229,255,.2);
  transform: scale(1.03);
}
.qr-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #fff;
}
.tip {
  font-size: 12px;
  color: var(--muted);
}

/* ===== Section Description ===== */
.section-desc {
  color: var(--muted);
  font-size: 13px;
  margin: -8px 0 16px;
  line-height: 1.6;
}

/* ===== Screenshots Gallery ===== */
.screenshots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.screenshot-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(230,240,255,.12);
  transition: all .4s ease;
  cursor: pointer;
}

.screenshot-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.4));
  pointer-events: none;
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease;
}

.screenshot-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0,229,255,.35);
  box-shadow:
    0 12px 36px rgba(0,0,0,.4),
    0 0 30px rgba(0,229,255,.12);
}

.screenshot-item:hover img {
  transform: scale(1.04);
}

/* ===== Lightbox ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(10px);
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transform: scale(.9);
  transition: transform .3s ease;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  z-index: 1;
}

.lightbox-close:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.5);
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  color: #7f8ca2;
  font-size: 12px;
  padding-bottom: 32px;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .section { padding: 36px 20px; }
  .features-grid, .advantages-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-content { padding: 70px 0 20px; }
  h2 { font-size: 26px; }
  .logo { font-size: 20px; }
  .timeline {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    justify-content: center;
  }
  .timeline::before {
    display: none;
  }
  .step {
    flex: 0 0 auto;
    padding: 16px 20px;
    margin-bottom: 0;
  }
  .step::before {
    display: none;
  }
  .step:hover {
    transform: translateY(-4px);
  }
  .step span {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  .screenshots {
    grid-template-columns: repeat(2, 1fr);
  }
}
