:root {
  color-scheme: dark;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #0b0b0b;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  background: #0b0b0b;
}

img {
  display: block;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.stage-frame {
  position: relative;
  width: 375px;
  height: 813px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #0b0b0b;
}

.stage {
  position: absolute;
  inset: 0 auto auto 0;
  width: 375px;
  height: 813px;
  overflow: hidden;
  transform-origin: top left;
  background: #0b0b0b;
}

.stage::after {
  content: "";
  position: absolute;
  z-index: 11;
  top: -190px;
  left: -170px;
  width: 170px;
  height: 1180px;
  transform: rotate(19deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgb(239 96 255 / 0%),
    rgb(239 96 255 / 12%),
    rgb(255 255 255 / 7%),
    transparent
  );
  filter: blur(8px);
  pointer-events: none;
  animation: ambient-sweep 8s 1.2s ease-in-out infinite;
}

.background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 375px;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  transform-origin: 50% 43%;
  animation: background-pulse 10s ease-in-out infinite alternate;
}

.brand-link {
  position: absolute;
  z-index: 20;
  top: 10px;
  left: 20px;
  width: 106px;
  height: 57px;
  border-radius: 8px;
  transition: transform 120ms ease, filter 120ms ease;
  animation: fade-slide-down 0.55s 0.08s cubic-bezier(0.2, 0.9, 0.28, 1.2) both;
}

.brand-link img {
  width: 106px;
  height: 57px;
  object-fit: contain;
  animation: logo-glow 3.4s 0.9s ease-in-out infinite;
}

.contact-actions {
  position: absolute;
  z-index: 20;
  top: 22px;
  left: 174px;
  display: flex;
  gap: 9px;
}

.contact-button {
  position: relative;
  width: 90px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 200px;
  background: linear-gradient(103deg, #3e3efa 24%, #c848ff 80%);
  box-shadow:
    inset 0 1px 18px #ffd9e8,
    inset 0 1px 4px #ffd9e8,
    0 4px 12px rgb(249 18 96 / 25%);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
  animation: contact-enter 0.55s 0.2s cubic-bezier(0.2, 0.9, 0.28, 1.16) both;
}

.contact-button:nth-child(2) {
  animation-delay: 0.3s;
}

.contact-button::after {
  content: "";
  position: absolute;
  inset: -12px auto -12px -34px;
  width: 22px;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 72%), transparent);
  pointer-events: none;
  animation: button-shine 4.6s 1.4s ease-in-out infinite;
}

.contact-button:nth-child(2)::after {
  animation-delay: 2.15s;
}

.contact-button img {
  width: 14px;
  height: 14px;
}

.contact-button span {
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.headline {
  position: absolute;
  z-index: 8;
  top: 66px;
  left: 0;
  width: 375px;
  height: 149px;
  object-fit: contain;
  pointer-events: none;
  transform-origin: 50% 42%;
  animation:
    headline-enter 0.76s 0.14s cubic-bezier(0.16, 1, 0.3, 1) both,
    headline-glow 3.8s 1.1s ease-in-out infinite,
    headline-float 5.2s 1.3s ease-in-out infinite;
}

.host-card {
  --enter-delay: 0.42s;
  --float-delay: 1.12s;
  --float-duration: 4.4s;
  position: absolute;
  z-index: 2;
  pointer-events: none;
  animation:
    card-pop 0.62s var(--enter-delay) cubic-bezier(0.18, 0.9, 0.25, 1.18) both,
    card-float var(--float-duration) var(--float-delay) ease-in-out infinite;
}

.host-photo {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #16051c;
}

.host-photo img,
.host-frame {
  position: absolute;
}

.host-frame {
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  animation: frame-glow 3.6s ease-in-out infinite;
}

.host-card-left {
  top: 251px;
  left: 10px;
  width: 138px;
  height: 126px;
  transform: rotate(-9deg);
}

.host-card-left .host-photo {
  inset: 8px 8px 7px 8px;
}

.host-card-left .host-photo img {
  top: -46%;
  left: 0;
  width: 100%;
  height: 180%;
}

.host-card-top-right {
  --enter-delay: 0.56s;
  --float-delay: 1.3s;
  --float-duration: 4.9s;
  top: 219px;
  left: 230px;
  width: 120px;
  height: 120px;
  transform: rotate(5.74deg);
}

.host-card-top-right .host-frame {
  animation-delay: -1.2s;
}

.host-card-top-right .host-photo {
  inset: 13px 9px 18px 10px;
}

.host-card-top-right .host-photo img {
  top: 0;
  left: -13%;
  width: 117%;
  height: 100%;
}

.host-card-bottom-left {
  --enter-delay: 0.76s;
  --float-delay: 1.5s;
  --float-duration: 5.2s;
  top: 524px;
  left: 18px;
  width: 112px;
  height: 103px;
  transform: rotate(6.48deg);
}

.host-card-bottom-left .host-frame {
  animation-delay: -2.1s;
}

.host-card-bottom-left .host-photo {
  inset: 6px 5px 5px 5px;
}

.host-card-bottom-left .host-photo img {
  top: -6%;
  left: -55%;
  width: 155%;
  height: 129%;
}

.hero-model {
  position: absolute;
  z-index: 4;
  top: 188px;
  left: -51px;
  width: 460px;
  height: 613px;
  object-fit: cover;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 91%, transparent 100%);
  animation:
    hero-enter 0.92s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both,
    hero-float 6.4s 1.38s ease-in-out infinite;
}

.host-card-bottom-right {
  --enter-delay: 0.68s;
  --float-delay: 1.42s;
  --float-duration: 4.7s;
  z-index: 6;
  top: 410px;
  left: 268px;
  width: 113px;
  height: 113px;
  transform: rotate(-6.9deg);
}

