codexmate 0.1.28 → 0.1.30

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 (58) hide show
  1. package/README.md +53 -44
  2. package/README.vi.md +45 -36
  3. package/README.zh.md +51 -42
  4. package/cli/session-usage.js +2 -2
  5. package/cli/skills.js +33 -8
  6. package/cli.js +379 -19
  7. package/package.json +6 -1
  8. package/web-ui/app.js +12 -1
  9. package/web-ui/index.html +3 -2
  10. package/web-ui/logic.sessions.mjs +30 -4
  11. package/web-ui/modules/app.computed.dashboard.mjs +1 -1
  12. package/web-ui/modules/app.computed.session.mjs +52 -33
  13. package/web-ui/modules/app.methods.agents.mjs +36 -0
  14. package/web-ui/modules/app.methods.codex-config.mjs +3 -1
  15. package/web-ui/modules/app.methods.providers.mjs +12 -4
  16. package/web-ui/modules/app.methods.session-actions.mjs +10 -8
  17. package/web-ui/modules/app.methods.session-browser.mjs +8 -2
  18. package/web-ui/modules/app.methods.session-trash.mjs +16 -16
  19. package/web-ui/modules/app.methods.system-prompt.mjs +1 -8
  20. package/web-ui/modules/app.methods.theme.mjs +5 -4
  21. package/web-ui/modules/i18n/locales/en.mjs +80 -1
  22. package/web-ui/modules/i18n/locales/ja.mjs +80 -1
  23. package/web-ui/modules/i18n/locales/vi.mjs +80 -1
  24. package/web-ui/modules/i18n/locales/zh-tw.mjs +80 -1
  25. package/web-ui/modules/i18n/locales/zh.mjs +80 -1
  26. package/web-ui/modules/i18n.mjs +23 -0
  27. package/web-ui/modules/skills.computed.mjs +11 -0
  28. package/web-ui/modules/skills.methods.mjs +58 -8
  29. package/web-ui/partials/index/layout-footer.html +1 -1
  30. package/web-ui/partials/index/layout-header.html +32 -12
  31. package/web-ui/partials/index/modal-config-template-agents.html +1 -1
  32. package/web-ui/partials/index/modal-health-check.html +1 -1
  33. package/web-ui/partials/index/modal-openclaw-config.html +50 -50
  34. package/web-ui/partials/index/panel-dashboard.html +1 -1
  35. package/web-ui/partials/index/panel-market.html +23 -5
  36. package/web-ui/partials/index/panel-prompts.html +2 -2
  37. package/web-ui/partials/index/panel-sessions.html +52 -42
  38. package/web-ui/partials/index/panel-settings.html +6 -0
  39. package/web-ui/partials/index/panel-trash.html +3 -0
  40. package/web-ui/res/web-ui-render.precompiled.js +567 -439
  41. package/web-ui/session-helpers.mjs +3 -0
  42. package/web-ui/styles/base-theme.css +2 -2
  43. package/web-ui/styles/bridge-pool.css +1 -1
  44. package/web-ui/styles/feedback.css +26 -0
  45. package/web-ui/styles/layout-shell.css +66 -3
  46. package/web-ui/styles/navigation-panels.css +4 -10
  47. package/web-ui/styles/sessions-list.css +19 -1
  48. package/web-ui/styles/sessions-preview.css +88 -1
  49. package/web-ui/styles/sessions-toolbar-trash.css +2 -2
  50. package/web-ui/styles/settings-panel.css +1 -1
  51. package/web-ui/styles/skills-market.css +47 -0
  52. package/web-ui/styles/theme-dark-tokens.css +2 -2
  53. package/web-ui/styles/theme-dark.css +2 -2
  54. package/web-ui/styles/theme-ocean-tokens.css +88 -0
  55. package/web-ui/styles/theme-ocean.css +920 -0
  56. package/web-ui/styles/titles-cards.css +1 -1
  57. package/web-ui/styles/trash-panel.css +43 -6
  58. package/web-ui/styles.css +1 -0
