codexmate 0.0.20 → 0.0.21

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 (102) hide show
  1. package/README.en.md +349 -259
  2. package/README.md +284 -252
  3. package/cli/agents-files.js +162 -0
  4. package/cli/archive-helpers.js +446 -0
  5. package/cli/auth-profiles.js +359 -0
  6. package/cli/builtin-proxy.js +580 -0
  7. package/cli/claude-proxy.js +998 -0
  8. package/cli/config-bootstrap.js +384 -0
  9. package/cli/config-health.js +338 -338
  10. package/cli/openclaw-config.js +629 -0
  11. package/cli/skills.js +1141 -0
  12. package/cli/zip-commands.js +510 -0
  13. package/cli.js +13101 -13497
  14. package/lib/cli-file-utils.js +151 -151
  15. package/lib/cli-models-utils.js +419 -311
  16. package/lib/cli-network-utils.js +164 -164
  17. package/lib/cli-path-utils.js +69 -0
  18. package/lib/cli-session-utils.js +121 -121
  19. package/lib/cli-sessions.js +386 -0
  20. package/lib/cli-utils.js +155 -155
  21. package/lib/download-artifacts.js +77 -0
  22. package/lib/mcp-stdio.js +440 -440
  23. package/lib/task-orchestrator.js +869 -0
  24. package/lib/text-diff.js +303 -303
  25. package/lib/workflow-engine.js +340 -340
  26. package/package.json +74 -70
  27. package/res/json5.min.js +1 -1
  28. package/res/vue.global.prod.js +13 -0
  29. package/web-ui/app.js +530 -397
  30. package/web-ui/index.html +33 -30
  31. package/web-ui/logic.agents-diff.mjs +386 -386
  32. package/web-ui/logic.claude.mjs +168 -108
  33. package/web-ui/logic.mjs +5 -5
  34. package/web-ui/logic.runtime.mjs +124 -124
  35. package/web-ui/logic.sessions.mjs +581 -263
  36. package/web-ui/modules/api.mjs +90 -69
  37. package/web-ui/modules/app.computed.dashboard.mjs +113 -113
  38. package/web-ui/modules/app.computed.index.mjs +15 -13
  39. package/web-ui/modules/app.computed.main-tabs.mjs +195 -0
  40. package/web-ui/modules/app.computed.session.mjs +507 -141
  41. package/web-ui/modules/app.constants.mjs +15 -15
  42. package/web-ui/modules/app.methods.agents.mjs +493 -493
  43. package/web-ui/modules/app.methods.claude-config.mjs +174 -174
  44. package/web-ui/modules/app.methods.codex-config.mjs +640 -640
  45. package/web-ui/modules/app.methods.index.mjs +88 -86
  46. package/web-ui/modules/app.methods.install.mjs +149 -157
  47. package/web-ui/modules/app.methods.navigation.mjs +619 -478
  48. package/web-ui/modules/app.methods.openclaw-core.mjs +814 -514
  49. package/web-ui/modules/app.methods.openclaw-editing.mjs +372 -337
  50. package/web-ui/modules/app.methods.openclaw-persist.mjs +369 -251
  51. package/web-ui/modules/app.methods.providers.mjs +363 -265
  52. package/web-ui/modules/app.methods.runtime.mjs +323 -323
  53. package/web-ui/modules/app.methods.session-actions.mjs +520 -457
  54. package/web-ui/modules/app.methods.session-browser.mjs +626 -435
  55. package/web-ui/modules/app.methods.session-timeline.mjs +448 -441
  56. package/web-ui/modules/app.methods.session-trash.mjs +422 -419
  57. package/web-ui/modules/app.methods.startup-claude.mjs +412 -406
  58. package/web-ui/modules/app.methods.task-orchestration.mjs +471 -0
  59. package/web-ui/modules/config-mode.computed.mjs +126 -124
  60. package/web-ui/modules/skills.computed.mjs +107 -107
  61. package/web-ui/modules/skills.methods.mjs +481 -481
  62. package/web-ui/partials/index/layout-footer.html +13 -69
  63. package/web-ui/partials/index/layout-header.html +402 -337
  64. package/web-ui/partials/index/modal-config-template-agents.html +125 -125
  65. package/web-ui/partials/index/modal-confirm-toast.html +32 -32
  66. package/web-ui/partials/index/modal-health-check.html +72 -72
  67. package/web-ui/partials/index/modal-openclaw-config.html +280 -275
  68. package/web-ui/partials/index/modal-skills.html +184 -184
  69. package/web-ui/partials/index/modals-basic.html +156 -196
  70. package/web-ui/partials/index/panel-config-claude.html +126 -100
  71. package/web-ui/partials/index/panel-config-codex.html +237 -237
  72. package/web-ui/partials/index/panel-config-openclaw.html +78 -84
  73. package/web-ui/partials/index/panel-docs.html +130 -0
  74. package/web-ui/partials/index/panel-market.html +174 -174
  75. package/web-ui/partials/index/panel-orchestration.html +397 -0
  76. package/web-ui/partials/index/panel-sessions.html +292 -387
  77. package/web-ui/partials/index/panel-settings.html +190 -166
  78. package/web-ui/partials/index/panel-usage.html +213 -0
  79. package/web-ui/session-helpers.mjs +559 -362
  80. package/web-ui/source-bundle.cjs +233 -233
  81. package/web-ui/styles/base-theme.css +271 -373
  82. package/web-ui/styles/controls-forms.css +360 -354
  83. package/web-ui/styles/docs-panel.css +182 -0
  84. package/web-ui/styles/feedback.css +108 -108
  85. package/web-ui/styles/health-check-dialog.css +144 -144
  86. package/web-ui/styles/layout-shell.css +376 -330
  87. package/web-ui/styles/modals-core.css +464 -449
  88. package/web-ui/styles/navigation-panels.css +348 -381
  89. package/web-ui/styles/openclaw-structured.css +266 -266
  90. package/web-ui/styles/responsive.css +450 -416
  91. package/web-ui/styles/sessions-list.css +400 -414
  92. package/web-ui/styles/sessions-preview.css +411 -405
  93. package/web-ui/styles/sessions-toolbar-trash.css +243 -243
  94. package/web-ui/styles/sessions-usage.css +628 -276
  95. package/web-ui/styles/skills-list.css +296 -298
  96. package/web-ui/styles/skills-market.css +335 -335
  97. package/web-ui/styles/task-orchestration.css +776 -0
  98. package/web-ui/styles/titles-cards.css +408 -407
  99. package/web-ui/styles.css +18 -16
  100. package/web-ui.html +17 -17
  101. package/res/screenshot.png +0 -0
  102. package/res/vue.global.js +0 -18552
