codexmate 0.0.28 → 0.0.29

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 (142) hide show
  1. package/README.md +421 -421
  2. package/README.zh.md +354 -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 -1620
  7. package/cli/claude-proxy.js +1022 -1022
  8. package/cli/config-bootstrap.js +384 -384
  9. package/cli/config-health.js +338 -338
  10. package/cli/doctor-core.js +903 -903
  11. package/cli/import-skills-url.js +356 -356
  12. package/cli/openai-bridge.js +1576 -1489
  13. package/cli/openclaw-config.js +629 -629
  14. package/cli/session-convert-args.js +65 -65
  15. package/cli/session-convert-io.js +82 -82
  16. package/cli/session-convert.js +43 -43
  17. package/cli/session-usage.concurrent.js +28 -28
  18. package/cli/session-usage.js +118 -118
  19. package/cli/session-usage.models.js +176 -176
  20. package/cli/skills.js +1141 -1141
  21. package/cli/zip-commands.js +510 -510
  22. package/cli.js +15340 -15264
  23. package/lib/automation.js +404 -404
  24. package/lib/cli-file-utils.js +151 -151
  25. package/lib/cli-models-utils.js +440 -440
  26. package/lib/cli-network-utils.js +190 -190
  27. package/lib/cli-path-utils.js +85 -85
  28. package/lib/cli-session-utils.js +121 -121
  29. package/lib/cli-sessions.js +417 -417
  30. package/lib/cli-utils.js +155 -155
  31. package/lib/cli-webhook.js +126 -0
  32. package/lib/download-artifacts.js +92 -92
  33. package/lib/mcp-stdio.js +453 -453
  34. package/lib/task-orchestrator.js +869 -869
  35. package/lib/text-diff.js +303 -303
  36. package/lib/workflow-engine.js +340 -340
  37. package/package.json +76 -76
  38. package/plugins/README.md +20 -20
  39. package/plugins/README.zh-CN.md +20 -20
  40. package/plugins/prompt-templates/comment-polish/index.mjs +25 -25
  41. package/plugins/prompt-templates/computed.mjs +253 -253
  42. package/plugins/prompt-templates/index.mjs +8 -8
  43. package/plugins/prompt-templates/manifest.mjs +15 -15
  44. package/plugins/prompt-templates/methods.mjs +553 -553
  45. package/plugins/prompt-templates/overview.mjs +91 -91
  46. package/plugins/prompt-templates/ownership.mjs +19 -19
  47. package/plugins/prompt-templates/rule-ack/index.mjs +21 -21
  48. package/plugins/prompt-templates/storage.mjs +64 -64
  49. package/plugins/registry.mjs +16 -16
  50. package/web-ui/app.js +639 -625
  51. package/web-ui/index.html +36 -35
  52. package/web-ui/logic.agents-diff.mjs +386 -386
  53. package/web-ui/logic.claude.mjs +168 -168
  54. package/web-ui/logic.codex.mjs +69 -56
  55. package/web-ui/logic.mjs +5 -5
  56. package/web-ui/logic.runtime.mjs +128 -128
  57. package/web-ui/logic.session-convert.mjs +70 -70
  58. package/web-ui/logic.sessions.mjs +765 -765
  59. package/web-ui/modules/api.mjs +90 -90
  60. package/web-ui/modules/app.computed.dashboard.mjs +225 -225
  61. package/web-ui/modules/app.computed.index.mjs +17 -17
  62. package/web-ui/modules/app.computed.main-tabs.mjs +205 -205
  63. package/web-ui/modules/app.computed.session.mjs +999 -994
  64. package/web-ui/modules/app.constants.mjs +15 -15
  65. package/web-ui/modules/app.methods.agents.mjs +632 -632
  66. package/web-ui/modules/app.methods.claude-config.mjs +200 -190
  67. package/web-ui/modules/app.methods.codex-config.mjs +892 -892
  68. package/web-ui/modules/app.methods.index.mjs +94 -92
  69. package/web-ui/modules/app.methods.install.mjs +205 -205
  70. package/web-ui/modules/app.methods.navigation.mjs +761 -743
  71. package/web-ui/modules/app.methods.openclaw-core.mjs +814 -814
  72. package/web-ui/modules/app.methods.openclaw-editing.mjs +372 -372
  73. package/web-ui/modules/app.methods.openclaw-persist.mjs +369 -369
  74. package/web-ui/modules/app.methods.providers.mjs +493 -412
  75. package/web-ui/modules/app.methods.runtime.mjs +345 -345
  76. package/web-ui/modules/app.methods.session-actions.mjs +593 -593
  77. package/web-ui/modules/app.methods.session-browser.mjs +984 -984
  78. package/web-ui/modules/app.methods.session-timeline.mjs +479 -479
  79. package/web-ui/modules/app.methods.session-trash.mjs +438 -439
  80. package/web-ui/modules/app.methods.startup-claude.mjs +533 -533
  81. package/web-ui/modules/app.methods.task-orchestration.mjs +556 -556
  82. package/web-ui/modules/app.methods.webhook.mjs +79 -0
  83. package/web-ui/modules/config-mode.computed.mjs +124 -124
  84. package/web-ui/modules/config-template-confirm-pref.mjs +33 -33
  85. package/web-ui/modules/i18n.dict.mjs +3131 -2109
  86. package/web-ui/modules/i18n.mjs +62 -56
  87. package/web-ui/modules/plugins.computed.mjs +3 -3
  88. package/web-ui/modules/plugins.methods.mjs +3 -3
  89. package/web-ui/modules/plugins.storage.mjs +11 -11
  90. package/web-ui/modules/provider-url-display.mjs +17 -17
  91. package/web-ui/modules/sessions-filters-url.mjs +85 -85
  92. package/web-ui/modules/skills.computed.mjs +107 -107
  93. package/web-ui/modules/skills.methods.mjs +481 -481
  94. package/web-ui/partials/index/layout-footer.html +13 -13
  95. package/web-ui/partials/index/layout-header.html +500 -475
  96. package/web-ui/partials/index/modal-config-template-agents.html +174 -174
  97. package/web-ui/partials/index/modal-confirm-toast.html +32 -32
  98. package/web-ui/partials/index/modal-health-check.html +45 -45
  99. package/web-ui/partials/index/modal-openclaw-config.html +280 -280
  100. package/web-ui/partials/index/modal-skills.html +200 -200
  101. package/web-ui/partials/index/modals-basic.html +162 -165
  102. package/web-ui/partials/index/panel-config-claude.html +194 -188
  103. package/web-ui/partials/index/panel-config-codex.html +323 -312
  104. package/web-ui/partials/index/panel-config-openclaw.html +83 -83
  105. package/web-ui/partials/index/panel-dashboard.html +186 -186
  106. package/web-ui/partials/index/panel-docs.html +147 -147
  107. package/web-ui/partials/index/panel-market.html +177 -177
  108. package/web-ui/partials/index/panel-orchestration.html +391 -391
  109. package/web-ui/partials/index/panel-plugins.html +253 -253
  110. package/web-ui/partials/index/panel-sessions.html +316 -316
  111. package/web-ui/partials/index/panel-settings.html +190 -253
  112. package/web-ui/partials/index/panel-trash.html +88 -0
  113. package/web-ui/partials/index/panel-usage.html +371 -371
  114. package/web-ui/res/json5.min.js +1 -1
  115. package/web-ui/res/vue.global.prod.js +13 -13
  116. package/web-ui/session-helpers.mjs +576 -576
  117. package/web-ui/source-bundle.cjs +233 -233
  118. package/web-ui/styles/base-theme.css +281 -281
  119. package/web-ui/styles/controls-forms.css +422 -422
  120. package/web-ui/styles/dashboard.css +274 -274
  121. package/web-ui/styles/docs-panel.css +271 -247
  122. package/web-ui/styles/feedback.css +108 -108
  123. package/web-ui/styles/health-check-dialog.css +144 -144
  124. package/web-ui/styles/layout-shell.css +626 -606
  125. package/web-ui/styles/modals-core.css +466 -466
  126. package/web-ui/styles/navigation-panels.css +391 -391
  127. package/web-ui/styles/openclaw-structured.css +266 -266
  128. package/web-ui/styles/plugins-panel.css +523 -523
  129. package/web-ui/styles/responsive.css +454 -454
  130. package/web-ui/styles/sessions-list.css +419 -419
  131. package/web-ui/styles/sessions-preview.css +411 -411
  132. package/web-ui/styles/sessions-toolbar-trash.css +330 -330
  133. package/web-ui/styles/sessions-usage.css +1040 -1040
  134. package/web-ui/styles/settings-panel.css +349 -185
  135. package/web-ui/styles/skills-list.css +303 -303
  136. package/web-ui/styles/skills-market.css +406 -406
  137. package/web-ui/styles/task-orchestration.css +822 -822
  138. package/web-ui/styles/titles-cards.css +472 -472
  139. package/web-ui/styles/trash-panel.css +90 -0
  140. package/web-ui/styles/webhook.css +81 -0
  141. package/web-ui/styles.css +23 -21
  142. package/web-ui.html +17 -17
