/* 充值中心页面专用样式 */

/* 页面标题区域 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 充值内容区域 */
.recharge-content {
    padding: 4rem 0;
    background: #f8f9fa;
}

.recharge-grid {
    display: grid;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* 余额卡片 */
.balance-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

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

.balance-header i {
    font-size: 2.5rem;
    color: #667eea;
}

.balance-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

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

.amount {
    font-size: 3rem;
    font-weight: bold;
    color: #ff6b6b;
    display: block;
    margin-bottom: 0.5rem;
}

.label {
    color: #666;
    font-size: 1rem;
}

.balance-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 按钮样式 */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #667eea;
    color: #667eea;
}

/* 充值套餐 */
.packages-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.packages-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

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

.package-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.package-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.package-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
}

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

.package-header i {
    font-size: 1.5rem;
    color: #ffd700;
}

.package-badge {
    background: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.package-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.package-bonus {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.package-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.package-btn:hover {
    background: #5a6fd8;
    transform: scale(1.05);
}

/* 自定义充值 */
.custom-recharge {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.custom-recharge h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.custom-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto 1rem;
}

.currency-symbol {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

#customAmount {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

#customAmount:focus {
    outline: none;
    border-color: #667eea;
}

.input-hint {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* 支付方式 */
.payment-methods {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.payment-methods h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

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

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

.method-card:hover,
.method-card.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
}

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

.method-card.active .fa-alipay { color: #1677ff; }
.method-card.active .fa-weixin { color: #07c160; }
.method-card.active .fa-university { color: #ff6b6b; }

/* 二维码支付区域 */
.qr-payment {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.qr-code {
    flex-shrink: 0;
}

.qr-code img {
    width: 200px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px;
}

.qr-instructions {
    flex: 1;
}

.qr-instructions h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.qr-instructions ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.qr-instructions li {
    margin-bottom: 0.5rem;
    color: #666;
}

.payment-timer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: #856404;
}

.payment-timer i {
    margin-right: 0.5rem;
}

#paymentTimer {
    font-weight: bold;
    font-size: 1.1rem;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff6b6b;
}

.modal-body {
    padding: 2rem;
}

.recharge-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
}

.total-amount {
    font-size: 1.3rem !important;
    font-weight: bold;
    color: #ff6b6b !important;
    border-top: 2px solid #f0f0f0;
    padding-top: 1rem;
    margin-top: 1rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .balance-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .qr-container {
        flex-direction: column;
        text-align: center;
    }
    
    .custom-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .package-amount {
        font-size: 1.5rem;
    }
    
    .qr-code img {
        width: 150px;
        height: 150px;
    }
}