@wil-works/evoke-ui 0.1.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.
@@ -0,0 +1,3946 @@
1
+ /* ============================================
2
+ Evoke UI — 统一样式入口
3
+
4
+ import '@wil-works/evoke-ui/styles'
5
+ ============================================ */
6
+
7
+ /* 设计变量(Launch Blue #0D70FF,--ew-* 语义层 + --ew-* 设计层) */
8
+
9
+ /* ============================================
10
+ Evoke Web Design System — Clean Navy · Delightful
11
+
12
+ 设计语言源自对三个站点的实地调研与提炼:
13
+ - remixicon.com —— 藏青墨色 #1A2947 + 柔和蓝灰底 + 大搜索栏 + 致密图标网格 + 软阴影
14
+ - remixdesign.app —— 淡雾底 #F9FAFD + 奶油/淡蓝粉彩卡片 + 厚白描边贴纸风 + 胶囊标签
15
+ - launchosapp.com —— 特大号紧字距标题 + 暖色渐变 Hero + 黑色胶囊 CTA + 精选深色卡片
16
+
17
+ Token 双层架构(隔离铁律:全库仅使用 --ew-* 单一命名空间,
18
+ 由 scripts/check-token-rule.mjs 构建期强制检查):
19
+ - 语义层(颜色/文字/背景/边框/填充):消费方的主题 API 入口
20
+ - 设计层(动效/间距/字号/阴影/圆角):本库设计语言
21
+ ============================================ */
22
+
23
+ :root {
24
+ /* ══════ 主色:Launch Blue ══════ */
25
+ --ew-color-primary: #0D70FF;
26
+ --ew-color-primary-light-3: #4c91ff;
27
+ --ew-color-primary-light-5: #86b7ff;
28
+ --ew-color-primary-light-7: #bdd6ff;
29
+ --ew-color-primary-light-8: #d9e7ff;
30
+ --ew-color-primary-light-9: #ebf3ff;
31
+ --ew-color-primary-dark-2: #0a5acc;
32
+ --ew-color-primary-rgb: 13, 112, 255;
33
+
34
+ /* ══════ 墨色体系(remixicon 藏青)══════ */
35
+ --ew-color-ink: #1a2947;
36
+ --ew-color-ink-secondary: #5d667a;
37
+ --ew-color-ink-muted: #8b93a7;
38
+
39
+ /* ─── 文本语义 ─── */
40
+ --ew-text-primary: var(--ew-color-ink);
41
+ --ew-text-regular: var(--ew-color-ink-secondary);
42
+ --ew-text-secondary: var(--ew-color-ink-muted);
43
+ --ew-text-disabled: #c0c5d2;
44
+ --ew-text-placeholder: #a6adc0;
45
+ --ew-text-on-dark: #f5f7fc;
46
+
47
+ /* ─── 背景语义 ─── */
48
+ --ew-bg-page: #ffffff;
49
+ --ew-bg-soft: #f5f7fc; /* hero / 大区块淡蓝灰底(remixicon hero) */
50
+ --ew-bg-muted: #fafbfd; /* 页面淡雾底(remixdesign) */
51
+ --ew-bg-container: #ffffff;
52
+ --ew-bg-hover: #f5f7fc;
53
+ /* 首屏渐变(导航+hero 一体的淡蓝灰光带,向下融入纯白) */
54
+ --ew-gradient-hero: linear-gradient(180deg, #f2f5fb 0%, #f7f9fd 55%, #ffffff 100%);
55
+
56
+ /* ─── 粉彩卡片底色(remixdesign 作品卡)─── */
57
+ --ew-pastel-cream: #fff8eb;
58
+ --ew-pastel-blue: #e3efff;
59
+ --ew-pastel-mint: #e8f8ef;
60
+ --ew-pastel-pink: #fdeef8;
61
+ --ew-pastel-lime: #f4fbdf;
62
+
63
+ /* ─── 强调点缀(launchos 促销/徽章)─── */
64
+ --ew-color-accent-orange: #f97316;
65
+ --ew-color-accent-lime: #c8f169;
66
+ --ew-color-accent-lime-ink: #3d5205;
67
+
68
+ /* ══════ 边框(更轻:结构靠留白而非线)══════ */
69
+ --ew-border-color: #e8ebf2;
70
+ --ew-border-color-light: #f0f2f8;
71
+ --ew-border-color-dark: #d9dee8;
72
+ --ew-border-sticker: #ffffff; /* 贴纸卡厚白描边 */
73
+
74
+ /* ─── 填充层级 ─── */
75
+ --ew-fill-1: #f5f7fc;
76
+ --ew-fill-2: #f0f3f9;
77
+ --ew-fill-3: #e4e8f1;
78
+
79
+ /* ══════ 语义色 ══════ */
80
+
81
+ /* 成功 */
82
+ --ew-color-success: #16a34a;
83
+ --ew-color-success-light-3: #52ba78;
84
+ --ew-color-success-light-5: #8bd1a5;
85
+ --ew-color-success-light-7: #c0e7d1;
86
+ --ew-color-success-light-8: #d7f1e2;
87
+ --ew-color-success-light-9: #ebf8f1;
88
+ --ew-color-success-dark-2: #12823b;
89
+ --ew-color-success-rgb: 22, 163, 74;
90
+
91
+ /* 警告 */
92
+ --ew-color-warning: #f97316;
93
+ --ew-color-warning-light-3: #fb9550;
94
+ --ew-color-warning-light-5: #fdb68a;
95
+ --ew-color-warning-light-7: #fedac2;
96
+ --ew-color-warning-light-8: #fee7d5;
97
+ --ew-color-warning-light-9: #fff3ea;
98
+ --ew-color-warning-dark-2: #c75c12;
99
+ --ew-color-warning-rgb: 249, 115, 22;
100
+
101
+ /* 危险 */
102
+ --ew-color-danger: #e5484d;
103
+ --ew-color-danger-light-3: #ec767a;
104
+ --ew-color-danger-light-5: #f2a3a6;
105
+ --ew-color-danger-light-7: #f8ced0;
106
+ --ew-color-danger-light-8: #fbe0e1;
107
+ --ew-color-danger-light-9: #fef2f2;
108
+ --ew-color-danger-dark-2: #b73a3e;
109
+ --ew-color-danger-rgb: 229, 72, 77;
110
+
111
+ /* 信息 */
112
+ --ew-color-info: #5d667a;
113
+ --ew-color-info-light-3: #858da0;
114
+ --ew-color-info-light-5: #aeb4c2;
115
+ --ew-color-info-light-7: #d6d9e0;
116
+ --ew-color-info-light-8: #e6e8ed;
117
+ --ew-color-info-light-9: #f3f4f7;
118
+ --ew-color-info-dark-2: #4a5262;
119
+ --ew-color-info-rgb: 93, 102, 122;
120
+
121
+ /* 危险/错误别名 */
122
+ --ew-color-error: var(--ew-color-danger);
123
+ --ew-color-error-light-3: var(--ew-color-danger-light-3);
124
+ --ew-color-error-light-5: var(--ew-color-danger-light-5);
125
+ --ew-color-error-light-7: var(--ew-color-danger-light-7);
126
+ --ew-color-error-light-8: var(--ew-color-danger-light-8);
127
+ --ew-color-error-light-9: var(--ew-color-danger-light-9);
128
+
129
+ /* ══════ Evoke Web 设计令牌 ══════ */
130
+
131
+ /* ─── 动效曲线 ─── */
132
+ --ew-ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
133
+ --ew-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
134
+ --ew-ease-spring: cubic-bezier(0.3, 1.3, 0.3, 1); /* 弹性入场(remixicon 弹出微交互) */
135
+ --ew-ease-smooth: cubic-bezier(0.34, 0.69, 0.1, 1); /* 位移滑动(remixicon transform) */
136
+ --ew-ease-linear: linear;
137
+
138
+ /* ─── 动效时长 ─── */
139
+ --ew-duration-fast: 0.15s;
140
+ --ew-duration-base: 0.2s; /* remixicon 主过渡:0.2s ease-in-out */
141
+ --ew-duration-slow: 0.3s;
142
+ --ew-duration-slower: 0.5s;
143
+
144
+ /* ─── 间距系统(4px 网格)─── */
145
+ --ew-space-1: 4px;
146
+ --ew-space-2: 8px;
147
+ --ew-space-3: 12px;
148
+ --ew-space-4: 16px;
149
+ --ew-space-5: 20px;
150
+ --ew-space-6: 24px;
151
+ --ew-space-8: 32px;
152
+ --ew-space-10: 40px;
153
+ --ew-space-12: 48px;
154
+ --ew-space-16: 64px;
155
+ --ew-space-20: 80px;
156
+
157
+ /* ─── 字号层级 ─── */
158
+ --ew-font-size-xs: 12px;
159
+ --ew-font-size-sm: 13px;
160
+ --ew-font-size-base: 15px;
161
+ --ew-font-size-md: 16px;
162
+ --ew-font-size-lg: 18px;
163
+ --ew-font-size-xl: 22px;
164
+ --ew-font-size-2xl: 28px;
165
+ --ew-font-size-3xl: 36px;
166
+ --ew-font-size-4xl: 48px;
167
+ --ew-font-size-5xl: 60px;
168
+
169
+ /* ─── 行高 ─── */
170
+ --ew-line-height-tight: 1.2;
171
+ --ew-line-height-base: 1.6;
172
+ --ew-line-height-loose: 1.8;
173
+
174
+ /* ─── 字重 ─── */
175
+ --ew-font-weight-regular: 400;
176
+ --ew-font-weight-medium: 500;
177
+ --ew-font-weight-semibold: 600;
178
+ --ew-font-weight-bold: 700;
179
+
180
+ /* ─── 展示型标题(remixicon 的优雅核心:细字重大字,quiet 而有腔调)─── */
181
+ --ew-font-family: "Inter", -apple-system, BlinkMacSystemFont,
182
+ "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
183
+ --ew-display-weight: 400; /* 展示标题默认细字重(remixicon hero 实测 weight 400) */
184
+ --ew-display-weight-strong: 600; /* 强调型标题(launchos 语言,需冲击力时用) */
185
+ --ew-display-letter-spacing: -0.02em;
186
+ --ew-display-line-height: 1.15;
187
+
188
+ /* ─── 阴影层级(更轻更弥散:光是"托起"不是"投影")─── */
189
+ --ew-shadow-1: 0 1px 2px rgba(26, 41, 71, 0.04), 0 2px 8px rgba(26, 41, 71, 0.03);
190
+ --ew-shadow-2: 0 1px 3px rgba(26, 41, 71, 0.04), 0 8px 24px rgba(26, 41, 71, 0.06);
191
+ --ew-shadow-3: 0 4px 12px rgba(26, 41, 71, 0.06), 0 16px 40px rgba(26, 41, 71, 0.08);
192
+ --ew-shadow-4: 0 24px 64px rgba(26, 41, 71, 0.12);
193
+ --ew-shadow-primary: 0 4px 14px rgba(var(--ew-color-primary-rgb), 0.24);
194
+
195
+ /* ─── 焦点光晕 ─── */
196
+ --ew-focus-ring: 0 0 0 2px var(--ew-color-primary-light-7);
197
+ --ew-focus-ring-offset: 2px;
198
+
199
+ /* ─── 圆角阶(官网语言整体更圆润)─── */
200
+ --ew-radius-sm: 6px;
201
+ --ew-radius-md: 10px;
202
+ --ew-radius-lg: 14px;
203
+ --ew-radius-xl: 20px;
204
+ --ew-radius-2xl: 28px;
205
+ --ew-radius-full: 999px;
206
+ --ew-radius-circle: 50%;
207
+
208
+ /* ─── 布局 ─── */
209
+ --ew-container-width: 1152px;
210
+ --ew-navbar-height: 64px;
211
+
212
+ /* ─── z-index 层级基准 ─── */
213
+ --ew-z-index-normal: 1;
214
+ --ew-z-index-sticky: 100;
215
+ --ew-z-index-overlay: 2000;
216
+ }
217
+
218
+ /* ══════ 暗色模式令牌重映射(html.dark,useTheme 驱动)══════
219
+ 暗色表面取自 remixicon 暗色实测:#17171A / #232324 / #2A2A2B / #373739 */
220
+ html.dark {
221
+ --ew-color-primary: #4c91ff;
222
+ --ew-color-primary-light-3: #6ea6ff;
223
+ --ew-color-primary-light-5: #93bdff;
224
+ --ew-color-primary-light-7: #bdd6ff;
225
+ --ew-color-primary-light-8: #2c3b55;
226
+ --ew-color-primary-light-9: #1d2a42;
227
+ --ew-color-primary-dark-2: #3d7ae0;
228
+ --ew-color-primary-rgb: 76, 145, 255;
229
+
230
+ --ew-text-primary: #f2f4f8;
231
+ --ew-text-regular: #a5adc0;
232
+ --ew-text-secondary: #7a8194;
233
+ --ew-text-disabled: #4d5261;
234
+ --ew-text-placeholder: #5b6172;
235
+ --ew-text-on-dark: #f5f7fc;
236
+
237
+ --ew-bg-page: #17171a;
238
+ --ew-bg-soft: #1d1d21;
239
+ --ew-bg-muted: #1a1a1e;
240
+ --ew-bg-container: #232324;
241
+ --ew-bg-hover: #2a2a2b;
242
+ --ew-gradient-hero: linear-gradient(180deg, #1c1c20 0%, #19191c 55%, #17171a 100%);
243
+
244
+ --ew-pastel-cream: #2a2721;
245
+ --ew-pastel-blue: #1e2a3d;
246
+ --ew-pastel-mint: #1d2f26;
247
+ --ew-pastel-pink: #32222e;
248
+ --ew-pastel-lime: #272d1b;
249
+
250
+ --ew-color-accent-lime: #a8d94e;
251
+ --ew-color-accent-lime-ink: #1c2606;
252
+
253
+ --ew-border-color: #333335;
254
+ --ew-border-color-light: #2b2b2d;
255
+ --ew-border-color-dark: #3d3d40;
256
+ --ew-border-sticker: #232324;
257
+
258
+ --ew-fill-1: #232324;
259
+ --ew-fill-2: #2a2a2b;
260
+ --ew-fill-3: #373739;
261
+
262
+ --ew-shadow-1: 0 1px 4px rgba(0, 0, 0, 0.3);
263
+ --ew-shadow-2: 0 1px 4px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
264
+ --ew-shadow-3: 0 2px 8px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.3);
265
+ --ew-shadow-4: 0 12px 40px rgba(0, 0, 0, 0.5);
266
+ --ew-shadow-primary: 0 4px 14px rgba(0, 0, 0, 0.4);
267
+
268
+ --ew-focus-ring: 0 0 0 2px rgba(var(--ew-color-primary-rgb), 0.45);
269
+ }
270
+ /* 工具类(容器/焦点/滚动条/reveal 浮现) */
271
+ /* ============================================
272
+ Evoke UI — 工具类与通用层
273
+ 容器 / 视觉隐藏 / 滚动浮现 / 焦点 / 选区 / 滚动条
274
+ (base.css 与文档站均可独立引用;元素级 reset 只在 base.css)
275
+ ============================================ */
276
+
277
+ /* ─── 焦点可达性 ─── */
278
+ :focus-visible {
279
+ outline: none;
280
+ box-shadow: var(--ew-focus-ring);
281
+ border-radius: var(--ew-radius-sm);
282
+ }
283
+
284
+ /* ─── 选区 ─── */
285
+ .ew-selection ::selection,
286
+ ::selection {
287
+ background: rgba(var(--ew-color-primary-rgb), 0.18);
288
+ }
289
+
290
+ /* ─── 滚动条 ─── */
291
+ ::-webkit-scrollbar {
292
+ width: 8px;
293
+ height: 8px;
294
+ }
295
+
296
+ ::-webkit-scrollbar-thumb {
297
+ background: var(--ew-fill-3);
298
+ border-radius: var(--ew-radius-full);
299
+ }
300
+
301
+ ::-webkit-scrollbar-thumb:hover {
302
+ background: var(--ew-text-secondary);
303
+ }
304
+
305
+ ::-webkit-scrollbar-track {
306
+ background: transparent;
307
+ }
308
+
309
+ /* ─── v-reveal 滚动入场(轻盈浮现语言,四种入场方向 + 缩放/淡入)─── */
310
+ .ew-reveal {
311
+ opacity: 0;
312
+ transform: translateY(14px);
313
+ transition: opacity var(--ew-duration-slower) var(--ew-ease-out),
314
+ transform var(--ew-duration-slower) var(--ew-ease-smooth);
315
+ will-change: opacity, transform;
316
+ }
317
+
318
+ .ew-reveal[data-ew-reveal='left'] {
319
+ transform: translateX(-20px);
320
+ }
321
+
322
+ .ew-reveal[data-ew-reveal='right'] {
323
+ transform: translateX(20px);
324
+ }
325
+
326
+ .ew-reveal[data-ew-reveal='zoom'] {
327
+ transform: scale(0.94);
328
+ }
329
+
330
+ .ew-reveal[data-ew-reveal='fade'] {
331
+ transform: none;
332
+ }
333
+
334
+ .ew-reveal.is-revealed {
335
+ opacity: 1;
336
+ transform: none;
337
+ }
338
+
339
+ @media (prefers-reduced-motion: reduce) {
340
+ .ew-reveal {
341
+ transition: none;
342
+ opacity: 1;
343
+ transform: none;
344
+ }
345
+ }
346
+
347
+ /* ─── 布局容器 ─── */
348
+ .ew-container {
349
+ width: 100%;
350
+ max-width: var(--ew-container-width);
351
+ margin-inline: auto;
352
+ padding-inline: var(--ew-space-6);
353
+ }
354
+
355
+ /* ─── 视觉隐藏(无障碍)─── */
356
+ .ew-visually-hidden {
357
+ position: absolute;
358
+ width: 1px;
359
+ height: 1px;
360
+ overflow: hidden;
361
+ clip: rect(0 0 0 0);
362
+ white-space: nowrap;
363
+ }
364
+ /* 基础样式(元素级 reset + 排版基线 + 链接) */
365
+ /* ============================================
366
+ Evoke UI — 全局基础样式
367
+ 元素级 reset + 排版基线 + 链接
368
+ (工具类/焦点/滚动条/reveal 在 utilities.css,由 index.css 聚合)
369
+ ============================================ */
370
+
371
+ *,
372
+ *::before,
373
+ *::after {
374
+ box-sizing: border-box;
375
+ margin: 0;
376
+ padding: 0;
377
+ }
378
+
379
+ html {
380
+ -webkit-text-size-adjust: 100%;
381
+ /* 平滑主题切换 */
382
+ transition: color var(--ew-duration-base) var(--ew-ease-in-out),
383
+ background-color var(--ew-duration-base) var(--ew-ease-in-out);
384
+ }
385
+
386
+ body {
387
+ font-family: var(--ew-font-family);
388
+ font-size: var(--ew-font-size-base);
389
+ line-height: 1.7; /* 官网排版:正文更透气 */
390
+ color: var(--ew-text-primary);
391
+ background-color: var(--ew-bg-page);
392
+ -webkit-font-smoothing: antialiased;
393
+ -moz-osx-font-smoothing: grayscale;
394
+ text-rendering: optimizeLegibility;
395
+ }
396
+
397
+ /* 官网排版基线:标题默认细字重展示体(remixicon 语言),需要冲击时用 strong */
398
+ h1, h2, h3, h4 {
399
+ font-weight: var(--ew-display-weight);
400
+ letter-spacing: var(--ew-display-letter-spacing);
401
+ line-height: var(--ew-display-line-height);
402
+ color: var(--ew-text-primary);
403
+ }
404
+
405
+ p {
406
+ color: var(--ew-text-regular);
407
+ }
408
+
409
+ a {
410
+ color: var(--ew-color-primary);
411
+ text-decoration: none;
412
+ transition: color var(--ew-duration-base) var(--ew-ease-in-out);
413
+ }
414
+
415
+ a:hover {
416
+ color: var(--ew-color-primary-light-3);
417
+ }
418
+
419
+ img, svg, video {
420
+ display: block;
421
+ max-width: 100%;
422
+ }
423
+
424
+ button, input, select, textarea {
425
+ font: inherit;
426
+ color: inherit;
427
+ }
428
+
429
+ ul, ol {
430
+ list-style: none;
431
+ }
432
+
433
+ ::selection {
434
+ background: rgba(var(--ew-color-primary-rgb), 0.18);
435
+ }
436
+ /* EwIcon — 图标容器 */
437
+ .ew-icon {
438
+ display: inline-flex;
439
+ justify-content: center;
440
+ align-items: center;
441
+ position: relative;
442
+ fill: currentColor;
443
+ /* 跟随上下文文字色(按钮内呈白,独立使用时继承父级) */
444
+ color: inherit;
445
+ font-size: inherit;
446
+ line-height: 1;
447
+ height: 1em;
448
+ width: 1em;
449
+ cursor: inherit;
450
+ user-select: none;
451
+ flex-shrink: 0;
452
+ }
453
+ .ew-icon > svg {
454
+ width: 1em;
455
+ height: 1em;
456
+ display: inline-block;
457
+ vertical-align: middle;
458
+ }
459
+
460
+ /* 旋转动画(loading 类图标消费) */
461
+ .ew-icon.is-rotating > svg {
462
+ animation: ew-rotate 1s linear infinite;
463
+ }
464
+ @keyframes ew-rotate {
465
+ from { transform: rotate(0deg);
466
+ }
467
+ to { transform: rotate(360deg);
468
+ }
469
+ }
470
+ /* EwButton — 按钮 */
471
+ .ew-button {
472
+ position: relative;
473
+ display: inline-flex;
474
+ align-items: center;
475
+ justify-content: center;
476
+ gap: var(--ew-space-2);
477
+ height: 40px;
478
+ padding: 0 20px;
479
+ border: 1px solid transparent;
480
+ border-radius: var(--ew-radius-md);
481
+ font-size: var(--ew-font-size-base);
482
+ font-weight: var(--ew-font-weight-medium);
483
+ line-height: 1;
484
+ white-space: nowrap;
485
+ cursor: pointer;
486
+ user-select: none;
487
+ transition: background-color var(--ew-duration-base) var(--ew-ease-in-out),
488
+ color var(--ew-duration-base) var(--ew-ease-in-out),
489
+ border-color var(--ew-duration-base) var(--ew-ease-in-out),
490
+ box-shadow var(--ew-duration-base) var(--ew-ease-in-out),
491
+ transform var(--ew-duration-fast) var(--ew-ease-in-out);
492
+ }
493
+ .ew-button:active:not(.is-disabled) {
494
+ transform: scale(0.98);
495
+ }
496
+
497
+ /* ─── 尺寸 ─── */
498
+ .ew-button--small {
499
+ height: 32px;
500
+ padding: 0 12px;
501
+ font-size: var(--ew-font-size-sm);
502
+ border-radius: var(--ew-radius-sm);
503
+ }
504
+ .ew-button--large {
505
+ height: 46px;
506
+ padding: 0 26px;
507
+ font-size: var(--ew-font-size-md);
508
+ }
509
+
510
+ /* ─── 胶囊形态 ─── */
511
+ .ew-button.is-pill,
512
+ .ew-button.is-pill.ew-button--small,
513
+ .ew-button.is-pill.ew-button--large {
514
+ border-radius: var(--ew-radius-full);
515
+ }
516
+
517
+ /* ─── 块级 ─── */
518
+ .ew-button.is-block {
519
+ display: flex;
520
+ width: 100%;
521
+ }
522
+
523
+ /* ─── 变体 ─── */
524
+ .ew-button.is-primary {
525
+ background-color: var(--ew-color-primary);
526
+ color: #ffffff;
527
+ }
528
+ .ew-button.is-primary:hover:not(.is-disabled) {
529
+ background-color: var(--ew-color-primary-light-3);
530
+ box-shadow: var(--ew-shadow-primary);
531
+ }
532
+ .ew-button.is-primary:active:not(.is-disabled) {
533
+ background-color: var(--ew-color-primary-dark-2);
534
+ }
535
+ .ew-button.is-dark {
536
+ background-color: var(--ew-color-ink);
537
+ color: #ffffff;
538
+ }
539
+ html.dark .ew-button.is-dark {
540
+ background-color: var(--ew-text-primary);
541
+ color: var(--ew-color-ink);
542
+ }
543
+ .ew-button.is-dark:hover:not(.is-disabled) {
544
+ background-color: #2a3a5c;
545
+ box-shadow: var(--ew-shadow-2);
546
+ }
547
+ html.dark .ew-button.is-dark:hover:not(.is-disabled) {
548
+ background-color: #ffffff;
549
+ }
550
+ .ew-button.is-soft {
551
+ background-color: var(--ew-fill-1);
552
+ color: var(--ew-text-primary);
553
+ }
554
+ .ew-button.is-soft:hover:not(.is-disabled) {
555
+ background-color: var(--ew-fill-2);
556
+ box-shadow: var(--ew-shadow-1);
557
+ }
558
+ .ew-button.is-outline {
559
+ background-color: transparent;
560
+ border-color: var(--ew-border-color-dark);
561
+ color: var(--ew-text-primary);
562
+ }
563
+ .ew-button.is-outline:hover:not(.is-disabled) {
564
+ border-color: var(--ew-color-primary-light-5);
565
+ color: var(--ew-color-primary);
566
+ background-color: var(--ew-color-primary-light-9);
567
+ }
568
+ .ew-button.is-ghost {
569
+ background-color: transparent;
570
+ color: var(--ew-text-secondary);
571
+ }
572
+ .ew-button.is-ghost:hover:not(.is-disabled) {
573
+ color: var(--ew-text-primary);
574
+ background-color: var(--ew-fill-1);
575
+ }
576
+
577
+ /* ─── 状态 ─── */
578
+ .ew-button.is-disabled {
579
+ cursor: not-allowed;
580
+ opacity: 0.5;
581
+ }
582
+
583
+ /* ─── 仅图标 ─── */
584
+ .ew-button.is-icon-only {
585
+ width: 40px;
586
+ padding: 0;
587
+ }
588
+ .ew-button--small.is-icon-only {
589
+ width: 32px;
590
+ }
591
+ .ew-button--large.is-icon-only {
592
+ width: 46px;
593
+ }
594
+ .ew-button__content {
595
+ display: inline-flex;
596
+ align-items: center;
597
+ }
598
+ .ew-button__icon--right {
599
+ margin-left: calc(var(--ew-space-1) * -1);
600
+ }
601
+ /* EwIconButton — 图标按钮 */
602
+ .ew-icon-button {
603
+ display: inline-flex;
604
+ align-items: center;
605
+ justify-content: center;
606
+ width: 38px;
607
+ height: 38px;
608
+ padding: 0;
609
+ border: 1px solid transparent;
610
+ border-radius: var(--ew-radius-md);
611
+ background-color: transparent;
612
+ color: var(--ew-text-regular);
613
+ cursor: pointer;
614
+ user-select: none;
615
+ transition: background-color var(--ew-duration-base) var(--ew-ease-in-out),
616
+ color var(--ew-duration-base) var(--ew-ease-in-out),
617
+ border-color var(--ew-duration-base) var(--ew-ease-in-out);
618
+ }
619
+ .ew-icon-button:hover {
620
+ color: var(--ew-text-primary);
621
+ }
622
+
623
+ /* ─── 尺寸 ─── */
624
+ .ew-icon-button--small {
625
+ width: 30px;
626
+ height: 30px;
627
+ }
628
+ .ew-icon-button--large {
629
+ width: 46px;
630
+ height: 46px;
631
+ }
632
+
633
+ /* ─── 正圆 ─── */
634
+ .ew-icon-button.is-round {
635
+ border-radius: var(--ew-radius-full);
636
+ }
637
+
638
+ /* ─── 变体 ─── */
639
+ .ew-icon-button.is-soft {
640
+ background-color: var(--ew-fill-1);
641
+ }
642
+ .ew-icon-button.is-soft:hover {
643
+ background-color: var(--ew-fill-2);
644
+ }
645
+ .ew-icon-button.is-outline {
646
+ border-color: var(--ew-border-color);
647
+ }
648
+ .ew-icon-button.is-outline:hover {
649
+ border-color: var(--ew-border-color-dark);
650
+ }
651
+ .ew-icon-button.is-primary {
652
+ background-color: var(--ew-color-primary);
653
+ color: #ffffff;
654
+ }
655
+ .ew-icon-button.is-primary:hover {
656
+ background-color: var(--ew-color-primary-light-3);
657
+ color: #ffffff;
658
+ }
659
+ .ew-icon-button.is-dark {
660
+ background-color: var(--ew-color-ink);
661
+ color: #ffffff;
662
+ }
663
+ html.dark .ew-icon-button.is-dark {
664
+ background-color: var(--ew-text-primary);
665
+ color: var(--ew-color-ink);
666
+ }
667
+ .ew-icon-button.is-dark:hover {
668
+ color: #ffffff;
669
+ background-color: #2a3a5c;
670
+ }
671
+ html.dark .ew-icon-button.is-dark:hover {
672
+ color: var(--ew-color-ink);
673
+ background-color: #ffffff;
674
+ }
675
+
676
+ /* ─── 状态 ─── */
677
+ .ew-icon-button.is-disabled {
678
+ cursor: not-allowed;
679
+ opacity: 0.55;
680
+ }
681
+ /* EwTag — 胶囊标签 */
682
+ .ew-tag {
683
+ display: inline-flex;
684
+ align-items: center;
685
+ gap: 4px;
686
+ height: 24px;
687
+ padding: 0 10px;
688
+ border: 1px solid transparent;
689
+ border-radius: var(--ew-radius-full);
690
+ font-size: var(--ew-font-size-xs);
691
+ font-weight: var(--ew-font-weight-medium);
692
+ line-height: 1;
693
+ white-space: nowrap;
694
+ transition: background-color var(--ew-duration-base) var(--ew-ease-in-out),
695
+ color var(--ew-duration-base) var(--ew-ease-in-out),
696
+ border-color var(--ew-duration-base) var(--ew-ease-in-out);
697
+ }
698
+ .ew-tag--small {
699
+ height: 20px;
700
+ padding: 0 8px;
701
+ font-size: 11px;
702
+ }
703
+ .ew-tag--large {
704
+ height: 28px;
705
+ padding: 0 12px;
706
+ font-size: var(--ew-font-size-sm);
707
+ }
708
+
709
+ /* ─── 关闭钮 ─── */
710
+ .ew-tag__close {
711
+ display: inline-flex;
712
+ align-items: center;
713
+ justify-content: center;
714
+ margin-right: -4px;
715
+ padding: 0;
716
+ border: none;
717
+ background: transparent;
718
+ color: inherit;
719
+ cursor: pointer;
720
+ opacity: 0.6;
721
+ transition: opacity var(--ew-duration-fast) var(--ew-ease-in-out);
722
+ }
723
+ .ew-tag__close:hover {
724
+ opacity: 1;
725
+ }
726
+
727
+ /* ══════ neutral(remixdesign 灰 pill / remixicon 计数胶囊)══════ */
728
+ .ew-tag.is-neutral.is-soft {
729
+ background-color: var(--ew-fill-1);
730
+ color: var(--ew-text-regular);
731
+ }
732
+ .ew-tag.is-neutral.is-soft:hover {
733
+ background-color: var(--ew-fill-2);
734
+ }
735
+ .ew-tag.is-neutral.is-solid {
736
+ background-color: var(--ew-color-info);
737
+ color: #ffffff;
738
+ }
739
+ .ew-tag.is-neutral.is-outline {
740
+ border-color: var(--ew-border-color-dark);
741
+ color: var(--ew-text-regular);
742
+ }
743
+
744
+ /* ══════ 语义 tone(soft 淡底 / solid 实底 / outline 描边)══════ */
745
+ .ew-tag.is-primary.is-soft {
746
+ background-color: var(--ew-color-primary-light-9);
747
+ color: var(--ew-color-primary);
748
+ }
749
+ .ew-tag.is-primary.is-solid {
750
+ background-color: var(--ew-color-primary);
751
+ color: #ffffff;
752
+ }
753
+ .ew-tag.is-primary.is-outline {
754
+ border-color: var(--ew-color-primary-light-5);
755
+ color: var(--ew-color-primary);
756
+ }
757
+ .ew-tag.is-success.is-soft {
758
+ background-color: var(--ew-color-success-light-9);
759
+ color: var(--ew-color-success);
760
+ }
761
+ .ew-tag.is-success.is-solid {
762
+ background-color: var(--ew-color-success);
763
+ color: #ffffff;
764
+ }
765
+ .ew-tag.is-success.is-outline {
766
+ border-color: var(--ew-color-success-light-5);
767
+ color: var(--ew-color-success);
768
+ }
769
+ .ew-tag.is-warning.is-soft {
770
+ background-color: var(--ew-color-warning-light-9);
771
+ color: var(--ew-color-warning);
772
+ }
773
+ .ew-tag.is-warning.is-solid {
774
+ background-color: var(--ew-color-warning);
775
+ color: #ffffff;
776
+ }
777
+ .ew-tag.is-warning.is-outline {
778
+ border-color: var(--ew-color-warning-light-5);
779
+ color: var(--ew-color-warning);
780
+ }
781
+ .ew-tag.is-danger.is-soft {
782
+ background-color: var(--ew-color-danger-light-9);
783
+ color: var(--ew-color-danger);
784
+ }
785
+ .ew-tag.is-danger.is-solid {
786
+ background-color: var(--ew-color-danger);
787
+ color: #ffffff;
788
+ }
789
+ .ew-tag.is-danger.is-outline {
790
+ border-color: var(--ew-color-danger-light-5);
791
+ color: var(--ew-color-danger);
792
+ }
793
+ .ew-tag.is-info.is-soft {
794
+ background-color: var(--ew-color-info-light-9);
795
+ color: var(--ew-color-info);
796
+ }
797
+ .ew-tag.is-info.is-solid {
798
+ background-color: var(--ew-color-info);
799
+ color: #ffffff;
800
+ }
801
+ .ew-tag.is-info.is-outline {
802
+ border-color: var(--ew-color-info-light-5);
803
+ color: var(--ew-color-info);
804
+ }
805
+
806
+ /* ══════ lime(launchos「SAVE 50%」黄绿促销徽章)══════ */
807
+ .ew-tag.is-lime.is-soft,
808
+ .ew-tag.is-lime.is-solid {
809
+ background-color: var(--ew-color-accent-lime);
810
+ color: var(--ew-color-accent-lime-ink);
811
+ }
812
+ .ew-tag.is-lime.is-outline {
813
+ border-color: var(--ew-color-accent-lime);
814
+ color: var(--ew-color-accent-lime-ink);
815
+ }
816
+
817
+ /* ══════ orange(launchos「Public Beta Offer」促销橙)══════ */
818
+ .ew-tag.is-orange.is-soft {
819
+ background-color: var(--ew-color-warning-light-9);
820
+ color: var(--ew-color-accent-orange);
821
+ }
822
+ .ew-tag.is-orange.is-solid {
823
+ background-color: var(--ew-color-accent-orange);
824
+ color: #ffffff;
825
+ }
826
+ .ew-tag.is-orange.is-outline {
827
+ border-color: var(--ew-color-accent-orange);
828
+ color: var(--ew-color-accent-orange);
829
+ }
830
+ /* EwBadge — 计数徽标 */
831
+ .ew-badge {
832
+ display: inline-flex;
833
+ align-items: center;
834
+ justify-content: center;
835
+ min-width: 18px;
836
+ height: 18px;
837
+ padding: 0 5px;
838
+ border-radius: var(--ew-radius-full);
839
+ background-color: #f04438;
840
+ color: #ffffff;
841
+ font-size: 11px;
842
+ font-weight: var(--ew-font-weight-medium);
843
+ line-height: 1;
844
+ white-space: nowrap;
845
+ vertical-align: top;
846
+ }
847
+
848
+ /* 圆点模式 */
849
+ .ew-badge.is-dot {
850
+ min-width: 8px;
851
+ width: 8px;
852
+ height: 8px;
853
+ padding: 0;
854
+ }
855
+ /* EwCard — 卡片 */
856
+ .ew-card {
857
+ position: relative;
858
+ padding: var(--ew-space-6);
859
+ border: 1px solid var(--ew-border-color-light);
860
+ border-radius: var(--ew-radius-xl);
861
+ background-color: var(--ew-bg-container);
862
+ transition: transform var(--ew-duration-base) var(--ew-ease-smooth),
863
+ box-shadow var(--ew-duration-base) var(--ew-ease-in-out),
864
+ border-color var(--ew-duration-base) var(--ew-ease-in-out),
865
+ background-color var(--ew-duration-base) var(--ew-ease-in-out);
866
+ }
867
+ .ew-card.is-flat {
868
+ border-color: transparent;
869
+ box-shadow: none;
870
+ }
871
+
872
+ /* ─── 粉彩底(remixdesign 作品卡)─── */
873
+ .ew-card.is-soft { background-color: var(--ew-fill-1);
874
+ }
875
+ .ew-card.is-cream { background-color: var(--ew-pastel-cream);
876
+ }
877
+ .ew-card.is-blue { background-color: var(--ew-pastel-blue);
878
+ }
879
+ .ew-card.is-mint { background-color: var(--ew-pastel-mint);
880
+ }
881
+ .ew-card.is-pink { background-color: var(--ew-pastel-pink);
882
+ }
883
+ .ew-card.is-lime { background-color: var(--ew-pastel-lime);
884
+ }
885
+
886
+ /* ─── 贴纸风:厚白描边 + 轻投影 ─── */
887
+ .ew-card.is-sticker {
888
+ border: 3px solid var(--ew-border-sticker);
889
+ box-shadow: var(--ew-shadow-2);
890
+ }
891
+
892
+ /* ─── 深色精选(launchos 主推定价卡)─── */
893
+ .ew-card.is-featured {
894
+ border-color: transparent;
895
+ background:
896
+ radial-gradient(120% 90% at 85% 0%, rgba(var(--ew-color-primary-rgb), 0.14), transparent 60%),
897
+ linear-gradient(165deg, #232329 0%, #121215 70%);
898
+ color: var(--ew-text-on-dark);
899
+ box-shadow: var(--ew-shadow-4);
900
+ }
901
+ .ew-card.is-featured :deep(h1),
902
+ .ew-card.is-featured :deep(h2),
903
+ .ew-card.is-featured :deep(h3),
904
+ .ew-card.is-featured :deep(h4) {
905
+ color: #ffffff;
906
+ }
907
+ .ew-card.is-featured :deep(p) {
908
+ color: rgba(245, 247, 252, 0.68);
909
+ }
910
+
911
+ /* ─── 悬浮:轻抬 + 光影上移 ─── */
912
+ .ew-card.is-hoverable:hover {
913
+ transform: translateY(-3px);
914
+ box-shadow: var(--ew-shadow-3);
915
+ border-color: var(--ew-border-color);
916
+ }
917
+ /* EwSection — 内容区块 */
918
+ .ew-section {
919
+ margin-bottom: 96px;
920
+ }
921
+ .ew-section.is-center {
922
+ text-align: center;
923
+ }
924
+
925
+ /* 眉题:小而安静的大写字距小标(remixdesign「WORK」语言) */
926
+ .ew-section__eyebrow {
927
+ margin-bottom: var(--ew-space-3);
928
+ font-size: var(--ew-font-size-xs);
929
+ font-weight: var(--ew-font-weight-medium);
930
+ letter-spacing: 0.16em;
931
+ text-transform: uppercase;
932
+ color: var(--ew-text-secondary);
933
+ }
934
+
935
+ /* 区块标题:细字重展示体,与 hero 同一声音 */
936
+ .ew-section__title {
937
+ margin-bottom: var(--ew-space-3);
938
+ font-size: clamp(26px, 3vw, 34px);
939
+ font-weight: var(--ew-display-weight);
940
+ letter-spacing: var(--ew-display-letter-spacing);
941
+ line-height: var(--ew-display-line-height);
942
+ }
943
+ .ew-section__description {
944
+ max-width: 560px;
945
+ font-size: var(--ew-font-size-md);
946
+ line-height: 1.75;
947
+ color: var(--ew-text-secondary);
948
+ }
949
+ .ew-section.is-center .ew-section__description {
950
+ margin-inline: auto;
951
+ }
952
+ .ew-section__body {
953
+ margin-top: var(--ew-space-10);
954
+ }
955
+ .ew-section__eyebrow + .ew-section__title {
956
+ margin-top: 0;
957
+ }
958
+
959
+ /* 无主体内容时收尾不留白 */
960
+ .ew-section:not(:has(.ew-section__body)) .ew-section__description {
961
+ margin-bottom: 0;
962
+ }
963
+
964
+ /* ─── 宿主环境屏蔽 ───
965
+ 在 markdown/文档站等宿主里,元素级排版规则(如 .vp-doc h2/p/ul)
966
+ 会以更高优先级渗透进组件内部;这里用双类选择器重申组件自有排版。 */
967
+ .ew-section .ew-section__title {
968
+ margin: 0 0 var(--ew-space-3);
969
+ padding-top: 0;
970
+ border-top: none;
971
+ font-size: clamp(26px, 3vw, 34px);
972
+ }
973
+ .ew-section .ew-section__description {
974
+ margin: 0;
975
+ }
976
+ /* EwNavbar — 站点导航 */
977
+ .ew-navbar {
978
+ position: relative;
979
+ z-index: var(--ew-z-index-sticky);
980
+ background-color: transparent;
981
+ transition: background-color var(--ew-duration-base) var(--ew-ease-in-out),
982
+ box-shadow var(--ew-duration-base) var(--ew-ease-in-out),
983
+ border-color var(--ew-duration-base) var(--ew-ease-in-out),
984
+ transform var(--ew-duration-slow) var(--ew-ease-smooth);
985
+ }
986
+
987
+ /* 下滑隐藏、上滑浮现 */
988
+ .ew-navbar.is-sticky.is-hidden {
989
+ transform: translateY(-100%);
990
+ }
991
+ .ew-navbar__inner {
992
+ display: flex;
993
+ align-items: center;
994
+ gap: var(--ew-space-8);
995
+ height: 68px;
996
+ }
997
+
998
+ /* ─── 吸顶状态 ─── */
999
+ .ew-navbar.is-sticky {
1000
+ position: sticky;
1001
+ top: 0;
1002
+ }
1003
+ .ew-navbar.is-sticky.is-blur.is-scrolled {
1004
+ background-color: color-mix(in srgb, var(--ew-bg-page) 82%, transparent);
1005
+ backdrop-filter: blur(12px);
1006
+ -webkit-backdrop-filter: blur(12px);
1007
+ box-shadow: 0 1px 0 var(--ew-border-color-light);
1008
+ }
1009
+ .ew-navbar.is-sticky:not(.is-blur).is-scrolled {
1010
+ background-color: var(--ew-bg-page);
1011
+ box-shadow: 0 1px 0 var(--ew-border-color-light), var(--ew-shadow-1);
1012
+ }
1013
+
1014
+ /* ─── 左侧 logo ─── */
1015
+ .ew-navbar__left {
1016
+ display: flex;
1017
+ align-items: center;
1018
+ gap: var(--ew-space-4);
1019
+ flex-shrink: 0;
1020
+ }
1021
+ .ew-navbar__logo {
1022
+ display: inline-flex;
1023
+ align-items: center;
1024
+ gap: var(--ew-space-2);
1025
+ color: var(--ew-text-primary);
1026
+ font-weight: var(--ew-display-weight-strong);
1027
+ letter-spacing: var(--ew-display-letter-spacing);
1028
+ }
1029
+ .ew-navbar__logo:hover {
1030
+ color: var(--ew-text-primary);
1031
+ }
1032
+ .ew-navbar__logo-text {
1033
+ font-size: var(--ew-font-size-md);
1034
+ letter-spacing: 0.01em;
1035
+ }
1036
+ .ew-navbar__logo-img {
1037
+ height: 28px;
1038
+ width: auto;
1039
+ }
1040
+
1041
+ /* ─── 中部导航 ─── */
1042
+ .ew-navbar__nav {
1043
+ display: flex;
1044
+ align-items: center;
1045
+ gap: var(--ew-space-2);
1046
+ flex: 1;
1047
+ min-width: 0;
1048
+ }
1049
+ .ew-navbar__link {
1050
+ padding: 6px 12px;
1051
+ border-radius: var(--ew-radius-sm);
1052
+ color: var(--ew-text-regular);
1053
+ font-size: var(--ew-font-size-base);
1054
+ font-weight: var(--ew-font-weight-regular);
1055
+ transition: color var(--ew-duration-base) var(--ew-ease-in-out);
1056
+ }
1057
+ .ew-navbar__link:hover {
1058
+ color: var(--ew-text-primary);
1059
+ }
1060
+ .ew-navbar__link.is-active {
1061
+ color: var(--ew-color-primary);
1062
+ }
1063
+
1064
+ /* ─── 右侧动作区 ─── */
1065
+ .ew-navbar__actions {
1066
+ display: flex;
1067
+ align-items: center;
1068
+ gap: var(--ew-space-2);
1069
+ margin-left: auto;
1070
+ flex-shrink: 0;
1071
+ }
1072
+
1073
+ /* ─── 移动端 ─── */
1074
+ .ew-navbar__burger {
1075
+ display: none;
1076
+ }
1077
+ .ew-navbar__mobile {
1078
+ display: none;
1079
+ }
1080
+ @media (max-width: 768px) {
1081
+ .ew-navbar__nav {
1082
+ display: none;
1083
+ }
1084
+ .ew-navbar__burger {
1085
+ display: inline-flex;
1086
+ }
1087
+ .ew-navbar__mobile {
1088
+ display: flex;
1089
+ flex-direction: column;
1090
+ padding: var(--ew-space-2) var(--ew-space-6) var(--ew-space-4);
1091
+ border-top: 1px solid var(--ew-border-color-light);
1092
+ background-color: var(--ew-bg-page);
1093
+ }
1094
+ .ew-navbar__mobile-link {
1095
+ padding: var(--ew-space-3) var(--ew-space-2);
1096
+ border-radius: var(--ew-radius-md);
1097
+ color: var(--ew-text-regular);
1098
+ font-weight: var(--ew-font-weight-medium);
1099
+ }
1100
+ .ew-navbar__mobile-link:hover {
1101
+ color: var(--ew-text-primary);
1102
+ background-color: var(--ew-bg-hover);
1103
+ }
1104
+ }
1105
+
1106
+ /* ─── 展开动效 ─── */
1107
+ .ew-navbar-collapse-enter-active,
1108
+ .ew-navbar-collapse-leave-active {
1109
+ transition: opacity var(--ew-duration-base) var(--ew-ease-in-out),
1110
+ transform var(--ew-duration-base) var(--ew-ease-smooth);
1111
+ }
1112
+ .ew-navbar-collapse-enter-from,
1113
+ .ew-navbar-collapse-leave-to {
1114
+ opacity: 0;
1115
+ transform: translateY(-6px);
1116
+ }
1117
+ /* EwFooter — 站点页脚 */
1118
+ .ew-footer {
1119
+ padding: 80px 0 40px;
1120
+ border-top: 1px solid var(--ew-border-color-light);
1121
+ color: var(--ew-text-regular);
1122
+ }
1123
+ .ew-footer.is-soft {
1124
+ background-color: var(--ew-bg-muted);
1125
+ }
1126
+
1127
+ /* ─── 主体:品牌区 + 链接栏 ─── */
1128
+ .ew-footer__main {
1129
+ display: grid;
1130
+ grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
1131
+ gap: var(--ew-space-12) var(--ew-space-8);
1132
+ padding-bottom: var(--ew-space-12);
1133
+ }
1134
+ .ew-footer__logo {
1135
+ font-size: var(--ew-font-size-lg);
1136
+ font-weight: var(--ew-display-weight-strong);
1137
+ letter-spacing: var(--ew-display-letter-spacing);
1138
+ color: var(--ew-text-primary);
1139
+ }
1140
+ .ew-footer__slogan {
1141
+ margin-top: var(--ew-space-3);
1142
+ max-width: 300px;
1143
+ font-size: var(--ew-font-size-sm);
1144
+ line-height: 1.7;
1145
+ color: var(--ew-text-secondary);
1146
+ }
1147
+ .ew-footer__social {
1148
+ display: flex;
1149
+ gap: var(--ew-space-2);
1150
+ margin-top: var(--ew-space-5);
1151
+ }
1152
+ .ew-footer__col {
1153
+ display: flex;
1154
+ flex-direction: column;
1155
+ gap: var(--ew-space-3);
1156
+ }
1157
+ .ew-footer__col-title {
1158
+ margin-bottom: var(--ew-space-2);
1159
+ font-size: var(--ew-font-size-xs);
1160
+ font-weight: var(--ew-font-weight-medium);
1161
+ letter-spacing: 0.14em;
1162
+ text-transform: uppercase;
1163
+ color: var(--ew-text-secondary);
1164
+ }
1165
+ .ew-footer__link {
1166
+ font-size: var(--ew-font-size-sm);
1167
+ color: var(--ew-text-secondary);
1168
+ transition: color var(--ew-duration-base) var(--ew-ease-in-out);
1169
+ }
1170
+ .ew-footer__link:hover {
1171
+ color: var(--ew-text-primary);
1172
+ }
1173
+
1174
+ /* ─── 底部版权条 ─── */
1175
+ .ew-footer__bottom {
1176
+ display: flex;
1177
+ align-items: center;
1178
+ justify-content: space-between;
1179
+ gap: var(--ew-space-4);
1180
+ padding-top: var(--ew-space-6);
1181
+ border-top: 1px solid var(--ew-border-color-light);
1182
+ font-size: var(--ew-font-size-sm);
1183
+ color: var(--ew-text-secondary);
1184
+ }
1185
+ .ew-footer__legal {
1186
+ display: flex;
1187
+ align-items: center;
1188
+ gap: var(--ew-space-4);
1189
+ }
1190
+ @media (max-width: 640px) {
1191
+ .ew-footer__main {
1192
+ grid-template-columns: 1fr 1fr;
1193
+ }
1194
+ .ew-footer__brand {
1195
+ grid-column: 1 / -1;
1196
+ }
1197
+ .ew-footer__bottom {
1198
+ flex-direction: column;
1199
+ align-items: flex-start;
1200
+ }
1201
+ }
1202
+
1203
+ /* ─── 宿主环境屏蔽 ───
1204
+ 在 markdown/文档站等宿主里,元素级排版规则(如 .vp-doc h2/p/ul)
1205
+ 会以更高优先级渗透进组件内部;这里用双类选择器重申组件自有排版。 */
1206
+ .ew-footer .ew-footer__slogan {
1207
+ margin: var(--ew-space-3) 0 0;
1208
+ font-size: var(--ew-font-size-sm);
1209
+ }
1210
+ .ew-footer .ew-footer__col-title {
1211
+ margin: 0 0 var(--ew-space-2);
1212
+ font-size: var(--ew-font-size-xs);
1213
+ }
1214
+ /* EwHero — 首屏区块 */
1215
+ .ew-hero {
1216
+ padding: 96px 0 88px;
1217
+ }
1218
+ .ew-hero.is-tinted {
1219
+ background-image: var(--ew-gradient-hero);
1220
+ }
1221
+ .ew-hero__inner {
1222
+ display: flex;
1223
+ align-items: center;
1224
+ gap: var(--ew-space-16);
1225
+ }
1226
+ .ew-hero__inner.has-aside {
1227
+ justify-content: space-between;
1228
+ }
1229
+ .ew-hero__content {
1230
+ flex: 1;
1231
+ min-width: 0;
1232
+ }
1233
+ .ew-hero.is-center .ew-hero__inner {
1234
+ flex-direction: column;
1235
+ text-align: center;
1236
+ }
1237
+ .ew-hero.is-center .ew-hero__description {
1238
+ margin-inline: auto;
1239
+ }
1240
+ .ew-hero.is-center .ew-hero__actions,
1241
+ .ew-hero.is-center .ew-hero__badge {
1242
+ justify-content: center;
1243
+ }
1244
+
1245
+ /* ─── 顶部胶囊位 ─── */
1246
+ .ew-hero__badge {
1247
+ display: flex;
1248
+ margin-bottom: var(--ew-space-6);
1249
+ }
1250
+
1251
+ /* ─── 展示标题:细字重大字(remixicon「Simply Delightful」气质核心)─── */
1252
+ .ew-hero__title {
1253
+ font-size: clamp(34px, 4.6vw, 56px);
1254
+ font-weight: var(--ew-display-weight);
1255
+ letter-spacing: var(--ew-display-letter-spacing);
1256
+ line-height: var(--ew-display-line-height);
1257
+ color: var(--ew-text-primary);
1258
+ text-wrap: balance;
1259
+ }
1260
+ .ew-hero__description {
1261
+ max-width: 540px;
1262
+ margin-top: var(--ew-space-5);
1263
+ font-size: 17px;
1264
+ line-height: 1.75;
1265
+ color: var(--ew-text-secondary);
1266
+ }
1267
+
1268
+ /* ─── 动作区 ─── */
1269
+ .ew-hero__actions {
1270
+ display: flex;
1271
+ flex-wrap: wrap;
1272
+ align-items: center;
1273
+ gap: var(--ew-space-3);
1274
+ margin-top: var(--ew-space-8);
1275
+ }
1276
+
1277
+ /* ─── 主体插槽(搜索框等大件)─── */
1278
+ .ew-hero__body {
1279
+ margin-top: var(--ew-space-10);
1280
+ }
1281
+
1282
+ /* ─── 右侧视觉位 ─── */
1283
+ .ew-hero__aside {
1284
+ flex-shrink: 0;
1285
+ }
1286
+ @media (max-width: 960px) {
1287
+ .ew-hero {
1288
+ padding: 64px 0 56px;
1289
+ }
1290
+ .ew-hero__inner.has-aside {
1291
+ flex-direction: column;
1292
+ align-items: stretch;
1293
+ }
1294
+ .ew-hero__aside {
1295
+ display: none;
1296
+ }
1297
+ }
1298
+
1299
+ /* ─── 宿主环境屏蔽 ───
1300
+ 在 markdown/文档站等宿主里,元素级排版规则(如 .vp-doc h2/p/ul)
1301
+ 会以更高优先级渗透进组件内部;这里用双类选择器重申组件自有排版。 */
1302
+ .ew-hero .ew-hero__title {
1303
+ margin: 0;
1304
+ font-size: clamp(34px, 4.6vw, 56px);
1305
+ font-weight: var(--ew-display-weight);
1306
+ letter-spacing: var(--ew-display-letter-spacing);
1307
+ line-height: var(--ew-display-line-height);
1308
+ }
1309
+ .ew-hero .ew-hero__description {
1310
+ margin: var(--ew-space-5) 0 0;
1311
+ font-size: 17px;
1312
+ }
1313
+ /* EwSelect — 下拉选择 */
1314
+ .ew-select {
1315
+ position: relative;
1316
+ display: inline-flex;
1317
+ width: 100%;
1318
+ min-width: 140px;
1319
+ }
1320
+ .ew-select__trigger {
1321
+ display: inline-flex;
1322
+ align-items: center;
1323
+ gap: var(--ew-space-2);
1324
+ width: 100%;
1325
+ height: 38px;
1326
+ padding: 0 12px;
1327
+ border: 1px solid var(--ew-border-color);
1328
+ border-radius: var(--ew-radius-md);
1329
+ background-color: var(--ew-bg-container);
1330
+ font-size: var(--ew-font-size-sm);
1331
+ color: var(--ew-text-primary);
1332
+ cursor: pointer;
1333
+ transition: border-color var(--ew-duration-base) var(--ew-ease-in-out),
1334
+ box-shadow var(--ew-duration-base) var(--ew-ease-in-out);
1335
+ }
1336
+ .ew-select__trigger:hover {
1337
+ border-color: var(--ew-border-color-dark);
1338
+ }
1339
+ .ew-select.is-open .ew-select__trigger,
1340
+ .ew-select__trigger:focus-visible {
1341
+ outline: none;
1342
+ border-color: var(--ew-color-primary-light-5);
1343
+ }
1344
+ .ew-select.is-open .ew-select__trigger {
1345
+ box-shadow: var(--ew-focus-ring);
1346
+ }
1347
+ .ew-select__label {
1348
+ flex: 1;
1349
+ min-width: 0;
1350
+ overflow: hidden;
1351
+ text-overflow: ellipsis;
1352
+ white-space: nowrap;
1353
+ text-align: left;
1354
+ }
1355
+ .ew-select__label.is-placeholder {
1356
+ color: var(--ew-text-placeholder);
1357
+ }
1358
+ .ew-select__icon {
1359
+ color: var(--ew-text-secondary);
1360
+ flex-shrink: 0;
1361
+ }
1362
+ .ew-select__caret {
1363
+ flex-shrink: 0;
1364
+ color: var(--ew-text-secondary);
1365
+ transition: transform var(--ew-duration-base) var(--ew-ease-smooth);
1366
+ }
1367
+ .ew-select__caret.is-open {
1368
+ transform: rotate(180deg);
1369
+ }
1370
+
1371
+ /* ─── 尺寸 ─── */
1372
+ .ew-select.is-small .ew-select__trigger {
1373
+ height: 30px;
1374
+ font-size: var(--ew-font-size-xs);
1375
+ }
1376
+ .ew-select.is-large .ew-select__trigger {
1377
+ height: 46px;
1378
+ font-size: var(--ew-font-size-base);
1379
+ }
1380
+
1381
+ /* ─── bare 嵌入形态(搜索栏等复合控件内部)─── */
1382
+ .ew-select.is-bare {
1383
+ min-width: 0;
1384
+ width: auto;
1385
+ }
1386
+ .ew-select.is-bare .ew-select__trigger {
1387
+ height: auto;
1388
+ padding: 0;
1389
+ border: none;
1390
+ background: transparent;
1391
+ font-size: inherit;
1392
+ color: var(--ew-text-primary);
1393
+ }
1394
+ .ew-select.is-bare .ew-select__trigger:focus-visible {
1395
+ box-shadow: none;
1396
+ }
1397
+ .ew-select.is-bare.is-error .ew-select__trigger {
1398
+ border: none;
1399
+ }
1400
+
1401
+ /* ─── 状态 ─── */
1402
+ .ew-select.is-disabled {
1403
+ cursor: not-allowed;
1404
+ opacity: 0.55;
1405
+ }
1406
+ .ew-select.is-disabled .ew-select__trigger {
1407
+ cursor: not-allowed;
1408
+ background-color: var(--ew-fill-1);
1409
+ }
1410
+ .ew-select.is-error .ew-select__trigger {
1411
+ border-color: var(--ew-color-danger-light-5);
1412
+ }
1413
+
1414
+ /* ══════ 下拉菜单 ══════ */
1415
+ .ew-select__menu {
1416
+ position: absolute;
1417
+ top: calc(100% + 6px);
1418
+ left: 0;
1419
+ z-index: var(--ew-z-index-overlay, 2000);
1420
+ min-width: 100%;
1421
+ max-height: 280px;
1422
+ overflow-y: auto;
1423
+ margin: 0;
1424
+ padding: 5px;
1425
+ list-style: none;
1426
+ border: 1px solid var(--ew-border-color-light);
1427
+ border-radius: var(--ew-radius-md);
1428
+ background-color: var(--ew-bg-container);
1429
+ box-shadow: var(--ew-shadow-3);
1430
+ }
1431
+ .ew-select__option {
1432
+ display: flex;
1433
+ align-items: center;
1434
+ gap: var(--ew-space-2);
1435
+ padding: 6px 10px;
1436
+ border-radius: var(--ew-radius-sm);
1437
+ font-size: var(--ew-font-size-sm);
1438
+ color: var(--ew-text-regular);
1439
+ cursor: pointer;
1440
+ transition: background-color var(--ew-duration-fast) var(--ew-ease-in-out),
1441
+ color var(--ew-duration-fast) var(--ew-ease-in-out);
1442
+ }
1443
+ .ew-select__option:hover:not(.is-disabled) {
1444
+ background-color: var(--ew-fill-1);
1445
+ color: var(--ew-text-primary);
1446
+ }
1447
+ .ew-select__option.is-selected {
1448
+ color: var(--ew-color-primary);
1449
+ font-weight: var(--ew-font-weight-medium);
1450
+ }
1451
+ .ew-select__option.is-disabled {
1452
+ cursor: not-allowed;
1453
+ opacity: 0.45;
1454
+ }
1455
+ .ew-select__option-icon {
1456
+ color: var(--ew-text-secondary);
1457
+ }
1458
+ .ew-select__option-label {
1459
+ flex: 1;
1460
+ min-width: 0;
1461
+ white-space: nowrap;
1462
+ }
1463
+ .ew-select__option-check {
1464
+ flex-shrink: 0;
1465
+ }
1466
+
1467
+ /* ─── 展开收起动效 ─── */
1468
+ .ew-select-drop-enter-active,
1469
+ .ew-select-drop-leave-active {
1470
+ transition: opacity var(--ew-duration-fast) var(--ew-ease-in-out),
1471
+ transform var(--ew-duration-base) var(--ew-ease-spring);
1472
+ }
1473
+ .ew-select-drop-enter-from,
1474
+ .ew-select-drop-leave-to {
1475
+ opacity: 0;
1476
+ transform: translateY(-4px);
1477
+ }
1478
+
1479
+ /* ─── 下拉菜单宿主屏蔽 ───
1480
+ vp-doc 等宿主的 ul 规则(padding-left / list-style)会以更高优先级渗透,
1481
+ 导致菜单内选项缩进错位、出现列表符 */
1482
+ .ew-select .ew-select__menu {
1483
+ margin: 0;
1484
+ padding: 5px;
1485
+ list-style: none;
1486
+ }
1487
+
1488
+ /* bare 嵌入形态:展开态不铺光环(caret 旋转已是展开信号),
1489
+ 键盘聚焦保留细描边保证可达性 */
1490
+ .ew-select.is-bare.is-open .ew-select__trigger {
1491
+ box-shadow: none;
1492
+ }
1493
+ .ew-select.is-bare .ew-select__trigger:focus-visible {
1494
+ outline: 2px solid var(--ew-color-primary-light-7);
1495
+ outline-offset: 2px;
1496
+ border-radius: var(--ew-radius-sm);
1497
+ }
1498
+ /* EwSearchBox — 大搜索框(remixicon 签名组件) */
1499
+ .ew-search-box {
1500
+ display: flex;
1501
+ align-items: center;
1502
+ gap: var(--ew-space-4);
1503
+ height: 60px;
1504
+ padding: 0 var(--ew-space-5);
1505
+ border: 1px solid var(--ew-border-color-light);
1506
+ border-radius: 16px;
1507
+ background-color: var(--ew-bg-container);
1508
+ box-shadow: var(--ew-shadow-2);
1509
+ transition: box-shadow var(--ew-duration-base) var(--ew-ease-in-out),
1510
+ border-color var(--ew-duration-base) var(--ew-ease-in-out),
1511
+ transform var(--ew-duration-base) var(--ew-ease-smooth);
1512
+ }
1513
+ .ew-search-box:focus-within {
1514
+ border-color: var(--ew-color-primary-light-5);
1515
+ box-shadow: var(--ew-shadow-3);
1516
+ }
1517
+ .ew-search-box--large {
1518
+ height: 68px;
1519
+ padding: 0 var(--ew-space-6);
1520
+ border-radius: 18px;
1521
+ }
1522
+
1523
+ /* ─── 分类下拉(EwSelect bare 嵌入形态)─── */
1524
+ .ew-search-box__category {
1525
+ display: inline-flex;
1526
+ align-items: center;
1527
+ flex-shrink: 0;
1528
+ padding-right: var(--ew-space-4);
1529
+ border-right: 1px solid var(--ew-border-color-light);
1530
+ }
1531
+ .ew-search-box__category .ew-select__trigger {
1532
+ font-weight: var(--ew-font-weight-medium);
1533
+ }
1534
+ .ew-search-box__category .ew-select__label {
1535
+ max-width: 140px;
1536
+ }
1537
+
1538
+ /* ─── 放大镜 ─── */
1539
+ .ew-search-box__magnifier {
1540
+ flex-shrink: 0;
1541
+ color: var(--ew-text-placeholder);
1542
+ }
1543
+
1544
+ /* ─── 输入区 ─── */
1545
+ .ew-search-box__input {
1546
+ flex: 1;
1547
+ min-width: 0;
1548
+ border: none;
1549
+ background: transparent;
1550
+ font-size: var(--ew-font-size-md);
1551
+ font-weight: var(--ew-font-weight-regular);
1552
+ color: var(--ew-text-primary);
1553
+ outline: none;
1554
+ }
1555
+ .ew-search-box__input::placeholder {
1556
+ color: var(--ew-text-placeholder);
1557
+ }
1558
+
1559
+ /* 焦点光环由整条搜索框(:focus-within)承担,内部 input 不再自绘 */
1560
+ .ew-search-box__input:focus,
1561
+ .ew-search-box__input:focus-visible {
1562
+ outline: none;
1563
+ box-shadow: none;
1564
+ border-radius: 0;
1565
+ }
1566
+ .ew-search-box__input::-webkit-search-cancel-button {
1567
+ -webkit-appearance: none;
1568
+ }
1569
+
1570
+ /* ─── 后缀动作位 ─── */
1571
+ .ew-search-box__suffix {
1572
+ display: inline-flex;
1573
+ align-items: center;
1574
+ flex-shrink: 0;
1575
+ padding-left: var(--ew-space-4);
1576
+ border-left: 1px solid var(--ew-border-color-light);
1577
+ }
1578
+ /* EwIconGrid — 可搜索图标网格(remixicon 核心界面语言) */
1579
+ .ew-icon-grid__search {
1580
+ margin-bottom: 56px;
1581
+ }
1582
+
1583
+ /* ─── 状态行(加载/空态)─── */
1584
+ .ew-icon-grid__state {
1585
+ display: flex;
1586
+ align-items: center;
1587
+ justify-content: center;
1588
+ gap: var(--ew-space-2);
1589
+ padding: var(--ew-space-16) 0;
1590
+ color: var(--ew-text-secondary);
1591
+ font-size: var(--ew-font-size-md);
1592
+ }
1593
+
1594
+ /* ─── 分类分节 ─── */
1595
+ .ew-icon-grid__section {
1596
+ margin-bottom: 48px;
1597
+ }
1598
+ .ew-icon-grid__title {
1599
+ display: flex;
1600
+ align-items: center;
1601
+ gap: var(--ew-space-3);
1602
+ margin-bottom: var(--ew-space-5);
1603
+ font-size: var(--ew-font-size-md);
1604
+ font-weight: var(--ew-font-weight-regular);
1605
+ letter-spacing: 0;
1606
+ color: var(--ew-text-primary);
1607
+ }
1608
+
1609
+ /* 计数胶囊(remixicon「Arrows 178」语言) */
1610
+ .ew-icon-grid__count {
1611
+ padding: 2px 9px;
1612
+ border-radius: var(--ew-radius-full);
1613
+ background-color: var(--ew-fill-1);
1614
+ font-size: var(--ew-font-size-xs);
1615
+ font-weight: var(--ew-font-weight-regular);
1616
+ color: var(--ew-text-secondary);
1617
+ }
1618
+
1619
+ /* ─── 网格 ─── */
1620
+ .ew-icon-grid__grid {
1621
+ display: grid;
1622
+ grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
1623
+ gap: var(--ew-space-2);
1624
+ }
1625
+ .ew-icon-grid__cell {
1626
+ position: relative;
1627
+ display: flex;
1628
+ flex-direction: column;
1629
+ align-items: center;
1630
+ gap: 10px;
1631
+ padding: 18px var(--ew-space-2) 14px;
1632
+ border: 1px solid transparent;
1633
+ border-radius: var(--ew-radius-md);
1634
+ background: transparent;
1635
+ cursor: pointer;
1636
+ transition: background-color var(--ew-duration-base) var(--ew-ease-in-out),
1637
+ border-color var(--ew-duration-base) var(--ew-ease-in-out);
1638
+ }
1639
+ .ew-icon-grid__cell > svg {
1640
+ width: 20px;
1641
+ height: 20px;
1642
+ fill: var(--ew-text-primary);
1643
+ }
1644
+ .ew-icon-grid__name {
1645
+ max-width: 100%;
1646
+ overflow: hidden;
1647
+ text-overflow: ellipsis;
1648
+ white-space: nowrap;
1649
+ font-size: var(--ew-font-size-xs);
1650
+ color: var(--ew-text-secondary);
1651
+ transition: color var(--ew-duration-base) var(--ew-ease-in-out);
1652
+ }
1653
+
1654
+ /* 悬浮:极淡底 + 右上角加号徽标弹入(remixicon 交互语言) */
1655
+ .ew-icon-grid__cell:hover {
1656
+ background-color: var(--ew-fill-1);
1657
+ }
1658
+ .ew-icon-grid__cell:hover .ew-icon-grid__name {
1659
+ color: var(--ew-text-primary);
1660
+ }
1661
+ .ew-icon-grid__plus {
1662
+ position: absolute;
1663
+ top: 6px;
1664
+ right: 6px;
1665
+ display: flex;
1666
+ align-items: center;
1667
+ justify-content: center;
1668
+ width: 18px;
1669
+ height: 18px;
1670
+ border-radius: var(--ew-radius-circle);
1671
+ background-color: var(--ew-bg-container);
1672
+ box-shadow: var(--ew-shadow-1);
1673
+ color: var(--ew-text-secondary);
1674
+ opacity: 0;
1675
+ transform: scale(0.5);
1676
+ transition: opacity var(--ew-duration-fast) var(--ew-ease-in-out),
1677
+ transform var(--ew-duration-base) var(--ew-ease-spring),
1678
+ background-color var(--ew-duration-fast) var(--ew-ease-in-out),
1679
+ color var(--ew-duration-fast) var(--ew-ease-in-out);
1680
+ }
1681
+ .ew-icon-grid__cell:hover .ew-icon-grid__plus,
1682
+ .ew-icon-grid__cell.is-copied .ew-icon-grid__plus {
1683
+ opacity: 1;
1684
+ transform: scale(1);
1685
+ }
1686
+
1687
+ /* 点击复制后的成功反馈 */
1688
+ .ew-icon-grid__cell.is-copied {
1689
+ border-color: var(--ew-color-primary-light-5);
1690
+ }
1691
+ .ew-icon-grid__cell.is-copied .ew-icon-grid__plus {
1692
+ background-color: var(--ew-color-primary);
1693
+ color: #ffffff;
1694
+ }
1695
+
1696
+ /* ─── 宿主环境屏蔽 ───
1697
+ 在 markdown/文档站等宿主里,元素级排版规则(如 .vp-doc h2/p/ul)
1698
+ 会以更高优先级渗透进组件内部;这里用双类选择器重申组件自有排版。 */
1699
+ .ew-icon-grid .ew-icon-grid__title {
1700
+ margin: 0 0 var(--ew-space-5);
1701
+ font-size: var(--ew-font-size-md);
1702
+ }
1703
+ /* EwFeatureGrid — 特性展示 */
1704
+
1705
+ /* ══════ bullets 行内特性条(remixicon hero 语言)══════ */
1706
+ .ew-feature-grid.is-bullets {
1707
+ display: flex;
1708
+ flex-wrap: wrap;
1709
+ align-items: center;
1710
+ gap: var(--ew-space-8);
1711
+ }
1712
+ .ew-feature.is-bullets {
1713
+ display: inline-flex;
1714
+ align-items: center;
1715
+ gap: var(--ew-space-3);
1716
+ color: var(--ew-text-primary);
1717
+ }
1718
+ .ew-feature.is-bullets .ew-feature__icon {
1719
+ display: inline-flex;
1720
+ color: var(--ew-text-primary);
1721
+ }
1722
+ .ew-feature.is-bullets .ew-feature__title {
1723
+ margin: 0;
1724
+ font-size: var(--ew-font-size-base);
1725
+ font-weight: var(--ew-font-weight-regular);
1726
+ letter-spacing: 0;
1727
+ color: var(--ew-text-regular);
1728
+ }
1729
+
1730
+ /* 分隔竖线(除第一个) */
1731
+ .ew-feature.is-bullets + .ew-feature.is-bullets {
1732
+ padding-left: var(--ew-space-8);
1733
+ border-left: 1px solid var(--ew-border-color);
1734
+ }
1735
+ .ew-feature.is-bullets .ew-feature__description {
1736
+ display: none;
1737
+ }
1738
+
1739
+ /* ══════ cards 特性卡片 ══════ */
1740
+ .ew-feature-grid.is-cards {
1741
+ display: grid;
1742
+ gap: var(--ew-space-5);
1743
+ }
1744
+ .ew-feature-grid.is-columns-1.is-cards { grid-template-columns: 1fr;
1745
+ }
1746
+ .ew-feature-grid.is-columns-2.is-cards { grid-template-columns: repeat(2, 1fr);
1747
+ }
1748
+ .ew-feature-grid.is-columns-3.is-cards { grid-template-columns: repeat(3, 1fr);
1749
+ }
1750
+ .ew-feature-grid.is-columns-4.is-cards { grid-template-columns: repeat(4, 1fr);
1751
+ }
1752
+ .ew-feature.is-cards {
1753
+ --feature-tone: var(--ew-bg-container);
1754
+ padding: var(--ew-space-8) var(--ew-space-6);
1755
+ border: 1px solid var(--ew-border-color-light);
1756
+ border-radius: var(--ew-radius-lg);
1757
+ background-color: var(--feature-tone);
1758
+ transition: transform var(--ew-duration-base) var(--ew-ease-smooth),
1759
+ box-shadow var(--ew-duration-base) var(--ew-ease-in-out),
1760
+ border-color var(--ew-duration-base) var(--ew-ease-in-out);
1761
+ }
1762
+ .ew-feature.is-cards:hover {
1763
+ transform: translateY(-2px);
1764
+ border-color: var(--ew-color-primary-light-7);
1765
+ box-shadow: var(--ew-shadow-2);
1766
+ }
1767
+ .ew-feature.is-cards .ew-feature__icon {
1768
+ display: inline-flex;
1769
+ align-items: center;
1770
+ justify-content: center;
1771
+ width: 44px;
1772
+ height: 44px;
1773
+ margin-bottom: var(--ew-space-5);
1774
+ border-radius: var(--ew-radius-md);
1775
+ background-color: var(--ew-color-primary-light-9);
1776
+ color: var(--ew-color-primary);
1777
+ }
1778
+ .ew-feature.is-cards .ew-feature__title {
1779
+ margin: 0 0 var(--ew-space-2);
1780
+ font-size: var(--ew-font-size-md);
1781
+ font-weight: var(--ew-font-weight-medium);
1782
+ letter-spacing: 0;
1783
+ color: var(--ew-text-primary);
1784
+ }
1785
+ .ew-feature.is-cards .ew-feature__description {
1786
+ margin: 0;
1787
+ font-size: var(--ew-font-size-sm);
1788
+ line-height: 1.7;
1789
+ color: var(--ew-text-secondary);
1790
+ }
1791
+ @media (max-width: 900px) {
1792
+ .ew-feature-grid.is-columns-3.is-cards,
1793
+ .ew-feature-grid.is-columns-4.is-cards {
1794
+ grid-template-columns: repeat(2, 1fr);
1795
+ }
1796
+ }
1797
+ @media (max-width: 600px) {
1798
+ .ew-feature-grid.is-cards {
1799
+ grid-template-columns: 1fr;
1800
+ }
1801
+ }
1802
+
1803
+ /* ─── 宿主环境屏蔽 ───
1804
+ 在 markdown/文档站等宿主里,元素级排版规则(如 .vp-doc h2/p/ul)
1805
+ 会以更高优先级渗透进组件内部;这里用双类选择器重申组件自有排版。 */
1806
+ .ew-feature .ew-feature__title {
1807
+ margin: 0;
1808
+ font-size: var(--ew-font-size-base);
1809
+ }
1810
+ .ew-feature .ew-feature__description {
1811
+ margin: 0;
1812
+ }
1813
+ /* EwPricingCard — 定价卡 */
1814
+ .ew-pricing-card {
1815
+ position: relative;
1816
+ display: flex;
1817
+ flex-direction: column;
1818
+ padding: var(--ew-space-8);
1819
+ border: 1px solid var(--ew-border-color-light);
1820
+ border-radius: var(--ew-radius-xl);
1821
+ background-color: var(--ew-bg-container);
1822
+ transition: transform var(--ew-duration-base) var(--ew-ease-smooth),
1823
+ box-shadow var(--ew-duration-base) var(--ew-ease-in-out);
1824
+ }
1825
+ .ew-pricing-card:hover {
1826
+ transform: translateY(-2px);
1827
+ box-shadow: var(--ew-shadow-2);
1828
+ }
1829
+
1830
+ /* ─── 深色主推卡(launchos featured)─── */
1831
+ .ew-pricing-card.is-featured {
1832
+ border-color: transparent;
1833
+ background:
1834
+ radial-gradient(120% 90% at 85% 0%, rgba(var(--ew-color-primary-rgb), 0.18), transparent 62%),
1835
+ linear-gradient(165deg, #232329 0%, #121215 70%);
1836
+ color: var(--ew-text-on-dark);
1837
+ box-shadow: var(--ew-shadow-4);
1838
+ }
1839
+ .ew-pricing-card.is-featured:hover {
1840
+ box-shadow: var(--ew-shadow-4);
1841
+ }
1842
+
1843
+ /* ─── 徽章(lime 促销胶囊)─── */
1844
+ .ew-pricing-card__badge {
1845
+ position: absolute;
1846
+ top: var(--ew-space-4);
1847
+ right: var(--ew-space-4);
1848
+ padding: 4px 10px;
1849
+ border-radius: var(--ew-radius-full);
1850
+ background-color: var(--ew-color-accent-lime);
1851
+ color: var(--ew-color-accent-lime-ink);
1852
+ font-size: var(--ew-font-size-xs);
1853
+ font-weight: var(--ew-font-weight-semibold);
1854
+ letter-spacing: 0.02em;
1855
+ }
1856
+
1857
+ /* ─── 标题与描述 ─── */
1858
+ .ew-pricing-card__title {
1859
+ font-size: var(--ew-font-size-xl);
1860
+ font-weight: var(--ew-display-weight-strong);
1861
+ letter-spacing: var(--ew-display-letter-spacing);
1862
+ color: var(--ew-text-primary);
1863
+ }
1864
+ .ew-pricing-card.is-featured .ew-pricing-card__title {
1865
+ color: #ffffff;
1866
+ }
1867
+ .ew-pricing-card__description {
1868
+ margin-top: var(--ew-space-2);
1869
+ font-size: var(--ew-font-size-sm);
1870
+ line-height: 1.7;
1871
+ color: var(--ew-text-secondary);
1872
+ }
1873
+ .ew-pricing-card.is-featured .ew-pricing-card__description {
1874
+ color: rgba(245, 247, 252, 0.7);
1875
+ }
1876
+
1877
+ /* ─── 价格行 ─── */
1878
+ .ew-pricing-card__price-row {
1879
+ display: flex;
1880
+ align-items: baseline;
1881
+ gap: var(--ew-space-3);
1882
+ margin-top: var(--ew-space-6);
1883
+ }
1884
+ .ew-pricing-card__price {
1885
+ font-size: var(--ew-font-size-3xl);
1886
+ font-weight: var(--ew-font-weight-bold);
1887
+ letter-spacing: var(--ew-display-letter-spacing);
1888
+ color: var(--ew-text-primary);
1889
+ }
1890
+ .ew-pricing-card.is-featured .ew-pricing-card__price {
1891
+ color: #ffffff;
1892
+ }
1893
+ .ew-pricing-card__original {
1894
+ font-size: var(--ew-font-size-md);
1895
+ color: var(--ew-text-secondary);
1896
+ }
1897
+ .ew-pricing-card.is-featured .ew-pricing-card__original {
1898
+ color: rgba(245, 247, 252, 0.45);
1899
+ }
1900
+
1901
+ /* ─── 促销注记(launchos 橙色 offer 文案)─── */
1902
+ .ew-pricing-card__note {
1903
+ margin-top: var(--ew-space-1);
1904
+ font-size: var(--ew-font-size-sm);
1905
+ font-weight: var(--ew-font-weight-medium);
1906
+ color: var(--ew-color-accent-orange);
1907
+ }
1908
+
1909
+ /* ─── 特性列表 ─── */
1910
+ .ew-pricing-card__features {
1911
+ display: flex;
1912
+ flex-direction: column;
1913
+ gap: var(--ew-space-3);
1914
+ margin: var(--ew-space-6) 0;
1915
+ }
1916
+ .ew-pricing-card__feature {
1917
+ display: flex;
1918
+ align-items: center;
1919
+ gap: var(--ew-space-2);
1920
+ font-size: var(--ew-font-size-sm);
1921
+ color: var(--ew-text-primary);
1922
+ }
1923
+ .ew-pricing-card.is-featured .ew-pricing-card__feature {
1924
+ color: rgba(245, 247, 252, 0.9);
1925
+ }
1926
+ .ew-pricing-card__check {
1927
+ color: var(--ew-color-primary);
1928
+ flex-shrink: 0;
1929
+ }
1930
+ .ew-pricing-card.is-featured .ew-pricing-card__check {
1931
+ color: var(--ew-color-primary-light-3);
1932
+ }
1933
+
1934
+ /* ─── 底部动作 ─── */
1935
+ .ew-pricing-card__footer {
1936
+ margin-top: auto;
1937
+ display: flex;
1938
+ flex-direction: column;
1939
+ gap: var(--ew-space-3);
1940
+ }
1941
+
1942
+ /* ─── 宿主环境屏蔽 ───
1943
+ 在 markdown/文档站等宿主里,元素级排版规则(如 .vp-doc h2/p/ul)
1944
+ 会以更高优先级渗透进组件内部;这里用双类选择器重申组件自有排版。 */
1945
+ .ew-pricing-card .ew-pricing-card__title {
1946
+ margin: 0;
1947
+ font-size: var(--ew-font-size-xl);
1948
+ }
1949
+ .ew-pricing-card .ew-pricing-card__description {
1950
+ margin: var(--ew-space-2) 0 0;
1951
+ font-size: var(--ew-font-size-sm);
1952
+ }
1953
+ .ew-pricing-card .ew-pricing-card__features {
1954
+ margin: var(--ew-space-5) 0;
1955
+ padding: 0;
1956
+ list-style: none;
1957
+ }
1958
+ /* EwFaq — 常见问题手风琴 */
1959
+ .ew-faq {
1960
+ display: flex;
1961
+ flex-direction: column;
1962
+ gap: var(--ew-space-3);
1963
+ }
1964
+ .ew-faq__item {
1965
+ border: 1px solid var(--ew-border-color-light);
1966
+ border-radius: var(--ew-radius-lg);
1967
+ background-color: var(--ew-bg-container);
1968
+ transition: border-color var(--ew-duration-base) var(--ew-ease-in-out),
1969
+ box-shadow var(--ew-duration-base) var(--ew-ease-in-out);
1970
+ }
1971
+ .ew-faq__item.is-open {
1972
+ border-color: var(--ew-border-color);
1973
+ box-shadow: var(--ew-shadow-1);
1974
+ }
1975
+ .ew-faq__question {
1976
+ display: flex;
1977
+ align-items: center;
1978
+ justify-content: space-between;
1979
+ gap: var(--ew-space-4);
1980
+ width: 100%;
1981
+ padding: 20px var(--ew-space-6);
1982
+ border: none;
1983
+ background: transparent;
1984
+ text-align: left;
1985
+ font-size: var(--ew-font-size-base);
1986
+ font-weight: var(--ew-font-weight-regular);
1987
+ color: var(--ew-text-primary);
1988
+ cursor: pointer;
1989
+ }
1990
+ .ew-faq__question-text {
1991
+ flex: 1;
1992
+ }
1993
+
1994
+ /* launchos 式 +/− 指示器 */
1995
+ .ew-faq__indicator {
1996
+ display: inline-flex;
1997
+ align-items: center;
1998
+ justify-content: center;
1999
+ width: 24px;
2000
+ height: 24px;
2001
+ flex-shrink: 0;
2002
+ font-size: 20px;
2003
+ font-weight: var(--ew-font-weight-regular);
2004
+ line-height: 1;
2005
+ color: var(--ew-text-secondary);
2006
+ transition: color var(--ew-duration-base) var(--ew-ease-in-out);
2007
+ }
2008
+ .ew-faq__item.is-open .ew-faq__indicator {
2009
+ color: var(--ew-color-primary);
2010
+ }
2011
+
2012
+ /* ─── 平滑展开(grid-rows 动画)─── */
2013
+ .ew-faq__answer-wrap {
2014
+ display: grid;
2015
+ grid-template-rows: 0fr;
2016
+ transition: grid-template-rows var(--ew-duration-slow) var(--ew-ease-smooth);
2017
+ }
2018
+ .ew-faq__item.is-open .ew-faq__answer-wrap {
2019
+ grid-template-rows: 1fr;
2020
+ }
2021
+ .ew-faq__answer {
2022
+ overflow: hidden;
2023
+ padding: 0 var(--ew-space-6);
2024
+ font-size: var(--ew-font-size-sm);
2025
+ line-height: var(--ew-line-height-loose);
2026
+ color: var(--ew-text-regular);
2027
+ }
2028
+ .ew-faq__item.is-open .ew-faq__answer {
2029
+ padding-bottom: var(--ew-space-5);
2030
+ }
2031
+ /* EwAlert — 公告/提示条 */
2032
+ .ew-alert {
2033
+ --alert-tone: var(--ew-color-primary);
2034
+ --alert-tone-bg: var(--ew-color-primary-light-9);
2035
+ --alert-tone-rgb: var(--ew-color-primary-rgb);
2036
+
2037
+ display: flex;
2038
+ align-items: flex-start;
2039
+ gap: var(--ew-space-3);
2040
+ padding: var(--ew-space-4) var(--ew-space-5);
2041
+ border: 1px solid color-mix(in srgb, var(--alert-tone) 22%, transparent);
2042
+ border-radius: var(--ew-radius-lg);
2043
+ background-color: var(--alert-tone-bg);
2044
+ font-size: var(--ew-font-size-sm);
2045
+ line-height: var(--ew-line-height-base);
2046
+ color: var(--ew-text-primary);
2047
+ }
2048
+ .ew-alert.is-success {
2049
+ --alert-tone: var(--ew-color-success);
2050
+ --alert-tone-bg: var(--ew-color-success-light-9);
2051
+ --alert-tone-rgb: var(--ew-color-success-rgb);
2052
+ }
2053
+ .ew-alert.is-warning {
2054
+ --alert-tone: var(--ew-color-warning);
2055
+ --alert-tone-bg: var(--ew-color-warning-light-9);
2056
+ --alert-tone-rgb: var(--ew-color-warning-rgb);
2057
+ }
2058
+ .ew-alert.is-danger {
2059
+ --alert-tone: var(--ew-color-danger);
2060
+ --alert-tone-bg: var(--ew-color-danger-light-9);
2061
+ --alert-tone-rgb: var(--ew-color-danger-rgb);
2062
+ }
2063
+ .ew-alert.is-neutral {
2064
+ --alert-tone: var(--ew-color-info);
2065
+ --alert-tone-bg: var(--ew-fill-1);
2066
+ --alert-tone-rgb: var(--ew-color-info-rgb);
2067
+ }
2068
+
2069
+ /* ─── 横幅胶囊形态(remixicon 顶部 sponsor 横幅语言)─── */
2070
+ .ew-alert.is-pill {
2071
+ align-items: center;
2072
+ width: fit-content;
2073
+ max-width: 100%;
2074
+ padding: 6px 6px 6px 6px;
2075
+ border: none;
2076
+ border-radius: var(--ew-radius-full);
2077
+ background-color: color-mix(in srgb, var(--alert-tone-rgb) 0%, var(--ew-bg-soft));
2078
+ box-shadow: var(--ew-shadow-1);
2079
+ }
2080
+
2081
+ /* ─── 图标 ─── */
2082
+ .ew-alert__icon {
2083
+ display: inline-flex;
2084
+ align-items: center;
2085
+ justify-content: center;
2086
+ flex-shrink: 0;
2087
+ color: var(--alert-tone);
2088
+ }
2089
+ .ew-alert.is-pill .ew-alert__icon {
2090
+ width: 26px;
2091
+ height: 26px;
2092
+ border-radius: var(--ew-radius-full);
2093
+ background-color: var(--ew-color-ink);
2094
+ color: #ffffff;
2095
+ }
2096
+ html.dark .ew-alert.is-pill .ew-alert__icon {
2097
+ background-color: var(--ew-text-primary);
2098
+ color: var(--ew-color-ink);
2099
+ }
2100
+
2101
+ /* ─── 内容 ─── */
2102
+ .ew-alert__content {
2103
+ flex: 1;
2104
+ min-width: 0;
2105
+ }
2106
+ .ew-alert.is-pill .ew-alert__content {
2107
+ display: inline-flex;
2108
+ align-items: center;
2109
+ gap: var(--ew-space-2);
2110
+ font-weight: var(--ew-font-weight-medium);
2111
+ }
2112
+ .ew-alert__title {
2113
+ margin-right: var(--ew-space-1);
2114
+ font-weight: var(--ew-font-weight-semibold);
2115
+ }
2116
+
2117
+ /* ─── 动作位 ─── */
2118
+ .ew-alert__action {
2119
+ display: inline-flex;
2120
+ align-items: center;
2121
+ flex-shrink: 0;
2122
+ margin-left: var(--ew-space-2);
2123
+ color: var(--alert-tone);
2124
+ font-weight: var(--ew-font-weight-medium);
2125
+ }
2126
+
2127
+ /* ─── 关闭钮 ─── */
2128
+ .ew-alert__close {
2129
+ display: inline-flex;
2130
+ align-items: center;
2131
+ justify-content: center;
2132
+ flex-shrink: 0;
2133
+ margin: -2px -2px 0 0;
2134
+ padding: 2px;
2135
+ border: none;
2136
+ border-radius: var(--ew-radius-sm);
2137
+ background: transparent;
2138
+ color: var(--ew-text-secondary);
2139
+ cursor: pointer;
2140
+ transition: color var(--ew-duration-fast) var(--ew-ease-in-out),
2141
+ background-color var(--ew-duration-fast) var(--ew-ease-in-out);
2142
+ }
2143
+ .ew-alert__close:hover {
2144
+ color: var(--ew-text-primary);
2145
+ background-color: rgba(var(--alert-tone-rgb), 0.12);
2146
+ }
2147
+
2148
+ /* 关闭后隐藏(visible=false → is-hidden) */
2149
+ .ew-alert.is-hidden {
2150
+ display: none;
2151
+ }
2152
+ /* EwCodeBlock — macOS 窗框式命令/代码块
2153
+ 颜色全部走 --ew-* 语义令牌,明暗双主题自动跟随 */
2154
+ .ew-code-block {
2155
+ overflow: hidden;
2156
+ border: 1px solid var(--ew-border-color-light);
2157
+ border-radius: var(--ew-radius-lg);
2158
+ background-color: var(--ew-bg-container);
2159
+ color: var(--ew-text-primary);
2160
+ box-shadow: var(--ew-shadow-1);
2161
+ }
2162
+
2163
+ /* ─── 窗框标题栏:红绿灯 + 标题 + 复制 ─── */
2164
+ .ew-code-block__titlebar {
2165
+ display: flex;
2166
+ align-items: center;
2167
+ gap: var(--ew-space-3);
2168
+ padding: var(--ew-space-3) var(--ew-space-4);
2169
+ border-bottom: 1px solid var(--ew-border-color-light);
2170
+ background-color: var(--ew-bg-muted);
2171
+ }
2172
+ .ew-code-block__lights {
2173
+ display: inline-flex;
2174
+ align-items: center;
2175
+ gap: 8px;
2176
+ flex-shrink: 0;
2177
+ }
2178
+ .ew-code-block__light {
2179
+ width: 12px;
2180
+ height: 12px;
2181
+ border-radius: var(--ew-radius-circle);
2182
+ }
2183
+ .ew-code-block__light.is-red { background-color: #ff5f57;
2184
+ }
2185
+ .ew-code-block__light.is-yellow { background-color: #febc2e;
2186
+ }
2187
+ .ew-code-block__light.is-green { background-color: #28c840;
2188
+ }
2189
+ .ew-code-block__title {
2190
+ flex: 1;
2191
+ min-width: 0;
2192
+ overflow: hidden;
2193
+ text-overflow: ellipsis;
2194
+ white-space: nowrap;
2195
+ font-size: var(--ew-font-size-xs);
2196
+ color: var(--ew-text-secondary);
2197
+ }
2198
+ .ew-code-block__body {
2199
+ display: flex;
2200
+ align-items: center;
2201
+ gap: var(--ew-space-3);
2202
+ padding: var(--ew-space-4) var(--ew-space-5);
2203
+ overflow-x: auto;
2204
+ }
2205
+ .ew-code-block__prefix {
2206
+ flex-shrink: 0;
2207
+ font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
2208
+ font-size: var(--ew-font-size-sm);
2209
+ color: var(--ew-color-success);
2210
+ user-select: none;
2211
+ }
2212
+ .ew-code-block__code {
2213
+ flex: 1;
2214
+ font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
2215
+ font-size: var(--ew-font-size-sm);
2216
+ line-height: 1.7;
2217
+ white-space: pre;
2218
+ color: var(--ew-text-primary);
2219
+ }
2220
+
2221
+ /* ─── 复制钮(标题栏右侧)─── */
2222
+ .ew-code-block__copy {
2223
+ display: inline-flex;
2224
+ align-items: center;
2225
+ gap: 4px;
2226
+ flex-shrink: 0;
2227
+ margin-left: auto;
2228
+ padding: 4px 8px;
2229
+ border: none;
2230
+ border-radius: var(--ew-radius-sm);
2231
+ background: transparent;
2232
+ color: var(--ew-text-secondary);
2233
+ font-size: var(--ew-font-size-xs);
2234
+ cursor: pointer;
2235
+ transition: background-color var(--ew-duration-fast) var(--ew-ease-in-out),
2236
+ color var(--ew-duration-fast) var(--ew-ease-in-out);
2237
+ }
2238
+ .ew-code-block__copy:hover {
2239
+ background: var(--ew-fill-2);
2240
+ color: var(--ew-text-primary);
2241
+ }
2242
+ .ew-code-block__copy.is-copied {
2243
+ color: var(--ew-color-success);
2244
+ }
2245
+ .ew-code-block__copy-text {
2246
+ white-space: nowrap;
2247
+ }
2248
+
2249
+ /* ─── 宿主环境屏蔽 ───
2250
+ markdown/文档站宿主的行内 code 规则(底色/内边距)会以更高优先级
2251
+ 渗透进组件的 code 元素,用双类选择器重申自有排版 */
2252
+ .ew-code-block .ew-code-block__code {
2253
+ padding: 0;
2254
+ background: transparent;
2255
+ border-radius: 0;
2256
+ font-size: var(--ew-font-size-sm);
2257
+ color: var(--ew-text-primary);
2258
+ }
2259
+ /* EwKeycap — 键盘按键展示 */
2260
+ .ew-keycap {
2261
+ display: inline-flex;
2262
+ gap: 4px;
2263
+ vertical-align: baseline;
2264
+ }
2265
+ .ew-keycap__key {
2266
+ display: inline-flex;
2267
+ align-items: center;
2268
+ justify-content: center;
2269
+ min-width: 22px;
2270
+ height: 22px;
2271
+ padding: 0 5px;
2272
+ border: 1px solid var(--ew-border-color);
2273
+ border-bottom-width: 2px;
2274
+ border-radius: var(--ew-radius-sm);
2275
+ background-color: var(--ew-bg-container);
2276
+ box-shadow: var(--ew-shadow-1);
2277
+ font-family: var(--ew-font-family);
2278
+ font-size: var(--ew-font-size-xs);
2279
+ font-weight: var(--ew-font-weight-medium);
2280
+ color: var(--ew-text-primary);
2281
+ line-height: 1;
2282
+ }
2283
+ /* EwStatistic — 数据指标 */
2284
+ .ew-statistic.is-center {
2285
+ text-align: center;
2286
+ }
2287
+ .ew-statistic__value {
2288
+ display: grid;
2289
+ justify-items: start;
2290
+ font-size: 34px;
2291
+ font-weight: var(--ew-display-weight-strong);
2292
+ letter-spacing: var(--ew-display-letter-spacing);
2293
+ line-height: var(--ew-display-line-height);
2294
+ color: var(--ew-text-primary);
2295
+ font-variant-numeric: tabular-nums;
2296
+ font-feature-settings: 'tnum' 1;
2297
+ }
2298
+
2299
+ /* 占位与数字叠放在同一网格单元:占位以最终值撑宽,
2300
+ 滚动过程中容器宽度与居中位置保持不变 */
2301
+ .ew-statistic__sizer,
2302
+ .ew-statistic__num {
2303
+ grid-area: 1 / 1;
2304
+ }
2305
+ .ew-statistic__sizer {
2306
+ visibility: hidden;
2307
+ white-space: nowrap;
2308
+ }
2309
+ .ew-statistic.is-center .ew-statistic__value {
2310
+ justify-items: center;
2311
+ }
2312
+ .ew-statistic__num {
2313
+ white-space: nowrap;
2314
+ }
2315
+ .ew-statistic__label {
2316
+ margin-top: var(--ew-space-2);
2317
+ font-size: var(--ew-font-size-sm);
2318
+ color: var(--ew-text-secondary);
2319
+ }
2320
+ /* EwQuote — 引用/评价卡 */
2321
+ .ew-quote {
2322
+ display: flex;
2323
+ flex-direction: column;
2324
+ gap: var(--ew-space-4);
2325
+ padding: var(--ew-space-6);
2326
+ border: 1px solid var(--ew-border-color-light);
2327
+ border-radius: var(--ew-radius-lg);
2328
+ background-color: var(--ew-bg-container);
2329
+ margin: 0;
2330
+ }
2331
+ .ew-quote.is-sticker {
2332
+ border: 3px solid var(--ew-border-sticker);
2333
+ border-radius: var(--ew-radius-xl);
2334
+ background-color: var(--ew-fill-1);
2335
+ box-shadow: var(--ew-shadow-2);
2336
+ }
2337
+ .ew-quote__text {
2338
+ position: relative;
2339
+ margin: 0;
2340
+ font-size: var(--ew-font-size-base);
2341
+ line-height: 1.75;
2342
+ color: var(--ew-text-regular);
2343
+ }
2344
+
2345
+ /* 引号装饰 */
2346
+ .ew-quote__text::before {
2347
+ content: '\201C';
2348
+ display: block;
2349
+ margin-bottom: var(--ew-space-1);
2350
+ font-size: 30px;
2351
+ line-height: 1;
2352
+ font-weight: var(--ew-display-weight-strong);
2353
+ color: var(--ew-color-primary-light-5);
2354
+ }
2355
+ .ew-quote__author {
2356
+ display: flex;
2357
+ align-items: center;
2358
+ flex-wrap: wrap;
2359
+ gap: var(--ew-space-2);
2360
+ font-size: var(--ew-font-size-sm);
2361
+ }
2362
+ .ew-quote__name {
2363
+ font-weight: var(--ew-font-weight-semibold);
2364
+ color: var(--ew-text-primary);
2365
+ }
2366
+ .ew-quote__role {
2367
+ color: var(--ew-text-secondary);
2368
+ }
2369
+ .ew-quote__source {
2370
+ display: inline-flex;
2371
+ align-items: center;
2372
+ gap: 2px;
2373
+ margin-left: auto;
2374
+ color: var(--ew-color-primary);
2375
+ font-weight: var(--ew-font-weight-medium);
2376
+ }
2377
+
2378
+ /* ─── 宿主环境屏蔽 ───
2379
+ 在 markdown/文档站等宿主里,元素级排版规则(如 .vp-doc h2/p/ul)
2380
+ 会以更高优先级渗透进组件内部;这里用双类选择器重申组件自有排版。 */
2381
+ .ew-quote .ew-quote__text {
2382
+ margin: 0;
2383
+ padding: 0;
2384
+ border: none;
2385
+ font-size: var(--ew-font-size-base);
2386
+ }
2387
+ /* EwConfigProvider — 局部换肤包裹 */
2388
+ .ew-config-provider {
2389
+ display: block;
2390
+ }
2391
+ /* EwTabs — 标签页/分段控件 */
2392
+ .ew-tabs {
2393
+ display: inline-flex;
2394
+ align-items: center;
2395
+ max-width: 100%;
2396
+ }
2397
+
2398
+ /* ══════ capsule 分段胶囊 ══════ */
2399
+ .ew-tabs.is-capsule {
2400
+ position: relative;
2401
+ gap: 2px;
2402
+ padding: 3px;
2403
+ border-radius: var(--ew-radius-full);
2404
+ background-color: var(--ew-fill-1);
2405
+ }
2406
+
2407
+ /* 弹性滑块:跟随激活项平滑移动 */
2408
+ .ew-tabs.is-capsule .ew-tabs__thumb {
2409
+ position: absolute;
2410
+ top: 3px;
2411
+ bottom: 3px;
2412
+ left: 0;
2413
+ border-radius: var(--ew-radius-full);
2414
+ background-color: var(--ew-bg-container);
2415
+ box-shadow: var(--ew-shadow-1);
2416
+ transition: transform var(--ew-duration-slow) var(--ew-ease-spring),
2417
+ width var(--ew-duration-slow) var(--ew-ease-spring);
2418
+ }
2419
+ .ew-tabs.is-capsule .ew-tabs__item {
2420
+ position: relative;
2421
+ z-index: 1;
2422
+ display: inline-flex;
2423
+ align-items: center;
2424
+ gap: 6px;
2425
+ height: 30px;
2426
+ padding: 0 14px;
2427
+ border: none;
2428
+ border-radius: var(--ew-radius-full);
2429
+ background: transparent;
2430
+ font-size: var(--ew-font-size-sm);
2431
+ font-weight: var(--ew-font-weight-medium);
2432
+ color: var(--ew-text-secondary);
2433
+ white-space: nowrap;
2434
+ cursor: pointer;
2435
+ transition: color var(--ew-duration-base) var(--ew-ease-in-out);
2436
+ }
2437
+ .ew-tabs.is-capsule .ew-tabs__item:hover:not(.is-active):not(.is-disabled) {
2438
+ color: var(--ew-text-primary);
2439
+ }
2440
+ .ew-tabs.is-capsule .ew-tabs__item.is-active {
2441
+ color: var(--ew-text-primary);
2442
+ }
2443
+ .ew-tabs.is-capsule.is-small .ew-tabs__item {
2444
+ height: 26px;
2445
+ padding: 0 11px;
2446
+ font-size: var(--ew-font-size-xs);
2447
+ }
2448
+ .ew-tabs.is-capsule.is-large .ew-tabs__item {
2449
+ height: 36px;
2450
+ padding: 0 18px;
2451
+ font-size: var(--ew-font-size-base);
2452
+ }
2453
+
2454
+ /* ══════ underline 下划线 ══════ */
2455
+ .ew-tabs.is-underline {
2456
+ gap: var(--ew-space-2);
2457
+ border-bottom: 1px solid var(--ew-border-color-light);
2458
+ }
2459
+ .ew-tabs.is-underline .ew-tabs__item {
2460
+ position: relative;
2461
+ display: inline-flex;
2462
+ align-items: center;
2463
+ gap: 6px;
2464
+ padding: 10px 4px;
2465
+ margin-bottom: -1px;
2466
+ border: none;
2467
+ background: transparent;
2468
+ font-size: var(--ew-font-size-base);
2469
+ color: var(--ew-text-secondary);
2470
+ white-space: nowrap;
2471
+ cursor: pointer;
2472
+ transition: color var(--ew-duration-base) var(--ew-ease-in-out);
2473
+ }
2474
+ .ew-tabs.is-underline .ew-tabs__item::after {
2475
+ content: '';
2476
+ position: absolute;
2477
+ left: 0;
2478
+ right: 0;
2479
+ bottom: 0;
2480
+ height: 2px;
2481
+ border-radius: var(--ew-radius-full);
2482
+ background-color: transparent;
2483
+ transition: background-color var(--ew-duration-base) var(--ew-ease-in-out);
2484
+ }
2485
+ .ew-tabs.is-underline .ew-tabs__item:hover:not(.is-active):not(.is-disabled) {
2486
+ color: var(--ew-text-primary);
2487
+ }
2488
+ .ew-tabs.is-underline .ew-tabs__item.is-active {
2489
+ color: var(--ew-color-primary);
2490
+ }
2491
+ .ew-tabs.is-underline .ew-tabs__item.is-active::after {
2492
+ background-color: var(--ew-color-primary);
2493
+ }
2494
+
2495
+ /* ─── 禁用 ─── */
2496
+ .ew-tabs .ew-tabs__item.is-disabled {
2497
+ cursor: not-allowed;
2498
+ opacity: 0.45;
2499
+ }
2500
+ /* EwSwitch — 开关 */
2501
+ .ew-switch {
2502
+ position: relative;
2503
+ display: inline-flex;
2504
+ align-items: center;
2505
+ width: 40px;
2506
+ height: 22px;
2507
+ padding: 2px;
2508
+ border: none;
2509
+ border-radius: var(--ew-radius-full);
2510
+ background-color: var(--ew-fill-3);
2511
+ cursor: pointer;
2512
+ transition: background-color var(--ew-duration-base) var(--ew-ease-in-out);
2513
+ }
2514
+ .ew-switch--small {
2515
+ width: 32px;
2516
+ height: 18px;
2517
+ padding: 2px;
2518
+ }
2519
+ .ew-switch--large {
2520
+ width: 48px;
2521
+ height: 26px;
2522
+ padding: 3px;
2523
+ }
2524
+ .ew-switch__knob {
2525
+ width: 18px;
2526
+ height: 18px;
2527
+ border-radius: var(--ew-radius-circle);
2528
+ background-color: #ffffff;
2529
+ box-shadow: var(--ew-shadow-1);
2530
+ transform: translateX(0);
2531
+ transition: transform var(--ew-duration-base) var(--ew-ease-smooth);
2532
+ }
2533
+ .ew-switch--small .ew-switch__knob {
2534
+ width: 14px;
2535
+ height: 14px;
2536
+ }
2537
+ .ew-switch--large .ew-switch__knob {
2538
+ width: 20px;
2539
+ height: 20px;
2540
+ }
2541
+ .ew-switch.is-on {
2542
+ background-color: var(--ew-color-primary);
2543
+ }
2544
+ .ew-switch.is-on .ew-switch__knob {
2545
+ transform: translateX(18px);
2546
+ }
2547
+ .ew-switch--small.is-on .ew-switch__knob {
2548
+ transform: translateX(14px);
2549
+ }
2550
+ .ew-switch--large.is-on .ew-switch__knob {
2551
+ transform: translateX(22px);
2552
+ }
2553
+ .ew-switch.is-disabled {
2554
+ cursor: not-allowed;
2555
+ opacity: 0.5;
2556
+ }
2557
+ /* EwContainer — 内容容器 */
2558
+ .ew-container.is-default {
2559
+ max-width: var(--ew-container-width, 1152px);
2560
+ }
2561
+ .ew-container.is-narrow {
2562
+ max-width: min(var(--ew-container-width, 1152px), 920px);
2563
+ }
2564
+ .ew-container.is-wide {
2565
+ max-width: max(var(--ew-container-width, 1152px), 1360px);
2566
+ }
2567
+ .ew-container.is-full {
2568
+ max-width: 100%;
2569
+ }
2570
+ .ew-container {
2571
+ width: 100%;
2572
+ margin-inline: auto;
2573
+ padding-inline: var(--ew-space-6);
2574
+ }
2575
+ /* EwAvatar — 头像 */
2576
+ .ew-avatar {
2577
+ position: relative;
2578
+ display: inline-flex;
2579
+ align-items: center;
2580
+ justify-content: center;
2581
+ overflow: hidden;
2582
+ flex-shrink: 0;
2583
+ width: 40px;
2584
+ height: 40px;
2585
+ border-radius: var(--ew-radius-circle);
2586
+ background-color: var(--ew-color-primary-light-9);
2587
+ color: var(--ew-color-primary);
2588
+ font-weight: var(--ew-font-weight-medium);
2589
+ user-select: none;
2590
+ }
2591
+ .ew-avatar.is-square {
2592
+ border-radius: var(--ew-radius-md);
2593
+ }
2594
+ .ew-avatar--small {
2595
+ width: 28px;
2596
+ height: 28px;
2597
+ font-size: var(--ew-font-size-xs);
2598
+ }
2599
+ .ew-avatar.is-default {
2600
+ font-size: var(--ew-font-size-sm);
2601
+ }
2602
+ .ew-avatar--large {
2603
+ width: 56px;
2604
+ height: 56px;
2605
+ font-size: var(--ew-font-size-lg);
2606
+ }
2607
+ .ew-avatar__img {
2608
+ width: 100%;
2609
+ height: 100%;
2610
+ object-fit: cover;
2611
+ }
2612
+ .ew-avatar__fallback {
2613
+ line-height: 1;
2614
+ }
2615
+ /* EwAvatarGroup — 头像组 */
2616
+ .ew-avatar-group {
2617
+ display: inline-flex;
2618
+ align-items: center;
2619
+ }
2620
+ .ew-avatar-group > *:not(:first-child) {
2621
+ margin-left: -8px;
2622
+ }
2623
+ .ew-avatar-group > * {
2624
+ box-shadow: 0 0 0 2px var(--ew-bg-page);
2625
+ }
2626
+ .ew-avatar-group__more {
2627
+ display: inline-flex;
2628
+ align-items: center;
2629
+ justify-content: center;
2630
+ border-radius: var(--ew-radius-circle);
2631
+ background-color: var(--ew-fill-2);
2632
+ color: var(--ew-text-secondary);
2633
+ font-size: var(--ew-font-size-xs);
2634
+ font-weight: var(--ew-font-weight-medium);
2635
+ }
2636
+ /* EwTimeline — 时间线/更新日志 */
2637
+ .ew-timeline {
2638
+ position: relative;
2639
+ padding-left: 24px;
2640
+ }
2641
+ .ew-timeline::before {
2642
+ content: '';
2643
+ position: absolute;
2644
+ left: 5px;
2645
+ top: 8px;
2646
+ bottom: 8px;
2647
+ width: 1px;
2648
+ background-color: var(--ew-border-color);
2649
+ }
2650
+ .ew-timeline__item {
2651
+ position: relative;
2652
+ padding-bottom: var(--ew-space-8);
2653
+ }
2654
+ .ew-timeline__item:last-child {
2655
+ padding-bottom: 0;
2656
+ }
2657
+ .ew-timeline__dot {
2658
+ position: absolute;
2659
+ left: -24px;
2660
+ top: 7px;
2661
+ width: 11px;
2662
+ height: 11px;
2663
+ border-radius: var(--ew-radius-circle);
2664
+ background-color: var(--ew-bg-page);
2665
+ border: 2px solid var(--ew-border-color-dark);
2666
+ box-sizing: border-box;
2667
+ transition: border-color var(--ew-duration-base) var(--ew-ease-in-out),
2668
+ background-color var(--ew-duration-base) var(--ew-ease-in-out);
2669
+ }
2670
+ .ew-timeline__item.is-latest .ew-timeline__dot {
2671
+ border-color: var(--ew-color-primary);
2672
+ background-color: var(--ew-color-primary);
2673
+ box-shadow: 0 0 0 3px rgba(var(--ew-color-primary-rgb), 0.15);
2674
+ }
2675
+ .ew-timeline__meta {
2676
+ display: flex;
2677
+ align-items: center;
2678
+ gap: var(--ew-space-2);
2679
+ margin-bottom: var(--ew-space-2);
2680
+ }
2681
+ .ew-timeline__date {
2682
+ font-size: var(--ew-font-size-xs);
2683
+ color: var(--ew-text-secondary);
2684
+ font-variant-numeric: tabular-nums;
2685
+ }
2686
+ .ew-timeline__title {
2687
+ font-size: var(--ew-font-size-md);
2688
+ font-weight: var(--ew-font-weight-medium);
2689
+ letter-spacing: 0;
2690
+ color: var(--ew-text-primary);
2691
+ }
2692
+ .ew-timeline__description {
2693
+ margin-top: var(--ew-space-1);
2694
+ font-size: var(--ew-font-size-sm);
2695
+ line-height: 1.7;
2696
+ color: var(--ew-text-secondary);
2697
+ max-width: 560px;
2698
+ }
2699
+
2700
+ /* ─── 宿主环境屏蔽 ───
2701
+ 在 markdown/文档站等宿主里,元素级排版规则(如 .vp-doc h2/p/ul)
2702
+ 会以更高优先级渗透进组件内部;这里用双类选择器重申组件自有排版。 */
2703
+ .ew-timeline .ew-timeline__title {
2704
+ margin: 0;
2705
+ font-size: var(--ew-font-size-md);
2706
+ }
2707
+ .ew-timeline .ew-timeline__description {
2708
+ margin: var(--ew-space-1) 0 0;
2709
+ font-size: var(--ew-font-size-sm);
2710
+ }
2711
+ /* EwComparisonTable — 功能对比表 */
2712
+ .ew-comparison-table {
2713
+ overflow-x: auto;
2714
+ border: 1px solid var(--ew-border-color-light);
2715
+ border-radius: var(--ew-radius-lg);
2716
+ }
2717
+ .ew-comparison-table table {
2718
+ width: 100%;
2719
+ border-collapse: collapse;
2720
+ min-width: 560px;
2721
+ }
2722
+ .ew-comparison-table th,
2723
+ .ew-comparison-table td {
2724
+ padding: 14px 20px;
2725
+ text-align: center;
2726
+ font-size: var(--ew-font-size-sm);
2727
+ border-bottom: 1px solid var(--ew-border-color-light);
2728
+ }
2729
+ .ew-comparison-table tbody tr:last-child th,
2730
+ .ew-comparison-table tbody tr:last-child td {
2731
+ border-bottom: none;
2732
+ }
2733
+ .ew-comparison-table thead th {
2734
+ font-weight: var(--ew-font-weight-medium);
2735
+ color: var(--ew-text-primary);
2736
+ background-color: var(--ew-bg-muted);
2737
+ }
2738
+ .ew-comparison-table tbody tr:hover td {
2739
+ background-color: color-mix(in srgb, var(--ew-bg-muted) 55%, transparent);
2740
+ }
2741
+
2742
+ /* featured 列:淡主色底贯穿 */
2743
+ .ew-comparison-table th.is-featured,
2744
+ .ew-comparison-table td.is-featured {
2745
+ background-color: var(--ew-color-primary-light-9);
2746
+ }
2747
+
2748
+ /* 功能名列 */
2749
+ .ew-comparison-table__feature-col {
2750
+ text-align: left !important;
2751
+ width: 32%;
2752
+ }
2753
+ .ew-comparison-table__feature-label {
2754
+ display: block;
2755
+ color: var(--ew-text-primary);
2756
+ font-weight: var(--ew-font-weight-regular);
2757
+ }
2758
+ .ew-comparison-table__feature-desc {
2759
+ display: block;
2760
+ margin-top: 2px;
2761
+ font-size: var(--ew-font-size-xs);
2762
+ color: var(--ew-text-secondary);
2763
+ }
2764
+ .ew-comparison-table__col-label {
2765
+ display: block;
2766
+ }
2767
+ .ew-comparison-table__col-note {
2768
+ display: block;
2769
+ margin-top: 2px;
2770
+ font-size: var(--ew-font-size-xs);
2771
+ font-weight: var(--ew-font-weight-regular);
2772
+ color: var(--ew-text-secondary);
2773
+ }
2774
+ .ew-comparison-table__check {
2775
+ color: var(--ew-color-primary);
2776
+ vertical-align: middle;
2777
+ }
2778
+ .ew-comparison-table__dash {
2779
+ color: var(--ew-text-disabled);
2780
+ }
2781
+ .ew-comparison-table__text {
2782
+ color: var(--ew-text-regular);
2783
+ }
2784
+ /* EwCta — 行动召唤区 */
2785
+ .ew-cta {
2786
+ padding: var(--ew-space-16) 0;
2787
+ }
2788
+ .ew-cta.is-tinted {
2789
+ background-image: var(--ew-gradient-hero);
2790
+ }
2791
+ .ew-cta__inner {
2792
+ text-align: center;
2793
+ }
2794
+ .ew-cta__title {
2795
+ font-size: clamp(26px, 3vw, 36px);
2796
+ font-weight: var(--ew-display-weight);
2797
+ letter-spacing: var(--ew-display-letter-spacing);
2798
+ line-height: var(--ew-display-line-height);
2799
+ text-wrap: balance;
2800
+ }
2801
+ .ew-cta__description {
2802
+ max-width: 520px;
2803
+ margin: var(--ew-space-4) auto 0;
2804
+ font-size: var(--ew-font-size-md);
2805
+ line-height: 1.75;
2806
+ color: var(--ew-text-secondary);
2807
+ }
2808
+ .ew-cta__actions {
2809
+ display: flex;
2810
+ flex-wrap: wrap;
2811
+ justify-content: center;
2812
+ gap: var(--ew-space-3);
2813
+ margin-top: var(--ew-space-8);
2814
+ }
2815
+ .ew-cta__body {
2816
+ margin-top: var(--ew-space-8);
2817
+ }
2818
+
2819
+ /* ─── 宿主环境屏蔽 ───
2820
+ 在 markdown/文档站等宿主里,元素级排版规则(如 .vp-doc h2/p/ul)
2821
+ 会以更高优先级渗透进组件内部;这里用双类选择器重申组件自有排版。 */
2822
+ .ew-cta .ew-cta__title {
2823
+ margin: 0;
2824
+ padding-top: 0;
2825
+ border-top: none;
2826
+ font-size: clamp(26px, 3vw, 36px);
2827
+ font-weight: var(--ew-display-weight);
2828
+ letter-spacing: var(--ew-display-letter-spacing);
2829
+ line-height: var(--ew-display-line-height);
2830
+ }
2831
+ .ew-cta .ew-cta__description {
2832
+ margin: var(--ew-space-4) auto 0;
2833
+ text-align: center;
2834
+ font-size: var(--ew-font-size-md);
2835
+ }
2836
+ /* EwNewsletter — 邮件订阅框 */
2837
+ .ew-newsletter {
2838
+ display: flex;
2839
+ align-items: center;
2840
+ gap: var(--ew-space-2);
2841
+ width: 100%;
2842
+ max-width: 440px;
2843
+ margin-inline: auto;
2844
+ padding: 5px 5px 5px 16px;
2845
+ border: 1px solid var(--ew-border-color-light);
2846
+ border-radius: var(--ew-radius-full);
2847
+ background-color: var(--ew-bg-container);
2848
+ box-shadow: var(--ew-shadow-1);
2849
+ transition: box-shadow var(--ew-duration-base) var(--ew-ease-in-out),
2850
+ border-color var(--ew-duration-base) var(--ew-ease-in-out);
2851
+ }
2852
+ .ew-newsletter:focus-within {
2853
+ border-color: var(--ew-color-primary-light-5);
2854
+ box-shadow: var(--ew-shadow-2);
2855
+ }
2856
+ .ew-newsletter__icon {
2857
+ flex-shrink: 0;
2858
+ color: var(--ew-text-placeholder);
2859
+ }
2860
+ .ew-newsletter__input {
2861
+ flex: 1;
2862
+ min-width: 0;
2863
+ border: none;
2864
+ background: transparent;
2865
+ font-size: var(--ew-font-size-sm);
2866
+ color: var(--ew-text-primary);
2867
+ outline: none;
2868
+ }
2869
+ .ew-newsletter__input::placeholder {
2870
+ color: var(--ew-text-placeholder);
2871
+ }
2872
+
2873
+ /* 焦点光环由整条订阅框(:focus-within)承担,内部 input 不再自绘 */
2874
+ .ew-newsletter__input:focus,
2875
+ .ew-newsletter__input:focus-visible {
2876
+ outline: none;
2877
+ box-shadow: none;
2878
+ border-radius: 0;
2879
+ }
2880
+
2881
+ /* 成功态 */
2882
+ .ew-newsletter.is-subscribed {
2883
+ justify-content: center;
2884
+ border-color: var(--ew-color-success-light-7);
2885
+ background-color: var(--ew-color-success-light-9);
2886
+ }
2887
+ .ew-newsletter__done {
2888
+ display: inline-flex;
2889
+ align-items: center;
2890
+ gap: var(--ew-space-2);
2891
+ padding: 8px 4px;
2892
+ font-size: var(--ew-font-size-sm);
2893
+ font-weight: var(--ew-font-weight-medium);
2894
+ color: var(--ew-color-success);
2895
+ }
2896
+ /* EwLogoCloud — 用户/合作品牌墙 */
2897
+ .ew-logo-cloud__title {
2898
+ margin-bottom: var(--ew-space-6);
2899
+ text-align: center;
2900
+ font-size: var(--ew-font-size-sm);
2901
+ letter-spacing: 0.08em;
2902
+ color: var(--ew-text-secondary);
2903
+ }
2904
+ .ew-logo-cloud__grid {
2905
+ display: grid;
2906
+ grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
2907
+ gap: var(--ew-space-3);
2908
+ }
2909
+ .ew-logo-cloud__item {
2910
+ display: flex;
2911
+ align-items: center;
2912
+ justify-content: center;
2913
+ gap: var(--ew-space-2);
2914
+ padding: 18px 12px;
2915
+ border-radius: var(--ew-radius-md);
2916
+ color: var(--ew-text-secondary);
2917
+ transition: color var(--ew-duration-base) var(--ew-ease-in-out),
2918
+ background-color var(--ew-duration-base) var(--ew-ease-in-out);
2919
+ }
2920
+ .ew-logo-cloud__item:hover {
2921
+ color: var(--ew-text-primary);
2922
+ background-color: var(--ew-fill-1);
2923
+ }
2924
+ .ew-logo-cloud__label {
2925
+ font-weight: var(--ew-display-weight-strong);
2926
+ letter-spacing: var(--ew-display-letter-spacing);
2927
+ font-size: var(--ew-font-size-md);
2928
+ white-space: nowrap;
2929
+ overflow: hidden;
2930
+ text-overflow: ellipsis;
2931
+ }
2932
+
2933
+ /* ─── 宿主环境屏蔽 ───
2934
+ 在 markdown/文档站等宿主里,元素级排版规则(如 .vp-doc h2/p/ul)
2935
+ 会以更高优先级渗透进组件内部;这里用双类选择器重申组件自有排版。 */
2936
+ .ew-logo-cloud .ew-logo-cloud__title {
2937
+ margin: 0 0 var(--ew-space-6);
2938
+ font-size: var(--ew-font-size-sm);
2939
+ }
2940
+ /* EwVideo — 视频区块 */
2941
+ .ew-video {
2942
+ margin: 0;
2943
+ }
2944
+ .ew-video__frame {
2945
+ position: relative;
2946
+ width: 100%;
2947
+ padding-top: 56.25%;
2948
+ border-radius: var(--ew-radius-lg);
2949
+ overflow: hidden;
2950
+ background-color: #101014;
2951
+ }
2952
+ .ew-video__frame > video,
2953
+ .ew-video__frame > :deep(iframe) {
2954
+ position: absolute;
2955
+ inset: 0;
2956
+ width: 100%;
2957
+ height: 100%;
2958
+ border: none;
2959
+ }
2960
+ .ew-video__frame > :deep(video) {
2961
+ object-fit: cover;
2962
+ }
2963
+ .ew-video__placeholder {
2964
+ position: absolute;
2965
+ inset: 0;
2966
+ display: flex;
2967
+ flex-direction: column;
2968
+ align-items: center;
2969
+ justify-content: center;
2970
+ gap: var(--ew-space-2);
2971
+ color: rgba(245, 247, 252, 0.4);
2972
+ font-size: var(--ew-font-size-sm);
2973
+ }
2974
+ .ew-video__caption {
2975
+ margin-top: var(--ew-space-3);
2976
+ font-size: var(--ew-font-size-sm);
2977
+ color: var(--ew-text-secondary);
2978
+ text-align: center;
2979
+ }
2980
+ /* EwAudio — 音频卡片 */
2981
+ .ew-audio {
2982
+ display: flex;
2983
+ align-items: center;
2984
+ gap: var(--ew-space-4);
2985
+ padding: var(--ew-space-4) var(--ew-space-5);
2986
+ border: 1px solid var(--ew-border-color-light);
2987
+ border-radius: var(--ew-radius-full);
2988
+ background-color: var(--ew-bg-container);
2989
+ box-shadow: var(--ew-shadow-1);
2990
+ }
2991
+ .ew-audio__badge {
2992
+ display: inline-flex;
2993
+ align-items: center;
2994
+ justify-content: center;
2995
+ width: 40px;
2996
+ height: 40px;
2997
+ flex-shrink: 0;
2998
+ border-radius: var(--ew-radius-circle);
2999
+ background-color: var(--ew-color-ink);
3000
+ color: #ffffff;
3001
+ }
3002
+ html.dark .ew-audio__badge {
3003
+ background-color: var(--ew-text-primary);
3004
+ color: var(--ew-color-ink);
3005
+ }
3006
+ .ew-audio__body {
3007
+ flex: 1;
3008
+ min-width: 0;
3009
+ display: flex;
3010
+ flex-direction: column;
3011
+ gap: 4px;
3012
+ }
3013
+ .ew-audio__title {
3014
+ font-size: var(--ew-font-size-sm);
3015
+ font-weight: var(--ew-font-weight-medium);
3016
+ color: var(--ew-text-primary);
3017
+ white-space: nowrap;
3018
+ overflow: hidden;
3019
+ text-overflow: ellipsis;
3020
+ }
3021
+ .ew-audio__player {
3022
+ width: 100%;
3023
+ height: 32px;
3024
+ }
3025
+ /* EwContactForm — 留言/合作表单 */
3026
+ .ew-contact-form {
3027
+ display: flex;
3028
+ flex-direction: column;
3029
+ gap: var(--ew-space-5);
3030
+ }
3031
+ .ew-contact-form__row {
3032
+ display: grid;
3033
+ grid-template-columns: 1fr 1fr;
3034
+ gap: var(--ew-space-5);
3035
+ }
3036
+ .ew-contact-form__field {
3037
+ display: flex;
3038
+ flex-direction: column;
3039
+ gap: 6px;
3040
+ }
3041
+ .ew-contact-form__label {
3042
+ font-size: var(--ew-font-size-sm);
3043
+ font-weight: var(--ew-font-weight-medium);
3044
+ color: var(--ew-text-primary);
3045
+ }
3046
+ .ew-contact-form__input {
3047
+ padding: 10px 14px;
3048
+ border: 1px solid var(--ew-border-color);
3049
+ border-radius: var(--ew-radius-md);
3050
+ background-color: var(--ew-bg-container);
3051
+ font-size: var(--ew-font-size-sm);
3052
+ color: var(--ew-text-primary);
3053
+ outline: none;
3054
+ transition: border-color var(--ew-duration-base) var(--ew-ease-in-out),
3055
+ box-shadow var(--ew-duration-base) var(--ew-ease-in-out);
3056
+ }
3057
+ .ew-contact-form__input::placeholder {
3058
+ color: var(--ew-text-placeholder);
3059
+ }
3060
+ .ew-contact-form__input:focus,
3061
+ .ew-contact-form__input:focus-visible {
3062
+ outline: none;
3063
+ border-color: var(--ew-color-primary-light-5);
3064
+ box-shadow: var(--ew-focus-ring);
3065
+ }
3066
+ .ew-contact-form__input.is-error {
3067
+ border-color: var(--ew-color-danger-light-5);
3068
+ }
3069
+ .ew-contact-form__textarea {
3070
+ resize: vertical;
3071
+ min-height: 96px;
3072
+ }
3073
+ .ew-contact-form__error {
3074
+ font-size: var(--ew-font-size-xs);
3075
+ color: var(--ew-color-danger);
3076
+ }
3077
+ .ew-contact-form__footer {
3078
+ display: flex;
3079
+ align-items: center;
3080
+ gap: var(--ew-space-4);
3081
+ }
3082
+ .ew-contact-form__hint {
3083
+ font-size: var(--ew-font-size-xs);
3084
+ color: var(--ew-text-secondary);
3085
+ }
3086
+
3087
+ /* 成功态 */
3088
+ .ew-contact-form__done {
3089
+ display: flex;
3090
+ align-items: center;
3091
+ gap: var(--ew-space-3);
3092
+ padding: var(--ew-space-5);
3093
+ border: 1px solid var(--ew-color-success-light-7);
3094
+ border-radius: var(--ew-radius-lg);
3095
+ background-color: var(--ew-color-success-light-9);
3096
+ }
3097
+ .ew-contact-form__done-icon {
3098
+ color: var(--ew-color-success);
3099
+ flex-shrink: 0;
3100
+ }
3101
+ .ew-contact-form__done-text {
3102
+ flex: 1;
3103
+ font-size: var(--ew-font-size-sm);
3104
+ color: var(--ew-text-primary);
3105
+ }
3106
+ @media (max-width: 560px) {
3107
+ .ew-contact-form__row {
3108
+ grid-template-columns: 1fr;
3109
+ }
3110
+ }
3111
+ /* EwCarousel — 轮播 */
3112
+ .ew-carousel {
3113
+ position: relative;
3114
+ }
3115
+ .ew-carousel__viewport {
3116
+ overflow: hidden;
3117
+ border-radius: var(--ew-radius-lg);
3118
+ }
3119
+ .ew-carousel__track {
3120
+ display: flex;
3121
+ transition: transform var(--ew-duration-slower) var(--ew-ease-smooth);
3122
+ }
3123
+ .ew-carousel__slide {
3124
+ flex: 0 0 100%;
3125
+ min-width: 0;
3126
+ padding: 2px;
3127
+ }
3128
+
3129
+ /* ─── 箭头 ─── */
3130
+ .ew-carousel__arrow {
3131
+ position: absolute;
3132
+ top: 50%;
3133
+ transform: translateY(-50%);
3134
+ display: inline-flex;
3135
+ align-items: center;
3136
+ justify-content: center;
3137
+ width: 36px;
3138
+ height: 36px;
3139
+ border: none;
3140
+ border-radius: var(--ew-radius-circle);
3141
+ background-color: var(--ew-bg-container);
3142
+ box-shadow: var(--ew-shadow-2);
3143
+ color: var(--ew-text-primary);
3144
+ cursor: pointer;
3145
+ opacity: 0.92;
3146
+ transition: opacity var(--ew-duration-fast) var(--ew-ease-in-out),
3147
+ box-shadow var(--ew-duration-fast) var(--ew-ease-in-out);
3148
+ }
3149
+ .ew-carousel__arrow:hover {
3150
+ opacity: 1;
3151
+ box-shadow: var(--ew-shadow-3);
3152
+ }
3153
+ .ew-carousel__arrow.is-prev {
3154
+ left: -14px;
3155
+ }
3156
+ .ew-carousel__arrow.is-next {
3157
+ right: -14px;
3158
+ }
3159
+
3160
+ /* ─── 圆点 ─── */
3161
+ .ew-carousel__dots {
3162
+ display: flex;
3163
+ justify-content: center;
3164
+ gap: 8px;
3165
+ margin-top: var(--ew-space-4);
3166
+ }
3167
+ .ew-carousel__dot {
3168
+ width: 7px;
3169
+ height: 7px;
3170
+ padding: 0;
3171
+ border: none;
3172
+ border-radius: var(--ew-radius-full);
3173
+ background-color: var(--ew-fill-3);
3174
+ cursor: pointer;
3175
+ transition: background-color var(--ew-duration-base) var(--ew-ease-in-out),
3176
+ width var(--ew-duration-base) var(--ew-ease-smooth);
3177
+ }
3178
+ .ew-carousel__dot.is-active {
3179
+ width: 18px;
3180
+ background-color: var(--ew-color-primary);
3181
+ }
3182
+ /* EwArticleCard — 文章卡 */
3183
+ .ew-article-card {
3184
+ display: flex;
3185
+ flex-direction: column;
3186
+ overflow: hidden;
3187
+ border: 1px solid var(--ew-border-color-light);
3188
+ border-radius: var(--ew-radius-lg);
3189
+ background-color: var(--ew-bg-container);
3190
+ color: inherit;
3191
+ transition: transform var(--ew-duration-base) var(--ew-ease-smooth),
3192
+ box-shadow var(--ew-duration-base) var(--ew-ease-in-out),
3193
+ border-color var(--ew-duration-base) var(--ew-ease-in-out);
3194
+ }
3195
+ .ew-article-card.is-hoverable:hover {
3196
+ transform: translateY(-3px);
3197
+ border-color: var(--ew-border-color);
3198
+ box-shadow: var(--ew-shadow-2);
3199
+ }
3200
+
3201
+ /* ─── 封面 ─── */
3202
+ .ew-article-card__cover {
3203
+ position: relative;
3204
+ aspect-ratio: 16 / 9;
3205
+ overflow: hidden;
3206
+ background-color: var(--ew-fill-1);
3207
+ }
3208
+ .ew-article-card__cover img {
3209
+ width: 100%;
3210
+ height: 100%;
3211
+ object-fit: cover;
3212
+ transition: transform var(--ew-duration-slow) var(--ew-ease-smooth);
3213
+ }
3214
+ .ew-article-card.is-hoverable:hover .ew-article-card__cover img {
3215
+ transform: scale(1.04);
3216
+ }
3217
+ .ew-article-card__cover-icon {
3218
+ position: absolute;
3219
+ inset: 0;
3220
+ margin: auto;
3221
+ width: fit-content;
3222
+ height: fit-content;
3223
+ color: var(--ew-text-secondary);
3224
+ }
3225
+
3226
+ /* ─── 内容 ─── */
3227
+ .ew-article-card__body {
3228
+ display: flex;
3229
+ flex-direction: column;
3230
+ gap: var(--ew-space-2);
3231
+ padding: var(--ew-space-5);
3232
+ }
3233
+ .ew-article-card__meta {
3234
+ display: flex;
3235
+ align-items: center;
3236
+ gap: var(--ew-space-2);
3237
+ font-size: var(--ew-font-size-xs);
3238
+ color: var(--ew-text-secondary);
3239
+ }
3240
+ .ew-article-card__tag {
3241
+ padding: 2px 8px;
3242
+ border-radius: var(--ew-radius-full);
3243
+ background-color: var(--ew-color-primary-light-9);
3244
+ color: var(--ew-color-primary);
3245
+ }
3246
+ .ew-article-card__title {
3247
+ font-size: var(--ew-font-size-md);
3248
+ font-weight: var(--ew-font-weight-medium);
3249
+ letter-spacing: 0;
3250
+ line-height: 1.4;
3251
+ color: var(--ew-text-primary);
3252
+ display: -webkit-box;
3253
+ -webkit-line-clamp: 2;
3254
+ -webkit-box-orient: vertical;
3255
+ overflow: hidden;
3256
+ }
3257
+ .ew-article-card__excerpt {
3258
+ margin: 0;
3259
+ font-size: var(--ew-font-size-sm);
3260
+ line-height: 1.7;
3261
+ color: var(--ew-text-secondary);
3262
+ display: -webkit-box;
3263
+ -webkit-line-clamp: 2;
3264
+ -webkit-box-orient: vertical;
3265
+ overflow: hidden;
3266
+ }
3267
+
3268
+ /* ─── 宿主环境屏蔽 ───
3269
+ 在 markdown/文档站等宿主里,元素级排版规则(如 .vp-doc h2/p/ul)
3270
+ 会以更高优先级渗透进组件内部;这里用双类选择器重申组件自有排版。 */
3271
+ .ew-article-card .ew-article-card__title {
3272
+ margin: 0;
3273
+ font-size: var(--ew-font-size-md);
3274
+ }
3275
+ .ew-article-card .ew-article-card__excerpt {
3276
+ margin: 0;
3277
+ font-size: var(--ew-font-size-sm);
3278
+ }
3279
+ /* EwProfileCard — 个人名片 */
3280
+ .ew-profile-card {
3281
+ display: flex;
3282
+ flex-direction: column;
3283
+ align-items: center;
3284
+ text-align: center;
3285
+ padding: var(--ew-space-8) var(--ew-space-6);
3286
+ border: 1px solid var(--ew-border-color-light);
3287
+ border-radius: var(--ew-radius-xl);
3288
+ background-color: var(--ew-bg-container);
3289
+ }
3290
+ .ew-profile-card.is-plain {
3291
+ border-color: transparent;
3292
+ background: transparent;
3293
+ padding: 0;
3294
+ }
3295
+ .ew-profile-card__avatar {
3296
+ margin-bottom: var(--ew-space-4);
3297
+ }
3298
+ .ew-profile-card__name {
3299
+ font-size: var(--ew-font-size-lg);
3300
+ font-weight: var(--ew-display-weight-strong);
3301
+ letter-spacing: var(--ew-display-letter-spacing);
3302
+ color: var(--ew-text-primary);
3303
+ }
3304
+ .ew-profile-card__role {
3305
+ margin-top: 4px;
3306
+ font-size: var(--ew-font-size-sm);
3307
+ color: var(--ew-text-secondary);
3308
+ }
3309
+ .ew-profile-card__bio {
3310
+ margin-top: var(--ew-space-3);
3311
+ font-size: var(--ew-font-size-sm);
3312
+ line-height: 1.7;
3313
+ color: var(--ew-text-regular);
3314
+ max-width: 320px;
3315
+ }
3316
+ .ew-profile-card__stats {
3317
+ display: flex;
3318
+ gap: var(--ew-space-6);
3319
+ margin-top: var(--ew-space-5);
3320
+ }
3321
+ .ew-profile-card__social {
3322
+ display: flex;
3323
+ align-items: center;
3324
+ gap: var(--ew-space-2);
3325
+ margin-top: var(--ew-space-5);
3326
+ }
3327
+
3328
+ /* ─── 宿主环境屏蔽 ───
3329
+ 在 markdown/文档站等宿主里,元素级排版规则(如 .vp-doc h2/p/ul)
3330
+ 会以更高优先级渗透进组件内部;这里用双类选择器重申组件自有排版。 */
3331
+ .ew-profile-card .ew-profile-card__name {
3332
+ margin: 0;
3333
+ font-size: var(--ew-font-size-lg);
3334
+ }
3335
+ .ew-profile-card .ew-profile-card__role {
3336
+ margin: 4px 0 0;
3337
+ font-size: var(--ew-font-size-sm);
3338
+ }
3339
+ .ew-profile-card .ew-profile-card__bio {
3340
+ margin: var(--ew-space-3) 0 0;
3341
+ font-size: var(--ew-font-size-sm);
3342
+ }
3343
+ /* EwMarquee — 无限滚动横幅 */
3344
+ .ew-marquee {
3345
+ position: relative;
3346
+ overflow: hidden;
3347
+ /* 两端淡出 */
3348
+ --ew-marquee-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
3349
+ -webkit-mask-image: var(--ew-marquee-mask);
3350
+ mask-image: var(--ew-marquee-mask);
3351
+ }
3352
+ .ew-marquee__track {
3353
+ display: flex;
3354
+ width: max-content;
3355
+ animation: ew-marquee-scroll var(--ew-marquee-duration) linear infinite;
3356
+ }
3357
+ .ew-marquee.is-reverse .ew-marquee__track {
3358
+ animation-direction: reverse;
3359
+ }
3360
+ .ew-marquee.is-pausable:hover .ew-marquee__track {
3361
+ animation-play-state: paused;
3362
+ }
3363
+ .ew-marquee__group {
3364
+ display: flex;
3365
+ align-items: center;
3366
+ flex-shrink: 0;
3367
+ gap: var(--ew-space-6);
3368
+ padding-right: var(--ew-space-6);
3369
+ }
3370
+
3371
+ /* ══════ 文本模式:商场 LED 大字横幅 ══════ */
3372
+ .ew-marquee__text {
3373
+ font-size: var(--ew-marquee-text-size, clamp(32px, 5vw, 56px));
3374
+ font-weight: var(--ew-display-weight-strong);
3375
+ letter-spacing: -0.02em;
3376
+ text-transform: uppercase;
3377
+ white-space: nowrap;
3378
+ color: var(--ew-text-primary);
3379
+ line-height: 1.15;
3380
+ }
3381
+
3382
+ /* 描边字(奇数项):空心 + 描边,商场横幅的节奏感来源 */
3383
+ .ew-marquee__text.is-outline {
3384
+ color: transparent;
3385
+ -webkit-text-stroke: 1.5px var(--ew-marquee-stroke, var(--ew-text-secondary));
3386
+ }
3387
+ .ew-marquee__separator {
3388
+ color: var(--ew-color-primary);
3389
+ flex-shrink: 0;
3390
+ }
3391
+ @keyframes ew-marquee-scroll {
3392
+ from { transform: translateX(0);
3393
+ }
3394
+ to { transform: translateX(-50%);
3395
+ }
3396
+ }
3397
+ @media (prefers-reduced-motion: reduce) {
3398
+ .ew-marquee__track {
3399
+ animation: none;
3400
+ }
3401
+ }
3402
+ /* EwInput — 文本输入 */
3403
+ .ew-input {
3404
+ display: inline-flex;
3405
+ align-items: center;
3406
+ gap: var(--ew-space-2);
3407
+ width: 100%;
3408
+ padding: 0 12px;
3409
+ border: 1px solid var(--ew-border-color);
3410
+ border-radius: var(--ew-radius-md);
3411
+ background-color: var(--ew-bg-container);
3412
+ transition: border-color var(--ew-duration-base) var(--ew-ease-in-out),
3413
+ box-shadow var(--ew-duration-base) var(--ew-ease-in-out);
3414
+ }
3415
+ .ew-input:focus-within,
3416
+ .ew-input__inner:focus-visible {
3417
+ outline: none;
3418
+ }
3419
+ .ew-input:focus-within {
3420
+ border-color: var(--ew-color-primary-light-5);
3421
+ box-shadow: var(--ew-focus-ring);
3422
+ }
3423
+ .ew-input__inner {
3424
+ flex: 1;
3425
+ min-width: 0;
3426
+ height: 38px;
3427
+ border: none;
3428
+ background: transparent;
3429
+ font-size: var(--ew-font-size-sm);
3430
+ color: var(--ew-text-primary);
3431
+ }
3432
+ .ew-input__inner::placeholder {
3433
+ color: var(--ew-text-placeholder);
3434
+ }
3435
+ .ew-input__inner:focus,
3436
+ .ew-input__inner:focus-visible {
3437
+ outline: none;
3438
+ box-shadow: none;
3439
+ }
3440
+
3441
+ /* ─── 尺寸 ─── */
3442
+ .ew-input.is-small .ew-input__inner {
3443
+ height: 30px;
3444
+ font-size: var(--ew-font-size-xs);
3445
+ }
3446
+ .ew-input.is-large .ew-input__inner {
3447
+ height: 46px;
3448
+ font-size: var(--ew-font-size-base);
3449
+ }
3450
+
3451
+ /* ─── 状态 ─── */
3452
+ .ew-input.is-disabled {
3453
+ cursor: not-allowed;
3454
+ opacity: 0.55;
3455
+ background-color: var(--ew-fill-1);
3456
+ }
3457
+ .ew-input.is-error {
3458
+ border-color: var(--ew-color-danger-light-5);
3459
+ }
3460
+ .ew-input.is-error:focus-within {
3461
+ border-color: var(--ew-color-danger);
3462
+ box-shadow: 0 0 0 2px rgba(var(--ew-color-danger-rgb), 0.15);
3463
+ }
3464
+ .ew-input__prefix,
3465
+ .ew-input__suffix {
3466
+ display: inline-flex;
3467
+ align-items: center;
3468
+ color: var(--ew-text-placeholder);
3469
+ }
3470
+ .ew-input__clear {
3471
+ display: inline-flex;
3472
+ align-items: center;
3473
+ justify-content: center;
3474
+ width: 18px;
3475
+ height: 18px;
3476
+ flex-shrink: 0;
3477
+ padding: 0;
3478
+ border: none;
3479
+ border-radius: var(--ew-radius-circle);
3480
+ background-color: var(--ew-fill-2);
3481
+ color: var(--ew-text-secondary);
3482
+ cursor: pointer;
3483
+ transition: background-color var(--ew-duration-fast) var(--ew-ease-in-out),
3484
+ color var(--ew-duration-fast) var(--ew-ease-in-out);
3485
+ }
3486
+ .ew-input__clear:hover {
3487
+ background-color: var(--ew-fill-3);
3488
+ color: var(--ew-text-primary);
3489
+ }
3490
+ /* EwTextarea — 多行文本 */
3491
+ .ew-textarea {
3492
+ position: relative;
3493
+ display: inline-flex;
3494
+ width: 100%;
3495
+ }
3496
+ .ew-textarea__inner {
3497
+ width: 100%;
3498
+ padding: 10px 14px;
3499
+ border: 1px solid var(--ew-border-color);
3500
+ border-radius: var(--ew-radius-md);
3501
+ background-color: var(--ew-bg-container);
3502
+ font-family: var(--ew-font-family);
3503
+ font-size: var(--ew-font-size-sm);
3504
+ line-height: 1.7;
3505
+ color: var(--ew-text-primary);
3506
+ resize: vertical;
3507
+ transition: border-color var(--ew-duration-base) var(--ew-ease-in-out),
3508
+ box-shadow var(--ew-duration-base) var(--ew-ease-in-out);
3509
+ }
3510
+ .ew-textarea__inner::placeholder {
3511
+ color: var(--ew-text-placeholder);
3512
+ }
3513
+ .ew-textarea__inner:focus,
3514
+ .ew-textarea__inner:focus-visible {
3515
+ outline: none;
3516
+ border-color: var(--ew-color-primary-light-5);
3517
+ box-shadow: var(--ew-focus-ring);
3518
+ }
3519
+ .ew-textarea.is-error .ew-textarea__inner {
3520
+ border-color: var(--ew-color-danger-light-5);
3521
+ }
3522
+ .ew-textarea.is-disabled .ew-textarea__inner {
3523
+ cursor: not-allowed;
3524
+ opacity: 0.55;
3525
+ background-color: var(--ew-fill-1);
3526
+ }
3527
+
3528
+ /* 字数计数(右下角悬浮) */
3529
+ .ew-textarea__count {
3530
+ position: absolute;
3531
+ right: 12px;
3532
+ bottom: 10px;
3533
+ font-size: var(--ew-font-size-xs);
3534
+ color: var(--ew-text-placeholder);
3535
+ background: linear-gradient(transparent, var(--ew-bg-container) 30%);
3536
+ padding-left: 4px;
3537
+ pointer-events: none;
3538
+ }
3539
+ /* EwField — 表单字段包装 */
3540
+ .ew-field {
3541
+ display: flex;
3542
+ flex-direction: column;
3543
+ gap: 6px;
3544
+ }
3545
+ .ew-field__label {
3546
+ font-size: var(--ew-font-size-sm);
3547
+ font-weight: var(--ew-font-weight-medium);
3548
+ color: var(--ew-text-primary);
3549
+ }
3550
+ .ew-field__required {
3551
+ margin-left: 2px;
3552
+ color: var(--ew-color-danger);
3553
+ }
3554
+ .ew-field__control {
3555
+ min-width: 0;
3556
+ }
3557
+ .ew-field__error {
3558
+ font-size: var(--ew-font-size-xs);
3559
+ color: var(--ew-color-danger);
3560
+ }
3561
+ .ew-field__hint {
3562
+ font-size: var(--ew-font-size-xs);
3563
+ color: var(--ew-text-secondary);
3564
+ }
3565
+ /* EwPullRefresh — 下拉刷新 */
3566
+ .ew-pull-refresh {
3567
+ position: relative;
3568
+ overflow: hidden;
3569
+ }
3570
+ .ew-pull-refresh__track {
3571
+ position: relative;
3572
+ }
3573
+ .ew-pull-refresh__head {
3574
+ position: absolute;
3575
+ left: 0;
3576
+ right: 0;
3577
+ display: flex;
3578
+ align-items: center;
3579
+ justify-content: center;
3580
+ box-sizing: border-box;
3581
+ color: var(--ew-text-regular);
3582
+ font-size: var(--ew-font-size-sm);
3583
+ overflow: hidden;
3584
+ pointer-events: none;
3585
+ }
3586
+ .ew-pull-refresh__text {
3587
+ display: inline-flex;
3588
+ align-items: center;
3589
+ gap: 8px;
3590
+ }
3591
+ .ew-pull-refresh__text.is-loosing {
3592
+ color: var(--ew-color-primary);
3593
+ }
3594
+ .ew-pull-refresh__spinner {
3595
+ width: 16px;
3596
+ height: 16px;
3597
+ border: 2px solid var(--ew-border-color-dark);
3598
+ border-top-color: var(--ew-color-primary);
3599
+ border-radius: 50%;
3600
+ animation: ew-pull-refresh-spin 0.8s linear infinite;
3601
+ }
3602
+ @keyframes ew-pull-refresh-spin {
3603
+ to {
3604
+ transform: rotate(360deg);
3605
+ }
3606
+ }
3607
+ /* EwLoadMore — 上拉加载 / 加载更多 */
3608
+ .ew-load-more {
3609
+ display: flex;
3610
+ justify-content: center;
3611
+ padding: 12px 0;
3612
+ color: var(--ew-text-regular);
3613
+ font-size: var(--ew-font-size-sm);
3614
+ }
3615
+ .ew-load-more__sentinel {
3616
+ height: 1px;
3617
+ margin-bottom: -1px;
3618
+ }
3619
+ .ew-load-more__body {
3620
+ display: inline-flex;
3621
+ align-items: center;
3622
+ gap: 8px;
3623
+ padding: 4px 12px;
3624
+ border: none;
3625
+ background: transparent;
3626
+ color: inherit;
3627
+ font: inherit;
3628
+ cursor: pointer;
3629
+ user-select: none;
3630
+ }
3631
+ .ew-load-more__body:disabled {
3632
+ cursor: default;
3633
+ }
3634
+ .ew-load-more.is-noMore .ew-load-more__body {
3635
+ color: var(--ew-text-disabled);
3636
+ }
3637
+ .ew-load-more.is-error .ew-load-more__body {
3638
+ color: var(--ew-color-danger);
3639
+ }
3640
+ .ew-load-more__text {
3641
+ line-height: 20px;
3642
+ }
3643
+ .ew-load-more__spinner {
3644
+ width: 16px;
3645
+ height: 16px;
3646
+ border: 2px solid var(--ew-border-color-dark);
3647
+ border-top-color: var(--ew-color-primary);
3648
+ border-radius: 50%;
3649
+ animation: ew-load-more-spin 0.8s linear infinite;
3650
+ }
3651
+ @keyframes ew-load-more-spin {
3652
+ to {
3653
+ transform: rotate(360deg);
3654
+ }
3655
+ }
3656
+ /* EwActionSheet — 底部动作面板 */
3657
+
3658
+ /* 遮罩
3659
+ flex-end 沉底面板;overflow hidden:面板自身做内部滚动,遮罩永远不出滚动条 */
3660
+ .ew-action-sheet__overlay {
3661
+ position: fixed;
3662
+ inset: 0;
3663
+ display: flex;
3664
+ flex-direction: column;
3665
+ justify-content: flex-end;
3666
+ background-color: rgba(26, 41, 71, 0.4);
3667
+ overflow: hidden;
3668
+ }
3669
+ .ew-action-sheet {
3670
+ box-sizing: border-box;
3671
+ display: flex;
3672
+ flex-direction: column;
3673
+ justify-content: flex-end; /* 内容沉底:矮内容贴底、高内容顶部收敛 */
3674
+ max-height: 100%;
3675
+ padding: 8px var(--ew-space-4) calc(8px + env(safe-area-inset-bottom, 0px));
3676
+ background: transparent;
3677
+ }
3678
+ .ew-action-sheet.is-round .ew-action-sheet__title,
3679
+ .ew-action-sheet.is-round .ew-action-sheet__cancel {
3680
+ border-radius: var(--ew-radius-xl);
3681
+ }
3682
+ /* 有标题时:标题块圆顶部、列表圆底部(上块整体四角圆);无标题时列表圆全部角 */
3683
+ .ew-action-sheet.is-round .ew-action-sheet__title {
3684
+ border-bottom-left-radius: 0;
3685
+ border-bottom-right-radius: 0;
3686
+ }
3687
+ .ew-action-sheet.is-round .ew-action-sheet__list {
3688
+ border-radius: 0 0 var(--ew-radius-xl) var(--ew-radius-xl);
3689
+ }
3690
+ .ew-action-sheet.is-round .ew-action-sheet__list:first-child {
3691
+ border-radius: var(--ew-radius-xl);
3692
+ }
3693
+
3694
+ /* 标题:白色块与动作列表连成一体,无标题时列表顶到标题位 */
3695
+ .ew-action-sheet__title {
3696
+ display: flex;
3697
+ flex-direction: column;
3698
+ align-items: center;
3699
+ gap: 2px;
3700
+ flex-shrink: 0;
3701
+ padding: 14px var(--ew-space-4);
3702
+ background: var(--ew-bg-container);
3703
+ color: var(--ew-text-regular);
3704
+ font-size: var(--ew-font-size-sm);
3705
+ text-align: center;
3706
+ }
3707
+
3708
+ /* 动作列表:紧贴标题(无缝);超高时列表内部滚动,标题/取消栏恒定可见 */
3709
+ .ew-action-sheet__list {
3710
+ display: flex;
3711
+ flex-direction: column;
3712
+ gap: 2px;
3713
+ flex: 0 1 auto;
3714
+ overflow-y: auto;
3715
+ scrollbar-width: none;
3716
+ background: var(--ew-bg-container);
3717
+ box-shadow: var(--ew-shadow-2);
3718
+ }
3719
+ .ew-action-sheet__list::-webkit-scrollbar {
3720
+ display: none;
3721
+ }
3722
+ .ew-action-sheet__item {
3723
+ display: flex;
3724
+ flex-direction: column;
3725
+ align-items: center;
3726
+ gap: 2px;
3727
+ flex-shrink: 0;
3728
+ padding: 14px var(--ew-space-4);
3729
+ border: none;
3730
+ background: var(--ew-bg-container);
3731
+ color: var(--ew-text-primary);
3732
+ font-size: var(--ew-font-size-base);
3733
+ line-height: 1.4;
3734
+ cursor: pointer;
3735
+ user-select: none;
3736
+ transition: background-color var(--ew-duration-fast) var(--ew-ease-in-out);
3737
+ }
3738
+ .ew-action-sheet__item:active:not(.is-disabled) {
3739
+ background: var(--ew-bg-hover);
3740
+ }
3741
+ .ew-action-sheet__item.is-disabled {
3742
+ color: var(--ew-text-disabled);
3743
+ cursor: not-allowed;
3744
+ }
3745
+ .ew-action-sheet__name {
3746
+ font-weight: var(--ew-font-weight-regular);
3747
+ }
3748
+ .ew-action-sheet__subname {
3749
+ color: var(--ew-text-regular);
3750
+ font-size: var(--ew-font-size-sm);
3751
+ }
3752
+
3753
+ /* 取消栏:与动作列表之间留缝,视觉上独立成组 */
3754
+ .ew-action-sheet__cancel {
3755
+ flex-shrink: 0;
3756
+ margin-top: 8px;
3757
+ padding: 14px var(--ew-space-4);
3758
+ border: none;
3759
+ background: var(--ew-bg-container);
3760
+ color: var(--ew-text-primary);
3761
+ font-size: var(--ew-font-size-base);
3762
+ font-weight: var(--ew-font-weight-medium);
3763
+ cursor: pointer;
3764
+ user-select: none;
3765
+ transition: background-color var(--ew-duration-fast) var(--ew-ease-in-out);
3766
+ }
3767
+ .ew-action-sheet__cancel:active {
3768
+ background: var(--ew-bg-hover);
3769
+ }
3770
+
3771
+ /* 过渡:遮罩淡入淡出 + 面板底部滑入 */
3772
+ .ew-action-sheet-fade-enter-active,
3773
+ .ew-action-sheet-fade-leave-active {
3774
+ transition: opacity var(--ew-duration-base) var(--ew-ease-in-out);
3775
+ }
3776
+ .ew-action-sheet-fade-enter-active .ew-action-sheet,
3777
+ .ew-action-sheet-fade-leave-active .ew-action-sheet {
3778
+ transition: transform var(--ew-duration-base) var(--ew-ease-smooth);
3779
+ }
3780
+ .ew-action-sheet-fade-enter-from,
3781
+ .ew-action-sheet-fade-leave-to {
3782
+ opacity: 0;
3783
+ }
3784
+ .ew-action-sheet-fade-enter-from .ew-action-sheet,
3785
+ .ew-action-sheet-fade-leave-to .ew-action-sheet {
3786
+ transform: translateY(100%);
3787
+ }
3788
+ /* EwTabbar — 底部标签栏 */
3789
+ .ew-tabbar {
3790
+ display: flex;
3791
+ padding: 6px 0;
3792
+ background: var(--ew-bg-container);
3793
+ }
3794
+ .ew-tabbar.is-border {
3795
+ border-top: 1px solid var(--ew-border-color-light);
3796
+ }
3797
+ .ew-tabbar.is-fixed {
3798
+ position: fixed;
3799
+ right: 0;
3800
+ bottom: 0;
3801
+ left: 0;
3802
+ z-index: var(--ew-z-index-sticky);
3803
+ }
3804
+ .ew-tabbar.is-fixed.is-safe {
3805
+ padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
3806
+ }
3807
+ .ew-tabbar-item {
3808
+ position: relative;
3809
+ display: flex;
3810
+ flex: 1;
3811
+ flex-direction: column;
3812
+ align-items: center;
3813
+ gap: 2px;
3814
+ padding: 4px 0;
3815
+ color: var(--ew-text-regular);
3816
+ font-size: var(--ew-font-size-xs);
3817
+ line-height: 1.4;
3818
+ cursor: pointer;
3819
+ user-select: none;
3820
+ transition: color var(--ew-duration-fast) var(--ew-ease-in-out);
3821
+ }
3822
+ .ew-tabbar-item.is-active {
3823
+ color: var(--ew-color-primary);
3824
+ }
3825
+ .ew-tabbar-item.is-disabled {
3826
+ color: var(--ew-text-disabled);
3827
+ cursor: not-allowed;
3828
+ }
3829
+ .ew-tabbar-item__icon {
3830
+ position: relative;
3831
+ display: inline-flex;
3832
+ align-items: center;
3833
+ justify-content: center;
3834
+ font-size: 20px;
3835
+ line-height: 1;
3836
+ }
3837
+ .ew-tabbar-item__dot {
3838
+ position: absolute;
3839
+ top: -2px;
3840
+ right: -8px;
3841
+ width: 8px;
3842
+ height: 8px;
3843
+ border-radius: var(--ew-radius-circle);
3844
+ background: var(--ew-color-danger);
3845
+ }
3846
+ .ew-tabbar-item__badge {
3847
+ position: absolute;
3848
+ top: -4px;
3849
+ right: -14px;
3850
+ display: inline-block;
3851
+ box-sizing: border-box;
3852
+ min-width: 16px;
3853
+ height: 16px;
3854
+ padding: 0 4px;
3855
+ border-radius: var(--ew-radius-full);
3856
+ background: var(--ew-color-danger);
3857
+ color: #ffffff;
3858
+ font-size: 10px;
3859
+ font-style: normal;
3860
+ line-height: 16px;
3861
+ text-align: center;
3862
+ }
3863
+ /* 纯文字页签:badge/dot 内联跟在文字后 */
3864
+ .ew-tabbar-item__badge.is-inline {
3865
+ position: static;
3866
+ margin-left: 4px;
3867
+ }
3868
+ .ew-tabbar-item__dot.is-inline {
3869
+ position: static;
3870
+ display: inline-block;
3871
+ margin-left: 4px;
3872
+ vertical-align: middle;
3873
+ }
3874
+ .ew-tabbar-item__text {
3875
+ max-width: 100%;
3876
+ overflow: hidden;
3877
+ text-overflow: ellipsis;
3878
+ white-space: nowrap;
3879
+ }
3880
+ /* EwNavBar — 移动端页头 */
3881
+ .ew-nav-bar {
3882
+ position: relative;
3883
+ }
3884
+ .ew-nav-bar__inner {
3885
+ display: flex;
3886
+ align-items: center;
3887
+ gap: 4px;
3888
+ height: 44px;
3889
+ padding: 0 4px;
3890
+ background: var(--ew-bg-container);
3891
+ }
3892
+ .ew-nav-bar__inner.is-fixed {
3893
+ position: fixed;
3894
+ top: 0;
3895
+ right: 0;
3896
+ left: 0;
3897
+ /* 刘海屏/独立 PWA 吸收状态栏高度;普通浏览器与演示壳内 env() 为 0 */
3898
+ padding-top: env(safe-area-inset-top, 0px);
3899
+ height: calc(44px + env(safe-area-inset-top, 0px));
3900
+ }
3901
+ .ew-nav-bar__placeholder {
3902
+ height: calc(44px + env(safe-area-inset-top, 0px));
3903
+ }
3904
+ .ew-nav-bar.is-bordered .ew-nav-bar__inner {
3905
+ border-bottom: 1px solid var(--ew-border-color-light);
3906
+ }
3907
+
3908
+ /* 左右热区:不小于 44px 触控目标 */
3909
+ .ew-nav-bar__side {
3910
+ display: inline-flex;
3911
+ align-items: center;
3912
+ gap: 2px;
3913
+ flex: none;
3914
+ min-width: 44px;
3915
+ height: 44px;
3916
+ padding: 0 10px;
3917
+ color: var(--ew-text-primary);
3918
+ font-size: var(--ew-font-size-base);
3919
+ cursor: pointer;
3920
+ user-select: none;
3921
+ transition: opacity var(--ew-duration-fast) var(--ew-ease-in-out);
3922
+ }
3923
+ .ew-nav-bar__side:active {
3924
+ opacity: 0.55;
3925
+ }
3926
+ .ew-nav-bar__side.is-right {
3927
+ justify-content: flex-end;
3928
+ margin-left: auto;
3929
+ color: var(--ew-color-primary);
3930
+ }
3931
+ .ew-nav-bar__text {
3932
+ white-space: nowrap;
3933
+ }
3934
+ .ew-nav-bar__title {
3935
+ flex: 1;
3936
+ min-width: 0;
3937
+ overflow: hidden;
3938
+ text-align: center;
3939
+ white-space: nowrap;
3940
+ text-overflow: ellipsis;
3941
+ color: var(--ew-text-primary);
3942
+ font-size: var(--ew-font-size-lg);
3943
+ font-weight: var(--ew-font-weight-medium);
3944
+ line-height: 44px;
3945
+ }
3946
+ /*$vite$:1*/