* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #f5f6f7;
  color: #202124;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

body {
  overflow-x: hidden;
}

button {
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

#page-view {
  position: relative;
  width: min(100vw, 500px);
  min-height: 100vh;
  margin: 0 auto;
  background: #0a0a0a;
  font-size: 17.3333px;
  line-height: 24.7624px;
}

.content-warp {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-bottom: 80px;
  overflow: auto;
  background: #0a0a0a;
}

.swipe-warp {
  display: block;
  width: 100%;
  aspect-ratio: 1100 / 4246;
  min-height: calc(min(100vw, 500px) * 4246 / 1100);
}

.van-image__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.downbload-footer {
  position: fixed;
  right: max(0px, calc((100vw - 500px) / 2));
  bottom: 0;
  left: max(0px, calc((100vw - 500px) / 2));
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100vw, 500px);
  height: 80px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

.footer-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(50% - 25.3332px);
  height: 45.3281px;
  margin: 0 12.6666px;
  padding: 0 12.6666px;
  border-radius: 10.6666px;
  color: #fff;
  text-align: center;
}

.footer-btn-blue {
  background: rgb(22, 120, 255);
}

.footer-btn-orange {
  background: rgb(255, 170, 9);
}

.footer-bubble {
  position: absolute;
  right: 0;
  bottom: 50.6666px;
  max-width: calc(100% - 12.6666px);
  padding: 8px 12.6666px;
  border-radius: 10.6666px;
  background: rgb(234, 78, 61);
  color: #fff;
  font-size: 14.6666px;
  line-height: 20.9528px;
  white-space: nowrap;
}

.footer-bubble-wide {
  max-width: none;
}

.text-warp {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 17.3333px;
  line-height: 24.7624px;
  white-space: nowrap;
}

.fix-tool {
  position: fixed;
  top: 160px;
  left: max(7.666px, calc((100vw - 500px) / 2 + 7.666px));
  z-index: 100;
  width: 66.6562px;
}

.fix-item {
  position: relative;
  display: block;
  width: 66.6562px;
  height: 66.6562px;
  margin-top: 12.6666px;
  background: transparent;
}

.fix-item:first-child {
  margin-top: 0;
}

@media (max-width: 500px) {
  #page-view {
    width: 100vw;
  }

  .downbload-footer {
    right: 0;
    left: 0;
    width: 100vw;
  }

  .footer-btn {
    width: calc(50% - 25.3332px);
  }

  .fix-tool {
    left: 7.666px;
  }
}

/* ============================================================================
 * 转盘抽奖弹窗 —— 参考 h5/btc 项目 lottery.css 复刻（纯 CSS 转盘）
 * ========================================================================== */

body.df-lottery-open { overflow: hidden; }

.df-lottery-backdrop,
.df-lottery-backdrop * { box-sizing: border-box; }

.df-lottery-backdrop[hidden],
.df-lottery-dialog[hidden] { display: none !important; }

.df-lottery-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

.df-lottery-dialog {
  position: relative;
  width: min(100%, 430px);
  margin: auto;
  padding: 25px 20px 22px;
  border: 1px solid #b8862c;
  border-radius: 12px;
  background: linear-gradient(180deg, #2a1119, #140a10);
  box-shadow: 0 20px 65px rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
}

.df-lottery-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #3a2028;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.df-lottery-close:hover,
.df-lottery-close:focus-visible { background: #5a303c; }

.df-lottery-brand {
  margin: 0 0 5px;
  color: #ffcc4d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}

.df-lottery-dialog h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

.df-lottery-subtitle {
  margin: 8px 0 0;
  color: #e6d6c2;
  font-size: 14px;
  line-height: 1.5;
}

.df-lottery-wheel-wrap {
  --wheel-size: min(76vw, 342px);
  position: relative;
  width: var(--wheel-size);
  height: var(--wheel-size);
  margin: 23px auto 18px;
}

.df-lottery-wheel-wrap::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 5px solid #d9a538;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff1bb inset, 0 9px 22px rgba(0, 0, 0, 0.32);
}

.df-lottery-pointer {
  position: absolute;
  z-index: 3;
  top: -11px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 28px solid #fff0ae;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

.df-lottery-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 3px solid #f8d56e;
  border-radius: 50%;
  background: conic-gradient(from -22.5deg,
    #c2244a 0deg 45deg,
    #e08a00 45deg 90deg,
    #8e1538 90deg 135deg,
    #d97b00 135deg 180deg,
    #c2244a 180deg 225deg,
    #e08a00 225deg 270deg,
    #8e1538 270deg 315deg,
    #d97b00 315deg 360deg);
  transform: rotate(0deg);
}

.df-lottery-wheel.is-spinning {
  transition: transform 10s cubic-bezier(0.12, 0.62, 0.12, 1);
}

.df-lottery-prize {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  margin: 0;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--wheel-size) * -0.35)) rotate(calc(-1 * var(--angle)));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.df-lottery-prize small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 500;
}

