codexmate 0.0.27 → 0.0.28

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