codexmate 0.0.30 → 0.0.32

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 (144) hide show
  1. package/README.md +363 -421
  2. package/README.zh.md +371 -354
  3. package/cli/agents-files.js +224 -224
  4. package/cli/archive-helpers.js +446 -446
  5. package/cli/auth-profiles.js +375 -375
  6. package/cli/builtin-proxy.js +1725 -1725
  7. package/cli/claude-proxy.js +1022 -1022
  8. package/cli/config-bootstrap.js +402 -402
  9. package/cli/config-health.js +454 -454
  10. package/cli/doctor-core.js +903 -903
  11. package/cli/import-skills-url.js +356 -356
  12. package/cli/local-bridge.js +324 -324
  13. package/cli/openai-bridge.js +1653 -1653
  14. package/cli/openclaw-config.js +629 -629
  15. package/cli/session-convert-args.js +69 -65
  16. package/cli/session-convert-io.js +82 -82
  17. package/cli/session-convert.js +150 -43
  18. package/cli/session-usage.concurrent.js +28 -28
  19. package/cli/session-usage.js +118 -118
  20. package/cli/session-usage.models.js +176 -176
  21. package/cli/skills.js +1141 -1141
  22. package/cli/zip-commands.js +510 -510
  23. package/cli.js +15829 -15481
  24. package/lib/automation.js +404 -404
  25. package/lib/cli-file-utils.js +151 -151
  26. package/lib/cli-models-utils.js +440 -440
  27. package/lib/cli-network-utils.js +190 -190
  28. package/lib/cli-path-utils.js +85 -85
  29. package/lib/cli-session-utils.js +121 -121
  30. package/lib/cli-sessions.js +426 -417
  31. package/lib/cli-utils.js +155 -155
  32. package/lib/cli-webhook.js +126 -126
  33. package/lib/download-artifacts.js +92 -92
  34. package/lib/mcp-stdio.js +453 -453
  35. package/lib/task-orchestrator.js +869 -869
  36. package/lib/text-diff.js +303 -303
  37. package/lib/workflow-engine.js +340 -340
  38. package/package.json +76 -76
  39. package/plugins/README.md +20 -20
  40. package/plugins/README.zh-CN.md +20 -20
  41. package/plugins/prompt-templates/comment-polish/index.mjs +25 -25
  42. package/plugins/prompt-templates/computed.mjs +253 -253
  43. package/plugins/prompt-templates/index.mjs +8 -8
  44. package/plugins/prompt-templates/manifest.mjs +15 -15
  45. package/plugins/prompt-templates/methods.mjs +553 -553
  46. package/plugins/prompt-templates/overview.mjs +91 -91
  47. package/plugins/prompt-templates/ownership.mjs +19 -19
  48. package/plugins/prompt-templates/rule-ack/index.mjs +21 -21
  49. package/plugins/prompt-templates/storage.mjs +64 -64
  50. package/plugins/registry.mjs +16 -16
  51. package/web-ui/app.js +647 -645
  52. package/web-ui/index.html +36 -36
  53. package/web-ui/logic.agents-diff.mjs +386 -386
  54. package/web-ui/logic.claude.mjs +168 -168
  55. package/web-ui/logic.codex.mjs +69 -69
  56. package/web-ui/logic.mjs +5 -5
  57. package/web-ui/logic.runtime.mjs +128 -128
  58. package/web-ui/logic.session-convert.mjs +70 -70
  59. package/web-ui/logic.sessions.mjs +781 -765
  60. package/web-ui/modules/api.mjs +90 -90
  61. package/web-ui/modules/app.computed.dashboard.mjs +248 -248
  62. package/web-ui/modules/app.computed.index.mjs +17 -17
  63. package/web-ui/modules/app.computed.main-tabs.mjs +205 -205
  64. package/web-ui/modules/app.computed.session.mjs +693 -999
  65. package/web-ui/modules/app.constants.mjs +15 -15
  66. package/web-ui/modules/app.methods.agents.mjs +651 -632
  67. package/web-ui/modules/app.methods.claude-config.mjs +200 -200
  68. package/web-ui/modules/app.methods.codex-config.mjs +861 -917
  69. package/web-ui/modules/app.methods.index.mjs +94 -94
  70. package/web-ui/modules/app.methods.install.mjs +205 -205
  71. package/web-ui/modules/app.methods.navigation.mjs +774 -774
  72. package/web-ui/modules/app.methods.openclaw-core.mjs +814 -814
  73. package/web-ui/modules/app.methods.openclaw-editing.mjs +372 -372
  74. package/web-ui/modules/app.methods.openclaw-persist.mjs +369 -369
  75. package/web-ui/modules/app.methods.providers.mjs +529 -529
  76. package/web-ui/modules/app.methods.runtime.mjs +345 -345
  77. package/web-ui/modules/app.methods.session-actions.mjs +591 -593
  78. package/web-ui/modules/app.methods.session-browser.mjs +1012 -984
  79. package/web-ui/modules/app.methods.session-timeline.mjs +479 -479
  80. package/web-ui/modules/app.methods.session-trash.mjs +438 -438
  81. package/web-ui/modules/app.methods.startup-claude.mjs +537 -534
  82. package/web-ui/modules/app.methods.task-orchestration.mjs +556 -556
  83. package/web-ui/modules/app.methods.webhook.mjs +79 -79
  84. package/web-ui/modules/config-mode.computed.mjs +124 -124
  85. package/web-ui/modules/config-template-confirm-pref.mjs +33 -33
  86. package/web-ui/modules/i18n.dict.mjs +3177 -3146
  87. package/web-ui/modules/i18n.mjs +62 -62
  88. package/web-ui/modules/plugins.computed.mjs +3 -3
  89. package/web-ui/modules/plugins.methods.mjs +3 -3
  90. package/web-ui/modules/plugins.storage.mjs +11 -11
  91. package/web-ui/modules/provider-url-display.mjs +17 -17
  92. package/web-ui/modules/sessions-filters-url.mjs +85 -85
  93. package/web-ui/modules/skills.computed.mjs +107 -107
  94. package/web-ui/modules/skills.methods.mjs +482 -482
  95. package/web-ui/partials/index/layout-footer.html +13 -13
  96. package/web-ui/partials/index/layout-header.html +503 -500
  97. package/web-ui/partials/index/modal-config-template-agents.html +185 -174
  98. package/web-ui/partials/index/modal-confirm-toast.html +32 -32
  99. package/web-ui/partials/index/modal-health-check.html +45 -45
  100. package/web-ui/partials/index/modal-openclaw-config.html +280 -280
  101. package/web-ui/partials/index/modal-skills.html +200 -200
  102. package/web-ui/partials/index/modals-basic.html +162 -162
  103. package/web-ui/partials/index/panel-config-claude.html +136 -194
  104. package/web-ui/partials/index/panel-config-codex.html +197 -337
  105. package/web-ui/partials/index/panel-config-openclaw.html +83 -83
  106. package/web-ui/partials/index/panel-dashboard.html +219 -219
  107. package/web-ui/partials/index/panel-docs.html +115 -147
  108. package/web-ui/partials/index/panel-market.html +177 -177
  109. package/web-ui/partials/index/panel-orchestration.html +391 -391
  110. package/web-ui/partials/index/panel-plugins.html +253 -253
  111. package/web-ui/partials/index/panel-sessions.html +313 -308
  112. package/web-ui/partials/index/panel-settings.html +190 -190
  113. package/web-ui/partials/index/panel-trash.html +83 -88
  114. package/web-ui/partials/index/panel-usage.html +138 -371
  115. package/web-ui/res/json5.min.js +1 -1
  116. package/web-ui/res/vue.global.prod.js +13 -13
  117. package/web-ui/session-helpers.mjs +591 -594
  118. package/web-ui/source-bundle.cjs +233 -233
  119. package/web-ui/styles/base-theme.css +281 -281
  120. package/web-ui/styles/bridge-pool.css +197 -0
  121. package/web-ui/styles/controls-forms.css +433 -422
  122. package/web-ui/styles/dashboard.css +406 -406
  123. package/web-ui/styles/docs-panel.css +245 -271
  124. package/web-ui/styles/feedback.css +108 -108
  125. package/web-ui/styles/health-check-dialog.css +144 -144
  126. package/web-ui/styles/layout-shell.css +638 -626
  127. package/web-ui/styles/modals-core.css +466 -466
  128. package/web-ui/styles/navigation-panels.css +391 -391
  129. package/web-ui/styles/openclaw-structured.css +266 -266
  130. package/web-ui/styles/plugins-panel.css +564 -564
  131. package/web-ui/styles/responsive.css +392 -454
  132. package/web-ui/styles/sessions-list.css +647 -417
  133. package/web-ui/styles/sessions-preview.css +407 -407
  134. package/web-ui/styles/sessions-toolbar-trash.css +518 -334
  135. package/web-ui/styles/sessions-usage.css +588 -1040
  136. package/web-ui/styles/settings-panel.css +349 -349
  137. package/web-ui/styles/skills-list.css +305 -305
  138. package/web-ui/styles/skills-market.css +429 -429
  139. package/web-ui/styles/task-orchestration.css +822 -822
  140. package/web-ui/styles/titles-cards.css +472 -472
  141. package/web-ui/styles/trash-panel.css +90 -90
  142. package/web-ui/styles/webhook.css +81 -81
  143. package/web-ui/styles.css +24 -23
  144. package/web-ui.html +17 -17
