pi-web-ui 0.114.1 → 0.114.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +187 -187
  3. package/README.zh-CN.md +227 -227
  4. package/README.zh-TW.md +227 -227
  5. package/bin/device-hub-cli.mjs +577 -577
  6. package/bin/frp-manager.mjs +1573 -1573
  7. package/bin/pi-device-hub.mjs +9 -9
  8. package/bin/pi-web-ui.mjs +4081 -4081
  9. package/deploy/nginx-subpath.conf +100 -100
  10. package/deploy/pi-web-ui.service +36 -36
  11. package/dist/server/agent-service.js +59 -10
  12. package/dist/server/attachments.js +6 -6
  13. package/dist/server/canvas/canvas-orchestrator.js +3 -3
  14. package/dist/server/communicate-tool.js +37 -11
  15. package/dist/server/compaction-instructions.js +8 -8
  16. package/dist/server/device-center/desktop-page.js +228 -228
  17. package/dist/server/device-center/hub-page.js +64 -64
  18. package/dist/server/device-center/native-desktop/macos.js +190 -190
  19. package/dist/server/device-center/native-desktop/windows.js +116 -116
  20. package/dist/server/dsh/runtime/cordis.yml +1 -1
  21. package/dist/server/dsh/runtime/custom-prompt.mjs +33 -33
  22. package/dist/server/dsh/runtime/goal-rpc.mjs +1309 -1309
  23. package/dist/server/dsh/runtime/launcher.mjs +235 -235
  24. package/dist/server/dsh/runtime/override.patch.yml +89 -89
  25. package/dist/server/dsh/runtime/runtime-root.mjs +405 -405
  26. package/dist/server/durable/durable-event-projector.js +19 -3
  27. package/dist/server/durable/durable-models.js +134 -65
  28. package/dist/server/eval-tool.js +135 -135
  29. package/dist/server/model-resolver.js +4 -1
  30. package/dist/server/patch-bash-process.js +89 -89
  31. package/dist/server/patch-tool.js +9 -9
  32. package/dist/server/patch-turn-end-boundary.js +3 -3
  33. package/dist/server/persona-chain.js +8 -8
  34. package/dist/server/remote-ssh-service.js +39 -39
  35. package/dist/server/schedule-agent-tool.js +11 -6
  36. package/dist/server/scheduler-tasks.js +84 -2
  37. package/dist/server/scm-commitmsg.js +10 -10
  38. package/dist/server/setup-page.js +620 -620
  39. package/dist/server/universal/universal-session.js +19 -18
  40. package/dist/server/vision-bridge.js +18 -18
  41. package/docs/device-center.md +148 -148
  42. package/docs/device-desktop.md +48 -48
  43. package/docs/dsh-engine.md +493 -493
  44. package/extensions/webui.ts +335 -335
  45. package/package.json +1 -1
  46. package/plugin-sdk/README.md +174 -174
  47. package/plugin-sdk/client-utils.mjs +279 -279
  48. package/plugin-sdk/import-check.mjs +210 -210
  49. package/plugin-sdk/index.d.ts +698 -698
  50. package/plugin-sdk/index.mjs +696 -696
  51. package/plugin-sdk/package.json +13 -13
  52. package/plugin-sdk/ssh-host-trust.mjs +225 -225
  53. package/themes/aetheris.css +501 -501
  54. package/themes/ayu-light.css +116 -116
  55. package/themes/bases/flow-base.css +1357 -1357
  56. package/themes/bases/obsidian-base.css +895 -895
  57. package/themes/bases/statusbar-flat-base.css +112 -112
  58. package/themes/bases/zhujian-base.css +688 -688
  59. package/themes/bases/zhupi-base.css +660 -660
  60. package/themes/catppuccin-latte.css +119 -119
  61. package/themes/catppuccin.css +116 -116
  62. package/themes/claude-code-dark.css +147 -147
  63. package/themes/codex.css +114 -114
  64. package/themes/cyberpunk.css +50 -50
  65. package/themes/dark-teal.css +264 -264
  66. package/themes/dazzle.css +38 -38
  67. package/themes/everforest-light.css +115 -115
  68. package/themes/flow-light.css +164 -164
  69. package/themes/flow.css +161 -161
  70. package/themes/geist.css +114 -114
  71. package/themes/gruvbox-light.css +115 -115
  72. package/themes/kanagawa-lotus.css +115 -115
  73. package/themes/md-preview.css +24 -24
  74. package/themes/mist.css +166 -166
  75. package/themes/nord.css +107 -107
  76. package/themes/one-dark.css +106 -106
  77. package/themes/paper.css +174 -174
  78. package/themes/rose-pine-dawn.css +114 -114
  79. package/themes/sakura.css +166 -166
  80. package/themes/solarized-light.css +114 -114
  81. package/themes/tokyo-night.css +115 -115
  82. package/themes/translucent.css +85 -85
  83. package/themes/transparent.css +116 -116
  84. package/themes/vs-code-dark.css +147 -147
  85. package/themes/wallpaper-flow.css +382 -382
  86. package/themes/wallpaper-obsidian.css +74 -74
  87. package/themes/white.css +164 -164
  88. package/themes/zhujian-dark.css +115 -115
  89. package/themes/zhujian.css +114 -114
  90. package/themes/zhupi-dark.css +115 -115
  91. package/themes/zhupi.css +114 -114
  92. package/web/dist/.build-assets.json +1 -1
  93. package/web/dist/assets/{BgTasksModal-BcXJ20RO.js → BgTasksModal-BIlQ89vr.js} +1 -1
  94. package/web/dist/assets/{BgTasksModal-DjQmiKnE.js → BgTasksModal-Ck2sjlPM.js} +1 -1
  95. package/web/dist/assets/{CanvasStudio-PI9pid0Y.js → CanvasStudio-B3W6b_rA.js} +1 -1
  96. package/web/dist/assets/{CanvasStudio-nf5-HxLM.js → CanvasStudio-Csv1Sj1-.js} +1 -1
  97. package/web/dist/assets/{DeviceCenter-CYttJw2a.js → DeviceCenter-BQdDcO8A.js} +1 -1
  98. package/web/dist/assets/{DeviceCenter-DPe4sz74.js → DeviceCenter-CHRKL0Vy.js} +1 -1
  99. package/web/dist/assets/{FilePreview-C9Ut4Lq6.js → FilePreview-B9xoU6ON.js} +1 -1
  100. package/web/dist/assets/{FilePreview-CvK3ZzX5.js → FilePreview-DUQpVZkH.js} +1 -1
  101. package/web/dist/assets/{GlobalSearchModal-C5e-OCw2.js → GlobalSearchModal-BXEGvUZq.js} +1 -1
  102. package/web/dist/assets/{GlobalSearchModal-H7pFK2UC.js → GlobalSearchModal-CnVPmfOI.js} +1 -1
  103. package/web/dist/assets/{GroupConversation-C2wNM0dQ.js → GroupConversation-CyIpQzDd.js} +1 -1
  104. package/web/dist/assets/{GroupConversation-ChN3TWQK.js → GroupConversation-DgYV3uYS.js} +1 -1
  105. package/web/dist/assets/{SCMPanel-buTGziDB.js → SCMPanel-imYI2Ecw.js} +1 -1
  106. package/web/dist/assets/{SCMPanel-kx-SCL2s.js → SCMPanel-sVZcV7dR.js} +1 -1
  107. package/web/dist/assets/{SettingsModal-BsUF8jqr.js → SettingsModal-Xw1Yoi3_.js} +1 -1
  108. package/web/dist/assets/{SettingsModal-D357Ky7P.js → SettingsModal-mb4e34-0.js} +1 -1
  109. package/web/dist/assets/{TerminalPanel-BBuM_Sez.js → TerminalPanel-CLkJJvxg.js} +1 -1
  110. package/web/dist/assets/{TerminalPanel-D6x6xz8Q.js → TerminalPanel-DpcIellm.js} +1 -1
  111. package/web/dist/assets/{TuiOverlayModal-CdbGV3Za.js → TuiOverlayModal-4-fFAZe7.js} +1 -1
  112. package/web/dist/assets/{TuiOverlayModal-d6x9u25n.js → TuiOverlayModal-DCu01lks.js} +1 -1
  113. package/web/dist/assets/{index-D6u8xH0o.js → index-Cdh3sibd.js} +4 -4
  114. package/web/dist/assets/{index-BPvpea8t.js → index-DWw_SxRq.js} +4 -4
  115. package/web/dist/index.html +29 -29
  116. package/web/dist/sw.js +179 -179
  117. package/web/public/sw.js +179 -179
