/**
 * 通用充值弹窗样式
 * 版本：2.0.0
 * 创建日期：2026-05-22
 * 
 * 说明：
 * 1. 使用项目标准的 modal-overlay 结构
 * 2. 适配深色主题
 * 3. 响应式设计（移动端友好）
 */

/* ============================================
   通用充值按钮样式（写剧本 + 视频分析统一使用）
   ============================================ */

.btn-recharge {
    padding        : 6px 14px;
    background     : linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color          : #ffffff;
    border         : none;
    border-radius  : 8px;
    text-decoration: none;
    font-size      : 13px;
    font-weight    : 600;
    transition     : all 0.25s ease;
    display        : inline-flex;
    align-items    : center;
    gap            : 5px;
    white-space    : nowrap;
    cursor         : pointer;
    box-shadow     : 0 2px 8px rgba(245, 158, 11, 0.25);
}

.btn-recharge:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    transform : translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-recharge:active {
    transform : translateY(0);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.btn-recharge i {
    font-size: 14px;
}

/* ============================================
   充值弹窗内容（复用项目的 modal-content）
   ============================================ */

.recharge-modal {
    max-width    : 600px;
    width        : 90%;
    max-height   : 90vh;
    overflow-y   : auto;
    background   : linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border       : 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding      : 32px;
    position     : relative;
    box-shadow   : 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* 覆盖项目的 modal-close 样式，改为相对定位，与标题同行 */
.recharge-modal .modal-close {
    position  : relative;
    top       : auto;
    right     : auto;
    float     : right;
    margin    : -8px -8px 0 0;
    font-size : 20px;
    color     : #64748b;
    transition: color 0.2s ease;
}

.recharge-modal .modal-close:hover {
    color: #ef4444;
}

/* 弹窗标题 */
.recharge-modal .modal-header {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    gap            : 12px;
    margin-bottom  : 20px;
    padding-bottom : 16px;
    border-bottom  : 1px solid rgba(148, 163, 184, 0.2);
}

.recharge-modal .modal-header h3 {
    margin     : 0;
    font-size  : 20px;
    font-weight: 700;
    color      : #f1f5f9;
    display    : flex;
    align-items: center;
    gap        : 10px;
}

/* 弹窗标题 */
.recharge-modal .modal-header {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    gap            : 12px;
    margin-bottom  : 20px;
    padding-bottom : 16px;
    border-bottom  : 1px solid rgba(148, 163, 184, 0.2);
}

.recharge-modal .modal-header h3 {
    margin     : 0;
    font-size  : 20px;
    font-weight: 700;
    color      : #f1f5f9;
    display    : flex;
    align-items: center;
    gap        : 10px;
}

/* ============================================
   充值引导语（与标题同行显示）
   ============================================ */

.recharge-slogan {
    font-size     : 14px;
    color         : #64748b;
    font-style    : italic;
    letter-spacing: 0.3px;
    white-space   : nowrap;
}

/* ============================================
   余额信息
   ============================================ */

.balance-info {
    display      : flex;
    align-items  : center;
    gap          : 8px;
    margin-bottom: 12px;
    background   : rgba(30, 41, 59, 0.6);
    padding      : 16px;
    border-radius: 12px;
    border       : 1px solid rgba(148, 163, 184, 0.2);
}

.balance-label {
    font-size: 14px;
    color    : #94a3b8;
}

.balance-value {
    font-size  : 28px;
    font-weight: 700;
    color      : #f59e0b;
}

.balance-unit {
    font-size: 14px;
    color    : #94a3b8;
}

.balance-deficit {
    display      : flex;
    align-items  : center;
    gap          : 8px;
    padding      : 12px 16px;
    background   : rgba(239, 68, 68, 0.08);
    border       : 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color        : #ef4444;
    font-size    : 14px;
    margin-top   : 12px;
}

.balance-deficit i {
    font-size: 18px;
}

/* ============================================
   充值方案
   ============================================ */

.plans-title {
    font-size    : 16px;
    font-weight  : 600;
    color        : #cbd5e1;
    margin-bottom: 16px;
}

.plans-grid {
    display              : grid;
    grid-template-columns: repeat(3, 1fr);
    gap                  : 16px;
}

/* 方案卡片 */
.plan-card {
    background   : rgba(30, 41, 59, 0.6);
    border       : 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding      : 20px;
    cursor       : pointer;
    transition   : all 0.3s ease;
    position     : relative;
    text-align   : center;
}

.plan-card:hover {
    border-color: #FF6B35;
    transform   : translateY(-4px);
    box-shadow  : 0 8px 20px rgba(255, 107, 53, 0.3);
}

.plan-card.popular {
    border-color: #ef4444;
    background  : linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
}

.plan-card.popular:hover {
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.plan-badge {
    position     : absolute;
    top          : -10px;
    right        : 12px;
    background   : linear-gradient(135deg, #ef4444, #dc2626);
    color        : white;
    padding      : 4px 12px;
    border-radius: 12px;
    font-size    : 12px;
    font-weight  : 700;
}

.plan-name {
    font-size    : 14px;
    color        : #94a3b8;
    margin-bottom: 8px;
    font-weight  : 600;
}

.plan-price {
    font-size    : 36px;
    font-weight  : 700;
    color        : #f59e0b;
    margin-bottom: 12px;
}

.plan-points {
    font-size    : 14px;
    color        : #cbd5e1;
    margin-bottom: 16px;
}

.plan-points strong {
    color    : #FF6B35;
    font-size: 20px;
}

.plan-bonus {
    color    : #10b981;
    font-size: 13px;
}

.plan-btn {
    width          : 100%;
    padding        : 10px;
    background     : linear-gradient(135deg, #FF6B35, #ff8a5c);
    border         : none;
    border-radius  : 8px;
    color          : white;
    font-size      : 14px;
    font-weight    : 600;
    cursor         : pointer;
    transition     : all 0.3s ease;
    display        : flex;
    align-items    : center;
    justify-content: center;
    gap            : 6px;
}

.plan-btn:hover {
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    transform : translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

/* ============================================
   禁用按钮样式（开发中）
   ============================================ */

.plan-btn-disabled {
    background: linear-gradient(135deg, #475569, #334155) !important;
    cursor    : not-allowed !important;
    opacity   : 0.7;
    transform : none !important;
    box-shadow: none !important;
}

.plan-btn-disabled:hover {
    background: linear-gradient(135deg, #475569, #334155) !important;
    transform : none !important;
    box-shadow: none !important;
}

/* ============================================
   开发中提示
   ============================================ */

.recharge-notice {
    margin-top     : 24px;
    padding        : 12px 16px;
    background     : rgba(59, 130, 246, 0.08);
    border         : 1px solid rgba(59, 130, 246, 0.2);
    border-radius  : 8px;
    color          : #60a5fa;
    font-size      : 14px;
    display        : flex;
    align-items    : center;
    gap            : 8px;
    text-align     : center;
    justify-content: center;
}

.recharge-notice i {
    font-size: 16px;
}

/* ============================================
   响应式设计
   ============================================ */

/* 平板端 */
@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 移动端 */
@media (max-width: 480px) {
    .recharge-modal {
        padding: 24px 16px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-price {
        font-size: 28px;
    }
}