-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.css
More file actions
165 lines (135 loc) · 2.44 KB
/
index.css
File metadata and controls
165 lines (135 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
/* OpenAI 风格基础样式 */
/* KaTeX 样式覆盖 - 适配浅色主题 */
.katex-display {
margin: 1rem 0 !important;
overflow-x: auto;
overflow-y: hidden;
}
.katex {
font-size: 1.1em;
color: #171717;
}
.katex-html {
white-space: nowrap;
}
.katex-display>.katex {
display: inline-block;
text-align: center;
}
/* Flex 布局修复 */
.flex-1.flex.flex-col.h-full {
display: flex !important;
flex-direction: column !important;
}
.flex-1.overflow-y-auto {
flex: 1 1 0% !important;
min-height: 0 !important;
}
/* 自定义滚动条 - 极简风格 */
.custom-scrollbar::-webkit-scrollbar {
width: 4px;
height: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: #d4d4d4;
border-radius: 2px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
background: #a3a3a3;
}
/* 输入框聚焦效果 */
input:focus,
textarea:focus {
outline: none;
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}
/* 按钮过渡效果 */
button {
transition: all 0.15s ease;
}
button:active {
transform: scale(0.98);
}
/* 消息气泡动画 */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.message-bubble {
animation: fadeIn 0.2s ease-out;
}
/* 打字机光标效果 */
@keyframes blink {
0%,
50% {
opacity: 1;
}
51%,
100% {
opacity: 0;
}
}
.typing-cursor::after {
content: '|';
animation: blink 1s infinite;
margin-left: 2px;
color: #171717;
}
/* 加载动画 */
@keyframes pulse-dot {
0%,
100% {
opacity: 0.4;
}
50% {
opacity: 1;
}
}
.loading-dot {
animation: pulse-dot 1.4s ease-in-out infinite;
}
.loading-dot:nth-child(2) {
animation-delay: 0.2s;
}
.loading-dot:nth-child(3) {
animation-delay: 0.4s;
}
/* AI 彩色流动渐变动画 */
@keyframes gradient-flow {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
/* AI 文字彩色渐变效果 - 融入标题 */
.ai-gradient-text {
background: linear-gradient(90deg,
#ec4899,
#a855f7,
#6366f1,
#0ea5e9,
#06b6d4,
#0ea5e9,
#6366f1,
#a855f7,
#ec4899);
background-size: 200% 100%;
animation: gradient-flow 3s ease infinite;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}