@@ -222,6 +222,7 @@ export async function loadSessions(api, options = {}) {
222
222
  const normalizedOptions = normalizeSessionLoadOptions(options);
223
223
  const includeActiveDetail = shouldIncludeActiveSessionDetail(this, normalizedOptions);
224
224
  this.sessionsLoading = true;
225
+ this.sessionSearchInfo = null;
225
226
  this.activeSessionDetailError = '';
226
227
  let loadSucceeded = false;
227
228
  const params = buildSessionListParams({
@@ -257,6 +258,7 @@ export async function loadSessions(api, options = {}) {
257
258
  clearSessionTimelineRefs(this);
258
259
  } else {
259
260
  loadSucceeded = true;
261
+ this.sessionSearchInfo = res.searchInfo || null;
260
262
  const rawSessions = Array.isArray(res.sessions) ? res.sessions : [];
261
263
  this.sessionsList = rawSessions.filter(s => s && typeof s === 'object');
262
264
  if (typeof this.clearSessionBatchSelection === 'function') {
@@ -313,6 +315,7 @@ export async function loadSessions(api, options = {}) {
313
315
  }
314
316
  }
315
317
  } catch (e) {
318
+ this.sessionSearchInfo = null;
316
319
  emitSessionLoadDebug(this, 'loadSessions:exception', e && e.message ? e.message : String(e));
317
320
  this.sessionsList = [];
318
321
  if (typeof this.primeSessionListRender === 'function') {
@@ -18,8 +18,8 @@
18
18
  --color-surface-chip: rgba(255, 255, 255, 0.76);
19
19
  --color-text-primary: #241F1C;
20
20
  --color-text-secondary: #5A504A;
21
- --color-text-tertiary: #82746A;
22
- --color-text-muted: #A99B91;
21
+ --color-text-tertiary: #74655B;
22
+ --color-text-muted: #77675C;
23
23
  --color-border: rgba(137, 111, 94, 0.18);
24
24
  --color-border-soft: rgba(137, 111, 94, 0.13);
25
25
  --color-border-strong: rgba(137, 111, 94, 0.34);
@@ -32,7 +32,7 @@
32
32
 
33
33
  /* ---- 轮询池触发按钮 ---- */
34
34
  .bridge-pool-trigger {
35
- color: var(--color-brand);
35
+ color: var(--color-brand-dark);
36
36
  background: rgba(200, 121, 99, 0.08);
37
37
  }
38
38
 
@@ -42,6 +42,32 @@
42
42
  letter-spacing: -0.005em;
43
43
  }
44
44
 
45
+ .app-loading-state {
46
+ display: flex;
47
+ align-items: center;
48
+ justify-content: center;
49
+ min-height: calc(100vh - 180px);
50
+ text-align: center;
51
+ }
52
+
53
+ .app-navigation-loading-state {
54
+ position: fixed;
55
+ inset: 0;
56
+ z-index: 200;
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ background: var(--color-bg);
61
+ color: var(--color-text-tertiary);
62
+ }
63
+
64
+ .navigation-pending > .mobile-brand-bar,
65
+ .navigation-pending > .top-tabs,
66
+ .navigation-pending > .lang-fab,
67
+ .navigation-pending > .app-shell {
68
+ visibility: hidden;
69
+ }
70
+
45
71
  .state-message.error {
46
72
  color: var(--color-error);
47
73
  }
@@ -377,7 +377,6 @@ body::after {
377
377
  text-transform: uppercase;
378
378
  padding: 0 8px;
379
379
  margin-bottom: 6px;
380
- opacity: 0.72;
381
380
  }
382
381
 
383
382
  .side-item {
@@ -1015,6 +1014,11 @@ body::after {
1015
1014
  cursor: pointer;
1016
1015
  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);
1017
1016
  }
1017
+ .language-settings-link > svg {
1018
+ width: 13px;
1019
+ height: 13px;
1020
+ flex-shrink: 0;
1021
+ }
1018
1022
 
1019
1023
  .language-settings-link:hover {
1020
1024
  border-color: rgba(200, 121, 99, 0.58);
@@ -1035,12 +1039,71 @@ body::after {
1035
1039
  gap: 8px;
1036
1040
  }
1037
1041
 
1042
+ .side-language-menu {
1043
+ position: relative;
1044
+ flex: 1 1 auto;
1045
+ min-width: 0;
1046
+ display: flex;
1047
+ justify-content: center;
1048
+ }
1049
+
1050
+ .side-language-dropdown {
1051
+ position: absolute;
1052
+ left: 0;
1053
+ bottom: calc(100% + 8px);
1054
+ z-index: 20;
1055
+ width: max(100%, 176px);
1056
+ padding: 6px;
1057
+ border: 1px solid var(--color-border-soft);
1058
+ border-radius: var(--radius-md);
1059
+ background: var(--color-surface-elevated);
1060
+ box-shadow: var(--shadow-float);
1061
+ }
1062
+
1063
+ .side-language-option {
1064
+ width: 100%;
1065
+ min-height: 36px;
1066
+ display: grid;
1067
+ grid-template-columns: minmax(0, 1fr) auto;
1068
+ align-items: center;
1069
+ gap: 2px 8px;
1070
+ padding: 7px 9px;
1071
+ border: 0;
1072
+ border-radius: var(--radius-sm);
1073
+ background: transparent;
1074
+ color: var(--color-text-secondary);
1075
+ text-align: left;
1076
+ cursor: pointer;
1077
+ }
1078
+
1079
+ .side-language-option small {
1080
+ grid-column: 1;
1081
+ color: var(--color-text-tertiary);
1082
+ font-size: 11px;
1083
+ }
1084
+
1085
+ .side-language-option svg {
1086
+ grid-column: 2;
1087
+ grid-row: 1 / span 2;
1088
+ width: 14px;
1089
+ height: 14px;
1090
+ color: var(--color-brand);
1091
+ }
1092
+
1093
+ .side-language-option:hover,
1094
+ .side-language-option.active {
1095
+ background: var(--color-brand-light);
1096
+ color: var(--color-text-primary);
1097
+ }
1098
+
1038
1099
  .side-rail-lang .language-settings-link {
1039
1100
  min-width: 0;
1040
- flex: 1 1 auto;
1101
+ width: fit-content;
1102
+ max-width: 100%;
1103
+ flex: 0 1 auto;
1104
+ margin-inline: auto;
1041
1105
  box-shadow: none;
1042
1106
  }
1043
-
1044
1107
  .side-announcement-button {
1045
1108
  flex: 0 0 36px;
1046
1109
  width: 36px;
@@ -38,20 +38,14 @@
38
38
  margin: 0 0 12px;
39
39
  }
40
40
 
41
- .status-strip-placeholder {
42
- visibility: hidden;
43
- pointer-events: none;
44
- user-select: none;
45
- }
46
41
 
47
42
  /* Give the status strip a bit more breathing room under the sticky header. */
48
43
  .main-panel-topbar .status-strip {
49
- margin-top: 10px;
50
- margin-bottom: 16px;
44
+ margin-top: 8px;
45
+ margin-bottom: 8px;
51
46
  min-height: 36px;
52
47
  align-items: center;
53
48
  }
54
-
55
49
  .lang-toggle {
56
50
  display: grid;
57
51
  grid-template-columns: 1fr 1fr;
@@ -189,8 +183,8 @@
189
183
  position: sticky;
190
184
  top: 0;
191
185
  z-index: 12;
192
- margin: 0 -16px 18px;
193
- padding: 0 16px 14px;
186
+ margin: 0 -16px 12px;
187
+ padding: 0 16px 8px;
194
188
  background: linear-gradient(180deg, var(--color-bg-topbar-strong) 0%, var(--color-bg-topbar-soft) 78%, var(--color-bg-topbar-clear) 100%);
195
189
  backdrop-filter: blur(18px) saturate(130%);
196
190
  }
@@ -511,6 +511,14 @@
511
511
  background: linear-gradient(180deg, var(--color-brand), var(--color-brand-dark));
512
512
  }
513
513
 
514
+ .session-item-heading {
515
+ min-width: 0;
516
+ flex: 1;
517
+ display: flex;
518
+ flex-direction: column;
519
+ gap: 2px;
520
+ }
521
+
514
522
  .session-item-title {
515
523
  font-size: var(--font-size-body);
516
524
  font-weight: var(--font-weight-secondary);
@@ -519,10 +527,20 @@
519
527
  white-space: nowrap;
520
528
  overflow: hidden;
521
529
  text-overflow: ellipsis;
522
- flex: 1;
523
530
  max-width: none;
524
531
  }
525
532
 
533
+ .session-item-location {
534
+ min-width: 0;
535
+ max-width: 100%;
536
+ color: var(--color-text-tertiary);
537
+ font-size: var(--font-size-caption);
538
+ line-height: 1.35;
539
+ white-space: nowrap;
540
+ overflow: hidden;
541
+ text-overflow: ellipsis;
542
+ }
543
+
526
544
  .session-item-actions {
527
545
  display: inline-flex;
528
546
  align-items: center;
@@ -1,4 +1,6 @@
1
- .session-preview.active {
1
+ .session-preview {
2
+ container-name: session-preview;
3
+ container-type: inline-size;
2
4
  box-shadow: var(--shadow-float);
3
5
  }
4
6
 
@@ -758,3 +760,88 @@
758
760
  width: 14px;
759
761
  height: 14px;
760
762
  }
763
+
764
+ /* Refined session workspace: preserve the list/detail structure and action contracts. */
765
+ #panel-sessions.session-browser-refined .session-preview-header {
766
+ padding: 12px 16px 8px; gap: 8px 16px;
767
+ display: grid; grid-template-columns: minmax(0, 1fr);
768
+ grid-template-areas: "title" "actions";
769
+ background: var(--color-surface); backdrop-filter: none;
770
+ }
771
+ #panel-sessions.session-browser-refined .session-preview-title {
772
+ font-size: 17px; line-height: 1.5; letter-spacing: -.015em;
773
+ }
774
+ #panel-sessions.session-browser-refined .session-preview-header > div:first-child { grid-area: title; min-width: 0; }
775
+ #panel-sessions .session-preview-actions {
776
+ grid-area: actions; display: flex; justify-content: space-between; align-items: center;
777
+ flex-wrap: nowrap; gap: 16px; margin-top: 0; min-width: 0; width: 100%;
778
+ }
779
+ #panel-sessions .session-preview-actions button {
780
+ min-width: 32px; min-height: 32px; height: 32px; width: auto; padding: 0 10px;
781
+ border-radius: var(--radius-sm); box-shadow: none; white-space: nowrap;
782
+ transition: background-color 120ms ease-out, transform 100ms ease-out, color 120ms ease-out;
783
+ touch-action: manipulation;
784
+ }
785
+ #panel-sessions .session-secondary-actions {
786
+ display: flex; align-items: center; flex-wrap: nowrap; gap: 8px;
787
+ min-width: 0; overflow: hidden;
788
+ }
789
+ #panel-sessions .session-secondary-actions button { background: transparent; border-color: transparent; color: var(--color-text-secondary); }
790
+ #panel-sessions .session-secondary-actions .session-link-group { display: inline-flex; gap: 0; flex-shrink: 0; }
791
+ #panel-sessions .session-primary-actions {
792
+ display: flex; align-items: center; flex-shrink: 0; gap: 16px; white-space: nowrap;
793
+ }
794
+ #panel-sessions .session-primary-actions .btn-session-export {
795
+ background: var(--color-brand); color: #fff;
796
+ border-color: var(--color-brand); font-weight: 600;
797
+ box-shadow: 0 2px 6px rgba(210, 107, 90, 0.18);
798
+ }
799
+ #panel-sessions .session-delete-text-button {
800
+ border-color: transparent; background: transparent; color: #b74545;
801
+ box-shadow: none; font-weight: 600;
802
+ }
803
+ #panel-sessions .session-preview-actions button:hover:not(:disabled) { transform: none; background: var(--color-surface-alt); }
804
+ #panel-sessions .session-primary-actions .btn-session-export:hover:not(:disabled) { background: var(--color-brand-dark); border-color: var(--color-brand-dark); transform: translateY(-1px); }
805
+ #panel-sessions .session-primary-actions .session-delete-text-button:hover:not(:disabled) { background: rgba(189, 70, 68, 0.06); border-color: transparent; color: #9f3b3b; }
806
+ #panel-sessions .session-preview-actions button:active:not(:disabled) { transform: scale(.97); }
807
+ #panel-sessions .session-preview-actions :is(button, select):focus-visible,
808
+ #panel-sessions .session-empty-refined button:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
809
+ #panel-sessions .session-preview-actions :disabled { opacity: .5; cursor: not-allowed; }
810
+ #panel-sessions .session-export-feedback { padding: 0 16px 16px; color: var(--color-text-secondary); line-height: 1.6; }
811
+ #panel-sessions .session-export-feedback small { display: block; font-size: 12px; }
812
+ #panel-sessions .session-export-notice {
813
+ margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--color-border-soft);
814
+ border-radius: var(--radius-sm); background: var(--color-surface-alt); font-size: 13px;
815
+ }
816
+ #panel-sessions .session-search-status {
817
+ display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
818
+ padding: 10px 2px 14px; font-size: 12px; line-height: 1.6; color: var(--color-text-secondary);
819
+ }
820
+ #panel-sessions .session-search-count { font-weight: 600; color: var(--color-text-primary); font-variant-numeric: tabular-nums; }
821
+ #panel-sessions .session-search-partial { color: var(--color-text-secondary); }
822
+ #panel-sessions .session-search-scope { font-size: inherit; margin-inline-start: auto; }
823
+ #panel-sessions .session-empty-refined { padding: 40px 20px; border: 1px dashed var(--color-border-soft); background: transparent; }
824
+ #panel-sessions .session-empty-refined::before { display: none; }
825
+ #panel-sessions .session-empty-refined p { margin: 0 0 16px; line-height: 1.65; }
826
+ #panel-sessions .session-empty-refined button { min-height: 44px; padding-inline: 16px; }
827
+ @container session-preview (max-width: 620px) {
828
+ #panel-sessions .session-action-optional-text { display: none; }
829
+ #panel-sessions .session-action-optional-label {
830
+ width: 32px;
831
+ min-width: 32px;
832
+ padding: 0;
833
+ justify-content: center;
834
+ }
835
+ }
836
+ @media (max-width: 640px) {
837
+ #panel-sessions .session-preview-actions { gap: 10px; }
838
+ #panel-sessions .session-secondary-actions { flex: 1 1 180px; }
839
+ #panel-sessions .session-preview-actions button { width: auto; }
840
+ #panel-sessions .session-search-scope { flex-basis: 100%; margin-inline-start: 0; }
841
+ #panel-sessions.session-browser-refined .session-preview-header { padding: 12px 12px 8px; gap: 8px; grid-template-columns: 1fr; grid-template-areas: "title" "actions"; }
842
+ #panel-sessions .session-export-feedback { padding-inline: 12px; }
843
+ }
844
+ @media (prefers-reduced-motion: reduce) {
845
+ #panel-sessions .session-preview-actions button { transition: none; }
846
+ #panel-sessions .session-preview-actions button:active:not(:disabled) { transform: none; }
847
+ }
@@ -1,6 +1,6 @@
1
1
  .session-selector-section {
2
- padding: 8px 10px;
3
- gap: 4px;
2
+ padding: 0 10px 8px;
3
+ gap: 0;
4
4
  margin-bottom: 8px;
5
5
  }
