/* ===== KB Lottery 抽奖（华丽动态版）===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&display=swap');

.kbl-fab {
    position: fixed; right: 20px; bottom: 20px; z-index: 9999;
    width: 68px; height: 68px; border: none; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff7a7f, #e11d2e 60%, #b3121f);
    color: #fff; cursor: pointer; font-size: 24px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 8px 26px rgba(225,29,46,.5);
    animation: kbl-pulse 2.2s ease-in-out infinite;
}
.kbl-fab span { font-size: 11px; font-weight: 800; letter-spacing: .04em; margin-top: 1px; }
.kbl-fab:hover { transform: scale(1.1); }
@keyframes kbl-pulse {
    0%,100% { box-shadow: 0 8px 26px rgba(225,29,46,.5), 0 0 0 0 rgba(225,29,46,.45); }
    50% { box-shadow: 0 8px 26px rgba(225,29,46,.5), 0 0 0 16px rgba(225,29,46,0); }
}

.kbl-modal, .kbl-result {
    position: fixed; inset: 0; z-index: 10001;
    background: rgba(10,14,18,.7); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.kbl-box {
    position: relative; width: 100%; max-width: 480px;
    background: linear-gradient(180deg, #fffdf8, #fff8ef);
    border-radius: 24px; padding: 28px 22px 22px; text-align: center;
    box-shadow: 0 0 0 1px #f0e2c8, 0 30px 80px rgba(0,0,0,.45);
    animation: kbl-pop .45s cubic-bezier(.2,1.4,.4,1);
}
@keyframes kbl-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.kbl-close {
    position: absolute; top: 12px; right: 16px; background: #f3ece0; border: none;
    width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1;
    color: #8a7a5a; cursor: pointer; transition: all .2s;
}
.kbl-close:hover { background: #e11d2e; color: #fff; }
.kbl-title {
    margin: 0; font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px; font-weight: 700; color: #1a1512;
    background: linear-gradient(90deg, #b8860b, #f5c542, #b8860b);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.kbl-sub { margin: 4px 0 16px; font-size: 13px; color: #b08a3e; letter-spacing: .06em; }

.kbl-wheel-wrap { position: relative; width: 320px; height: 320px; margin: 0 auto 16px; }
.kbl-pointer {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 5;
    width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent;
    border-top: 26px solid #e11d2e; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35));
    animation: kbl-bounce 1.6s ease-in-out infinite;
}
@keyframes kbl-bounce { 0%,100% { top: -12px; } 50% { top: -6px; } }
.kbl-wheel {
    position: relative; width: 100%; height: 100%; border-radius: 50%;
    box-shadow: 0 0 0 8px #f5c542, 0 0 0 10px #fff, 0 0 0 12px #b8860b, 0 14px 40px rgba(184,134,11,.4);
    transition: transform 4.2s cubic-bezier(.12,.9,.16,1);
}
.kbl-wheel .kbl-label {
    position: absolute; transform: translate(-50%, -50%); z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    width: 64px; pointer-events: none;
}
.kbl-wheel .kbl-ico { font-size: 20px; line-height: 1; }
.kbl-wheel .kbl-name { font-size: 10px; font-weight: 800; color: #1a1512; line-height: 1.1; text-align: center; }
.kbl-hub {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 4;
    width: 74px; height: 74px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffe9a8, #f5c542 55%, #b8860b);
.kbl-actions { margin: 6px 0 14px; }
.kbl-count { margin: 0 0 12px; font-size: 14px; color: #4a4238; }
.kbl-count b { color: #e11d2e; font-size: 20px; }
.kbl-btns { display: flex; gap: 12px; justify-content: center; }
.kbl-spin-btn, .kbl-share-btn, .kbl-result-close {
    border: none; border-radius: 999px; cursor: pointer; font-weight: 800;
    padding: 13px 26px; font-size: 15px; transition: all .2s ease; letter-spacing: .02em;
}
.kbl-spin-btn {
    background: linear-gradient(135deg, #ff6a3d, #e11d2e 55%, #b3121f); color: #fff;
    box-shadow: 0 8px 20px rgba(225,29,46,.4); position: relative; overflow: hidden;
}
.kbl-spin-btn::after {
    content: ''; position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent);
    animation: kbl-shine 2.6s infinite;
}
@keyframes kbl-shine { 0% { left: -80%; } 60%,100% { left: 130%; } }
.kbl-spin-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(225,29,46,.5); }
.kbl-spin-btn:disabled { opacity: .55; cursor: not-allowed; animation: none; }
.kbl-share-btn { background: #fff; color: #b8860b; border: 1.5px solid #f0d48a; }
.kbl-share-btn:hover { background: #fff8e8; }
.kbl-rules { font-size: 12px; color: #8a7a5a; line-height: 1.7; background: #fbf5ea; border-radius: 12px; padding: 12px 14px; text-align: left; border: 1px dashed #eadfbe; }

.kbl-result-box {
    width: 100%; max-width: 360px; background: #ffffff;
    border-radius: 24px; padding: 34px 24px; text-align: center;
    box-shadow: 0 0 0 1px #e5e5e5, 0 30px 80px rgba(0,0,0,.3);
    animation: kbl-pop .4s cubic-bezier(.2,1.4,.4,1);
}
.kbl-result-emoji { font-size: 54px; animation: kbl-emoji 1s ease; }
@keyframes kbl-emoji { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
.kbl-result-box h4 { margin: 12px 0 6px; font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 800; color: #111111 !important; line-height: 1.3; }
.kbl-result-box .kbl-win-sub { margin: 0 0 14px; font-size: 18px; color: #111111 !important; font-weight: 700; }
.kbl-result-box .kbl-lose-sub { margin: 0 0 18px; font-size: 14px; color: #555; }
.kbl-cs-link {
    display: inline-block; margin: 0 0 14px; padding: 12px 28px;
    background: #f5f5f5; color: #111111; border: 1px solid #dddddd;
    border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none;
}
.kbl-cs-link:hover { background: #eeeeee; }
.kbl-result-close { background: linear-gradient(135deg, #f5c542, #b8860b); color: #5b3d00; padding: 12px 34px; }
.kbl-result-close:hover { transform: translateY(-2px); }

/* 中奖彩带 */
.kbl-confetti { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10002; overflow: hidden; }
.kbl-confetti i {
    position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px;
    animation: kbl-fall linear forwards;
}
@keyframes kbl-fall { to { transform: translateY(110vh) rotate(720deg); opacity: .6; } }

