/* 充值中心页面样式 */
.recharge-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 余额卡片 */
.balance-card {
    grid-column: 1 / -1;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.balance-card h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.balance-amount {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.amount {
    font-size: 4rem;
}

.currency {
    font-size: 2rem;
    margin-left: 0.5rem;
}

.balance-tip {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 金额选择 */
.amount-selection {
    grid-column: 1;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

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

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

.amount-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.amount-option .amount {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.amount-option .bonus {
    display: block;
    font-size: 0.9rem;
    color: #ff6b6b;
    background: rgba(255,107,107,0.1);
    padding: 2px 8px;
    border-radius: 15px;
    font-weight: bold;
}

.amount-option.selected .bonus {
    background: rgba(255,255,255,0.2);
    color: #ffeaa7;
}

.custom-amount {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.custom-amount label {
    font-weight: bold;
    white-space: nowrap;
}

.custom-amount input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
}

.custom-amount input:focus {
    border-color: #667eea;
}

.custom-amount .currency {
    font-weight: bold;
    color: #666;
}

/* 支付方式 */
.payment-methods {
    grid-column: 2;
}

.payment-options {
    display: flex;
    gap: 1rem;
}

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

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

.payment-option.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.payment-option i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.payment-option span {
    font-weight: bold;
}

/* 二维码支付 */
.qr-payment {
    grid-column: 1 / -1;
}

.qr-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.qr-code {
    text-align: center;
    position: relative;
}

.qr-code img {
    width: 200px;
    height: 200px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 10px;
}

.qr-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
}

.qr-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.payment-info {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.payment-info h4 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

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

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

.info-item span:first-child {
    font-weight: bold;
    color: #666;
}

.info-item span:last-child {
    font-weight: bold;
    color: #333;
}

#confirmPayment {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin: 1.5rem 0;
}

#confirmPayment:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.payment-tip {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* 充值记录 */
.recharge-history {
    grid-column: 1 / -1;
}

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

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    margin-bottom: 0.5rem;
    border-radius: 5px;
}

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

.history-info {
    flex: 1;
}

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

.history-time {
    color: #666;
    font-size: 0.9rem;
}

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

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.no-history {
    text-align: center;
    color: #666;
    padding: 2rem;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .recharge-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .amount-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .qr-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-options {
        flex-direction: column;
    }
    
    .custom-amount {
        flex-direction: column;
        align-items: stretch;
    }
    
    .custom-amount label {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .history-status {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .amount-grid {
        grid-template-columns: 1fr;
    }
    
    .qr-code img {
        width: 150px;
        height: 150px;
    }
    
    .payment-info {
        padding: 1rem;
    }
}

/* 滚动条样式 */
.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}