@iasiv5/dsh-skills 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +4 -2
- package/skills/answer-me-with-html/SKILL.md +4 -2
- package/skills/answer-me-with-html/scripts/am.mjs +627 -192
- package/skills/guizang-ppt-skill/README.en.md +10 -8
- package/skills/guizang-ppt-skill/README.md +10 -8
- package/skills/guizang-ppt-skill/SKILL.md +20 -16
- package/skills/guizang-ppt-skill/assets/template-swiss.html +1068 -456
- package/skills/guizang-ppt-skill/assets/template.html +991 -225
- package/skills/guizang-ppt-skill/references/checklist.md +5 -4
- package/skills/guizang-ppt-skill/references/components.md +9 -5
- package/skills/guizang-ppt-skill/references/gz-components.md +289 -0
- package/skills/guizang-ppt-skill/references/layouts-swiss.md +17 -17
- package/skills/guizang-ppt-skill/references/layouts.md +1 -1
- package/skills/guizang-ppt-skill/references/themes-swiss.md +57 -86
- package/skills/guizang-ppt-skill/references/themes.md +65 -63
- package/skills/guizang-ppt-skill/scripts/gz-theme.mjs +434 -0
- package/skills/guizang-social-card-skill/HANDOFF.md +19 -1
- package/skills/guizang-social-card-skill/README.en.md +20 -7
- package/skills/guizang-social-card-skill/README.md +20 -7
- package/skills/guizang-social-card-skill/SKILL.md +7 -5
- package/skills/guizang-social-card-skill/assets/template-editorial-card.html +954 -126
- package/skills/guizang-social-card-skill/assets/template-swiss-card.html +588 -84
- package/skills/guizang-social-card-skill/package-lock.json +90 -1
- package/skills/guizang-social-card-skill/package.json +7 -4
- package/skills/guizang-social-card-skill/references/background-systems.md +7 -15
- package/skills/guizang-social-card-skill/references/components.md +16 -10
- package/skills/guizang-social-card-skill/references/gz-components.md +289 -0
- package/skills/guizang-social-card-skill/references/layout-recipes.md +1 -1
- package/skills/guizang-social-card-skill/references/production-workflow.md +10 -12
- package/skills/guizang-social-card-skill/references/style-system.md +1 -1
- package/skills/guizang-social-card-skill/references/theme-presets.md +59 -111
- package/skills/guizang-social-card-skill/scripts/gz-fonts.mjs +654 -0
- package/skills/guizang-social-card-skill/scripts/gz-theme.mjs +434 -0
- package/skills/guizang-social-card-skill/scripts/render.mjs +92 -0
- package/skills/guizang-social-card-skill/validate-social-deck.mjs +11 -6
|
@@ -1,77 +1,561 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
|
-
<html lang="zh-CN">
|
|
2
|
+
<html lang="zh-CN" data-family="swiss" data-medium="slide" data-theme="ikb">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>[必填] 替换为 PPT 标题 · Deck Title</title>
|
|
7
|
+
<!-- GZ:FONTS:START · 字体由 guizang-design 字体清单生成;需要把字体内置进 HTML 时用 gz-fonts.mjs embed(卡片 skill 的 render.mjs 会自动内置) -->
|
|
7
8
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
8
9
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
9
|
-
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@
|
|
10
|
+
<link rel="stylesheet" data-gz-fonts="inter noto-sans-sc jetbrains-mono" href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Noto+Sans+SC:wght@100..900&family=JetBrains+Mono:wght@100..800&display=swap">
|
|
11
|
+
<!-- GZ:FONTS:END -->
|
|
10
12
|
<style>
|
|
11
|
-
:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
13
|
+
/* GZ:TOKENS:START · guizang-design v0.1.0 生成,不要手改;改设计请改 guizang-design 后运行 scripts/sync-skill.mjs */
|
|
14
|
+
:root{
|
|
15
|
+
--font-display:'Inter','Noto Sans SC','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
|
|
16
|
+
--font-sans:'Inter','Noto Sans SC','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
|
|
17
|
+
--font-mono:'JetBrains Mono','Noto Sans SC',ui-monospace,'SF Mono',Menlo,monospace;
|
|
18
|
+
--sp-1:2px;
|
|
19
|
+
--sp-2:4px;
|
|
20
|
+
--sp-3:8px;
|
|
21
|
+
--sp-4:12px;
|
|
22
|
+
--sp-5:16px;
|
|
23
|
+
--sp-6:24px;
|
|
24
|
+
--sp-7:32px;
|
|
25
|
+
--sp-8:40px;
|
|
26
|
+
--sp-9:48px;
|
|
27
|
+
--sp-10:64px;
|
|
28
|
+
--sp-11:80px;
|
|
29
|
+
--sp-12:96px;
|
|
30
|
+
--sp-13:160px;
|
|
31
|
+
--radius-none:0px;
|
|
32
|
+
--radius-xs:0px;
|
|
33
|
+
--radius-sm:4px;
|
|
34
|
+
--radius-md:10px;
|
|
35
|
+
--radius-pill:999px;
|
|
36
|
+
--ease-standard:cubic-bezier(.2,0,.38,.9);
|
|
37
|
+
--ease-expressive:cubic-bezier(.4,.14,.3,1);
|
|
38
|
+
--ease-entrance:cubic-bezier(0,0,.3,1);
|
|
39
|
+
--ease-entrance-standard:cubic-bezier(0,0,.38,.9);
|
|
40
|
+
--ease-editorial:cubic-bezier(.22,1,.36,1);
|
|
41
|
+
--ease-page:cubic-bezier(.77,0,.175,1);
|
|
42
|
+
--dur-fast-1:70ms;
|
|
43
|
+
--dur-fast-2:110ms;
|
|
44
|
+
--dur-moderate-1:150ms;
|
|
45
|
+
--dur-moderate-2:240ms;
|
|
46
|
+
--dur-slow-1:400ms;
|
|
47
|
+
--dur-slow-2:700ms;
|
|
48
|
+
--dur-page:900ms;
|
|
49
|
+
--stagger-tight:70ms;
|
|
50
|
+
--stagger-base:100ms;
|
|
51
|
+
--stagger-loose:160ms;
|
|
52
|
+
--move-sm:8px;
|
|
53
|
+
--move-md:16px;
|
|
54
|
+
--move-lg:24px;
|
|
55
|
+
--paper:#fafaf8;
|
|
56
|
+
--paper-2:#f0f0ee;
|
|
57
|
+
--ink:#0a0a0a;
|
|
58
|
+
--muted:#737373;
|
|
59
|
+
--grey-1:#f0f0ee;
|
|
60
|
+
--grey-2:#d4d4d2;
|
|
61
|
+
--grey-3:#737373;
|
|
62
|
+
--accent:#002FA7;
|
|
63
|
+
--accent-on:#ffffff;
|
|
64
|
+
--accent-ink:#002FA7;
|
|
65
|
+
--accent-bright:#5B7BFF;
|
|
66
|
+
--accent-deep:#001d6b;
|
|
67
|
+
--accent-display:#002FA7;
|
|
68
|
+
--accent-ink-inverse:#96b0ff;
|
|
69
|
+
--accent-soft:#d5deef;
|
|
70
|
+
--text-primary:#0a0a0a;
|
|
71
|
+
--text-body:#252524;
|
|
72
|
+
--text-secondary:#525252;
|
|
73
|
+
--text-helper:#737373;
|
|
74
|
+
--text-placeholder:#a3a3a3;
|
|
75
|
+
--text-on-color:#ffffff;
|
|
76
|
+
--line-strong:#a3a3a3;
|
|
77
|
+
--line:#d4d4d2;
|
|
78
|
+
--line-subtle:#e0e0e0;
|
|
79
|
+
--ink-rgb:10,10,10;
|
|
80
|
+
--paper-rgb:250,250,248;
|
|
81
|
+
--accent-rgb:0,47,167;
|
|
82
|
+
--accent-on-rgb:255,255,255;
|
|
83
|
+
--accent-on-text:#ffffff;
|
|
84
|
+
--accent-on-text-rgb:255,255,255;
|
|
85
|
+
color-scheme:light;
|
|
86
|
+
}
|
|
87
|
+
[data-theme="ikb"]{
|
|
88
|
+
--paper:#fafaf8;
|
|
89
|
+
--paper-2:#f0f0ee;
|
|
90
|
+
--ink:#0a0a0a;
|
|
91
|
+
--muted:#737373;
|
|
92
|
+
--grey-1:#f0f0ee;
|
|
93
|
+
--grey-2:#d4d4d2;
|
|
94
|
+
--grey-3:#737373;
|
|
95
|
+
--accent:#002FA7;
|
|
96
|
+
--accent-on:#ffffff;
|
|
97
|
+
--accent-ink:#002FA7;
|
|
98
|
+
--accent-bright:#5B7BFF;
|
|
99
|
+
--accent-deep:#001d6b;
|
|
100
|
+
--accent-display:#002FA7;
|
|
101
|
+
--accent-ink-inverse:#96b0ff;
|
|
102
|
+
--accent-soft:#d5deef;
|
|
103
|
+
--text-primary:#0a0a0a;
|
|
104
|
+
--text-body:#252524;
|
|
105
|
+
--text-secondary:#525252;
|
|
106
|
+
--text-helper:#737373;
|
|
107
|
+
--text-placeholder:#a3a3a3;
|
|
108
|
+
--text-on-color:#ffffff;
|
|
109
|
+
--line-strong:#a3a3a3;
|
|
110
|
+
--line:#d4d4d2;
|
|
111
|
+
--line-subtle:#e0e0e0;
|
|
112
|
+
--ink-rgb:10,10,10;
|
|
113
|
+
--paper-rgb:250,250,248;
|
|
114
|
+
--accent-rgb:0,47,167;
|
|
115
|
+
--accent-on-rgb:255,255,255;
|
|
116
|
+
--accent-on-text:#ffffff;
|
|
117
|
+
--accent-on-text-rgb:255,255,255;
|
|
118
|
+
color-scheme:light;
|
|
119
|
+
}
|
|
120
|
+
[data-theme="lemon"]{
|
|
121
|
+
--paper:#fafaf8;
|
|
122
|
+
--paper-2:#f0f0ee;
|
|
123
|
+
--ink:#0a0a0a;
|
|
124
|
+
--muted:#737373;
|
|
125
|
+
--grey-1:#f0f0ee;
|
|
126
|
+
--grey-2:#d4d4d2;
|
|
127
|
+
--grey-3:#737373;
|
|
128
|
+
--accent:#FFD500;
|
|
129
|
+
--accent-on:#0a0a0a;
|
|
130
|
+
--accent-ink:#7a5f00;
|
|
131
|
+
--accent-bright:#FFE34D;
|
|
132
|
+
--accent-deep:#5e4900;
|
|
133
|
+
--accent-display:#7a5f00;
|
|
134
|
+
--accent-ink-inverse:#FFE34D;
|
|
135
|
+
--accent-soft:#fbf6e1;
|
|
136
|
+
--text-primary:#0a0a0a;
|
|
137
|
+
--text-body:#252524;
|
|
138
|
+
--text-secondary:#525252;
|
|
139
|
+
--text-helper:#737373;
|
|
140
|
+
--text-placeholder:#a3a3a3;
|
|
141
|
+
--text-on-color:#0a0a0a;
|
|
142
|
+
--line-strong:#a3a3a3;
|
|
143
|
+
--line:#d4d4d2;
|
|
144
|
+
--line-subtle:#e0e0e0;
|
|
145
|
+
--ink-rgb:10,10,10;
|
|
146
|
+
--paper-rgb:250,250,248;
|
|
147
|
+
--accent-rgb:255,213,0;
|
|
148
|
+
--accent-on-rgb:10,10,10;
|
|
149
|
+
--accent-on-text:#0a0a0a;
|
|
150
|
+
--accent-on-text-rgb:10,10,10;
|
|
151
|
+
color-scheme:light;
|
|
152
|
+
}
|
|
153
|
+
[data-theme="lemon-green"]{
|
|
154
|
+
--paper:#fafaf8;
|
|
155
|
+
--paper-2:#f0f0ee;
|
|
156
|
+
--ink:#0a0a0a;
|
|
157
|
+
--muted:#737373;
|
|
158
|
+
--grey-1:#f0f0ee;
|
|
159
|
+
--grey-2:#d4d4d2;
|
|
160
|
+
--grey-3:#737373;
|
|
161
|
+
--accent:#C5E803;
|
|
162
|
+
--accent-on:#0a0a0a;
|
|
163
|
+
--accent-ink:#4a6400;
|
|
164
|
+
--accent-bright:#D4F040;
|
|
165
|
+
--accent-deep:#3a5000;
|
|
166
|
+
--accent-display:#4a6400;
|
|
167
|
+
--accent-ink-inverse:#D4F040;
|
|
168
|
+
--accent-soft:#f2f8e1;
|
|
169
|
+
--text-primary:#0a0a0a;
|
|
170
|
+
--text-body:#252524;
|
|
171
|
+
--text-secondary:#525252;
|
|
172
|
+
--text-helper:#737373;
|
|
173
|
+
--text-placeholder:#a3a3a3;
|
|
174
|
+
--text-on-color:#0a0a0a;
|
|
175
|
+
--line-strong:#a3a3a3;
|
|
176
|
+
--line:#d4d4d2;
|
|
177
|
+
--line-subtle:#e0e0e0;
|
|
178
|
+
--ink-rgb:10,10,10;
|
|
179
|
+
--paper-rgb:250,250,248;
|
|
180
|
+
--accent-rgb:197,232,3;
|
|
181
|
+
--accent-on-rgb:10,10,10;
|
|
182
|
+
--accent-on-text:#0a0a0a;
|
|
183
|
+
--accent-on-text-rgb:10,10,10;
|
|
184
|
+
color-scheme:light;
|
|
185
|
+
}
|
|
186
|
+
[data-theme="safety-orange"]{
|
|
187
|
+
--paper:#fafaf8;
|
|
188
|
+
--paper-2:#f0f0ee;
|
|
189
|
+
--ink:#0a0a0a;
|
|
190
|
+
--muted:#737373;
|
|
191
|
+
--grey-1:#f0f0ee;
|
|
192
|
+
--grey-2:#d4d4d2;
|
|
193
|
+
--grey-3:#737373;
|
|
194
|
+
--accent:#FF6B35;
|
|
195
|
+
--accent-on:#ffffff;
|
|
196
|
+
--accent-ink:#c2410c;
|
|
197
|
+
--accent-bright:#FF9A6C;
|
|
198
|
+
--accent-deep:#9a3409;
|
|
199
|
+
--accent-display:#FF6B35;
|
|
200
|
+
--accent-ink-inverse:#FF9A6C;
|
|
201
|
+
--accent-soft:#fee8de;
|
|
202
|
+
--text-primary:#0a0a0a;
|
|
203
|
+
--text-body:#252524;
|
|
204
|
+
--text-secondary:#525252;
|
|
205
|
+
--text-helper:#737373;
|
|
206
|
+
--text-placeholder:#a3a3a3;
|
|
207
|
+
--text-on-color:#ffffff;
|
|
208
|
+
--line-strong:#a3a3a3;
|
|
209
|
+
--line:#d4d4d2;
|
|
210
|
+
--line-subtle:#e0e0e0;
|
|
211
|
+
--ink-rgb:10,10,10;
|
|
212
|
+
--paper-rgb:250,250,248;
|
|
213
|
+
--accent-rgb:255,107,53;
|
|
214
|
+
--accent-on-rgb:255,255,255;
|
|
215
|
+
--accent-on-text:#0a0a0a;
|
|
216
|
+
--accent-on-text-rgb:10,10,10;
|
|
217
|
+
color-scheme:light;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
:root{
|
|
221
|
+
--fs-display:min(11vw,19.556vh);
|
|
222
|
+
--fw-display:200;
|
|
223
|
+
--lh-display:0.92;
|
|
224
|
+
--ls-display:-.04em;
|
|
225
|
+
--ff-display:var(--font-display);
|
|
226
|
+
--fst-display:normal;
|
|
227
|
+
--tt-display:none;
|
|
228
|
+
--fs-display-zh:min(8.4vw,14.933vh);
|
|
229
|
+
--fw-display-zh:200;
|
|
230
|
+
--lh-display-zh:0.96;
|
|
231
|
+
--ls-display-zh:-.025em;
|
|
232
|
+
--ff-display-zh:var(--font-display);
|
|
233
|
+
--fst-display-zh:normal;
|
|
234
|
+
--tt-display-zh:none;
|
|
235
|
+
--fs-title:min(6vw,10.667vh);
|
|
236
|
+
--fw-title:200;
|
|
237
|
+
--lh-title:1;
|
|
238
|
+
--ls-title:-.03em;
|
|
239
|
+
--ff-title:var(--font-display);
|
|
240
|
+
--fst-title:normal;
|
|
241
|
+
--tt-title:none;
|
|
242
|
+
--fs-title-zh:min(5vw,8.889vh);
|
|
243
|
+
--fw-title-zh:200;
|
|
244
|
+
--lh-title-zh:1.05;
|
|
245
|
+
--ls-title-zh:-.025em;
|
|
246
|
+
--ff-title-zh:var(--font-display);
|
|
247
|
+
--fst-title-zh:normal;
|
|
248
|
+
--tt-title-zh:none;
|
|
249
|
+
--fs-heading:min(2.6vw,4.622vh);
|
|
250
|
+
--fw-heading:300;
|
|
251
|
+
--lh-heading:1.18;
|
|
252
|
+
--ls-heading:-.015em;
|
|
253
|
+
--ff-heading:var(--font-sans);
|
|
254
|
+
--fst-heading:normal;
|
|
255
|
+
--tt-heading:none;
|
|
256
|
+
--fs-subhead:min(2.2vw,3.911vh);
|
|
257
|
+
--fw-subhead:400;
|
|
258
|
+
--lh-subhead:1.3;
|
|
259
|
+
--ls-subhead:-.01em;
|
|
260
|
+
--ff-subhead:var(--font-sans);
|
|
261
|
+
--fst-subhead:normal;
|
|
262
|
+
--tt-subhead:none;
|
|
263
|
+
--fs-lead:max(min(20px,2.778vh),min(1.55vw,2.756vh));
|
|
264
|
+
--fw-lead:400;
|
|
265
|
+
--lh-lead:1.4;
|
|
266
|
+
--ls-lead:-.005em;
|
|
267
|
+
--ff-lead:var(--font-sans);
|
|
268
|
+
--fst-lead:normal;
|
|
269
|
+
--tt-lead:none;
|
|
270
|
+
--fs-body:max(min(18px,2.5vh),min(1.08vw,1.92vh));
|
|
271
|
+
--fw-body:400;
|
|
272
|
+
--lh-body:1.6;
|
|
273
|
+
--ls-body:0;
|
|
274
|
+
--ff-body:var(--font-sans);
|
|
275
|
+
--fst-body:normal;
|
|
276
|
+
--tt-body:none;
|
|
277
|
+
--fs-small:max(min(16px,2.222vh),min(.92vw,1.636vh));
|
|
278
|
+
--fw-small:400;
|
|
279
|
+
--lh-small:1.55;
|
|
280
|
+
--ls-small:0;
|
|
281
|
+
--ff-small:var(--font-sans);
|
|
282
|
+
--fst-small:normal;
|
|
283
|
+
--tt-small:none;
|
|
284
|
+
--fs-caption:max(min(14px,1.944vh),min(.82vw,1.458vh));
|
|
285
|
+
--fw-caption:400;
|
|
286
|
+
--lh-caption:1.4;
|
|
287
|
+
--ls-caption:.18em;
|
|
288
|
+
--ff-caption:var(--font-mono);
|
|
289
|
+
--fst-caption:normal;
|
|
290
|
+
--tt-caption:uppercase;
|
|
291
|
+
--fs-label:min(14px,1.944vh);
|
|
292
|
+
--fw-label:500;
|
|
293
|
+
--lh-label:1.3;
|
|
294
|
+
--ls-label:.16em;
|
|
295
|
+
--ff-label:var(--font-mono);
|
|
296
|
+
--fst-label:normal;
|
|
297
|
+
--tt-label:uppercase;
|
|
298
|
+
--fs-meta:max(min(14px,1.944vh),min(.88vw,1.564vh));
|
|
299
|
+
--fw-meta:400;
|
|
300
|
+
--lh-meta:1.3;
|
|
301
|
+
--ls-meta:.16em;
|
|
302
|
+
--ff-meta:var(--font-mono);
|
|
303
|
+
--fst-meta:normal;
|
|
304
|
+
--tt-meta:uppercase;
|
|
305
|
+
--fs-quote:min(5vw,8.889vh);
|
|
306
|
+
--fw-quote:200;
|
|
307
|
+
--lh-quote:1.1;
|
|
308
|
+
--ls-quote:-.025em;
|
|
309
|
+
--ff-quote:var(--font-display);
|
|
310
|
+
--fst-quote:normal;
|
|
311
|
+
--tt-quote:none;
|
|
312
|
+
--fs-num-xl:min(11vw,19.556vh);
|
|
313
|
+
--fw-num-xl:800;
|
|
314
|
+
--lh-num-xl:0.85;
|
|
315
|
+
--ls-num-xl:-.04em;
|
|
316
|
+
--ff-num-xl:var(--font-display);
|
|
317
|
+
--fst-num-xl:normal;
|
|
318
|
+
--tt-num-xl:none;
|
|
319
|
+
--fs-num-l:min(6vw,10.667vh);
|
|
320
|
+
--fw-num-l:700;
|
|
321
|
+
--lh-num-l:0.88;
|
|
322
|
+
--ls-num-l:-.03em;
|
|
323
|
+
--ff-num-l:var(--font-display);
|
|
324
|
+
--fst-num-l:normal;
|
|
325
|
+
--tt-num-l:none;
|
|
326
|
+
--fs-num-m:min(5.6vw,9.956vh);
|
|
327
|
+
--fw-num-m:800;
|
|
328
|
+
--lh-num-m:0.88;
|
|
329
|
+
--ls-num-m:-.035em;
|
|
330
|
+
--ff-num-m:var(--font-display);
|
|
331
|
+
--fst-num-m:normal;
|
|
332
|
+
--tt-num-m:none;
|
|
333
|
+
--canvas-padding:5.5vh 5vw 7vh;
|
|
334
|
+
--canvas-safe-bottom:8vh;
|
|
335
|
+
--sp-1:0.1042vw;
|
|
336
|
+
--sp-2:0.2083vw;
|
|
337
|
+
--sp-3:0.4167vw;
|
|
338
|
+
--sp-4:0.625vw;
|
|
339
|
+
--sp-5:0.8333vw;
|
|
340
|
+
--sp-6:1.25vw;
|
|
341
|
+
--sp-7:1.6667vw;
|
|
342
|
+
--sp-8:2.0833vw;
|
|
343
|
+
--sp-9:2.5vw;
|
|
344
|
+
--sp-10:3.3333vw;
|
|
345
|
+
--sp-11:4.1667vw;
|
|
346
|
+
--sp-12:5vw;
|
|
347
|
+
--sp-13:8.3333vw;
|
|
348
|
+
}
|
|
349
|
+
.gz-t-display{font-family:var(--ff-display);font-size:var(--fs-display);font-weight:var(--fw-display);line-height:var(--lh-display);letter-spacing:var(--ls-display);font-style:var(--fst-display);text-transform:var(--tt-display)}
|
|
350
|
+
.gz-t-display-zh{font-family:var(--ff-display-zh);font-size:var(--fs-display-zh);font-weight:var(--fw-display-zh);line-height:var(--lh-display-zh);letter-spacing:var(--ls-display-zh);font-style:var(--fst-display-zh);text-transform:var(--tt-display-zh)}
|
|
351
|
+
.gz-t-title{font-family:var(--ff-title);font-size:var(--fs-title);font-weight:var(--fw-title);line-height:var(--lh-title);letter-spacing:var(--ls-title);font-style:var(--fst-title);text-transform:var(--tt-title)}
|
|
352
|
+
.gz-t-title-zh{font-family:var(--ff-title-zh);font-size:var(--fs-title-zh);font-weight:var(--fw-title-zh);line-height:var(--lh-title-zh);letter-spacing:var(--ls-title-zh);font-style:var(--fst-title-zh);text-transform:var(--tt-title-zh)}
|
|
353
|
+
.gz-t-heading{font-family:var(--ff-heading);font-size:var(--fs-heading);font-weight:var(--fw-heading);line-height:var(--lh-heading);letter-spacing:var(--ls-heading);font-style:var(--fst-heading);text-transform:var(--tt-heading)}
|
|
354
|
+
.gz-t-subhead{font-family:var(--ff-subhead);font-size:var(--fs-subhead);font-weight:var(--fw-subhead);line-height:var(--lh-subhead);letter-spacing:var(--ls-subhead);font-style:var(--fst-subhead);text-transform:var(--tt-subhead)}
|
|
355
|
+
.gz-t-lead{font-family:var(--ff-lead);font-size:var(--fs-lead);font-weight:var(--fw-lead);line-height:var(--lh-lead);letter-spacing:var(--ls-lead);font-style:var(--fst-lead);text-transform:var(--tt-lead)}
|
|
356
|
+
.gz-t-body{font-family:var(--ff-body);font-size:var(--fs-body);font-weight:var(--fw-body);line-height:var(--lh-body);letter-spacing:var(--ls-body);font-style:var(--fst-body);text-transform:var(--tt-body)}
|
|
357
|
+
.gz-t-small{font-family:var(--ff-small);font-size:var(--fs-small);font-weight:var(--fw-small);line-height:var(--lh-small);letter-spacing:var(--ls-small);font-style:var(--fst-small);text-transform:var(--tt-small)}
|
|
358
|
+
.gz-t-caption{font-family:var(--ff-caption);font-size:var(--fs-caption);font-weight:var(--fw-caption);line-height:var(--lh-caption);letter-spacing:var(--ls-caption);font-style:var(--fst-caption);text-transform:var(--tt-caption)}
|
|
359
|
+
.gz-t-label{font-family:var(--ff-label);font-size:var(--fs-label);font-weight:var(--fw-label);line-height:var(--lh-label);letter-spacing:var(--ls-label);font-style:var(--fst-label);text-transform:var(--tt-label)}
|
|
360
|
+
.gz-t-meta{font-family:var(--ff-meta);font-size:var(--fs-meta);font-weight:var(--fw-meta);line-height:var(--lh-meta);letter-spacing:var(--ls-meta);font-style:var(--fst-meta);text-transform:var(--tt-meta)}
|
|
361
|
+
.gz-t-quote{font-family:var(--ff-quote);font-size:var(--fs-quote);font-weight:var(--fw-quote);line-height:var(--lh-quote);letter-spacing:var(--ls-quote);font-style:var(--fst-quote);text-transform:var(--tt-quote)}
|
|
362
|
+
.gz-t-num-xl{font-family:var(--ff-num-xl);font-size:var(--fs-num-xl);font-weight:var(--fw-num-xl);line-height:var(--lh-num-xl);letter-spacing:var(--ls-num-xl);font-style:var(--fst-num-xl);text-transform:var(--tt-num-xl)}
|
|
363
|
+
.gz-t-num-l{font-family:var(--ff-num-l);font-size:var(--fs-num-l);font-weight:var(--fw-num-l);line-height:var(--lh-num-l);letter-spacing:var(--ls-num-l);font-style:var(--fst-num-l);text-transform:var(--tt-num-l)}
|
|
364
|
+
.gz-t-num-m{font-family:var(--ff-num-m);font-size:var(--fs-num-m);font-weight:var(--fw-num-m);line-height:var(--lh-num-m);letter-spacing:var(--ls-num-m);font-style:var(--fst-num-m);text-transform:var(--tt-num-m)}
|
|
365
|
+
|
|
366
|
+
:lang(zh){line-break:strict;text-spacing-trim:normal;text-autospace:normal;overflow-wrap:break-word}
|
|
367
|
+
:lang(zh) .gz-prose em:not(:lang(en)){font-style:normal;text-emphasis:filled dot;text-emphasis-position:under right}
|
|
368
|
+
.gz-tnum{font-variant-numeric:tabular-nums}
|
|
369
|
+
|
|
370
|
+
/* 歸藏设计系统 · 共享组件
|
|
371
|
+
*
|
|
372
|
+
* 一份结构,三种介质:根节点 <html data-family="magazine|swiss" data-medium="slide|card|page">。
|
|
373
|
+
* 这里只管布局、颜色和间距;字号、字重、行高一律由 gz-t-<角色> 类提供,
|
|
374
|
+
* 所以同一个组件放进 PPT、卡片、网页会自动换成各自的字号。
|
|
375
|
+
* 颜色只用语义 token(--text-* / --line-* / --accent*),换主题不需要改组件。
|
|
376
|
+
*/
|
|
377
|
+
|
|
378
|
+
/* ---------- 家族差异 ---------- */
|
|
379
|
+
/* 单张卡片 / 单页换主题([data-theme])或反色([data-surface])时,线条变量要在那一层重新计算,否则沿用根节点的颜色 */
|
|
380
|
+
[data-family="magazine"], [data-family="magazine"] [data-theme], [data-family="magazine"] [data-surface] { --img-pos: center top; --rule: 1px solid var(--line-strong); --rule-strong: 1px solid var(--line-strong) }
|
|
381
|
+
[data-family="swiss"], [data-family="swiss"] [data-theme], [data-family="swiss"] [data-surface] { --img-pos: center center; --rule: 1px solid var(--line); --rule-strong: 2px solid var(--ink) }
|
|
382
|
+
|
|
383
|
+
/* ---------- 表面:反色块里文字角色跟着换 ---------- */
|
|
384
|
+
[data-surface="ink"] {
|
|
385
|
+
background: var(--ink); color: var(--paper);
|
|
386
|
+
--text-primary: var(--paper); --text-body: rgba(var(--paper-rgb), .86); --text-secondary: rgba(var(--paper-rgb), .72);
|
|
387
|
+
--text-helper: rgba(var(--paper-rgb), .62); --line: rgba(var(--paper-rgb), .22); --line-strong: rgba(var(--paper-rgb), .45);
|
|
388
|
+
--accent-ink: var(--accent-ink-inverse); --accent-display: var(--accent-ink-inverse); --rule-strong: 2px solid var(--paper);
|
|
389
|
+
}
|
|
390
|
+
[data-family="magazine"] [data-surface="ink"], [data-family="magazine"][data-surface="ink"] { --rule-strong: 1px solid rgba(var(--paper-rgb), .45) }
|
|
391
|
+
[data-surface="accent"] {
|
|
392
|
+
background: var(--accent); color: var(--accent-on);
|
|
393
|
+
--text-primary: var(--accent-on); --text-body: rgba(var(--accent-on-rgb), .88); --text-secondary: rgba(var(--accent-on-rgb), .78);
|
|
394
|
+
--text-helper: rgba(var(--accent-on-rgb), .7); --line: rgba(var(--accent-on-rgb), .3); --line-strong: rgba(var(--accent-on-rgb), .55);
|
|
395
|
+
--accent-ink: var(--accent-on); --accent-display: var(--accent-on); --rule-strong: 2px solid var(--accent-on);
|
|
396
|
+
}
|
|
397
|
+
[data-surface="paper-2"] { background: var(--paper-2) }
|
|
398
|
+
|
|
399
|
+
/* 强调色文字:小字用 accent-ink,大字 / 大数字用 accent-display(浅色强调色在纸上会自动加深;反色块里自动切换) */
|
|
400
|
+
.gz-c-accent { color: var(--accent-ink) }
|
|
401
|
+
.gz-c-accent-display { color: var(--accent-display) }
|
|
402
|
+
|
|
403
|
+
/* ---------- 页眉页脚 chrome ---------- */
|
|
404
|
+
.gz-chrome { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-6); color: var(--text-helper); border-top: var(--rule); padding-top: var(--sp-4) }
|
|
405
|
+
.gz-chrome[data-pos="top"] { border-top: 0; border-bottom: var(--rule); padding: 0 0 var(--sp-4) }
|
|
406
|
+
.gz-chrome__group { display: flex; gap: var(--sp-5); min-width: 0 }
|
|
407
|
+
.gz-chrome__accent { color: var(--accent-ink) }
|
|
408
|
+
|
|
409
|
+
/* ---------- 封面 cover ---------- */
|
|
410
|
+
.gz-cover { display: flex; flex-direction: column; gap: var(--sp-6); color: var(--text-primary) }
|
|
411
|
+
.gz-cover__kicker { color: var(--text-helper) }
|
|
412
|
+
[data-family="swiss"] .gz-cover__kicker { color: var(--accent-ink) }
|
|
413
|
+
.gz-cover__body { width: 100%; container-type: inline-size }
|
|
414
|
+
/* 标题按最长一行的字数自动收字号:--chars 由 components/render.mjs 算好写进 style;手写时填最长一行的字数(中文 1、西文约 0.56)。上限仍是 token 定的展示字号 */
|
|
415
|
+
.gz-cover__title { margin: 0; font-size: min(var(--fs-display-zh), calc(100cqi / var(--chars, 1) * .94)) }
|
|
416
|
+
.gz-cover__rule { width: 96px; height: 0; border-top: 2px solid var(--accent) }
|
|
417
|
+
[data-family="swiss"] .gz-cover__rule { border-top-width: 3px }
|
|
418
|
+
.gz-cover__sub { margin: 0; color: var(--text-body); max-width: 32em }
|
|
419
|
+
.gz-cover__meta { margin-top: auto }
|
|
420
|
+
/* 幻灯片、卡片:封面撑满画布,标题压在下半部 */
|
|
421
|
+
[data-medium="slide"] .gz-cover, [data-medium="card"] .gz-cover { height: 100% }
|
|
422
|
+
[data-medium="slide"] .gz-cover__body, [data-medium="card"] .gz-cover__body { margin-top: auto; display: flex; flex-direction: column; gap: var(--sp-7) }
|
|
423
|
+
[data-medium="slide"] .gz-cover__meta, [data-medium="card"] .gz-cover__meta { margin-top: var(--sp-10) }
|
|
424
|
+
/* 网页:杂志风居中,瑞士风左对齐 */
|
|
425
|
+
[data-medium="page"] .gz-cover { padding: var(--sp-11) 0 var(--sp-9); border-bottom: var(--rule) }
|
|
426
|
+
[data-medium="page"] .gz-cover__body { display: flex; flex-direction: column; gap: var(--sp-6) }
|
|
427
|
+
[data-medium="page"][data-family="magazine"] .gz-cover { align-items: center; text-align: center }
|
|
428
|
+
[data-medium="page"][data-family="magazine"] .gz-cover__body { align-items: center }
|
|
429
|
+
[data-medium="page"] .gz-cover__meta { margin-top: var(--sp-6); border-top: 0; padding-top: 0; justify-content: center }
|
|
430
|
+
[data-medium="page"][data-family="swiss"] .gz-cover__meta { justify-content: flex-start }
|
|
431
|
+
|
|
432
|
+
/* ---------- 大数字 stat ---------- */
|
|
433
|
+
.gz-stats { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--sp-9) var(--sp-7) }
|
|
434
|
+
.gz-stats[data-count="1"] { --cols: 1 } .gz-stats[data-count="2"] { --cols: 2 } .gz-stats[data-count="4"] { --cols: 4 }
|
|
435
|
+
[data-medium="card"] .gz-stats { --cols: 2 }
|
|
436
|
+
[data-medium="card"] .gz-stats[data-count="1"], [data-medium="card"] .gz-stats[data-count="3"] { --cols: 1 }
|
|
437
|
+
.gz-stat { display: flex; flex-direction: column; gap: var(--sp-4); border-top: var(--rule-strong); padding-top: var(--sp-5); min-width: 0 }
|
|
438
|
+
.gz-stat__label { color: var(--text-helper) }
|
|
439
|
+
.gz-stat__value { display: flex; align-items: baseline; gap: .06em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap }
|
|
440
|
+
.gz-stat__unit { font-size: .4em; font-weight: 500; letter-spacing: 0; color: var(--text-secondary) }
|
|
441
|
+
.gz-stat.is-accent .gz-stat__num { color: var(--accent-ink) }
|
|
442
|
+
.gz-stat__note { margin: 0; color: var(--text-secondary); max-width: 24em }
|
|
443
|
+
[data-medium="card"] .gz-stats[data-count="3"] .gz-stat { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: var(--sp-7) }
|
|
444
|
+
[data-medium="card"] .gz-stats[data-count="3"] .gz-stat__label { grid-column: 1 / -1 }
|
|
445
|
+
[data-medium="card"] .gz-stats[data-count="3"] .gz-stat__note { padding-bottom: .6em }
|
|
446
|
+
|
|
447
|
+
/* ---------- 引言 quote ---------- */
|
|
448
|
+
.gz-quote { margin: 0; display: flex; flex-direction: column; gap: var(--sp-7) }
|
|
449
|
+
.gz-quote__text { margin: 0; color: var(--text-primary); text-wrap: balance }
|
|
450
|
+
.gz-quote__text p { margin: 0; text-wrap: balance }
|
|
451
|
+
[data-family="magazine"] .gz-quote__text::before { content: "\201C"; display: block; font-family: var(--font-display); font-style: normal; color: var(--accent); font-size: 1.8em; line-height: 1; height: .55em }
|
|
452
|
+
[data-family="swiss"] .gz-quote { border-top: var(--rule-strong); padding-top: var(--sp-7) }
|
|
453
|
+
.gz-quote__source { color: var(--text-helper) }
|
|
454
|
+
[data-medium="page"][data-family="magazine"] .gz-quote { align-items: center; text-align: center; padding: var(--sp-9) 0 }
|
|
455
|
+
|
|
456
|
+
/* ---------- 流程 process:幻灯片 / 网页横排,卡片竖排 ---------- */
|
|
457
|
+
.gz-process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--sp-7) }
|
|
458
|
+
.gz-process__step { display: flex; flex-direction: column; gap: var(--sp-4); border-top: var(--rule-strong); padding-top: var(--sp-5); min-width: 0 }
|
|
459
|
+
.gz-process__nb { color: var(--accent-ink) }
|
|
460
|
+
.gz-process__title { margin: 0 }
|
|
461
|
+
.gz-process__desc { margin: 0; color: var(--text-secondary) }
|
|
462
|
+
[data-medium="card"] .gz-process { grid-template-columns: 1fr; gap: 0; border-bottom: var(--rule) }
|
|
463
|
+
[data-medium="card"] .gz-process__step { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: var(--sp-6); row-gap: var(--sp-3); padding: var(--sp-7) 0 }
|
|
464
|
+
[data-medium="card"] .gz-process__step + .gz-process__step { border-top: var(--rule) }
|
|
465
|
+
[data-medium="card"] .gz-process__nb { grid-row: span 2 }
|
|
466
|
+
[data-medium="page"] .gz-process { --n: 2; row-gap: var(--sp-8) }
|
|
467
|
+
|
|
468
|
+
/* ---------- 对比 compare:左右分栏,卡片上下叠 ---------- */
|
|
469
|
+
.gz-compare { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); gap: 0 var(--sp-9) }
|
|
470
|
+
.gz-compare__rule { background: var(--line-strong) }
|
|
471
|
+
.gz-compare__side { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0 }
|
|
472
|
+
.gz-compare__tag { color: var(--text-helper) }
|
|
473
|
+
.gz-compare__side[data-side="after"] .gz-compare__tag { color: var(--accent-ink) }
|
|
474
|
+
.gz-compare__title { margin: 0 }
|
|
475
|
+
.gz-compare__side[data-side="before"] .gz-compare__title { color: var(--text-secondary) }
|
|
476
|
+
.gz-compare__desc { margin: 0; color: var(--text-secondary) }
|
|
477
|
+
.gz-compare__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); color: var(--text-body) }
|
|
478
|
+
.gz-compare__list li { padding-left: 1.2em; position: relative }
|
|
479
|
+
.gz-compare__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: .5em; border-top: 1px solid currentColor }
|
|
480
|
+
[data-family="swiss"] .gz-compare__side[data-side="after"][data-surface] { padding: var(--sp-8) }
|
|
481
|
+
[data-medium="card"] .gz-compare { grid-template-columns: 1fr; gap: var(--sp-8) 0 }
|
|
482
|
+
[data-medium="card"] .gz-compare__rule { height: 1px }
|
|
483
|
+
|
|
484
|
+
/* ---------- 图框 figure:照片 cover 裁切,截图 contain 放在底台上 ---------- */
|
|
485
|
+
.gz-figure { margin: 0; display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0 }
|
|
486
|
+
.gz-figure__well { position: relative; aspect-ratio: var(--ratio, 16 / 10); overflow: hidden; background: var(--paper-2) }
|
|
487
|
+
.gz-figure__well > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--img-pos) }
|
|
488
|
+
.gz-figure[data-ratio="16x9"] { --ratio: 16 / 9 } .gz-figure[data-ratio="16x10"] { --ratio: 16 / 10 } .gz-figure[data-ratio="4x3"] { --ratio: 4 / 3 }
|
|
489
|
+
.gz-figure[data-ratio="3x2"] { --ratio: 3 / 2 } .gz-figure[data-ratio="1x1"] { --ratio: 1 } .gz-figure[data-ratio="3x4"] { --ratio: 3 / 4 } .gz-figure[data-ratio="21x9"] { --ratio: 21 / 9 }
|
|
490
|
+
.gz-figure[data-kind="screenshot"] .gz-figure__well { display: flex; align-items: center; justify-content: center; padding: var(--inset, var(--sp-8)) }
|
|
491
|
+
.gz-figure[data-kind="screenshot"] .gz-figure__well > img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--line) }
|
|
492
|
+
[data-family="magazine"] .gz-figure[data-kind="screenshot"] .gz-figure__well > img { box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(var(--ink-rgb), .45) }
|
|
493
|
+
[data-family="swiss"] .gz-figure[data-kind="screenshot"] .gz-figure__well { background: var(--grey-1); border-top: 3px solid var(--accent) }
|
|
494
|
+
[data-family="swiss"] .gz-figure[data-kind="screenshot"] .gz-figure__well > img { border-radius: 0 }
|
|
495
|
+
.gz-figure__cap { color: var(--text-helper); display: flex; gap: var(--sp-4) }
|
|
496
|
+
.gz-figure__idx { color: var(--accent-ink); flex: none }
|
|
497
|
+
|
|
498
|
+
/* ---------- 图片网格 gallery ---------- */
|
|
499
|
+
.gz-gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--sp-7) var(--sp-6) }
|
|
500
|
+
[data-medium="card"] .gz-gallery { --cols: 2 }
|
|
501
|
+
[data-medium="card"] .gz-gallery[data-count="3"] > :first-child { grid-column: 1 / -1; --ratio: 16 / 9 }
|
|
502
|
+
|
|
503
|
+
/* ---------- 条目清单 ledger ---------- */
|
|
504
|
+
.gz-ledger { list-style: none; margin: 0; padding: 0; border-top: var(--rule-strong) }
|
|
505
|
+
.gz-ledger__row { display: grid; grid-template-columns: var(--nb-w, 3.2em) minmax(0, 1fr) auto; column-gap: var(--sp-6); align-items: baseline; padding: var(--sp-6) 0; border-bottom: var(--rule) }
|
|
506
|
+
.gz-ledger__nb { color: var(--accent-ink) }
|
|
507
|
+
.gz-ledger__title { margin: 0 }
|
|
508
|
+
.gz-ledger__note { margin: var(--sp-2) 0 0; color: var(--text-secondary) }
|
|
509
|
+
.gz-ledger__value { color: var(--text-helper); text-align: right; white-space: nowrap }
|
|
510
|
+
[data-medium="card"] .gz-ledger__row { --nb-w: 72px; padding: var(--sp-7) 0 }
|
|
511
|
+
|
|
512
|
+
/* 歸藏设计系统 · 纹理与特效图层(纯 CSS,颜色全部来自 token)
|
|
513
|
+
* 来源:PPT 瑞士风 .dots / .dot-mat / .ring-mat / .cross-mat / .hatch,卡片杂志风 .grain / .paper-wash。
|
|
514
|
+
*/
|
|
515
|
+
|
|
516
|
+
/* 特效画布:铺满父容器、在内容下面、不挡点击。父容器需要 position: relative */
|
|
517
|
+
.gz-effect { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0 }
|
|
518
|
+
.gz-layer-content { position: relative; z-index: 1 }
|
|
519
|
+
|
|
520
|
+
/* 点阵:前景色画点,跟随所在表面的文字色 */
|
|
521
|
+
.gz-dots { background-image: radial-gradient(currentColor 1px, transparent 1.2px); background-size: 12px 12px; opacity: .18 }
|
|
522
|
+
.gz-dots-fine { background-image: radial-gradient(currentColor .8px, transparent 1px); background-size: 8px 8px; opacity: .14 }
|
|
523
|
+
.gz-dots-bold { background-image: radial-gradient(currentColor 1.4px, transparent 1.6px); background-size: 18px 18px; opacity: .22 }
|
|
524
|
+
|
|
525
|
+
.gz-dot-mat { --mat: 14px; background-image: radial-gradient(currentColor 1.4px, transparent 1.6px); background-size: var(--mat) var(--mat); opacity: .5 }
|
|
526
|
+
.gz-dot-mat.is-lg { --mat: 22px } .gz-dot-mat.is-xl { --mat: 34px }
|
|
527
|
+
.gz-dot-mat.is-dense{ --mat: 9px; opacity: .62 }
|
|
528
|
+
.gz-ring-mat { --mat: 18px; background-image: radial-gradient(circle, transparent 2px, currentColor 2px, currentColor 2.7px, transparent 2.9px); background-size: var(--mat) var(--mat); opacity: .55 }
|
|
529
|
+
.gz-ring-mat.is-lg { --mat: 28px }
|
|
530
|
+
.gz-cross-mat { --mat: 22px; background: currentColor; opacity: .42;
|
|
531
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M8 8l6 6M14 8l-6 6' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") 0 0 / var(--mat) var(--mat);
|
|
532
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M8 8l6 6M14 8l-6 6' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") 0 0 / var(--mat) var(--mat) }
|
|
533
|
+
.gz-cross-mat.is-lg { --mat: 32px }
|
|
534
|
+
.gz-hatch { background-image: repeating-linear-gradient(135deg, currentColor 0 1px, transparent 1px 8px); opacity: .55 }
|
|
535
|
+
|
|
536
|
+
/* 纸张颗粒与墨色晕染:杂志风卡片的「氛围层」,叠在特效画布上、内容下 */
|
|
537
|
+
.gz-grain { position: absolute; inset: 0; pointer-events: none; z-index: 0; mix-blend-mode: multiply; opacity: .35;
|
|
538
|
+
background-image: radial-gradient(rgba(0,0,0,.045) 1px, transparent 1px); background-size: 3px 3px }
|
|
539
|
+
[data-scheme="dark"] .gz-grain, .gz-grain.is-dark { mix-blend-mode: screen; opacity: .26; background-image: radial-gradient(rgba(255,244,214,.10) 1px, transparent 1px) }
|
|
540
|
+
.gz-paper-wash { position: absolute; inset: 0; pointer-events: none; z-index: 0;
|
|
541
|
+
background: linear-gradient(180deg, rgba(var(--ink-rgb), .02), rgba(var(--ink-rgb), .05) 60%, rgba(var(--ink-rgb), .08)) }
|
|
542
|
+
.gz-ink-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 0;
|
|
543
|
+
background: radial-gradient(circle at 18% 12%, rgba(var(--ink-rgb), .10), transparent 34%), radial-gradient(circle at 82% 80%, rgba(var(--accent-rgb), .10), transparent 38%) }
|
|
544
|
+
|
|
545
|
+
/* PPT 杂志风:WebGL 背景上的纸 / 墨蒙版,保证文字可读(原 .slide.light/.dark::before) */
|
|
546
|
+
.gz-veil { position: absolute; inset: 0; pointer-events: none; z-index: 0; backdrop-filter: blur(3px); background: rgba(var(--paper-rgb), .78) }
|
|
547
|
+
.gz-veil.is-ink{ background: rgba(var(--ink-rgb), .78) }
|
|
548
|
+
.gz-veil.is-hero { backdrop-filter: none; background: rgba(var(--paper-rgb), .16) }
|
|
549
|
+
.gz-veil.is-hero.is-ink { background: rgba(var(--ink-rgb), .12) }
|
|
550
|
+
|
|
551
|
+
@media (prefers-reduced-motion: reduce) { .gz-effect { animation: none } }
|
|
552
|
+
|
|
553
|
+
/* 旧变量名别名(迁移期保留) */
|
|
554
|
+
:root{--sans:var(--font-sans);--sans-zh:'Noto Sans SC','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;--mono:var(--font-mono);--border-subtle:var(--line-subtle);--border-strong:var(--line-strong);--ease-prod:var(--ease-standard);--ease-exp:var(--ease-expressive);--ease-entry-prod:var(--ease-entrance-standard);--ease-entry-exp:var(--ease-entrance);--dur-mod-1:var(--dur-moderate-1);--dur-mod-2:var(--dur-moderate-2);--nav-safe-bottom:var(--canvas-safe-bottom)}
|
|
555
|
+
/* 模板自己的反色块 → 设计系统反色表面 */
|
|
556
|
+
.slide.dark,.split-half > .half.b-ink,.card-ink,.ink-block{--text-primary: var(--paper);--text-body: rgba(var(--paper-rgb), .86);--text-secondary: rgba(var(--paper-rgb), .72);--text-helper: rgba(var(--paper-rgb), .62);--line: rgba(var(--paper-rgb), .22);--line-strong: rgba(var(--paper-rgb), .45);--accent-ink: var(--accent-ink-inverse);--accent-display: var(--accent-ink-inverse);--rule-strong: 2px solid var(--paper)}
|
|
557
|
+
.slide.accent,.split-half > .half.b-accent,.card-accent,.accent-block{--text-primary: var(--accent-on);--text-body: rgba(var(--accent-on-rgb), .88);--text-secondary: rgba(var(--accent-on-rgb), .78);--text-helper: rgba(var(--accent-on-rgb), .7);--line: rgba(var(--accent-on-rgb), .3);--line-strong: rgba(var(--accent-on-rgb), .55);--accent-ink: var(--accent-on);--accent-display: var(--accent-on);--rule-strong: 2px solid var(--accent-on)}
|
|
558
|
+
/* GZ:TOKENS:END */
|
|
75
559
|
*{box-sizing:border-box;margin:0;padding:0}
|
|
76
560
|
html,body{
|
|
77
561
|
width:100%;height:100%;overflow:hidden;
|
|
@@ -136,7 +620,7 @@
|
|
|
136
620
|
.chrome{
|
|
137
621
|
display:flex;justify-content:space-between;align-items:flex-start;
|
|
138
622
|
font-family:var(--mono);
|
|
139
|
-
font-size:14px;letter-spacing:.16em;text-transform:uppercase;
|
|
623
|
+
font-size:min(14px,1.944vh);letter-spacing:.16em;text-transform:uppercase;
|
|
140
624
|
opacity:.7;margin-bottom:auto
|
|
141
625
|
}
|
|
142
626
|
.chrome .l,.chrome .r{display:flex;gap:1.6em;align-items:center}
|
|
@@ -146,7 +630,7 @@
|
|
|
146
630
|
margin-top:auto;
|
|
147
631
|
display:flex;justify-content:space-between;align-items:flex-end;
|
|
148
632
|
font-family:var(--mono);
|
|
149
|
-
font-size:14px;letter-spacing:.14em;text-transform:uppercase;
|
|
633
|
+
font-size:min(14px,1.944vh);letter-spacing:.14em;text-transform:uppercase;
|
|
150
634
|
opacity:.55;
|
|
151
635
|
padding-top:2vh;
|
|
152
636
|
border-top:1px solid currentColor;
|
|
@@ -157,20 +641,19 @@
|
|
|
157
641
|
/* ============ Tag / Kicker / Meta 标签 ============ */
|
|
158
642
|
.kicker{
|
|
159
643
|
font-family:var(--mono);
|
|
160
|
-
font-size:14px;letter-spacing:.24em;text-transform:uppercase;
|
|
644
|
+
font-size:min(14px,1.944vh);letter-spacing:.24em;text-transform:uppercase;
|
|
161
645
|
opacity:.65;margin-bottom:2.4vh;
|
|
162
|
-
display:inline-flex;align-items:center;gap:.8em
|
|
163
|
-
}
|
|
646
|
+
display:inline-flex;align-items:center;gap:.8em}
|
|
164
647
|
.kicker::before{
|
|
165
648
|
content:"";width:24px;height:1px;background:currentColor;opacity:.6
|
|
166
649
|
}
|
|
167
650
|
.kicker.no-line::before{display:none}
|
|
168
|
-
.kicker.accent{color:var(--accent);opacity:1;font-weight:600}
|
|
651
|
+
.kicker.accent{color:var(--accent-ink);opacity:1;font-weight:600}
|
|
169
652
|
|
|
170
653
|
.tag{
|
|
171
654
|
display:inline-block;
|
|
172
655
|
font-family:var(--mono);
|
|
173
|
-
font-size:14px;letter-spacing:.18em;text-transform:uppercase;
|
|
656
|
+
font-size:min(14px,1.944vh);letter-spacing:.18em;text-transform:uppercase;
|
|
174
657
|
padding:5px 10px;border:1px solid currentColor;opacity:.85
|
|
175
658
|
}
|
|
176
659
|
.tag.solid{background:currentColor;color:var(--paper);border-color:transparent}
|
|
@@ -180,42 +663,42 @@
|
|
|
180
663
|
.h-hero{
|
|
181
664
|
font-family:var(--sans),var(--sans-zh);
|
|
182
665
|
font-weight:200;
|
|
183
|
-
font-size:11vw;
|
|
666
|
+
font-size:min(11vw,19.56vh);
|
|
184
667
|
line-height:.92;
|
|
185
668
|
letter-spacing:-.04em;
|
|
186
669
|
}
|
|
187
670
|
.h-hero-zh{
|
|
188
671
|
font-family:var(--sans),var(--sans-zh);
|
|
189
672
|
font-weight:200;
|
|
190
|
-
font-size:8.4vw;
|
|
673
|
+
font-size:min(8.4vw,14.93vh);
|
|
191
674
|
line-height:.96;
|
|
192
675
|
letter-spacing:-.025em;
|
|
193
676
|
}
|
|
194
677
|
.h-xl{
|
|
195
678
|
font-family:var(--sans),var(--sans-zh);
|
|
196
679
|
font-weight:200;
|
|
197
|
-
font-size:6vw;
|
|
680
|
+
font-size:min(6vw,10.67vh);
|
|
198
681
|
line-height:1;
|
|
199
682
|
letter-spacing:-.03em;
|
|
200
683
|
}
|
|
201
684
|
.h-xl-zh{
|
|
202
685
|
font-family:var(--sans),var(--sans-zh);
|
|
203
686
|
font-weight:200;
|
|
204
|
-
font-size:5vw;
|
|
687
|
+
font-size:min(5vw,8.889vh);
|
|
205
688
|
line-height:1.05;
|
|
206
689
|
letter-spacing:-.025em;
|
|
207
690
|
}
|
|
208
691
|
.h-md{
|
|
209
692
|
font-family:var(--sans),var(--sans-zh);
|
|
210
693
|
font-weight:300;
|
|
211
|
-
font-size:2.6vw;
|
|
694
|
+
font-size:min(2.6vw,4.622vh);
|
|
212
695
|
line-height:1.18;
|
|
213
696
|
letter-spacing:-.015em;
|
|
214
697
|
}
|
|
215
698
|
.h-sub{
|
|
216
699
|
font-family:var(--sans),var(--sans-zh);
|
|
217
700
|
font-weight:400;
|
|
218
|
-
font-size:2.2vw;
|
|
701
|
+
font-size:min(2.2vw,3.911vh);
|
|
219
702
|
line-height:1.3;
|
|
220
703
|
letter-spacing:-.01em;
|
|
221
704
|
opacity:.7;
|
|
@@ -225,7 +708,7 @@
|
|
|
225
708
|
.lead{
|
|
226
709
|
font-family:var(--sans),var(--sans-zh);
|
|
227
710
|
font-weight:400;
|
|
228
|
-
font-size:1.55vw;
|
|
711
|
+
font-size:min(1.55vw,2.756vh);
|
|
229
712
|
line-height:1.4;
|
|
230
713
|
letter-spacing:-.005em;
|
|
231
714
|
opacity:.86;
|
|
@@ -233,7 +716,7 @@
|
|
|
233
716
|
.body{
|
|
234
717
|
font-family:var(--sans),var(--sans-zh);
|
|
235
718
|
font-weight:400;
|
|
236
|
-
font-size:max(18px,1.08vw);
|
|
719
|
+
font-size:max(min(18px,2.5vh),min(1.08vw,1.92vh));
|
|
237
720
|
line-height:1.6;
|
|
238
721
|
letter-spacing:0;
|
|
239
722
|
opacity:.78;
|
|
@@ -241,20 +724,20 @@
|
|
|
241
724
|
.body-sm{
|
|
242
725
|
font-family:var(--sans),var(--sans-zh);
|
|
243
726
|
font-weight:400;
|
|
244
|
-
font-size:max(16px,.92vw);
|
|
727
|
+
font-size:max(min(16px,2.222vh),.92vw);
|
|
245
728
|
line-height:1.55;
|
|
246
729
|
opacity:.7;
|
|
247
730
|
}
|
|
248
731
|
.meta{
|
|
249
732
|
font-family:var(--mono);
|
|
250
|
-
font-size:max(14px,.82vw);
|
|
733
|
+
font-size:max(min(14px,1.944vh),.82vw);
|
|
251
734
|
letter-spacing:.18em;text-transform:uppercase;
|
|
252
735
|
opacity:.6;
|
|
253
736
|
}
|
|
254
737
|
.meta-row{
|
|
255
738
|
display:flex;gap:1.4em;align-items:baseline;flex-wrap:wrap;
|
|
256
739
|
font-family:var(--mono);
|
|
257
|
-
font-size:max(14px,.88vw);letter-spacing:.16em;text-transform:uppercase;
|
|
740
|
+
font-size:max(min(14px,1.944vh),.88vw);letter-spacing:.16em;text-transform:uppercase;
|
|
258
741
|
opacity:.65;
|
|
259
742
|
}
|
|
260
743
|
.meta-row span:not(.dot){display:inline-block}
|
|
@@ -267,7 +750,7 @@
|
|
|
267
750
|
.kpi-hero{
|
|
268
751
|
font-family:var(--sans);
|
|
269
752
|
font-weight:800;
|
|
270
|
-
font-size:22vw;
|
|
753
|
+
font-size:min(22vw,39.11vh);
|
|
271
754
|
line-height:.82;
|
|
272
755
|
letter-spacing:-.05em;
|
|
273
756
|
font-feature-settings:"tnum","ss01";
|
|
@@ -281,11 +764,11 @@
|
|
|
281
764
|
margin-left:.12em;
|
|
282
765
|
vertical-align:.5em;
|
|
283
766
|
}
|
|
284
|
-
.kpi-hero.accent{color:var(--accent)}
|
|
767
|
+
.kpi-hero.accent{color:var(--accent-display)}
|
|
285
768
|
.kpi-big{
|
|
286
769
|
font-family:var(--sans);
|
|
287
770
|
font-weight:800;
|
|
288
|
-
font-size:11vw;
|
|
771
|
+
font-size:min(11vw,19.56vh);
|
|
289
772
|
line-height:.85;
|
|
290
773
|
letter-spacing:-.04em;
|
|
291
774
|
font-feature-settings:"tnum"
|
|
@@ -293,7 +776,7 @@
|
|
|
293
776
|
.kpi-mid{
|
|
294
777
|
font-family:var(--sans);
|
|
295
778
|
font-weight:700;
|
|
296
|
-
font-size:6vw;
|
|
779
|
+
font-size:min(6vw,10.67vh);
|
|
297
780
|
line-height:.88;
|
|
298
781
|
letter-spacing:-.03em;
|
|
299
782
|
font-feature-settings:"tnum"
|
|
@@ -310,14 +793,14 @@
|
|
|
310
793
|
.stat-card.accent-top{border-top-color:var(--accent);border-top-width:3px}
|
|
311
794
|
.stat-card .stat-label{
|
|
312
795
|
font-family:var(--mono);
|
|
313
|
-
font-size:max(14px,.82vw);
|
|
796
|
+
font-size:max(min(14px,1.944vh),.82vw);
|
|
314
797
|
letter-spacing:.24em;text-transform:uppercase;
|
|
315
798
|
opacity:.6;
|
|
316
799
|
}
|
|
317
800
|
.stat-card .stat-nb{
|
|
318
801
|
font-family:var(--sans);
|
|
319
802
|
font-weight:800;
|
|
320
|
-
font-size:5.6vw;
|
|
803
|
+
font-size:min(5.6vw,9.956vh);
|
|
321
804
|
line-height:.88;
|
|
322
805
|
letter-spacing:-.035em;
|
|
323
806
|
font-feature-settings:"tnum";
|
|
@@ -335,14 +818,14 @@
|
|
|
335
818
|
.stat-card .stat-note{
|
|
336
819
|
font-family:var(--sans),var(--sans-zh);
|
|
337
820
|
font-weight:400;
|
|
338
|
-
font-size:max(16px,.98vw);
|
|
821
|
+
font-size:max(min(16px,2.222vh),.98vw);
|
|
339
822
|
line-height:1.5;
|
|
340
823
|
opacity:.7;
|
|
341
824
|
margin-top:.6vh;
|
|
342
825
|
}
|
|
343
|
-
.grid-4 .stat-card .stat-nb{font-size:4.6vw}
|
|
344
|
-
.grid-3 .stat-card .stat-nb{font-size:6.4vw}
|
|
345
|
-
.grid-6 .stat-card .stat-nb{font-size:4vw}
|
|
826
|
+
.grid-4 .stat-card .stat-nb{font-size:min(4.6vw,8.178vh)}
|
|
827
|
+
.grid-3 .stat-card .stat-nb{font-size:min(6.4vw,11.38vh)}
|
|
828
|
+
.grid-6 .stat-card .stat-nb{font-size:min(4vw,7.111vh)}
|
|
346
829
|
|
|
347
830
|
/* ============ Accent Block (高亮色块包裹内容) ============ */
|
|
348
831
|
.accent-block{
|
|
@@ -404,18 +887,18 @@
|
|
|
404
887
|
.span-12{grid-column:span 12}
|
|
405
888
|
|
|
406
889
|
/* 经典分栏 */
|
|
407
|
-
.grid-2-7-5{display:grid;grid-template-columns:7fr 5fr;gap:3vw 4vh;align-items:start}
|
|
408
|
-
.grid-2-6-6{display:grid;grid-template-columns:1fr 1fr;gap:3vw 4vh;align-items:start}
|
|
409
|
-
.grid-2-8-4{display:grid;grid-template-columns:8fr 4fr;gap:3vw 4vh;align-items:start}
|
|
410
|
-
.grid-2-4-8{display:grid;grid-template-columns:4fr 8fr;gap:3vw 4vh;align-items:start}
|
|
411
|
-
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:3vw 4vh;align-items:start}
|
|
890
|
+
.grid-2-7-5{display:grid;grid-template-columns:7fr 5fr;gap:min(3vw,5.333vh) 4vh;align-items:start}
|
|
891
|
+
.grid-2-6-6{display:grid;grid-template-columns:1fr 1fr;gap:min(3vw,5.333vh) 4vh;align-items:start}
|
|
892
|
+
.grid-2-8-4{display:grid;grid-template-columns:8fr 4fr;gap:min(3vw,5.333vh) 4vh;align-items:start}
|
|
893
|
+
.grid-2-4-8{display:grid;grid-template-columns:4fr 8fr;gap:min(3vw,5.333vh) 4vh;align-items:start}
|
|
894
|
+
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:min(3vw,5.333vh) 4vh;align-items:start}
|
|
412
895
|
.grid-3-3{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:minmax(0,1fr);gap:2.4vh 2vw}
|
|
413
896
|
.grid-4{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);gap:3vh 3vw;flex:1;align-content:center}
|
|
414
897
|
.grid-6{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);gap:3vh 2.4vw;flex:1;align-content:center}
|
|
415
898
|
|
|
416
899
|
/* 工具类 */
|
|
417
900
|
.col{display:flex;flex-direction:column;gap:2vh}
|
|
418
|
-
.row{display:flex;align-items:center;gap:2vw}
|
|
901
|
+
.row{display:flex;align-items:center;gap:min(2vw,3.556vh) 2vw}
|
|
419
902
|
.fill{flex:1}
|
|
420
903
|
.center{align-items:center;justify-content:center;text-align:center}
|
|
421
904
|
.right{text-align:right;justify-self:end}
|
|
@@ -436,7 +919,7 @@
|
|
|
436
919
|
padding:2vh 2vw;
|
|
437
920
|
border-left:3px solid var(--accent);
|
|
438
921
|
font-family:var(--sans),var(--sans-zh);
|
|
439
|
-
font-size:max(14px,1vw);
|
|
922
|
+
font-size:max(min(14px,1.944vh),min(1vw,1.778vh));
|
|
440
923
|
line-height:1.55;
|
|
441
924
|
opacity:.9;
|
|
442
925
|
}
|
|
@@ -444,7 +927,7 @@
|
|
|
444
927
|
.callout .cite,.callout .callout-src{
|
|
445
928
|
display:block;margin-top:1.2vh;
|
|
446
929
|
font-family:var(--mono);
|
|
447
|
-
font-size:14px;letter-spacing:.16em;text-transform:uppercase;
|
|
930
|
+
font-size:min(14px,1.944vh);letter-spacing:.16em;text-transform:uppercase;
|
|
448
931
|
opacity:.6;
|
|
449
932
|
}
|
|
450
933
|
|
|
@@ -463,7 +946,7 @@
|
|
|
463
946
|
|
|
464
947
|
/* ============ 图片 frame-img ============ */
|
|
465
948
|
.frame-img{overflow:hidden;position:relative;background:var(--paper);box-sizing:border-box;width:100%}
|
|
466
|
-
.slide.dark .frame-img{background:rgba(
|
|
949
|
+
.slide.dark .frame-img{background:rgba(var(--paper-rgb),.06)}
|
|
467
950
|
.frame-img > img{width:100%;height:100%;object-fit:cover;object-position:center center;display:block}
|
|
468
951
|
.frame-img.fit-contain > img{object-fit:contain;object-position:center center}
|
|
469
952
|
.frame-img.pos-top > img{object-position:top center}
|
|
@@ -486,16 +969,16 @@
|
|
|
486
969
|
|
|
487
970
|
/* P22 Image Hero: 下半屏内容区必须和图片拉开距离,不要贴在图下沿 */
|
|
488
971
|
.image-hero-body{
|
|
489
|
-
display:grid;grid-template-columns:6fr 6fr;gap:3vw;
|
|
972
|
+
display:grid;grid-template-columns:6fr 6fr;gap:min(3vw,5.333vh) 3vw;
|
|
490
973
|
padding:6.6vh 5vw 4.4vh;flex:1;align-content:start
|
|
491
974
|
}
|
|
492
975
|
.image-hero-stats{
|
|
493
|
-
display:grid;grid-template-columns:repeat(3,1fr);gap:2vw;align-items:start
|
|
976
|
+
display:grid;grid-template-columns:repeat(3,1fr);gap:min(2vw,3.556vh) 2vw;align-items:start
|
|
494
977
|
}
|
|
495
978
|
.img-cap{
|
|
496
979
|
display:block;margin-top:.8vh;
|
|
497
980
|
font-family:var(--mono);
|
|
498
|
-
font-size:max(14px,.82vw);
|
|
981
|
+
font-size:max(min(14px,1.944vh),.82vw);
|
|
499
982
|
letter-spacing:.2em;text-transform:uppercase;
|
|
500
983
|
opacity:.6;
|
|
501
984
|
}
|
|
@@ -503,7 +986,7 @@
|
|
|
503
986
|
figure.tile > .frame-img{flex:0 0 auto}
|
|
504
987
|
|
|
505
988
|
/* 瑞士风图文混排: 只用直角、发丝线、单一 accent;图像容器不加圆角/阴影 */
|
|
506
|
-
.swiss-img-split{display:grid;grid-template-columns:5fr 7fr;gap:3vw;align-items:start;flex:1;min-height:0}
|
|
989
|
+
.swiss-img-split{display:grid;grid-template-columns:5fr 7fr;gap:min(3vw,5.333vh) 3vw;align-items:start;flex:1;min-height:0}
|
|
507
990
|
.swiss-img-split.reverse{grid-template-columns:7fr 5fr}
|
|
508
991
|
.swiss-img-split.align-bottom{align-items:end}
|
|
509
992
|
.swiss-img-split.align-bottom .swiss-img-copy{align-self:end}
|
|
@@ -523,23 +1006,23 @@
|
|
|
523
1006
|
.swiss-img-caption{
|
|
524
1007
|
display:flex;justify-content:space-between;gap:var(--sp-5);
|
|
525
1008
|
margin-top:var(--sp-4);
|
|
526
|
-
font-family:var(--mono);font-size:max(14px,.74vw);
|
|
1009
|
+
font-family:var(--mono);font-size:max(min(14px,1.944vh),.74vw);
|
|
527
1010
|
letter-spacing:.16em;text-transform:uppercase;color:var(--text-helper);
|
|
528
1011
|
border-top:1px solid var(--border-subtle);padding-top:var(--sp-4)
|
|
529
1012
|
}
|
|
530
1013
|
.swiss-img-caption strong{
|
|
531
|
-
font-family:var(--sans),var(--sans-zh);font-size:max(16px,.9vw);
|
|
1014
|
+
font-family:var(--sans),var(--sans-zh);font-size:max(min(16px,2.222vh),.9vw);
|
|
532
1015
|
font-weight:600;letter-spacing:0;text-transform:none;color:var(--text-primary)
|
|
533
1016
|
}
|
|
534
1017
|
|
|
535
1018
|
/* ============ Bar Chart (扁平几何图表) ============ */
|
|
536
1019
|
.bar-chart{display:flex;flex-direction:column;gap:1.4vh}
|
|
537
|
-
.bar-row{display:grid;grid-template-columns:8em 1fr 4em;gap:1.4vw;align-items:center}
|
|
538
|
-
.bar-row .bar-label{font-family:var(--mono);font-size:max(14px,.84vw);letter-spacing:.14em;text-transform:uppercase;opacity:.7}
|
|
1020
|
+
.bar-row{display:grid;grid-template-columns:8em 1fr 4em;gap:min(1.4vw,2.489vh) 1.4vw;align-items:center}
|
|
1021
|
+
.bar-row .bar-label{font-family:var(--mono);font-size:max(min(14px,1.944vh),.84vw);letter-spacing:.14em;text-transform:uppercase;opacity:.7}
|
|
539
1022
|
.bar-row .bar-track{height:14px;background:rgba(127,127,127,.18);position:relative}
|
|
540
1023
|
.bar-row .bar-fill{height:100%;background:var(--accent);position:absolute;left:0;top:0}
|
|
541
1024
|
.bar-row .bar-fill.ink{background:currentColor}
|
|
542
|
-
.bar-row .bar-value{font-family:var(--sans);font-weight:700;font-size:max(16px,1.05vw);text-align:right;font-feature-settings:"tnum"}
|
|
1025
|
+
.bar-row .bar-value{font-family:var(--sans);font-weight:700;font-size:max(min(16px,2.222vh),min(1.05vw,1.867vh));text-align:right;font-feature-settings:"tnum"}
|
|
543
1026
|
|
|
544
1027
|
/* ============ 导航 ============ */
|
|
545
1028
|
/* 底部分页导航: 仅保留方块本身,无背景无描边 */
|
|
@@ -547,17 +1030,20 @@
|
|
|
547
1030
|
#nav .dot{width:6px;height:6px;background:rgba(0,0,0,.28);cursor:pointer;transition:all .25s ease;border:0;padding:0;border-radius:0}
|
|
548
1031
|
#nav .dot:hover{background:rgba(0,0,0,.55)}
|
|
549
1032
|
#nav .dot.active{background:var(--accent);width:18px}
|
|
550
|
-
body.dark-bg #nav .dot{background:rgba(
|
|
551
|
-
body.dark-bg #nav .dot.active{background:var(--accent)}
|
|
1033
|
+
body.dark-bg #nav .dot{background:rgba(var(--paper-rgb),.32)}
|
|
1034
|
+
body.dark-bg #nav .dot.active{background:var(--accent-ink-inverse)}
|
|
1035
|
+
body.accent-bg #nav .dot{background:rgba(var(--accent-on-rgb),.35)}
|
|
1036
|
+
body.accent-bg #nav .dot.active{background:var(--accent-on)}
|
|
552
1037
|
|
|
553
|
-
#hint{position:fixed;bottom:2.4vh;right:2.5vw;z-index:30;display:flex;align-items:center;gap:.65em;font-family:var(--mono);font-size:14px;letter-spacing:.14em;text-transform:uppercase;opacity:.4}
|
|
1038
|
+
#hint{position:fixed;bottom:2.4vh;right:2.5vw;z-index:30;display:flex;align-items:center;gap:.65em;font-family:var(--mono);font-size:min(14px,1.944vh);letter-spacing:.14em;text-transform:uppercase;opacity:.4}
|
|
554
1039
|
#hint button{all:unset;display:inline-flex;align-items:center;gap:.42em;cursor:pointer;color:inherit;white-space:nowrap}
|
|
555
1040
|
#hint button:hover,#hint button:focus-visible{opacity:1;text-decoration:underline;text-underline-offset:.3em}
|
|
556
1041
|
#hint .ppt-key{padding:.12em .34em;border:1px solid currentColor;letter-spacing:.06em}
|
|
557
1042
|
#hint .ppt-sep{opacity:.55}
|
|
558
1043
|
body.dark-bg #hint{color:var(--paper);opacity:.4}
|
|
559
|
-
body.low-power #hint{color:var(--accent);opacity:.72}
|
|
1044
|
+
body.low-power #hint{color:var(--accent-ink);opacity:.72}
|
|
560
1045
|
body.dark-bg.low-power #hint{color:var(--paper);opacity:.72}
|
|
1046
|
+
body.accent-bg #hint,body.accent-bg.low-power #hint{color:var(--accent-on);opacity:.6}
|
|
561
1047
|
|
|
562
1048
|
/* ============ 演讲者模式 ============ */
|
|
563
1049
|
body.ppt-audience #hint,body.ppt-audience #nav,
|
|
@@ -598,7 +1084,7 @@
|
|
|
598
1084
|
#overview{z-index:110!important}
|
|
599
1085
|
@media(max-width:1200px){.ppt-presenter-main{grid-template-columns:minmax(0,1.55fr) minmax(280px,.72fr)}}
|
|
600
1086
|
@media(max-width:1100px){.ppt-presenter-bottom{grid-template-columns:minmax(292px,1fr) auto minmax(86px,.6fr);gap:12px}.ppt-time-stat{min-width:82px;padding:0 11px}.ppt-time-value{font-size:20px}.ppt-controls .ppt-ui-btn,.ppt-session-actions .ppt-ui-btn{min-width:60px;padding:8px 9px}}
|
|
601
|
-
@media(max-width:900px){.ppt-presenter-top{padding:12px 16px;flex-wrap:wrap}.ppt-presenter-top .ppt-presenter-meta{gap:6px}.ppt-presenter-top .ppt-ui-btn{padding:8px 9px}.ppt-presenter-main,#ppt-presenter[data-layout="slides"] .ppt-presenter-main,#ppt-presenter[data-layout="notes"] .ppt-presenter-main{grid-template-columns:minmax(0,1.45fr) minmax(250px,.72fr);gap:12px;padding:12px 16px}.ppt-preview-stack{gap:12px;grid-template-rows:minmax(0,1fr) clamp(104px,20vh,150px)}.ppt-saved{display:none}.ppt-presenter-bottom{grid-template-columns:minmax(270px,1fr) auto 74px;gap:8px;padding:9px 16px}.ppt-time-stat{min-width:0;padding:0 9px}.ppt-time-value{font-size:18px}.ppt-time-hint{max-width:78px;overflow:hidden;text-overflow:ellipsis}.ppt-controls,.ppt-session-actions{gap:5px}.ppt-controls .ppt-ui-btn,.ppt-session-actions .ppt-ui-btn{min-width:52px;padding:7px 8px;font-size:12px}.ppt-page-state strong{font-size:14px}.ppt-dialog-grid{grid-template-columns:1fr}.ppt-segmented.screen{grid-template-columns:repeat(2,1fr)}}
|
|
1087
|
+
@media(max-width:900px){.ppt-presenter-top{padding:12px 16px;flex-wrap:wrap}.ppt-presenter-top .ppt-presenter-meta{gap:6px}.ppt-presenter-top .ppt-ui-btn{padding:8px 9px}.ppt-presenter-main,#ppt-presenter[data-layout="slides"] .ppt-presenter-main,#ppt-presenter[data-layout="notes"] .ppt-presenter-main{grid-template-columns:minmax(0,1.45fr) minmax(250px,.72fr);gap:12px;padding:12px 16px}.ppt-preview-stack{gap:12px;grid-template-rows:minmax(0,1fr) clamp(104px,20vh,150px)}.ppt-saved{display:none}.ppt-presenter-bottom{grid-template-columns:minmax(270px,1fr) auto 74px;gap:8px;padding:9px 16px}.ppt-time-stat{min-width:0;padding:0 9px}.ppt-time-value{font-size:min(18px,2.5vh)}.ppt-time-hint{max-width:78px;overflow:hidden;text-overflow:ellipsis}.ppt-controls,.ppt-session-actions{gap:5px}.ppt-controls .ppt-ui-btn,.ppt-session-actions .ppt-ui-btn{min-width:52px;padding:7px 8px;font-size:min(12px,1.667vh)}.ppt-page-state strong{font-size:min(14px,1.944vh)}.ppt-dialog-grid{grid-template-columns:1fr}.ppt-segmented.screen{grid-template-columns:repeat(2,1fr)}}
|
|
602
1088
|
@media(max-height:700px){.ppt-presenter-top{padding-top:10px;padding-bottom:10px}.ppt-presenter-main{padding-top:10px;padding-bottom:10px}.ppt-preview-stack{grid-template-rows:minmax(0,1fr) clamp(88px,16vh,118px);gap:10px}.ppt-stage-label{padding:7px 10px}.ppt-notes-head{padding:12px 14px}.ppt-purpose-block{margin-top:10px;padding:8px 10px}.ppt-notes-draft-head{margin-top:10px;padding-top:9px}.ppt-presenter-bottom{padding-top:8px;padding-bottom:8px}.ppt-control-stack{gap:5px}.ppt-session-actions{padding-top:5px}}
|
|
603
1089
|
/* ============ /演讲者模式 ============ */
|
|
604
1090
|
|
|
@@ -609,7 +1095,7 @@
|
|
|
609
1095
|
/* 统一卡片样式 token: card-fill (默认灰底 · 中性) + card-ink (反转高对比) + card-accent (单一焦点) */
|
|
610
1096
|
.card-fill{background:#f5f5f4;border:0;color:var(--text-primary)}
|
|
611
1097
|
.card-ink{background:var(--ink);border:0;color:var(--paper)}
|
|
612
|
-
.card-ink .t-meta,.card-ink .t-cat{color:rgba(
|
|
1098
|
+
.card-ink .t-meta,.card-ink .t-cat{color:rgba(var(--paper-rgb),.6)}
|
|
613
1099
|
.card-accent{background:var(--accent);border:0;color:var(--accent-on)}
|
|
614
1100
|
.card-accent .t-meta,.card-accent .t-cat{color:var(--accent-on)}
|
|
615
1101
|
|
|
@@ -671,34 +1157,34 @@
|
|
|
671
1157
|
mix-blend-mode:screen;opacity:.92;
|
|
672
1158
|
}
|
|
673
1159
|
.canvas-card > *:not(.ascii-bg){position:relative;z-index:1}
|
|
674
|
-
.slide.accent .canvas-card .chrome-min{color:rgba(
|
|
675
|
-
.slide.accent .canvas-card .t-meta{color:rgba(
|
|
676
|
-
.split-half > .half.b-accent .chrome-min{color:rgba(
|
|
1160
|
+
.slide.accent .canvas-card .chrome-min{color:rgba(var(--accent-on-rgb),.62)}
|
|
1161
|
+
.slide.accent .canvas-card .t-meta{color:rgba(var(--accent-on-rgb),.7)}
|
|
1162
|
+
.split-half > .half.b-accent .chrome-min{color:rgba(var(--accent-on-rgb),.62)}
|
|
677
1163
|
|
|
678
1164
|
/* 编号目录页 · 超大数字 + 国家名风格 — 越大越细 */
|
|
679
1165
|
.num-mega{
|
|
680
1166
|
font-family:var(--sans);font-weight:200;
|
|
681
|
-
font-size:9vw;line-height:1;letter-spacing:-.04em;
|
|
1167
|
+
font-size:min(9vw,16vh);line-height:1;letter-spacing:-.04em;
|
|
682
1168
|
font-feature-settings:"tnum"
|
|
683
1169
|
}
|
|
684
1170
|
.num-mega.thin{font-weight:200}
|
|
685
1171
|
.name-mega{
|
|
686
1172
|
font-family:var(--sans);font-weight:200;
|
|
687
|
-
font-size:9vw;line-height:1;letter-spacing:-.035em;
|
|
1173
|
+
font-size:min(9vw,16vh);line-height:1;letter-spacing:-.035em;
|
|
688
1174
|
}
|
|
689
1175
|
.name-mega.muted{color:var(--grey-3)}
|
|
690
1176
|
|
|
691
1177
|
/* 细体超大 KPI — 字号越大权重越低 */
|
|
692
1178
|
.kpi-thin{
|
|
693
1179
|
font-family:var(--sans);font-weight:200;
|
|
694
|
-
font-size:14vw;line-height:.92;letter-spacing:-.045em;
|
|
1180
|
+
font-size:min(14vw,24.89vh);line-height:.92;letter-spacing:-.045em;
|
|
695
1181
|
font-feature-settings:"tnum"
|
|
696
1182
|
}
|
|
697
1183
|
.kpi-thin .unit{font-size:.3em;font-weight:300;opacity:.55;margin-left:.15em;vertical-align:.6em}
|
|
698
|
-
.kpi-thin.accent{color:var(--accent)}
|
|
1184
|
+
.kpi-thin.accent{color:var(--accent-display)}
|
|
699
1185
|
.kpi-thin-sm{
|
|
700
1186
|
font-family:var(--sans);font-weight:250;
|
|
701
|
-
font-size:5.6vw;line-height:1.04;letter-spacing:-.03em;
|
|
1187
|
+
font-size:min(5.6vw,9.956vh);line-height:1.04;letter-spacing:-.03em;
|
|
702
1188
|
font-feature-settings:"tnum"
|
|
703
1189
|
}
|
|
704
1190
|
.kpi-thin-sm .unit{font-size:.3em;font-weight:300;opacity:.55;margin-left:.12em;vertical-align:.45em}
|
|
@@ -715,10 +1201,10 @@
|
|
|
715
1201
|
border-left:1px solid var(--grey-2)
|
|
716
1202
|
}
|
|
717
1203
|
.kpi-row-4 > .kpi-cell:first-child{padding-left:0;border-left:none}
|
|
718
|
-
.kpi-cell .lbl{font-family:var(--mono);font-size:max(14px,.78vw);letter-spacing:.18em;text-transform:uppercase;opacity:.55;margin-bottom:1.2vh}
|
|
719
|
-
.kpi-cell .nb{font-family:var(--sans);font-weight:250;font-size:3.2vw;line-height:1;letter-spacing:-.025em;font-feature-settings:"tnum"}
|
|
1204
|
+
.kpi-cell .lbl{font-family:var(--mono);font-size:max(min(14px,1.944vh),.78vw);letter-spacing:.18em;text-transform:uppercase;opacity:.55;margin-bottom:1.2vh}
|
|
1205
|
+
.kpi-cell .nb{font-family:var(--sans);font-weight:250;font-size:min(3.2vw,5.689vh);line-height:1;letter-spacing:-.025em;font-feature-settings:"tnum"}
|
|
720
1206
|
.kpi-cell .nb .unit{font-size:.32em;font-weight:300;opacity:.6;margin-left:.1em;vertical-align:.4em}
|
|
721
|
-
.kpi-cell .note{font-family:var(--sans),var(--sans-zh);font-size:max(16px,.92vw);line-height:1.5;opacity:.7;margin-top:1.2vh}
|
|
1207
|
+
.kpi-cell .note{font-family:var(--sans),var(--sans-zh);font-size:max(min(16px,2.222vh),.92vw);line-height:1.5;opacity:.7;margin-top:1.2vh}
|
|
722
1208
|
|
|
723
1209
|
/* 时间线轴 — 通用 axis token, 横纵共享
|
|
724
1210
|
axis 列 = 24px 固定宽,dot 直径 8px,绝对居中在 axis 列中线 (12px)
|
|
@@ -756,7 +1242,7 @@
|
|
|
756
1242
|
.tl-node.accent .dot{background:var(--accent)}
|
|
757
1243
|
.tl-node .yr{
|
|
758
1244
|
font-family:var(--mono);font-weight:500;
|
|
759
|
-
font-size:max(14px,1vw);letter-spacing:.04em
|
|
1245
|
+
font-size:max(min(14px,1.944vh),min(1vw,1.778vh));letter-spacing:.04em
|
|
760
1246
|
}
|
|
761
1247
|
.tl-node .multi{
|
|
762
1248
|
font-family:var(--sans);font-weight:200;
|
|
@@ -772,10 +1258,10 @@
|
|
|
772
1258
|
vertical-align:.42em;
|
|
773
1259
|
letter-spacing:0
|
|
774
1260
|
}
|
|
775
|
-
.tl-node.accent .multi{color:var(--accent)}
|
|
1261
|
+
.tl-node.accent .multi{color:var(--accent-display)}
|
|
776
1262
|
.tl-node .desc{
|
|
777
1263
|
font-family:var(--sans),var(--sans-zh);
|
|
778
|
-
font-size:max(16px,.94vw);line-height:1.55;opacity:.78;
|
|
1264
|
+
font-size:max(min(16px,2.222vh),.94vw);line-height:1.55;opacity:.78;
|
|
779
1265
|
min-width:0
|
|
780
1266
|
}
|
|
781
1267
|
|
|
@@ -813,22 +1299,21 @@
|
|
|
813
1299
|
.timeline-h .th-node .label{
|
|
814
1300
|
position:absolute;left:50%;transform:translateX(-50%);
|
|
815
1301
|
width:13vw;text-align:center;
|
|
816
|
-
display:flex;flex-direction:column;gap:.4vh
|
|
817
|
-
}
|
|
1302
|
+
display:flex;flex-direction:column;gap:.4vh}
|
|
818
1303
|
.timeline-h .th-node.up .label{bottom:calc(50% + 22px)}
|
|
819
1304
|
.timeline-h .th-node.down .label{top:calc(50% + 22px)}
|
|
820
1305
|
.timeline-h .th-node .yr{
|
|
821
|
-
font-family:var(--mono);font-size:max(14px,.78vw);letter-spacing:.05em;
|
|
1306
|
+
font-family:var(--mono);font-size:max(min(14px,1.944vh),.78vw);letter-spacing:.05em;
|
|
822
1307
|
color:var(--text-helper);font-weight:500
|
|
823
1308
|
}
|
|
824
|
-
.timeline-h .th-node.accent .yr{color:var(--accent)}
|
|
1309
|
+
.timeline-h .th-node.accent .yr{color:var(--accent-ink)}
|
|
825
1310
|
.timeline-h .th-node .name{
|
|
826
|
-
font-family:var(--sans);font-size:max(16px,1.05vw);font-weight:400;
|
|
1311
|
+
font-family:var(--sans);font-size:max(min(16px,2.222vh),min(1.05vw,1.867vh));font-weight:400;
|
|
827
1312
|
color:var(--text-primary);line-height:1.2;letter-spacing:-.005em
|
|
828
1313
|
}
|
|
829
|
-
.timeline-h .th-node.accent .name{color:var(--accent)}
|
|
1314
|
+
.timeline-h .th-node.accent .name{color:var(--accent-ink)}
|
|
830
1315
|
.timeline-h .th-node .desc{
|
|
831
|
-
font-family:var(--sans),var(--sans-zh);font-size:max(
|
|
1316
|
+
font-family:var(--sans),var(--sans-zh);font-size:max(min(16px,2.222vh),.84vw);
|
|
832
1317
|
color:var(--text-secondary);font-weight:400;line-height:1.4
|
|
833
1318
|
}
|
|
834
1319
|
|
|
@@ -849,21 +1334,21 @@
|
|
|
849
1334
|
position:relative;border-radius:3px;
|
|
850
1335
|
min-height:0
|
|
851
1336
|
}
|
|
852
|
-
.slide.dark .sub-card{background:rgba(
|
|
1337
|
+
.slide.dark .sub-card{background:rgba(var(--paper-rgb),.06)}
|
|
853
1338
|
.sub-card.accent{background:var(--accent);color:var(--accent-on)}
|
|
854
1339
|
.sub-card.ink{background:var(--ink);color:var(--paper)}
|
|
855
1340
|
.sub-card .nb-corner{
|
|
856
1341
|
position:absolute;top:1.6vh;right:1.4vw;
|
|
857
|
-
font-family:var(--mono);font-size:max(14px,.8vw);
|
|
1342
|
+
font-family:var(--mono);font-size:max(min(14px,1.944vh),.8vw);
|
|
858
1343
|
letter-spacing:.16em;opacity:.55
|
|
859
1344
|
}
|
|
860
|
-
.sub-card .ttl{font-family:var(--sans),var(--sans-zh);font-weight:500;font-size:max(17px,1.5vw);line-height:1.2;letter-spacing:-.015em;margin-bottom:1vh}
|
|
861
|
-
.sub-card .desc{font-family:var(--sans),var(--sans-zh);font-size:max(16px,.94vw);line-height:1.55;opacity:.78;margin-top:auto}
|
|
1345
|
+
.sub-card .ttl{font-family:var(--sans),var(--sans-zh);font-weight:500;font-size:max(min(17px,2.361vh),min(1.5vw,2.667vh));line-height:1.2;letter-spacing:-.015em;margin-bottom:1vh}
|
|
1346
|
+
.sub-card .desc{font-family:var(--sans),var(--sans-zh);font-size:max(min(16px,2.222vh),.94vw);line-height:1.55;opacity:.78;margin-top:auto}
|
|
862
1347
|
.sub-card .lucide{width:2.4vw;height:2.4vw;stroke-width:1.4;color:currentColor;margin-bottom:1.6vh;flex-shrink:0}
|
|
863
1348
|
.sub-card.accent .lucide{color:var(--accent-on)}
|
|
864
1349
|
|
|
865
1350
|
/* 三层架构纯色块拼图 (参考图 4 + 6) — 横排等高色块 */
|
|
866
|
-
.stack-row{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6vw;flex:1;margin-top:6vh;align-items:stretch}
|
|
1351
|
+
.stack-row{display:grid;grid-template-columns:repeat(3,1fr);gap:min(1.6vw,2.844vh) 1.6vw;flex:1;margin-top:6vh;align-items:stretch}
|
|
867
1352
|
.stack-block{
|
|
868
1353
|
display:flex;flex-direction:column;
|
|
869
1354
|
padding:3.2vh 1.8vw 2.4vh;
|
|
@@ -873,19 +1358,19 @@
|
|
|
873
1358
|
.stack-block.b-accent{background:var(--accent);color:var(--accent-on)}
|
|
874
1359
|
.stack-block.b-grey{background:var(--grey-1);color:var(--ink)}
|
|
875
1360
|
.stack-block.b-ink{background:var(--ink);color:var(--paper)}
|
|
876
|
-
.stack-block .layer-nb{font-family:var(--mono);font-size:max(14px,.84vw);letter-spacing:.18em;opacity:.65;margin-bottom:auto}
|
|
1361
|
+
.stack-block .layer-nb{font-family:var(--mono);font-size:max(min(14px,1.944vh),.84vw);letter-spacing:.18em;opacity:.65;margin-bottom:auto}
|
|
877
1362
|
.stack-block .layer-icon{margin-bottom:1.6vh}
|
|
878
1363
|
.stack-block .layer-icon svg{width:3vw;height:3vw}
|
|
879
1364
|
.stack-block .layer-icon .stroke{fill:none;stroke:currentColor;stroke-width:1.6}
|
|
880
|
-
.stack-block .layer-ttl{font-family:var(--sans),var(--sans-zh);font-weight:400;font-size:max(17px,2vw);line-height:1.1;margin-top:1vh;letter-spacing:-.02em}
|
|
881
|
-
.stack-block .layer-desc{font-family:var(--sans),var(--sans-zh);font-weight:400;font-size:max(16px,.94vw);line-height:1.55;opacity:.88;margin-top:1.4vh}
|
|
1365
|
+
.stack-block .layer-ttl{font-family:var(--sans),var(--sans-zh);font-weight:400;font-size:max(min(17px,2.361vh),min(2vw,3.556vh));line-height:1.1;margin-top:1vh;letter-spacing:-.02em}
|
|
1366
|
+
.stack-block .layer-desc{font-family:var(--sans),var(--sans-zh);font-weight:400;font-size:max(min(16px,2.222vh),.94vw);line-height:1.55;opacity:.88;margin-top:1.4vh}
|
|
882
1367
|
.stack-block .lucide{width:2.6vw;height:2.6vw;stroke-width:1.4;margin-bottom:1.6vh;flex-shrink:0}
|
|
883
|
-
.stack-block .layer-tag{font-family:var(--mono);font-size:max(14px,.74vw);letter-spacing:.16em;text-transform:uppercase;opacity:.7;margin-top:1.6vh;border-top:1px solid currentColor;padding-top:1vh}
|
|
1368
|
+
.stack-block .layer-tag{font-family:var(--mono);font-size:max(min(14px,1.944vh),.74vw);letter-spacing:.16em;text-transform:uppercase;opacity:.7;margin-top:1.6vh;border-top:1px solid currentColor;padding-top:1vh}
|
|
884
1369
|
|
|
885
1370
|
/* 不等高柱状 KPI 塔 (参考图 6) */
|
|
886
1371
|
.bar-towers{
|
|
887
1372
|
display:grid;grid-template-columns:repeat(4,1fr);
|
|
888
|
-
gap:1.2vw;flex:1;align-items:end;margin-top:auto
|
|
1373
|
+
gap:min(1.2vw,2.133vh) 1.2vw;flex:1;align-items:end;margin-top:auto
|
|
889
1374
|
}
|
|
890
1375
|
.bar-tower{
|
|
891
1376
|
display:flex;flex-direction:column;justify-content:flex-end;
|
|
@@ -911,11 +1396,11 @@
|
|
|
911
1396
|
/* 默认所有 KPI 塔统一为浅描边卡 — 不抢戏;只有 .b-accent 突出为 IKB */
|
|
912
1397
|
.bar-tower .body-block{background:var(--paper);color:var(--ink);border:1px solid var(--grey-2)}
|
|
913
1398
|
.bar-tower .body-block.b-accent{background:var(--accent);color:var(--accent-on);border-color:var(--accent)}
|
|
914
|
-
.bar-tower .lbl{font-family:var(--mono);font-size:max(14px,.82vw);letter-spacing:.16em;text-transform:uppercase;opacity:.65;margin-bottom:1vh}
|
|
915
|
-
.bar-tower .nb{font-family:var(--sans);font-weight:250;font-size:max(20px,2.8vw);line-height:1;letter-spacing:-.03em;font-feature-settings:"tnum"}
|
|
1399
|
+
.bar-tower .lbl{font-family:var(--mono);font-size:max(min(14px,1.944vh),.82vw);letter-spacing:.16em;text-transform:uppercase;opacity:.65;margin-bottom:1vh}
|
|
1400
|
+
.bar-tower .nb{font-family:var(--sans);font-weight:250;font-size:max(min(20px,2.778vh),min(2.8vw,4.978vh));line-height:1;letter-spacing:-.03em;font-feature-settings:"tnum"}
|
|
916
1401
|
.bar-tower .body-block.b-accent .nb{font-weight:300}
|
|
917
1402
|
.bar-tower .nb .unit{font-size:.36em;font-weight:300;opacity:.7;margin-left:.08em;vertical-align:.4em}
|
|
918
|
-
.bar-tower .sub{font-family:var(--sans),var(--sans-zh);font-size:max(16px,.92vw);opacity:.75;margin-top:1.2vh;line-height:1.5}
|
|
1403
|
+
.bar-tower .sub{font-family:var(--sans),var(--sans-zh);font-size:max(min(16px,2.222vh),.92vw);opacity:.75;margin-top:1.2vh;line-height:1.5}
|
|
919
1404
|
.bar-tower .cap{background:var(--grey-1);color:var(--ink)}
|
|
920
1405
|
.bar-tower .lucide{width:1.6vw;height:1.6vw;stroke-width:1.4}
|
|
921
1406
|
|
|
@@ -926,17 +1411,17 @@
|
|
|
926
1411
|
/* category label / eyebrow / section tag — small, bold, uppercase */
|
|
927
1412
|
.t-cat{
|
|
928
1413
|
font-family:var(--mono);
|
|
929
|
-
font-size:14px;font-weight:600;
|
|
1414
|
+
font-size:min(14px,1.944vh);font-weight:600;
|
|
930
1415
|
letter-spacing:.15em;text-transform:uppercase;
|
|
931
1416
|
color:var(--text-helper);line-height:1.3
|
|
932
1417
|
}
|
|
933
|
-
.t-cat.accent{color:var(--accent)}
|
|
934
|
-
.t-cat.on-dark{color:rgba(
|
|
1418
|
+
.t-cat.accent{color:var(--accent-ink)}
|
|
1419
|
+
.t-cat.on-dark{color:rgba(var(--paper-rgb),.78)}
|
|
935
1420
|
|
|
936
1421
|
/* page chrome / breadcrumb / running header — extra-small mono */
|
|
937
1422
|
.t-meta{
|
|
938
1423
|
font-family:var(--mono);
|
|
939
|
-
font-size:14px;font-weight:500;
|
|
1424
|
+
font-size:min(14px,1.944vh);font-weight:500;
|
|
940
1425
|
letter-spacing:.14em;text-transform:uppercase;
|
|
941
1426
|
color:var(--text-helper);line-height:1.45
|
|
942
1427
|
}
|
|
@@ -944,7 +1429,7 @@
|
|
|
944
1429
|
/* helper / caption — secondary text */
|
|
945
1430
|
.t-helper{
|
|
946
1431
|
font-family:var(--sans),var(--sans-zh);
|
|
947
|
-
font-size:14px;font-weight:400;
|
|
1432
|
+
font-size:min(14px,1.944vh);font-weight:400;
|
|
948
1433
|
color:var(--text-helper);line-height:1.5;
|
|
949
1434
|
letter-spacing:.005em
|
|
950
1435
|
}
|
|
@@ -952,7 +1437,7 @@
|
|
|
952
1437
|
/* body small — list items, table rows, captions */
|
|
953
1438
|
.t-body-sm{
|
|
954
1439
|
font-family:var(--sans),var(--sans-zh);
|
|
955
|
-
font-size:16px;font-weight:400;
|
|
1440
|
+
font-size:min(16px,2.222vh);font-weight:400;
|
|
956
1441
|
color:var(--text-secondary);line-height:1.55;
|
|
957
1442
|
letter-spacing:0
|
|
958
1443
|
}
|
|
@@ -960,7 +1445,7 @@
|
|
|
960
1445
|
/* body — paragraphs, descriptions */
|
|
961
1446
|
.t-body{
|
|
962
1447
|
font-family:var(--sans),var(--sans-zh);
|
|
963
|
-
font-size:18px;font-weight:400;
|
|
1448
|
+
font-size:min(18px,2.5vh);font-weight:400;
|
|
964
1449
|
color:var(--text-primary);line-height:1.5;
|
|
965
1450
|
letter-spacing:-.005em
|
|
966
1451
|
}
|
|
@@ -968,7 +1453,7 @@
|
|
|
968
1453
|
/* body emphasis — 强调正文 */
|
|
969
1454
|
.t-body-emp{
|
|
970
1455
|
font-family:var(--sans),var(--sans-zh);
|
|
971
|
-
font-size:18px;font-weight:600; /* SemiBold per Carbon */
|
|
1456
|
+
font-size:min(18px,2.5vh);font-weight:600; /* SemiBold per Carbon */
|
|
972
1457
|
color:var(--text-primary);line-height:1.5;
|
|
973
1458
|
letter-spacing:-.005em
|
|
974
1459
|
}
|
|
@@ -976,17 +1461,17 @@
|
|
|
976
1461
|
/* productive heading — section title within slide */
|
|
977
1462
|
.t-h-prod{
|
|
978
1463
|
font-family:var(--sans),var(--sans-zh);
|
|
979
|
-
font-size:22px;font-weight:600;
|
|
1464
|
+
font-size:min(22px,3.056vh);font-weight:600;
|
|
980
1465
|
color:var(--text-primary);line-height:1.4;
|
|
981
1466
|
letter-spacing:-.01em
|
|
982
1467
|
}
|
|
983
1468
|
|
|
984
1469
|
/* dark background variants */
|
|
985
|
-
.slide.dark .t-cat,.slide.dark .t-meta,.slide.dark .t-helper{color:rgba(
|
|
986
|
-
.slide.dark .t-body-sm{color:rgba(
|
|
1470
|
+
.slide.dark .t-cat,.slide.dark .t-meta,.slide.dark .t-helper{color:rgba(var(--paper-rgb),.62)}
|
|
1471
|
+
.slide.dark .t-body-sm{color:rgba(var(--paper-rgb),.78)}
|
|
987
1472
|
.slide.dark .t-body,.slide.dark .t-body-emp,.slide.dark .t-h-prod{color:var(--paper)}
|
|
988
|
-
.split-half .half.b-ink .t-cat,.split-half .half.b-ink .t-meta,.split-half .half.b-ink .t-helper{color:rgba(
|
|
989
|
-
.split-half .half.b-ink .t-body-sm{color:rgba(
|
|
1473
|
+
.split-half .half.b-ink .t-cat,.split-half .half.b-ink .t-meta,.split-half .half.b-ink .t-helper{color:rgba(var(--paper-rgb),.62)}
|
|
1474
|
+
.split-half .half.b-ink .t-body-sm{color:rgba(var(--paper-rgb),.78)}
|
|
990
1475
|
.split-half .half.b-ink .t-body,.split-half .half.b-ink .t-body-emp,.split-half .half.b-ink .t-h-prod{color:var(--paper)}
|
|
991
1476
|
|
|
992
1477
|
/* 斜杠点阵装饰 (参考图 6 左下) */
|
|
@@ -1044,7 +1529,7 @@
|
|
|
1044
1529
|
.h-bar-chart .row-lbl{
|
|
1045
1530
|
font-family:var(--sans),var(--sans-zh);
|
|
1046
1531
|
font-weight:500;
|
|
1047
|
-
font-size:max(14px,1vw);
|
|
1532
|
+
font-size:max(min(14px,1.944vh),min(1vw,1.778vh));
|
|
1048
1533
|
letter-spacing:-.005em;
|
|
1049
1534
|
text-align:left
|
|
1050
1535
|
}
|
|
@@ -1063,7 +1548,7 @@
|
|
|
1063
1548
|
.h-bar-chart .row-fill.grey{background:var(--grey-3)}
|
|
1064
1549
|
.h-bar-chart .row-val{
|
|
1065
1550
|
font-family:var(--sans);font-weight:250;
|
|
1066
|
-
font-size:max(16px,1.5vw);
|
|
1551
|
+
font-size:max(min(16px,2.222vh),min(1.5vw,2.667vh));
|
|
1067
1552
|
letter-spacing:-.02em;
|
|
1068
1553
|
line-height:1
|
|
1069
1554
|
}
|
|
@@ -1077,7 +1562,7 @@
|
|
|
1077
1562
|
display:grid;
|
|
1078
1563
|
grid-template-columns:repeat(var(--cols,4),1fr);
|
|
1079
1564
|
align-items:end;
|
|
1080
|
-
gap:1.4vw;
|
|
1565
|
+
gap:min(1.4vw,2.489vh) 1.4vw;
|
|
1081
1566
|
height:50vh;
|
|
1082
1567
|
margin-top:3vh
|
|
1083
1568
|
}
|
|
@@ -1094,10 +1579,10 @@
|
|
|
1094
1579
|
.v-bar-chart .col-bar.ink{background:var(--ink);color:var(--paper);border-top-color:var(--ink)}
|
|
1095
1580
|
.v-bar-chart .col-bar .v{
|
|
1096
1581
|
font-family:var(--sans);font-weight:250;
|
|
1097
|
-
font-size:max(18px,1.6vw);letter-spacing:-.02em
|
|
1582
|
+
font-size:max(min(18px,2.5vh),min(1.6vw,2.844vh));letter-spacing:-.02em
|
|
1098
1583
|
}
|
|
1099
1584
|
.v-bar-chart .col-lbl{
|
|
1100
|
-
font-family:var(--mono);font-size:max(14px,.78vw);
|
|
1585
|
+
font-family:var(--mono);font-size:max(min(14px,1.944vh),.78vw);
|
|
1101
1586
|
letter-spacing:.14em;text-transform:uppercase;opacity:.6;
|
|
1102
1587
|
text-align:center;flex:0 0 auto
|
|
1103
1588
|
}
|
|
@@ -1111,25 +1596,24 @@
|
|
|
1111
1596
|
.duo-compare .vrule{background:var(--grey-2);width:1px;align-self:stretch}
|
|
1112
1597
|
.duo-compare .col{display:flex;flex-direction:column;gap:1.6vh;padding:0 .4vw}
|
|
1113
1598
|
.duo-compare .col-tag{
|
|
1114
|
-
font-family:var(--mono);font-size:max(14px,.78vw);
|
|
1599
|
+
font-family:var(--mono);font-size:max(min(14px,1.944vh),.78vw);
|
|
1115
1600
|
letter-spacing:.16em;text-transform:uppercase;
|
|
1116
1601
|
color:var(--grey-3);
|
|
1117
|
-
display:flex;align-items:center;gap:.6vw
|
|
1118
|
-
}
|
|
1602
|
+
display:flex;align-items:center;gap:.6vw}
|
|
1119
1603
|
.duo-compare .col-tag .num{
|
|
1120
1604
|
font-weight:600;color:var(--ink);
|
|
1121
1605
|
border:1px solid var(--ink);
|
|
1122
1606
|
padding:.2em .6em;font-size:.92em
|
|
1123
1607
|
}
|
|
1124
|
-
.duo-compare .col.accent .col-tag .num{color:var(--accent);border-color:var(--accent)}
|
|
1608
|
+
.duo-compare .col.accent .col-tag .num{color:var(--accent-ink);border-color:var(--accent)}
|
|
1125
1609
|
.duo-compare .col-ttl{
|
|
1126
1610
|
font-family:var(--sans),var(--sans-zh);font-weight:200;
|
|
1127
|
-
font-size:3.6vw;line-height:1;letter-spacing:-.03em
|
|
1611
|
+
font-size:min(3.6vw,6.4vh);line-height:1;letter-spacing:-.03em
|
|
1128
1612
|
}
|
|
1129
|
-
.duo-compare .col.accent .col-ttl{color:var(--accent)}
|
|
1613
|
+
.duo-compare .col.accent .col-ttl{color:var(--accent-ink)}
|
|
1130
1614
|
.duo-compare .col-desc{
|
|
1131
1615
|
font-family:var(--sans),var(--sans-zh);
|
|
1132
|
-
font-size:max(16px,1.04vw);line-height:1.55;opacity:.78;
|
|
1616
|
+
font-size:max(min(16px,2.222vh),min(1.04vw,1.849vh));line-height:1.55;opacity:.78;
|
|
1133
1617
|
max-width:30vw
|
|
1134
1618
|
}
|
|
1135
1619
|
.duo-compare .col-list{
|
|
@@ -1138,7 +1622,7 @@
|
|
|
1138
1622
|
}
|
|
1139
1623
|
.duo-compare .col-list li{
|
|
1140
1624
|
font-family:var(--sans),var(--sans-zh);
|
|
1141
|
-
font-size:max(16px,.94vw);line-height:1.5;
|
|
1625
|
+
font-size:max(min(16px,2.222vh),.94vw);line-height:1.5;
|
|
1142
1626
|
padding-left:1.4em;position:relative
|
|
1143
1627
|
}
|
|
1144
1628
|
.duo-compare .col-list li::before{
|
|
@@ -1158,7 +1642,7 @@
|
|
|
1158
1642
|
/* 极简页眉 — t-meta 风格 (Carbon productive label-01) */
|
|
1159
1643
|
.canvas-card .chrome-min{
|
|
1160
1644
|
display:flex;justify-content:space-between;align-items:flex-start;
|
|
1161
|
-
font-family:var(--mono);font-size:14px;font-weight:500;
|
|
1645
|
+
font-family:var(--mono);font-size:min(14px,1.944vh);font-weight:500;
|
|
1162
1646
|
letter-spacing:.14em;text-transform:uppercase;
|
|
1163
1647
|
color:var(--text-helper);
|
|
1164
1648
|
flex:0 0 auto;
|
|
@@ -1168,16 +1652,16 @@
|
|
|
1168
1652
|
.canvas-card .chrome-min .l, .canvas-card .chrome-min .r{
|
|
1169
1653
|
max-width:48vw;line-height:1.5
|
|
1170
1654
|
}
|
|
1171
|
-
.slide.dark .canvas-card .chrome-min,.split-half .half.b-ink .canvas-card .chrome-min{color:rgba(
|
|
1655
|
+
.slide.dark .canvas-card .chrome-min,.split-half .half.b-ink .canvas-card .chrome-min{color:rgba(var(--paper-rgb),.62)}
|
|
1172
1656
|
|
|
1173
1657
|
/* 响应式降级 */
|
|
1174
1658
|
@media (max-width:900px){
|
|
1175
|
-
.h-hero{font-size:16vw}
|
|
1176
|
-
.h-hero-zh{font-size:13vw}
|
|
1177
|
-
.h-xl{font-size:9vw}
|
|
1178
|
-
.h-xl-zh{font-size:8vw}
|
|
1179
|
-
.kpi-hero{font-size:32vw}
|
|
1180
|
-
.kpi-big{font-size:16vw}
|
|
1659
|
+
.h-hero{font-size:min(16vw,28.44vh)}
|
|
1660
|
+
.h-hero-zh{font-size:min(13vw,23.11vh)}
|
|
1661
|
+
.h-xl{font-size:min(9vw,16vh)}
|
|
1662
|
+
.h-xl-zh{font-size:min(8vw,14.22vh)}
|
|
1663
|
+
.kpi-hero{font-size:min(32vw,56.89vh)}
|
|
1664
|
+
.kpi-big{font-size:min(16vw,28.44vh)}
|
|
1181
1665
|
.grid-2-7-5,.grid-2-6-6,.grid-2-8-4,.grid-2-4-8{grid-template-columns:1fr}
|
|
1182
1666
|
.grid-12{grid-template-columns:repeat(6,1fr)}
|
|
1183
1667
|
}
|
|
@@ -1258,15 +1742,15 @@
|
|
|
1258
1742
|
|
|
1259
1743
|
<!-- 主体:padding 必须为 0,不要再叠 5vw,否则左右对不齐 chrome-min -->
|
|
1260
1744
|
<div style="flex:1;padding:0;display:grid;grid-template-rows:auto 1fr auto;gap:2.6vh">
|
|
1261
|
-
<div data-anim="kicker" class="t-meta" style="color:rgba(
|
|
1745
|
+
<div data-anim="kicker" class="t-meta" style="color:rgba(var(--accent-on-rgb),.78);letter-spacing:.22em">[必填] 章节英文 / Section En</div>
|
|
1262
1746
|
|
|
1263
|
-
<h1 data-anim="title" style="align-self:center;font-family:var(--sans),var(--sans-zh);font-weight:200;font-size:min(11.6vw,19vh);line-height:.94;letter-spacing:-.025em;color
|
|
1747
|
+
<h1 data-anim="title" style="align-self:center;font-family:var(--sans),var(--sans-zh);font-weight:200;font-size:min(11.6vw,19vh);line-height:.94;letter-spacing:-.025em;color:var(--accent-on)">[必填] 中文主标题<br/>(≤ 12 字,可在某字加 <span style="font-style:italic;font-weight:300">italic</span> 微强调)</h1>
|
|
1264
1748
|
|
|
1265
|
-
<div data-anim="bottom" style="display:grid;grid-template-rows:auto auto;gap:1.6vh;border-top:1px solid rgba(
|
|
1266
|
-
<div data-anim="lead" class="lead" style="max-width:52ch;color:rgba(
|
|
1749
|
+
<div data-anim="bottom" style="display:grid;grid-template-rows:auto auto;gap:1.6vh;border-top:1px solid rgba(var(--accent-on-rgb),.22);padding-top:2vh">
|
|
1750
|
+
<div data-anim="lead" class="lead" style="max-width:52ch;color:rgba(var(--accent-on-rgb),.86)">[必填] 一段 1-2 行的副标 / 引子,定调全场.</div>
|
|
1267
1751
|
<div style="display:flex;justify-content:space-between;align-items:end">
|
|
1268
|
-
<div class="t-meta" style="color:rgba(
|
|
1269
|
-
<div class="t-meta" style="color:rgba(
|
|
1752
|
+
<div class="t-meta" style="color:rgba(var(--accent-on-rgb),.6)">[选填] 作者 · 日期 · 出处</div>
|
|
1753
|
+
<div class="t-meta" style="color:rgba(var(--accent-on-rgb),.6)">→ swipe / arrow keys</div>
|
|
1270
1754
|
</div>
|
|
1271
1755
|
</div>
|
|
1272
1756
|
</div>
|
|
@@ -1288,14 +1772,14 @@
|
|
|
1288
1772
|
</div>
|
|
1289
1773
|
|
|
1290
1774
|
<div data-anim="manifesto" style="display:flex;flex-direction:column;gap:2vh;position:relative;z-index:1">
|
|
1291
|
-
<div class="t-meta" style="color:rgba(
|
|
1292
|
-
<h2 style="font-family:var(--sans),var(--sans-zh);font-size:min(8vw,14vh);line-height:.94;letter-spacing:-.025em;font-weight:200;color
|
|
1293
|
-
<div style="font-family:var(--sans),var(--sans-zh);font-size:max(14px,1vw);line-height:1.6;color:rgba(
|
|
1775
|
+
<div class="t-meta" style="color:rgba(var(--accent-on-rgb),.78);letter-spacing:.22em;margin-bottom:1.6vh">MANIFESTO</div>
|
|
1776
|
+
<h2 style="font-family:var(--sans),var(--sans-zh);font-size:min(8vw,14vh);line-height:.94;letter-spacing:-.025em;font-weight:200;color:var(--accent-on)">[必填] Build a model.<br/>Run <span style="font-style:italic;font-weight:300">forever</span>.</h2>
|
|
1777
|
+
<div style="font-family:var(--sans),var(--sans-zh);font-size:max(min(14px,1.944vh),min(1vw,1.778vh));line-height:1.6;color:rgba(var(--accent-on-rgb),.82);font-weight:400;max-width:36ch;margin-top:1.4vh">[必填] 一句 1-2 行的中文/英文注脚,把宣言落地.</div>
|
|
1294
1778
|
</div>
|
|
1295
1779
|
|
|
1296
|
-
<div data-anim="signature" style="display:flex;justify-content:space-between;align-items:end;border-top:1px solid rgba(
|
|
1297
|
-
<div class="t-meta" style="color:rgba(
|
|
1298
|
-
<div class="t-meta" style="color:rgba(
|
|
1780
|
+
<div data-anim="signature" style="display:flex;justify-content:space-between;align-items:end;border-top:1px solid rgba(var(--accent-on-rgb),.22);padding-top:2vh;position:relative;z-index:1">
|
|
1781
|
+
<div class="t-meta" style="color:rgba(var(--accent-on-rgb),.62)">[选填] 作者 · 头衔</div>
|
|
1782
|
+
<div class="t-meta" style="color:rgba(var(--accent-on-rgb),.62)">YY.MM.DD</div>
|
|
1299
1783
|
</div>
|
|
1300
1784
|
</div>
|
|
1301
1785
|
|
|
@@ -1307,25 +1791,25 @@
|
|
|
1307
1791
|
</div>
|
|
1308
1792
|
|
|
1309
1793
|
<div data-anim="rules" style="display:flex;flex-direction:column;gap:0">
|
|
1310
|
-
<div style="display:grid;grid-template-columns:auto 1fr;gap:2vw;align-items:start;padding:2.6vh 0;border-top:1px solid var(--border-subtle)">
|
|
1794
|
+
<div style="display:grid;grid-template-columns:auto 1fr;gap:min(2vw,3.556vh) 2vw;align-items:start;padding:2.6vh 0;border-top:1px solid var(--border-subtle)">
|
|
1311
1795
|
<div style="font-family:var(--sans);font-weight:200;font-size:min(4.4vw,7.8vh);line-height:.9;color:var(--text-primary)">01</div>
|
|
1312
1796
|
<div>
|
|
1313
|
-
<h3 style="font-family:var(--sans),var(--sans-zh);font-weight:400;font-size:max(18px,1.8vw);line-height:1.2;letter-spacing:-.015em;color:var(--text-primary);margin-bottom:1vh">[必填] takeaway 标题 01</h3>
|
|
1314
|
-
<p style="font-family:var(--sans),var(--sans-zh);font-size:max(16px,.94vw);line-height:1.6;color:var(--text-secondary);font-weight:400">[必填] 1-2 行展开说明.</p>
|
|
1797
|
+
<h3 style="font-family:var(--sans),var(--sans-zh);font-weight:400;font-size:max(min(18px,2.5vh),min(1.8vw,3.2vh));line-height:1.2;letter-spacing:-.015em;color:var(--text-primary);margin-bottom:1vh">[必填] takeaway 标题 01</h3>
|
|
1798
|
+
<p style="font-family:var(--sans),var(--sans-zh);font-size:max(min(16px,2.222vh),.94vw);line-height:1.6;color:var(--text-secondary);font-weight:400">[必填] 1-2 行展开说明.</p>
|
|
1315
1799
|
</div>
|
|
1316
1800
|
</div>
|
|
1317
|
-
<div style="display:grid;grid-template-columns:auto 1fr;gap:2vw;align-items:start;padding:2.6vh 0;border-top:1px solid var(--border-subtle)">
|
|
1801
|
+
<div style="display:grid;grid-template-columns:auto 1fr;gap:min(2vw,3.556vh) 2vw;align-items:start;padding:2.6vh 0;border-top:1px solid var(--border-subtle)">
|
|
1318
1802
|
<div style="font-family:var(--sans);font-weight:200;font-size:min(4.4vw,7.8vh);line-height:.9;color:var(--text-primary)">02</div>
|
|
1319
1803
|
<div>
|
|
1320
|
-
<h3 style="font-family:var(--sans),var(--sans-zh);font-weight:400;font-size:max(18px,1.8vw);line-height:1.2;letter-spacing:-.015em;color:var(--text-primary);margin-bottom:1vh">[必填] takeaway 标题 02</h3>
|
|
1321
|
-
<p style="font-family:var(--sans),var(--sans-zh);font-size:max(16px,.94vw);line-height:1.6;color:var(--text-secondary);font-weight:400">[必填] 1-2 行展开说明.</p>
|
|
1804
|
+
<h3 style="font-family:var(--sans),var(--sans-zh);font-weight:400;font-size:max(min(18px,2.5vh),min(1.8vw,3.2vh));line-height:1.2;letter-spacing:-.015em;color:var(--text-primary);margin-bottom:1vh">[必填] takeaway 标题 02</h3>
|
|
1805
|
+
<p style="font-family:var(--sans),var(--sans-zh);font-size:max(min(16px,2.222vh),.94vw);line-height:1.6;color:var(--text-secondary);font-weight:400">[必填] 1-2 行展开说明.</p>
|
|
1322
1806
|
</div>
|
|
1323
1807
|
</div>
|
|
1324
|
-
<div style="display:grid;grid-template-columns:auto 1fr;gap:2vw;align-items:start;padding:2.6vh 0;border-top:1px solid var(--border-subtle);border-bottom:2px solid var(--accent)">
|
|
1325
|
-
<div style="font-family:var(--sans);font-weight:200;font-size:min(4.4vw,7.8vh);line-height:.9;color:var(--accent)">03</div>
|
|
1808
|
+
<div style="display:grid;grid-template-columns:auto 1fr;gap:min(2vw,3.556vh) 2vw;align-items:start;padding:2.6vh 0;border-top:1px solid var(--border-subtle);border-bottom:2px solid var(--accent)">
|
|
1809
|
+
<div style="font-family:var(--sans);font-weight:200;font-size:min(4.4vw,7.8vh);line-height:.9;color:var(--accent-ink)">03</div>
|
|
1326
1810
|
<div>
|
|
1327
|
-
<h3 style="font-family:var(--sans),var(--sans-zh);font-weight:400;font-size:max(18px,1.8vw);line-height:1.2;letter-spacing:-.015em;color:var(--accent);margin-bottom:1vh">[必填] takeaway 标题 03 · accent 强调</h3>
|
|
1328
|
-
<p style="font-family:var(--sans),var(--sans-zh);font-size:max(16px,.94vw);line-height:1.6;color:var(--text-secondary);font-weight:400">[必填] 最后一条用 IKB 强调,与封面色彩首尾闭环.</p>
|
|
1811
|
+
<h3 style="font-family:var(--sans),var(--sans-zh);font-weight:400;font-size:max(min(18px,2.5vh),min(1.8vw,3.2vh));line-height:1.2;letter-spacing:-.015em;color:var(--accent-ink);margin-bottom:1vh">[必填] takeaway 标题 03 · accent 强调</h3>
|
|
1812
|
+
<p style="font-family:var(--sans),var(--sans-zh);font-size:max(min(16px,2.222vh),.94vw);line-height:1.6;color:var(--text-secondary);font-weight:400">[必填] 最后一条用 IKB 强调,与封面色彩首尾闭环.</p>
|
|
1329
1813
|
</div>
|
|
1330
1814
|
</div>
|
|
1331
1815
|
</div>
|
|
@@ -1360,152 +1844,382 @@ window.__SPEAKER_NOTES__ = SPEAKER_NOTES;
|
|
|
1360
1844
|
</script>
|
|
1361
1845
|
|
|
1362
1846
|
<script>
|
|
1363
|
-
/*
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1847
|
+
/* GZ:EFFECTS:START · guizang-design 特效运行时,不要手改;运行 scripts/sync-skill.mjs 更新 */
|
|
1848
|
+
/* 歸藏设计系统 · 特效运行时(无依赖,可直接内联进单文件 HTML)
|
|
1849
|
+
*
|
|
1850
|
+
* 用法:<canvas class="gz-effect" data-gz-effect="vortex" data-strength=".3" data-frozen="12.5"></canvas>
|
|
1851
|
+
* 页面加载后自动挂载;也可以 GZEffects.mount(canvas, { effect, strength, frozen, colors })。
|
|
1852
|
+
*
|
|
1853
|
+
* 特效:
|
|
1854
|
+
* dispersion 全息色散(PPT 杂志风深色页)
|
|
1855
|
+
* vortex 银色涡流(PPT 杂志风浅色页)
|
|
1856
|
+
* grid 漂移网格 + 点阵(PPT 瑞士风)
|
|
1857
|
+
* inkflow 墨流等高线(图文卡片杂志风,带透明度,叠在纸色上)
|
|
1858
|
+
* ascii ASCII 呼吸场(瑞士风封面 / 封底的强调色块)
|
|
1859
|
+
*
|
|
1860
|
+
* 统一行为:
|
|
1861
|
+
* - 一个 requestAnimationFrame 循环驱动全部特效,不在视口里的不画
|
|
1862
|
+
* - 动效开关:localStorage gz-motion、系统「减少动态效果」、<html data-motion="off">;
|
|
1863
|
+
* 关闭时停在一帧静态画面,不留空白。兼容旧事件 ppt-low-power-change / swiss-low-power-change
|
|
1864
|
+
* - data-frozen 把时间定格:卡片出 PNG 时每次渲染结果一致。GZEffects.ready 在首帧画完后 resolve
|
|
1865
|
+
* - 颜色从 canvas 所在位置的 token 读(--ink-rgb / --paper-rgb / --accent-rgb / --accent-on-rgb),
|
|
1866
|
+
* 放进反色块或切换 data-theme 时自动跟随
|
|
1867
|
+
*
|
|
1868
|
+
* 性能(弱机器也要流畅):
|
|
1869
|
+
* - 渲染分辨率按特效分档(data-scale 可覆盖):背景压在遮罩和模糊下,色散 / 涡流用 0.5 倍 CSS 像素,
|
|
1870
|
+
* Retina 屏上像素量只有全分辨率的 1/16;网格有细线用 1 倍;定格出图时用全分辨率
|
|
1871
|
+
* - WebGL 特效限 30fps(data-fps 可覆盖),ASCII 24fps;不在视口、透明度为 0 的画布不画
|
|
1872
|
+
* - 申请低功耗 GPU;持续掉到 25fps 以下时自动降分辨率,降到底仍卡就切成静态画面
|
|
1873
|
+
*/
|
|
1874
|
+
(function () {
|
|
1875
|
+
'use strict'
|
|
1876
|
+
if (window.GZEffects) return
|
|
1877
|
+
|
|
1878
|
+
var VS = 'attribute vec2 p;void main(){gl_Position=vec4(p,0.,1.);}'
|
|
1879
|
+
var HEAD = 'precision highp float;uniform vec2 R;uniform float T;uniform vec2 M;uniform vec3 INK;uniform vec3 PAPER;uniform vec3 ACC;uniform float S;uniform float DARK;'
|
|
1880
|
+
var NOISE =
|
|
1881
|
+
'float hash(vec2 p){return fract(sin(dot(p,vec2(127.1,311.7)))*43758.5453);}' +
|
|
1882
|
+
'float noise(vec2 p){vec2 i=floor(p),f=fract(p);vec2 u=f*f*(3.-2.*f);' +
|
|
1883
|
+
'return mix(mix(hash(i),hash(i+vec2(1,0)),u.x),mix(hash(i+vec2(0,1)),hash(i+vec2(1,1)),u.x),u.y);}'
|
|
1884
|
+
|
|
1885
|
+
// 各特效的默认渲染倍率(相对 CSS 像素):柔和的背景低分辨率看不出差别,细线和文字需要更高
|
|
1886
|
+
var SCALE = { dispersion: 0.5, vortex: 0.5, inkflow: 0.75, grid: 1, ascii: 1 }
|
|
1887
|
+
var FPS = { dispersion: 30, vortex: 30, inkflow: 30, grid: 30 }
|
|
1888
|
+
|
|
1889
|
+
var SHADERS = {
|
|
1890
|
+
// 原 PPT template.html FS_DARK,颜色是设计时定死的钛金暗色(themes.md 注明不跟主题)
|
|
1891
|
+
dispersion: HEAD +
|
|
1892
|
+
'vec3 pal(float t,vec3 a,vec3 b,vec3 c,vec3 d){return a+b*cos(6.28318*(c*t+d));}' +
|
|
1893
|
+
'void main(){vec2 uv=gl_FragCoord.xy/R;vec2 p=uv*2.-1.;p.x*=R.x/R.y;vec2 m=M*2.-1.;m.x*=R.x/R.y;' +
|
|
1894
|
+
'float md=length(p-m);p+=sin(md*15.-T*4.)*exp(-md*3.)*.08;vec2 p0=p;' +
|
|
1895
|
+
'for(float i=1.;i<4.;i++){p.x+=.1/i*sin(i*3.*p.y+T*.4)+.05;p.y+=.1/i*cos(i*2.*p.x+T*.3)-.05;}' +
|
|
1896
|
+
'float r=length(p);float ang=atan(p.y,p.x);' +
|
|
1897
|
+
'vec3 col=pal(r*1.5+p0.x*.5+T*.1,vec3(.12,.12,.13),vec3(.03,.04,.05),vec3(1.),vec3(.1,.2,.4));' +
|
|
1898
|
+
'float disp=sin(r*25.-T*1.5+ang*2.)*.5+.5;col+=vec3(disp*.015,disp*.01,disp*.02);' +
|
|
1899
|
+
'col+=pow(sin(p.x*4.+p.y*3.+T)*.5+.5,8.)*.08;col=mix(vec3(.05,.05,.06),col,.85);gl_FragColor=vec4(col,1.);}',
|
|
1900
|
+
|
|
1901
|
+
// 原 FS_LIGHT。colors:"theme" 时用主题纸色替换银白,深浅关系不变
|
|
1902
|
+
vortex: HEAD + NOISE +
|
|
1903
|
+
'float fbm(vec2 p){float v=0.,a=.5;mat2 m=mat2(.8,.6,-.6,.8);for(int i=0;i<5;i++){v+=a*noise(p);p=m*p*2.02;a*=.5;}return v;}' +
|
|
1904
|
+
'uniform float THEME;' +
|
|
1905
|
+
'void main(){vec2 uv=gl_FragCoord.xy/R;vec2 p=uv;p.x*=R.x/R.y;vec2 m=M;m.x*=R.x/R.y;vec2 md=p-m;float dl=length(md);' +
|
|
1906
|
+
'p+=normalize(md+vec2(.0001))*exp(-dl*5.)*.03;' +
|
|
1907
|
+
'vec2 q=vec2(fbm(p*1.8+T*.07),fbm(p*1.8+vec2(5.2,1.3)+T*.06));' +
|
|
1908
|
+
'vec2 r=vec2(fbm(p*2.+q*1.3+vec2(1.7,9.2)+T*.05),fbm(p*2.+q*1.3+vec2(8.3,2.8)+T*.04));' +
|
|
1909
|
+
'float f=fbm(p*2.2+r*1.5);' +
|
|
1910
|
+
'vec3 hi=mix(vec3(.955,.945,.925),PAPER,THEME);vec3 lo=mix(vec3(.86,.85,.84),mix(PAPER,INK,.1),THEME);' +
|
|
1911
|
+
'vec3 col=mix(lo,hi,f);float ph=r.x*2.2+T*.35;' +
|
|
1912
|
+
'col+=vec3(.78,.62,.92)*sin(ph)*.055;col+=vec3(.55,.72,.95)*sin(ph*.8+2.)*.05;col+=smoothstep(.48,.92,f)*.06;' +
|
|
1913
|
+
'gl_FragColor=vec4(col,1.);}',
|
|
1914
|
+
|
|
1915
|
+
// 原 PPT template-swiss.html 网格背景
|
|
1916
|
+
grid: HEAD +
|
|
1917
|
+
'float gl(vec2 uv,float s,float t){vec2 g=abs(fract(uv/s)-.5);float d=min(g.x,g.y);return 1.-smoothstep(t-.005,t+.005,d);}' +
|
|
1918
|
+
'void main(){vec2 uv=gl_FragCoord.xy/R;float a=R.x/R.y;vec2 p=uv;p.x*=a;vec2 gp=p+vec2(T*.008,T*.005);' +
|
|
1919
|
+
'float g=gl(gp,.12,.012)+gl(gp,.024,.04)*.2;vec2 m=M;m.x*=a;float mi=exp(-length(p-m)*4.)*.5;' +
|
|
1920
|
+
'vec2 dg=fract(gp*50.)-.5;float dm=1.-smoothstep(.05,.14,length(dg));' +
|
|
1921
|
+
'dm*=smoothstep(-.3,.6,sin(gp.x*1.4+T*.15)*cos(gp.y*1.6-T*.12))*.6;' +
|
|
1922
|
+
'vec3 line=mix(vec3(.08),vec3(.92),DARK);vec3 bg=PAPER;' +
|
|
1923
|
+
'vec3 col=mix(bg,line,g*(.45+mi)*.55);col=mix(col,line,dm*.35);col=mix(col,ACC,mi*.18);gl_FragColor=vec4(col,1.);}',
|
|
1924
|
+
|
|
1925
|
+
// 原卡片 magazine-bg-webgl.js:输出带透明度,叠在纸色上
|
|
1926
|
+
inkflow: HEAD + NOISE +
|
|
1927
|
+
'float fbm(vec2 p){float v=0.,a=.5;mat2 m=mat2(1.6,1.2,-1.2,1.6);for(int i=0;i<5;i++){v+=a*noise(p);p=m*p*1.18;a*=.52;}return v;}' +
|
|
1928
|
+
'void main(){vec2 p=(gl_FragCoord.xy-.5*R)/min(R.x,R.y);float t=T*.045;' +
|
|
1929
|
+
'float n=fbm(p*2.2+vec2(t,-t*.7));float n2=fbm(p*5.4-vec2(t*1.7,t));' +
|
|
1930
|
+
'float contour=smoothstep(.015,0.,abs(fract((n+n2*.35)*7.)-.5));float wash=smoothstep(.22,.88,n);' +
|
|
1931
|
+
'float vig=1.-smoothstep(.28,.92,length(p));vec3 col=mix(PAPER,INK,wash*.42+contour*.18);' +
|
|
1932
|
+
'col=mix(col,ACC,(.18+.25*n2)*contour);float al=S*(.18+wash*.42+contour*.3)*(.55+.45*vig);' +
|
|
1933
|
+
'gl_FragColor=vec4(col*al,al);}',
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
// ---------- 动效开关 ----------
|
|
1937
|
+
var KEY = 'gz-motion'
|
|
1938
|
+
function storedMotion() { try { return localStorage.getItem(KEY) } catch (e) { return null } }
|
|
1939
|
+
function computeMotion() {
|
|
1940
|
+
if (document.documentElement.getAttribute('data-motion') === 'off') return false
|
|
1941
|
+
var s = storedMotion()
|
|
1942
|
+
if (s === 'off') return false
|
|
1943
|
+
if (s === 'on') return true
|
|
1944
|
+
return !(window.matchMedia && matchMedia('(prefers-reduced-motion: reduce)').matches)
|
|
1945
|
+
}
|
|
1946
|
+
var motion = computeMotion()
|
|
1947
|
+
|
|
1948
|
+
// ---------- 颜色 ----------
|
|
1949
|
+
function rgbVar(cs, name, fb) {
|
|
1950
|
+
var v = cs.getPropertyValue(name).trim()
|
|
1951
|
+
if (!v) return fb
|
|
1952
|
+
var n = v.split(',').map(Number)
|
|
1953
|
+
return n.length === 3 && n.every(isFinite) ? n.map(function (x) { return x / 255 }) : fb
|
|
1954
|
+
}
|
|
1955
|
+
function readColors(el) {
|
|
1956
|
+
var cs = getComputedStyle(el)
|
|
1957
|
+
var paper = rgbVar(cs, '--paper-rgb', [0.97, 0.97, 0.96])
|
|
1958
|
+
return {
|
|
1959
|
+
ink: rgbVar(cs, '--ink-rgb', [0.04, 0.04, 0.04]),
|
|
1960
|
+
paper: paper,
|
|
1961
|
+
accent: rgbVar(cs, '--accent-rgb', [0, 0.18, 0.65]),
|
|
1962
|
+
accentOn: rgbVar(cs, '--accent-on-rgb', [1, 1, 1]),
|
|
1963
|
+
dark: 0.2126 * paper[0] + 0.7152 * paper[1] + 0.0722 * paper[2] < 0.5 ? 1 : 0,
|
|
1964
|
+
mono: (cs.getPropertyValue('--font-mono') || 'ui-monospace,monospace').trim(),
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1383
1967
|
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
//
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1968
|
+
var mouse = [0.5, 0.5]
|
|
1969
|
+
addEventListener('mousemove', function (e) { mouse = [e.clientX / innerWidth, 1 - e.clientY / innerHeight] }, { passive: true })
|
|
1970
|
+
|
|
1971
|
+
// ---------- WebGL 特效 ----------
|
|
1972
|
+
function glEffect(canvas, o) {
|
|
1973
|
+
var gl = canvas.getContext('webgl', { alpha: o.effect === 'inkflow', premultipliedAlpha: true, antialias: false, powerPreference: 'low-power', preserveDrawingBuffer: o.frozen != null })
|
|
1974
|
+
if (!gl) return null
|
|
1975
|
+
function sh(t, s) {
|
|
1976
|
+
var x = gl.createShader(t); gl.shaderSource(x, s); gl.compileShader(x)
|
|
1977
|
+
if (!gl.getShaderParameter(x, gl.COMPILE_STATUS)) throw new Error('gz-effects ' + o.effect + ': ' + gl.getShaderInfoLog(x))
|
|
1978
|
+
return x
|
|
1979
|
+
}
|
|
1980
|
+
var prog = gl.createProgram()
|
|
1981
|
+
gl.attachShader(prog, sh(gl.VERTEX_SHADER, VS))
|
|
1982
|
+
gl.attachShader(prog, sh(gl.FRAGMENT_SHADER, SHADERS[o.effect]))
|
|
1983
|
+
gl.linkProgram(prog); gl.useProgram(prog)
|
|
1984
|
+
gl.bindBuffer(gl.ARRAY_BUFFER, gl.createBuffer())
|
|
1985
|
+
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([-1, -1, 1, -1, -1, 1, -1, 1, 1, -1, 1, 1]), gl.STATIC_DRAW)
|
|
1986
|
+
var loc = gl.getAttribLocation(prog, 'p'); gl.enableVertexAttribArray(loc); gl.vertexAttribPointer(loc, 2, gl.FLOAT, false, 0, 0)
|
|
1987
|
+
var U = {}
|
|
1988
|
+
;['R', 'T', 'M', 'INK', 'PAPER', 'ACC', 'S', 'DARK', 'THEME'].forEach(function (n) { U[n] = gl.getUniformLocation(prog, n) })
|
|
1989
|
+
return function (t, c) {
|
|
1990
|
+
gl.viewport(0, 0, canvas.width, canvas.height)
|
|
1991
|
+
gl.clearColor(0, 0, 0, 0); gl.clear(gl.COLOR_BUFFER_BIT)
|
|
1992
|
+
gl.uniform2f(U.R, canvas.width, canvas.height); gl.uniform1f(U.T, t); gl.uniform2f(U.M, mouse[0], mouse[1])
|
|
1993
|
+
gl.uniform3fv(U.INK, c.ink); gl.uniform3fv(U.PAPER, c.paper); gl.uniform3fv(U.ACC, c.accent)
|
|
1994
|
+
gl.uniform1f(U.S, o.strength); gl.uniform1f(U.DARK, o.dark != null ? +o.dark : c.dark)
|
|
1995
|
+
if (U.THEME) gl.uniform1f(U.THEME, o.colors === 'theme' ? 1 : 0)
|
|
1996
|
+
gl.drawArrays(gl.TRIANGLES, 0, 6)
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
// ---------- ASCII 呼吸场(Canvas 2D) ----------
|
|
2001
|
+
var PALETTE = ' ...:::---+++***◦◦••▢▣'
|
|
2002
|
+
function asciiEffect(canvas) {
|
|
2003
|
+
var ctx = canvas.getContext('2d')
|
|
2004
|
+
var cell = 16, atlas = null, atlasKey = ''
|
|
2005
|
+
// 字形图集:每个字符只排一次版,之后每帧按格子 drawImage,比逐格 fillText 快一个数量级
|
|
2006
|
+
function buildAtlas(font, rgb, dpr) {
|
|
2007
|
+
var key = font + rgb + dpr
|
|
2008
|
+
if (key === atlasKey) return
|
|
2009
|
+
atlas = document.createElement('canvas')
|
|
2010
|
+
atlas.width = Math.ceil(PALETTE.length * cell * dpr); atlas.height = Math.ceil(cell * dpr)
|
|
2011
|
+
var a = atlas.getContext('2d')
|
|
2012
|
+
a.setTransform(dpr, 0, 0, dpr, 0, 0)
|
|
2013
|
+
a.font = font; a.textBaseline = 'top'; a.fillStyle = 'rgb(' + rgb + ')'
|
|
2014
|
+
for (var i = 0; i < PALETTE.length; i++) if (PALETTE[i] !== ' ') a.fillText(PALETTE[i], i * cell, 0)
|
|
2015
|
+
atlasKey = key
|
|
2016
|
+
}
|
|
2017
|
+
var draw = function (t, c, w, h, dpr) {
|
|
2018
|
+
ctx.setTransform(1, 0, 0, 1, 0, 0)
|
|
2019
|
+
ctx.clearRect(0, 0, canvas.width, canvas.height)
|
|
2020
|
+
var rgb = c.accentOn.map(function (x) { return Math.round(x * 255) }).join(',')
|
|
2021
|
+
buildAtlas('500 13px ' + c.mono, rgb, dpr)
|
|
2022
|
+
// 字色取 accent-on:IKB / 橙上是白字,黄 / 绿上是墨色字(修复原来只画白字的问题)
|
|
2023
|
+
var blend = c.accentOn[0] + c.accentOn[1] + c.accentOn[2] > 1.5 ? 'screen' : 'multiply'
|
|
2024
|
+
if (canvas.style.mixBlendMode !== blend) canvas.style.mixBlendMode = blend
|
|
2025
|
+
var cols = Math.ceil(w / cell), rows = Math.ceil(h / cell), tt = t * 0.55, sz = cell * dpr
|
|
2026
|
+
for (var r = 0; r < rows; r++) for (var k = 0; k < cols; k++) {
|
|
2027
|
+
var n = (Math.sin(k * 0.18 + tt) + Math.sin(r * 0.24 - tt * 0.7) + Math.sin((k + r) * 0.12 + tt * 0.45) +
|
|
2028
|
+
Math.sin(Math.hypot(k - cols * 0.5, r - rows * 0.5) * 0.16 - tt * 0.55)) / 4
|
|
2029
|
+
var v = (n + 1) / 2
|
|
2030
|
+
if (v < 0.22) continue
|
|
2031
|
+
var idx = Math.min(PALETTE.length - 1, Math.floor(v * PALETTE.length))
|
|
2032
|
+
if (PALETTE[idx] === ' ') continue
|
|
2033
|
+
ctx.globalAlpha = 0.08 + (v - 0.22) * 0.55
|
|
2034
|
+
ctx.drawImage(atlas, idx * sz, 0, sz, sz, k * sz, r * sz, sz, sz)
|
|
2035
|
+
}
|
|
2036
|
+
ctx.globalAlpha = 1
|
|
2037
|
+
}
|
|
2038
|
+
// 呼吸场变化很慢,24 帧和 60 帧肉眼无差别;逐字绘制在 CPU 上开销大,限帧省电
|
|
2039
|
+
draw.interval = 1000 / 24
|
|
2040
|
+
return draw
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
// WebGL 不可用时:几层径向渐变,模拟墨色晕染(不画椭圆,遵守卡片「不用椭圆」规则)。深色背景特效用墨色打底
|
|
2044
|
+
function fallback2d(canvas, o) {
|
|
2045
|
+
var ctx = canvas.getContext('2d')
|
|
2046
|
+
return function (t, c, w, h, dpr) {
|
|
2047
|
+
ctx.setTransform(dpr, 0, 0, dpr, 0, 0)
|
|
2048
|
+
ctx.fillStyle = 'rgb(' + (o.effect === 'dispersion' ? c.ink : c.paper).map(function (x) { return Math.round(x * 255) }).join(',') + ')'
|
|
2049
|
+
ctx.fillRect(0, 0, w, h)
|
|
2050
|
+
for (var i = 0; i < 5; i++) {
|
|
2051
|
+
var x = w * (0.14 + ((i * 0.19 + 0.17) % 0.72)), y = h * (0.1 + ((i * 0.29 + 0.23) % 0.78)), r = Math.max(w, h) * (0.22 + i * 0.045)
|
|
2052
|
+
var g = ctx.createRadialGradient(x, y, 0, x, y, r)
|
|
2053
|
+
var col = (i % 2 ? c.accent : c.ink).map(function (v) { return Math.round(v * 255) }).join(',')
|
|
2054
|
+
g.addColorStop(0, 'rgba(' + col + ',' + (i % 2 ? 0.1 : 0.12) + ')'); g.addColorStop(1, 'rgba(' + col + ',0)')
|
|
2055
|
+
ctx.fillStyle = g; ctx.fillRect(0, 0, w, h)
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
// ---------- 挂载与循环 ----------
|
|
2061
|
+
// 自动降级的状态(见 governor):各级渲染倍率与当前级别
|
|
2062
|
+
var ADAPT = [1, 0.7, 0.5]
|
|
2063
|
+
var perf = { start: 0, frames: 0, level: 0, settleUntil: 0 }
|
|
2064
|
+
var items = []
|
|
2065
|
+
var STATIC_T = 12.5 // 动效关闭时的静态帧时刻
|
|
2066
|
+
var readyResolve
|
|
2067
|
+
var ready = new Promise(function (r) { readyResolve = r })
|
|
2068
|
+
var pendingFirst = 0
|
|
2069
|
+
|
|
2070
|
+
function size(it) {
|
|
2071
|
+
var rect = it.canvas.getBoundingClientRect()
|
|
2072
|
+
var device = Math.min(window.devicePixelRatio || 1, 2)
|
|
2073
|
+
// 定格出图用全分辨率;实时播放按特效倍率 × 自适应降级系数
|
|
2074
|
+
var dpr = it.o.frozen != null || it.o.scale == null ? device : Math.max(0.2, it.o.scale * it.adapt)
|
|
2075
|
+
var w = Math.max(1, Math.round(rect.width)), h = Math.max(1, Math.round(rect.height))
|
|
2076
|
+
if (it.w !== w || it.h !== h || it.dpr !== dpr) {
|
|
2077
|
+
it.w = w; it.h = h; it.dpr = dpr
|
|
2078
|
+
it.canvas.width = Math.round(w * dpr); it.canvas.height = Math.round(h * dpr)
|
|
2079
|
+
it.dirty = true
|
|
2080
|
+
}
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
function drawOne(it, now) {
|
|
2084
|
+
size(it)
|
|
2085
|
+
if (!it.colors || it.colorsStale) { it.colors = readColors(it.canvas); it.colorsStale = false }
|
|
2086
|
+
var t = it.o.frozen != null ? it.o.frozen : motion ? (now - it.t0) / 1000 : STATIC_T
|
|
2087
|
+
it.draw(t, it.colors, it.w, it.h, it.dpr)
|
|
2088
|
+
it.dirty = false
|
|
2089
|
+
if (!it.drawn) { it.drawn = true; if (--pendingFirst === 0) readyResolve() }
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2092
|
+
function mount(canvas, opts) {
|
|
2093
|
+
if (typeof canvas === 'string') canvas = document.querySelector(canvas)
|
|
2094
|
+
if (!canvas || canvas.__gz) return canvas && canvas.__gz
|
|
2095
|
+
var d = canvas.dataset
|
|
2096
|
+
var o = Object.assign({
|
|
2097
|
+
effect: d.gzEffect || 'vortex',
|
|
2098
|
+
strength: d.strength != null ? +d.strength : 0.34,
|
|
2099
|
+
frozen: d.frozen != null ? +d.frozen : null,
|
|
2100
|
+
colors: d.colors || 'fixed',
|
|
2101
|
+
dark: d.dark != null ? d.dark === 'true' || d.dark === '1' : null,
|
|
2102
|
+
}, opts || {})
|
|
2103
|
+
var eff = o.effect
|
|
2104
|
+
if (o.scale == null) o.scale = d.scale != null ? +d.scale : SCALE[eff]
|
|
2105
|
+
var fps = d.fps != null ? +d.fps : FPS[eff]
|
|
2106
|
+
var draw = eff === 'ascii' ? asciiEffect(canvas) : SHADERS[eff] ? glEffect(canvas, o) : null
|
|
2107
|
+
if (!draw && eff !== 'ascii') draw = fallback2d(canvas, o)
|
|
2108
|
+
var it = { canvas: canvas, o: o, draw: draw, t0: performance.now(), visible: true, last: 0, adapt: 1,
|
|
2109
|
+
interval: (draw && draw.interval) || (fps ? 1000 / fps : 0) }
|
|
2110
|
+
canvas.__gz = it
|
|
2111
|
+
items.push(it)
|
|
2112
|
+
pendingFirst++
|
|
2113
|
+
if ('IntersectionObserver' in window) {
|
|
2114
|
+
// 只贴着视口边缘(面积为 0)不算可见:幻灯片左右相邻页正好贴边,isIntersecting 会误报为 true
|
|
2115
|
+
new IntersectionObserver(function (es) { es.forEach(function (e) { it.visible = e.isIntersecting && e.intersectionRatio > 0 }) }, { threshold: [0, 0.01] }).observe(canvas)
|
|
2116
|
+
}
|
|
2117
|
+
// 刚挂载时字体加载、着色器编译都会卡一下,先观察 1.5 秒再开始判断是否降级
|
|
2118
|
+
perf.settleUntil = Math.max(perf.settleUntil, performance.now() + 1500)
|
|
2119
|
+
drawOne(it, performance.now())
|
|
2120
|
+
schedule()
|
|
2121
|
+
return it
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
// 透明度为 0 的画布(杂志风深浅两张背景交叉淡入时,看不见的那张)不画
|
|
2125
|
+
function shown(c) {
|
|
2126
|
+
if (c.checkVisibility) return c.checkVisibility({ opacityProperty: true, visibilityProperty: true })
|
|
2127
|
+
return getComputedStyle(c).opacity !== '0'
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
// 自动降级:每 2 秒看一次页面帧率,持续低于 25 就降渲染倍率;降到底仍卡,切成静态画面
|
|
2131
|
+
function governor(now, animating) {
|
|
2132
|
+
if (!animating || document.hidden) { perf.start = 0; return }
|
|
2133
|
+
if (now < perf.settleUntil) return
|
|
2134
|
+
if (!perf.start) { perf.start = now; perf.frames = 0; return }
|
|
2135
|
+
perf.frames++
|
|
2136
|
+
var span = now - perf.start
|
|
2137
|
+
if (span < 2000) return
|
|
2138
|
+
var fps = (perf.frames * 1000) / span
|
|
2139
|
+
perf.start = 0
|
|
2140
|
+
if (fps >= 25) return
|
|
2141
|
+
perf.level++
|
|
2142
|
+
if (perf.level < ADAPT.length) {
|
|
2143
|
+
items.forEach(function (it) { it.adapt = ADAPT[perf.level]; it.dirty = true })
|
|
2144
|
+
perf.settleUntil = now + 1000
|
|
2145
|
+
} else {
|
|
2146
|
+
if (window.console) console.info('[gz-effects] 帧率持续偏低(' + fps.toFixed(0) + 'fps),背景已切换为静态画面')
|
|
2147
|
+
setMotion(false, false)
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
var raf = 0
|
|
2152
|
+
function schedule() { if (!raf) raf = requestAnimationFrame(loop) }
|
|
2153
|
+
function loop(now) {
|
|
2154
|
+
raf = 0
|
|
2155
|
+
var again = false
|
|
2156
|
+
for (var i = 0; i < items.length; i++) {
|
|
2157
|
+
var it = items[i]
|
|
2158
|
+
var live = motion && it.o.frozen == null
|
|
2159
|
+
var due = now - it.last >= it.interval
|
|
2160
|
+
if ((live && it.visible && due && shown(it.canvas)) || it.dirty || it.colorsStale) { drawOne(it, now); it.last = now }
|
|
2161
|
+
if (live) again = true
|
|
2162
|
+
}
|
|
2163
|
+
governor(now, again)
|
|
2164
|
+
if (again) schedule()
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
function setMotion(on, persist) {
|
|
2168
|
+
motion = !!on
|
|
2169
|
+
if (persist !== false) try { localStorage.setItem(KEY, on ? 'on' : 'off') } catch (e) {}
|
|
2170
|
+
items.forEach(function (it) { it.dirty = true; if (on) it.t0 = performance.now() - STATIC_T * 1000 })
|
|
2171
|
+
schedule()
|
|
2172
|
+
dispatchEvent(new CustomEvent('gz-motion-change', { detail: { on: motion } }))
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2175
|
+
// 旧模板的低功耗事件:迁移期间继续认
|
|
2176
|
+
;['ppt-low-power-change', 'swiss-low-power-change'].forEach(function (n) {
|
|
2177
|
+
addEventListener(n, function (e) { if (e.detail && 'on' in e.detail) setMotion(!e.detail.on, false) })
|
|
2178
|
+
})
|
|
2179
|
+
if (window.matchMedia) {
|
|
2180
|
+
var mq = matchMedia('(prefers-reduced-motion: reduce)')
|
|
2181
|
+
mq.addEventListener && mq.addEventListener('change', function () { if (!storedMotion()) setMotion(computeMotion(), false) })
|
|
2182
|
+
}
|
|
2183
|
+
// 主题、反色块切换:标记颜色过期,下一帧重读
|
|
2184
|
+
new MutationObserver(function () {
|
|
2185
|
+
if (computeMotion() !== motion && document.documentElement.getAttribute('data-motion') === 'off') setMotion(false, false)
|
|
2186
|
+
items.forEach(function (it) { it.colorsStale = true }); schedule()
|
|
2187
|
+
}).observe(document.documentElement, { attributes: true, subtree: true, attributeFilter: ['data-theme', 'data-surface', 'data-motion', 'class'] })
|
|
2188
|
+
addEventListener('resize', function () { items.forEach(function (it) { it.dirty = true }); perf.settleUntil = performance.now() + 1000; schedule() }, { passive: true })
|
|
2189
|
+
|
|
2190
|
+
function autoMount() {
|
|
2191
|
+
var list = document.querySelectorAll('canvas[data-gz-effect]')
|
|
2192
|
+
for (var i = 0; i < list.length; i++) mount(list[i])
|
|
2193
|
+
if (!list.length) readyResolve()
|
|
2194
|
+
}
|
|
2195
|
+
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', autoMount)
|
|
2196
|
+
else autoMount()
|
|
2197
|
+
|
|
2198
|
+
window.GZEffects = {
|
|
2199
|
+
mount: mount, ready: ready, setMotion: setMotion,
|
|
2200
|
+
get motion() { return motion },
|
|
2201
|
+
effects: Object.keys(SHADERS).concat('ascii'),
|
|
2202
|
+
}
|
|
2203
|
+
})()
|
|
2204
|
+
/* GZ:EFFECTS:END */
|
|
2205
|
+
</script>
|
|
2206
|
+
<script>
|
|
2207
|
+
/* =============== 背景特效(gz-effects) ===============
|
|
2208
|
+
网格背景:默认 canvas-mode 不用,直接移除;非 canvas-mode 时跟随 body.dark-bg 切换深浅。
|
|
2209
|
+
ASCII 呼吸场:封面 / 封底强调色块里的 canvas.ascii-bg,字色取 --accent-on(黄、绿主题上是墨色字)。
|
|
2210
|
+
低功耗开关沿用 window.__lowPowerMode 与 swiss-low-power-change 事件,运行时会自动跟随。 */
|
|
1483
2211
|
let darkMode=false;
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
if(document.body.classList.contains('canvas-mode')
|
|
1487
|
-
if(
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
}
|
|
1496
|
-
gridRAF=requestAnimationFrame(loop);
|
|
1497
|
-
}
|
|
1498
|
-
function stopGrid(){
|
|
1499
|
-
if(gridRAF) cancelAnimationFrame(gridRAF);
|
|
1500
|
-
gridRAF=0;
|
|
1501
|
-
}
|
|
1502
|
-
if(document.body.classList.contains('canvas-mode')){
|
|
1503
|
-
const c=document.getElementById('bg-grid');
|
|
1504
|
-
if(c) c.remove();
|
|
1505
|
-
}else{
|
|
1506
|
-
startGrid();
|
|
1507
|
-
}
|
|
1508
|
-
addEventListener('swiss-low-power-change', e=>{e.detail.on ? stopGrid() : startGrid();});
|
|
2212
|
+
(function(){
|
|
2213
|
+
const grid=document.getElementById('bg-grid');
|
|
2214
|
+
if(document.body.classList.contains('canvas-mode')){ if(grid) grid.remove(); }
|
|
2215
|
+
else if(grid){
|
|
2216
|
+
grid.dataset.gzEffect='grid';
|
|
2217
|
+
new MutationObserver(()=>{ if(grid.__gz) grid.__gz.o.dark=document.body.classList.contains('dark-bg'); })
|
|
2218
|
+
.observe(document.body,{attributes:true,attributeFilter:['class']});
|
|
2219
|
+
}
|
|
2220
|
+
document.querySelectorAll('canvas.ascii-bg').forEach(c=>{ c.dataset.gzEffect='ascii'; });
|
|
2221
|
+
GZEffects.setMotion(!window.__lowPowerMode, false);
|
|
2222
|
+
})();
|
|
1509
2223
|
|
|
1510
2224
|
// =============== 导航 ===============
|
|
1511
2225
|
const deck=document.getElementById('deck');
|
|
@@ -1531,6 +2245,8 @@ function go(n,opts={}){
|
|
|
1531
2245
|
const el=slides[idx];
|
|
1532
2246
|
const isDark = el.classList.contains('dark') || el.classList.contains('accent');
|
|
1533
2247
|
document.body.classList.toggle('dark-bg', isDark);
|
|
2248
|
+
// 强调色页单独标记:导航和提示改用 --accent-on(黄、绿主题上是墨色),不能按深色页处理
|
|
2249
|
+
document.body.classList.toggle('accent-bg', el.classList.contains('accent'));
|
|
1534
2250
|
darkMode = isDark;
|
|
1535
2251
|
if(window.__playSlide) setTimeout(()=>window.__playSlide(idx), 450);
|
|
1536
2252
|
window.__pptPresenter?.onSlideChange(idx);
|
|
@@ -2827,109 +3543,5 @@ if(motion){
|
|
|
2827
3543
|
}
|
|
2828
3544
|
</script>
|
|
2829
3545
|
|
|
2830
|
-
<script>
|
|
2831
|
-
/* ============== ASCII 点阵呼吸场 · IKB 封面/封底专用 ==============
|
|
2832
|
-
sin/cos 二维噪声场驱动字符显隐,营造工业仪表板的"涌动呼吸"质感.
|
|
2833
|
-
纯 canvas 2D, mix-blend-mode:screen 让字符在 IKB 底色上自然发亮.
|
|
2834
|
-
用法:在需要呼吸场的容器(.canvas-card 或 split .half.b-accent)内首位插入
|
|
2835
|
-
<canvas class="ascii-bg" aria-hidden="true">,本脚本会自动扫描并启动. */
|
|
2836
|
-
(function(){
|
|
2837
|
-
const canvases = [...document.querySelectorAll('canvas.ascii-bg')];
|
|
2838
|
-
if(!canvases.length) return;
|
|
2839
|
-
|
|
2840
|
-
const PALETTE = ' ...:::---+++***◦◦••▢▣';
|
|
2841
|
-
const CELL = 16;
|
|
2842
|
-
const FONT_SIZE = 13;
|
|
2843
|
-
|
|
2844
|
-
function setup(c){
|
|
2845
|
-
const dpr = Math.min(window.devicePixelRatio || 1, 2);
|
|
2846
|
-
const rect = c.getBoundingClientRect();
|
|
2847
|
-
if(rect.width < 4 || rect.height < 4) return false;
|
|
2848
|
-
c.width = Math.round(rect.width * dpr);
|
|
2849
|
-
c.height = Math.round(rect.height * dpr);
|
|
2850
|
-
c.__dpr = dpr;
|
|
2851
|
-
c.__w = rect.width;
|
|
2852
|
-
c.__h = rect.height;
|
|
2853
|
-
const ctx = c.getContext('2d');
|
|
2854
|
-
ctx.setTransform(dpr,0,0,dpr,0,0);
|
|
2855
|
-
const mono = (getComputedStyle(document.documentElement).getPropertyValue('--mono') || 'JetBrains Mono, monospace').trim();
|
|
2856
|
-
ctx.font = `500 ${FONT_SIZE}px ${mono}`;
|
|
2857
|
-
ctx.textBaseline = 'top';
|
|
2858
|
-
c.__ctx = ctx;
|
|
2859
|
-
return true;
|
|
2860
|
-
}
|
|
2861
|
-
|
|
2862
|
-
function draw(c, t){
|
|
2863
|
-
if(!c.__ctx) return;
|
|
2864
|
-
const ctx = c.__ctx, w = c.__w, h = c.__h;
|
|
2865
|
-
ctx.clearRect(0, 0, w, h);
|
|
2866
|
-
const cols = Math.ceil(w / CELL);
|
|
2867
|
-
const rows = Math.ceil(h / CELL);
|
|
2868
|
-
for(let r=0; r<rows; r++){
|
|
2869
|
-
for(let cc=0; cc<cols; cc++){
|
|
2870
|
-
const n = (
|
|
2871
|
-
Math.sin(cc * 0.18 + t) +
|
|
2872
|
-
Math.sin(r * 0.24 - t * 0.7) +
|
|
2873
|
-
Math.sin((cc + r) * 0.12 + t * 0.45) +
|
|
2874
|
-
Math.sin(Math.hypot(cc - cols * 0.5, r - rows * 0.5) * 0.16 - t * 0.55)
|
|
2875
|
-
) / 4; // [-1, 1]
|
|
2876
|
-
const v = (n + 1) / 2; // [0, 1]
|
|
2877
|
-
if(v < 0.22) continue;
|
|
2878
|
-
const idx = Math.min(PALETTE.length - 1, Math.floor(v * PALETTE.length));
|
|
2879
|
-
const ch = PALETTE[idx];
|
|
2880
|
-
if(ch === ' ') continue;
|
|
2881
|
-
const alpha = 0.08 + (v - 0.22) * 0.55;
|
|
2882
|
-
ctx.fillStyle = `rgba(255,255,255,${alpha.toFixed(3)})`;
|
|
2883
|
-
ctx.fillText(ch, cc * CELL, r * CELL);
|
|
2884
|
-
}
|
|
2885
|
-
}
|
|
2886
|
-
}
|
|
2887
|
-
|
|
2888
|
-
function resizeAll(){ canvases.forEach(setup); }
|
|
2889
|
-
let pending = null;
|
|
2890
|
-
window.addEventListener('resize', ()=>{
|
|
2891
|
-
if(window.__lowPowerMode) return;
|
|
2892
|
-
if(pending) cancelAnimationFrame(pending);
|
|
2893
|
-
pending = requestAnimationFrame(resizeAll);
|
|
2894
|
-
}, {passive:true});
|
|
2895
|
-
|
|
2896
|
-
let t0 = performance.now();
|
|
2897
|
-
let frame = 0, asciiRAF = 0, running = false;
|
|
2898
|
-
function tick(now){
|
|
2899
|
-
if(!running || window.__lowPowerMode){running=false;asciiRAF=0;return;}
|
|
2900
|
-
const t = (now - t0) / 1000 * 0.55;
|
|
2901
|
-
frame++;
|
|
2902
|
-
canvases.forEach(c=>{
|
|
2903
|
-
// 离屏 slide 降帧:每 4 帧渲染一次,在屏 slide 每帧渲染
|
|
2904
|
-
const slide = c.closest('.slide');
|
|
2905
|
-
const rect = slide ? slide.getBoundingClientRect() : null;
|
|
2906
|
-
const onscreen = rect && rect.right > 0 && rect.left < window.innerWidth;
|
|
2907
|
-
if(!onscreen && (frame & 3) !== 0) return;
|
|
2908
|
-
draw(c, t);
|
|
2909
|
-
});
|
|
2910
|
-
asciiRAF = requestAnimationFrame(tick);
|
|
2911
|
-
}
|
|
2912
|
-
function start(){
|
|
2913
|
-
if(running || window.__lowPowerMode) return;
|
|
2914
|
-
resizeAll();
|
|
2915
|
-
t0 = performance.now();
|
|
2916
|
-
frame = 0;
|
|
2917
|
-
running = true;
|
|
2918
|
-
asciiRAF = requestAnimationFrame(tick);
|
|
2919
|
-
}
|
|
2920
|
-
function stop(){
|
|
2921
|
-
running = false;
|
|
2922
|
-
if(asciiRAF) cancelAnimationFrame(asciiRAF);
|
|
2923
|
-
if(pending) cancelAnimationFrame(pending);
|
|
2924
|
-
asciiRAF = 0;
|
|
2925
|
-
pending = null;
|
|
2926
|
-
canvases.forEach(c=>{
|
|
2927
|
-
if(c.__ctx) c.__ctx.clearRect(0,0,c.__w || 0,c.__h || 0);
|
|
2928
|
-
});
|
|
2929
|
-
}
|
|
2930
|
-
addEventListener('swiss-low-power-change', e=>{e.detail.on ? stop() : start();});
|
|
2931
|
-
start();
|
|
2932
|
-
})();
|
|
2933
|
-
</script>
|
|
2934
3546
|
</body>
|
|
2935
3547
|
</html>
|