/* WeChat Pay Modal Styling */

/* 背景遮罩 */
#yx-wxpay-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

/* 对话框容器 */
#yx-wxpay-modal .yx-dialog {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #334155;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 32px;
    min-width: 320px;
    max-width: 460px;
    width: 90%;
    color: #cbd5e1;
}

/* 标题 */
#yx-wxpay-modal .yx-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    text-align: center;
    color: #f1f5f9;
    letter-spacing: 0.5px;
}

/* 内容区域 */
#yx-wxpay-modal .yx-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    min-height: 280px;
}

/* 二维码容器 */
#yx-wxpay-qr {
    padding: 20px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    min-width: 180px;
}

#yx-wxpay-qr img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 状态文本 */
#yx-wxpay-status {
    text-align: center;
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

#yx-wxpay-status p {
    margin: 0;
}

#yx-wxpay-status small {
    color: #94a3b8;
}

/* 操作按钮区域 */
#yx-wxpay-modal .yx-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* 按钮通用样式 */
#yx-wxpay-modal .btn,
#yx-wxpay-recheck-btn,
#yx-wxpay-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

/* 关闭按钮 */
#yx-wxpay-modal .btn.yx-close {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border-color: #475569;
}

#yx-wxpay-modal .btn.yx-close:hover {
    background: rgba(100, 116, 139, 0.3);
    color: #cbd5e1;
    border-color: #64748b;
}

/* 再次查询按钮 */
#yx-wxpay-recheck-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

#yx-wxpay-recheck-btn:hover {
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

#yx-wxpay-recheck-btn:active {
    transform: translateY(0);
}

/* 关闭按钮 */
#yx-wxpay-close-btn {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border-color: #475569;
}

#yx-wxpay-close-btn:hover {
    background: rgba(100, 116, 139, 0.3);
    color: #cbd5e1;
    border-color: #64748b;
}

/* 响应式设计 */
@media (max-width: 600px) {
    #yx-wxpay-modal .yx-dialog {
        padding: 24px;
        border-radius: 14px;
        min-width: 280px;
    }

    #yx-wxpay-modal .yx-title {
        font-size: 19px;
        margin-bottom: 22px;
    }

    #yx-wxpay-modal .yx-body {
        gap: 16px;
        min-height: 260px;
    }

    #yx-wxpay-qr {
        min-height: 160px;
        min-width: 160px;
        padding: 14px;
    }

    #yx-wxpay-modal .yx-actions {
        flex-direction: column;
        gap: 8px;
    }

    #yx-wxpay-modal .btn,
    #yx-wxpay-recheck-btn,
    #yx-wxpay-close-btn {
        width: 100%;
        padding: 10px 16px;
    }
    
    /* 支付方式按钮响应式 */
    #yx-payment-method-selector {
        padding: 16px 0;
    }
    
    #yx-payment-method-selector .yx-payment-method-btn {
        font-size: 14px;
        padding: 16px 12px !important;
    }
    
    #yx-payment-method-selector .yx-payment-method-btn img {
        width: 28px;
        height: 28px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#yx-wxpay-modal {
    animation: slideUp 0.25s ease-out;
}

#yx-wxpay-modal .yx-dialog {
    animation: slideUp 0.25s ease-out;
}
/* 支付方式选择器 */
#yx-payment-method-selector {
    width: 100%;
    margin-bottom: 8px;
}

#yx-payment-method-selector .yx-payment-method-btn {
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    position: relative;
    width: 100%;
}

#yx-payment-method-selector .yx-payment-method-btn img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* 微信支付按钮 */
#yx-payment-method-selector .yx-payment-method-btn.wxpay {
    border: 2px solid #09b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #10b981;
}

#yx-payment-method-selector .yx-payment-method-btn.wxpay:hover {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

/* 支付宝按钮 */
#yx-payment-method-selector .yx-payment-method-btn.alipay {
    border: 2px solid #1890ff;
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.1) 0%, rgba(24, 144, 255, 0.05) 100%);
    color: #1890ff;
}

#yx-payment-method-selector .yx-payment-method-btn.alipay:hover {
    border-color: #1890ff;
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.2) 0%, rgba(24, 144, 255, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
    transform: translateY(-2px);
}

/* PayPal 按钮 */
#yx-payment-method-selector .yx-payment-method-btn.paypal {
    border: 2px solid #003087;
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.25) 0%, rgba(0, 48, 135, 0.15) 100%);
    color: #ffffff;
}

#yx-payment-method-selector .yx-payment-method-btn.paypal:hover {
    border-color: #003087;
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.35) 0%, rgba(0, 48, 135, 0.2) 100%);
    box-shadow: 0 4px 12px rgba(0, 48, 135, 0.3);
    transform: translateY(-2px);
}

#yx-payment-method-selector .yx-payment-method-btn:active {
    transform: translateY(0);
}