@vuagent/ui 0.3.0 → 0.6.0

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 (51) hide show
  1. package/README.md +22 -3
  2. package/dist/index.js +7326 -6442
  3. package/dist/types/components/agent-plan/VaAgentPlan.vue.d.ts +4 -0
  4. package/dist/types/components/agent-plan/types.d.ts +18 -0
  5. package/dist/types/components/assistant-turn/VaAssistantTurn.vue.d.ts +3 -3
  6. package/dist/types/components/capability-card/VaCapabilityCard.vue.d.ts +1 -1
  7. package/dist/types/components/change-summary/VaChangeSummary.vue.d.ts +1 -1
  8. package/dist/types/components/decision-inbox/types.d.ts +5 -4
  9. package/dist/types/components/empty-hero/VaEmptyHero.vue.d.ts +2 -2
  10. package/dist/types/components/form/VaForm.vue.d.ts +32 -0
  11. package/dist/types/components/form/index.d.ts +2 -0
  12. package/dist/types/components/form/types.d.ts +45 -0
  13. package/dist/types/components/gradient-border/VaGradientBorder.vue.d.ts +21 -0
  14. package/dist/types/components/gradient-border/index.d.ts +2 -0
  15. package/dist/types/components/gradient-border/types.d.ts +13 -0
  16. package/dist/types/components/message-actions/useMessageActions.d.ts +2 -0
  17. package/dist/types/components/otp-input/VaOtpInput.vue.d.ts +3 -1
  18. package/dist/types/components/queue-dock/VaQueueDock.vue.d.ts +1 -1
  19. package/dist/types/components/scrim-edge/VaScrimEdge.vue.d.ts +6 -0
  20. package/dist/types/components/scrim-edge/index.d.ts +2 -0
  21. package/dist/types/components/scrim-edge/types.d.ts +13 -0
  22. package/dist/types/components/smart-recommendation/VaSmartRecommendation.vue.d.ts +1 -1
  23. package/dist/types/components/spotlight-card/VaSpotlightCard.vue.d.ts +22 -0
  24. package/dist/types/components/spotlight-card/index.d.ts +3 -0
  25. package/dist/types/components/spotlight-card/types.d.ts +9 -0
  26. package/dist/types/components/spotlight-card/useSpotlightCard.d.ts +18 -0
  27. package/dist/types/components/stepper-form/VaStepperForm.vue.d.ts +9 -3
  28. package/dist/types/components/trajectory/VaTrajectory.vue.d.ts +3 -1
  29. package/dist/types/components/trajectory/useTrajectoryReveal.d.ts +18 -0
  30. package/dist/types/components/turn-list/VaTurnList.vue.d.ts +2 -2
  31. package/dist/types/components/user-bubble/VaUserBubble.vue.d.ts +2 -2
  32. package/dist/types/composables/useShake.d.ts +4 -0
  33. package/dist/types/composables/useSpotlight.d.ts +43 -0
  34. package/dist/types/composables/useStagger.d.ts +25 -0
  35. package/dist/types/index.d.ts +19 -1
  36. package/dist/types/runtime/actionClient.d.ts +5 -0
  37. package/dist/types/runtime/form-errors.d.ts +18 -0
  38. package/dist/types/runtime/form-result-schema.d.ts +49 -0
  39. package/dist/types/runtime/interaction-validation.d.ts +16 -0
  40. package/dist/types/runtime/plan-steps-mirror.d.ts +15 -0
  41. package/dist/types/runtime/protocol-types.d.ts +88 -2
  42. package/dist/types/runtime/sse.d.ts +79 -0
  43. package/dist/types/runtime/types.d.ts +8 -2
  44. package/dist/types/runtime/useAgentChat.d.ts +4 -2
  45. package/dist/types/runtime/useDeltaBuffer.d.ts +63 -0
  46. package/dist/vuagent-ui.css +1 -1
  47. package/package.json +1 -1
  48. package/src/styles/button.css +8 -1
  49. package/src/styles/motion.css +211 -0
  50. package/src/styles/surface.css +55 -0
  51. package/src/styles/tokens.css +66 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuagent/ui",
3
- "version": "0.3.0",
3
+ "version": "0.6.0",
4
4
  "description": "Agent Ops UI components for Vue 3 — plans, approvals, tool calls, context, inboxes.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -21,11 +21,16 @@