@@ -1,606 +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: 10px 8px;
52
- background:
53
- linear-gradient(180deg, rgba(255, 253, 250, 0.92) 0%, rgba(255, 248, 241, 0.82) 100%);
54
- border-right: 1px solid rgba(137, 111, 94, 0.16);
55
- border-radius: 0;
56
- box-shadow: 18px 0 42px rgba(92, 68, 52, 0.08);
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: 4px;
77
- padding: 7px 4px;
78
- }
79
-
80
- .side-section + .side-section {
81
- border-top: 1px solid rgba(137, 111, 94, 0.12);
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: 12px 4px 4px;
214
- background: linear-gradient(180deg, rgba(255, 248, 241, 0), rgba(255, 248, 241, 0.92) 34%);
215
- border-top: 1px solid rgba(137, 111, 94, 0.12);
216
- backdrop-filter: blur(10px);
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: 11px;
315
- font-weight: 700;
316
- color: var(--color-text-muted);
317
- letter-spacing: 0.06em;
318
- text-transform: uppercase;
319
- padding: 0 6px;
320
- margin-bottom: 8px;
321
- }
322
-
323
- .side-item {
324
- width: 100%;
325
- text-align: left;
326
- padding: 8px 10px;
327
- border-radius: 13px;
328
- border: 1px solid transparent;
329
- background: transparent;
330
- color: var(--color-text-secondary);
331
- cursor: pointer;
332
- 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), transform var(--transition-fast) var(--ease-smooth);
333
- display: flex;
334
- flex-direction: column;
335
- gap: 2px;
336
- box-shadow: none;
337
- position: relative;
338
- }
339
-
340
- .side-item::before {
341
- content: "";
342
- position: absolute;
343
- left: 0;
344
- top: 50%;
345
- transform: translateY(-50%);
346
- width: 3px;
347
- height: 16px;
348
- border-radius: 0 2px 2px 0;
349
- background: transparent;
350
- transition: background-color var(--transition-fast) var(--ease-smooth);
351
- display: none;
352
- }
353
-
354
- .side-item:hover {
355
- background: rgba(255, 255, 255, 0.58);
356
- color: var(--color-text-primary);
357
- transform: translateY(-1px);
358
- }
359
-
360
- .side-item.active,
361
- .side-item.nav-intent-active {
362
- border-color: rgba(200, 121, 99, 0.28);
363
- background:
364
- linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(200, 121, 99, 0.14));
365
- color: var(--color-brand-dark);
366
- box-shadow: 0 10px 24px rgba(92, 68, 52, 0.08);
367
- }
368
-
369
- .side-item.nav-intent-inactive,
370
- .side-item.active.nav-intent-inactive {
371
- border-color: transparent;
372
- background: transparent;
373
- color: var(--color-text-secondary);
374
- box-shadow: none;
375
- }
376
-
377
- .side-item.active::before,
378
- .side-item.nav-intent-active::before {
379
- background: var(--color-brand);
380
- }
381
-
382
- .side-item.nav-intent-inactive::before,
383
- .side-item.active.nav-intent-inactive::before {
384
- background: transparent;
385
- }
386
-
387
- .side-item-title {
388
- font-size: 13px;
389
- font-weight: 600;
390
- letter-spacing: -0.01em;
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: 16px 10px 18px;
428
- border-bottom: 1px solid rgba(137, 111, 94, 0.12);
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: 14px;
441
- object-fit: cover;
442
- flex-shrink: 0;
443
- box-shadow: 0 12px 26px rgba(92, 68, 52, 0.12);
444
- }
445
-
446
- .brand-copy {
447
- display: flex;
448
- flex-direction: column;
449
- gap: 4px;
450
- min-width: 0;
451
- }
452
-
453
- .brand-kicker {
454
- font-size: 11px;
455
- line-height: 1;
456
- letter-spacing: 0.06em;
457
- text-transform: uppercase;
458
- color: var(--color-text-muted);
459
- font-weight: 700;
460
- }
461
-
462
- .brand-subtitle {
463
- font-size: 12px;
464
- line-height: 1.45;
465
- color: var(--color-text-secondary);
466
- max-width: 22ch;
467
- }
468
-
469
- .brand-title {
470
- font-size: 18px;
471
- line-height: 1.1;
472
- font-family: var(--font-family-display);
473
- color: var(--color-text-primary);
474
- letter-spacing: -0.02em;
475
- }
476
-
477
- .github-badge {
478
- display: inline-flex;
479
- align-items: center;
480
- justify-content: space-between;
481
- gap: 10px;
482
- margin-top: 0;
483
- padding: 8px 10px;
484
- border-radius: 8px;
485
- border: 1px solid var(--color-border);
486
- background: var(--color-surface);
487
- color: var(--color-text-secondary);
488
- font-size: var(--font-size-caption);
489
- text-decoration: none;
490
- box-shadow: none;
491
- 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);
492
- min-width: 0;
493
- backdrop-filter: none;
494
- }
495
-
496
- .github-badge-rail {
497
- width: calc(100% - 24px);
498
- margin: 0 12px 12px;
499
- align-items: center;
500
- justify-content: flex-start;
501
- gap: 8px;
502
- padding: 8px 10px;
503
- border-radius: 13px;
504
- background: rgba(255, 255, 255, 0.62);
505
- border: 1px solid rgba(137, 111, 94, 0.15);
506
- box-shadow: var(--shadow-subtle);
507
- }
508
-
509
- .github-badge:hover {
510
- border-color: var(--color-border-strong);
511
- background: var(--color-surface-alt);
512
- color: var(--color-text-primary);
513
- box-shadow: none;
514
- }
515
-
516
- .github-badge:focus-visible {
517
- outline: 3px solid rgba(200, 121, 99, 0.18);
518
- outline-offset: 2px;
519
- border-color: var(--color-brand);
520
- color: var(--color-text-primary);
521
- background: var(--color-surface);
522
- }
523
-
524
- .github-badge-icon {
525
- width: 16px;
526
- height: 16px;
527
- flex-shrink: 0;
528
- }
529
-
530
- .github-badge-left {
531
- display: inline-flex;
532
- align-items: center;
533
- gap: 6px;
534
- flex-shrink: 0;
535
- }
536
-
537
- .github-badge-label {
538
- font-size: var(--font-size-caption);
539
- font-weight: var(--font-weight-secondary);
540
- color: var(--color-text-secondary);
541
- }
542
-
543
- .github-badge-text {
544
- min-width: 0;
545
- font-family: var(--font-family-mono);
546
- font-size: var(--font-size-caption);
547
- color: var(--color-text-tertiary);
548
- line-height: 1.3;
549
- display: inline-block;
550
- overflow: hidden;
551
- text-overflow: ellipsis;
552
- white-space: nowrap;
553
- }
554
-
555
- .github-badge-text > span {
556
- white-space: nowrap;
557
- }
558
-
559
- .github-owner {
560
- font-weight: 600;
561
- color: var(--color-text-secondary);
562
- }
563
-
564
- .github-sep {
565
- margin: 0 2px;
566
- color: var(--color-text-tertiary);
567
- }
568
-
569
- .github-repo {
570
- font-weight: 600;
571
- color: var(--color-text-primary);
572
- }
573
-
574
- .github-badge-rail .github-badge-text {
575
- display: flex;
576
- flex-direction: column;
577
- align-items: flex-start;
578
- gap: 2px;
579
- white-space: normal;
580
- overflow: visible;
581
- text-overflow: clip;
582
- color: var(--color-text-secondary);
583
- }
584
-
585
- .github-badge-rail .github-sep {
586
- display: none;
587
- }
588
-
589
- .github-badge-rail .github-owner,
590
- .github-badge-rail .github-repo {
591
- font-weight: 600;
592
- }
593
-
594
- .github-badge-rail .github-badge-left {
595
- padding: 4px;
596
- border-radius: 999px;
597
- background: var(--color-brand-light);
598
- }
599
-
600
- .github-badge-rail .github-badge-label {
601
- display: none;
602
- }
603
-
604
- .github-badge-rail:hover {
605
- border-color: var(--color-border-strong);
606
- }
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
+ }