/* 积分获取页面样式 */
.points-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
}

.points-header h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
}

.points-content {
    display: grid;
    gap: 2rem;
}

.current-points {
    text-align: center;
}

.points-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    display: inline-block;
    min-width: 300px;
}

.points-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.points-value {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.points-intro,
.points-purchase {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.points-intro h3,
.points-purchase h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

.intro-card h4 {
    margin-bottom: 1rem;
    color: #667eea;
}

.intro-card ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.intro-card li {
    margin-bottom: 0.5rem;
    color: #666;
}

.custom-purchase {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.purchase-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.rate-display {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    color: #667eea;
    font-weight: 500;
    text-align: center;
}

.points-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.purchase-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .purchase-options {
        grid-template-columns: 1fr;
    }

    .points-container {
        padding: 1rem;
    }
    
    #custom-recharge-form {
        max-width: 100%;
        margin: 0;
    }
}

/* 加载状态样式 */
.purchase-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.purchase-btn:disabled:hover {
    background: #ccc;
    transform: none;
}

/* 表单样式 */
#custom-recharge-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

#custom-recharge-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rate-info {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

#custom-recharge-form input[type="number"] {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#custom-recharge-form input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

#custom-recharge-form input[type="number"]:invalid {
    border-color: #e74c3c;
}

.points-preview {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    user-select: none;
}

/* 支付状态提示 */
.payment-status {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.payment-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.payment-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.payment-status.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}
