yc-agent-ui 1.1.2 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/es/components/dialog/index.d.ts +6 -6
  2. package/es/components/dialog/src/index.vue.d.ts +2 -2
  3. package/es/components/dialog-form/index.d.ts +6 -6
  4. package/es/components/dialog-form/src/index.vue.d.ts +6 -6
  5. package/es/components/display-item/index.d.ts +21 -21
  6. package/es/components/display-item/src/index.vue.d.ts +19 -19
  7. package/es/components/drawer-form/index.d.ts +18 -18
  8. package/es/components/drawer-form/src/index.vue.d.ts +10 -10
  9. package/es/components/form/index.d.ts +12 -12
  10. package/es/components/form/src/form-content.vue.d.ts +12 -12
  11. package/es/components/form/src/index.vue.d.ts +12 -12
  12. package/es/components/form-item/index.d.ts +12 -12
  13. package/es/components/form-item/src/index.vue.d.ts +10 -10
  14. package/es/components/index.d.ts +1 -0
  15. package/es/components/page/index.d.ts +258 -258
  16. package/es/components/page/src/index.vue.d.ts +90 -90
  17. package/es/components/render/index.d.ts +1 -1
  18. package/es/components/render/src/index.vue.d.ts +1 -1
  19. package/es/components/search/index.d.ts +78 -78
  20. package/es/components/search/src/index.vue.d.ts +30 -30
  21. package/es/components/table/src/table-column.vue.d.ts +46 -46
  22. package/es/components/yc-ai-chat/index.d.ts +14 -0
  23. package/es/components/yc-ai-chat/src/bubble.vue.d.ts +28 -0
  24. package/es/components/yc-ai-chat/src/file-card.vue.d.ts +18 -0
  25. package/es/components/yc-ai-chat/src/mobile-frame.vue.d.ts +33 -0
  26. package/es/components/yc-ai-chat/src/presets.d.ts +6 -0
  27. package/es/components/yc-ai-chat/src/select.vue.d.ts +23 -0
  28. package/es/components/yc-ai-chat/src/sender.vue.d.ts +45 -0
  29. package/es/components/yc-ai-chat/src/sidebar.vue.d.ts +28 -0
  30. package/es/components/yc-ai-chat/src/studio.vue.d.ts +47 -0
  31. package/es/components/yc-ai-chat/src/thinking.vue.d.ts +9 -0
  32. package/es/components/yc-ai-chat/src/type.d.ts +34 -0
  33. package/es/components/yc-ai-chat/src/welcome.vue.d.ts +29 -0
  34. package/es/components/yc-plus-page/src/index.vue.d.ts +264 -264
  35. package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
  36. package/es/hooks/usePlusFormReset.d.ts +144 -144
  37. package/es/index.css +10 -10
  38. package/es/index.mjs +10 -0
  39. package/es/packages/components/index.mjs +10 -0
  40. package/es/packages/components/yc-ai-chat/index.mjs +14 -0
  41. package/es/packages/components/yc-ai-chat/src/bubble.vue.mjs +5 -0
  42. package/es/packages/components/yc-ai-chat/src/bubble2.vue.mjs +290 -0
  43. package/es/packages/components/yc-ai-chat/src/file-card.vue.mjs +5 -0
  44. package/es/packages/components/yc-ai-chat/src/file-card2.vue.mjs +127 -0
  45. package/es/packages/components/yc-ai-chat/src/mobile-frame.vue.mjs +5 -0
  46. package/es/packages/components/yc-ai-chat/src/mobile-frame2.vue.mjs +248 -0
  47. package/es/packages/components/yc-ai-chat/src/presets.mjs +55 -0
  48. package/es/packages/components/yc-ai-chat/src/select.vue.mjs +5 -0
  49. package/es/packages/components/yc-ai-chat/src/select2.vue.mjs +337 -0
  50. package/es/packages/components/yc-ai-chat/src/sender.vue.mjs +5 -0
  51. package/es/packages/components/yc-ai-chat/src/sender2.vue.mjs +433 -0
  52. package/es/packages/components/yc-ai-chat/src/sidebar.vue.mjs +5 -0
  53. package/es/packages/components/yc-ai-chat/src/sidebar2.vue.mjs +279 -0
  54. package/es/packages/components/yc-ai-chat/src/studio.vue.mjs +5 -0
  55. package/es/packages/components/yc-ai-chat/src/studio2.vue.mjs +391 -0
  56. package/es/packages/components/yc-ai-chat/src/thinking.vue.mjs +5 -0
  57. package/es/packages/components/yc-ai-chat/src/thinking2.vue.mjs +88 -0
  58. package/es/packages/components/yc-ai-chat/src/type.mjs +1 -0
  59. package/es/packages/components/yc-ai-chat/src/welcome.vue.mjs +5 -0
  60. package/es/packages/components/yc-ai-chat/src/welcome2.vue.mjs +95 -0
  61. package/es/version.d.ts +1 -1
  62. package/es/version.mjs +1 -1
  63. package/index.css +12 -2
  64. package/index.js +15879 -14138
  65. package/index.min.css +11 -1
  66. package/index.min.js +44 -28
  67. package/index.min.mjs +44 -28
  68. package/index.mjs +15857 -14127
  69. package/lib/components/dialog/index.d.ts +6 -6
  70. package/lib/components/dialog/src/index.vue.d.ts +2 -2
  71. package/lib/components/dialog-form/index.d.ts +6 -6
  72. package/lib/components/dialog-form/src/index.vue.d.ts +6 -6
  73. package/lib/components/display-item/index.d.ts +21 -21
  74. package/lib/components/display-item/src/index.vue.d.ts +19 -19
  75. package/lib/components/drawer-form/index.d.ts +18 -18
  76. package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
  77. package/lib/components/form/index.d.ts +12 -12
  78. package/lib/components/form/src/form-content.vue.d.ts +12 -12
  79. package/lib/components/form/src/index.vue.d.ts +12 -12
  80. package/lib/components/form-item/index.d.ts +12 -12
  81. package/lib/components/form-item/src/index.vue.d.ts +10 -10
  82. package/lib/components/index.d.ts +1 -0
  83. package/lib/components/page/index.d.ts +258 -258
  84. package/lib/components/page/src/index.vue.d.ts +90 -90
  85. package/lib/components/render/index.d.ts +1 -1
  86. package/lib/components/render/src/index.vue.d.ts +1 -1
  87. package/lib/components/search/index.d.ts +78 -78
  88. package/lib/components/search/src/index.vue.d.ts +30 -30
  89. package/lib/components/table/src/table-column.vue.d.ts +46 -46
  90. package/lib/components/yc-ai-chat/index.d.ts +14 -0
  91. package/lib/components/yc-ai-chat/src/bubble.vue.d.ts +28 -0
  92. package/lib/components/yc-ai-chat/src/file-card.vue.d.ts +18 -0
  93. package/lib/components/yc-ai-chat/src/mobile-frame.vue.d.ts +33 -0
  94. package/lib/components/yc-ai-chat/src/presets.d.ts +6 -0
  95. package/lib/components/yc-ai-chat/src/select.vue.d.ts +23 -0
  96. package/lib/components/yc-ai-chat/src/sender.vue.d.ts +45 -0
  97. package/lib/components/yc-ai-chat/src/sidebar.vue.d.ts +28 -0
  98. package/lib/components/yc-ai-chat/src/studio.vue.d.ts +47 -0
  99. package/lib/components/yc-ai-chat/src/thinking.vue.d.ts +9 -0
  100. package/lib/components/yc-ai-chat/src/type.d.ts +34 -0
  101. package/lib/components/yc-ai-chat/src/welcome.vue.d.ts +29 -0
  102. package/lib/components/yc-plus-page/src/index.vue.d.ts +264 -264
  103. package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
  104. package/lib/hooks/usePlusFormReset.d.ts +144 -144
  105. package/lib/index.css +8 -8
  106. package/lib/index.js +23 -0
  107. package/lib/packages/components/index.js +23 -0
  108. package/lib/packages/components/yc-ai-chat/index.js +31 -0
  109. package/lib/packages/components/yc-ai-chat/src/bubble.vue.js +9 -0
  110. package/lib/packages/components/yc-ai-chat/src/bubble2.vue.js +294 -0
  111. package/lib/packages/components/yc-ai-chat/src/file-card.vue.js +9 -0
  112. package/lib/packages/components/yc-ai-chat/src/file-card2.vue.js +131 -0
  113. package/lib/packages/components/yc-ai-chat/src/mobile-frame.vue.js +9 -0
  114. package/lib/packages/components/yc-ai-chat/src/mobile-frame2.vue.js +252 -0
  115. package/lib/packages/components/yc-ai-chat/src/presets.js +60 -0
  116. package/lib/packages/components/yc-ai-chat/src/select.vue.js +9 -0
  117. package/lib/packages/components/yc-ai-chat/src/select2.vue.js +341 -0
  118. package/lib/packages/components/yc-ai-chat/src/sender.vue.js +9 -0
  119. package/lib/packages/components/yc-ai-chat/src/sender2.vue.js +437 -0
  120. package/lib/packages/components/yc-ai-chat/src/sidebar.vue.js +9 -0
  121. package/lib/packages/components/yc-ai-chat/src/sidebar2.vue.js +283 -0
  122. package/lib/packages/components/yc-ai-chat/src/studio.vue.js +9 -0
  123. package/lib/packages/components/yc-ai-chat/src/studio2.vue.js +395 -0
  124. package/lib/packages/components/yc-ai-chat/src/thinking.vue.js +9 -0
  125. package/lib/packages/components/yc-ai-chat/src/thinking2.vue.js +92 -0
  126. package/lib/packages/components/yc-ai-chat/src/type.js +2 -0
  127. package/lib/packages/components/yc-ai-chat/src/welcome.vue.js +9 -0
  128. package/lib/packages/components/yc-ai-chat/src/welcome2.vue.js +99 -0
  129. package/lib/version.d.ts +1 -1
  130. package/lib/version.js +1 -1
  131. package/locale/en.js +1 -1
  132. package/locale/en.min.js +1 -1
  133. package/locale/en.min.mjs +1 -1
  134. package/locale/en.mjs +1 -1
  135. package/locale/ja.js +1 -1
  136. package/locale/ja.min.js +1 -1
  137. package/locale/ja.min.mjs +1 -1
  138. package/locale/ja.mjs +1 -1
  139. package/locale/ko.js +1 -1
  140. package/locale/ko.min.js +1 -1
  141. package/locale/ko.min.mjs +1 -1
  142. package/locale/ko.mjs +1 -1
  143. package/locale/zh-cn.js +1 -1
  144. package/locale/zh-cn.min.js +1 -1
  145. package/locale/zh-cn.min.mjs +1 -1
  146. package/locale/zh-cn.mjs +1 -1
  147. package/locale/zh-tw.js +1 -1
  148. package/locale/zh-tw.min.js +1 -1
  149. package/locale/zh-tw.min.mjs +1 -1
  150. package/locale/zh-tw.mjs +1 -1
  151. package/package.json +2 -1
  152. package/theme-chalk/index.css +12 -2
  153. package/theme-chalk/plus-yc-ai-chat.css +1 -0
  154. package/theme-chalk/src/index.scss +1 -0
  155. package/theme-chalk/src/yc-ai-chat.scss +1694 -0
