@njuptlzf/agent-chat-web 0.2.0 → 0.4.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/dist/AgentChat.d.ts +7 -1
- package/dist/AgentChat.js +35 -5
- package/dist/AgentChatApp.d.ts +4 -1
- package/dist/AgentChatApp.js +2 -2
- package/dist/PersonasPage.js +8 -0
- package/dist/adapter.d.ts +9 -0
- package/dist/adapter.js +15 -0
- package/dist/mount.d.ts +7 -1
- package/dist/mount.js +2 -2
- package/dist/styles.css +1505 -1478
- package/dist/suggestions.d.ts +41 -0
- package/dist/suggestions.js +98 -0
- package/dist/ui/FollowUpSuggestions.d.ts +9 -0
- package/dist/ui/FollowUpSuggestions.js +13 -0
- package/dist/ui/Icon.d.ts +8 -0
- package/dist/ui/Icon.js +26 -0
- package/dist/ui/MemberCards.d.ts +15 -0
- package/dist/ui/MemberCards.js +13 -0
- package/dist/ui/icons.d.ts +19 -0
- package/dist/ui/icons.js +25 -0
- package/dist/ui/members.d.ts +42 -0
- package/dist/ui/members.js +53 -0
- package/dist/ui/slots.d.ts +29 -0
- package/dist/ui/slots.js +14 -0
- package/package.json +71 -72
- package/src/App.tsx +13 -13
- package/src/agent-chat/AgentChat.tsx +741 -692
- package/src/agent-chat/AgentChatApp.tsx +211 -206
- package/src/agent-chat/DockPanel.tsx +73 -73
- package/src/agent-chat/PersonasPage.tsx +705 -678
- package/src/agent-chat/adapter.ts +293 -272
- package/src/agent-chat/app-def-check.ts +215 -215
- package/src/agent-chat/app.tsx +327 -327
- package/src/agent-chat/auth.ts +83 -83
- package/src/agent-chat/dock.ts +161 -161
- package/src/agent-chat/docs.ts +179 -179
- package/src/agent-chat/index.ts +17 -17
- package/src/agent-chat/mount.tsx +130 -123
- package/src/agent-chat/qual.ts +55 -55
- package/src/agent-chat/sse.ts +104 -104
- package/src/agent-chat/suggestions.ts +127 -0
- package/src/agent-chat/theme.ts +23 -23
- package/src/agent-chat/ui/CodeCopyHeader.tsx +29 -29
- package/src/agent-chat/ui/ConfirmCard.tsx +32 -32
- package/src/agent-chat/ui/FollowUpSuggestions.tsx +28 -0
- package/src/agent-chat/ui/Icon.tsx +53 -0
- package/src/agent-chat/ui/Lightbox.tsx +32 -32
- package/src/agent-chat/ui/MemberCards.tsx +46 -0
- package/src/agent-chat/ui/QueueBar.tsx +70 -70
- package/src/agent-chat/ui/Splitter.tsx +81 -81
- package/src/agent-chat/ui/ThemeToggle.tsx +25 -25
- package/src/agent-chat/ui/TierPicker.tsx +112 -112
- package/src/agent-chat/ui/UIPromptCard.tsx +68 -68
- package/src/agent-chat/ui/icons.ts +31 -0
- package/src/agent-chat/ui/members.ts +106 -0
- package/src/agent-chat/ui/slots.tsx +41 -0
- package/src/agent-chat/ui/timefmt.ts +110 -110
- package/src/agent-chat/ui/useNarrow.ts +20 -20
- package/src/fake-product/entry.tsx +63 -54
- package/src/main.tsx +8 -8
- package/src/styles.css +1505 -1478
package/src/styles.css
CHANGED
|
@@ -1,1478 +1,1505 @@
|
|
|
1
|
-
/* =====================================================================
|
|
2
|
-
* agentChat design tokens (L1).
|
|
3
|
-
* Every themeable dimension is a `--ac-*` custom property with a default
|
|
4
|
-
* here; nothing below this block hard-codes a color, font size or the
|
|
5
|
-
* main geometry. Hosts override in two ways:
|
|
6
|
-
* 1. plain CSS: .shell { --ac-gap: 8px; } (or any ancestor)
|
|
7
|
-
* 2. server manifest → Branding.theme → injected on the app root (App.tsx)
|
|
8
|
-
* Theme mode (L2): `color-scheme` + light-dark() give light/dark/auto from
|
|
9
|
-
* one palette. `<html data-theme="light|dark">` pins a mode (ThemeToggle);
|
|
10
|
-
* no attribute = follow the OS (auto).
|
|
11
|
-
* ===================================================================== */
|
|
12
|
-
:root {
|
|
13
|
-
color-scheme: light dark;
|
|
14
|
-
|
|
15
|
-
/* palette */
|
|
16
|
-
--ac-primary: light-dark(#2563eb, #6ea8fe);
|
|
17
|
-
--ac-on-primary: light-dark(#ffffff, #10141c);
|
|
18
|
-
--ac-bg: light-dark(#f6f7f9, #14161a);
|
|
19
|
-
--ac-fg: light-dark(#1c2330, #e8eaee);
|
|
20
|
-
--ac-card: light-dark(#ffffff, #1e2126);
|
|
21
|
-
--ac-muted: light-dark(#6b7484, #9aa3b2);
|
|
22
|
-
--ac-line: light-dark(#e3e7ee, #2b2f36);
|
|
23
|
-
--ac-ok: light-dark(#15803d, #4caf72);
|
|
24
|
-
--ac-danger: light-dark(#d9534f, #e07168);
|
|
25
|
-
--ac-warn: light-dark(#e0a44a, #c98f3a);
|
|
26
|
-
--ac-accent: light-dark(#7c3aed, #9a7bfb);
|
|
27
|
-
|
|
28
|
-
/* typography */
|
|
29
|
-
--ac-text: 15px;
|
|
30
|
-
--ac-text-md: 14px;
|
|
31
|
-
--ac-text-sm: 13px;
|
|
32
|
-
--ac-text-xs: 12px;
|
|
33
|
-
--ac-leading: 1.6;
|
|
34
|
-
|
|
35
|
-
/* geometry */
|
|
36
|
-
--ac-radius-sm: 8px;
|
|
37
|
-
--ac-radius: 10px;
|
|
38
|
-
--ac-radius-lg: 14px;
|
|
39
|
-
--ac-gap: 12px;
|
|
40
|
-
--ac-pad: 12px;
|
|
41
|
-
--ac-chat-max: 860px;
|
|
42
|
-
--ac-msg-max: 88%;
|
|
43
|
-
--ac-side: 232px;
|
|
44
|
-
|
|
45
|
-
/* overlays(浮层):四套浮层(审计抽屉/反馈抽屉/总结弹窗/战绩卡/灯箱)共用一套层级与遮罩。
|
|
46
|
-
* 加新浮层时选一档,别再手写 z-index——之前 40/41/42/50/51/52/54/60 八个数字散在各处,
|
|
47
|
-
* 加第五个浮层只能靠猜。规则:遮罩 < 面板 < 弹窗 < 灯箱。
|
|
48
|
-
* 遮罩在暗色下加深:34% 的黑压在深底上几乎看不出「下面被挡住了」。 */
|
|
49
|
-
--ac-scrim: light-dark(rgb(0 0 0 / 34%), rgb(0 0 0 / 56%));
|
|
50
|
-
--ac-drawer-w: min(520px, 94vw);
|
|
51
|
-
--ac-z-drawer: 50;
|
|
52
|
-
--ac-z-drawer-panel: 51;
|
|
53
|
-
--ac-z-modal: 52;
|
|
54
|
-
--ac-z-lightbox: 60;
|
|
55
|
-
}
|
|
56
|
-
[data-theme="light"] { color-scheme: light; }
|
|
57
|
-
[data-theme="dark"] { color-scheme: dark; }
|
|
58
|
-
|
|
59
|
-
* { box-sizing: border-box; }
|
|
60
|
-
html, body, #root { height: 100%; margin: 0; }
|
|
61
|
-
body {
|
|
62
|
-
font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
63
|
-
background: var(--ac-bg);
|
|
64
|
-
color: var(--ac-fg);
|
|
65
|
-
font-size: var(--ac-text);
|
|
66
|
-
line-height: var(--ac-leading);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.shell { display: flex; height: 100%; }
|
|
70
|
-
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
|
71
|
-
.chat { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; max-width: var(--ac-chat-max); margin: 0 auto; }
|
|
72
|
-
.side { flex: 0 0 var(--ac-side); display: flex; flex-direction: column; border-right: 1px solid var(--ac-line); background: var(--ac-card); min-height: 0; min-width: 0; }
|
|
73
|
-
/* 可拖拽分隔条:净占位 0(负 margin 抵掉宽度),只在 hover/拖动时显形 */
|
|
74
|
-
.splitter { flex: 0 0 6px; margin: 0 -3px; cursor: col-resize; touch-action: none; z-index: 2; position: relative; }
|
|
75
|
-
.splitter:hover, .splitter:active { background: color-mix(in srgb, var(--ac-primary) 25%, transparent); }
|
|
76
|
-
/* 分层布局:业务壳导航(.shellnav) | agentChat 侧栏(.acnav) | 对话内容 */
|
|
77
|
-
.shellnav { flex-basis: 150px; }
|
|
78
|
-
.ac-row { flex: 1; display: flex; min-width: 0; position: relative; }
|
|
79
|
-
.acnav { flex-basis: 210px; border-left: 1px solid var(--ac-line); }
|
|
80
|
-
.brand { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 600; }
|
|
81
|
-
.brand .theme-toggle { margin-left: auto; }
|
|
82
|
-
.brand .logo { width: 22px; height: 22px; border-radius: 6px; }
|
|
83
|
-
.newchat { margin: 0 12px 8px; padding: 8px 12px; border-radius: var(--ac-radius); border: 1px solid var(--ac-primary); background: var(--ac-primary); color: var(--ac-on-primary); cursor: pointer; font-size: var(--ac-text-md); }
|
|
84
|
-
/* 导航必须能滚:侧栏底部要放「辅助助手 / 反馈问题」两个入口,
|
|
85
|
-
* 600 高的窗口下 7 项导航会溢出、把最后一项挤出视野。flex:1 让它吃掉剩余高度、
|
|
86
|
-
* overflow-y 让多出来的项可滚——底部入口靠 margin-top:auto 仍压在底,不要动那个。 */
|
|
87
|
-
.nav { display: flex; flex-direction: column; gap: 2px; padding: 0 8px 8px; border-bottom: 1px solid var(--ac-line); flex: 1 1 auto; min-height: 0; overflow-y: auto; }
|
|
88
|
-
.nav-item { text-align: left; border: 0; background: transparent; color: var(--ac-fg); border-radius: var(--ac-radius-sm); padding: 7px 10px; cursor: pointer; font-size: var(--ac-text-md); }
|
|
89
|
-
.nav-item:hover { background: var(--ac-bg); }
|
|
90
|
-
.nav-item.on { background: var(--ac-bg); color: var(--ac-primary); font-weight: 600; }
|
|
91
|
-
/* 资格切换入口(V0):侧栏品牌下方的当前资格,点击回选择页 */
|
|
92
|
-
.qual-pick { margin: 0 8px 8px; padding: 7px 10px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--ac-line); background: transparent; color: var(--ac-fg); border-radius: var(--ac-radius-sm); cursor: pointer; font-size: var(--ac-text-sm); text-align: left; }
|
|
93
|
-
.qual-pick:hover { background: var(--ac-bg); }
|
|
94
|
-
.qual-pick .qual-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
95
|
-
.qual-pick .qual-switch { color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
96
|
-
/* 开发身份条(补,仅 vite dev 构建渲染):贴侧栏底部,一眼看清「我是谁、什么权益」 */
|
|
97
|
-
.dev-id { margin-top: auto; padding: 8px; border-top: 1px solid var(--ac-line); display: flex; flex-direction: column; gap: 4px; }
|
|
98
|
-
.dev-id-row { display: flex; flex-direction: column; gap: 3px; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
99
|
-
.dev-id-row select { width: 100%; min-width: 0; border: 1px solid var(--ac-line); background: transparent; color: var(--ac-fg); border-radius: var(--ac-radius-sm); padding: 3px 4px; font-size: var(--ac-text-xs); }
|
|
100
|
-
.dev-id-note { font-size: var(--ac-text-xs); color: var(--ac-muted); line-height: 1.35; }
|
|
101
|
-
/* 资格选择页:按级别分组,未就绪的卡片置灰 */
|
|
102
|
-
.quals { padding: 28px 32px; max-width: 860px; overflow: auto; }
|
|
103
|
-
.q-title { margin: 0 0 6px; font-size: 18px; }
|
|
104
|
-
.q-hint { margin: 0 0 24px; color: var(--ac-muted); font-size: var(--ac-text-sm); }
|
|
105
|
-
.q-group { margin-bottom: 22px; }
|
|
106
|
-
.q-level { margin: 0 0 10px; font-size: var(--ac-text-sm); color: var(--ac-muted); font-weight: 600; }
|
|
107
|
-
.q-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
|
|
108
|
-
.q-card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 14px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); background: var(--ac-card); color: var(--ac-fg); cursor: pointer; text-align: left; }
|
|
109
|
-
.q-card:hover:not(:disabled) { border-color: var(--ac-primary); }
|
|
110
|
-
.q-card.on { border-color: var(--ac-primary); box-shadow: inset 0 0 0 1px var(--ac-primary); }
|
|
111
|
-
.q-card.off { opacity: .55; cursor: not-allowed; }
|
|
112
|
-
.q-card .q-name { font-weight: 600; }
|
|
113
|
-
.q-card .q-dir { color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
114
|
-
.q-card .q-state { font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
115
|
-
.q-card .q-state.ok { color: var(--ac-primary); }
|
|
116
|
-
.hist-h { display: flex; align-items: center; justify-content: space-between; font-size: var(--ac-text-xs); color: var(--ac-muted); padding: 10px 14px 4px; }
|
|
117
|
-
.s-group { font-size: var(--ac-text-xs); color: var(--ac-muted); font-weight: 600; padding: 10px 14px 4px; }
|
|
118
|
-
.module { flex: 1; display: grid; place-items: center; align-content: center; text-align: center; color: var(--ac-muted); padding: 24px; }
|
|
119
|
-
.center { display: grid; place-items: center; height: 100%; text-align: center; padding: 24px; }
|
|
120
|
-
|
|
121
|
-
.chatbar {
|
|
122
|
-
display: flex; align-items: center; gap: 8px;
|
|
123
|
-
padding: 10px 14px; border-bottom: 1px solid var(--ac-line); background: var(--ac-card);
|
|
124
|
-
}
|
|
125
|
-
.chatbar h1 { font-size: 16px; margin: 0; flex: 1; }
|
|
126
|
-
.chatbar .logo { width: 22px; height: 22px; border-radius: 6px; }
|
|
127
|
-
.ghost {
|
|
128
|
-
border: 1px solid var(--ac-line); background: transparent; color: var(--ac-muted);
|
|
129
|
-
border-radius: var(--ac-radius-sm); padding: 4px 10px; cursor: pointer;
|
|
130
|
-
}
|
|
131
|
-
/* 档位下拉(U1b):触发钮在 composer 旁,弹层向上展开(描述卡+列表) */
|
|
132
|
-
.tierpick { position: relative; }
|
|
133
|
-
.composer .tier-btn {
|
|
134
|
-
border: 1px solid var(--ac-line); background: transparent; color: var(--ac-fg);
|
|
135
|
-
border-radius: var(--ac-radius-sm); padding: 4px 10px; font-size: var(--ac-text-sm); cursor: pointer;
|
|
136
|
-
}
|
|
137
|
-
.tier-caret { margin-left: 6px; color: var(--ac-muted); font-size: 11px; }
|
|
138
|
-
.tier-pop {
|
|
139
|
-
position: absolute; bottom: calc(100% + 6px); right: 0; z-index: 30;
|
|
140
|
-
min-width: 232px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius);
|
|
141
|
-
background: var(--ac-card); box-shadow: 0 8px 28px rgb(0 0 0 / 16%); padding: 6px;
|
|
142
|
-
}
|
|
143
|
-
.tier-desc { border-bottom: 1px solid var(--ac-line); padding: 8px 10px; margin-bottom: 6px; }
|
|
144
|
-
.tier-desc-name { font-weight: 600; font-size: var(--ac-text-sm); }
|
|
145
|
-
.tier-desc-text { color: var(--ac-muted); font-size: var(--ac-text-xs); margin-top: 2px; }
|
|
146
|
-
.tier-desc-meta { display: flex; justify-content: space-between; color: var(--ac-muted); font-size: var(--ac-text-xs); margin-top: 6px; }
|
|
147
|
-
.composer .tier-row {
|
|
148
|
-
display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%;
|
|
149
|
-
border: 0; background: transparent; color: var(--ac-fg); border-radius: var(--ac-radius-sm);
|
|
150
|
-
padding: 7px 10px; font-size: var(--ac-text-sm); cursor: pointer; text-align: left;
|
|
151
|
-
}
|
|
152
|
-
.tier-row:hover { background: var(--ac-bg); }
|
|
153
|
-
.tier-row.on { color: var(--ac-primary); font-weight: 600; }
|
|
154
|
-
.tier-mult { color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
155
|
-
|
|
156
|
-
.thread { display: flex; flex-direction: column; flex: 1; min-height: 0; }
|
|
157
|
-
|
|
158
|
-
.sessions { display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; flex: 1; min-height: 0; }
|
|
159
|
-
.sessions > div { min-width: 0; }
|
|
160
|
-
.s-item {
|
|
161
|
-
display: flex; flex-direction: column; gap: 2px; text-align: left; cursor: pointer;
|
|
162
|
-
border: 0; border-top: 1px solid var(--ac-line); background: transparent;
|
|
163
|
-
padding: 8px 14px; color: var(--ac-fg);
|
|
164
|
-
width: 100%; min-width: 0; box-sizing: border-box;
|
|
165
|
-
}
|
|
166
|
-
.s-item:hover { background: var(--ac-bg); }
|
|
167
|
-
.s-title { font-size: var(--ac-text-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
|
|
168
|
-
.s-meta { font-size: var(--ac-text-xs); color: var(--ac-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
169
|
-
.s-empty { padding: 10px 14px; font-size: var(--ac-text-sm); color: var(--ac-muted); }
|
|
170
|
-
.viewport { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: var(--ac-gap); }
|
|
171
|
-
|
|
172
|
-
.welcome { text-align: center; color: var(--ac-muted); padding: 32px 12px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
|
|
173
|
-
.chip {
|
|
174
|
-
border: 1px solid var(--ac-primary); color: var(--ac-primary);
|
|
175
|
-
background: transparent; border-radius: 999px; padding: 6px 14px; cursor: pointer; margin: 0 4px;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.msg { max-width: var(--ac-msg-max); }
|
|
179
|
-
.msg.user { align-self: flex-end; }
|
|
180
|
-
.msg.assistant { align-self: flex-start; }
|
|
181
|
-
.msg.user > :not(.msg-time) {
|
|
182
|
-
background: var(--ac-primary); color: var(--ac-on-primary);
|
|
183
|
-
border-radius: var(--ac-radius-lg) var(--ac-radius-lg) 4px var(--ac-radius-lg); padding: 8px var(--ac-pad); white-space: pre-wrap;
|
|
184
|
-
}
|
|
185
|
-
/* Attached images ride the user message; the default Image part renders an <img>. */
|
|
186
|
-
.msg.user img { max-width: 220px; max-height: 220px; border-radius: var(--ac-radius); display: block; margin-top: 6px; cursor: zoom-in; }
|
|
187
|
-
/* The action bar is a direct child too, so it must stay out of the bubble styling. */
|
|
188
|
-
.msg.assistant > :not(.actions):not(.msg-time) {
|
|
189
|
-
background: var(--ac-card); border: 1px solid var(--ac-line);
|
|
190
|
-
border-radius: var(--ac-radius-lg) var(--ac-radius-lg) var(--ac-radius-lg) 4px; padding: 8px var(--ac-pad);
|
|
191
|
-
}
|
|
192
|
-
.msg.assistant .text + .text { margin-top: 6px; }
|
|
193
|
-
|
|
194
|
-
.reasoning { margin: 4px 0; border-left: 3px solid var(--ac-line); padding-left: 8px; color: var(--ac-muted); }
|
|
195
|
-
.reasoning summary { cursor: pointer; font-size: var(--ac-text-sm); }
|
|
196
|
-
.reasoning-body { white-space: pre-wrap; font-size: var(--ac-text-sm); }
|
|
197
|
-
|
|
198
|
-
.tool {
|
|
199
|
-
margin: 6px 0; border: 1px dashed var(--ac-line); border-radius: var(--ac-radius);
|
|
200
|
-
padding: 6px 10px; font-size: var(--ac-text-sm); background: color-mix(in srgb, var(--ac-card) 70%, var(--ac-bg));
|
|
201
|
-
}
|
|
202
|
-
.tool.err { border-color: var(--ac-danger); }
|
|
203
|
-
.tool-head { font-weight: 600; }
|
|
204
|
-
.tool-run { color: var(--ac-muted); font-weight: 400; margin-left: 8px; }
|
|
205
|
-
.tool pre { white-space: pre-wrap; margin: 4px 0; font-size: var(--ac-text-xs); }
|
|
206
|
-
.tool summary { cursor: pointer; color: var(--ac-muted); }
|
|
207
|
-
/* 工具卡状态机(⛔ 受限是业务闸的人话说明,不是错误) */
|
|
208
|
-
.tool.blocked { border-style: solid; border-color: var(--ac-warn); }
|
|
209
|
-
.tool-run.ok { color: var(--ac-ok); }
|
|
210
|
-
.tool-run.bad { color: var(--ac-danger); }
|
|
211
|
-
.tool-run.warn { color: var(--ac-warn); }
|
|
212
|
-
.tool-blocked { margin: 4px 0 0; color: var(--ac-muted); line-height: 1.5; }
|
|
213
|
-
.tool-err-text { color: var(--ac-danger); }
|
|
214
|
-
/* 产物卡——结论 + 深链,不放原始字段 */
|
|
215
|
-
.artifact { margin-top: 6px; border-top: 1px dashed var(--ac-line); padding-top: 6px; }
|
|
216
|
-
.art-list { display: flex; flex-direction: column; gap: 4px; }
|
|
217
|
-
.art-item { display: flex; gap: 6px; align-items: baseline; }
|
|
218
|
-
.art-topic {
|
|
219
|
-
flex: none; font-size: var(--ac-text-xs); color: var(--ac-accent);
|
|
220
|
-
border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 0 4px;
|
|
221
|
-
}
|
|
222
|
-
.art-more, .art-note { margin: 2px 0 0; color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
223
|
-
.art-options { list-style: none; margin: 4px 0 0; padding: 0; color: var(--ac-muted); }
|
|
224
|
-
.art-options li.right { color: var(--ac-ok); font-weight: 600; }
|
|
225
|
-
.art-answer { margin: 4px 0 0; font-weight: 600; }
|
|
226
|
-
.art-stats { margin: 0; }
|
|
227
|
-
.art-link { display: inline-block; margin-top: 6px; font-size: var(--ac-text-sm); color: var(--ac-primary); }
|
|
228
|
-
.art-link:hover { text-decoration: underline; }
|
|
229
|
-
|
|
230
|
-
.queuebar {
|
|
231
|
-
display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
|
|
232
|
-
padding: 6px 14px; border-top: 1px dashed var(--ac-line); background: var(--ac-card); font-size: var(--ac-text-sm);
|
|
233
|
-
}
|
|
234
|
-
.q-label { color: var(--ac-muted); }
|
|
235
|
-
.q-item { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 2px 6px; }
|
|
236
|
-
.q-text { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
237
|
-
.q-img { color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
238
|
-
.q-item button { border: 0; background: transparent; color: var(--ac-primary); cursor: pointer; padding: 0 2px; }
|
|
239
|
-
|
|
240
|
-
.confirms { display: flex; flex-direction: column; gap: 6px; padding: 6px 14px 0; }
|
|
241
|
-
.confirm {
|
|
242
|
-
border: 1px solid var(--ac-warn); background: color-mix(in srgb, var(--ac-warn) 14%, var(--ac-card));
|
|
243
|
-
border-radius: var(--ac-radius); padding: 8px var(--ac-pad); font-size: var(--ac-text-md);
|
|
244
|
-
}
|
|
245
|
-
.confirm-title { font-weight: 600; }
|
|
246
|
-
.confirm-args { white-space: pre-wrap; margin: 6px 0; font-size: var(--ac-text-xs); max-height: 120px; overflow-y: auto; }
|
|
247
|
-
.confirm-actions { display: flex; gap: 8px; justify-content: flex-end; }
|
|
248
|
-
.confirm-actions button { border: 0; border-radius: var(--ac-radius-sm); padding: 4px 16px; cursor: pointer; font: inherit; color: var(--ac-on-primary); }
|
|
249
|
-
.confirm-actions .allow { background: var(--ac-ok); }
|
|
250
|
-
.confirm-actions .deny { background: var(--ac-danger); }
|
|
251
|
-
|
|
252
|
-
.uidialog {
|
|
253
|
-
border: 1px solid color-mix(in srgb, var(--ac-primary) 45%, var(--ac-line)); background: color-mix(in srgb, var(--ac-primary) 9%, var(--ac-card));
|
|
254
|
-
border-radius: var(--ac-radius); padding: 8px var(--ac-pad); font-size: var(--ac-text-md);
|
|
255
|
-
}
|
|
256
|
-
.uidialog-title { font-weight: 600; }
|
|
257
|
-
.uidialog-msg { color: var(--ac-muted); margin: 6px 0; white-space: pre-wrap; }
|
|
258
|
-
.uidialog-options, .uidialog-actions, .uidialog-input { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
|
|
259
|
-
.uidialog-actions { justify-content: flex-end; }
|
|
260
|
-
.uidialog-options button, .uidialog-actions button, .uidialog-input button {
|
|
261
|
-
border: 0; border-radius: var(--ac-radius-sm); padding: 4px 16px; cursor: pointer; font: inherit; color: var(--ac-on-primary);
|
|
262
|
-
}
|
|
263
|
-
.uidialog-options button:not(.uidialog-dismiss), .uidialog-input button:not(.uidialog-dismiss) { background: var(--ac-primary); }
|
|
264
|
-
.uidialog-options button:disabled, .uidialog-input button:disabled { opacity: 0.5; cursor: default; }
|
|
265
|
-
.uidialog-actions .allow { background: var(--ac-ok); }
|
|
266
|
-
.uidialog-actions .deny { background: var(--ac-danger); }
|
|
267
|
-
.uidialog-dismiss { background: transparent !important; color: var(--ac-muted) !important; }
|
|
268
|
-
.uidialog-input input {
|
|
269
|
-
flex: 1; min-width: 160px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm);
|
|
270
|
-
padding: 5px 10px; font: inherit; background: var(--ac-card); color: inherit;
|
|
271
|
-
}
|
|
272
|
-
.notices { display: flex; flex-direction: column; gap: 6px; padding: 6px 14px 0; }
|
|
273
|
-
.notice { border-radius: var(--ac-radius); padding: 6px var(--ac-pad); font-size: var(--ac-text-sm); }
|
|
274
|
-
.notice.info { background: color-mix(in srgb, var(--ac-primary) 12%, var(--ac-card)); }
|
|
275
|
-
.notice.warning { background: color-mix(in srgb, var(--ac-warn) 20%, var(--ac-card)); }
|
|
276
|
-
.notice.error { background: color-mix(in srgb, var(--ac-danger) 16%, var(--ac-card)); }
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
.
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
.
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
}
|
|
289
|
-
.
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
.composer
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
.
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
}
|
|
302
|
-
.
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
}
|
|
306
|
-
.
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
.
|
|
312
|
-
|
|
313
|
-
border:
|
|
314
|
-
|
|
315
|
-
}
|
|
316
|
-
.
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
.
|
|
330
|
-
|
|
331
|
-
border:
|
|
332
|
-
}
|
|
333
|
-
.
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
/*
|
|
342
|
-
.
|
|
343
|
-
.
|
|
344
|
-
.
|
|
345
|
-
|
|
346
|
-
.
|
|
347
|
-
.
|
|
348
|
-
.
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
.
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
.
|
|
369
|
-
.
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
.
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
}
|
|
384
|
-
.
|
|
385
|
-
|
|
386
|
-
.
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
.
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
.p-bar
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
/*
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
/*
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
.
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
.
|
|
454
|
-
.
|
|
455
|
-
.p-
|
|
456
|
-
.p-
|
|
457
|
-
.p-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
.
|
|
461
|
-
.
|
|
462
|
-
.
|
|
463
|
-
|
|
464
|
-
.p-
|
|
465
|
-
.p-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
}
|
|
476
|
-
.
|
|
477
|
-
.
|
|
478
|
-
.
|
|
479
|
-
.
|
|
480
|
-
.
|
|
481
|
-
.p-
|
|
482
|
-
.p-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
.
|
|
487
|
-
.
|
|
488
|
-
.
|
|
489
|
-
.p-
|
|
490
|
-
.p-
|
|
491
|
-
.p-
|
|
492
|
-
.p-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
.p-
|
|
503
|
-
.p-
|
|
504
|
-
.p-
|
|
505
|
-
.p-
|
|
506
|
-
.p-
|
|
507
|
-
.p-
|
|
508
|
-
.p-
|
|
509
|
-
|
|
510
|
-
.p-
|
|
511
|
-
.p-
|
|
512
|
-
.p-
|
|
513
|
-
.p-
|
|
514
|
-
.p-
|
|
515
|
-
.p-
|
|
516
|
-
.p-
|
|
517
|
-
.p-
|
|
518
|
-
.p-
|
|
519
|
-
.p-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
.p-
|
|
523
|
-
.p-
|
|
524
|
-
.p-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
.p-
|
|
528
|
-
.p-
|
|
529
|
-
.p-
|
|
530
|
-
|
|
531
|
-
.p-
|
|
532
|
-
.p-
|
|
533
|
-
.p-
|
|
534
|
-
.p-
|
|
535
|
-
.p-
|
|
536
|
-
.p-
|
|
537
|
-
.p-
|
|
538
|
-
|
|
539
|
-
.p-
|
|
540
|
-
.p-
|
|
541
|
-
.p-
|
|
542
|
-
.p-
|
|
543
|
-
.p-
|
|
544
|
-
.p-
|
|
545
|
-
.p-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
.p-
|
|
549
|
-
.p-
|
|
550
|
-
.p-
|
|
551
|
-
.p-
|
|
552
|
-
|
|
553
|
-
.p-
|
|
554
|
-
.p-
|
|
555
|
-
.p-
|
|
556
|
-
|
|
557
|
-
.p-report
|
|
558
|
-
.p-report-
|
|
559
|
-
.p-report-
|
|
560
|
-
|
|
561
|
-
.p-
|
|
562
|
-
.p-
|
|
563
|
-
.p-
|
|
564
|
-
|
|
565
|
-
.p-
|
|
566
|
-
.p-
|
|
567
|
-
.p-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
.
|
|
572
|
-
.
|
|
573
|
-
.
|
|
574
|
-
.
|
|
575
|
-
.
|
|
576
|
-
|
|
577
|
-
.
|
|
578
|
-
.
|
|
579
|
-
.
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
.
|
|
583
|
-
.
|
|
584
|
-
.
|
|
585
|
-
.
|
|
586
|
-
|
|
587
|
-
.
|
|
588
|
-
.
|
|
589
|
-
.
|
|
590
|
-
.
|
|
591
|
-
.
|
|
592
|
-
.
|
|
593
|
-
.
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
.
|
|
598
|
-
.
|
|
599
|
-
.
|
|
600
|
-
.
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
.
|
|
604
|
-
.
|
|
605
|
-
.
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
.
|
|
609
|
-
.
|
|
610
|
-
.
|
|
611
|
-
.
|
|
612
|
-
.
|
|
613
|
-
.
|
|
614
|
-
|
|
615
|
-
.
|
|
616
|
-
.
|
|
617
|
-
.
|
|
618
|
-
.
|
|
619
|
-
.
|
|
620
|
-
.
|
|
621
|
-
.
|
|
622
|
-
|
|
623
|
-
.
|
|
624
|
-
.
|
|
625
|
-
.
|
|
626
|
-
.
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
.
|
|
631
|
-
.
|
|
632
|
-
.
|
|
633
|
-
.
|
|
634
|
-
|
|
635
|
-
.
|
|
636
|
-
.
|
|
637
|
-
.
|
|
638
|
-
.
|
|
639
|
-
.
|
|
640
|
-
|
|
641
|
-
.
|
|
642
|
-
.
|
|
643
|
-
.
|
|
644
|
-
.
|
|
645
|
-
.
|
|
646
|
-
.
|
|
647
|
-
.
|
|
648
|
-
.
|
|
649
|
-
|
|
650
|
-
.
|
|
651
|
-
.
|
|
652
|
-
.
|
|
653
|
-
.
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
.
|
|
657
|
-
.
|
|
658
|
-
|
|
659
|
-
.
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
.
|
|
663
|
-
.
|
|
664
|
-
.
|
|
665
|
-
.
|
|
666
|
-
.
|
|
667
|
-
.
|
|
668
|
-
.
|
|
669
|
-
.
|
|
670
|
-
.
|
|
671
|
-
.
|
|
672
|
-
.
|
|
673
|
-
.
|
|
674
|
-
.
|
|
675
|
-
|
|
676
|
-
.
|
|
677
|
-
.
|
|
678
|
-
.
|
|
679
|
-
.
|
|
680
|
-
.
|
|
681
|
-
.
|
|
682
|
-
|
|
683
|
-
.
|
|
684
|
-
|
|
685
|
-
.
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
.
|
|
689
|
-
.r-
|
|
690
|
-
.r-
|
|
691
|
-
.r-
|
|
692
|
-
.r-
|
|
693
|
-
.r-
|
|
694
|
-
.r-
|
|
695
|
-
.r-
|
|
696
|
-
.r-
|
|
697
|
-
|
|
698
|
-
.r-
|
|
699
|
-
.r-
|
|
700
|
-
.r-
|
|
701
|
-
.r-
|
|
702
|
-
.r-
|
|
703
|
-
.r-
|
|
704
|
-
.r-
|
|
705
|
-
.r-
|
|
706
|
-
.r-
|
|
707
|
-
.r-
|
|
708
|
-
|
|
709
|
-
.r-
|
|
710
|
-
.r-
|
|
711
|
-
.r-
|
|
712
|
-
|
|
713
|
-
.r-
|
|
714
|
-
.r-
|
|
715
|
-
.r-
|
|
716
|
-
.r-
|
|
717
|
-
.r-
|
|
718
|
-
.r-
|
|
719
|
-
|
|
720
|
-
.r-
|
|
721
|
-
.r-
|
|
722
|
-
.r-
|
|
723
|
-
|
|
724
|
-
.r-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
.
|
|
728
|
-
.
|
|
729
|
-
.
|
|
730
|
-
.
|
|
731
|
-
.
|
|
732
|
-
.
|
|
733
|
-
.
|
|
734
|
-
.
|
|
735
|
-
.
|
|
736
|
-
.
|
|
737
|
-
.
|
|
738
|
-
.
|
|
739
|
-
.
|
|
740
|
-
.
|
|
741
|
-
.
|
|
742
|
-
.
|
|
743
|
-
|
|
744
|
-
.
|
|
745
|
-
|
|
746
|
-
.
|
|
747
|
-
.
|
|
748
|
-
.
|
|
749
|
-
.
|
|
750
|
-
.
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
.b-
|
|
755
|
-
.b-
|
|
756
|
-
.b-
|
|
757
|
-
.b-
|
|
758
|
-
.b-
|
|
759
|
-
.b-
|
|
760
|
-
|
|
761
|
-
.b-
|
|
762
|
-
.b-
|
|
763
|
-
|
|
764
|
-
.b-
|
|
765
|
-
.b-
|
|
766
|
-
.b-
|
|
767
|
-
.b-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
.b-
|
|
771
|
-
.b-
|
|
772
|
-
.b-
|
|
773
|
-
.b-
|
|
774
|
-
|
|
775
|
-
.b-
|
|
776
|
-
.b-
|
|
777
|
-
.b-
|
|
778
|
-
.b-
|
|
779
|
-
|
|
780
|
-
.b-
|
|
781
|
-
.b-
|
|
782
|
-
.b-
|
|
783
|
-
.b-
|
|
784
|
-
.b-
|
|
785
|
-
.b-
|
|
786
|
-
|
|
787
|
-
.b-
|
|
788
|
-
.b-
|
|
789
|
-
|
|
790
|
-
.b-
|
|
791
|
-
.b-
|
|
792
|
-
.b-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
}
|
|
803
|
-
.b-
|
|
804
|
-
.b-
|
|
805
|
-
.b-
|
|
806
|
-
.b-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
.
|
|
814
|
-
.
|
|
815
|
-
.
|
|
816
|
-
.
|
|
817
|
-
.
|
|
818
|
-
.
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
.
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
.
|
|
830
|
-
.
|
|
831
|
-
.
|
|
832
|
-
.
|
|
833
|
-
|
|
834
|
-
.
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
.
|
|
840
|
-
.
|
|
841
|
-
.
|
|
842
|
-
.
|
|
843
|
-
.
|
|
844
|
-
.
|
|
845
|
-
.
|
|
846
|
-
.
|
|
847
|
-
|
|
848
|
-
.
|
|
849
|
-
.
|
|
850
|
-
.
|
|
851
|
-
|
|
852
|
-
.
|
|
853
|
-
.
|
|
854
|
-
.
|
|
855
|
-
|
|
856
|
-
.
|
|
857
|
-
.
|
|
858
|
-
.
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
.
|
|
863
|
-
|
|
864
|
-
.
|
|
865
|
-
.
|
|
866
|
-
.
|
|
867
|
-
.
|
|
868
|
-
.
|
|
869
|
-
.
|
|
870
|
-
.
|
|
871
|
-
.
|
|
872
|
-
.
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
.
|
|
876
|
-
.
|
|
877
|
-
.
|
|
878
|
-
.
|
|
879
|
-
.
|
|
880
|
-
.
|
|
881
|
-
|
|
882
|
-
.
|
|
883
|
-
.
|
|
884
|
-
.
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
.
|
|
888
|
-
.
|
|
889
|
-
.
|
|
890
|
-
.aud-
|
|
891
|
-
.aud-
|
|
892
|
-
.aud-
|
|
893
|
-
.aud-
|
|
894
|
-
.aud-
|
|
895
|
-
.aud-
|
|
896
|
-
.aud-
|
|
897
|
-
.aud-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
.
|
|
902
|
-
.
|
|
903
|
-
.
|
|
904
|
-
.
|
|
905
|
-
.
|
|
906
|
-
.
|
|
907
|
-
.
|
|
908
|
-
.
|
|
909
|
-
.aud-
|
|
910
|
-
.aud-
|
|
911
|
-
.aud-
|
|
912
|
-
.aud-
|
|
913
|
-
|
|
914
|
-
.
|
|
915
|
-
.
|
|
916
|
-
.
|
|
917
|
-
.
|
|
918
|
-
.
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
.
|
|
922
|
-
.
|
|
923
|
-
.
|
|
924
|
-
/*
|
|
925
|
-
|
|
926
|
-
.
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
}
|
|
936
|
-
.
|
|
937
|
-
.
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
.
|
|
941
|
-
.
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
.
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
.
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
border: 1px solid var(--ac-line); border-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
.
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
.dock-
|
|
972
|
-
.dock-
|
|
973
|
-
.dock-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
.
|
|
980
|
-
position: absolute;
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
box-shadow: 0
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
.
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
.
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
.
|
|
997
|
-
.
|
|
998
|
-
.
|
|
999
|
-
.
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
.
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
.
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
.
|
|
1014
|
-
.
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
.pap
|
|
1018
|
-
.pap-
|
|
1019
|
-
.
|
|
1020
|
-
.
|
|
1021
|
-
.
|
|
1022
|
-
.pap-
|
|
1023
|
-
.pap-
|
|
1024
|
-
.pap-
|
|
1025
|
-
.pap-
|
|
1026
|
-
|
|
1027
|
-
.pap-
|
|
1028
|
-
.pap-
|
|
1029
|
-
.pap-
|
|
1030
|
-
.
|
|
1031
|
-
.pap
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
.
|
|
1040
|
-
.
|
|
1041
|
-
.
|
|
1042
|
-
|
|
1043
|
-
.pap-
|
|
1044
|
-
.pap-
|
|
1045
|
-
.pap-
|
|
1046
|
-
.
|
|
1047
|
-
.p-
|
|
1048
|
-
.
|
|
1049
|
-
.
|
|
1050
|
-
.
|
|
1051
|
-
.
|
|
1052
|
-
|
|
1053
|
-
.
|
|
1054
|
-
.
|
|
1055
|
-
.
|
|
1056
|
-
.
|
|
1057
|
-
.
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
.
|
|
1073
|
-
.
|
|
1074
|
-
.
|
|
1075
|
-
.
|
|
1076
|
-
.
|
|
1077
|
-
.
|
|
1078
|
-
.
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
.
|
|
1082
|
-
.
|
|
1083
|
-
.
|
|
1084
|
-
.
|
|
1085
|
-
.
|
|
1086
|
-
.
|
|
1087
|
-
.
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
.
|
|
1091
|
-
.
|
|
1092
|
-
.
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
.
|
|
1099
|
-
.
|
|
1100
|
-
.mdl-
|
|
1101
|
-
.mdl-
|
|
1102
|
-
.mdl-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
.mdl-
|
|
1108
|
-
.mdl-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
.mdl-
|
|
1112
|
-
.mdl-
|
|
1113
|
-
.mdl-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
.mdl-
|
|
1117
|
-
.mdl-
|
|
1118
|
-
.mdl-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
.mdl-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
.mdl-
|
|
1127
|
-
.mdl-
|
|
1128
|
-
.mdl-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
/*
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
.
|
|
1140
|
-
.
|
|
1141
|
-
.
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
.
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
.
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
.
|
|
1153
|
-
.
|
|
1154
|
-
.
|
|
1155
|
-
.
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
.
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
.mcp-
|
|
1166
|
-
.mcp-
|
|
1167
|
-
.mcp-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
.mcp-
|
|
1173
|
-
.mcp-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
}
|
|
1189
|
-
.
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
.
|
|
1193
|
-
.
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
}
|
|
1199
|
-
.
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
.
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
}
|
|
1215
|
-
.fb-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
}
|
|
1228
|
-
.fb-
|
|
1229
|
-
.fb-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
.fb-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
.fb-
|
|
1242
|
-
.fb-
|
|
1243
|
-
.fb-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
.fb-
|
|
1249
|
-
.fb-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
.fb-
|
|
1255
|
-
.fb-
|
|
1256
|
-
|
|
1257
|
-
/*
|
|
1258
|
-
.fb-
|
|
1259
|
-
.fb-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
}
|
|
1265
|
-
.fb-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
.
|
|
1271
|
-
.
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
.
|
|
1279
|
-
.
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
.
|
|
1285
|
-
.
|
|
1286
|
-
.
|
|
1287
|
-
.
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
.
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
.
|
|
1303
|
-
.
|
|
1304
|
-
.
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
.
|
|
1310
|
-
.
|
|
1311
|
-
.
|
|
1312
|
-
.
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
.
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
}
|
|
1325
|
-
.
|
|
1326
|
-
.
|
|
1327
|
-
.
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
.
|
|
1335
|
-
.
|
|
1336
|
-
.
|
|
1337
|
-
.
|
|
1338
|
-
.
|
|
1339
|
-
|
|
1340
|
-
background: color
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
.sc-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
.
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
}
|
|
1360
|
-
.
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
.
|
|
1371
|
-
.
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
.
|
|
1376
|
-
.
|
|
1377
|
-
.
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
.
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
.
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
.ps
|
|
1395
|
-
.ps-
|
|
1396
|
-
.ps-
|
|
1397
|
-
.ps-
|
|
1398
|
-
.ps-
|
|
1399
|
-
.ps-
|
|
1400
|
-
.ps-
|
|
1401
|
-
.ps-
|
|
1402
|
-
.ps-
|
|
1403
|
-
.ps-
|
|
1404
|
-
.ps-
|
|
1405
|
-
.ps-
|
|
1406
|
-
|
|
1407
|
-
.ps-
|
|
1408
|
-
.ps-
|
|
1409
|
-
.ps-
|
|
1410
|
-
.ps-
|
|
1411
|
-
.ps-
|
|
1412
|
-
.ps-
|
|
1413
|
-
.ps-
|
|
1414
|
-
.ps-
|
|
1415
|
-
.ps-
|
|
1416
|
-
|
|
1417
|
-
.ps-
|
|
1418
|
-
.ps-
|
|
1419
|
-
.ps-
|
|
1420
|
-
.ps-
|
|
1421
|
-
.ps-
|
|
1422
|
-
.ps-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
.
|
|
1431
|
-
.
|
|
1432
|
-
.
|
|
1433
|
-
/*
|
|
1434
|
-
.
|
|
1435
|
-
.
|
|
1436
|
-
|
|
1437
|
-
.
|
|
1438
|
-
.
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
.
|
|
1447
|
-
.
|
|
1448
|
-
.
|
|
1449
|
-
.
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
.
|
|
1458
|
-
.
|
|
1459
|
-
.
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
.
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
.
|
|
1474
|
-
.
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
.
|
|
1478
|
-
.
|
|
1
|
+
/* =====================================================================
|
|
2
|
+
* agentChat design tokens (L1).
|
|
3
|
+
* Every themeable dimension is a `--ac-*` custom property with a default
|
|
4
|
+
* here; nothing below this block hard-codes a color, font size or the
|
|
5
|
+
* main geometry. Hosts override in two ways:
|
|
6
|
+
* 1. plain CSS: .shell { --ac-gap: 8px; } (or any ancestor)
|
|
7
|
+
* 2. server manifest → Branding.theme → injected on the app root (App.tsx)
|
|
8
|
+
* Theme mode (L2): `color-scheme` + light-dark() give light/dark/auto from
|
|
9
|
+
* one palette. `<html data-theme="light|dark">` pins a mode (ThemeToggle);
|
|
10
|
+
* no attribute = follow the OS (auto).
|
|
11
|
+
* ===================================================================== */
|
|
12
|
+
:root {
|
|
13
|
+
color-scheme: light dark;
|
|
14
|
+
|
|
15
|
+
/* palette */
|
|
16
|
+
--ac-primary: light-dark(#2563eb, #6ea8fe);
|
|
17
|
+
--ac-on-primary: light-dark(#ffffff, #10141c);
|
|
18
|
+
--ac-bg: light-dark(#f6f7f9, #14161a);
|
|
19
|
+
--ac-fg: light-dark(#1c2330, #e8eaee);
|
|
20
|
+
--ac-card: light-dark(#ffffff, #1e2126);
|
|
21
|
+
--ac-muted: light-dark(#6b7484, #9aa3b2);
|
|
22
|
+
--ac-line: light-dark(#e3e7ee, #2b2f36);
|
|
23
|
+
--ac-ok: light-dark(#15803d, #4caf72);
|
|
24
|
+
--ac-danger: light-dark(#d9534f, #e07168);
|
|
25
|
+
--ac-warn: light-dark(#e0a44a, #c98f3a);
|
|
26
|
+
--ac-accent: light-dark(#7c3aed, #9a7bfb);
|
|
27
|
+
|
|
28
|
+
/* typography */
|
|
29
|
+
--ac-text: 15px;
|
|
30
|
+
--ac-text-md: 14px;
|
|
31
|
+
--ac-text-sm: 13px;
|
|
32
|
+
--ac-text-xs: 12px;
|
|
33
|
+
--ac-leading: 1.6;
|
|
34
|
+
|
|
35
|
+
/* geometry */
|
|
36
|
+
--ac-radius-sm: 8px;
|
|
37
|
+
--ac-radius: 10px;
|
|
38
|
+
--ac-radius-lg: 14px;
|
|
39
|
+
--ac-gap: 12px;
|
|
40
|
+
--ac-pad: 12px;
|
|
41
|
+
--ac-chat-max: 860px;
|
|
42
|
+
--ac-msg-max: 88%;
|
|
43
|
+
--ac-side: 232px;
|
|
44
|
+
|
|
45
|
+
/* overlays(浮层):四套浮层(审计抽屉/反馈抽屉/总结弹窗/战绩卡/灯箱)共用一套层级与遮罩。
|
|
46
|
+
* 加新浮层时选一档,别再手写 z-index——之前 40/41/42/50/51/52/54/60 八个数字散在各处,
|
|
47
|
+
* 加第五个浮层只能靠猜。规则:遮罩 < 面板 < 弹窗 < 灯箱。
|
|
48
|
+
* 遮罩在暗色下加深:34% 的黑压在深底上几乎看不出「下面被挡住了」。 */
|
|
49
|
+
--ac-scrim: light-dark(rgb(0 0 0 / 34%), rgb(0 0 0 / 56%));
|
|
50
|
+
--ac-drawer-w: min(520px, 94vw);
|
|
51
|
+
--ac-z-drawer: 50;
|
|
52
|
+
--ac-z-drawer-panel: 51;
|
|
53
|
+
--ac-z-modal: 52;
|
|
54
|
+
--ac-z-lightbox: 60;
|
|
55
|
+
}
|
|
56
|
+
[data-theme="light"] { color-scheme: light; }
|
|
57
|
+
[data-theme="dark"] { color-scheme: dark; }
|
|
58
|
+
|
|
59
|
+
* { box-sizing: border-box; }
|
|
60
|
+
html, body, #root { height: 100%; margin: 0; }
|
|
61
|
+
body {
|
|
62
|
+
font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
63
|
+
background: var(--ac-bg);
|
|
64
|
+
color: var(--ac-fg);
|
|
65
|
+
font-size: var(--ac-text);
|
|
66
|
+
line-height: var(--ac-leading);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.shell { display: flex; height: 100%; }
|
|
70
|
+
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
|
71
|
+
.chat { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; max-width: var(--ac-chat-max); margin: 0 auto; }
|
|
72
|
+
.side { flex: 0 0 var(--ac-side); display: flex; flex-direction: column; border-right: 1px solid var(--ac-line); background: var(--ac-card); min-height: 0; min-width: 0; }
|
|
73
|
+
/* 可拖拽分隔条:净占位 0(负 margin 抵掉宽度),只在 hover/拖动时显形 */
|
|
74
|
+
.splitter { flex: 0 0 6px; margin: 0 -3px; cursor: col-resize; touch-action: none; z-index: 2; position: relative; }
|
|
75
|
+
.splitter:hover, .splitter:active { background: color-mix(in srgb, var(--ac-primary) 25%, transparent); }
|
|
76
|
+
/* 分层布局:业务壳导航(.shellnav) | agentChat 侧栏(.acnav) | 对话内容 */
|
|
77
|
+
.shellnav { flex-basis: 150px; }
|
|
78
|
+
.ac-row { flex: 1; display: flex; min-width: 0; position: relative; }
|
|
79
|
+
.acnav { flex-basis: 210px; border-left: 1px solid var(--ac-line); }
|
|
80
|
+
.brand { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 600; }
|
|
81
|
+
.brand .theme-toggle { margin-left: auto; }
|
|
82
|
+
.brand .logo { width: 22px; height: 22px; border-radius: 6px; }
|
|
83
|
+
.newchat { margin: 0 12px 8px; padding: 8px 12px; border-radius: var(--ac-radius); border: 1px solid var(--ac-primary); background: var(--ac-primary); color: var(--ac-on-primary); cursor: pointer; font-size: var(--ac-text-md); }
|
|
84
|
+
/* 导航必须能滚:侧栏底部要放「辅助助手 / 反馈问题」两个入口,
|
|
85
|
+
* 600 高的窗口下 7 项导航会溢出、把最后一项挤出视野。flex:1 让它吃掉剩余高度、
|
|
86
|
+
* overflow-y 让多出来的项可滚——底部入口靠 margin-top:auto 仍压在底,不要动那个。 */
|
|
87
|
+
.nav { display: flex; flex-direction: column; gap: 2px; padding: 0 8px 8px; border-bottom: 1px solid var(--ac-line); flex: 1 1 auto; min-height: 0; overflow-y: auto; }
|
|
88
|
+
.nav-item { text-align: left; border: 0; background: transparent; color: var(--ac-fg); border-radius: var(--ac-radius-sm); padding: 7px 10px; cursor: pointer; font-size: var(--ac-text-md); }
|
|
89
|
+
.nav-item:hover { background: var(--ac-bg); }
|
|
90
|
+
.nav-item.on { background: var(--ac-bg); color: var(--ac-primary); font-weight: 600; }
|
|
91
|
+
/* 资格切换入口(V0):侧栏品牌下方的当前资格,点击回选择页 */
|
|
92
|
+
.qual-pick { margin: 0 8px 8px; padding: 7px 10px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--ac-line); background: transparent; color: var(--ac-fg); border-radius: var(--ac-radius-sm); cursor: pointer; font-size: var(--ac-text-sm); text-align: left; }
|
|
93
|
+
.qual-pick:hover { background: var(--ac-bg); }
|
|
94
|
+
.qual-pick .qual-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
95
|
+
.qual-pick .qual-switch { color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
96
|
+
/* 开发身份条(补,仅 vite dev 构建渲染):贴侧栏底部,一眼看清「我是谁、什么权益」 */
|
|
97
|
+
.dev-id { margin-top: auto; padding: 8px; border-top: 1px solid var(--ac-line); display: flex; flex-direction: column; gap: 4px; }
|
|
98
|
+
.dev-id-row { display: flex; flex-direction: column; gap: 3px; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
99
|
+
.dev-id-row select { width: 100%; min-width: 0; border: 1px solid var(--ac-line); background: transparent; color: var(--ac-fg); border-radius: var(--ac-radius-sm); padding: 3px 4px; font-size: var(--ac-text-xs); }
|
|
100
|
+
.dev-id-note { font-size: var(--ac-text-xs); color: var(--ac-muted); line-height: 1.35; }
|
|
101
|
+
/* 资格选择页:按级别分组,未就绪的卡片置灰 */
|
|
102
|
+
.quals { padding: 28px 32px; max-width: 860px; overflow: auto; }
|
|
103
|
+
.q-title { margin: 0 0 6px; font-size: 18px; }
|
|
104
|
+
.q-hint { margin: 0 0 24px; color: var(--ac-muted); font-size: var(--ac-text-sm); }
|
|
105
|
+
.q-group { margin-bottom: 22px; }
|
|
106
|
+
.q-level { margin: 0 0 10px; font-size: var(--ac-text-sm); color: var(--ac-muted); font-weight: 600; }
|
|
107
|
+
.q-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
|
|
108
|
+
.q-card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 14px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); background: var(--ac-card); color: var(--ac-fg); cursor: pointer; text-align: left; }
|
|
109
|
+
.q-card:hover:not(:disabled) { border-color: var(--ac-primary); }
|
|
110
|
+
.q-card.on { border-color: var(--ac-primary); box-shadow: inset 0 0 0 1px var(--ac-primary); }
|
|
111
|
+
.q-card.off { opacity: .55; cursor: not-allowed; }
|
|
112
|
+
.q-card .q-name { font-weight: 600; }
|
|
113
|
+
.q-card .q-dir { color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
114
|
+
.q-card .q-state { font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
115
|
+
.q-card .q-state.ok { color: var(--ac-primary); }
|
|
116
|
+
.hist-h { display: flex; align-items: center; justify-content: space-between; font-size: var(--ac-text-xs); color: var(--ac-muted); padding: 10px 14px 4px; }
|
|
117
|
+
.s-group { font-size: var(--ac-text-xs); color: var(--ac-muted); font-weight: 600; padding: 10px 14px 4px; }
|
|
118
|
+
.module { flex: 1; display: grid; place-items: center; align-content: center; text-align: center; color: var(--ac-muted); padding: 24px; }
|
|
119
|
+
.center { display: grid; place-items: center; height: 100%; text-align: center; padding: 24px; }
|
|
120
|
+
|
|
121
|
+
.chatbar {
|
|
122
|
+
display: flex; align-items: center; gap: 8px;
|
|
123
|
+
padding: 10px 14px; border-bottom: 1px solid var(--ac-line); background: var(--ac-card);
|
|
124
|
+
}
|
|
125
|
+
.chatbar h1 { font-size: 16px; margin: 0; flex: 1; }
|
|
126
|
+
.chatbar .logo { width: 22px; height: 22px; border-radius: 6px; }
|
|
127
|
+
.ghost {
|
|
128
|
+
border: 1px solid var(--ac-line); background: transparent; color: var(--ac-muted);
|
|
129
|
+
border-radius: var(--ac-radius-sm); padding: 4px 10px; cursor: pointer;
|
|
130
|
+
}
|
|
131
|
+
/* 档位下拉(U1b):触发钮在 composer 旁,弹层向上展开(描述卡+列表) */
|
|
132
|
+
.tierpick { position: relative; }
|
|
133
|
+
.composer .tier-btn {
|
|
134
|
+
border: 1px solid var(--ac-line); background: transparent; color: var(--ac-fg);
|
|
135
|
+
border-radius: var(--ac-radius-sm); padding: 4px 10px; font-size: var(--ac-text-sm); cursor: pointer;
|
|
136
|
+
}
|
|
137
|
+
.tier-caret { margin-left: 6px; color: var(--ac-muted); font-size: 11px; }
|
|
138
|
+
.tier-pop {
|
|
139
|
+
position: absolute; bottom: calc(100% + 6px); right: 0; z-index: 30;
|
|
140
|
+
min-width: 232px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius);
|
|
141
|
+
background: var(--ac-card); box-shadow: 0 8px 28px rgb(0 0 0 / 16%); padding: 6px;
|
|
142
|
+
}
|
|
143
|
+
.tier-desc { border-bottom: 1px solid var(--ac-line); padding: 8px 10px; margin-bottom: 6px; }
|
|
144
|
+
.tier-desc-name { font-weight: 600; font-size: var(--ac-text-sm); }
|
|
145
|
+
.tier-desc-text { color: var(--ac-muted); font-size: var(--ac-text-xs); margin-top: 2px; }
|
|
146
|
+
.tier-desc-meta { display: flex; justify-content: space-between; color: var(--ac-muted); font-size: var(--ac-text-xs); margin-top: 6px; }
|
|
147
|
+
.composer .tier-row {
|
|
148
|
+
display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%;
|
|
149
|
+
border: 0; background: transparent; color: var(--ac-fg); border-radius: var(--ac-radius-sm);
|
|
150
|
+
padding: 7px 10px; font-size: var(--ac-text-sm); cursor: pointer; text-align: left;
|
|
151
|
+
}
|
|
152
|
+
.tier-row:hover { background: var(--ac-bg); }
|
|
153
|
+
.tier-row.on { color: var(--ac-primary); font-weight: 600; }
|
|
154
|
+
.tier-mult { color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
155
|
+
|
|
156
|
+
.thread { display: flex; flex-direction: column; flex: 1; min-height: 0; }
|
|
157
|
+
|
|
158
|
+
.sessions { display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; flex: 1; min-height: 0; }
|
|
159
|
+
.sessions > div { min-width: 0; }
|
|
160
|
+
.s-item {
|
|
161
|
+
display: flex; flex-direction: column; gap: 2px; text-align: left; cursor: pointer;
|
|
162
|
+
border: 0; border-top: 1px solid var(--ac-line); background: transparent;
|
|
163
|
+
padding: 8px 14px; color: var(--ac-fg);
|
|
164
|
+
width: 100%; min-width: 0; box-sizing: border-box;
|
|
165
|
+
}
|
|
166
|
+
.s-item:hover { background: var(--ac-bg); }
|
|
167
|
+
.s-title { font-size: var(--ac-text-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
|
|
168
|
+
.s-meta { font-size: var(--ac-text-xs); color: var(--ac-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
169
|
+
.s-empty { padding: 10px 14px; font-size: var(--ac-text-sm); color: var(--ac-muted); }
|
|
170
|
+
.viewport { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: var(--ac-gap); }
|
|
171
|
+
|
|
172
|
+
.welcome { text-align: center; color: var(--ac-muted); padding: 32px 12px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
|
|
173
|
+
.chip {
|
|
174
|
+
border: 1px solid var(--ac-primary); color: var(--ac-primary);
|
|
175
|
+
background: transparent; border-radius: 999px; padding: 6px 14px; cursor: pointer; margin: 0 4px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.msg { max-width: var(--ac-msg-max); }
|
|
179
|
+
.msg.user { align-self: flex-end; }
|
|
180
|
+
.msg.assistant { align-self: flex-start; }
|
|
181
|
+
.msg.user > :not(.msg-time) {
|
|
182
|
+
background: var(--ac-primary); color: var(--ac-on-primary);
|
|
183
|
+
border-radius: var(--ac-radius-lg) var(--ac-radius-lg) 4px var(--ac-radius-lg); padding: 8px var(--ac-pad); white-space: pre-wrap;
|
|
184
|
+
}
|
|
185
|
+
/* Attached images ride the user message; the default Image part renders an <img>. */
|
|
186
|
+
.msg.user img { max-width: 220px; max-height: 220px; border-radius: var(--ac-radius); display: block; margin-top: 6px; cursor: zoom-in; }
|
|
187
|
+
/* The action bar is a direct child too, so it must stay out of the bubble styling. */
|
|
188
|
+
.msg.assistant > :not(.actions):not(.msg-time) {
|
|
189
|
+
background: var(--ac-card); border: 1px solid var(--ac-line);
|
|
190
|
+
border-radius: var(--ac-radius-lg) var(--ac-radius-lg) var(--ac-radius-lg) 4px; padding: 8px var(--ac-pad);
|
|
191
|
+
}
|
|
192
|
+
.msg.assistant .text + .text { margin-top: 6px; }
|
|
193
|
+
|
|
194
|
+
.reasoning { margin: 4px 0; border-left: 3px solid var(--ac-line); padding-left: 8px; color: var(--ac-muted); }
|
|
195
|
+
.reasoning summary { cursor: pointer; font-size: var(--ac-text-sm); }
|
|
196
|
+
.reasoning-body { white-space: pre-wrap; font-size: var(--ac-text-sm); }
|
|
197
|
+
|
|
198
|
+
.tool {
|
|
199
|
+
margin: 6px 0; border: 1px dashed var(--ac-line); border-radius: var(--ac-radius);
|
|
200
|
+
padding: 6px 10px; font-size: var(--ac-text-sm); background: color-mix(in srgb, var(--ac-card) 70%, var(--ac-bg));
|
|
201
|
+
}
|
|
202
|
+
.tool.err { border-color: var(--ac-danger); }
|
|
203
|
+
.tool-head { font-weight: 600; }
|
|
204
|
+
.tool-run { color: var(--ac-muted); font-weight: 400; margin-left: 8px; }
|
|
205
|
+
.tool pre { white-space: pre-wrap; margin: 4px 0; font-size: var(--ac-text-xs); }
|
|
206
|
+
.tool summary { cursor: pointer; color: var(--ac-muted); }
|
|
207
|
+
/* 工具卡状态机(⛔ 受限是业务闸的人话说明,不是错误) */
|
|
208
|
+
.tool.blocked { border-style: solid; border-color: var(--ac-warn); }
|
|
209
|
+
.tool-run.ok { color: var(--ac-ok); }
|
|
210
|
+
.tool-run.bad { color: var(--ac-danger); }
|
|
211
|
+
.tool-run.warn { color: var(--ac-warn); }
|
|
212
|
+
.tool-blocked { margin: 4px 0 0; color: var(--ac-muted); line-height: 1.5; }
|
|
213
|
+
.tool-err-text { color: var(--ac-danger); }
|
|
214
|
+
/* 产物卡——结论 + 深链,不放原始字段 */
|
|
215
|
+
.artifact { margin-top: 6px; border-top: 1px dashed var(--ac-line); padding-top: 6px; }
|
|
216
|
+
.art-list { display: flex; flex-direction: column; gap: 4px; }
|
|
217
|
+
.art-item { display: flex; gap: 6px; align-items: baseline; }
|
|
218
|
+
.art-topic {
|
|
219
|
+
flex: none; font-size: var(--ac-text-xs); color: var(--ac-accent);
|
|
220
|
+
border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 0 4px;
|
|
221
|
+
}
|
|
222
|
+
.art-more, .art-note { margin: 2px 0 0; color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
223
|
+
.art-options { list-style: none; margin: 4px 0 0; padding: 0; color: var(--ac-muted); }
|
|
224
|
+
.art-options li.right { color: var(--ac-ok); font-weight: 600; }
|
|
225
|
+
.art-answer { margin: 4px 0 0; font-weight: 600; }
|
|
226
|
+
.art-stats { margin: 0; }
|
|
227
|
+
.art-link { display: inline-block; margin-top: 6px; font-size: var(--ac-text-sm); color: var(--ac-primary); }
|
|
228
|
+
.art-link:hover { text-decoration: underline; }
|
|
229
|
+
|
|
230
|
+
.queuebar {
|
|
231
|
+
display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
|
|
232
|
+
padding: 6px 14px; border-top: 1px dashed var(--ac-line); background: var(--ac-card); font-size: var(--ac-text-sm);
|
|
233
|
+
}
|
|
234
|
+
.q-label { color: var(--ac-muted); }
|
|
235
|
+
.q-item { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 2px 6px; }
|
|
236
|
+
.q-text { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
237
|
+
.q-img { color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
238
|
+
.q-item button { border: 0; background: transparent; color: var(--ac-primary); cursor: pointer; padding: 0 2px; }
|
|
239
|
+
|
|
240
|
+
.confirms { display: flex; flex-direction: column; gap: 6px; padding: 6px 14px 0; }
|
|
241
|
+
.confirm {
|
|
242
|
+
border: 1px solid var(--ac-warn); background: color-mix(in srgb, var(--ac-warn) 14%, var(--ac-card));
|
|
243
|
+
border-radius: var(--ac-radius); padding: 8px var(--ac-pad); font-size: var(--ac-text-md);
|
|
244
|
+
}
|
|
245
|
+
.confirm-title { font-weight: 600; }
|
|
246
|
+
.confirm-args { white-space: pre-wrap; margin: 6px 0; font-size: var(--ac-text-xs); max-height: 120px; overflow-y: auto; }
|
|
247
|
+
.confirm-actions { display: flex; gap: 8px; justify-content: flex-end; }
|
|
248
|
+
.confirm-actions button { border: 0; border-radius: var(--ac-radius-sm); padding: 4px 16px; cursor: pointer; font: inherit; color: var(--ac-on-primary); }
|
|
249
|
+
.confirm-actions .allow { background: var(--ac-ok); }
|
|
250
|
+
.confirm-actions .deny { background: var(--ac-danger); }
|
|
251
|
+
|
|
252
|
+
.uidialog {
|
|
253
|
+
border: 1px solid color-mix(in srgb, var(--ac-primary) 45%, var(--ac-line)); background: color-mix(in srgb, var(--ac-primary) 9%, var(--ac-card));
|
|
254
|
+
border-radius: var(--ac-radius); padding: 8px var(--ac-pad); font-size: var(--ac-text-md);
|
|
255
|
+
}
|
|
256
|
+
.uidialog-title { font-weight: 600; }
|
|
257
|
+
.uidialog-msg { color: var(--ac-muted); margin: 6px 0; white-space: pre-wrap; }
|
|
258
|
+
.uidialog-options, .uidialog-actions, .uidialog-input { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
|
|
259
|
+
.uidialog-actions { justify-content: flex-end; }
|
|
260
|
+
.uidialog-options button, .uidialog-actions button, .uidialog-input button {
|
|
261
|
+
border: 0; border-radius: var(--ac-radius-sm); padding: 4px 16px; cursor: pointer; font: inherit; color: var(--ac-on-primary);
|
|
262
|
+
}
|
|
263
|
+
.uidialog-options button:not(.uidialog-dismiss), .uidialog-input button:not(.uidialog-dismiss) { background: var(--ac-primary); }
|
|
264
|
+
.uidialog-options button:disabled, .uidialog-input button:disabled { opacity: 0.5; cursor: default; }
|
|
265
|
+
.uidialog-actions .allow { background: var(--ac-ok); }
|
|
266
|
+
.uidialog-actions .deny { background: var(--ac-danger); }
|
|
267
|
+
.uidialog-dismiss { background: transparent !important; color: var(--ac-muted) !important; }
|
|
268
|
+
.uidialog-input input {
|
|
269
|
+
flex: 1; min-width: 160px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm);
|
|
270
|
+
padding: 5px 10px; font: inherit; background: var(--ac-card); color: inherit;
|
|
271
|
+
}
|
|
272
|
+
.notices { display: flex; flex-direction: column; gap: 6px; padding: 6px 14px 0; }
|
|
273
|
+
.notice { border-radius: var(--ac-radius); padding: 6px var(--ac-pad); font-size: var(--ac-text-sm); }
|
|
274
|
+
.notice.info { background: color-mix(in srgb, var(--ac-primary) 12%, var(--ac-card)); }
|
|
275
|
+
.notice.warning { background: color-mix(in srgb, var(--ac-warn) 20%, var(--ac-card)); }
|
|
276
|
+
.notice.error { background: color-mix(in srgb, var(--ac-danger) 16%, var(--ac-card)); }
|
|
277
|
+
|
|
278
|
+
/* 多 phase 成员卡片(W4):一张卡一个成员,各自流式文本与 usage。 */
|
|
279
|
+
.members { display: flex; flex-direction: column; gap: 8px; padding: 6px 14px 0; }
|
|
280
|
+
.member { border: 1px solid var(--ac-line); border-radius: var(--ac-radius); padding: 8px var(--ac-pad); background: var(--ac-card); }
|
|
281
|
+
.member-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
282
|
+
.member-name { font-weight: 600; font-size: var(--ac-text-sm); }
|
|
283
|
+
.member-state { font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
284
|
+
.member-state.completed { color: var(--ac-ok); }
|
|
285
|
+
.member-state.failed { color: var(--ac-danger); }
|
|
286
|
+
.member-state.running { color: var(--ac-primary); }
|
|
287
|
+
.member-task { font-size: var(--ac-text-xs); color: var(--ac-muted); margin-top: 4px; }
|
|
288
|
+
.member-text { white-space: pre-wrap; font-size: var(--ac-text-sm); margin-top: 6px; }
|
|
289
|
+
.member-usage { font-size: var(--ac-text-xs); color: var(--ac-muted); text-align: right; margin-top: 4px; }
|
|
290
|
+
|
|
291
|
+
.statusbar { padding: 4px 14px; font-size: var(--ac-text-xs); color: var(--ac-muted); text-align: right; }
|
|
292
|
+
|
|
293
|
+
.composer {
|
|
294
|
+
display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--ac-line); background: var(--ac-card);
|
|
295
|
+
flex-wrap: wrap; align-items: flex-end;
|
|
296
|
+
}
|
|
297
|
+
.composer textarea {
|
|
298
|
+
flex: 1; resize: none; border: 1px solid var(--ac-line); border-radius: var(--ac-radius);
|
|
299
|
+
padding: 8px 10px; font: inherit; background: var(--ac-bg); color: var(--ac-fg);
|
|
300
|
+
max-height: 200px; overflow-y: auto;
|
|
301
|
+
}
|
|
302
|
+
.composer button {
|
|
303
|
+
border: 0; border-radius: var(--ac-radius); padding: 0 18px; cursor: pointer; font: inherit;
|
|
304
|
+
background: var(--ac-primary); color: var(--ac-on-primary);
|
|
305
|
+
}
|
|
306
|
+
.composer button.stop { background: var(--ac-danger); }
|
|
307
|
+
.composer button:disabled { opacity: 0.5; cursor: default; }
|
|
308
|
+
|
|
309
|
+
/* Image attachments (3-2): picker strip above the input row. */
|
|
310
|
+
.attach { display: flex; gap: 6px; align-items: center; width: 100%; flex-wrap: wrap; }
|
|
311
|
+
.attach-btn {
|
|
312
|
+
border: 1px solid var(--ac-line); background: var(--ac-bg); color: var(--ac-fg);
|
|
313
|
+
border-radius: var(--ac-radius); padding: 4px 10px; cursor: pointer; font-size: var(--ac-text-sm);
|
|
314
|
+
}
|
|
315
|
+
.attach-thumb { position: relative; }
|
|
316
|
+
.attach-thumb img {
|
|
317
|
+
width: 48px; height: 48px; object-fit: cover; border-radius: var(--ac-radius-sm); border: 1px solid var(--ac-line); display: block;
|
|
318
|
+
}
|
|
319
|
+
.attach-thumb button {
|
|
320
|
+
position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; padding: 0;
|
|
321
|
+
border-radius: 50%; background: var(--ac-danger); color: var(--ac-on-primary); font-size: var(--ac-text-xs); line-height: 1;
|
|
322
|
+
}
|
|
323
|
+
/* Document attachments (批11/B4-A): chips in the composer, bubble and edit composer. */
|
|
324
|
+
.doc-chip {
|
|
325
|
+
display: inline-flex; align-items: center; gap: 6px; max-width: 240px;
|
|
326
|
+
border: 1px solid var(--ac-line); border-radius: var(--ac-radius); padding: 3px 10px;
|
|
327
|
+
background: var(--ac-card); font-size: var(--ac-text-sm);
|
|
328
|
+
}
|
|
329
|
+
.doc-chip.pending { color: var(--ac-muted); font-style: italic; }
|
|
330
|
+
.doc-chip button {
|
|
331
|
+
border: 0; background: none; color: var(--ac-muted); cursor: pointer; font-size: var(--ac-text-md); line-height: 1; padding: 0 2px;
|
|
332
|
+
}
|
|
333
|
+
.doc-chip button:hover { color: var(--ac-danger); }
|
|
334
|
+
.msg .doc-chip { flex-direction: column; align-items: flex-start; }
|
|
335
|
+
.msg .doc-chip summary { cursor: pointer; list-style: none; }
|
|
336
|
+
.msg .doc-chip pre {
|
|
337
|
+
max-height: 220px; overflow: auto; white-space: pre-wrap; word-break: break-all;
|
|
338
|
+
font-size: var(--ac-text-xs); color: var(--ac-muted); margin: 6px 0 0;
|
|
339
|
+
}
|
|
340
|
+
.attach-err { width: 100%; color: var(--ac-danger); font-size: var(--ac-text-xs); }
|
|
341
|
+
/* Icon slot: one sizing rule for svg/img/text, theme-following via currentColor. */
|
|
342
|
+
.ac-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; line-height: 1; }
|
|
343
|
+
.composer .attach-btn .ac-icon { font-size: 1.1em; vertical-align: -0.18em; }
|
|
344
|
+
.ac-icon img, img.ac-icon, svg.ac-icon, span.ac-icon { font-size: inherit; }
|
|
345
|
+
/* Follow-up suggestions: chips above the composer, shown after a run settles. */
|
|
346
|
+
.ac-followup { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
|
|
347
|
+
.ac-followup:empty { display: none; }
|
|
348
|
+
.ac-followup-chip {
|
|
349
|
+
border: 1px solid var(--ac-line); background: var(--ac-bg); color: var(--ac-fg);
|
|
350
|
+
border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: var(--ac-text-sm);
|
|
351
|
+
font-family: inherit; text-align: left;
|
|
352
|
+
}
|
|
353
|
+
.ac-followup-chip:hover { border-color: var(--ac-primary); color: var(--ac-primary); }
|
|
354
|
+
/* Slash-command picker (batch 3-3). Scoped under .composer to outrank `.composer button`. */
|
|
355
|
+
.composer .cmds {
|
|
356
|
+
width: 100%; display: flex; flex-direction: column; gap: 2px; max-height: 200px; overflow-y: auto;
|
|
357
|
+
border: 1px solid var(--ac-line); border-radius: var(--ac-radius); background: var(--ac-bg); padding: 4px;
|
|
358
|
+
}
|
|
359
|
+
.composer .cmd {
|
|
360
|
+
display: flex; gap: 8px; align-items: baseline; text-align: left; background: transparent;
|
|
361
|
+
color: var(--ac-fg); padding: 6px 8px; border-radius: var(--ac-radius-sm); font-size: var(--ac-text-sm);
|
|
362
|
+
}
|
|
363
|
+
.composer .cmd:hover { background: var(--ac-card); }
|
|
364
|
+
.composer .cmd-name { font-family: ui-monospace, monospace; color: var(--ac-primary); }
|
|
365
|
+
.composer .cmd-desc { color: var(--ac-muted); font-size: var(--ac-text-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
366
|
+
|
|
367
|
+
/* Markdown answers (A4): the primitive renders its own container div. */
|
|
368
|
+
.md { line-height: var(--ac-leading); }
|
|
369
|
+
.md > :first-child { margin-top: 0; }
|
|
370
|
+
.md > :last-child { margin-bottom: 0; }
|
|
371
|
+
.md pre { overflow-x: auto; padding: 8px 10px; border-radius: var(--ac-radius-sm); background: var(--ac-bg); border: 1px solid var(--ac-line); }
|
|
372
|
+
.md code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: var(--ac-text-sm); }
|
|
373
|
+
.md :not(pre) > code { background: var(--ac-bg); border: 1px solid var(--ac-line); border-radius: 4px; padding: 1px 4px; }
|
|
374
|
+
.md table { border-collapse: collapse; }
|
|
375
|
+
.md th, .md td { border: 1px solid var(--ac-line); padding: 4px 8px; }
|
|
376
|
+
/* Code-fence header (CodeCopyHeader): language on the left, copy on the right. */
|
|
377
|
+
.md .code-head {
|
|
378
|
+
display: flex; align-items: center; justify-content: space-between; gap: 8px;
|
|
379
|
+
border: 1px solid var(--ac-line); border-bottom: 0; border-radius: var(--ac-radius-sm) var(--ac-radius-sm) 0 0;
|
|
380
|
+
background: var(--ac-bg); padding: 3px 10px; color: var(--ac-muted); font-size: var(--ac-text-xs);
|
|
381
|
+
}
|
|
382
|
+
.md .code-head + pre { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: 0; }
|
|
383
|
+
.md .copy-code { border: 1px solid var(--ac-line); border-radius: 6px; background: var(--ac-card); color: var(--ac-muted); font-size: var(--ac-text-xs); padding: 1px 8px; cursor: pointer; }
|
|
384
|
+
.md .copy-code:hover { color: var(--ac-fg); border-color: var(--ac-primary); }
|
|
385
|
+
|
|
386
|
+
/* Action bar (A3/A7): copy / regenerate / thumbs. */
|
|
387
|
+
.actions { display: flex; gap: 4px; margin-top: 4px; opacity: 0.55; transition: opacity 0.15s; }
|
|
388
|
+
.msg.assistant:hover .actions, .msg.user:hover .actions { opacity: 1; }
|
|
389
|
+
.actions button {
|
|
390
|
+
border: 1px solid transparent; border-radius: 6px; background: transparent;
|
|
391
|
+
color: var(--ac-muted); font: inherit; font-size: var(--ac-text-xs); padding: 2px 6px; cursor: pointer;
|
|
392
|
+
}
|
|
393
|
+
.actions button:hover { border-color: var(--ac-line); color: var(--ac-fg); }
|
|
394
|
+
.actions button:disabled { opacity: 0.4; cursor: default; }
|
|
395
|
+
.actions button[data-submitted="true"] { color: var(--ac-fg); background: var(--ac-bg); border-color: var(--ac-line); }
|
|
396
|
+
|
|
397
|
+
/* Message editing (E1): UserEditComposer replaces the bubble in place, so it
|
|
398
|
+
must not carry `.msg.user` — that rule paints every child as the blue bubble. */
|
|
399
|
+
.edit-composer {
|
|
400
|
+
align-self: flex-end; display: flex; flex-direction: column; gap: 6px;
|
|
401
|
+
width: 100%; max-width: var(--ac-msg-max);
|
|
402
|
+
background: var(--ac-card); border: 1px solid var(--ac-primary);
|
|
403
|
+
border-radius: var(--ac-radius-lg) var(--ac-radius-lg) 4px var(--ac-radius-lg); padding: 8px;
|
|
404
|
+
}
|
|
405
|
+
.edit-composer .edit-input {
|
|
406
|
+
width: 100%; box-sizing: border-box; resize: none; font: inherit; color: var(--ac-fg);
|
|
407
|
+
background: var(--ac-bg); border: 1px solid var(--ac-line); border-radius: var(--ac-radius); padding: 8px 10px;
|
|
408
|
+
max-height: 200px; overflow-y: auto;
|
|
409
|
+
}
|
|
410
|
+
.edit-composer img { max-width: 120px; max-height: 120px; border-radius: var(--ac-radius-sm); display: block; }
|
|
411
|
+
.edit-actions { display: flex; gap: 6px; justify-content: flex-end; }
|
|
412
|
+
.edit-btn {
|
|
413
|
+
border: 1px solid var(--ac-line); background: var(--ac-bg); color: var(--ac-fg);
|
|
414
|
+
border-radius: var(--ac-radius-sm); padding: 4px 12px; cursor: pointer; font: inherit; font-size: var(--ac-text-sm);
|
|
415
|
+
}
|
|
416
|
+
.edit-btn.primary { background: var(--ac-primary); border-color: var(--ac-primary); color: var(--ac-on-primary); }
|
|
417
|
+
.edit-btn:disabled { opacity: 0.5; cursor: default; }
|
|
418
|
+
|
|
419
|
+
/* 练习页(业务1) */
|
|
420
|
+
.practice {
|
|
421
|
+
flex: 1;
|
|
422
|
+
overflow-y: auto;
|
|
423
|
+
padding: 16px clamp(12px, 4vw, 40px) 40px;
|
|
424
|
+
max-width: var(--ac-chat-max);
|
|
425
|
+
margin: 0 auto;
|
|
426
|
+
width: 100%;
|
|
427
|
+
box-sizing: border-box;
|
|
428
|
+
}
|
|
429
|
+
.p-bar {
|
|
430
|
+
display: flex;
|
|
431
|
+
align-items: center;
|
|
432
|
+
justify-content: space-between;
|
|
433
|
+
/* 往下刷题时工具条跟随(2026-11-04 用户反馈):.practice 自己滚动。
|
|
434
|
+
Chrome 把 sticky 的 top:0 钉在滚动容器 **content-box** 顶缘——比真顶缘低一个
|
|
435
|
+
padding-top,上面会露一条缝透出题卡;各页容器 top padding 均为 16px,
|
|
436
|
+
用 -16px 抵消,把粘贴点顶到真顶缘(探针实测:top:0→钉在16,top:-16→钉在0)。 */
|
|
437
|
+
position: sticky;
|
|
438
|
+
top: -16px;
|
|
439
|
+
z-index: 5;
|
|
440
|
+
background: var(--ac-bg);
|
|
441
|
+
/* 原 margin-bottom 改为同尺寸 padding:margin 段不涂背景,钉住后有内容从缝里透出。 */
|
|
442
|
+
padding-bottom: 12px;
|
|
443
|
+
}
|
|
444
|
+
/* 各表格页的列头跟随:record/pricing/audit(audit 与 admin 共用 .pricing 容器)。
|
|
445
|
+
只在这些 overflow-y:auto 的页面容器里生效;top:-16px 同 .p-bar 的理由。
|
|
446
|
+
th 背景不透明压住滚过的行;表滚出视野后列头随之消失(sticky 的正常约束)。 */
|
|
447
|
+
.record thead th, .pricing thead th, .ledger thead th {
|
|
448
|
+
position: sticky;
|
|
449
|
+
top: -16px;
|
|
450
|
+
background: var(--ac-card);
|
|
451
|
+
z-index: 2;
|
|
452
|
+
}
|
|
453
|
+
.p-score { color: var(--ac-muted); font-size: var(--ac-text-md); }
|
|
454
|
+
.p-bar .ghost { margin-left: auto; }
|
|
455
|
+
.p-bar button + button { margin-left: 8px; }
|
|
456
|
+
.p-bar .default { border: 0; border-radius: var(--ac-radius-sm); padding: 4px 12px; cursor: pointer; background: var(--ac-accent); color: var(--ac-on-primary); }
|
|
457
|
+
.p-bar .default:disabled { opacity: .5; cursor: default; }
|
|
458
|
+
.p-error { color: var(--ac-danger); background: color-mix(in srgb, var(--ac-danger) 10%, var(--ac-card)); border: 1px solid color-mix(in srgb, var(--ac-danger) 35%, var(--ac-card)); border-radius: var(--ac-radius-sm); padding: 8px 12px; margin-bottom: 12px; font-size: var(--ac-text-md); }
|
|
459
|
+
.p-loading { color: var(--ac-muted); padding: 24px; text-align: center; }
|
|
460
|
+
.p-q { background: var(--ac-card); border: 1px solid var(--ac-line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
|
|
461
|
+
.p-stem { margin: 0 0 10px; line-height: var(--ac-leading); font-size: var(--ac-text); }
|
|
462
|
+
.p-topic { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ac-primary) 10%, var(--ac-card)); color: var(--ac-primary); font-size: var(--ac-text-xs); vertical-align: middle; }
|
|
463
|
+
/* 场次徽标与标签:与主题同一种药丸形,但用中性色,避免三个彩色标签抢题干。 */
|
|
464
|
+
.p-exam-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--ac-line); color: var(--ac-muted); font-size: var(--ac-text-xs); vertical-align: middle; white-space: nowrap; }
|
|
465
|
+
.p-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ac-accent) 12%, var(--ac-card)); color: var(--ac-accent); font-size: var(--ac-text-xs); vertical-align: middle; }
|
|
466
|
+
|
|
467
|
+
/* 平铺筛选:一行一个轴。下拉看不全,也不知道每项有多少题,所以主题/题型/标签全平铺。 */
|
|
468
|
+
.p-filters { border: 1px solid var(--ac-line); border-radius: 12px; background: var(--ac-card); padding: 8px 12px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
|
|
469
|
+
.p-frow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
470
|
+
/* 主题/标签折叠开关(2026-11-04):24 个主题 chip 平铺占 1/3 屏,默认折起 */
|
|
471
|
+
.p-fx { align-self: flex-start; border: 0; background: transparent; color: var(--ac-primary); cursor: pointer; font: inherit; font-size: var(--ac-text-sm); padding: 2px 2px; }
|
|
472
|
+
.p-fx:hover { text-decoration: underline; }
|
|
473
|
+
.p-fxsum { display: inline-flex; flex-wrap: wrap; gap: 4px; }
|
|
474
|
+
.p-fxchip { font-size: var(--ac-text-xs); border: 1px solid color-mix(in srgb, var(--ac-primary) 45%, var(--ac-line)); border-radius: 999px; padding: 1px 8px; color: var(--ac-primary); }
|
|
475
|
+
.p-flabel { color: var(--ac-muted); font-size: var(--ac-text-xs); min-width: 28px; }
|
|
476
|
+
.fchip { border: 1px solid var(--ac-line); background: transparent; color: inherit; border-radius: 999px; padding: 2px 10px; font-size: var(--ac-text-sm); cursor: pointer; line-height: 1.6; }
|
|
477
|
+
.fchip:hover { border-color: var(--ac-primary); }
|
|
478
|
+
.fchip.on { border-color: var(--ac-primary); background: color-mix(in srgb, var(--ac-primary) 12%, transparent); color: var(--ac-primary); }
|
|
479
|
+
.fchip b { margin-left: 5px; font-weight: 400; color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
480
|
+
.fchip.on b { color: var(--ac-primary); }
|
|
481
|
+
.p-exam { border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); background: var(--ac-bg); color: inherit; padding: 3px 8px; font-size: var(--ac-text-sm); max-width: 260px; }
|
|
482
|
+
.p-exam:disabled { opacity: .5; cursor: not-allowed; }
|
|
483
|
+
.p-hint { color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
484
|
+
/* ⑤ 案例/论文页的数据轴:只有服务端 facets 里真有第二档题性 / 场次才渲染(当前
|
|
485
|
+
真实题库全为自编仿真题,整条恒不渲染)。内部复用练习页的 fchip/p-exam。 */
|
|
486
|
+
.ce-filter { display: flex; flex-direction: column; gap: 8px; background: var(--ac-card); border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 8px 12px; margin: 0 0 12px; }
|
|
487
|
+
.ce-note { color: var(--ac-muted); font-size: var(--ac-text-xs); margin: 0 0 12px; }
|
|
488
|
+
.ce-empty { color: var(--ac-muted); padding: 16px; }
|
|
489
|
+
.p-pool { margin-left: auto; color: var(--ac-muted); font-size: var(--ac-text-sm); }
|
|
490
|
+
.p-clear { padding: 2px 8px; font-size: var(--ac-text-sm); }
|
|
491
|
+
.p-opts { display: flex; flex-direction: column; gap: 6px; }
|
|
492
|
+
.p-opt {
|
|
493
|
+
text-align: left;
|
|
494
|
+
padding: 8px 12px;
|
|
495
|
+
border: 1px solid var(--ac-line);
|
|
496
|
+
border-radius: var(--ac-radius-sm);
|
|
497
|
+
background: var(--ac-bg);
|
|
498
|
+
cursor: pointer;
|
|
499
|
+
font-size: var(--ac-text-md);
|
|
500
|
+
line-height: 1.5;
|
|
501
|
+
}
|
|
502
|
+
.p-opt:hover:not(:disabled) { border-color: var(--ac-primary); }
|
|
503
|
+
.p-opt:disabled { cursor: default; opacity: .85; }
|
|
504
|
+
.p-opt.right { border-color: var(--ac-ok); background: color-mix(in srgb, var(--ac-ok) 10%, var(--ac-card)); }
|
|
505
|
+
.p-opt.wrong { border-color: var(--ac-danger); background: color-mix(in srgb, var(--ac-danger) 10%, var(--ac-card)); }
|
|
506
|
+
.p-verdict { margin: 10px 0 0; font-size: var(--ac-text-md); line-height: var(--ac-leading); border-radius: var(--ac-radius-sm); padding: 8px 12px; }
|
|
507
|
+
.p-verdict.right { background: color-mix(in srgb, var(--ac-ok) 10%, var(--ac-card)); color: var(--ac-ok); }
|
|
508
|
+
.p-verdict.wrong { background: color-mix(in srgb, var(--ac-danger) 10%, var(--ac-card)); color: var(--ac-danger); }
|
|
509
|
+
/* ——— 智能出题 ——— */
|
|
510
|
+
.p-desk { max-width: 560px; margin: 10vh auto 0; text-align: center; }
|
|
511
|
+
.p-desk-ico { width: 60px; height: 60px; border-radius: 16px; background: color-mix(in srgb, var(--ac-primary) 12%, var(--ac-card)); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 28px; }
|
|
512
|
+
.p-desk h2 { margin: 0 0 6px; font-size: 19px; }
|
|
513
|
+
.p-desk-sub { color: var(--ac-muted); font-size: var(--ac-text-md); margin: 0 0 14px; }
|
|
514
|
+
.p-brief { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
|
|
515
|
+
.p-brief b { border: 1px solid var(--ac-line); background: var(--ac-card); border-radius: 999px; font-size: var(--ac-text-xs); color: var(--ac-muted); padding: 3px 12px; font-weight: 400; }
|
|
516
|
+
.p-brief b i { font-style: normal; font-weight: 700; color: var(--ac-fg); }
|
|
517
|
+
.p-brief b.warn i { color: var(--ac-danger); }
|
|
518
|
+
.p-desk-actions { display: flex; gap: 10px; justify-content: center; }
|
|
519
|
+
.p-desk-actions .primary { border: 1px solid var(--ac-primary); background: var(--ac-primary); color: var(--ac-on-primary); font-weight: 600; }
|
|
520
|
+
.p-desk-fine { margin-top: 12px; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
521
|
+
.p-lhead { text-align: center; margin-bottom: 14px; }
|
|
522
|
+
.p-lhead h3 { margin: 0 0 2px; font-size: 16px; }
|
|
523
|
+
.p-lsub { color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
524
|
+
.p-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--ac-line); border-top-color: var(--ac-primary); animation: p-spin 1s linear infinite; margin: 0 auto 12px; }
|
|
525
|
+
@keyframes p-spin { to { transform: rotate(360deg); } }
|
|
526
|
+
.p-steps { max-width: 520px; margin: 6vh auto 0; border: 1px solid var(--ac-line); border-radius: 12px; background: var(--ac-card); padding: 8px 0; }
|
|
527
|
+
.p-step { display: flex; gap: 10px; padding: 9px 16px; align-items: flex-start; opacity: .35; transition: opacity .3s; }
|
|
528
|
+
.p-step.on, .p-step.done { opacity: 1; }
|
|
529
|
+
.p-step-ic { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 18px; border: 2px solid var(--ac-line); margin-top: 2px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: transparent; flex-shrink: 0; }
|
|
530
|
+
.p-step.on .p-step-ic { border-color: var(--ac-primary); background: var(--ac-primary); color: var(--ac-on-primary); }
|
|
531
|
+
.p-step.done .p-step-ic { border-color: var(--ac-ok); background: var(--ac-ok); color: var(--ac-on-primary); }
|
|
532
|
+
.p-step-tx { font-size: var(--ac-text-sm); color: var(--ac-muted); text-align: left; }
|
|
533
|
+
.p-step-tx b { color: var(--ac-fg); }
|
|
534
|
+
.p-step-tx small { display: block; color: var(--ac-muted); font-size: var(--ac-text-xs); margin-top: 1px; }
|
|
535
|
+
.p-basis { border: 1px solid color-mix(in srgb, var(--ac-primary) 35%, var(--ac-line)); border-left: 3px solid var(--ac-primary); border-radius: 10px; background: color-mix(in srgb, var(--ac-primary) 7%, var(--ac-card)); padding: 10px 14px; margin-bottom: 14px; font-size: var(--ac-text-sm); }
|
|
536
|
+
.p-basis-head { display: flex; align-items: center; gap: 8px; font-weight: 600; }
|
|
537
|
+
.p-basis-fold { margin-left: auto; border: 0; background: transparent; font: inherit; font-size: var(--ac-text-xs); color: var(--ac-primary); cursor: pointer; padding: 0; }
|
|
538
|
+
.p-basis-plan { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
|
|
539
|
+
.p-basis-pl { background: var(--ac-card); border: 1px solid var(--ac-line); border-radius: 8px; padding: 2px 9px; font-size: var(--ac-text-xs); }
|
|
540
|
+
.p-basis-src { margin-top: 6px; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
541
|
+
.p-reason { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: var(--ac-text-xs); vertical-align: middle; font-weight: 600; white-space: nowrap; }
|
|
542
|
+
.p-reason.r-wrong { background: color-mix(in srgb, var(--ac-danger) 12%, var(--ac-card)); color: var(--ac-danger); }
|
|
543
|
+
.p-reason.r-weak { background: color-mix(in srgb, var(--ac-warn) 16%, var(--ac-card)); color: var(--ac-warn); }
|
|
544
|
+
.p-reason.r-fresh-revisit { background: color-mix(in srgb, var(--ac-primary) 12%, var(--ac-card)); color: var(--ac-primary); }
|
|
545
|
+
.p-reason.r-fresh, .p-reason.r-probe { background: color-mix(in srgb, var(--ac-muted) 14%, var(--ac-card)); color: var(--ac-muted); }
|
|
546
|
+
|
|
547
|
+
/* ——— 提交+战报 ——— */
|
|
548
|
+
.p-timer { color: var(--ac-muted); font-size: var(--ac-text-md); font-variant-numeric: tabular-nums; }
|
|
549
|
+
.p-timer b { color: var(--ac-fg); font-weight: 600; }
|
|
550
|
+
.p-bar .p-submit { margin-left: auto; border: 1px solid var(--ac-primary); background: var(--ac-primary); color: var(--ac-on-primary); font-weight: 600; font-size: var(--ac-text-md); border-radius: var(--ac-radius-sm); padding: 4px 14px; cursor: pointer; }
|
|
551
|
+
.p-bar .p-submit:hover { filter: brightness(1.07); }
|
|
552
|
+
/* 提交式下已选未揭示的选项:只标"我选了它",不透露对错 */
|
|
553
|
+
.p-opt.picked { border-color: var(--ac-primary); background: color-mix(in srgb, var(--ac-primary) 9%, var(--ac-card)); }
|
|
554
|
+
.p-opt.picked::after { content: "已选 · 交卷后判分"; float: right; font-size: var(--ac-text-xs); color: var(--ac-muted); font-weight: 400; }
|
|
555
|
+
.p-verdict.blank { background: color-mix(in srgb, var(--ac-muted) 8%, var(--ac-card)); color: var(--ac-muted); }
|
|
556
|
+
/* 战报卡:数字全部来自本轮真实作答 + plan,规则可算零 AI */
|
|
557
|
+
.p-report { border: 1.5px solid color-mix(in srgb, var(--ac-primary) 55%, var(--ac-line)); border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--ac-primary) 8%, var(--ac-card)), var(--ac-card) 46%); padding: 16px 18px; margin-bottom: 16px; }
|
|
558
|
+
.p-report-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
|
|
559
|
+
.p-report-head h3 { margin: 0; font-size: 16px; }
|
|
560
|
+
.p-report-score { font-size: 20px; font-weight: 800; color: var(--ac-primary); }
|
|
561
|
+
.p-report-score small { font-size: 12px; font-weight: 400; color: var(--ac-muted); }
|
|
562
|
+
.p-report-note { font-size: var(--ac-text-xs); color: var(--ac-muted); margin: 2px 0 0; }
|
|
563
|
+
.p-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
|
|
564
|
+
@media (max-width: 900px) { .p-report-grid { grid-template-columns: 1fr; } }
|
|
565
|
+
.p-rcard { border: 1px solid var(--ac-line); border-radius: 11px; background: var(--ac-card); padding: 10px 14px; }
|
|
566
|
+
.p-rcard h4 { margin: 0 0 7px; font-size: var(--ac-text-md); color: var(--ac-fg); }
|
|
567
|
+
.p-rcard .fine { margin: 6px 0 0; font-size: var(--ac-text-xs); color: var(--ac-muted); line-height: var(--ac-leading); }
|
|
568
|
+
.p-recyc { display: flex; align-items: center; gap: 10px; }
|
|
569
|
+
.p-recyc .bar { flex: 1; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--ac-muted) 14%, var(--ac-card)); overflow: hidden; }
|
|
570
|
+
.p-recyc .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ac-ok), color-mix(in srgb, var(--ac-ok) 65%, var(--ac-card))); }
|
|
571
|
+
.p-recyc .pct { font-weight: 800; color: var(--ac-ok); }
|
|
572
|
+
.p-comp { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
573
|
+
.p-comp span { border: 1px solid var(--ac-line); border-radius: 9px; padding: 3px 10px; font-size: var(--ac-text-xs); color: var(--ac-muted); background: color-mix(in srgb, var(--ac-muted) 5%, var(--ac-card)); }
|
|
574
|
+
.p-comp span b { color: var(--ac-fg); }
|
|
575
|
+
.p-comp span.low { border-color: color-mix(in srgb, var(--ac-danger) 45%, var(--ac-line)); color: var(--ac-danger); background: color-mix(in srgb, var(--ac-danger) 8%, var(--ac-card)); }
|
|
576
|
+
.p-comp span.low b { color: var(--ac-danger); }
|
|
577
|
+
.p-rt { width: 100%; border-collapse: collapse; font-size: var(--ac-text-sm); }
|
|
578
|
+
.p-rt th { color: var(--ac-muted); font-weight: 500; text-align: left; padding: 3px 6px; border-bottom: 1px solid var(--ac-line); }
|
|
579
|
+
.p-rt td { padding: 4px 6px; border-bottom: 1px solid color-mix(in srgb, var(--ac-line) 55%, transparent); }
|
|
580
|
+
.p-rt td.num { font-variant-numeric: tabular-nums; }
|
|
581
|
+
.p-rt td.bad { color: var(--ac-danger); font-weight: 600; }
|
|
582
|
+
.p-report-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
|
|
583
|
+
.p-report-actions .ghost, .p-report-actions button { border: 1px solid var(--ac-line); background: var(--ac-card); color: var(--ac-fg); border-radius: var(--ac-radius-sm); padding: 4px 12px; font-size: var(--ac-text-sm); cursor: pointer; text-decoration: none; }
|
|
584
|
+
.p-report-actions .default, .p-report-actions button.default { border: 0; background: var(--ac-accent); color: var(--ac-on-primary); }
|
|
585
|
+
.p-report-actions .primary, .p-report-actions button.primary { border-color: var(--ac-primary); background: var(--ac-primary); color: var(--ac-on-primary); font-weight: 600; }
|
|
586
|
+
/* 未答完提交确认 */
|
|
587
|
+
.p-confirm { position: fixed; inset: 0; background: var(--ac-scrim); display: flex; align-items: center; justify-content: center; z-index: 40; }
|
|
588
|
+
.p-confirm-box { width: 380px; max-width: calc(100vw - 40px); background: var(--ac-card); border: 1px solid var(--ac-line); border-radius: 14px; padding: 18px 20px; box-shadow: 0 24px 60px -20px rgba(15, 22, 40, .5); }
|
|
589
|
+
.p-confirm-box h4 { margin: 0 0 8px; font-size: 15px; }
|
|
590
|
+
.p-confirm-box p { margin: 0 0 14px; font-size: var(--ac-text-sm); color: var(--ac-muted); line-height: var(--ac-leading); }
|
|
591
|
+
.p-confirm-row { display: flex; gap: 10px; justify-content: flex-end; }
|
|
592
|
+
.p-confirm-row .ghost { border: 1px solid var(--ac-line); background: var(--ac-card); color: var(--ac-fg); border-radius: var(--ac-radius-sm); padding: 5px 13px; font-size: var(--ac-text-sm); cursor: pointer; }
|
|
593
|
+
.p-confirm-row .primary { border: 1px solid var(--ac-primary); background: var(--ac-primary); color: var(--ac-on-primary); font-weight: 600; border-radius: var(--ac-radius-sm); padding: 5px 13px; font-size: var(--ac-text-sm); cursor: pointer; }
|
|
594
|
+
|
|
595
|
+
/* UI-R2: waiting indicator. The library is primitives-only (no CSS shipped),
|
|
596
|
+
so keyframes are host-side by design. AuiIf gates it on thread.isRunning. */
|
|
597
|
+
.loading { display: flex; align-items: center; gap: 8px; color: var(--ac-muted); font-size: var(--ac-text-sm); padding: 6px 2px 2px; }
|
|
598
|
+
.dots { display: inline-flex; gap: 4px; }
|
|
599
|
+
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ac-primary); animation: aui-bounce 1.2s infinite ease-in-out; }
|
|
600
|
+
.dots i:nth-child(2) { animation-delay: .16s; }
|
|
601
|
+
.dots i:nth-child(3) { animation-delay: .32s; }
|
|
602
|
+
@keyframes aui-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
|
|
603
|
+
.msg-time { font-size: 11px; color: var(--ac-muted); margin-top: 2px; }
|
|
604
|
+
.msg-ttft { margin-left: 6px; }
|
|
605
|
+
.msg.user .msg-time { text-align: right; }
|
|
606
|
+
|
|
607
|
+
/* Essay editor (business 2): editor on the left, embedded pure chat on the right */
|
|
608
|
+
.essay { display: flex; flex-direction: column; gap: var(--ac-gap); padding: 14px; height: 100%; min-height: 0; }
|
|
609
|
+
.essay-edit { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; }
|
|
610
|
+
.essay-edit h2 { margin: 0; font-size: 16px; }
|
|
611
|
+
.essay-note { margin: 0; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
612
|
+
.essay-row { display: flex; align-items: center; gap: 8px; font-size: var(--ac-text-sm); color: var(--ac-muted); }
|
|
613
|
+
.essay-row select { flex: 1; }
|
|
614
|
+
.essay-topic { border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 6px 8px; font: inherit; background: var(--ac-bg); color: var(--ac-fg); }
|
|
615
|
+
.essay-field { display: flex; flex-direction: column; gap: 4px; }
|
|
616
|
+
.essay-label { font-size: var(--ac-text-sm); display: flex; justify-content: space-between; color: var(--ac-muted); }
|
|
617
|
+
.essay-field textarea { border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 8px; font: inherit; background: var(--ac-bg); color: var(--ac-fg); resize: vertical; }
|
|
618
|
+
.wc { font-size: var(--ac-text-xs); } .wc.ok { color: var(--ac-ok); } .wc.warn { color: var(--ac-danger); }
|
|
619
|
+
.essay-actions { display: flex; align-items: center; gap: 8px; }
|
|
620
|
+
.essay-actions button { border: 0; border-radius: var(--ac-radius-sm); padding: 6px 14px; cursor: pointer; background: var(--ac-primary); color: var(--ac-on-primary); }
|
|
621
|
+
.essay-actions .default { background: var(--ac-accent); margin-left: auto; }
|
|
622
|
+
/* 主次分明(2026-11-04):本页主 CTA 是「请默认助手评阅」,保存草稿降为次级描边钮 */
|
|
623
|
+
.essay-actions .save { background: transparent; border: 1px solid var(--ac-line); color: var(--ac-fg); }
|
|
624
|
+
.essay-actions .save:hover { border-color: var(--ac-primary); color: var(--ac-primary); }
|
|
625
|
+
.essay-actions button:disabled { opacity: .5; cursor: default; }
|
|
626
|
+
.essay-saved { font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
627
|
+
|
|
628
|
+
/* Case analysis (business V2): subjective items, rubric revealed after submit */
|
|
629
|
+
.case { display: flex; flex-direction: column; gap: var(--ac-gap); padding: 14px; height: 100%; min-height: 0; }
|
|
630
|
+
.case-edit { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; }
|
|
631
|
+
.case-edit h2 { margin: 0; font-size: 16px; }
|
|
632
|
+
.case-note { margin: 0; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
633
|
+
.case-row { display: flex; align-items: center; gap: 8px; font-size: var(--ac-text-sm); color: var(--ac-muted); }
|
|
634
|
+
.case-row select { flex: 1; }
|
|
635
|
+
.case-stem { margin: 0; line-height: 1.7; }
|
|
636
|
+
.case-passage { margin: 0; font-size: var(--ac-text-sm); color: var(--ac-muted); border-left: 3px solid var(--ac-line); padding-left: 10px; }
|
|
637
|
+
.case-q { border: 1px solid var(--ac-line); border-radius: 12px; padding: 12px 14px; background: var(--ac-card); display: flex; flex-direction: column; gap: 8px; }
|
|
638
|
+
.case-prompt { margin: 0; font-weight: 600; }
|
|
639
|
+
.case-q textarea { border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 8px; font: inherit; background: var(--ac-bg); color: var(--ac-fg); resize: vertical; }
|
|
640
|
+
/* Code answers (V3): monospace + no soft wrap so indentation survives */
|
|
641
|
+
.case-q textarea.case-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: var(--ac-text-sm); line-height: 1.5; white-space: pre; overflow-x: auto; tab-size: 4; }
|
|
642
|
+
.case-ref { margin: 0 0 8px; padding: 10px 12px; border-radius: var(--ac-radius-sm); background: var(--ac-bg); border: 1px solid var(--ac-line); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: var(--ac-text-sm); line-height: 1.5; overflow-x: auto; white-space: pre; }
|
|
643
|
+
.case-actions { display: flex; align-items: center; gap: 8px; }
|
|
644
|
+
.case-actions button { border: 0; border-radius: var(--ac-radius-sm); padding: 6px 14px; cursor: pointer; background: var(--ac-primary); color: var(--ac-on-primary); }
|
|
645
|
+
.case-actions .default { background: var(--ac-accent); margin-left: auto; }
|
|
646
|
+
.case-actions button:disabled { opacity: .5; cursor: default; }
|
|
647
|
+
.case-wc { font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
648
|
+
.case-points { border-top: 1px dashed var(--ac-line); padding-top: 8px; font-size: var(--ac-text-sm); }
|
|
649
|
+
.case-points-h { font-weight: 600; margin-bottom: 4px; }
|
|
650
|
+
.case-points ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
|
|
651
|
+
.case-source { margin-top: 6px; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
652
|
+
.case-error { color: var(--ac-danger); font-size: var(--ac-text-sm); }
|
|
653
|
+
.case-loading, .case-empty { color: var(--ac-muted); font-size: var(--ac-text-sm); }
|
|
654
|
+
|
|
655
|
+
/* Wrong book (business 3): last-attempt-wrong list with reveal-able analysis */
|
|
656
|
+
.wrong { overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
|
|
657
|
+
.wrong h2 { margin: 0; font-size: 16px; }
|
|
658
|
+
.wrong-count, .wrong-empty { color: var(--ac-muted); font-size: var(--ac-text-sm); margin: 0; }
|
|
659
|
+
.wrong-count select { margin-left: 8px; font-size: var(--ac-text-sm); }
|
|
660
|
+
/* 「重练这批」:列表头部的动作,别做成按钮墙——下划线是链接,悬停变实线。 */
|
|
661
|
+
.w-batch { margin-left: 10px; color: var(--ac-primary); font-size: var(--ac-text-sm); text-decoration: none; border-bottom: 1px dashed currentColor; }
|
|
662
|
+
.w-batch:hover { border-bottom-style: solid; }
|
|
663
|
+
.w-item { border: 1px solid var(--ac-line); border-radius: 12px; padding: 12px 14px; background: var(--ac-card); display: flex; flex-direction: column; gap: 8px; }
|
|
664
|
+
.w-item header { display: flex; justify-content: space-between; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
665
|
+
.w-stem { margin: 0; font-weight: 600; }
|
|
666
|
+
.w-options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: var(--ac-text-md); }
|
|
667
|
+
.w-opt { padding: 4px 8px; border-radius: var(--ac-radius-sm); }
|
|
668
|
+
.w-opt.right { background: color-mix(in srgb, var(--ac-ok) 12%, transparent); }
|
|
669
|
+
.w-opt.wrong { background: color-mix(in srgb, var(--ac-danger) 12%, transparent); }
|
|
670
|
+
.w-tag { font-size: 11px; margin-left: 8px; padding: 1px 6px; border-radius: 6px; background: var(--ac-line); }
|
|
671
|
+
.w-toggle { align-self: flex-start; border: 1px solid var(--ac-line); background: transparent; color: var(--ac-primary); border-radius: var(--ac-radius-sm); padding: 4px 10px; font-size: var(--ac-text-sm); cursor: pointer; }
|
|
672
|
+
.w-explain { border-top: 1px dashed var(--ac-line); padding-top: 8px; font-size: var(--ac-text-md); }
|
|
673
|
+
.w-explain p { margin: 0 0 6px; white-space: pre-wrap; }
|
|
674
|
+
.w-source { color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
675
|
+
/* B2 retry: answer again from the wrong book without a new endpoint. */
|
|
676
|
+
.w-notice { margin: 0; font-size: var(--ac-text-sm); color: var(--ac-ok); background: color-mix(in srgb, var(--ac-ok) 10%, var(--ac-card)); border: 1px solid color-mix(in srgb, var(--ac-ok) 35%, var(--ac-card)); border-radius: var(--ac-radius-sm); padding: 6px 10px; }
|
|
677
|
+
.w-retry-opts { display: flex; flex-direction: column; gap: 4px; font-size: var(--ac-text-md); }
|
|
678
|
+
.w-retry-opt { text-align: left; padding: 6px 10px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); background: transparent; color: inherit; cursor: pointer; font-size: var(--ac-text-md); line-height: 1.5; }
|
|
679
|
+
.w-retry-opt:hover { border-color: var(--ac-primary); }
|
|
680
|
+
.w-verdict { margin: 0; font-size: var(--ac-text-sm); line-height: var(--ac-leading); border-radius: var(--ac-radius-sm); padding: 6px 10px; }
|
|
681
|
+
.w-verdict.right { background: color-mix(in srgb, var(--ac-ok) 12%, transparent); color: var(--ac-ok); }
|
|
682
|
+
.w-verdict.wrong { background: color-mix(in srgb, var(--ac-danger) 12%, transparent); color: var(--ac-danger); }
|
|
683
|
+
.w-actions { display: flex; gap: 8px; }
|
|
684
|
+
/* V8:错题行加作答来源徽章(练习错/重练错/模考错) */
|
|
685
|
+
.w-src { padding: 0 5px; margin-right: 6px; border-radius: 5px; background: var(--ac-line); color: var(--ac-fg); }
|
|
686
|
+
|
|
687
|
+
/* Learning record (V8): 读数页——四个 tab 共一份作答史,概览/错题/收藏/历史 */
|
|
688
|
+
.record { overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
|
|
689
|
+
.r-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
|
|
690
|
+
.r-head h2 { margin: 0; font-size: 16px; }
|
|
691
|
+
.r-sub { margin: 0; flex: 1; min-width: 220px; color: var(--ac-muted); font-size: var(--ac-text-sm); }
|
|
692
|
+
.r-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ac-line); }
|
|
693
|
+
.r-tab { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ac-muted); padding: 6px 12px; font-size: var(--ac-text-md); cursor: pointer; }
|
|
694
|
+
.r-tab.on { color: var(--ac-primary); border-bottom-color: var(--ac-primary); }
|
|
695
|
+
.r-n { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--ac-line); color: var(--ac-fg); font-size: 11px; }
|
|
696
|
+
.r-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
|
|
697
|
+
.r-card { border: 1px solid var(--ac-line); border-radius: 12px; background: var(--ac-card); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
|
|
698
|
+
.r-num { font-size: 24px; font-weight: 700; line-height: 1.1; }
|
|
699
|
+
.r-label { color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
700
|
+
.r-sec h3 { margin: 6px 0; font-size: 14px; }
|
|
701
|
+
.r-note { margin: 0 0 6px; color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
702
|
+
.r-empty { margin: 0; color: var(--ac-muted); font-size: var(--ac-text-sm); }
|
|
703
|
+
.r-table { width: 100%; border-collapse: collapse; font-size: var(--ac-text-sm); }
|
|
704
|
+
.r-table th, .r-table td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--ac-line); }
|
|
705
|
+
.r-table th { color: var(--ac-muted); font-size: var(--ac-text-xs); font-weight: 500; }
|
|
706
|
+
.r-row { cursor: pointer; }
|
|
707
|
+
.r-row:hover { background: var(--ac-bg); }
|
|
708
|
+
/* 薄弱主题:左侧红条(阈值:错题 ≥2 且正确率 <60%) */
|
|
709
|
+
.r-row.weak td:first-child { box-shadow: inset 3px 0 0 var(--ac-danger); }
|
|
710
|
+
.r-topic { font-weight: 500; }
|
|
711
|
+
.r-at { color: var(--ac-muted); font-size: var(--ac-text-xs); white-space: nowrap; }
|
|
712
|
+
/* 「练这个主题」:行点击是"看错题",这个按钮才是"去练"。 */
|
|
713
|
+
.r-drill { text-align: right; white-space: nowrap; }
|
|
714
|
+
.r-godrill { border: 1px solid var(--ac-line); background: transparent; color: var(--ac-primary); border-radius: 999px; padding: 1px 9px; font-size: var(--ac-text-xs); cursor: pointer; }
|
|
715
|
+
.r-godrill:hover { border-color: var(--ac-primary); background: color-mix(in srgb, var(--ac-primary) 10%, transparent); }
|
|
716
|
+
.r-bars { width: 100%; height: 60px; display: block; }
|
|
717
|
+
.r-bar-axis { stroke: var(--ac-line); stroke-width: 1; }
|
|
718
|
+
.r-bar-ok { fill: color-mix(in srgb, var(--ac-ok) 70%, transparent); }
|
|
719
|
+
.r-bar-bad { fill: color-mix(in srgb, var(--ac-danger) 70%, transparent); }
|
|
720
|
+
.r-hand { display: flex; justify-content: flex-end; }
|
|
721
|
+
.r-hand .default { border: 0; border-radius: var(--ac-radius-sm); padding: 6px 14px; cursor: pointer; background: var(--ac-accent); color: var(--ac-on-primary); }
|
|
722
|
+
.r-hand .default:disabled { opacity: .5; cursor: default; }
|
|
723
|
+
/* ⑥ 示例态:横幅常驻(琥珀 = 提醒不是错误),写动作拦截用底部 toast。 */
|
|
724
|
+
.r-demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; padding: 9px 14px; border: 1px solid color-mix(in srgb, var(--ac-warn) 45%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--ac-warn) 12%, var(--ac-card)); color: var(--ac-fg); font-size: var(--ac-text-sm); }
|
|
725
|
+
.r-demo-bar b { color: color-mix(in srgb, var(--ac-warn) 80%, var(--ac-fg)); }
|
|
726
|
+
.r-demo-bar .r-demo-why { color: var(--ac-muted); font-size: var(--ac-text-xs); flex: 1; min-width: 200px; }
|
|
727
|
+
.r-demo-bar button, .r-demo-bar a { border: 1px solid color-mix(in srgb, var(--ac-warn) 45%, transparent); border-radius: var(--ac-radius-sm); padding: 4px 12px; cursor: pointer; background: var(--ac-card); color: var(--ac-fg); text-decoration: none; font-size: var(--ac-text-xs); }
|
|
728
|
+
.r-demo-bar a { background: var(--ac-accent); border-color: var(--ac-accent); color: var(--ac-on-primary); }
|
|
729
|
+
.r-toast { position: sticky; bottom: 18px; align-self: center; margin: 12px auto 0; max-width: 60ch; padding: 8px 16px; border-radius: 10px; background: var(--ac-fg); color: var(--ac-bg); font-size: var(--ac-text-sm); z-index: 5; }
|
|
730
|
+
.r-exams, .r-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
|
|
731
|
+
.r-exam { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border: 1px solid var(--ac-line); border-radius: 12px; background: var(--ac-card); padding: 10px 12px; }
|
|
732
|
+
.r-exam .pap-title { flex: 1; min-width: 160px; }
|
|
733
|
+
.r-item { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--ac-line); border-radius: 12px; background: var(--ac-card); padding: 10px 12px; }
|
|
734
|
+
.r-item header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
735
|
+
.r-stem { margin: 0; }
|
|
736
|
+
.r-score { font-weight: 600; }
|
|
737
|
+
.r-verdict { padding: 1px 8px; border-radius: 999px; background: var(--ac-line); font-size: var(--ac-text-xs); }
|
|
738
|
+
.r-verdict.ok { color: var(--ac-ok); background: color-mix(in srgb, var(--ac-ok) 12%, transparent); }
|
|
739
|
+
.r-verdict.bad { color: var(--ac-danger); background: color-mix(in srgb, var(--ac-danger) 12%, transparent); }
|
|
740
|
+
.r-actions { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
741
|
+
.r-actions .w-toggle { text-decoration: none; display: inline-block; }
|
|
742
|
+
.r-src { padding: 0 6px; border-radius: 6px; background: var(--ac-line); color: var(--ac-fg); }
|
|
743
|
+
.r-ok { color: var(--ac-ok); }
|
|
744
|
+
.r-bad { color: var(--ac-danger); }
|
|
745
|
+
/* V6b/V8b: 本机来源标记 + 收藏笔记 */
|
|
746
|
+
.r-local { padding: 0 6px; border-radius: 6px; border: 1px dashed var(--ac-line); color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
747
|
+
.r-fav-note { margin: 0; padding: 6px 10px; border-left: 3px solid var(--ac-accent); background: color-mix(in srgb, var(--ac-accent) 8%, transparent); border-radius: 0 8px 8px 0; white-space: pre-wrap; }
|
|
748
|
+
.r-note-edit { display: flex; flex-direction: column; gap: 6px; }
|
|
749
|
+
.r-note-input { width: 100%; box-sizing: border-box; resize: vertical; padding: 8px 10px; border: 1px solid var(--ac-line); border-radius: 8px; background: var(--ac-bg); color: var(--ac-fg); font: inherit; }
|
|
750
|
+
.r-note-input:focus-visible { outline: 2px solid var(--ac-accent); outline-offset: 1px; }
|
|
751
|
+
|
|
752
|
+
/* Question bank (V7): read-only index + sticky detail; no attempts, no writes */
|
|
753
|
+
.bank { display: flex; flex-direction: column; min-height: 0; flex: 1; padding: 16px 20px 0; gap: 10px; }
|
|
754
|
+
.b-head h2 { margin: 0; font-size: 16px; }
|
|
755
|
+
.b-sub { margin: 0; color: var(--ac-muted); font-size: var(--ac-text-sm); }
|
|
756
|
+
.b-legend { margin: 0; color: var(--ac-muted); font-size: var(--ac-text-xs, 12px); opacity: 0.85; }
|
|
757
|
+
.b-q { width: min(420px, 100%); border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 7px 10px; font-size: var(--ac-text-md); background: var(--ac-card); color: inherit; }
|
|
758
|
+
.b-q:focus { outline: 2px solid color-mix(in srgb, var(--ac-primary) 55%, transparent); outline-offset: 1px; }
|
|
759
|
+
.b-chips { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
760
|
+
.b-chip { border: 1px solid var(--ac-line); background: transparent; color: inherit; border-radius: 999px; padding: 3px 10px; font-size: var(--ac-text-sm); cursor: pointer; }
|
|
761
|
+
.b-chip.on { border-color: var(--ac-primary); background: color-mix(in srgb, var(--ac-primary) 12%, transparent); color: var(--ac-primary); }
|
|
762
|
+
.b-chip .b-n { margin-left: 5px; color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
763
|
+
.b-chip.on .b-n { color: var(--ac-primary); }
|
|
764
|
+
.b-topics { max-height: 84px; overflow-y: auto; }
|
|
765
|
+
.b-count { margin: 0; color: var(--ac-muted); font-size: var(--ac-text-sm); }
|
|
766
|
+
.b-empty { color: var(--ac-muted); font-size: var(--ac-text-sm); margin: 0; }
|
|
767
|
+
.b-main { display: flex; gap: 14px; min-height: 0; flex: 1; }
|
|
768
|
+
.b-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; min-width: 0; }
|
|
769
|
+
/* 一行 = 可点的题目主体 + 一条标签行(加标签要一个输入框,不能塞进按钮里)。 */
|
|
770
|
+
.b-row { display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--ac-line); border-left: 3px solid transparent; border-radius: var(--ac-radius-sm); background: var(--ac-card); padding: 8px 10px; font-size: var(--ac-text-md); line-height: var(--ac-leading); }
|
|
771
|
+
.b-row:hover { border-color: var(--ac-primary); }
|
|
772
|
+
.b-row.on { border-left-color: var(--ac-primary); background: color-mix(in srgb, var(--ac-primary) 7%, var(--ac-card)); }
|
|
773
|
+
.b-hit { text-align: left; display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "kind exam stem" "kind exam topic"; column-gap: 6px; row-gap: 2px; border: 0; background: transparent; color: inherit; padding: 0; cursor: pointer; font: inherit; }
|
|
774
|
+
.b-hit .b-kind { grid-area: kind; }
|
|
775
|
+
.b-hit .b-exam { grid-area: exam; }
|
|
776
|
+
.b-hit .b-topic { grid-area: topic; }
|
|
777
|
+
.b-stem { grid-area: stem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
778
|
+
.b-topic { color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
779
|
+
/* 行内/详情标签可点选筛选(2026-11 用户多选):pill 化 + 选中态与 chip 一致 */
|
|
780
|
+
.b-tag { cursor: pointer; }
|
|
781
|
+
.b-topic.b-tag { align-self: center; justify-self: start; border: 1px solid var(--ac-line); border-radius: 999px; padding: 0 8px; }
|
|
782
|
+
.b-tag:hover { border-color: var(--ac-primary); color: var(--ac-primary); }
|
|
783
|
+
.b-kind.b-tag { border: 1px solid transparent; }
|
|
784
|
+
.b-tag.on { border-color: var(--ac-primary); color: var(--ac-primary); background: color-mix(in srgb, var(--ac-primary) 12%, transparent); }
|
|
785
|
+
.b-kind { align-self: start; font-size: 11px; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
|
|
786
|
+
/* 场次徽标:中性色,不跟题性/主题抢注意力。 */
|
|
787
|
+
.b-exam { align-self: start; font-size: 11px; border-radius: 6px; padding: 1px 6px; white-space: nowrap; border: 1px solid var(--ac-line); color: var(--ac-muted); cursor: pointer; }
|
|
788
|
+
.b-exam:hover { border-color: var(--ac-primary); color: var(--ac-primary); }
|
|
789
|
+
/* 标签轴:药丸 + 行内输入。我的标签带「×」,基线标签不带。 */
|
|
790
|
+
.b-rowtags, .b-detailtags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
|
|
791
|
+
.b-tagchip { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--ac-line); border-radius: 999px; padding: 0 8px; font-size: var(--ac-text-xs); color: var(--ac-muted); cursor: pointer; }
|
|
792
|
+
.b-tagchip:hover { border-color: var(--ac-primary); color: var(--ac-primary); }
|
|
793
|
+
.b-tagchip.on { border-color: var(--ac-primary); color: var(--ac-primary); background: color-mix(in srgb, var(--ac-primary) 12%, transparent); }
|
|
794
|
+
/* 基线标签的 × 只在 hover 时露出来:误标要能纠正,但不该鼓励随手删掉规则派生的结果。
|
|
795
|
+
我自己加的标签(.mine)的 × 常驻——那是我的东西,一眼就该看到能删。 */
|
|
796
|
+
.b-tagx { font-weight: 400; opacity: .65; padding: 0 1px; }
|
|
797
|
+
.b-tagchip:not(.mine) .b-tagx { opacity: 0; }
|
|
798
|
+
.b-tagchip:not(.mine):hover .b-tagx, .b-tagchip:not(.mine):focus-within .b-tagx { opacity: .65; }
|
|
799
|
+
.b-tagx:hover { opacity: 1; color: var(--ac-danger); }
|
|
800
|
+
/* 被我隐藏的基线标签:留在原位、虚化、带 ↺,点一下恢复(删得掉也撤得回)。 */
|
|
801
|
+
.b-tagchip.hidden { border-style: dashed; opacity: .55; text-decoration: line-through; }
|
|
802
|
+
.b-tagchip.hidden:hover { opacity: 1; border-color: var(--ac-primary); color: var(--ac-primary); }
|
|
803
|
+
.b-tagrestore { font-weight: 400; font-size: var(--ac-text-xs); text-decoration: none; }
|
|
804
|
+
.b-tagadd { width: 78px; border: 1px dashed var(--ac-line); border-radius: 999px; background: transparent; color: inherit; padding: 1px 8px; font-size: var(--ac-text-xs); }
|
|
805
|
+
.b-tagadd:focus { width: 140px; border-style: solid; border-color: var(--ac-primary); outline: none; }
|
|
806
|
+
.b-tagerr { margin: 0; color: var(--ac-danger); font-size: var(--ac-text-xs); }
|
|
807
|
+
.b-quasi { background: color-mix(in srgb, var(--ac-accent) 18%, transparent); color: var(--ac-accent); }
|
|
808
|
+
.b-sim { background: var(--ac-line); color: var(--ac-muted); }
|
|
809
|
+
.b-real { background: color-mix(in srgb, var(--ac-ok) 16%, transparent); color: var(--ac-ok); }
|
|
810
|
+
.b-clear { border: 0; background: transparent; color: var(--ac-primary); cursor: pointer; margin-left: 8px; font-size: var(--ac-text-sm); }
|
|
811
|
+
.b-detail { width: min(420px, 45%); overflow-y: auto; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); background: var(--ac-card); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
|
|
812
|
+
.b-detail header { display: flex; align-items: center; gap: 8px; }
|
|
813
|
+
.b-close { margin-left: auto; border: 0; background: transparent; color: var(--ac-muted); cursor: pointer; font-size: 14px; }
|
|
814
|
+
.b-stem-full { margin: 0; font-weight: 600; line-height: var(--ac-leading); white-space: pre-wrap; }
|
|
815
|
+
.b-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: var(--ac-text-md); }
|
|
816
|
+
.b-answer { border-top: 1px dashed var(--ac-line); padding-top: 8px; font-size: var(--ac-text-md); }
|
|
817
|
+
.b-answer p { margin: 0 0 6px; white-space: pre-wrap; }
|
|
818
|
+
.b-source { color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
819
|
+
/* 编辑备注(答案分歧/待复核):admin 详情才有。文字用正文色而不是 --ac-warn——
|
|
820
|
+
浅色主题的 warn 是 #e0a44a,12px 正文配白底只有 ~2:1,看不清;警示感交给左边条和淡底。 */
|
|
821
|
+
.b-note {
|
|
822
|
+
color: var(--ac-fg);
|
|
823
|
+
font-size: var(--ac-text-xs);
|
|
824
|
+
border-left: 2px solid var(--ac-warn);
|
|
825
|
+
background: color-mix(in srgb, var(--ac-warn) 10%, transparent);
|
|
826
|
+
border-radius: var(--ac-radius-sm);
|
|
827
|
+
padding: 6px 8px;
|
|
828
|
+
}
|
|
829
|
+
.b-reveal { align-self: flex-start; border: 1px solid var(--ac-primary); background: transparent; color: var(--ac-primary); border-radius: var(--ac-radius-sm); padding: 5px 12px; font-size: var(--ac-text-sm); cursor: pointer; }
|
|
830
|
+
.b-actions { display: flex; gap: 8px; margin-top: auto; }
|
|
831
|
+
.b-do { border: 0; border-radius: var(--ac-radius-sm); background: var(--ac-primary); color: var(--ac-on-primary); padding: 5px 14px; font-size: var(--ac-text-sm); cursor: pointer; }
|
|
832
|
+
.b-actions .ghost { border: 1px solid var(--ac-line); background: transparent; color: inherit; border-radius: var(--ac-radius-sm); padding: 5px 10px; font-size: var(--ac-text-sm); cursor: pointer; }
|
|
833
|
+
@media (max-width: 1179px) {
|
|
834
|
+
.bank.has-sel .b-list { display: none; }
|
|
835
|
+
.b-detail { position: fixed; inset: 0; width: auto; z-index: 40; border-radius: 0; max-width: none; }
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
/* Pricing (business 4): balance, plans, mock checkout, ledger */
|
|
839
|
+
.pricing { overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: var(--ac-gap); max-width: var(--ac-chat-max); }
|
|
840
|
+
.pricing h2 { margin: 0; font-size: 16px; }
|
|
841
|
+
.pricing h3 { margin: 8px 0 0; font-size: var(--ac-text-md); }
|
|
842
|
+
.balance { font-size: var(--ac-text); }
|
|
843
|
+
.balance b { font-size: 20px; }
|
|
844
|
+
.bal-warn { color: var(--ac-danger); font-size: var(--ac-text-xs); margin-left: 6px; }
|
|
845
|
+
.plans { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
|
|
846
|
+
.plan { border: 1px solid var(--ac-primary); color: var(--ac-primary); background: transparent; border-radius: var(--ac-radius); padding: 8px 18px; font-size: var(--ac-text-md); cursor: pointer; }
|
|
847
|
+
.plan:disabled { opacity: .5; cursor: default; }
|
|
848
|
+
.custom input { width: 90px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 7px 8px; font-size: var(--ac-text-md); }
|
|
849
|
+
.pay-msg { margin: 0; font-size: var(--ac-text-sm); color: var(--ac-primary); }
|
|
850
|
+
.pay-note { margin: 0; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
851
|
+
/* 按产品分开卖——每张卡一个套餐,价格与权益数字都来自 /api/billing 的 plans */
|
|
852
|
+
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
|
|
853
|
+
.plan-card { border: 1px solid var(--ac-line); border-radius: var(--ac-radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: var(--ac-text-sm); }
|
|
854
|
+
.pc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
|
|
855
|
+
.pc-head b { font-size: var(--ac-text-md); }
|
|
856
|
+
.pc-price { color: var(--ac-primary); font-size: var(--ac-text-md); }
|
|
857
|
+
.pc-price em { font-style: normal; color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
858
|
+
.pc-benefits { margin: 0; padding-left: 18px; color: var(--ac-muted); font-size: var(--ac-text-xs); display: flex; flex-direction: column; gap: 2px; }
|
|
859
|
+
.pc-status { color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
860
|
+
.plan-card .plan { align-self: flex-start; margin-top: auto; }
|
|
861
|
+
/* 会员权益卡(池与余额分列,池内免余额) */
|
|
862
|
+
.member-card { border: 1px solid var(--ac-primary); border-radius: var(--ac-radius); padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; font-size: var(--ac-text-sm); }
|
|
863
|
+
/* 免费版也占同一张卡(弱边框):会员体系是「当前档位」而不是「有会员才有 UI」 */
|
|
864
|
+
.member-card.free { border-color: var(--ac-line); }
|
|
865
|
+
.mc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
|
|
866
|
+
.mc-head b { font-size: var(--ac-text-md); }
|
|
867
|
+
.mc-note { color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
868
|
+
.mc-pool-num { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
|
|
869
|
+
.mc-pool-num em { font-style: normal; color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
870
|
+
.pool-bar { height: 6px; border-radius: 3px; background: var(--ac-line); overflow: hidden; }
|
|
871
|
+
.pool-bar span { display: block; height: 100%; background: var(--ac-primary); }
|
|
872
|
+
.mc-nums { color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
873
|
+
/* C 权限管理页:ghost 按钮=行内轻操作;矩阵描述列弱化 */
|
|
874
|
+
.plan.ghost { border-color: var(--ac-line); color: var(--ac-muted); padding: 4px 12px; font-size: var(--ac-text-xs); }
|
|
875
|
+
.admin input { border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 7px 8px; font-size: var(--ac-text-md); }
|
|
876
|
+
.admin input[type="number"] { width: 70px; }
|
|
877
|
+
.adm-desc { color: var(--ac-muted); font-size: var(--ac-text-xs); max-width: 360px; }
|
|
878
|
+
.ledger { border-collapse: collapse; font-size: var(--ac-text-sm); width: 100%; }
|
|
879
|
+
.ledger th, .ledger td { text-align: left; padding: 5px 10px; border-bottom: 1px solid var(--ac-line); }
|
|
880
|
+
.ledger th { color: var(--ac-muted); font-weight: 500; }
|
|
881
|
+
/* 表格里的 ghost 按钮别折行:「处理」被挤成竖排两个字,看着像坏掉(截图发现)。 */
|
|
882
|
+
.ledger td .plan { white-space: nowrap; }
|
|
883
|
+
.ledger .plus { color: var(--ac-ok); }
|
|
884
|
+
.ledger .minus { color: var(--ac-danger); }
|
|
885
|
+
|
|
886
|
+
/* ---------- 操作审计页 ---------- */
|
|
887
|
+
.audit .ledger tr { cursor: pointer; }
|
|
888
|
+
.audit .ledger tr:hover td { background: color-mix(in srgb, var(--ac-primary) 5%, transparent); }
|
|
889
|
+
.audit .ledger tr.aud-sel td { background: color-mix(in srgb, var(--ac-primary) 9%, var(--ac-card)); }
|
|
890
|
+
.aud-banner { margin: 0 0 10px; padding: 7px 12px; border: 1px solid var(--ac-line); border-left: 4px solid var(--ac-ok); border-radius: var(--ac-radius-sm); background: var(--ac-card); font-size: var(--ac-text-sm); }
|
|
891
|
+
.aud-banner.bad { border-left-color: var(--ac-danger); }
|
|
892
|
+
.aud-banner.ok { color: var(--ac-ok); }
|
|
893
|
+
.aud-banner.bad { color: var(--ac-danger); }
|
|
894
|
+
.aud-banner-hint { color: var(--ac-muted); font-size: var(--ac-text-xs); margin-left: 8px; }
|
|
895
|
+
.aud-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; border: 1px solid var(--ac-line); border-radius: 12px; background: var(--ac-card); padding: 8px 12px; margin-bottom: 8px; }
|
|
896
|
+
.aud-fl { display: flex; flex-direction: column; gap: 3px; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
897
|
+
.aud-fl input, .aud-fl select { font: inherit; color: var(--ac-fg); background: var(--ac-bg); border: 1px solid var(--ac-line); border-radius: 6px; padding: 4px 8px; min-width: 120px; }
|
|
898
|
+
.aud-clear { border: 0; background: transparent; color: var(--ac-muted); font-size: var(--ac-text-xs); cursor: pointer; text-decoration: underline; }
|
|
899
|
+
|
|
900
|
+
/* ---------- ⑦ A 轴 复习调度配置面(管理端「复习调度」tab) ---------- */
|
|
901
|
+
.rs-panel h3 { margin: 12px 0 4px; font-size: var(--ac-text-md); }
|
|
902
|
+
.rs-panel h4 { margin: 14px 0 6px; font-size: var(--ac-text-sm); color: var(--ac-muted); }
|
|
903
|
+
.rs-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--ac-text-sm); }
|
|
904
|
+
.rs-row input[type="checkbox"] { padding: 0; }
|
|
905
|
+
.rs-row select { border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 5px 8px; font: inherit; color: var(--ac-fg); background: var(--ac-bg); }
|
|
906
|
+
.rs-table { border-collapse: collapse; width: 100%; font-size: var(--ac-text-sm); }
|
|
907
|
+
.rs-table th, .rs-table td { text-align: left; padding: 5px 10px; border-bottom: 1px solid var(--ac-line); }
|
|
908
|
+
.rs-table th { color: var(--ac-muted); font-weight: 500; }
|
|
909
|
+
.aud-time { white-space: nowrap; color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
910
|
+
.aud-ns { display: inline-block; font-family: ui-monospace, monospace; font-size: 10px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--ac-line); margin-right: 6px; }
|
|
911
|
+
.aud-ns.ns-auth { color: var(--ac-warn); border-color: var(--ac-warn); }
|
|
912
|
+
.aud-ns.ns-admin { color: var(--ac-accent); border-color: var(--ac-accent); }
|
|
913
|
+
.aud-ns.ns-funds { color: var(--ac-primary); border-color: var(--ac-primary); }
|
|
914
|
+
.aud-ns.ns-run, .aud-ns.ns-biz { color: var(--ac-muted); }
|
|
915
|
+
.aud-ns.ns-audit, .aud-ns.ns-ops { color: var(--ac-ok); border-color: var(--ac-ok); }
|
|
916
|
+
.aud-alias { font-weight: 600; }
|
|
917
|
+
.aud-code { display: block; font-family: ui-monospace, monospace; font-size: 10px; color: var(--ac-muted); }
|
|
918
|
+
.aud-unreg { font-family: ui-monospace, monospace; font-size: 10px; color: var(--ac-muted); border: 1px dashed var(--ac-line); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
|
|
919
|
+
.aud-roles { display: block; font-family: ui-monospace, monospace; font-size: 10px; color: var(--ac-muted); }
|
|
920
|
+
.aud-res.res-ok { color: var(--ac-ok); font-weight: 650; }
|
|
921
|
+
.aud-res.res-denied { color: var(--ac-warn); font-weight: 650; }
|
|
922
|
+
.aud-res.res-error { color: var(--ac-danger); font-weight: 650; }
|
|
923
|
+
.aud-sum { font-size: var(--ac-text-xs); max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
924
|
+
/* 原始堆栈/本地路径铺满说明列很难看(2026-11-04):列内截断,全文进 title 与详情抽屉 */
|
|
925
|
+
.aud-pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
|
|
926
|
+
.aud-pg { min-width: 28px; text-align: center; border: 1px solid var(--ac-line); background: var(--ac-card); color: var(--ac-fg); border-radius: 6px; padding: 2px 0; font-size: var(--ac-text-sm); cursor: pointer; }
|
|
927
|
+
.aud-pg.on { background: var(--ac-primary); border-color: var(--ac-primary); color: var(--ac-on-primary); font-weight: 650; }
|
|
928
|
+
.aud-mask { position: fixed; inset: 0; background: var(--ac-scrim); z-index: var(--ac-z-drawer); }
|
|
929
|
+
.aud-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: var(--ac-drawer-w); background: var(--ac-card); border-left: 1px solid var(--ac-line); box-shadow: -8px 0 28px rgb(0 0 0 / 22%); z-index: var(--ac-z-drawer-panel); padding: 14px 18px 24px; overflow: auto; }
|
|
930
|
+
.aud-drawer header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
|
|
931
|
+
.aud-drawer header h3 { margin: 0; font-size: var(--ac-text-md); }
|
|
932
|
+
.aud-drawer header .b-close { margin-left: auto; }
|
|
933
|
+
.aud-drawer h4 { margin: 16px 0 4px; font-size: var(--ac-text-xs); letter-spacing: .06em; color: var(--ac-muted); text-transform: uppercase; font-weight: 500; }
|
|
934
|
+
.aud-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: var(--ac-text-sm); }
|
|
935
|
+
.aud-kv dt { color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
936
|
+
.aud-kv dd { margin: 0; overflow-wrap: anywhere; }
|
|
937
|
+
.aud-meta { margin: 0; padding: 8px 10px; border-radius: var(--ac-radius-sm); background: var(--ac-bg); border: 1px solid var(--ac-line); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: auto; }
|
|
938
|
+
.aud-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: var(--ac-z-modal); display: flex; flex-direction: column; gap: 10px; }
|
|
939
|
+
/* 消费去向(B4/B5):标题行右侧放窗口选择与合计,图表固定高度避免撑爆页面 */
|
|
940
|
+
.pricing h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
941
|
+
.pricing h3 select { border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); background: transparent; color: inherit; padding: 3px 6px; font-size: var(--ac-text-xs); }
|
|
942
|
+
.usage-total { color: var(--ac-muted); font-weight: 400; font-size: var(--ac-text-xs); }
|
|
943
|
+
.spend-chart { height: 200px; position: relative; }
|
|
944
|
+
.spend-chart canvas { max-width: 100%; }
|
|
945
|
+
|
|
946
|
+
/* 主题切换钮 + 侧栏折叠 */
|
|
947
|
+
.theme-toggle { border: 1px solid var(--ac-line); background: transparent; border-radius: var(--ac-radius-sm); padding: 3px 8px; cursor: pointer; font-size: var(--ac-text-md); line-height: 1; color: var(--ac-muted); }
|
|
948
|
+
.theme-toggle:hover { color: var(--ac-primary); border-color: var(--ac-primary); }
|
|
949
|
+
.side.collapsed { display: none; }
|
|
950
|
+
/* ⑦ 折叠后唤回按钮:贴左缘的竖条,带「历史」文字。
|
|
951
|
+
裸 » 胶囊与 150px 的业务导航栏视觉上分不开,用户不易找到。 */
|
|
952
|
+
.side-open {
|
|
953
|
+
position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 20;
|
|
954
|
+
display: flex; flex-direction: column; align-items: center; gap: 6px;
|
|
955
|
+
padding: 12px 5px; cursor: pointer;
|
|
956
|
+
border: 1px solid var(--ac-line); border-left: 0;
|
|
957
|
+
border-radius: 0 var(--ac-radius-sm) var(--ac-radius-sm) 0;
|
|
958
|
+
background: var(--ac-card); color: var(--ac-muted);
|
|
959
|
+
box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
|
|
960
|
+
font-size: var(--ac-text-xs); line-height: 1;
|
|
961
|
+
}
|
|
962
|
+
.side-open:hover { color: var(--ac-primary); border-color: var(--ac-primary); }
|
|
963
|
+
.side-open-arrow { font-size: var(--ac-text-md); }
|
|
964
|
+
/* 竖排文字:中文单字纵向排列,不依赖 writing-mode 的浏览器差异。 */
|
|
965
|
+
.side-open-text { writing-mode: vertical-rl; letter-spacing: 2px; }
|
|
966
|
+
.collapse-btn { border: 0; background: transparent; color: var(--ac-muted); cursor: pointer; font-size: var(--ac-text-sm); padding: 2px 6px; border-radius: 6px; }
|
|
967
|
+
.collapse-btn:hover { color: var(--ac-fg); background: var(--ac-bg); }
|
|
968
|
+
|
|
969
|
+
/* 默认助手坞(Dock):docked 挤压内容区 / floating 悬浮 / closed 收起成右缘竖条。
|
|
970
|
+
面板在 closed 时只 display:none 不卸载——对话流与滚动位置要在开关之间活着。 */
|
|
971
|
+
.dock-wrap { flex: 1; min-width: 0; display: flex; position: relative; }
|
|
972
|
+
.dock-wrap > .content { flex: 1; min-width: 0; }
|
|
973
|
+
.dock-pane {
|
|
974
|
+
display: flex; flex-direction: column; min-width: 0; min-height: 0;
|
|
975
|
+
border-left: 1px solid var(--ac-line); background: var(--ac-bg);
|
|
976
|
+
}
|
|
977
|
+
.dock-pane.gone { display: none; }
|
|
978
|
+
.dock-wrap.docked .dock-pane { flex: 0 0 420px; }
|
|
979
|
+
.dock-wrap.floating .dock-pane {
|
|
980
|
+
position: absolute; right: 16px; bottom: 16px; z-index: 30;
|
|
981
|
+
flex: 0 0 auto; width: 420px; height: min(70%, 560px);
|
|
982
|
+
border: 1px solid var(--ac-line); border-radius: var(--ac-radius);
|
|
983
|
+
box-shadow: 0 12px 40px rgb(0 0 0 / 18%); overflow: hidden;
|
|
984
|
+
}
|
|
985
|
+
.dock-wrap.full .dock-pane { flex: 1; border-left: 0; }
|
|
986
|
+
.dock-head {
|
|
987
|
+
display: flex; align-items: center; gap: 6px; flex: 0 0 auto;
|
|
988
|
+
padding: 6px 8px; border-bottom: 1px solid var(--ac-line); background: var(--ac-card);
|
|
989
|
+
}
|
|
990
|
+
.dock-title { flex: 1; font-size: var(--ac-text-xs); color: var(--ac-muted); letter-spacing: 1px; }
|
|
991
|
+
.dock-btn {
|
|
992
|
+
border: 1px solid var(--ac-line); background: transparent; color: var(--ac-muted);
|
|
993
|
+
border-radius: var(--ac-radius-sm); padding: 2px 8px; cursor: pointer;
|
|
994
|
+
font-size: var(--ac-text-sm); line-height: 1.4;
|
|
995
|
+
}
|
|
996
|
+
.dock-btn:hover { color: var(--ac-primary); border-color: var(--ac-primary); }
|
|
997
|
+
.dock-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
|
|
998
|
+
.dock-body > * { flex: 1; min-height: 0; }
|
|
999
|
+
.dock-open { left: auto; right: 0; border-left: 1px solid var(--ac-line); border-right: 0; border-radius: var(--ac-radius-sm) 0 0 var(--ac-radius-sm); }
|
|
1000
|
+
|
|
1001
|
+
/* 图片灯箱(点击放大) */.lightbox { position: fixed; inset: 0; z-index: var(--ac-z-lightbox); background: rgb(0 0 0 / 72%); display: grid; place-items: center; cursor: zoom-out; }
|
|
1002
|
+
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: var(--ac-radius); box-shadow: 0 12px 48px rgb(0 0 0 / 50%); }
|
|
1003
|
+
|
|
1004
|
+
/* 滚动到底部 */
|
|
1005
|
+
.scroll-bottom {
|
|
1006
|
+
position: absolute; left: 50%; transform: translateX(-50%); bottom: 8px; z-index: 5;
|
|
1007
|
+
width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ac-line);
|
|
1008
|
+
background: var(--ac-card); color: var(--ac-muted); cursor: pointer; font-size: var(--ac-text-md);
|
|
1009
|
+
box-shadow: 0 2px 10px rgb(0 0 0 / 12%);
|
|
1010
|
+
}
|
|
1011
|
+
/* 官方原语到底部时不卸载而是 disabled(createActionButton: callback 为 null → disabled),用 :disabled 隐藏。 */
|
|
1012
|
+
.scroll-bottom:disabled { display: none; }
|
|
1013
|
+
.scroll-bottom:hover { color: var(--ac-primary); border-color: var(--ac-primary); }
|
|
1014
|
+
.thread-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
|
|
1015
|
+
|
|
1016
|
+
/* 刷真题(V6):选卷 / 计时答题 / 交卷结果 三屏 */
|
|
1017
|
+
.pap { display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1; padding: 16px 20px 0; overflow-y: auto; }
|
|
1018
|
+
.pap .p-bar { flex-wrap: wrap; }
|
|
1019
|
+
.seg { display: inline-flex; border: 1px solid var(--ac-line); border-radius: 999px; overflow: hidden; }
|
|
1020
|
+
.seg button { border: 0; background: transparent; color: var(--ac-muted); padding: 3px 14px; font-size: var(--ac-text-sm); cursor: pointer; }
|
|
1021
|
+
.seg button.on { background: color-mix(in srgb, var(--ac-primary) 14%, transparent); color: var(--ac-primary); cursor: default; }
|
|
1022
|
+
.pap-portrait { margin: 0; font-weight: 600; }
|
|
1023
|
+
.pap-portrait .muted { font-weight: 400; margin-left: 8px; }
|
|
1024
|
+
.pap-modes { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
1025
|
+
.pap-modes label { display: flex; align-items: center; gap: 6px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 6px 10px; cursor: pointer; font-size: var(--ac-text-sm); }
|
|
1026
|
+
.pap-modes label.on { border-color: var(--ac-primary); color: var(--ac-primary); background: color-mix(in srgb, var(--ac-primary) 8%, transparent); }
|
|
1027
|
+
.pap-modes .muted { color: var(--ac-muted); font-size: var(--ac-text-xs); margin-left: 4px; }
|
|
1028
|
+
.pap-group { margin: 8px 0 0; font-size: var(--ac-text-sm); color: var(--ac-muted); }
|
|
1029
|
+
.pap-card { border: 1px solid var(--ac-line); border-radius: var(--ac-radius); background: var(--ac-card); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
|
|
1030
|
+
.pap-card.hero { border-color: color-mix(in srgb, var(--ac-primary) 55%, var(--ac-line)); }
|
|
1031
|
+
.pap-card h2 { margin: 0; font-size: var(--ac-text-md); }
|
|
1032
|
+
.pap-card-head { display: flex; align-items: center; gap: 8px; }
|
|
1033
|
+
.pap-card-head strong { font-size: var(--ac-text-md); }
|
|
1034
|
+
.pap-card-foot { display: flex; align-items: center; gap: 10px; }
|
|
1035
|
+
.pap-note { display: block; margin-left: 8px; opacity: .8; }
|
|
1036
|
+
.pap .primary { border: 0; border-radius: var(--ac-radius-sm); padding: 5px 14px; cursor: pointer; background: var(--ac-primary); color: var(--ac-on-primary); }
|
|
1037
|
+
.pap .primary:disabled { opacity: .5; cursor: default; }
|
|
1038
|
+
/* 答题屏:左题干右答题卡 */
|
|
1039
|
+
.pap-top { align-items: center; }
|
|
1040
|
+
.pap-timer { font-variant-numeric: tabular-nums; font-weight: 700; }
|
|
1041
|
+
.pap-timer.warn { color: var(--ac-danger); }
|
|
1042
|
+
.pap-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch; }
|
|
1043
|
+
.pap-chip { border: 1px solid var(--ac-line); border-radius: 999px; padding: 1px 9px; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
1044
|
+
.pap-chip.open { border-color: var(--ac-ok); color: var(--ac-ok); }
|
|
1045
|
+
.pap-body { display: flex; gap: 16px; min-height: 0; flex: 1; }
|
|
1046
|
+
.pap-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
|
|
1047
|
+
.pap-opts .p-opt { display: block; width: 100%; text-align: left; }
|
|
1048
|
+
.pap-opts .p-opt.sel { border-color: var(--ac-primary); background: color-mix(in srgb, var(--ac-primary) 10%, transparent); color: var(--ac-primary); }
|
|
1049
|
+
.pap-nav { display: flex; gap: 8px; }
|
|
1050
|
+
.pap-confirm { border: 1px solid var(--ac-line); border-radius: var(--ac-radius); background: var(--ac-card); color: inherit; padding: 16px; max-width: 340px; }
|
|
1051
|
+
.pap-confirm::backdrop { background: rgb(0 0 0 / 45%); }
|
|
1052
|
+
/* 结果屏 */
|
|
1053
|
+
.pap-table { border-collapse: collapse; font-size: var(--ac-text-sm); width: min(480px, 100%); }
|
|
1054
|
+
.pap-table th, .pap-table td { border: 1px solid var(--ac-line); padding: 4px 10px; text-align: left; }
|
|
1055
|
+
.pap-wrong { border-left: 3px solid var(--ac-danger); }
|
|
1056
|
+
.p-verdict.skip { color: var(--ac-muted); }
|
|
1057
|
+
.pap .p-opt[disabled], .pap .p-opt.right, .pap .p-opt.wrong { cursor: default; }
|
|
1058
|
+
|
|
1059
|
+
/* 题目概览(练习 + 刷真题共用)。
|
|
1060
|
+
* 桌面:右侧 220px 吸顶卡片;窄屏:order:-1 挪到内容之前、吸顶、默认折成一条横条。
|
|
1061
|
+
* top:48px 让开各页吸顶的 .p-bar(它 sticky top:-16px、自身高约 34px)。
|
|
1062
|
+
* 格点自己滚,75 题不会把侧栏撑成一整屏。 */
|
|
1063
|
+
/* 顶栏多挂一组「平铺/单题」:只让这两个答题页的 p-bar 换行,别把其它页改了。 */
|
|
1064
|
+
.practice .p-bar { flex-wrap: wrap; row-gap: 6px; }
|
|
1065
|
+
.view-seg { flex: 0 0 auto; }
|
|
1066
|
+
.p-body { display: flex; gap: 16px; align-items: flex-start; }
|
|
1067
|
+
.p-qlist { flex: 1; min-width: 0; }
|
|
1068
|
+
/* 平铺时 pap-main 自己有 gap,卡片的默认 margin-bottom 会叠成双倍间距。 */
|
|
1069
|
+
.pap-main .p-q { margin-bottom: 0; }
|
|
1070
|
+
.pap-main .p-q.cur { border-color: color-mix(in srgb, var(--ac-primary) 55%, var(--ac-line)); }
|
|
1071
|
+
.pap-main .p-q .pap-note { margin-left: 0; }
|
|
1072
|
+
.p-q { scroll-margin-top: 56px; }
|
|
1073
|
+
.p-q.cur { border-color: color-mix(in srgb, var(--ac-primary) 55%, var(--ac-line)); }
|
|
1074
|
+
.qov { width: 220px; flex: 0 0 auto; align-self: flex-start; position: sticky; top: 48px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); background: var(--ac-card); padding: 10px; }
|
|
1075
|
+
.qov-head { display: flex; align-items: center; gap: 6px; width: 100%; padding: 0 0 8px; border: 0; background: transparent; color: var(--ac-fg); font-size: var(--ac-text-sm); text-align: left; cursor: pointer; }
|
|
1076
|
+
.qov-head b { font-weight: 600; white-space: nowrap; }
|
|
1077
|
+
.qov-count { margin-left: auto; color: var(--ac-muted); font-size: var(--ac-text-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
1078
|
+
.qov-fold { color: var(--ac-primary); font-size: var(--ac-text-xs); white-space: nowrap; }
|
|
1079
|
+
.qov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 4px; max-height: min(56vh, 460px); overflow-y: auto; }
|
|
1080
|
+
.qov-dot { border: 1px solid var(--ac-line); background: transparent; color: var(--ac-muted); border-radius: 8px; font-size: var(--ac-text-xs); padding: 4px 0; cursor: pointer; font-variant-numeric: tabular-nums; }
|
|
1081
|
+
.qov-dot:hover { border-color: var(--ac-primary); }
|
|
1082
|
+
.qov-dot.done { background: color-mix(in srgb, var(--ac-primary) 18%, transparent); color: var(--ac-primary); border-color: color-mix(in srgb, var(--ac-primary) 45%, transparent); }
|
|
1083
|
+
.qov-dot.marked, .qov-dot.marked-done { border-color: var(--ac-accent); color: var(--ac-accent); }
|
|
1084
|
+
.qov-dot.marked { background: color-mix(in srgb, var(--ac-accent) 14%, transparent); }
|
|
1085
|
+
.qov-dot.marked-done { background: linear-gradient(color-mix(in srgb, var(--ac-accent) 16%, transparent), color-mix(in srgb, var(--ac-accent) 16%, transparent)), color-mix(in srgb, var(--ac-primary) 18%, transparent); color: var(--ac-primary); }
|
|
1086
|
+
.qov-dot.grouped { border-style: dashed; }
|
|
1087
|
+
.qov-dot.cur { outline: 2px solid var(--ac-primary); outline-offset: 1px; font-weight: 700; }
|
|
1088
|
+
.qov-legend, .qov-groups, .qov-note { margin: 8px 0 0; font-size: var(--ac-text-xs); color: var(--ac-muted); line-height: 1.5; }
|
|
1089
|
+
@media (max-width: 900px) {
|
|
1090
|
+
.pap-body, .p-body { flex-direction: column; }
|
|
1091
|
+
.qov { width: auto; align-self: stretch; order: -1; top: 0; z-index: 6; }
|
|
1092
|
+
.qov.open .qov-grid { max-height: 174px; }
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
/* ---------- 模型配置 tab ----------
|
|
1096
|
+
* 点即生效,没有 [保存]:每个控件恰好映射一个端点,写失败就地红字并重拉。
|
|
1097
|
+
*/
|
|
1098
|
+
.models { display: flex; flex-direction: column; gap: 10px; }
|
|
1099
|
+
.models h3 { margin: 6px 0 0; }
|
|
1100
|
+
.mdl-spacer { flex: 1 1 auto; }
|
|
1101
|
+
.mdl-mono, .models code { font-family: ui-monospace, Consolas, monospace; font-size: var(--ac-text-xs); }
|
|
1102
|
+
.mdl-ok { color: var(--ac-ok); font-size: var(--ac-text-xs); }
|
|
1103
|
+
.mdl-bad { color: var(--ac-danger); font-size: var(--ac-text-xs); }
|
|
1104
|
+
.mdl-err { color: var(--ac-danger); }
|
|
1105
|
+
|
|
1106
|
+
/* 只读回显 */
|
|
1107
|
+
.mdl-ro { border: 1px dashed var(--ac-line); border-radius: var(--ac-radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
|
|
1108
|
+
.mdl-ro-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
1109
|
+
.mdl-badge { font-size: var(--ac-text-xs); border-radius: 999px; padding: 2px 9px; border: 1px solid var(--ac-line); color: var(--ac-muted); white-space: nowrap; }
|
|
1110
|
+
.mdl-badge.ok { color: var(--ac-ok); border-color: var(--ac-ok); }
|
|
1111
|
+
.mdl-badge.bad { color: var(--ac-danger); border-color: var(--ac-danger); }
|
|
1112
|
+
.mdl-badge.warn { color: var(--ac-warn); border-color: var(--ac-warn); }
|
|
1113
|
+
.mdl-chip { font-size: var(--ac-text-xs); border: 1px solid var(--ac-line); border-radius: 999px; padding: 2px 9px; color: var(--ac-muted); }
|
|
1114
|
+
|
|
1115
|
+
/* provider 卡 */
|
|
1116
|
+
.mdl-card { border: 1px solid var(--ac-line); border-radius: var(--ac-radius); overflow: hidden; }
|
|
1117
|
+
.mdl-card.off { background: color-mix(in srgb, var(--ac-muted) 6%, transparent); }
|
|
1118
|
+
.mdl-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--ac-line); }
|
|
1119
|
+
.mdl-card-body { padding: 9px 12px; display: flex; flex-direction: column; gap: 8px; }
|
|
1120
|
+
.mdl-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
1121
|
+
.mdl-meta b { color: var(--ac-fg); }
|
|
1122
|
+
|
|
1123
|
+
/* 开关(启用/停用) */
|
|
1124
|
+
.mdl-sw { width: 34px; height: 19px; border-radius: 99px; border: 0; padding: 0; cursor: pointer; position: relative; background: var(--ac-line); flex: 0 0 auto; }
|
|
1125
|
+
.mdl-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
|
|
1126
|
+
.mdl-sw.on { background: var(--ac-ok); }
|
|
1127
|
+
.mdl-sw.on::after { left: 17px; }
|
|
1128
|
+
.mdl-sw:disabled { opacity: .5; cursor: default; }
|
|
1129
|
+
|
|
1130
|
+
/* 白名单 chips */
|
|
1131
|
+
.mdl-wl { display: flex; gap: 7px; flex-wrap: wrap; }
|
|
1132
|
+
.mdl-wl-chip { border: 1px solid var(--ac-line); background: transparent; color: var(--ac-muted); border-radius: 999px; padding: 3px 11px; font-size: var(--ac-text-xs); cursor: pointer; font-family: ui-monospace, Consolas, monospace; }
|
|
1133
|
+
.mdl-wl-chip.on { border-color: var(--ac-primary); color: var(--ac-primary); background: color-mix(in srgb, var(--ac-primary) 8%, transparent); }
|
|
1134
|
+
.mdl-wl-chip:disabled { opacity: .5; cursor: default; }
|
|
1135
|
+
|
|
1136
|
+
/* 档位绑定 */
|
|
1137
|
+
.mdl-tiers { display: flex; flex-direction: column; gap: 10px; }
|
|
1138
|
+
.mdl-tier { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: start; }
|
|
1139
|
+
.mdl-tier-name { font-weight: 600; font-size: var(--ac-text-sm); padding-top: 5px; }
|
|
1140
|
+
.mdl-tier-name small { display: block; font-weight: 400; color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
1141
|
+
.mdl-cand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
|
|
1142
|
+
.mdl-cand select { border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); background: transparent; color: inherit; padding: 5px 8px; font-size: var(--ac-text-sm); max-width: 340px; }
|
|
1143
|
+
.mdl-tag { font-size: var(--ac-text-xs); border-radius: 4px; padding: 1px 6px; background: color-mix(in srgb, var(--ac-muted) 14%, transparent); color: var(--ac-muted); }
|
|
1144
|
+
.mdl-tag.pri { background: color-mix(in srgb, var(--ac-primary) 14%, transparent); color: var(--ac-primary); }
|
|
1145
|
+
|
|
1146
|
+
/* 路由 */
|
|
1147
|
+
.mdl-routing { gap: 18px; }
|
|
1148
|
+
.mdl-check { display: inline-flex; align-items: center; gap: 7px; font-size: var(--ac-text-sm); color: var(--ac-fg); }
|
|
1149
|
+
.mdl-check input[type="number"] { width: 72px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 5px 8px; background: transparent; color: inherit; font-size: var(--ac-text-sm); }
|
|
1150
|
+
|
|
1151
|
+
/* 空态 / 服务端校验 */
|
|
1152
|
+
.mdl-empty { border: 1px dashed var(--ac-line); border-radius: var(--ac-radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
|
|
1153
|
+
.mdl-log { border: 1px solid var(--ac-line); border-radius: var(--ac-radius); padding: 9px 12px; display: flex; flex-direction: column; gap: 4px; }
|
|
1154
|
+
.mdl-log-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
1155
|
+
.mdl-log ul { margin: 0; padding-left: 18px; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
1156
|
+
|
|
1157
|
+
@media (max-width: 720px) {
|
|
1158
|
+
.mdl-tier { grid-template-columns: 1fr; gap: 4px; }
|
|
1159
|
+
.mdl-cand select { max-width: 100%; }
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
/* ---------- 业务接入 tab ----------
|
|
1163
|
+
* 向导是草稿态(有 [保存]),列表上的启用开关点即生效;灰标行=上游 $ref 缺陷,禁选。
|
|
1164
|
+
*/
|
|
1165
|
+
.mcp-spec { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
1166
|
+
.mcp-spec code { color: var(--ac-fg); }
|
|
1167
|
+
.mcp-wizard { gap: 10px; }
|
|
1168
|
+
|
|
1169
|
+
/* 步骤条:已完成淡出、当前步高亮 */
|
|
1170
|
+
.mcp-steps { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
1171
|
+
.mcp-step { font-size: var(--ac-text-xs); border: 1px solid var(--ac-line); border-radius: 999px; padding: 2px 10px; color: var(--ac-muted); }
|
|
1172
|
+
.mcp-step.on { color: var(--ac-primary); border-color: var(--ac-primary); background: color-mix(in srgb, var(--ac-primary) 8%, transparent); }
|
|
1173
|
+
.mcp-step.done { color: var(--ac-ok); border-color: color-mix(in srgb, var(--ac-ok) 45%, var(--ac-line)); }
|
|
1174
|
+
|
|
1175
|
+
/* 连接参数表单 */
|
|
1176
|
+
.mcp-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 9px 14px; }
|
|
1177
|
+
.mcp-form label { display: flex; flex-direction: column; gap: 4px; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
1178
|
+
.mcp-form label b { color: var(--ac-fg); }
|
|
1179
|
+
.mcp-form input { border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 6px 9px; background: transparent; color: var(--ac-fg); font-size: var(--ac-text-sm); font-family: ui-monospace, Consolas, monospace; }
|
|
1180
|
+
.mcp-form input:disabled { opacity: .6; }
|
|
1181
|
+
.mcp-form label.wide { grid-column: 1 / -1; }
|
|
1182
|
+
|
|
1183
|
+
/* 缺陷①提示条 */
|
|
1184
|
+
.mcp-warn { border: 1px solid var(--ac-warn); border-left-width: 3px; border-radius: var(--ac-radius-sm); padding: 8px 11px; font-size: var(--ac-text-xs); color: var(--ac-warn); background: color-mix(in srgb, var(--ac-warn) 7%, transparent); }
|
|
1185
|
+
|
|
1186
|
+
/* 工具清单 */
|
|
1187
|
+
.mcp-tools { overflow-x: auto; }
|
|
1188
|
+
.mcp-tools .ledger td, .mcp-tools .ledger th { font-size: var(--ac-text-xs); }
|
|
1189
|
+
.mcp-tools tr.mcp-dead { opacity: .55; }
|
|
1190
|
+
.mcp-m { font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 6px; border: 1px solid currentColor; font-family: ui-monospace, Consolas, monospace; }
|
|
1191
|
+
.mcp-m.get { color: var(--ac-ok); }
|
|
1192
|
+
.mcp-m.post { color: var(--ac-primary); }
|
|
1193
|
+
.mcp-m.put, .mcp-m.patch { color: var(--ac-warn); }
|
|
1194
|
+
.mcp-m.delete, .mcp-m.del { color: var(--ac-danger); }
|
|
1195
|
+
.mcp-lbl { width: 100%; min-width: 110px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 3px 7px; background: transparent; color: var(--ac-fg); font-size: var(--ac-text-xs); }
|
|
1196
|
+
|
|
1197
|
+
/* 配置片段预览 */
|
|
1198
|
+
.mcp-json summary { font-size: var(--ac-text-xs); color: var(--ac-muted); cursor: pointer; }
|
|
1199
|
+
.mcp-json pre { margin: 6px 0 0; max-height: 320px; overflow: auto; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 9px 11px; font-size: var(--ac-text-xs); font-family: ui-monospace, Consolas, monospace; }
|
|
1200
|
+
|
|
1201
|
+
@media (max-width: 720px) {
|
|
1202
|
+
.mcp-form { grid-template-columns: 1fr; }
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
/* ---------- 反馈 ----------
|
|
1206
|
+
* 两块:侧栏底部常驻入口 + 抽屉(提交表单 / 我提过的);公开板是独立页 `#/feedback`。
|
|
1207
|
+
* 工单卡在抽屉与公开板共用一套 `.fb-ticket`,差别只有「公开板不显示 #id 与提交者」。
|
|
1208
|
+
*/
|
|
1209
|
+
.fb-entry {
|
|
1210
|
+
margin: auto 0 6px; display: flex; align-items: center; gap: 8px;
|
|
1211
|
+
padding: 8px 10px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm);
|
|
1212
|
+
background: var(--ac-card); color: var(--ac-fg); font: inherit; font-size: var(--ac-text-sm);
|
|
1213
|
+
cursor: pointer; text-align: left;
|
|
1214
|
+
}
|
|
1215
|
+
.fb-entry:hover { border-color: var(--ac-primary); color: var(--ac-primary); }
|
|
1216
|
+
|
|
1217
|
+
/* 抽屉:照审计抽屉的手感(遮罩点即关,Esc 关) */
|
|
1218
|
+
.fb-mask { position: fixed; inset: 0; background: var(--ac-scrim); z-index: var(--ac-z-drawer); }
|
|
1219
|
+
.fb-drawer {
|
|
1220
|
+
position: fixed; top: 0; right: 0; bottom: 0; width: var(--ac-drawer-w); z-index: var(--ac-z-drawer-panel);
|
|
1221
|
+
background: var(--ac-card); border-left: 1px solid var(--ac-line);
|
|
1222
|
+
box-shadow: -8px 0 28px rgb(0 0 0 / 22%); padding: 14px 18px 24px; overflow: auto;
|
|
1223
|
+
display: flex; flex-direction: column; gap: 10px;
|
|
1224
|
+
}
|
|
1225
|
+
.fb-drawer header { display: flex; align-items: center; gap: 10px; }
|
|
1226
|
+
.fb-drawer header b { font-size: var(--ac-text-md); }
|
|
1227
|
+
.fb-x { margin-left: auto; border: 0; background: transparent; color: var(--ac-muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
|
|
1228
|
+
.fb-x:hover { color: var(--ac-fg); }
|
|
1229
|
+
.fb-hint { font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
1230
|
+
|
|
1231
|
+
.fb-field { display: flex; flex-direction: column; gap: 4px; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
1232
|
+
.fb-field select, .fb-field textarea {
|
|
1233
|
+
border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 7px 9px;
|
|
1234
|
+
background: transparent; color: var(--ac-fg); font: inherit; font-size: var(--ac-text-sm);
|
|
1235
|
+
}
|
|
1236
|
+
.fb-field textarea { resize: vertical; min-height: 96px; }
|
|
1237
|
+
.fb-field select:focus, .fb-field textarea:focus {
|
|
1238
|
+
outline: 0; border-color: var(--ac-primary);
|
|
1239
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac-primary) 18%, transparent);
|
|
1240
|
+
}
|
|
1241
|
+
.fb-count { font-size: var(--ac-text-xs); color: var(--ac-muted); text-align: right; margin-top: -6px; }
|
|
1242
|
+
.fb-count.bad { color: var(--ac-danger); }
|
|
1243
|
+
.fb-err {
|
|
1244
|
+
margin: 0; font-size: var(--ac-text-xs); color: var(--ac-danger);
|
|
1245
|
+
border: 1px solid color-mix(in srgb, var(--ac-danger) 45%, var(--ac-line));
|
|
1246
|
+
border-radius: var(--ac-radius-sm); padding: 7px 10px;
|
|
1247
|
+
}
|
|
1248
|
+
.fb-ok { margin: 0; font-size: var(--ac-text-xs); color: var(--ac-ok); }
|
|
1249
|
+
.fb-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
1250
|
+
.fb-primary {
|
|
1251
|
+
border: 1px solid var(--ac-primary); background: var(--ac-primary); color: var(--ac-on-primary);
|
|
1252
|
+
border-radius: var(--ac-radius-sm); padding: 6px 16px; font: inherit; font-size: var(--ac-text-sm); cursor: pointer;
|
|
1253
|
+
}
|
|
1254
|
+
.fb-primary:disabled { opacity: .55; cursor: default; }
|
|
1255
|
+
.fb-sub { margin: 8px 0 0; font-size: var(--ac-text-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--ac-muted); font-weight: 500; }
|
|
1256
|
+
|
|
1257
|
+
/* 工单卡:抽屉的「我提过的」与公开板共用 */
|
|
1258
|
+
.fb-mine, .fb-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
|
|
1259
|
+
.fb-ticket {
|
|
1260
|
+
border: 1px solid var(--ac-line); border-radius: var(--ac-radius); padding: 9px 11px;
|
|
1261
|
+
display: flex; flex-direction: column; gap: 5px;
|
|
1262
|
+
background: color-mix(in srgb, var(--ac-card) 92%, var(--ac-bg));
|
|
1263
|
+
}
|
|
1264
|
+
.fb-ticket.done { border-left: 3px solid var(--ac-ok); }
|
|
1265
|
+
.fb-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
|
1266
|
+
.fb-badge { font-size: 11px; border-radius: 999px; padding: 1px 8px; border: 1px solid currentColor; color: var(--ac-muted); }
|
|
1267
|
+
.fb-badge.kind { color: var(--ac-primary); }
|
|
1268
|
+
.fb-badge.wait { color: var(--ac-muted); }
|
|
1269
|
+
.fb-badge.info { color: var(--ac-primary); }
|
|
1270
|
+
.fb-badge.ok { color: var(--ac-ok); }
|
|
1271
|
+
.fb-badge.bad { color: var(--ac-danger); }
|
|
1272
|
+
.fb-when { margin-left: auto; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
1273
|
+
.fb-text { margin: 0; font-size: var(--ac-text-sm); white-space: pre-wrap; word-break: break-word; }
|
|
1274
|
+
.fb-reply { margin: 0; font-size: var(--ac-text-xs); border-left: 2px solid var(--ac-line); padding-left: 8px; }
|
|
1275
|
+
.fb-reply.bad { border-left-color: var(--ac-danger); color: var(--ac-danger); }
|
|
1276
|
+
|
|
1277
|
+
/* 公开板整页 */
|
|
1278
|
+
.fb-page { padding: 16px 18px 32px; max-width: 780px; display: flex; flex-direction: column; gap: 10px; }
|
|
1279
|
+
.fb-page h2 { margin: 0; font-size: 18px; }
|
|
1280
|
+
.fb-page-hint { margin: 0; font-size: var(--ac-text-sm); color: var(--ac-muted); }
|
|
1281
|
+
.fb-foot { margin: 6px 0 0; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
1282
|
+
|
|
1283
|
+
/* 处理抽屉:状态单选 + 天数输入。禁用态要看得出来——这是「点不出去」的那一半。 */
|
|
1284
|
+
.fb-radios { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--ac-text-sm); color: var(--ac-fg); }
|
|
1285
|
+
.fb-radios label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
|
|
1286
|
+
.fb-radios label:has(input:disabled) { opacity: .5; cursor: default; }
|
|
1287
|
+
.fb-field > input[type="number"] {
|
|
1288
|
+
width: 120px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm);
|
|
1289
|
+
padding: 6px 9px; background: transparent; color: var(--ac-fg); font: inherit; font-size: var(--ac-text-sm);
|
|
1290
|
+
}
|
|
1291
|
+
.fb-field > input[type="number"]:disabled { opacity: .5; }
|
|
1292
|
+
|
|
1293
|
+
/* ---------- 每日总结弹窗(序列 4) ----------
|
|
1294
|
+
* 居中卡片而不是抽屉:它是一天的「开场白」,不是某个页面的附属面板。
|
|
1295
|
+
*/
|
|
1296
|
+
.dg-mask { position: fixed; inset: 0; background: var(--ac-scrim); z-index: var(--ac-z-modal); display: grid; place-items: center; padding: 20px; }
|
|
1297
|
+
.dg-card {
|
|
1298
|
+
width: min(420px, 94vw); background: var(--ac-card); border: 1px solid var(--ac-line);
|
|
1299
|
+
border-radius: var(--ac-radius-lg); box-shadow: 0 12px 40px rgb(0 0 0 / 26%);
|
|
1300
|
+
padding: 20px 22px 16px; display: flex; flex-direction: column; gap: 12px;
|
|
1301
|
+
}
|
|
1302
|
+
.dg-card h3 { margin: 0; font-size: 17px; }
|
|
1303
|
+
.dg-reason { margin: 0; font-size: var(--ac-text-sm); color: var(--ac-fg); }
|
|
1304
|
+
.dg-stats { display: flex; gap: 10px; }
|
|
1305
|
+
.dg-stats > div {
|
|
1306
|
+
flex: 1; min-width: 0; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm);
|
|
1307
|
+
padding: 8px 10px; display: flex; flex-direction: column; gap: 2px;
|
|
1308
|
+
}
|
|
1309
|
+
.dg-stats b { font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1310
|
+
.dg-stats span { font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
1311
|
+
.dg-actions { display: flex; align-items: center; gap: 12px; }
|
|
1312
|
+
.dg-later { border: 0; background: transparent; color: var(--ac-muted); font: inherit; font-size: var(--ac-text-sm); cursor: pointer; padding: 4px 2px; }
|
|
1313
|
+
.dg-later:hover { color: var(--ac-fg); }
|
|
1314
|
+
.dg-foot { margin: 0; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
1315
|
+
|
|
1316
|
+
/* ---------- 打卡活动(序列 5):学习记录页活动卡 + 管理页新建表单 ---------- */
|
|
1317
|
+
.act-sec { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 12px; }
|
|
1318
|
+
.act-sec h3 { margin: 0; font-size: var(--ac-text-md); }
|
|
1319
|
+
.act-card {
|
|
1320
|
+
border: 1px solid var(--ac-line); border-radius: var(--ac-radius); padding: 12px 14px;
|
|
1321
|
+
background: color-mix(in srgb, var(--ac-card) 92%, var(--ac-bg));
|
|
1322
|
+
display: flex; flex-direction: column; gap: 8px;
|
|
1323
|
+
}
|
|
1324
|
+
.act-hd { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
|
|
1325
|
+
.act-hd b { font-size: var(--ac-text-md); }
|
|
1326
|
+
.act-range { font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
1327
|
+
.act-goal { font-size: var(--ac-text-sm); color: var(--ac-fg); }
|
|
1328
|
+
.act-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
|
|
1329
|
+
.act-got { font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
1330
|
+
.act-done {
|
|
1331
|
+
background: color-mix(in srgb, var(--ac-ok) 14%, transparent); color: var(--ac-ok);
|
|
1332
|
+
border-radius: 999px; padding: 4px 12px; font-size: var(--ac-text-sm); font-weight: 600;
|
|
1333
|
+
}
|
|
1334
|
+
.act-form-title { margin: 14px 0 6px; font-size: var(--ac-text-sm); color: var(--ac-muted); font-weight: 500; }
|
|
1335
|
+
.act-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 12px; }
|
|
1336
|
+
.act-form label { display: flex; flex-direction: column; gap: 4px; }
|
|
1337
|
+
.act-form span { font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
1338
|
+
.act-form input {
|
|
1339
|
+
border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 6px 9px;
|
|
1340
|
+
background: transparent; color: var(--ac-fg); font: inherit; font-size: var(--ac-text-sm);
|
|
1341
|
+
}
|
|
1342
|
+
.act-form-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
|
|
1343
|
+
|
|
1344
|
+
/* ---------- 战绩卡(序列 7):一个入口 + 一张卡,零依赖 ---------- */
|
|
1345
|
+
.sc-row { display: flex; justify-content: flex-end; margin: -4px 0 8px; }
|
|
1346
|
+
.sc-trigger {
|
|
1347
|
+
border: 1px solid var(--ac-line); background: var(--ac-card); color: var(--ac-fg);
|
|
1348
|
+
border-radius: var(--ac-radius-sm); padding: 5px 12px; font: inherit;
|
|
1349
|
+
font-size: var(--ac-text-xs); cursor: pointer;
|
|
1350
|
+
}
|
|
1351
|
+
.sc-trigger:hover { border-color: var(--ac-primary); color: var(--ac-primary); }
|
|
1352
|
+
.sc-mask { position: fixed; inset: 0; background: var(--ac-scrim); z-index: var(--ac-z-modal); display: grid; place-items: center; padding: 20px; }
|
|
1353
|
+
.sc-card {
|
|
1354
|
+
width: min(420px, 94vw); background: var(--ac-card); border: 1px solid var(--ac-line);
|
|
1355
|
+
border-radius: var(--ac-radius-lg); box-shadow: 0 14px 44px rgb(0 0 0 / 28%);
|
|
1356
|
+
padding: 20px 22px 16px; display: flex; flex-direction: column; gap: 12px;
|
|
1357
|
+
}
|
|
1358
|
+
.sc-brand { font-size: var(--ac-text-xs); letter-spacing: .08em; color: var(--ac-muted); text-transform: uppercase; }
|
|
1359
|
+
.sc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
|
|
1360
|
+
.sc-stats > div { border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 8px 6px; text-align: center; }
|
|
1361
|
+
.sc-stats b { display: block; font-size: 17px; }
|
|
1362
|
+
.sc-stats span { font-size: 11px; color: var(--ac-muted); }
|
|
1363
|
+
.sc-topic { margin: 0; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
1364
|
+
.sc-text {
|
|
1365
|
+
margin: 0; padding: 10px 12px; border-radius: var(--ac-radius-sm); white-space: pre-wrap;
|
|
1366
|
+
background: color-mix(in srgb, var(--ac-primary) 7%, transparent);
|
|
1367
|
+
border: 1px solid color-mix(in srgb, var(--ac-primary) 22%, var(--ac-line));
|
|
1368
|
+
font: inherit; font-size: var(--ac-text-sm); line-height: 1.7;
|
|
1369
|
+
}
|
|
1370
|
+
.sc-actions { display: flex; align-items: center; gap: 12px; }
|
|
1371
|
+
.sc-foot { margin: 0; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
1372
|
+
|
|
1373
|
+
/* ---------- 辅助助手人格 ---------- */
|
|
1374
|
+
/* 侧栏两个出口:同款、不分主次,右侧只差一个 2 字提示。 */
|
|
1375
|
+
.fb-entry.on { border-color: var(--ac-primary); background: color-mix(in srgb, var(--ac-primary) 10%, transparent); color: var(--ac-primary); font-weight: 600; }
|
|
1376
|
+
.fb-entry-tag { margin-left: auto; font-size: 10.5px; color: var(--ac-muted); font-weight: 400; }
|
|
1377
|
+
.fb-entry.on .fb-entry-tag { color: var(--ac-primary); }
|
|
1378
|
+
|
|
1379
|
+
/* 常驻提示条:贴在对话区顶部,不随消息滚走——「助手提示」必须一直在。 */
|
|
1380
|
+
.policy-bar {
|
|
1381
|
+
display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 8px 14px;
|
|
1382
|
+
font-size: var(--ac-text-xs); line-height: 1.6; color: var(--ac-fg);
|
|
1383
|
+
background: color-mix(in srgb, var(--ac-warn) 16%, transparent);
|
|
1384
|
+
border-bottom: 1px solid color-mix(in srgb, var(--ac-warn) 34%, var(--ac-line));
|
|
1385
|
+
}
|
|
1386
|
+
.policy-dot {
|
|
1387
|
+
flex: 0 0 auto; width: 15px; height: 15px; margin-top: 1px; border-radius: 50%;
|
|
1388
|
+
background: var(--ac-warn); color: #fff; font-size: 10px; font-weight: 700;
|
|
1389
|
+
display: grid; place-items: center; font-style: normal;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
/* ---- 人格配置页----
|
|
1393
|
+
* 两栏:左人格列表、右编辑器;预览面板在下方。颜色全走 token,暗色自动跟随。 */
|
|
1394
|
+
.ps { padding: 18px 22px 40px; display: flex; flex-direction: column; gap: 12px; }
|
|
1395
|
+
.ps-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
|
|
1396
|
+
.ps-title { margin: 0 0 4px; font-size: 18px; }
|
|
1397
|
+
.ps-note { margin: 2px 0; color: var(--ac-muted); font-size: var(--ac-text-sm); }
|
|
1398
|
+
.ps-code { font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--ac-text-xs); background: color-mix(in srgb, var(--ac-fg) 8%, transparent); padding: 1px 5px; border-radius: 4px; }
|
|
1399
|
+
.ps-actions { display: flex; gap: 8px; }
|
|
1400
|
+
.ps-btn { padding: 6px 12px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); background: var(--ac-card); color: var(--ac-fg); font-size: var(--ac-text-sm); cursor: pointer; }
|
|
1401
|
+
.ps-btn:hover:not(:disabled) { border-color: var(--ac-primary); }
|
|
1402
|
+
.ps-btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
1403
|
+
.ps-btn.primary { background: var(--ac-primary); color: var(--ac-on-primary); border-color: var(--ac-primary); }
|
|
1404
|
+
.ps-ok { margin: 0; color: var(--ac-ok); font-size: var(--ac-text-sm); }
|
|
1405
|
+
.ps-err { margin: 0; color: var(--ac-danger); font-size: var(--ac-text-sm); }
|
|
1406
|
+
.ps-warn { margin: 0; color: var(--ac-warn); font-size: var(--ac-text-sm); }
|
|
1407
|
+
.ps-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; align-items: start; }
|
|
1408
|
+
.ps-list { display: flex; flex-direction: column; gap: 6px; }
|
|
1409
|
+
.ps-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); background: var(--ac-card); color: var(--ac-fg); cursor: pointer; text-align: left; }
|
|
1410
|
+
.ps-item.on { border-color: var(--ac-primary); box-shadow: inset 2px 0 0 var(--ac-primary); }
|
|
1411
|
+
.ps-item-icon { width: 18px; text-align: center; }
|
|
1412
|
+
.ps-item-name { flex: 1; font-size: var(--ac-text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1413
|
+
.ps-badge { font-size: 11px; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--ac-line); color: var(--ac-muted); white-space: nowrap; }
|
|
1414
|
+
.ps-badge.file { color: var(--ac-primary); border-color: var(--ac-primary); }
|
|
1415
|
+
.ps-badge.draft { color: var(--ac-warn); border-color: var(--ac-warn); }
|
|
1416
|
+
.ps-editor { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
|
|
1417
|
+
.ps-sec { border: 1px solid var(--ac-line); border-radius: var(--ac-radius); background: var(--ac-card); padding: 12px 14px; }
|
|
1418
|
+
.ps-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
|
|
1419
|
+
.ps-sec-head h3 { margin: 0; font-size: var(--ac-text-md); }
|
|
1420
|
+
.ps-prompt { width: 100%; min-height: 320px; resize: vertical; padding: 10px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); background: var(--ac-bg); color: var(--ac-fg); font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--ac-text-xs); line-height: 1.6; }
|
|
1421
|
+
.ps-ui-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 12px; }
|
|
1422
|
+
.ps-field { display: flex; flex-direction: column; gap: 4px; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
1423
|
+
.ps-field input, .ps-field textarea, .ps-field select { padding: 6px 8px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); background: var(--ac-bg); color: var(--ac-fg); font-size: var(--ac-text-sm); font-family: inherit; }
|
|
1424
|
+
.ps-field textarea { resize: vertical; line-height: 1.5; }
|
|
1425
|
+
.ps-field select:disabled { opacity: 0.55; cursor: not-allowed; }
|
|
1426
|
+
.ps-field.wide { grid-column: 1 / -1; }
|
|
1427
|
+
.ps-tools { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: var(--ac-text-sm); }
|
|
1428
|
+
.ps-tools label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
|
|
1429
|
+
.ps-preview { border: 1px solid var(--ac-line); border-radius: var(--ac-radius); background: var(--ac-card); padding: 12px 14px; }
|
|
1430
|
+
.ps-prev-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
|
|
1431
|
+
.ps-prev-grid h4 { margin: 10px 0 4px; font-size: var(--ac-text-sm); }
|
|
1432
|
+
.ps-pre { max-height: 420px; overflow: auto; margin: 0; padding: 10px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); background: var(--ac-bg); font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--ac-text-xs); white-space: pre-wrap; }
|
|
1433
|
+
/* 版本历史:一版一行,动作/作者/时间/字数 + 两个小按钮 */
|
|
1434
|
+
.ps-version-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
|
|
1435
|
+
.ps-version { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); font-size: var(--ac-text-sm); flex-wrap: wrap; }
|
|
1436
|
+
.ps-vnum { font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--ac-text-xs); color: var(--ac-primary); min-width: 28px; }
|
|
1437
|
+
.ps-vact { font-size: var(--ac-text-xs); padding: 0 6px; border-radius: 999px; border: 1px solid var(--ac-line); color: var(--ac-muted); }
|
|
1438
|
+
.ps-vmeta { flex: 1; min-width: 180px; }
|
|
1439
|
+
.ps-vbtns { display: flex; gap: 6px; }
|
|
1440
|
+
.ps-btn.mini { padding: 2px 8px; font-size: var(--ac-text-xs); }
|
|
1441
|
+
.ps-vbody-wrap { margin-top: 8px; }
|
|
1442
|
+
.ps-vbody { max-height: 260px; overflow: auto; margin: 4px 0 0; padding: 10px; border: 1px dashed var(--ac-line); border-radius: var(--ac-radius-sm); background: var(--ac-bg); font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--ac-text-xs); white-space: pre-wrap; }
|
|
1443
|
+
/* 试跑:草稿真跑一次,结果与旁路说明 */
|
|
1444
|
+
.ps-trial { border: 1px solid var(--ac-line); border-radius: var(--ac-radius); background: var(--ac-card); padding: 12px 14px; }
|
|
1445
|
+
.ps-trial-row { display: flex; gap: 8px; align-items: flex-start; }
|
|
1446
|
+
.ps-trial-input { flex: 1; resize: vertical; padding: 8px 10px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); background: var(--ac-bg); color: var(--ac-fg); font-family: inherit; font-size: var(--ac-text-sm); line-height: 1.5; }
|
|
1447
|
+
.ps-trial-out { margin-top: 10px; }
|
|
1448
|
+
.ps-trial-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
1449
|
+
.ps-trial-reply { max-height: 320px; overflow: auto; margin: 6px 0 0; padding: 10px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); background: var(--ac-bg); color: var(--ac-fg); font-family: inherit; font-size: var(--ac-text-sm); line-height: 1.6; white-space: pre-wrap; }
|
|
1450
|
+
@media (max-width: 900px) { .ps-body { grid-template-columns: 1fr; } .ps-prev-grid { grid-template-columns: 1fr; } }
|
|
1451
|
+
|
|
1452
|
+
/* =====================================================================
|
|
1453
|
+
* 题组材料
|
|
1454
|
+
* 一段材料带 N 个空,N 道题共用——所以材料只渲染一次,当前题的空高亮、
|
|
1455
|
+
* 其余空灰显(材料是原文,不删空、不改写)。六处页面共用 QuestionBody。
|
|
1456
|
+
* ===================================================================== */
|
|
1457
|
+
.q-material { margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--ac-line); border-left: 3px solid var(--ac-accent); border-radius: var(--ac-radius-sm); background: color-mix(in srgb, var(--ac-accent) 4%, var(--ac-bg)); }
|
|
1458
|
+
.q-material-label { display: inline-block; margin-bottom: 4px; font-size: var(--ac-text-xs); color: var(--ac-muted); letter-spacing: .02em; }
|
|
1459
|
+
.q-material-text { margin: 0; white-space: pre-wrap; line-height: var(--ac-leading); font-size: var(--ac-text-md); }
|
|
1460
|
+
/* 空位编号:其余空只是「这里有个空」,当前空要能一眼找到。 */
|
|
1461
|
+
.q-blank { display: inline-block; min-width: 1.6em; padding: 0 4px; margin: 0 1px; border-radius: 4px; text-align: center; background: var(--ac-line); color: var(--ac-muted); font-size: var(--ac-text-sm); }
|
|
1462
|
+
.q-blank.cur { background: var(--ac-accent); color: var(--ac-on-primary); font-weight: 600; }
|
|
1463
|
+
/* 卷面连续同材料:第二题起不再重复材料,只提示接上题。 */
|
|
1464
|
+
.q-mat-cont { margin: 0 0 8px; padding: 4px 10px; border-left: 3px solid var(--ac-line); color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
1465
|
+
.q-stem { margin: 0; line-height: var(--ac-leading); font-size: var(--ac-text); white-space: pre-wrap; }
|
|
1466
|
+
|
|
1467
|
+
/* =====================================================================
|
|
1468
|
+
* 题面插图
|
|
1469
|
+
* 原图直出、不裁边、不改比例:回忆版扫描件清晰度不齐,等比缩放到容器宽比"版式统一"
|
|
1470
|
+
* 更重要;点开原图拿原尺寸。容器给白底——扫描件多为白纸,深色主题下套深色底会
|
|
1471
|
+
* 变成一块黑洞。
|
|
1472
|
+
* ===================================================================== */
|
|
1473
|
+
.q-figures { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
|
|
1474
|
+
.q-material .q-figures { margin: 10px 0 2px; }
|
|
1475
|
+
.q-figure { margin: 0; }
|
|
1476
|
+
.q-figure a { display: block; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); overflow: hidden; background: #fff; line-height: 0; }
|
|
1477
|
+
.q-figure img { display: block; max-width: 100%; height: auto; }
|
|
1478
|
+
.q-figure figcaption { margin-top: 4px; font-size: var(--ac-text-xs); color: var(--ac-muted); }
|
|
1479
|
+
|
|
1480
|
+
/* ——— ⑦ B 轴:诊断条件卡(propose_plan)——— */
|
|
1481
|
+
.plan { display: flex; flex-direction: column; gap: 6px; }
|
|
1482
|
+
.plan-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-weight: 600; }
|
|
1483
|
+
.plan-src { font-weight: 400; color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
1484
|
+
.plan-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
|
1485
|
+
.plan-k { min-width: 28px; color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
1486
|
+
.plan-chip {
|
|
1487
|
+
border: 1px solid var(--ac-line); border-radius: 999px; background: var(--ac-card); color: var(--ac-fg);
|
|
1488
|
+
padding: 2px 10px; font: inherit; font-size: var(--ac-text-xs); cursor: pointer;
|
|
1489
|
+
}
|
|
1490
|
+
.plan-chip.on { border-color: var(--ac-primary); background: color-mix(in srgb, var(--ac-primary) 12%, var(--ac-card)); color: var(--ac-primary); }
|
|
1491
|
+
.plan-step {
|
|
1492
|
+
width: 22px; height: 22px; line-height: 1; border: 1px solid var(--ac-line); border-radius: 6px;
|
|
1493
|
+
background: var(--ac-card); color: var(--ac-fg); cursor: pointer;
|
|
1494
|
+
}
|
|
1495
|
+
.plan-count { min-width: 20px; text-align: center; }
|
|
1496
|
+
.plan-go {
|
|
1497
|
+
align-self: flex-start; margin-top: 2px; border-radius: 8px; background: var(--ac-primary); color: var(--ac-on-primary);
|
|
1498
|
+
padding: 5px 12px; font-size: var(--ac-text-sm); text-decoration: none;
|
|
1499
|
+
}
|
|
1500
|
+
.plan-go:hover { text-decoration: none; filter: brightness(1.05); }
|
|
1501
|
+
.plan-note { margin: 0; color: var(--ac-muted); font-size: var(--ac-text-xs); }
|
|
1502
|
+
|
|
1503
|
+
/* 依据卡的「按诊断条件」行:条件与数字分开说,数字仍归 plan */
|
|
1504
|
+
.p-basis-focus { margin-top: 6px; font-size: var(--ac-text-xs); color: var(--ac-primary); }
|
|
1505
|
+
.p-basis-note { color: var(--ac-muted); }
|