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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.phone-island,
.phone-home-indicator,
.phone-side-button {
  display: none;
}

.main-wrap {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
}

.main-wrap.show {
  display: block;
}

.swiper-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease;
}

.swiper-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 6%;
}

.overlay.show {
  display: flex;
}

.overlay-text {
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  text-decoration: none;
}

.download-btn-outer {
  perspective: 800px;
  display: inline-block;
}

.download-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 48px;
  min-width: 280px;
  border: none;
  border-radius: 999px;
  overflow: visible;
  isolation: isolate;
  transform-style: preserve-3d;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.5s ease,
    filter 0.4s ease;
  animation: download-btn-float 4s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 4px 20px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(168, 85, 247, 0.2),
    0 0 80px rgba(236, 72, 153, 0.15);
}

.download-btn-outer:hover .download-btn {
  transform: scale(1.05) rotateX(-4deg) translateZ(12px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.25),
    0 0 60px rgba(168, 85, 247, 0.45),
    0 0 120px rgba(236, 72, 153, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  filter: brightness(1.1);
  animation: none;
}

.download-btn-outer:active .download-btn {
  transform: scale(0.98) rotateX(0) translateZ(0);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.2),
    0 0 30px rgba(168, 85, 247, 0.3);
}

.download-btn-outer:focus-visible .download-btn {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
}

.download-btn-outer.is-pending {
  cursor: progress;
}

.download-btn-outer.is-pending .download-btn {
  transform: scale(0.97) rotateX(0) translateZ(0);
  filter: brightness(1.12) saturate(1.15);
  animation: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 10px 28px rgba(0, 0, 0, 0.22),
    0 0 60px rgba(168, 85, 247, 0.4),
    0 0 120px rgba(236, 72, 153, 0.3);
}

.download-btn-outer.is-pending .download-btn__label {
  letter-spacing: 0.06em;
}

.download-btn-outer.is-pending .download-btn__shine::before,
.download-btn-outer.is-pending .download-btn__shine::after {
  animation-duration: 0.9s;
}

.download-btn__border {
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: conic-gradient(
    from 0deg,
    #ff6b9d,
    #c44569,
    #a855f7,
    #6366f1,
    #ec4899,
    #ff6b9d
  );
  z-index: -2;
}

.download-btn__border::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    #ff6b9d 0%,
    #c44569 20%,
    #a855f7 50%,
    #6366f1 80%,
    #ec4899 100%
  );
  background-size: 400% 400%;
  animation: download-btn-bg 8s ease infinite;
  z-index: 0;
}

.download-btn__glass {
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(0, 0, 0, 0.03) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.download-btn__shine {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.download-btn__shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: download-btn-shine 2.5s ease-in-out infinite;
}

.download-btn__shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  animation: download-btn-shine 2.5s ease-in-out infinite 0.8s;
}

.download-btn__label {
  position: relative;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  z-index: 2;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.2),
    0 0 20px rgba(255, 255, 255, 0.15);
}

@keyframes download-btn-float {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 40px rgba(168, 85, 247, 0.2), 0 0 80px rgba(236, 72, 153, 0.15);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 8px 28px rgba(0, 0, 0, 0.18), 0 0 55px rgba(168, 85, 247, 0.28), 0 0 100px rgba(236, 72, 153, 0.22);
  }
}

@keyframes download-btn-bg {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes download-btn-shine {
  0% {
    left: -100%;
  }
  100% {
    left: 150%;
  }
}

.download-btn-outer.overlay-text {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#wechat-mask {
  display: none;
}

.wechat-mask-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
}

.wechat-mask-pop {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 85%;
  max-width: 320px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 20px;
  z-index: 10002;
  overflow: hidden;
  padding: 24px;
}

.wechat-mask-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.wechat-mask-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
}

.wechat-mask-info {
  margin-left: 12px;
}

.wechat-mask-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.wechat-mask-subtitle {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}

.wechat-mask-steps {
  background: #f7f8fa;
  border-radius: 12px;
  padding: 16px;
}

.wechat-mask-steps p {
  font-size: 14px;
  color: #333;
  line-height: 2;
  display: flex;
  align-items: center;
}

.wechat-mask-steps b {
  color: #ff4081;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #ff4081;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
  flex-shrink: 0;
}

.wechat-mask-divider {
  text-align: center;
  margin: 18px 0;
  position: relative;
  font-size: 12px;
  color: #ccc;
}

.wechat-mask-divider::before,
.wechat-mask-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 25%;
  height: 1px;
  background: #e5e5e5;
}