@@ -0,0 +1,1694 @@
1
+ .yc-chat-studio {
2
+ --yc-ink-900: #0f172a;
3
+ --yc-ink-700: #334155;
4
+ --yc-ink-500: #64748b;
5
+ --yc-ink-400: #94a3b8;
6
+ --yc-surface-0: #ffffff;
7
+ --yc-surface-50: #f8fafc;
8
+ --yc-surface-100: #f1f5f9;
9
+ --yc-line-200: #e2e8f0;
10
+ --yc-line-300: #cbd5e1;
11
+ --yc-accent-blue: #2563eb;
12
+ --yc-accent-blue-bg: #eff6ff;
13
+ --yc-accent-blue-border: #bfdbfe;
14
+ --yc-chat-thinking-bg: #f8fafc;
15
+
16
+ display: flex;
17
+ flex-direction: column;
18
+ height: calc(100vh - 96px);
19
+ min-height: 620px;
20
+ background: var(--yc-surface-0);
21
+ border: 1px solid var(--yc-line-200);
22
+ border-radius: 12px;
23
+ overflow: hidden;
24
+ color: var(--yc-ink-900);
25
+ font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Inter", sans-serif;
26
+
27
+ &__notices {
28
+ display: flex;
29
+ flex-direction: column;
30
+ gap: 8px;
31
+ padding: 10px 16px 0;
32
+ background: var(--yc-surface-0);
33
+ flex-shrink: 0;
34
+ }
35
+
36
+ &__topbar {
37
+ display: flex;
38
+ align-items: center;
39
+ justify-content: space-between;
40
+ gap: 12px;
41
+ min-height: 52px;
42
+ padding: 8px 14px;
43
+ background: var(--yc-surface-0);
44
+ border-bottom: 1px solid var(--yc-line-200);
45
+ flex-shrink: 0;
46
+ flex-wrap: wrap;
47
+ }
48
+
49
+ &__left {
50
+ display: flex;
51
+ align-items: center;
52
+ gap: 8px;
53
+ flex-wrap: wrap;
54
+ min-width: 0;
55
+ }
56
+
57
+ &__right {
58
+ display: flex;
59
+ align-items: center;
60
+ gap: 8px;
61
+ flex-wrap: wrap;
62
+ margin-left: auto;
63
+ }
64
+
65
+ &__icon-btn {
66
+ display: inline-flex;
67
+ align-items: center;
68
+ justify-content: center;
69
+ width: 32px;
70
+ height: 32px;
71
+ border: 1px solid var(--yc-line-200);
72
+ border-radius: 8px;
73
+ background: var(--yc-surface-0);
74
+ color: var(--yc-ink-700);
75
+ cursor: pointer;
76
+ transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
77
+
78
+ svg {
79
+ width: 16px;
80
+ height: 16px;
81
+ }
82
+
83
+ &:hover {
84
+ background: var(--yc-surface-50);
85
+ border-color: var(--yc-line-300);
86
+ color: var(--yc-ink-900);
87
+ }
88
+ }
89
+
90
+ &__context {
91
+ display: flex;
92
+ align-items: center;
93
+ gap: 6px;
94
+ flex-wrap: wrap;
95
+ }
96
+
97
+ &__status-group {
98
+ display: inline-flex;
99
+ align-items: center;
100
+ gap: 8px;
101
+ padding-left: 4px;
102
+ }
103
+
104
+ &__status-chip {
105
+ display: inline-flex;
106
+ align-items: center;
107
+ gap: 6px;
108
+ height: 26px;
109
+ padding: 0 9px;
110
+ border-radius: 999px;
111
+ font-size: 12px;
112
+ font-weight: 500;
113
+ background: var(--yc-surface-100);
114
+ color: var(--yc-ink-500);
115
+ border: 1px solid transparent;
116
+
117
+ .status-dot {
118
+ width: 6px;
119
+ height: 6px;
120
+ border-radius: 50%;
121
+ background: var(--yc-ink-400);
122
+ }
123
+
124
+ &.is-connected {
125
+ background: #ecfdf5;
126
+ border-color: #a7f3d0;
127
+ color: #047857;
128
+ .status-dot {
129
+ background: #10b981;
130
+ }
131
+ }
132
+
133
+ &.is-connecting {
134
+ background: #fffbeb;
135
+ border-color: #fde68a;
136
+ color: #b45309;
137
+ .status-dot {
138
+ background: #f59e0b;
139
+ }
140
+ }
141
+
142
+ &.is-error {
143
+ background: #fef2f2;
144
+ border-color: #fecaca;
145
+ color: #b91c1c;
146
+ .status-dot {
147
+ background: #ef4444;
148
+ }
149
+ }
150
+ }
151
+
152
+ &__subtitle {
153
+ font-size: 12px;
154
+ color: var(--yc-ink-400);
155
+ white-space: nowrap;
156
+
157
+ @media (max-width: 1280px) {
158
+ display: none;
159
+ }
160
+ }
161
+
162
+ &__segmented {
163
+ display: inline-flex;
164
+ align-items: center;
165
+ gap: 2px;
166
+ padding: 3px;
167
+ border-radius: 8px;
168
+ background: var(--yc-surface-100);
169
+ border: 1px solid var(--yc-line-200);
170
+ }
171
+
172
+ &__segment-btn {
173
+ display: inline-flex;
174
+ align-items: center;
175
+ gap: 5px;
176
+ height: 26px;
177
+ padding: 0 10px;
178
+ border: none;
179
+ border-radius: 6px;
180
+ background: transparent;
181
+ color: var(--yc-ink-500);
182
+ font-size: 12.5px;
183
+ font-weight: 500;
184
+ cursor: pointer;
185
+ transition: all 0.15s ease;
186
+
187
+ svg {
188
+ width: 14px;
189
+ height: 14px;
190
+ }
191
+
192
+ &:hover:not(.is-active) {
193
+ color: var(--yc-ink-900);
194
+ }
195
+
196
+ &.is-active {
197
+ background: var(--yc-surface-0);
198
+ color: var(--yc-ink-900);
199
+ font-weight: 600;
200
+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
201
+ }
202
+ }
203
+
204
+ &__devices {
205
+ display: inline-flex;
206
+ align-items: center;
207
+ gap: 4px;
208
+ }
209
+
210
+ &__device-pill {
211
+ height: 28px;
212
+ padding: 0 10px;
213
+ border: 1px solid var(--yc-line-200);
214
+ border-radius: 7px;
215
+ background: var(--yc-surface-0);
216
+ color: var(--yc-ink-500);
217
+ font-size: 12px;
218
+ font-weight: 500;
219
+ cursor: pointer;
220
+ transition: all 0.15s ease;
221
+
222
+ &:hover {
223
+ border-color: var(--yc-line-300);
224
+ color: var(--yc-ink-900);
225
+ }
226
+
227
+ &.is-active {
228
+ background: var(--yc-ink-900);
229
+ border-color: var(--yc-ink-900);
230
+ color: #ffffff;
231
+ }
232
+ }
233
+
234
+ &__ghost-btn {
235
+ display: inline-flex;
236
+ align-items: center;
237
+ gap: 5px;
238
+ height: 32px;
239
+ padding: 0 11px;
240
+ border: 1px solid var(--yc-line-200);
241
+ border-radius: 8px;
242
+ background: var(--yc-surface-0);
243
+ color: var(--yc-ink-700);
244
+ font-size: 12.5px;
245
+ font-weight: 500;
246
+ cursor: pointer;
247
+ transition: all 0.15s ease;
248
+
249
+ svg {
250
+ width: 14px;
251
+ height: 14px;
252
+ }
253
+
254
+ .is-spinning {
255
+ animation: yc-chat-spin 0.9s linear infinite;
256
+ }
257
+
258
+ &:hover:not(:disabled) {
259
+ background: var(--yc-surface-50);
260
+ border-color: var(--yc-line-300);
261
+ color: var(--yc-ink-900);
262
+ }
263
+
264
+ &:disabled {
265
+ opacity: 0.5;
266
+ cursor: not-allowed;
267
+ }
268
+ }
269
+
270
+ &__web-body {
271
+ flex: 1;
272
+ min-height: 0;
273
+ display: flex;
274
+ overflow: hidden;
275
+ }
276
+
277
+ &__sidebar-wrap {
278
+ width: 256px;
279
+ flex-shrink: 0;
280
+ border-right: 1px solid var(--yc-line-200);
281
+ background: #fcfcfd;
282
+ transition: width 0.2s ease;
283
+ overflow: hidden;
284
+
285
+ &.is-collapsed {
286
+ width: 0;
287
+ border-right-color: transparent;
288
+ }
289
+ }
290
+
291
+ &__main {
292
+ flex: 1;
293
+ min-width: 0;
294
+ min-height: 0;
295
+ display: flex;
296
+ flex-direction: column;
297
+ background: var(--yc-surface-0);
298
+ }
299
+
300
+ &__stream {
301
+ flex: 1;
302
+ min-height: 0;
303
+ overflow-y: auto;
304
+ padding: 24px 24px 12px;
305
+ scroll-behavior: smooth;
306
+ }
307
+
308
+ &__stream-inner {
309
+ width: 100%;
310
+ max-width: 800px;
311
+ margin: 0 auto;
312
+ min-height: 100%;
313
+ display: flex;
314
+ flex-direction: column;
315
+ }
316
+
317
+ &__composer-dock {
318
+ flex-shrink: 0;
319
+ padding: 8px 24px 20px;
320
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 30%);
321
+ }
322
+
323
+ &__composer-inner {
324
+ width: 100%;
325
+ max-width: 800px;
326
+ margin: 0 auto;
327
+ }
328
+
329
+ &__mobile-stage {
330
+ flex: 1;
331
+ min-height: 0;
332
+ display: flex;
333
+ align-items: center;
334
+ justify-content: center;
335
+ padding: 16px;
336
+ overflow-y: auto;
337
+ background-color: var(--yc-surface-50);
338
+ background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
339
+ background-size: 18px 18px;
340
+ }
341
+
342
+ &__mobile-canvas {
343
+ display: flex;
344
+ align-items: center;
345
+ justify-content: center;
346
+ width: 100%;
347
+ min-height: 0;
348
+ }
349
+
350
+ &__mobile-stream {
351
+ height: 100%;
352
+ overflow-y: auto;
353
+ padding: 12px 12px 8px;
354
+ display: flex;
355
+ flex-direction: column;
356
+ }
357
+ }
358
+
359
+ /* Shadcn / Linear 风格选择器 */
360
+ .yc-chat-select {
361
+ display: inline-flex;
362
+ align-items: center;
363
+ gap: 6px;
364
+ height: 32px;
365
+ padding: 0 9px 0 10px;
366
+ border: 1px solid #e2e8f0;
367
+ border-radius: 8px;
368
+ background: #ffffff;
369
+ color: #0f172a;
370
+ font-size: 12.5px;
371
+ line-height: 1;
372
+ cursor: pointer;
373
+ transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
374
+ max-width: 240px;
375
+
376
+ &:hover:not(:disabled) {
377
+ border-color: #cbd5e1;
378
+ background: #f8fafc;
379
+ }
380
+
381
+ &.is-open {
382
+ border-color: #0f172a;
383
+ box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
384
+ }
385
+
386
+ &:disabled,
387
+ &.is-disabled {
388
+ background: #f8fafc;
389
+ border-color: #e2e8f0;
390
+ color: #94a3b8;
391
+ cursor: not-allowed;
392
+ }
393
+
394
+ &__prefix {
395
+ font-size: 11.5px;
396
+ font-weight: 500;
397
+ color: #64748b;
398
+ padding-right: 6px;
399
+ border-right: 1px solid #e2e8f0;
400
+ white-space: nowrap;
401
+ flex-shrink: 0;
402
+ }
403
+
404
+ &__value {
405
+ font-weight: 500;
406
+ color: #475569;
407
+ overflow: hidden;
408
+ text-overflow: ellipsis;
409
+ white-space: nowrap;
410
+ }
411
+
412
+ &.has-value &__value {
413
+ color: #0f172a;
414
+ font-weight: 600;
415
+ }
416
+
417
+ &.is-disabled &__value {
418
+ color: #94a3b8;
419
+ font-weight: 400;
420
+ }
421
+
422
+ &__chevron {
423
+ width: 14px;
424
+ height: 14px;
425
+ color: #94a3b8;
426
+ flex-shrink: 0;
427
+ margin-left: 2px;
428
+ }
429
+
430
+ &__clear {
431
+ display: inline-flex;
432
+ align-items: center;
433
+ justify-content: center;
434
+ width: 16px;
435
+ height: 16px;
436
+ border-radius: 4px;
437
+ color: #94a3b8;
438
+ flex-shrink: 0;
439
+
440
+ svg {
441
+ width: 12px;
442
+ height: 12px;
443
+ }
444
+
445
+ &:hover {
446
+ background: #e2e8f0;
447
+ color: #0f172a;
448
+ }
449
+ }
450
+
451
+ &__popover {
452
+ z-index: 3200;
453
+ min-width: 220px;
454
+ max-width: 300px;
455
+ background: #ffffff;
456
+ border: 1px solid #e2e8f0;
457
+ border-radius: 10px;
458
+ box-shadow: 0 12px 32px -6px rgba(15, 23, 42, 0.14), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
459
+ overflow: hidden;
460
+ font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Inter", sans-serif;
461
+ }
462
+
463
+ &__search {
464
+ display: flex;
465
+ align-items: center;
466
+ gap: 7px;
467
+ padding: 8px 10px;
468
+ border-bottom: 1px solid #f1f5f9;
469
+ }
470
+
471
+ &__search-icon {
472
+ width: 14px;
473
+ height: 14px;
474
+ color: #94a3b8;
475
+ flex-shrink: 0;
476
+ }
477
+
478
+ &__search-input {
479
+ width: 100%;
480
+ border: none;
481
+ outline: none;
482
+ background: transparent;
483
+ font-size: 12.5px;
484
+ color: #0f172a;
485
+
486
+ &::placeholder {
487
+ color: #94a3b8;
488
+ }
489
+ }
490
+
491
+ &__list {
492
+ max-height: 256px;
493
+ overflow-y: auto;
494
+ padding: 4px;
495
+ }
496
+
497
+ &__empty {
498
+ padding: 18px 12px;
499
+ text-align: center;
500
+ font-size: 12.5px;
501
+ color: #94a3b8;
502
+ }
503
+
504
+ &__option {
505
+ display: flex;
506
+ align-items: center;
507
+ justify-content: space-between;
508
+ gap: 8px;
509
+ width: 100%;
510
+ padding: 7px 9px;
511
+ border: none;
512
+ border-radius: 6px;
513
+ background: transparent;
514
+ color: #334155;
515
+ font-size: 12.5px;
516
+ text-align: left;
517
+ cursor: pointer;
518
+ transition: background-color 0.12s ease, color 0.12s ease;
519
+
520
+ &:hover {
521
+ background: #f1f5f9;
522
+ color: #0f172a;
523
+ }
524
+
525
+ &.is-selected {
526
+ background: #f8fafc;
527
+ color: #0f172a;
528
+ font-weight: 600;
529
+ }
530
+ }
531
+
532
+ &__option-body {
533
+ display: flex;
534
+ flex-direction: column;
535
+ gap: 2px;
536
+ min-width: 0;
537
+ }
538
+
539
+ &__option-label {
540
+ overflow: hidden;
541
+ text-overflow: ellipsis;
542
+ white-space: nowrap;
543
+ }
544
+
545
+ &__option-desc {
546
+ font-size: 11px;
547
+ color: #94a3b8;
548
+ font-weight: 400;
549
+ }
550
+
551
+ &__check {
552
+ width: 14px;
553
+ height: 14px;
554
+ color: #0f172a;
555
+ flex-shrink: 0;
556
+ }
557
+ }
558
+
559
+ /* 左侧会话栏 */
560
+ .yc-chat-sidebar {
561
+ display: flex;
562
+ flex-direction: column;
563
+ width: 100%;
564
+ height: 100%;
565
+ min-width: 220px;
566
+
567
+ &__header {
568
+ display: flex;
569
+ flex-direction: column;
570
+ gap: 8px;
571
+ padding: 12px;
572
+ border-bottom: 1px solid #f1f5f9;
573
+ }
574
+
575
+ &__create-btn {
576
+ display: inline-flex;
577
+ align-items: center;
578
+ justify-content: center;
579
+ gap: 6px;
580
+ width: 100%;
581
+ height: 36px;
582
+ padding: 0 12px;
583
+ border-radius: 8px;
584
+ border: 1px solid #0f172a;
585
+ background: #0f172a;
586
+ color: #ffffff;
587
+ font-size: 13px;
588
+ font-weight: 500;
589
+ cursor: pointer;
590
+ transition: all 0.15s ease;
591
+
592
+ svg {
593
+ width: 15px;
594
+ height: 15px;
595
+ }
596
+
597
+ &:hover:not(:disabled) {
598
+ background: #1e293b;
599
+ border-color: #1e293b;
600
+ }
601
+
602
+ &:disabled {
603
+ background: #f1f5f9;
604
+ border-color: #e2e8f0;
605
+ color: #94a3b8;
606
+ cursor: not-allowed;
607
+ }
608
+ }
609
+
610
+ &__search {
611
+ display: flex;
612
+ align-items: center;
613
+ gap: 6px;
614
+ height: 30px;
615
+ padding: 0 9px;
616
+ border: 1px solid #e2e8f0;
617
+ border-radius: 7px;
618
+ background: #ffffff;
619
+
620
+ svg {
621
+ width: 13px;
622
+ height: 13px;
623
+ color: #94a3b8;
624
+ flex-shrink: 0;
625
+ }
626
+ }
627
+
628
+ &__search-input {
629
+ width: 100%;
630
+ border: none;
631
+ outline: none;
632
+ background: transparent;
633
+ font-size: 12px;
634
+ color: #0f172a;
635
+
636
+ &::placeholder {
637
+ color: #94a3b8;
638
+ }
639
+ }
640
+
641
+ &__body {
642
+ flex: 1;
643
+ min-height: 0;
644
+ overflow-y: auto;
645
+ }
646
+
647
+ &__empty {
648
+ padding: 40px 16px;
649
+ text-align: center;
650
+ font-size: 12.5px;
651
+ color: #94a3b8;
652
+ line-height: 1.6;
653
+ }
654
+
655
+ &__item {
656
+ display: flex;
657
+ align-items: center;
658
+ justify-content: space-between;
659
+ gap: 8px;
660
+ width: 100%;
661
+ min-width: 0;
662
+ padding: 2px 0;
663
+ }
664
+
665
+ &__item-main {
666
+ flex: 1;
667
+ min-width: 0;
668
+ }
669
+
670
+ &__item-title {
671
+ font-size: 13px;
672
+ font-weight: 500;
673
+ color: #0f172a;
674
+ overflow: hidden;
675
+ text-overflow: ellipsis;
676
+ white-space: nowrap;
677
+ line-height: 1.4;
678
+ }
679
+
680
+ &__item-time {
681
+ margin-top: 2px;
682
+ font-size: 11px;
683
+ color: #94a3b8;
684
+ line-height: 1.3;
685
+ }
686
+
687
+ &__delete-btn {
688
+ display: inline-flex;
689
+ align-items: center;
690
+ justify-content: center;
691
+ width: 24px;
692
+ height: 24px;
693
+ border: none;
694
+ border-radius: 6px;
695
+ background: transparent;
696
+ color: #94a3b8;
697
+ opacity: 0;
698
+ cursor: pointer;
699
+ transition: all 0.14s ease;
700
+
701
+ svg {
702
+ width: 14px;
703
+ height: 14px;
704
+ }
705
+
706
+ &:hover {
707
+ background: #fef2f2;
708
+ color: #dc2626;
709
+ }
710
+ }
711
+
712
+ &__item:hover &__delete-btn,
713
+ &__item.active &__delete-btn {
714
+ opacity: 1;
715
+ }
716
+
717
+ &__more {
718
+ padding: 8px 0 12px;
719
+ text-align: center;
720
+ }
721
+
722
+ &__more-btn {
723
+ border: none;
724
+ background: transparent;
725
+ color: #475569;
726
+ font-size: 12px;
727
+ cursor: pointer;
728
+
729
+ &:hover:not(:disabled) {
730
+ color: #0f172a;
731
+ text-decoration: underline;
732
+ }
733
+ }
734
+ }
735
+
736
+ /* 欢迎空态与示例卡片 */
737
+ .yc-chat-welcome {
738
+ flex: 1;
739
+ display: flex;
740
+ align-items: center;
741
+ justify-content: center;
742
+ padding: 28px 16px;
743
+
744
+ &__inner {
745
+ width: 100%;
746
+ max-width: 620px;
747
+ display: flex;
748
+ flex-direction: column;
749
+ align-items: center;
750
+ gap: 26px;
751
+ }
752
+
753
+ &__hero {
754
+ display: flex;
755
+ flex-direction: column;
756
+ align-items: center;
757
+ text-align: center;
758
+ gap: 12px;
759
+ }
760
+
761
+ &__glyph {
762
+ width: 44px;
763
+ height: 44px;
764
+ display: inline-flex;
765
+ align-items: center;
766
+ justify-content: center;
767
+
768
+ svg,
769
+ img {
770
+ width: 44px;
771
+ height: 44px;
772
+ object-fit: contain;
773
+ }
774
+ }
775
+
776
+ .elx-welcome,
777
+ .elx-welcome-container {
778
+ align-items: center !important;
779
+ justify-content: center !important;
780
+ text-align: center !important;
781
+ padding: 0 !important;
782
+ background: transparent !important;
783
+ border: none !important;
784
+ box-shadow: none !important;
785
+ }
786
+
787
+ .elx-welcome__content {
788
+ align-items: center !important;
789
+ text-align: center !important;
790
+ }
791
+
792
+ .elx-welcome__title {
793
+ font-size: 19px !important;
794
+ font-weight: 600 !important;
795
+ color: #0f172a !important;
796
+ justify-content: center !important;
797
+ letter-spacing: -0.01em;
798
+ }
799
+
800
+ .elx-welcome__description {
801
+ font-size: 13.5px !important;
802
+ color: #64748b !important;
803
+ max-width: 420px;
804
+ margin: 4px auto 0 !important;
805
+ line-height: 1.6 !important;
806
+ }
807
+
808
+ &__prompts {
809
+ width: 100%;
810
+
811
+ .elx-prompts-title {
812
+ font-size: 12px !important;
813
+ font-weight: 500 !important;
814
+ color: #64748b !important;
815
+ margin-bottom: 8px !important;
816
+ }
817
+
818
+ .elx-prompts-items {
819
+ display: grid !important;
820
+ grid-template-columns: repeat(2, minmax(0, 1fr));
821
+ gap: 10px !important;
822
+ }
823
+
824
+ .elx-prompts-item {
825
+ width: 100% !important;
826
+ border-radius: 10px !important;
827
+ border: 1px solid #e2e8f0 !important;
828
+ background: #ffffff !important;
829
+ padding: 12px 14px !important;
830
+ transition: all 0.15s ease !important;
831
+
832
+ &:hover {
833
+ border-color: #94a3b8 !important;
834
+ background: #f8fafc !important;
835
+ transform: translateY(-1px);
836
+ }
837
+ }
838
+ }
839
+
840
+ &.is-compact {
841
+ padding: 18px 8px;
842
+
843
+ .yc-chat-welcome__glyph {
844
+ width: 38px;
845
+ height: 38px;
846
+
847
+ svg,
848
+ img {
849
+ width: 38px;
850
+ height: 38px;
851
+ }
852
+ }
853
+
854
+ .elx-welcome__title {
855
+ font-size: 16px !important;
856
+ }
857
+
858
+ .elx-welcome__description {
859
+ font-size: 12.5px !important;
860
+ }
861
+
862
+ .yc-chat-welcome__prompts .elx-prompts-items {
863
+ grid-template-columns: minmax(0, 1fr);
864
+ }
865
+ }
866
+ }
867
+
868
+ /* 对话气泡 */
869
+ .yc-chat-bubble {
870
+ width: 100%;
871
+ margin-bottom: 20px;
872
+
873
+ .el-bubble {
874
+ gap: 12px;
875
+ }
876
+
877
+ .el-bubble-content-wrapper {
878
+ max-width: min(720px, 100%);
879
+ }
880
+
881
+ &.user .el-bubble-content-wrapper {
882
+ max-width: min(580px, 86%);
883
+ align-items: flex-end;
884
+ }
885
+
886
+ &__avatar {
887
+ width: 28px;
888
+ height: 28px;
889
+ border-radius: 8px;
890
+ display: inline-flex;
891
+ align-items: center;
892
+ justify-content: center;
893
+ flex-shrink: 0;
894
+ background: #0f172a;
895
+ color: #ffffff;
896
+
897
+ svg {
898
+ width: 14px;
899
+ height: 14px;
900
+ }
901
+ }
902
+
903
+ &__header {
904
+ display: flex;
905
+ align-items: center;
906
+ gap: 8px;
907
+ margin-bottom: 4px;
908
+ }
909
+
910
+ &__sender {
911
+ font-size: 12.5px;
912
+ font-weight: 600;
913
+ color: #0f172a;
914
+ }
915
+
916
+ &__status {
917
+ font-size: 11px;
918
+ padding: 1px 7px;
919
+ border-radius: 999px;
920
+ background: #fef2f2;
921
+ color: #dc2626;
922
+ }
923
+
924
+ &__surface {
925
+ &.assistant {
926
+ background: #ffffff;
927
+ border: 1px solid #e2e8f0;
928
+ border-radius: 12px;
929
+ padding: 12px 16px;
930
+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
931
+ }
932
+
933
+ &.user {
934
+ background: #f1f5f9;
935
+ border: 1px solid #e2e8f0;
936
+ border-radius: 18px 18px 4px 18px;
937
+ padding: 10px 15px;
938
+ color: #0f172a;
939
+ }
940
+ }
941
+
942
+ &__body {
943
+ display: flex;
944
+ flex-direction: column;
945
+ gap: 10px;
946
+ min-width: 0;
947
+ word-break: break-word;
948
+ }
949
+
950
+ &__metrics {
951
+ display: flex;
952
+ flex-wrap: wrap;
953
+ gap: 6px;
954
+ margin-top: 10px;
955
+ padding-top: 8px;
956
+ border-top: 1px dashed #e2e8f0;
957
+ }
958
+
959
+ &__metric-pill {
960
+ font-size: 11px;
961
+ font-variant-numeric: tabular-nums;
962
+ padding: 2px 7px;
963
+ border-radius: 5px;
964
+ background: #f8fafc;
965
+ color: #64748b;
966
+ }
967
+
968
+ &__footer {
969
+ display: flex;
970
+ align-items: flex-start;
971
+ justify-content: space-between;
972
+ gap: 10px;
973
+ margin-top: 4px;
974
+ width: 100%;
975
+
976
+ &.is-user {
977
+ justify-content: flex-end;
978
+ }
979
+ }
980
+
981
+ &__identifiers {
982
+ font-size: 11px;
983
+ color: #64748b;
984
+
985
+ summary {
986
+ cursor: pointer;
987
+ user-select: none;
988
+ &:hover {
989
+ color: #0f172a;
990
+ }
991
+ }
992
+
993
+ .message-identifiers__list {
994
+ margin-top: 4px;
995
+ padding: 6px 8px;
996
+ border-radius: 7px;
997
+ background: #f8fafc;
998
+ border: 1px solid #e2e8f0;
999
+ display: flex;
1000
+ flex-direction: column;
1001
+ gap: 2px;
1002
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1003
+ word-break: break-all;
1004
+ }
1005
+ }
1006
+
1007
+ &__actions {
1008
+ display: inline-flex;
1009
+ align-items: center;
1010
+ gap: 4px;
1011
+ margin-left: auto;
1012
+
1013
+ .message-action-btn {
1014
+ display: inline-flex;
1015
+ align-items: center;
1016
+ gap: 4px;
1017
+ height: 24px;
1018
+ padding: 0 7px;
1019
+ border: none;
1020
+ border-radius: 6px;
1021
+ background: transparent;
1022
+ color: #64748b;
1023
+ font-size: 11.5px;
1024
+ cursor: pointer;
1025
+ transition: all 0.14s ease;
1026
+
1027
+ svg {
1028
+ width: 13px;
1029
+ height: 13px;
1030
+ }
1031
+
1032
+ &:hover:not(:disabled) {
1033
+ background: #f1f5f9;
1034
+ color: #0f172a;
1035
+ }
1036
+
1037
+ &:disabled {
1038
+ opacity: 0.4;
1039
+ cursor: not-allowed;
1040
+ }
1041
+ }
1042
+ }
1043
+
1044
+ &.is-compact {
1045
+ margin-bottom: 14px;
1046
+
1047
+ .yc-chat-bubble__avatar {
1048
+ width: 24px;
1049
+ height: 24px;
1050
+ border-radius: 6px;
1051
+ }
1052
+
1053
+ .yc-chat-bubble__surface.assistant {
1054
+ padding: 10px 12px;
1055
+ border-radius: 10px;
1056
+ }
1057
+
1058
+ .yc-chat-bubble__surface.user {
1059
+ padding: 8px 12px;
1060
+ border-radius: 15px 15px 4px 15px;
1061
+ }
1062
+ }
1063
+ }
1064
+
1065
+ /* 深度思考与工具错误折叠块 */
1066
+ .yc-chat-thinking {
1067
+ width: 100%;
1068
+
1069
+ .el-thinking {
1070
+ margin: 0 !important;
1071
+ }
1072
+
1073
+ .trigger {
1074
+ padding: 5px 10px !important;
1075
+ border-radius: 7px !important;
1076
+ font-size: 12px !important;
1077
+ background: #f8fafc !important;
1078
+ border: 1px solid #e2e8f0 !important;
1079
+ }
1080
+
1081
+ &__label {
1082
+ font-size: 12px;
1083
+ font-weight: 500;
1084
+ color: #334155;
1085
+
1086
+ &.is-error {
1087
+ color: #dc2626;
1088
+ }
1089
+ }
1090
+
1091
+ &__body {
1092
+ font-size: 12.5px;
1093
+ line-height: 1.65;
1094
+ color: #64748b;
1095
+ white-space: pre-wrap;
1096
+ word-break: break-word;
1097
+
1098
+ &.is-error {
1099
+ color: #dc2626;
1100
+ }
1101
+ }
1102
+ }
1103
+
1104
+ /* 附件与产物文件卡 */
1105
+ .yc-chat-file-card {
1106
+ display: inline-flex;
1107
+ align-items: center;
1108
+ gap: 8px;
1109
+ max-width: 100%;
1110
+
1111
+ &--composer {
1112
+ position: relative;
1113
+ padding: 2px 6px 2px 2px;
1114
+ border-radius: 8px;
1115
+ background: #f8fafc;
1116
+ border: 1px solid #e2e8f0;
1117
+ }
1118
+
1119
+ &--artifact {
1120
+ display: flex;
1121
+ justify-content: space-between;
1122
+ width: 100%;
1123
+ padding: 6px 10px 6px 6px;
1124
+ border-radius: 9px;
1125
+ background: #f8fafc;
1126
+ border: 1px solid #e2e8f0;
1127
+ }
1128
+
1129
+ &__main {
1130
+ min-width: 0;
1131
+ flex: 1;
1132
+
1133
+ .elx-files-card {
1134
+ background: transparent !important;
1135
+ border: none !important;
1136
+ box-shadow: none !important;
1137
+ padding: 2px 4px !important;
1138
+ }
1139
+ }
1140
+
1141
+ &__remove {
1142
+ display: inline-flex;
1143
+ align-items: center;
1144
+ justify-content: center;
1145
+ width: 20px;
1146
+ height: 20px;
1147
+ border: none;
1148
+ border-radius: 50%;
1149
+ background: #e2e8f0;
1150
+ color: #475569;
1151
+ cursor: pointer;
1152
+
1153
+ svg {
1154
+ width: 11px;
1155
+ height: 11px;
1156
+ }
1157
+
1158
+ &:hover {
1159
+ background: #fee2e2;
1160
+ color: #dc2626;
1161
+ }
1162
+ }
1163
+
1164
+ &__download {
1165
+ display: inline-flex;
1166
+ align-items: center;
1167
+ gap: 4px;
1168
+ height: 28px;
1169
+ padding: 0 10px;
1170
+ border: 1px solid #e2e8f0;
1171
+ border-radius: 7px;
1172
+ background: #ffffff;
1173
+ color: #0f172a;
1174
+ font-size: 12px;
1175
+ font-weight: 500;
1176
+ cursor: pointer;
1177
+
1178
+ svg {
1179
+ width: 13px;
1180
+ height: 13px;
1181
+ }
1182
+
1183
+ &:hover:not(:disabled) {
1184
+ background: #f1f5f9;
1185
+ }
1186
+ }
1187
+ }
1188
+
1189
+ /* ChatGPT / DeepSeek 风格纯净输入框 */
1190
+ .yc-chat-sender {
1191
+ position: relative;
1192
+ background: #ffffff;
1193
+ border: 1px solid #cbd5e1;
1194
+ transition: border-color 0.16s ease, box-shadow 0.16s ease;
1195
+
1196
+ .composer-file-input {
1197
+ display: none;
1198
+ }
1199
+
1200
+ &__attachments {
1201
+ display: flex;
1202
+ flex-wrap: wrap;
1203
+ gap: 8px;
1204
+ margin-bottom: 8px;
1205
+ }
1206
+
1207
+ &__textarea {
1208
+ display: block;
1209
+ width: 100%;
1210
+ border: none;
1211
+ outline: none;
1212
+ resize: none;
1213
+ background: transparent;
1214
+ color: #0f172a;
1215
+ font-size: 14px;
1216
+ line-height: 1.6;
1217
+ font-family: inherit;
1218
+ padding: 2px 0;
1219
+
1220
+ &::placeholder {
1221
+ color: #94a3b8;
1222
+ }
1223
+
1224
+ &:disabled {
1225
+ cursor: not-allowed;
1226
+ color: #94a3b8;
1227
+ }
1228
+ }
1229
+
1230
+ &.is-web {
1231
+ padding: 12px 14px 10px;
1232
+ border-radius: 16px;
1233
+ box-shadow: 0 4px 20px -6px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.03);
1234
+
1235
+ &:focus-within {
1236
+ border-color: #0f172a;
1237
+ box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06), 0 8px 24px -8px rgba(15, 23, 42, 0.1);
1238
+ }
1239
+
1240
+ &.is-disabled {
1241
+ background: #fcfcfd;
1242
+ border-color: #e2e8f0;
1243
+ }
1244
+ }
1245
+
1246
+ &.is-dragover {
1247
+ border-color: #2563eb;
1248
+ background: #eff6ff;
1249
+ }
1250
+
1251
+ &__toolbar {
1252
+ display: flex;
1253
+ align-items: center;
1254
+ justify-content: space-between;
1255
+ gap: 10px;
1256
+ margin-top: 10px;
1257
+ }
1258
+
1259
+ &__controls {
1260
+ display: flex;
1261
+ align-items: center;
1262
+ gap: 6px;
1263
+ flex-wrap: wrap;
1264
+ flex: 1;
1265
+ min-width: 0;
1266
+ }
1267
+
1268
+ &__chip {
1269
+ display: inline-flex;
1270
+ align-items: center;
1271
+ gap: 5px;
1272
+ height: 30px;
1273
+ padding: 0 11px;
1274
+ border: 1px solid #e2e8f0;
1275
+ border-radius: 999px;
1276
+ background: #ffffff;
1277
+ color: #475569;
1278
+ font-size: 12.5px;
1279
+ font-weight: 500;
1280
+ cursor: pointer;
1281
+ transition: all 0.15s ease;
1282
+
1283
+ svg {
1284
+ width: 14px;
1285
+ height: 14px;
1286
+ }
1287
+
1288
+ &:hover:not(:disabled):not(.is-active) {
1289
+ border-color: #cbd5e1;
1290
+ background: #f8fafc;
1291
+ color: #0f172a;
1292
+ }
1293
+
1294
+ &.is-active {
1295
+ background: #eff6ff;
1296
+ border-color: #93c5fd;
1297
+ color: #1d4ed8;
1298
+ font-weight: 600;
1299
+ }
1300
+
1301
+ &:disabled {
1302
+ background: #f8fafc;
1303
+ border-color: #e2e8f0;
1304
+ color: #94a3b8;
1305
+ cursor: not-allowed;
1306
+ }
1307
+ }
1308
+
1309
+ &__submit-btn {
1310
+ width: 32px;
1311
+ height: 32px;
1312
+ border-radius: 50%;
1313
+ border: none;
1314
+ background: #0f172a;
1315
+ color: #ffffff;
1316
+ display: inline-flex;
1317
+ align-items: center;
1318
+ justify-content: center;
1319
+ flex-shrink: 0;
1320
+ cursor: pointer;
1321
+ transition: all 0.15s ease;
1322
+
1323
+ svg {
1324
+ width: 15px;
1325
+ height: 15px;
1326
+ }
1327
+
1328
+ &:hover:not(:disabled) {
1329
+ background: #1e293b;
1330
+ transform: translateY(-1px);
1331
+ }
1332
+
1333
+ &:disabled {
1334
+ background: #e2e8f0;
1335
+ color: #94a3b8;
1336
+ cursor: not-allowed;
1337
+ transform: none;
1338
+ }
1339
+
1340
+ &.is-stop {
1341
+ background: #0f172a;
1342
+ color: #ffffff;
1343
+ }
1344
+ }
1345
+
1346
+ .composer-stop-square {
1347
+ width: 9px;
1348
+ height: 9px;
1349
+ border-radius: 2px;
1350
+ background: currentColor;
1351
+ display: inline-block;
1352
+ }
1353
+
1354
+ &.is-mobile {
1355
+ border: none;
1356
+ border-top: 1px solid #e2e8f0;
1357
+ border-radius: 0;
1358
+ padding: 8px 10px;
1359
+ background: #ffffff;
1360
+ box-shadow: none;
1361
+ }
1362
+
1363
+ &__mobile-chips {
1364
+ display: flex;
1365
+ align-items: center;
1366
+ gap: 6px;
1367
+ margin-bottom: 6px;
1368
+
1369
+ .yc-chat-sender__chip {
1370
+ height: 25px;
1371
+ padding: 0 9px;
1372
+ font-size: 11.5px;
1373
+ }
1374
+ }
1375
+
1376
+ &__mobile-row {
1377
+ display: flex;
1378
+ align-items: flex-end;
1379
+ gap: 8px;
1380
+
1381
+ .yc-chat-sender__textarea {
1382
+ background: #f1f5f9;
1383
+ border-radius: 18px;
1384
+ padding: 7px 12px;
1385
+ font-size: 13.5px;
1386
+ line-height: 1.45;
1387
+ max-height: 96px;
1388
+ }
1389
+ }
1390
+
1391
+ &__mobile-attach {
1392
+ width: 32px;
1393
+ height: 32px;
1394
+ border-radius: 50%;
1395
+ border: 1px solid #e2e8f0;
1396
+ background: #ffffff;
1397
+ color: #475569;
1398
+ display: inline-flex;
1399
+ align-items: center;
1400
+ justify-content: center;
1401
+ flex-shrink: 0;
1402
+ cursor: pointer;
1403
+
1404
+ svg {
1405
+ width: 15px;
1406
+ height: 15px;
1407
+ }
1408
+
1409
+ &:disabled {
1410
+ color: #cbd5e1;
1411
+ background: #f8fafc;
1412
+ cursor: not-allowed;
1413
+ }
1414
+ }
1415
+ }
1416
+
1417
+ /* 移动端真机模拟器 */
1418
+ .yc-mobile-device {
1419
+ display: flex;
1420
+ flex-direction: column;
1421
+ align-items: center;
1422
+ gap: 8px;
1423
+
1424
+ &__shell {
1425
+ width: calc(var(--yc-device-width, 393px) + 20px);
1426
+ height: min(calc(var(--yc-device-height, 800px) + 20px), calc(100vh - 200px));
1427
+ min-height: 500px;
1428
+ padding: 10px;
1429
+ border-radius: 42px;
1430
+ background: linear-gradient(145deg, #27272a 0%, #09090b 100%);
1431
+ box-shadow: 0 24px 60px -16px rgba(15, 23, 42, 0.26), 0 6px 20px -6px rgba(15, 23, 42, 0.12);
1432
+ display: flex;
1433
+ flex-direction: column;
1434
+ overflow: hidden;
1435
+ border: 1px solid rgba(255, 255, 255, 0.14);
1436
+ }
1437
+
1438
+ &__statusbar {
1439
+ height: 30px;
1440
+ padding: 4px 18px 0;
1441
+ background: #ffffff;
1442
+ color: #0f172a;
1443
+ border-radius: 32px 32px 0 0;
1444
+ display: flex;
1445
+ align-items: center;
1446
+ justify-content: space-between;
1447
+ flex-shrink: 0;
1448
+ }
1449
+
1450
+ &__clock {
1451
+ font-size: 12px;
1452
+ font-weight: 600;
1453
+ font-variant-numeric: tabular-nums;
1454
+ width: 48px;
1455
+ }
1456
+
1457
+ &__island {
1458
+ width: 80px;
1459
+ height: 19px;
1460
+ border-radius: 999px;
1461
+ background: #09090b;
1462
+ }
1463
+
1464
+ &__signals {
1465
+ display: inline-flex;
1466
+ align-items: center;
1467
+ justify-content: flex-end;
1468
+ gap: 5px;
1469
+ width: 48px;
1470
+ }
1471
+
1472
+ &__signal-svg {
1473
+ width: 15px;
1474
+ height: 10px;
1475
+ }
1476
+
1477
+ &__battery-svg {
1478
+ width: 21px;
1479
+ height: 11px;
1480
+ }
1481
+
1482
+ &__navbar {
1483
+ height: 44px;
1484
+ padding: 0 10px;
1485
+ background: #ffffff;
1486
+ border-bottom: 1px solid #e2e8f0;
1487
+ display: flex;
1488
+ align-items: center;
1489
+ justify-content: space-between;
1490
+ flex-shrink: 0;
1491
+ }
1492
+
1493
+ &__nav-btn {
1494
+ position: relative;
1495
+ width: 32px;
1496
+ height: 32px;
1497
+ border: none;
1498
+ border-radius: 8px;
1499
+ background: transparent;
1500
+ color: #334155;
1501
+ display: inline-flex;
1502
+ align-items: center;
1503
+ justify-content: center;
1504
+ cursor: pointer;
1505
+
1506
+ svg {
1507
+ width: 16px;
1508
+ height: 16px;
1509
+ }
1510
+
1511
+ &:hover:not(:disabled) {
1512
+ background: #f1f5f9;
1513
+ color: #0f172a;
1514
+ }
1515
+
1516
+ &:disabled {
1517
+ color: #cbd5e1;
1518
+ cursor: not-allowed;
1519
+ }
1520
+ }
1521
+
1522
+ &__badge {
1523
+ position: absolute;
1524
+ top: 2px;
1525
+ right: 1px;
1526
+ min-width: 14px;
1527
+ height: 14px;
1528
+ padding: 0 3px;
1529
+ border-radius: 999px;
1530
+ background: #0f172a;
1531
+ color: #ffffff;
1532
+ font-size: 9px;
1533
+ line-height: 14px;
1534
+ text-align: center;
1535
+ }
1536
+
1537
+ &__nav-center {
1538
+ display: flex;
1539
+ flex-direction: column;
1540
+ align-items: center;
1541
+ min-width: 0;
1542
+ }
1543
+
1544
+ &__nav-title {
1545
+ font-size: 13.5px;
1546
+ font-weight: 600;
1547
+ color: #0f172a;
1548
+ max-width: 170px;
1549
+ overflow: hidden;
1550
+ text-overflow: ellipsis;
1551
+ white-space: nowrap;
1552
+ }
1553
+
1554
+ &__nav-sub {
1555
+ display: inline-flex;
1556
+ align-items: center;
1557
+ gap: 4px;
1558
+ font-size: 10.5px;
1559
+ color: #64748b;
1560
+ }
1561
+
1562
+ &__dot {
1563
+ width: 6px;
1564
+ height: 6px;
1565
+ border-radius: 50%;
1566
+ background: #94a3b8;
1567
+
1568
+ &.is-connected {
1569
+ background: #10b981;
1570
+ }
1571
+ &.is-connecting {
1572
+ background: #f59e0b;
1573
+ }
1574
+ &.is-error {
1575
+ background: #ef4444;
1576
+ }
1577
+ }
1578
+
1579
+ &__nav-actions {
1580
+ display: inline-flex;
1581
+ align-items: center;
1582
+ gap: 2px;
1583
+ }
1584
+
1585
+ &__viewport {
1586
+ position: relative;
1587
+ flex: 1;
1588
+ min-height: 0;
1589
+ display: flex;
1590
+ flex-direction: column;
1591
+ background: #f8fafc;
1592
+ overflow: hidden;
1593
+ }
1594
+
1595
+ &__body {
1596
+ flex: 1;
1597
+ min-height: 0;
1598
+ display: flex;
1599
+ flex-direction: column;
1600
+ overflow: hidden;
1601
+ }
1602
+
1603
+ &__footer {
1604
+ flex-shrink: 0;
1605
+ background: #ffffff;
1606
+ }
1607
+
1608
+ &__drawer-mask {
1609
+ position: absolute;
1610
+ inset: 0;
1611
+ z-index: 15;
1612
+ background: rgba(15, 23, 42, 0.36);
1613
+ display: flex;
1614
+ }
1615
+
1616
+ &__drawer {
1617
+ width: 82%;
1618
+ height: 100%;
1619
+ background: #ffffff;
1620
+ display: flex;
1621
+ flex-direction: column;
1622
+ box-shadow: 8px 0 24px rgba(15, 23, 42, 0.16);
1623
+ }
1624
+
1625
+ &__drawer-top {
1626
+ height: 42px;
1627
+ padding: 0 10px 0 14px;
1628
+ border-bottom: 1px solid #e2e8f0;
1629
+ display: flex;
1630
+ align-items: center;
1631
+ justify-content: space-between;
1632
+ font-size: 13px;
1633
+ font-weight: 600;
1634
+ color: #0f172a;
1635
+ }
1636
+
1637
+ &__drawer-content {
1638
+ flex: 1;
1639
+ min-height: 0;
1640
+ overflow: hidden;
1641
+ }
1642
+
1643
+ &__home-bar {
1644
+ height: 18px;
1645
+ background: #ffffff;
1646
+ border-radius: 0 0 32px 32px;
1647
+ display: flex;
1648
+ align-items: center;
1649
+ justify-content: center;
1650
+ flex-shrink: 0;
1651
+
1652
+ span {
1653
+ width: 118px;
1654
+ height: 4px;
1655
+ border-radius: 999px;
1656
+ background: rgba(15, 23, 42, 0.2);
1657
+ }
1658
+ }
1659
+
1660
+ &__caption {
1661
+ display: inline-flex;
1662
+ align-items: center;
1663
+ gap: 8px;
1664
+ font-size: 12px;
1665
+ color: #64748b;
1666
+ }
1667
+ }
1668
+
1669
+ @keyframes yc-chat-spin {
1670
+ to {
1671
+ transform: rotate(360deg);
1672
+ }
1673
+ }
1674
+
1675
+ @media (max-width: 768px) {
1676
+ .yc-chat-studio {
1677
+ height: calc(100dvh - 84px);
1678
+ min-height: 480px;
1679
+ border-radius: 10px;
1680
+
1681
+ &__sidebar-wrap {
1682
+ width: 0;
1683
+ border-right-color: transparent;
1684
+ }
1685
+
1686
+ &__stream {
1687
+ padding: 14px 12px 8px;
1688
+ }
1689
+
1690
+ &__composer-dock {
1691
+ padding: 6px 10px 12px;
1692
+ }
1693
+ }
1694
+ }