/* 落地页动感 — 入场、漂浮、扫光、按钮脉冲、背景呼吸 */

:root {
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.landing {
  background-size: 100% 220%;
  animation: bg-drift 16s ease-in-out infinite alternate;
}

@keyframes bg-drift {
  0% {
    background-position: 50% 0%;
  }
  100% {
    background-position: 50% 100%;
  }
}

body.is-ready .landing__motion-wrap {
  animation:
    stage-in 0.85s var(--motion-ease) backwards,
    stage-float 5.5s ease-in-out 0.85s infinite;
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: scale(1.04);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes stage-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.landing__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    transparent 32%,
    rgba(255, 255, 255, 0.07) 46%,
    rgba(255, 236, 200, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 54%,
    transparent 68%
  );
  background-size: 220% 100%;
  animation: shine-sweep 7.5s ease-in-out infinite;
  mix-blend-mode: soft-light;
}

@keyframes shine-sweep {
  0%,
  100% {
    background-position: 120% 0;
    opacity: 0.35;
  }
  45% {
    background-position: -20% 0;
    opacity: 0.85;
  }
}

body.is-ready .motion-in {
  animation: land-rise 0.75s var(--motion-ease) backwards;
  animation-delay: calc(0.35s + var(--motion-order, 0) * 0.12s);
}

@keyframes land-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing__download.motion-in {
  animation-name: dl-rise;
}

@keyframes dl-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 图上按钮区域的轻微脉冲光环（不遮挡原按钮） */
.landing__dock .dl-pill {
  animation: none;
}

.landing__dock .dl-pill::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
  opacity: 0;
  pointer-events: none;
  animation: hit-pulse 2.8s ease-out infinite;
}

.landing__dock .dl-pill--android::after {
  border-color: rgba(120, 255, 150, 0.55);
  box-shadow: 0 0 14px rgba(80, 220, 120, 0.35);
}

.landing__dock .dl-pill--ios::after {
  border-color: rgba(140, 200, 255, 0.55);
  box-shadow: 0 0 14px rgba(100, 170, 255, 0.35);
  animation-delay: 1.1s;
}

@keyframes hit-pulse {
  0% {
    opacity: 0.75;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

.landing__dock .dl-pill:active::after {
  animation: none;
  opacity: 0.5;
  transform: scale(1.02);
}

body.is-ready .ios-guide__panel {
  animation: dialog-pop 0.35s var(--motion-ease);
}

@keyframes dialog-pop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .landing__petals {
    display: none;
  }

  .landing__shine {
    display: none;
  }
}