@@ -1,626 +1,638 @@
1
- /* ============================================
2
- 容器
3
- ============================================ */
4
- body::before,
5
- body::after {
6
- pointer-events: none;
7
- }
8
-
9
- /* ============================================
10
- 容器
11
- ============================================ */
12
- .container {
13
- width: 100%;
14
- max-width: none;
15
- margin: 0;
16
- padding: 0;
17
- position: relative;
18
- z-index: 1;
19
- min-height: 100vh;
20
- }
21
-
22
- :root {
23
- --side-rail-width: 248px;
24
- }
25
-
26
- /* ============================================
27
- 布局:双栏(侧栏 + 主区)
28
- ============================================ */
29
- .app-shell {
30
- display: grid;
31
- grid-template-columns: 248px minmax(0, 1fr);
32
- gap: 0;
33
- align-items: stretch;
34
- min-height: 100vh;
35
- height: 100vh;
36
- overflow: hidden;
37
- background: transparent;
38
- }
39
-
40
- .app-shell.standalone {
41
- grid-template-columns: 1fr;
42
- }
43
-
44
- .side-rail {
45
- position: sticky;
46
- top: 0;
47
- align-self: stretch;
48
- display: flex;
49
- flex-direction: column;
50
- gap: 0;
51
- padding: 14px 10px;
52
- background:
53
- linear-gradient(180deg, rgba(255, 252, 248, 0.95) 0%, rgba(255, 248, 241, 0.89) 100%);
54
- border-right: 1px solid rgba(137, 111, 94, 0.10);
55
- border-radius: 0;
56
- box-shadow: 8px 0 28px rgba(92, 68, 52, 0.05), 1px 0 0 rgba(255, 255, 255, 0.5);
57
- min-height: 100vh;
58
- overflow-y: auto;
59
- scrollbar-width: none;
60
- -ms-overflow-style: none;
61
- backdrop-filter: blur(18px) saturate(130%);
62
- }
63
-
64
- .side-rail::-webkit-scrollbar {
65
- display: none;
66
- }
67
-
68
- .side-rail .brand-title {
69
- font-size: 22px;
70
- margin-bottom: 0;
71
- }
72
-
73
- .side-section {
74
- display: flex;
75
- flex-direction: column;
76
- gap: 3px;
77
- padding: 8px 4px;
78
- }
79
-
80
- .side-section + .side-section {
81
- border-top: 1px solid rgba(137, 111, 94, 0.08);
82
- }
83
-
84
- .side-rail-nav {
85
- display: flex;
86
- flex-direction: column;
87
- gap: 0;
88
- flex: 1 1 auto;
89
- }
90
-
91
- .lang-fab {
92
- display: none;
93
- }
94
-
95
- .lang-fab .lang-switch {
96
- width: auto;
97
- }
98
-
99
- .lang-choice {
100
- display: inline-flex;
101
- align-items: center;
102
- gap: 4px;
103
- padding: 4px;
104
- border-radius: 999px;
105
- border: 1px solid rgba(163, 146, 134, 0.32);
106
- background: rgba(255, 253, 252, 0.92);
107
- box-shadow: 0 14px 34px rgba(27, 23, 20, 0.22);
108
- backdrop-filter: blur(10px);
109
- }
110
-
111
- .lang-choice-btn {
112
- min-width: 44px;
113
- height: 30px;
114
- border-radius: 999px;
115
- border: 1px solid transparent;
116
- background: transparent;
117
- color: var(--color-text-secondary);
118
- font-family: var(--font-family-mono);
119
- font-size: 12px;
120
- font-weight: 700;
121
- letter-spacing: 0.08em;
122
- text-transform: uppercase;
123
- transition: background-color var(--transition-fast) var(--ease-smooth), border-color var(--transition-fast) var(--ease-smooth), color var(--transition-fast) var(--ease-smooth), transform var(--transition-fast) var(--ease-smooth);
124
- }
125
-
126
- .lang-choice-btn:hover {
127
- border-color: rgba(163, 146, 134, 0.32);
128
- background: rgba(255, 255, 255, 0.72);
129
- color: var(--color-text-primary);
130
- }
131
-
132
- .lang-choice-btn.active {
133
- border-color: rgba(200, 121, 99, 0.55);
134
- background: rgba(200, 121, 99, 0.14);
135
- color: var(--color-brand-dark);
136
- }
137
-
138
- .lang-choice-btn:active {
139
- transform: translateY(1px);
140
- }
141
-
142
- .lang-fab .lang-switch-track {
143
- box-shadow: 0 14px 34px rgba(27, 23, 20, 0.22);
144
- background: rgba(255, 253, 252, 0.92);
145
- }
146
-
147
- .lang-fab .lang-switch:hover .lang-switch-track {
148
- transform: translateY(-1px);
149
- }
150
-
151
- .lang-fab .lang-switch:active .lang-switch-track {
152
- transform: translateY(0);
153
- }
154
-
155
- .lang-fab .lang-switch-track::after {
156
- opacity: 1;
157
- }
158
-
159
- .lang-fab .lang-switch-text {
160
- color: var(--color-text-primary);
161
- }
162
-
163
- .lang-fab {
164
- position: fixed;
165
- left: 0;
166
- bottom: calc(12px + env(safe-area-inset-bottom, 0px));
167
- width: var(--side-rail-width, 248px);
168
- transform: none;
169
- z-index: 60;
170
- pointer-events: none;
171
- display: flex;
172
- justify-content: center;
173
- }
174
-
175
- .lang-fab .lang-choice {
176
- pointer-events: auto;
177
- position: relative;
178
- z-index: 1;
179
- }
180
-
181
- .lang-fab .lang-switch {
182
- pointer-events: auto;
183
- }
184
-
185
- .lang-fab::before {
186
- content: "";
187
- position: absolute;
188
- inset: -12px -18px;
189
- background: radial-gradient(circle at 50% 70%, rgba(250, 250, 250, 0.92), rgba(250, 250, 250, 0));
190
- filter: blur(2px);
191
- pointer-events: none;
192
- }
193
-
194
- .lang-fab > .lang-switch {
195
- position: relative;
196
- z-index: 1;
197
- }
198
-
199
- .lang-fab .lang-switch-track {
200
- border-color: rgba(163, 146, 134, 0.32);
201
- backdrop-filter: blur(10px);
202
- }
203
-
204
- .lang-fab .lang-switch:hover .lang-switch-track {
205
- border-color: rgba(200, 121, 99, 0.7);
206
- }
207
-
208
- .side-rail-lang {
209
- position: sticky;
210
- bottom: 0;
211
- z-index: 2;
212
- margin-top: auto;
213
- padding: 10px 4px 6px;
214
- background: linear-gradient(180deg, rgba(255, 248, 241, 0), rgba(255, 248, 241, 0.94) 28%);
215
- border-top: 1px solid rgba(137, 111, 94, 0.08);
216
- backdrop-filter: blur(12px);
217
- display: flex;
218
- justify-content: center;
219
- }
220
-
221
- .side-rail-lang .lang-choice {
222
- background: rgba(255, 253, 252, 0.9);
223
- box-shadow: none;
224
- backdrop-filter: none;
225
- }
226
-
227
- .lang-switch {
228
- width: 100%;
229
- border: none;
230
- background: transparent;
231
- padding: 0;
232
- cursor: pointer;
233
- display: flex;
234
- justify-content: center;
235
- align-items: center;
236
- }
237
-
238
- .lang-switch-track {
239
- width: 52px;
240
- height: 34px;
241
- border-radius: 999px;
242
- border: 1px solid rgba(163, 146, 134, 0.38);
243
- background: rgba(255, 253, 252, 0.78);
244
- box-shadow: 0 1px 2px rgba(36, 31, 28, 0.06);
245
- display: grid;
246
- place-items: center;
247
- position: relative;
248
- overflow: hidden;
249
- transition: border-color var(--transition-fast) var(--ease-smooth), background-color var(--transition-fast) var(--ease-smooth), transform var(--transition-fast) var(--ease-smooth);
250
- }
251
-
252
- .lang-switch:hover .lang-switch-track {
253
- border-color: rgba(200, 121, 99, 0.6);
254
- background: rgba(255, 253, 252, 0.92);
255
- transform: translateY(-1px);
256
- }
257
-
258
- .lang-switch:active .lang-switch-track {
259
- transform: translateY(0);
260
- }
261
-
262
- .lang-switch-text {
263
- position: absolute;
264
- inset: 0;
265
- display: grid;
266
- place-items: center;
267
- font-family: var(--font-family-mono);
268
- font-size: 12px;
269
- font-weight: 700;
270
- letter-spacing: 0.08em;
271
- text-transform: uppercase;
272
- color: var(--color-text-secondary);
273
- transition: transform 220ms var(--ease-spring), opacity 220ms var(--ease-spring);
274
- will-change: transform, opacity;
275
- opacity: 0;
276
- transform: translateY(10px);
277
- }
278
-
279
- .lang-switch-track[data-lang="zh"] .lang-switch-zh {
280
- opacity: 1;
281
- transform: translateY(0);
282
- }
283
-
284
- .lang-switch-track[data-lang="zh"] .lang-switch-en {
285
- opacity: 0;
286
- }
287
-
288
- .lang-switch-track[data-lang="en"] .lang-switch-en {
289
- opacity: 1;
290
- transform: translateY(0);
291
- }
292
-
293
- .lang-switch-track[data-lang="en"] .lang-switch-zh {
294
- opacity: 0;
295
- }
296
-
297
- .lang-switch-track::after {
298
- content: "";
299
- position: absolute;
300
- inset: -20px;
301
- background: radial-gradient(circle at 30% 20%, rgba(200, 121, 99, 0.18), rgba(200, 121, 99, 0) 55%);
302
- opacity: 0;
303
- transform: translateY(10px);
304
- transition: opacity 240ms var(--ease-smooth), transform 240ms var(--ease-smooth);
305
- pointer-events: none;
306
- }
307
-
308
- .lang-switch:hover .lang-switch-track::after {
309
- opacity: 1;
310
- transform: translateY(0);
311
- }
312
-
313
- .side-section-title {
314
- font-size: 10px;
315
- font-weight: 700;
316
- color: var(--color-text-muted);
317
- letter-spacing: 0.08em;
318
- text-transform: uppercase;
319
- padding: 0 8px;
320
- margin-bottom: 6px;
321
- opacity: 0.72;
322
- }
323
-
324
- .side-item {
325
- width: 100%;
326
- text-align: left;
327
- padding: 9px 12px 9px 14px;
328
- border-radius: 12px;
329
- border: 1px solid transparent;
330
- background: transparent;
331
- color: var(--color-text-secondary);
332
- cursor: pointer;
333
- transition: border-color 180ms var(--ease-out-expo), background-color 180ms var(--ease-out-expo), color 180ms var(--ease-out-expo), box-shadow 180ms var(--ease-out-expo), transform 180ms var(--ease-out-expo);
334
- display: flex;
335
- flex-direction: column;
336
- gap: 3px;
337
- box-shadow: none;
338
- position: relative;
339
- }
340
-
341
- .side-item::before {
342
- content: "";
343
- position: absolute;
344
- left: 2px;
345
- top: 50%;
346
- transform: translateY(-50%);
347
- width: 3px;
348
- height: 18px;
349
- border-radius: 0 3px 3px 0;
350
- background: transparent;
351
- }
352
-
353
- .side-item:hover {
354
- background: rgba(255, 255, 255, 0.64);
355
- color: var(--color-text-primary);
356
- transform: translateX(2px);
357
- }
358
-
359
- .side-item.active,
360
- .side-item.nav-intent-active {
361
- border-color: rgba(200, 121, 99, 0.22);
362
- background:
363
- linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(200, 121, 99, 0.10));
364
- color: var(--color-brand-dark);
365
- box-shadow: 0 8px 20px rgba(92, 68, 52, 0.06);
366
- }
367
-
368
- .side-item.nav-intent-inactive,
369
- .side-item.active.nav-intent-inactive {
370
- border-color: transparent;
371
- background: transparent;
372
- color: var(--color-text-secondary);
373
- box-shadow: none;
374
- }
375
-
376
- .side-item.active::before,
377
- .side-item.nav-intent-active::before {
378
- background: var(--color-brand);
379
- }
380
-
381
- .side-item.nav-intent-inactive::before,
382
- .side-item.active.nav-intent-inactive::before {
383
- background: transparent;
384
- }
385
-
386
- .side-item-title {
387
- font-size: 13px;
388
- font-weight: 600;
389
- letter-spacing: -0.01em;
390
- line-height: 1.25;
391
- }
392
-
393
- .side-item-meta {
394
- font-size: 11px;
395
- color: var(--color-text-muted);
396
- display: flex;
397
- opacity: 1;
398
- gap: 5px;
399
- flex-wrap: wrap;
400
- line-height: 1.4;
401
- min-height: 1.4em;
402
- }
403
-
404
- .side-item.active .side-item-meta,
405
- .side-item.nav-intent-active .side-item-meta {
406
- color: var(--color-text-secondary);
407
- }
408
-
409
- .side-item-meta > span {
410
- min-width: 0;
411
- overflow-wrap: anywhere;
412
- word-break: break-word;
413
- }
414
-
415
- @media (min-width: 721px) {
416
- body:not(.force-compact) #app > .top-tabs {
417
- display: none;
418
- }
419
- }
420
-
421
- .brand-block {
422
- display: flex;
423
- flex-direction: column;
424
- align-items: flex-start;
425
- gap: 10px;
426
- margin-bottom: 0;
427
- padding: 14px 10px 16px;
428
- border-bottom: 1px solid rgba(137, 111, 94, 0.10);
429
- }
430
-
431
- .brand-head {
432
- display: flex;
433
- align-items: center;
434
- gap: 12px;
435
- }
436
-
437
- .brand-logo {
438
- width: 38px;
439
- height: 38px;
440
- border-radius: 13px;
441
- object-fit: cover;
442
- flex-shrink: 0;
443
- box-shadow:
444
- 0 8px 20px rgba(92, 68, 52, 0.10),
445
- 0 0 0 1px rgba(200, 121, 99, 0.08);
446
- }
447
-
448
- .brand-copy {
449
- display: flex;
450
- flex-direction: column;
451
- gap: 4px;
452
- min-width: 0;
453
- }
454
-
455
- .brand-kicker {
456
- font-size: 11px;
457
- line-height: 1;
458
- letter-spacing: 0.06em;
459
- text-transform: uppercase;
460
- color: var(--color-text-muted);
461
- font-weight: 700;
462
- }
463
-
464
- .brand-subtitle {
465
- font-size: 12px;
466
- line-height: 1.45;
467
- color: var(--color-text-secondary);
468
- max-width: 22ch;
469
- }
470
-
471
- .brand-title {
472
- font-size: 18px;
473
- line-height: 1.15;
474
- font-family: var(--font-family-display);
475
- color: var(--color-text-primary);
476
- letter-spacing: -0.02em;
477
- font-weight: 700;
478
- }
479
-
480
- .github-badge {
481
- display: inline-flex;
482
- align-items: center;
483
- justify-content: space-between;
484
- gap: 10px;
485
- margin-top: 0;
486
- padding: 8px 10px;
487
- border-radius: 8px;
488
- border: 1px solid var(--color-border);
489
- background: var(--color-surface);
490
- color: var(--color-text-secondary);
491
- font-size: var(--font-size-caption);
492
- text-decoration: none;
493
- box-shadow: none;
494
- transition: border-color var(--transition-fast) var(--ease-smooth), background-color var(--transition-fast) var(--ease-smooth), color var(--transition-fast) var(--ease-smooth), box-shadow var(--transition-fast) var(--ease-smooth);
495
- min-width: 0;
496
- backdrop-filter: none;
497
- }
498
-
499
- .github-badge-rail {
500
- width: calc(100% - 24px);
501
- margin: 0 12px 12px;
502
- align-items: center;
503
- justify-content: flex-start;
504
- gap: 8px;
505
- padding: 8px 10px;
506
- border-radius: 13px;
507
- background: rgba(255, 255, 255, 0.62);
508
- border: 1px solid rgba(137, 111, 94, 0.15);
509
- box-shadow: var(--shadow-subtle);
510
- }
511
-
512
- .github-badge:hover {
513
- border-color: var(--color-border-strong);
514
- background: var(--color-surface-alt);
515
- color: var(--color-text-primary);
516
- box-shadow: none;
517
- }
518
-
519
- .github-badge:focus-visible {
520
- outline: 3px solid rgba(200, 121, 99, 0.18);
521
- outline-offset: 2px;
522
- border-color: var(--color-brand);
523
- color: var(--color-text-primary);
524
- background: var(--color-surface);
525
- }
526
-
527
- .github-badge-icon {
528
- width: 16px;
529
- height: 16px;
530
- flex-shrink: 0;
531
- }
532
-
533
- .github-badge-left {
534
- display: inline-flex;
535
- align-items: center;
536
- gap: 6px;
537
- flex-shrink: 0;
538
- }
539
-
540
- .github-badge-label {
541
- font-size: var(--font-size-caption);
542
- font-weight: var(--font-weight-secondary);
543
- color: var(--color-text-secondary);
544
- }
545
-
546
- .github-badge-text {
547
- min-width: 0;
548
- font-family: var(--font-family-mono);
549
- font-size: var(--font-size-caption);
550
- color: var(--color-text-tertiary);
551
- line-height: 1.3;
552
- display: inline-block;
553
- overflow: hidden;
554
- text-overflow: ellipsis;
555
- white-space: nowrap;
556
- }
557
-
558
- .github-badge-text > span {
559
- white-space: nowrap;
560
- }
561
-
562
- .github-owner {
563
- font-weight: 600;
564
- color: var(--color-text-secondary);
565
- }
566
-
567
- .github-sep {
568
- margin: 0 2px;
569
- color: var(--color-text-tertiary);
570
- }
571
-
572
- .github-repo {
573
- font-weight: 600;
574
- color: var(--color-text-primary);
575
- }
576
-
577
- .github-badge-rail .github-badge-text {
578
- display: flex;
579
- flex-direction: column;
580
- align-items: flex-start;
581
- gap: 2px;
582
- white-space: normal;
583
- overflow: visible;
584
- text-overflow: clip;
585
- color: var(--color-text-secondary);
586
- }
587
-
588
- .github-badge-rail .github-sep {
589
- display: none;
590
- }
591
-
592
- .github-badge-rail .github-owner,
593
- .github-badge-rail .github-repo {
594
- font-weight: 600;
595
- }
596
-
597
- .github-badge-rail .github-badge-left {
598
- padding: 4px;
599
- border-radius: 999px;
600
- background: var(--color-brand-light);
601
- }
602
-
603
- .github-badge-rail .github-badge-label {
604
- display: none;
605
- }
606
-
607
- .github-badge-rail:hover {
608
- border-color: var(--color-border-strong);
609
- }
610
-
611
- /* 侧边栏计数徽标 */
612
- .side-item-badge {
613
- display: inline-flex;
614
- align-items: center;
615
- justify-content: center;
616
- min-width: 20px;
617
- height: 20px;
618
- padding: 0 6px;
619
- border-radius: 10px;
620
- background: var(--color-brand);
621
- color: #fff;
622
- font-size: 11px;
623
- font-weight: 700;
624
- line-height: 1;
625
- box-shadow: 0 2px 6px rgba(200, 121, 99, 0.28);
626
- }
1
+ /* ============================================
2
+ 容器
3
+ ============================================ */
4
+ body::before,
5
+ body::after {
6
+ pointer-events: none;
7
+ }
8
+
9
+ /* ============================================
10
+ 容器
11
+ ============================================ */
12
+ .container {
13
+ width: 100%;
14
+ max-width: none;
15
+ margin: 0;
16
+ padding: 0;
17
+ position: relative;
18
+ z-index: 1;
19
+ min-height: 100vh;
20
+ }
21
+
22
+ :root {
23
+ --side-rail-width: 248px;
24
+ }
25
+
26
+ /* ============================================
27
+ 布局:双栏(侧栏 + 主区)
28
+ ============================================ */
29
+ .app-shell {
30
+ display: grid;
31
+ grid-template-columns: 248px minmax(0, 1fr);
32
+ gap: 0;
33
+ align-items: stretch;
34
+ min-height: 100vh;
35
+ height: 100vh;
36
+ overflow: hidden;
37
+ background: transparent;
38
+ }
39
+
40
+ .app-shell.standalone {
41
+ grid-template-columns: 1fr;
42
+ }
43
+
44
+ .side-rail {
45
+ position: sticky;
46
+ top: 0;
47
+ align-self: stretch;
48
+ display: flex;
49
+ flex-direction: column;
50
+ gap: 0;
51
+ padding: 14px 10px;
52
+ background:
53
+ linear-gradient(180deg, rgba(255, 252, 248, 0.95) 0%, rgba(255, 248, 241, 0.89) 100%);
54
+ border-right: 1px solid rgba(137, 111, 94, 0.10);
55
+ border-radius: 0;
56
+ box-shadow: 8px 0 28px rgba(92, 68, 52, 0.05), 1px 0 0 rgba(255, 255, 255, 0.5);
57
+ min-height: 100vh;
58
+ overflow-y: auto;
59
+ scrollbar-width: none;
60
+ -ms-overflow-style: none;
61
+ backdrop-filter: blur(18px) saturate(130%);
62
+ }
63
+
64
+ .side-rail::-webkit-scrollbar {
65
+ display: none;
66
+ }
67
+
68
+ .side-rail .brand-title {
69
+ font-size: 22px;
70
+ margin-bottom: 0;
71
+ }
72
+
73
+ .side-section {
74
+ display: flex;
75
+ flex-direction: column;
76
+ gap: 3px;
77
+ padding: 8px 4px;
78
+ }
79
+
80
+ .side-section + .side-section {
81
+ border-top: 1px solid rgba(137, 111, 94, 0.08);
82
+ }
83
+
84
+ .side-rail-nav {
85
+ display: flex;
86
+ flex-direction: column;
87
+ gap: 0;
88
+ flex: 1 1 auto;
89
+ }
90
+
91
+ .lang-fab {
92
+ display: none;
93
+ }
94
+
95
+ .lang-fab .lang-switch {
96
+ width: auto;
97
+ }
98
+
99
+ .lang-choice {
100
+ display: inline-flex;
101
+ align-items: center;
102
+ gap: 4px;
103
+ padding: 4px;
104
+ border-radius: 999px;
105
+ border: 1px solid rgba(163, 146, 134, 0.32);
106
+ background: rgba(255, 253, 252, 0.92);
107
+ box-shadow: 0 14px 34px rgba(27, 23, 20, 0.22);
108
+ backdrop-filter: blur(10px);
109
+ }
110
+
111
+ .lang-choice-btn {
112
+ min-width: 44px;
113
+ height: 30px;
114
+ border-radius: 999px;
115
+ border: 1px solid transparent;
116
+ background: transparent;
117
+ color: var(--color-text-secondary);
118
+ font-family: var(--font-family-mono);
119
+ font-size: 12px;
120
+ font-weight: 700;
121
+ letter-spacing: 0.08em;
122
+ text-transform: uppercase;
123
+ transition: background-color var(--transition-fast) var(--ease-smooth), border-color var(--transition-fast) var(--ease-smooth), color var(--transition-fast) var(--ease-smooth), transform var(--transition-fast) var(--ease-smooth);
124
+ }
125
+
126
+ .lang-choice-btn:hover {
127
+ border-color: rgba(163, 146, 134, 0.32);
128
+ background: rgba(255, 255, 255, 0.72);
129
+ color: var(--color-text-primary);
130
+ }
131
+
132
+ .lang-choice-btn.active {
133
+ border-color: rgba(200, 121, 99, 0.55);
134
+ background: rgba(200, 121, 99, 0.14);
135
+ color: var(--color-brand-dark);
136
+ }
137
+
138
+ .lang-choice-btn:active {
139
+ transform: translateY(1px);
140
+ }
141
+
142
+ .lang-fab .lang-switch-track {
143
+ box-shadow: 0 14px 34px rgba(27, 23, 20, 0.22);
144
+ background: rgba(255, 253, 252, 0.92);
145
+ }
146
+
147
+ .lang-fab .lang-switch:hover .lang-switch-track {
148
+ transform: translateY(-1px);
149
+ }
150
+
151
+ .lang-fab .lang-switch:active .lang-switch-track {
152
+ transform: translateY(0);
153
+ }
154
+
155
+ .lang-fab .lang-switch-track::after {
156
+ opacity: 1;
157
+ }
158
+
159
+ .lang-fab .lang-switch-text {
160
+ color: var(--color-text-primary);
161
+ }
162
+
163
+ .lang-fab {
164
+ position: fixed;
165
+ left: 0;
166
+ bottom: calc(12px + env(safe-area-inset-bottom, 0px));
167
+ width: var(--side-rail-width, 248px);
168
+ transform: none;
169
+ z-index: 60;
170
+ pointer-events: none;
171
+ justify-content: center;
172
+ }
173
+
174
+ .lang-fab .lang-choice {
175
+ pointer-events: auto;
176
+ position: relative;
177
+ z-index: 1;
178
+ }
179
+
180
+ .lang-fab .lang-switch {
181
+ pointer-events: auto;
182
+ }
183
+
184
+ .lang-fab::before {
185
+ content: "";
186
+ position: absolute;
187
+ inset: -12px -18px;
188
+ background: radial-gradient(circle at 50% 70%, rgba(250, 250, 250, 0.92), rgba(250, 250, 250, 0));
189
+ filter: blur(2px);
190
+ pointer-events: none;
191
+ }
192
+
193
+ .lang-fab > .lang-switch {
194
+ position: relative;
195
+ z-index: 1;
196
+ }
197
+
198
+ .lang-fab .lang-switch-track {
199
+ border-color: rgba(163, 146, 134, 0.32);
200
+ backdrop-filter: blur(10px);
201
+ }
202
+
203
+ .lang-fab .lang-switch:hover .lang-switch-track {
204
+ border-color: rgba(200, 121, 99, 0.7);
205
+ }
206
+
207
+ .side-rail-lang {
208
+ position: sticky;
209
+ bottom: 0;
210
+ z-index: 2;
211
+ margin-top: auto;
212
+ padding: 10px 4px 6px;
213
+ background: linear-gradient(180deg, rgba(255, 248, 241, 0), rgba(255, 248, 241, 0.94) 28%);
214
+ border-top: 1px solid rgba(137, 111, 94, 0.08);
215
+ backdrop-filter: blur(12px);
216
+ display: flex;
217
+ flex-direction: column;
218
+ align-items: center;
219
+ gap: 4px;
220
+ }
221
+
222
+ .side-rail-lang .lang-choice {
223
+ background: rgba(255, 253, 252, 0.9);
224
+ box-shadow: none;
225
+ backdrop-filter: none;
226
+ }
227
+
228
+ .side-rail-version {
229
+ padding: 4px 8px 8px;
230
+ text-align: center;
231
+ }
232
+
233
+ .side-rail-version-text {
234
+ font-size: 11px;
235
+ color: rgba(137, 111, 94, 0.45);
236
+ letter-spacing: 0.02em;
237
+ }
238
+
239
+ .lang-switch {
240
+ width: 100%;
241
+ border: none;
242
+ background: transparent;
243
+ padding: 0;
244
+ cursor: pointer;
245
+ display: flex;
246
+ justify-content: center;
247
+ align-items: center;
248
+ }
249
+
250
+ .lang-switch-track {
251
+ width: 52px;
252
+ height: 34px;
253
+ border-radius: 999px;
254
+ border: 1px solid rgba(163, 146, 134, 0.38);
255
+ background: rgba(255, 253, 252, 0.78);
256
+ box-shadow: 0 1px 2px rgba(36, 31, 28, 0.06);
257
+ display: grid;
258
+ place-items: center;
259
+ position: relative;
260
+ overflow: hidden;
261
+ transition: border-color var(--transition-fast) var(--ease-smooth), background-color var(--transition-fast) var(--ease-smooth), transform var(--transition-fast) var(--ease-smooth);
262
+ }
263
+
264
+ .lang-switch:hover .lang-switch-track {
265
+ border-color: rgba(200, 121, 99, 0.6);
266
+ background: rgba(255, 253, 252, 0.92);
267
+ transform: translateY(-1px);
268
+ }
269
+
270
+ .lang-switch:active .lang-switch-track {
271
+ transform: translateY(0);
272
+ }
273
+
274
+ .lang-switch-text {
275
+ position: absolute;
276
+ inset: 0;
277
+ display: grid;
278
+ place-items: center;
279
+ font-family: var(--font-family-mono);
280
+ font-size: 12px;
281
+ font-weight: 700;
282
+ letter-spacing: 0.08em;
283
+ text-transform: uppercase;
284
+ color: var(--color-text-secondary);
285
+ transition: transform 220ms var(--ease-spring), opacity 220ms var(--ease-spring);
286
+ will-change: transform, opacity;
287
+ opacity: 0;
288
+ transform: translateY(10px);
289
+ }
290
+
291
+ .lang-switch-track[data-lang="zh"] .lang-switch-zh {
292
+ opacity: 1;
293
+ transform: translateY(0);
294
+ }
295
+
296
+ .lang-switch-track[data-lang="zh"] .lang-switch-en {
297
+ opacity: 0;
298
+ }
299
+
300
+ .lang-switch-track[data-lang="en"] .lang-switch-en {
301
+ opacity: 1;
302
+ transform: translateY(0);
303
+ }
304
+
305
+ .lang-switch-track[data-lang="en"] .lang-switch-zh {
306
+ opacity: 0;
307
+ }
308
+
309
+ .lang-switch-track::after {
310
+ content: "";
311
+ position: absolute;
312
+ inset: -20px;
313
+ background: radial-gradient(circle at 30% 20%, rgba(200, 121, 99, 0.18), rgba(200, 121, 99, 0) 55%);
314
+ opacity: 0;
315
+ transform: translateY(10px);
316
+ transition: opacity 240ms var(--ease-smooth), transform 240ms var(--ease-smooth);
317
+ pointer-events: none;
318
+ }
319
+
320
+ .lang-switch:hover .lang-switch-track::after {
321
+ opacity: 1;
322
+ transform: translateY(0);
323
+ }
324
+
325
+ .side-section-title {
326
+ font-size: 10px;
327
+ font-weight: 700;
328
+ color: var(--color-text-muted);
329
+ letter-spacing: 0.08em;
330
+ text-transform: uppercase;
331
+ padding: 0 8px;
332
+ margin-bottom: 6px;
333
+ opacity: 0.72;
334
+ }
335
+
336
+ .side-item {
337
+ width: 100%;
338
+ text-align: left;
339
+ padding: 9px 12px 9px 14px;
340
+ border-radius: 12px;
341
+ border: 1px solid transparent;
342
+ background: transparent;
343
+ color: var(--color-text-secondary);
344
+ cursor: pointer;
345
+ transition: border-color 180ms var(--ease-out-expo), background-color 180ms var(--ease-out-expo), color 180ms var(--ease-out-expo), box-shadow 180ms var(--ease-out-expo), transform 180ms var(--ease-out-expo);
346
+ display: flex;
347
+ flex-direction: column;
348
+ gap: 3px;
349
+ box-shadow: none;
350
+ position: relative;
351
+ }
352
+
353
+ .side-item::before {
354
+ content: "";
355
+ position: absolute;
356
+ left: 2px;
357
+ top: 50%;
358
+ transform: translateY(-50%);
359
+ width: 3px;
360
+ height: 18px;
361
+ border-radius: 0 3px 3px 0;
362
+ background: transparent;
363
+ }
364
+
365
+ .side-item:hover {
366
+ background: rgba(255, 255, 255, 0.64);
367
+ color: var(--color-text-primary);
368
+ transform: translateX(2px);
369
+ }
370
+
371
+ .side-item.active,
372
+ .side-item.nav-intent-active {
373
+ border-color: rgba(200, 121, 99, 0.22);
374
+ background:
375
+ linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(200, 121, 99, 0.10));
376
+ color: var(--color-brand-dark);
377
+ box-shadow: 0 8px 20px rgba(92, 68, 52, 0.06);
378
+ }
379
+
380
+ .side-item.nav-intent-inactive,
381
+ .side-item.active.nav-intent-inactive {
382
+ border-color: transparent;
383
+ background: transparent;
384
+ color: var(--color-text-secondary);
385
+ box-shadow: none;
386
+ }
387
+
388
+ .side-item.active::before,
389
+ .side-item.nav-intent-active::before {
390
+ background: var(--color-brand);
391
+ }
392
+
393
+ .side-item.nav-intent-inactive::before,
394
+ .side-item.active.nav-intent-inactive::before {
395
+ background: transparent;
396
+ }
397
+
398
+ .side-item-title {
399
+ font-size: 13px;
400
+ font-weight: 600;
401
+ letter-spacing: -0.01em;
402
+ line-height: 1.25;
403
+ }
404
+
405
+ .side-item-meta {
406
+ font-size: 11px;
407
+ color: var(--color-text-muted);
408
+ display: flex;
409
+ opacity: 1;
410
+ gap: 5px;
411
+ flex-wrap: wrap;
412
+ line-height: 1.4;
413
+ min-height: 1.4em;
414
+ }
415
+
416
+ .side-item.active .side-item-meta,
417
+ .side-item.nav-intent-active .side-item-meta {
418
+ color: var(--color-text-secondary);
419
+ }
420
+
421
+ .side-item-meta > span {
422
+ min-width: 0;
423
+ overflow-wrap: anywhere;
424
+ word-break: break-word;
425
+ }
426
+
427
+ @media (min-width: 721px) {
428
+ body:not(.force-compact) #app > .top-tabs {
429
+ display: none;
430
+ }
431
+ }
432
+
433
+ .brand-block {
434
+ display: flex;
435
+ flex-direction: column;
436
+ align-items: flex-start;
437
+ gap: 10px;
438
+ margin-bottom: 0;
439
+ padding: 14px 10px 16px;
440
+ border-bottom: 1px solid rgba(137, 111, 94, 0.10);
441
+ }
442
+
443
+ .brand-head {
444
+ display: flex;
445
+ align-items: center;
446
+ gap: 12px;
447
+ }
448
+
449
+ .brand-logo {
450
+ width: 38px;
451
+ height: 38px;
452
+ border-radius: 13px;
453
+ object-fit: cover;
454
+ flex-shrink: 0;
455
+ box-shadow:
456
+ 0 8px 20px rgba(92, 68, 52, 0.10),
457
+ 0 0 0 1px rgba(200, 121, 99, 0.08);
458
+ }
459
+
460
+ .brand-copy {
461
+ display: flex;
462
+ flex-direction: column;
463
+ gap: 4px;
464
+ min-width: 0;
465
+ }
466
+
467
+ .brand-kicker {
468
+ font-size: 11px;
469
+ line-height: 1;
470
+ letter-spacing: 0.06em;
471
+ text-transform: uppercase;
472
+ color: var(--color-text-muted);
473
+ font-weight: 700;
474
+ }
475
+
476
+ .brand-subtitle {
477
+ font-size: 12px;
478
+ line-height: 1.45;
479
+ color: var(--color-text-secondary);
480
+ max-width: 22ch;
481
+ }
482
+
483
+ .brand-title {
484
+ font-size: 18px;
485
+ line-height: 1.15;
486
+ font-family: var(--font-family-display);
487
+ color: var(--color-text-primary);
488
+ letter-spacing: -0.02em;
489
+ font-weight: 700;
490
+ }
491
+
492
+ .github-badge {
493
+ display: inline-flex;
494
+ align-items: center;
495
+ justify-content: space-between;
496
+ gap: 10px;
497
+ margin-top: 0;
498
+ padding: 8px 10px;
499
+ border-radius: 8px;
500
+ border: 1px solid var(--color-border);
501
+ background: var(--color-surface);
502
+ color: var(--color-text-secondary);
503
+ font-size: var(--font-size-caption);
504
+ text-decoration: none;
505
+ box-shadow: none;
506
+ transition: border-color var(--transition-fast) var(--ease-smooth), background-color var(--transition-fast) var(--ease-smooth), color var(--transition-fast) var(--ease-smooth), box-shadow var(--transition-fast) var(--ease-smooth);
507
+ min-width: 0;
508
+ backdrop-filter: none;
509
+ }
510
+
511
+ .github-badge-rail {
512
+ width: calc(100% - 24px);
513
+ margin: 0 12px 12px;
514
+ align-items: center;
515
+ justify-content: flex-start;
516
+ gap: 8px;
517
+ padding: 8px 10px;
518
+ border-radius: 13px;
519
+ background: rgba(255, 255, 255, 0.62);
520
+ border: 1px solid rgba(137, 111, 94, 0.15);
521
+ box-shadow: var(--shadow-subtle);
522
+ }
523
+
524
+ .github-badge:hover {
525
+ border-color: var(--color-border-strong);
526
+ background: var(--color-surface-alt);
527
+ color: var(--color-text-primary);
528
+ box-shadow: none;
529
+ }
530
+
531
+ .github-badge:focus-visible {
532
+ outline: 3px solid rgba(200, 121, 99, 0.18);
533
+ outline-offset: 2px;
534
+ border-color: var(--color-brand);
535
+ color: var(--color-text-primary);
536
+ background: var(--color-surface);
537
+ }
538
+
539
+ .github-badge-icon {
540
+ width: 16px;
541
+ height: 16px;
542
+ flex-shrink: 0;
543
+ }
544
+
545
+ .github-badge-left {
546
+ display: inline-flex;
547
+ align-items: center;
548
+ gap: 6px;
549
+ flex-shrink: 0;
550
+ }
551
+
552
+ .github-badge-label {
553
+ font-size: var(--font-size-caption);
554
+ font-weight: var(--font-weight-secondary);
555
+ color: var(--color-text-secondary);
556
+ }
557
+
558
+ .github-badge-text {
559
+ min-width: 0;
560
+ font-family: var(--font-family-mono);
561
+ font-size: var(--font-size-caption);
562
+ color: var(--color-text-tertiary);
563
+ line-height: 1.3;
564
+ display: inline-block;
565
+ overflow: hidden;
566
+ text-overflow: ellipsis;
567
+ white-space: nowrap;
568
+ }
569
+
570
+ .github-badge-text > span {
571
+ white-space: nowrap;
572
+ }
573
+
574
+ .github-owner {
575
+ font-weight: 600;
576
+ color: var(--color-text-secondary);
577
+ }
578
+
579
+ .github-sep {
580
+ margin: 0 2px;
581
+ color: var(--color-text-tertiary);
582
+ }
583
+
584
+ .github-repo {
585
+ font-weight: 600;
586
+ color: var(--color-text-primary);
587
+ }
588
+
589
+ .github-badge-rail .github-badge-text {
590
+ display: flex;
591
+ flex-direction: column;
592
+ align-items: flex-start;
593
+ gap: 2px;
594
+ white-space: normal;
595
+ overflow: visible;
596
+ text-overflow: clip;
597
+ color: var(--color-text-secondary);
598
+ }
599
+
600
+ .github-badge-rail .github-sep {
601
+ display: none;
602
+ }
603
+
604
+ .github-badge-rail .github-owner,
605
+ .github-badge-rail .github-repo {
606
+ font-weight: 600;
607
+ }
608
+
609
+ .github-badge-rail .github-badge-left {
610
+ padding: 4px;
611
+ border-radius: 999px;
612
+ background: var(--color-brand-light);
613
+ }
614
+
615
+ .github-badge-rail .github-badge-label {
616
+ display: none;
617
+ }
618
+
619
+ .github-badge-rail:hover {
620
+ border-color: var(--color-border-strong);
621
+ }
622
+
623
+ /* 侧边栏计数徽标 */
624
+ .side-item-badge {
625
+ display: inline-flex;
626
+ align-items: center;
627
+ justify-content: center;
628
+ min-width: 20px;
629
+ height: 20px;
630
+ padding: 0 6px;
631
+ border-radius: 10px;
632
+ background: var(--color-brand);
633
+ color: #fff;
634
+ font-size: 11px;
635
+ font-weight: 700;
636
+ line-height: 1;
637
+ box-shadow: 0 2px 6px rgba(200, 121, 99, 0.28);
638
+ }