codexmate 0.0.21 → 0.0.22

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 (114) hide show
  1. package/README.md +389 -284
  2. package/README.zh.md +321 -0
  3. package/cli/agents-files.js +224 -162
  4. package/cli/archive-helpers.js +446 -446
  5. package/cli/auth-profiles.js +359 -359
  6. package/cli/builtin-proxy.js +1044 -580
  7. package/cli/claude-proxy.js +998 -998
  8. package/cli/config-bootstrap.js +384 -384
  9. package/cli/config-health.js +338 -338
  10. package/cli/openai-bridge.js +950 -0
  11. package/cli/openclaw-config.js +629 -629
  12. package/cli/session-usage.concurrent.js +28 -0
  13. package/cli/session-usage.js +112 -0
  14. package/cli/session-usage.models.js +176 -0
  15. package/cli/skills.js +1141 -1141
  16. package/cli/zip-commands.js +510 -510
  17. package/cli.js +13214 -13129
  18. package/lib/cli-file-utils.js +151 -151
  19. package/lib/cli-models-utils.js +419 -419
  20. package/lib/cli-network-utils.js +164 -164
  21. package/lib/cli-path-utils.js +69 -69
  22. package/lib/cli-session-utils.js +121 -121
  23. package/lib/cli-sessions.js +386 -386
  24. package/lib/cli-utils.js +155 -155
  25. package/lib/download-artifacts.js +77 -77
  26. package/lib/mcp-stdio.js +440 -440
  27. package/lib/task-orchestrator.js +869 -869
  28. package/lib/text-diff.js +303 -303
  29. package/lib/workflow-engine.js +340 -340
  30. package/package.json +74 -74
  31. package/res/json5.min.js +1 -1
  32. package/res/logo.png +0 -0
  33. package/res/vue.global.prod.js +13 -13
  34. package/web-ui/app.js +575 -530
  35. package/web-ui/index.html +34 -33
  36. package/web-ui/logic.agents-diff.mjs +386 -386
  37. package/web-ui/logic.claude.mjs +168 -168
  38. package/web-ui/logic.mjs +5 -5
  39. package/web-ui/logic.runtime.mjs +128 -124
  40. package/web-ui/logic.sessions.mjs +614 -581
  41. package/web-ui/modules/api.mjs +90 -90
  42. package/web-ui/modules/app.computed.dashboard.mjs +126 -113
  43. package/web-ui/modules/app.computed.index.mjs +17 -15
  44. package/web-ui/modules/app.computed.main-tabs.mjs +198 -195
  45. package/web-ui/modules/app.computed.session.mjs +653 -507
  46. package/web-ui/modules/app.constants.mjs +15 -15
  47. package/web-ui/modules/app.methods.agents.mjs +544 -493
  48. package/web-ui/modules/app.methods.claude-config.mjs +174 -174
  49. package/web-ui/modules/app.methods.codex-config.mjs +795 -640
  50. package/web-ui/modules/app.methods.index.mjs +92 -88
  51. package/web-ui/modules/app.methods.install.mjs +161 -149
  52. package/web-ui/modules/app.methods.navigation.mjs +619 -619
  53. package/web-ui/modules/app.methods.openclaw-core.mjs +814 -814
  54. package/web-ui/modules/app.methods.openclaw-editing.mjs +372 -372
  55. package/web-ui/modules/app.methods.openclaw-persist.mjs +369 -369
  56. package/web-ui/modules/app.methods.providers.mjs +404 -363
  57. package/web-ui/modules/app.methods.runtime.mjs +323 -323
  58. package/web-ui/modules/app.methods.session-actions.mjs +537 -520
  59. package/web-ui/modules/app.methods.session-browser.mjs +626 -626
  60. package/web-ui/modules/app.methods.session-timeline.mjs +448 -448
  61. package/web-ui/modules/app.methods.session-trash.mjs +422 -422
  62. package/web-ui/modules/app.methods.startup-claude.mjs +405 -412
  63. package/web-ui/modules/app.methods.task-orchestration.mjs +471 -471
  64. package/web-ui/modules/config-mode.computed.mjs +126 -126
  65. package/web-ui/modules/config-template-confirm-pref.mjs +33 -0
  66. package/web-ui/modules/i18n.mjs +1609 -0
  67. package/web-ui/modules/plugins.computed.mjs +220 -0
  68. package/web-ui/modules/plugins.methods.mjs +620 -0
  69. package/web-ui/modules/plugins.storage.mjs +37 -0
  70. package/web-ui/modules/skills.computed.mjs +107 -107
  71. package/web-ui/modules/skills.methods.mjs +481 -481
  72. package/web-ui/partials/index/layout-footer.html +13 -13
  73. package/web-ui/partials/index/layout-header.html +461 -402
  74. package/web-ui/partials/index/modal-config-template-agents.html +175 -125
  75. package/web-ui/partials/index/modal-confirm-toast.html +32 -32
  76. package/web-ui/partials/index/modal-health-check.html +72 -72
  77. package/web-ui/partials/index/modal-openclaw-config.html +280 -280
  78. package/web-ui/partials/index/modal-skills.html +200 -184
  79. package/web-ui/partials/index/modals-basic.html +165 -156
  80. package/web-ui/partials/index/panel-config-claude.html +138 -126
  81. package/web-ui/partials/index/panel-config-codex.html +234 -237
  82. package/web-ui/partials/index/panel-config-openclaw.html +78 -78
  83. package/web-ui/partials/index/panel-docs.html +147 -130
  84. package/web-ui/partials/index/panel-market.html +174 -174
  85. package/web-ui/partials/index/panel-orchestration.html +397 -397
  86. package/web-ui/partials/index/panel-plugins.html +243 -0
  87. package/web-ui/partials/index/panel-sessions.html +292 -292
  88. package/web-ui/partials/index/panel-settings.html +258 -190
  89. package/web-ui/partials/index/panel-usage.html +353 -213
  90. package/web-ui/session-helpers.mjs +573 -559
  91. package/web-ui/source-bundle.cjs +233 -233
  92. package/web-ui/styles/base-theme.css +264 -271
  93. package/web-ui/styles/controls-forms.css +362 -360
  94. package/web-ui/styles/docs-panel.css +247 -182
  95. package/web-ui/styles/feedback.css +108 -108
  96. package/web-ui/styles/health-check-dialog.css +144 -144
  97. package/web-ui/styles/layout-shell.css +596 -376
  98. package/web-ui/styles/modals-core.css +464 -464
  99. package/web-ui/styles/navigation-panels.css +382 -348
  100. package/web-ui/styles/openclaw-structured.css +266 -266
  101. package/web-ui/styles/plugins-panel.css +518 -0
  102. package/web-ui/styles/responsive.css +456 -450
  103. package/web-ui/styles/sessions-list.css +400 -400
  104. package/web-ui/styles/sessions-preview.css +411 -411
  105. package/web-ui/styles/sessions-toolbar-trash.css +268 -243
  106. package/web-ui/styles/sessions-usage.css +851 -628
  107. package/web-ui/styles/settings-panel.css +166 -0
  108. package/web-ui/styles/skills-list.css +303 -296
  109. package/web-ui/styles/skills-market.css +396 -335
  110. package/web-ui/styles/task-orchestration.css +776 -776
  111. package/web-ui/styles/titles-cards.css +408 -408
  112. package/web-ui/styles.css +20 -18
  113. package/web-ui.html +17 -17
  114. package/README.en.md +0 -349
@@ -1,408 +1,408 @@
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
- }
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
+ }