@media (max-width: 480px) {
    .kbl-wheel-wrap { width: 260px; height: 260px; }
    .kbl-hub { width: 60px; height: 60px; font-size: 13px; }
    .kbl-fab { width: 58px; height: 58px; font-size: 21px; }
    .kbl-title { font-size: 22px; }

/* 结果弹窗：运费提示 + 去填写地址按钮 */
.kbl-ship-line { margin: 0 0 10px; font-size: 13px; color: #b8860b; }
.kbl-claim-link {
    display: inline-block; margin: 0 0 14px; padding: 13px 30px;
    background: linear-gradient(135deg, #f5c542, #b8860b); color: #5b3d00;
    border-radius: 999px; font-weight: 800; font-size: 15px; text-decoration: none;
    box-shadow: 0 6px 16px rgba(184,134,11,.35);
}
.kbl-claim-link:hover { transform: translateY(-2px); }

/* 独立收货地址页 */
.kb-claim-page {
    max-width: 480px; margin: 40px auto; padding: 30px 24px;
    background: #fffdf8; border-radius: 20px; text-align: center;
    box-shadow: 0 0 0 1px #f0e2c8, 0 20px 60px rgba(0,0,0,.1);
}
.kb-claim-congrats { font-size: 54px; }
.kb-claim-head h2 { margin: 10px 0 6px; font-family: 'Playfair Display', serif; font-size: 24px; color: #1a1512; }
.kb-claim-prize { margin: 0; font-size: 18px; font-weight: 700; color: #111111; }
.kb-claim-value { margin: 4px 0; font-size: 14px; color: #111111; }
.kb-claim-ship { margin: 4px 0 18px; font-size: 13px; color: #e11d2e; }
.kb-claim-fill { margin: 0 0 10px; font-size: 13px; color: #8a7a5a; }
.kb-claim-form input, .kb-claim-form textarea {
    width: 100%; box-sizing: border-box; margin-bottom: 10px; padding: 12px 14px;
    border: 1px solid #eadfbe; border-radius: 10px; font-size: 15px; background: #fff; outline: none;
}
.kb-claim-form input:focus, .kb-claim-form textarea:focus { border-color: #f5c542; box-shadow: 0 0 0 3px rgba(245,197,66,.2); }
.kb-claim-form textarea { resize: vertical; }
#kbc-save, #kbp-pay-btn {
    width: 100%; border: none; border-radius: 999px; cursor: pointer;
    background: linear-gradient(135deg, #ff6a3d, #e11d2e); color: #fff;
    font-weight: 800; padding: 14px; font-size: 16px;
}
#kbc-save:disabled, #kbp-pay-btn:disabled { opacity: .6; cursor: not-allowed; }
.kb-claim-msg { margin: 12px 0 0; font-size: 14px; color: #2e7d32; font-weight: 700; }

/* 支付运费界面 */
.kb-pay-page {
    max-width: 480px; margin: 40px auto; padding: 30px 24px;
    background: #fffdf8; border-radius: 20px; text-align: center;
    box-shadow: 0 0 0 1px #f0e2c8, 0 20px 60px rgba(0,0,0,.1);
}
.kb-pay-emoji { font-size: 54px; }
.kb-pay-head h2 { margin: 10px 0 14px; font-family: 'Playfair Display', serif; font-size: 24px; color: #1a1512; }
.kb-pay-prize { margin: 0; font-size: 18px; font-weight: 700; color: #111111; }
.kb-pay-ship { margin: 8px 0 20px; font-size: 15px; color: #e11d2e; }
.kb-pay-note { margin: 14px 0 0; font-size: 13px; color: #999; }

}

    border: 4px solid #fff; box-shadow: 0 3px 12px rgba(184,134,11,.5);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #6b4a00; font-size: 15px; letter-spacing: .04em;
}
