cladogram 0.5.5-beta.5 → 0.5.5-beta.7
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.
- package/README.md +2 -2
- package/docs/release.md +13 -0
- package/package.json +2 -4
- package/plugins/agent/index.js +1875 -357
- package/plugins/agent/style.css +1209 -324
- package/plugins/brand/index.js +211 -3
- package/plugins/brand/style.css +18 -14
- package/plugins/directory/style.css +110 -40
- package/plugins/view-controls/style.css +4 -7
- package/src/agent/context.js +430 -0
- package/src/agent/probe.js +58 -0
- package/src/agent/runtime.js +418 -28
- package/src/agent/sessions.js +237 -32
- package/src/html/canvas-ui.css +75 -11
- package/src/html/page.js +1 -0
- package/src/html/plugin-ui.css +382 -86
- package/src/server/agent.js +818 -50
- package/src/server/assets/library-canvas.js +305 -1
- package/src/server/assets/library.html +1 -1
- package/src/server/assets/library.js +329 -5
- package/src/server/plugin-registry.js +98 -0
- package/src/server/plugin-settings.js +1 -1
- package/src/server/workspace.js +113 -8
- package/src/workspace/objects.js +125 -0
- package/docs/plugin-development.md +0 -135
- package/docs/plugin-ui.md +0 -43
package/src/html/plugin-ui.css
CHANGED
|
@@ -1,48 +1,70 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--clado-ui-text: #
|
|
3
|
-
--clado-ui-muted: #
|
|
4
|
-
--clado-ui-
|
|
5
|
-
--clado-ui-
|
|
6
|
-
--clado-ui-
|
|
7
|
-
--clado-ui-
|
|
8
|
-
--clado-ui-
|
|
9
|
-
--clado-ui-
|
|
10
|
-
--clado-ui-
|
|
11
|
-
--clado-ui-
|
|
12
|
-
--clado-ui-
|
|
13
|
-
--clado-ui-
|
|
14
|
-
--clado-ui-
|
|
15
|
-
--clado-ui-
|
|
16
|
-
--clado-ui-
|
|
2
|
+
--clado-ui-text: #14171f;
|
|
3
|
+
--clado-ui-muted: #5a6273;
|
|
4
|
+
--clado-ui-subtle: #8790a2;
|
|
5
|
+
--clado-ui-accent: #181a20;
|
|
6
|
+
--clado-ui-brand: #2563eb;
|
|
7
|
+
--clado-ui-brand-soft: rgb(37 99 235 / .11);
|
|
8
|
+
--clado-ui-surface: rgb(255 255 255 / .30);
|
|
9
|
+
--clado-ui-panel-surface: rgb(255 255 255 / .30);
|
|
10
|
+
--clado-ui-well: rgb(255 255 255 / .18);
|
|
11
|
+
--clado-ui-well-border: rgb(255 255 255 / .58);
|
|
12
|
+
--clado-ui-well-focus: rgb(255 255 255 / .38);
|
|
13
|
+
--clado-ui-track: rgb(255 255 255 / .14);
|
|
14
|
+
--clado-ui-hover: rgb(255 255 255 / .26);
|
|
15
|
+
--clado-ui-hover-border: rgb(255 255 255 / .64);
|
|
16
|
+
--clado-ui-active: rgb(255 255 255 / .40);
|
|
17
|
+
--clado-ui-active-shadow: 0 2px 10px rgb(15 23 42 / .08), 0 .5px 1px rgb(15 23 42 / .05), inset 0 1px 0 rgb(255 255 255 / .92);
|
|
18
|
+
--clado-ui-popover: rgb(255 255 255 / .84);
|
|
19
|
+
--clado-ui-solid: #f8f9fc;
|
|
20
|
+
--clado-ui-edge: rgb(15 23 42 / .09);
|
|
21
|
+
--clado-ui-highlight: rgb(255 255 255 / .94);
|
|
22
|
+
--clado-ui-rim: rgb(255 255 255 / .46);
|
|
23
|
+
--clado-ui-shadow: 0 10px 30px rgb(15 23 42 / .10), 0 2px 6px rgb(15 23 42 / .05);
|
|
24
|
+
--clado-ui-glass-outline: rgb(255 255 255 / .78);
|
|
25
|
+
--clado-ui-glass-outer: rgb(15 23 42 / .08);
|
|
26
|
+
--clado-ui-glass-shadow: 0 18px 48px rgb(15 23 42 / .12), 0 3px 12px rgb(15 23 42 / .05), 0 0 0 .5px var(--clado-ui-glass-outer), inset 0 1px 0 var(--clado-ui-highlight), inset 0 0 20px rgb(255 255 255 / .18);
|
|
27
|
+
--clado-ui-control-blur: 18px;
|
|
17
28
|
--clado-ui-panel-blur: 18px;
|
|
18
29
|
--clado-ui-radius: 16px;
|
|
19
30
|
--clado-ui-gap: 8px;
|
|
20
31
|
}
|
|
21
32
|
:root[data-theme="dark"] {
|
|
22
33
|
color-scheme: dark;
|
|
23
|
-
--clado-ui-text: #
|
|
24
|
-
--clado-ui-muted: #
|
|
25
|
-
--clado-ui-
|
|
26
|
-
--clado-ui-
|
|
27
|
-
--clado-ui-
|
|
28
|
-
--clado-ui-
|
|
29
|
-
--clado-ui-
|
|
30
|
-
--clado-ui-
|
|
31
|
-
--clado-ui-
|
|
32
|
-
--clado-ui-
|
|
33
|
-
--clado-ui-
|
|
34
|
-
--clado-ui-
|
|
35
|
-
--clado-ui-
|
|
36
|
-
--clado-ui-
|
|
37
|
-
--clado-ui-
|
|
38
|
-
--clado-ui-
|
|
34
|
+
--clado-ui-text: #f3f6fb;
|
|
35
|
+
--clado-ui-muted: #a4aec2;
|
|
36
|
+
--clado-ui-subtle: #78839a;
|
|
37
|
+
--clado-ui-accent: #f3f6fb;
|
|
38
|
+
--clado-ui-brand: #60a5fa;
|
|
39
|
+
--clado-ui-brand-soft: rgb(96 165 250 / .16);
|
|
40
|
+
--clado-ui-surface: rgb(18 22 32 / .34);
|
|
41
|
+
--clado-ui-panel-surface: rgb(18 22 32 / .34);
|
|
42
|
+
--clado-ui-well: rgb(255 255 255 / .06);
|
|
43
|
+
--clado-ui-well-border: rgb(255 255 255 / .14);
|
|
44
|
+
--clado-ui-well-focus: rgb(255 255 255 / .11);
|
|
45
|
+
--clado-ui-track: rgb(255 255 255 / .05);
|
|
46
|
+
--clado-ui-hover: rgb(255 255 255 / .085);
|
|
47
|
+
--clado-ui-hover-border: rgb(255 255 255 / .15);
|
|
48
|
+
--clado-ui-active: rgb(255 255 255 / .14);
|
|
49
|
+
--clado-ui-active-shadow: 0 2px 10px rgb(0 0 0 / .28), inset 0 1px 0 rgb(255 255 255 / .24);
|
|
50
|
+
--clado-ui-popover: rgb(22 27 40 / .88);
|
|
51
|
+
--clado-ui-solid: #181c26;
|
|
52
|
+
--clado-ui-edge: rgb(255 255 255 / .10);
|
|
53
|
+
--clado-ui-highlight: rgb(255 255 255 / .24);
|
|
54
|
+
--clado-ui-rim: rgb(255 255 255 / .12);
|
|
55
|
+
--clado-ui-shadow: 0 12px 34px rgb(0 0 0 / .44), 0 2px 8px rgb(0 0 0 / .24);
|
|
56
|
+
--clado-ui-glass-outline: rgb(255 255 255 / .18);
|
|
57
|
+
--clado-ui-glass-outer: rgb(0 0 0 / .46);
|
|
58
|
+
--clado-ui-glass-shadow: 0 22px 56px rgb(0 0 0 / .56), 0 4px 14px rgb(0 0 0 / .30), 0 0 0 .5px var(--clado-ui-glass-outer), inset 0 1px 0 var(--clado-ui-highlight), inset 0 0 20px rgb(255 255 255 / .04);
|
|
59
|
+
--clado-ui-control-blur: 18px;
|
|
60
|
+
--clado-ui-panel-blur: 18px;
|
|
39
61
|
}
|
|
40
62
|
.clado-plugin-slot {
|
|
41
63
|
position: fixed;
|
|
42
64
|
display: flex;
|
|
43
65
|
gap: var(--clado-ui-gap);
|
|
44
66
|
z-index: 18;
|
|
45
|
-
font: 13px/1.35 system-ui, sans-serif;
|
|
67
|
+
font: 13px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
|
|
46
68
|
pointer-events: none;
|
|
47
69
|
opacity: 1;
|
|
48
70
|
transform: none;
|
|
@@ -63,6 +85,17 @@
|
|
|
63
85
|
.clado-plugin-slot[data-slot="top-right"] { top: max(14px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); flex-direction: column; align-items: end; }
|
|
64
86
|
.clado-plugin-slot[data-slot="bottom-left"] { bottom: max(16px, env(safe-area-inset-bottom)); left: max(16px, env(safe-area-inset-left)); align-items: end; }
|
|
65
87
|
.clado-plugin-slot[data-slot="bottom-right"] { bottom: max(16px, env(safe-area-inset-bottom)); right: max(16px, env(safe-area-inset-right)); flex-direction: column-reverse; align-items: end; }
|
|
88
|
+
.clado-plugin-slot[data-slot="bottom-center"] { left: 10px; right: 10px; bottom: max(12px, env(safe-area-inset-bottom)); justify-content: center; align-items: end; z-index: 26; }
|
|
89
|
+
@media (max-width: 960px) {
|
|
90
|
+
body[data-agent-dock="open"] .clado-plugin-slot[data-slot="bottom-left"] {
|
|
91
|
+
opacity: 0;
|
|
92
|
+
transform: translateY(8px) scale(.96);
|
|
93
|
+
pointer-events: none;
|
|
94
|
+
}
|
|
95
|
+
body[data-agent-dock="open"] .clado-plugin-slot[data-slot="bottom-left"] > * {
|
|
96
|
+
pointer-events: none;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
66
99
|
:where(.clado-ui-glass) {
|
|
67
100
|
position: relative;
|
|
68
101
|
z-index: 0;
|
|
@@ -70,7 +103,6 @@
|
|
|
70
103
|
.clado-ui-glass {
|
|
71
104
|
--clado-ui-glass-fill: var(--clado-ui-surface);
|
|
72
105
|
--clado-ui-glass-blur: var(--clado-ui-control-blur);
|
|
73
|
-
--clado-ui-glass-feather: 3px;
|
|
74
106
|
color: var(--clado-ui-text);
|
|
75
107
|
background: var(--clado-ui-solid);
|
|
76
108
|
border: 1px solid var(--clado-ui-edge);
|
|
@@ -80,7 +112,7 @@
|
|
|
80
112
|
.clado-ui-glass.clado-ui-glass-panel {
|
|
81
113
|
--clado-ui-glass-fill: var(--clado-ui-panel-surface);
|
|
82
114
|
--clado-ui-glass-blur: var(--clado-ui-panel-blur);
|
|
83
|
-
|
|
115
|
+
border-radius: 20px;
|
|
84
116
|
}
|
|
85
117
|
.clado-ui-button {
|
|
86
118
|
appearance: none;
|
|
@@ -94,43 +126,58 @@
|
|
|
94
126
|
padding: 5px 10px;
|
|
95
127
|
cursor: pointer;
|
|
96
128
|
white-space: nowrap;
|
|
129
|
+
transition: background 150ms cubic-bezier(.22,.75,.24,1), border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 120ms ease;
|
|
97
130
|
}
|
|
98
|
-
.clado-ui-button:where(:
|
|
99
|
-
color: var(--clado-ui-
|
|
131
|
+
.clado-ui-button:hover:where(:not(:disabled)) {
|
|
132
|
+
color: var(--clado-ui-text);
|
|
133
|
+
background: var(--clado-ui-hover);
|
|
134
|
+
border-color: var(--clado-ui-hover-border);
|
|
135
|
+
}
|
|
136
|
+
.clado-ui-button:is([aria-pressed="true"], [aria-expanded="true"], [aria-current="page"]) {
|
|
137
|
+
color: var(--clado-ui-text);
|
|
100
138
|
background: var(--clado-ui-active);
|
|
139
|
+
border-color: var(--clado-ui-glass-outline);
|
|
140
|
+
box-shadow: var(--clado-ui-active-shadow);
|
|
101
141
|
}
|
|
102
|
-
.clado-ui-button
|
|
103
|
-
|
|
142
|
+
.clado-ui-button.clado-ui-button-primary {
|
|
143
|
+
background: var(--clado-ui-accent);
|
|
144
|
+
border-color: transparent;
|
|
145
|
+
color: var(--clado-ui-solid);
|
|
146
|
+
font-weight: 600;
|
|
147
|
+
box-shadow: 0 2px 10px rgb(15 23 42 / .14);
|
|
148
|
+
}
|
|
149
|
+
.clado-ui-button.clado-ui-button-primary:hover:where(:not(:disabled)) {
|
|
150
|
+
opacity: .9;
|
|
151
|
+
background: var(--clado-ui-accent);
|
|
152
|
+
color: var(--clado-ui-solid);
|
|
153
|
+
border-color: transparent;
|
|
154
|
+
}
|
|
155
|
+
.clado-ui-button:focus-visible { outline: 2px solid var(--clado-ui-brand); outline-offset: 2px; }
|
|
156
|
+
.clado-ui-button:disabled { opacity: .48; cursor: default; }
|
|
104
157
|
.clado-ui-dialog {
|
|
105
158
|
--ink: var(--clado-ui-text);
|
|
106
159
|
--muted: var(--clado-ui-muted);
|
|
107
160
|
--line: var(--clado-ui-edge);
|
|
108
161
|
color: var(--clado-ui-text);
|
|
109
|
-
background:
|
|
110
|
-
backdrop-filter: blur(
|
|
111
|
-
-webkit-backdrop-filter: blur(
|
|
162
|
+
background: var(--clado-ui-popover);
|
|
163
|
+
backdrop-filter: blur(24px) saturate(185%);
|
|
164
|
+
-webkit-backdrop-filter: blur(24px) saturate(185%);
|
|
112
165
|
border: 1px solid var(--clado-ui-glass-outline);
|
|
113
|
-
border-radius:
|
|
114
|
-
box-shadow:
|
|
115
|
-
}
|
|
116
|
-
[data-theme="dark"] .clado-ui-dialog {
|
|
117
|
-
background: rgba(22, 27, 35, .88);
|
|
118
|
-
box-shadow: 0 16px 46px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .1);
|
|
166
|
+
border-radius: 20px;
|
|
167
|
+
box-shadow: var(--clado-ui-glass-shadow);
|
|
119
168
|
}
|
|
120
169
|
.clado-ui-dialog::backdrop {
|
|
121
170
|
background: rgba(15, 23, 42, .14);
|
|
122
|
-
backdrop-filter: blur(
|
|
171
|
+
backdrop-filter: blur(3px);
|
|
123
172
|
}
|
|
124
173
|
[data-theme="dark"] .clado-ui-dialog::backdrop {
|
|
125
|
-
background: rgba(0, 0, 0, .
|
|
174
|
+
background: rgba(0, 0, 0, .40);
|
|
126
175
|
}
|
|
127
176
|
.clado-ui-glass.clado-ui-button {
|
|
177
|
+
color: var(--clado-ui-text);
|
|
128
178
|
background-color: var(--clado-ui-solid);
|
|
129
179
|
border-color: var(--clado-ui-edge);
|
|
130
180
|
}
|
|
131
|
-
.clado-ui-glass.clado-ui-button:where(:hover:not(:disabled), [aria-expanded="true"], [aria-pressed="true"], [aria-current="page"], .clado-ui-button-primary) {
|
|
132
|
-
background-color: var(--clado-ui-active);
|
|
133
|
-
}
|
|
134
181
|
@supports (backdrop-filter: blur(1px)) {
|
|
135
182
|
@media (prefers-reduced-transparency: no-preference) {
|
|
136
183
|
.clado-ui-glass {
|
|
@@ -146,44 +193,20 @@
|
|
|
146
193
|
border-radius: inherit;
|
|
147
194
|
pointer-events: none;
|
|
148
195
|
background: var(--clado-ui-glass-fill);
|
|
149
|
-
backdrop-filter: blur(var(--clado-ui-glass-blur)) saturate(
|
|
150
|
-
-webkit-backdrop-filter: blur(var(--clado-ui-glass-blur)) saturate(
|
|
151
|
-
/* Retain enough blur at the edge to keep text behind the glass indistinct. */
|
|
152
|
-
mask-image:
|
|
153
|
-
linear-gradient(to right, rgb(0 0 0 / .95), #000 var(--clado-ui-glass-feather), #000 calc(100% - var(--clado-ui-glass-feather)), rgb(0 0 0 / .95)),
|
|
154
|
-
linear-gradient(to bottom, rgb(0 0 0 / .95), #000 var(--clado-ui-glass-feather), #000 calc(100% - var(--clado-ui-glass-feather)), rgb(0 0 0 / .95));
|
|
155
|
-
mask-composite: intersect;
|
|
156
|
-
}
|
|
157
|
-
.clado-ui-button, .clado-ui-glass.clado-ui-button {
|
|
158
|
-
--clado-ui-button-tint: 4%;
|
|
159
|
-
--clado-ui-button-outline: color-mix(in srgb, var(--clado-ui-edge) 36%, transparent);
|
|
160
|
-
background: color-mix(in srgb, var(--clado-ui-accent) var(--clado-ui-button-tint), transparent) padding-box;
|
|
161
|
-
border-color: var(--clado-ui-button-outline);
|
|
162
|
-
}
|
|
163
|
-
.clado-ui-button:hover:where(:not(:disabled)) {
|
|
164
|
-
--clado-ui-button-tint: 8%;
|
|
165
|
-
}
|
|
166
|
-
.clado-ui-button:is([aria-expanded="true"], [aria-pressed="true"], [aria-current="page"], .clado-ui-button-primary) {
|
|
167
|
-
--clado-ui-button-tint: 12%;
|
|
168
|
-
--clado-ui-button-outline: color-mix(in srgb, var(--clado-ui-accent) 16%, transparent);
|
|
196
|
+
backdrop-filter: blur(var(--clado-ui-glass-blur)) saturate(205%);
|
|
197
|
+
-webkit-backdrop-filter: blur(var(--clado-ui-glass-blur)) saturate(205%);
|
|
169
198
|
}
|
|
170
199
|
.clado-ui-glass.clado-ui-button {
|
|
200
|
+
background: transparent;
|
|
171
201
|
border-color: var(--clado-ui-glass-outline);
|
|
202
|
+
box-shadow: var(--clado-ui-glass-shadow);
|
|
172
203
|
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
inset: -1px;
|
|
180
|
-
padding: 1px;
|
|
181
|
-
border-radius: inherit;
|
|
182
|
-
pointer-events: none;
|
|
183
|
-
background: linear-gradient(146deg, var(--clado-ui-highlight), transparent 32% 58%, var(--clado-ui-rim));
|
|
184
|
-
mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
|
|
185
|
-
mask-composite: exclude;
|
|
186
|
-
}
|
|
204
|
+
.clado-ui-glass.clado-ui-button:hover:where(:not(:disabled)),
|
|
205
|
+
.clado-ui-glass.clado-ui-button:is([aria-expanded="true"], [aria-pressed="true"], [aria-current="page"]) {
|
|
206
|
+
--clado-ui-glass-fill: var(--clado-ui-active);
|
|
207
|
+
background: transparent;
|
|
208
|
+
border-color: var(--clado-ui-glass-outline);
|
|
209
|
+
box-shadow: var(--clado-ui-glass-shadow);
|
|
187
210
|
}
|
|
188
211
|
}
|
|
189
212
|
}
|
|
@@ -193,3 +216,276 @@
|
|
|
193
216
|
.clado-plugin-slot[data-slot="bottom-left"] { bottom: max(12px, env(safe-area-inset-bottom)); left: max(12px, env(safe-area-inset-left)); }
|
|
194
217
|
.clado-plugin-slot[data-slot="bottom-right"] { bottom: max(12px, env(safe-area-inset-bottom)); right: max(12px, env(safe-area-inset-right)); }
|
|
195
218
|
}
|
|
219
|
+
|
|
220
|
+
/* ============ 顶部悬浮多选汇总条(移动端严格视口居中收缩,零换行越界) ============ */
|
|
221
|
+
.clado-selection-bar {
|
|
222
|
+
position: fixed;
|
|
223
|
+
top: calc(max(12px, env(safe-area-inset-top)) + 52px);
|
|
224
|
+
left: 10px;
|
|
225
|
+
right: 10px;
|
|
226
|
+
width: fit-content;
|
|
227
|
+
max-width: min(480px, calc(100vw - 20px));
|
|
228
|
+
margin: 0 auto;
|
|
229
|
+
z-index: 32;
|
|
230
|
+
min-height: 36px;
|
|
231
|
+
border-radius: 999px;
|
|
232
|
+
padding: 4px 6px 4px 12px;
|
|
233
|
+
display: flex;
|
|
234
|
+
align-items: center;
|
|
235
|
+
gap: 8px;
|
|
236
|
+
font: 12px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
|
|
237
|
+
color: var(--clado-ui-text);
|
|
238
|
+
background: rgba(255, 255, 255, 0.36);
|
|
239
|
+
backdrop-filter: blur(20px) saturate(185%) brightness(1.06);
|
|
240
|
+
-webkit-backdrop-filter: blur(20px) saturate(185%) brightness(1.06);
|
|
241
|
+
border: 1px solid rgba(255, 255, 255, 0.84);
|
|
242
|
+
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05), 0 0 0 0.5px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.96);
|
|
243
|
+
opacity: 0;
|
|
244
|
+
pointer-events: none;
|
|
245
|
+
transform: translateY(-8px) scale(0.96);
|
|
246
|
+
transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
247
|
+
box-sizing: border-box;
|
|
248
|
+
}
|
|
249
|
+
:root[data-theme="dark"] .clado-selection-bar {
|
|
250
|
+
background: rgba(20, 25, 36, 0.38);
|
|
251
|
+
backdrop-filter: blur(20px) saturate(195%);
|
|
252
|
+
-webkit-backdrop-filter: blur(20px) saturate(195%);
|
|
253
|
+
border-color: rgba(255, 255, 255, 0.18);
|
|
254
|
+
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42), 0 0 0 0.5px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
|
|
255
|
+
}
|
|
256
|
+
.clado-selection-bar.show {
|
|
257
|
+
opacity: 1;
|
|
258
|
+
pointer-events: auto;
|
|
259
|
+
transform: translateY(0) scale(1);
|
|
260
|
+
}
|
|
261
|
+
.clado-selection-dot {
|
|
262
|
+
flex: 0 0 auto;
|
|
263
|
+
width: 7px;
|
|
264
|
+
height: 7px;
|
|
265
|
+
border-radius: 999px;
|
|
266
|
+
background: var(--clado-ui-brand);
|
|
267
|
+
}
|
|
268
|
+
.clado-selection-text {
|
|
269
|
+
flex: 1 1 auto;
|
|
270
|
+
min-width: 0;
|
|
271
|
+
font-weight: 600;
|
|
272
|
+
white-space: nowrap;
|
|
273
|
+
overflow: hidden;
|
|
274
|
+
text-overflow: ellipsis;
|
|
275
|
+
}
|
|
276
|
+
.clado-selection-send {
|
|
277
|
+
appearance: none;
|
|
278
|
+
flex: 0 0 auto;
|
|
279
|
+
height: 26px;
|
|
280
|
+
border: 0;
|
|
281
|
+
background: var(--clado-ui-brand);
|
|
282
|
+
color: #fff;
|
|
283
|
+
font: inherit;
|
|
284
|
+
font-size: 11.5px;
|
|
285
|
+
font-weight: 600;
|
|
286
|
+
padding: 0 10px;
|
|
287
|
+
border-radius: 999px;
|
|
288
|
+
white-space: nowrap;
|
|
289
|
+
cursor: pointer;
|
|
290
|
+
}
|
|
291
|
+
.clado-selection-clear {
|
|
292
|
+
appearance: none;
|
|
293
|
+
flex: 0 0 auto;
|
|
294
|
+
height: 26px;
|
|
295
|
+
border: 0;
|
|
296
|
+
background: transparent;
|
|
297
|
+
color: var(--clado-ui-muted);
|
|
298
|
+
font: inherit;
|
|
299
|
+
font-size: 12px;
|
|
300
|
+
font-weight: 550;
|
|
301
|
+
padding: 0 8px;
|
|
302
|
+
border-radius: 999px;
|
|
303
|
+
white-space: nowrap;
|
|
304
|
+
cursor: pointer;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/* ============ 双级长按画布上下文浮层 ============ */
|
|
308
|
+
.clado-canvas-ctx-menu {
|
|
309
|
+
position: fixed;
|
|
310
|
+
z-index: 94;
|
|
311
|
+
display: flex;
|
|
312
|
+
flex-direction: column;
|
|
313
|
+
gap: 3px;
|
|
314
|
+
padding: 6px;
|
|
315
|
+
border-radius: 16px;
|
|
316
|
+
min-width: 184px;
|
|
317
|
+
max-width: calc(100vw - 20px);
|
|
318
|
+
background: var(--clado-ui-popover);
|
|
319
|
+
backdrop-filter: blur(24px) saturate(190%);
|
|
320
|
+
-webkit-backdrop-filter: blur(24px) saturate(190%);
|
|
321
|
+
border: 1px solid var(--clado-ui-glass-outline);
|
|
322
|
+
box-shadow: var(--clado-ui-glass-shadow);
|
|
323
|
+
font: 13px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
|
|
324
|
+
color: var(--clado-ui-text);
|
|
325
|
+
opacity: 0;
|
|
326
|
+
pointer-events: none;
|
|
327
|
+
transform: scale(0.93) translateY(6px);
|
|
328
|
+
transform-origin: bottom center;
|
|
329
|
+
transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1), transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
330
|
+
box-sizing: border-box;
|
|
331
|
+
}
|
|
332
|
+
.clado-canvas-ctx-menu.open,
|
|
333
|
+
.clado-canvas-ctx-menu.show {
|
|
334
|
+
opacity: 1;
|
|
335
|
+
pointer-events: auto;
|
|
336
|
+
transform: scale(1) translateY(0);
|
|
337
|
+
}
|
|
338
|
+
.clado-canvas-ctx-head {
|
|
339
|
+
padding: 3px 9px 5px;
|
|
340
|
+
font-size: 10.5px;
|
|
341
|
+
font-weight: 600;
|
|
342
|
+
color: var(--clado-ui-subtle);
|
|
343
|
+
display: flex;
|
|
344
|
+
align-items: center;
|
|
345
|
+
justify-content: space-between;
|
|
346
|
+
gap: 8px;
|
|
347
|
+
border-bottom: 1px solid var(--clado-ui-edge);
|
|
348
|
+
margin-bottom: 2px;
|
|
349
|
+
}
|
|
350
|
+
.clado-canvas-ctx-sep {
|
|
351
|
+
height: 1px;
|
|
352
|
+
background: var(--clado-ui-edge);
|
|
353
|
+
margin: 2px 6px;
|
|
354
|
+
}
|
|
355
|
+
.clado-canvas-ctx-item {
|
|
356
|
+
appearance: none;
|
|
357
|
+
border: 1px solid transparent;
|
|
358
|
+
background: transparent;
|
|
359
|
+
color: var(--clado-ui-text);
|
|
360
|
+
font: inherit;
|
|
361
|
+
font-size: 12.5px;
|
|
362
|
+
font-weight: 520;
|
|
363
|
+
padding: 7.5px 10px;
|
|
364
|
+
border-radius: 10px;
|
|
365
|
+
text-align: left;
|
|
366
|
+
cursor: pointer;
|
|
367
|
+
display: flex;
|
|
368
|
+
align-items: center;
|
|
369
|
+
justify-content: space-between;
|
|
370
|
+
gap: 10px;
|
|
371
|
+
}
|
|
372
|
+
.clado-canvas-ctx-item:hover,
|
|
373
|
+
.clado-canvas-ctx-item:active {
|
|
374
|
+
background: var(--clado-ui-active);
|
|
375
|
+
border-color: var(--clado-ui-glass-outline);
|
|
376
|
+
}
|
|
377
|
+
.clado-canvas-ctx-item.danger { color: #e11d48; }
|
|
378
|
+
:root[data-theme="dark"] .clado-canvas-ctx-item.danger { color: #fb7185; }
|
|
379
|
+
|
|
380
|
+
/* ============ 36% 冰晶毛玻璃插件市场浮层 ============ */
|
|
381
|
+
.clado-market-overlay {
|
|
382
|
+
position: fixed;
|
|
383
|
+
inset: 0;
|
|
384
|
+
z-index: 86;
|
|
385
|
+
padding: calc(max(12px, env(safe-area-inset-top)) + 48px) 10px max(16px, env(safe-area-inset-bottom));
|
|
386
|
+
overflow: visible;
|
|
387
|
+
pointer-events: none;
|
|
388
|
+
visibility: hidden;
|
|
389
|
+
font: 13px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
|
|
390
|
+
color: var(--clado-ui-text);
|
|
391
|
+
transition: visibility 0s linear 280ms;
|
|
392
|
+
}
|
|
393
|
+
.clado-market-overlay * { box-sizing: border-box; }
|
|
394
|
+
.clado-market-overlay.show {
|
|
395
|
+
pointer-events: auto;
|
|
396
|
+
visibility: visible;
|
|
397
|
+
transition-delay: 0s;
|
|
398
|
+
}
|
|
399
|
+
.clado-market-sheet {
|
|
400
|
+
max-width: 480px;
|
|
401
|
+
max-height: calc(100dvh - 76px);
|
|
402
|
+
overflow-y: auto;
|
|
403
|
+
-webkit-overflow-scrolling: touch;
|
|
404
|
+
touch-action: pan-y;
|
|
405
|
+
margin: 0 auto;
|
|
406
|
+
padding: 14px;
|
|
407
|
+
border-radius: 22px;
|
|
408
|
+
display: flex;
|
|
409
|
+
flex-direction: column;
|
|
410
|
+
gap: 10px;
|
|
411
|
+
background: rgba(255, 255, 255, 0.36);
|
|
412
|
+
backdrop-filter: blur(20px) saturate(185%) brightness(1.06);
|
|
413
|
+
-webkit-backdrop-filter: blur(20px) saturate(185%) brightness(1.06);
|
|
414
|
+
border: 1px solid rgba(255, 255, 255, 0.84);
|
|
415
|
+
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045), 0 0 0 0.5px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.96), inset 0 0 22px rgba(255, 255, 255, 0.28);
|
|
416
|
+
opacity: 0;
|
|
417
|
+
transform: translateY(10px) scale(0.985);
|
|
418
|
+
transition: opacity 250ms cubic-bezier(0.22, 1, 0.36, 1), transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
419
|
+
}
|
|
420
|
+
:root[data-theme="dark"] .clado-market-sheet {
|
|
421
|
+
background: rgba(20, 25, 36, 0.38);
|
|
422
|
+
backdrop-filter: blur(20px) saturate(195%);
|
|
423
|
+
-webkit-backdrop-filter: blur(20px) saturate(195%);
|
|
424
|
+
border-color: rgba(255, 255, 255, 0.18);
|
|
425
|
+
box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 0 0.5px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
|
|
426
|
+
}
|
|
427
|
+
.clado-market-overlay.show .clado-market-sheet {
|
|
428
|
+
opacity: 1;
|
|
429
|
+
transform: translateY(0) scale(1);
|
|
430
|
+
}
|
|
431
|
+
.clado-market-well {
|
|
432
|
+
background: rgba(255, 255, 255, 0.34);
|
|
433
|
+
border: 1px solid rgba(255, 255, 255, 0.72);
|
|
434
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
|
|
435
|
+
border-radius: 15px;
|
|
436
|
+
}
|
|
437
|
+
:root[data-theme="dark"] .clado-market-well {
|
|
438
|
+
background: rgba(255, 255, 255, 0.065);
|
|
439
|
+
border-color: rgba(255, 255, 255, 0.14);
|
|
440
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
|
|
441
|
+
}
|
|
442
|
+
.clado-market-tabs {
|
|
443
|
+
display: inline-flex;
|
|
444
|
+
gap: 2px;
|
|
445
|
+
padding: 2.5px;
|
|
446
|
+
border-radius: 10px;
|
|
447
|
+
background: var(--clado-ui-track);
|
|
448
|
+
border: 0.5px solid var(--clado-ui-well-border);
|
|
449
|
+
}
|
|
450
|
+
.clado-market-tab {
|
|
451
|
+
appearance: none;
|
|
452
|
+
border: 1px solid transparent;
|
|
453
|
+
background: transparent;
|
|
454
|
+
color: var(--clado-ui-muted);
|
|
455
|
+
font: inherit;
|
|
456
|
+
font-size: 11.5px;
|
|
457
|
+
font-weight: 520;
|
|
458
|
+
padding: 4.5px 9px;
|
|
459
|
+
border-radius: 8px;
|
|
460
|
+
cursor: pointer;
|
|
461
|
+
white-space: nowrap;
|
|
462
|
+
}
|
|
463
|
+
.clado-market-tab.active {
|
|
464
|
+
color: var(--clado-ui-text);
|
|
465
|
+
font-weight: 620;
|
|
466
|
+
background: var(--clado-ui-active);
|
|
467
|
+
border-color: var(--clado-ui-glass-outline);
|
|
468
|
+
box-shadow: var(--clado-ui-active-shadow);
|
|
469
|
+
}
|
|
470
|
+
.clado-market-card {
|
|
471
|
+
padding: 12px;
|
|
472
|
+
cursor: pointer;
|
|
473
|
+
transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), background-color 150ms ease;
|
|
474
|
+
}
|
|
475
|
+
.clado-market-card:hover { background: var(--clado-ui-hover); }
|
|
476
|
+
.clado-market-card:active { transform: scale(0.985); }
|
|
477
|
+
.clado-risk-pill {
|
|
478
|
+
display: inline-flex;
|
|
479
|
+
align-items: center;
|
|
480
|
+
padding: 1px 6.5px;
|
|
481
|
+
border-radius: 6px;
|
|
482
|
+
font-size: 10px;
|
|
483
|
+
font-weight: 600;
|
|
484
|
+
}
|
|
485
|
+
.clado-risk-low { background: rgba(16, 185, 129, 0.13); color: #059669; }
|
|
486
|
+
.clado-risk-medium { background: rgba(245, 158, 11, 0.15); color: #d97706; }
|
|
487
|
+
.clado-risk-high { background: rgba(244, 63, 94, 0.13); color: #e11d48; }
|
|
488
|
+
:root[data-theme="dark"] .clado-risk-low { color: #34d399; }
|
|
489
|
+
:root[data-theme="dark"] .clado-risk-medium { color: #fbbf24; }
|
|
490
|
+
:root[data-theme="dark"] .clado-risk-high { color: #fda4af; }
|
|
491
|
+
|