codexmate 0.0.26 → 0.0.27

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 (135) hide show
  1. package/README.md +421 -416
  2. package/README.zh.md +354 -349
  3. package/cli/agents-files.js +224 -224
  4. package/cli/archive-helpers.js +446 -446
  5. package/cli/auth-profiles.js +375 -375
  6. package/cli/builtin-proxy.js +1299 -1079
  7. package/cli/claude-proxy.js +1022 -1022
  8. package/cli/config-bootstrap.js +384 -384
  9. package/cli/config-health.js +338 -338
  10. package/cli/doctor-core.js +903 -903
  11. package/cli/import-skills-url.js +356 -356
  12. package/cli/openai-bridge.js +1091 -997
  13. package/cli/openclaw-config.js +629 -629
  14. package/cli/session-convert-args.js +65 -65
  15. package/cli/session-convert-io.js +82 -82
  16. package/cli/session-convert.js +43 -43
  17. package/cli/session-usage.concurrent.js +28 -28
  18. package/cli/session-usage.js +118 -118
  19. package/cli/session-usage.models.js +176 -176
  20. package/cli/skills.js +1141 -1141
  21. package/cli/zip-commands.js +510 -510
  22. package/cli.js +15251 -15218
  23. package/lib/automation.js +404 -404
  24. package/lib/cli-file-utils.js +151 -151
  25. package/lib/cli-models-utils.js +379 -379
  26. package/lib/cli-network-utils.js +190 -190
  27. package/lib/cli-path-utils.js +85 -85
  28. package/lib/cli-session-utils.js +121 -121
  29. package/lib/cli-sessions.js +417 -417
  30. package/lib/cli-utils.js +155 -155
  31. package/lib/download-artifacts.js +92 -92
  32. package/lib/mcp-stdio.js +453 -453
  33. package/lib/task-orchestrator.js +869 -869
  34. package/lib/text-diff.js +303 -303
  35. package/lib/workflow-engine.js +340 -340
  36. package/package.json +1 -1
  37. package/plugins/README.md +20 -20
  38. package/plugins/README.zh-CN.md +20 -20
  39. package/plugins/prompt-templates/comment-polish/index.mjs +25 -25
  40. package/plugins/prompt-templates/computed.mjs +253 -253
  41. package/plugins/prompt-templates/index.mjs +8 -8
  42. package/plugins/prompt-templates/manifest.mjs +15 -15
  43. package/plugins/prompt-templates/methods.mjs +619 -619
  44. package/plugins/prompt-templates/overview.mjs +90 -90
  45. package/plugins/prompt-templates/ownership.mjs +19 -19
  46. package/plugins/prompt-templates/rule-ack/index.mjs +21 -21
  47. package/plugins/prompt-templates/storage.mjs +64 -64
  48. package/plugins/registry.mjs +16 -16
  49. package/web-ui/app.js +634 -625
  50. package/web-ui/index.html +35 -35
  51. package/web-ui/logic.agents-diff.mjs +386 -386
  52. package/web-ui/logic.claude.mjs +168 -168
  53. package/web-ui/logic.mjs +5 -5
  54. package/web-ui/logic.runtime.mjs +128 -128
  55. package/web-ui/logic.session-convert.mjs +70 -70
  56. package/web-ui/logic.sessions.mjs +765 -709
  57. package/web-ui/modules/api.mjs +90 -90
  58. package/web-ui/modules/app.computed.dashboard.mjs +171 -171
  59. package/web-ui/modules/app.computed.index.mjs +17 -17
  60. package/web-ui/modules/app.computed.main-tabs.mjs +205 -205
  61. package/web-ui/modules/app.computed.session.mjs +994 -946
  62. package/web-ui/modules/app.constants.mjs +15 -15
  63. package/web-ui/modules/app.methods.agents.mjs +632 -632
  64. package/web-ui/modules/app.methods.claude-config.mjs +184 -179
  65. package/web-ui/modules/app.methods.codex-config.mjs +860 -860
  66. package/web-ui/modules/app.methods.index.mjs +92 -92
  67. package/web-ui/modules/app.methods.install.mjs +205 -205
  68. package/web-ui/modules/app.methods.navigation.mjs +743 -743
  69. package/web-ui/modules/app.methods.openclaw-core.mjs +814 -814
  70. package/web-ui/modules/app.methods.openclaw-editing.mjs +372 -372
  71. package/web-ui/modules/app.methods.openclaw-persist.mjs +369 -369
  72. package/web-ui/modules/app.methods.providers.mjs +404 -404
  73. package/web-ui/modules/app.methods.runtime.mjs +345 -345
  74. package/web-ui/modules/app.methods.session-actions.mjs +596 -596
  75. package/web-ui/modules/app.methods.session-browser.mjs +989 -985
  76. package/web-ui/modules/app.methods.session-timeline.mjs +479 -479
  77. package/web-ui/modules/app.methods.session-trash.mjs +439 -424
  78. package/web-ui/modules/app.methods.startup-claude.mjs +526 -522
  79. package/web-ui/modules/app.methods.task-orchestration.mjs +556 -556
  80. package/web-ui/modules/config-mode.computed.mjs +124 -124
  81. package/web-ui/modules/config-template-confirm-pref.mjs +33 -33
  82. package/web-ui/modules/i18n.dict.mjs +2131 -2113
  83. package/web-ui/modules/i18n.mjs +56 -56
  84. package/web-ui/modules/plugins.computed.mjs +3 -3
  85. package/web-ui/modules/plugins.methods.mjs +3 -3
  86. package/web-ui/modules/plugins.storage.mjs +11 -11
  87. package/web-ui/modules/sessions-filters-url.mjs +85 -85
  88. package/web-ui/modules/skills.computed.mjs +107 -107
  89. package/web-ui/modules/skills.methods.mjs +481 -481
  90. package/web-ui/partials/index/layout-footer.html +13 -13
  91. package/web-ui/partials/index/layout-header.html +475 -475
  92. package/web-ui/partials/index/modal-config-template-agents.html +174 -174
  93. package/web-ui/partials/index/modal-confirm-toast.html +32 -32
  94. package/web-ui/partials/index/modal-health-check.html +45 -45
  95. package/web-ui/partials/index/modal-openclaw-config.html +280 -280
  96. package/web-ui/partials/index/modal-skills.html +200 -200
  97. package/web-ui/partials/index/modals-basic.html +165 -165
  98. package/web-ui/partials/index/panel-config-claude.html +187 -184
  99. package/web-ui/partials/index/panel-config-codex.html +283 -283
  100. package/web-ui/partials/index/panel-config-openclaw.html +83 -83
  101. package/web-ui/partials/index/panel-dashboard.html +186 -186
  102. package/web-ui/partials/index/panel-docs.html +147 -147
  103. package/web-ui/partials/index/panel-market.html +177 -177
  104. package/web-ui/partials/index/panel-orchestration.html +391 -391
  105. package/web-ui/partials/index/panel-plugins.html +279 -279
  106. package/web-ui/partials/index/panel-sessions.html +326 -326
  107. package/web-ui/partials/index/panel-settings.html +274 -258
  108. package/web-ui/partials/index/panel-usage.html +371 -342
  109. package/web-ui/res/json5.min.js +1 -1
  110. package/web-ui/res/vue.global.prod.js +13 -13
  111. package/web-ui/session-helpers.mjs +576 -576
  112. package/web-ui/source-bundle.cjs +233 -233
  113. package/web-ui/styles/base-theme.css +268 -268
  114. package/web-ui/styles/controls-forms.css +423 -423
  115. package/web-ui/styles/dashboard.css +274 -274
  116. package/web-ui/styles/docs-panel.css +247 -247
  117. package/web-ui/styles/feedback.css +108 -108
  118. package/web-ui/styles/health-check-dialog.css +144 -144
  119. package/web-ui/styles/layout-shell.css +603 -603
  120. package/web-ui/styles/modals-core.css +464 -464
  121. package/web-ui/styles/navigation-panels.css +390 -390
  122. package/web-ui/styles/openclaw-structured.css +266 -266
  123. package/web-ui/styles/plugins-panel.css +523 -523
  124. package/web-ui/styles/responsive.css +454 -454
  125. package/web-ui/styles/sessions-list.css +415 -415
  126. package/web-ui/styles/sessions-preview.css +411 -411
  127. package/web-ui/styles/sessions-toolbar-trash.css +330 -330
  128. package/web-ui/styles/sessions-usage.css +1040 -945
  129. package/web-ui/styles/settings-panel.css +185 -166
  130. package/web-ui/styles/skills-list.css +303 -303
  131. package/web-ui/styles/skills-market.css +406 -406
  132. package/web-ui/styles/task-orchestration.css +822 -822
  133. package/web-ui/styles/titles-cards.css +408 -408
  134. package/web-ui/styles.css +21 -21
  135. package/web-ui.html +17 -17
@@ -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
+ }