/**
 * 支付宝F2F支付 - 前端样式
 * 支持经典布局和左右布局
 */

/* 支付按钮样式 */
.wads-pay-button {
    display: inline-block;
    background: linear-gradient(135deg, #1677ff, #0958d9);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(22,119,255,0.2);
}

.wads-pay-button:hover {
    background: linear-gradient(135deg, #0958d9, #1677ff);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(22,119,255,0.3);
    transform: translateY(-2px);
}

.wads-pay-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(22,119,255,0.2);
}

.wads-pay-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.wads-pay-button.loading {
    position: relative;
    color: transparent !important;
}

.wads-pay-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: wads-spin 0.8s linear infinite;
}

@keyframes wads-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 弹窗动画 */
@keyframes wads-modal-fadein {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes wads-pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* 二维码容器 */
#wads-qrcode canvas,
#wads-qrcode img {
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

/* 弹窗基础样式 */
#wads-payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

#wads-payment-modal .wads-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 999998;
}

#wads-payment-modal .wads-modal-content {
    display: none;
    position: fixed;
    width: 90%;
    max-width: 520px;
    z-index: 999999;
    animation: wads-modal-fadein 0.3s;
}

/* 响应式 */
@media (max-width: 640px) {
    .wads-pay-button {
        width: 100%;
        padding: 12px 20px;
    }
    
    #wads-payment-modal .wads-modal-content {
        width: 95%;
        max-width: 95%;
    }
    
    .wads-modal-left-right .wads-modal-content > div > div {
        flex-direction: column;
    }
    
    .wads-modal-left-right .wads-modal-content > div > div > div:last-child {
        width: 100% !important;
        margin-top: 20px;
    }
}