/* 充值中心页面样式 */
.page-header {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.page-header h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
}

.page-header p {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
}

.balance-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 10px;
}

.balance-info strong {
    font-size: 24px;
    margin-left: 5px;
}

/* 充值选项样式 */
.recharge-options {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.recharge-options h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.amount-option {
    cursor: pointer;
}

.amount-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.amount-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.amount-card.selected {
    border-color: #667eea;
    background: #e3f2fd;
}

.amount-card h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

.amount-card p {
    color: #666;
    margin-bottom: 10px;
    font-size: 16px;
}

.bonus {
    background: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    position: absolute;
    top: -10px;
    right: -10px;
}

/* 支付方式样式 */
.payment-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.payment-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.payment-methods {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

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

.payment-method.active {
    border-color: #667eea;
    background: #e3f2fd;
}

.payment-method i {
    font-size: 24px;
    margin-right: 10px;
}

.payment-method[data-method="alipay"] i {
    color: #1677ff;
}

.payment-method[data-method="wechat"] i {
    color: #07c160;
}

.payment-method span {
    font-size: 16px;
    font-weight: 500;
}

/* 二维码区域 */
.qr-code-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.qr-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.qr-code {
    text-align: center;
    flex: 1;
}

.qr-code img {
    width: 200px;
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 15px;
}

.qr-code p {
    color: #666;
    font-size: 14px;
}

.payment-info {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.payment-info h3 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item span {
    color: #666;
}

.info-item strong {
    color: #333;
    font-size: 16px;
}

.confirm-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.confirm-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 充值记录样式 */
.recharge-history {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.recharge-history h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

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

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

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

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

.amount {
    font-weight: bold;
    color: #4caf50;
    font-size: 16px;
}

.date {
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

.status {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status.completed {
    background: #e8f5e8;
    color: #4caf50;
}

.status.pending {
    background: #fff3e0;
    color: #ff9800;
}

.status.failed {
    background: #ffebee;
    color: #f44336;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .amount-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .qr-container {
        flex-direction: column;
        text-align: center;
    }
    
    .qr-code {
        margin-bottom: 20px;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .status {
        align-self: flex-end;
    }
}