/* DUX Pay - Front-end Styles */

/* 付费下载按钮区域 */
.dux-pay-download-box {
    border: 2px solid #f0ad4e;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
    background: #fffdf5;
}

/* 付费内容墙 */
.dux-pay-wall {
    position: relative;
    margin: 20px 0;
    padding: 40px 20px 20px;
    border: 2px solid #d9534f;
    border-radius: 8px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fffdf5 100%);
}

.dux-pay-blur-content {
    overflow: hidden;
    max-height: 100px;
    opacity: 0.3;
    position: relative;
    filter: blur(4px);
    -webkit-filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

/* 购买按钮 */
.dux-pay-buy-btn,
.dux-pay-download-btn,
.dux-pay-buy-vip-btn {
    display: inline-block;
    padding: 12px 40px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.dux-pay-buy-btn:hover,
.dux-pay-download-btn:hover,
.dux-pay-buy-vip-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 支付弹窗 */
.dux-pay-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    animation: duxPayFadeIn 0.3s;
}

@keyframes duxPayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dux-pay-modal-content {
    position: relative;
    background: #fff;
    margin: 10% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: duxPaySlideIn 0.3s;
}

@keyframes duxPaySlideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.dux-pay-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dux-pay-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.dux-pay-modal-close {
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    line-height: 1;
}

.dux-pay-modal-close:hover {
    color: #333;
}

.dux-pay-modal-body {
    padding: 25px;
    text-align: center;
}

.dux-pay-qrcode {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.dux-pay-qrcode img,
.dux-pay-qrcode canvas {
    max-width: 200px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
}

.dux-pay-amount-display {
    font-size: 32px;
    font-weight: 700;
    color: #d9534f;
    margin: 10px 0;
}

.dux-pay-product-name {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.dux-pay-tips {
    color: #999;
    font-size: 12px;
    margin-top: 15px;
}

.dux-pay-tips .alipay-icon {
    color: #00a0e9;
    font-weight: 600;
}

.dux-pay-success {
    text-align: center;
    padding: 20px;
}

.dux-pay-success .success-icon {
    font-size: 48px;
    color: #5cb85c;
    margin-bottom: 10px;
}

.dux-pay-success h3 {
    color: #5cb85c;
    margin: 10px 0;
}

/* VIP会员页面 */
.dux-pay-vip-plans-shortcode {
    margin: 30px 0;
}

.dux-pay-vip-plans-shortcode .vip-plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* 购买历史表格 */
.dux-pay-purchase-history table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.dux-pay-purchase-history th {
    background: #f5f5f5;
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.dux-pay-purchase-history td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* 移动端响应式 */
@media (max-width: 480px) {
    .dux-pay-modal-content {
        margin: 5% auto;
        width: 95%;
    }

    .dux-pay-qrcode img,
    .dux-pay-qrcode canvas {
        max-width: 160px;
    }
}
