/* ============================================================
   自助福利 - 前台样式（游戏暗金风格）
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:      #0f0e17;
    --bg2:     #1a1a2e;
    --card:    #16213e;
    --border:  #0f3460;
    --gold:    #f0a500;
    --gold2:   #ffd700;
    --red:     #e94560;
    --green:   #27ae60;
    --text:    #e0e0e0;
    --muted:   #8892a4;
    --radius:  14px;
}

html, body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ── 粒子背景 ── */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.particle {
    position: absolute;
    bottom: -30px;
    animation: floatUp linear infinite;
    user-select: none;
}
@keyframes floatUp {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* ── 布局 ── */
.page-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 16px 60px;
}

/* ── 顶部标题区 ── */
.hero {
    text-align: center;
    margin-bottom: 30px;
}
.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e94560, #c0392b);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 14px;
    box-shadow: 0 0 12px rgba(233,69,96,.5);
}
.hero-title {
    font-size: clamp(26px, 6vw, 46px);
    font-weight: 900;
    background: linear-gradient(135deg, #f0a500, #ffd700, #f0a500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    text-shadow: none;
    margin-bottom: 10px;
    line-height: 1.2;
}
.hero-sub {
    color: var(--muted);
    font-size: 15px;
    letter-spacing: 1px;
}

/* ── 奖励展示 ── */
.reward-box {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
}
.reward-box::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(240,165,0,.18) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    pointer-events: none;
}
.reward-icon {
    font-size: 56px;
    display: block;
    animation: pulse 2s ease-in-out infinite;
    margin-bottom: 6px;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.1); }
}
.reward-num {
    font-size: clamp(48px, 12vw, 88px);
    font-weight: 900;
    background: linear-gradient(135deg, #f0a500, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 20px rgba(240,165,0,.4));
}
.reward-label {
    font-size: 22px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 6px;
    margin-top: 4px;
    opacity: .9;
}

/* ── 领取卡片 ── */
.claim-card {
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(240,165,0,.3);
    border-radius: var(--radius);
    padding: 36px 40px;
    width: 100%;
    max-width: 480px;
    box-shadow:
        0 0 40px rgba(233,69,96,.1),
        0 20px 60px rgba(0,0,0,.5),
        inset 0 1px 0 rgba(255,255,255,.06);
    position: relative;
    overflow: hidden;
}
.claim-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

/* ── 表单 ── */
.field-wrap {
    margin-bottom: 18px;
}
.field-wrap label {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
    letter-spacing: .5px;
}
.field-input {
    width: 100%;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    color: #fff;
    padding: 12px 16px;
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}
.field-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(240,165,0,.15);
}
.field-input::placeholder { color: rgba(255,255,255,.25); }

.captcha-row {
    display: flex;
    flex-direction: column;
}
.captcha-row .field-input.captcha-input {
    max-width: 140px;
}
.captcha-q {
    color: var(--gold2);
    font-size: 17px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 2px;
}

/* ── 领取按钮 ── */
.btn-claim {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #f0a500, #e67e22);
    border: none;
    border-radius: 8px;
    color: #0f0e17;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 3px;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity .2s, transform .1s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(240,165,0,.35);
}
.btn-claim:hover:not(:disabled) {
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(240,165,0,.5);
}
.btn-claim:active:not(:disabled) { transform: translateY(0); }
.btn-claim:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.btn-icon { margin-right: 6px; }

/* ── 结果面板 ── */
.result-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.result-panel.ok {
    background: rgba(39,174,96,.15);
    border: 1px solid rgba(39,174,96,.4);
    color: #2ecc71;
}
.result-panel.err {
    background: rgba(231,76,60,.12);
    border: 1px solid rgba(231,76,60,.4);
    color: #e74c3c;
}
.res-icon { font-size: 22px; flex-shrink: 0; }
.res-text  { flex: 1; }

/* ── Tips ── */
.tips {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin-top: 16px;
    line-height: 2;
}

/* ── Footer ── */
.site-footer {
    margin-top: 40px;
    color: rgba(255,255,255,.2);
    font-size: 12px;
    text-align: center;
    letter-spacing: 1px;
}

/* ── 响应式 ── */
@media (max-width: 520px) {
    .claim-card { padding: 28px 20px; }
    .reward-num { font-size: 56px; }
}
