/* =========================================
   1. 主按钮区域 (粉色渐变)
   ========================================= */
.donation-container {
    margin: 40px 0;
    text-align: center;
}

.donation-main-btn {
    /* 粉色渐变背景 */
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    padding: 12px 35px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4); /* 匹配的粉色阴影 */
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.donation-main-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

.donation-main-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* =========================================
   2. 模态框 (遮罩层)
   ========================================= */
.donation-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

/* =========================================
   3. 模态框内容
   ========================================= */
.donation-modal-content {
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    border-radius: 20px; /* 弹窗整体的大圆角 */
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.donation-close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #ccc;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}

.donation-close:hover {
    color: #333;
}

.donation-modal-content h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

/* =========================================
   4. 支付方式选项
   ========================================= */
.donation-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.donation-option {
    padding: 20px 10px;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.donation-option:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: #e0e0e0;
}

.donation-option span {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* =========================================
   5. 图标显示
   ========================================= */
.payment-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.payment-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    pointer-events: none; 
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.donation-option:hover .payment-icon {
    transform: scale(1.1);
}

/* =========================================
   6. 二维码及详情区 (这里修改了圆角)
   ========================================= */
.qrcode-display {
    display: none;
    flex-direction: column;
    align-items: center;
}

.qrcode-display.show {
    display: flex;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.qr-container {
    background: white;
    padding: 10px;
    border-radius: 16px; /* 容器圆角加大 */
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.qrcode-display img {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0;
    pointer-events: none;
    /* ★★★ 核心修改：给二维码图片增加圆角 ★★★ */
    border-radius: 12px; 
}

.qrcode-display p {
    color: #555;
    font-size: 14px;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

/* =========================================
   7. 钱包地址复制框
   ========================================= */
#donationAddressArea {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.address-box {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
    width: 100%;
    position: relative;
}

.address-box input {
    flex: 1;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #555;
    outline: none;
    width: 100%;
    font-family: monospace;
}

.address-box input:focus {
    border-color: #FF6B6B;
    background: #fff;
}

.address-box button {
    background: #333;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
    line-height: normal;
}

.address-box button:hover {
    background: #555;
}

/* =========================================
   8. 返回按钮
   ========================================= */
.back-btn {
    margin-top: 10px;
    background: transparent;
    color: #888;
    border: 1px solid #ddd;
    padding: 8px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.back-btn:hover {
    color: #333;
    border-color: #333;
    background: #f9f9f9;
}

/* =========================================
   9. 移动端适配
   ========================================= */
@media (max-width: 600px) {
    .donation-options {
        grid-template-columns: 1fr;
    }
    
    .donation-modal-content {
        width: 95%;
        padding: 25px 20px;
    }
    
    .address-box {
        flex-direction: column;
    }
    
    .address-box button {
        padding: 10px;
        width: 100%;
    }
}