yc-agent-ui 1.1.2 → 1.2.0

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 (145) hide show
  1. package/es/components/dialog-form/index.d.ts +4 -4
  2. package/es/components/dialog-form/src/index.vue.d.ts +4 -4
  3. package/es/components/display-item/index.d.ts +15 -15
  4. package/es/components/display-item/src/index.vue.d.ts +13 -13
  5. package/es/components/drawer-form/index.d.ts +4 -4
  6. package/es/components/drawer-form/src/index.vue.d.ts +4 -4
  7. package/es/components/form/index.d.ts +8 -8
  8. package/es/components/form/src/form-content.vue.d.ts +8 -8
  9. package/es/components/form/src/index.vue.d.ts +8 -8
  10. package/es/components/form-item/index.d.ts +6 -6
  11. package/es/components/form-item/src/index.vue.d.ts +6 -6
  12. package/es/components/index.d.ts +1 -0
  13. package/es/components/page/index.d.ts +172 -172
  14. package/es/components/page/src/index.vue.d.ts +60 -60
  15. package/es/components/search/index.d.ts +52 -52
  16. package/es/components/search/src/index.vue.d.ts +20 -20
  17. package/es/components/table/src/table-column.vue.d.ts +34 -34
  18. package/es/components/yc-ai-chat/index.d.ts +14 -0
  19. package/es/components/yc-ai-chat/src/bubble.vue.d.ts +27 -0
  20. package/es/components/yc-ai-chat/src/file-card.vue.d.ts +18 -0
  21. package/es/components/yc-ai-chat/src/mobile-frame.vue.d.ts +31 -0
  22. package/es/components/yc-ai-chat/src/presets.d.ts +6 -0
  23. package/es/components/yc-ai-chat/src/select.vue.d.ts +23 -0
  24. package/es/components/yc-ai-chat/src/sender.vue.d.ts +44 -0
  25. package/es/components/yc-ai-chat/src/sidebar.vue.d.ts +23 -0
  26. package/es/components/yc-ai-chat/src/studio.vue.d.ts +46 -0
  27. package/es/components/yc-ai-chat/src/thinking.vue.d.ts +9 -0
  28. package/es/components/yc-ai-chat/src/type.d.ts +34 -0
  29. package/es/components/yc-ai-chat/src/welcome.vue.d.ts +19 -0
  30. package/es/components/yc-plus-page/src/index.vue.d.ts +176 -176
  31. package/es/hooks/usePlusFormReset.d.ts +48 -48
  32. package/es/index.css +10 -10
  33. package/es/index.mjs +10 -0
  34. package/es/packages/components/index.mjs +10 -0
  35. package/es/packages/components/yc-ai-chat/index.mjs +14 -0
  36. package/es/packages/components/yc-ai-chat/src/bubble.vue.mjs +5 -0
  37. package/es/packages/components/yc-ai-chat/src/bubble2.vue.mjs +289 -0
  38. package/es/packages/components/yc-ai-chat/src/file-card.vue.mjs +5 -0
  39. package/es/packages/components/yc-ai-chat/src/file-card2.vue.mjs +127 -0
  40. package/es/packages/components/yc-ai-chat/src/mobile-frame.vue.mjs +5 -0
  41. package/es/packages/components/yc-ai-chat/src/mobile-frame2.vue.mjs +245 -0
  42. package/es/packages/components/yc-ai-chat/src/presets.mjs +55 -0
  43. package/es/packages/components/yc-ai-chat/src/select.vue.mjs +5 -0
  44. package/es/packages/components/yc-ai-chat/src/select2.vue.mjs +337 -0
  45. package/es/packages/components/yc-ai-chat/src/sender.vue.mjs +5 -0
  46. package/es/packages/components/yc-ai-chat/src/sender2.vue.mjs +432 -0
  47. package/es/packages/components/yc-ai-chat/src/sidebar.vue.mjs +5 -0
  48. package/es/packages/components/yc-ai-chat/src/sidebar2.vue.mjs +251 -0
  49. package/es/packages/components/yc-ai-chat/src/studio.vue.mjs +5 -0
  50. package/es/packages/components/yc-ai-chat/src/studio2.vue.mjs +421 -0
  51. package/es/packages/components/yc-ai-chat/src/thinking.vue.mjs +5 -0
  52. package/es/packages/components/yc-ai-chat/src/thinking2.vue.mjs +88 -0
  53. package/es/packages/components/yc-ai-chat/src/type.mjs +1 -0
  54. package/es/packages/components/yc-ai-chat/src/welcome.vue.mjs +5 -0
  55. package/es/packages/components/yc-ai-chat/src/welcome2.vue.mjs +113 -0
  56. package/es/version.d.ts +1 -1
  57. package/es/version.mjs +1 -1
  58. package/index.css +12 -2
  59. package/index.js +18953 -17197
  60. package/index.min.css +11 -1
  61. package/index.min.js +44 -28
  62. package/index.min.mjs +44 -28
  63. package/index.mjs +18931 -17186
  64. package/lib/components/dialog-form/index.d.ts +4 -4
  65. package/lib/components/dialog-form/src/index.vue.d.ts +4 -4
  66. package/lib/components/display-item/index.d.ts +15 -15
  67. package/lib/components/display-item/src/index.vue.d.ts +13 -13
  68. package/lib/components/drawer-form/index.d.ts +4 -4
  69. package/lib/components/drawer-form/src/index.vue.d.ts +4 -4
  70. package/lib/components/form/index.d.ts +8 -8
  71. package/lib/components/form/src/form-content.vue.d.ts +8 -8
  72. package/lib/components/form/src/index.vue.d.ts +8 -8
  73. package/lib/components/form-item/index.d.ts +6 -6
  74. package/lib/components/form-item/src/index.vue.d.ts +6 -6
  75. package/lib/components/index.d.ts +1 -0
  76. package/lib/components/page/index.d.ts +172 -172
  77. package/lib/components/page/src/index.vue.d.ts +60 -60
  78. package/lib/components/search/index.d.ts +52 -52
  79. package/lib/components/search/src/index.vue.d.ts +20 -20
  80. package/lib/components/table/src/table-column.vue.d.ts +34 -34
  81. package/lib/components/yc-ai-chat/index.d.ts +14 -0
  82. package/lib/components/yc-ai-chat/src/bubble.vue.d.ts +27 -0
  83. package/lib/components/yc-ai-chat/src/file-card.vue.d.ts +18 -0
  84. package/lib/components/yc-ai-chat/src/mobile-frame.vue.d.ts +31 -0
  85. package/lib/components/yc-ai-chat/src/presets.d.ts +6 -0
  86. package/lib/components/yc-ai-chat/src/select.vue.d.ts +23 -0
  87. package/lib/components/yc-ai-chat/src/sender.vue.d.ts +44 -0
  88. package/lib/components/yc-ai-chat/src/sidebar.vue.d.ts +23 -0
  89. package/lib/components/yc-ai-chat/src/studio.vue.d.ts +46 -0
  90. package/lib/components/yc-ai-chat/src/thinking.vue.d.ts +9 -0
  91. package/lib/components/yc-ai-chat/src/type.d.ts +34 -0
  92. package/lib/components/yc-ai-chat/src/welcome.vue.d.ts +19 -0
  93. package/lib/components/yc-plus-page/src/index.vue.d.ts +176 -176
  94. package/lib/hooks/usePlusFormReset.d.ts +48 -48
  95. package/lib/index.css +10 -10
  96. package/lib/index.js +23 -0
  97. package/lib/packages/components/index.js +23 -0
  98. package/lib/packages/components/yc-ai-chat/index.js +31 -0
  99. package/lib/packages/components/yc-ai-chat/src/bubble.vue.js +9 -0
  100. package/lib/packages/components/yc-ai-chat/src/bubble2.vue.js +293 -0
  101. package/lib/packages/components/yc-ai-chat/src/file-card.vue.js +9 -0
  102. package/lib/packages/components/yc-ai-chat/src/file-card2.vue.js +131 -0
  103. package/lib/packages/components/yc-ai-chat/src/mobile-frame.vue.js +9 -0
  104. package/lib/packages/components/yc-ai-chat/src/mobile-frame2.vue.js +249 -0
  105. package/lib/packages/components/yc-ai-chat/src/presets.js +60 -0
  106. package/lib/packages/components/yc-ai-chat/src/select.vue.js +9 -0
  107. package/lib/packages/components/yc-ai-chat/src/select2.vue.js +341 -0
  108. package/lib/packages/components/yc-ai-chat/src/sender.vue.js +9 -0
  109. package/lib/packages/components/yc-ai-chat/src/sender2.vue.js +436 -0
  110. package/lib/packages/components/yc-ai-chat/src/sidebar.vue.js +9 -0
  111. package/lib/packages/components/yc-ai-chat/src/sidebar2.vue.js +255 -0
  112. package/lib/packages/components/yc-ai-chat/src/studio.vue.js +9 -0
  113. package/lib/packages/components/yc-ai-chat/src/studio2.vue.js +425 -0
  114. package/lib/packages/components/yc-ai-chat/src/thinking.vue.js +9 -0
  115. package/lib/packages/components/yc-ai-chat/src/thinking2.vue.js +92 -0
  116. package/lib/packages/components/yc-ai-chat/src/type.js +2 -0
  117. package/lib/packages/components/yc-ai-chat/src/welcome.vue.js +9 -0
  118. package/lib/packages/components/yc-ai-chat/src/welcome2.vue.js +117 -0
  119. package/lib/version.d.ts +1 -1
  120. package/lib/version.js +1 -1
  121. package/locale/en.js +1 -1
  122. package/locale/en.min.js +1 -1
  123. package/locale/en.min.mjs +1 -1
  124. package/locale/en.mjs +1 -1
  125. package/locale/ja.js +1 -1
  126. package/locale/ja.min.js +1 -1
  127. package/locale/ja.min.mjs +1 -1
  128. package/locale/ja.mjs +1 -1
  129. package/locale/ko.js +1 -1
  130. package/locale/ko.min.js +1 -1
  131. package/locale/ko.min.mjs +1 -1
  132. package/locale/ko.mjs +1 -1
  133. package/locale/zh-cn.js +1 -1
  134. package/locale/zh-cn.min.js +1 -1
  135. package/locale/zh-cn.min.mjs +1 -1
  136. package/locale/zh-cn.mjs +1 -1
  137. package/locale/zh-tw.js +1 -1
  138. package/locale/zh-tw.min.js +1 -1
  139. package/locale/zh-tw.min.mjs +1 -1
  140. package/locale/zh-tw.mjs +1 -1
  141. package/package.json +2 -1
  142. package/theme-chalk/index.css +12 -2
  143. package/theme-chalk/plus-yc-ai-chat.css +1 -0
  144. package/theme-chalk/src/index.scss +1 -0
  145. package/theme-chalk/src/yc-ai-chat.scss +1691 -0
