/* ============================================================
   支付弹窗组件样式
   全平台兼容：PC、手机、微信浏览器
   ============================================================ */

/* 支付墙（内容锁定提示） */
.pay-wall {
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 20%, #fff 100%);
    padding: 60px 20px 40px;
    margin-top: -80px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.pay-wall-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.pay-wall-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.pay-wall-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.pay-wall-price {
    font-size: 32px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.pay-wall-price small {
    font-size: 16px;
    color: #999;
}

.btn-buy-now {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    padding: 14px 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    cursor: pointer;
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: #fff;
}

/* 支付模态框 */
.payment-modal .modal-dialog {
    max-width: 600px;
}

.payment-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-bottom: none;
}

.payment-modal .modal-title {
    font-weight: 600;
}

.payment-modal .btn-close {
    filter: brightness(0) invert(1);
}

/* 订单信息卡片 */
.order-info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #dee2e6;
}

.order-info-row:last-child {
    border-bottom: none;
}

.order-info-label {
    color: #666;
    font-size: 14px;
}

.order-info-value {
    font-weight: 600;
    color: #333;
}

.order-amount {
    font-size: 24px;
    color: #ff6b6b;
}

/* 支付方式选择 */
.payment-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.payment-method-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.payment-method-card.selected {
    border-color: #ff4d6d;
    background: #fff5f7;
    box-shadow: 0 0 0 2px rgba(255, 77, 109, 0.08);
}

.payment-method-card:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

@media (max-width: 576px) {
    .payment-channel-grid {
        grid-template-columns: 1fr;
    }
}

.payment-method-card.recommended {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.payment-method-card.recommended::after {
    content: "推荐";
    position: absolute;
    top: -1px;
    right: -1px;
    background: #667eea;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 0 6px 0 6px;
}

.payment-method-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.payment-method-icon {
    font-size: 24px;
}

.payment-method-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.payment-method-desc {
    font-size: 13px;
    color: #666;
    margin-left: 36px;
}

.payment-method-btn {
    width: 100%;
    margin-top: 8px;
}

.payment-status-box {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border: 1px solid #dbe4ff;
    background: #f8f9ff;
    color: #334155;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 13px;
}

.payment-status-box a {
    white-space: nowrap;
    font-weight: 600;
}

.payment-status-success {
    border-color: #badbcc;
    background: #d1e7dd;
    color: #0f5132;
}

.payment-status-warning {
    border-color: #ffecb5;
    background: #fff3cd;
    color: #664d03;
}

.payment-status-danger {
    border-color: #f5c2c7;
    background: #f8d7da;
    color: #842029;
}

.payment-group-title {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin: 16px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e9ecef;
}

/* 收款码展示区 */
.qrcode-panel {
    display: none;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 16px;
}

.qrcode-panel.show {
    display: block;
}

.qrcode-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 20px;
}

.qrcode-item {
    text-align: center;
    flex: 1;
}

.qrcode-item img {
    max-width: 180px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
}

.qrcode-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-top: 8px;
}

.payment-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px;
    margin-top: 16px;
}

.payment-notice-title {
    font-weight: 600;
    color: #856404;
    margin-bottom: 8px;
}

.payment-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #856404;
}

.payment-notice-list li {
    padding: 4px 0;
}

.order-no-highlight {
    background: #fff;
    border: 2px dashed #ffc107;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    color: #ff6b6b;
    text-align: center;
    margin: 12px 0;
    letter-spacing: 2px;
}

.btn-waiting {
    background: #6c757d;
    border: none;
    color: #fff;
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border-radius: 6px;
    margin-top: 12px;
}

.btn-waiting:hover {
    background: #5a6268;
    color: #fff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .payment-modal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .qrcode-container {
        flex-direction: column;
        gap: 16px;
    }

    .qrcode-item img {
        max-width: 200px;
    }

    .payment-status-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .pay-wall {
        padding: 40px 16px 30px;
        margin-top: -60px;
    }

    .pay-wall-price {
        font-size: 28px;
    }

    .btn-buy-now {
        padding: 12px 36px;
        font-size: 15px;
    }
}
