/* 红包按钮容器 */
.zibtf-drp-btn-wrap {
    position: fixed;
    z-index: 99999;
    transition: all 0.3s ease;
}
.zibtf-drp-btn-wrap.left_bottom { left: 20px; bottom: 20px; }
.zibtf-drp-btn-wrap.right_bottom { right: 20px; bottom: 20px; }
.zibtf-drp-btn-wrap.left_top { left: 20px; top: 20px; }
.zibtf-drp-btn-wrap.right_top { right: 20px; top: 20px; }

/* 红包按钮 */
.zibtf-drp-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ff4d4f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
    animation: zibtf-drp-bounce 2s infinite;
}
.zibtf-drp-btn img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}
@keyframes zibtf-drp-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 红包雨动画 */
.zibtf-drp-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99998;
}
.zibtf-drp-rain-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjYwIiBoZWlnaHQ9IjYwIiBmaWxsPSIjRkY0RDRGIi8+CjxwYXRoIGQ9Ik0zMCAxNUMyEuNzE1NyAxNSAxNSAyMS43MTU3IDE1IDMwQzE1IDM4LjI4NDMgMjEuNzE1NyA0NSAzMCA0NUMzOC4yODQzIDQ1IDQ1IDM4LjI4NDMgNDUgMzBDNDUgMjEuNzE1NyAzOC4yODQzIDE1IDMwIDE1WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTMwIDI1QzMyLjIwOTEgMjUgMzQgMjYuNzkwOSAzNCAyOUMzNCAzMC4yMDkxIDMyLjIwOTEgMzIgMzAgMzJDMjcuNzkwOSAzMiAyNiAzMC4yMDkxIDI2IDI5QzI2IDI2Ljc5MDkgMjcuNzkwOSAyNSAzMCAyNVoiIGZpbGw9IiNGRjRERkYiLz4KPC9zdmc+') no-repeat center;
    background-size: contain;
    animation: zibtf-drp-fall 3s linear forwards;
}
@keyframes zibtf-drp-fall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* 弹窗样式 */
.zibtf-drp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}
.zibtf-drp-modal-content {
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    animation: zibtf-drp-modal-in 0.3s ease;
}
@keyframes zibtf-drp-modal-in {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.zibtf-drp-modal-header {
    background: linear-gradient(135deg, #409eff 0%, #79c7ff 100%);
    padding: 20px;
    text-align: center;
    position: relative;
}
.zibtf-drp-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}
.zibtf-drp-modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
}
.zibtf-drp-modal-title {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}
.zibtf-drp-modal-body {
    padding: 30px 20px;
    text-align: center;
}
.zibtf-drp-modal-amount {
    font-size: 48px;
    font-weight: bold;
    color: #409eff;
    margin-bottom: 10px;
}
.zibtf-drp-modal-tip {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}
.zibtf-drp-modal-footer {
    display: flex;
    border-top: 1px solid #eee;
}
.zibtf-drp-modal-btn {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background: #fff;
}
.zibtf-drp-modal-btn.confirm {
    color: #ff4d4f;
    font-weight: bold;
}
.zibtf-drp-modal-btn.cancel {
    color: #999;
    border-right: 1px solid #eee;
}