@@ -1,407 +1,408 @@
1
- /* ============================================
2
- 主标题
3
- ============================================ */
4
- .main-title {
5
- font-size: var(--font-size-display);
6
- font-weight: var(--font-weight-display);
7
- line-height: var(--line-height-tight);
8
- letter-spacing: -0.03em;
9
- margin-bottom: 10px;
10
- color: var(--color-text-primary);
11
- font-family: var(--font-family-display);
12
- background: linear-gradient(135deg, var(--color-text-primary) 0%, rgba(27, 23, 20, 0.78) 100%);
13
- -webkit-background-clip: text;
14
- -webkit-text-fill-color: transparent;
15
- background-clip: text;
16
- }
17
-
18
- .main-title .accent {
19
- color: var(--color-brand);
20
- -webkit-text-fill-color: var(--color-brand);
21
- position: relative;
22
- }
23
-
24
- .subtitle {
25
- font-size: var(--font-size-body);
26
- color: var(--color-text-tertiary);
27
- line-height: var(--line-height-normal);
28
- margin-bottom: 20px;
29
- max-width: 640px;
30
- letter-spacing: 0.01em;
31
- }
32
-
33
- /* ============================================
34
- 模式切换器 - Segmented Control
35
- ============================================ */
36
- .segmented-control {
37
- display: flex;
38
- background: rgba(255, 255, 255, 0.92);
39
- border-radius: var(--radius-xl);
40
- padding: 6px;
41
- margin-bottom: 20px;
42
- position: relative;
43
- box-shadow: inset 0 1px 2px rgba(31, 26, 23, 0.06);
44
- border: 1px solid rgba(255, 255, 255, 0.7);
45
- backdrop-filter: blur(6px);
46
- }
47
-
48
- .segment {
49
- flex: 1;
50
- padding: 11px 16px;
51
- border: none;
52
- background: transparent;
53
- font-size: var(--font-size-body);
54
- font-weight: var(--font-weight-secondary);
55
- color: var(--color-text-secondary);
56
- cursor: pointer;
57
- border-radius: 10px;
58
- transition: all var(--transition-normal) var(--ease-spring);
59
- position: relative;
60
- z-index: 2;
61
- letter-spacing: 0.01em;
62
- }
63
-
64
- .segment:hover {
65
- color: var(--color-text-primary);
66
- }
67
-
68
- .segment.active {
69
- color: var(--color-text-primary);
70
- background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
71
- box-shadow: var(--shadow-subtle), inset 0 1px 0 rgba(255, 255, 255, 0.85);
72
- }
73
-
74
- /* ============================================
75
- 卡片列表
76
- ============================================ */
77
- .card-list {
78
- display: flex;
79
- flex-direction: column;
80
- gap: 12px;
81
- margin-bottom: 12px;
82
- }
83
-
84
- /* ============================================
85
- 卡片
86
- ============================================ */
87
- .card {
88
- background: linear-gradient(180deg, #fffdf9 0%, #fff8f2 100%);
89
- border-radius: var(--radius-lg);
90
- padding: 10px;
91
- display: flex;
92
- align-items: center;
93
- justify-content: space-between;
94
- cursor: pointer;
95
- transition:
96
- transform var(--transition-normal) var(--ease-spring),
97
- box-shadow var(--transition-normal) var(--ease-spring),
98
- background-color var(--transition-fast) var(--ease-smooth);
99
- box-shadow: 0 10px 24px rgba(27, 23, 20, 0.08);
100
- user-select: none;
101
- will-change: transform;
102
- border: 1px solid rgba(216, 201, 184, 0.55);
103
- position: relative;
104
- overflow: hidden;
105
- }
106
-
107
- .card:hover {
108
- transform: translateY(-1px);
109
- box-shadow: var(--shadow-card-hover);
110
- }
111
-
112
- .card::before,
113
- .card::after {
114
- content: "";
115
- position: absolute;
116
- pointer-events: none;
117
- }
118
-
119
- .card::before {
120
- left: 0;
121
- top: 10px;
122
- bottom: 10px;
123
- width: 3px;
124
- border-radius: 999px;
125
- background: transparent;
126
- transition: background var(--transition-fast) var(--ease-smooth);
127
- }
128
-
129
- .card::after {
130
- inset: 0;
131
- border-radius: inherit;
132
- background: linear-gradient(120deg, rgba(255, 255, 255, 0.7) 0%, transparent 55%);
133
- opacity: 0;
134
- transition: opacity var(--transition-normal) var(--ease-smooth);
135
- }
136
-
137
- .card:active {
138
- transform: translateY(0);
139
- transition: transform var(--transition-instant) var(--ease-smooth);
140
- }
141
-
142
- .card.active {
143
- background: linear-gradient(to bottom, rgba(210, 107, 90, 0.14) 0%, rgba(255, 255, 255, 0.98) 100%);
144
- border-color: rgba(201, 94, 75, 0.55);
145
- box-shadow: 0 10px 28px rgba(210, 107, 90, 0.14);
146
- }
147
-
148
- .card.active::before {
149
- background: linear-gradient(180deg, rgba(201, 94, 75, 0.95) 0%, rgba(201, 94, 75, 0.35) 100%);
150
- }
151
-
152
- .card:hover::after {
153
- opacity: 0.6;
154
- }
155
-
156
- .card.active .card-icon {
157
- transform: scale(1.05);
158
- }
159
-
160
- .card-leading {
161
- display: flex;
162
- align-items: center;
163
- gap: var(--spacing-sm);
164
- flex: 1;
165
- min-width: 0;
166
- }
167
-
168
- .card-icon {
169
- width: 40px;
170
- height: 40px;
171
- border-radius: var(--radius-sm);
172
- background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 241, 232, 0.65) 100%);
173
- display: flex;
174
- align-items: center;
175
- justify-content: center;
176
- font-size: var(--font-size-title);
177
- font-weight: var(--font-weight-title);
178
- color: var(--color-text-secondary);
179
- flex-shrink: 0;
180
- transition: all var(--transition-normal) var(--ease-spring-soft);
181
- box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7);
182
- }
183
-
184
- .card.active .card-icon {
185
- background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
186
- color: white;
187
- box-shadow: 0 2px 8px rgba(210, 107, 90, 0.3);
188
- }
189
-
190
- .card-content {
191
- display: flex;
192
- flex-direction: column;
193
- gap: 2px;
194
- min-width: 0;
195
- }
196
-
197
- .card-title {
198
- display: flex;
199
- align-items: center;
200
- gap: 8px;
201
- min-width: 0;
202
- font-size: var(--font-size-body);
203
- font-weight: var(--font-weight-secondary);
204
- color: var(--color-text-primary);
205
- white-space: nowrap;
206
- overflow: hidden;
207
- text-overflow: ellipsis;
208
- letter-spacing: -0.01em;
209
- }
210
-
211
- .card-title > span:first-child {
212
- min-width: 0;
213
- overflow: hidden;
214
- text-overflow: ellipsis;
215
- white-space: nowrap;
216
- }
217
-
218
- .provider-readonly-badge {
219
- display: inline-flex;
220
- align-items: center;
221
- justify-content: center;
222
- padding: 2px 8px;
223
- border-radius: var(--radius-full);
224
- font-size: 11px;
225
- line-height: 1;
226
- color: #6f4b00;
227
- background: linear-gradient(135deg, rgba(246, 211, 106, 0.32) 0%, rgba(246, 211, 106, 0.2) 100%);
228
- border: 1px solid rgba(191, 151, 40, 0.35);
229
- flex-shrink: 0;
230
- }
231
-
232
- .card-subtitle {
233
- font-size: var(--font-size-secondary);
234
- color: var(--color-text-tertiary);
235
- white-space: nowrap;
236
- overflow: hidden;
237
- text-overflow: ellipsis;
238
- opacity: 0.8;
239
- }
240
-
241
- .card-trailing {
242
- display: grid;
243
- grid-auto-flow: column;
244
- grid-auto-columns: max-content;
245
- column-gap: var(--spacing-xs);
246
- row-gap: 6px;
247
- align-items: center;
248
- justify-content: end;
249
- align-self: center;
250
- }
251
-
252
- .card-trailing .card-actions {
253
- margin-left: 0;
254
- justify-self: end;
255
- }
256
-
257
- .card-trailing .pill,
258
- .card-trailing .latency {
259
- justify-self: end;
260
- }
261
-
262
- /* 卡片操作按钮 - hover 显示 */
263
- .card-actions {
264
- display: flex;
265
- gap: 8px;
266
- opacity: 0;
267
- pointer-events: none;
268
- transform: translateX(4px);
269
- transition: all var(--transition-normal) var(--ease-spring);
270
- }
271
-
272
- .card:hover .card-actions {
273
- opacity: 1;
274
- pointer-events: auto;
275
- transform: translateX(0);
276
- }
277
-
278
- .card:focus-within .card-actions {
279
- opacity: 1;
280
- pointer-events: auto;
281
- transform: translateX(0);
282
- }
283
-
284
- .mode-cards .card-actions {
285
- opacity: 1;
286
- pointer-events: auto;
287
- transform: translateX(0);
288
- }
289
-
290
- .card-action-btn {
291
- width: 40px;
292
- height: 40px;
293
- border-radius: 10px;
294
- border: 1px solid rgba(70, 86, 110, 0.22);
295
- background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
296
- color: var(--color-text-secondary);
297
- cursor: pointer;
298
- display: flex;
299
- align-items: center;
300
- justify-content: center;
301
- transition: all var(--transition-fast) var(--ease-spring);
302
- box-shadow: inset 0 1px 2px rgba(31, 26, 23, 0.04);
303
- }
304
-
305
- .card-action-btn:hover {
306
- background: linear-gradient(135deg, rgba(210, 107, 90, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
307
- color: var(--color-text-primary);
308
- transform: translateY(-1px);
309
- }
310
-
311
- .card-action-btn.delete:hover {
312
- background: linear-gradient(135deg, rgba(200, 74, 58, 0.1) 0%, rgba(200, 74, 58, 0.05) 100%);
313
- color: var(--color-error);
314
- }
315
-
316
- .card-action-btn:disabled,
317
- .card-action-btn.disabled {
318
- opacity: 0.45;
319
- cursor: not-allowed;
320
- transform: none;
321
- filter: grayscale(0.1);
322
- }
323
-
324
- .card-action-btn.delete:disabled:hover,
325
- .card-action-btn.delete.disabled:hover {
326
- background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
327
- color: var(--color-text-secondary);
328
- }
329
-
330
- .card-action-btn svg {
331
- width: 18px;
332
- height: 18px;
333
- }
334
-
335
- /* ============================================
336
- 状态徽章
337
- ============================================ */
338
- .pill {
339
- padding: 5px 11px;
340
- border-radius: var(--radius-full);
341
- font-size: var(--font-size-caption);
342
- font-weight: var(--font-weight-caption);
343
- background-color: rgba(255, 255, 255, 0.8);
344
- color: var(--color-text-tertiary);
345
- text-transform: uppercase;
346
- letter-spacing: 0.06em;
347
- transition: all var(--transition-fast) var(--ease-smooth);
348
- box-shadow: inset 0 0.5px 1px rgba(0, 0, 0, 0.04);
349
- }
350
-
351
- .pill.configured {
352
- background: linear-gradient(135deg, rgba(90, 139, 106, 0.15) 0%, rgba(90, 139, 106, 0.08) 100%);
353
- color: var(--color-success);
354
- box-shadow: inset 0 0.5px 1px rgba(90, 139, 106, 0.2);
355
- }
356
-
357
- .pill.empty {
358
- background: linear-gradient(135deg, rgba(200, 74, 58, 0.1) 0%, rgba(200, 74, 58, 0.05) 100%);
359
- color: var(--color-error);
360
- box-shadow: inset 0 0.5px 1px rgba(200, 74, 58, 0.15);
361
- }
362
-
363
- .latency {
364
- padding: 4px 10px;
365
- border-radius: var(--radius-full);
366
- font-size: var(--font-size-caption);
367
- font-weight: var(--font-weight-caption);
368
- background: var(--color-bg);
369
- color: var(--color-text-tertiary);
370
- letter-spacing: 0.02em;
371
- min-width: 64px;
372
- text-align: center;
373
- display: inline-flex;
374
- align-items: center;
375
- justify-content: center;
376
- flex-shrink: 0;
377
- }
378
-
379
- .latency.ok {
380
- color: var(--color-success);
381
- background: rgba(90, 139, 106, 0.1);
382
- }
383
-
384
- .latency.error {
385
- color: var(--color-error);
386
- background: rgba(200, 74, 58, 0.08);
387
- }
388
-
389
- .card-action-btn.loading svg {
390
- animation: spin 0.9s linear infinite;
391
- }
392
-
393
- /* ============================================
394
- 图标 - SVG 优化
395
- ============================================ */
396
- .icon {
397
- width: 20px;
398
- height: 20px;
399
- flex-shrink: 0;
400
- stroke-linecap: round;
401
- stroke-linejoin: round;
402
- }
403
-
404
- .icon-chevron-right {
405
- color: var(--color-text-tertiary);
406
- opacity: 0.5;
407
- }
1
+ /* ============================================
2
+ 主标题
3
+ ============================================ */
4
+ .main-title {
5
+ font-size: clamp(18px, 1.3vw, 22px);
6
+ font-weight: 700;
7
+ line-height: 1.15;
8
+ letter-spacing: -0.02em;
9
+ margin-bottom: 0;
10
+ color: var(--color-text-primary);
11
+ font-family: var(--font-family-display);
12
+ background: none;
13
+ -webkit-background-clip: border-box;
14
+ -webkit-text-fill-color: currentColor;
15
+ background-clip: border-box;
16
+ }
17
+
18
+ .main-title .accent {
19
+ color: var(--color-brand);
20
+ -webkit-text-fill-color: var(--color-brand);
21
+ position: relative;
22
+ }
23
+
24
+ .subtitle {
25
+ font-size: 13px;
26
+ color: var(--color-text-secondary);
27
+ line-height: 1.58;
28
+ margin-bottom: 0;
29
+ max-width: 70ch;
30
+ letter-spacing: 0;
31
+ }
32
+
33
+ /* ============================================
34
+ 模式切换器 - Segmented Control
35
+ ============================================ */
36
+ .segmented-control {
37
+ display: flex;
38
+ background: var(--color-surface);
39
+ border-radius: 10px;
40
+ padding: 4px;
41
+ margin-bottom: 14px;
42
+ position: relative;
43
+ box-shadow: none;
44
+ border: 1px solid var(--color-border);
45
+ backdrop-filter: none;
46
+ }
47
+
48
+ .segment {
49
+ flex: 1;
50
+ padding: 8px 10px;
51
+ border: none;
52
+ background: transparent;
53
+ font-size: var(--font-size-body);
54
+ font-weight: var(--font-weight-secondary);
55
+ color: var(--color-text-secondary);
56
+ cursor: pointer;
57
+ border-radius: 8px;
58
+ transition: color var(--transition-fast) var(--ease-smooth), background-color var(--transition-fast) var(--ease-smooth);
59
+ position: relative;
60
+ z-index: 2;
61
+ letter-spacing: 0;
62
+ }
63
+
64
+ .segment:hover {
65
+ color: var(--color-text-primary);
66
+ }
67
+
68
+ .segment.active {
69
+ color: var(--color-brand-dark);
70
+ background: var(--color-brand-light);
71
+ box-shadow: inset 0 0 0 1px rgba(199, 116, 98, 0.12);
72
+ }
73
+
74
+ /* ============================================
75
+ 卡片列表
76
+ ============================================ */
77
+ .card-list {
78
+ display: flex;
79
+ flex-direction: column;
80
+ gap: 8px;
81
+ margin-bottom: 8px;
82
+ }
83
+
84
+ /* ============================================
85
+ 卡片
86
+ ============================================ */
87
+ .card {
88
+ background: var(--color-surface);
89
+ border-radius: 10px;
90
+ padding: 10px 12px;
91
+ display: flex;
92
+ align-items: center;
93
+ justify-content: space-between;
94
+ cursor: pointer;
95
+ transition:
96
+ border-color var(--transition-fast) var(--ease-smooth),
97
+ background-color var(--transition-fast) var(--ease-smooth),
98
+ box-shadow var(--transition-fast) var(--ease-smooth);
99
+ box-shadow: none;
100
+ user-select: none;
101
+ will-change: auto;
102
+ border: 1px solid var(--color-border);
103
+ position: relative;
104
+ overflow: hidden;
105
+ }
106
+
107
+ .card:hover {
108
+ border-color: var(--color-border-strong);
109
+ box-shadow: none;
110
+ }
111
+
112
+ .card::before,
113
+ .card::after {
114
+ content: "";
115
+ position: absolute;
116
+ pointer-events: none;
117
+ }
118
+
119
+ .card::before {
120
+ left: 0;
121
+ top: 50%;
122
+ transform: translateY(-50%);
123
+ width: 3px;
124
+ height: 18px;
125
+ border-radius: 0 2px 2px 0;
126
+ background: transparent;
127
+ transition: background var(--transition-fast) var(--ease-smooth);
128
+ }
129
+
130
+ .card::after {
131
+ inset: 0;
132
+ border-radius: inherit;
133
+ background: linear-gradient(120deg, rgba(255, 255, 255, 0.1) 0%, transparent 55%);
134
+ opacity: 0;
135
+ transition: opacity var(--transition-fast) var(--ease-smooth);
136
+ }
137
+
138
+ .card:active {
139
+ transform: translateY(0);
140
+ transition: transform var(--transition-instant) var(--ease-smooth);
141
+ }
142
+
143
+ .card.active {
144
+ background: var(--color-brand-light);
145
+ border-color: rgba(199, 116, 98, 0.18);
146
+ box-shadow: none;
147
+ }
148
+
149
+ .card.active::before {
150
+ background: var(--color-brand);
151
+ }
152
+
153
+ .card:hover::after {
154
+ opacity: 0.6;
155
+ }
156
+
157
+ .card.active .card-icon {
158
+ transform: scale(1.05);
159
+ }
160
+
161
+ .card-leading {
162
+ display: flex;
163
+ align-items: center;
164
+ gap: 10px;
165
+ flex: 1;
166
+ min-width: 0;
167
+ }
168
+
169
+ .card-icon {
170
+ width: 32px;
171
+ height: 32px;
172
+ border-radius: 8px;
173
+ background: rgba(199, 116, 98, 0.1);
174
+ display: flex;
175
+ align-items: center;
176
+ justify-content: center;
177
+ font-size: var(--font-size-title);
178
+ font-weight: var(--font-weight-title);
179
+ color: var(--color-brand-dark);
180
+ flex-shrink: 0;
181
+ transition: background-color var(--transition-fast) var(--ease-smooth), color var(--transition-fast) var(--ease-smooth);
182
+ box-shadow: none;
183
+ }
184
+
185
+ .card.active .card-icon {
186
+ background: rgba(199, 116, 98, 0.14);
187
+ color: var(--color-brand-dark);
188
+ box-shadow: none;
189
+ }
190
+
191
+ .card-content {
192
+ display: flex;
193
+ flex-direction: column;
194
+ gap: 1px;
195
+ min-width: 0;
196
+ }
197
+
198
+ .card-title {
199
+ display: flex;
200
+ align-items: center;
201
+ gap: 6px;
202
+ min-width: 0;
203
+ font-size: var(--font-size-body);
204
+ font-weight: var(--font-weight-secondary);
205
+ color: var(--color-text-primary);
206
+ white-space: nowrap;
207
+ overflow: hidden;
208
+ text-overflow: ellipsis;
209
+ letter-spacing: -0.01em;
210
+ }
211
+
212
+ .card-title > span:first-child {
213
+ min-width: 0;
214
+ overflow: hidden;
215
+ text-overflow: ellipsis;
216
+ white-space: nowrap;
217
+ }
218
+
219
+ .provider-readonly-badge {
220
+ display: inline-flex;
221
+ align-items: center;
222
+ justify-content: center;
223
+ padding: 2px 8px;
224
+ border-radius: var(--radius-full);
225
+ font-size: 11px;
226
+ line-height: 1;
227
+ color: #6f4b00;
228
+ background: linear-gradient(135deg, rgba(246, 211, 106, 0.32) 0%, rgba(246, 211, 106, 0.2) 100%);
229
+ border: 1px solid rgba(191, 151, 40, 0.35);
230
+ flex-shrink: 0;
231
+ }
232
+
233
+ .card-subtitle {
234
+ font-size: 12px;
235
+ color: var(--color-text-tertiary);
236
+ white-space: nowrap;
237
+ overflow: hidden;
238
+ text-overflow: ellipsis;
239
+ opacity: 0.9;
240
+ }
241
+
242
+ .card-trailing {
243
+ display: grid;
244
+ grid-auto-flow: column;
245
+ grid-auto-columns: max-content;
246
+ column-gap: var(--spacing-xs);
247
+ row-gap: 6px;
248
+ align-items: center;
249
+ justify-content: end;
250
+ align-self: center;
251
+ }
252
+
253
+ .card-trailing .card-actions {
254
+ margin-left: 0;
255
+ justify-self: end;
256
+ }
257
+
258
+ .card-trailing .pill,
259
+ .card-trailing .latency {
260
+ justify-self: end;
261
+ }
262
+
263
+ /* 卡片操作按钮 - hover 显示 */
264
+ .card-actions {
265
+ display: flex;
266
+ gap: 8px;
267
+ opacity: 0;
268
+ pointer-events: none;
269
+ transform: translateX(4px);
270
+ transition: all var(--transition-normal) var(--ease-spring);
271
+ }
272
+
273
+ .card:hover .card-actions {
274
+ opacity: 1;
275
+ pointer-events: auto;
276
+ transform: translateX(0);
277
+ }
278
+
279
+ .card:focus-within .card-actions {
280
+ opacity: 1;
281
+ pointer-events: auto;
282
+ transform: translateX(0);
283
+ }
284
+
285
+ .mode-cards .card-actions {
286
+ opacity: 1;
287
+ pointer-events: auto;
288
+ transform: translateX(0);
289
+ }
290
+
291
+ .card-action-btn {
292
+ width: 40px;
293
+ height: 40px;
294
+ border-radius: 10px;
295
+ border: 1px solid rgba(70, 86, 110, 0.22);
296
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
297
+ color: var(--color-text-secondary);
298
+ cursor: pointer;
299
+ display: flex;
300
+ align-items: center;
301
+ justify-content: center;
302
+ transition: all var(--transition-fast) var(--ease-spring);
303
+ box-shadow: inset 0 1px 2px rgba(31, 26, 23, 0.04);
304
+ }
305
+
306
+ .card-action-btn:hover {
307
+ background: linear-gradient(135deg, rgba(210, 107, 90, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
308
+ color: var(--color-text-primary);
309
+ transform: translateY(-1px);
310
+ }
311
+
312
+ .card-action-btn.delete:hover {
313
+ background: linear-gradient(135deg, rgba(200, 74, 58, 0.1) 0%, rgba(200, 74, 58, 0.05) 100%);
314
+ color: var(--color-error);
315
+ }
316
+
317
+ .card-action-btn:disabled,
318
+ .card-action-btn.disabled {
319
+ opacity: 0.45;
320
+ cursor: not-allowed;
321
+ transform: none;
322
+ filter: grayscale(0.1);
323
+ }
324
+
325
+ .card-action-btn.delete:disabled:hover,
326
+ .card-action-btn.delete.disabled:hover {
327
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
328
+ color: var(--color-text-secondary);
329
+ }
330
+
331
+ .card-action-btn svg {
332
+ width: 18px;
333
+ height: 18px;
334
+ }
335
+
336
+ /* ============================================
337
+ 状态徽章
338
+ ============================================ */
339
+ .pill {
340
+ padding: 5px 11px;
341
+ border-radius: var(--radius-full);
342
+ font-size: var(--font-size-caption);
343
+ font-weight: var(--font-weight-caption);
344
+ background-color: rgba(255, 255, 255, 0.8);
345
+ color: var(--color-text-tertiary);
346
+ text-transform: uppercase;
347
+ letter-spacing: 0.06em;
348
+ transition: all var(--transition-fast) var(--ease-smooth);
349
+ box-shadow: inset 0 0.5px 1px rgba(0, 0, 0, 0.04);
350
+ }
351
+
352
+ .pill.configured {
353
+ background: linear-gradient(135deg, rgba(90, 139, 106, 0.15) 0%, rgba(90, 139, 106, 0.08) 100%);
354
+ color: var(--color-success);
355
+ box-shadow: inset 0 0.5px 1px rgba(90, 139, 106, 0.2);
356
+ }
357
+
358
+ .pill.empty {
359
+ background: linear-gradient(135deg, rgba(200, 74, 58, 0.1) 0%, rgba(200, 74, 58, 0.05) 100%);
360
+ color: var(--color-error);
361
+ box-shadow: inset 0 0.5px 1px rgba(200, 74, 58, 0.15);
362
+ }
363
+
364
+ .latency {
365
+ padding: 4px 10px;
366
+ border-radius: var(--radius-full);
367
+ font-size: var(--font-size-caption);
368
+ font-weight: var(--font-weight-caption);
369
+ background: var(--color-bg);
370
+ color: var(--color-text-tertiary);
371
+ letter-spacing: 0.02em;
372
+ min-width: 64px;
373
+ text-align: center;
374
+ display: inline-flex;
375
+ align-items: center;
376
+ justify-content: center;
377
+ flex-shrink: 0;
378
+ }
379
+
380
+ .latency.ok {
381
+ color: var(--color-success);
382
+ background: rgba(90, 139, 106, 0.1);
383
+ }
384
+
385
+ .latency.error {
386
+ color: var(--color-error);
387
+ background: rgba(200, 74, 58, 0.08);
388
+ }
389
+
390
+ .card-action-btn.loading svg {
391
+ animation: spin 0.9s linear infinite;
392
+ }
393
+
394
+ /* ============================================
395
+ 图标 - SVG 优化
396
+ ============================================ */
397
+ .icon {
398
+ width: 20px;
399
+ height: 20px;
400
+ flex-shrink: 0;
401
+ stroke-linecap: round;
402
+ stroke-linejoin: round;
403
+ }
404
+
405
+ .icon-chevron-right {
406
+ color: var(--color-text-tertiary);
407
+ opacity: 0.5;
408
+ }