@@ -0,0 +1,1691 @@
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
+ border-radius: 12px;
765
+ background: #0f172a;
766
+ color: #ffffff;
767
+ display: inline-flex;
768
+ align-items: center;
769
+ justify-content: center;
770
+ box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.18);
771
+
772
+ svg {
773
+ width: 22px;
774
+ height: 22px;
775
+ }
776
+ }
777
+
778
+ .elx-welcome,
779
+ .elx-welcome-container {
780
+ align-items: center !important;
781
+ justify-content: center !important;
782
+ text-align: center !important;
783
+ padding: 0 !important;
784
+ background: transparent !important;
785
+ border: none !important;
786
+ box-shadow: none !important;
787
+ }
788
+
789
+ .elx-welcome__content {
790
+ align-items: center !important;
791
+ text-align: center !important;
792
+ }
793
+
794
+ .elx-welcome__title {
795
+ font-size: 19px !important;
796
+ font-weight: 600 !important;
797
+ color: #0f172a !important;
798
+ justify-content: center !important;
799
+ letter-spacing: -0.01em;
800
+ }
801
+
802
+ .elx-welcome__description {
803
+ font-size: 13.5px !important;
804
+ color: #64748b !important;
805
+ max-width: 420px;
806
+ margin: 4px auto 0 !important;
807
+ line-height: 1.6 !important;
808
+ }
809
+
810
+ &__prompts {
811
+ width: 100%;
812
+
813
+ .elx-prompts-title {
814
+ font-size: 12px !important;
815
+ font-weight: 500 !important;
816
+ color: #64748b !important;
817
+ margin-bottom: 8px !important;
818
+ }
819
+
820
+ .elx-prompts-items {
821
+ display: grid !important;
822
+ grid-template-columns: repeat(2, minmax(0, 1fr));
823
+ gap: 10px !important;
824
+ }
825
+
826
+ .elx-prompts-item {
827
+ width: 100% !important;
828
+ border-radius: 10px !important;
829
+ border: 1px solid #e2e8f0 !important;
830
+ background: #ffffff !important;
831
+ padding: 12px 14px !important;
832
+ transition: all 0.15s ease !important;
833
+
834
+ &:hover {
835
+ border-color: #94a3b8 !important;
836
+ background: #f8fafc !important;
837
+ transform: translateY(-1px);
838
+ }
839
+ }
840
+ }
841
+
842
+ &.is-compact {
843
+ padding: 18px 8px;
844
+
845
+ .yc-chat-welcome__glyph {
846
+ width: 38px;
847
+ height: 38px;
848
+ border-radius: 10px;
849
+ }
850
+
851
+ .elx-welcome__title {
852
+ font-size: 16px !important;
853
+ }
854
+
855
+ .elx-welcome__description {
856
+ font-size: 12.5px !important;
857
+ }
858
+
859
+ .yc-chat-welcome__prompts .elx-prompts-items {
860
+ grid-template-columns: minmax(0, 1fr);
861
+ }
862
+ }
863
+ }
864
+
865
+ /* 对话气泡 */
866
+ .yc-chat-bubble {
867
+ width: 100%;
868
+ margin-bottom: 20px;
869
+
870
+ .el-bubble {
871
+ gap: 12px;
872
+ }
873
+
874
+ .el-bubble-content-wrapper {
875
+ max-width: min(720px, 100%);
876
+ }
877
+
878
+ &.user .el-bubble-content-wrapper {
879
+ max-width: min(580px, 86%);
880
+ align-items: flex-end;
881
+ }
882
+
883
+ &__avatar {
884
+ width: 28px;
885
+ height: 28px;
886
+ border-radius: 8px;
887
+ display: inline-flex;
888
+ align-items: center;
889
+ justify-content: center;
890
+ flex-shrink: 0;
891
+ background: #0f172a;
892
+ color: #ffffff;
893
+
894
+ svg {
895
+ width: 14px;
896
+ height: 14px;
897
+ }
898
+ }
899
+
900
+ &__header {
901
+ display: flex;
902
+ align-items: center;
903
+ gap: 8px;
904
+ margin-bottom: 4px;
905
+ }
906
+
907
+ &__sender {
908
+ font-size: 12.5px;
909
+ font-weight: 600;
910
+ color: #0f172a;
911
+ }
912
+
913
+ &__status {
914
+ font-size: 11px;
915
+ padding: 1px 7px;
916
+ border-radius: 999px;
917
+ background: #fef2f2;
918
+ color: #dc2626;
919
+ }
920
+
921
+ &__surface {
922
+ &.assistant {
923
+ background: #ffffff;
924
+ border: 1px solid #e2e8f0;
925
+ border-radius: 12px;
926
+ padding: 12px 16px;
927
+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
928
+ }
929
+
930
+ &.user {
931
+ background: #f1f5f9;
932
+ border: 1px solid #e2e8f0;
933
+ border-radius: 18px 18px 4px 18px;
934
+ padding: 10px 15px;
935
+ color: #0f172a;
936
+ }
937
+ }
938
+
939
+ &__body {
940
+ display: flex;
941
+ flex-direction: column;
942
+ gap: 10px;
943
+ min-width: 0;
944
+ word-break: break-word;
945
+ }
946
+
947
+ &__metrics {
948
+ display: flex;
949
+ flex-wrap: wrap;
950
+ gap: 6px;
951
+ margin-top: 10px;
952
+ padding-top: 8px;
953
+ border-top: 1px dashed #e2e8f0;
954
+ }
955
+
956
+ &__metric-pill {
957
+ font-size: 11px;
958
+ font-variant-numeric: tabular-nums;
959
+ padding: 2px 7px;
960
+ border-radius: 5px;
961
+ background: #f8fafc;
962
+ color: #64748b;
963
+ }
964
+
965
+ &__footer {
966
+ display: flex;
967
+ align-items: flex-start;
968
+ justify-content: space-between;
969
+ gap: 10px;
970
+ margin-top: 4px;
971
+ width: 100%;
972
+
973
+ &.is-user {
974
+ justify-content: flex-end;
975
+ }
976
+ }
977
+
978
+ &__identifiers {
979
+ font-size: 11px;
980
+ color: #64748b;
981
+
982
+ summary {
983
+ cursor: pointer;
984
+ user-select: none;
985
+ &:hover {
986
+ color: #0f172a;
987
+ }
988
+ }
989
+
990
+ .message-identifiers__list {
991
+ margin-top: 4px;
992
+ padding: 6px 8px;
993
+ border-radius: 7px;
994
+ background: #f8fafc;
995
+ border: 1px solid #e2e8f0;
996
+ display: flex;
997
+ flex-direction: column;
998
+ gap: 2px;
999
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1000
+ word-break: break-all;
1001
+ }
1002
+ }
1003
+
1004
+ &__actions {
1005
+ display: inline-flex;
1006
+ align-items: center;
1007
+ gap: 4px;
1008
+ margin-left: auto;
1009
+
1010
+ .message-action-btn {
1011
+ display: inline-flex;
1012
+ align-items: center;
1013
+ gap: 4px;
1014
+ height: 24px;
1015
+ padding: 0 7px;
1016
+ border: none;
1017
+ border-radius: 6px;
1018
+ background: transparent;
1019
+ color: #64748b;
1020
+ font-size: 11.5px;
1021
+ cursor: pointer;
1022
+ transition: all 0.14s ease;
1023
+
1024
+ svg {
1025
+ width: 13px;
1026
+ height: 13px;
1027
+ }
1028
+
1029
+ &:hover:not(:disabled) {
1030
+ background: #f1f5f9;
1031
+ color: #0f172a;
1032
+ }
1033
+
1034
+ &:disabled {
1035
+ opacity: 0.4;
1036
+ cursor: not-allowed;
1037
+ }
1038
+ }
1039
+ }
1040
+
1041
+ &.is-compact {
1042
+ margin-bottom: 14px;
1043
+
1044
+ .yc-chat-bubble__avatar {
1045
+ width: 24px;
1046
+ height: 24px;
1047
+ border-radius: 6px;
1048
+ }
1049
+
1050
+ .yc-chat-bubble__surface.assistant {
1051
+ padding: 10px 12px;
1052
+ border-radius: 10px;
1053
+ }
1054
+
1055
+ .yc-chat-bubble__surface.user {
1056
+ padding: 8px 12px;
1057
+ border-radius: 15px 15px 4px 15px;
1058
+ }
1059
+ }
1060
+ }
1061
+
1062
+ /* 深度思考与工具错误折叠块 */
1063
+ .yc-chat-thinking {
1064
+ width: 100%;
1065
+
1066
+ .el-thinking {
1067
+ margin: 0 !important;
1068
+ }
1069
+
1070
+ .trigger {
1071
+ padding: 5px 10px !important;
1072
+ border-radius: 7px !important;
1073
+ font-size: 12px !important;
1074
+ background: #f8fafc !important;
1075
+ border: 1px solid #e2e8f0 !important;
1076
+ }
1077
+
1078
+ &__label {
1079
+ font-size: 12px;
1080
+ font-weight: 500;
1081
+ color: #334155;
1082
+
1083
+ &.is-error {
1084
+ color: #dc2626;
1085
+ }
1086
+ }
1087
+
1088
+ &__body {
1089
+ font-size: 12.5px;
1090
+ line-height: 1.65;
1091
+ color: #64748b;
1092
+ white-space: pre-wrap;
1093
+ word-break: break-word;
1094
+
1095
+ &.is-error {
1096
+ color: #dc2626;
1097
+ }
1098
+ }
1099
+ }
1100
+
1101
+ /* 附件与产物文件卡 */
1102
+ .yc-chat-file-card {
1103
+ display: inline-flex;
1104
+ align-items: center;
1105
+ gap: 8px;
1106
+ max-width: 100%;
1107
+
1108
+ &--composer {
1109
+ position: relative;
1110
+ padding: 2px 6px 2px 2px;
1111
+ border-radius: 8px;
1112
+ background: #f8fafc;
1113
+ border: 1px solid #e2e8f0;
1114
+ }
1115
+
1116
+ &--artifact {
1117
+ display: flex;
1118
+ justify-content: space-between;
1119
+ width: 100%;
1120
+ padding: 6px 10px 6px 6px;
1121
+ border-radius: 9px;
1122
+ background: #f8fafc;
1123
+ border: 1px solid #e2e8f0;
1124
+ }
1125
+
1126
+ &__main {
1127
+ min-width: 0;
1128
+ flex: 1;
1129
+
1130
+ .elx-files-card {
1131
+ background: transparent !important;
1132
+ border: none !important;
1133
+ box-shadow: none !important;
1134
+ padding: 2px 4px !important;
1135
+ }
1136
+ }
1137
+
1138
+ &__remove {
1139
+ display: inline-flex;
1140
+ align-items: center;
1141
+ justify-content: center;
1142
+ width: 20px;
1143
+ height: 20px;
1144
+ border: none;
1145
+ border-radius: 50%;
1146
+ background: #e2e8f0;
1147
+ color: #475569;
1148
+ cursor: pointer;
1149
+
1150
+ svg {
1151
+ width: 11px;
1152
+ height: 11px;
1153
+ }
1154
+
1155
+ &:hover {
1156
+ background: #fee2e2;
1157
+ color: #dc2626;
1158
+ }
1159
+ }
1160
+
1161
+ &__download {
1162
+ display: inline-flex;
1163
+ align-items: center;
1164
+ gap: 4px;
1165
+ height: 28px;
1166
+ padding: 0 10px;
1167
+ border: 1px solid #e2e8f0;
1168
+ border-radius: 7px;
1169
+ background: #ffffff;
1170
+ color: #0f172a;
1171
+ font-size: 12px;
1172
+ font-weight: 500;
1173
+ cursor: pointer;
1174
+
1175
+ svg {
1176
+ width: 13px;
1177
+ height: 13px;
1178
+ }
1179
+
1180
+ &:hover:not(:disabled) {
1181
+ background: #f1f5f9;
1182
+ }
1183
+ }
1184
+ }
1185
+
1186
+ /* ChatGPT / DeepSeek 风格纯净输入框 */
1187
+ .yc-chat-sender {
1188
+ position: relative;
1189
+ background: #ffffff;
1190
+ border: 1px solid #cbd5e1;
1191
+ transition: border-color 0.16s ease, box-shadow 0.16s ease;
1192
+
1193
+ .composer-file-input {
1194
+ display: none;
1195
+ }
1196
+
1197
+ &__attachments {
1198
+ display: flex;
1199
+ flex-wrap: wrap;
1200
+ gap: 8px;
1201
+ margin-bottom: 8px;
1202
+ }
1203
+
1204
+ &__textarea {
1205
+ display: block;
1206
+ width: 100%;
1207
+ border: none;
1208
+ outline: none;
1209
+ resize: none;
1210
+ background: transparent;
1211
+ color: #0f172a;
1212
+ font-size: 14px;
1213
+ line-height: 1.6;
1214
+ font-family: inherit;
1215
+ padding: 2px 0;
1216
+
1217
+ &::placeholder {
1218
+ color: #94a3b8;
1219
+ }
1220
+
1221
+ &:disabled {
1222
+ cursor: not-allowed;
1223
+ color: #94a3b8;
1224
+ }
1225
+ }
1226
+
1227
+ &.is-web {
1228
+ padding: 12px 14px 10px;
1229
+ border-radius: 16px;
1230
+ box-shadow: 0 4px 20px -6px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.03);
1231
+
1232
+ &:focus-within {
1233
+ border-color: #0f172a;
1234
+ box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06), 0 8px 24px -8px rgba(15, 23, 42, 0.1);
1235
+ }
1236
+
1237
+ &.is-disabled {
1238
+ background: #fcfcfd;
1239
+ border-color: #e2e8f0;
1240
+ }
1241
+ }
1242
+
1243
+ &.is-dragover {
1244
+ border-color: #2563eb;
1245
+ background: #eff6ff;
1246
+ }
1247
+
1248
+ &__toolbar {
1249
+ display: flex;
1250
+ align-items: center;
1251
+ justify-content: space-between;
1252
+ gap: 10px;
1253
+ margin-top: 10px;
1254
+ }
1255
+
1256
+ &__controls {
1257
+ display: flex;
1258
+ align-items: center;
1259
+ gap: 6px;
1260
+ flex-wrap: wrap;
1261
+ flex: 1;
1262
+ min-width: 0;
1263
+ }
1264
+
1265
+ &__chip {
1266
+ display: inline-flex;
1267
+ align-items: center;
1268
+ gap: 5px;
1269
+ height: 30px;
1270
+ padding: 0 11px;
1271
+ border: 1px solid #e2e8f0;
1272
+ border-radius: 999px;
1273
+ background: #ffffff;
1274
+ color: #475569;
1275
+ font-size: 12.5px;
1276
+ font-weight: 500;
1277
+ cursor: pointer;
1278
+ transition: all 0.15s ease;
1279
+
1280
+ svg {
1281
+ width: 14px;
1282
+ height: 14px;
1283
+ }
1284
+
1285
+ &:hover:not(:disabled):not(.is-active) {
1286
+ border-color: #cbd5e1;
1287
+ background: #f8fafc;
1288
+ color: #0f172a;
1289
+ }
1290
+
1291
+ &.is-active {
1292
+ background: #eff6ff;
1293
+ border-color: #93c5fd;
1294
+ color: #1d4ed8;
1295
+ font-weight: 600;
1296
+ }
1297
+
1298
+ &:disabled {
1299
+ background: #f8fafc;
1300
+ border-color: #e2e8f0;
1301
+ color: #94a3b8;
1302
+ cursor: not-allowed;
1303
+ }
1304
+ }
1305
+
1306
+ &__submit-btn {
1307
+ width: 32px;
1308
+ height: 32px;
1309
+ border-radius: 50%;
1310
+ border: none;
1311
+ background: #0f172a;
1312
+ color: #ffffff;
1313
+ display: inline-flex;
1314
+ align-items: center;
1315
+ justify-content: center;
1316
+ flex-shrink: 0;
1317
+ cursor: pointer;
1318
+ transition: all 0.15s ease;
1319
+
1320
+ svg {
1321
+ width: 15px;
1322
+ height: 15px;
1323
+ }
1324
+
1325
+ &:hover:not(:disabled) {
1326
+ background: #1e293b;
1327
+ transform: translateY(-1px);
1328
+ }
1329
+
1330
+ &:disabled {
1331
+ background: #e2e8f0;
1332
+ color: #94a3b8;
1333
+ cursor: not-allowed;
1334
+ transform: none;
1335
+ }
1336
+
1337
+ &.is-stop {
1338
+ background: #0f172a;
1339
+ color: #ffffff;
1340
+ }
1341
+ }
1342
+
1343
+ .composer-stop-square {
1344
+ width: 9px;
1345
+ height: 9px;
1346
+ border-radius: 2px;
1347
+ background: currentColor;
1348
+ display: inline-block;
1349
+ }
1350
+
1351
+ &.is-mobile {
1352
+ border: none;
1353
+ border-top: 1px solid #e2e8f0;
1354
+ border-radius: 0;
1355
+ padding: 8px 10px;
1356
+ background: #ffffff;
1357
+ box-shadow: none;
1358
+ }
1359
+
1360
+ &__mobile-chips {
1361
+ display: flex;
1362
+ align-items: center;
1363
+ gap: 6px;
1364
+ margin-bottom: 6px;
1365
+
1366
+ .yc-chat-sender__chip {
1367
+ height: 25px;
1368
+ padding: 0 9px;
1369
+ font-size: 11.5px;
1370
+ }
1371
+ }
1372
+
1373
+ &__mobile-row {
1374
+ display: flex;
1375
+ align-items: flex-end;
1376
+ gap: 8px;
1377
+
1378
+ .yc-chat-sender__textarea {
1379
+ background: #f1f5f9;
1380
+ border-radius: 18px;
1381
+ padding: 7px 12px;
1382
+ font-size: 13.5px;
1383
+ line-height: 1.45;
1384
+ max-height: 96px;
1385
+ }
1386
+ }
1387
+
1388
+ &__mobile-attach {
1389
+ width: 32px;
1390
+ height: 32px;
1391
+ border-radius: 50%;
1392
+ border: 1px solid #e2e8f0;
1393
+ background: #ffffff;
1394
+ color: #475569;
1395
+ display: inline-flex;
1396
+ align-items: center;
1397
+ justify-content: center;
1398
+ flex-shrink: 0;
1399
+ cursor: pointer;
1400
+
1401
+ svg {
1402
+ width: 15px;
1403
+ height: 15px;
1404
+ }
1405
+
1406
+ &:disabled {
1407
+ color: #cbd5e1;
1408
+ background: #f8fafc;
1409
+ cursor: not-allowed;
1410
+ }
1411
+ }
1412
+ }
1413
+
1414
+ /* 移动端真机模拟器 */
1415
+ .yc-mobile-device {
1416
+ display: flex;
1417
+ flex-direction: column;
1418
+ align-items: center;
1419
+ gap: 8px;
1420
+
1421
+ &__shell {
1422
+ width: calc(var(--yc-device-width, 393px) + 20px);
1423
+ height: min(calc(var(--yc-device-height, 800px) + 20px), calc(100vh - 200px));
1424
+ min-height: 500px;
1425
+ padding: 10px;
1426
+ border-radius: 42px;
1427
+ background: linear-gradient(145deg, #27272a 0%, #09090b 100%);
1428
+ box-shadow: 0 24px 60px -16px rgba(15, 23, 42, 0.26), 0 6px 20px -6px rgba(15, 23, 42, 0.12);
1429
+ display: flex;
1430
+ flex-direction: column;
1431
+ overflow: hidden;
1432
+ border: 1px solid rgba(255, 255, 255, 0.14);
1433
+ }
1434
+
1435
+ &__statusbar {
1436
+ height: 30px;
1437
+ padding: 4px 18px 0;
1438
+ background: #ffffff;
1439
+ color: #0f172a;
1440
+ border-radius: 32px 32px 0 0;
1441
+ display: flex;
1442
+ align-items: center;
1443
+ justify-content: space-between;
1444
+ flex-shrink: 0;
1445
+ }
1446
+
1447
+ &__clock {
1448
+ font-size: 12px;
1449
+ font-weight: 600;
1450
+ font-variant-numeric: tabular-nums;
1451
+ width: 48px;
1452
+ }
1453
+
1454
+ &__island {
1455
+ width: 80px;
1456
+ height: 19px;
1457
+ border-radius: 999px;
1458
+ background: #09090b;
1459
+ }
1460
+
1461
+ &__signals {
1462
+ display: inline-flex;
1463
+ align-items: center;
1464
+ justify-content: flex-end;
1465
+ gap: 5px;
1466
+ width: 48px;
1467
+ }
1468
+
1469
+ &__signal-svg {
1470
+ width: 15px;
1471
+ height: 10px;
1472
+ }
1473
+
1474
+ &__battery-svg {
1475
+ width: 21px;
1476
+ height: 11px;
1477
+ }
1478
+
1479
+ &__navbar {
1480
+ height: 44px;
1481
+ padding: 0 10px;
1482
+ background: #ffffff;
1483
+ border-bottom: 1px solid #e2e8f0;
1484
+ display: flex;
1485
+ align-items: center;
1486
+ justify-content: space-between;
1487
+ flex-shrink: 0;
1488
+ }
1489
+
1490
+ &__nav-btn {
1491
+ position: relative;
1492
+ width: 32px;
1493
+ height: 32px;
1494
+ border: none;
1495
+ border-radius: 8px;
1496
+ background: transparent;
1497
+ color: #334155;
1498
+ display: inline-flex;
1499
+ align-items: center;
1500
+ justify-content: center;
1501
+ cursor: pointer;
1502
+
1503
+ svg {
1504
+ width: 16px;
1505
+ height: 16px;
1506
+ }
1507
+
1508
+ &:hover:not(:disabled) {
1509
+ background: #f1f5f9;
1510
+ color: #0f172a;
1511
+ }
1512
+
1513
+ &:disabled {
1514
+ color: #cbd5e1;
1515
+ cursor: not-allowed;
1516
+ }
1517
+ }
1518
+
1519
+ &__badge {
1520
+ position: absolute;
1521
+ top: 2px;
1522
+ right: 1px;
1523
+ min-width: 14px;
1524
+ height: 14px;
1525
+ padding: 0 3px;
1526
+ border-radius: 999px;
1527
+ background: #0f172a;
1528
+ color: #ffffff;
1529
+ font-size: 9px;
1530
+ line-height: 14px;
1531
+ text-align: center;
1532
+ }
1533
+
1534
+ &__nav-center {
1535
+ display: flex;
1536
+ flex-direction: column;
1537
+ align-items: center;
1538
+ min-width: 0;
1539
+ }
1540
+
1541
+ &__nav-title {
1542
+ font-size: 13.5px;
1543
+ font-weight: 600;
1544
+ color: #0f172a;
1545
+ max-width: 170px;
1546
+ overflow: hidden;
1547
+ text-overflow: ellipsis;
1548
+ white-space: nowrap;
1549
+ }
1550
+
1551
+ &__nav-sub {
1552
+ display: inline-flex;
1553
+ align-items: center;
1554
+ gap: 4px;
1555
+ font-size: 10.5px;
1556
+ color: #64748b;
1557
+ }
1558
+
1559
+ &__dot {
1560
+ width: 6px;
1561
+ height: 6px;
1562
+ border-radius: 50%;
1563
+ background: #94a3b8;
1564
+
1565
+ &.is-connected {
1566
+ background: #10b981;
1567
+ }
1568
+ &.is-connecting {
1569
+ background: #f59e0b;
1570
+ }
1571
+ &.is-error {
1572
+ background: #ef4444;
1573
+ }
1574
+ }
1575
+
1576
+ &__nav-actions {
1577
+ display: inline-flex;
1578
+ align-items: center;
1579
+ gap: 2px;
1580
+ }
1581
+
1582
+ &__viewport {
1583
+ position: relative;
1584
+ flex: 1;
1585
+ min-height: 0;
1586
+ display: flex;
1587
+ flex-direction: column;
1588
+ background: #f8fafc;
1589
+ overflow: hidden;
1590
+ }
1591
+
1592
+ &__body {
1593
+ flex: 1;
1594
+ min-height: 0;
1595
+ display: flex;
1596
+ flex-direction: column;
1597
+ overflow: hidden;
1598
+ }
1599
+
1600
+ &__footer {
1601
+ flex-shrink: 0;
1602
+ background: #ffffff;
1603
+ }
1604
+
1605
+ &__drawer-mask {
1606
+ position: absolute;
1607
+ inset: 0;
1608
+ z-index: 15;
1609
+ background: rgba(15, 23, 42, 0.36);
1610
+ display: flex;
1611
+ }
1612
+
1613
+ &__drawer {
1614
+ width: 82%;
1615
+ height: 100%;
1616
+ background: #ffffff;
1617
+ display: flex;
1618
+ flex-direction: column;
1619
+ box-shadow: 8px 0 24px rgba(15, 23, 42, 0.16);
1620
+ }
1621
+
1622
+ &__drawer-top {
1623
+ height: 42px;
1624
+ padding: 0 10px 0 14px;
1625
+ border-bottom: 1px solid #e2e8f0;
1626
+ display: flex;
1627
+ align-items: center;
1628
+ justify-content: space-between;
1629
+ font-size: 13px;
1630
+ font-weight: 600;
1631
+ color: #0f172a;
1632
+ }
1633
+
1634
+ &__drawer-content {
1635
+ flex: 1;
1636
+ min-height: 0;
1637
+ overflow: hidden;
1638
+ }
1639
+
1640
+ &__home-bar {
1641
+ height: 18px;
1642
+ background: #ffffff;
1643
+ border-radius: 0 0 32px 32px;
1644
+ display: flex;
1645
+ align-items: center;
1646
+ justify-content: center;
1647
+ flex-shrink: 0;
1648
+
1649
+ span {
1650
+ width: 118px;
1651
+ height: 4px;
1652
+ border-radius: 999px;
1653
+ background: rgba(15, 23, 42, 0.2);
1654
+ }
1655
+ }
1656
+
1657
+ &__caption {
1658
+ display: inline-flex;
1659
+ align-items: center;
1660
+ gap: 8px;
1661
+ font-size: 12px;
1662
+ color: #64748b;
1663
+ }
1664
+ }
1665
+
1666
+ @keyframes yc-chat-spin {
1667
+ to {
1668
+ transform: rotate(360deg);
1669
+ }
1670
+ }
1671
+
1672
+ @media (max-width: 768px) {
1673
+ .yc-chat-studio {
1674
+ height: calc(100dvh - 84px);
1675
+ min-height: 480px;
1676
+ border-radius: 10px;
1677
+
1678
+ &__sidebar-wrap {
1679
+ width: 0;
1680
+ border-right-color: transparent;
1681
+ }
1682
+
1683
+ &__stream {
1684
+ padding: 14px 12px 8px;
1685
+ }
1686
+
1687
+ &__composer-dock {
1688
+ padding: 6px 10px 12px;
1689
+ }
1690
+ }
1691
+ }