.host-card-bottom-right .host-frame {
  animation-delay: -2.8s;
}

.host-card-bottom-right .host-photo {
  inset: 13px 9px 17px 9px;
}

.host-card-bottom-right .host-photo img {
  top: 1%;
  left: 0;
  width: 100%;
  height: 142%;
}

.download-actions {
  position: absolute;
  z-index: 12;
  top: 708.7px;
  left: 8px;
  display: flex;
  gap: 2.05px;
  width: 358.1px;
  height: 69.6px;
  transform-origin: 50% 55%;
}

.download-button {
  width: 178.05px;
  height: 69.6px;
  border-radius: 24px;
  -webkit-tap-highlight-color: transparent;
  transition: transform 120ms ease, filter 120ms ease;
}

.download-button img {
  width: 178.05px;
  height: 69.6px;
  object-fit: fill;
  animation: cta-float-glow 2.8s ease-in-out infinite;
}

.download-button:nth-child(2) img {
  animation-delay: -1.4s;
}

@media (hover: hover) and (pointer: fine) {
  .brand-link:hover {
    transform: translateY(-2px) scale(1.035);
    filter: brightness(1.14);
  }

  .contact-button:hover {
    transform: translateY(-2px) scale(1.045);
    filter: brightness(1.12);
    box-shadow:
      inset 0 1px 18px #fff0f7,
      inset 0 1px 4px #fff,
      0 7px 18px rgb(229 0 92 / 42%);
  }

  .download-button:hover {
    transform: translateY(-3px) scale(1.025);
    filter: brightness(1.12);
  }
}

.brand-link:active,
.contact-button:active,
.download-button:active {
  transform: scale(0.96);
  filter: brightness(1.16);
  transition-duration: 80ms;
}

.download-actions.breathe-once {
  animation: download-breathe 1.2s ease-in-out 1;
}

.download-actions.config-disabled,
.install-tip.config-disabled {
  display: none !important;
}

@keyframes download-breathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  45% { transform: scale(1.025); filter: brightness(1.1); }
  72% { transform: scale(0.996); filter: brightness(1.02); }
}

.install-tip {
  position: absolute;
  z-index: 12;
  top: 787px;
  left: 50%;
  width: 320px;
  margin: 0;
  transform: translateX(-50%);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  animation: install-tip-enter 0.5s 1.1s ease both;
}

.toast {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: 102px;
  max-width: 290px;
  padding: 8px 14px;
  transform: translate(-50%, 8px);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 999px;
  color: #fff;
  background: rgb(12 7 20 / 90%);
  box-shadow: 0 8px 24px rgb(0 0 0 / 35%);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes background-pulse {
  from {
    transform: scale(1);
    filter: brightness(0.96) saturate(1);
  }
  to {
    transform: scale(1.022);
    filter: brightness(1.05) saturate(1.08);
  }
}

@keyframes ambient-sweep {
  0%, 15% {
    translate: 0 0;
    opacity: 0;
  }
  35% {
    opacity: 0.8;
  }
  65% {
    opacity: 0.42;
  }
  82%, 100% {
    translate: 720px 0;
    opacity: 0;
  }
}

@keyframes fade-slide-down {
  from {
    opacity: 0;
    translate: 0 -10px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes logo-glow {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgb(224 40 255 / 0%));
  }
  50% {
    filter: drop-shadow(0 0 6px rgb(224 40 255 / 68%));
  }
}

@keyframes contact-enter {
  from {
    opacity: 0;
    translate: 14px -7px;
    scale: 0.88;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes button-shine {
  0%, 62% {
    translate: 0 0;
    opacity: 0;
  }
  68% {
    opacity: 0.95;
  }
  82%, 100% {
    translate: 150px 0;
    opacity: 0;
  }
}

@keyframes headline-enter {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.91);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes headline-glow {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgb(235 55 255 / 0%));
  }
  50% {
    filter: drop-shadow(0 0 7px rgb(235 55 255 / 48%));
  }
}

@keyframes headline-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

@keyframes card-pop {
  from {
    opacity: 0;
    translate: 0 14px;
    scale: 0.82;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes card-float {
  0%, 100% {
    translate: 0 0;
    scale: 1;
  }
  50% {
    translate: 0 -5px;
    scale: 1.018;
  }
}

@keyframes frame-glow {
  0%, 100% {
    filter: drop-shadow(0 0 1px rgb(251 75 255 / 36%));
  }
  50% {
    filter: drop-shadow(0 0 5px rgb(251 75 255 / 82%));
  }
}

@keyframes hero-enter {
  from {
    opacity: 0;
    translate: 0 28px;
    clip-path: inset(12% 0 0 0);
  }
  to {
    opacity: 1;
    translate: 0 0;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes hero-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

@keyframes cta-float-glow {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: brightness(1) drop-shadow(0 0 1px rgb(255 52 244 / 34%));
  }
  50% {
    transform: translateY(-2px) scale(1.018);
    filter: brightness(1.1) drop-shadow(0 0 6px rgb(255 52 244 / 78%));
  }
}

@keyframes install-tip-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* 下载浮标仅面向 H5/移动端，桌面端保留落地页主体但不展示下载入口。 */
@media (min-width: 768px) {
  .download-actions,
  .install-tip {
    display: none;
  }
}

@media (max-width: 767px) {
  .download-actions {
    top: auto;
    bottom: 34.7px;
  }

  .install-tip {
    top: auto;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage::after {
    display: none;
  }

  .background,
  .brand-link,
  .brand-link img,
  .contact-button,
  .contact-button::after,
  .headline,
  .host-card,
  .host-frame,
  .hero-model,
  .install-tip,
  .download-button img,
  .download-actions.breathe-once {
    animation: none;
  }

  .toast {
    transition: none;
  }
}
