agiledev-cli 0.1.4 → 0.3.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.
- package/README.md +300 -173
- package/SKILL.md +114 -98
- package/adev.js +1319 -1285
- package/autofix/agents/antigravity.js +379 -0
- package/autofix/agents/claude.js +147 -0
- package/autofix/agents/codex.js +179 -0
- package/autofix/agents/exec.js +230 -0
- package/autofix/agents/index.js +400 -0
- package/autofix/agents/opencode.js +233 -0
- package/autofix/agents/pi.js +247 -0
- package/autofix/agiledev.js +98 -0
- package/autofix/bridge.js +371 -0
- package/autofix/cli.js +712 -0
- package/autofix/context.js +152 -0
- package/autofix/conversation.js +302 -0
- package/autofix/coordinator.js +2892 -0
- package/autofix/git.js +459 -0
- package/autofix/policy.js +230 -0
- package/autofix/profile.js +578 -0
- package/autofix/public/app.js +3668 -0
- package/autofix/public/i18n-id.js +282 -0
- package/autofix/public/index.html +32 -0
- package/autofix/public/style.css +2463 -0
- package/autofix/queue.js +146 -0
- package/autofix/scheduler.js +994 -0
- package/autofix/scope.js +32 -0
- package/autofix/service.js +1940 -0
- package/autofix/store.js +375 -0
- package/autofix/workspace.js +298 -0
- package/autofix/worktree.js +379 -0
- package/docs/autofix-design.md +801 -0
- package/docs/autofix-profiles.example.json +65 -0
- package/imgs/Bug/350/247/243/345/206/263/345/244/207/346/263/250.png +0 -0
- package/imgs/logo.png +0 -0
- package/imgs//344/277/256/346/224/271Bug/347/212/266/346/200/201.png +0 -0
- package/imgs//345/270/256/346/210/221/344/277/256/345/244/215Bug-20260922-010.png +0 -0
- package/imgs//346/237/245/347/234/213/345/271/266/345/210/206/346/236/220/351/234/200/346/261/202/346/226/207/346/241/243.png +0 -0
- package/imgs//347/234/213/344/270/200/344/270/213/346/210/221/347/216/260/345/234/250/346/234/211/345/223/252/344/272/233/345/274/200/345/217/221/344/273/273/345/212/241.png +0 -0
- package/imgs//347/234/213/344/270/200/344/270/213/346/210/221/350/277/230/346/234/211/345/223/252/344/272/233Bug/346/234/252/350/247/243/345/206/263.png +0 -0
- package/package.json +39 -36
|
@@ -0,0 +1,2463 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
AgileDev 自动修复 · 控制台
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
/* 多层次中性黑:从最深的页面底到最浅的悬浮层,逐级提亮 */
|
|
7
|
+
--bg: #151515; /* 页面底 */
|
|
8
|
+
--bg-soft: #1b1b1b; /* 次底 */
|
|
9
|
+
--surface: #202020; /* 卡片 */
|
|
10
|
+
--surface-2: #272727; /* 卡片悬停 */
|
|
11
|
+
--surface-3: #303030; /* 激活 / 弹层 */
|
|
12
|
+
--line: #3a3a3a; /* 描边 */
|
|
13
|
+
--line-soft: #2c2c2c; /* 柔和描边 */
|
|
14
|
+
--text: #f2f0ed; /* 主文字(带一丝暖意,不是冷白) */
|
|
15
|
+
--text-2: #c6c2bc;
|
|
16
|
+
--muted: #948e86;
|
|
17
|
+
--faint: #6d6861;
|
|
18
|
+
--accent: #e08a63; /* 赤陶强调,在黑底上很醒目 */
|
|
19
|
+
--accent-rgb: 224, 138, 99;
|
|
20
|
+
--accent-soft: rgba(var(--accent-rgb), .14);
|
|
21
|
+
--violet: #c79ad6;
|
|
22
|
+
--violet-rgb: 199, 154, 214;
|
|
23
|
+
--ok: #7cc49a;
|
|
24
|
+
--ok-rgb: 124, 196, 154;
|
|
25
|
+
--ok-soft: rgba(var(--ok-rgb), .12);
|
|
26
|
+
--warn: #e8b563;
|
|
27
|
+
--warn-rgb: 232, 181, 99;
|
|
28
|
+
--warn-soft: rgba(var(--warn-rgb), .12);
|
|
29
|
+
--danger: #e8796c;
|
|
30
|
+
--danger-rgb: 232, 121, 108;
|
|
31
|
+
--danger-soft: rgba(var(--danger-rgb), .12);
|
|
32
|
+
|
|
33
|
+
/* 语义别名:暗色为默认主题 */
|
|
34
|
+
--text-1: var(--text);
|
|
35
|
+
--panel: var(--surface);
|
|
36
|
+
--border: var(--line);
|
|
37
|
+
color-scheme: dark;
|
|
38
|
+
|
|
39
|
+
/* 主题化基础色:透明叠层用 RGB 分量,浅色主题只需反转这些分量 */
|
|
40
|
+
--bg-rgb: 21, 21, 21;
|
|
41
|
+
--panel-rgb: 27, 27, 27;
|
|
42
|
+
--surface-rgb: 32, 32, 32;
|
|
43
|
+
--surface-2-rgb: 39, 39, 39;
|
|
44
|
+
--surface-3-rgb: 48, 48, 48;
|
|
45
|
+
--bubble-rgb: 36, 36, 36;
|
|
46
|
+
--overlay-rgb: 255, 250, 244;
|
|
47
|
+
--shadow-rgb: 0, 0, 0;
|
|
48
|
+
--backdrop-rgb: 8, 8, 8;
|
|
49
|
+
--scrollbar: #454545;
|
|
50
|
+
--scrollbar-hover: #5a5a5a;
|
|
51
|
+
--hover-line: #505050;
|
|
52
|
+
--code-bg: #1b1b1b;
|
|
53
|
+
--code-fg: #e8e6e1;
|
|
54
|
+
--dropdown-bg: #202020;
|
|
55
|
+
--modal-bg: linear-gradient(180deg, #272727, #202020);
|
|
56
|
+
|
|
57
|
+
/* 品牌 / 强调 / 状态文本色 */
|
|
58
|
+
--grad-a: #f0b899;
|
|
59
|
+
--grad-b: #e08a63;
|
|
60
|
+
--grad-c: #7cc49a;
|
|
61
|
+
--brand-fg: #f0b899;
|
|
62
|
+
--avatar-fg: #f0b899;
|
|
63
|
+
--ai-avatar-fg: #e8a17e;
|
|
64
|
+
--accent-fg: #e8a17e;
|
|
65
|
+
--accent-fg-2: #eeb08d;
|
|
66
|
+
--accent-fg-3: #eeb08d;
|
|
67
|
+
--accent-fg-4: #e8a17e;
|
|
68
|
+
--inline-code-fg: #f0b899;
|
|
69
|
+
--tool-fg: #c79ad6;
|
|
70
|
+
--chip-fg: #bfbab2;
|
|
71
|
+
--sev3-fg: #948e86;
|
|
72
|
+
--sev3-bg: rgba(148, 142, 134, .10);
|
|
73
|
+
--sev3-border: rgba(148, 142, 134, .28);
|
|
74
|
+
--queued-fg: #948e86;
|
|
75
|
+
--ok-fg: #9dd4b2;
|
|
76
|
+
--ok-fg-2: #9dd4b2;
|
|
77
|
+
--ok-fg-3: #9dd4b2;
|
|
78
|
+
--danger-fg: #f09b8f;
|
|
79
|
+
--danger-fg-2: #f09b8f;
|
|
80
|
+
--danger-fg-3: #e8796c;
|
|
81
|
+
--warn-fg: #eec887;
|
|
82
|
+
--warn-fg-2: #e8b563;
|
|
83
|
+
--warn-fg-3: #e8b563;
|
|
84
|
+
--role-frontend: #e8a17e;
|
|
85
|
+
--role-backend: #7cc49a;
|
|
86
|
+
--role-mobile: #c79ad6;
|
|
87
|
+
--role-mobile-rgb: 199, 154, 214;
|
|
88
|
+
--folder-fg: #e8b563;
|
|
89
|
+
--stage-editing: #e8a17e;
|
|
90
|
+
--stage-editing-rgb: 232, 161, 126;
|
|
91
|
+
--stage-testing: #7cc49a;
|
|
92
|
+
--stage-reviewing: #e8b563;
|
|
93
|
+
--link-hover: #fff8f0;
|
|
94
|
+
--user-bubble-bg: linear-gradient(145deg, rgba(224, 138, 99, .32), rgba(180, 87, 59, .25));
|
|
95
|
+
--user-bubble-border: rgba(var(--accent-rgb), .38);
|
|
96
|
+
--user-bubble-fg: #fff8f0;
|
|
97
|
+
--user-bubble-shadow: rgba(180, 87, 59, .18);
|
|
98
|
+
--primary-shadow: rgba(180, 87, 59, .28);
|
|
99
|
+
--primary-border-hover: rgba(232, 161, 126, .7);
|
|
100
|
+
--primary-bg: linear-gradient(180deg, #d97a54, #b4573b);
|
|
101
|
+
--primary-bg-hover: linear-gradient(180deg, #e28963, #c06142);
|
|
102
|
+
|
|
103
|
+
--radius: 12px;
|
|
104
|
+
--radius-sm: 8px;
|
|
105
|
+
--shadow: 0 18px 48px rgba(var(--shadow-rgb), .38);
|
|
106
|
+
--font: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
107
|
+
--mono: "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* ============================== 亮色主题 ==============================
|
|
111
|
+
只覆盖语义变量,组件规则不需要重复声明。html[data-theme] 由 app.js /
|
|
112
|
+
index.html 提前写入,避免首屏闪一下暗色。 */
|
|
113
|
+
:root[data-theme="light"] {
|
|
114
|
+
color-scheme: light;
|
|
115
|
+
|
|
116
|
+
/* 暖米色纸张底 + 奶油白卡片,减少纯白带来的刺眼感 */
|
|
117
|
+
--bg: #f6f1ea;
|
|
118
|
+
--bg-soft: #f0e9df;
|
|
119
|
+
--surface: #fffdfa;
|
|
120
|
+
--surface-2: #faf5ee;
|
|
121
|
+
--surface-3: #efe6d9;
|
|
122
|
+
--line: #e2d7c7;
|
|
123
|
+
--line-soft: #ece3d7;
|
|
124
|
+
--text: #3b2f27;
|
|
125
|
+
--text-1: #3b2f27;
|
|
126
|
+
--text-2: #5c4c40;
|
|
127
|
+
--muted: #8a7666;
|
|
128
|
+
--faint: #a89684;
|
|
129
|
+
/* 赤陶 / 焦糖色强调,替代冷蓝 */
|
|
130
|
+
--accent: #b4573b;
|
|
131
|
+
--accent-rgb: 180, 87, 59;
|
|
132
|
+
--accent-soft: rgba(var(--accent-rgb), .10);
|
|
133
|
+
--violet: #8a5a8f;
|
|
134
|
+
--violet-rgb: 138, 90, 143;
|
|
135
|
+
--ok: #4d7c52;
|
|
136
|
+
--ok-rgb: 77, 124, 82;
|
|
137
|
+
--ok-soft: rgba(var(--ok-rgb), .12);
|
|
138
|
+
--warn: #a96a14;
|
|
139
|
+
--warn-rgb: 169, 106, 20;
|
|
140
|
+
--warn-soft: rgba(var(--warn-rgb), .12);
|
|
141
|
+
--danger: #b2473f;
|
|
142
|
+
--danger-rgb: 178, 71, 63;
|
|
143
|
+
--danger-soft: rgba(var(--danger-rgb), .10);
|
|
144
|
+
--shadow: 0 18px 44px rgba(92, 66, 44, .13);
|
|
145
|
+
|
|
146
|
+
--bg-rgb: 246, 241, 234;
|
|
147
|
+
--panel-rgb: 250, 246, 239;
|
|
148
|
+
--surface-rgb: 255, 253, 250;
|
|
149
|
+
--surface-2-rgb: 250, 245, 238;
|
|
150
|
+
--surface-3-rgb: 239, 230, 217;
|
|
151
|
+
--bubble-rgb: 255, 253, 250;
|
|
152
|
+
--overlay-rgb: 61, 47, 39;
|
|
153
|
+
--shadow-rgb: 92, 66, 44;
|
|
154
|
+
--backdrop-rgb: 61, 47, 39;
|
|
155
|
+
--scrollbar: #d4c6b5;
|
|
156
|
+
--scrollbar-hover: #bdae9b;
|
|
157
|
+
--hover-line: #cbbba7;
|
|
158
|
+
--code-bg: #f7f1e7;
|
|
159
|
+
--code-fg: #4a3a2e;
|
|
160
|
+
--dropdown-bg: #fffdfa;
|
|
161
|
+
--modal-bg: linear-gradient(180deg, #fffdfa, #f8f2e9);
|
|
162
|
+
|
|
163
|
+
/* 品牌 / 强调 / 状态文本色:暖色系 */
|
|
164
|
+
--grad-a: #b4573b;
|
|
165
|
+
--grad-b: #c98a3e;
|
|
166
|
+
--grad-c: #4d7c52;
|
|
167
|
+
--brand-fg: #a4472f;
|
|
168
|
+
--avatar-fg: #a4472f;
|
|
169
|
+
--ai-avatar-fg: #a4472f;
|
|
170
|
+
--accent-fg: #a4472f;
|
|
171
|
+
--accent-fg-2: #9c4b32;
|
|
172
|
+
--accent-fg-3: #9c4b32;
|
|
173
|
+
--accent-fg-4: #9c4b32;
|
|
174
|
+
--inline-code-fg: #9c4b32;
|
|
175
|
+
--tool-fg: #8a5a8f;
|
|
176
|
+
--chip-fg: #6f5b4c;
|
|
177
|
+
--sev3-fg: #8a7666;
|
|
178
|
+
--sev3-bg: rgba(138, 118, 102, .08);
|
|
179
|
+
--sev3-border: rgba(138, 118, 102, .24);
|
|
180
|
+
--queued-fg: #8a7666;
|
|
181
|
+
--ok-fg: #3f6b45;
|
|
182
|
+
--ok-fg-2: #3f6b45;
|
|
183
|
+
--ok-fg-3: #3f6b45;
|
|
184
|
+
--danger-fg: #a0372f;
|
|
185
|
+
--danger-fg-2: #a0372f;
|
|
186
|
+
--danger-fg-3: #a0372f;
|
|
187
|
+
--warn-fg: #8a5410;
|
|
188
|
+
--warn-fg-2: #7a4a0d;
|
|
189
|
+
--warn-fg-3: #7a4a0d;
|
|
190
|
+
--role-frontend: #b4573b;
|
|
191
|
+
--role-backend: #4d7c52;
|
|
192
|
+
--role-mobile: #8a5a8f;
|
|
193
|
+
--role-mobile-rgb: 138, 90, 143;
|
|
194
|
+
--folder-fg: #a96a14;
|
|
195
|
+
--stage-editing: #a4472f;
|
|
196
|
+
--stage-editing-rgb: 164, 71, 47;
|
|
197
|
+
--stage-testing: #4d7c52;
|
|
198
|
+
--stage-reviewing: #a96a14;
|
|
199
|
+
--link-hover: #8a341f;
|
|
200
|
+
--user-bubble-bg: linear-gradient(145deg, #c47052, #a4472f);
|
|
201
|
+
--user-bubble-border: rgba(164, 71, 47, .5);
|
|
202
|
+
--user-bubble-fg: #fffaf5;
|
|
203
|
+
--user-bubble-shadow: rgba(164, 71, 47, .22);
|
|
204
|
+
--primary-shadow: rgba(164, 71, 47, .28);
|
|
205
|
+
--primary-border-hover: rgba(164, 71, 47, .7);
|
|
206
|
+
--primary-bg: linear-gradient(180deg, #c47052, #a4472f);
|
|
207
|
+
--primary-bg-hover: linear-gradient(180deg, #cc7c5e, #ae4e35);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/* 亮色主题下少量需要单独收敛的阴影 / 卡片底色 */
|
|
211
|
+
:root[data-theme="light"] .setup-card {
|
|
212
|
+
background: linear-gradient(180deg, #fffdfa, #faf4eb);
|
|
213
|
+
}
|
|
214
|
+
:root[data-theme="light"] .composer-box {
|
|
215
|
+
box-shadow: 0 8px 26px rgba(var(--backdrop-rgb), .10), inset 0 1px 0 rgba(255, 255, 255, .7);
|
|
216
|
+
}
|
|
217
|
+
:root[data-theme="light"] .modal {
|
|
218
|
+
box-shadow: 0 24px 70px rgba(var(--backdrop-rgb), .16);
|
|
219
|
+
}
|
|
220
|
+
:root[data-theme="light"] .cb-layer {
|
|
221
|
+
box-shadow: 0 14px 40px rgba(var(--backdrop-rgb), .14), 0 2px 10px rgba(var(--backdrop-rgb), .07);
|
|
222
|
+
}
|
|
223
|
+
:root[data-theme="light"] .msg.agent .bubble {
|
|
224
|
+
box-shadow: 0 4px 14px rgba(var(--backdrop-rgb), .05);
|
|
225
|
+
}
|
|
226
|
+
:root[data-theme="light"] .ds-code-block {
|
|
227
|
+
box-shadow: 0 3px 10px rgba(var(--backdrop-rgb), .06);
|
|
228
|
+
}
|
|
229
|
+
:root[data-theme="light"] .jump-bottom {
|
|
230
|
+
box-shadow: 0 10px 30px rgba(var(--backdrop-rgb), .14);
|
|
231
|
+
}
|
|
232
|
+
:root[data-theme="light"] .toast {
|
|
233
|
+
background: #fffdfa;
|
|
234
|
+
}
|
|
235
|
+
:root[data-theme="light"] .modal-backdrop {
|
|
236
|
+
background: rgba(var(--backdrop-rgb), .35);
|
|
237
|
+
}
|
|
238
|
+
@media (max-width: 1040px) {
|
|
239
|
+
:root[data-theme="light"] .right { box-shadow: -20px 0 60px rgba(var(--backdrop-rgb), .14); }
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
* { box-sizing: border-box; }
|
|
243
|
+
|
|
244
|
+
html, body { height: 100%; }
|
|
245
|
+
|
|
246
|
+
body {
|
|
247
|
+
margin: 0;
|
|
248
|
+
color: var(--text);
|
|
249
|
+
font: 14px/1.55 var(--font);
|
|
250
|
+
background:
|
|
251
|
+
radial-gradient(1100px 560px at 12% -12%, rgba(var(--accent-rgb), .10), transparent 62%),
|
|
252
|
+
radial-gradient(900px 480px at 92% -4%, rgba(var(--ok-rgb), .055), transparent 58%),
|
|
253
|
+
var(--bg);
|
|
254
|
+
-webkit-font-smoothing: antialiased;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
button, input, textarea, select { font: inherit; color: inherit; }
|
|
258
|
+
button { cursor: pointer; }
|
|
259
|
+
a { color: var(--accent); }
|
|
260
|
+
code, pre, kbd { font-family: var(--mono); }
|
|
261
|
+
|
|
262
|
+
::selection { background: rgba(var(--accent-rgb), .32); }
|
|
263
|
+
|
|
264
|
+
::-webkit-scrollbar { width: 9px; height: 9px; }
|
|
265
|
+
::-webkit-scrollbar-track { background: transparent; }
|
|
266
|
+
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
|
|
267
|
+
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); background-clip: padding-box; }
|
|
268
|
+
|
|
269
|
+
.icon { width: 15px; height: 15px; flex: 0 0 auto; }
|
|
270
|
+
.icon-sm { width: 13px; height: 13px; }
|
|
271
|
+
.icon-lg { width: 18px; height: 18px; }
|
|
272
|
+
|
|
273
|
+
.muted { color: var(--muted); }
|
|
274
|
+
.mono { font-family: var(--mono); }
|
|
275
|
+
.hidden { display: none !important; }
|
|
276
|
+
|
|
277
|
+
/* ============================ 启动 / 致命错误 ============================ */
|
|
278
|
+
|
|
279
|
+
.boot-screen, .fatal-screen {
|
|
280
|
+
min-height: 100vh;
|
|
281
|
+
display: flex;
|
|
282
|
+
flex-direction: column;
|
|
283
|
+
align-items: center;
|
|
284
|
+
justify-content: center;
|
|
285
|
+
gap: 10px;
|
|
286
|
+
padding: 32px;
|
|
287
|
+
text-align: center;
|
|
288
|
+
}
|
|
289
|
+
.boot-logo { color: var(--accent); width: 54px; height: 54px; animation: float 2.6s ease-in-out infinite; }
|
|
290
|
+
.boot-logo svg { width: 100%; height: 100%; }
|
|
291
|
+
.boot-title { font-size: 18px; font-weight: 650; letter-spacing: .01em; }
|
|
292
|
+
.boot-sub { color: var(--muted); font-size: 13px; }
|
|
293
|
+
.fatal-screen h1 { font-size: 22px; margin: 0 0 4px; }
|
|
294
|
+
.fatal-screen p { color: var(--muted); max-width: 520px; margin: 0; }
|
|
295
|
+
.fatal-screen code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
|
|
296
|
+
|
|
297
|
+
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
|
|
298
|
+
|
|
299
|
+
/* ================================ 顶栏 ================================ */
|
|
300
|
+
|
|
301
|
+
.topbar {
|
|
302
|
+
height: 60px;
|
|
303
|
+
display: flex;
|
|
304
|
+
align-items: center;
|
|
305
|
+
gap: 22px;
|
|
306
|
+
padding: 0 18px;
|
|
307
|
+
border-bottom: 1px solid var(--line);
|
|
308
|
+
background: rgba(var(--bg-rgb), .82);
|
|
309
|
+
backdrop-filter: blur(14px);
|
|
310
|
+
position: relative;
|
|
311
|
+
z-index: 20;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 0 0 auto; }
|
|
315
|
+
.brand-mark {
|
|
316
|
+
width: 34px; height: 34px;
|
|
317
|
+
display: grid; place-items: center;
|
|
318
|
+
border-radius: 10px;
|
|
319
|
+
color: var(--brand-fg);
|
|
320
|
+
background: linear-gradient(145deg, rgba(var(--accent-rgb), .28), rgba(var(--accent-rgb), .08));
|
|
321
|
+
border: 1px solid rgba(var(--accent-rgb), .34);
|
|
322
|
+
box-shadow: inset 0 1px 0 rgba(var(--overlay-rgb), .08);
|
|
323
|
+
}
|
|
324
|
+
.brand-mark svg { width: 20px; height: 20px; }
|
|
325
|
+
.brand-text { display: flex; flex-direction: column; min-width: 0; }
|
|
326
|
+
.brand-name { font-size: 14px; font-weight: 650; letter-spacing: .01em; white-space: nowrap; }
|
|
327
|
+
.ws-path {
|
|
328
|
+
max-width: 320px;
|
|
329
|
+
overflow: hidden;
|
|
330
|
+
text-overflow: ellipsis;
|
|
331
|
+
white-space: nowrap;
|
|
332
|
+
color: var(--muted);
|
|
333
|
+
font-size: 11.5px;
|
|
334
|
+
font-family: var(--mono);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.top-metrics {
|
|
338
|
+
position: absolute;
|
|
339
|
+
left: 50%;
|
|
340
|
+
transform: translateX(-50%);
|
|
341
|
+
display: flex;
|
|
342
|
+
align-items: center;
|
|
343
|
+
gap: 9px;
|
|
344
|
+
flex-wrap: nowrap;
|
|
345
|
+
pointer-events: auto;
|
|
346
|
+
}
|
|
347
|
+
.metric {
|
|
348
|
+
display: inline-flex; align-items: center; gap: 7px;
|
|
349
|
+
height: 28px; padding: 0 12px;
|
|
350
|
+
border-radius: 999px;
|
|
351
|
+
border: 1px solid var(--line);
|
|
352
|
+
background: rgba(var(--surface-rgb), .75);
|
|
353
|
+
color: var(--text-2);
|
|
354
|
+
font-size: 12px;
|
|
355
|
+
white-space: nowrap;
|
|
356
|
+
transition: all .2s;
|
|
357
|
+
}
|
|
358
|
+
.metric b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
|
|
359
|
+
.metric.active { border-color: rgba(var(--accent-rgb), .34); background: rgba(var(--accent-rgb), .09); color: var(--text); }
|
|
360
|
+
.metric.warn { border-color: rgba(var(--warn-rgb), .34); background: var(--warn-soft); color: var(--text); }
|
|
361
|
+
.metric.ok { border-color: rgba(var(--ok-rgb), .34); background: var(--ok-soft); color: var(--text); }
|
|
362
|
+
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); display: inline-block; }
|
|
363
|
+
.dot.live { background: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16); animation: pulse 1.8s ease-in-out infinite; }
|
|
364
|
+
.dot.queued { background: var(--violet); }
|
|
365
|
+
.dot.warn { background: var(--warn); }
|
|
366
|
+
.dot.ok { background: var(--ok); }
|
|
367
|
+
.dot.danger { background: var(--danger); }
|
|
368
|
+
|
|
369
|
+
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.82); } }
|
|
370
|
+
|
|
371
|
+
.top-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
|
|
372
|
+
|
|
373
|
+
.status-badge {
|
|
374
|
+
display: inline-flex; align-items: center; gap: 7px;
|
|
375
|
+
height: 28px; padding: 0 11px;
|
|
376
|
+
border-radius: 999px;
|
|
377
|
+
font-size: 12px; font-weight: 550;
|
|
378
|
+
border: 1px solid rgba(var(--ok-rgb), .28);
|
|
379
|
+
background: var(--ok-soft);
|
|
380
|
+
color: var(--ok);
|
|
381
|
+
white-space: nowrap;
|
|
382
|
+
}
|
|
383
|
+
.status-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
|
|
384
|
+
.status-badge.paused { border-color: rgba(var(--warn-rgb), .3); background: var(--warn-soft); color: var(--warn); }
|
|
385
|
+
.status-badge.stopped, .status-badge.error { border-color: rgba(var(--danger-rgb), .3); background: var(--danger-soft); color: var(--danger); }
|
|
386
|
+
|
|
387
|
+
/* ================================ 按钮 ================================ */
|
|
388
|
+
|
|
389
|
+
.btn {
|
|
390
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
|
391
|
+
height: 30px; padding: 0 11px;
|
|
392
|
+
border-radius: 8px;
|
|
393
|
+
border: 1px solid var(--line);
|
|
394
|
+
background: var(--surface-2);
|
|
395
|
+
color: var(--text-2);
|
|
396
|
+
font-size: 12.5px;
|
|
397
|
+
font-weight: 520;
|
|
398
|
+
white-space: nowrap;
|
|
399
|
+
transition: border-color .16s, background .16s, color .16s, transform .08s;
|
|
400
|
+
}
|
|
401
|
+
.btn:hover:not(:disabled) { border-color: var(--hover-line); background: var(--surface-3); color: var(--text); }
|
|
402
|
+
.btn:active:not(:disabled) { transform: translateY(1px); }
|
|
403
|
+
.btn:focus-visible { outline: 2px solid rgba(var(--accent-rgb), .55); outline-offset: 2px; }
|
|
404
|
+
.btn:disabled { opacity: .42; cursor: not-allowed; }
|
|
405
|
+
.btn.ghost { background: transparent; }
|
|
406
|
+
.btn.primary {
|
|
407
|
+
border-color: rgba(var(--accent-rgb), .5);
|
|
408
|
+
background: var(--primary-bg);
|
|
409
|
+
color: #fff;
|
|
410
|
+
box-shadow: 0 8px 22px var(--primary-shadow), inset 0 1px 0 rgba(255, 255, 255, .22);
|
|
411
|
+
}
|
|
412
|
+
.btn.primary:hover:not(:disabled) { border-color: var(--primary-border-hover); background: var(--primary-bg-hover); color: #fff; }
|
|
413
|
+
.btn.danger { color: var(--danger); border-color: rgba(var(--danger-rgb), .24); }
|
|
414
|
+
.btn.danger:hover:not(:disabled) { background: var(--danger-soft); border-color: rgba(var(--danger-rgb), .42); color: var(--danger); }
|
|
415
|
+
.btn.sm { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
|
|
416
|
+
.btn.lg { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
|
|
417
|
+
.btn.icon-only { width: 30px; padding: 0; }
|
|
418
|
+
|
|
419
|
+
/* 主题切换:同一个按钮里放太阳/月亮,按当前主题只显示一个 */
|
|
420
|
+
.theme-toggle { width: 30px; padding: 0; }
|
|
421
|
+
.theme-toggle .theme-icon-sun { display: none; }
|
|
422
|
+
:root[data-theme="light"] .theme-toggle .theme-icon-sun { display: block; }
|
|
423
|
+
:root[data-theme="light"] .theme-toggle .theme-icon-moon { display: none; }
|
|
424
|
+
|
|
425
|
+
.spin { animation: spin 1s linear infinite; }
|
|
426
|
+
@keyframes spin { to { transform: rotate(360deg); } }
|
|
427
|
+
|
|
428
|
+
/* ============================== 主布局 ============================== */
|
|
429
|
+
|
|
430
|
+
.workspace {
|
|
431
|
+
height: calc(100vh - 60px);
|
|
432
|
+
display: grid;
|
|
433
|
+
grid-template-columns: 318px minmax(0, 1fr) 386px;
|
|
434
|
+
min-height: 0;
|
|
435
|
+
overflow: hidden;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.reason-banner {
|
|
439
|
+
display: flex; align-items: flex-start; gap: 9px;
|
|
440
|
+
padding: 9px 18px;
|
|
441
|
+
font-size: 12.5px;
|
|
442
|
+
border-bottom: 1px solid var(--line);
|
|
443
|
+
background: var(--warn-soft);
|
|
444
|
+
color: var(--warn-fg);
|
|
445
|
+
}
|
|
446
|
+
.reason-banner.error { background: var(--danger-soft); color: var(--danger-fg-2); }
|
|
447
|
+
.reason-banner .icon { margin-top: 1px; }
|
|
448
|
+
.reason-banner[hidden] { display: none; }
|
|
449
|
+
|
|
450
|
+
/* 顶栏 + 提示条 + 主体需要在有提示条时压缩主体高度 */
|
|
451
|
+
.app-shell { height: 100vh; display: flex; flex-direction: column; }
|
|
452
|
+
.app-shell > .workspace { flex: 1; height: auto; min-height: 0; }
|
|
453
|
+
|
|
454
|
+
/* ================================ 左栏 ================================ */
|
|
455
|
+
|
|
456
|
+
.left {
|
|
457
|
+
display: flex;
|
|
458
|
+
flex-direction: column;
|
|
459
|
+
min-height: 0;
|
|
460
|
+
border-right: 1px solid var(--line);
|
|
461
|
+
background: rgba(var(--panel-rgb), .5);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
#main-agent-card { padding: 13px 12px 8px; }
|
|
465
|
+
|
|
466
|
+
.agent-card {
|
|
467
|
+
width: 100%;
|
|
468
|
+
display: flex;
|
|
469
|
+
align-items: center;
|
|
470
|
+
gap: 11px;
|
|
471
|
+
padding: 12px;
|
|
472
|
+
text-align: left;
|
|
473
|
+
border-radius: 12px;
|
|
474
|
+
border: 1px solid var(--line);
|
|
475
|
+
background:
|
|
476
|
+
linear-gradient(135deg, rgba(var(--accent-rgb), .13), rgba(var(--accent-rgb), .025) 58%),
|
|
477
|
+
var(--surface);
|
|
478
|
+
color: var(--text);
|
|
479
|
+
position: relative;
|
|
480
|
+
transition: border-color .16s, transform .12s, box-shadow .16s;
|
|
481
|
+
}
|
|
482
|
+
.agent-card:hover { border-color: rgba(var(--accent-rgb), .44); transform: translateY(-1px); }
|
|
483
|
+
.agent-card.selected {
|
|
484
|
+
border-color: rgba(var(--accent-rgb), .68);
|
|
485
|
+
box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .24), 0 10px 26px rgba(50, 72, 160, .18);
|
|
486
|
+
}
|
|
487
|
+
.agent-avatar {
|
|
488
|
+
width: 38px; height: 38px; flex: 0 0 auto;
|
|
489
|
+
display: grid; place-items: center;
|
|
490
|
+
border-radius: 11px;
|
|
491
|
+
color: var(--avatar-fg);
|
|
492
|
+
background: linear-gradient(145deg, rgba(var(--accent-rgb), .34), rgba(var(--accent-rgb), .10));
|
|
493
|
+
border: 1px solid rgba(var(--accent-rgb), .35);
|
|
494
|
+
}
|
|
495
|
+
.agent-avatar svg { width: 19px; height: 19px; }
|
|
496
|
+
.agent-body { min-width: 0; flex: 1; }
|
|
497
|
+
.agent-top { display: flex; align-items: center; gap: 8px; }
|
|
498
|
+
.agent-name { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
499
|
+
.agent-state { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--ok); }
|
|
500
|
+
.agent-state i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
|
|
501
|
+
.agent-state.off { color: var(--warn); }
|
|
502
|
+
.agent-sub { color: var(--text-2); font-size: 11.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
503
|
+
.agent-meta { color: var(--faint); font-family: var(--mono); font-size: 10.5px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
504
|
+
.chev { color: var(--faint); flex: 0 0 auto; }
|
|
505
|
+
|
|
506
|
+
/* 列表工具栏 */
|
|
507
|
+
.list-toolbar { padding: 4px 12px 10px; display: flex; flex-direction: column; gap: 9px; }
|
|
508
|
+
|
|
509
|
+
.tabs {
|
|
510
|
+
display: flex; gap: 2px;
|
|
511
|
+
padding: 3px;
|
|
512
|
+
background: rgba(var(--surface-rgb), .8);
|
|
513
|
+
border: 1px solid var(--line);
|
|
514
|
+
border-radius: 9px;
|
|
515
|
+
}
|
|
516
|
+
.tab {
|
|
517
|
+
flex: 1;
|
|
518
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 5px;
|
|
519
|
+
height: 25px;
|
|
520
|
+
border: 0; border-radius: 6px;
|
|
521
|
+
background: transparent;
|
|
522
|
+
color: var(--muted);
|
|
523
|
+
font-size: 11.5px;
|
|
524
|
+
white-space: nowrap;
|
|
525
|
+
transition: background .14s, color .14s;
|
|
526
|
+
}
|
|
527
|
+
.tab:hover { color: var(--text-2); }
|
|
528
|
+
.tab.active { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .3); }
|
|
529
|
+
.tab .tab-count { font-size: 10px; color: var(--faint); font-variant-numeric: tabular-nums; }
|
|
530
|
+
.tab.active .tab-count { color: var(--text-2); }
|
|
531
|
+
|
|
532
|
+
.search {
|
|
533
|
+
position: relative;
|
|
534
|
+
display: flex; align-items: center;
|
|
535
|
+
}
|
|
536
|
+
.search .icon { position: absolute; left: 10px; color: var(--faint); pointer-events: none; }
|
|
537
|
+
.search input {
|
|
538
|
+
width: 100%;
|
|
539
|
+
height: 32px;
|
|
540
|
+
padding: 0 34px 0 31px;
|
|
541
|
+
border-radius: 8px;
|
|
542
|
+
border: 1px solid var(--line);
|
|
543
|
+
background: rgba(var(--bg-rgb), .6);
|
|
544
|
+
color: var(--text);
|
|
545
|
+
font-size: 12.5px;
|
|
546
|
+
outline: none;
|
|
547
|
+
transition: border-color .16s, background .16s;
|
|
548
|
+
}
|
|
549
|
+
.search input::placeholder { color: var(--faint); }
|
|
550
|
+
.search input:focus { border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--bg-rgb), .9); }
|
|
551
|
+
.search kbd {
|
|
552
|
+
position: absolute; right: 8px;
|
|
553
|
+
font-size: 10px; color: var(--faint);
|
|
554
|
+
border: 1px solid var(--line); border-radius: 4px;
|
|
555
|
+
padding: 1px 5px; background: var(--surface);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.bug-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 10px 18px; }
|
|
559
|
+
.bug-list { display: flex; flex-direction: column; gap: 7px; }
|
|
560
|
+
|
|
561
|
+
.bug-card {
|
|
562
|
+
position: relative;
|
|
563
|
+
width: 100%;
|
|
564
|
+
display: flex; flex-direction: column; gap: 5px;
|
|
565
|
+
padding: 10px 11px 9px 14px;
|
|
566
|
+
text-align: left;
|
|
567
|
+
border-radius: 10px;
|
|
568
|
+
border: 1px solid transparent;
|
|
569
|
+
background: rgba(var(--surface-rgb), .72);
|
|
570
|
+
color: var(--text);
|
|
571
|
+
overflow: hidden;
|
|
572
|
+
transition: border-color .15s, background .15s, transform .1s;
|
|
573
|
+
}
|
|
574
|
+
.bug-card:hover { background: var(--surface-2); border-color: var(--line); }
|
|
575
|
+
.bug-card.selected {
|
|
576
|
+
border-color: rgba(var(--accent-rgb), .62);
|
|
577
|
+
background: linear-gradient(100deg, rgba(var(--accent-rgb), .14), rgba(var(--surface-rgb), .9) 62%);
|
|
578
|
+
}
|
|
579
|
+
.bug-card .bug-bar {
|
|
580
|
+
position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
|
|
581
|
+
border-radius: 0 3px 3px 0;
|
|
582
|
+
background: var(--muted);
|
|
583
|
+
}
|
|
584
|
+
.bug-card.running .bug-bar, .bug-card.launching .bug-bar, .bug-card.verifying .bug-bar, .bug-card.review .bug-bar, .bug-card.resolving .bug-bar { background: var(--accent); }
|
|
585
|
+
.bug-card.needs_human .bug-bar { background: var(--warn); }
|
|
586
|
+
.bug-card.done .bug-bar { background: var(--ok); }
|
|
587
|
+
.bug-card.stopped .bug-bar { background: var(--faint); }
|
|
588
|
+
.bug-card.needs_human { background: linear-gradient(100deg, rgba(var(--warn-rgb), .07), rgba(var(--surface-rgb), .72) 66%); }
|
|
589
|
+
.bug-card.done { opacity: .72; }
|
|
590
|
+
.bug-card.done:hover { opacity: 1; }
|
|
591
|
+
|
|
592
|
+
.bug-top { display: flex; align-items: center; gap: 7px; }
|
|
593
|
+
.bug-code { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .01em; }
|
|
594
|
+
.sev {
|
|
595
|
+
font-size: 9.5px; font-weight: 700; letter-spacing: .03em;
|
|
596
|
+
padding: 1px 5px; border-radius: 4px;
|
|
597
|
+
border: 1px solid var(--line);
|
|
598
|
+
color: var(--muted);
|
|
599
|
+
}
|
|
600
|
+
.sev.p1 { color: var(--danger); border-color: rgba(var(--danger-rgb), .34); background: var(--danger-soft); }
|
|
601
|
+
.sev.p2 { color: var(--warn); border-color: rgba(var(--warn-rgb), .32); background: var(--warn-soft); }
|
|
602
|
+
.sev.p3 { color: var(--sev3-fg); border-color: var(--sev3-border); background: var(--sev3-bg); }
|
|
603
|
+
.bug-time { margin-left: auto; color: var(--faint); font-size: 10px; white-space: nowrap; }
|
|
604
|
+
.bug-title {
|
|
605
|
+
font-size: 12.8px;
|
|
606
|
+
line-height: 1.42;
|
|
607
|
+
color: var(--text);
|
|
608
|
+
display: -webkit-box;
|
|
609
|
+
-webkit-line-clamp: 2;
|
|
610
|
+
-webkit-box-orient: vertical;
|
|
611
|
+
overflow: hidden;
|
|
612
|
+
word-break: break-word;
|
|
613
|
+
}
|
|
614
|
+
.bug-bottom { display: flex; align-items: center; gap: 8px; margin-top: 1px; min-width: 0; overflow: hidden; }
|
|
615
|
+
.online-status { color: var(--faint); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
616
|
+
.worker-tag { margin-left: auto; color: var(--faint); font-size: 10px; font-family: var(--mono); white-space: nowrap; }
|
|
617
|
+
|
|
618
|
+
.status-pill {
|
|
619
|
+
display: inline-flex; align-items: center; gap: 5px;
|
|
620
|
+
height: 19px; padding: 0 7px;
|
|
621
|
+
border-radius: 5px;
|
|
622
|
+
border: 1px solid var(--line);
|
|
623
|
+
background: rgba(var(--bg-rgb), .5);
|
|
624
|
+
color: var(--muted);
|
|
625
|
+
font-size: 10.5px;
|
|
626
|
+
white-space: nowrap;
|
|
627
|
+
}
|
|
628
|
+
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
|
|
629
|
+
.status-pill.running, .status-pill.launching, .status-pill.verifying, .status-pill.resolving {
|
|
630
|
+
color: var(--accent-fg); border-color: rgba(var(--accent-rgb), .3); background: var(--accent-soft);
|
|
631
|
+
}
|
|
632
|
+
.status-pill.running i, .status-pill.launching i { animation: pulse 1.5s ease-in-out infinite; }
|
|
633
|
+
.status-pill.review { color: var(--violet); border-color: rgba(var(--violet-rgb), .3); background: rgba(var(--violet-rgb), .1); }
|
|
634
|
+
.status-pill.needs_human { color: var(--warn); border-color: rgba(var(--warn-rgb), .32); background: var(--warn-soft); }
|
|
635
|
+
.status-pill.done { color: var(--ok); border-color: rgba(var(--ok-rgb), .3); background: var(--ok-soft); }
|
|
636
|
+
.status-pill.stopped { color: var(--faint); }
|
|
637
|
+
.status-pill.discovered, .status-pill.queued { color: var(--queued-fg); }
|
|
638
|
+
|
|
639
|
+
.empty-list {
|
|
640
|
+
display: flex; flex-direction: column; align-items: center;
|
|
641
|
+
padding: 40px 18px; text-align: center; gap: 6px;
|
|
642
|
+
}
|
|
643
|
+
.empty-icon {
|
|
644
|
+
width: 42px; height: 42px; display: grid; place-items: center;
|
|
645
|
+
border-radius: 12px; border: 1px solid var(--line);
|
|
646
|
+
background: var(--surface); color: var(--faint);
|
|
647
|
+
margin-bottom: 3px;
|
|
648
|
+
}
|
|
649
|
+
.empty-title { font-size: 12.5px; color: var(--text-2); font-weight: 550; }
|
|
650
|
+
.empty-sub { font-size: 11.5px; color: var(--faint); line-height: 1.6; max-width: 240px; }
|
|
651
|
+
|
|
652
|
+
/* ================================ 中栏 ================================ */
|
|
653
|
+
|
|
654
|
+
.center {
|
|
655
|
+
display: flex;
|
|
656
|
+
flex-direction: column;
|
|
657
|
+
min-width: 0;
|
|
658
|
+
min-height: 0;
|
|
659
|
+
position: relative;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.conv-head {
|
|
663
|
+
display: flex; align-items: center; gap: 12px;
|
|
664
|
+
min-height: 62px;
|
|
665
|
+
padding: 11px 20px;
|
|
666
|
+
border-bottom: 1px solid var(--line);
|
|
667
|
+
background: rgba(var(--bg-rgb), .36);
|
|
668
|
+
}
|
|
669
|
+
.conv-head .conv-main { min-width: 0; flex: 1; }
|
|
670
|
+
.conv-title-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
|
|
671
|
+
.conv-title {
|
|
672
|
+
font-size: 14px;
|
|
673
|
+
font-weight: 650;
|
|
674
|
+
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
675
|
+
}
|
|
676
|
+
.conv-sub {
|
|
677
|
+
margin-top: 3px;
|
|
678
|
+
color: var(--muted);
|
|
679
|
+
font-size: 11.5px;
|
|
680
|
+
font-family: var(--mono);
|
|
681
|
+
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
682
|
+
}
|
|
683
|
+
.conv-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
|
|
684
|
+
.sse {
|
|
685
|
+
display: inline-flex; align-items: center; gap: 5px;
|
|
686
|
+
font-size: 10.5px; color: var(--faint);
|
|
687
|
+
}
|
|
688
|
+
.sse i { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
|
|
689
|
+
.sse.live { color: var(--ok); }
|
|
690
|
+
.sse.live i { background: var(--ok); box-shadow: 0 0 7px var(--ok); animation: pulse 2s ease-in-out infinite; }
|
|
691
|
+
.sse.retry { color: var(--warn); }
|
|
692
|
+
.sse.retry i { background: var(--warn); }
|
|
693
|
+
|
|
694
|
+
.messages-wrap { flex: 1; min-height: 0; position: relative; display: flex; }
|
|
695
|
+
.messages {
|
|
696
|
+
flex: 1;
|
|
697
|
+
min-height: 0;
|
|
698
|
+
overflow-y: auto;
|
|
699
|
+
padding: 20px 22px 30px;
|
|
700
|
+
display: flex;
|
|
701
|
+
flex-direction: column;
|
|
702
|
+
gap: 13px;
|
|
703
|
+
/* 不做平滑滚动:自动跟随时若带缓动,会表现为“一直被拽到底部” */
|
|
704
|
+
scroll-behavior: auto;
|
|
705
|
+
/* 关掉浏览器的滚动锚定,由脚本按用户意图恢复 scrollTop */
|
|
706
|
+
overflow-anchor: none;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.conv-empty {
|
|
710
|
+
margin: auto;
|
|
711
|
+
max-width: 420px;
|
|
712
|
+
display: flex; flex-direction: column; align-items: center;
|
|
713
|
+
text-align: center; gap: 9px; padding: 30px;
|
|
714
|
+
}
|
|
715
|
+
.conv-empty .empty-icon { width: 50px; height: 50px; border-radius: 15px; }
|
|
716
|
+
.conv-empty h3 { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; }
|
|
717
|
+
.conv-empty p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
|
|
718
|
+
.conv-empty .hint {
|
|
719
|
+
margin-top: 6px; display: inline-flex; align-items: center; gap: 6px;
|
|
720
|
+
font-size: 11.5px; color: var(--faint);
|
|
721
|
+
border: 1px dashed var(--line); border-radius: 8px; padding: 7px 11px;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
.online-pill {
|
|
725
|
+
display: inline-flex; align-items: center;
|
|
726
|
+
font-size: 11px; color: var(--faint);
|
|
727
|
+
background: rgba(var(--overlay-rgb), .04); border: 1px solid var(--line);
|
|
728
|
+
padding: 1px 7px; border-radius: 999px;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.msg { display: flex; gap: 11px; max-width: 100%; animation: msgIn .22s ease-out; }
|
|
732
|
+
/* 整表重绘时关闭渐入,避免每次刷新整页消息一起闪动 */
|
|
733
|
+
.messages.no-anim .msg { animation: none; }
|
|
734
|
+
@keyframes msgIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
|
|
735
|
+
|
|
736
|
+
.msg-col {
|
|
737
|
+
display: flex;
|
|
738
|
+
flex-direction: column;
|
|
739
|
+
min-width: 0;
|
|
740
|
+
max-width: 100%;
|
|
741
|
+
}
|
|
742
|
+
.msg-meta {
|
|
743
|
+
display: flex;
|
|
744
|
+
align-items: center;
|
|
745
|
+
gap: 8px;
|
|
746
|
+
font-size: 11.5px;
|
|
747
|
+
margin-bottom: 4px;
|
|
748
|
+
}
|
|
749
|
+
.msg-author { font-weight: 600; color: var(--text-2); font-size: 12px; }
|
|
750
|
+
.msg-time { font-size: 10.5px; color: var(--faint); font-family: var(--mono); }
|
|
751
|
+
|
|
752
|
+
.ai-avatar {
|
|
753
|
+
width: 28px; height: 28px; flex: 0 0 auto;
|
|
754
|
+
display: grid; place-items: center;
|
|
755
|
+
border-radius: 8px;
|
|
756
|
+
color: var(--ai-avatar-fg);
|
|
757
|
+
background: linear-gradient(135deg, rgba(var(--accent-rgb), .24), rgba(70,95,200,.14));
|
|
758
|
+
border: 1px solid rgba(var(--accent-rgb), .32);
|
|
759
|
+
margin-top: 1px;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.msg.agent .msg-col { max-width: min(860px, 92%); }
|
|
763
|
+
.msg.agent .bubble {
|
|
764
|
+
font-size: 13.5px;
|
|
765
|
+
line-height: 1.75;
|
|
766
|
+
color: var(--text);
|
|
767
|
+
word-break: break-word;
|
|
768
|
+
background: rgba(var(--bubble-rgb), .85);
|
|
769
|
+
border: 1px solid rgba(var(--overlay-rgb), .08);
|
|
770
|
+
border-radius: 4px 14px 14px 14px;
|
|
771
|
+
padding: 12px 16px;
|
|
772
|
+
box-shadow: 0 4px 18px rgba(var(--shadow-rgb), .24);
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.msg.user { justify-content: flex-end; }
|
|
776
|
+
.msg.user .msg-col { max-width: min(720px, 85%); align-items: flex-end; }
|
|
777
|
+
.msg.user .msg-meta { justify-content: flex-end; }
|
|
778
|
+
.msg.user .bubble {
|
|
779
|
+
padding: 10px 14px;
|
|
780
|
+
border-radius: 14px 4px 14px 14px;
|
|
781
|
+
background: var(--user-bubble-bg);
|
|
782
|
+
border: 1px solid var(--user-bubble-border);
|
|
783
|
+
color: var(--user-bubble-fg);
|
|
784
|
+
font-size: 13.2px;
|
|
785
|
+
line-height: 1.65;
|
|
786
|
+
word-break: break-word;
|
|
787
|
+
box-shadow: 0 4px 14px var(--user-bubble-shadow);
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
.msg-actions {
|
|
791
|
+
display: flex;
|
|
792
|
+
align-items: center;
|
|
793
|
+
gap: 6px;
|
|
794
|
+
margin-top: 5px;
|
|
795
|
+
opacity: 0.65;
|
|
796
|
+
transition: opacity .18s;
|
|
797
|
+
}
|
|
798
|
+
.msg:hover .msg-actions { opacity: 1; }
|
|
799
|
+
.msg-act-btn {
|
|
800
|
+
display: inline-flex; align-items: center; gap: 4px;
|
|
801
|
+
background: transparent; border: 1px solid transparent;
|
|
802
|
+
padding: 2px 7px; border-radius: 5px;
|
|
803
|
+
font-size: 11px; color: var(--faint);
|
|
804
|
+
cursor: pointer;
|
|
805
|
+
transition: color .15s, background .15s, border-color .15s;
|
|
806
|
+
}
|
|
807
|
+
.msg-act-btn:hover {
|
|
808
|
+
color: var(--text); background: var(--surface-2); border-color: var(--line);
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
/* DeepSeek 风格代码块与 Markdown 元素 */
|
|
812
|
+
.ds-inline-code {
|
|
813
|
+
font-family: var(--mono);
|
|
814
|
+
font-size: 12px;
|
|
815
|
+
padding: 2px 6px;
|
|
816
|
+
border-radius: 5px;
|
|
817
|
+
background: rgba(var(--overlay-rgb), .08);
|
|
818
|
+
border: 1px solid rgba(var(--overlay-rgb), .1);
|
|
819
|
+
color: var(--inline-code-fg);
|
|
820
|
+
}
|
|
821
|
+
.ds-quote {
|
|
822
|
+
margin: 8px 0;
|
|
823
|
+
padding: 6px 12px;
|
|
824
|
+
border-left: 3px solid var(--accent);
|
|
825
|
+
background: rgba(var(--accent-rgb), .07);
|
|
826
|
+
border-radius: 0 6px 6px 0;
|
|
827
|
+
color: var(--text-2);
|
|
828
|
+
font-size: 13px;
|
|
829
|
+
}
|
|
830
|
+
.ds-li {
|
|
831
|
+
display: flex;
|
|
832
|
+
align-items: baseline;
|
|
833
|
+
gap: 8px;
|
|
834
|
+
margin: 3px 0;
|
|
835
|
+
line-height: 1.65;
|
|
836
|
+
}
|
|
837
|
+
.ds-bullet { color: var(--accent); font-weight: bold; }
|
|
838
|
+
.ds-num { color: var(--faint); font-family: var(--mono); font-size: 12px; }
|
|
839
|
+
|
|
840
|
+
h1, h2, h3, h4, h5, h6 {
|
|
841
|
+
margin: 12px 0 6px;
|
|
842
|
+
font-weight: 600;
|
|
843
|
+
color: var(--text-1);
|
|
844
|
+
line-height: 1.4;
|
|
845
|
+
}
|
|
846
|
+
h1 { font-size: 18px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
|
|
847
|
+
h2 { font-size: 16px; }
|
|
848
|
+
h3 { font-size: 15px; }
|
|
849
|
+
h4 { font-size: 14px; }
|
|
850
|
+
h5 { font-size: 13px; }
|
|
851
|
+
h6 { font-size: 12px; color: var(--text-2); }
|
|
852
|
+
.ds-hr {
|
|
853
|
+
margin: 16px 0;
|
|
854
|
+
border: none;
|
|
855
|
+
border-top: 1px solid var(--line);
|
|
856
|
+
}
|
|
857
|
+
.bubble a {
|
|
858
|
+
color: var(--accent);
|
|
859
|
+
text-decoration: none;
|
|
860
|
+
border-bottom: 1px dashed var(--accent);
|
|
861
|
+
}
|
|
862
|
+
.bubble a:hover {
|
|
863
|
+
color: var(--link-hover);
|
|
864
|
+
border-bottom-style: solid;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
.ds-code-block {
|
|
868
|
+
margin: 10px 0;
|
|
869
|
+
border-radius: 10px;
|
|
870
|
+
border: 1px solid rgba(var(--overlay-rgb), .1);
|
|
871
|
+
background: var(--code-bg);
|
|
872
|
+
overflow: hidden;
|
|
873
|
+
box-shadow: 0 3px 12px rgba(var(--shadow-rgb), .35);
|
|
874
|
+
}
|
|
875
|
+
.cb-header {
|
|
876
|
+
display: flex;
|
|
877
|
+
align-items: center;
|
|
878
|
+
justify-content: space-between;
|
|
879
|
+
padding: 6px 12px;
|
|
880
|
+
background: rgba(var(--overlay-rgb), .04);
|
|
881
|
+
border-bottom: 1px solid rgba(var(--overlay-rgb), .06);
|
|
882
|
+
}
|
|
883
|
+
.cb-lang {
|
|
884
|
+
font-size: 11px;
|
|
885
|
+
font-family: var(--mono);
|
|
886
|
+
text-transform: lowercase;
|
|
887
|
+
color: var(--faint);
|
|
888
|
+
letter-spacing: .04em;
|
|
889
|
+
}
|
|
890
|
+
.cb-copy-btn {
|
|
891
|
+
display: inline-flex; align-items: center; gap: 4px;
|
|
892
|
+
padding: 2px 8px; border-radius: 5px;
|
|
893
|
+
border: 1px solid var(--line);
|
|
894
|
+
background: rgba(var(--overlay-rgb), .04);
|
|
895
|
+
color: var(--text-2);
|
|
896
|
+
font-size: 11px; cursor: pointer;
|
|
897
|
+
transition: all .16s;
|
|
898
|
+
}
|
|
899
|
+
.cb-copy-btn:hover {
|
|
900
|
+
background: var(--surface-3); border-color: var(--accent); color: var(--text);
|
|
901
|
+
}
|
|
902
|
+
.ds-code-block pre {
|
|
903
|
+
margin: 0;
|
|
904
|
+
padding: 12px 14px;
|
|
905
|
+
overflow-x: auto;
|
|
906
|
+
font-family: var(--mono);
|
|
907
|
+
font-size: 12.2px;
|
|
908
|
+
line-height: 1.65;
|
|
909
|
+
color: var(--code-fg);
|
|
910
|
+
}
|
|
911
|
+
.msg.log { padding-left: 36px; }
|
|
912
|
+
.msg.log span {
|
|
913
|
+
font-family: var(--mono);
|
|
914
|
+
font-size: 11px;
|
|
915
|
+
color: var(--faint);
|
|
916
|
+
white-space: pre-wrap;
|
|
917
|
+
word-break: break-all;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
.event-line {
|
|
921
|
+
display: flex; align-items: center; gap: 10px;
|
|
922
|
+
color: var(--faint);
|
|
923
|
+
font-size: 11px;
|
|
924
|
+
padding: 1px 0;
|
|
925
|
+
}
|
|
926
|
+
.event-line::before, .event-line::after {
|
|
927
|
+
content: ""; flex: 1; height: 1px; background: var(--line-soft);
|
|
928
|
+
}
|
|
929
|
+
.event-line span { max-width: 70%; text-align: center; }
|
|
930
|
+
|
|
931
|
+
/* 发给主 Agent 的指令:默认展开,确认主 Agent 到底收到了什么 */
|
|
932
|
+
.prompt-card {
|
|
933
|
+
margin-left: 36px;
|
|
934
|
+
border: 1px solid rgba(var(--accent-rgb), .28);
|
|
935
|
+
border-radius: 10px;
|
|
936
|
+
background: rgba(var(--accent-rgb), .06);
|
|
937
|
+
overflow: hidden;
|
|
938
|
+
}
|
|
939
|
+
.prompt-card > summary {
|
|
940
|
+
display: flex; align-items: center; gap: 8px;
|
|
941
|
+
padding: 8px 11px;
|
|
942
|
+
cursor: pointer;
|
|
943
|
+
list-style: none;
|
|
944
|
+
font-size: 12px;
|
|
945
|
+
color: var(--text-2);
|
|
946
|
+
}
|
|
947
|
+
.prompt-card > summary::-webkit-details-marker { display: none; }
|
|
948
|
+
.prompt-card .pc-ico { color: var(--accent); display: inline-flex; }
|
|
949
|
+
.prompt-card .pc-title { font-weight: 600; color: var(--text); }
|
|
950
|
+
.prompt-card .pc-trigger { margin-left: auto; color: var(--faint); font-size: 11px; }
|
|
951
|
+
.prompt-card .pc-body {
|
|
952
|
+
margin: 0;
|
|
953
|
+
padding: 10px 13px 12px;
|
|
954
|
+
border-top: 1px solid rgba(var(--accent-rgb), .18);
|
|
955
|
+
font-family: var(--mono);
|
|
956
|
+
font-size: 11.5px;
|
|
957
|
+
line-height: 1.65;
|
|
958
|
+
color: var(--text-2);
|
|
959
|
+
white-space: pre-wrap;
|
|
960
|
+
word-break: break-word;
|
|
961
|
+
max-height: 420px;
|
|
962
|
+
overflow: auto;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
/* 思考过程默认展开:直接显示 Agent 的思考链,仍可折叠收起 */
|
|
966
|
+
.thinking { margin-left: 36px; }
|
|
967
|
+
.thinking > summary {
|
|
968
|
+
display: inline-flex; align-items: center; gap: 6px;
|
|
969
|
+
padding: 4px 9px;
|
|
970
|
+
border-radius: 7px;
|
|
971
|
+
cursor: pointer;
|
|
972
|
+
list-style: none;
|
|
973
|
+
font-size: 11.5px;
|
|
974
|
+
color: var(--text-2);
|
|
975
|
+
border: 1px solid rgba(var(--overlay-rgb), .06);
|
|
976
|
+
background: rgba(var(--surface-rgb), .35);
|
|
977
|
+
}
|
|
978
|
+
.thinking > summary::-webkit-details-marker { display: none; }
|
|
979
|
+
.thinking > summary:hover { border-color: rgba(var(--accent-rgb), .35); background: rgba(var(--accent-rgb), .08); }
|
|
980
|
+
.thinking .th-body {
|
|
981
|
+
margin-top: 5px;
|
|
982
|
+
padding: 8px 11px;
|
|
983
|
+
border-left: 2px solid rgba(var(--accent-rgb), .28);
|
|
984
|
+
border-radius: 0 8px 8px 0;
|
|
985
|
+
background: rgba(var(--accent-rgb), .05);
|
|
986
|
+
font-size: 12px;
|
|
987
|
+
line-height: 1.65;
|
|
988
|
+
color: var(--text-2);
|
|
989
|
+
white-space: pre-wrap;
|
|
990
|
+
word-break: break-word;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
/* 工具调用:紧凑时间线,连续操作自动聚合 */
|
|
994
|
+
.tool-step, .tool-group { animation: msgIn .18s ease-out; }
|
|
995
|
+
.tool-step { margin-left: 36px; }
|
|
996
|
+
.tool-step > summary {
|
|
997
|
+
display: flex; align-items: center; gap: 8px;
|
|
998
|
+
padding: 4px 8px 4px 6px;
|
|
999
|
+
border-radius: 7px;
|
|
1000
|
+
cursor: pointer;
|
|
1001
|
+
list-style: none;
|
|
1002
|
+
font-size: 11.5px;
|
|
1003
|
+
color: var(--text-2);
|
|
1004
|
+
user-select: none;
|
|
1005
|
+
transition: background .15s;
|
|
1006
|
+
}
|
|
1007
|
+
.tool-step > summary::-webkit-details-marker { display: none; }
|
|
1008
|
+
.tool-step > summary:hover { background: rgba(var(--overlay-rgb), .035); }
|
|
1009
|
+
.tool-step.in-group > summary { padding: 3px 7px 3px 5px; }
|
|
1010
|
+
.tool-step .ts-ico { display: inline-flex; flex: 0 0 auto; color: var(--faint); }
|
|
1011
|
+
.tool-step.done .ts-ico { color: rgba(var(--ok-rgb), .8); }
|
|
1012
|
+
.tool-step.failed .ts-ico { color: var(--danger); }
|
|
1013
|
+
.tool-step.running .ts-ico { color: var(--warn); animation: pulse 1.6s ease-in-out infinite; }
|
|
1014
|
+
.tool-step .ts-name { flex: 0 0 auto; font-family: var(--mono); font-size: 11px; color: var(--tool-fg); }
|
|
1015
|
+
.tool-step .ts-hint {
|
|
1016
|
+
min-width: 0;
|
|
1017
|
+
font-size: 11px; color: var(--faint);
|
|
1018
|
+
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
1019
|
+
}
|
|
1020
|
+
.tool-step .ts-hint.muted { opacity: .6; }
|
|
1021
|
+
.tool-step .ts-body {
|
|
1022
|
+
margin: 3px 0 7px 21px;
|
|
1023
|
+
padding-left: 10px;
|
|
1024
|
+
border-left: 1px solid var(--line-soft);
|
|
1025
|
+
}
|
|
1026
|
+
.tool-step .ts-sec { display: flex; flex-direction: column; gap: 3px; margin-bottom: 7px; }
|
|
1027
|
+
.tool-step .ts-sec:last-child { margin-bottom: 0; }
|
|
1028
|
+
.ts-label { font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
|
|
1029
|
+
.tool-step pre {
|
|
1030
|
+
margin: 0;
|
|
1031
|
+
padding: 8px 10px;
|
|
1032
|
+
border-radius: 7px;
|
|
1033
|
+
border: 1px solid var(--line-soft);
|
|
1034
|
+
background: rgba(var(--bg-rgb), .6);
|
|
1035
|
+
color: var(--muted);
|
|
1036
|
+
font-size: 11px;
|
|
1037
|
+
line-height: 1.6;
|
|
1038
|
+
white-space: pre-wrap;
|
|
1039
|
+
word-break: break-word;
|
|
1040
|
+
max-height: 240px;
|
|
1041
|
+
overflow: auto;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
.tool-group {
|
|
1045
|
+
margin-left: 36px;
|
|
1046
|
+
border: 1px solid var(--line-soft);
|
|
1047
|
+
border-radius: 9px;
|
|
1048
|
+
background: rgba(var(--surface-rgb), .5);
|
|
1049
|
+
overflow: hidden;
|
|
1050
|
+
}
|
|
1051
|
+
.tool-group > summary {
|
|
1052
|
+
display: flex; align-items: center; gap: 8px;
|
|
1053
|
+
padding: 6px 10px;
|
|
1054
|
+
cursor: pointer;
|
|
1055
|
+
list-style: none;
|
|
1056
|
+
font-size: 11.5px;
|
|
1057
|
+
color: var(--text-2);
|
|
1058
|
+
user-select: none;
|
|
1059
|
+
}
|
|
1060
|
+
.tool-group > summary::-webkit-details-marker { display: none; }
|
|
1061
|
+
.tool-group > summary:hover { background: rgba(var(--overlay-rgb), .035); }
|
|
1062
|
+
.tg-bolt { display: inline-flex; flex: 0 0 auto; color: var(--violet); }
|
|
1063
|
+
.tg-title { flex: 0 0 auto; white-space: nowrap; }
|
|
1064
|
+
.tg-title b { color: var(--text); font-variant-numeric: tabular-nums; }
|
|
1065
|
+
.tg-chips { display: flex; gap: 5px; flex: 1; min-width: 0; overflow: hidden; }
|
|
1066
|
+
.tg-chip {
|
|
1067
|
+
flex: 0 0 auto;
|
|
1068
|
+
padding: 1px 6px;
|
|
1069
|
+
border-radius: 5px;
|
|
1070
|
+
background: rgba(var(--overlay-rgb), .045);
|
|
1071
|
+
font-family: var(--mono);
|
|
1072
|
+
font-size: 10px;
|
|
1073
|
+
color: var(--faint);
|
|
1074
|
+
white-space: nowrap;
|
|
1075
|
+
}
|
|
1076
|
+
.tg-chip b { color: var(--text-2); font-weight: 600; }
|
|
1077
|
+
.tg-badge { flex: 0 0 auto; margin-left: auto; padding: 1px 7px; border-radius: 999px; font-size: 10px; white-space: nowrap; }
|
|
1078
|
+
.tg-badge.err { color: var(--danger-fg); background: var(--danger-soft); }
|
|
1079
|
+
.tg-badge.run { color: var(--warn); background: var(--warn-soft); }
|
|
1080
|
+
.tg-steps {
|
|
1081
|
+
display: flex; flex-direction: column; gap: 1px;
|
|
1082
|
+
padding: 3px 5px 7px 8px;
|
|
1083
|
+
border-top: 1px solid var(--line-soft);
|
|
1084
|
+
}
|
|
1085
|
+
.tg-steps .tool-step { margin-left: 0; }
|
|
1086
|
+
.tg-steps .tool-step .ts-body { margin-left: 20px; }
|
|
1087
|
+
|
|
1088
|
+
.result-line {
|
|
1089
|
+
margin-left: 36px;
|
|
1090
|
+
display: flex; align-items: flex-start; gap: 8px;
|
|
1091
|
+
padding: 9px 11px;
|
|
1092
|
+
border-radius: 9px;
|
|
1093
|
+
border: 1px solid rgba(var(--ok-rgb), .22);
|
|
1094
|
+
background: var(--ok-soft);
|
|
1095
|
+
color: var(--ok-fg);
|
|
1096
|
+
font-size: 12.5px;
|
|
1097
|
+
white-space: pre-wrap;
|
|
1098
|
+
word-break: break-word;
|
|
1099
|
+
}
|
|
1100
|
+
.result-line.err { border-color: rgba(var(--danger-rgb), .26); background: var(--danger-soft); color: var(--danger-fg); }
|
|
1101
|
+
.result-line .icon { margin-top: 2px; }
|
|
1102
|
+
|
|
1103
|
+
.typing {
|
|
1104
|
+
margin-left: 36px;
|
|
1105
|
+
display: inline-flex; align-items: center; gap: 4px;
|
|
1106
|
+
padding: 8px 0;
|
|
1107
|
+
}
|
|
1108
|
+
.typing i {
|
|
1109
|
+
width: 5px; height: 5px; border-radius: 50%;
|
|
1110
|
+
background: var(--muted);
|
|
1111
|
+
animation: typing 1.15s infinite ease-in-out;
|
|
1112
|
+
}
|
|
1113
|
+
.typing i:nth-child(2) { animation-delay: .15s; }
|
|
1114
|
+
.typing i:nth-child(3) { animation-delay: .3s; }
|
|
1115
|
+
@keyframes typing { 0%,80%,100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
|
|
1116
|
+
|
|
1117
|
+
.jump-bottom {
|
|
1118
|
+
position: absolute;
|
|
1119
|
+
right: 24px;
|
|
1120
|
+
bottom: 16px;
|
|
1121
|
+
height: 28px;
|
|
1122
|
+
display: inline-flex; align-items: center; gap: 5px;
|
|
1123
|
+
padding: 0 10px;
|
|
1124
|
+
border-radius: 999px;
|
|
1125
|
+
border: 1px solid var(--line);
|
|
1126
|
+
background: var(--surface-2);
|
|
1127
|
+
color: var(--text-2);
|
|
1128
|
+
font-size: 11px;
|
|
1129
|
+
box-shadow: var(--shadow);
|
|
1130
|
+
z-index: 5;
|
|
1131
|
+
}
|
|
1132
|
+
.jump-bottom:hover { border-color: var(--accent); color: var(--text); }
|
|
1133
|
+
|
|
1134
|
+
/* 类似 DeepSeek 的悬浮/一体化输入框容器 */
|
|
1135
|
+
.composer-container {
|
|
1136
|
+
padding: 12px 20px 16px;
|
|
1137
|
+
background: linear-gradient(180deg, rgba(var(--bg-rgb), 0) 0%, rgba(var(--bg-rgb), .78) 28%, rgba(var(--bg-rgb), .96) 100%);
|
|
1138
|
+
}
|
|
1139
|
+
.composer-box {
|
|
1140
|
+
display: flex;
|
|
1141
|
+
flex-direction: column;
|
|
1142
|
+
background: rgba(var(--bubble-rgb), .94);
|
|
1143
|
+
border: 1px solid rgba(var(--overlay-rgb), .12);
|
|
1144
|
+
border-radius: 14px;
|
|
1145
|
+
box-shadow: 0 8px 30px rgba(var(--shadow-rgb), .45), inset 0 1px 0 rgba(var(--overlay-rgb), .05);
|
|
1146
|
+
transition: border-color .18s, box-shadow .18s;
|
|
1147
|
+
padding: 10px 14px 10px;
|
|
1148
|
+
}
|
|
1149
|
+
.composer-box:focus-within {
|
|
1150
|
+
border-color: rgba(var(--accent-rgb), .6);
|
|
1151
|
+
box-shadow: 0 8px 32px rgba(var(--accent-rgb), .16), 0 0 0 1px rgba(var(--accent-rgb), .25);
|
|
1152
|
+
}
|
|
1153
|
+
.composer-box textarea {
|
|
1154
|
+
width: 100%;
|
|
1155
|
+
min-height: 42px;
|
|
1156
|
+
max-height: 180px;
|
|
1157
|
+
resize: none;
|
|
1158
|
+
background: transparent;
|
|
1159
|
+
border: none;
|
|
1160
|
+
color: var(--text);
|
|
1161
|
+
font-size: 13.5px;
|
|
1162
|
+
line-height: 1.6;
|
|
1163
|
+
outline: none;
|
|
1164
|
+
padding: 2px 0 6px;
|
|
1165
|
+
}
|
|
1166
|
+
.composer-box textarea::placeholder { color: var(--faint); font-size: 13px; }
|
|
1167
|
+
.composer-box textarea:disabled { opacity: .5; }
|
|
1168
|
+
|
|
1169
|
+
.composer-toolbar {
|
|
1170
|
+
display: flex;
|
|
1171
|
+
align-items: center;
|
|
1172
|
+
justify-content: space-between;
|
|
1173
|
+
border-top: 1px solid rgba(var(--overlay-rgb), .06);
|
|
1174
|
+
padding-top: 8px;
|
|
1175
|
+
margin-top: 2px;
|
|
1176
|
+
}
|
|
1177
|
+
.composer-hints {
|
|
1178
|
+
display: flex;
|
|
1179
|
+
align-items: center;
|
|
1180
|
+
gap: 10px;
|
|
1181
|
+
font-size: 11px;
|
|
1182
|
+
color: var(--faint);
|
|
1183
|
+
}
|
|
1184
|
+
.hint-tag {
|
|
1185
|
+
display: inline-flex; align-items: center; gap: 4px;
|
|
1186
|
+
color: var(--accent);
|
|
1187
|
+
font-weight: 500;
|
|
1188
|
+
}
|
|
1189
|
+
.hint-kbd { display: inline-flex; align-items: center; gap: 3px; }
|
|
1190
|
+
.hint-kbd kbd {
|
|
1191
|
+
background: rgba(var(--overlay-rgb), .08);
|
|
1192
|
+
border: 1px solid rgba(var(--overlay-rgb), .12);
|
|
1193
|
+
border-radius: 4px;
|
|
1194
|
+
padding: 1px 5px;
|
|
1195
|
+
font-size: 10px;
|
|
1196
|
+
color: var(--text-2);
|
|
1197
|
+
}
|
|
1198
|
+
.composer-toolbar .send {
|
|
1199
|
+
height: 32px;
|
|
1200
|
+
padding: 0 14px;
|
|
1201
|
+
border-radius: 8px;
|
|
1202
|
+
font-size: 12.5px;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
/* ================================ 右栏 ================================ */
|
|
1206
|
+
|
|
1207
|
+
.right {
|
|
1208
|
+
min-height: 0;
|
|
1209
|
+
overflow-y: auto;
|
|
1210
|
+
border-left: 1px solid var(--line);
|
|
1211
|
+
background: rgba(var(--panel-rgb), .5);
|
|
1212
|
+
padding: 16px 16px 30px;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
.right-head {
|
|
1216
|
+
display: flex; align-items: center; gap: 8px;
|
|
1217
|
+
margin-bottom: 14px;
|
|
1218
|
+
}
|
|
1219
|
+
.eyebrow {
|
|
1220
|
+
font-size: 10px; font-weight: 650;
|
|
1221
|
+
letter-spacing: .13em; text-transform: uppercase;
|
|
1222
|
+
color: var(--faint);
|
|
1223
|
+
}
|
|
1224
|
+
.right-head .status-pill { margin-left: auto; }
|
|
1225
|
+
|
|
1226
|
+
.detail-title {
|
|
1227
|
+
font-size: 16px;
|
|
1228
|
+
line-height: 1.45;
|
|
1229
|
+
font-weight: 620;
|
|
1230
|
+
margin: 4px 0 10px;
|
|
1231
|
+
word-break: break-word;
|
|
1232
|
+
}
|
|
1233
|
+
.detail-code {
|
|
1234
|
+
display: flex; align-items: center; gap: 8px;
|
|
1235
|
+
font-family: var(--mono);
|
|
1236
|
+
font-size: 11.5px;
|
|
1237
|
+
color: var(--muted);
|
|
1238
|
+
margin-bottom: 10px;
|
|
1239
|
+
}
|
|
1240
|
+
.copy-btn {
|
|
1241
|
+
display: inline-grid; place-items: center;
|
|
1242
|
+
width: 22px; height: 22px;
|
|
1243
|
+
border-radius: 5px;
|
|
1244
|
+
border: 1px solid var(--line);
|
|
1245
|
+
background: transparent;
|
|
1246
|
+
color: var(--faint);
|
|
1247
|
+
}
|
|
1248
|
+
.copy-btn:hover { color: var(--text); border-color: var(--accent); }
|
|
1249
|
+
|
|
1250
|
+
.meta-grid {
|
|
1251
|
+
display: grid;
|
|
1252
|
+
grid-template-columns: 1fr 1fr;
|
|
1253
|
+
gap: 1px;
|
|
1254
|
+
border: 1px solid var(--line);
|
|
1255
|
+
border-radius: 10px;
|
|
1256
|
+
overflow: hidden;
|
|
1257
|
+
background: var(--line);
|
|
1258
|
+
margin-bottom: 14px;
|
|
1259
|
+
}
|
|
1260
|
+
.meta-item { background: var(--surface); padding: 9px 11px; min-width: 0; }
|
|
1261
|
+
.meta-item .k { color: var(--faint); font-size: 10px; letter-spacing: .04em; }
|
|
1262
|
+
.meta-item .v {
|
|
1263
|
+
margin-top: 2px;
|
|
1264
|
+
color: var(--text-2);
|
|
1265
|
+
font-size: 12px;
|
|
1266
|
+
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
1267
|
+
}
|
|
1268
|
+
.meta-item .v.mono { font-family: var(--mono); font-size: 11px; }
|
|
1269
|
+
|
|
1270
|
+
.section { margin-top: 16px; }
|
|
1271
|
+
.section-head {
|
|
1272
|
+
display: flex; align-items: center; gap: 7px;
|
|
1273
|
+
margin-bottom: 8px;
|
|
1274
|
+
}
|
|
1275
|
+
.section-title {
|
|
1276
|
+
font-size: 10.5px; font-weight: 650;
|
|
1277
|
+
letter-spacing: .1em; text-transform: uppercase;
|
|
1278
|
+
color: var(--faint);
|
|
1279
|
+
}
|
|
1280
|
+
.section-head .line { flex: 1; height: 1px; background: var(--line-soft); }
|
|
1281
|
+
|
|
1282
|
+
.needs-card {
|
|
1283
|
+
border: 1px solid rgba(var(--warn-rgb), .34);
|
|
1284
|
+
border-radius: 11px;
|
|
1285
|
+
background: linear-gradient(145deg, rgba(var(--warn-rgb), .1), rgba(var(--warn-rgb), .03));
|
|
1286
|
+
padding: 12px;
|
|
1287
|
+
margin-bottom: 12px;
|
|
1288
|
+
box-shadow: inset 0 1px 0 rgba(var(--overlay-rgb), .03);
|
|
1289
|
+
}
|
|
1290
|
+
.needs-card .needs-title {
|
|
1291
|
+
display: flex; align-items: center; gap: 7px;
|
|
1292
|
+
color: var(--warn); font-size: 12px; font-weight: 650;
|
|
1293
|
+
margin-bottom: 5px;
|
|
1294
|
+
}
|
|
1295
|
+
.needs-card .needs-reason { font-size: 12.5px; line-height: 1.6; color: var(--warn-fg-2); word-break: break-word; }
|
|
1296
|
+
.needs-card .needs-next { margin-top: 7px; font-size: 11.5px; color: var(--text-2); }
|
|
1297
|
+
.needs-card ul { margin: 6px 0 0; padding-left: 16px; color: var(--muted); font-size: 11.5px; }
|
|
1298
|
+
.needs-card li { margin: 2px 0; }
|
|
1299
|
+
|
|
1300
|
+
/* 待人工处理的可点选项:每个按钮都必须真的推动任务往前走 */
|
|
1301
|
+
.needs-options { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
|
|
1302
|
+
.needs-option {
|
|
1303
|
+
display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
|
|
1304
|
+
width: 100%; text-align: left; cursor: pointer;
|
|
1305
|
+
padding: 8px 10px; border-radius: 9px;
|
|
1306
|
+
border: 1px solid rgba(var(--warn-rgb), .34);
|
|
1307
|
+
background: rgba(var(--warn-rgb), .08);
|
|
1308
|
+
color: var(--text-1); font-size: 12.5px; font-weight: 600;
|
|
1309
|
+
transition: background .15s ease, border-color .15s ease, transform .12s ease;
|
|
1310
|
+
}
|
|
1311
|
+
.needs-option:hover { background: rgba(var(--warn-rgb), .16); border-color: rgba(var(--warn-rgb), .55); }
|
|
1312
|
+
.needs-option:active { transform: translateY(1px); }
|
|
1313
|
+
.needs-option-label { line-height: 1.4; }
|
|
1314
|
+
.needs-option-note { font-size: 10.5px; font-weight: 400; color: var(--text-2); line-height: 1.45; }
|
|
1315
|
+
|
|
1316
|
+
/* 工作区配置档 */
|
|
1317
|
+
.profile-list { display: flex; flex-direction: column; gap: 8px; }
|
|
1318
|
+
.step-num.step-icon { display: flex; align-items: center; justify-content: center; }
|
|
1319
|
+
.profile-row {
|
|
1320
|
+
display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
|
|
1321
|
+
padding: 10px 12px; border-radius: 11px;
|
|
1322
|
+
border: 1px solid var(--line-soft); background: rgba(var(--overlay-rgb), .015);
|
|
1323
|
+
transition: border-color .15s ease, background .15s ease;
|
|
1324
|
+
}
|
|
1325
|
+
.profile-row:hover { border-color: var(--line); background: rgba(var(--overlay-rgb), .035); }
|
|
1326
|
+
.profile-row.checked { border-color: rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .08); }
|
|
1327
|
+
.profile-row input { margin-top: 3px; accent-color: var(--accent, var(--role-frontend)); }
|
|
1328
|
+
.profile-main { min-width: 0; flex: 1; }
|
|
1329
|
+
.profile-name { font-size: 13px; font-weight: 650; color: var(--text-1); }
|
|
1330
|
+
.profile-meta {
|
|
1331
|
+
display: flex; flex-wrap: wrap; gap: 10px;
|
|
1332
|
+
margin-top: 3px; font-size: 11px; color: var(--text-2);
|
|
1333
|
+
}
|
|
1334
|
+
.profile-repos { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
|
|
1335
|
+
.profile-repos .file-chip { display: inline-flex; align-items: center; gap: 5px; }
|
|
1336
|
+
.profile-repos .file-chip i { font-style: normal; font-size: 10px; opacity: .72; }
|
|
1337
|
+
.profile-repos .role-frontend { color: var(--role-frontend); }
|
|
1338
|
+
.profile-repos .role-backend { color: var(--role-backend); }
|
|
1339
|
+
.profile-repos .role-mobile { color: var(--role-mobile); }
|
|
1340
|
+
|
|
1341
|
+
.question-card {
|
|
1342
|
+
border: 1px solid rgba(var(--warn-rgb), .3);
|
|
1343
|
+
border-radius: 11px;
|
|
1344
|
+
background: var(--warn-soft);
|
|
1345
|
+
padding: 11px 12px;
|
|
1346
|
+
margin-bottom: 10px;
|
|
1347
|
+
}
|
|
1348
|
+
.question-card .q-text { font-size: 12.5px; font-weight: 600; line-height: 1.55; color: var(--warn-fg-3); }
|
|
1349
|
+
.question-card .q-ctx { margin-top: 3px; font-size: 11px; color: var(--muted); }
|
|
1350
|
+
.q-opts { display: flex; flex-direction: column; gap: 6px; margin-top: 9px; }
|
|
1351
|
+
.q-opt {
|
|
1352
|
+
display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
|
|
1353
|
+
width: 100%;
|
|
1354
|
+
padding: 7px 10px;
|
|
1355
|
+
text-align: left;
|
|
1356
|
+
border-radius: 8px;
|
|
1357
|
+
border: 1px solid rgba(var(--warn-rgb), .22);
|
|
1358
|
+
background: rgba(var(--bg-rgb), .42);
|
|
1359
|
+
color: var(--text);
|
|
1360
|
+
font-size: 11.5px;
|
|
1361
|
+
transition: border-color .14s, background .14s;
|
|
1362
|
+
}
|
|
1363
|
+
.q-opt:hover { border-color: var(--warn); background: rgba(var(--warn-rgb), .1); }
|
|
1364
|
+
.q-opt .cons { color: var(--faint); font-size: 10.5px; }
|
|
1365
|
+
.q-free { display: flex; gap: 6px; margin-top: 8px; }
|
|
1366
|
+
.q-free input { flex: 1; height: 30px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg); font-size: 12px; outline: none; }
|
|
1367
|
+
.q-free input:focus { border-color: var(--accent); }
|
|
1368
|
+
|
|
1369
|
+
.info-card {
|
|
1370
|
+
border: 1px solid var(--line);
|
|
1371
|
+
border-radius: 10px;
|
|
1372
|
+
background: var(--surface);
|
|
1373
|
+
padding: 11px 12px;
|
|
1374
|
+
font-size: 12px;
|
|
1375
|
+
color: var(--text-2);
|
|
1376
|
+
line-height: 1.65;
|
|
1377
|
+
white-space: pre-wrap;
|
|
1378
|
+
word-break: break-word;
|
|
1379
|
+
}
|
|
1380
|
+
.info-card.ok { border-color: rgba(var(--ok-rgb), .24); background: var(--ok-soft); color: var(--ok-fg-2); }
|
|
1381
|
+
.info-card.bad { border-color: rgba(var(--danger-rgb), .24); background: var(--danger-soft); color: var(--danger-fg); }
|
|
1382
|
+
.info-card .summary-label { display: block; color: var(--faint); font-size: 10px; letter-spacing: .06em; margin-bottom: 3px; }
|
|
1383
|
+
|
|
1384
|
+
.file-chips { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
1385
|
+
.file-chip {
|
|
1386
|
+
max-width: 100%;
|
|
1387
|
+
padding: 3px 8px;
|
|
1388
|
+
border-radius: 6px;
|
|
1389
|
+
border: 1px solid var(--line);
|
|
1390
|
+
background: rgba(var(--surface-rgb), .7);
|
|
1391
|
+
color: var(--chip-fg);
|
|
1392
|
+
font-family: var(--mono);
|
|
1393
|
+
font-size: 10.5px;
|
|
1394
|
+
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
.verify-list { display: flex; flex-direction: column; gap: 6px; }
|
|
1398
|
+
.verify-step {
|
|
1399
|
+
display: flex; align-items: flex-start; gap: 8px;
|
|
1400
|
+
padding: 7px 9px;
|
|
1401
|
+
border-radius: 8px;
|
|
1402
|
+
border: 1px solid var(--line);
|
|
1403
|
+
background: var(--surface);
|
|
1404
|
+
font-size: 11.5px;
|
|
1405
|
+
}
|
|
1406
|
+
.verify-step .icon { margin-top: 1px; color: var(--ok); }
|
|
1407
|
+
.verify-step.fail { border-color: rgba(var(--danger-rgb), .24); }
|
|
1408
|
+
.verify-step.fail .icon { color: var(--danger); }
|
|
1409
|
+
.verify-step .cmd { font-family: var(--mono); color: var(--text-2); word-break: break-all; }
|
|
1410
|
+
.verify-step .cwd { color: var(--faint); font-size: 10px; margin-top: 1px; word-break: break-all; }
|
|
1411
|
+
|
|
1412
|
+
.desc-block { margin-bottom: 10px; }
|
|
1413
|
+
.desc-block .k { color: var(--faint); font-size: 10.5px; margin-bottom: 3px; }
|
|
1414
|
+
.desc-block .v { font-size: 12px; line-height: 1.7; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
|
|
1415
|
+
|
|
1416
|
+
.comment {
|
|
1417
|
+
border-left: 2px solid var(--line);
|
|
1418
|
+
padding: 2px 0 2px 10px;
|
|
1419
|
+
margin-bottom: 10px;
|
|
1420
|
+
}
|
|
1421
|
+
.comment .c-head { display: flex; gap: 8px; align-items: baseline; font-size: 10.5px; color: var(--faint); }
|
|
1422
|
+
.comment .c-author { color: var(--text-2); font-weight: 550; }
|
|
1423
|
+
.comment .c-body { margin-top: 2px; font-size: 11.8px; line-height: 1.65; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
|
|
1424
|
+
|
|
1425
|
+
.right-actions { display: flex; gap: 8px; margin-top: 18px; }
|
|
1426
|
+
|
|
1427
|
+
.kv-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
|
|
1428
|
+
.kv-row { display: flex; gap: 12px; padding: 8px 11px; border-bottom: 1px solid var(--line-soft); font-size: 11.8px; background: var(--surface); }
|
|
1429
|
+
.kv-row:last-child { border-bottom: 0; }
|
|
1430
|
+
.kv-row .k { width: 92px; flex: 0 0 auto; color: var(--faint); }
|
|
1431
|
+
.kv-row .v { min-width: 0; color: var(--text-2); word-break: break-all; }
|
|
1432
|
+
.kv-row .v.mono { font-family: var(--mono); font-size: 10.8px; }
|
|
1433
|
+
|
|
1434
|
+
.skeleton {
|
|
1435
|
+
border-radius: 9px;
|
|
1436
|
+
background: linear-gradient(100deg, var(--surface) 30%, var(--surface-3) 50%, var(--surface) 70%);
|
|
1437
|
+
background-size: 220% 100%;
|
|
1438
|
+
animation: shimmer 1.5s linear infinite;
|
|
1439
|
+
}
|
|
1440
|
+
@keyframes shimmer { to { background-position: -220% 0; } }
|
|
1441
|
+
.skeleton-line { height: 11px; margin-bottom: 9px; }
|
|
1442
|
+
.skeleton-line.w60 { width: 60%; }
|
|
1443
|
+
.skeleton-line.w40 { width: 40%; }
|
|
1444
|
+
|
|
1445
|
+
/* =============================== 配置页 =============================== */
|
|
1446
|
+
|
|
1447
|
+
.setup-page { min-height: 100vh; display: flex; flex-direction: column; }
|
|
1448
|
+
.setup-top {
|
|
1449
|
+
height: 60px;
|
|
1450
|
+
display: flex; align-items: center; gap: 12px;
|
|
1451
|
+
padding: 0 24px;
|
|
1452
|
+
border-bottom: 1px solid var(--line);
|
|
1453
|
+
background: rgba(var(--bg-rgb), .8);
|
|
1454
|
+
backdrop-filter: blur(14px);
|
|
1455
|
+
}
|
|
1456
|
+
.setup-top .brand { gap: 10px; }
|
|
1457
|
+
.setup-top .top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
|
|
1458
|
+
|
|
1459
|
+
.setup-main {
|
|
1460
|
+
width: min(1040px, 100%);
|
|
1461
|
+
margin: 0 auto;
|
|
1462
|
+
padding: 42px 24px 150px;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
.hero { margin-bottom: 30px; }
|
|
1466
|
+
.hero .eyebrow { color: var(--accent); }
|
|
1467
|
+
.hero h1 {
|
|
1468
|
+
margin: 7px 0 8px;
|
|
1469
|
+
font-size: clamp(25px, 3vw, 32px);
|
|
1470
|
+
line-height: 1.2;
|
|
1471
|
+
letter-spacing: -.02em;
|
|
1472
|
+
font-weight: 700;
|
|
1473
|
+
}
|
|
1474
|
+
.hero h1 .grad {
|
|
1475
|
+
background: linear-gradient(92deg, var(--grad-a), var(--grad-b) 55%, var(--grad-c));
|
|
1476
|
+
-webkit-background-clip: text;
|
|
1477
|
+
background-clip: text;
|
|
1478
|
+
color: transparent;
|
|
1479
|
+
}
|
|
1480
|
+
.hero p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 660px; line-height: 1.7; }
|
|
1481
|
+
.hero .ws-chip {
|
|
1482
|
+
display: inline-flex; align-items: center; gap: 7px;
|
|
1483
|
+
margin-top: 14px;
|
|
1484
|
+
padding: 5px 10px;
|
|
1485
|
+
border-radius: 8px;
|
|
1486
|
+
border: 1px solid var(--line);
|
|
1487
|
+
background: var(--surface);
|
|
1488
|
+
color: var(--text-2);
|
|
1489
|
+
font-family: var(--mono);
|
|
1490
|
+
font-size: 11px;
|
|
1491
|
+
max-width: 100%;
|
|
1492
|
+
}
|
|
1493
|
+
.hero .ws-chip .ws-path-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(560px, 70vw); }
|
|
1494
|
+
.hero .ws-chip .tag { flex: 0 0 auto; white-space: nowrap; }
|
|
1495
|
+
.hero .ws-chip .tag {
|
|
1496
|
+
color: var(--ok); border: 1px solid rgba(var(--ok-rgb), .26);
|
|
1497
|
+
background: var(--ok-soft); border-radius: 4px; padding: 0 5px; font-family: var(--font); font-size: 10px;
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
.setup-error {
|
|
1501
|
+
display: flex; align-items: flex-start; gap: 10px;
|
|
1502
|
+
padding: 11px 13px;
|
|
1503
|
+
margin-bottom: 20px;
|
|
1504
|
+
border-radius: 10px;
|
|
1505
|
+
border: 1px solid rgba(var(--danger-rgb), .28);
|
|
1506
|
+
background: var(--danger-soft);
|
|
1507
|
+
color: var(--danger-fg);
|
|
1508
|
+
font-size: 12.5px;
|
|
1509
|
+
line-height: 1.6;
|
|
1510
|
+
}
|
|
1511
|
+
.setup-error.warn { border-color: rgba(var(--warn-rgb), .3); background: var(--warn-soft); color: var(--warn-fg); }
|
|
1512
|
+
.setup-error .btn { margin-left: auto; flex: 0 0 auto; }
|
|
1513
|
+
|
|
1514
|
+
.setup-card {
|
|
1515
|
+
border: 1px solid var(--line);
|
|
1516
|
+
border-radius: 15px;
|
|
1517
|
+
background: linear-gradient(180deg, rgba(var(--surface-2-rgb), .72), rgba(var(--surface-rgb), .6));
|
|
1518
|
+
padding: 20px 22px;
|
|
1519
|
+
margin-bottom: 18px;
|
|
1520
|
+
box-shadow: inset 0 1px 0 rgba(var(--overlay-rgb), .025);
|
|
1521
|
+
animation: cardIn .35s ease-out both;
|
|
1522
|
+
}
|
|
1523
|
+
@keyframes cardIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
|
|
1524
|
+
.setup-card:nth-of-type(2) { animation-delay: .05s; }
|
|
1525
|
+
.setup-card:nth-of-type(3) { animation-delay: .1s; }
|
|
1526
|
+
.setup-card:nth-of-type(4) { animation-delay: .15s; }
|
|
1527
|
+
|
|
1528
|
+
.card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
|
|
1529
|
+
.step-num {
|
|
1530
|
+
width: 25px; height: 25px; flex: 0 0 auto;
|
|
1531
|
+
display: grid; place-items: center;
|
|
1532
|
+
border-radius: 8px;
|
|
1533
|
+
border: 1px solid var(--line);
|
|
1534
|
+
background: var(--surface-2);
|
|
1535
|
+
color: var(--muted);
|
|
1536
|
+
font-family: var(--mono);
|
|
1537
|
+
font-size: 11px;
|
|
1538
|
+
font-weight: 600;
|
|
1539
|
+
}
|
|
1540
|
+
.step-num.done { color: var(--ok); border-color: rgba(var(--ok-rgb), .3); background: var(--ok-soft); }
|
|
1541
|
+
.card-title-wrap { min-width: 0; flex: 1; }
|
|
1542
|
+
.card-title { font-size: 14px; font-weight: 650; letter-spacing: .01em; }
|
|
1543
|
+
.card-desc { margin-top: 2px; color: var(--muted); font-size: 12px; }
|
|
1544
|
+
.card-side { margin-left: auto; flex: 0 0 auto; }
|
|
1545
|
+
|
|
1546
|
+
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
|
|
1547
|
+
.config-card {
|
|
1548
|
+
border: 1px solid var(--line);
|
|
1549
|
+
border-radius: 12px;
|
|
1550
|
+
background: rgba(var(--bg-rgb), .38);
|
|
1551
|
+
padding: 14px;
|
|
1552
|
+
}
|
|
1553
|
+
.config-card .config-top { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 11px; }
|
|
1554
|
+
.role-badge {
|
|
1555
|
+
display: inline-flex; align-items: center; gap: 5px;
|
|
1556
|
+
padding: 2px 7px;
|
|
1557
|
+
border-radius: 5px;
|
|
1558
|
+
font-size: 10px;
|
|
1559
|
+
font-weight: 650;
|
|
1560
|
+
letter-spacing: .04em;
|
|
1561
|
+
color: var(--accent-fg-2);
|
|
1562
|
+
border: 1px solid rgba(var(--accent-rgb), .28);
|
|
1563
|
+
background: var(--accent-soft);
|
|
1564
|
+
}
|
|
1565
|
+
.role-badge.worker { color: var(--ok-fg-3); border-color: rgba(var(--ok-rgb), .26); background: var(--ok-soft); }
|
|
1566
|
+
.config-card h3 { margin: 7px 0 2px; font-size: 13px; font-weight: 600; }
|
|
1567
|
+
.config-card .config-sub { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
|
|
1568
|
+
.installed { margin-left: auto; font-size: 10.5px; color: var(--ok); white-space: nowrap; }
|
|
1569
|
+
.installed.off { color: var(--danger); }
|
|
1570
|
+
|
|
1571
|
+
.seg {
|
|
1572
|
+
display: grid;
|
|
1573
|
+
grid-template-columns: 1fr 1fr;
|
|
1574
|
+
gap: 6px;
|
|
1575
|
+
margin-bottom: 12px;
|
|
1576
|
+
}
|
|
1577
|
+
.seg-btn {
|
|
1578
|
+
display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
|
|
1579
|
+
padding: 8px 10px;
|
|
1580
|
+
border-radius: 8px;
|
|
1581
|
+
border: 1px solid var(--line);
|
|
1582
|
+
background: var(--surface);
|
|
1583
|
+
color: var(--text-2);
|
|
1584
|
+
text-align: left;
|
|
1585
|
+
transition: border-color .15s, background .15s;
|
|
1586
|
+
}
|
|
1587
|
+
.seg-btn:hover:not(:disabled) { border-color: var(--hover-line); }
|
|
1588
|
+
.seg-btn.active { border-color: rgba(var(--accent-rgb), .55); background: var(--accent-soft); color: var(--text); }
|
|
1589
|
+
.seg-btn:disabled { opacity: .4; cursor: not-allowed; }
|
|
1590
|
+
.seg-name { font-size: 12px; font-weight: 600; }
|
|
1591
|
+
.seg-sub { font-size: 10px; color: var(--faint); }
|
|
1592
|
+
|
|
1593
|
+
.field { display: flex; flex-direction: column; gap: 5px; }
|
|
1594
|
+
.field > span { color: var(--faint); font-size: 10.5px; letter-spacing: .04em; }
|
|
1595
|
+
.input, .textarea, .select {
|
|
1596
|
+
width: 100%;
|
|
1597
|
+
border-radius: 8px;
|
|
1598
|
+
border: 1px solid var(--line);
|
|
1599
|
+
background: rgba(var(--bg-rgb), .62);
|
|
1600
|
+
color: var(--text);
|
|
1601
|
+
font-size: 12.5px;
|
|
1602
|
+
outline: none;
|
|
1603
|
+
transition: border-color .15s, background .15s;
|
|
1604
|
+
}
|
|
1605
|
+
.input, .select { height: 34px; padding: 0 10px; }
|
|
1606
|
+
.textarea { padding: 8px 10px; resize: vertical; min-height: 66px; line-height: 1.6; }
|
|
1607
|
+
.input:focus, .textarea:focus, .select:focus { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--bg-rgb), .9); }
|
|
1608
|
+
.input::placeholder, .textarea::placeholder { color: var(--faint); }
|
|
1609
|
+
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
|
|
1610
|
+
|
|
1611
|
+
/* 下拉搜索 Combobox 组件:单个输入框合二为一 */
|
|
1612
|
+
.cb-combobox {
|
|
1613
|
+
position: relative;
|
|
1614
|
+
width: 100%;
|
|
1615
|
+
}
|
|
1616
|
+
.cb-input-wrap {
|
|
1617
|
+
display: flex;
|
|
1618
|
+
align-items: center;
|
|
1619
|
+
gap: 7px;
|
|
1620
|
+
height: 38px;
|
|
1621
|
+
padding: 0 10px 0 11px;
|
|
1622
|
+
border: 1px solid var(--line);
|
|
1623
|
+
border-radius: 9px;
|
|
1624
|
+
background: rgba(var(--bg-rgb), .65);
|
|
1625
|
+
transition: border-color .15s, background .15s, box-shadow .15s;
|
|
1626
|
+
cursor: text;
|
|
1627
|
+
}
|
|
1628
|
+
.cb-combobox.open .cb-input-wrap,
|
|
1629
|
+
.cb-input-wrap:focus-within {
|
|
1630
|
+
border-color: rgba(var(--accent-rgb), .65);
|
|
1631
|
+
background: rgba(var(--bg-rgb), .92);
|
|
1632
|
+
box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12);
|
|
1633
|
+
}
|
|
1634
|
+
.cb-search-ico {
|
|
1635
|
+
color: var(--faint);
|
|
1636
|
+
flex: 0 0 auto;
|
|
1637
|
+
}
|
|
1638
|
+
.cb-input {
|
|
1639
|
+
flex: 1;
|
|
1640
|
+
min-width: 0;
|
|
1641
|
+
border: 0;
|
|
1642
|
+
outline: none;
|
|
1643
|
+
background: transparent;
|
|
1644
|
+
color: var(--text);
|
|
1645
|
+
font-size: 12.5px;
|
|
1646
|
+
font-family: inherit;
|
|
1647
|
+
padding: 0;
|
|
1648
|
+
height: 100%;
|
|
1649
|
+
}
|
|
1650
|
+
.cb-input::placeholder {
|
|
1651
|
+
color: var(--faint);
|
|
1652
|
+
}
|
|
1653
|
+
.cb-clear {
|
|
1654
|
+
border: 0;
|
|
1655
|
+
background: transparent;
|
|
1656
|
+
color: var(--faint);
|
|
1657
|
+
cursor: pointer;
|
|
1658
|
+
padding: 2px 4px;
|
|
1659
|
+
display: flex;
|
|
1660
|
+
align-items: center;
|
|
1661
|
+
justify-content: center;
|
|
1662
|
+
border-radius: 4px;
|
|
1663
|
+
transition: color .12s, background .12s;
|
|
1664
|
+
flex: 0 0 auto;
|
|
1665
|
+
}
|
|
1666
|
+
.cb-clear:hover {
|
|
1667
|
+
color: var(--text);
|
|
1668
|
+
background: rgba(var(--overlay-rgb), .08);
|
|
1669
|
+
}
|
|
1670
|
+
.cb-clear.hidden {
|
|
1671
|
+
display: none;
|
|
1672
|
+
}
|
|
1673
|
+
.cb-arrow {
|
|
1674
|
+
border: 0;
|
|
1675
|
+
background: transparent;
|
|
1676
|
+
color: var(--muted);
|
|
1677
|
+
cursor: pointer;
|
|
1678
|
+
padding: 2px;
|
|
1679
|
+
display: flex;
|
|
1680
|
+
align-items: center;
|
|
1681
|
+
justify-content: center;
|
|
1682
|
+
transition: transform .18s ease, color .12s;
|
|
1683
|
+
flex: 0 0 auto;
|
|
1684
|
+
}
|
|
1685
|
+
.cb-combobox.open .cb-arrow {
|
|
1686
|
+
transform: rotate(180deg);
|
|
1687
|
+
color: var(--accent);
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
/* 下拉面板:body 级公共节点,用 fixed 贴在输入框上。
|
|
1691
|
+
放在组件内部会被 .setup-card 的动画层叠上下文盖住,所以必须提到 body。 */
|
|
1692
|
+
.cb-layer {
|
|
1693
|
+
display: none;
|
|
1694
|
+
position: fixed;
|
|
1695
|
+
z-index: 1200; /* 高于 modal 遮罩(90),保证对话框里的模型选择同样能展开 */
|
|
1696
|
+
flex-direction: column;
|
|
1697
|
+
background: var(--dropdown-bg);
|
|
1698
|
+
border: 1px solid rgba(var(--accent-rgb), .28);
|
|
1699
|
+
border-radius: 10px;
|
|
1700
|
+
box-shadow: 0 14px 40px rgba(var(--shadow-rgb), .6), 0 2px 10px rgba(var(--shadow-rgb), .4);
|
|
1701
|
+
overflow: hidden;
|
|
1702
|
+
}
|
|
1703
|
+
.cb-layer.open {
|
|
1704
|
+
display: flex;
|
|
1705
|
+
animation: cbIn .14s ease-out;
|
|
1706
|
+
}
|
|
1707
|
+
@keyframes cbIn {
|
|
1708
|
+
from { opacity: 0; transform: translateY(-4px); }
|
|
1709
|
+
to { opacity: 1; transform: none; }
|
|
1710
|
+
}
|
|
1711
|
+
.cb-layer.up {
|
|
1712
|
+
transform-origin: bottom center;
|
|
1713
|
+
}
|
|
1714
|
+
.cb-layer.up.open {
|
|
1715
|
+
animation: cbInUp .14s ease-out;
|
|
1716
|
+
}
|
|
1717
|
+
@keyframes cbInUp {
|
|
1718
|
+
from { opacity: 0; transform: translateY(4px); }
|
|
1719
|
+
to { opacity: 1; transform: none; }
|
|
1720
|
+
}
|
|
1721
|
+
.cb-header {
|
|
1722
|
+
display: flex;
|
|
1723
|
+
align-items: center;
|
|
1724
|
+
justify-content: space-between;
|
|
1725
|
+
padding: 8px 12px 6px;
|
|
1726
|
+
border-bottom: 1px solid var(--line);
|
|
1727
|
+
background: rgba(var(--overlay-rgb), .02);
|
|
1728
|
+
}
|
|
1729
|
+
.cb-count {
|
|
1730
|
+
font-size: 11px;
|
|
1731
|
+
color: var(--faint);
|
|
1732
|
+
font-variant-numeric: tabular-nums;
|
|
1733
|
+
}
|
|
1734
|
+
.cb-list {
|
|
1735
|
+
max-height: 250px;
|
|
1736
|
+
overflow-y: auto;
|
|
1737
|
+
padding: 4px;
|
|
1738
|
+
display: flex;
|
|
1739
|
+
flex-direction: column;
|
|
1740
|
+
gap: 2px;
|
|
1741
|
+
}
|
|
1742
|
+
.cb-item {
|
|
1743
|
+
display: flex;
|
|
1744
|
+
flex-direction: column;
|
|
1745
|
+
gap: 2px;
|
|
1746
|
+
padding: 7px 9px;
|
|
1747
|
+
border-radius: 6px;
|
|
1748
|
+
cursor: pointer;
|
|
1749
|
+
transition: background .12s, border-color .12s;
|
|
1750
|
+
position: relative;
|
|
1751
|
+
user-select: none;
|
|
1752
|
+
}
|
|
1753
|
+
.cb-item:hover,
|
|
1754
|
+
.cb-item.hl {
|
|
1755
|
+
background: rgba(var(--accent-rgb), .1);
|
|
1756
|
+
}
|
|
1757
|
+
.cb-item.selected {
|
|
1758
|
+
background: rgba(var(--accent-rgb), .16);
|
|
1759
|
+
border: 1px solid rgba(var(--accent-rgb), .3);
|
|
1760
|
+
}
|
|
1761
|
+
.cb-label {
|
|
1762
|
+
font-size: 12.5px;
|
|
1763
|
+
color: var(--text);
|
|
1764
|
+
font-weight: 500;
|
|
1765
|
+
line-height: 1.35;
|
|
1766
|
+
padding-right: 22px;
|
|
1767
|
+
}
|
|
1768
|
+
.cb-val {
|
|
1769
|
+
font-size: 11px;
|
|
1770
|
+
color: var(--faint);
|
|
1771
|
+
font-family: var(--mono);
|
|
1772
|
+
overflow: hidden;
|
|
1773
|
+
text-overflow: ellipsis;
|
|
1774
|
+
white-space: nowrap;
|
|
1775
|
+
}
|
|
1776
|
+
.cb-check {
|
|
1777
|
+
position: absolute;
|
|
1778
|
+
right: 10px;
|
|
1779
|
+
top: 10px;
|
|
1780
|
+
color: var(--accent);
|
|
1781
|
+
display: flex;
|
|
1782
|
+
align-items: center;
|
|
1783
|
+
}
|
|
1784
|
+
.cb-empty {
|
|
1785
|
+
padding: 24px 12px;
|
|
1786
|
+
display: flex;
|
|
1787
|
+
flex-direction: column;
|
|
1788
|
+
align-items: center;
|
|
1789
|
+
gap: 8px;
|
|
1790
|
+
color: var(--faint);
|
|
1791
|
+
font-size: 12px;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
.project-toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
|
|
1795
|
+
.project-toolbar .search { flex: 1; }
|
|
1796
|
+
.project-toolbar .selected-count { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
|
|
1797
|
+
.project-toolbar .selected-count b { color: var(--text); }
|
|
1798
|
+
|
|
1799
|
+
.project-list {
|
|
1800
|
+
max-height: 292px;
|
|
1801
|
+
overflow-y: auto;
|
|
1802
|
+
border: 1px solid var(--line);
|
|
1803
|
+
border-radius: 10px;
|
|
1804
|
+
background: rgba(var(--bg-rgb), .38);
|
|
1805
|
+
padding: 5px;
|
|
1806
|
+
display: flex;
|
|
1807
|
+
flex-direction: column;
|
|
1808
|
+
gap: 2px;
|
|
1809
|
+
}
|
|
1810
|
+
.project-row {
|
|
1811
|
+
display: flex; align-items: center; gap: 10px;
|
|
1812
|
+
padding: 8px 9px;
|
|
1813
|
+
border-radius: 7px;
|
|
1814
|
+
cursor: pointer;
|
|
1815
|
+
border: 1px solid transparent;
|
|
1816
|
+
transition: background .13s, border-color .13s;
|
|
1817
|
+
}
|
|
1818
|
+
.project-row:hover { background: var(--surface-2); }
|
|
1819
|
+
.project-row.checked { background: rgba(var(--accent-rgb), .08); border-color: rgba(var(--accent-rgb), .2); }
|
|
1820
|
+
.project-row input {
|
|
1821
|
+
width: 15px; height: 15px; flex: 0 0 auto;
|
|
1822
|
+
accent-color: var(--accent);
|
|
1823
|
+
cursor: pointer;
|
|
1824
|
+
}
|
|
1825
|
+
.p-name { font-size: 12.5px; color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1826
|
+
.project-row.checked .p-name { color: var(--text); }
|
|
1827
|
+
.p-id { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--faint); flex: 0 0 auto; }
|
|
1828
|
+
.p-reason { flex: 0 0 auto; max-width: 45%; color: var(--faint); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1829
|
+
.rec-badge {
|
|
1830
|
+
display: inline-block; margin-left: 6px;
|
|
1831
|
+
padding: 0 5px; border-radius: 4px;
|
|
1832
|
+
font-size: 9.5px; font-weight: 650;
|
|
1833
|
+
color: var(--accent-fg-3); border: 1px solid rgba(var(--accent-rgb), .3); background: var(--accent-soft);
|
|
1834
|
+
vertical-align: 1px;
|
|
1835
|
+
}
|
|
1836
|
+
.project-empty { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
|
|
1837
|
+
.project-empty .btn { margin-top: 8px; }
|
|
1838
|
+
|
|
1839
|
+
.risk {
|
|
1840
|
+
display: flex; align-items: flex-start; gap: 10px;
|
|
1841
|
+
padding: 12px 13px;
|
|
1842
|
+
border-radius: 10px;
|
|
1843
|
+
border: 1px solid rgba(var(--warn-rgb), .26);
|
|
1844
|
+
background: rgba(var(--warn-rgb), .055);
|
|
1845
|
+
cursor: pointer;
|
|
1846
|
+
}
|
|
1847
|
+
.risk input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--warn); flex: 0 0 auto; }
|
|
1848
|
+
.risk strong { display: block; font-size: 12.5px; color: var(--warn-fg-2); font-weight: 600; }
|
|
1849
|
+
.risk p { margin: 3px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
|
|
1850
|
+
|
|
1851
|
+
.advanced { border-top: 1px solid var(--line-soft); margin-top: 16px; padding-top: 13px; }
|
|
1852
|
+
.advanced > summary {
|
|
1853
|
+
display: flex; align-items: center; gap: 6px;
|
|
1854
|
+
cursor: pointer; list-style: none;
|
|
1855
|
+
color: var(--muted); font-size: 11.5px;
|
|
1856
|
+
user-select: none;
|
|
1857
|
+
}
|
|
1858
|
+
.advanced > summary::-webkit-details-marker { display: none; }
|
|
1859
|
+
.advanced > summary:hover { color: var(--text-2); }
|
|
1860
|
+
.advanced[open] > summary { margin-bottom: 12px; }
|
|
1861
|
+
.advanced-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
|
1862
|
+
.advanced-grid .span2 { grid-column: 1 / -1; }
|
|
1863
|
+
.switch-row {
|
|
1864
|
+
display: flex; align-items: center; justify-content: space-between; gap: 12px;
|
|
1865
|
+
padding: 9px 11px;
|
|
1866
|
+
border: 1px solid var(--line);
|
|
1867
|
+
border-radius: 8px;
|
|
1868
|
+
background: rgba(var(--bg-rgb), .4);
|
|
1869
|
+
font-size: 12px;
|
|
1870
|
+
color: var(--text-2);
|
|
1871
|
+
}
|
|
1872
|
+
.switch { position: relative; width: 34px; height: 19px; flex: 0 0 auto; }
|
|
1873
|
+
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
|
|
1874
|
+
.switch .track {
|
|
1875
|
+
position: absolute; inset: 0;
|
|
1876
|
+
border-radius: 999px;
|
|
1877
|
+
background: var(--surface-3);
|
|
1878
|
+
border: 1px solid var(--line);
|
|
1879
|
+
transition: background .16s, border-color .16s;
|
|
1880
|
+
}
|
|
1881
|
+
.switch .track::after {
|
|
1882
|
+
content: ""; position: absolute; width: 13px; height: 13px; top: 2px; left: 2px;
|
|
1883
|
+
border-radius: 50%; background: var(--muted);
|
|
1884
|
+
transition: transform .16s, background .16s;
|
|
1885
|
+
}
|
|
1886
|
+
.switch input:checked + .track { background: var(--accent-soft); border-color: rgba(var(--accent-rgb), .5); }
|
|
1887
|
+
.switch input:checked + .track::after { transform: translateX(15px); background: var(--accent); }
|
|
1888
|
+
|
|
1889
|
+
.setup-actions {
|
|
1890
|
+
position: fixed;
|
|
1891
|
+
left: 0; right: 0; bottom: 0;
|
|
1892
|
+
z-index: 30;
|
|
1893
|
+
display: flex; align-items: center; gap: 16px;
|
|
1894
|
+
padding: 13px 26px;
|
|
1895
|
+
border-top: 1px solid var(--line);
|
|
1896
|
+
background: rgba(var(--bg-rgb), .88);
|
|
1897
|
+
backdrop-filter: blur(16px);
|
|
1898
|
+
}
|
|
1899
|
+
.setup-summary { min-width: 0; display: flex; align-items: center; flex: 1 1 auto; }
|
|
1900
|
+
/* 最大权限确认:放在底部左侧,不再占用「运行设置」卡片 */
|
|
1901
|
+
.footer-risk {
|
|
1902
|
+
margin: 0; padding: 7px 11px; border-radius: 9px;
|
|
1903
|
+
align-items: center; max-width: 100%;
|
|
1904
|
+
}
|
|
1905
|
+
.footer-risk span { font-size: 11.5px; line-height: 1.5; color: var(--warn-fg-2); }
|
|
1906
|
+
.footer-risk input { margin-top: 0; width: 15px; height: 15px; }
|
|
1907
|
+
.setup-buttons { margin-left: auto; display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
|
|
1908
|
+
|
|
1909
|
+
/* ================================ Toast ================================ */
|
|
1910
|
+
|
|
1911
|
+
.toast-root {
|
|
1912
|
+
position: fixed;
|
|
1913
|
+
left: 50%; bottom: 26px;
|
|
1914
|
+
transform: translateX(-50%);
|
|
1915
|
+
z-index: 100;
|
|
1916
|
+
display: flex; flex-direction: column; align-items: center; gap: 8px;
|
|
1917
|
+
pointer-events: none;
|
|
1918
|
+
}
|
|
1919
|
+
.toast {
|
|
1920
|
+
display: flex; align-items: center; gap: 8px;
|
|
1921
|
+
max-width: min(560px, calc(100vw - 40px));
|
|
1922
|
+
padding: 9px 14px;
|
|
1923
|
+
border-radius: 9px;
|
|
1924
|
+
border: 1px solid var(--line);
|
|
1925
|
+
background: rgba(var(--surface-2-rgb), .96);
|
|
1926
|
+
color: var(--text);
|
|
1927
|
+
font-size: 12.5px;
|
|
1928
|
+
box-shadow: var(--shadow);
|
|
1929
|
+
animation: toastIn .22s ease-out;
|
|
1930
|
+
pointer-events: auto;
|
|
1931
|
+
}
|
|
1932
|
+
.toast.ok { border-color: rgba(var(--ok-rgb), .34); }
|
|
1933
|
+
.toast.err { border-color: rgba(var(--danger-rgb), .34); }
|
|
1934
|
+
.toast .icon { color: var(--ok); }
|
|
1935
|
+
.toast.err .icon { color: var(--danger); }
|
|
1936
|
+
.toast.out { animation: toastOut .2s ease-in forwards; }
|
|
1937
|
+
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
|
|
1938
|
+
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }
|
|
1939
|
+
|
|
1940
|
+
/* ================================ 弹窗 ================================ */
|
|
1941
|
+
|
|
1942
|
+
.modal-backdrop {
|
|
1943
|
+
position: fixed; inset: 0; z-index: 90;
|
|
1944
|
+
background: rgba(var(--backdrop-rgb), .66);
|
|
1945
|
+
backdrop-filter: blur(4px);
|
|
1946
|
+
display: grid; place-items: center;
|
|
1947
|
+
padding: 20px;
|
|
1948
|
+
animation: fadeIn .16s ease-out;
|
|
1949
|
+
}
|
|
1950
|
+
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
|
|
1951
|
+
.modal {
|
|
1952
|
+
width: min(440px, 100%);
|
|
1953
|
+
border-radius: 15px;
|
|
1954
|
+
border: 1px solid var(--line);
|
|
1955
|
+
background: var(--modal-bg);
|
|
1956
|
+
box-shadow: 0 24px 80px rgba(var(--shadow-rgb), .55);
|
|
1957
|
+
padding: 20px;
|
|
1958
|
+
animation: modalIn .2s ease-out;
|
|
1959
|
+
}
|
|
1960
|
+
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
|
|
1961
|
+
.modal h2 { margin: 0 0 6px; font-size: 16px; font-weight: 650; }
|
|
1962
|
+
.modal p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
|
|
1963
|
+
.modal .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
|
|
1964
|
+
|
|
1965
|
+
/* ================================ 响应式 ================================ */
|
|
1966
|
+
|
|
1967
|
+
@media (max-width: 1240px) {
|
|
1968
|
+
.workspace { grid-template-columns: 292px minmax(0, 1fr) 348px; }
|
|
1969
|
+
.brand .ws-path { max-width: 200px; }
|
|
1970
|
+
/* 空间不足时指标退回普通流,避免与右侧操作区重叠 */
|
|
1971
|
+
.top-metrics { position: static; transform: none; margin-left: auto; gap: 7px; }
|
|
1972
|
+
.top-metrics .metric { padding: 0 9px; }
|
|
1973
|
+
.top-actions { margin-left: 4px; }
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
@media (max-width: 1040px) {
|
|
1977
|
+
.workspace { grid-template-columns: 280px minmax(0, 1fr); }
|
|
1978
|
+
.right {
|
|
1979
|
+
position: fixed;
|
|
1980
|
+
right: 0; top: 60px; bottom: 0;
|
|
1981
|
+
width: min(400px, 90vw);
|
|
1982
|
+
z-index: 25;
|
|
1983
|
+
transform: translateX(102%);
|
|
1984
|
+
transition: transform .22s ease;
|
|
1985
|
+
box-shadow: -20px 0 60px rgba(var(--shadow-rgb), .45);
|
|
1986
|
+
}
|
|
1987
|
+
.workspace.detail-open .right { transform: none; }
|
|
1988
|
+
.top-metrics { display: none; }
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
@media (max-width: 820px) {
|
|
1992
|
+
.workspace { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
|
|
1993
|
+
.left { border-right: 0; border-bottom: 1px solid var(--line); max-height: 44vh; }
|
|
1994
|
+
.right { top: 0; }
|
|
1995
|
+
.topbar { gap: 12px; padding: 0 12px; }
|
|
1996
|
+
.brand .ws-path { display: none; }
|
|
1997
|
+
.top-actions .btn span { display: none; }
|
|
1998
|
+
.config-grid, .advanced-grid { grid-template-columns: 1fr; }
|
|
1999
|
+
.setup-main { padding: 30px 16px 170px; }
|
|
2000
|
+
.setup-actions { gap: 9px; padding: 12px 16px; }
|
|
2001
|
+
.setup-buttons { margin-left: 0; justify-content: flex-end; }
|
|
2002
|
+
}
|
|
2003
|
+
|
|
2004
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2005
|
+
*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
|
|
2006
|
+
}
|
|
2007
|
+
/* ============================== 补充细节 ============================== */
|
|
2008
|
+
|
|
2009
|
+
.agent-body { display: flex; flex-direction: column; }
|
|
2010
|
+
|
|
2011
|
+
.unread-dot {
|
|
2012
|
+
width: 6px; height: 6px; flex: 0 0 auto;
|
|
2013
|
+
margin-left: 2px;
|
|
2014
|
+
border-radius: 50%;
|
|
2015
|
+
background: var(--accent);
|
|
2016
|
+
box-shadow: 0 0 7px var(--accent);
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
.kv-row .v { flex: 1; }
|
|
2020
|
+
.kv-row .copy-btn { flex: 0 0 auto; }
|
|
2021
|
+
|
|
2022
|
+
.risk code {
|
|
2023
|
+
font-size: 10.5px;
|
|
2024
|
+
background: rgba(var(--bg-rgb), .5);
|
|
2025
|
+
border: 1px solid var(--line);
|
|
2026
|
+
border-radius: 4px;
|
|
2027
|
+
padding: 0 4px;
|
|
2028
|
+
color: var(--text-2);
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
.modal.wide { width: min(580px, 100%); }
|
|
2032
|
+
.modal-body { margin-top: 14px; }
|
|
2033
|
+
.modal-body .project-list { max-height: 340px; }
|
|
2034
|
+
.check-row {
|
|
2035
|
+
display: flex;
|
|
2036
|
+
align-items: flex-start;
|
|
2037
|
+
gap: 9px;
|
|
2038
|
+
font-size: 12px;
|
|
2039
|
+
color: var(--text-2);
|
|
2040
|
+
cursor: pointer;
|
|
2041
|
+
}
|
|
2042
|
+
.check-row input { margin: 2px 0 0; accent-color: var(--accent); }
|
|
2043
|
+
.modal-hint {
|
|
2044
|
+
margin: 0;
|
|
2045
|
+
font-size: 11.5px;
|
|
2046
|
+
line-height: 1.6;
|
|
2047
|
+
color: var(--muted);
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
.timeline {
|
|
2051
|
+
display: flex;
|
|
2052
|
+
flex-direction: column;
|
|
2053
|
+
gap: 1px;
|
|
2054
|
+
border-left: 1px solid var(--line);
|
|
2055
|
+
padding-left: 13px;
|
|
2056
|
+
margin-left: 4px;
|
|
2057
|
+
}
|
|
2058
|
+
.timeline-item {
|
|
2059
|
+
position: relative;
|
|
2060
|
+
display: flex;
|
|
2061
|
+
align-items: baseline;
|
|
2062
|
+
gap: 8px;
|
|
2063
|
+
padding: 4px 0;
|
|
2064
|
+
font-size: 11.5px;
|
|
2065
|
+
color: var(--text-2);
|
|
2066
|
+
line-height: 1.55;
|
|
2067
|
+
}
|
|
2068
|
+
.timeline-item .t-dot {
|
|
2069
|
+
position: absolute;
|
|
2070
|
+
left: -16px; top: 9px;
|
|
2071
|
+
width: 5px; height: 5px;
|
|
2072
|
+
border-radius: 50%;
|
|
2073
|
+
background: var(--faint);
|
|
2074
|
+
}
|
|
2075
|
+
.timeline-item:first-child .t-dot { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
|
|
2076
|
+
.timeline-item .t-text { flex: 1; min-width: 0; word-break: break-word; }
|
|
2077
|
+
.timeline-item .t-time { flex: 0 0 auto; color: var(--faint); font-size: 10px; font-family: var(--mono); }
|
|
2078
|
+
|
|
2079
|
+
.q-free input:focus { border-color: var(--accent); }
|
|
2080
|
+
|
|
2081
|
+
.setup-summary .sum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: min(720px, 62vw); }
|
|
2082
|
+
.p-name { flex: 1 1 auto; }
|
|
2083
|
+
.p-reason { max-width: 38%; }
|
|
2084
|
+
@media (max-width: 820px) {
|
|
2085
|
+
.setup-summary .sum { max-width: 86vw; }
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
.only-narrow { display: none !important; }
|
|
2089
|
+
.detail-close { display: none; }
|
|
2090
|
+
@media (max-width: 1040px) {
|
|
2091
|
+
.only-narrow { display: inline-flex !important; }
|
|
2092
|
+
.detail-close { display: inline-flex; }
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
/* 阶段进度指示器(task_stage / main_stage) */
|
|
2096
|
+
.stage-pill {
|
|
2097
|
+
display: inline-flex;
|
|
2098
|
+
align-items: center;
|
|
2099
|
+
gap: 4px;
|
|
2100
|
+
height: 20px;
|
|
2101
|
+
max-width: 220px;
|
|
2102
|
+
padding: 0 8px;
|
|
2103
|
+
border-radius: 10px;
|
|
2104
|
+
font-size: 10.5px;
|
|
2105
|
+
font-weight: 600;
|
|
2106
|
+
margin-left: 6px;
|
|
2107
|
+
white-space: nowrap;
|
|
2108
|
+
overflow: hidden;
|
|
2109
|
+
border: 1px solid transparent;
|
|
2110
|
+
}
|
|
2111
|
+
.stage-pill.analyzing { background: rgba(var(--accent-rgb), 0.12); color: var(--accent); border-color: rgba(var(--accent-rgb), 0.35); }
|
|
2112
|
+
.stage-pill.editing { background: rgba(var(--stage-editing-rgb, 59, 130, 246), 0.12); color: var(--stage-editing); border-color: rgba(var(--stage-editing-rgb, 59, 130, 246), 0.35); }
|
|
2113
|
+
.stage-pill.testing { background: rgba(var(--ok-rgb), 0.12); color: var(--stage-testing); border-color: rgba(var(--ok-rgb), 0.35); }
|
|
2114
|
+
.stage-pill.reviewing { background: rgba(var(--warn-rgb), 0.12); color: var(--stage-reviewing); border-color: rgba(var(--warn-rgb), 0.35); }
|
|
2115
|
+
/* 卡片里的阶段详情要足够小,不能撑破胶囊 */
|
|
2116
|
+
.stage-pill .stage-detail {
|
|
2117
|
+
font-weight: 400;
|
|
2118
|
+
opacity: 0.85;
|
|
2119
|
+
margin-left: 4px;
|
|
2120
|
+
font-size: 9.5px;
|
|
2121
|
+
overflow: hidden;
|
|
2122
|
+
text-overflow: ellipsis;
|
|
2123
|
+
white-space: nowrap;
|
|
2124
|
+
}
|
|
2125
|
+
.stage-banner {
|
|
2126
|
+
display: flex;
|
|
2127
|
+
align-items: center;
|
|
2128
|
+
gap: 8px;
|
|
2129
|
+
padding: 8px 12px;
|
|
2130
|
+
background: var(--panel);
|
|
2131
|
+
border: 1px solid var(--border);
|
|
2132
|
+
border-radius: 10px;
|
|
2133
|
+
margin: 10px 0;
|
|
2134
|
+
font-size: 13px;
|
|
2135
|
+
}
|
|
2136
|
+
.stage-banner.main-stage-banner { margin-top: 6px; }
|
|
2137
|
+
.stage-banner .stage-label { flex: 0 0 auto; font-weight: 600; }
|
|
2138
|
+
.stage-banner .stage-detail {
|
|
2139
|
+
flex: 1;
|
|
2140
|
+
min-width: 0;
|
|
2141
|
+
color: var(--faint);
|
|
2142
|
+
font-size: 11.5px;
|
|
2143
|
+
white-space: pre-wrap;
|
|
2144
|
+
word-break: break-word;
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
.icon-xs { width: 12px; height: 12px; }
|
|
2148
|
+
.icon-xs svg { width: 12px; height: 12px; }
|
|
2149
|
+
.th-ico { display: inline-flex; align-items: center; }
|
|
2150
|
+
|
|
2151
|
+
/* 顶部指标从 3 个增到 5 个,窄屏下需要收紧,避免盖住标题 */
|
|
2152
|
+
@media (max-width: 1400px) {
|
|
2153
|
+
.top-metrics { gap: 6px; }
|
|
2154
|
+
.top-metrics .metric { padding: 0 9px; font-size: 11.5px; }
|
|
2155
|
+
}
|
|
2156
|
+
@media (max-width: 1180px) {
|
|
2157
|
+
.top-metrics .metric .metric-label { display: none; }
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2160
|
+
/* ==========================================================================
|
|
2161
|
+
启动页:单屏紧凑布局(整页不出现滚动条)
|
|
2162
|
+
优先级:① Agent 与模型 ② 绑定敏捷项目(含文件夹) ③ 运行设置(折叠)
|
|
2163
|
+
========================================================================== */
|
|
2164
|
+
|
|
2165
|
+
.setup-page { height: 100vh; min-height: 0; overflow: hidden; }
|
|
2166
|
+
body[data-phase="setup"] { overflow: hidden; }
|
|
2167
|
+
.setup-top { height: 52px; padding: 0 20px; flex: 0 0 auto; }
|
|
2168
|
+
.setup-top .brand-text { min-width: 0; }
|
|
2169
|
+
.setup-top .brand-text .ws-path { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2170
|
+
|
|
2171
|
+
.setup-main {
|
|
2172
|
+
flex: 1 1 auto; min-height: 0;
|
|
2173
|
+
width: min(1240px, 100%);
|
|
2174
|
+
margin: 0 auto;
|
|
2175
|
+
padding: 10px 20px 8px;
|
|
2176
|
+
display: flex; flex-direction: column; gap: 8px;
|
|
2177
|
+
overflow: hidden;
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2180
|
+
.setup-headline { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex: 0 0 auto; }
|
|
2181
|
+
.setup-headline .eyebrow { color: var(--accent); font-size: 9.5px; letter-spacing: .16em; }
|
|
2182
|
+
.setup-headline h1 {
|
|
2183
|
+
margin: 1px 0 0;
|
|
2184
|
+
font-size: clamp(18px, 1.8vw, 21px);
|
|
2185
|
+
line-height: 1.2; letter-spacing: -.015em; font-weight: 700;
|
|
2186
|
+
}
|
|
2187
|
+
.setup-headline h1 .grad {
|
|
2188
|
+
background: linear-gradient(92deg, var(--grad-a), var(--grad-b) 55%, var(--grad-c));
|
|
2189
|
+
-webkit-background-clip: text; background-clip: text; color: transparent;
|
|
2190
|
+
}
|
|
2191
|
+
.setup-headline .ws-chip {
|
|
2192
|
+
display: inline-flex; align-items: center; gap: 7px;
|
|
2193
|
+
padding: 4px 9px; border-radius: 8px;
|
|
2194
|
+
border: 1px solid var(--line); background: var(--surface);
|
|
2195
|
+
color: var(--text-2); font-family: var(--mono); font-size: 10.5px;
|
|
2196
|
+
max-width: 48%; flex: 0 0 auto;
|
|
2197
|
+
}
|
|
2198
|
+
.setup-headline .ws-chip .ws-path-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2199
|
+
.setup-headline .ws-chip .tag {
|
|
2200
|
+
flex: 0 0 auto; white-space: nowrap;
|
|
2201
|
+
color: var(--ok); border-color: rgba(var(--ok-rgb), .26);
|
|
2202
|
+
background: var(--ok-soft); border-radius: 4px; padding: 0 5px;
|
|
2203
|
+
font-family: var(--font); font-size: 9.5px;
|
|
2204
|
+
}
|
|
2205
|
+
.setup-headline .ws-chip .tag.warn { color: var(--warn); border-color: rgba(var(--warn-rgb), .3); background: var(--warn-soft); }
|
|
2206
|
+
|
|
2207
|
+
/* 两行:两个主卡片并排占满剩余高度,运行设置折叠收在底部 */
|
|
2208
|
+
.setup-grid {
|
|
2209
|
+
flex: 1 1 auto; min-height: 0;
|
|
2210
|
+
display: grid;
|
|
2211
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
2212
|
+
grid-template-rows: minmax(0, 1fr) auto;
|
|
2213
|
+
gap: 8px 10px;
|
|
2214
|
+
}
|
|
2215
|
+
.setup-card {
|
|
2216
|
+
margin: 0; padding: 11px 14px; border-radius: 12px;
|
|
2217
|
+
min-height: 0; display: flex; flex-direction: column;
|
|
2218
|
+
}
|
|
2219
|
+
.setup-card .card-head { margin-bottom: 8px; align-items: center; gap: 10px; }
|
|
2220
|
+
.setup-card .card-desc { margin-top: 1px; font-size: 10.5px; }
|
|
2221
|
+
.setup-card .card-side { font-size: 10.5px; }
|
|
2222
|
+
.pane-agents { grid-column: 1; grid-row: 1; }
|
|
2223
|
+
.pane-projects { grid-column: 2; grid-row: 1; }
|
|
2224
|
+
.pane-options { grid-column: 1 / -1; grid-row: 2; }
|
|
2225
|
+
|
|
2226
|
+
/* 主次层级:两个主步骤标题更大、序号更醒目 */
|
|
2227
|
+
.hero-step { width: 24px; height: 24px; border-radius: 8px; font-size: 11px; }
|
|
2228
|
+
.hero-title { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
|
|
2229
|
+
.project-head-side { display: flex; align-items: center; gap: 8px; }
|
|
2230
|
+
.setup-card .detected-hint {
|
|
2231
|
+
margin-top: 2px; display: flex; align-items: center; gap: 4px;
|
|
2232
|
+
color: var(--accent-fg-4); font-size: 10px; line-height: 1.35; min-width: 0;
|
|
2233
|
+
}
|
|
2234
|
+
.setup-card .detected-hint span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2235
|
+
.fp-save { white-space: nowrap; color: var(--muted); font-size: 10px; transition: color .2s ease; }
|
|
2236
|
+
.fp-save.err { color: var(--danger-fg-3); }
|
|
2237
|
+
.step-num { width: 21px; height: 21px; border-radius: 7px; font-size: 10px; }
|
|
2238
|
+
|
|
2239
|
+
.setup-error { margin-bottom: 0; }
|
|
2240
|
+
.setup-error.compact { flex: 0 0 auto; padding: 6px 11px; font-size: 11px; align-items: center; }
|
|
2241
|
+
.setup-error.compact .muted { margin-left: 6px; }
|
|
2242
|
+
|
|
2243
|
+
.config-grid { gap: 10px; flex: 1 1 auto; min-height: 0; align-content: start; }
|
|
2244
|
+
.config-card { padding: 9px 11px; border-radius: 10px; }
|
|
2245
|
+
.config-card .config-top {
|
|
2246
|
+
margin-bottom: 7px; align-items: center; gap: 8px;
|
|
2247
|
+
display: grid; grid-template-columns: auto 1fr auto;
|
|
2248
|
+
}
|
|
2249
|
+
.config-card .installed { font-size: 10.5px; color: var(--ok); white-space: nowrap; }
|
|
2250
|
+
.config-card .installed.off { color: var(--danger); }
|
|
2251
|
+
.config-card .role-badge { justify-self: center; }
|
|
2252
|
+
.config-card .config-hint { color: var(--faint); font-size: 10px; }
|
|
2253
|
+
.config-card .seg { margin-bottom: 7px; }
|
|
2254
|
+
.config-card .seg-btn { padding: 5px 6px; }
|
|
2255
|
+
.config-card .seg-sub { font-size: 9px; }
|
|
2256
|
+
.field.tight { gap: 3px; }
|
|
2257
|
+
.field.tight > span { font-size: 10.5px; color: var(--faint); }
|
|
2258
|
+
|
|
2259
|
+
/* 主 / 修复 Agent 各占一行并均分左侧高度;卡片内部内容紧凑贴顶,
|
|
2260
|
+
不做 space-between / 垂直居中,避免标题、Agent 按钮、大模型之间出现大块空隙。 */
|
|
2261
|
+
.pane-agents .config-grid {
|
|
2262
|
+
grid-template-columns: minmax(0, 1fr);
|
|
2263
|
+
grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
|
|
2264
|
+
align-content: stretch;
|
|
2265
|
+
}
|
|
2266
|
+
.pane-agents .config-card {
|
|
2267
|
+
display: flex; flex-direction: column; justify-content: flex-start;
|
|
2268
|
+
gap: 0; min-height: 0; padding: 11px 14px;
|
|
2269
|
+
overflow-y: auto; scrollbar-width: none;
|
|
2270
|
+
}
|
|
2271
|
+
.pane-agents .config-card::-webkit-scrollbar { display: none; width: 0; height: 0; }
|
|
2272
|
+
.pane-agents .config-card .config-top { margin-bottom: 9px; }
|
|
2273
|
+
/* 新增 Codex / Pi 后最多 5 个:自动换行,每行最多 3 个且等宽 */
|
|
2274
|
+
.pane-agents .config-card .seg {
|
|
2275
|
+
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
|
|
2276
|
+
margin-bottom: 9px; gap: 8px;
|
|
2277
|
+
}
|
|
2278
|
+
.pane-agents .config-card .seg-btn { padding: 8px 10px; }
|
|
2279
|
+
.pane-agents .config-card .seg-name { font-size: 12.5px; }
|
|
2280
|
+
.pane-agents .config-card .field.tight { margin-top: 0; }
|
|
2281
|
+
.pane-agents .config-card .config-sub {
|
|
2282
|
+
margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line-soft);
|
|
2283
|
+
color: var(--faint); font-size: 10.5px; line-height: 1.5;
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
/* 运行设置:默认折叠成一行,展开时内部自滚动,不撑破单屏 */
|
|
2287
|
+
.pane-options { padding: 0 14px; }
|
|
2288
|
+
.options-summary {
|
|
2289
|
+
display: flex; align-items: center; gap: 9px;
|
|
2290
|
+
min-height: 38px; padding: 0; cursor: pointer; list-style: none;
|
|
2291
|
+
color: var(--text-2); user-select: none;
|
|
2292
|
+
}
|
|
2293
|
+
.options-summary::-webkit-details-marker { display: none; }
|
|
2294
|
+
.options-summary .card-title { font-size: 12.5px; font-weight: 600; }
|
|
2295
|
+
.options-summary .options-brief { margin-left: auto; color: var(--faint); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
2296
|
+
.options-chev { color: var(--muted); transition: transform .18s ease; }
|
|
2297
|
+
.pane-options[open] .options-chev { transform: rotate(180deg); }
|
|
2298
|
+
.options-body {
|
|
2299
|
+
min-height: 0; max-height: min(38vh, 340px); overflow-y: auto;
|
|
2300
|
+
padding: 2px 0 12px; border-top: 1px solid var(--line-soft);
|
|
2301
|
+
scrollbar-width: thin;
|
|
2302
|
+
}
|
|
2303
|
+
.run-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
|
2304
|
+
.run-inline .switch-row { grid-column: 1 / -1; }
|
|
2305
|
+
.unit-input { position: relative; display: flex; align-items: center; }
|
|
2306
|
+
.unit-input .input { width: 100%; padding-right: 30px; height: 30px; }
|
|
2307
|
+
.unit-input em { position: absolute; right: 9px; font-style: normal; color: var(--faint); font-size: 10px; pointer-events: none; }
|
|
2308
|
+
.switch-row.compact { padding: 6px 10px; font-size: 11px; }
|
|
2309
|
+
.pane-options .advanced { border-top: 0; margin-top: 10px; padding-top: 9px; }
|
|
2310
|
+
.profile-advanced { margin-top: 8px; }
|
|
2311
|
+
.profile-advanced[open] > summary { margin-bottom: 8px; }
|
|
2312
|
+
.profile-list.compact { gap: 6px; }
|
|
2313
|
+
.profile-list.compact .profile-row { padding: 6px 9px; }
|
|
2314
|
+
.risk.compact { margin-top: 10px; padding: 8px 10px; align-items: center; gap: 8px; }
|
|
2315
|
+
.risk.compact span { font-size: 11px; line-height: 1.5; color: var(--warn-fg-2); }
|
|
2316
|
+
.risk.compact input { margin-top: 0; width: 15px; height: 15px; }
|
|
2317
|
+
|
|
2318
|
+
/* 项目列表 + 内联文件夹:列表只在自身区域内滚动,不产生整页滚动条。
|
|
2319
|
+
内部仍可滚动,但隐藏滚动条本体,保持画面干净。 */
|
|
2320
|
+
.pane-projects .project-toolbar { margin-bottom: 7px; }
|
|
2321
|
+
.pane-projects .project-list {
|
|
2322
|
+
flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; gap: 3px;
|
|
2323
|
+
scrollbar-width: none;
|
|
2324
|
+
}
|
|
2325
|
+
.pane-projects .project-list::-webkit-scrollbar,
|
|
2326
|
+
.options-body::-webkit-scrollbar,
|
|
2327
|
+
.fp-dirs::-webkit-scrollbar { display: none; width: 0; height: 0; }
|
|
2328
|
+
.options-body { scrollbar-width: none; }
|
|
2329
|
+
.fp-dirs { scrollbar-width: none; }
|
|
2330
|
+
.project-row {
|
|
2331
|
+
display: flex; flex-direction: column; align-items: stretch; gap: 3px;
|
|
2332
|
+
padding: 5px 8px; cursor: default;
|
|
2333
|
+
}
|
|
2334
|
+
.project-main { display: flex; align-items: center; gap: 9px; min-width: 0; cursor: pointer; }
|
|
2335
|
+
.project-main .p-name { flex: 1 1 auto; }
|
|
2336
|
+
.project-main .p-id { margin-left: auto; }
|
|
2337
|
+
.project-main .p-reason { max-width: 26%; }
|
|
2338
|
+
.project-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-left: 24px; }
|
|
2339
|
+
/* 缺少本地文件夹:勾选后常驻提示,同时禁用启动按钮 */
|
|
2340
|
+
.project-warn {
|
|
2341
|
+
display: flex; align-items: flex-start; gap: 6px;
|
|
2342
|
+
margin: 2px 0 6px; padding: 6px 9px; border-radius: 7px;
|
|
2343
|
+
border: 1px solid rgba(var(--warn-rgb), .32); background: rgba(var(--warn-rgb), .09);
|
|
2344
|
+
color: var(--warn-fg-2); font-size: 11px; line-height: 1.5;
|
|
2345
|
+
}
|
|
2346
|
+
.project-warn svg { flex: 0 0 auto; margin-top: 1px; }
|
|
2347
|
+
.p-folder-warn {
|
|
2348
|
+
display: inline-flex; align-items: center; gap: 3px;
|
|
2349
|
+
color: var(--warn); font-size: 10.5px; white-space: nowrap;
|
|
2350
|
+
}
|
|
2351
|
+
.p-folders { display: inline-flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
|
|
2352
|
+
.fp-chip {
|
|
2353
|
+
display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
|
|
2354
|
+
padding: 1px 3px 1px 5px; border-radius: 5px;
|
|
2355
|
+
border: 1px solid var(--line); background: var(--surface-2); font-size: 10px;
|
|
2356
|
+
}
|
|
2357
|
+
.fp-chip i {
|
|
2358
|
+
font-style: normal; font-size: 9px; padding: 0 4px; border-radius: 4px;
|
|
2359
|
+
background: var(--accent-soft); color: var(--accent-fg-2);
|
|
2360
|
+
}
|
|
2361
|
+
.fp-chip.role-backend i { color: var(--role-backend); background: rgba(var(--ok-rgb), .12); }
|
|
2362
|
+
.fp-chip.role-mobile i { color: var(--role-mobile); background: rgba(var(--role-mobile-rgb), .12); }
|
|
2363
|
+
.fp-chip.role-other i { color: var(--muted); background: var(--surface-3); }
|
|
2364
|
+
.fp-chip-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; color: var(--text-2); }
|
|
2365
|
+
.fp-chip .fp-x {
|
|
2366
|
+
border: 0; background: transparent; color: var(--faint);
|
|
2367
|
+
font-size: 12px; line-height: 1; padding: 0 2px; cursor: pointer;
|
|
2368
|
+
}
|
|
2369
|
+
.fp-chip .fp-x:hover { color: var(--danger); }
|
|
2370
|
+
.fp-add {
|
|
2371
|
+
display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
|
|
2372
|
+
border-radius: 6px; border: 1px dashed var(--line); background: transparent;
|
|
2373
|
+
color: var(--muted); font-size: 10.5px; cursor: pointer;
|
|
2374
|
+
}
|
|
2375
|
+
.fp-add:hover { color: var(--text); border-color: var(--accent); }
|
|
2376
|
+
.fp-add.subtle { border-style: solid; color: var(--faint); }
|
|
2377
|
+
.fp-add:disabled { opacity: .55; cursor: wait; }
|
|
2378
|
+
|
|
2379
|
+
/* 页脚三段等宽:中间的风险确认相对整页居中,不会被右侧按钮挤到左边 */
|
|
2380
|
+
.setup-actions {
|
|
2381
|
+
position: static; flex: 0 0 auto; padding: 8px 22px; gap: 14px;
|
|
2382
|
+
display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
2383
|
+
align-items: center;
|
|
2384
|
+
}
|
|
2385
|
+
.setup-footer-spacer { min-width: 0; }
|
|
2386
|
+
.setup-summary { justify-content: center; min-width: 0; }
|
|
2387
|
+
.setup-summary .footer-risk { max-width: min(560px, 100%); }
|
|
2388
|
+
.setup-buttons { margin-left: auto; justify-self: end; }
|
|
2389
|
+
.setup-actions .btn.lg { height: 34px; padding: 0 16px; font-size: 12.5px; }
|
|
2390
|
+
.setup-summary .sum { font-size: 10.5px; }
|
|
2391
|
+
@media (max-width: 1100px) {
|
|
2392
|
+
.setup-actions .footer-risk span { font-size: 10.5px; }
|
|
2393
|
+
.setup-actions .btn.lg { padding: 0 10px; font-size: 11.5px; }
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
/* 文件夹选择弹窗 */
|
|
2397
|
+
.fp-picker { display: flex; flex-direction: column; gap: 8px; }
|
|
2398
|
+
.fp-pathbar { display: flex; align-items: center; gap: 8px; }
|
|
2399
|
+
.fp-pathbar .icon { color: var(--faint); flex: 0 0 auto; }
|
|
2400
|
+
.fp-pathbar .input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 11.5px; }
|
|
2401
|
+
.fp-drives { display: flex; flex-wrap: wrap; gap: 4px; }
|
|
2402
|
+
.fp-drive {
|
|
2403
|
+
min-width: 38px; padding: 3px 8px;
|
|
2404
|
+
border: 1px solid var(--line); border-radius: 6px; background: transparent;
|
|
2405
|
+
color: var(--text-2); font-size: 11px; font-family: var(--mono); cursor: pointer;
|
|
2406
|
+
}
|
|
2407
|
+
.fp-drive:hover { background: var(--surface-2); color: var(--text); }
|
|
2408
|
+
.fp-drive.active { border-color: rgba(var(--accent-rgb), .55); color: var(--text); background: rgba(var(--accent-rgb), .12); }
|
|
2409
|
+
.fp-dirs {
|
|
2410
|
+
height: 250px; overflow-y: auto;
|
|
2411
|
+
border: 1px solid var(--line); border-radius: 9px;
|
|
2412
|
+
background: rgba(var(--bg-rgb), .45); padding: 5px;
|
|
2413
|
+
display: flex; flex-direction: column; gap: 2px;
|
|
2414
|
+
}
|
|
2415
|
+
.fp-dir {
|
|
2416
|
+
display: flex; align-items: center; gap: 8px; width: 100%;
|
|
2417
|
+
padding: 6px 8px; border: 0; border-radius: 6px; background: transparent;
|
|
2418
|
+
color: var(--text-2); font-size: 12px; text-align: left; cursor: pointer;
|
|
2419
|
+
}
|
|
2420
|
+
.fp-dir:hover { background: var(--surface-2); color: var(--text); }
|
|
2421
|
+
.fp-dir .icon { color: var(--folder-fg); flex: 0 0 auto; }
|
|
2422
|
+
.fp-dir-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2423
|
+
.fp-git {
|
|
2424
|
+
margin-left: auto; font-size: 9px; color: var(--ok);
|
|
2425
|
+
border: 1px solid rgba(var(--ok-rgb), .3); border-radius: 4px; padding: 0 4px;
|
|
2426
|
+
}
|
|
2427
|
+
.fp-empty { padding: 16px; text-align: center; color: var(--faint); font-size: 11.5px; }
|
|
2428
|
+
.fp-empty.err { color: var(--danger); }
|
|
2429
|
+
.fp-picker-hint { color: var(--faint); font-size: 10.5px; line-height: 1.5; }
|
|
2430
|
+
|
|
2431
|
+
/* 窄屏 / 矮屏:仍不出现整页滚动条,主卡片改为上下排列并各自内部滚动 */
|
|
2432
|
+
@media (max-width: 980px) {
|
|
2433
|
+
.setup-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto; }
|
|
2434
|
+
.pane-agents { grid-column: 1; grid-row: 1; }
|
|
2435
|
+
.pane-projects { grid-column: 1; grid-row: 2; }
|
|
2436
|
+
.pane-options { grid-column: 1; grid-row: 3; }
|
|
2437
|
+
.setup-headline .ws-chip { max-width: 100%; }
|
|
2438
|
+
.options-brief { display: none; }
|
|
2439
|
+
}
|
|
2440
|
+
@media (max-height: 720px) {
|
|
2441
|
+
.setup-headline { display: none; }
|
|
2442
|
+
.setup-main { padding-top: 8px; }
|
|
2443
|
+
.config-card .config-sub { display: none; }
|
|
2444
|
+
.options-body { max-height: 30vh; }
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
|
|
2448
|
+
/* 左侧列表:历史开关单独占一行,避免与状态页签挤在一起导致文字被遮挡 */
|
|
2449
|
+
.tab-history {
|
|
2450
|
+
display: flex; align-items: center; justify-content: center; gap: 5px;
|
|
2451
|
+
width: 100%; height: 27px;
|
|
2452
|
+
padding: 0 10px; border-radius: 8px;
|
|
2453
|
+
border: 1px solid var(--line); background: rgba(var(--surface-rgb), .8);
|
|
2454
|
+
color: var(--muted); font-size: 10.5px; white-space: nowrap;
|
|
2455
|
+
transition: color .14s, border-color .14s, background .14s;
|
|
2456
|
+
}
|
|
2457
|
+
.tab-history:hover { color: var(--text-2); }
|
|
2458
|
+
.tab-history.on { color: var(--accent); border-color: rgba(var(--accent-rgb), .45); background: var(--accent-soft); }
|
|
2459
|
+
.tab-history b {
|
|
2460
|
+
font-size: 9.5px; font-weight: 600;
|
|
2461
|
+
padding: 0 4px; border-radius: 4px;
|
|
2462
|
+
background: var(--surface-3); color: var(--text-2);
|
|
2463
|
+
}
|