diff --git a/video-gen-app/src/pages/GenerateConver.tsx b/video-gen-app/src/pages/GenerateConver.tsx
index 7483e1f0..9069f221 100644
--- a/video-gen-app/src/pages/GenerateConver.tsx
+++ b/video-gen-app/src/pages/GenerateConver.tsx
@@ -1,7 +1,7 @@
import React, { useState, useRef, useEffect, useCallback } from 'react';
-// AI 创作对话框样式优化版 v11:白色极简高级风格,统一参考素材与历史附件展示。
+// AI 创作对话框样式优化版 v12:白色极简高级风格,选项按钮、标题、头像与关键字统一使用 #8b5cf6。
import {
Layout,
@@ -1276,7 +1276,7 @@ const AIChatPage: React.FC = () => {
style={{
background: 'rgba(255,255,255,0.7)',
backdropFilter: 'blur(16px)',
- borderRight: '1px solid rgba(75, 85, 99, 0.08)',
+ borderRight: '1px solid rgba(139, 92, 246, 0.08)',
}}
>
@@ -1313,7 +1313,7 @@ const AIChatPage: React.FC = () => {
borderRadius: 10,
cursor: 'pointer',
background: currentConversationId === conversation.id ? '#FAFBFC' : 'transparent',
- border: currentConversationId === conversation.id ? '1px solid #e6e1ea' : 'none',
+ border: currentConversationId === conversation.id ? '1px solid #ede9fe' : 'none',
transition: 'all 0.2s',
}}
onMouseEnter={(e) => {
@@ -1371,7 +1371,7 @@ const AIChatPage: React.FC = () => {
margin: 0,
fontSize: 18,
fontWeight: 700,
- color: '#4B5563',
+ color: '#8b5cf6',
letterSpacing: 0.4,
}}>
AI创作
@@ -1406,7 +1406,7 @@ const AIChatPage: React.FC = () => {
width: 80,
height: 80,
borderRadius: 50,
- background: 'linear-gradient(135deg, #4B5563 0%, #D6DAE2 100%)',
+ background: 'linear-gradient(135deg, #8b5cf6 0%, #ddd6fe 100%)',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
@@ -1448,7 +1448,7 @@ const AIChatPage: React.FC = () => {
disabled={isLoadingMore}
style={{
fontSize: 12,
- color: '#4B5563',
+ color: '#8b5cf6',
background: 'none',
border: 'none',
cursor: isLoadingMore ? 'not-allowed' : 'pointer',
@@ -1478,7 +1478,7 @@ const AIChatPage: React.FC = () => {
width: 36,
height: 36,
borderRadius: 12,
- background: 'linear-gradient(135deg, #4B5563 0%, #D6DAE2 100%)',
+ background: 'linear-gradient(135deg, #8b5cf6 0%, #ddd6fe 100%)',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
@@ -1513,8 +1513,8 @@ const AIChatPage: React.FC = () => {
{msg.createdAt?.replace('T', ' ').split('.')[0]}
{
{/* 附件详情 - 右上角 */}
{msg.mediaReferences && msg.mediaReferences.length > 0 && (
- { e.stopPropagation(); const target = e.currentTarget as HTMLElement; const rect = target.getBoundingClientRect(); setAttachmentPopupPosition({ x: rect.left, y: rect.top - 10 }); setAttachmentPopupMessageId(msg.id); setAttachmentPopupVisible(true); }}>附件详情
+ { e.stopPropagation(); const target = e.currentTarget as HTMLElement; const rect = target.getBoundingClientRect(); setAttachmentPopupPosition({ x: rect.left, y: rect.top - 10 }); setAttachmentPopupMessageId(msg.id); setAttachmentPopupVisible(true); }}>附件详情
)}
{/* 操作按钮 - 右下角 */}
@@ -1569,8 +1569,8 @@ const AIChatPage: React.FC = () => {
padding: '0 10px',
borderRadius: 10,
border: 'none',
- background: 'rgba(75, 85, 99, 0.08)',
- color: '#4B5563',
+ background: 'rgba(139, 92, 246, 0.08)',
+ color: '#8b5cf6',
cursor: 'pointer',
display: 'flex',
alignItems: 'center',
@@ -1580,10 +1580,10 @@ const AIChatPage: React.FC = () => {
fontSize: 12,
}}
onMouseEnter={(e) => {
- e.currentTarget.style.background = 'rgba(75, 85, 99, 0.15)';
+ e.currentTarget.style.background = 'rgba(139, 92, 246, 0.15)';
}}
onMouseLeave={(e) => {
- e.currentTarget.style.background = 'rgba(75, 85, 99, 0.08)';
+ e.currentTarget.style.background = 'rgba(139, 92, 246, 0.08)';
}}
>
@@ -1614,8 +1614,8 @@ const AIChatPage: React.FC = () => {
padding: '0 10px',
borderRadius: 10,
border: 'none',
- background: 'rgba(75, 85, 99, 0.08)',
- color: '#4B5563',
+ background: 'rgba(139, 92, 246, 0.08)',
+ color: '#8b5cf6',
cursor: 'pointer',
display: 'flex',
alignItems: 'center',
@@ -1629,8 +1629,8 @@ const AIChatPage: React.FC = () => {
e.currentTarget.style.color = '#A45B5B';
}}
onMouseLeave={(e) => {
- e.currentTarget.style.background = 'rgba(75, 85, 99, 0.08)';
- e.currentTarget.style.color = '#4B5563';
+ e.currentTarget.style.background = 'rgba(139, 92, 246, 0.08)';
+ e.currentTarget.style.color = '#8b5cf6';
}}
>
@@ -1646,9 +1646,9 @@ const AIChatPage: React.FC = () => {
position: 'relative',
margin: '8px 0',
padding: '12px 16px',
- backgroundColor: 'rgba(75, 85, 99, 0.04)',
+ backgroundColor: 'rgba(139, 92, 246, 0.04)',
borderRadius: 10,
- border: '1px solid rgba(75, 85, 99, 0.08)',
+ border: '1px solid rgba(139, 92, 246, 0.08)',
fontSize: 13,
color: '#475467',
lineHeight: 1.6,
@@ -1699,23 +1699,23 @@ const AIChatPage: React.FC = () => {
-
+
{msg.status === 'generating' ? (
<>
-
-
+
-
生成中...
+
生成中...
{/*
*/}
>
@@ -1750,15 +1750,15 @@ const AIChatPage: React.FC = () => {
{msg.engineSnapshot.name}
+ // background: 'rgba(139, 92, 246, 0.08)',
+ borderRadius: 16, color: '#8b5cf6', fontWeight: 500 }}>{msg.engineSnapshot.name}
{msg.genType === 'image' ? `${msg.imageProportion || ''} · ${msg.imagePx || ''} · ${msg.imageSize || ''}` : `${msg.duration || ''}s · ${msg.aspectRatio || ''} · ${msg.resolution || ''}`}
消耗积分:{msg.creditsCost}
+ borderRadius: 16, color: '#8b5cf6' }}>消耗积分:{msg.creditsCost}
@@ -1917,7 +1917,7 @@ const AIChatPage: React.FC = () => {
>
)}
-
+
{label}
@@ -1939,7 +1939,7 @@ const AIChatPage: React.FC = () => {
borderRadius: 9,
border: '1px solid #E7EAF0',
background: '#F8FAFC',
- color: '#4B5563',
+ color: '#8b5cf6',
fontSize: 11,
fontWeight: 700,
cursor: 'pointer',
@@ -2004,7 +2004,7 @@ const AIChatPage: React.FC = () => {
{/* 首帧 */}
- 首帧
+ 首帧
必传
{firstFrame ? (
@@ -2018,7 +2018,7 @@ const AIChatPage: React.FC = () => {
setAttachmentPreviewName(firstFrame.name);
setAttachmentPreviewVisible(true);
}}
- style={{ width: '100%', height: '100%', objectFit: 'cover', borderRadius: 10, cursor: 'pointer', border: '1px solid rgba(75, 85, 99, 0.2)', boxShadow: '0 4px 12px rgba(47, 52, 64, 0.08)' }}
+ style={{ width: '100%', height: '100%', objectFit: 'cover', borderRadius: 10, cursor: 'pointer', border: '1px solid rgba(139, 92, 246, 0.2)', boxShadow: '0 4px 12px rgba(47, 52, 64, 0.08)' }}
/>