/* ==================== 右下角浮动按钮 ==================== */

/* 打赏按钮 */
.float-donate-wrapper {
    position: fixed;
    bottom: 100px;
    right: 18px;
    z-index: 9999;
}

.float-donate-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 3px;
    background: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: Arial, sans-serif;
}
.float-donate-btn:hover {
    background: #c0392b;
}

/* 打赏二维码弹层 */
.float-donate-panel {
    position: absolute;
    right: 52px;
    bottom: 0;
    background: #fff;
    border-radius: 16px;
    padding: 20px 18px 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    white-space: nowrap;
}
.float-donate-wrapper:hover .float-donate-panel,
.float-donate-panel:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

/* 弹层小三角 */
.float-donate-panel::after {
    content: '';
    position: absolute;
    right: -8px;
    bottom: 18px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent #fff;
}

/* 二维码项 */
.donate-qr-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.donate-qr-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.donate-qr-label.wechat {
    color: #07c160;
}
.donate-qr-label.alipay {
    color: #1677ff;
}
.donate-qr-img {
    width: 130px;
    height: 130px;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
    object-fit: cover;
    background: #f8f8f8;
    display: block;
}
.donate-qr-img.alipay-qr {
    border-color: #e8f0fe;
}
.donate-qr-img.wechat-qr {
    border-color: #e8f8ee;
}
.donate-qr-item .donate-qr-hint {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
}

/* 空状态 */
.donate-qr-empty {
    width: 130px;
    height: 130px;
    border-radius: 10px;
    border: 2px dashed #ddd;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 480px) {
    .float-donate-btn {
        width: 40px;
        height: 40px;
    }
    .float-donate-panel {
        right: 46px;
        padding: 14px 12px 10px;
        gap: 10px;
    }
    .donate-qr-img,
    .donate-qr-empty {
        width: 100px;
        height: 100px;
    }
}