6
6
 
@@ -16,7 +16,7 @@
16
16
 
17
17
  /* ---- 分段控制器:苹果风格 ---- */
18
18
  .settings-tab-header {
19
- margin: 0 0 24px;
19
+ margin: 0 0 12px;
20
20
  padding: 0;
21
21
  }
22
22
 
@@ -107,6 +107,53 @@
107
107
  font-weight: var(--font-weight-caption);
108
108
  }
109
109
 
110
+ .skills-flow-header > .skills-flow-actions {
111
+ display: flex;
112
+ flex-wrap: nowrap;
113
+ gap: 8px;
114
+ padding: 0;
115
+ border: 0;
116
+ background: transparent;
117
+ }
118
+
119
+ .skills-flow-header > .skills-flow-actions .skills-action-btn {
120
+ min-height: 32px;
121
+ padding: 7px 10px;
122
+ white-space: nowrap;
123
+ }
124
+
125
+ .skills-market-selection-bar {
126
+ display: flex;
127
+ align-items: center;
128
+ justify-content: space-between;
129
+ gap: 12px;
130
+ padding: 8px var(--spacing-md);
131
+ border-bottom: 1px solid var(--color-border-soft);
132
+ background: rgba(255,255,255,0.22);
133
+ }
134
+
135
+ .skills-market-select-all {
136
+ display: inline-flex;
137
+ align-items: center;
138
+ gap: 6px;
139
+ color: var(--color-text-secondary);
140
+ font-size: var(--font-size-caption);
141
+ }
142
+
143
+ .skills-market-selection-count {
144
+ color: var(--color-text-tertiary);
145
+ font-size: var(--font-size-caption);
146
+ }
147
+
148
+ .skills-market-item-check {
149
+ display: inline-flex;
150
+ align-items: center;
151
+ flex: 0 0 auto;
152
+ }
153
+
154
+ .skills-flow-item.selected {
155
+ background: rgba(210, 107, 90, 0.08);
156
+ }
110
157
  /* Flow list */
