*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #ffeea9;
  color: #333;
  min-height: 100vh;
}

.page {
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ===== 背景内容图 ===== */
.content-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
}

.page-bg {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

/* 透明热区按钮 */
.hotspot {
  position: absolute;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.hotspot:active {
  background: rgba(255, 107, 0, 0.08);
  border-radius: 20px;
}

/* ===== 底部下载按钮 ===== */
.footer-spacer {
  height: calc(12vw + 40px);
  max-height: 120px;
}

.footer-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  background: linear-gradient(180deg, rgba(255, 238, 169, 0) 0%, #ffeea9 30%);
  z-index: 100;
  display: flex;
  justify-content: center;
}

@keyframes btn-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.btn-download {
  position: relative;
  display: block;
  width: 92%;
  max-width: 420px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: btn-pulse 1.2s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
}

.btn-download img {
  display: block;
  width: 100%;
  height: auto;
}

.btn-download .btn-text {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -52%);
  color: #fff;
  font-size: clamp(18px, 5.5vw, 24px);
  font-weight: 900;
  letter-spacing: 3px;
  text-shadow: 0 1px 3px rgba(180, 30, 50, 0.35);
  pointer-events: none;
  white-space: nowrap;
}

.btn-download:active {
  animation: none;
  transform: scale(0.95);
  transition: transform 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  .btn-download {
    animation: none;
  }
}

/* ===== 支付宝内打开提示遮罩 ===== */
.alipay-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
}

.alipay-mask[hidden] {
  display: none;
}

.alipay-tip {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 72%;
  max-width: 300px;
  height: auto;
  pointer-events: none;
}

/* ===== 大屏居中 ===== */
@media (min-width: 501px) {
  body {
    background: #e8d88a;
  }

  .page {
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.1);
  }
}