@@ -1,660 +1,660 @@
1
- /* themes/bases/zhupi-base.css — 朱批排版语言基底
2
- * 包含:稿纸排版语言、全宽文档流、台账行工具调用、※脚注体深度思考、
3
- * 左缘朱笔输入栏、印章风格徽标。
4
- */
5
-
6
- /* =========================================================================
7
- 朱批 · Vermilion Manuscript
8
- 整个界面从「聊天气泡」重构成「一张被 AI 做批注的稿纸」:
9
- · 无气泡、无头像 —— 人机内容同处一条全宽文档流
10
- · 工具调用 = 台账行(等宽小字 + 点线引导符)
11
- · 思考流 = 脚注体(※ 起手)
12
- · 输入框 = 命令栏,左缘一抹朱笔
13
- · 色彩只有语义:墨、淡墨、朱(唯一强调)、印绿
14
- ========================================================================= */
15
-
16
- /* ---- 0. 稿纸底色:旧纸的暗角与天头微光,纯渐变无图 ---- */
17
- body,
18
- .app-root {
19
- background-color: var(--bg);
20
- background-image:
21
- radial-gradient(ellipse 90% 55% at 50% -8%, rgba(255, 253, 247, 0.85) 0%, rgba(255, 253, 247, 0) 70%),
22
- radial-gradient(ellipse 100% 70% at 108% 112%, rgba(166, 140, 100, 0.1) 0%, rgba(166, 140, 100, 0) 70%);
23
- background-attachment: fixed;
24
- }
25
-
26
- ::selection {
27
- background: color-mix(in srgb, var(--accent) 25%, transparent);
28
- }
29
-
30
- /* ---- 1. 顶栏隐形化:无底色层次,只一条 hairline,印章品牌 ---- */
31
- .topbar {
32
- background: var(--topbar-bg);
33
- border-bottom: 1px solid var(--border-soft);
34
- box-shadow: none;
35
- }
36
-
37
- .brand-name {
38
- font-family: var(--serif);
39
- font-weight: 700;
40
- letter-spacing: 0.06em;
41
- }
42
-
43
- /* 顶栏控件全部素色化:无底无框,hover 才现 hairline。兜底所有 button /
44
- * [role=button]——不管类名是谁(基线 chip / 插件注入 / capsule 等),顶栏里
45
- * 一律裸图标,dropdown 触发器不许再带盒子。 */
46
- .topbar button,
47
- .topbar [role="button"],
48
- .topbar a.chip,
49
- .topbar .chip {
50
- background: transparent;
51
- border: 1px solid transparent;
52
- border-radius: 3px;
53
- box-shadow: none;
54
- transition:
55
- border-color 0.15s ease,
56
- color 0.15s ease;
57
- }
58
-
59
- .topbar button:hover,
60
- .topbar [role="button"]:hover,
61
- .topbar a.chip:hover,
62
- .topbar .chip:hover {
63
- border-color: var(--border);
64
- background: transparent;
65
- }
66
-
67
- /* 与基线「顶栏归一」契约对齐(分层后的显式复刻):
68
- 基线 `@layer base` 里那三条顶栏归一规则(裸幽灵化常态 / .active 强调底 /
69
- .newchat·.github 圆角组)原本靠优先级补丁压过主题的通用 `.chip`;分层后 baseline
70
- 不再能压 theme(普通声明层序恒由 theme 抬胜)。这里把它们在这些控件上**当时实际
71
- 生效的值**显式写出来,与重构前的渲染结果逐像素一致(例:`.chip` 的 11px 字号在
72
- 顶栏里从来没生效过,顶栏一直是基线的 12.5px)。 */
73
- .topbar .chip,
74
- .topbar .tb-tab,
75
- .topbar button,
76
- .topbar a.chip,
77
- .topbar [role="button"],
78
- .topbar [role="tab"] {
79
- font-size: 12.5px;
80
- }
81
-
82
- .topbar button,
83
- .topbar .chip.github,
84
- .topbar .chip.newchat,
85
- .topbar .chip.ephemeral-chat-btn,
86
- .topbar .chip.sandbox-chip {
87
- border-radius: 8px;
88
- }
89
-
90
- .topbar .chip.active,
91
- .topbar .tb-tab.active {
92
- background: var(--accent-soft);
93
- }
94
-
95
- .topbar .dropdown {
96
- background: transparent;
97
- border: none;
98
- box-shadow: none;
99
- }
100
-
101
- /* ---- 2. 消息区:文档化排版 ----
102
- * 消息区左右边缘与输入框/快捷短语行保持一致严丝合缝对齐(继承基线列几何)。 */
103
-
104
- .msg {
105
- position: relative;
106
- padding: 2px 0 10px;
107
- }
108
-
109
- .msg-user {
110
- padding-bottom: 2px;
111
- }
112
-
113
- .msg-user .msg-actions {
114
- margin-top: 2px;
115
- }
116
-
117
- .msg-user + .msg-assistant {
118
- padding-top: 2px;
119
- }
120
-
121
- .msg-user + .msg-assistant .msg-body > :first-child {
122
- margin-top: 2px;
123
- }
124
-
125
- /* 操作按钮:卡头只有自己的复制键(.chead-copy),消息级按钮(复制三件套 /
126
- 分叉 / 回滚 / 朗读)统一在底部 .msg-actions 行,流内排在消息气泡/正文下边,
127
- 桌面端与手机端保持一致。 */
128
-
129
- /* 角色行:书目式小标 */
130
- .msg-meta {
131
- margin-bottom: 4px;
132
- }
133
-
134
- /* head 行左右内边距归零:折叠三角贴齐列左缘(文字同一条线),右侧复制
135
- * 按钮贴右缘——head 无边框后,钮与缘之间不能悬空。三角形 28px 盒内 16px
136
- * 图标居中内缩 6px,用负外边距做光学对齐。 */
137
- .chead {
138
- padding-left: 0;
139
- padding-right: 0;
140
- }
141
-
142
- .chead-toggle {
143
- margin-left: -6px;
144
- }
145
-
146
- /* 正文块上的单一复制键去重:卡头现在只有自己的复制键,消息级复制
147
- (纯文本 / Markdown / 长图三件套)统一在底部 .msg-actions 行里。 */
148
- .msg-text-copy {
149
- display: none;
150
- }
151
-
152
- /* head 悬浮不再出现底色块:纸面保持完全平整(键盘 focus 的 outline 保留,
153
- * 只服务键盘导航) */
154
- div.chead[role="button"]:hover,
155
- .chead-toggle:hover {
156
- background: transparent;
157
- }
158
-
159
- .msg-role {
160
- font-size: 10.5px;
161
- font-weight: 600;
162
- letter-spacing: 0.18em;
163
- color: var(--text-faint);
164
- }
165
-
166
- .msg-time {
167
- font-family: var(--mono);
168
- font-size: 10.5px;
169
- }
170
-
171
- /* ---- 3. 用户输入:去气泡,「起手式,稿纸批注体 ---- */
172
- .msg-user .msg-body {
173
- position: relative;
174
- background: transparent;
175
- border: none;
176
- border-radius: 0;
177
- padding: 0 0 0 1.5em;
178
- font-family: var(--serif);
179
- font-size: 15.5px;
180
- font-weight: 600;
181
- line-height: 1.8;
182
- color: var(--text);
183
- }
184
-
185
- .msg-user .msg-body::before {
186
- content: "「";
187
- position: absolute;
188
- left: 0;
189
- top: -0.12em;
190
- font-family: var(--serif);
191
- font-size: 1.3em;
192
- font-weight: 700;
193
- color: var(--accent);
194
- line-height: 1;
195
- }
196
-
197
- /* ---- 4. 助手正文:衬线文档体,直接是书页 ---- */
198
- .msg-assistant .msg-text {
199
- font-family: var(--serif);
200
- font-size: 15px;
201
- line-height: 1.85;
202
- color: var(--text);
203
- }
204
-
205
- .msg-assistant .msg-text p:first-child {
206
- margin-top: 0;
207
- }
208
-
209
- .msg-assistant .msg-text h1,
210
- .msg-assistant .msg-text h2,
211
- .msg-assistant .msg-text h3,
212
- .msg-assistant .msg-text h4 {
213
- font-family: var(--serif);
214
- font-weight: 700;
215
- color: var(--md-strong);
216
- letter-spacing: 0.02em;
217
- }
218
-
219
- .msg-assistant .msg-text blockquote {
220
- border-left: 2px solid var(--accent-soft);
221
- font-style: normal;
222
- color: var(--text-dim);
223
- }
224
-
225
- .msg-assistant .msg-text a {
226
- color: var(--link);
227
- text-decoration: underline dotted;
228
- text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent);
229
- text-underline-offset: 3px;
230
- }
231
-
232
- .msg-assistant .msg-text hr {
233
- border: none;
234
- border-top: 1px dotted var(--border);
235
- }
236
-
237
- .msg-assistant .msg-text code {
238
- background: var(--code-bg);
239
- color: var(--code-text, var(--accent));
240
- border-radius: 2px;
241
- padding: 1px 5px;
242
- }
243
-
244
- /* ---- 5. 工具调用 = 台账行:无框无底,点线引导符填空 ---- */
245
- .toolcall {
246
- margin: 1px 0;
247
- border: none;
248
- border-radius: 0;
249
- background: transparent;
250
- box-shadow: none;
251
- overflow: visible;
252
- }
253
-
254
- .toolcall-head {
255
- display: flex;
256
- align-items: center;
257
- min-height: 24px;
258
- padding: 2px 0;
259
- font-family: var(--mono);
260
- font-size: 12px;
261
- }
262
-
263
- .toolcall-name {
264
- font-family: var(--mono);
265
- font-weight: 500;
266
- font-size: 12px;
267
- letter-spacing: 0.02em;
268
- color: var(--text-dim);
269
- }
270
-
271
- /* 点线引导符:账本目录式填空,落在名字与状态之间 */
272
- .toolcall .toolcall-spacer {
273
- border-bottom: 1px dotted var(--border);
274
- height: 0.7em;
275
- margin: 0 10px;
276
- }
277
-
278
- .toolcall-status {
279
- color: var(--text-faint);
280
- }
281
-
282
- .toolcall.run .toolcall-name {
283
- color: var(--accent);
284
- }
285
-
286
- .toolcall.run .toolcall-status {
287
- color: var(--accent);
288
- }
289
-
290
- .toolcall.run .toolcall-head {
291
- background: transparent;
292
- border-left: none;
293
- }
294
-
295
- .toolcall.ok .toolcall-status {
296
- color: var(--green);
297
- }
298
-
299
- .toolcall.err .toolcall-status {
300
- color: var(--red);
301
- }
302
-
303
- .toolcall.err .toolcall-name {
304
- color: var(--red);
305
- }
306
-
307
- /* 展开的参数/输出:并入台账,无框零内边距平面文本(--code-border/--code-pad
308
- 已按全透明主题机制置 transparent/0,连带 .termline 一并生效) */
309
- .toolcall-args pre,
310
- .toolcall-output pre {
311
- background: transparent;
312
- border: none;
313
- border-radius: 0;
314
- padding: 0;
315
- }
316
-
317
- /* 工具卡体:去掉分隔线与内边距,参数/输出与卡头同距平铺 */
318
- .toolcall-body {
319
- border-top: none;
320
- padding: 0 0 6px;
321
- }
322
-
323
- /* 卡内重复的终端图标只剩噪音(卡头已有工具图标),参照全透明主题隐藏 */
324
- .termline-icon {
325
- display: none;
326
- }
327
-
328
- .toolcall-output-label {
329
- margin-top: 6px;
330
- }
331
-
332
- .toolcall-kill {
333
- border-radius: 3px;
334
- }
335
-
336
- /* ---- 6. 思考流 = 脚注:※ 起手,淡墨小字 ---- */
337
- .thinking {
338
- margin: 4px 0;
339
- border: none;
340
- border-radius: 0;
341
- background: transparent;
342
- box-shadow: none;
343
- }
344
-
345
- .thinking-head {
346
- font-size: 12px;
347
- color: var(--text-faint);
348
- }
349
-
350
- .thinking-body {
351
- border-top: none;
352
- font-style: normal;
353
- font-size: 12.5px;
354
- color: var(--text-dim);
355
- background: transparent;
356
- position: relative;
357
- padding: 2px 14px 2px 1.6em;
358
- }
359
-
360
- .thinking-body::before {
361
- content: "※";
362
- position: absolute;
363
- left: 0;
364
- top: 2px;
365
- color: var(--text-faint);
366
- }
367
-
368
- .thinking-live .thinking-toggle,
369
- .thinking-live-label {
370
- color: var(--accent);
371
- }
372
-
373
- /* ---- 7. 折叠摘要行 / 排队提示:并入台账体系 ---- */
374
- .msg-collapsed {
375
- background: transparent;
376
- border: none;
377
- border-bottom: 1px dotted var(--border-soft);
378
- border-radius: 0;
379
- box-shadow: none;
380
- padding-left: 0;
381
- padding-right: 0;
382
- }
383
-
384
- .msg-collapsed-action::before {
385
- margin-left: 0;
386
- }
387
-
388
- .msg-error {
389
- background: var(--red-soft);
390
- border: none;
391
- border-left: 3px solid var(--red);
392
- border-radius: 0;
393
- font-family: var(--serif);
394
- }
395
-
396
- /* ---- 8. 输入区 = 命令栏:与其他主题同构——只动颜色不动几何,
397
- 朱笔以 inset 阴影画在边框内侧,外缘与消息列/chips 恒对齐 ---- */
398
- .inputbar {
399
- background: transparent;
400
- }
401
-
402
- .inputbox {
403
- background: var(--inputbox-bg);
404
- border: none;
405
- border-radius: 3px;
406
- box-shadow: inset 3px 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent);
407
- transition:
408
- border-color 0.2s ease,
409
- box-shadow 0.2s ease;
410
- }
411
-
412
- .inputbox:focus-within {
413
- border: none;
414
- box-shadow: inset 3px 0 0 0 var(--accent);
415
- }
416
-
417
- .btn.send {
418
- background: var(--send-blue);
419
- color: #f6f2e9;
420
- border-radius: 50%;
421
- box-shadow: none;
422
- font-weight: 600;
423
- }
424
-
425
- .btn.send:hover {
426
- background: var(--send-blue-hover);
427
- color: var(--on-send-blue-hover);
428
- }
429
-
430
- .btn.stop {
431
- background: var(--stop-red);
432
- color: #f6f2e9;
433
- border-radius: 50%;
434
- }
435
-
436
- /* 输入框底部模型选择、思考强度、预设等按钮:去边框、透明底,hover 现 hairline */
437
- .composer-tools {
438
- border-top: none;
439
- }
440
-
441
- .composer-tools .chip,
442
- .composer-tools .capsule-segment {
443
- font-size: 13px;
444
- padding: 4px 10px;
445
- gap: 6px;
446
- background: transparent;
447
- border: 1px solid transparent;
448
- box-shadow: none;
449
- border-radius: 3px;
450
- transition:
451
- border-color 0.15s ease,
452
- background 0.15s ease;
453
- }
454
-
455
- .composer-tools .model-thinking-capsule {
456
- background: transparent;
457
- border: none;
458
- box-shadow: none;
459
- padding: 0;
460
- }
461
-
462
- .composer-tools .model-thinking-capsule .capsule-divider {
463
- display: none;
464
- }
465
-
466
- .composer-tools .chip:hover,
467
- .composer-tools .capsule-segment:hover {
468
- border-color: var(--border);
469
- background: transparent;
470
- }
471
-
472
- .composer-tools-left {
473
- gap: 6px;
474
- }
475
-
476
- .composer-tools .chip-model,
477
- .composer-tools .chip-sub,
478
- .composer-tools .capsule-model-name,
479
- .composer-tools .capsule-thinking-text {
480
- font-size: 12.5px;
481
- }
482
-
483
- /* ---- 9. 底栏 / 状态栏:hairline 收边 ---- */
484
- .statusbar {
485
- background: var(--statusbar-bg);
486
- border-top: 1px solid var(--border-soft);
487
- box-shadow: none;
488
- }
489
-
490
- .goalbar {
491
- background: transparent;
492
- border-top: 1px solid var(--border-soft);
493
- box-shadow: none;
494
- }
495
-
496
- /* ---- 10. 左右面板:素纸文件栏 ----
497
- * 激活态不做红洗(accent-soft 洗在纸上是一块脏粉),改为中性墨面 5% +
498
- * 左缘 2px 朱标;圆角统一 8px。 */
499
- .panel {
500
- background: var(--panel-bg);
501
- border-color: var(--border-soft);
502
- }
503
-
504
- .session-item,
505
- .project-item,
506
- .file-item,
507
- .scm-file {
508
- border-radius: 8px;
509
- }
510
-
511
- .session-item.active,
512
- .project-item.active {
513
- background: rgba(38, 34, 24, 0.05);
514
- border: none;
515
- box-shadow: inset 2px 0 0 var(--accent);
516
- }
517
-
518
- .session-item.active {
519
- padding: 8px 10px;
520
- }
521
-
522
- .project-item.active {
523
- padding: 7px 10px;
524
- }
525
-
526
- /* ---- 11. 代码块与终端:纸凹版 + 暖墨终端 ---- */
527
- .codeblock {
528
- background: var(--code-bg);
529
- border: 1px solid var(--border-soft);
530
- border-radius: 3px;
531
- box-shadow: none;
532
- }
533
-
534
- .codeblock pre,
535
- .msg-text pre {
536
- background: var(--code-bg);
537
- color: var(--code-text);
538
- }
539
-
540
- /* ---- 11b. 语法高亮适配纸面(全局捆绑的是 github-dark,必须整套覆盖)---- */
541
- .hljs {
542
- color: #33301f;
543
- background: transparent;
544
- }
545
-
546
- .hljs-comment,
547
- .hljs-quote {
548
- color: #948b78;
549
- }
550
-
551
- .hljs-keyword,
552
- .hljs-selector-tag,
553
- .hljs-doctag,
554
- .hljs-formula {
555
- color: #a03618;
556
- }
557
-
558
- .hljs-string,
559
- .hljs-regexp {
560
- color: #3f6c4f;
561
- }
562
-
563
- .hljs-number,
564
- .hljs-literal {
565
- color: #8a5c1e;
566
- }
567
-
568
- .hljs-title,
569
- .hljs-title.function_,
570
- .hljs-section {
571
- color: #6b3fa0;
572
- }
573
-
574
- .hljs-attr,
575
- .hljs-attribute,
576
- .hljs-variable,
577
- .hljs-template-variable,
578
- .hljs-type,
579
- .hljs-name {
580
- color: #8a4a2e;
581
- }
582
-
583
- .hljs-built_in {
584
- color: #2f5f8a;
585
- }
586
-
587
- .hljs-deletion {
588
- color: #7a2718;
589
- background: rgba(194, 64, 42, 0.12);
590
- }
591
-
592
- .hljs-addition {
593
- color: #2f6b4f;
594
- background: rgba(61, 122, 85, 0.14);
595
- }
596
-
597
- /* ---- 12. 弹层与菜单:纸面实底 + hairline,方角家族 ---- */
598
- .modal,
599
- .tool-info-modal,
600
- .settings-modal,
601
- .model-modal,
602
- .tpl-modal,
603
- .dd-menu,
604
- .dialog-inline {
605
- border-radius: 4px;
606
- border: 1px solid var(--border);
607
- box-shadow:
608
- 0 1px 2px rgba(38, 34, 24, 0.06),
609
- 0 16px 40px -12px rgba(38, 34, 24, 0.25);
610
- }
611
-
612
- .dd-menu {
613
- background: var(--menu-bg);
614
- border: 1px solid var(--border);
615
- border-radius: 4px;
616
- box-shadow: 0 12px 32px -8px rgba(38, 34, 24, 0.28);
617
- }
618
-
619
- .dd-item:hover,
620
- .dd-all-item:hover {
621
- background: var(--accent-soft);
622
- }
623
-
624
- /* ---- 13. chips / 徽标:账目标签体 ---- */
625
- .chip {
626
- background: var(--chip-bg);
627
- border: 1px solid var(--border-soft);
628
- border-radius: 2px;
629
- box-shadow: none;
630
- font-family: var(--mono);
631
- font-size: 11px;
632
- }
633
-
634
- /* ---- 14. 滚动条:细墨线 ---- */
635
- ::-webkit-scrollbar {
636
- width: 6px;
637
- height: 6px;
638
- }
639
-
640
- ::-webkit-scrollbar-track {
641
- background: transparent;
642
- }
643
-
644
- ::-webkit-scrollbar-thumb {
645
- background: var(--scroll-thumb);
646
- border-radius: 0;
647
- }
648
-
649
- ::-webkit-scrollbar-thumb:hover {
650
- background: var(--scroll-thumb-hover);
651
- }
652
-
653
- /* ---- 15. 通知条:hairline 左线式 ---- */
654
- .notice-err,
655
- .notice-warn,
656
- .notice-info {
657
- border-radius: 0;
658
- border-width: 1px;
659
- border-left-width: 3px;
660
- }
1
+ /* themes/bases/zhupi-base.css — 朱批排版语言基底
2
+ * 包含:稿纸排版语言、全宽文档流、台账行工具调用、※脚注体深度思考、
3
+ * 左缘朱笔输入栏、印章风格徽标。
4
+ */
5
+
6
+ /* =========================================================================
7
+ 朱批 · Vermilion Manuscript
8
+ 整个界面从「聊天气泡」重构成「一张被 AI 做批注的稿纸」:
9
+ · 无气泡、无头像 —— 人机内容同处一条全宽文档流
10
+ · 工具调用 = 台账行(等宽小字 + 点线引导符)
11
+ · 思考流 = 脚注体(※ 起手)
12
+ · 输入框 = 命令栏,左缘一抹朱笔
13
+ · 色彩只有语义:墨、淡墨、朱(唯一强调)、印绿
14
+ ========================================================================= */
15
+
16
+ /* ---- 0. 稿纸底色:旧纸的暗角与天头微光,纯渐变无图 ---- */
17
+ body,
18
+ .app-root {
19
+ background-color: var(--bg);
20
+ background-image:
21
+ radial-gradient(ellipse 90% 55% at 50% -8%, rgba(255, 253, 247, 0.85) 0%, rgba(255, 253, 247, 0) 70%),
22
+ radial-gradient(ellipse 100% 70% at 108% 112%, rgba(166, 140, 100, 0.1) 0%, rgba(166, 140, 100, 0) 70%);
23
+ background-attachment: fixed;
24
+ }
25
+
26
+ ::selection {
27
+ background: color-mix(in srgb, var(--accent) 25%, transparent);
28
+ }
29
+
30
+ /* ---- 1. 顶栏隐形化:无底色层次,只一条 hairline,印章品牌 ---- */
31
+ .topbar {
32
+ background: var(--topbar-bg);
33
+ border-bottom: 1px solid var(--border-soft);
34
+ box-shadow: none;
35
+ }
36
+
37
+ .brand-name {
38
+ font-family: var(--serif);
39
+ font-weight: 700;
40
+ letter-spacing: 0.06em;
41
+ }
42
+
43
+ /* 顶栏控件全部素色化:无底无框,hover 才现 hairline。兜底所有 button /
44
+ * [role=button]——不管类名是谁(基线 chip / 插件注入 / capsule 等),顶栏里
45
+ * 一律裸图标,dropdown 触发器不许再带盒子。 */
46
+ .topbar button,
47
+ .topbar [role="button"],
48
+ .topbar a.chip,
49
+ .topbar .chip {
50
+ background: transparent;
51
+ border: 1px solid transparent;
52
+ border-radius: 3px;
53
+ box-shadow: none;
54
+ transition:
55
+ border-color 0.15s ease,
56
+ color 0.15s ease;
57
+ }
58
+
59
+ .topbar button:hover,
60
+ .topbar [role="button"]:hover,
61
+ .topbar a.chip:hover,
62
+ .topbar .chip:hover {
63
+ border-color: var(--border);
64
+ background: transparent;
65
+ }
66
+
67
+ /* 与基线「顶栏归一」契约对齐(分层后的显式复刻):
68
+ 基线 `@layer base` 里那三条顶栏归一规则(裸幽灵化常态 / .active 强调底 /
69
+ .newchat·.github 圆角组)原本靠优先级补丁压过主题的通用 `.chip`;分层后 baseline
70
+ 不再能压 theme(普通声明层序恒由 theme 抬胜)。这里把它们在这些控件上**当时实际
71
+ 生效的值**显式写出来,与重构前的渲染结果逐像素一致(例:`.chip` 的 11px 字号在
72
+ 顶栏里从来没生效过,顶栏一直是基线的 12.5px)。 */
73
+ .topbar .chip,
74
+ .topbar .tb-tab,
75
+ .topbar button,
76
+ .topbar a.chip,
77
+ .topbar [role="button"],
78
+ .topbar [role="tab"] {
79
+ font-size: 12.5px;
80
+ }
81
+
82
+ .topbar button,
83
+ .topbar .chip.github,
84
+ .topbar .chip.newchat,
85
+ .topbar .chip.ephemeral-chat-btn,
86
+ .topbar .chip.sandbox-chip {
87
+ border-radius: 8px;
88
+ }
89
+
90
+ .topbar .chip.active,
91
+ .topbar .tb-tab.active {
92
+ background: var(--accent-soft);
93
+ }
94
+
95
+ .topbar .dropdown {
96
+ background: transparent;
97
+ border: none;
98
+ box-shadow: none;
99
+ }
100
+
101
+ /* ---- 2. 消息区:文档化排版 ----
102
+ * 消息区左右边缘与输入框/快捷短语行保持一致严丝合缝对齐(继承基线列几何)。 */
103
+
104
+ .msg {
105
+ position: relative;
106
+ padding: 2px 0 10px;
107
+ }
108
+
109
+ .msg-user {
110
+ padding-bottom: 2px;
111
+ }
112
+
113
+ .msg-user .msg-actions {
114
+ margin-top: 2px;
115
+ }
116
+
117
+ .msg-user + .msg-assistant {
118
+ padding-top: 2px;
119
+ }
120
+
121
+ .msg-user + .msg-assistant .msg-body > :first-child {
122
+ margin-top: 2px;
123
+ }
124
+
125
+ /* 操作按钮:卡头只有自己的复制键(.chead-copy),消息级按钮(复制三件套 /
126
+ 分叉 / 回滚 / 朗读)统一在底部 .msg-actions 行,流内排在消息气泡/正文下边,
127
+ 桌面端与手机端保持一致。 */
128
+
129
+ /* 角色行:书目式小标 */
130
+ .msg-meta {
131
+ margin-bottom: 4px;
132
+ }
133
+
134
+ /* head 行左右内边距归零:折叠三角贴齐列左缘(文字同一条线),右侧复制
135
+ * 按钮贴右缘——head 无边框后,钮与缘之间不能悬空。三角形 28px 盒内 16px
136
+ * 图标居中内缩 6px,用负外边距做光学对齐。 */
137
+ .chead {
138
+ padding-left: 0;
139
+ padding-right: 0;
140
+ }
141
+
142
+ .chead-toggle {
143
+ margin-left: -6px;
144
+ }
145
+
146
+ /* 正文块上的单一复制键去重:卡头现在只有自己的复制键,消息级复制
147
+ (纯文本 / Markdown / 长图三件套)统一在底部 .msg-actions 行里。 */
148
+ .msg-text-copy {
149
+ display: none;
150
+ }
151
+
152
+ /* head 悬浮不再出现底色块:纸面保持完全平整(键盘 focus 的 outline 保留,
153
+ * 只服务键盘导航) */
154
+ div.chead[role="button"]:hover,
155
+ .chead-toggle:hover {
156
+ background: transparent;
157
+ }
158
+
159
+ .msg-role {
160
+ font-size: 10.5px;
161
+ font-weight: 600;
162
+ letter-spacing: 0.18em;
163
+ color: var(--text-faint);
164
+ }
165
+
166
+ .msg-time {
167
+ font-family: var(--mono);
168
+ font-size: 10.5px;
169
+ }
170
+
171
+ /* ---- 3. 用户输入:去气泡,「起手式,稿纸批注体 ---- */
172
+ .msg-user .msg-body {
173
+ position: relative;
174
+ background: transparent;
175
+ border: none;
176
+ border-radius: 0;
177
+ padding: 0 0 0 1.5em;
178
+ font-family: var(--serif);
179
+ font-size: 15.5px;
180
+ font-weight: 600;
181
+ line-height: 1.8;
182
+ color: var(--text);
183
+ }
184
+
185
+ .msg-user .msg-body::before {
186
+ content: "「";
187
+ position: absolute;
188
+ left: 0;
189
+ top: -0.12em;
190
+ font-family: var(--serif);
191
+ font-size: 1.3em;
192
+ font-weight: 700;
193
+ color: var(--accent);
194
+ line-height: 1;
195
+ }
196
+
197
+ /* ---- 4. 助手正文:衬线文档体,直接是书页 ---- */
198
+ .msg-assistant .msg-text {
199
+ font-family: var(--serif);
200
+ font-size: 15px;
201
+ line-height: 1.85;
202
+ color: var(--text);
203
+ }
204
+
205
+ .msg-assistant .msg-text p:first-child {
206
+ margin-top: 0;
207
+ }
208
+
209
+ .msg-assistant .msg-text h1,
210
+ .msg-assistant .msg-text h2,
211
+ .msg-assistant .msg-text h3,
212
+ .msg-assistant .msg-text h4 {
213
+ font-family: var(--serif);
214
+ font-weight: 700;
215
+ color: var(--md-strong);
216
+ letter-spacing: 0.02em;
217
+ }
218
+
219
+ .msg-assistant .msg-text blockquote {
220
+ border-left: 2px solid var(--accent-soft);
221
+ font-style: normal;
222
+ color: var(--text-dim);
223
+ }
224
+
225
+ .msg-assistant .msg-text a {
226
+ color: var(--link);
227
+ text-decoration: underline dotted;
228
+ text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent);
229
+ text-underline-offset: 3px;
230
+ }
231
+
232
+ .msg-assistant .msg-text hr {
233
+ border: none;
234
+ border-top: 1px dotted var(--border);
235
+ }
236
+
237
+ .msg-assistant .msg-text code {
238
+ background: var(--code-bg);
239
+ color: var(--code-text, var(--accent));
240
+ border-radius: 2px;
241
+ padding: 1px 5px;
242
+ }
243
+
244
+ /* ---- 5. 工具调用 = 台账行:无框无底,点线引导符填空 ---- */
245
+ .toolcall {
246
+ margin: 1px 0;
247
+ border: none;
248
+ border-radius: 0;
249
+ background: transparent;
250
+ box-shadow: none;
251
+ overflow: visible;
252
+ }
253
+
254
+ .toolcall-head {
255
+ display: flex;
256
+ align-items: center;
257
+ min-height: 24px;
258
+ padding: 2px 0;
259
+ font-family: var(--mono);
260
+ font-size: 12px;
261
+ }
262
+
263
+ .toolcall-name {
264
+ font-family: var(--mono);
265
+ font-weight: 500;
266
+ font-size: 12px;
267
+ letter-spacing: 0.02em;
268
+ color: var(--text-dim);
269
+ }
270
+
271
+ /* 点线引导符:账本目录式填空,落在名字与状态之间 */
272
+ .toolcall .toolcall-spacer {
273
+ border-bottom: 1px dotted var(--border);
274
+ height: 0.7em;
275
+ margin: 0 10px;
276
+ }
277
+
278
+ .toolcall-status {
279
+ color: var(--text-faint);
280
+ }
281
+
282
+ .toolcall.run .toolcall-name {
283
+ color: var(--accent);
284
+ }
285
+
286
+ .toolcall.run .toolcall-status {
287
+ color: var(--accent);
288
+ }
289
+
290
+ .toolcall.run .toolcall-head {
291
+ background: transparent;
292
+ border-left: none;
293
+ }
294
+
295
+ .toolcall.ok .toolcall-status {
296
+ color: var(--green);
297
+ }
298
+
299
+ .toolcall.err .toolcall-status {
300
+ color: var(--red);
301
+ }
302
+
303
+ .toolcall.err .toolcall-name {
304
+ color: var(--red);
305
+ }
306
+
307
+ /* 展开的参数/输出:并入台账,无框零内边距平面文本(--code-border/--code-pad
308
+ 已按全透明主题机制置 transparent/0,连带 .termline 一并生效) */
309
+ .toolcall-args pre,
310
+ .toolcall-output pre {
311
+ background: transparent;
312
+ border: none;
313
+ border-radius: 0;
314
+ padding: 0;
315
+ }
316
+
317
+ /* 工具卡体:去掉分隔线与内边距,参数/输出与卡头同距平铺 */
318
+ .toolcall-body {
319
+ border-top: none;
320
+ padding: 0 0 6px;
321
+ }
322
+
323
+ /* 卡内重复的终端图标只剩噪音(卡头已有工具图标),参照全透明主题隐藏 */
324
+ .termline-icon {
325
+ display: none;
326
+ }
327
+
328
+ .toolcall-output-label {
329
+ margin-top: 6px;
330
+ }
331
+
332
+ .toolcall-kill {
333
+ border-radius: 3px;
334
+ }
335
+
336
+ /* ---- 6. 思考流 = 脚注:※ 起手,淡墨小字 ---- */
337
+ .thinking {
338
+ margin: 4px 0;
339
+ border: none;
340
+ border-radius: 0;
341
+ background: transparent;
342
+ box-shadow: none;
343
+ }
344
+
345
+ .thinking-head {
346
+ font-size: 12px;
347
+ color: var(--text-faint);
348
+ }
349
+
350
+ .thinking-body {
351
+ border-top: none;
352
+ font-style: normal;
353
+ font-size: 12.5px;
354
+ color: var(--text-dim);
355
+ background: transparent;
356
+ position: relative;
357
+ padding: 2px 14px 2px 1.6em;
358
+ }
359
+
360
+ .thinking-body::before {
361
+ content: "※";
362
+ position: absolute;
363
+ left: 0;
364
+ top: 2px;
365
+ color: var(--text-faint);
366
+ }
367
+
368
+ .thinking-live .thinking-toggle,
369
+ .thinking-live-label {
370
+ color: var(--accent);
371
+ }
372
+
373
+ /* ---- 7. 折叠摘要行 / 排队提示:并入台账体系 ---- */
374
+ .msg-collapsed {
375
+ background: transparent;
376
+ border: none;
377
+ border-bottom: 1px dotted var(--border-soft);
378
+ border-radius: 0;
379
+ box-shadow: none;
380
+ padding-left: 0;
381
+ padding-right: 0;
382
+ }
383
+
384
+ .msg-collapsed-action::before {
385
+ margin-left: 0;
386
+ }
387
+
388
+ .msg-error {
389
+ background: var(--red-soft);
390
+ border: none;
391
+ border-left: 3px solid var(--red);
392
+ border-radius: 0;
393
+ font-family: var(--serif);
394
+ }
395
+
396
+ /* ---- 8. 输入区 = 命令栏:与其他主题同构——只动颜色不动几何,
397
+ 朱笔以 inset 阴影画在边框内侧,外缘与消息列/chips 恒对齐 ---- */
398
+ .inputbar {
399
+ background: transparent;
400
+ }
401
+
402
+ .inputbox {
403
+ background: var(--inputbox-bg);
404
+ border: none;
405
+ border-radius: 3px;
406
+ box-shadow: inset 3px 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent);
407
+ transition:
408
+ border-color 0.2s ease,
409
+ box-shadow 0.2s ease;
410
+ }
411
+
412
+ .inputbox:focus-within {
413
+ border: none;
414
+ box-shadow: inset 3px 0 0 0 var(--accent);
415
+ }
416
+
417
+ .btn.send {
418
+ background: var(--send-blue);
419
+ color: #f6f2e9;
420
+ border-radius: 50%;
421
+ box-shadow: none;
422
+ font-weight: 600;
423
+ }
424
+
425
+ .btn.send:hover {
426
+ background: var(--send-blue-hover);
427
+ color: var(--on-send-blue-hover);
428
+ }
429
+
430
+ .btn.stop {
431
+ background: var(--stop-red);
432
+ color: #f6f2e9;
433
+ border-radius: 50%;
434
+ }
435
+
436
+ /* 输入框底部模型选择、思考强度、预设等按钮:去边框、透明底,hover 现 hairline */
437
+ .composer-tools {
438
+ border-top: none;
439
+ }
440
+
441
+ .composer-tools .chip,
442
+ .composer-tools .capsule-segment {
443
+ font-size: 13px;
444
+ padding: 4px 10px;
445
+ gap: 6px;
446
+ background: transparent;
447
+ border: 1px solid transparent;
448
+ box-shadow: none;
449
+ border-radius: 3px;
450
+ transition:
451
+ border-color 0.15s ease,
452
+ background 0.15s ease;
453
+ }
454
+
455
+ .composer-tools .model-thinking-capsule {
456
+ background: transparent;
457
+ border: none;
458
+ box-shadow: none;
459
+ padding: 0;
460
+ }
461
+
462
+ .composer-tools .model-thinking-capsule .capsule-divider {
463
+ display: none;
464
+ }
465
+
466
+ .composer-tools .chip:hover,
467
+ .composer-tools .capsule-segment:hover {
468
+ border-color: var(--border);
469
+ background: transparent;
470
+ }
471
+
472
+ .composer-tools-left {
473
+ gap: 6px;
474
+ }
475
+
476
+ .composer-tools .chip-model,
477
+ .composer-tools .chip-sub,
478
+ .composer-tools .capsule-model-name,
479
+ .composer-tools .capsule-thinking-text {
480
+ font-size: 12.5px;
481
+ }
482
+
483
+ /* ---- 9. 底栏 / 状态栏:hairline 收边 ---- */
484
+ .statusbar {
485
+ background: var(--statusbar-bg);
486
+ border-top: 1px solid var(--border-soft);
487
+ box-shadow: none;
488
+ }
489
+
490
+ .goalbar {
491
+ background: transparent;
492
+ border-top: 1px solid var(--border-soft);
493
+ box-shadow: none;
494
+ }
495
+
496
+ /* ---- 10. 左右面板:素纸文件栏 ----
497
+ * 激活态不做红洗(accent-soft 洗在纸上是一块脏粉),改为中性墨面 5% +
498
+ * 左缘 2px 朱标;圆角统一 8px。 */
499
+ .panel {
500
+ background: var(--panel-bg);
501
+ border-color: var(--border-soft);
502
+ }
503
+
504
+ .session-item,
505
+ .project-item,
506
+ .file-item,
507
+ .scm-file {
508
+ border-radius: 8px;
509
+ }
510
+
511
+ .session-item.active,
512
+ .project-item.active {
513
+ background: rgba(38, 34, 24, 0.05);
514
+ border: none;
515
+ box-shadow: inset 2px 0 0 var(--accent);
516
+ }
517
+
518
+ .session-item.active {
519
+ padding: 8px 10px;
520
+ }
521
+
522
+ .project-item.active {
523
+ padding: 7px 10px;
524
+ }
525
+
526
+ /* ---- 11. 代码块与终端:纸凹版 + 暖墨终端 ---- */
527
+ .codeblock {
528
+ background: var(--code-bg);
529
+ border: 1px solid var(--border-soft);
530
+ border-radius: 3px;
531
+ box-shadow: none;
532
+ }
533
+
534
+ .codeblock pre,
535
+ .msg-text pre {
536
+ background: var(--code-bg);
537
+ color: var(--code-text);
538
+ }
539
+
540
+ /* ---- 11b. 语法高亮适配纸面(全局捆绑的是 github-dark,必须整套覆盖)---- */
541
+ .hljs {
542
+ color: #33301f;
543
+ background: transparent;
544
+ }
545
+
546
+ .hljs-comment,
547
+ .hljs-quote {
548
+ color: #948b78;
549
+ }
550
+
551
+ .hljs-keyword,
552
+ .hljs-selector-tag,
553
+ .hljs-doctag,
554
+ .hljs-formula {
555
+ color: #a03618;
556
+ }
557
+
558
+ .hljs-string,
559
+ .hljs-regexp {
560
+ color: #3f6c4f;
561
+ }
562
+
563
+ .hljs-number,
564
+ .hljs-literal {
565
+ color: #8a5c1e;
566
+ }
567
+
568
+ .hljs-title,
569
+ .hljs-title.function_,
570
+ .hljs-section {
571
+ color: #6b3fa0;
572
+ }
573
+
574
+ .hljs-attr,
575
+ .hljs-attribute,
576
+ .hljs-variable,
577
+ .hljs-template-variable,
578
+ .hljs-type,
579
+ .hljs-name {
580
+ color: #8a4a2e;
581
+ }
582
+
583
+ .hljs-built_in {
584
+ color: #2f5f8a;
585
+ }
586
+
587
+ .hljs-deletion {
588
+ color: #7a2718;
589
+ background: rgba(194, 64, 42, 0.12);
590
+ }
591
+
592
+ .hljs-addition {
593
+ color: #2f6b4f;
594
+ background: rgba(61, 122, 85, 0.14);
595
+ }
596
+
597
+ /* ---- 12. 弹层与菜单:纸面实底 + hairline,方角家族 ---- */
598
+ .modal,
599
+ .tool-info-modal,
600
+ .settings-modal,
601
+ .model-modal,
602
+ .tpl-modal,
603
+ .dd-menu,
604
+ .dialog-inline {
605
+ border-radius: 4px;
606
+ border: 1px solid var(--border);
607
+ box-shadow:
608
+ 0 1px 2px rgba(38, 34, 24, 0.06),
609
+ 0 16px 40px -12px rgba(38, 34, 24, 0.25);
610
+ }
611
+
612
+ .dd-menu {
613
+ background: var(--menu-bg);
614
+ border: 1px solid var(--border);
615
+ border-radius: 4px;
616
+ box-shadow: 0 12px 32px -8px rgba(38, 34, 24, 0.28);
617
+ }
618
+
619
+ .dd-item:hover,
620
+ .dd-all-item:hover {
621
+ background: var(--accent-soft);
622
+ }
623
+
624
+ /* ---- 13. chips / 徽标:账目标签体 ---- */
625
+ .chip {
626
+ background: var(--chip-bg);
627
+ border: 1px solid var(--border-soft);
628
+ border-radius: 2px;
629
+ box-shadow: none;
630
+ font-family: var(--mono);
631
+ font-size: 11px;
632
+ }
633
+
634
+ /* ---- 14. 滚动条:细墨线 ---- */
635
+ ::-webkit-scrollbar {
636
+ width: 6px;
637
+ height: 6px;
638
+ }
639
+
640
+ ::-webkit-scrollbar-track {
641
+ background: transparent;
642
+ }
643
+
644
+ ::-webkit-scrollbar-thumb {
645
+ background: var(--scroll-thumb);
646
+ border-radius: 0;
647
+ }
648
+
649
+ ::-webkit-scrollbar-thumb:hover {
650
+ background: var(--scroll-thumb-hover);
651
+ }
652
+
653
+ /* ---- 15. 通知条:hairline 左线式 ---- */
654
+ .notice-err,
655
+ .notice-warn,
656
+ .notice-info {
657
+ border-radius: 0;
658
+ border-width: 1px;
659
+ border-left-width: 3px;
660
+ }