111
158
  .skills-flow-list {
112
159
  display: flex;
@@ -20,8 +20,8 @@
20
20
  --color-surface-chip: rgba(30, 31, 34, 0.76);
21
21
  --color-text-primary: #ECE8E4;
22
22
  --color-text-secondary: #B5ABA4;
23
- --color-text-tertiary: #8F847D;
24
- --color-text-muted: #6E6259;
23
+ --color-text-tertiary: #A59A91;
24
+ --color-text-muted: #9A8D83;
25
25
  --color-border: rgba(255, 255, 255, 0.09);
26
26
  --color-border-soft: rgba(255, 255, 255, 0.06);
27
27
  --color-border-strong: rgba(255, 255, 255, 0.2);
@@ -29,8 +29,8 @@
29
29
  --color-surface-chip: rgba(30, 31, 34, 0.76);
30
30
  --color-text-primary: #ECE8E4;
31
31
  --color-text-secondary: #B5ABA4;
32
- --color-text-tertiary: #8F847D;
33
- --color-text-muted: #6E6259;
32
+ --color-text-tertiary: #A59A91;
33
+ --color-text-muted: #9A8D83;
34
34
  --color-border: rgba(255, 255, 255, 0.09);
35
35
  --color-border-soft: rgba(255, 255, 255, 0.06);
36
36
  --color-border-strong: rgba(255, 255, 255, 0.2);
@@ -0,0 +1,88 @@
1
+ /*
2
+ * Codex Mate Web UI - ocean light theme tokens (hand maintained).
3
+ *
4
+ * Background layer adapted from the "dafy-whale-theme" project
5
+ * (https://github.com/DViridescent/dafy-whale-theme, MIT licensed).
6
+ * Only the static background layer (the ocean wash gradients) is reused:
7
+ * no mascot, no fish swarm, no bubble animation, no plugin dependency.
8
+ *
9
+ * The component section of theme-ocean.css is GENERATED - do not edit by hand.
10
+ * Regenerate after changing any stylesheet:
11
+ * node scripts/generate-ocean-theme-css.mjs
12
+ */
13
+ :root[data-theme="ocean"] {
14
+ color-scheme: light;
15
+
16
+ /* 品牌色:海洋蓝(源自 dafy-whale-theme 的 --dsw-alias-brand-primary) */
17
+ --color-brand: #3B62F6;
18
+ --color-brand-dark: #2B4BD0;
19
+ --color-brand-light: rgba(59, 98, 246, 0.13);
20
+ --color-brand-subtle: rgba(59, 98, 246, 0.2);
21
+
22
+ /* 中性蓝层级底色 */
23
+ --color-bg: #E9F3FC;
24
+ --color-surface: #F3F9FE;
25
+ --color-surface-alt: #E0EDF9;
26
+ --color-surface-elevated: #FFFFFF;
27
+ --color-surface-tint: rgba(243, 249, 254, 0.86);
28
+ --color-surface-chip: rgba(255, 255, 255, 0.76);
29
+ --color-text-primary: #0E2A5C;
30
+ --color-text-secondary: #3B5C85;
31
+ --color-text-tertiary: #45678F;
32
+ --color-text-muted: #476A90;
33
+ --color-border: rgba(31, 86, 150, 0.18);
34
+ --color-border-soft: rgba(31, 86, 150, 0.13);
35
+ --color-border-strong: rgba(31, 86, 150, 0.34);
36
+
37
+ --color-success: #127450;
38
+ --color-error: #B92A50;
39
+
40
+ /* Delta 指示色 */
41
+ --color-delta-up: #127450;
42
+ --color-delta-down: #B92A50;
43
+
44
+ /* 热力图色阶:海洋蓝 alpha 阶梯 */
45
+ --color-heatmap-1: rgba(59, 98, 246, 0.2);
46
+ --color-heatmap-2: rgba(59, 98, 246, 0.4);
47
+ --color-heatmap-3: rgba(59, 98, 246, 0.6);
48
+ --color-heatmap-4: rgba(59, 98, 246, 0.85);
49
+
50
+ /*
51
+ * 背景海面光晕:取自 dafy-whale-theme 的 .dafy-wash 三层径向渐变,
52
+ * 仅保留静态渐变层,颜色全部由下方 wash token 承载。
53
+ */
54
+ --color-ocean-wash-brand: rgba(59, 98, 246, 0.30);
55
+ --color-ocean-wash-cyan: rgba(87, 199, 232, 0.26);
56
+ --color-ocean-wash-teal: rgba(47, 208, 181, 0.14);
57
+
58
+ --bg-warm-gradient:
59
+ radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 26%),
60
+ radial-gradient(circle at 86% 18%, rgba(214, 236, 255, 0.55), rgba(214, 236, 255, 0) 30%),
61
+ linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface-alt) 100%);
62
+
63
+ --color-bg-topbar-strong: rgba(233, 243, 252, 0.96);
64
+ --color-bg-topbar-soft: rgba(233, 243, 252, 0.86);
65
+ --color-bg-topbar-clear: rgba(233, 243, 252, 0);
66
+
67
+ /* 阴影系统:冷色蓝调 */
68
+ --shadow-subtle: 0 1px 2px rgba(16, 48, 92, 0.05);
69
+ --shadow-card: 0 12px 30px rgba(16, 48, 92, 0.08);
70
+ --shadow-card-hover: 0 18px 44px rgba(16, 48, 92, 0.14);
71
+ --shadow-float: 0 22px 56px rgba(12, 40, 80, 0.18);
72
+ --shadow-raised: 0 14px 30px rgba(16, 48, 92, 0.14);
73
+ --shadow-modal:
74
+ 0 16px 42px rgba(12, 40, 80, 0.16),
75
+ 0 34px 84px rgba(12, 40, 80, 0.16);
76
+ --shadow-input-focus:
77
+ 0 0 0 3px var(--color-brand-light),
78
+ 0 1px 2px rgba(16, 48, 92, 0.06);
79
+ }
80
+
81
+ /* 背景海面光晕:固定层,不参与滚动,避免长页面拉伸与错位 */
82
+ :root[data-theme="ocean"] body::before {
83
+ background:
84
+ radial-gradient(1100px 620px at 88% -8%, var(--color-ocean-wash-brand), transparent 62%),
85
+ radial-gradient(900px 560px at -6% 108%, var(--color-ocean-wash-cyan), transparent 58%),
86
+ radial-gradient(520px 340px at 50% 46%, var(--color-ocean-wash-teal), transparent 70%);
87
+ mix-blend-mode: soft-light;
88
+ }