* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: #3a1d1d; background: #b71c2c; min-height: 100vh;
  background-image: radial-gradient(circle at 20% 10%, #ff6b6b 0, rgba(255,107,107,0) 40%), radial-gradient(circle at 85% 90%, #ff9a3c 0, rgba(255,154,60,0) 35%), linear-gradient(180deg, #e0303f 0%, #b71c2c 100%);
  background-attachment: fixed;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; border: 0; }
a { color: #d92b3a; }

#app { max-width: 480px; margin: 0 auto; min-height: 100vh; padding: 0 16px 32px; position: relative; }
@media (min-width: 768px) {
  body { padding: 24px 0; }
  #app { min-height: 0; border-radius: 24px; padding-bottom: 36px; background: rgba(255,255,255,.07); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
}

.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: 1px; }
.brand img { border-radius: 6px; margin-right: 8px; }
.top-right { display: flex; align-items: center; }
.icon-btn { width: 34px; height: 34px; margin-left: 8px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 16px; line-height: 34px; padding: 0; }
.icon-btn.txt { width: auto; padding: 0 12px; border-radius: 17px; font-size: 13px; }
.icon-btn.off { opacity: .5; text-decoration: line-through; }

/* 登录卡片 */
.card { background: #fff; border-radius: 18px; padding: 22px 20px 20px; box-shadow: 0 10px 30px rgba(120,0,10,.3); margin-top: 8px; }
.auth-title { margin: 0 0 14px; font-size: 20px; text-align: center; color: #b71c2c; }
.tabs { display: flex; background: #fdecea; border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.tab { flex: 1; padding: 9px 0; border-radius: 9px; background: transparent; color: #8a3b3b; font-size: 15px; }
.tab.on { background: #d92b3a; color: #fff; font-weight: 700; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; color: #8a6d6d; margin-bottom: 6px; }
.field input { width: 100%; height: 46px; border: 1px solid #f0cfcf; border-radius: 10px; padding: 0 12px; font-size: 16px; outline: none; background: #fffafa; color: #3a1d1d; }
.field input:focus { border-color: #d92b3a; box-shadow: 0 0 0 3px rgba(217,43,58,.12); }
.row { display: flex; }
.row input { flex: 1; min-width: 0; }
.btn-code { margin-left: 10px; min-width: 104px; height: 46px; border-radius: 10px; background: #fdecea; color: #d92b3a; font-size: 14px; font-weight: 600; }
.btn-code:disabled { color: #b9a0a0; background: #f4eeee; }
.btn-main { width: 100%; height: 48px; border-radius: 24px; font-size: 17px; font-weight: 700; color: #fff; background: linear-gradient(180deg, #ff6a5c, #d92b3a); box-shadow: 0 6px 14px rgba(217,43,58,.35); }
.btn-main:active { transform: translateY(1px); }
.btn-main:disabled { opacity: .6; }
.btn-main.small { width: 70%; margin: 16px auto 0; display: block; height: 42px; font-size: 15px; }
.err { min-height: 20px; margin: 2px 0 8px; font-size: 13px; color: #d92b3a; }
.hint { margin: -4px 0 10px; font-size: 13px; color: #8a5a00; background: #fff4d6; border-radius: 8px; padding: 8px 10px; }
.switch { text-align: center; margin: 14px 0 0; font-size: 14px; }
.agree { margin: 12px 0 0; font-size: 12px; color: #a08a8a; text-align: center; line-height: 1.5; }

/* 公告滚动 */
.marquee { display: flex; align-items: center; background: rgba(0,0,0,.22); color: #fff; border-radius: 18px; padding: 0 12px; height: 34px; font-size: 13px; overflow: hidden; }
.mq-ico { margin-right: 8px; padding: 1px 6px; border-radius: 8px; background: #ffe08a; color: #b71c2c; font-size: 11px; font-weight: 700; }
.mq-view { flex: 1; height: 34px; overflow: hidden; }
.mq-list > div { height: 34px; line-height: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mq-list.run { animation: mq var(--mq-dur, 12s) linear infinite; }
@keyframes mq { from { transform: translateY(0); } to { transform: translateY(var(--mq-dist, 0)); } }

/* 转盘 */
.wheel-wrap { position: relative; width: 88%; max-width: 380px; margin: 26px auto 0; }
.wheel-wrap::before { content: ""; display: block; padding-top: 100%; }
.wheel-glow { position: absolute; left: -6%; top: -6%; width: 112%; height: 112%; border-radius: 50%; background: radial-gradient(circle, rgba(255,230,120,.55) 0, rgba(255,230,120,0) 68%); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.wheel-rim { position: absolute; left: -3%; top: -3%; width: 106%; height: 106%; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #ffe9a8, #f5b21c 60%, #c98100); box-shadow: 0 8px 22px rgba(80,0,0,.45); }
#wheel { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 50%; transform: rotate(0deg); will-change: transform; }
.spin { position: absolute; left: 50%; top: 50%; width: 26%; height: 26%; margin: -13% 0 0 -13%; border-radius: 50%; color: #fff; padding: 0;
  background: radial-gradient(circle at 35% 30%, #ff8a7a, #d92b3a 70%); border: 4px solid #ffe08a; box-shadow: 0 4px 12px rgba(0,0,0,.4); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 3; }
.spin b { font-size: 19px; line-height: 1.1; }
.spin small { font-size: 11px; opacity: .9; margin-top: 2px; }
.spin:disabled { filter: grayscale(.5); }
.spin:not(:disabled) { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.pointer { position: absolute; left: 50%; top: -5%; width: 0; height: 0; margin-left: -12px; z-index: 4;
  border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 30px solid #ffe08a; filter: drop-shadow(0 3px 2px rgba(0,0,0,.4)); }
.pointer::after { content: ""; position: absolute; left: -5px; top: -29px; width: 10px; height: 10px; border-radius: 50%; background: #d92b3a; }

.chance { text-align: center; color: #fff; font-size: 15px; margin: 26px 0 14px; }
.chance b { color: #ffe08a; font-size: 20px; }
.actions { display: flex; justify-content: center; }
.btn-ghost { margin: 0 8px; padding: 0 22px; height: 40px; border-radius: 20px; background: rgba(255,255,255,.18); color: #fff; font-size: 15px; border: 1px solid rgba(255,255,255,.35); }

/* 弹层 */
.mask { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0,0,0,.6); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { width: 100%; max-width: 360px; max-height: 80vh; overflow: auto; background: #fff; border-radius: 20px; padding: 24px 20px 20px; text-align: center; animation: pop .28s ease-out; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.m-emoji { font-size: 56px; line-height: 1.1; }
.m-title { font-size: 22px; font-weight: 800; color: #d92b3a; margin: 6px 0; }
.m-prize { font-size: 20px; font-weight: 700; margin: 6px 0; }
.m-desc { font-size: 14px; color: #7a5a5a; line-height: 1.6; margin: 8px 0 0; }
.m-code { display: inline-block; margin-top: 10px; padding: 8px 16px; border: 2px dashed #d92b3a; border-radius: 10px; font-size: 22px; letter-spacing: 3px; font-weight: 800; color: #d92b3a; user-select: all; -webkit-user-select: all; }
.rec { text-align: left; }
.rec h3 { text-align: center; margin: 0 0 10px; color: #b71c2c; }
.rec-item { padding: 10px 0; border-bottom: 1px solid #f5e3e3; font-size: 14px; }
.rec-item .n { font-weight: 700; }
.rec-item .s { float: right; font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #fff4d6; color: #8a5a00; }
.rec-item .s.ok { background: #e3f6e8; color: #1b7a3a; }
.rec-item .s.no { background: #f1f1f1; color: #888; }
.rec-item .t { color: #a08a8a; font-size: 12px; margin-top: 3px; }
.rules { text-align: left; font-size: 14px; line-height: 1.8; color: #5a3a3a; }
.rules h3 { text-align: center; margin: 0 0 8px; color: #b71c2c; }
.rules ol { padding-left: 20px; margin: 0; }

.toast { position: fixed; left: 50%; bottom: 14%; transform: translateX(-50%); max-width: 80%; background: rgba(0,0,0,.8); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 60; text-align: center; }
/* 图形验证码 */
.cap-img { margin-left: 10px; width: 132px; height: 41px; flex: none; border-radius: 8px; border: 1px solid #f3d6d2; cursor: pointer; background: #fff7ed; }
.cap-tip { display: block; margin-top: 4px; color: #b38b8b; font-size: 12px; font-weight: 400; }
