:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #000;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.page {
  min-height: 100svh;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  display: grid;
  place-items: center;
}

/* 以“海报”方式居中显示，保持 9:16 比例，适配不同设备 */
.stage {
  position: relative;
  height: calc(100svh - var(--safe-top) - var(--safe-bottom));
  max-height: 980px;
  width: auto;
  max-width: calc(100vw - var(--safe-left) - var(--safe-right));
  aspect-ratio: 25 / 49; /* reference.png: 750x1470 */
  overflow: hidden;
  border-radius: 0px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}

.stage__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* 透明热区（以参考图像坐标为基准，按比例缩放） */
.hotspot {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hotspot:focus-visible {
  outline: 3px solid rgba(0, 200, 255, 0.9);
  outline-offset: 3px;
}

/* 基于 reference.png（宽 750，高 1470）做百分比定位 */
.hotspot--cta {
  /* 右上“立即下载” */
  left: 60.5%;
  top: 2.7%;
  width: 36.5%;
  height: 7.5%;
}

.hotspot--android {
  /* 底部左 Android 按钮 */
  left: 6.3%;
  top: 90.4%;
  width: 41.8%;
  height: 6.9%;
  border-radius: 18px;
}

.hotspot--ios {
  /* 底部右 iOS 按钮 */
  left: 52.2%;
  top: 90.4%;
  width: 41.8%;
  height: 6.9%;
  border-radius: 18px;
}

.downloadBar {
  position: absolute;
  left: 5.5%;
  right: 5.5%;
  bottom: 4.8%;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.downloadBtn {
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: linear-gradient(180deg, #ff4f92 0%, #f03174 100%);
  box-shadow: 0 8px 20px rgba(240, 49, 116, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.downloadBtn:active {
  transform: translateY(1px) scale(0.99);
}

@media (min-width: 768px) {
  .stage {
    max-height: 1100px;
  }
}

