/* 充值中心页面样式 */
.recharge-page {
    padding-top: 100px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-header h1 {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
    font-weight: bold;
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
    opacity: 0.8;
}

.recharge-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 左侧充值信息 */
.recharge-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.balance-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.1);
    text-align: center;
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.balance-header h3 {
    color: #28a745;
    margin: 0;
    font-size: 1.2rem;
}

.balance-header i {
    font-size: 2rem;
    color: #ffd700;
}

.balance-amount {
    margin-bottom: 1rem;
}

.amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #28a745;
}

.currency {
    font-size: 1.2rem;
    color: #666;
    margin-left: 0.5rem;
}

.balance-details p {
    color: #666;
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

.recharge-benefits {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.1);
}

.recharge-benefits h3 {
    color: #28a745;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.recharge-benefits ul {
    list-style: none;
    padding: 0;
}

.recharge-benefits li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #666;
    font-size: 0.95rem;
}

.recharge-benefits i {
    color: #28a745;
    width: 20px;
}

.recharge-tips {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.1);
}

.recharge-tips h3 {
    color: #28a745;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tips-content p {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 右侧充值操作 */
.recharge-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recharge-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.1);
}

.card-header h3 {
    color: #28a745;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

/* 充值金额选项 */
.amounts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.amount-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-option:hover {
    border-color: #28a745;
    transform: translateY(-2px);
}

.amount-option.selected {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: #28a745;
    color: white;
}

.amount-value {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.amount-bonus {
    font-size: 0.8rem;
    opacity: 0.8;
}

.amount-option.selected .amount-bonus {
    opacity: 1;
}

/* 支付方式 */
.payment-methods {
    margin-bottom: 2rem;
}

.payment-methods h4 {
    color: #28a745;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.method-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.method-option:hover {
    border-color: #28a745;
}

.method-option.active {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: #28a745;
    color: white;
}

.method-option i {
    font-size: 2rem;
}

.method-option.active i {
    color: white;
}

/* 二维码支付区域 */
.qrcode-section h4 {
    color: #28a745;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

.qrcode-container {
    background: #f8f9fa;
    border: 2px dashed #28a745;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-placeholder i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
    display: block;
}

.qrcode-placeholder p {
    color: #666;
    font-size: 1.1rem;
}

.qrcode-content {
    text-align: center;
}

.qrcode-amount {
    font-size: 1.3rem;
    font-weight: bold;
    color: #28a745;
    margin: 1rem 0 0.5rem;
}

.qrcode-bonus {
    color: #666;
    font-size: 0.9rem;
}

.payment-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.payment-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 30px;
    height: 30px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #666;
}

.step-text {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

/* 充值记录 */
.recharge-history {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.1);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.history-header h3 {
    color: #28a745;
    margin: 0;
    font-size: 1.2rem;
}

.view-all-btn {
    background: none;
    border: 1px solid #28a745;
    color: #28a745;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #28a745;
    color: white;
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e9ecef;
}

.history-item:last-child {
    border-bottom: none;
}

.history-info {
    display: flex;
    flex-direction: column;
}

.history-info .amount {
    font-weight: bold;
    color: #28a745;
    font-size: 1.1rem;
}

.history-info .date {
    color: #666;
    font-size: 0.8rem;
}

.status {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status.completed {
    background: #d4edda;
    color: #155724;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .recharge-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .amounts-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .payment-steps::before {
        display: none;
    }
    
    .step {
        flex-direction: row;
        gap: 1rem;
    }
}