/* ===== 充值弹窗 & 用户区域样式 ===== */

/* ===== Banner VIP 会员区域 ===== */
.banner {
    position: relative;
}

.vip-area {
    max-width: 480px;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 12px 20px;
}

.vip-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.vip-badge {
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
}

.vip-expire {
    font-size: 12px;
    color: #92400e;
}

.vip-expire.vip-active {
    color: #059669;
    font-weight: 600;
}

.btn-vip-buy {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(245,158,11,0.35);
    white-space: nowrap;
}

.btn-vip-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245,158,11,0.5);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.btn-vip-buy:active {
    transform: translateY(0);
}

/* ===== 导航栏用户区域 ===== */
.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-balance {
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #fef3c7;
    font-weight: 500;
}

.nav-recharge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.nav-recharge:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
}

.user-name {
    font-size: 13px;
    color: #fff;
    background: rgba(255,255,255,0.12);
    padding: 4px 10px;
    border-radius: 4px;
}

.nav-logout {
    background: rgba(239,68,68,0.8) !important;
}

.nav-logout:hover {
    background: rgba(239,68,68,1) !important;
}

/* ===== Modal 遮罩 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeInModal 0.2s;
}

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

.modal {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: slideUp 0.25s;
    display: flex;
    flex-direction: column;
}

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

/* Modal 头部 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #f3f4f6;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: #fff;
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
}

/* Modal 主体 */
.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

/* Modal 底部 */
.modal-footer {
    padding: 12px 24px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.disclaimer-tip {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* ===== 余额显示 ===== */
.balance-display {
    background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
    border: 1px solid #d1fae5;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
    font-size: 14px;
}

.balance-num {
    font-size: 22px;
    font-weight: 700;
    color: #059669;
}

/* ===== 区块标题 ===== */
.section-title {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 12px;
}

/* ===== 金额按钮网格 ===== */
.amount-section {
    margin-bottom: 20px;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.amount-btn {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.amount-btn:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.amount-btn.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.amount-btn.amount-custom {
    border-style: dashed;
}

.amount-val {
    font-size: 20px;
    font-weight: 700;
    color: #1e40af;
}

.amount-tag {
    font-size: 11px;
    color: #9ca3af;
}

/* ===== 自定义金额 ===== */
.custom-amount {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.custom-amount .number-input {
    flex: 1;
}

.btn-confirm-amount {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-confirm-amount:hover {
    background: #2563eb;
}

/* ===== 支付方式 ===== */
.pay-section {
    margin-bottom: 20px;
}

.pay-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.pay-method {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #374151;
}

.pay-method input {
    display: none;
}

.pay-method:hover {
    border-color: #d1d5db;
}

.pay-method.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

.pay-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.pay-icon.green {
    background: #d1fae5;
}

.pay-icon.blue {
    background: #dbeafe;
}

/* ===== 二维码区域 ===== */
.qr-section {
    border-top: 1px solid #f3f4f6;
    padding-top: 20px;
}

.qr-wrap {
    text-align: center;
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
}

.qr-code {
    display: inline-block;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-bottom: 12px;
}

.qr-code img,
.qr-code canvas {
    display: block;
}

.qr-placeholder {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 8px;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

.qr-amount {
    font-size: 18px;
    color: #374151;
    margin-bottom: 8px;
}

.qr-amount-num {
    color: #dc2626;
    font-weight: 700;
    font-size: 22px;
}

.qr-tip {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.qr-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.qr-actions .btn-primary,
.qr-actions .btn-secondary {
    flex: 1;
    padding: 12px;
    font-size: 14px;
}

/* ===== 响应式 ===== */
@media (max-width: 600px) {
    .modal {
        max-width: 100%;
        border-radius: 0;
        max-height: 100%;
    }

    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .user-area {
        flex-wrap: wrap;
        gap: 6px;
    }

    .user-balance {
        font-size: 11px;
        padding: 4px 8px;
    }

    .nav-recharge,
    .nav-logout {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
}
