codexmate 0.0.41 → 0.0.43

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