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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    /* 现代渐变背景：紫蓝 → 品红，喜庆又不失高级 */
    background:
        radial-gradient(1200px 600px at 15% -10%, #7c5cff33, transparent 60%),
        radial-gradient(900px 500px at 110% 10%, #ff6fae2e, transparent 55%),
        linear-gradient(160deg, #f3f5ff 0%, #eef0ff 50%, #fdf0f6 100%);
    color: #2b2f44;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 16px 40px;
}

/* 毛玻璃卡片 */
.card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(60, 50, 120, 0.14);
    padding: 26px 24px;
    margin-top: 14px;
}

h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 6px;
    background: linear-gradient(90deg, #7c5cff, #ff5fa2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: 1px;
}
h2 { font-size: 17px; margin-bottom: 14px; color: #3a3f5a; }
.sub { text-align: center; color: #8a8fa8; font-size: 13px; margin-bottom: 18px; }

label { display: block; font-size: 13px; color: #6b7090; margin: 14px 0 6px; font-weight: 600; }

input, select {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid #e6e8f5;
    border-radius: 13px;
    font-size: 15px;
    outline: none;
    background: rgba(255,255,255,0.9);
    transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus {
    border-color: #7c5cff;
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12);
}

button {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 13px;
    background: linear-gradient(135deg, #7c5cff, #ff5fa2);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 16px;
    box-shadow: 0 10px 24px rgba(124, 92, 255, 0.28);
    transition: transform .12s, box-shadow .2s, opacity .2s;
}
button:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(124, 92, 255, 0.34); }
button:active { transform: translateY(1px); opacity: .92; }
button.secondary {
    background: #eef0fb;
    color: #6b7090;
    box-shadow: none;
}
button:disabled { background: #d9dcef; box-shadow: none; cursor: not-allowed; transform: none; }

.row { display: flex; gap: 10px; align-items: flex-end; }
.row > div { flex: 1; }
.link { text-align: center; margin-top: 18px; font-size: 13px; color: #8a8fa8; }
.link a { color: #7c5cff; text-decoration: none; font-weight: 600; }

/* ============ 转盘 ============ */
.wheel-wrap {
    position: relative;
    width: 320px; height: 320px;
    margin: 8px auto 4px;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, #ffd479, #ff9a5a);
    box-shadow: 0 20px 50px rgba(255, 120, 80, 0.35), inset 0 2px 6px rgba(255,255,255,.5);
}
#wheel {
    border-radius: 50%;
    background: #fff;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.12));
}
/* 指针：顶部精致三角 + 圆珠 */
.pointer {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #ff3b5c;
    z-index: 6;
    filter: drop-shadow(0 4px 6px rgba(255,59,92,.4));
}
.pointer::after {
    content: "";
    position: absolute;
    top: -40px; left: 50%;
    transform: translateX(-50%);
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #ff3b5c;
    box-shadow: 0 3px 8px rgba(255,59,92,.4);
}
/* 中心抽奖按钮：渐变圆 + 呼吸光环 */
.center-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 76px; height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c5cff, #ff5fa2);
    color: #fff;
    font-size: 17px; font-weight: 800;
    cursor: pointer;
    z-index: 5; margin: 0;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(124, 92, 255, 0.45);
    animation: breathe 2.2s ease-in-out infinite;
}
@keyframes breathe {
    0%, 100% { box-shadow: 0 8px 20px rgba(124, 92, 255, 0.45), 0 0 0 0 rgba(124,92,255,.35); }
    50% { box-shadow: 0 8px 20px rgba(124, 92, 255, 0.45), 0 0 0 12px rgba(124,92,255,0); }
}

/* 结果弹窗（毛玻璃） */
.modal-mask {
    position: fixed; inset: 0;
    background: rgba(30, 26, 60, 0.45);
    backdrop-filter: blur(3px);
    display: none; align-items: center; justify-content: center; z-index: 10;
}
.modal-mask.show { display: flex; }
.modal {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-radius: 22px;
    padding: 28px 24px;
    width: 86%; max-width: 360px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(40, 30, 90, 0.3);
    animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h3 { font-size: 22px; margin-bottom: 12px; background: linear-gradient(90deg,#7c5cff,#ff5fa2); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.modal .code {
    font-size: 26px; letter-spacing: 3px; color: #ff3b5c; font-weight: 800; margin: 10px 0;
    padding: 10px; border-radius: 12px; background: #fff0f3;
}
.modal img { width: 168px; height: 168px; margin: 10px auto; display: block; border-radius: 12px; }

.prize-item {
    border: 1px solid #eef0f5; border-radius: 14px; padding: 16px;
    margin-bottom: 12px; background: rgba(255,255,255,0.7);
}
.prize-item .name { font-weight: 700; font-size: 16px; color: #2b2f44; }
.prize-item .meta { font-size: 13px; color: #8a8fa8; margin-top: 4px; }
.tag { display:inline-block; padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.tag.s0 { background:#fff0e6; color:#ff7a1a; }
.tag.s1 { background:#e6f7ec; color:#1d9e75; }
.tag.s2 { background:#f2f2f2; color:#999; }
.tag.s3 { background:#eef4ff; color:#378add; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 6px; border-bottom: 1px solid #eef0f5; text-align: left; }
th { color: #9aa0bc; font-weight: 600; }

.toolbar { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.toolbar button { width:auto; margin:0; padding:8px 14px; font-size:14px; }
.stat-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:10px; margin-bottom:16px; }
.stat-grid .box {
    background: rgba(255,255,255,0.7); border: 1px solid #eef0f5;
    border-radius: 14px; padding: 14px 8px; text-align:center;
}
.stat-grid .num { font-size: 22px; font-weight: 800; background: linear-gradient(90deg,#7c5cff,#ff5fa2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-grid .lbl { font-size: 12px; color: #8a8fa8; margin-top: 4px; }
