codexmate 0.0.29 → 0.0.31

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 (145) 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 -384
  9. package/cli/config-health.js +454 -338
  10. package/cli/doctor-core.js +903 -903
  11. package/cli/import-skills-url.js +356 -356
  12. package/cli/local-bridge.js +324 -0
  13. package/cli/openai-bridge.js +1653 -1576
  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 +15778 -15340
  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 +417 -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 +646 -639
  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 +765 -765
  60. package/web-ui/modules/api.mjs +90 -90
  61. package/web-ui/modules/app.computed.dashboard.mjs +248 -225
  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 +999 -999
  65. package/web-ui/modules/app.constants.mjs +15 -15
  66. package/web-ui/modules/app.methods.agents.mjs +632 -632
  67. package/web-ui/modules/app.methods.claude-config.mjs +200 -200
  68. package/web-ui/modules/app.methods.codex-config.mjs +841 -892
  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 -761
  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 -493
  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 +984 -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 +534 -533
  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 +3174 -3131
  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 -481
  95. package/web-ui/partials/index/layout-footer.html +13 -13
  96. package/web-ui/partials/index/layout-header.html +500 -500
  97. package/web-ui/partials/index/modal-config-template-agents.html +174 -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 +194 -194
  104. package/web-ui/partials/index/panel-config-codex.html +357 -323
  105. package/web-ui/partials/index/panel-config-codex.html.bak +337 -0
  106. package/web-ui/partials/index/panel-config-openclaw.html +83 -83
  107. package/web-ui/partials/index/panel-dashboard.html +219 -186
  108. package/web-ui/partials/index/panel-docs.html +147 -147
  109. package/web-ui/partials/index/panel-market.html +177 -177
  110. package/web-ui/partials/index/panel-orchestration.html +391 -391
  111. package/web-ui/partials/index/panel-plugins.html +253 -253
  112. package/web-ui/partials/index/panel-sessions.html +302 -316
  113. package/web-ui/partials/index/panel-settings.html +190 -190
  114. package/web-ui/partials/index/panel-trash.html +88 -88
  115. package/web-ui/partials/index/panel-usage.html +371 -371
  116. package/web-ui/res/json5.min.js +1 -1
  117. package/web-ui/res/vue.global.prod.js +13 -13
  118. package/web-ui/session-helpers.mjs +591 -576
  119. package/web-ui/source-bundle.cjs +233 -233
  120. package/web-ui/styles/base-theme.css +281 -281
  121. package/web-ui/styles/bridge-pool.css +197 -0
  122. package/web-ui/styles/controls-forms.css +422 -422
  123. package/web-ui/styles/dashboard.css +406 -274
  124. package/web-ui/styles/docs-panel.css +271 -271
  125. package/web-ui/styles/feedback.css +108 -108
  126. package/web-ui/styles/health-check-dialog.css +144 -144
  127. package/web-ui/styles/layout-shell.css +626 -626
  128. package/web-ui/styles/modals-core.css +466 -466
  129. package/web-ui/styles/navigation-panels.css +391 -391
  130. package/web-ui/styles/openclaw-structured.css +266 -266
  131. package/web-ui/styles/plugins-panel.css +564 -523
  132. package/web-ui/styles/responsive.css +454 -454
  133. package/web-ui/styles/sessions-list.css +417 -419
  134. package/web-ui/styles/sessions-preview.css +407 -411
  135. package/web-ui/styles/sessions-toolbar-trash.css +348 -330
  136. package/web-ui/styles/sessions-usage.css +1040 -1040
  137. package/web-ui/styles/settings-panel.css +349 -349
  138. package/web-ui/styles/skills-list.css +305 -303
  139. package/web-ui/styles/skills-market.css +429 -406
  140. package/web-ui/styles/task-orchestration.css +822 -822
  141. package/web-ui/styles/titles-cards.css +472 -472
  142. package/web-ui/styles/trash-panel.css +90 -90
  143. package/web-ui/styles/webhook.css +81 -81
  144. package/web-ui/styles.css +24 -23
  145. package/web-ui.html +17 -17
@@ -1,626 +1,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
- 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
+ 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
+ }