/* PAK ARCADE - 样式文件 */

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  /* 背景图改为三段拼接图片（见 .bg-stack），这里仅给一个兜底背景色 */
  background: #000;
  position: relative;
  /* 允许滚动 */
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 三段拼接背景：无缝隙、宽度跟随屏幕 */
.bg-stack {
  width: 100%;
  font-size: 0; /* 消除 img 间的空白字符影响 */
  line-height: 0;
}
.bg-stack .bg-part {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

/* 可选：上方文案区域 */
.lp-content {
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 480px;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.lp-title {
  font-size: 6vw;
  font-weight: 700;
  margin-bottom: 2vw;
}

.lp-subtitle {
  font-size: 4vw;
  line-height: 1.4;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .lp-title {
    font-size: 28px;
  }
  .lp-subtitle {
    font-size: 18px;
  }
}

/* 浮动下载按钮外容器：保证在底部中间且适配手机安全区 */
.download-wrapper {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 999;
}

/* 下载按钮缩小版 + 悬浮动画 */
#Download_app {
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 按钮缩小一点 */
  min-width: 40vw;
  max-width: 260px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 4vw;
  font-weight: 700;
  background: linear-gradient(135deg, #ff7a00, #ff3b30);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  animation: float 2.4s ease-in-out infinite;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    filter 0.18s ease-out,
    background 0.18s ease-out;
}

#Download_app span {
  display: inline-block;
}

@media (min-width: 768px) {
  #Download_app {
    font-size: 15px;
    padding: 10px 22px;
    min-width: 180px;
    max-width: 220px;
  }
}

@keyframes float {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -5px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

#Download_app:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
  filter: brightness(1.05);
  transform: translate3d(0, -2px, 0) scale(1.02);
}

#Download_app:active {
  transform: translate3d(0, 1px, 0) scale(0.97);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  animation: none;
}

/* 金币飘落动画 */
@keyframes fall {
  0% {
    top: -40px;
    transform: rotate(0deg);
  }
  100% {
    top: 110vh;
    transform: rotate(360deg);
  }
}

.coin-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.coin {
  position: absolute;
  top: -40px;
}
