/**
 * 充值弹窗样式
 * 版本：1.0.0
 * 黑色主题，与settings-modal.css风格一致
 */

/* 遮罩层 */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.35s ease;
}

/* 弹窗主体 */
.payment-modal {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 30px;
    max-width: 750px;
    width: 75%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

/* 关闭按钮 */
.payment-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.payment-modal .modal-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

/* 标题 */
.payment-modal h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-align: center;
}

/* 积分信息 */
.credits-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.credits-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin: 10px 0;
}

.credits-current {
    color: #4CAF50;
    font-weight: 600;
    font-size: 20px;
}

.credits-needed {
    color: #FF9800;
    font-weight: 600;
    font-size: 20px;
}

.credits-shortage {
    color: #F44336 !important;
    font-weight: 600;
    margin-top: 15px !important;
}

/* 套餐容器 */
.payment-plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

/* 套餐卡片 */
.plan-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* 推荐标签 */
.plan-card.recommended {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.plan-card .badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* 套餐名称 */
.plan-card h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

/* 价格 */
.plan-card .price {
    color: #667eea;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* 积分 */
.plan-card .credits {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* 赠送 */
.plan-card .bonus {
    color: #4CAF50;
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
}

/* 描述 */
.plan-card .description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 10px 0 15px 0;
}

/* 立即充值按钮 */
.plan-card .select-btn {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-card:hover .select-btn {
    background: #764ba2;
}

/* 提示文字 */
.payment-tip {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0;
}

/* 滚动条 */
.payment-modal::-webkit-scrollbar {
    width: 8px;
}

.payment-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.payment-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.payment-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 响应式 */
@media (max-width: 768px) {
    .payment-modal {
        padding: 30px 20px;
        width: 95%;
    }
    
    .payment-plans {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .plan-card {
        padding: 20px 15px;
    }
    
    .plan-card .price {
        font-size: 24px;
    }
}