feat: 重构 AI 搜索架构并优化用户体验

- 重构 AI 搜索数据流:n8n 只返回项目 ID,Next.js 后端负责组装完整数据
- 首页添加 AI 搜索功能,支持跳转到项目列表页后自动触发搜索
- 新增 HomeSearchBar 组件处理首页搜索逻辑
- 修复英文模式下搜索按钮重叠问题,使用 flex 布局确保间距
- 完善国际化支持,添加切换模式提示和加载状态的翻译
- 优化搜索体验:切换 AI/传统搜索模式时保留输入框内容

Co-Authored-By: Claude (glm-4.7) <noreply@anthropic.com>
This commit is contained in:
2026-01-27 16:40:44 +08:00
co-authored by Claude
parent 11009320f1
commit 660cd5168c
9 changed files with 285 additions and 41 deletions
+5
View File
@@ -2,6 +2,11 @@
"common": {
"search": "搜索",
"aiSearch": "AI 搜索",
"searching": "搜索中...",
"toggleToAI": "切换到 AI 搜索",
"toggleToTraditional": "切换到传统搜索",
"aiHint": "试试:\"帮我找能生成视频的 AI 工具\"",
"traditionalHint": "输入项目名称或描述",
"loading": "加载中...",
"noResults": "未找到结果",
"noProjects": "暂无项目",