代码合并

This commit is contained in:
董宏凯 committed 2026-05-28 21:22:49 +08:00
1 parent 3632b0d726
commit ab902f948a
9 files changed
+3021 -1329

No files matched your search

@@ -21,6 +21,7 @@ import {
} from 'lucide-react';
import { useTheme } from '../../../contexts/ThemeContext';
import MarkdownRenderer from '../../MarkdownRenderer';
import './qa-animations.css';
/**
* 单条检索结果。
@@ -0,0 +1,171 @@
/**
* QA 系列共享动画与样式
*
* 这些类被 QACommon.tsx(以及通过它的 GeneralQA / AgentQA / CollaborativeQA)使用。
* 全部样式从 web-code/theme.css、web-code/App.css 和 web-code/index.css 迁移而来,
* 仅保留 QA 系列实际使用的部分。
*/
/* ── 头像扫光(生成中沿头像横扫的高光条) ───────────────────────────── */
@keyframes qa-avatar-shine {
0% {
transform: translateX(-120%) skewX(-18deg);
opacity: 0;
}
45% {
opacity: 0.5;
}
100% {
transform: translateX(120%) skewX(-18deg);
opacity: 0;
}
}
/* ── 头像整体微旋转(generating 状态) ─────────────────────────────── */
@keyframes qa-avatar-orbit {
0%,
100% {
transform: rotate(0deg) scale(1);
}
50% {
transform: rotate(4deg) scale(1.06);
}
}
/* ── 头像图标脉冲 ────────────────────────────────────────────────── */
@keyframes qa-avatar-icon-pulse {
0%,
100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.12);
opacity: 0.82;
}
}
/* ── 右上角 Sparkles 闪烁 ───────────────────────────────────────── */
@keyframes qa-spark-twinkle {
0%,
100% {
transform: scale(0.85) rotate(0deg);
opacity: 0.65;
}
50% {
transform: scale(1.15) rotate(18deg);
opacity: 1;
}
}
/* ── 停止按钮呼吸 ─────────────────────────────────────────────── */
@keyframes qa-stop-breathing {
0%,
100% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45);
}
50% {
transform: scale(1.04);
box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
}
}
/* ── “正在生成” 跑马灯(文字渐变流动) ─────────────────────────── */
@keyframes qa-generating-marquee {
0% {
background-position: 180% 50%;
}
100% {
background-position: -80% 50%;
}
}
/* ── 输入中三个圆点跳动 ───────────────────────────────────────── */
@keyframes qa-typing-dot {
0%,
80%,
100% {
transform: translateY(0);
opacity: 0.35;
}
40% {
transform: translateY(-5px);
opacity: 1;
}
}
/* ── 类绑定 ───────────────────────────────────────────────────── */
.qa-avatar-active {
animation: qa-avatar-orbit 1.8s ease-in-out infinite;
}
.qa-avatar-icon-active {
animation: qa-avatar-icon-pulse 1.1s ease-in-out infinite;
}
.qa-avatar-active .qa-avatar-shine {
animation: qa-avatar-shine 1.6s ease-in-out infinite;
}
.qa-avatar-spark {
animation: qa-spark-twinkle 1s ease-in-out infinite;
}
.qa-stop-breathing {
animation: qa-stop-breathing 1.25s ease-in-out infinite;
}
.qa-typing-dot {
animation: qa-typing-dot 1.2s ease-in-out infinite;
}
.qa-generating-marquee {
display: inline-block;
background-size: 220% 100%;
background-clip: text;
-webkit-background-clip: text;
color: transparent;
-webkit-text-fill-color: transparent;
animation: qa-generating-marquee 1.45s linear infinite;
}
.qa-generating-marquee-light {
background-image: linear-gradient(
90deg,
#4b5563 0%,
#4b5563 34%,
#ef4444 48%,
#fb923c 55%,
#4b5563 68%,
#4b5563 100%
);
}
.qa-generating-marquee-dark {
background-image: linear-gradient(
90deg,
#cbd5e1 0%,
#cbd5e1 34%,
#67e8f9 48%,
#a78bfa 55%,
#cbd5e1 68%,
#cbd5e1 100%
);
}
/* ── 兜底:清掉 TDesign textarea 的边框/阴影/背景 ─────────────── */
.qa-composer-textarea,
.qa-composer-textarea .t-textarea,
.qa-composer-textarea .t-textarea__inner {
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
outline: none !important;
}
.qa-composer-textarea .t-textarea__inner {
resize: none !important;
min-height: 40px !important;
padding: 0 !important;
}