weifuwu 0.91.0 → 0.93.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.
- package/README.md +1 -1
- package/dist/client/components/index.d.ts +3 -0
- package/dist/client/components/style.css +1 -12219
- package/dist/client/layout/bundle.d.ts +42 -0
- package/dist/client/layout/weifuwu-layout.css +1 -1495
- package/dist/client/vdom/core/protocol.d.ts +62 -7
- package/dist/client/vdom/index.js +3 -3
- package/dist/server/db/http.d.ts +4 -4
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +295 -174
- package/dist/server/response.d.ts +17 -0
- package/docs/client.md +128 -7
- package/docs/layout.md +243 -0
- package/docs/server.md +229 -9
- package/package.json +5 -3
|
@@ -1,1495 +1 @@
|
|
|
1
|
-
/* weifuwu/layout — 基于 CSS 标准的布局原语
|
|
2
|
-
|
|
3
|
-
@layer tokens, base, layout, utilities, components;
|
|
4
|
-
|
|
5
|
-
/* weifuwu/theme — 设计 Token(Primitive + Semantic 双层)
|
|
6
|
-
*
|
|
7
|
-
* 原始层(Primitive):色值/暗色值只定义一次。品牌换色/暗色调校只改这一层。
|
|
8
|
-
* 语义层(Semantic):组件消费这一层。主题切换 = 覆盖语义映射(见 _dark.css)。
|
|
9
|
-
*
|
|
10
|
-
* 品牌换肤(WUI 设计语言第一档):只改 --wf-brand-seed 一个值,
|
|
11
|
-
* 50/500/600/700 色阶经 color-mix() 自动派生(500 = seed 本身)。
|
|
12
|
-
* 暗色阶由 --wf-dark-brand-seed 派生。不支持 color-mix 的旧浏览器
|
|
13
|
-
* 经文件底部 @supports 回退块自动使用默认色板(渐进增强,零 JS)。
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/* ══ 原始层(Primitive)══ */
|
|
17
|
-
:root {
|
|
18
|
-
/* 品牌(WUI 设计语言:改 --wf-brand-seed 一个值全站换肤,色阶 color-mix 派生) */
|
|
19
|
-
--wf-brand-seed: #4f6ef7;
|
|
20
|
-
--wf-brand-500: var(--wf-brand-seed);
|
|
21
|
-
--wf-brand-600: color-mix(in srgb, var(--wf-brand-seed) 85%, #000);
|
|
22
|
-
--wf-brand-700: color-mix(in srgb, var(--wf-brand-seed) 70%, #000); /* 品牌文字色(浅底可读,配 --wf-color-primary-text) */
|
|
23
|
-
--wf-brand-50: color-mix(in srgb, var(--wf-brand-seed) 12%, #fff);
|
|
24
|
-
|
|
25
|
-
/* 语义原始色 */
|
|
26
|
-
--wf-green-500: #22c55e; --wf-green-50: #f0fdf4;
|
|
27
|
-
--wf-green-700: #15803d; /* 语义文字色(浅底可读) */
|
|
28
|
-
--wf-amber-500: #f59e0b; --wf-amber-50: #fffbeb;
|
|
29
|
-
--wf-amber-700: #b45309; /* 语义文字色(浅底可读) */
|
|
30
|
-
--wf-red-500: #ef4444; --wf-red-50: #fef2f2;
|
|
31
|
-
--wf-red-700: #b91c1c; /* 语义文字色(浅底可读) */
|
|
32
|
-
--wf-sky-500: #1677ff; --wf-sky-50: #e6f4ff;
|
|
33
|
-
--wf-sky-700: #0369a1; /* 语义文字色(浅底可读) */
|
|
34
|
-
|
|
35
|
-
/* 中性 */
|
|
36
|
-
--wf-slate-900: #0f172a; --wf-slate-500: #64748b; --wf-slate-400: #94a3b8;
|
|
37
|
-
--wf-slate-300: #cbd5e1; --wf-slate-200: #e2e8f0; --wf-slate-100: #f1f5f9;
|
|
38
|
-
--wf-slate-50: #f8fafc; --wf-white: #ffffff;
|
|
39
|
-
|
|
40
|
-
/* 暗色值(暗色模式只做映射,值定义于此) */
|
|
41
|
-
--wf-dark-brand-seed: #6b8aff;
|
|
42
|
-
--wf-dark-brand-500: var(--wf-dark-brand-seed);
|
|
43
|
-
--wf-dark-brand-600: color-mix(in srgb, var(--wf-dark-brand-seed) 78%, #fff);
|
|
44
|
-
--wf-dark-brand-50: color-mix(in srgb, var(--wf-dark-brand-seed) 12%, #0f172a);
|
|
45
|
-
--wf-dark-green-500: #4ade80; --wf-dark-green-50: #14532d;
|
|
46
|
-
--wf-dark-amber-500: #fbbf24; --wf-dark-amber-50: #451a03;
|
|
47
|
-
--wf-dark-red-500: #f87171; --wf-dark-red-50: #451a1a;
|
|
48
|
-
--wf-dark-sky-500: #60a5fa; --wf-dark-sky-50: #172554;
|
|
49
|
-
--wf-dark-slate-900: #f1f5f9; --wf-dark-slate-500: #94a3b8; --wf-dark-slate-400: #64748b;
|
|
50
|
-
--wf-dark-slate-300: #475569; --wf-dark-slate-200: #334155; --wf-dark-slate-100: #1e293b;
|
|
51
|
-
--wf-dark-slate-50: #0f172a; --wf-dark-bg: #0f172a;
|
|
52
|
-
--wf-dark-overlay: rgba(0, 0, 0, 0.6); /* 暗色遮罩(比亮色更深,压住暗底内容) */
|
|
53
|
-
--wf-dark-fill: var(--wf-dark-slate-200); /* 暗色填充(比底色亮一级) */
|
|
54
|
-
--wf-dark-bg-hover: rgba(255, 255, 255, 0.06); /* 暗色 hover 反白 */
|
|
55
|
-
--wf-dark-state-hover: rgba(255, 255, 255, 0.06); /* 状态层暗色值(hover 反白) */
|
|
56
|
-
--wf-dark-state-pressed: rgba(255, 255, 255, 0.10); /* 状态层暗色值(pressed 更强) */
|
|
57
|
-
--wf-dark-surface-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
58
|
-
--wf-dark-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
59
|
-
--wf-dark-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
60
|
-
--wf-dark-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
61
|
-
--wf-dark-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
|
|
62
|
-
--wf-dark-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* ══ 语义层(Semantic)— 组件消费 ══ */
|
|
66
|
-
:root {
|
|
67
|
-
/* ── 间距 ── */
|
|
68
|
-
--wf-gap-xs: 4px;
|
|
69
|
-
--wf-gap-sm: 8px;
|
|
70
|
-
--wf-gap-md: 12px;
|
|
71
|
-
--wf-gap-lg: 16px;
|
|
72
|
-
--wf-gap-xl: 24px;
|
|
73
|
-
--wf-gap-2xl: 32px;
|
|
74
|
-
|
|
75
|
-
--wf-space-xs: 4px;
|
|
76
|
-
--wf-space-sm: 8px;
|
|
77
|
-
--wf-space: 12px;
|
|
78
|
-
--wf-space-md: 16px;
|
|
79
|
-
--wf-space-lg: 24px;
|
|
80
|
-
--wf-space-xl: 32px;
|
|
81
|
-
--wf-space-2xl: 40px;
|
|
82
|
-
|
|
83
|
-
/* ── 圆角 ── */
|
|
84
|
-
--wf-radius-xs: 2px; /* 内联代码/小元素圆角 */
|
|
85
|
-
--wf-radius-sm: 4px;
|
|
86
|
-
--wf-radius: 6px;
|
|
87
|
-
--wf-radius-md: 8px;
|
|
88
|
-
--wf-radius-lg: 12px;
|
|
89
|
-
--wf-radius-xl: 20px;
|
|
90
|
-
|
|
91
|
-
--wf-surface-radius: var(--wf-radius-md);
|
|
92
|
-
--wf-surface-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
93
|
-
|
|
94
|
-
/* ── 阴影 ── */
|
|
95
|
-
--wf-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
|
|
96
|
-
--wf-shadow-inset: inset 0 1px 2px rgba(0,0,0,0.04); /* 内阴影:凹槽/轨道深度(Switch/ThemeSwitch) */
|
|
97
|
-
--wf-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
98
|
-
--wf-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
|
|
99
|
-
--wf-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
|
|
100
|
-
|
|
101
|
-
/* ── 层级 ── */
|
|
102
|
-
/* 浮层全部 createPortal 到 body,全局参与堆叠。
|
|
103
|
-
顺序:sticky < overlay < modal/drawer < 弹出面板族 < toast < tooltip。
|
|
104
|
-
modal 与 drawer 互斥出现;面板族同级(dropdown/select/datepicker/popover)用 DOM 顺序裁决。 */
|
|
105
|
-
--wf-z-sticky: 40;
|
|
106
|
-
--wf-z-overlay: 80;
|
|
107
|
-
--wf-z-modal: 100;
|
|
108
|
-
--wf-z-tour: 2000;
|
|
109
|
-
--wf-tour-min-width: 240px;
|
|
110
|
-
--wf-kanban-col-min-width: 200px;
|
|
111
|
-
/* Layout 布局外壳(batch-8) */
|
|
112
|
-
--wf-layout-sider-width: 240px;
|
|
113
|
-
--wf-layout-sider-collapsed-width: 64px;
|
|
114
|
-
--wf-layout-header-height: 56px;
|
|
115
|
-
--wf-kanban-col-max-width: 300px;
|
|
116
|
-
--wf-treeselect-min-width: 200px;
|
|
117
|
-
--wf-navmenu-min-width: 160px;
|
|
118
|
-
--wf-select-menu-min-width: 200px;
|
|
119
|
-
--wf-treeselect-max-width: 320px;
|
|
120
|
-
--wf-treeselect-dropdown-max-height: 260px;
|
|
121
|
-
--wf-z-popover: 120; /* dropdown/select/datepicker 面板与 popover 同层 */
|
|
122
|
-
--wf-z-toast: 140;
|
|
123
|
-
--wf-z-tooltip: 160;
|
|
124
|
-
--wf-z-dropdown: var(--wf-z-popover); /* 语义别名:下拉菜单属弹出面板族 */
|
|
125
|
-
|
|
126
|
-
/* ── 兼容别名(旧 token 名,语义近似映射) ── */
|
|
127
|
-
--wf-pop-z: var(--wf-z-popover);
|
|
128
|
-
--wf-cover-z: var(--wf-z-modal);
|
|
129
|
-
|
|
130
|
-
/* ── 色彩 — 品牌(引用原始层) ── */
|
|
131
|
-
--wf-color-primary: var(--wf-brand-500);
|
|
132
|
-
--wf-color-primary-hover: var(--wf-brand-600);
|
|
133
|
-
--wf-color-primary-bg: var(--wf-brand-50);
|
|
134
|
-
|
|
135
|
-
--wf-color-success: var(--wf-green-500);
|
|
136
|
-
--wf-color-success-bg: var(--wf-green-50);
|
|
137
|
-
--wf-color-warning: var(--wf-amber-500);
|
|
138
|
-
--wf-color-warning-bg: var(--wf-amber-50);
|
|
139
|
-
--wf-color-error: var(--wf-red-500);
|
|
140
|
-
--wf-color-error-bg: var(--wf-red-50);
|
|
141
|
-
|
|
142
|
-
/* ── 色彩 — 中性(引用原始层) ── */
|
|
143
|
-
--wf-color-text: var(--wf-slate-900);
|
|
144
|
-
--wf-color-text-secondary: var(--wf-slate-500);
|
|
145
|
-
--wf-color-text-tertiary: var(--wf-slate-400);
|
|
146
|
-
--wf-color-text-disabled: var(--wf-slate-300);
|
|
147
|
-
|
|
148
|
-
--wf-color-bg: var(--wf-white);
|
|
149
|
-
--wf-color-bg-secondary: var(--wf-slate-50);
|
|
150
|
-
--wf-color-bg-tertiary: var(--wf-slate-100);
|
|
151
|
-
|
|
152
|
-
--wf-color-border: var(--wf-slate-200);
|
|
153
|
-
--wf-color-border-light: var(--wf-slate-100);
|
|
154
|
-
--wf-color-border-dark: var(--wf-slate-300);
|
|
155
|
-
|
|
156
|
-
/* ── surface 引用色彩 ── */
|
|
157
|
-
--wf-surface-bg: var(--wf-color-bg);
|
|
158
|
-
|
|
159
|
-
/* 浮层面板底色(surface-2/3:浮层/模态——亮色同 bg 靠阴影区分,暗色抬升一级见 _dark.css) */
|
|
160
|
-
--wf-color-bg-elevated: var(--wf-color-bg);
|
|
161
|
-
|
|
162
|
-
/* ── 字体 ──
|
|
163
|
-
* 西文优先(拉丁字形平台最优),CJK 显式回退(中文原生:PingFang/苹方、
|
|
164
|
-
* Hiragino/冬青、雅黑、思源 Noto Sans SC——三平台中文渲染一致) */
|
|
165
|
-
--wf-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
|
166
|
-
'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
|
|
167
|
-
--wf-font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono',
|
|
168
|
-
'PingFang SC', 'Microsoft YaHei', monospace;
|
|
169
|
-
|
|
170
|
-
--wf-font-size-xs: 12px;
|
|
171
|
-
--wf-font-size-sm: 13px;
|
|
172
|
-
--wf-font-size-base: 14px;
|
|
173
|
-
--wf-font-size-lg: 15px;
|
|
174
|
-
--wf-font-size-xl: 16px;
|
|
175
|
-
--wf-font-size-2xl: 21px;
|
|
176
|
-
--wf-font-size-3xl: 24px;
|
|
177
|
-
--wf-font-size-4xl: 30px;
|
|
178
|
-
--wf-font-size-5xl: 36px;
|
|
179
|
-
--wf-font-size-display: 30px; /* 顶级页面标题(PageHeader display 档,配负字距) */
|
|
180
|
-
|
|
181
|
-
/* ── 表头/分组标题:文本变换与字距 token 化(CJK 默认 none/0,英文可覆盖 uppercase/0.5px) ── */
|
|
182
|
-
--wf-heading-case: none;
|
|
183
|
-
--wf-heading-tracking: 0;
|
|
184
|
-
|
|
185
|
-
--wf-font-weight-normal: 400;
|
|
186
|
-
--wf-font-weight-medium: 500;
|
|
187
|
-
--wf-font-weight-semibold: 600;
|
|
188
|
-
--wf-font-weight-bold: 700;
|
|
189
|
-
|
|
190
|
-
/* ── 行高 ── */
|
|
191
|
-
--wf-line-height-tight: 1.25;
|
|
192
|
-
--wf-line-height: 1.5;
|
|
193
|
-
--wf-line-height-relaxed: 1.75;
|
|
194
|
-
|
|
195
|
-
/* ── 边框宽度 ── */
|
|
196
|
-
--wf-border-width: 1px;
|
|
197
|
-
|
|
198
|
-
/* ── 聚焦环(双层:淡环 bg + 1px primary 线——C5:系统暗色偏好下 primary-bg
|
|
199
|
-
变暗不可见,primary 是亮蓝——明暗主题聚焦均可见) ── */
|
|
200
|
-
--wf-focus-ring: 0 0 0 2px var(--wf-color-primary-bg), 0 0 0 1px var(--wf-color-primary);
|
|
201
|
-
|
|
202
|
-
/* ── 动效 ──
|
|
203
|
-
* --wf-transition 为派生别名(hover 类过渡统一走 dur-fast + ease-out——微流明标准节奏)。
|
|
204
|
-
* 旧 --wf-transition-duration/timing 保留为兼容(不建议新引用——新代码直接用 --wf-dur-* 系列) */
|
|
205
|
-
--wf-transition-duration: var(--wf-dur-fast);
|
|
206
|
-
--wf-transition-timing: var(--wf-ease-out);
|
|
207
|
-
--wf-transition: var(--wf-transition-duration) var(--wf-transition-timing);
|
|
208
|
-
|
|
209
|
-
/* ── 动效语言:时长阶梯 + 缓动曲线 + 位移量(组件动效统一引用,不各自硬编码) ── */
|
|
210
|
-
--wf-dur-fast: 120ms;
|
|
211
|
-
--wf-dur-base: 200ms;
|
|
212
|
-
--wf-dur-slow: 300ms;
|
|
213
|
-
|
|
214
|
-
--wf-ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* 入场:快出缓停 */
|
|
215
|
-
--wf-ease-in: cubic-bezier(0.4, 0, 1, 1); /* 退场:渐入加速 */
|
|
216
|
-
--wf-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); /* 往返/闪烁动画 */
|
|
217
|
-
--wf-ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1); /* 选中/弹跳 */
|
|
218
|
-
--wf-ease-standard: ease; /* 通用缓动(组件假 token 收敛) */
|
|
219
|
-
--wf-dur-md: var(--wf-dur-base); /* 中档时长(= base 别名) */
|
|
220
|
-
|
|
221
|
-
--wf-motion-sm: 4px;
|
|
222
|
-
--wf-motion-md: 8px;
|
|
223
|
-
--wf-motion-lg: 24px; /* drawer 全幅位移 */
|
|
224
|
-
|
|
225
|
-
/* 循环动效族(旋转/呼吸/闪烁/进度——时长阶梯之外的循环节拍——S5 审计强制引用) */
|
|
226
|
-
--wf-dur-spin: 0.6s; /* 旋转(spinner/loading/折叠) */
|
|
227
|
-
--wf-dur-pulse: 1.2s; /* 呼吸脉冲(在线点/骨架/思考) */
|
|
228
|
-
--wf-dur-blink: 1.1s; /* 光标闪烁(流式光标/AI 回复) */
|
|
229
|
-
--wf-dur-progress: 1.4s; /* 不确定进度循环(indeterminate) */
|
|
230
|
-
|
|
231
|
-
/* ── 色彩 — 信息(补充) ── */
|
|
232
|
-
--wf-color-info: var(--wf-sky-500);
|
|
233
|
-
--wf-color-info-bg: var(--wf-sky-50);
|
|
234
|
-
|
|
235
|
-
/* ── 色彩 — 语义文字色(浅底/白底可读,WCAG AA ≥ 4.5:1;实心色上的文字用 on-brand) ── */
|
|
236
|
-
--wf-color-primary-text: var(--wf-brand-700);
|
|
237
|
-
--wf-color-success-text: var(--wf-green-700);
|
|
238
|
-
--wf-color-warning-text: var(--wf-amber-700);
|
|
239
|
-
--wf-color-error-text: var(--wf-red-700);
|
|
240
|
-
--wf-color-info-text: var(--wf-sky-700);
|
|
241
|
-
|
|
242
|
-
/* ── 色彩 — 通用填充/悬停底色(暗色经 _dark.css 映射) ── */
|
|
243
|
-
--wf-color-fill: var(--wf-slate-100); /* 通用填充色(禁裸灰——组件假 token 收敛) */
|
|
244
|
-
--wf-color-bg-subtle: var(--wf-color-fill); /* 极淡底(别名) */
|
|
245
|
-
|
|
246
|
-
/* ── 状态层(Material 3 state layers 语义——可交互元素统一引用,暗色经 _dark.css 映射) ── */
|
|
247
|
-
--wf-state-hover: rgba(0, 0, 0, 0.04); /* hover 叠色(列表项/菜单项) */
|
|
248
|
-
--wf-state-pressed: rgba(0, 0, 0, 0.08); /* pressed 按压叠色 */
|
|
249
|
-
--wf-state-selected: var(--wf-color-primary-bg); /* 选中态底色 */
|
|
250
|
-
|
|
251
|
-
--wf-color-bg-hover: var(--wf-state-hover); /* 兼容别名(历史名) */
|
|
252
|
-
|
|
253
|
-
/* ── 色彩 — 实心填充上的文字/图标(primary/success 等实心底色) ── */
|
|
254
|
-
--wf-color-on-brand: #fff;
|
|
255
|
-
--wf-color-on-warning: #451a03; /* 警告实心底上的深色文字(暗色经 _dark.css 映射) */
|
|
256
|
-
|
|
257
|
-
/* ── 浮层遮罩(Modal/Drawer overlay,暗色经 --wf-dark-overlay 映射) ── */
|
|
258
|
-
--wf-overlay: rgba(0, 0, 0, 0.4);
|
|
259
|
-
--wf-overlay-blur: 4px; /* 遮罩毛玻璃(弹层现代质感,不支持 backdrop-filter 的环境自动降级为纯色) */
|
|
260
|
-
|
|
261
|
-
/* ── 表单控件 ── */
|
|
262
|
-
--wf-accent-color: var(--wf-color-primary);
|
|
263
|
-
--wf-caret-color: var(--wf-color-primary);
|
|
264
|
-
|
|
265
|
-
/* 控件尺寸:垂直内边距 + 目标高度(移动端在 _base.css 提升到 44px) */
|
|
266
|
-
--wf-control-pad-y: 10px;
|
|
267
|
-
--wf-control-height: 36px;
|
|
268
|
-
/* 字段统一尺寸(组件假 token 收敛——Input/Select/Textarea 引用) */
|
|
269
|
-
--wf-field-height: var(--wf-control-height);
|
|
270
|
-
--wf-field-radius: var(--wf-radius);
|
|
271
|
-
|
|
272
|
-
/* ── 断点 ── */
|
|
273
|
-
--wf-bp-sm: 640px;
|
|
274
|
-
--wf-bp-md: 768px;
|
|
275
|
-
--wf-bp-lg: 1024px;
|
|
276
|
-
--wf-bp-xl: 1280px;
|
|
277
|
-
|
|
278
|
-
/* ── 应用外壳 ── */
|
|
279
|
-
--wf-sidebar-width: 240px;
|
|
280
|
-
|
|
281
|
-
/* ── 透明度 ── */
|
|
282
|
-
--wf-opacity-disabled: 0.5;
|
|
283
|
-
--wf-opacity-overlay: 0.4;
|
|
284
|
-
|
|
285
|
-
/* ── 文字间距 ── */
|
|
286
|
-
--wf-letter-spacing: normal;
|
|
287
|
-
--wf-letter-spacing-wide: 0.5px;
|
|
288
|
-
--wf-letter-spacing-wider: 1px;
|
|
289
|
-
--wf-heading-display-tracking: -0.5px; /* 顶级标题 display 档窄字距(PageHeader display——CJK 可覆盖) */
|
|
290
|
-
|
|
291
|
-
/* ── 数字 ── */
|
|
292
|
-
--wf-nums: 'tabular-nums'; /* 数字等宽(统计/表格数值防抖动) */
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
/* ══ 旧浏览器回退(渐进增强——不支持 color-mix 时用默认色板硬值) ══
|
|
296
|
-
* 定义处 color-mix 声明无效 → 此处同层覆盖回默认 hex。
|
|
297
|
-
* 注意:声明缩进 4 空格——不参与 token 计数(计数只认 2 空格缩进)。 */
|
|
298
|
-
@supports not (color: color-mix(in srgb, red 50%, blue)) {
|
|
299
|
-
:root {
|
|
300
|
-
--wf-brand-600: #3b5ae0;
|
|
301
|
-
--wf-brand-700: #4338ca;
|
|
302
|
-
--wf-brand-50: #eef1ff;
|
|
303
|
-
--wf-dark-brand-600: #8ba3ff;
|
|
304
|
-
--wf-dark-brand-50: #1e293b;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
/* weifuwu/theme — 暗色模式
|
|
309
|
-
*
|
|
310
|
-
* 两种激活方式(优先级:显式 data-theme > 系统偏好):
|
|
311
|
-
* 1. 手动:<html data-theme="dark">(或 data-theme="light" 强制亮色)
|
|
312
|
-
* 2. 自动:系统偏好 prefers-color-scheme: dark,无显式覆盖时生效
|
|
313
|
-
*
|
|
314
|
-
* 值全部定义在 _tokens.css 原始层的 --wf-dark-*,此处只做语义映射——
|
|
315
|
-
* 两段代码完全一致,且不含任何硬编码色值(改暗色调校只动原始层)。
|
|
316
|
-
*/
|
|
317
|
-
|
|
318
|
-
/* ── 激活方式一:手动 data-theme="dark" ── */
|
|
319
|
-
:root[data-theme="dark"] {
|
|
320
|
-
color-scheme: dark;
|
|
321
|
-
|
|
322
|
-
--wf-color-primary: var(--wf-dark-brand-500);
|
|
323
|
-
--wf-color-primary-hover: var(--wf-dark-brand-600);
|
|
324
|
-
--wf-color-primary-bg: var(--wf-dark-brand-50);
|
|
325
|
-
|
|
326
|
-
--wf-color-success: var(--wf-dark-green-500);
|
|
327
|
-
--wf-color-success-bg: var(--wf-dark-green-50);
|
|
328
|
-
--wf-color-warning: var(--wf-dark-amber-500);
|
|
329
|
-
--wf-color-warning-bg: var(--wf-dark-amber-50);
|
|
330
|
-
--wf-color-error: var(--wf-dark-red-500);
|
|
331
|
-
--wf-color-error-bg: var(--wf-dark-red-50);
|
|
332
|
-
--wf-color-info: var(--wf-dark-sky-500);
|
|
333
|
-
--wf-color-info-bg: var(--wf-dark-sky-50);
|
|
334
|
-
|
|
335
|
-
--wf-color-text: var(--wf-dark-slate-900);
|
|
336
|
-
--wf-color-text-secondary: var(--wf-dark-slate-500);
|
|
337
|
-
--wf-color-text-tertiary: var(--wf-dark-slate-400);
|
|
338
|
-
--wf-color-text-disabled: var(--wf-dark-slate-300);
|
|
339
|
-
|
|
340
|
-
--wf-color-bg: var(--wf-dark-bg);
|
|
341
|
-
--wf-color-bg-secondary: var(--wf-dark-slate-100);
|
|
342
|
-
--wf-color-bg-tertiary: var(--wf-dark-slate-200);
|
|
343
|
-
--wf-color-fill: var(--wf-dark-fill);
|
|
344
|
-
--wf-color-bg-subtle: var(--wf-dark-fill);
|
|
345
|
-
--wf-color-bg-hover: var(--wf-dark-bg-hover);
|
|
346
|
-
|
|
347
|
-
/* 状态层(原始层 --wf-dark-state-* 映射) */
|
|
348
|
-
--wf-state-hover: var(--wf-dark-state-hover);
|
|
349
|
-
--wf-state-pressed: var(--wf-dark-state-pressed);
|
|
350
|
-
/* 浮层面板底色:暗色抬升一级(Material tonal elevation——浮层提亮而非只靠阴影) */
|
|
351
|
-
--wf-color-bg-elevated: var(--wf-dark-slate-100);
|
|
352
|
-
|
|
353
|
-
--wf-color-border: var(--wf-dark-slate-200);
|
|
354
|
-
--wf-color-border-light: var(--wf-dark-slate-100);
|
|
355
|
-
--wf-color-border-dark: var(--wf-dark-slate-300);
|
|
356
|
-
|
|
357
|
-
--wf-surface-bg: var(--wf-color-bg);
|
|
358
|
-
--wf-surface-shadow: var(--wf-dark-surface-shadow);
|
|
359
|
-
--wf-shadow-sm: var(--wf-dark-shadow-sm);
|
|
360
|
-
--wf-shadow: var(--wf-dark-shadow);
|
|
361
|
-
--wf-shadow-md: var(--wf-dark-shadow-md);
|
|
362
|
-
--wf-shadow-lg: var(--wf-dark-shadow-lg);
|
|
363
|
-
--wf-shadow-inset: var(--wf-dark-shadow-inset);
|
|
364
|
-
|
|
365
|
-
--wf-color-primary-text: var(--wf-dark-brand-500);
|
|
366
|
-
--wf-color-success-text: var(--wf-dark-green-500);
|
|
367
|
-
--wf-color-warning-text: var(--wf-dark-amber-500);
|
|
368
|
-
--wf-color-error-text: var(--wf-dark-red-500);
|
|
369
|
-
--wf-color-info-text: var(--wf-dark-sky-500);
|
|
370
|
-
|
|
371
|
-
--wf-overlay: var(--wf-dark-overlay);
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
/* ── 激活方式二:系统暗色偏好(data-theme="light" 可强制亮色) ── */
|
|
375
|
-
@media (prefers-color-scheme: dark) {
|
|
376
|
-
:root:not([data-theme="light"]) {
|
|
377
|
-
color-scheme: dark;
|
|
378
|
-
|
|
379
|
-
--wf-color-primary: var(--wf-dark-brand-500);
|
|
380
|
-
--wf-color-primary-hover: var(--wf-dark-brand-600);
|
|
381
|
-
--wf-color-primary-bg: var(--wf-dark-brand-50);
|
|
382
|
-
|
|
383
|
-
--wf-color-success: var(--wf-dark-green-500);
|
|
384
|
-
--wf-color-success-bg: var(--wf-dark-green-50);
|
|
385
|
-
--wf-color-warning: var(--wf-dark-amber-500);
|
|
386
|
-
--wf-color-warning-bg: var(--wf-dark-amber-50);
|
|
387
|
-
--wf-color-error: var(--wf-dark-red-500);
|
|
388
|
-
--wf-color-error-bg: var(--wf-dark-red-50);
|
|
389
|
-
--wf-color-info: var(--wf-dark-sky-500);
|
|
390
|
-
--wf-color-info-bg: var(--wf-dark-sky-50);
|
|
391
|
-
|
|
392
|
-
--wf-color-text: var(--wf-dark-slate-900);
|
|
393
|
-
--wf-color-text-secondary: var(--wf-dark-slate-500);
|
|
394
|
-
--wf-color-text-tertiary: var(--wf-dark-slate-400);
|
|
395
|
-
--wf-color-text-disabled: var(--wf-dark-slate-300);
|
|
396
|
-
|
|
397
|
-
--wf-color-bg: var(--wf-dark-bg);
|
|
398
|
-
--wf-color-bg-secondary: var(--wf-dark-slate-100);
|
|
399
|
-
--wf-color-bg-tertiary: var(--wf-dark-slate-200);
|
|
400
|
-
--wf-color-fill: var(--wf-dark-fill);
|
|
401
|
-
--wf-color-bg-subtle: var(--wf-dark-fill);
|
|
402
|
-
--wf-color-bg-hover: var(--wf-dark-bg-hover);
|
|
403
|
-
|
|
404
|
-
/* 状态层(原始层 --wf-dark-state-* 映射) */
|
|
405
|
-
--wf-state-hover: var(--wf-dark-state-hover);
|
|
406
|
-
--wf-state-pressed: var(--wf-dark-state-pressed);
|
|
407
|
-
/* 浮层面板底色:暗色抬升一级(Material tonal elevation——浮层提亮而非只靠阴影) */
|
|
408
|
-
--wf-color-bg-elevated: var(--wf-dark-slate-100);
|
|
409
|
-
|
|
410
|
-
--wf-color-border: var(--wf-dark-slate-200);
|
|
411
|
-
--wf-color-border-light: var(--wf-dark-slate-100);
|
|
412
|
-
--wf-color-border-dark: var(--wf-dark-slate-300);
|
|
413
|
-
|
|
414
|
-
--wf-surface-bg: var(--wf-color-bg);
|
|
415
|
-
--wf-surface-shadow: var(--wf-dark-surface-shadow);
|
|
416
|
-
--wf-shadow-sm: var(--wf-dark-shadow-sm);
|
|
417
|
-
--wf-shadow: var(--wf-dark-shadow);
|
|
418
|
-
--wf-shadow-md: var(--wf-dark-shadow-md);
|
|
419
|
-
--wf-shadow-lg: var(--wf-dark-shadow-lg);
|
|
420
|
-
--wf-shadow-inset: var(--wf-dark-shadow-inset);
|
|
421
|
-
|
|
422
|
-
--wf-color-primary-text: var(--wf-dark-brand-500);
|
|
423
|
-
--wf-color-success-text: var(--wf-dark-green-500);
|
|
424
|
-
--wf-color-warning-text: var(--wf-dark-amber-500);
|
|
425
|
-
--wf-color-error-text: var(--wf-dark-red-500);
|
|
426
|
-
--wf-color-info-text: var(--wf-dark-sky-500);
|
|
427
|
-
|
|
428
|
-
--wf-overlay: var(--wf-dark-overlay);
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
/* weifuwu/theme — 预设主题(shadcn themes.css 式变量组切换)
|
|
433
|
-
*
|
|
434
|
-
* 用法:<html data-preset="minimal|compact|rounded">
|
|
435
|
-
* 与暗色 data-theme 正交(可组合:data-theme="dark" data-preset="compact")。
|
|
436
|
-
* 每组覆盖同一份 token 清单的相应子集——新增预设必须补齐全套(audit 强制)。
|
|
437
|
-
*
|
|
438
|
-
* 预设语义:
|
|
439
|
-
* minimal 品牌弱化——中性蓝灰主色(适合内容/文档型产品,Geist 式克制)
|
|
440
|
-
* compact 紧凑密度——控件/间距/字号缩一档(数据密集型工具,专业感)
|
|
441
|
-
* rounded 大圆角——radius 全升一档 + 按钮胶囊(亲和/消费型产品)
|
|
442
|
-
*/
|
|
443
|
-
:root[data-preset="minimal"] {
|
|
444
|
-
/* 品牌:中性蓝灰(seed 派生色阶自动跟随——50/600/700 不必手改) */
|
|
445
|
-
--wf-brand-seed: #64748b;
|
|
446
|
-
--wf-dark-brand-seed: #94a3b8;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
:root[data-preset="compact"] {
|
|
450
|
-
/* 控件尺寸 */
|
|
451
|
-
--wf-control-height: 32px;
|
|
452
|
-
--wf-control-pad-y: 6px;
|
|
453
|
-
/* 间距标尺缩一档(布局原语/工具类同步生效) */
|
|
454
|
-
--wf-space-xs: 3px;
|
|
455
|
-
--wf-space-sm: 6px;
|
|
456
|
-
--wf-space: 9px;
|
|
457
|
-
--wf-space-md: 12px;
|
|
458
|
-
--wf-space-lg: 18px;
|
|
459
|
-
--wf-space-xl: 24px;
|
|
460
|
-
--wf-space-2xl: 30px;
|
|
461
|
-
--wf-gap-xs: 3px;
|
|
462
|
-
--wf-gap-sm: 6px;
|
|
463
|
-
--wf-gap-md: 9px;
|
|
464
|
-
--wf-gap-lg: 12px;
|
|
465
|
-
--wf-gap-xl: 18px;
|
|
466
|
-
--wf-gap-2xl: 24px;
|
|
467
|
-
/* 正文字号缩一档(数据密度) */
|
|
468
|
-
--wf-font-size-sm: 12px;
|
|
469
|
-
--wf-font-size-base: 13px;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
:root[data-preset="rounded"] {
|
|
473
|
-
/* 圆角标尺全升一档 */
|
|
474
|
-
--wf-radius-sm: 8px;
|
|
475
|
-
--wf-radius: 12px;
|
|
476
|
-
--wf-radius-md: 16px;
|
|
477
|
-
--wf-radius-lg: 20px;
|
|
478
|
-
--wf-radius-xl: 28px;
|
|
479
|
-
--wf-surface-radius: var(--wf-radius-md);
|
|
480
|
-
/* 组件钩子跟随(按钮胶囊、字段大圆角) */
|
|
481
|
-
--wf-btn-radius: 999px;
|
|
482
|
-
--wf-field-radius: var(--wf-radius-md);
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
@layer base {
|
|
486
|
-
/* weifuwu/theme — 基础元素默认样式 */
|
|
487
|
-
*,
|
|
488
|
-
*::before,
|
|
489
|
-
*::after {
|
|
490
|
-
box-sizing: border-box;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
/* 选区色:primary 调(文字反白,与品牌一致) */
|
|
494
|
-
::selection {
|
|
495
|
-
background: var(--wf-color-primary-bg);
|
|
496
|
-
color: var(--wf-color-primary-text);
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
/* 主题滚动条(全局——所有滚动区一致;Firefox thin + WebKit 样式) */
|
|
500
|
-
* {
|
|
501
|
-
scrollbar-width: thin;
|
|
502
|
-
scrollbar-color: var(--wf-color-border-dark) transparent;
|
|
503
|
-
}
|
|
504
|
-
::-webkit-scrollbar {
|
|
505
|
-
width: 8px;
|
|
506
|
-
height: 8px;
|
|
507
|
-
}
|
|
508
|
-
::-webkit-scrollbar-track {
|
|
509
|
-
background: transparent;
|
|
510
|
-
}
|
|
511
|
-
::-webkit-scrollbar-thumb {
|
|
512
|
-
background: var(--wf-color-border-dark);
|
|
513
|
-
border-radius: var(--wf-radius-sm);
|
|
514
|
-
border: 2px solid transparent;
|
|
515
|
-
background-clip: padding-box;
|
|
516
|
-
}
|
|
517
|
-
::-webkit-scrollbar-thumb:hover {
|
|
518
|
-
background: var(--wf-color-text-secondary);
|
|
519
|
-
background-clip: padding-box;
|
|
520
|
-
border: 2px solid transparent;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
:root {
|
|
524
|
-
/* 原生控件/滚动条跟随主题;暗色激活时在 _dark.css 中切为 dark */
|
|
525
|
-
color-scheme: light;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
body {
|
|
529
|
-
margin: 0;
|
|
530
|
-
background: var(--wf-color-bg);
|
|
531
|
-
color: var(--wf-color-text);
|
|
532
|
-
font-family: var(--wf-font-sans);
|
|
533
|
-
font-size: var(--wf-font-size-base);
|
|
534
|
-
line-height: var(--wf-line-height);
|
|
535
|
-
-webkit-font-smoothing: antialiased;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
a {
|
|
539
|
-
color: var(--wf-color-primary-text);
|
|
540
|
-
text-decoration: none;
|
|
541
|
-
}
|
|
542
|
-
a:hover {
|
|
543
|
-
color: var(--wf-color-primary-hover);
|
|
544
|
-
text-decoration: underline;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
input,
|
|
548
|
-
textarea,
|
|
549
|
-
select,
|
|
550
|
-
button {
|
|
551
|
-
font-family: inherit;
|
|
552
|
-
font-size: inherit;
|
|
553
|
-
line-height: inherit;
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
input,
|
|
557
|
-
textarea,
|
|
558
|
-
select {
|
|
559
|
-
accent-color: var(--wf-accent-color);
|
|
560
|
-
caret-color: var(--wf-caret-color);
|
|
561
|
-
background: var(--wf-color-bg);
|
|
562
|
-
color: var(--wf-color-text);
|
|
563
|
-
border: var(--wf-border-width) solid var(--wf-color-border);
|
|
564
|
-
border-radius: var(--wf-radius);
|
|
565
|
-
padding: var(--wf-control-pad-y) var(--wf-space);
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
input:focus,
|
|
569
|
-
textarea:focus,
|
|
570
|
-
select:focus {
|
|
571
|
-
outline: none;
|
|
572
|
-
box-shadow: var(--wf-focus-ring);
|
|
573
|
-
border-color: var(--wf-color-primary);
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
input:disabled,
|
|
577
|
-
textarea:disabled,
|
|
578
|
-
select:disabled,
|
|
579
|
-
button:disabled {
|
|
580
|
-
opacity: var(--wf-opacity-disabled);
|
|
581
|
-
cursor: not-allowed;
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
button {
|
|
585
|
-
accent-color: var(--wf-accent-color);
|
|
586
|
-
background: var(--wf-color-bg);
|
|
587
|
-
color: var(--wf-color-text);
|
|
588
|
-
border: var(--wf-border-width) solid var(--wf-color-border);
|
|
589
|
-
border-radius: var(--wf-radius);
|
|
590
|
-
padding: var(--wf-control-pad-y) var(--wf-space-md);
|
|
591
|
-
min-height: var(--wf-control-height);
|
|
592
|
-
cursor: pointer;
|
|
593
|
-
transition: border-color var(--wf-dur-fast) var(--wf-ease-out),
|
|
594
|
-
color var(--wf-dur-fast) var(--wf-ease-out),
|
|
595
|
-
box-shadow var(--wf-dur-fast) var(--wf-ease-out),
|
|
596
|
-
background-color var(--wf-dur-fast) var(--wf-ease-out),
|
|
597
|
-
filter var(--wf-dur-fast) var(--wf-ease-out);
|
|
598
|
-
}
|
|
599
|
-
button:hover {
|
|
600
|
-
border-color: var(--wf-color-primary);
|
|
601
|
-
color: var(--wf-color-primary-text);
|
|
602
|
-
}
|
|
603
|
-
button:active:not(:disabled),
|
|
604
|
-
[role="button"]:active {
|
|
605
|
-
filter: brightness(0.95); /* 按压反馈:不偏移布局,适用任意宽度(block/inline) */
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
/* 键盘焦点:button 与 [tabindex] 统一 focus ring(仅键盘触发,鼠标点击不闪) */
|
|
609
|
-
button:focus-visible,
|
|
610
|
-
[tabindex]:focus-visible {
|
|
611
|
-
outline: none;
|
|
612
|
-
box-shadow: var(--wf-focus-ring);
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
[role="button"] {
|
|
616
|
-
cursor: pointer;
|
|
617
|
-
transition: background-color var(--wf-dur-fast) var(--wf-ease-out),
|
|
618
|
-
border-color var(--wf-dur-fast) var(--wf-ease-out),
|
|
619
|
-
box-shadow var(--wf-dur-fast) var(--wf-ease-out),
|
|
620
|
-
color var(--wf-dur-fast) var(--wf-ease-out),
|
|
621
|
-
filter var(--wf-dur-fast) var(--wf-ease-out);
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
/* 触屏设备(coarse pointer):交互目标提升到 44px(Apple HIG / WCAG 2.5.8) */
|
|
625
|
-
@media (pointer: coarse) {
|
|
626
|
-
button,
|
|
627
|
-
[role="button"],
|
|
628
|
-
input,
|
|
629
|
-
textarea,
|
|
630
|
-
select,
|
|
631
|
-
.wf-card--clickable,
|
|
632
|
-
.wf-table-th--sortable,
|
|
633
|
-
.wf-accordion-summary,
|
|
634
|
-
.wf-tag-close,
|
|
635
|
-
.wf-checkbox,
|
|
636
|
-
.wf-switch,
|
|
637
|
-
.wf-radio,
|
|
638
|
-
.wf-datepicker-cell {
|
|
639
|
-
min-height: 44px;
|
|
640
|
-
min-width: 44px;
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
h1, h2, h3, h4, h5, h6 {
|
|
645
|
-
font-weight: var(--wf-font-weight-semibold);
|
|
646
|
-
line-height: var(--wf-line-height-tight);
|
|
647
|
-
color: var(--wf-color-text);
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
p {
|
|
651
|
-
line-height: var(--wf-line-height-relaxed);
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
small {
|
|
655
|
-
font-size: var(--wf-font-size-sm);
|
|
656
|
-
color: var(--wf-color-text-tertiary);
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
label {
|
|
660
|
-
font-size: var(--wf-font-size-base);
|
|
661
|
-
font-weight: var(--wf-font-weight-medium);
|
|
662
|
-
color: var(--wf-color-text);
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
table {
|
|
666
|
-
width: 100%;
|
|
667
|
-
border-collapse: collapse;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
th {
|
|
671
|
-
text-align: left;
|
|
672
|
-
font-weight: var(--wf-font-weight-medium);
|
|
673
|
-
font-size: var(--wf-font-size-xs);
|
|
674
|
-
color: var(--wf-color-text-tertiary);
|
|
675
|
-
text-transform: var(--wf-heading-case); /* CJK 默认 none,英文可覆盖 uppercase */
|
|
676
|
-
letter-spacing: var(--wf-heading-tracking);
|
|
677
|
-
padding: var(--wf-space) var(--wf-space-sm);
|
|
678
|
-
border-bottom: var(--wf-border-width) solid var(--wf-color-border);
|
|
679
|
-
background: var(--wf-color-bg-secondary);
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
td {
|
|
683
|
-
padding: var(--wf-space) var(--wf-space-sm);
|
|
684
|
-
border-bottom: var(--wf-border-width) solid var(--wf-color-border);
|
|
685
|
-
color: var(--wf-color-text);
|
|
686
|
-
font-size: var(--wf-font-size-base);
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
hr {
|
|
690
|
-
border: none;
|
|
691
|
-
border-top: var(--wf-border-width) solid var(--wf-color-border);
|
|
692
|
-
margin: var(--wf-space-md) 0;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
pre, code {
|
|
696
|
-
font-family: var(--wf-font-mono);
|
|
697
|
-
font-size: var(--wf-font-size-sm);
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
pre {
|
|
702
|
-
background: var(--wf-color-bg-secondary);
|
|
703
|
-
border: var(--wf-border-width) solid var(--wf-color-border);
|
|
704
|
-
border-radius: var(--wf-radius);
|
|
705
|
-
padding: var(--wf-space) var(--wf-space-md);
|
|
706
|
-
overflow-x: auto;
|
|
707
|
-
white-space: pre;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
code {
|
|
711
|
-
background: var(--wf-color-bg-secondary);
|
|
712
|
-
padding: 2px 6px;
|
|
713
|
-
border-radius: var(--wf-radius-sm);
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
/* ── 无障碍:尊重系统减弱动效偏好 ── */
|
|
717
|
-
@media (prefers-reduced-motion: reduce) {
|
|
718
|
-
*,
|
|
719
|
-
*::before,
|
|
720
|
-
*::after {
|
|
721
|
-
animation-duration: 0.01ms !important;
|
|
722
|
-
animation-iteration-count: 1 !important;
|
|
723
|
-
transition-duration: 0.01ms !important;
|
|
724
|
-
scroll-behavior: auto !important;
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
/* 拖拽中禁用文本选中(useDragDrop 拖拽生命周期标记——Kanban 教训) */
|
|
729
|
-
body.wf-dragging {
|
|
730
|
-
user-select: none;
|
|
731
|
-
-webkit-user-select: none;
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
/* ── 微流明 · 进行态语言:stream-in 内容渐显(AI 回复/流式列表/hero 元素) ──
|
|
735
|
-
* 微流明设计语言三支柱之二(design/design-language.md)——"进行中"是可见的流
|
|
736
|
-
* 用法:元素加 wf-stream-in 类(opacity 0→1 + 上移 4px)
|
|
737
|
-
*/
|
|
738
|
-
@keyframes wf-stream-in {
|
|
739
|
-
from { opacity: 0; transform: translateY(4px); }
|
|
740
|
-
to { opacity: 1; transform: translateY(0); }
|
|
741
|
-
}
|
|
742
|
-
.wf-stream-in {
|
|
743
|
-
animation: wf-stream-in var(--wf-dur-base) var(--wf-ease-out) both;
|
|
744
|
-
}
|
|
745
|
-
@media (prefers-reduced-motion: reduce) {
|
|
746
|
-
.wf-stream-in {
|
|
747
|
-
animation-duration: 0.01ms;
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
/* ── 首页 hero 打字机光标(微流明·进行态——reduced-motion 由下方降级块处理) ── */
|
|
752
|
-
.wf-hero-cursor {
|
|
753
|
-
animation: wf-hero-blink 1s step-end infinite;
|
|
754
|
-
color: var(--wf-color-primary);
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
@keyframes wf-hero-blink {
|
|
758
|
-
0%, 100% { opacity: 1; }
|
|
759
|
-
50% { opacity: 0; }
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
@layer layout {
|
|
764
|
-
/* stack — 纵向堆叠(L3:gap/align 默认值 :where() 零优先级——wf-gap-*、
|
|
765
|
-
wf-items-* 覆盖工具靠优先级获胜,不再依赖 import 顺序) */
|
|
766
|
-
.wf-stack {
|
|
767
|
-
display: flex;
|
|
768
|
-
flex-direction: column;
|
|
769
|
-
}
|
|
770
|
-
:where(.wf-stack) {
|
|
771
|
-
gap: var(--wf-gap, var(--wf-gap-md));
|
|
772
|
-
align-items: var(--wf-align, stretch);
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
@layer layout {
|
|
777
|
-
/* row — 横向排列(L3:gap/align 默认值 :where() 零优先级——wf-gap-* 等
|
|
778
|
-
覆盖工具靠优先级获胜,不再依赖 import 顺序) */
|
|
779
|
-
.wf-row {
|
|
780
|
-
display: flex;
|
|
781
|
-
flex-wrap: wrap;
|
|
782
|
-
}
|
|
783
|
-
:where(.wf-row) {
|
|
784
|
-
gap: var(--wf-gap, var(--wf-gap-md));
|
|
785
|
-
align-items: var(--wf-align, center);
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
/* row-reverse — 横向反向排列 */
|
|
789
|
-
.wf-row-reverse {
|
|
790
|
-
display: flex;
|
|
791
|
-
flex-direction: row-reverse;
|
|
792
|
-
flex-wrap: wrap;
|
|
793
|
-
}
|
|
794
|
-
:where(.wf-row-reverse) {
|
|
795
|
-
gap: var(--wf-gap, var(--wf-gap-md));
|
|
796
|
-
align-items: var(--wf-align, center);
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
/* items — 交叉轴对齐(单机制——设 --wf-align 变量,wf-row/wf-stack 等消费;
|
|
800
|
-
值为 CSS align-items 值词。物理方向词(top/bottom)禁入对齐域) */
|
|
801
|
-
.wf-items-start { --wf-align: flex-start; }
|
|
802
|
-
.wf-items-center { --wf-align: center; }
|
|
803
|
-
.wf-items-end { --wf-align: flex-end; }
|
|
804
|
-
.wf-items-stretch { --wf-align: stretch; }
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
@layer layout {
|
|
808
|
-
/* split — 两端展开(L3:align/gap 默认值 :where() 零优先级) */
|
|
809
|
-
.wf-split {
|
|
810
|
-
display: flex;
|
|
811
|
-
justify-content: space-between;
|
|
812
|
-
}
|
|
813
|
-
:where(.wf-split) {
|
|
814
|
-
align-items: var(--wf-align, center);
|
|
815
|
-
gap: var(--wf-gap, var(--wf-gap-md));
|
|
816
|
-
}
|
|
817
|
-
.wf-split > :last-child {
|
|
818
|
-
flex-shrink: 0;
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
@layer layout {
|
|
823
|
-
/* center — 居中 */
|
|
824
|
-
.wf-center {
|
|
825
|
-
display: flex;
|
|
826
|
-
flex-direction: column;
|
|
827
|
-
align-items: center;
|
|
828
|
-
justify-content: center;
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
@layer layout {
|
|
833
|
-
/* justify — 主轴分布(对齐域统一 CSS 词根——值为 justify-content 值词;
|
|
834
|
-
L3:align/gap 默认值 :where() 零优先级) */
|
|
835
|
-
.wf-justify-between {
|
|
836
|
-
display: flex;
|
|
837
|
-
justify-content: space-between;
|
|
838
|
-
}
|
|
839
|
-
:where(.wf-justify-between) {
|
|
840
|
-
align-items: var(--wf-align, center);
|
|
841
|
-
gap: var(--wf-gap, var(--wf-gap-md));
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
.wf-justify-end {
|
|
845
|
-
display: flex;
|
|
846
|
-
justify-content: flex-end;
|
|
847
|
-
}
|
|
848
|
-
:where(.wf-justify-end) {
|
|
849
|
-
align-items: var(--wf-align, center);
|
|
850
|
-
gap: var(--wf-gap, var(--wf-gap-md));
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
.wf-justify-center {
|
|
854
|
-
display: flex;
|
|
855
|
-
justify-content: center;
|
|
856
|
-
}
|
|
857
|
-
:where(.wf-justify-center) {
|
|
858
|
-
align-items: var(--wf-align, center);
|
|
859
|
-
gap: var(--wf-gap, var(--wf-gap-md));
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
@layer layout {
|
|
864
|
-
/* fill — 撑满剩余空间 */
|
|
865
|
-
.wf-fill {
|
|
866
|
-
flex: 1;
|
|
867
|
-
min-width: 0;
|
|
868
|
-
min-height: 0;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
/* 链接行 hover 强调(列表/导航行——整行可点视觉反馈) */
|
|
872
|
-
.wf-fill-hover {
|
|
873
|
-
border-radius: var(--wf-radius-sm);
|
|
874
|
-
padding: 2px 4px;
|
|
875
|
-
margin: -2px -4px;
|
|
876
|
-
transition: background 0.15s ease;
|
|
877
|
-
}
|
|
878
|
-
.wf-fill-hover:hover { background: var(--wf-color-bg-secondary); }
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
@layer layout {
|
|
882
|
-
/* grid — 二维网格(L3:gap 默认值 :where() 零优先级) */
|
|
883
|
-
.wf-grid {
|
|
884
|
-
display: grid;
|
|
885
|
-
grid-template-columns: var(--wf-cols, repeat(auto-fill, minmax(280px, 1fr)));
|
|
886
|
-
}
|
|
887
|
-
:where(.wf-grid) {
|
|
888
|
-
gap: var(--wf-gap, var(--wf-gap-lg));
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
@layer layout {
|
|
893
|
-
/* cluster — 换行簇(L3:justify/align/gap 默认值 :where() 零优先级——
|
|
894
|
-
wf-justify-end 等分布工具叠加时靠优先级获胜) */
|
|
895
|
-
.wf-cluster {
|
|
896
|
-
display: flex;
|
|
897
|
-
flex-wrap: wrap;
|
|
898
|
-
}
|
|
899
|
-
:where(.wf-cluster) {
|
|
900
|
-
gap: var(--wf-gap, var(--wf-gap-sm));
|
|
901
|
-
justify-content: var(--wf-justify, center);
|
|
902
|
-
align-items: var(--wf-align, center);
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
@layer layout {
|
|
907
|
-
/* cover — 全屏覆盖 */
|
|
908
|
-
.wf-cover {
|
|
909
|
-
position: fixed;
|
|
910
|
-
inset: 0;
|
|
911
|
-
display: flex;
|
|
912
|
-
align-items: center;
|
|
913
|
-
justify-content: center;
|
|
914
|
-
z-index: var(--wf-z, var(--wf-cover-z));
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
@layer layout {
|
|
919
|
-
/* position — 定位工具(属性名即类名——wf-relative + wf-absolute 是 CSS
|
|
920
|
-
用户的零学习配对:容器 wf-relative,角标/覆盖层子项 wf-absolute。
|
|
921
|
-
fixed 视口覆盖用组合原语 wf-cover;sticky 用 wf-sticky) */
|
|
922
|
-
.wf-relative { position: relative; }
|
|
923
|
-
.wf-absolute { position: absolute; }
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
@layer layout {
|
|
927
|
-
/* sticky — 粘性定位 */
|
|
928
|
-
.wf-sticky {
|
|
929
|
-
position: sticky;
|
|
930
|
-
top: var(--wf-offset, 0);
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
@layer layout {
|
|
935
|
-
/* overflow — 溢出控制(属性根 + CSS 值词;全局滚动条样式见 _base.css) */
|
|
936
|
-
.wf-overflow-auto { overflow: auto; }
|
|
937
|
-
.wf-overflow-hidden { overflow: hidden; }
|
|
938
|
-
.wf-overflow-x { overflow-x: auto; }
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
@layer layout {
|
|
942
|
-
/* safe-area — iOS 刘海屏/Home 条安全区工具(env() 未生效环境自动为 0) */
|
|
943
|
-
.wf-safe-bottom {
|
|
944
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
945
|
-
}
|
|
946
|
-
.wf-safe-top {
|
|
947
|
-
padding-top: env(safe-area-inset-top);
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
@layer layout {
|
|
952
|
-
/* layer — 层级控制 */
|
|
953
|
-
.wf-layer {
|
|
954
|
-
position: relative;
|
|
955
|
-
z-index: var(--wf-z, 1);
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
@layer layout {
|
|
960
|
-
/* align-self — 弹性子项交叉轴对齐(消费侧 wf-self-* 缺口——容器内单元素对齐) */
|
|
961
|
-
.wf-self-start { align-self: flex-start; }
|
|
962
|
-
.wf-self-center { align-self: center; }
|
|
963
|
-
.wf-self-end { align-self: flex-end; }
|
|
964
|
-
.wf-self-stretch { align-self: stretch; }
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
@layer layout {
|
|
968
|
-
/* nowrap — 不换行(只管 flex-wrap——不定义 align-items,避免与
|
|
969
|
-
wf-items-* 对齐工具叠加冲突:双份 CSS 下 nowrap 后置曾覆盖 stretch;
|
|
970
|
-
L3:gap 默认值 :where() 零优先级) */
|
|
971
|
-
.wf-nowrap {
|
|
972
|
-
display: flex;
|
|
973
|
-
flex-wrap: nowrap;
|
|
974
|
-
}
|
|
975
|
-
:where(.wf-nowrap) {
|
|
976
|
-
gap: var(--wf-gap, var(--wf-gap-md));
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
@layer layout {
|
|
981
|
-
/* min — flex 子项可收缩约束(flex 收缩坑标配:默认 min-width/height: auto
|
|
982
|
-
会阻止子项收缩——内容溢出/撑破布局时加这类) */
|
|
983
|
-
.wf-shrink {
|
|
984
|
-
min-width: 0;
|
|
985
|
-
min-height: 0;
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
/* 单边版本(只需横向收缩的场景——属性名即类名) */
|
|
989
|
-
.wf-min-width-0 {
|
|
990
|
-
min-width: 0;
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
@layer layout {
|
|
995
|
-
/* container — 内容宽度约束居中 */
|
|
996
|
-
/* width: 100% 必须:margin: 0 auto 在 flex 父中阻止 stretch(宽度=内容)
|
|
997
|
-
——landing 特性区 404px 而非撑满 1100 容器的根因 */
|
|
998
|
-
.wf-container {
|
|
999
|
-
width: 100%;
|
|
1000
|
-
max-width: var(--wf-max, 1200px);
|
|
1001
|
-
margin: 0 auto;
|
|
1002
|
-
padding: 0 var(--wf-gap, var(--wf-gap-lg));
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
@layer layout {
|
|
1007
|
-
/* 应用外壳 — 侧边栏 + 主内容区
|
|
1008
|
-
*
|
|
1009
|
-
* 结构约定(应用层 AppLayout 组件使用):
|
|
1010
|
-
* wf-app-shell > [wf-sidebar, wf-main]
|
|
1011
|
-
* wf-sidebar > [wf-sidebar-header(品牌), wf-sidebar-body(wf-nav), wf-sidebar-footer(用户区)]
|
|
1012
|
-
* wf-nav > wf-nav-group(分组标题) / wf-nav-item(链接,--active 激活)
|
|
1013
|
-
*
|
|
1014
|
-
* 移动端(<768px)降级:侧边栏堆叠到顶部、静态定位、主区占满。
|
|
1015
|
-
* 交互式折叠抽屉属应用层职责(需 JS 开关),layout 只提供静态外壳。
|
|
1016
|
-
*/
|
|
1017
|
-
|
|
1018
|
-
.wf-app-shell {
|
|
1019
|
-
display: grid;
|
|
1020
|
-
grid-template-columns: var(--wf-sidebar-width, 240px) minmax(0, 1fr);
|
|
1021
|
-
/* 固定视口高度(非 min-height):内部页面(聊天等)依赖 height: 100% 链实现
|
|
1022
|
-
容器内滚动——min-height 会让壳随内容长高,聊天消息区永远无法内部滚动
|
|
1023
|
-
(scrollTop 赋值无效果,页面滚动条不跟随消息到底) */
|
|
1024
|
-
height: 100vh;
|
|
1025
|
-
overflow: hidden;
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
/* ── 侧边栏 ── */
|
|
1029
|
-
.wf-sidebar {
|
|
1030
|
-
display: flex;
|
|
1031
|
-
flex-direction: column;
|
|
1032
|
-
position: sticky;
|
|
1033
|
-
top: 0;
|
|
1034
|
-
height: 100vh;
|
|
1035
|
-
overflow-y: auto;
|
|
1036
|
-
background: var(--wf-color-bg-secondary);
|
|
1037
|
-
border-right: var(--wf-border-width) solid var(--wf-color-border);
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
.wf-sidebar-header {
|
|
1041
|
-
display: flex;
|
|
1042
|
-
align-items: center;
|
|
1043
|
-
gap: var(--wf-gap-sm);
|
|
1044
|
-
padding: var(--wf-space-md);
|
|
1045
|
-
border-bottom: var(--wf-border-width) solid var(--wf-color-border-light);
|
|
1046
|
-
flex-shrink: 0;
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
.wf-sidebar-body {
|
|
1050
|
-
flex: 1;
|
|
1051
|
-
padding: var(--wf-space-sm);
|
|
1052
|
-
overflow-y: auto;
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
.wf-sidebar-footer {
|
|
1056
|
-
padding: var(--wf-space-sm);
|
|
1057
|
-
border-top: var(--wf-border-width) solid var(--wf-color-border-light);
|
|
1058
|
-
flex-shrink: 0;
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
/* ── 导航 ── */
|
|
1062
|
-
.wf-nav {
|
|
1063
|
-
display: flex;
|
|
1064
|
-
flex-direction: column;
|
|
1065
|
-
gap: 2px;
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
.wf-nav-group {
|
|
1069
|
-
font-size: var(--wf-font-size-xs);
|
|
1070
|
-
font-weight: var(--wf-font-weight-medium);
|
|
1071
|
-
color: var(--wf-color-text-tertiary);
|
|
1072
|
-
text-transform: var(--wf-heading-case); /* CJK 默认 none,英文可覆盖 uppercase */
|
|
1073
|
-
letter-spacing: var(--wf-heading-tracking);
|
|
1074
|
-
padding: var(--wf-space-md) var(--wf-space-sm) var(--wf-space-xs);
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
.wf-nav-item {
|
|
1078
|
-
display: flex;
|
|
1079
|
-
align-items: center;
|
|
1080
|
-
gap: var(--wf-gap-sm);
|
|
1081
|
-
padding: var(--wf-space-sm) var(--wf-space);
|
|
1082
|
-
border-radius: var(--wf-radius);
|
|
1083
|
-
color: var(--wf-color-text-secondary);
|
|
1084
|
-
font-size: var(--wf-font-size-base);
|
|
1085
|
-
text-decoration: none;
|
|
1086
|
-
cursor: pointer;
|
|
1087
|
-
border: none;
|
|
1088
|
-
background: none;
|
|
1089
|
-
width: 100%;
|
|
1090
|
-
text-align: left;
|
|
1091
|
-
font-family: inherit;
|
|
1092
|
-
transition: background var(--wf-transition), color var(--wf-transition);
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
.wf-nav-item:hover {
|
|
1096
|
-
background: var(--wf-color-bg-tertiary);
|
|
1097
|
-
color: var(--wf-color-text);
|
|
1098
|
-
text-decoration: none;
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
.wf-nav-item:focus-visible {
|
|
1102
|
-
outline: none;
|
|
1103
|
-
box-shadow: var(--wf-focus-ring);
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
.wf-nav-item--active {
|
|
1107
|
-
background: var(--wf-color-primary-bg);
|
|
1108
|
-
color: var(--wf-color-primary-text);
|
|
1109
|
-
font-weight: var(--wf-font-weight-medium);
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
|
-
.wf-nav-item--active:hover {
|
|
1113
|
-
background: var(--wf-color-primary-bg);
|
|
1114
|
-
color: var(--wf-color-primary-text);
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
/* ── 折叠态:图标-only 导航(配合 --wf-sidebar-width 收窄侧栏) ── */
|
|
1119
|
-
.wf-nav--collapsed .wf-nav-item {
|
|
1120
|
-
justify-content: center;
|
|
1121
|
-
gap: 0;
|
|
1122
|
-
padding: var(--wf-space-sm);
|
|
1123
|
-
}
|
|
1124
|
-
.wf-nav--collapsed .wf-nav-label {
|
|
1125
|
-
display: none;
|
|
1126
|
-
}
|
|
1127
|
-
.wf-nav--collapsed .wf-nav-group {
|
|
1128
|
-
text-align: center;
|
|
1129
|
-
padding-left: 0;
|
|
1130
|
-
padding-right: 0;
|
|
1131
|
-
overflow: hidden;
|
|
1132
|
-
white-space: nowrap;
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
|
-
/* ── 主内容区 ── */
|
|
1136
|
-
.wf-main {
|
|
1137
|
-
padding: var(--wf-space-lg);
|
|
1138
|
-
min-width: 0;
|
|
1139
|
-
min-height: 0;
|
|
1140
|
-
/* 内容高于视口时在主区内滚动(壳固定视口高度后的唯一滚动出口) */
|
|
1141
|
-
overflow-y: auto;
|
|
1142
|
-
background: var(--wf-color-bg);
|
|
1143
|
-
/* 行宽约束(P5):默认 none 全宽(聊天/表格等全宽应用零影响);
|
|
1144
|
-
文档站/长文本场景设 --wf-main-max: 900px——直接子元素限宽居中 */
|
|
1145
|
-
--wf-main-max: none;
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
.wf-main > * {
|
|
1149
|
-
max-width: var(--wf-main-max);
|
|
1150
|
-
margin-inline: auto;
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
|
-
/* ── 触屏:导航项 44px 命中区 ── */
|
|
1154
|
-
@media (pointer: coarse) {
|
|
1155
|
-
.wf-nav-item {
|
|
1156
|
-
min-height: 44px;
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
/* ── 移动端:堆叠降级 ── */
|
|
1161
|
-
@media (max-width: 767.98px) {
|
|
1162
|
-
.wf-app-shell {
|
|
1163
|
-
grid-template-columns: 1fr;
|
|
1164
|
-
height: auto; /* 恢复文档流滚动(侧边栏堆叠在顶部) */
|
|
1165
|
-
overflow: visible;
|
|
1166
|
-
}
|
|
1167
|
-
.wf-sidebar {
|
|
1168
|
-
position: static;
|
|
1169
|
-
height: auto;
|
|
1170
|
-
border-right: none;
|
|
1171
|
-
border-bottom: var(--wf-border-width) solid var(--wf-color-border);
|
|
1172
|
-
}
|
|
1173
|
-
.wf-main {
|
|
1174
|
-
padding: var(--wf-space-md);
|
|
1175
|
-
overflow: visible;
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
@layer utilities {
|
|
1181
|
-
/* surface — 基础面 + 面工具类(背景色/圆角/阴影——全部引用语义 Token) */
|
|
1182
|
-
|
|
1183
|
-
.wf-surface {
|
|
1184
|
-
border-radius: var(--wf-surface-radius);
|
|
1185
|
-
box-shadow: var(--wf-surface-shadow);
|
|
1186
|
-
background: var(--wf-surface-bg);
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
/* 平面表面(M4 表面语言——静态卡片/面板组合 wf-border 用:阴影仅抬升语义) */
|
|
1190
|
-
.wf-surface--flat {
|
|
1191
|
-
box-shadow: none;
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1194
|
-
/* ── 背景色工具 — 引用语义 Token,免自定义 CSS ── */
|
|
1195
|
-
.wf-bg-secondary { background: var(--wf-color-bg-secondary); }
|
|
1196
|
-
.wf-bg-tertiary { background: var(--wf-color-bg-tertiary); }
|
|
1197
|
-
.wf-bg-primary { background: var(--wf-color-primary-bg); }
|
|
1198
|
-
.wf-bg-warning { background: var(--wf-color-warning-bg); }
|
|
1199
|
-
.wf-bg-error { background: var(--wf-color-error-bg); }
|
|
1200
|
-
.wf-bg-none { background: transparent; }
|
|
1201
|
-
|
|
1202
|
-
/* ── 胶囊圆角(状态徽章/标签/色块) ── */
|
|
1203
|
-
.wf-pill { border-radius: 999px; }
|
|
1204
|
-
|
|
1205
|
-
/* ── 圆角工具 — 随 token --wf-radius-*(同名推导) ── */
|
|
1206
|
-
.wf-radius-sm { border-radius: var(--wf-radius-sm); }
|
|
1207
|
-
.wf-radius { border-radius: var(--wf-radius); }
|
|
1208
|
-
.wf-radius-md { border-radius: var(--wf-radius-md); }
|
|
1209
|
-
.wf-radius-lg { border-radius: var(--wf-radius-lg); }
|
|
1210
|
-
|
|
1211
|
-
/* ── 阴影工具 — 随 token --wf-shadow-*(同名推导;抬升语义见表面语言) ── */
|
|
1212
|
-
.wf-shadow { box-shadow: var(--wf-shadow); }
|
|
1213
|
-
|
|
1214
|
-
/* ── hover 抬升(Card/StatCard 可点击/悬停共用,阴影 + 上移 + 焦点环) ── */
|
|
1215
|
-
.wf-elevate {
|
|
1216
|
-
transition: box-shadow var(--wf-dur-fast) var(--wf-ease-out), transform var(--wf-dur-fast) var(--wf-ease-out);
|
|
1217
|
-
}
|
|
1218
|
-
.wf-elevate:hover {
|
|
1219
|
-
box-shadow: var(--wf-shadow-md);
|
|
1220
|
-
transform: translateY(-2px);
|
|
1221
|
-
}
|
|
1222
|
-
.wf-elevate:focus-visible {
|
|
1223
|
-
outline: none;
|
|
1224
|
-
box-shadow: var(--wf-shadow-md), var(--wf-focus-ring);
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
|
-
/* ── 面板入场:统一 scale+fade(面板族:dropdown/select/datepicker 从触发点下方弹出) ── */
|
|
1228
|
-
.wf-panel-in {
|
|
1229
|
-
animation: wf-panel-in var(--wf-dur-fast) var(--wf-ease-out);
|
|
1230
|
-
transform-origin: top center;
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
@keyframes wf-panel-in {
|
|
1234
|
-
from { opacity: 0; transform: translateY(-4px) scale(0.97); }
|
|
1235
|
-
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
/* ── 聊天气泡 ──
|
|
1239
|
-
* 用法:wf-bubble(对方/AI)+ wf-bubble--own(自己)
|
|
1240
|
-
* 行布局用 wf-row + wf-gap 覆盖;文字用 wf-pre-wrap 已内建
|
|
1241
|
-
*/
|
|
1242
|
-
.wf-bubble {
|
|
1243
|
-
display: inline-block;
|
|
1244
|
-
max-width: 70%;
|
|
1245
|
-
padding: var(--wf-space-sm) var(--wf-space-md);
|
|
1246
|
-
border-radius: var(--wf-radius-md);
|
|
1247
|
-
background: var(--wf-color-bg-secondary);
|
|
1248
|
-
color: var(--wf-color-text);
|
|
1249
|
-
font-size: var(--wf-font-size-base);
|
|
1250
|
-
line-height: var(--wf-line-height);
|
|
1251
|
-
white-space: pre-wrap;
|
|
1252
|
-
word-break: break-word;
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
.wf-bubble--own {
|
|
1256
|
-
background: var(--wf-color-primary);
|
|
1257
|
-
color: var(--wf-color-on-brand);
|
|
1258
|
-
border-bottom-right-radius: var(--wf-radius-sm);
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
.wf-bubble--ai {
|
|
1262
|
-
background: var(--wf-color-primary-bg);
|
|
1263
|
-
border: var(--wf-border-width) solid var(--wf-color-border-light);
|
|
1264
|
-
border-bottom-left-radius: var(--wf-radius-sm);
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
/* 圆角/描边类(card 视觉——消费侧欠账 2027-09 补定义) */
|
|
1268
|
-
.wf-rounded-sm { border-radius: var(--wf-radius-sm); }
|
|
1269
|
-
.wf-rounded-md { border-radius: var(--wf-radius-md); }
|
|
1270
|
-
.wf-card-outline { border: 1px solid var(--wf-color-border); }
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
@layer utilities {
|
|
1274
|
-
/* 边框工具类 — 全部引用 --wf-border-width / --wf-color-border(方向全词) */
|
|
1275
|
-
.wf-border { border: var(--wf-border-width) solid var(--wf-color-border); }
|
|
1276
|
-
.wf-border-top { border-top: var(--wf-border-width) solid var(--wf-color-border); }
|
|
1277
|
-
.wf-border-bottom { border-bottom: var(--wf-border-width) solid var(--wf-color-border); }
|
|
1278
|
-
.wf-border-left { border-left: var(--wf-border-width) solid var(--wf-color-border); }
|
|
1279
|
-
.wf-border-right { border-right: var(--wf-border-width) solid var(--wf-color-border); }
|
|
1280
|
-
.wf-border-none { border: none; }
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
@layer utilities {
|
|
1284
|
-
/* 排版工具类(design/layout-naming.md 词根分域——过载歼灭):
|
|
1285
|
-
* wf-font-<刻度> 字号(font-size ← --wf-font-size-*)
|
|
1286
|
-
* wf-medium/semibold/bold 字重(裸值词)
|
|
1287
|
-
* wf-text-<色> 文字颜色(语义 Token——含 on-brand 填充上文字)
|
|
1288
|
-
* wf-text-<方向> 文本对齐(text-align)
|
|
1289
|
-
* wf-tracking-* 字距(排版术语 = letter-spacing)
|
|
1290
|
-
*/
|
|
1291
|
-
|
|
1292
|
-
/* ── 文本对齐(text-align——自然读法保留) ── */
|
|
1293
|
-
.wf-text-left { text-align: left; }
|
|
1294
|
-
.wf-text-center { text-align: center; }
|
|
1295
|
-
.wf-text-right { text-align: right; }
|
|
1296
|
-
|
|
1297
|
-
/* ── 字号(font 属性族) ── */
|
|
1298
|
-
.wf-font-xs { font-size: var(--wf-font-size-xs); }
|
|
1299
|
-
.wf-font-sm { font-size: var(--wf-font-size-sm); }
|
|
1300
|
-
.wf-font-base { font-size: var(--wf-font-size-base); }
|
|
1301
|
-
.wf-font-lg { font-size: var(--wf-font-size-lg); }
|
|
1302
|
-
.wf-font-2xl { font-size: var(--wf-font-size-2xl); }
|
|
1303
|
-
.wf-font-3xl { font-size: var(--wf-font-size-3xl); }
|
|
1304
|
-
.wf-font-4xl { font-size: var(--wf-font-size-4xl); }
|
|
1305
|
-
|
|
1306
|
-
/* ── 数字等宽(统计/表格数值防宽度抖动) ── */
|
|
1307
|
-
.wf-nums {
|
|
1308
|
-
font-variant-numeric: var(--wf-nums);
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
/* ── 文字色(语义唯一名——随 token 用 error;浅底可读 700 级) ── */
|
|
1312
|
-
.wf-text-secondary { color: var(--wf-color-text-secondary); }
|
|
1313
|
-
.wf-text-tertiary { color: var(--wf-color-text-tertiary); }
|
|
1314
|
-
.wf-text-danger { color: var(--wf-color-error-text); }
|
|
1315
|
-
.wf-text-warning { color: var(--wf-color-warning-text); }
|
|
1316
|
-
.wf-font-mono { font-family: var(--wf-font-mono); }
|
|
1317
|
-
.wf-text-primary { color: var(--wf-color-primary-text); }
|
|
1318
|
-
.wf-text-success { color: var(--wf-color-success-text); }
|
|
1319
|
-
.wf-text-warning { color: var(--wf-color-warning-text); }
|
|
1320
|
-
.wf-font-mono { font-family: var(--wf-font-mono); }
|
|
1321
|
-
.wf-text-error { color: var(--wf-color-error-text); }
|
|
1322
|
-
|
|
1323
|
-
/* ── 填充上的文字色(实心品牌/警告底——对比度保障) ── */
|
|
1324
|
-
.wf-text-on-brand { color: var(--wf-color-on-brand); }
|
|
1325
|
-
.wf-text-on-warning { color: var(--wf-color-on-warning); }
|
|
1326
|
-
|
|
1327
|
-
/* ── 字重(裸值词) ── */
|
|
1328
|
-
.wf-medium { font-weight: var(--wf-font-weight-medium); }
|
|
1329
|
-
.wf-semibold { font-weight: var(--wf-font-weight-semibold); }
|
|
1330
|
-
.wf-bold { font-weight: var(--wf-font-weight-bold); }
|
|
1331
|
-
|
|
1332
|
-
/* ── 字距(排版术语 tracking = letter-spacing) ── */
|
|
1333
|
-
.wf-tracking-wide { letter-spacing: var(--wf-letter-spacing-wide); }
|
|
1334
|
-
|
|
1335
|
-
/* ── 文本变换(裸值词) ── */
|
|
1336
|
-
.wf-uppercase { text-transform: uppercase; }
|
|
1337
|
-
|
|
1338
|
-
/* ── 换行/折行 ── */
|
|
1339
|
-
.wf-pre-wrap {
|
|
1340
|
-
white-space: pre-wrap;
|
|
1341
|
-
word-break: break-word;
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
.wf-break-word {
|
|
1345
|
-
overflow-wrap: break-word;
|
|
1346
|
-
word-break: break-word;
|
|
1347
|
-
}
|
|
1348
|
-
|
|
1349
|
-
.wf-text-nowrap {
|
|
1350
|
-
white-space: nowrap;
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
/* ── 截断 ── */
|
|
1354
|
-
.wf-truncate {
|
|
1355
|
-
overflow: hidden;
|
|
1356
|
-
text-overflow: ellipsis;
|
|
1357
|
-
white-space: nowrap;
|
|
1358
|
-
}
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
|
-
@layer utilities {
|
|
1362
|
-
/* 间距/尺寸工具类 — 全部引用 --wf-* Token,无硬编码
|
|
1363
|
-
*
|
|
1364
|
-
* 命名规则(design/layout-naming.md):属性根全名 + 物理方向全词 + 标尺值
|
|
1365
|
-
* wf-padding[-{x,y,top,bottom}]-<刻度> padding(刻度 ← --wf-space-*)
|
|
1366
|
-
* wf-margin[-{x,y,top,bottom,left}]-<刻度> margin(刻度 ← --wf-space-*)
|
|
1367
|
-
* wf-gap-<刻度> 直接设 gap 属性
|
|
1368
|
-
* 刻度 = none|xs|sm|md|lg|xl(none = 零/取消的唯一形态)
|
|
1369
|
-
*
|
|
1370
|
-
* 类面随消费证据生长(缺口审计机制化——layout-inventory.test.ts)。
|
|
1371
|
-
*/
|
|
1372
|
-
|
|
1373
|
-
/* ── padding ── */
|
|
1374
|
-
.wf-padding-xs { padding: var(--wf-space-xs); }
|
|
1375
|
-
.wf-padding-sm { padding: var(--wf-space-sm); }
|
|
1376
|
-
.wf-padding-md { padding: var(--wf-space-md); }
|
|
1377
|
-
.wf-padding-lg { padding: var(--wf-space-lg); }
|
|
1378
|
-
.wf-padding-xl { padding: var(--wf-space-xl); }
|
|
1379
|
-
|
|
1380
|
-
/* ── padding: 轴 ── */
|
|
1381
|
-
.wf-padding-x-xs { padding-left: var(--wf-space-xs); padding-right: var(--wf-space-xs); }
|
|
1382
|
-
.wf-padding-x-sm { padding-left: var(--wf-space-sm); padding-right: var(--wf-space-sm); }
|
|
1383
|
-
.wf-padding-x-md { padding-left: var(--wf-space-md); padding-right: var(--wf-space-md); }
|
|
1384
|
-
|
|
1385
|
-
.wf-padding-y-xs { padding-top: var(--wf-space-xs); padding-bottom: var(--wf-space-xs); }
|
|
1386
|
-
.wf-padding-y-sm { padding-top: var(--wf-space-sm); padding-bottom: var(--wf-space-sm); }
|
|
1387
|
-
.wf-padding-y-md { padding-top: var(--wf-space-md); padding-bottom: var(--wf-space-md); }
|
|
1388
|
-
.wf-padding-y-lg { padding-top: var(--wf-space-lg); padding-bottom: var(--wf-space-lg); }
|
|
1389
|
-
|
|
1390
|
-
/* ── padding: 单侧 ── */
|
|
1391
|
-
.wf-padding-top-sm { padding-top: var(--wf-space-sm); }
|
|
1392
|
-
.wf-padding-left-sm { padding-left: var(--wf-space-sm); }
|
|
1393
|
-
.wf-padding-bottom-xs { padding-bottom: var(--wf-space-xs); }
|
|
1394
|
-
.wf-padding-bottom-sm { padding-bottom: var(--wf-space-sm); }
|
|
1395
|
-
.wf-padding-bottom-md { padding-bottom: var(--wf-space-md); }
|
|
1396
|
-
|
|
1397
|
-
/* ── margin:重置(零值唯一形态 none) ── */
|
|
1398
|
-
.wf-margin-none { margin: 0; }
|
|
1399
|
-
|
|
1400
|
-
/* ── margin: top / bottom ── */
|
|
1401
|
-
.wf-margin-top-none { margin-top: 0; }
|
|
1402
|
-
.wf-margin-top-xs { margin-top: var(--wf-space-xs); }
|
|
1403
|
-
.wf-margin-top-sm { margin-top: var(--wf-space-sm); }
|
|
1404
|
-
.wf-margin-top-md { margin-top: var(--wf-space-md); }
|
|
1405
|
-
|
|
1406
|
-
.wf-margin-bottom-xs { margin-bottom: var(--wf-space-xs); }
|
|
1407
|
-
.wf-margin-bottom-sm { margin-bottom: var(--wf-space-sm); }
|
|
1408
|
-
.wf-margin-bottom-md { margin-bottom: var(--wf-space-md); }
|
|
1409
|
-
.wf-margin-bottom-lg { margin-bottom: var(--wf-space-lg); }
|
|
1410
|
-
|
|
1411
|
-
/* ── margin: left / x 轴 ── */
|
|
1412
|
-
.wf-margin-left-xs { margin-left: var(--wf-space-xs); }
|
|
1413
|
-
.wf-margin-left-sm { margin-left: var(--wf-space-sm); }
|
|
1414
|
-
.wf-margin-x-auto { margin-left: auto; margin-right: auto; }
|
|
1415
|
-
|
|
1416
|
-
/* ── margin: y 轴 ── */
|
|
1417
|
-
.wf-margin-y-xs { margin-top: var(--wf-space-xs); margin-bottom: var(--wf-space-xs); }
|
|
1418
|
-
|
|
1419
|
-
/* ── gap:直接设置 gap 属性(不设 --wf-gap 变量——变量会继承污染子孙:
|
|
1420
|
-
壳 root wf-gap-none 曾让 KPI grid 的 gap: var(--wf-gap) = 0 卡无间距) ── */
|
|
1421
|
-
.wf-gap-none { gap: 0; }
|
|
1422
|
-
.wf-gap-xs { gap: var(--wf-gap-xs); }
|
|
1423
|
-
.wf-gap-sm { gap: var(--wf-gap-sm); }
|
|
1424
|
-
.wf-gap-md { gap: var(--wf-gap-md); }
|
|
1425
|
-
.wf-gap-lg { gap: var(--wf-gap-lg); }
|
|
1426
|
-
.wf-gap-xl { gap: var(--wf-gap-xl); }
|
|
1427
|
-
|
|
1428
|
-
/* ── 尺寸 ── */
|
|
1429
|
-
.wf-width-full { width: 100%; }
|
|
1430
|
-
.wf-width-sm { width: var(--wf-w-sm, 480px); }
|
|
1431
|
-
.wf-height-full { height: 100%; }
|
|
1432
|
-
}
|
|
1433
|
-
|
|
1434
|
-
@layer utilities {
|
|
1435
|
-
/* block — 块级显示 */
|
|
1436
|
-
.wf-block {
|
|
1437
|
-
display: block;
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
@layer utilities {
|
|
1442
|
-
/* flex — 弹性盒 display 工具(补全 display 族:block/hidden/flex)
|
|
1443
|
-
* 核心场景:响应式显隐的 flex 容器——`wf-hidden wf-flex@lg`(窄隐宽显且保持 flex 布局)。
|
|
1444
|
-
* 不可用 wf-block@lg 替代:block 会覆盖 wf-stack 的 display:flex,
|
|
1445
|
-
* 致 flex-direction/gap 全部静默失效(layouts-demo 侧栏 mt-auto 实测踩坑)。
|
|
1446
|
-
* 注意:@ 选择器必须转义(\.wf-flex\@lg——未转义 @ 是非法选择器,整条规则被丢弃) */
|
|
1447
|
-
.wf-flex {
|
|
1448
|
-
display: flex;
|
|
1449
|
-
}
|
|
1450
|
-
@media (min-width: 640px) { .wf-flex\@sm { display: flex; } }
|
|
1451
|
-
@media (min-width: 1024px) { .wf-flex\@lg { display: flex; } }
|
|
1452
|
-
}
|
|
1453
|
-
|
|
1454
|
-
@layer utilities {
|
|
1455
|
-
/* hidden — 隐藏元素。两种响应式组合:
|
|
1456
|
-
* `wf-hidden wf-flex@lg`(窄隐宽显——基础类无 !important,被 media 内 wf-flex@lg 覆盖)
|
|
1457
|
-
* `wf-flex wf-hidden@lg`(宽隐窄显——media 变体 !important,胜组件自身 display)
|
|
1458
|
-
* !important 原因(CHAT-UX 波次 2 L4):@layer 顺序下 utilities 永远输给 components
|
|
1459
|
-
* (@layer tokens,base,layout,utilities,components 顶层声明定死)——.wf-btn 的
|
|
1460
|
-
* display:inline-flex 无条件压过 hidden 变体——面板按钮桌面隐藏失效实证;
|
|
1461
|
-
* 源顺序洗牌无法修复(层叠顺序优先于源顺序)——!important 是唯一出路 */
|
|
1462
|
-
.wf-hidden {
|
|
1463
|
-
display: none;
|
|
1464
|
-
}
|
|
1465
|
-
@media (min-width: 1024px) { .wf-hidden\@lg { display: none !important; } }
|
|
1466
|
-
|
|
1467
|
-
/* dim — 视觉淡化(运行中/历史态/次要操作) */
|
|
1468
|
-
.wf-dim {
|
|
1469
|
-
opacity: 0.7;
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
/* cursor — 交互指针(裸值词) */
|
|
1473
|
-
.wf-pointer { cursor: pointer; }
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
@layer layout {
|
|
1477
|
-
/* popup — 浮层基类(usePopup.portal 自动附加;Modal/Drawer 等手动浮层可选用)
|
|
1478
|
-
*
|
|
1479
|
-
* 宽度视口 clamp:任何浮层默认不横向溢出(375px 屏也能完整操作)。
|
|
1480
|
-
* usePopup 已内联 maxWidth;本类兜底组件手动引用场景(audit 规则的目标选择器)。
|
|
1481
|
-
*/
|
|
1482
|
-
.wf-popup {
|
|
1483
|
-
max-width: min(var(--wf-popup-max, 480px), calc(100vw - 32px));
|
|
1484
|
-
box-sizing: border-box;
|
|
1485
|
-
}
|
|
1486
|
-
|
|
1487
|
-
/* usePopup mask 模式遮罩:全屏 fixed,z-index 低于面板(overlay=80 < popover=120),
|
|
1488
|
-
* 模态语义阻断页面交互;点击遮罩关闭(maskClosable 门控在组件层) */
|
|
1489
|
-
.wf-popup-mask {
|
|
1490
|
-
position: fixed;
|
|
1491
|
-
inset: 0;
|
|
1492
|
-
z-index: var(--wf-z-overlay);
|
|
1493
|
-
background: var(--wf-overlay);
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1
|
+
@layer tokens,base,layout,components,utilities;:root{--wf-brand-seed: #4f6ef7;--wf-brand-500: var(--wf-brand-seed);--wf-brand-600: color-mix(in srgb, var(--wf-brand-seed) 85%, #000);--wf-brand-700: color-mix(in srgb, var(--wf-brand-seed) 70%, #000);--wf-brand-50: color-mix(in srgb, var(--wf-brand-seed) 12%, #fff);--wf-green-500: #22c55e;--wf-green-50: #f0fdf4;--wf-green-700: #15803d;--wf-amber-500: #f59e0b;--wf-amber-50: #fffbeb;--wf-amber-700: #b45309;--wf-red-500: #ef4444;--wf-red-50: #fef2f2;--wf-red-700: #b91c1c;--wf-sky-500: #1677ff;--wf-sky-50: #e6f4ff;--wf-sky-700: #0369a1;--wf-slate-900: #0f172a;--wf-slate-500: #64748b;--wf-slate-400: #94a3b8;--wf-slate-300: #cbd5e1;--wf-slate-200: #e2e8f0;--wf-slate-100: #f1f5f9;--wf-slate-50: #f8fafc;--wf-white: #ffffff;--wf-dark-brand-seed: #6b8aff;--wf-dark-brand-500: var(--wf-dark-brand-seed);--wf-dark-brand-600: color-mix(in srgb, var(--wf-dark-brand-seed) 78%, #fff);--wf-dark-brand-50: color-mix(in srgb, var(--wf-dark-brand-seed) 12%, #0f172a);--wf-dark-green-500: #4ade80;--wf-dark-green-50: #14532d;--wf-dark-amber-500: #fbbf24;--wf-dark-amber-50: #451a03;--wf-dark-red-500: #f87171;--wf-dark-red-50: #451a1a;--wf-dark-sky-500: #60a5fa;--wf-dark-sky-50: #172554;--wf-dark-slate-900: #f1f5f9;--wf-dark-slate-500: #94a3b8;--wf-dark-slate-400: #64748b;--wf-dark-slate-300: #475569;--wf-dark-slate-200: #334155;--wf-dark-slate-100: #1e293b;--wf-dark-bg: #0f172a;--wf-dark-overlay: rgba(0, 0, 0, .6);--wf-dark-fill: var(--wf-dark-slate-200);--wf-dark-bg-hover: var(--wf-dark-state-hover);--wf-dark-state-hover: rgba(255, 255, 255, .06);--wf-dark-state-pressed: rgba(255, 255, 255, .1);--wf-dark-surface-shadow: var(--wf-dark-shadow);--wf-dark-shadow-sm: 0 1px 2px rgba(0, 0, 0, .2);--wf-dark-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, .3);--wf-dark-shadow: 0 1px 3px rgba(0, 0, 0, .3);--wf-dark-shadow-md: 0 4px 12px rgba(0, 0, 0, .4);--wf-dark-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .4)}:root{--wf-space-xs: 4px;--wf-space-sm: 8px;--wf-space: 12px;--wf-space-md: 16px;--wf-space-lg: 24px;--wf-space-xl: 32px;--wf-space-2xl: 40px;--wf-gap-xs: var(--wf-space-xs);--wf-gap-sm: var(--wf-space-sm);--wf-gap-md: var(--wf-space);--wf-gap-lg: var(--wf-space-md);--wf-gap-xl: var(--wf-space-lg);--wf-gap-2xl: var(--wf-space-xl);--wf-radius-xs: 2px;--wf-radius-sm: 4px;--wf-radius: 6px;--wf-radius-md: 8px;--wf-radius-lg: 12px;--wf-radius-xl: 20px;--wf-surface-radius: var(--wf-radius-md);--wf-surface-shadow: var(--wf-shadow);--wf-shadow-sm: 0 1px 2px rgba(0,0,0,.05);--wf-shadow-inset: inset 0 1px 2px rgba(0,0,0,.04);--wf-shadow: 0 1px 3px rgba(0,0,0,.08);--wf-shadow-md: 0 4px 12px rgba(0,0,0,.1);--wf-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1);--wf-z-sticky: 40;--wf-z-overlay: 80;--wf-z-modal: 100;--wf-z-tour: 2000;--wf-tour-min-width: 240px;--wf-kanban-col-min-width: 200px;--wf-layout-sider-width: 240px;--wf-layout-sider-collapsed-width: 64px;--wf-layout-header-height: 56px;--wf-kanban-col-max-width: 300px;--wf-treeselect-min-width: 200px;--wf-navmenu-min-width: 160px;--wf-select-menu-min-width: 200px;--wf-treeselect-max-width: 320px;--wf-treeselect-dropdown-max-height: 260px;--wf-z-popover: 120;--wf-z-toast: 140;--wf-z-tooltip: 160;--wf-z-dropdown: var(--wf-z-popover);--wf-pop-z: var(--wf-z-popover);--wf-cover-z: var(--wf-z-modal);--wf-color-primary: var(--wf-brand-500);--wf-color-primary-hover: var(--wf-brand-600);--wf-color-primary-bg: var(--wf-brand-50);--wf-color-success: var(--wf-green-500);--wf-color-success-bg: var(--wf-green-50);--wf-color-warning: var(--wf-amber-500);--wf-color-warning-bg: var(--wf-amber-50);--wf-color-error: var(--wf-red-500);--wf-color-error-bg: var(--wf-red-50);--wf-color-text: var(--wf-slate-900);--wf-color-text-secondary: var(--wf-slate-500);--wf-color-text-tertiary: var(--wf-slate-400);--wf-color-text-disabled: var(--wf-slate-300);--wf-color-bg: var(--wf-white);--wf-color-bg-secondary: var(--wf-slate-50);--wf-color-bg-tertiary: var(--wf-slate-100);--wf-color-border: var(--wf-slate-200);--wf-color-border-light: var(--wf-slate-100);--wf-color-border-dark: var(--wf-slate-300);--wf-surface-bg: var(--wf-color-bg);--wf-color-bg-elevated: var(--wf-color-bg);--wf-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;--wf-font-mono: "SF Mono", "Fira Code", "JetBrains Mono", "PingFang SC", "Microsoft YaHei", monospace;--wf-font-size-xs: 12px;--wf-font-size-sm: 13px;--wf-font-size-base: 14px;--wf-font-size-lg: 15px;--wf-font-size-xl: 16px;--wf-font-size-2xl: 21px;--wf-font-size-3xl: 24px;--wf-font-size-4xl: 30px;--wf-font-size-5xl: 36px;--wf-font-size-display: 30px;--wf-heading-case: none;--wf-heading-tracking: 0;--wf-font-weight-normal: 400;--wf-font-weight-medium: 500;--wf-font-weight-semibold: 600;--wf-font-weight-bold: 700;--wf-line-height-tight: 1.25;--wf-line-height: 1.5;--wf-line-height-relaxed: 1.75;--wf-border-width: 1px;--wf-focus-ring: 0 0 0 2px var(--wf-color-primary-bg), 0 0 0 1px var(--wf-color-primary);--wf-transition-duration: var(--wf-dur-fast);--wf-transition-timing: var(--wf-ease-out);--wf-transition: var(--wf-transition-duration) var(--wf-transition-timing);--wf-dur-fast: .12s;--wf-dur-base: .2s;--wf-dur-slow: .3s;--wf-ease-out: cubic-bezier(.16, 1, .3, 1);--wf-ease-in: cubic-bezier(.4, 0, 1, 1);--wf-ease-in-out: cubic-bezier(.4, 0, .2, 1);--wf-ease-snap: cubic-bezier(.34, 1.56, .64, 1);--wf-ease-standard: ease;--wf-dur-md: var(--wf-dur-base);--wf-motion-sm: 4px;--wf-motion-md: 8px;--wf-dur-spin: .6s;--wf-dur-pulse: 1.2s;--wf-dur-blink: 1.1s;--wf-dur-progress: 1.4s;--wf-color-info: var(--wf-sky-500);--wf-color-info-bg: var(--wf-sky-50);--wf-color-primary-text: var(--wf-brand-700);--wf-color-success-text: var(--wf-green-700);--wf-color-warning-text: var(--wf-amber-700);--wf-color-error-text: var(--wf-red-700);--wf-color-info-text: var(--wf-sky-700);--wf-color-fill: var(--wf-slate-100);--wf-color-bg-subtle: var(--wf-color-fill);--wf-state-hover: rgba(0, 0, 0, .04);--wf-state-pressed: rgba(0, 0, 0, .08);--wf-color-bg-hover: var(--wf-state-hover);--wf-color-on-brand: #fff;--wf-color-on-warning: #451a03;--wf-overlay: rgba(0, 0, 0, .4);--wf-overlay-blur: 4px;--wf-accent-color: var(--wf-color-primary);--wf-caret-color: var(--wf-color-primary);--wf-control-pad-y: 10px;--wf-control-height: 36px;--wf-field-height: var(--wf-control-height);--wf-field-radius: var(--wf-radius);--wf-bp-sm: 640px;--wf-bp-md: 768px;--wf-bp-lg: 1024px;--wf-bp-xl: 1280px;--wf-sidebar-width: 240px;--wf-opacity-disabled: .5;--wf-letter-spacing-wide: .5px;--wf-heading-display-tracking: -.5px;--wf-nums: "tabular-nums"}@supports not (color: color-mix(in srgb,red 50%,blue)){:root{--wf-brand-600: #3b5ae0;--wf-brand-700: #4338ca;--wf-brand-50: #eef1ff;--wf-dark-brand-600: #8ba3ff;--wf-dark-brand-50: #1e293b}}:root[data-theme=dark]{color-scheme:dark;--wf-color-primary: var(--wf-dark-brand-500);--wf-color-primary-hover: var(--wf-dark-brand-600);--wf-color-primary-bg: var(--wf-dark-brand-50);--wf-color-success: var(--wf-dark-green-500);--wf-color-success-bg: var(--wf-dark-green-50);--wf-color-warning: var(--wf-dark-amber-500);--wf-color-warning-bg: var(--wf-dark-amber-50);--wf-color-error: var(--wf-dark-red-500);--wf-color-error-bg: var(--wf-dark-red-50);--wf-color-info: var(--wf-dark-sky-500);--wf-color-info-bg: var(--wf-dark-sky-50);--wf-color-text: var(--wf-dark-slate-900);--wf-color-text-secondary: var(--wf-dark-slate-500);--wf-color-text-tertiary: var(--wf-dark-slate-400);--wf-color-text-disabled: var(--wf-dark-slate-300);--wf-color-bg: var(--wf-dark-bg);--wf-color-bg-secondary: var(--wf-dark-slate-100);--wf-color-bg-tertiary: var(--wf-dark-slate-200);--wf-color-fill: var(--wf-dark-fill);--wf-color-bg-subtle: var(--wf-dark-fill);--wf-color-bg-hover: var(--wf-dark-bg-hover);--wf-state-hover: var(--wf-dark-state-hover);--wf-state-pressed: var(--wf-dark-state-pressed);--wf-color-bg-elevated: var(--wf-dark-slate-100);--wf-color-border: var(--wf-dark-slate-200);--wf-color-border-light: var(--wf-dark-slate-100);--wf-color-border-dark: var(--wf-dark-slate-300);--wf-surface-bg: var(--wf-color-bg);--wf-surface-shadow: var(--wf-dark-surface-shadow);--wf-shadow-sm: var(--wf-dark-shadow-sm);--wf-shadow: var(--wf-dark-shadow);--wf-shadow-md: var(--wf-dark-shadow-md);--wf-shadow-lg: var(--wf-dark-shadow-lg);--wf-shadow-inset: var(--wf-dark-shadow-inset);--wf-color-primary-text: var(--wf-dark-brand-500);--wf-color-success-text: var(--wf-dark-green-500);--wf-color-warning-text: var(--wf-dark-amber-500);--wf-color-error-text: var(--wf-dark-red-500);--wf-color-info-text: var(--wf-dark-sky-500);--wf-overlay: var(--wf-dark-overlay)}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--wf-color-primary: var(--wf-dark-brand-500);--wf-color-primary-hover: var(--wf-dark-brand-600);--wf-color-primary-bg: var(--wf-dark-brand-50);--wf-color-success: var(--wf-dark-green-500);--wf-color-success-bg: var(--wf-dark-green-50);--wf-color-warning: var(--wf-dark-amber-500);--wf-color-warning-bg: var(--wf-dark-amber-50);--wf-color-error: var(--wf-dark-red-500);--wf-color-error-bg: var(--wf-dark-red-50);--wf-color-info: var(--wf-dark-sky-500);--wf-color-info-bg: var(--wf-dark-sky-50);--wf-color-text: var(--wf-dark-slate-900);--wf-color-text-secondary: var(--wf-dark-slate-500);--wf-color-text-tertiary: var(--wf-dark-slate-400);--wf-color-text-disabled: var(--wf-dark-slate-300);--wf-color-bg: var(--wf-dark-bg);--wf-color-bg-secondary: var(--wf-dark-slate-100);--wf-color-bg-tertiary: var(--wf-dark-slate-200);--wf-color-fill: var(--wf-dark-fill);--wf-color-bg-subtle: var(--wf-dark-fill);--wf-color-bg-hover: var(--wf-dark-bg-hover);--wf-state-hover: var(--wf-dark-state-hover);--wf-state-pressed: var(--wf-dark-state-pressed);--wf-color-bg-elevated: var(--wf-dark-slate-100);--wf-color-border: var(--wf-dark-slate-200);--wf-color-border-light: var(--wf-dark-slate-100);--wf-color-border-dark: var(--wf-dark-slate-300);--wf-surface-bg: var(--wf-color-bg);--wf-surface-shadow: var(--wf-dark-surface-shadow);--wf-shadow-sm: var(--wf-dark-shadow-sm);--wf-shadow: var(--wf-dark-shadow);--wf-shadow-md: var(--wf-dark-shadow-md);--wf-shadow-lg: var(--wf-dark-shadow-lg);--wf-shadow-inset: var(--wf-dark-shadow-inset);--wf-color-primary-text: var(--wf-dark-brand-500);--wf-color-success-text: var(--wf-dark-green-500);--wf-color-warning-text: var(--wf-dark-amber-500);--wf-color-error-text: var(--wf-dark-red-500);--wf-color-info-text: var(--wf-dark-sky-500);--wf-overlay: var(--wf-dark-overlay)}}:root[data-preset=minimal]{--wf-brand-seed: #64748b;--wf-dark-brand-seed: #94a3b8}:root[data-preset=compact]{--wf-control-height: 32px;--wf-control-pad-y: 6px;--wf-space-xs: 3px;--wf-space-sm: 6px;--wf-space: 9px;--wf-space-md: 12px;--wf-space-lg: 18px;--wf-space-xl: 24px;--wf-space-2xl: 30px;--wf-font-size-sm: 12px;--wf-font-size-base: 13px}:root[data-preset=rounded]{--wf-radius-sm: 8px;--wf-radius: 12px;--wf-radius-md: 16px;--wf-radius-lg: 20px;--wf-radius-xl: 28px;--wf-surface-radius: var(--wf-radius-md);--wf-btn-radius: 999px;--wf-field-radius: var(--wf-radius-md)}@property --wf-gap{syntax: "*"; inherits: false;}@property --wf-align{syntax: "*"; inherits: false;}@property --wf-justify{syntax: "*"; inherits: false;}@property --wf-cols{syntax: "*"; inherits: false;}@property --wf-max{syntax: "*"; inherits: false;}@property --wf-w-sm{syntax: "*"; inherits: false;}@property --wf-z{syntax: "*"; inherits: false;}@property --wf-offset{syntax: "*"; inherits: false;}@property --wf-popup-max{syntax: "*"; inherits: false;}@layer base{*,*:before,*:after{box-sizing:border-box}::selection{background:var(--wf-color-primary-bg);color:var(--wf-color-primary-text)}*{scrollbar-width:thin;scrollbar-color:var(--wf-color-border-dark) transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--wf-color-border-dark);border-radius:var(--wf-radius-sm);border:2px solid transparent;background-clip:padding-box}::-webkit-scrollbar-thumb:hover{background:var(--wf-color-text-secondary);background-clip:padding-box;border:2px solid transparent}:root{color-scheme:light}body{margin:0;background:var(--wf-color-bg);color:var(--wf-color-text);font-family:var(--wf-font-sans);font-size:var(--wf-font-size-base);line-height:var(--wf-line-height);-webkit-font-smoothing:antialiased}a{color:var(--wf-color-primary-text);text-decoration:none}a:hover{color:var(--wf-color-primary-hover);text-decoration:underline}input,textarea,select,button{font-family:inherit;font-size:inherit;line-height:inherit}input,textarea,select{accent-color:var(--wf-accent-color);caret-color:var(--wf-caret-color);background:var(--wf-color-bg);color:var(--wf-color-text);border:var(--wf-border-width) solid var(--wf-color-border);border-radius:var(--wf-radius);padding:var(--wf-control-pad-y) var(--wf-space)}input:focus,textarea:focus,select:focus{outline:none;box-shadow:var(--wf-focus-ring);border-color:var(--wf-color-primary)}input:disabled,textarea:disabled,select:disabled,button:disabled{opacity:var(--wf-opacity-disabled);cursor:not-allowed}button{accent-color:var(--wf-accent-color);background:var(--wf-color-bg);color:var(--wf-color-text);border:var(--wf-border-width) solid var(--wf-color-border);border-radius:var(--wf-radius);padding:var(--wf-control-pad-y) var(--wf-space-md);min-height:var(--wf-control-height);cursor:pointer;transition:border-color var(--wf-dur-fast) var(--wf-ease-out),color var(--wf-dur-fast) var(--wf-ease-out),box-shadow var(--wf-dur-fast) var(--wf-ease-out),background-color var(--wf-dur-fast) var(--wf-ease-out),filter var(--wf-dur-fast) var(--wf-ease-out)}button:hover{border-color:var(--wf-color-primary);color:var(--wf-color-primary-text)}button:active:not(:disabled),[role=button]:active{filter:brightness(.95)}button:focus-visible,[tabindex]:focus-visible{outline:none;box-shadow:var(--wf-focus-ring)}[role=button]{cursor:pointer;transition:background-color var(--wf-dur-fast) var(--wf-ease-out),border-color var(--wf-dur-fast) var(--wf-ease-out),box-shadow var(--wf-dur-fast) var(--wf-ease-out),color var(--wf-dur-fast) var(--wf-ease-out),filter var(--wf-dur-fast) var(--wf-ease-out)}@media(pointer:coarse){button,[role=button],input,textarea,select,.wf-card--clickable,.wf-table-th--sortable,.wf-accordion-summary,.wf-tag-close,.wf-checkbox,.wf-switch,.wf-radio,.wf-datepicker-cell{min-height:44px;min-width:44px}}h1,h2,h3,h4,h5,h6{font-weight:var(--wf-font-weight-semibold);line-height:var(--wf-line-height-tight);color:var(--wf-color-text)}p{line-height:var(--wf-line-height-relaxed)}small{font-size:var(--wf-font-size-sm);color:var(--wf-color-text-tertiary)}label{font-size:var(--wf-font-size-base);font-weight:var(--wf-font-weight-medium);color:var(--wf-color-text)}table{width:100%;border-collapse:collapse}th{text-align:left;font-weight:var(--wf-font-weight-medium);font-size:var(--wf-font-size-xs);color:var(--wf-color-text-tertiary);text-transform:var(--wf-heading-case);letter-spacing:var(--wf-heading-tracking);padding:var(--wf-space) var(--wf-space-sm);border-bottom:var(--wf-border-width) solid var(--wf-color-border);background:var(--wf-color-bg-secondary)}td{padding:var(--wf-space) var(--wf-space-sm);border-bottom:var(--wf-border-width) solid var(--wf-color-border);color:var(--wf-color-text);font-size:var(--wf-font-size-base)}hr{border:none;border-top:var(--wf-border-width) solid var(--wf-color-border);margin:var(--wf-space-md) 0}pre,code{font-family:var(--wf-font-mono);font-size:var(--wf-font-size-sm)}pre{background:var(--wf-color-bg-secondary);border:var(--wf-border-width) solid var(--wf-color-border);border-radius:var(--wf-radius);padding:var(--wf-space) var(--wf-space-md);overflow-x:auto;white-space:pre}code{background:var(--wf-color-bg-secondary);padding:2px 6px;border-radius:var(--wf-radius-sm)}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}body.wf-dragging{user-select:none;-webkit-user-select:none}@keyframes wf-stream-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.wf-stream-in{animation:wf-stream-in var(--wf-dur-base) var(--wf-ease-out) both}@media(prefers-reduced-motion:reduce){.wf-stream-in{animation-duration:.01ms}}.wf-hero-cursor{animation:wf-hero-blink 1s step-end infinite;color:var(--wf-color-primary)}@keyframes wf-hero-blink{0%,to{opacity:1}50%{opacity:0}}}@layer layout{.wf-stack{display:flex;flex-direction:column}:where(.wf-stack){gap:var(--wf-gap, var(--wf-gap-md));align-items:var(--wf-align, stretch)}}@layer layout{.wf-row{display:flex;flex-wrap:wrap}:where(.wf-row){gap:var(--wf-gap, var(--wf-gap-md));align-items:var(--wf-align, center)}.wf-row-reverse{display:flex;flex-direction:row-reverse;flex-wrap:wrap}:where(.wf-row-reverse){gap:var(--wf-gap, var(--wf-gap-md));align-items:var(--wf-align, center)}.wf-items-start{--wf-align: flex-start}.wf-items-center{--wf-align: center}.wf-items-end{--wf-align: flex-end}.wf-items-stretch{--wf-align: stretch}}@layer layout{.wf-split{display:flex;justify-content:space-between}:where(.wf-split){align-items:var(--wf-align, center);gap:var(--wf-gap, var(--wf-gap-md))}.wf-split>:last-child{flex-shrink:0}}@layer layout{.wf-center{display:flex;flex-direction:column;align-items:center;justify-content:center}}@layer layout{.wf-justify-between{display:flex;justify-content:space-between}:where(.wf-justify-between){align-items:var(--wf-align, center);gap:var(--wf-gap, var(--wf-gap-md))}.wf-justify-end{display:flex;justify-content:flex-end}:where(.wf-justify-end){align-items:var(--wf-align, center);gap:var(--wf-gap, var(--wf-gap-md))}.wf-justify-center{display:flex;justify-content:center}:where(.wf-justify-center){align-items:var(--wf-align, center);gap:var(--wf-gap, var(--wf-gap-md))}}@layer layout{.wf-fill{flex:1;min-width:0;min-height:0}.wf-fill-hover{border-radius:var(--wf-radius-sm);padding:2px 4px;margin:-2px -4px;transition:background .15s ease}.wf-fill-hover:hover{background:var(--wf-color-bg-secondary)}}@layer layout{.wf-grid{display:grid;grid-template-columns:var(--wf-cols, repeat(auto-fill, minmax(280px, 1fr)))}:where(.wf-grid){gap:var(--wf-gap, var(--wf-gap-lg))}}@layer layout{.wf-cluster{display:flex;flex-wrap:wrap}:where(.wf-cluster){gap:var(--wf-gap, var(--wf-gap-sm));justify-content:var(--wf-justify, center);align-items:var(--wf-align, center)}}@layer layout{.wf-cover{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:var(--wf-z, var(--wf-cover-z))}}@layer layout{.wf-relative{position:relative}.wf-absolute{position:absolute}}@layer layout{.wf-sticky{position:sticky;top:var(--wf-offset, 0)}}@layer layout{.wf-overflow-auto{overflow:auto}.wf-overflow-hidden{overflow:hidden}.wf-overflow-x{overflow-x:auto}}@layer layout{.wf-safe-bottom{padding-bottom:env(safe-area-inset-bottom)}.wf-safe-top{padding-top:env(safe-area-inset-top)}}@layer layout{.wf-layer{position:relative;z-index:var(--wf-z, 1)}}@layer layout{.wf-self-start{align-self:flex-start}.wf-self-center{align-self:center}.wf-self-end{align-self:flex-end}.wf-self-stretch{align-self:stretch}}@layer layout{.wf-nowrap{display:flex;flex-wrap:nowrap}:where(.wf-nowrap){gap:var(--wf-gap, var(--wf-gap-md))}}@layer layout{.wf-shrink{min-width:0;min-height:0}.wf-min-width-0{min-width:0}}@layer layout{.wf-container{width:100%;max-width:var(--wf-max, 1200px);margin:0 auto;padding:0 var(--wf-gap, var(--wf-gap-lg))}}@layer layout{.wf-app-shell{display:grid;grid-template-columns:var(--wf-sidebar-width, 240px) minmax(0,1fr);height:100vh;overflow:hidden}.wf-sidebar{display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto;background:var(--wf-color-bg-secondary);border-right:var(--wf-border-width) solid var(--wf-color-border)}.wf-sidebar-header{display:flex;align-items:center;gap:var(--wf-gap-sm);padding:var(--wf-space-md);border-bottom:var(--wf-border-width) solid var(--wf-color-border-light);flex-shrink:0}.wf-sidebar-body{flex:1;padding:var(--wf-space-sm);overflow-y:auto}.wf-sidebar-footer{padding:var(--wf-space-sm);border-top:var(--wf-border-width) solid var(--wf-color-border-light);flex-shrink:0}.wf-nav{display:flex;flex-direction:column;gap:2px}.wf-nav-group{font-size:var(--wf-font-size-xs);font-weight:var(--wf-font-weight-medium);color:var(--wf-color-text-tertiary);text-transform:var(--wf-heading-case);letter-spacing:var(--wf-heading-tracking);padding:var(--wf-space-md) var(--wf-space-sm) var(--wf-space-xs)}.wf-nav-item{display:flex;align-items:center;gap:var(--wf-gap-sm);padding:var(--wf-space-sm) var(--wf-space);border-radius:var(--wf-radius);color:var(--wf-color-text-secondary);font-size:var(--wf-font-size-base);text-decoration:none;cursor:pointer;border:none;background:none;width:100%;text-align:left;font-family:inherit;transition:background var(--wf-transition),color var(--wf-transition)}.wf-nav-item:hover{background:var(--wf-color-bg-tertiary);color:var(--wf-color-text);text-decoration:none}.wf-nav-item:focus-visible{outline:none;box-shadow:var(--wf-focus-ring)}.wf-nav-item--active{background:var(--wf-color-primary-bg);color:var(--wf-color-primary-text);font-weight:var(--wf-font-weight-medium)}.wf-nav-item--active:hover{background:var(--wf-color-primary-bg);color:var(--wf-color-primary-text)}.wf-nav--collapsed .wf-nav-item{justify-content:center;gap:0;padding:var(--wf-space-sm)}.wf-nav--collapsed .wf-nav-label{display:none}.wf-nav--collapsed .wf-nav-group{text-align:center;padding-left:0;padding-right:0;overflow:hidden;white-space:nowrap}.wf-main{padding:var(--wf-space-lg);min-width:0;min-height:0;overflow-y:auto;background:var(--wf-color-bg);--wf-main-max: none}.wf-main>*{max-width:var(--wf-main-max);margin-inline:auto}@media(pointer:coarse){.wf-nav-item{min-height:44px}}@media(max-width:767.98px){.wf-app-shell{grid-template-columns:1fr;height:auto;overflow:visible}.wf-sidebar{position:static;height:auto;border-right:none;border-bottom:var(--wf-border-width) solid var(--wf-color-border)}.wf-main{padding:var(--wf-space-md);overflow:visible}}}@layer utilities{.wf-surface{border-radius:var(--wf-surface-radius);box-shadow:var(--wf-surface-shadow);background:var(--wf-surface-bg)}.wf-surface--flat{box-shadow:none}.wf-bg-secondary{background:var(--wf-color-bg-secondary)}.wf-bg-tertiary{background:var(--wf-color-bg-tertiary)}.wf-bg-primary{background:var(--wf-color-primary-bg)}.wf-bg-warning{background:var(--wf-color-warning-bg)}.wf-bg-error{background:var(--wf-color-error-bg)}.wf-bg-none{background:transparent}.wf-pill{border-radius:999px}.wf-radius-sm{border-radius:var(--wf-radius-sm)}.wf-radius{border-radius:var(--wf-radius)}.wf-radius-md{border-radius:var(--wf-radius-md)}.wf-radius-lg{border-radius:var(--wf-radius-lg)}.wf-shadow{box-shadow:var(--wf-shadow)}.wf-elevate{transition:box-shadow var(--wf-dur-fast) var(--wf-ease-out),transform var(--wf-dur-fast) var(--wf-ease-out)}.wf-elevate:hover{box-shadow:var(--wf-shadow-md);transform:translateY(-2px)}.wf-elevate:focus-visible{outline:none;box-shadow:var(--wf-shadow-md),var(--wf-focus-ring)}.wf-panel-in{animation:wf-panel-in var(--wf-dur-fast) var(--wf-ease-out);transform-origin:top center}@keyframes wf-panel-in{0%{opacity:0;transform:translateY(calc(var(--wf-motion-sm) * -1)) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}.wf-bubble{display:inline-block;max-width:70%;padding:var(--wf-space-sm) var(--wf-space-md);border-radius:var(--wf-radius-md);background:var(--wf-color-bg-secondary);color:var(--wf-color-text);font-size:var(--wf-font-size-base);line-height:var(--wf-line-height);white-space:pre-wrap;word-break:break-word}.wf-bubble--own{background:var(--wf-color-primary);color:var(--wf-color-on-brand);border-bottom-right-radius:var(--wf-radius-sm)}.wf-bubble--ai{background:var(--wf-color-primary-bg);border:var(--wf-border-width) solid var(--wf-color-border-light);border-bottom-left-radius:var(--wf-radius-sm)}.wf-rounded-sm{border-radius:var(--wf-radius-sm)}.wf-rounded-md{border-radius:var(--wf-radius-md)}.wf-card-outline{border:var(--wf-border-width) solid var(--wf-color-border)}}@layer utilities{.wf-border{border:var(--wf-border-width) solid var(--wf-color-border)}.wf-border-top{border-top:var(--wf-border-width) solid var(--wf-color-border)}.wf-border-bottom{border-bottom:var(--wf-border-width) solid var(--wf-color-border)}.wf-border-left{border-left:var(--wf-border-width) solid var(--wf-color-border)}.wf-border-right{border-right:var(--wf-border-width) solid var(--wf-color-border)}.wf-border-none{border:none}}@layer utilities{.wf-text-left{text-align:left}.wf-text-center{text-align:center}.wf-text-right{text-align:right}.wf-font-xs{font-size:var(--wf-font-size-xs)}.wf-font-sm{font-size:var(--wf-font-size-sm)}.wf-font-base{font-size:var(--wf-font-size-base)}.wf-font-lg{font-size:var(--wf-font-size-lg)}.wf-font-2xl{font-size:var(--wf-font-size-2xl)}.wf-font-3xl{font-size:var(--wf-font-size-3xl)}.wf-font-4xl{font-size:var(--wf-font-size-4xl)}.wf-nums{font-variant-numeric:var(--wf-nums)}.wf-text-secondary{color:var(--wf-color-text-secondary)}.wf-text-tertiary{color:var(--wf-color-text-tertiary)}.wf-text-danger{color:var(--wf-color-error-text)}.wf-text-primary{color:var(--wf-color-primary-text)}.wf-text-success{color:var(--wf-color-success-text)}.wf-text-warning{color:var(--wf-color-warning-text)}.wf-font-mono{font-family:var(--wf-font-mono)}.wf-text-error{color:var(--wf-color-error-text)}.wf-text-on-brand{color:var(--wf-color-on-brand)}.wf-text-on-warning{color:var(--wf-color-on-warning)}.wf-medium{font-weight:var(--wf-font-weight-medium)}.wf-semibold{font-weight:var(--wf-font-weight-semibold)}.wf-bold{font-weight:var(--wf-font-weight-bold)}.wf-tracking-wide{letter-spacing:var(--wf-letter-spacing-wide)}.wf-uppercase{text-transform:uppercase}.wf-pre-wrap{white-space:pre-wrap;word-break:break-word}.wf-break-word{overflow-wrap:break-word;word-break:break-word}.wf-text-nowrap{white-space:nowrap}.wf-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}@layer utilities{.wf-padding-none{padding:0}.wf-padding-xs{padding:var(--wf-space-xs)}.wf-padding-sm{padding:var(--wf-space-sm)}.wf-padding-md{padding:var(--wf-space-md)}.wf-padding-lg{padding:var(--wf-space-lg)}.wf-padding-xl{padding:var(--wf-space-xl)}.wf-padding-x-xs{padding-left:var(--wf-space-xs);padding-right:var(--wf-space-xs)}.wf-padding-x-sm{padding-left:var(--wf-space-sm);padding-right:var(--wf-space-sm)}.wf-padding-x-md{padding-left:var(--wf-space-md);padding-right:var(--wf-space-md)}.wf-padding-y-xs{padding-top:var(--wf-space-xs);padding-bottom:var(--wf-space-xs)}.wf-padding-y-sm{padding-top:var(--wf-space-sm);padding-bottom:var(--wf-space-sm)}.wf-padding-y-md{padding-top:var(--wf-space-md);padding-bottom:var(--wf-space-md)}.wf-padding-y-lg{padding-top:var(--wf-space-lg);padding-bottom:var(--wf-space-lg)}.wf-padding-top-sm{padding-top:var(--wf-space-sm)}.wf-padding-left-sm{padding-left:var(--wf-space-sm)}.wf-padding-bottom-xs{padding-bottom:var(--wf-space-xs)}.wf-padding-bottom-sm{padding-bottom:var(--wf-space-sm)}.wf-padding-bottom-md{padding-bottom:var(--wf-space-md)}.wf-margin-none{margin:0}.wf-margin-top-none{margin-top:0}.wf-margin-top-xs{margin-top:var(--wf-space-xs)}.wf-margin-top-sm{margin-top:var(--wf-space-sm)}.wf-margin-top-md{margin-top:var(--wf-space-md)}.wf-margin-bottom-xs{margin-bottom:var(--wf-space-xs)}.wf-margin-bottom-sm{margin-bottom:var(--wf-space-sm)}.wf-margin-bottom-md{margin-bottom:var(--wf-space-md)}.wf-margin-bottom-lg{margin-bottom:var(--wf-space-lg)}.wf-margin-left-xs{margin-left:var(--wf-space-xs)}.wf-margin-left-sm{margin-left:var(--wf-space-sm)}.wf-margin-x-auto{margin-left:auto;margin-right:auto}.wf-margin-y-xs{margin-top:var(--wf-space-xs);margin-bottom:var(--wf-space-xs)}.wf-gap-none{gap:0}.wf-gap-xs{gap:var(--wf-gap-xs)}.wf-gap-sm{gap:var(--wf-gap-sm)}.wf-gap-md{gap:var(--wf-gap-md)}.wf-gap-lg{gap:var(--wf-gap-lg)}.wf-gap-xl{gap:var(--wf-gap-xl)}.wf-width-full{width:100%}.wf-width-sm{width:var(--wf-w-sm, 480px)}.wf-height-full{height:100%}}@layer utilities{:where(.wf-block){display:block}}@layer utilities{:where(.wf-flex){display:flex}@media(min-width:640px){.wf-flex\@sm{display:flex}}@media(min-width:1024px){.wf-flex\@lg{display:flex}}}@layer utilities{:where(.wf-hidden){display:none}@media(min-width:1024px){.wf-hidden\@lg{display:none}}.wf-dim{opacity:.7}.wf-pointer{cursor:pointer}}@layer layout{.wf-popup{max-width:min(var(--wf-popup-max, 480px),calc(100vw - 32px));box-sizing:border-box}.wf-popup-mask{position:fixed;inset:0;z-index:var(--wf-z-overlay);background:var(--wf-overlay)}}
|