21
21
  cursor: pointer;
22
22
  white-space: nowrap;
23
23
  transition: border-color var(--va-dur-1, 120ms) var(--va-ease, cubic-bezier(0.22, 1, 0.36, 1)), background var(--va-dur-1, 120ms) var(--va-ease, cubic-bezier(0.22, 1, 0.36, 1)),
24
- color var(--va-dur-1, 120ms) var(--va-ease, cubic-bezier(0.22, 1, 0.36, 1));
24
+ color var(--va-dur-1, 120ms) var(--va-ease, cubic-bezier(0.22, 1, 0.36, 1)),
25
+ transform var(--va-dur-1, 120ms) var(--va-ease, cubic-bezier(0.22, 1, 0.36, 1));
25
26
  }
26
27
 
27
28
  .va-act:hover:not(:disabled) { border-color: var(--va-edge-strong, rgba(26, 25, 23, 0.22)); }
28
29
 
30
+ /* 按压反馈(TASK-105 基类口径,对齐 VaButton):下沉 0.5px + 微缩 0.985,
31
+ 时长走 --va-dur-1。组件不再逐个发明 :active 缩放值。 */
32
+ .va-act:active:not(:disabled) { transform: translateY(0.5px) scale(0.985); }
33
+
29
34
  .va-act:focus-visible { outline: 2px solid var(--va-accent, #c2410c); outline-offset: 1px; }
30
35
 
31
36
  .va-act:disabled { opacity: 0.45; cursor: default; }
@@ -81,4 +86,6 @@
81
86
 
82
87
  @media (prefers-reduced-motion: reduce) {
83
88
  .va-act { transition: none; }
89
+ /* 按压降级:去位移,只留透明度反馈(状态可感知性保留,TASK-105 口径) */
90
+ .va-act:active:not(:disabled) { transform: none; opacity: 0.7; }
84
91
  }
@@ -0,0 +1,211 @@
1
+ /* ============================================================
2
+ 共享动效工具类 —— 进出场/交叉淡入的统一协议(TASK-102 动效基建)。
3
+ 组件不逐个发明入场曲线:统一消费 --va-dur-in/--va-dur-out 骨架时长与
4
+ --va-dist-* 位移档;每条声明自带字面 fallback(registry 单文件拷贝分发
5
+ 要求,与 tokens.css 门禁一致)。
6
+
7
+ 接入方式二选一:
8
+ 1. Vue <Transition>:
9
+ <Transition enter-active-class="va-enter-up" leave-active-class="va-exit-up">
10
+ 动画 fill-mode 为 both(延迟期间保持首帧、播完停在终态),
11
+ 无需再配 enter-from-class / leave-to-class;
12
+ 2. 类切换重挂载:骨架 → 内容换节点时给新节点挂 .va-crossfade(纯淡入),
13
+ 离场节点挂 .va-exit-*(更短更快)。
14
+
15
+ 列表错峰:v-for 子项 :style="useStagger().delayStyle(i)" 配合 .va-enter-*
16
+ 动画类使用(animation-delay 由 composable 编排——.va-enter-* 为 CSS animation,
17
+ transition-delay 对其零作用,见 composables/useStagger.ts)。
18
+ ============================================================ */
19
+
20
+ /* 入场:上浮(自下方 --va-dist-m 浮起) */
21
+ @keyframes va-motion-in-up {
22
+ from { opacity: 0; transform: translateY(var(--va-dist-m, 8px)); }
23
+ to { opacity: 1; transform: translateY(0); }
24
+ }
25
+
26
+ /* 入场:左滑(自左侧 --va-dist-m 滑入) */
27
+ @keyframes va-motion-in-left {
28
+ from { opacity: 0; transform: translateX(calc(-1 * var(--va-dist-m, 8px))); }
29
+ to { opacity: 1; transform: translateX(0); }
30
+ }
31
+
32
+ /* 入场:缩放(96% 起放大至原尺寸) */
33
+ @keyframes va-motion-in-scale {
34
+ from { opacity: 0; transform: scale(0.96); }
35
+ to { opacity: 1; transform: scale(1); }
36
+ }
37
+
38
+ /* 离场:与入场互逆(向上/向左飘出、缩回);时长/曲线由工具类映射 --va-dur-out 骨架 */
39
+ @keyframes va-motion-out-up {
40
+ from { opacity: 1; transform: translateY(0); }
41
+ to { opacity: 0; transform: translateY(calc(-1 * var(--va-dist-m, 8px))); }
42
+ }
43
+
44
+ @keyframes va-motion-out-left {
45
+ from { opacity: 1; transform: translateX(0); }
46
+ to { opacity: 0; transform: translateX(calc(-1 * var(--va-dist-m, 8px))); }
47
+ }
48
+
49
+ @keyframes va-motion-out-scale {
50
+ from { opacity: 1; transform: scale(1); }
51
+ to { opacity: 0; transform: scale(0.96); }
52
+ }
53
+
54
+ /* 交叉淡入/淡出(.va-crossfade 骨架→内容交换专用,无位移,避免占位跳变叠加) */
55
+ @keyframes va-motion-fade-in {
56
+ from { opacity: 0; }
57
+ to { opacity: 1; }
58
+ }
59
+
60
+ @keyframes va-motion-fade-out {
61
+ from { opacity: 1; }
62
+ to { opacity: 0; }
63
+ }
64
+
65
+ /* ---- 工具类:入场走 --va-dur-in + ease-out-quart,离场走 --va-dur-out + ease-in-quad ---- */
66
+
67
+ .va-enter-up {
68
+ animation: va-motion-in-up var(--va-dur-in, 180ms) var(--va-ease-out-quart, cubic-bezier(0.22, 1, 0.36, 1)) both;
69
+ }
70
+
71
+ .va-enter-left {
72
+ animation: va-motion-in-left var(--va-dur-in, 180ms) var(--va-ease-out-quart, cubic-bezier(0.22, 1, 0.36, 1)) both;
73
+ }
74
+
75
+ .va-enter-scale {
76
+ animation: va-motion-in-scale var(--va-dur-in, 180ms) var(--va-ease-out-quart, cubic-bezier(0.22, 1, 0.36, 1)) both;
77
+ }
78
+
79
+ .va-exit-up {
80
+ animation: va-motion-out-up var(--va-dur-out, 140ms) var(--va-ease-in-quad, cubic-bezier(0.55, 0, 0.55, 0.2)) both;
81
+ }
82
+
83
+ .va-exit-left {
84
+ animation: va-motion-out-left var(--va-dur-out, 140ms) var(--va-ease-in-quad, cubic-bezier(0.55, 0, 0.55, 0.2)) both;
85
+ }
86
+
87
+ .va-exit-scale {
88
+ animation: va-motion-out-scale var(--va-dur-out, 140ms) var(--va-ease-in-quad, cubic-bezier(0.55, 0, 0.55, 0.2)) both;
89
+ }
90
+
91
+ /* 骨架 → 内容交叉过渡:新内容纯淡入 */
92
+ .va-crossfade {
93
+ animation: va-motion-fade-in var(--va-dur-in, 180ms) var(--va-ease-out-quart, cubic-bezier(0.22, 1, 0.36, 1)) both;
94
+ }
95
+
96
+ /* 空态/轻量状态渐入(TASK-106 弱化档):仅 opacity、时长走 --va-dur-2,
97
+ 供列表空态提示与一次性状态块使用(空态清单见 TASK-106 报告)。
98
+ 纯 opacity 即动效分频策略的降级终点形态,reduced-motion 下保持原样即可。 */
99
+ .va-fade-in {
100
+ animation: va-motion-fade-in var(--va-dur-2, 200ms) var(--va-ease-out-quart, cubic-bezier(0.22, 1, 0.36, 1)) both;
101
+ }
102
+
103
+ /* ---- 静态光斑基类(TASK-105,决策 5「追光」路线基建)----
104
+ pointer 坐标由 composables/useSpotlight.ts 以 rAF 节流写入 --va-spot-x/y
105
+ (元素内百分比,光斑数学在 composable 内可单测);本类只负责 radial 光斑
106
+ 绘制与显隐(:hover 点亮,无 3D 倾斜, glare 数学对齐 VaTiltCard)。
107
+ --va-spot-* 为 L3 组件钩子口径(宿主可覆盖尺寸/颜色),不进 tokens.css。
108
+ 双降级对齐 VaTiltCard glare:hover: none(触屏)与 reduced-motion 不绘制。 */
109
+ .va-spotlight { position: relative; }
110
+
111
+ /* ::after 承载光斑(避开组件自身 ::before 用途);inset 0 + border-radius inherit
112
+ 使光斑天然裁剪在宿主圆角内,无需 overflow: hidden。
113
+ 注意:此 ::after radial 与 components/spotlight-card/VaSpotlightCard.css 的
114
+ .va-spot-card--spot::after 为 registry 单文件自含有意复制,改动需两处同步。 */
115
+ .va-spotlight::after {
116
+ content: "";
117
+ position: absolute;
118
+ inset: 0;
119
+ border-radius: inherit;
120
+ pointer-events: none;
121
+ opacity: 0;
122
+ transition: opacity var(--va-dur-2, 200ms) var(--va-ease, cubic-bezier(0.22, 1, 0.36, 1));
123
+ background: radial-gradient(
124
+ var(--va-spot-size, 240px) circle at var(--va-spot-x, 50%) var(--va-spot-y, 50%),
125
+ var(--va-spot-color, rgba(255, 255, 255, 0.14)),
126
+ transparent 65%
127
+ );
128
+ }
129
+
130
+ .va-spotlight:hover::after { opacity: 1; }
131
+
132
+ @media (hover: none) {
133
+ .va-spotlight::after { display: none; }
134
+ }
135
+
136
+ @media (prefers-reduced-motion: reduce) {
137
+ .va-spotlight::after { display: none; }
138
+ }
139
+
140
+ /* ---- 复制反馈标准(TASK-106):copy→check 交叉过渡 ----
141
+ 容器 .va-copy 为 inline-grid 双内容同格堆叠(格子宽取较宽子项,切换零跳动):
142
+ __idle = copy 态内容(图标/文字),__done = check 态内容。
143
+ copied 置真挂 .va-copy--done:check 以 ease-spring 微弹入场(进入 done 态时
144
+ transform 的目标态时序换成 --va-ease-spring → 过冲回弹),交叉时长统一 --va-dur-1。
145
+ 消费方:terminal-log(行复制)、code-diff(复制按钮)、message-actions(复制图标)。 */
146
+ .va-copy { display: inline-grid; place-items: center; }
147
+
148
+ .va-copy__idle,
149
+ .va-copy__done {
150
+ grid-area: 1 / 1;
151
+ transition: opacity var(--va-dur-1, 120ms) var(--va-ease, cubic-bezier(0.22, 1, 0.36, 1)),
152
+ transform var(--va-dur-1, 120ms) var(--va-ease, cubic-bezier(0.22, 1, 0.36, 1));
153
+ }
154
+
155
+ .va-copy__idle { opacity: 1; transform: scale(1); }
156
+ .va-copy__done { opacity: 0; transform: scale(0.6); }
157
+
158
+ .va-copy--done .va-copy__done {
159
+ opacity: 1;
160
+ transform: scale(1);
161
+ /* 时序按 transition 属性顺序映射:opacity 仍 ease,transform 换 ease-spring 微弹 */
162
+ transition-timing-function: var(--va-ease, cubic-bezier(0.22, 1, 0.36, 1)), var(--va-ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1));
163
+ }
164
+
165
+ .va-copy--done .va-copy__idle { opacity: 0; transform: scale(0.6); }
166
+
167
+ @media (prefers-reduced-motion: reduce) {
168
+ /* 交叉过渡瞬时完成(无位移动画),copied 状态可感知性不受影响 */
169
+ .va-copy__idle,
170
+ .va-copy__done { transition: none; }
171
+ }
172
+
173
+ /* ---- 错误反馈标准(校验失败横向微振):目标元素挂 .va-shake 播一次 ±3px 微振 ----
174
+ 时长 --va-dur-2 × 2(两拍四峰,克制的「摇头」量级,rubric 校验失败口径);
175
+ 重复触发需先移除类、强制 reflow 再挂回(封装见 composables/useShake.ts)。
176
+ reduced-motion 降级为不播:错误状态的可感知性由错误样式本身(描边/文案)承担,
177
+ 动效只做注意力引导——符合头注释「功能动画降级保留状态可感知」的分频策略。
178
+ 消费方:VaStepperForm / VaOtpInput 经 useShake() 程序化触发(defineExpose shake());
179
+ 宿主自绘表单可直接挂类。 */
180
+ @keyframes va-motion-shake {
181
+ 20% { transform: translateX(-3px); }
182
+ 40% { transform: translateX(3px); }
183
+ 60% { transform: translateX(-2px); }
184
+ 80% { transform: translateX(2px); }
185
+ }
186
+
187
+ .va-shake {
188
+ animation: va-motion-shake calc(var(--va-dur-2, 200ms) * 2) var(--va-ease, cubic-bezier(0.22, 1, 0.36, 1));
189
+ }
190
+
191
+ @media (prefers-reduced-motion: reduce) {
192
+ .va-shake { animation: none; }
193
+ }
194
+
195
+ /* ---- 动效分频(对齐 tokens.css 头注释策略):
196
+ 功能动画降级为纯 opacity——进/出场整体换成 fade keyframes,
197
+ 位移/缩放不再出现(animation-name 顶替,时长/缓动沿用上面的声明)。 */
198
+ @media (prefers-reduced-motion: reduce) {
199
+ .va-enter-up,
200
+ .va-enter-left,
201
+ .va-enter-scale,
202
+ .va-crossfade {
203
+ animation-name: va-motion-fade-in;
204
+ }
205
+
206
+ .va-exit-up,
207
+ .va-exit-left,
208
+ .va-exit-scale {
209
+ animation-name: va-motion-fade-out;
210
+ }
211
+ }
@@ -0,0 +1,55 @@
1
+ /* ============================================================
2
+ 共享表面工具类 —— glass / noise 克制体系(TASK-110,dark-first)。
3
+ 分发:随 @vuagent/ui/styles.css 聚合(src/index.ts 引入,与 motion.css 同轨)。
4
+ tokens:check 兼容:凡引用 tokens.css 令牌一律带字面 fallback(单文件拷贝口径);
5
+ --va-noise-url / --va-noise-o 为宿主钩子(不在 tokens.css,可在任意祖先覆盖)。
6
+
7
+ 使用规范:仅 stage / hero 级大表面使用 glass / noise(详细约定见 docs
8
+ guide/theming.md「Glass 与噪点」段)——普通卡片/列表靠阴影与描边档位
9
+ 表达层次,不套玻璃与噪点,避免全页磨砂糊成一团。
10
+ ============================================================ */
11
+
12
+ /* ---- .va-glass:backdrop blur 玻璃面 ----
13
+ 半透明 surface(--va-surface-glass)+ blur 档 3 + 描边 + 顶缘内高光;
14
+ 降级:@supports not (backdrop-filter: blur(1px))(happy-dom / 老内核口径)
15
+ → 纯色 scrim(--va-surface-raised),层次感不丢失。 */
16
+ .va-glass {
17
+ background: var(--va-surface-glass, rgba(255, 255, 255, 0.68));
18
+ -webkit-backdrop-filter: blur(var(--va-blur-3, 16px));
19
+ backdrop-filter: blur(var(--va-blur-3, 16px));
20
+ border: 1px solid var(--va-edge, rgba(26, 25, 23, 0.12));
21
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
22
+ }
23
+
24
+ @supports not (backdrop-filter: blur(1px)) {
25
+ .va-glass {
26
+ background: var(--va-surface-raised, #ffffff);
27
+ -webkit-backdrop-filter: none;
28
+ backdrop-filter: none;
29
+ }
30
+ }
31
+
32
+ [data-theme="dark"] .va-glass,
33
+ .dark .va-glass {
34
+ /* 暗色顶缘高光减淡(亮色 0.25 → 0.08,避免暗底白线过亮) */
35
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
36
+ }
37
+
38
+ /* ---- .va-noise:feTurbulence 噪点纹理 ----
39
+ 纹理为内联 SVG data-URI(灰度 fractalNoise,约 0.3KB < 2KB 记录),
40
+ 经 --va-noise-url 钩子供宿主替换。用法:叠加层盖在 stage/hero 表面上
41
+ (典型 absolute inset:0,父级 position:relative;组件不强制定位布局)。
42
+ 叠加层透明度阶梯走 --va-noise-o(默认 0.05,建议上限 0.08);
43
+ dark 减淡 ×0.6(暗底噪点过亮会显脏)。静态纹理,与 reduced-motion /
44
+ hover 约定无冲突(不涉及任何动画)。 */
45
+ .va-noise {
46
+ pointer-events: none;
47
+ background-image: var(--va-noise-url, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E"));
48
+ background-repeat: repeat;
49
+ opacity: var(--va-noise-o, 0.05);
50
+ }
51
+
52
+ [data-theme="dark"] .va-noise,
53
+ .dark .va-noise {
54
+ opacity: calc(var(--va-noise-o, 0.05) * 0.6);
55
+ }
@@ -5,8 +5,8 @@
5
5
 
6
6
  三层主题模型:
7
7
  L1 基础令牌(本文件)——换肤只改这里;
8
- L2 语义令牌(本文件 · 排版/尺寸/层级/动效段)——从 L1 派生的规范档位,
9
- 组件不得绕过它裸写字号/字重/控件高度;
8
+ L2 语义令牌(本文件 · 排版/尺寸/层级/动效/光影段)——从 L1 派生的规范档位,
9
+ 组件不得绕过它裸写字号/字重/控件高度/模糊半径;
10
10
  L3 组件钩子——--va-<组件>-*(各组件 CSS 内定义,见组件文件头注释)。
11
11
 
12
12
  动效分频策略(prefers-reduced-motion: reduce):
@@ -109,13 +109,18 @@
109
109
  --va-shadow-1: 0 1px 2px rgba(26, 25, 23, 0.06);
110
110
  --va-shadow-2: 0 4px 12px rgba(26, 25, 23, 0.08);
111
111
  --va-shadow-3: 0 12px 32px rgba(26, 25, 23, 0.12);
112
+ /* 舞台级深投影:hero/聚光卡等大表面(几何同暗色档,透明度自 shadow-3 加深) */
113
+ --va-shadow-4: 0 30px 80px rgba(26, 25, 23, 0.16);
112
114
 
113
115
  /* ---- 动效 ----
114
- 基础三档用于 hover/按压等微交互;
116
+ 基础四档用于状态迁移:dur-1/2/3 hover/按压等微交互与浮层进出,
117
+ dur-4 慢速状态条(进度收缩/倒计时感,如 ContextWindow 收缩);
115
118
  进出编排骨架(浮层统一协议):入场 --va-dur-in + ease-out-quart,
116
119
  离场 --va-dur-out + ease-in-quad(离场更快更短,感知更干脆);
117
120
  --va-ease-spring 用于成功/强调反馈的弹性过冲;
118
- --va-dur-loop 为循环动画底速(shimmer/spinner/pulse),组件内 calc 倍率微调。 */
121
+ --va-dur-loop 为循环动画底速(shimmer/spinner/pulse),组件内 calc 倍率微调;
122
+ --va-stagger 为列表子项错峰步长(useStagger 默认口径,配合 .va-enter-* 动画类
123
+ 使用——延迟走 animation-delay 轴,transition-delay 对 animation 零作用)。 */
119
124
  --va-ease: cubic-bezier(0.22, 1, 0.36, 1);
120
125
  --va-ease-out-quart: cubic-bezier(0.22, 1, 0.36, 1);
121
126
  --va-ease-in-quad: cubic-bezier(0.55, 0, 0.55, 0.2);
@@ -123,11 +128,51 @@
123
128
  --va-dur-1: 120ms;
124
129
  --va-dur-2: 200ms;
125
130
  --va-dur-3: 300ms;
131
+ --va-dur-4: 600ms;
126
132
  --va-dur-in: 180ms;
127
133
  --va-dur-out: 140ms;
128
134
  --va-dist-s: 4px;
129
135
  --va-dist-m: 8px;
130
136
  --va-dur-loop: 1.8s;
137
+ --va-stagger: 40ms;
138
+
139
+ /* ---- 光影 · 模糊档位(filter/backdrop-filter 的 blur 半径,勿裸写新值) ----
140
+ 档位自全库散点盘点吸附(原散点 2/4/8/10/48px → 2/8/16/48):
141
+ 1 = 浮层压暗微模糊(command-menu 2px 原值);
142
+ 2 = 顶栏 backdrop / blur-in 入场(app-shell 8px 原值,同 VaBlurCrossfade 默认);
143
+ 3 = 中等氛围 / 毛玻璃预留(16px,暂无散点);
144
+ 4 = 舞台级氛围光晕(VaGradientFloor 48px 原值)。
145
+ 离群值吸附记录:text-reveal 原 blur(4px) 就近吸附至档 2(8px,与 va-xfade
146
+ 口径一致,入场起始更朦胧);playground App.vue 原 blur(10px) 对应档 2(8px,
147
+ 宿主侧待迁,见 TASK-102 报告)。 */
148
+ --va-blur-1: 2px;
149
+ --va-blur-2: 8px;
150
+ --va-blur-3: 16px;
151
+ --va-blur-4: 48px;
152
+
153
+ /* ---- 光影 · 发光/渐变/舞台(亮暗独立取值;均自既有 palette 派生,勿发明新色相) ----
154
+ glow(box-shadow 发光):accent 系按落地页「追光」手法从 --va-accent 派生 alpha
155
+ (内圈描边 .35 + 外圈软晕 .22);soft 为中性微光晕(ink 派生)。
156
+ grad(渐变端点色):accent 族 = VaGradientText/VaGradientFloor 现用 accent→info
157
+ 组合的 token 化;info 族 = 冷调 info→success(次级强调/数据场景)。
158
+ stage(舞台表面对):大表面 --va-stage + 其上抬升面 --va-stage-raised,
159
+ 暗色取落地页已验证层级,亮色与 bg-subtle/card 同值。 */
160
+ --va-glow-accent: 0 0 0 1px rgba(194, 65, 12, 0.35), 0 8px 32px rgba(194, 65, 12, 0.22);
161
+ --va-glow-soft: 0 0 32px rgba(26, 25, 23, 0.08);
162
+ --va-grad-accent-from: #c2410c;
163
+ --va-grad-accent-to: #2563eb;
164
+ --va-grad-info-from: #2563eb;
165
+ --va-grad-info-to: #1a7f4b;
166
+ --va-stage: #efede7;
167
+ --va-stage-raised: #ffffff;
168
+
169
+ /* glass 表面对(TASK-110 glass 克制体系,dark-first 语义):
170
+ glass = 半透明玻璃面(backdrop blur 的载体,styles .va-glass 工具类消费);
171
+ raised = 无 backdrop-filter 环境的纯色降级面(.va-glass 的 @supports fallback)。
172
+ 亮色为 stage-raised 的半透明版(白玻璃);alpha 0.68 保证其上正文对比度。
173
+ 使用规范(仅 stage/hero 级表面)见 docs guide/theming.md。 */
174
+ --va-surface-glass: rgba(255, 255, 255, 0.68);
175
+ --va-surface-raised: #ffffff;
131
176
 
132
177
  /* ---- 字体 ---- */
133
178
  --va-font:
@@ -168,8 +213,25 @@
168
213
  --va-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3);
169
214
  --va-shadow-2: 0 4px 12px rgba(0, 0, 0, 0.35);
170
215
  --va-shadow-3: 0 12px 32px rgba(0, 0, 0, 0.45);
216
+ /* 舞台级深投影(落地页「追光」已验证值) */
217
+ --va-shadow-4: 0 30px 80px rgba(0, 0, 0, 0.45);
171
218
 
172
219
  /* 暗色专属:骨架屏用白色叠加,与深色卡片可辨 */
173
220
  --va-skel-bg: rgba(255, 255, 255, 0.09);
174
221
  --va-skel-hl: rgba(255, 255, 255, 0.22);
222
+
223
+ /* 暗色光影:accent 系自暗色 accent(#e8925e) 派生 alpha;中性光晕用暖白;
224
+ stage 取落地页已验证层级(stage 同 bg,raised 介于 bg-subtle 与 card 之间) */
225
+ --va-glow-accent: 0 0 0 1px rgba(232, 146, 94, 0.35), 0 8px 32px rgba(232, 146, 94, 0.22);
226
+ --va-glow-soft: 0 0 32px rgba(240, 238, 233, 0.06);
227
+ --va-grad-accent-from: #e8925e;
228
+ --va-grad-accent-to: #7ab0f5;
229
+ --va-grad-info-from: #7ab0f5;
230
+ --va-grad-info-to: #4cc38a;
231
+ --va-stage: #141311;
232
+ --va-stage-raised: #1c1a17;
233
+
234
+ /* glass:暖黑玻璃面(#1c1a17 的 68%),降级面同 stage-raised(dark-first 主场) */
235
+ --va-surface-glass: rgba(28, 26, 23, 0.68);
236
+ --va-surface-raised: #1c1a17;
175
237
  }