.df-lottery-spin {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 104px;
  height: 104px;
  transform: translate(-50%, -50%);
  border: 6px solid #fff1bb;
  border-radius: 50%;
  background: linear-gradient(#ffdc72, #d39720);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
  color: #5c2d00;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}

.df-lottery-spin:disabled {
  cursor: default;
  opacity: 0.85;
}

.df-lottery-result { padding-top: 35px; }

.df-lottery-amount {
  margin: 20px 0 12px;
  color: #ffcc4d;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
}

.df-lottery-result-copy {
  margin: 0 0 24px;
  color: #e6d6c2;
  font-size: 14px;
  line-height: 1.6;
}

.df-lottery-actions {
  display: flex;
  gap: 10px;
}

.df-lottery-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.df-lottery-later {
  flex: 1;
  background: #3a2028;
  color: #fff;
}

.df-lottery-claim {
  flex: 2;
  background: linear-gradient(#ffdc72, #f0a90c);
  color: #5c2d00;
}

.df-lottery-later:hover,
.df-lottery-later:focus-visible { background: #5a303c; }

.df-lottery-claim:hover,
.df-lottery-claim:focus-visible { background: linear-gradient(#ffe89a, #ffbe2e); }

@media (max-width: 380px) {
  .df-lottery-dialog { padding: 22px 14px 18px; }
  .df-lottery-wheel-wrap { --wheel-size: min(74vw, 290px); }
  .df-lottery-prize { font-size: 13px; }
  .df-lottery-spin { width: 88px; height: 88px; font-size: 16px; }
}

/* ============================================================================
 * 落地页内容区（替代原整張長圖）
 * 圖片佔位：上傳 assets/ 下對應檔名的圖片後自動顯示，無需改代碼。
 * ========================================================================== */

.landing {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 14px 12px 10px;
}

/* 图片占位容器：未传图时显示虚线框 + 文件名，传图后图片自动盖住标签 */
.img-ph {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px dashed rgba(255, 213, 74, 0.45);
  border-radius: 12px;
  background: linear-gradient(135deg, #1c1c22, #101014);
}

.img-ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: rgba(255, 213, 74, 0.75);
  font-size: 12px;
  text-align: center;
  word-break: break-all;
}

.img-ph img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ① 首屏 */
.hero {
  padding: 26px 14px 22px;
  border: 1px solid rgba(255, 213, 74, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 170, 9, 0.18), transparent 60%),
    linear-gradient(180deg, #1a1206, #0d0d10);
  text-align: center;
}

.hero-brand {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #ffe9a8, #ffc242 45%, #ff9d00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-slogan {
  margin: 8px 0 14px;
  color: #d8d9de;
  font-size: 14px;
  line-height: 1.5;
}

.hero-banner { aspect-ratio: 16 / 9; }

.hero-cta {
  min-width: 210px;
  height: 44px;
  margin-top: 16px;
  padding: 0 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd54a, #ff9d00);
  color: #2b1a00;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(255, 157, 0, 0.35);
}

/* ② 数据条 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats li {
  padding: 12px 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #141418;
  text-align: center;
}

.stats strong {
  display: block;
  color: #ffd54a;
  font-size: 15px;
  line-height: 1.3;
}

.stats span {
  display: block;
  margin-top: 3px;
  color: #8b8e97;
  font-size: 11px;
  line-height: 1.3;
}

/* 区块标题 */
.block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
}

.block-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffd54a, #ff9d00);
}

/* ③ 热门游戏 */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-card { position: relative; }

.game-thumb { aspect-ratio: 1 / 1; }

.game-hot {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  padding: 1px 7px;
  border-radius: 999px;
  background: #e0343c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
}

.game-name {
  display: block;
  margin-top: 6px;
  color: #d8d9de;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

/* ④ 活动福利 */
.block { margin: 0; }

.promo-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #141418;
}

.promo-card + .promo-card { margin-top: 10px; }

.promo-banner { aspect-ratio: 3 / 1; border-radius: 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.promo-info { padding: 10px 12px 12px; }

.promo-info strong {
  display: block;
  color: #ffd54a;
  font-size: 15px;
  line-height: 1.4;
}

.promo-info p {
  margin: 3px 0 0;
  color: #8b8e97;
  font-size: 12px;
  line-height: 1.5;
}

/* ⑤ 平台优势 */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feat-grid li {
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #141418;
}

.feat-grid svg {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  fill: none;
  stroke: #ffd54a;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feat-grid strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.feat-grid p {
  margin: 3px 0 0;
  color: #8b8e97;
  font-size: 12px;
  line-height: 1.5;
}

/* ⑥ 新手四步 */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li { text-align: center; }

.steps i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  border: 1px solid #ffd54a;
  border-radius: 50%;
  color: #ffd54a;
  font-size: 14px;
  font-weight: 800;
  font-style: normal;
}

.steps span {
  display: block;
  margin-top: 7px;
  color: #d8d9de;
  font-size: 12px;
  line-height: 1.35;
}

/* ============================================================================
 * 非 Safari 引導彈窗 —— 蓋過抽獎彈窗，引導用戶跳轉 Safari
 * ========================================================================== */

.df-safari-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483001; /* 蓋過抽獎彈窗（2147483000） */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.df-safari-dialog {
  width: 100%;
  max-width: 360px;
  padding: 26px 22px 20px;
  border: 1px solid rgba(255, 213, 74, 0.3);
  border-radius: 18px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 170, 9, 0.16), transparent 60%),
    linear-gradient(180deg, #1a1206, #0d0d10);
  text-align: center;
  color: #fff;
}

.df-safari-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  fill: none;
  stroke: #ffd54a;
  stroke-width: 1.6;
}

.df-safari-dialog h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: #ffd54a;
}

.df-safari-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #c9cbd3;
}

.df-safari-url {
  display: block;
  margin: 0 0 18px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  font-size: 11px;
  color: #8b8e97;
  word-break: break-all;
}

.df-safari-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.df-safari-open {
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd54a, #ff9d00);
  color: #2b1a00;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(255, 157, 0, 0.35);
}

.df-safari-copy {
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 213, 74, 0.5);
  background: transparent;
  color: #ffd54a;
  font-size: 15px;
  font-weight: 700;
}

.df-safari-stay {
  display: block;
  margin: 0 auto;
  color: #6b6e77;
  font-size: 12px;
  text-decoration: underline;
}
