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

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #ff4d4f 0%, #b3121f 100%);
  min-height: 100vh;
  color: #333;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo */
.logo-wrap { text-align: center; margin: 8px 0; }
.logo-wrap img { height: 60px; }

/* 轮播图 */
.banner {
  width: 100%;
  aspect-ratio: 750/400;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  background: #f0f0f0;
}
.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}
.banner-track img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; }
.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
}
.banner-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  margin: 0 3px;
}
.banner-dots span.active { background: #fff; width: 16px; border-radius: 4px; }

/* 进度条 */
.progress-box {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0;
}
.progress-label { font-size: 14px; margin-bottom: 8px; color: #666; }
.progress-bar { height: 12px; background: #f0f0f0; border-radius: 6px; overflow: hidden; }
.progress-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffb800, #ff6a00);
  border-radius: 6px;
  transition: width 0.5s ease;
}

/* 下拉选择 */
.select-box {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.select-box label { font-size: 14px; color: #666; white-space: nowrap; flex-shrink: 0; }
.select-box select {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  max-width: 100%;
}

/* 转盘 */
.wheel-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 8px auto;
}
.wheel-wrap canvas { width: 100%; height: 100%; }
.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 30px solid #ffd400;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* 个人状态 */
.my-status {
  width: 100%;
  text-align: center;
  color: #ffe08a;
  font-size: 13px;
  margin-top: 4px;
}

/* 抽奖按钮 */
.btn-box { width: 100%; text-align: center; margin: 16px 0; }
.draw-btn {
  width: 70%;
  padding: 14px 0;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(180deg, #ff6a00, #ff3d00);
  border: none;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(255,61,0,0.4);
  cursor: pointer;
}
.draw-btn:disabled {
  background: #bbb;
  box-shadow: none;
  cursor: not-allowed;
}

/* 编码 */
.code-box {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin: 12px 0;
  text-align: center;
  border: 2px solid #ffb800;
}
.code-label { font-size: 14px; color: #666; }
.code-value {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 3px;
  color: #e8485b;
  margin: 8px 0;
}
.code-tip { font-size: 12px; color: #999; }

/* 兑奖 */
.claim-box {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin: 12px 0;
  text-align: center;
}
.section-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
}
.claim-box img { width: 160px; height: 160px; border-radius: 8px; }
.claim-text { font-size: 14px; color: #555; margin-top: 10px; }
.claim-tip { font-size: 12px; color: #999; margin-top: 6px; }

/* 参与者列表 */
.records-box {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin: 12px 0;
}
.records-list { max-height: 300px; overflow-y: auto; }
.record-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
}
.record-item:last-child { border-bottom: none; }
.record-name { color: #333; }
.record-prize { color: #e8485b; font-weight: bold; }
.record-time { color: #999; font-size: 12px; }

/* 弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.modal {
  width: 82%;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  animation: pop 0.3s ease;
}
@keyframes pop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-title { font-size: 18px; font-weight: bold; margin-bottom: 12px; color: #333; }
.modal-body { font-size: 15px; color: #555; line-height: 1.6; margin-bottom: 20px; }
.modal-btn {
  padding: 10px 40px;
  font-size: 15px;
  color: #fff;
  background: #ff3d00;
  border: none;
  border-radius: 24px;
  cursor: pointer;
}
