diff --git a/src/main/resources/static/css/style.css b/src/main/resources/static/css/style.css
index de4d5db..7b94b49 100644
--- a/src/main/resources/static/css/style.css
+++ b/src/main/resources/static/css/style.css
@@ -621,25 +621,294 @@ body {
background: #94a3b8;
}
-/* 响应式设计 */
+/* ==================== 动画效果 ==================== */
+
+/* 淡入动画 */
+@keyframes fadeInUp {
+ from {
+ opacity: 0;
+ transform: translateY(20px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
+/* 滑入动画 */
+@keyframes slideIn {
+ from {
+ opacity: 0;
+ transform: translateX(-20px);
+ }
+ to {
+ opacity: 1;
+ transform: translateX(0);
+ }
+}
+
+/* 脉冲动画 */
+@keyframes pulse {
+ 0%, 100% {
+ transform: scale(1);
+ }
+ 50% {
+ transform: scale(1.05);
+ }
+}
+
+/* 闪烁动画 */
+@keyframes shimmer {
+ 0% {
+ background-position: -1000px 0;
+ }
+ 100% {
+ background-position: 1000px 0;
+ }
+}
+
+/* 弹跳动画 */
+@keyframes bounce {
+ 0%, 100% {
+ transform: translateY(0);
+ }
+ 50% {
+ transform: translateY(-5px);
+ }
+}
+
+/* 应用动画类 */
+.animate-in {
+ animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
+}
+
+.animate-out {
+ animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) reverse forwards;
+}
+
+/* 消息加载状态 */
+.message.loading {
+ opacity: 0.7;
+}
+
+.message.loading .message-content {
+ background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
+ background-size: 1000px 100%;
+ animation: shimmer 2s infinite linear;
+}
+
+/* 打字指示器优化 */
+.typing-indicator {
+ display: flex;
+ gap: 6px;
+ padding: 8px 0;
+}
+
+.typing-indicator span {
+ width: 10px;
+ height: 10px;
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ border-radius: 50%;
+ animation: bounce 1.4s infinite ease-in-out both;
+}
+
+.typing-indicator span:nth-child(1) {
+ animation-delay: -0.32s;
+}
+
+.typing-indicator span:nth-child(2) {
+ animation-delay: -0.16s;
+}
+
+/* 工具卡片悬停效果 */
+.tool-call:hover,
+.tool-result:hover,
+.todo-write-call:hover,
+.todo-write-progress:hover {
+ transform: translateY(-3px);
+ box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
+}
+
+/* 任务项悬停效果 */
+.todo-item {
+ transition: all 0.2s ease;
+ cursor: default;
+}
+
+.todo-item:hover {
+ background: rgba(245, 158, 11, 0.1);
+ transform: translateX(5px);
+ border-radius: 6px;
+}
+
+/* 进度条动画 */
+.progress-bar {
+ transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
+ background: linear-gradient(90deg, #ffffff 0%, #f0f0f0 50%, #ffffff 100%);
+ background-size: 200% 100%;
+ animation: shimmer 2s infinite;
+}
+
+/* 发送按钮动画 */
+.btn-send:not(:disabled):hover {
+ transform: translateY(-2px);
+ box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
+}
+
+.btn-send:not(:disabled):active {
+ transform: translateY(0);
+}
+
+.btn-send:disabled {
+ opacity: 0.6;
+ cursor: not-allowed;
+}
+
+/* 输入框聚焦效果 */
+.chat-input:focus {
+ outline: none;
+ border-color: #667eea;
+ box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
+ transition: all 0.3s ease;
+}
+
+/* 复制按钮动画 */
+.copy-button {
+ transition: all 0.2s ease;
+}
+
+.copy-button:hover {
+ background: rgba(255, 255, 255, 0.25);
+ transform: scale(1.05);
+}
+
+.copy-button.copied {
+ background: #10b981;
+ animation: pulse 0.3s ease;
+}
+
+/* 错误消息动画 */
+.error-message {
+ animation: fadeInUp 0.3s ease, slideIn 0.3s ease;
+}
+
+/* 状态指示器动画 */
+.status-indicator {
+ transition: all 0.3s ease;
+}
+
+.status-indicator.connected {
+ animation: pulse 2s infinite;
+}
+
+/* 切换开关动画 */
+.toggle-switch {
+ transition: background 0.3s ease;
+}
+
+.toggle-switch::before {
+ transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
+}
+
+/* 清空按钮动画 */
+.btn-secondary {
+ transition: all 0.2s ease;
+}
+
+.btn-secondary:hover {
+ background: rgba(255, 255, 255, 0.3);
+ transform: translateY(-1px);
+}
+
+/* 响应式优化 */
@media (max-width: 768px) {
.header {
padding: 15px 20px;
+ flex-wrap: wrap;
+ gap: 10px;
}
.header h1 {
- font-size: 20px;
+ font-size: 18px;
+ }
+
+ .header-controls {
+ width: 100%;
+ justify-content: flex-end;
+ flex-wrap: wrap;
}
.messages {
- padding: 20px;
+ padding: 15px;
}
.message-content {
- max-width: 85%;
+ max-width: 90%;
+ font-size: 14px;
}
.input-container {
- padding: 15px 20px;
+ padding: 15px;
+ }
+
+ .chat-form {
+ gap: 8px;
+ }
+
+ .chat-input {
+ font-size: 16px; /* 防止 iOS 缩放 */
+ }
+
+ .btn-send {
+ padding: 12px 20px;
+ font-size: 14px;
+ }
+
+ /* 移动端工具卡片优化 */
+ .tool-call,
+ .tool-result,
+ .todo-write-call,
+ .todo-write-progress {
+ padding: 12px;
+ margin: 8px 0;
+ }
+
+ .tool-call-details,
+ .tool-result-content {
+ font-size: 12px;
+ }
+
+ /* 移动端任务列表优化 */
+ .todo-item {
+ font-size: 13px;
+ padding: 6px 8px;
+ }
+
+ .todo-progress-header {
+ font-size: 14px;
+ }
+}
+
+/* 暗色模式支持(可选) */
+@media (prefers-color-scheme: dark) {
+ /* 可以在这里添加暗色模式样式 */
+}
+
+/* 打印样式 */
+@media print {
+ .header,
+ .input-container,
+ .copy-button {
+ display: none;
+ }
+
+ .messages {
+ height: auto;
+ overflow: visible;
+ }
+
+ .message {
+ break-inside: avoid;
}
}
diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html
index 9c89c7c..76fd487 100644
--- a/src/main/resources/static/index.html
+++ b/src/main/resources/static/index.html
@@ -49,6 +49,10 @@
-
+
+
+
+
+