feat: AI市场分析功能

- 后端:AI分析服务、工具调用、定时任务
- 前端:报告列表、详情页、Mermaid图表支持
- 支持OpenAI API兼容模型
- 收盘后自动分析生成报告
This commit is contained in:
Sakurasan
2026-09-01 04:21:29 +08:00
parent d7d019c2c4
commit 912a224b6b
17 changed files with 2525 additions and 4 deletions
+93
View File
@@ -146,3 +146,96 @@
font-family: var(--font-sans);
}
}
/* AI Report Content Styles */
.ai-report-content {
color: #c9d1d9;
line-height: 1.7;
}
.ai-report-content h1,
.ai-report-content h2,
.ai-report-content h3,
.ai-report-content h4 {
color: #e6edf3;
font-weight: 600;
margin-top: 1.5em;
margin-bottom: 0.5em;
}
.ai-report-content h1 { font-size: 1.5em; }
.ai-report-content h2 { font-size: 1.3em; }
.ai-report-content h3 { font-size: 1.15em; }
.ai-report-content p {
margin-bottom: 0.8em;
}
.ai-report-content strong {
color: #e6edf3;
font-weight: 600;
}
.ai-report-content ul,
.ai-report-content ol {
margin: 0.5em 0;
padding-left: 1.5em;
}
.ai-report-content li {
margin-bottom: 0.3em;
}
.ai-report-content blockquote {
border-left: 3px solid #30363d;
padding-left: 1em;
margin: 0.8em 0;
color: #8b949e;
}
.ai-report-content code {
background: #0d1117;
padding: 0.15em 0.4em;
border-radius: 4px;
font-size: 0.9em;
color: #79c0ff;
}
.ai-report-content pre {
background: #0d1117;
padding: 1em;
border-radius: 6px;
overflow-x: auto;
margin: 0.8em 0;
}
.ai-report-content pre code {
background: none;
padding: 0;
color: #c9d1d9;
}
.ai-report-content table {
width: 100%;
border-collapse: collapse;
margin: 0.8em 0;
}
.ai-report-content th,
.ai-report-content td {
border: 1px solid #30363d;
padding: 0.5em 0.8em;
text-align: left;
}
.ai-report-content th {
background: #21262d;
color: #e6edf3;
font-weight: 600;
}
.ai-report-content hr {
border: none;
border-top: 1px solid #30363d;
margin: 1.5em 0;
}