.wechat-mask-divider::before {
  left: 0;
}

.wechat-mask-divider::after {
  right: 0;
}

.wechat-mask-copy {
  position: relative;
  height: 40px;
  background: #f1f6f9;
  border-radius: 20px;
  overflow: hidden;
}

.wechat-mask-copy input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 80px 0 16px;
  font-size: 13px;
  color: #999;
}

.wechat-mask-copy button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 18px;
  background: linear-gradient(90deg, #ff6cab, #ff4081);
  color: #fff;
  border: none;
  border-radius: 0 20px 20px 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.net-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 15000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 8, 18, 0.54);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.net-modal__panel {
  width: min(100%, 320px);
  padding: 32px 24px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
  text-align: center;
  color: #182135;
  animation: net-modal-pop 0.22s ease;
}

.net-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff9a56, #ff6b6b);
  box-shadow: 0 8px 18px rgba(255, 107, 107, 0.28);
}

.net-modal__icon svg {
  width: 28px;
  height: 28px;
}

.net-modal__title {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a2e;
}

.net-modal__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #667085;
}

.net-modal__button {
  width: 100%;
  margin-top: 22px;
  padding: 14px 0;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(102, 126, 234, 0.28);
  transition: transform 0.15s ease;
  cursor: pointer;
}

.net-modal__button:active {
  transform: scale(0.96);
}

.net-modal__footnote {
  margin-top: 14px;
  font-size: 12px;
  color: #98a2b3;
}

@keyframes net-modal-pop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 768px) {
  body {
    background:
      radial-gradient(circle at top, rgba(255, 108, 171, 0.22), transparent 35%),
      radial-gradient(circle at bottom, rgba(115, 102, 255, 0.2), transparent 40%),
      #0f111a;
  }

  .phone-shell {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9997;
  }

  .phone-frame {
    position: relative;
    width: min(462px, calc(100vw - 40px));
    height: min(940px, calc(100vh - 40px));
    padding: 14px;
    border-radius: 56px;
    background: linear-gradient(155deg, #ffffff 0%, #f4f6f9 22%, #dfe4eb 52%, #ffffff 100%);
    box-shadow:
      0 30px 90px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.88),
      inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    overflow: visible;
  }

  .phone-frame::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.55) 20%, rgba(199, 207, 218, 0.34) 52%, rgba(255, 255, 255, 0.72) 100%);
    pointer-events: none;
  }

  .phone-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.72),
      inset 0 0 0 4px rgba(214, 220, 229, 0.34);
    pointer-events: none;
  }

  .main-wrap {
    top: auto;
    left: auto;
    position: absolute;
    inset: 14px;
    width: auto;
    height: auto;
    transform: none;
    border-radius: 42px;
    overflow: hidden;
    background: #000;
    z-index: 1;
    box-shadow: 0 0 0 1px rgba(10, 12, 16, 0.08);
  }

  .swiper-container,
  .swiper-slide,
  .swiper-slide img {
    border-radius: inherit;
  }

  .overlay {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    padding: 0 22px 28px;
  }

  .download-btn {
    min-width: 240px;
    padding: 18px 38px;
  }

  .phone-island {
    display: block;
    position: absolute;
    top: 24px;
    left: 50%;
    width: 132px;
    height: 36px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, #0b0b0d 0%, #000 100%);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.08),
      0 6px 16px rgba(0, 0, 0, 0.35);
    z-index: 3;
    pointer-events: none;
  }

  .phone-island::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 24px;
    width: 10px;
    height: 10px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #3c4859, #12151b 58%, #020304 100%);
    opacity: 0.95;
  }

  .phone-island::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    width: 46px;
    height: 8px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
  }

  .phone-home-indicator {
    display: block;
    position: absolute;
    bottom: 18px;
    left: 50%;
    width: 132px;
    height: 5px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(18, 20, 24, 0.58);
    z-index: 3;
    pointer-events: none;
  }

  .phone-side-button {
    display: block;
    position: absolute;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f9fafb 0%, #cfd5de 28%, #8d95a1 100%);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.35),
      0 2px 6px rgba(0, 0, 0, 0.18);
    z-index: 0;
    pointer-events: none;
  }

  .phone-side-button--mute {
    left: -2px;
    top: 136px;
    height: 28px;
  }

  .phone-side-button--volume-up {
    left: -2px;
    top: 188px;
    height: 66px;
  }

  .phone-side-button--volume-down {
    left: -2px;
    top: 268px;
    height: 66px;
  }

  .phone-side-button--power {
    right: -2px;
    top: 208px;
    height: 96px;
  }
}
