codexmate 0.0.25 → 0.0.26

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 (135) hide show
  1. package/README.md +416 -413
  2. package/README.zh.md +349 -346
  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 +1079 -1079
  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 +997 -997
  13. package/cli/openclaw-config.js +629 -629
  14. package/cli/session-convert-args.js +65 -0
  15. package/cli/session-convert-io.js +82 -0
  16. package/cli/session-convert.js +43 -0
  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 +15218 -14736
  23. package/lib/automation.js +404 -404
  24. package/lib/cli-file-utils.js +151 -151
  25. package/lib/cli-models-utils.js +379 -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 +74 -74
  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 +619 -619
  44. package/plugins/prompt-templates/overview.mjs +90 -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 -612
  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.mjs +5 -5
  54. package/web-ui/logic.runtime.mjs +128 -128
  55. package/web-ui/logic.session-convert.mjs +70 -0
  56. package/web-ui/logic.sessions.mjs +709 -614
  57. package/web-ui/modules/api.mjs +90 -90
  58. package/web-ui/modules/app.computed.dashboard.mjs +171 -128
  59. package/web-ui/modules/app.computed.index.mjs +17 -17
  60. package/web-ui/modules/app.computed.main-tabs.mjs +205 -205
  61. package/web-ui/modules/app.computed.session.mjs +946 -670
  62. package/web-ui/modules/app.constants.mjs +15 -15
  63. package/web-ui/modules/app.methods.agents.mjs +632 -632
  64. package/web-ui/modules/app.methods.claude-config.mjs +179 -174
  65. package/web-ui/modules/app.methods.codex-config.mjs +860 -784
  66. package/web-ui/modules/app.methods.index.mjs +92 -92
  67. package/web-ui/modules/app.methods.install.mjs +205 -205
  68. package/web-ui/modules/app.methods.navigation.mjs +743 -695
  69. package/web-ui/modules/app.methods.openclaw-core.mjs +814 -814
  70. package/web-ui/modules/app.methods.openclaw-editing.mjs +372 -372
  71. package/web-ui/modules/app.methods.openclaw-persist.mjs +369 -369
  72. package/web-ui/modules/app.methods.providers.mjs +404 -404
  73. package/web-ui/modules/app.methods.runtime.mjs +345 -345
  74. package/web-ui/modules/app.methods.session-actions.mjs +596 -544
  75. package/web-ui/modules/app.methods.session-browser.mjs +985 -722
  76. package/web-ui/modules/app.methods.session-timeline.mjs +479 -448
  77. package/web-ui/modules/app.methods.session-trash.mjs +424 -424
  78. package/web-ui/modules/app.methods.startup-claude.mjs +522 -417
  79. package/web-ui/modules/app.methods.task-orchestration.mjs +556 -556
  80. package/web-ui/modules/config-mode.computed.mjs +124 -124
  81. package/web-ui/modules/config-template-confirm-pref.mjs +33 -33
  82. package/web-ui/modules/i18n.dict.mjs +2113 -2055
  83. package/web-ui/modules/i18n.mjs +56 -56
  84. package/web-ui/modules/plugins.computed.mjs +3 -3
  85. package/web-ui/modules/plugins.methods.mjs +3 -3
  86. package/web-ui/modules/plugins.storage.mjs +11 -11
  87. package/web-ui/modules/sessions-filters-url.mjs +85 -85
  88. package/web-ui/modules/skills.computed.mjs +107 -107
  89. package/web-ui/modules/skills.methods.mjs +481 -481
  90. package/web-ui/partials/index/layout-footer.html +13 -13
  91. package/web-ui/partials/index/layout-header.html +475 -475
  92. package/web-ui/partials/index/modal-config-template-agents.html +174 -174
  93. package/web-ui/partials/index/modal-confirm-toast.html +32 -32
  94. package/web-ui/partials/index/modal-health-check.html +45 -45
  95. package/web-ui/partials/index/modal-openclaw-config.html +280 -280
  96. package/web-ui/partials/index/modal-skills.html +200 -200
  97. package/web-ui/partials/index/modals-basic.html +165 -165
  98. package/web-ui/partials/index/panel-config-claude.html +184 -179
  99. package/web-ui/partials/index/panel-config-codex.html +283 -283
  100. package/web-ui/partials/index/panel-config-openclaw.html +83 -83
  101. package/web-ui/partials/index/panel-dashboard.html +186 -186
  102. package/web-ui/partials/index/panel-docs.html +147 -147
  103. package/web-ui/partials/index/panel-market.html +177 -177
  104. package/web-ui/partials/index/panel-orchestration.html +391 -391
  105. package/web-ui/partials/index/panel-plugins.html +279 -279
  106. package/web-ui/partials/index/panel-sessions.html +326 -303
  107. package/web-ui/partials/index/panel-settings.html +258 -258
  108. package/web-ui/partials/index/panel-usage.html +342 -361
  109. package/web-ui/res/json5.min.js +1 -1
  110. package/web-ui/res/vue.global.prod.js +13 -13
  111. package/web-ui/session-helpers.mjs +576 -573
  112. package/web-ui/source-bundle.cjs +233 -233
  113. package/web-ui/styles/base-theme.css +268 -264
  114. package/web-ui/styles/controls-forms.css +423 -423
  115. package/web-ui/styles/dashboard.css +274 -274
  116. package/web-ui/styles/docs-panel.css +247 -247
  117. package/web-ui/styles/feedback.css +108 -108
  118. package/web-ui/styles/health-check-dialog.css +144 -144
  119. package/web-ui/styles/layout-shell.css +603 -603
  120. package/web-ui/styles/modals-core.css +464 -464
  121. package/web-ui/styles/navigation-panels.css +390 -390
  122. package/web-ui/styles/openclaw-structured.css +266 -266
  123. package/web-ui/styles/plugins-panel.css +523 -523
  124. package/web-ui/styles/responsive.css +454 -454
  125. package/web-ui/styles/sessions-list.css +415 -398
  126. package/web-ui/styles/sessions-preview.css +411 -411
  127. package/web-ui/styles/sessions-toolbar-trash.css +330 -268
  128. package/web-ui/styles/sessions-usage.css +945 -912
  129. package/web-ui/styles/settings-panel.css +166 -166
  130. package/web-ui/styles/skills-list.css +303 -303
  131. package/web-ui/styles/skills-market.css +406 -406
  132. package/web-ui/styles/task-orchestration.css +822 -822
  133. package/web-ui/styles/titles-cards.css +408 -408
  134. package/web-ui/styles.css +21 -21
  135. package/web-ui.html +17 -17
@@ -1,603 +1,603 @@
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(247, 243, 239, 0.92), rgba(247, 243, 239, 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
+ 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
+ }