diff --git a/pages_tool/ai-chat/ai-chat-message.vue b/pages_tool/ai-chat/ai-chat-message.vue
index 308ee4d..663f6fc 100644
--- a/pages_tool/ai-chat/ai-chat-message.vue
+++ b/pages_tool/ai-chat/ai-chat-message.vue
@@ -2147,11 +2147,14 @@ _handleStreamError(msg) {
})
// 5) 行内代码 / 加粗 / 斜体 / 删除线 (此时链接已抽离, 不会被误改)
+ // PR-FIX-AI-TEXT-COLOR (2026-09-24): AI 回答统一配色 —— 正文/标题/加粗/行内代码/引用/删除线
+ // 一律黑色(TEXT), 只有"网址/链接"是蓝色(LINK)。
+ // 之前行内代码是粉色(#d63384)、删除线是灰色(#999), 回答里颜色太杂。
t = t
- .replace(/`([^`]+)`/g, '$1')
+ .replace(/`([^`]+)`/g, '$1')
.replace(/\*\*(.+?)\*\*/g, '$1')
- .replace(/\*(.+?)\*/g, '$1')
- .replace(/~~(.+?)~~/g, '$1')
+ .replace(/\*(.+?)\*/g, '$1')
+ .replace(/~~(.+?)~~/g, '$1')
return t
}
@@ -2169,7 +2172,7 @@ _handleStreamError(msg) {
const safe = code.replace(//g, '>')
codeBlocks.push(
`
` +
- `${safe}`
+ `${safe}`
)
return `%%CODEBLOCK_${idx}%%`
})
@@ -2265,7 +2268,7 @@ _handleStreamError(msg) {
const bqMatch = line.match(/^>\s?(.+)$/)
if (bqMatch) {
flushBuf(); out.push(closeList())
- out.push(`${parseInline(bqMatch[1])}`) + out.push(`
${parseInline(bqMatch[1])}`) continue } @@ -3660,16 +3663,18 @@ _handleStreamError(msg) { .markdown-body { line-height: 1.8; font-size: 26rpx; - color: $color-text; + /* PR-FIX-AI-TEXT-COLOR (2026-09-24): 统一配色 —— 正文/加粗/斜体/代码全部黑色, + 只有链接(a)是蓝色; 之前正文是灰蓝($color-text)、代码是蓝灰($color-primary) */ + color: #1a1a1a; strong { font-weight: 600; - color: $color-text; + color: #1a1a1a; } em { font-style: italic; - color: $color-text-light; + color: #1a1a1a; } code { @@ -3678,17 +3683,18 @@ _handleStreamError(msg) { border-radius: $radius-sm; font-family: monospace; font-size: 24rpx; - color: $color-primary; + color: #1a1a1a; } a { - color: $color-primary; + /* 网址/链接: 蓝色 (与 parseMarkdown 里的 LINK 常量保持一致) */ + color: #3a7afe; text-decoration: underline; text-underline-offset: 4rpx; transition: color 0.2s ease; &:hover { - color: #5a7cb0; + color: #2b6cf0; } } }