import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import OperationAgent from './pages/OperationAgent';
import Homepage from './pages/Homepage';
import Pricing from './pages/Pricing';
import CaseStudy from './pages/CaseStudy';
import LoginPage from './pages/Auth/LoginPage';
import RegisterPage from './pages/Auth/RegisterPage';

const AppRouter: React.FC = () => {
  return (
    <Router>
      <Routes>
        {/* 首页商业化路由 */}
        <Route path="/" element={<Homepage />} />
        <Route path="/pricing" element={<Pricing />} />
        <Route path="/case-study" element={<CaseStudy />} />
        <Route path="/case-study/:id" element={<CaseStudy />} />
        
        {/* 认证路由 */}
        <Route path="/auth/login" element={<LoginPage />} />
        <Route path="/auth/register" element={<RegisterPage />} />
        
        {/* 后台路由 */}
        <Route path="/operation-agent" element={<OperationAgent />} />
        <Route path="/dashboard" element={<OperationAgent />} />
      </Routes>
    </Router>
  );
};

export default AppRouter;
