* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: #333;
  background: #f5f6f8;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: #d93a30;
  width: 100%;
  transition: opacity .2s, transform .1s;
}
.btn:active { transform: scale(.985); opacity: .9; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-outline {
  background: #fff;
  color: #d93a30;
  border: 1px solid #e4b6b0;
}
.btn-blue { background: #2f6fe4; }

/* 弹层 */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .2s;
}
.modal-mask.show { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 340px;
  background: #fff; border-radius: 18px;
  padding: 26px 22px 22px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.2);
  transform: translateY(12px);
  transition: transform .2s;
}
.modal-mask.show .modal { transform: translateY(0); }
.modal h3 { margin: 0 0 10px; font-size: 20px; color: #c8322b; }
.modal p { margin: 0 0 18px; font-size: 14px; color: #666; }
.modal .prize-emoji { font-size: 52px; line-height: 1.2; margin: 6px 0 14px; }
.modal .close-x {
  position: absolute; top: -38px; right: 4px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.2); color: #fff; border: 0; font-size: 22px; line-height: 34px;
}
.modal-wrap { position: relative; width: 100%; max-width: 340px; }

/* 轻提示 */
.toast {
  position: fixed; left: 50%; top: 50%; z-index: 200;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.78); color: #fff;
  padding: 11px 18px; border-radius: 10px;
  font-size: 14px; max-width: 80%; text-align: center;
  opacity: 0; visibility: hidden; transition: opacity .2s;
}
.toast.show { opacity: 1; visibility: visible; }

/* 表单通用 */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 10px; color: #222; }
.field label .required { color: #e6453b; margin-left: 3px; }
.field input[type=text], .field input[type=tel] {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid #dcdfe6; border-radius: 10px;
  background: #fff; color: #222; outline: none;
}
.field input:focus { border-color: #2f6fe4; }
.field input[readonly] { background: #f5f7fa; color: #666; }
.field-hint { font-size: 12px; color: #9aa0aa; margin-top: 6px; }
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-item {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 14px;
  border: 1px solid #dcdfe6; border-radius: 10px; background: #fff;
  font-size: 15px;
}
.radio-item.selected { background: #fff4d9; border-color: #f0c96a; }
.radio-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #c8ccd4; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.radio-item.selected .radio-dot { border-color: #2f6fe4; }
.radio-item.selected .radio-dot::after {
  content: ''; width: 10px; height: 10px; border-radius: 50%; background: #2f6fe4;
}

/* 转盘通用 */
.wheel-box { position: relative; margin: 0 auto; width: 100%; max-width: 340px; }
.wheel-rotor { width: 100%; height: 100%; transform: rotate(0deg); }
.wheel-rotor svg { display: block; width: 100%; height: 100%; }
.wheel-pointer {
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 26px solid #b8261f;
  z-index: 3;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
}
