/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header, footer, main, section {
  border: none;
  outline: none;
}

html {
  font-family: -apple-system, SF UI Text, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, WenQuanYi Micro Hei, Helvetica Neue, Helvetica, Arial,
    sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #f0f4ff;
  color: #1e293b;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  animation: float-up linear infinite;
}

@keyframes float-up {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-120vh) scale(1.4);
  }
}

/* ===== 主容器 ===== */
.main-wrapper {
  position: relative;
  z-index: 1;
}

/* ===== Hero 头部 ===== */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      #667eea 0%,
      #764ba2 15%,
      #f093fb 30%,
      #f5576c 45%,
      #fda085 60%,
      #4facfe 75%,
      #00f2fe 90%,
      #43e97b 100%
    );
  background-size: 400% 400%;
  z-index: -1;
  animation: gradient-flow 12s ease infinite;
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 0%; }
  75% { background-position: 0% 0%; }
  100% { background-position: 0% 50%; }
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.18) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 20%, rgba(245, 87, 108, 0.2) 0%, transparent 40%),
    radial-gradient(ellipse at 40% 80%, rgba(79, 172, 254, 0.2) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 70%, rgba(67, 233, 123, 0.15) 0%, transparent 40%);
  animation: bg-shift 16s ease-in-out infinite;
}

@keyframes bg-shift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(1%, -1%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

.hero-content {
  text-align: center;
  padding: 2rem 1.5rem;
  z-index: 1;
}

/* Logo */
.logo-box {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.logo-img {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 0 0 3px rgba(255, 255, 255, 0.6);
  animation: logo-float 4s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.logo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: ring-pulse 3s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.08); opacity: 0.7; }
}

/* 标题 */
.title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 6px;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 8px;
}

/* ===== 波浪 ===== */
.wave-wrap {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  border: none;
  line-height: 0;
}

.waves {
  position: relative;
  width: 100%;
  height: 80px;
  min-height: 40px;
  max-height: 120px;
  display: block;
}

.parallax > use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}

/* ===== 下载区域 ===== */
.download-section {
  padding: 3rem 1.5rem 2rem;
  display: flex;
  justify-content: center;
  background: #f0f4ff;
  margin-top: -1px;
  position: relative;
  z-index: 2;
}

.download-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem;
  text-align: center;
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 4px 24px rgba(59, 130, 246, 0.1),
    0 12px 48px rgba(6, 182, 212, 0.08);
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

.card-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 2rem;
}

/* 按钮组 */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  letter-spacing: 2px;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: scale(0.97);
}

.btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* 安卓按钮 */
.btn-android {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.btn-android::after {
  background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
}

.btn-android:hover {
  box-shadow: 0 6px 28px rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
}

/* iOS 按钮 */
.btn-ios {
  background: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #8b5cf6 100%);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}

.btn-ios::after {
  background: linear-gradient(135deg, #fb923c 0%, #f472b6 100%);
}

.btn-ios:hover {
  box-shadow: 0 6px 28px rgba(249, 115, 22, 0.45);
  transform: translateY(-2px);
}

/* ===== 页脚 ===== */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #f0f4ff;
}

.footer p {
  font-size: 0.8rem;
  color: #94a3b8;
  letter-spacing: 1px;
}

/* ===== 微信遮罩 ===== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.overlay img {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translate(-50%, 0);
  max-width: 92%;
  max-height: 85%;
  opacity: 0.95;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero {
    min-height: 55vh;
  }

  .title {
    font-size: 2rem;
    letter-spacing: 4px;
  }

  .subtitle {
    font-size: 0.85rem;
    letter-spacing: 5px;
  }

  .logo-img {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }

  .logo-ring {
    border-radius: 22px;
  }

  .waves {
    height: 50px;
    min-height: 30px;
  }

  .download-section {
    padding: 2rem 1rem 1.5rem;
  }

  .download-card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .btn {
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    border-radius: 12px;
  }

  .card-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 380px) {
  .title {
    font-size: 1.6rem;
    letter-spacing: 3px;
  }

  .download-card {
    padding: 1.5rem 1rem;
  }
}