@bytechain.cn/colamd-themes 0.6.1 → 0.6.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.
@@ -1,796 +1,1464 @@
1
- /*
2
- * ColaMD Theme: Editorial Forest(林间编辑部 · 手工精修版)
3
- * Serif-led editorial system: deep forest green + dusty rose pink on oat-cream paper,
4
- * Source Serif 4 weight 500 with optical-size axis, JetBrains Mono editorial chrome.
5
- * 来源:D:\workspace\git\beautiful-html-templates\templates\editorial-forest\
6
- * template.html + design.md + template.json(8 页 1920×1080)
7
- * colors: green #2e4a2a / green-deep #243a21 / green-lite #3a5a36
8
- * pink #e89cb1 / pink-deep #d27e96 / cream #efe7d4 / cream-2 #e6dcc4 / ink #1a1a17
9
- * fonts: Source Serif 4(display 500 / body 400,opsz 轴)/ JetBrains Mono 500 大写
10
- * paradigm 备案(编辑部身份,与 biennale-yellow 同类,有意保留):
11
- * SL-01/SL-02 —— 暖奶油纸系刻意带暖调(surface s45.8% / panel s40.5% /
12
- * panel-alt s32.7%),模板身份即"oat-cream paper"暖纸;
13
- * CR-04 —— pink #e89cb1 对 cream 对比 1.8:1,但 pink 只做底色/色块/KPI 大数字
14
- * (≥3:1 大字),从不做小文字色;链接走加深玫瑰 #9d4a63 保 4.7:1;
15
- * NT-03 —— 边框/分隔线取模板 2px green 线体系(绿调刻意),td 细线为 green 35%;
16
- * 标题色 —— cream 页标题一律 green(模板 headline-on-cream 身份),正文 ink。
17
- * 版式复刻见 SECTION 1.5/1.6(八页逐页对照与换算式均在其注释中)。
18
- *
19
- * 契约:ColaMD 2.7.13(:root 活变量;CM6 每行一 div;引用/代码块禁纵向 padding;
20
- * SECTION 1.5 为幻灯片 --slide-* 令牌,SECTION 1.6 全部 SLIDE-02 作用域)
21
- *
22
- * 两条硬规矩:
23
- * 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
24
- * 编辑器继承不到。
25
- * 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
26
- * 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
27
- * 并且引用/代码块**不能加纵向 padding**——那会按行累加。
28
- *
29
- * ═══════════════════════════════════════════════════════════
30
- * SECTION 1 — Design Tokens
31
- * 改 11 个种子色 + 3 组字体即可换一套主题
32
- * ═══════════════════════════════════════════════════════════ */
33
-
34
- :root {
35
-
36
- /* ── 1.1 Seed Palette ──
37
- 本工具的再生成与校验读这一层;编辑器不消费。
38
- 明度排序(SL-04 亮色范式):surface > panel > panel-alt 递减;
39
- muted/dim 同轴暖灰(ink #1a1a17 的色相,NT-01)。
40
- green 系不占 seed 位(正文 ink 优先):green #2e4a2a 以 --seed-border-strong
41
- 承担「分隔线/标题」身份,green-deep #243a21 / green-lite #3a5a36 以字面值
42
- 出现在 SECTION 1.6(pink 页文字 / 备用填充)。 */
43
- --seed-accent: #e89cb1; /* pink —— 底色/色块/KPI 大数字,不做小文字(CR-04 备案) */
44
- --seed-accent-light: #f0b6c6;
45
- --seed-accent-dark: #d27e96; /* pink-deep */
46
- --seed-surface: #efe7d4; /* cream —— 燕麦纸 */
47
- --seed-panel: #e6dcc4; /* cream-2 —— 卡片/表头托 */
48
- --seed-panel-alt: #dcd2ba; /* 再深一档奶油(代码块底) */
49
- --seed-ink: #1a1a17; /* ink —— 暖近黑正文 */
50
- --seed-ink-muted: #55554e; /* 次要文字(对 cream ≥6:1) */
51
- --seed-ink-dim: #6a6a60; /* 辅助文字(对 cream ≥4.5:1) */
52
- --seed-border: #a5ab99; /* cream 上可见的绿灰发丝线(NT-02) */
53
- --seed-border-strong: #2e4a2a; /* green —— 模板 2px 分隔线 + cream 页标题身份 */
54
-
55
- /* ── 1.2 Semantic Colors(活变量)── */
56
- --bg-color: var(--seed-surface);
57
- --text-color: var(--seed-ink);
58
- --text-secondary: var(--seed-ink-muted);
59
- --text-muted: var(--seed-ink-dim);
60
- --border-color: var(--seed-border);
61
- /* pink-deep 在 cream 上仍只有 2.1:1 → 加深至 #9d4a63(4.7:1,CR-04);
62
- 模板粉身份由 --seed-accent 的底/块/大数字承担 */
63
- --link-color: #9d4a63;
64
-
65
- --code-bg: var(--seed-panel);
66
- --code-block-bg: var(--seed-panel-alt);
67
- --code-block-text: #1a1a17;
68
-
69
- --blockquote-border: var(--seed-border-strong); /* 模板:2px green 线体系 */
70
- --blockquote-bg: var(--seed-panel);
71
- --table-header-bg: var(--seed-panel); /* cream-2 表头 */
72
-
73
- --selection-bg: rgba(232, 156, 177, 0.30);
74
- --highlight-bg: rgba(232, 156, 177, 0.45); /* 粉荧光笔 */
75
-
76
- /* ── 1.3 Typography & Metrics(活变量)──
77
- CJK 配对(design.md Strategy C):display 走 LXGW WenKai、正文走 Noto Serif SC */
78
- --font-body: "Source Serif 4", "Source Serif Pro", "Noto Serif SC", Georgia, serif;
79
- --font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
80
- --editor-font-size: 18px;
81
- --editor-column-width: 820px;
82
-
83
- /* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
84
- 图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导;
85
- accent = pink(模板 bar-chart 粉条身份)。 */
86
- --pele-bg: var(--code-block-bg);
87
- --pele-fg: var(--code-block-text);
88
- --pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
89
- --pele-line: var(--code-block-text);
90
- --pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
91
- --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
92
- --pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
93
- --pele-accent: var(--seed-accent);
94
- --pele-radius: 6px; /* 模板 topic-tile 圆角 */
95
- }
96
-
97
- /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 editorial-forest 八页逐页复刻)──
98
- 换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
99
- 模板 1920 画布 px ÷ 26 = em(clamp 字号取 1920×1080 实际落点)。字体体系:
100
- Source Serif 4 500(display,tracking -0.02em,lh 0.92-1.02)/
101
- JetBrains Mono 500 大写 0.14-0.18em(chrome/label 身份)。页面对照:
102
- cover←P01(green底) agenda←P02 quote←P03(pink底 statement)
103
- two-col←P04 figure←P05(green底 chart) steps←P06 kpi←P07(green底 stats)
104
- closing←P08(green底 summary)
105
- (section/timeline/matrix 无对应页,保持上游默认;P4 页题 96px 与全局档同、
106
- P5 84px / P7 80px 版式内覆写)
107
- 未复刻(行式 DOM 无挂点,绝对定位/grid 布局装饰):
108
- P01 圆形 monogram + footline 双列;P02 五卡填充轮换(green/pink/green-lite/
109
- cream 四色按格轮换,行式无 nth 稳定挂点 → 统一 t-cream 款);P03 attrib
110
- 双列;P04 左绿图卡 + meta-dl 三列;P05 柱状图/legend/网格线(以 Pele 图卡
111
- 近似);P06 marker 行 + 三种填充轮换(统一默认 cream 款);P07 kpi-row
112
- 2px pink 顶线(近似为列上边线)+ 110px unit 后缀。圆角 6/8px 随卡片复刻。 */
113
- :root {
114
- --slide-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
115
- --slide-title-font: "Source Serif 4", "Source Serif Pro", "LXGW WenKai TC", "Noto Serif SC", Georgia, serif;
116
- --slide-title-size: 3.69em; /* 内容页题 96px ÷26(P2/P4/P6 同档) */
117
- --slide-title-weight: 500; /* SS4 display 声部 = 500(非 700) */
118
- --slide-subhead-weight: 500;
119
- --slide-title-tracking: -0.02em;
120
- --slide-title-line-height: 0.96;
121
- --slide-cover-title-size: 8.46em; /* P1 h1 220px ÷26 */
122
- --slide-cover-title-line-height: 0.92;
123
- --slide-cover-title-tracking: -0.02em;
124
- --slide-section-title-size: 3.69em; /* 无对应页,与内容页题同档 */
125
- --slide-closing-title-size: 8.46em; /* P8 h2 220px ÷26 */
126
- --slide-lead-size: 1.15em; /* 模板 body 30px ÷26 */
127
- --slide-kicker-size: clamp(13px, 1.35vw, 26px); /* label 26px @1920 */
128
- --slide-kicker-tracking: 0.18em; /* 模板 label .18em */
129
- --slide-kicker-transform: uppercase;
130
- --slide-chrome-opacity: 0.9; /* chrome 全色 accent,不靠透明度 */
131
- --slide-chrome-transform: uppercase;
132
- --slide-kpi-number-size: 7.33em; /* P7 big 220 ÷26 ÷1.15(li 缩放) */
133
- --slide-quote-size: 5.38em; /* P3 blockquote 140px ÷26 */
134
- --slide-page-pad-x: 6.25vw; /* 模板页边距 120px @1920 */
135
- --slide-page-top-pad: 70px; /* 正文顶 96px − chrome 安全区 */
136
- --slide-page-top-pad-print: 60px;
137
- --slide-cover-text-align: left; /* P1 标题左对齐(顶部区) */
138
- --slide-cover-lead-inline: auto;
139
- }
140
-
141
- /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
142
- body.presenting / body.slides-printing 作用域) ═══════════════ */
143
-
144
- /* 1.6.1 页标题声部对齐:SS4 500 green(cream 页 headline 身份);并压掉文档式
145
- h1/h2 的 border-bottom(编辑器规则带 id 权重会漏进放映) */
146
- body.presenting #editor .cm-content .cm-md-page-title,
147
- body.slides-printing #editor .cm-content .cm-md-page-title {
148
- font-family: var(--slide-title-font);
149
- font-size: var(--slide-title-size);
150
- font-weight: 500;
151
- line-height: 0.96;
152
- letter-spacing: -0.02em;
153
- color: var(--seed-border-strong);
154
- border-bottom: none;
155
- padding-bottom: 0;
156
- margin-bottom: 0.45em;
157
- }
158
- /* kicker(label 眉标)色 = region accent:cream 页 green */
159
- body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
160
- body.slides-printing .cm-md-page-title[data-slide-kicker]::before {
161
- color: var(--seed-border-strong);
162
- opacity: 1;
163
- }
164
-
165
- /* 1.6.2 换底页公共层叠链:green 底 ×4(P1/P5/P7/P8)+ pink 底 ×1(P3)。
166
- 底色必须打满整条层叠链——body / #editor / .cm-editor / .cm-scroller /
167
- .cm-content 五层(漏层会被原 cream 底反盖);打印域 body.slides-printing:has(...) */
168
- body.presenting:has(#editor[data-slide-layout='cover']),
169
- body.presenting:has(#editor[data-slide-layout='figure']),
170
- body.presenting:has(#editor[data-slide-layout='kpi']),
171
- body.presenting:has(#editor[data-slide-layout='closing']),
172
- body.slides-printing:has(.cm-md-slide-cover),
173
- body.slides-printing:has(.cm-md-slide-figure),
174
- body.slides-printing:has(.cm-md-slide-kpi),
175
- body.slides-printing:has(.cm-md-slide-closing) {
176
- background: #2e4a2a;
177
- }
178
- body.presenting:has(#editor[data-slide-layout='quote']),
179
- body.slides-printing:has(.cm-md-slide-quote) {
180
- background: #e89cb1;
181
- }
182
- body.presenting #editor[data-slide-layout='cover'],
183
- body.presenting #editor[data-slide-layout='figure'],
184
- body.presenting #editor[data-slide-layout='kpi'],
185
- body.presenting #editor[data-slide-layout='closing'],
186
- body.presenting #editor[data-slide-layout='cover'] .cm-editor,
187
- body.presenting #editor[data-slide-layout='figure'] .cm-editor,
188
- body.presenting #editor[data-slide-layout='kpi'] .cm-editor,
189
- body.presenting #editor[data-slide-layout='closing'] .cm-editor,
190
- body.presenting #editor[data-slide-layout='cover'] .cm-scroller,
191
- body.presenting #editor[data-slide-layout='figure'] .cm-scroller,
192
- body.presenting #editor[data-slide-layout='kpi'] .cm-scroller,
193
- body.presenting #editor[data-slide-layout='closing'] .cm-scroller,
194
- body.presenting #editor[data-slide-layout='cover'] .cm-content,
195
- body.presenting #editor[data-slide-layout='figure'] .cm-content,
196
- body.presenting #editor[data-slide-layout='kpi'] .cm-content,
197
- body.presenting #editor[data-slide-layout='closing'] .cm-content,
198
- body.slides-printing:has(.cm-md-slide-cover) #editor,
199
- body.slides-printing:has(.cm-md-slide-figure) #editor,
200
- body.slides-printing:has(.cm-md-slide-kpi) #editor,
201
- body.slides-printing:has(.cm-md-slide-closing) #editor,
202
- body.slides-printing:has(.cm-md-slide-cover) .cm-editor,
203
- body.slides-printing:has(.cm-md-slide-figure) .cm-editor,
204
- body.slides-printing:has(.cm-md-slide-kpi) .cm-editor,
205
- body.slides-printing:has(.cm-md-slide-closing) .cm-editor,
206
- body.slides-printing:has(.cm-md-slide-cover) .cm-scroller,
207
- body.slides-printing:has(.cm-md-slide-figure) .cm-scroller,
208
- body.slides-printing:has(.cm-md-slide-kpi) .cm-scroller,
209
- body.slides-printing:has(.cm-md-slide-closing) .cm-scroller,
210
- body.slides-printing:has(.cm-md-slide-cover) .cm-content,
211
- body.slides-printing:has(.cm-md-slide-figure) .cm-content,
212
- body.slides-printing:has(.cm-md-slide-kpi) .cm-content,
213
- body.slides-printing:has(.cm-md-slide-closing) .cm-content {
214
- background: #2e4a2a;
215
- }
216
- body.presenting #editor[data-slide-layout='quote'],
217
- body.presenting #editor[data-slide-layout='quote'] .cm-editor,
218
- body.presenting #editor[data-slide-layout='quote'] .cm-scroller,
219
- body.presenting #editor[data-slide-layout='quote'] .cm-content,
220
- body.slides-printing:has(.cm-md-slide-quote) #editor,
221
- body.slides-printing:has(.cm-md-slide-quote) .cm-editor,
222
- body.slides-printing:has(.cm-md-slide-quote) .cm-scroller,
223
- body.slides-printing:has(.cm-md-slide-quote) .cm-content {
224
- background: #e89cb1;
225
- }
226
- /* 换底页正文色:green 页 cream(=var(--bg-color)),cover pink,quote green-deep */
227
- body.presenting #editor[data-slide-layout='figure'] .cm-content,
228
- body.presenting #editor[data-slide-layout='kpi'] .cm-content,
229
- body.presenting #editor[data-slide-layout='closing'] .cm-content,
230
- body.slides-printing .cm-md-slide-figure .cm-md-page-title ~ *,
231
- body.slides-printing .cm-md-slide-kpi .cm-md-page-title ~ *,
232
- body.slides-printing .cm-md-slide-closing .cm-md-page-title ~ * {
233
- color: var(--bg-color);
234
- }
235
- body.presenting #editor[data-slide-layout='cover'] .cm-content,
236
- body.slides-printing .cm-md-slide-cover .cm-md-page-title ~ * {
237
- color: var(--seed-accent);
238
- }
239
- body.presenting #editor[data-slide-layout='quote'] .cm-content,
240
- body.slides-printing .cm-md-slide-quote .cm-md-page-title ~ * {
241
- color: #243a21;
242
- }
243
- /* 换底页 ghost 页码(=ink)与底同族隐形 → 隐藏(与上游 section/closing 一致) */
244
- body.presenting:has(#editor[data-slide-layout='cover']) .slide-ghost,
245
- body.presenting:has(#editor[data-slide-layout='figure']) .slide-ghost,
246
- body.presenting:has(#editor[data-slide-layout='kpi']) .slide-ghost,
247
- body.presenting:has(#editor[data-slide-layout='closing']) .slide-ghost,
248
- body.presenting:has(#editor[data-slide-layout='quote']) .slide-ghost,
249
- body.slides-printing:has(.cm-md-slide-cover) .slide-ghost,
250
- body.slides-printing:has(.cm-md-slide-figure) .slide-ghost,
251
- body.slides-printing:has(.cm-md-slide-kpi) .slide-ghost,
252
- body.slides-printing:has(.cm-md-slide-closing) .slide-ghost,
253
- body.slides-printing:has(.cm-md-slide-quote) .slide-ghost {
254
- opacity: 0;
255
- }
256
- /* 换底页表格 td 换页面文字色(green 页=cream 纸面色;pink 页=green-deep),
257
- th 自带 cream-2 底不受影响 */
258
- body.presenting #editor[data-slide-layout='figure'] .cm-md-table-widget td,
259
- body.presenting #editor[data-slide-layout='kpi'] .cm-md-table-widget td,
260
- body.presenting #editor[data-slide-layout='closing'] .cm-md-table-widget td,
261
- body.slides-printing:has(.cm-md-slide-figure) .cm-md-table-widget td,
262
- body.slides-printing:has(.cm-md-slide-kpi) .cm-md-table-widget td,
263
- body.slides-printing:has(.cm-md-slide-closing) .cm-md-table-widget td {
264
- color: var(--bg-color);
265
- }
266
- body.presenting #editor[data-slide-layout='quote'] .cm-md-table-widget td,
267
- body.slides-printing:has(.cm-md-slide-quote) .cm-md-table-widget td {
268
- color: #243a21;
269
- }
270
- /* 换底页 chrome/foot 色:green 页 pink(模板 footline 身份),pink 页 green-deep */
271
- body.presenting [data-slide-layout='cover'] .slide-chrome,
272
- body.presenting [data-slide-layout='figure'] .slide-chrome,
273
- body.presenting [data-slide-layout='kpi'] .slide-chrome,
274
- body.presenting [data-slide-layout='closing'] .slide-chrome,
275
- body.presenting [data-slide-layout='cover'] .slide-foot,
276
- body.presenting [data-slide-layout='figure'] .slide-foot,
277
- body.presenting [data-slide-layout='kpi'] .slide-foot,
278
- body.presenting [data-slide-layout='closing'] .slide-foot,
279
- body.slides-printing [data-slide-layout='cover'] .slide-chrome,
280
- body.slides-printing [data-slide-layout='figure'] .slide-chrome,
281
- body.slides-printing [data-slide-layout='kpi'] .slide-chrome,
282
- body.slides-printing [data-slide-layout='closing'] .slide-chrome,
283
- body.slides-printing [data-slide-layout='cover'] .slide-foot,
284
- body.slides-printing [data-slide-layout='figure'] .slide-foot,
285
- body.slides-printing [data-slide-layout='kpi'] .slide-foot,
286
- body.slides-printing [data-slide-layout='closing'] .slide-foot {
287
- color: var(--seed-accent);
288
- }
289
- body.presenting [data-slide-layout='quote'] .slide-chrome,
290
- body.presenting [data-slide-layout='quote'] .slide-foot,
291
- body.slides-printing [data-slide-layout='quote'] .slide-chrome,
292
- body.slides-printing [data-slide-layout='quote'] .slide-foot {
293
- color: #243a21;
294
- }
295
- /* 换底页 kicker 色覆写 */
296
- body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
297
- body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
298
- body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
299
- body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
300
- body.slides-printing .cm-md-slide-cover .cm-md-page-title[data-slide-kicker]::before,
301
- body.slides-printing .cm-md-slide-figure .cm-md-page-title[data-slide-kicker]::before,
302
- body.slides-printing .cm-md-slide-kpi .cm-md-page-title[data-slide-kicker]::before,
303
- body.slides-printing .cm-md-slide-closing .cm-md-page-title[data-slide-kicker]::before {
304
- color: var(--seed-accent);
305
- }
306
- body.presenting #editor[data-slide-layout='quote'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
307
- body.slides-printing .cm-md-slide-quote .cm-md-page-title[data-slide-kicker]::before {
308
- color: #243a21;
309
- }
310
-
311
- /* 1.6.3 cover · P1:green 底 pink 字;h1 220px 顶部左对齐(topbar 之下);
312
- 页边距 140px → 7.3vw;巨标题三行硬换行以 max-width 10ch 近似 */
313
- body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
314
- body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-title {
315
- font-size: var(--slide-cover-title-size);
316
- line-height: 0.92;
317
- letter-spacing: -0.02em;
318
- color: var(--seed-accent);
319
- max-width: 10ch;
320
- }
321
- body.presenting #editor[data-slide-layout='cover'] .cm-content {
322
- padding-left: 7.3vw;
323
- padding-right: 7.3vw;
324
- }
325
-
326
- /* 1.6.4 agenda · P2:页题 96px green(全局档);行式条目卡化 = t-cream 款
327
- (cream-2 底 + 2px green 边 + 6px 圆角);li 基准 = topic p 26px ÷26 = 1em;
328
- num mono 26px = 1em、行题 h3 56px ÷26 = 2.15em;三列 544px+24px gap @1680 */
329
- body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
330
- body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
331
- display: inline-block;
332
- width: 32.35%;
333
- margin: 0 1.43% 0.9em 0;
334
- vertical-align: top;
335
- background: var(--seed-panel);
336
- border: 2px solid var(--seed-border-strong);
337
- border-radius: 6px;
338
- box-shadow: none;
339
- padding: 1.54em 1.54em 1.38em; /* 40px/40px/36px ÷26 */
340
- list-style: none;
341
- }
342
- body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
343
- body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
344
- font-family: var(--slide-mono);
345
- font-weight: 500;
346
- font-size: 1em; /* .num 26px ÷26 ÷1 */
347
- letter-spacing: 0.14em;
348
- text-transform: uppercase;
349
- color: var(--seed-border-strong);
350
- }
351
- body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-strong,
352
- body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-strong {
353
- font-family: var(--slide-title-font);
354
- font-size: 2.15em; /* h3 56px ÷26 ÷1 */
355
- font-weight: 500;
356
- line-height: 0.98;
357
- letter-spacing: -0.01em;
358
- color: var(--seed-border-strong);
359
- }
360
-
361
- /* 1.6.5 quote · P3(pink 底 statement):金句 140px green-deep lh 1.02;
362
- 署名行 = .name serif 44px 600 非大写;attrib 双列布局无挂点(未复刻);
363
- 页边距 160px → 8.3vw、顶 130px − chrome */
364
- body.presenting #editor[data-slide-layout='quote'] .cm-content .cm-md-page-title,
365
- body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-page-title {
366
- font-size: var(--slide-quote-size);
367
- line-height: 1.02;
368
- color: #243a21;
369
- max-width: none;
370
- }
371
- body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
372
- body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
373
- font-size: 5.38em; /* blockquote 140px ÷26 */
374
- font-weight: 500;
375
- line-height: 1.02;
376
- letter-spacing: -0.02em;
377
- color: #243a21;
378
- background: transparent;
379
- border-left: none;
380
- padding-left: 0;
381
- padding-right: 0;
382
- max-width: 11.1em; /* 1560px ÷140 */
383
- }
384
- body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
385
- body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
386
- margin-top: 1.36em; /* .attrib 60px ÷44(CSS-03:留白只走 margin) */
387
- font-family: var(--slide-title-font);
388
- font-size: 1.69em; /* .name 44px ÷26 */
389
- font-weight: 600;
390
- letter-spacing: 0;
391
- text-transform: none;
392
- color: #243a21;
393
- }
394
- body.presenting #editor[data-slide-layout='quote'] .cm-content {
395
- padding-left: 8.3vw;
396
- padding-right: 8.3vw;
397
- padding-top: 90px;
398
- }
399
-
400
- /* 1.6.6 two-col · P4(cream 底左图右文):页题 96px green(全局档);
401
- 正文 30px ÷26 = 1.15em;左绿图卡/meta-dl 三列为 grid 布局无挂点(未复刻),
402
- 双栏 pane 切分以文流近似 */
403
- body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-lead,
404
- body.slides-printing .cm-md-slide-two-col.cm-md-page-lead {
405
- font-size: 1.15em;
406
- line-height: 1.38;
407
- color: var(--text-color);
408
- }
409
-
410
- /* 1.6.7 figure · P5(green 底 chart):页题 84px ÷26 = 3.23em cream;
411
- kicker pink(1.6.2 已覆写);Pele 图卡 = cream 底 + 2px green 边 + 6px 圆角
412
- (模板 col-img 图卡语言;图表本体以 Pele 近似,柱形/legend/grid-lines 未复刻) */
413
- body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title,
414
- body.slides-printing #editor .cm-content .cm-md-slide-figure.cm-md-page-title {
415
- font-size: 3.23em;
416
- line-height: 1.0;
417
- color: var(--bg-color);
418
- }
419
- body.presenting #editor .cm-content svg.pele,
420
- body.slides-printing #editor .cm-content svg.pele {
421
- background: var(--seed-surface);
422
- border: 2px solid var(--seed-border-strong);
423
- border-radius: 6px;
424
- }
425
-
426
- /* 1.6.8 steps · P6(cream 底 framework):页题 96px(全局档);四列步进卡 =
427
- 默认款(cream 底 + 2.5px green 边 + 8px 圆角);li 基准 = step p 26px ÷26 = 1em;
428
- num mono 26px = 1em、步骤名 68px ÷26 = 2.62em;四列 399px+28px gap @1680;
429
- marker 行/填充轮换未复刻 */
430
- body.presenting #editor[data-slide-layout='steps'] .cm-content .cm-md-page-title,
431
- body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-page-title {
432
- font-size: var(--slide-title-size);
433
- }
434
- body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
435
- body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
436
- display: inline-block;
437
- width: 23.7%;
438
- margin: 0 1.67% 1em 0;
439
- vertical-align: top;
440
- background: var(--seed-surface);
441
- border: 2.5px solid var(--seed-border-strong);
442
- border-radius: 8px;
443
- box-shadow: none;
444
- padding: 1.54em 1.23em 1.23em; /* 40px/32px/32px ÷26 */
445
- min-height: 18em; /* .step min-height 470px ÷26 */
446
- list-style: none;
447
- }
448
- body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
449
- body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
450
- font-family: var(--slide-mono);
451
- font-weight: 500;
452
- font-size: 1em; /* .num 26px ÷26 ÷1 */
453
- letter-spacing: 0.16em;
454
- text-transform: uppercase;
455
- color: var(--seed-border-strong);
456
- }
457
- body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
458
- body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
459
- font-family: var(--slide-title-font);
460
- font-size: 2.62em; /* h3 68px ÷26 ÷1 */
461
- font-weight: 500;
462
- line-height: 0.96;
463
- letter-spacing: -0.01em;
464
- color: var(--seed-border-strong);
465
- }
466
-
467
- /* 1.6.9 kpi · P7(green 底 stats):页题 80px ÷26 = 3.08em cream;裸排无卡
468
- (模板 kpi 即裸数字),kpi-row 2px pink 顶线近似为列上边线;li 基准 =
469
- desc 30px ÷26 = 1.15em;tag mono 24px = 24÷26÷1.15 = 0.80em pink;
470
- 大数字 220px = 220÷26÷1.15 = 7.33em pink(unit 110px 后缀未复刻) */
471
- body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title,
472
- body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-page-title {
473
- font-size: 3.08em;
474
- line-height: 0.98;
475
- color: var(--bg-color);
476
- }
477
- body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
478
- body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
479
- display: inline-block;
480
- width: 30.95%;
481
- margin: 0 3.57% 1em 0; /* 三列 + 60px gap @1680 */
482
- vertical-align: top;
483
- background: transparent;
484
- border: none;
485
- border-top: 2px solid var(--seed-accent); /* .kpi-row 顶线近似 */
486
- border-radius: 0;
487
- box-shadow: none;
488
- padding: 1.87em 0 0; /* 56px ÷30 */
489
- font-size: 1.15em; /* .desc 30px ÷26 */
490
- }
491
- body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-listmark,
492
- body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-listmark {
493
- font-family: var(--slide-mono);
494
- font-weight: 500;
495
- font-size: 0.8em; /* .tag 24px ÷26 ÷1.15 */
496
- letter-spacing: 0.16em;
497
- text-transform: uppercase;
498
- color: var(--seed-accent);
499
- }
500
- body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
501
- body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
502
- font-size: var(--slide-kpi-number-size);
503
- font-weight: 500;
504
- line-height: 0.92;
505
- letter-spacing: -0.03em;
506
- color: var(--seed-accent);
507
- }
508
-
509
- /* 1.6.10 closing · P8(green 底 summary):标题 220px pink lh 0.94 顶部左对齐;
510
- 三列清单 = grid-cols(2px pink 顶线 + h4 mono 26px pink 大写 + p 32px cream);
511
- li 基准 = p 32px ÷26 = 1.23em;h4 = 26÷26÷1.23 = 0.81em;三列 520px+60px gap */
512
- body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-title,
513
- body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-page-title {
514
- font-size: var(--slide-closing-title-size);
515
- line-height: 0.94;
516
- letter-spacing: -0.02em;
517
- color: var(--seed-accent);
518
- max-width: 12ch;
519
- }
520
- body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
521
- body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
522
- display: inline-block;
523
- width: 30.95%;
524
- margin: 1.9em 3.57% 0 0;
525
- vertical-align: top;
526
- background: transparent;
527
- border: none;
528
- border-top: 2px solid var(--seed-accent); /* .grid-cols 顶线 */
529
- border-radius: 0;
530
- box-shadow: none;
531
- padding: 1.13em 0 0; /* 36px ÷32 */
532
- font-size: 1.23em; /* p 32px ÷26 */
533
- line-height: 1.32;
534
- list-style: none;
535
- }
536
- body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-listmark,
537
- body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-listmark {
538
- display: none; /* grid-cols 无序号(h4 One/Two/Three 由行题承担) */
539
- }
540
- body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-strong,
541
- body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-strong {
542
- font-family: var(--slide-mono);
543
- font-size: 0.81em; /* h4 26px ÷26 ÷1.23 */
544
- font-weight: 500;
545
- letter-spacing: 0.16em;
546
- text-transform: uppercase;
547
- color: var(--seed-accent);
548
- }
549
-
550
- /* 1.6.11 chrome · topbar/footline:JetBrains Mono 500 大写;label 26px .18em /
551
- footline 28px .12em;cream 页色 green(模板 label-on-cream 身份) */
552
- body.presenting .slide-chrome,
553
- body.slides-printing .slide-chrome {
554
- font-family: var(--slide-mono);
555
- font-size: clamp(13px, 1.35vw, 26px); /* label 26px @1920 */
556
- font-weight: 500;
557
- letter-spacing: 0.18em;
558
- text-transform: uppercase;
559
- color: var(--seed-border-strong);
560
- }
561
- body.presenting .slide-foot,
562
- body.slides-printing .slide-foot {
563
- font-family: var(--slide-mono);
564
- font-size: clamp(14px, 1.46vw, 28px); /* footline 28px @1920 */
565
- font-weight: 500;
566
- letter-spacing: 0.12em;
567
- text-transform: uppercase;
568
- opacity: 0.9;
569
- color: var(--seed-border-strong);
570
- }
571
-
572
- /* ═══════════════════════════════════════════════════════════
573
- SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
574
- ═══════════════════════════════════════════════════════════ */
575
-
576
- #editor .cm-content {
577
- font-family: var(--font-body);
578
- line-height: 1.6; /* CJK 建议 1.5-1.6 */
579
- }
580
-
581
- /* ── 2.1 Headings(SS4 500 + LXGW 文楷 display 声部;cream 页标题身份 = green)── */
582
- #editor .cm-content .cm-md-atxheading1,
583
- #editor .cm-content .cm-md-atxheading2,
584
- #editor .cm-content .cm-md-atxheading3,
585
- #editor .cm-content .cm-md-atxheading4,
586
- #editor .cm-content .cm-md-atxheading5,
587
- #editor .cm-content .cm-md-atxheading6 {
588
- font-family: "Source Serif 4", "Source Serif Pro", "LXGW WenKai TC", "Noto Serif SC", Georgia, serif;
589
- color: var(--seed-border-strong);
590
- font-weight: 500; /* 模板 display 全 500(非 700),body 400 */
591
- line-height: 1.1;
592
- letter-spacing: -0.02em;
593
- }
594
-
595
- #editor .cm-content .cm-md-atxheading1 {
596
- font-size: 2.9em;
597
- line-height: 1.05;
598
- }
599
- #editor .cm-content .cm-md-atxheading2 {
600
- font-size: 2.15em;
601
- line-height: 1.0;
602
- }
603
- #editor .cm-content .cm-md-atxheading3 { font-size: 1.65em; }
604
- #editor .cm-content .cm-md-atxheading4 { font-size: 1.3em; }
605
- #editor .cm-content .cm-md-atxheading5 { font-size: 1.12em; }
606
- #editor .cm-content .cm-md-atxheading6 {
607
- font-size: 1em;
608
- font-family: var(--font-mono);
609
- font-weight: 500;
610
- letter-spacing: 0.18em; /* 模板 label 眉标声部 */
611
- text-transform: uppercase;
612
- }
613
-
614
- /* ── 2.2 Inline ──
615
- strong 用正文色(模板强调走字号/色块,不用 accent 文字色,CR-04) */
616
- #editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 600; }
617
- #editor .cm-content .cm-md-em { font-style: italic; }
618
- #editor .cm-content .cm-md-strike { text-decoration: line-through; }
619
- #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
620
- #editor .cm-content .cm-md-link { color: var(--link-color); }
621
- #editor .cm-content .cm-md-url { color: var(--text-muted); }
622
-
623
- #editor .cm-content .cm-md-inlinecode {
624
- font-family: var(--font-mono);
625
- background: var(--code-bg);
626
- color: var(--text-color);
627
- border-radius: 3px; /* 最小圆角档(legend swatch 2px 系) */
628
- }
629
-
630
- #editor .cm-content .cm-md-marker,
631
- #editor .cm-content .cm-md-quotemark,
632
- #editor .cm-content .cm-md-listmark {
633
- color: var(--text-muted);
634
- }
635
-
636
- /* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
637
- 引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
638
- 否则引用里的代码行会盖住代码块底色。 */
639
- #editor .cm-content .cm-md-blockquote {
640
- color: var(--text-secondary);
641
- border-left: 2px solid var(--blockquote-border); /* 模板 2px 线体系 */
642
- padding-left: 16px;
643
- padding-right: 16px;
644
- }
645
-
646
- #editor .cm-content .cm-md-codeblock {
647
- background: var(--code-block-bg);
648
- color: var(--code-block-text);
649
- padding-left: 16px;
650
- padding-right: 16px;
651
- }
652
- #editor .cm-content .cm-md-codeblock-first {
653
- border-top-left-radius: 6px;
654
- border-top-right-radius: 6px;
655
- }
656
- #editor .cm-content .cm-md-codeblock-last {
657
- border-bottom-left-radius: 6px;
658
- border-bottom-right-radius: 6px;
659
- }
660
-
661
- /* ── 2.4 Table / Rule(模板:2px green 分隔线体系,th = mono label 声部)── */
662
- #editor .cm-content .cm-md-table-widget th,
663
- #editor .cm-content .cm-md-table-widget td {
664
- padding: 10px 14px;
665
- border-color: rgba(46, 74, 42, 0.35); /* green 35% 细线(NT-03 备案) */
666
- }
667
- #editor .cm-content .cm-md-table-widget th {
668
- background: var(--table-header-bg);
669
- color: var(--seed-border-strong);
670
- font-family: var(--font-mono);
671
- font-size: 0.78em;
672
- font-weight: 500;
673
- letter-spacing: 0.14em;
674
- text-transform: uppercase;
675
- border-bottom: 2px solid var(--seed-border-strong);
676
- }
677
- #editor .cm-content .cm-md-hr { border-top: 2px solid var(--seed-border-strong); }
678
-
679
- /* ── 2.5 中文首行缩进 ──
680
- CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
681
- #editor .cm-content .cm-line { text-indent: 2em; }
682
-
683
- #editor .cm-content .cm-md-atxheading1,
684
- #editor .cm-content .cm-md-atxheading2,
685
- #editor .cm-content .cm-md-atxheading3,
686
- #editor .cm-content .cm-md-atxheading4,
687
- #editor .cm-content .cm-md-atxheading5,
688
- #editor .cm-content .cm-md-atxheading6,
689
- #editor .cm-content .cm-md-blockquote,
690
- #editor .cm-content .cm-md-codeblock,
691
- #editor .cm-content .cm-md-hr,
692
- #editor .cm-content .cm-md-mermaid,
693
- #editor .cm-content .cm-md-li-0,
694
- #editor .cm-content .cm-md-li-1,
695
- #editor .cm-content .cm-md-li-2,
696
- #editor .cm-content .cm-md-li-3,
697
- #editor .cm-content .cm-md-li-4,
698
- #editor .cm-content .cm-md-li-5,
699
- #editor .cm-content .cm-md-li-6 {
700
- text-indent: 0;
701
- }
702
-
703
- /* ═══════════════════════════════════════════════════════════
704
- SECTION 3 — Exported HTML(.colamd-document,语义标签)
705
- HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
706
- ═══════════════════════════════════════════════════════════ */
707
-
708
- .colamd-document {
709
- font-family: var(--font-body);
710
- font-size: 18px;
711
- line-height: 1.6;
712
- }
713
-
714
- .colamd-document h1,
715
- .colamd-document h2,
716
- .colamd-document h3,
717
- .colamd-document h4,
718
- .colamd-document h5,
719
- .colamd-document h6 {
720
- font-family: "Source Serif 4", "Source Serif Pro", "LXGW WenKai TC", "Noto Serif SC", Georgia, serif;
721
- color: var(--seed-border-strong);
722
- font-weight: 500;
723
- line-height: 1.1;
724
- letter-spacing: -0.02em;
725
- margin: 1.5em 0 0.5em;
726
- }
727
- .colamd-document h1 { font-size: 2.9em; line-height: 1.05; margin-top: 0.4em; }
728
- .colamd-document h2 { font-size: 2.15em; line-height: 1.0; }
729
- .colamd-document h3 { font-size: 1.65em; }
730
- .colamd-document h4 { font-size: 1.3em; }
731
- .colamd-document h5 { font-size: 1.12em; }
732
- .colamd-document h6 {
733
- font-size: 1em;
734
- font-family: var(--font-mono);
735
- font-weight: 500;
736
- letter-spacing: 0.18em;
737
- text-transform: uppercase;
738
- }
739
-
740
- .colamd-document strong { color: var(--text-color); font-weight: 600; }
741
- .colamd-document code {
742
- background: var(--code-bg);
743
- color: var(--text-color);
744
- font-family: var(--font-mono);
745
- border-radius: 3px;
746
- }
747
- /* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
748
- .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
749
- .colamd-document pre { background: var(--code-block-bg); }
750
- .colamd-document pre code { color: var(--code-block-text); }
751
- .colamd-document blockquote {
752
- background: var(--blockquote-bg);
753
- color: var(--text-secondary);
754
- border-left: 2px solid var(--blockquote-border);
755
- padding: 0.5em 1.2em;
756
- }
757
- .colamd-document mark { background: var(--highlight-bg); }
758
- .colamd-document th,
759
- .colamd-document td {
760
- border-color: rgba(46, 74, 42, 0.35);
761
- padding: 10px 14px;
762
- }
763
- .colamd-document th {
764
- background: var(--table-header-bg);
765
- color: var(--seed-border-strong);
766
- font-family: var(--font-mono);
767
- font-size: 0.78em;
768
- font-weight: 500;
769
- letter-spacing: 0.14em;
770
- text-transform: uppercase;
771
- border-bottom: 2px solid var(--seed-border-strong);
772
- }
773
- .colamd-document hr { border-top: 2px solid var(--seed-border-strong); }
774
-
775
- .colamd-document p { text-indent: 2em; }
776
- .colamd-document li p,
777
- .colamd-document td p,
778
- .colamd-document th p,
779
- .colamd-document blockquote p {
780
- text-indent: 0;
781
- }
782
-
783
- /* ═══════════════════════════════════════════════════════════
784
- SECTION 4 — Print
785
- 应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
786
- ═══════════════════════════════════════════════════════════ */
787
-
788
- @media print {
789
- html,
790
- body {
791
- background: var(--bg-color);
792
- color: var(--text-color);
793
- -webkit-print-color-adjust: exact;
794
- print-color-adjust: exact;
795
- }
796
- }
1
+ /*
2
+ * ColaMD Theme: Editorial Forest(林间编辑部 · 手工精修版)
3
+ * Serif-led editorial system: deep forest green + dusty rose pink on oat-cream paper,
4
+ * Source Serif 4 weight 500 with optical-size axis, JetBrains Mono editorial chrome.
5
+ * 来源:D:\workspace\git\beautiful-html-templates\templates\editorial-forest\
6
+ * template.html + design.md + template.json(8 页 1920×1080)
7
+ * colors: green #2e4a2a / green-deep #243a21 / green-lite #3a5a36
8
+ * pink #e89cb1 / pink-deep #d27e96 / cream #efe7d4 / cream-2 #e6dcc4 / ink #1a1a17
9
+ * fonts: Source Serif 4(display 500 / body 400,opsz 轴)/ JetBrains Mono 500 大写
10
+ * paradigm 备案(编辑部身份,与 biennale-yellow 同类,有意保留):
11
+ * SL-01/SL-02 —— 暖奶油纸系刻意带暖调(surface s45.8% / panel s40.5% /
12
+ * panel-alt s32.7%),模板身份即"oat-cream paper"暖纸;
13
+ * CR-04 —— pink #e89cb1 对 cream 对比 1.8:1,但 pink 只做底色/色块/KPI 大数字
14
+ * (≥3:1 大字),从不做小文字色;链接走加深玫瑰 #9d4a63 保 4.7:1;
15
+ * NT-03 —— 边框/分隔线取模板 2px green 线体系(绿调刻意),td 细线为 green 35%;
16
+ * 标题色 —— cream 页标题一律 green(模板 headline-on-cream 身份),正文 ink。
17
+ * 版式复刻见 SECTION 1.5/1.6(八页逐页对照与换算式均在其注释中)。
18
+ *
19
+ * 契约:ColaMD 2.7.13(:root 活变量;CM6 每行一 div;引用/代码块禁纵向 padding;
20
+ * SECTION 1.5 为幻灯片 --slide-* 令牌,SECTION 1.6 全部 SLIDE-02 作用域)
21
+ *
22
+ * 两条硬规矩:
23
+ * 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
24
+ * 编辑器继承不到。
25
+ * 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
26
+ * 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
27
+ * 并且引用/代码块**不能加纵向 padding**——那会按行累加。
28
+ *
29
+ * ═══════════════════════════════════════════════════════════
30
+ * SECTION 1 — Design Tokens
31
+ * 改 11 个种子色 + 3 组字体即可换一套主题
32
+ * ═══════════════════════════════════════════════════════════ */
33
+
34
+ :root {
35
+
36
+ /* ── 1.1 Seed Palette ──
37
+ 本工具的再生成与校验读这一层;编辑器不消费。
38
+ 明度排序(SL-04 亮色范式):surface > panel > panel-alt 递减;
39
+ muted/dim 同轴暖灰(ink #1a1a17 的色相,NT-01)。
40
+ green 系不占 seed 位(正文 ink 优先):green #2e4a2a 以 --seed-border-strong
41
+ 承担「分隔线/标题」身份,green-deep #243a21 / green-lite #3a5a36 以字面值
42
+ 出现在 SECTION 1.6(pink 页文字 / 备用填充)。 */
43
+ --seed-accent: #e89cb1; /* pink —— 底色/色块/KPI 大数字,不做小文字(CR-04 备案) */
44
+ --seed-accent-light: #f0b6c6;
45
+ --seed-accent-dark: #d27e96; /* pink-deep */
46
+ --seed-surface: #efe7d4; /* cream —— 燕麦纸 */
47
+ --seed-panel: #e6dcc4; /* cream-2 —— 卡片/表头托 */
48
+ --seed-panel-alt: #dcd2ba; /* 再深一档奶油(代码块底) */
49
+ --seed-ink: #1a1a17; /* ink —— 暖近黑正文 */
50
+ --seed-ink-muted: #55554e; /* 次要文字(对 cream ≥6:1) */
51
+ --seed-ink-dim: #6a6a60; /* 辅助文字(对 cream ≥4.5:1) */
52
+ --seed-border: #a5ab99; /* cream 上可见的绿灰发丝线(NT-02) */
53
+ --seed-border-strong: #2e4a2a; /* green —— 模板 2px 分隔线 + cream 页标题身份 */
54
+
55
+ /* ── 1.2 Semantic Colors(活变量)── */
56
+ --bg-color: var(--seed-surface);
57
+ --text-color: var(--seed-ink);
58
+ --text-secondary: var(--seed-ink-muted);
59
+ --text-muted: var(--seed-ink-dim);
60
+ --border-color: var(--seed-border);
61
+ /* pink-deep 在 cream 上仍只有 2.1:1 → 加深至 #9d4a63(4.7:1,CR-04);
62
+ 模板粉身份由 --seed-accent 的底/块/大数字承担 */
63
+ --link-color: #9d4a63;
64
+
65
+ --code-bg: var(--seed-panel);
66
+ --code-block-bg: var(--seed-panel-alt);
67
+ --code-block-text: #1a1a17;
68
+
69
+ --blockquote-border: var(--seed-border-strong); /* 模板:2px green 线体系 */
70
+ --blockquote-bg: var(--seed-panel);
71
+ --table-header-bg: var(--seed-panel); /* cream-2 表头 */
72
+
73
+ --selection-bg: rgba(232, 156, 177, 0.30);
74
+ --highlight-bg: rgba(232, 156, 177, 0.45); /* 粉荧光笔 */
75
+
76
+ /* ── 1.3 Typography & Metrics(活变量)──
77
+ CJK 配对(design.md Strategy C):display 走 LXGW WenKai、正文走 Noto Serif SC */
78
+ --font-body: "Source Serif 4", "Source Serif Pro", "Noto Serif SC", Georgia, serif;
79
+ --font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
80
+ --editor-font-size: 18px;
81
+ --editor-column-width: 820px;
82
+
83
+ /* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
84
+ 图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导;
85
+ accent = pink(模板 bar-chart 粉条身份)。 */
86
+ --pele-bg: var(--code-block-bg);
87
+ --pele-fg: var(--code-block-text);
88
+ --pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
89
+ --pele-line: var(--code-block-text);
90
+ --pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
91
+ --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
92
+ --pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
93
+ --pele-accent: var(--seed-accent);
94
+ --pele-radius: 6px; /* 模板 topic-tile 圆角 */
95
+ }
96
+
97
+ /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 editorial-forest 页型复刻)──
98
+ 换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
99
+ 模板 1920 画布 px ÷ 26 = em。字体:Source Serif 4 500(display,
100
+ tracking -0.02em,lh 0.92–1.02)/ JetBrains Mono 500 大写 0.12–0.18em。
101
+ 页型映射(template.html 页序):
102
+ cover←P1 agenda←P2 section←P3 default←P4(去图框,取文字栏版式)
103
+ figure←P5 steps←P6 matrix←P6 kpi←P7 timeline←P8
104
+ closing←参考 cover 视觉语言(不做 P8 三列清单)
105
+ quote 参照 P8 的双栏构图(左栏巨引号 + 右栏金句 + 顶线署名),
106
+ 底色沿用 P3 的粉底 statement 语言,与 section 同源。
107
+ 近似项在各节注释中标注:monogram 圆章 / 页级右侧 label / 双列页脚 /
108
+ 图表内部(柱宽、网格线、图例、单位后缀)/ agenda 首卡跨行(导出退化为等宽)/
109
+ step 底部 marker 行 / kpi 单位后缀拆色。 */
110
+ :root {
111
+ --slide-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
112
+ --slide-title-font: "Source Serif 4", "Source Serif Pro", "LXGW WenKai TC", "Noto Serif SC", Georgia, serif;
113
+ --slide-title-size: 3.69em; /* 内容页题 96px ÷26(P2/P4/P6) */
114
+ --slide-title-weight: 500; /* SS4 display 声部 = 500(非 700) */
115
+ --slide-subhead-weight: 500;
116
+ --slide-title-tracking: -0.02em;
117
+ --slide-title-line-height: 0.96;
118
+ --slide-cover-title-size: 8.46em; /* P1 h1 220px ÷26 */
119
+ --slide-cover-title-line-height: 0.92;
120
+ --slide-cover-title-tracking: -0.02em;
121
+ --slide-section-title-size: 5.38em; /* P3 statement 140px ÷26 */
122
+ --slide-closing-title-size: 8.46em; /* closing 沿用 cover 220px */
123
+ --slide-lead-size: 1.15em; /* 模板 body 30px ÷26 */
124
+ --slide-kicker-size: clamp(13px, 1.35vw, 26px); /* label 26px @1920 */
125
+ --slide-kicker-tracking: 0.18em; /* 模板 label .18em */
126
+ --slide-kicker-transform: uppercase;
127
+ --slide-chrome-opacity: 1; /* chrome 全色 accent,不靠透明度 */
128
+ --slide-chrome-transform: uppercase;
129
+ --slide-kpi-number-size: 7.33em; /* P7 big 220 ÷26 ÷1.15(li 缩放) */
130
+ --slide-quote-size: 3.5em; /* P8 双栏金句 92px ÷26 */
131
+ --slide-page-pad-x: 6.25vw; /* 模板默认页边距 120px @1920 */
132
+ --slide-page-top-pad: 96px; /* 模板默认正文顶 96px */
133
+ --slide-page-top-pad-print: 88px;
134
+ --slide-cover-text-align: left; /* P1 标题左对齐 */
135
+ --slide-cover-lead-inline: auto;
136
+
137
+ /* 模板字面值收敛(非 seed 槽位):green-deep/green-lite 只在放映版式用 */
138
+ --forest-green-deep: #243a21;
139
+ --forest-green-lite: #3a5a36;
140
+ --forest-pink-bright: #f6c9d6; /* 绿-浅绿底上的粉字提亮(5.28:1) */
141
+ }
142
+
143
+ /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
144
+ body.presenting / body.slides-printing 作用域) ═══════════════ */
145
+
146
+ /* 1.6.1 页标题声部对齐:SS4 500 green(cream 页 headline 身份);并压掉文档式
147
+ h1/h2 的 border-bottom(编辑器规则带 id 权重会漏进放映)。
148
+ 字号归一为 1em:上游默认页给 .cm-line 0.95em,若不清零,页面全部 em
149
+ 会被再乘 0.95(kpi/closing 的换算会整体缩水)。 */
150
+ body.presenting #editor .cm-content .cm-md-page-title,
151
+ body.slides-printing #editor .cm-content .cm-md-page-title {
152
+ font-family: var(--slide-title-font);
153
+ font-size: var(--slide-title-size);
154
+ font-weight: 500;
155
+ line-height: 0.96;
156
+ letter-spacing: -0.02em;
157
+ color: var(--seed-border-strong);
158
+ border-bottom: none;
159
+ padding-bottom: 0;
160
+ margin-bottom: 0.45em;
161
+ }
162
+ /* kicker(label 眉标)色 = region accent:cream 页 green。
163
+ 导出选择器必须带 #editor .cm-content 提到 id 权重:data-slide-layout 只在
164
+ 放映时写上,导出纸面靠行类命中;不带 id 会被 SECTION 2 的文档规则压掉。 */
165
+ body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
166
+ body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
167
+ color: var(--seed-border-strong);
168
+ opacity: 1;
169
+ }
170
+
171
+ /* 1.6.2 换底公共层叠链:green ×5(cover/figure/kpi/timeline/closing)+
172
+ pink ×2(section/quote)。
173
+ 放映:底色打满 body / #editor / .cm-editor / .cm-scroller / .cm-content 五层
174
+ (漏层会被 cream 底反盖)。注意:不能用 :is(...) 合并选择器——SLIDE-02 按
175
+ 逗号切分校验,:is 内的逗号会让片段失去 body 作用域前缀。
176
+ 导出(PPT-PDF):上游 slides-export 把整张纸涂成导出瞬间 body 的单一底色
177
+ (html/body/#editor 全 !important),主题换底页在这里压不过——改在行级画:
178
+ 本主题每行都带 cm-md-slide-<版式> 类,行盒加负边距补回 cm-content 的
179
+ 77px 纸面边距实现全出血,文字位置不变。绿色页的纵向间距在 1.7 里一律
180
+ margin → padding,避免行间露出纸色缝。 */
181
+ body.presenting:has(#editor[data-slide-layout='cover']),
182
+ body.presenting:has(#editor[data-slide-layout='figure']),
183
+ body.presenting:has(#editor[data-slide-layout='kpi']),
184
+ body.presenting:has(#editor[data-slide-layout='timeline']),
185
+ body.presenting:has(#editor[data-slide-layout='closing']) {
186
+ background: #2e4a2a;
187
+ }
188
+ body.presenting #editor[data-slide-layout='cover'],
189
+ body.presenting #editor[data-slide-layout='cover'] .cm-editor,
190
+ body.presenting #editor[data-slide-layout='cover'] .cm-scroller,
191
+ body.presenting #editor[data-slide-layout='cover'] .cm-content,
192
+ body.presenting #editor[data-slide-layout='figure'],
193
+ body.presenting #editor[data-slide-layout='figure'] .cm-editor,
194
+ body.presenting #editor[data-slide-layout='figure'] .cm-scroller,
195
+ body.presenting #editor[data-slide-layout='figure'] .cm-content,
196
+ body.presenting #editor[data-slide-layout='kpi'],
197
+ body.presenting #editor[data-slide-layout='kpi'] .cm-editor,
198
+ body.presenting #editor[data-slide-layout='kpi'] .cm-scroller,
199
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content,
200
+ body.presenting #editor[data-slide-layout='timeline'],
201
+ body.presenting #editor[data-slide-layout='timeline'] .cm-editor,
202
+ body.presenting #editor[data-slide-layout='timeline'] .cm-scroller,
203
+ body.presenting #editor[data-slide-layout='timeline'] .cm-content,
204
+ body.presenting #editor[data-slide-layout='closing'],
205
+ body.presenting #editor[data-slide-layout='closing'] .cm-editor,
206
+ body.presenting #editor[data-slide-layout='closing'] .cm-scroller,
207
+ body.presenting #editor[data-slide-layout='closing'] .cm-content {
208
+ background: #2e4a2a;
209
+ }
210
+ /* 导出:绿色页行级全出血底 */
211
+ body.slides-printing #editor .cm-content .cm-md-slide-cover,
212
+ body.slides-printing #editor .cm-content .cm-md-slide-figure,
213
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi,
214
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline,
215
+ body.slides-printing #editor .cm-content .cm-md-slide-closing {
216
+ background: #2e4a2a;
217
+ margin-inline: -77px;
218
+ padding-inline: 77px;
219
+ }
220
+
221
+ body.presenting:has(#editor[data-slide-layout='section']),
222
+ body.presenting:has(#editor[data-slide-layout='quote']) {
223
+ background: #e89cb1;
224
+ }
225
+ body.presenting #editor[data-slide-layout='section'],
226
+ body.presenting #editor[data-slide-layout='section'] .cm-editor,
227
+ body.presenting #editor[data-slide-layout='section'] .cm-scroller,
228
+ body.presenting #editor[data-slide-layout='section'] .cm-content,
229
+ body.presenting #editor[data-slide-layout='quote'],
230
+ body.presenting #editor[data-slide-layout='quote'] .cm-editor,
231
+ body.presenting #editor[data-slide-layout='quote'] .cm-scroller,
232
+ body.presenting #editor[data-slide-layout='quote'] .cm-content {
233
+ background: #e89cb1;
234
+ }
235
+ /* 导出:粉色页行级全出血底 */
236
+ body.slides-printing #editor .cm-content .cm-md-slide-section,
237
+ body.slides-printing #editor .cm-content .cm-md-slide-quote {
238
+ background: #e89cb1;
239
+ margin-inline: -77px;
240
+ padding-inline: 77px;
241
+ }
242
+ /* 换底页正文色:green 页 figure/kpi/timeline = cream;cover/closing = pink;
243
+ pink 页 section/quote = green-deep(模板 P3 text-on-pink 身份)。
244
+ 注意两层落点:
245
+ 1) `.cm-content` 负责「没被上游单独设色的行」(figure 段落等)——继承即可;
246
+ 2) 上游在版式行元素上直接写了 color(kpi/timeline = --text-secondary,
247
+ closing = --text-muted),行元素自有的颜色永远赢过继承值,所以这些行
248
+ 必须把颜色重新写回行本身(带 .cm-md-li 且 id 提权),否则绿底上的
249
+ 说明小字仍是深灰(≈1.8:1,看不清——2026-11-17 报的「下方字看不清」)。 */
250
+ body.presenting #editor[data-slide-layout='figure'] .cm-content,
251
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content,
252
+ body.presenting #editor[data-slide-layout='timeline'] .cm-content,
253
+ body.slides-printing #editor .cm-content .cm-md-slide-figure,
254
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi,
255
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline {
256
+ color: var(--bg-color);
257
+ }
258
+ body.presenting #editor[data-slide-layout='cover'] .cm-content,
259
+ body.presenting #editor[data-slide-layout='closing'] .cm-content,
260
+ body.slides-printing #editor .cm-content .cm-md-slide-cover,
261
+ body.slides-printing #editor .cm-content .cm-md-slide-closing {
262
+ color: var(--forest-pink-bright); /* 提亮粉 5.28:1(#e89cb1 仅 4.61) */
263
+ }
264
+ body.presenting #editor[data-slide-layout='section'] .cm-content,
265
+ body.presenting #editor[data-slide-layout='quote'] .cm-content,
266
+ body.slides-printing #editor .cm-content .cm-md-slide-section,
267
+ body.slides-printing #editor .cm-content .cm-md-slide-quote {
268
+ color: var(--forest-green-deep);
269
+ }
270
+ /* 行级复写:覆盖上游写在行上的 --text-secondary / --text-muted。
271
+ kpi/timeline 的说明文字 → cream 88%(≈6.6:1,比满 cream 略收,保留层级);
272
+ closing 的清单文字 → 提亮粉 5.28:1。 */
273
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-slide-kpi.cm-md-li,
274
+ body.presenting #editor[data-slide-layout='timeline'] .cm-content .cm-md-slide-timeline.cm-md-li,
275
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li,
276
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
277
+ color: color-mix(in srgb, var(--seed-surface) 88%, transparent);
278
+ }
279
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-slide-closing.cm-md-li,
280
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
281
+ color: var(--forest-pink-bright); /* 5.28:1 */
282
+ }
283
+ /* 导语行自带 --text-secondary,同样按页取色(figure = cream,pink 页 = green-deep) */
284
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-lead,
285
+ body.slides-printing #editor .cm-content .cm-md-slide-figure.cm-md-page-lead {
286
+ color: color-mix(in srgb, var(--seed-surface) 88%, transparent);
287
+ }
288
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
289
+ body.presenting #editor[data-slide-layout='quote'] .cm-content .cm-md-page-lead,
290
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-lead,
291
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-page-lead {
292
+ color: var(--forest-green-deep);
293
+ }
294
+ /* 绿页行内元素收口:上游 strong=ink(1.77:1)、link=#9d4a63(1.69:1)、
295
+ url=muted(1.81:1)在绿底均不可读;改为页面同族色(cream 8.01 / 粉提亮 5.28)。
296
+ 导出选择器带 #editor .cm-content id 权重——否则被 SECTION 2 的
297
+ .cm-md-strong{ink} 等文档规则压掉,PDF 里绿底落墨字(本次修复的主因)。 */
298
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-strong,
299
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-strong,
300
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-strong,
301
+ body.slides-printing #editor .cm-content .cm-md-slide-cover .cm-md-strong,
302
+ body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-strong,
303
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-strong {
304
+ color: inherit;
305
+ }
306
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-link,
307
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-link,
308
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-link,
309
+ body.presenting #editor[data-slide-layout='timeline'] .cm-content .cm-md-link,
310
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-link,
311
+ body.slides-printing #editor .cm-content .cm-md-slide-cover .cm-md-link,
312
+ body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-link,
313
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-link,
314
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-link,
315
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-link {
316
+ color: var(--seed-surface); /* cream 8.01:1 */
317
+ }
318
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-url,
319
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-url,
320
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-url,
321
+ body.presenting #editor[data-slide-layout='timeline'] .cm-content .cm-md-url,
322
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-url,
323
+ body.slides-printing #editor .cm-content .cm-md-slide-cover .cm-md-url,
324
+ body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-url,
325
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-url,
326
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-url,
327
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-url {
328
+ color: color-mix(in srgb, var(--seed-surface) 85%, transparent); /* 6.29:1 */
329
+ }
330
+ /* 绿页独立 kicker 行(上游 color:muted → 1.81:1):提亮粉 5.28:1 */
331
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-kicker,
332
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-kicker,
333
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-kicker,
334
+ body.presenting #editor[data-slide-layout='timeline'] .cm-content .cm-md-page-kicker,
335
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-kicker,
336
+ body.slides-printing #editor .cm-content .cm-md-slide-cover .cm-md-page-kicker,
337
+ body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-page-kicker,
338
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-page-kicker,
339
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-page-kicker,
340
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-page-kicker {
341
+ color: var(--forest-pink-bright); /* 5.28:1(#e89cb1 仅 4.61,小字偏弱) */
342
+ }
343
+ /* 绿页导语:cover/closing 用提亮粉(5.28:1),figure/kpi/timeline 用 cream */
344
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
345
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-lead,
346
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-lead,
347
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-page-lead {
348
+ color: var(--forest-pink-bright); /* 5.28:1 */
349
+ }
350
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-lead,
351
+ body.presenting #editor[data-slide-layout='timeline'] .cm-content .cm-md-page-lead,
352
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-page-lead,
353
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-page-lead {
354
+ color: var(--seed-surface); /* cream 8.01:1 */
355
+ }
356
+ /* 粉页行内元素:link/url/strong 上游用深粉/ink/muted(2.5:1 级)→ green-deep 5.77:1 */
357
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-link,
358
+ body.presenting #editor[data-slide-layout='quote'] .cm-content .cm-md-link,
359
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-url,
360
+ body.presenting #editor[data-slide-layout='quote'] .cm-content .cm-md-url,
361
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-strong,
362
+ body.presenting #editor[data-slide-layout='quote'] .cm-content .cm-md-strong,
363
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-kicker,
364
+ body.presenting #editor[data-slide-layout='quote'] .cm-content .cm-md-page-kicker,
365
+ body.slides-printing #editor .cm-content .cm-md-slide-section .cm-md-link,
366
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-link,
367
+ body.slides-printing #editor .cm-content .cm-md-slide-section .cm-md-url,
368
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-url,
369
+ body.slides-printing #editor .cm-content .cm-md-slide-section .cm-md-strong,
370
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-strong,
371
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-kicker,
372
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-page-kicker {
373
+ color: var(--forest-green-deep);
374
+ }
375
+ /* 换底页 ghost 页码与底同族隐形 → 隐藏 */
376
+ body.presenting:has(#editor[data-slide-layout='cover']) .slide-ghost,
377
+ body.presenting:has(#editor[data-slide-layout='figure']) .slide-ghost,
378
+ body.presenting:has(#editor[data-slide-layout='kpi']) .slide-ghost,
379
+ body.presenting:has(#editor[data-slide-layout='timeline']) .slide-ghost,
380
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-ghost,
381
+ body.presenting:has(#editor[data-slide-layout='section']) .slide-ghost,
382
+ body.presenting:has(#editor[data-slide-layout='quote']) .slide-ghost,
383
+ body.slides-printing:has(.cm-md-slide-cover) .slide-ghost,
384
+ body.slides-printing:has(.cm-md-slide-figure) .slide-ghost,
385
+ body.slides-printing:has(.cm-md-slide-kpi) .slide-ghost,
386
+ body.slides-printing:has(.cm-md-slide-timeline) .slide-ghost,
387
+ body.slides-printing:has(.cm-md-slide-closing) .slide-ghost,
388
+ body.slides-printing:has(.cm-md-slide-section) .slide-ghost,
389
+ body.slides-printing:has(.cm-md-slide-quote) .slide-ghost {
390
+ opacity: 0;
391
+ }
392
+ /* 换底页表格 td 换页面文字色(th 自带 cream-2 底不受影响) */
393
+ body.presenting #editor[data-slide-layout='figure'] .cm-md-table-widget td,
394
+ body.presenting #editor[data-slide-layout='kpi'] .cm-md-table-widget td,
395
+ body.presenting #editor[data-slide-layout='timeline'] .cm-md-table-widget td,
396
+ body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-table-widget td,
397
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-table-widget td,
398
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-table-widget td {
399
+ color: var(--bg-color);
400
+ }
401
+ body.presenting #editor[data-slide-layout='section'] .cm-md-table-widget td,
402
+ body.presenting #editor[data-slide-layout='quote'] .cm-md-table-widget td,
403
+ body.slides-printing #editor .cm-content .cm-md-slide-section .cm-md-table-widget td,
404
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-table-widget td {
405
+ color: var(--forest-green-deep);
406
+ }
407
+ /* 换底页 chrome/foot 色:green 页提亮粉(foot 28px 大字 4.61 够用,但 chrome
408
+ label 26px 混排小字提亮更稳),pink 页 green-deep */
409
+ body.presenting:has(#editor[data-slide-layout='cover']) .slide-chrome,
410
+ body.presenting:has(#editor[data-slide-layout='cover']) .slide-foot,
411
+ body.presenting:has(#editor[data-slide-layout='figure']) .slide-chrome,
412
+ body.presenting:has(#editor[data-slide-layout='figure']) .slide-foot,
413
+ body.presenting:has(#editor[data-slide-layout='kpi']) .slide-chrome,
414
+ body.presenting:has(#editor[data-slide-layout='kpi']) .slide-foot,
415
+ body.presenting:has(#editor[data-slide-layout='timeline']) .slide-chrome,
416
+ body.presenting:has(#editor[data-slide-layout='timeline']) .slide-foot,
417
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-chrome,
418
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-foot,
419
+ body.slides-printing:has(.cm-md-slide-cover) .slide-chrome,
420
+ body.slides-printing:has(.cm-md-slide-cover) .slide-foot,
421
+ body.slides-printing:has(.cm-md-slide-figure) .slide-chrome,
422
+ body.slides-printing:has(.cm-md-slide-figure) .slide-foot,
423
+ body.slides-printing:has(.cm-md-slide-kpi) .slide-chrome,
424
+ body.slides-printing:has(.cm-md-slide-kpi) .slide-foot,
425
+ body.slides-printing:has(.cm-md-slide-timeline) .slide-chrome,
426
+ body.slides-printing:has(.cm-md-slide-timeline) .slide-foot,
427
+ body.slides-printing:has(.cm-md-slide-closing) .slide-chrome,
428
+ body.slides-printing:has(.cm-md-slide-closing) .slide-foot {
429
+ color: var(--forest-pink-bright);
430
+ }
431
+ body.presenting:has(#editor[data-slide-layout='section']) .slide-chrome,
432
+ body.presenting:has(#editor[data-slide-layout='section']) .slide-foot,
433
+ body.presenting:has(#editor[data-slide-layout='quote']) .slide-chrome,
434
+ body.presenting:has(#editor[data-slide-layout='quote']) .slide-foot,
435
+ body.slides-printing:has(.cm-md-slide-section) .slide-chrome,
436
+ body.slides-printing:has(.cm-md-slide-section) .slide-foot,
437
+ body.slides-printing:has(.cm-md-slide-quote) .slide-chrome,
438
+ body.slides-printing:has(.cm-md-slide-quote) .slide-foot {
439
+ color: var(--forest-green-deep);
440
+ }
441
+ /* 换底页 kicker 色覆写(页题 ::before):绿页提亮粉 5.28:1 */
442
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
443
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
444
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
445
+ body.presenting #editor[data-slide-layout='timeline'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
446
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
447
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-title[data-slide-kicker]::before,
448
+ body.slides-printing #editor .cm-content .cm-md-slide-figure.cm-md-page-title[data-slide-kicker]::before,
449
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-page-title[data-slide-kicker]::before,
450
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-page-title[data-slide-kicker]::before,
451
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-page-title[data-slide-kicker]::before {
452
+ color: var(--forest-pink-bright);
453
+ }
454
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
455
+ body.presenting #editor[data-slide-layout='quote'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
456
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-title[data-slide-kicker]::before,
457
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-page-title[data-slide-kicker]::before {
458
+ color: var(--forest-green-deep);
459
+ }
460
+ /* green 页上的 Pele 图:把令牌换成 cream 轴线 / pink 强调 / 透明底(模板 P5
461
+ 图表直接画在绿底上)。为近似值:柱宽、网格线密度、图例布局仍由 Pele 决定。 */
462
+ body.presenting #editor[data-slide-layout='cover'] .cm-content,
463
+ body.presenting #editor[data-slide-layout='figure'] .cm-content,
464
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content,
465
+ body.presenting #editor[data-slide-layout='timeline'] .cm-content,
466
+ body.presenting #editor[data-slide-layout='closing'] .cm-content,
467
+ body.slides-printing .cm-md-slide-cover,
468
+ body.slides-printing .cm-md-slide-figure,
469
+ body.slides-printing .cm-md-slide-kpi,
470
+ body.slides-printing .cm-md-slide-timeline,
471
+ body.slides-printing .cm-md-slide-closing {
472
+ --pele-bg: transparent;
473
+ --pele-fg: var(--bg-color);
474
+ --pele-muted: color-mix(in srgb, var(--bg-color) 85%, transparent); /* 6.29:1(70% 仅 4.85) */
475
+ --pele-line: var(--bg-color);
476
+ --pele-surface: color-mix(in srgb, var(--bg-color) 18%, transparent);
477
+ --pele-surface-alt: color-mix(in srgb, var(--bg-color) 28%, transparent);
478
+ --pele-border: color-mix(in srgb, var(--bg-color) 45%, transparent);
479
+ --pele-accent: var(--seed-accent);
480
+ }
481
+
482
+ /* 1.6.3 cover · P1:green 底 pink 字;h1 220px/0.92,顶部起排(覆盖上游
483
+ 垂直居中);左右 140px → 7.3vw;三行硬换行以 max-width 10ch 近似。
484
+ 近似:monogram 圆章用 .slide-chrome-right 的描边圆章代替;双列页脚
485
+ 只有 .slide-foot 单串可承载。 */
486
+ body.presenting #editor[data-slide-layout='cover'] .cm-content {
487
+ justify-content: flex-start;
488
+ --slide-page-pad-x: 7.3vw;
489
+ }
490
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
491
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-title {
492
+ font-size: var(--slide-cover-title-size);
493
+ line-height: var(--slide-cover-title-line-height);
494
+ letter-spacing: var(--slide-cover-title-tracking);
495
+ color: var(--seed-accent);
496
+ max-width: 10ch;
497
+ }
498
+ /* 模板 h1 顶 = topbar(100) + mark(130) + gap(40) ≈ 270px */
499
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title {
500
+ margin-top: 270px;
501
+ }
502
+ /* 封面副标题:上游给 muted(绿底上对比不足),回到提亮粉 400(5.28:1) */
503
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-atxheading2,
504
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-atxheading3,
505
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-atxheading2,
506
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-atxheading3 {
507
+ color: var(--forest-pink-bright);
508
+ font-weight: 400;
509
+ }
510
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
511
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-lead {
512
+ font-size: 1.15em;
513
+ line-height: 1.38;
514
+ max-width: 60%;
515
+ margin-top: 0;
516
+ }
517
+ /* topbar/footline 对齐 140px 边线;chrome 顶 100px、页脚底 80px(模板 P1) */
518
+ body.presenting:has(#editor[data-slide-layout='cover']) .slide-chrome,
519
+ body.presenting:has(#editor[data-slide-layout='cover']) .slide-foot,
520
+ body.slides-printing:has(.cm-md-slide-cover) .slide-chrome,
521
+ body.slides-printing:has(.cm-md-slide-cover) .slide-foot {
522
+ padding-left: 7.3vw;
523
+ padding-right: 7.3vw;
524
+ }
525
+ body.presenting:has(#editor[data-slide-layout='cover']) .slide-chrome,
526
+ body.slides-printing:has(.cm-md-slide-cover) .slide-chrome {
527
+ padding-top: 100px;
528
+ }
529
+ body.presenting:has(#editor[data-slide-layout='cover']) .slide-foot,
530
+ body.slides-printing:has(.cm-md-slide-cover) .slide-foot {
531
+ padding-bottom: 80px;
532
+ }
533
+ /* 近似:圆形 monogram —— deck meta 非空时,把右侧 chrome 画成 130px 描边圆章 */
534
+ body.presenting:has(#editor[data-slide-layout='cover']) .slide-chrome-right:not(:empty),
535
+ body.slides-printing:has(.cm-md-slide-cover) .slide-chrome-right:not(:empty) {
536
+ flex: 0 0 auto;
537
+ justify-content: center;
538
+ width: clamp(52px, 6.77vw, 130px);
539
+ height: clamp(52px, 6.77vw, 130px);
540
+ border: 2px solid var(--seed-accent);
541
+ border-radius: 50%;
542
+ text-align: center;
543
+ line-height: 1.15;
544
+ font-size: clamp(13px, 1.46vw, 28px);
545
+ letter-spacing: 0.1em;
546
+ }
547
+
548
+ /* 1.6.4 agenda · P2:3 列 1.5fr/1fr/1fr、首卡跨 2 行(仅放映;导出为流式,
549
+ 退化为等宽卡);卡填充按序轮换(绿/粉/奶油+绿边/浅绿/粉);li 基准 1em
550
+ (复位上游 1.2em,否则 56px 卡题会变 67px);序号 mono 1em .14;
551
+ 卡底 foot mono24 无独立行(近似省略)。 */
552
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content {
553
+ display: grid;
554
+ grid-template-columns: 1.5fr 1fr 1fr;
555
+ column-gap: 24px;
556
+ row-gap: 24px;
557
+ align-content: start;
558
+ }
559
+ body.presenting #editor[data-slide-layout='agenda'] .cm-md-slide-directive {
560
+ display: none;
561
+ }
562
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content > * {
563
+ grid-column: 1 / -1;
564
+ }
565
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content > .cm-md-slide-agenda.cm-md-li {
566
+ grid-column: auto;
567
+ display: block;
568
+ width: auto;
569
+ }
570
+ body.presenting #editor[data-slide-layout='agenda'] .cm-md-page-title {
571
+ padding-top: 90px; /* P2 页顶 90px */
572
+ }
573
+ body.presenting #editor[data-slide-layout='agenda'] .cm-md-slide-agenda.cm-md-li:nth-child(1 of .cm-md-slide-agenda.cm-md-li) {
574
+ grid-row: span 2;
575
+ }
576
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
577
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
578
+ display: inline-block;
579
+ box-sizing: border-box;
580
+ width: 32%;
581
+ margin: 0 0.666% 1em 0;
582
+ vertical-align: top;
583
+ background: var(--agenda-bg, var(--seed-panel));
584
+ color: var(--agenda-fg, var(--seed-border-strong));
585
+ border: 2px solid var(--agenda-bd, var(--seed-border-strong));
586
+ border-radius: 6px;
587
+ box-shadow: none;
588
+ padding: 1.54em 1.54em 1.38em; /* 40px/40px/36px ÷26 */
589
+ list-style: none;
590
+ font-size: 1em; /* 复位上游 1.2em */
591
+ line-height: 1.32;
592
+ }
593
+ /* 填充轮换(四色按格):绿/粉/奶油+绿边/浅绿/粉 */
594
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(1 of .cm-md-slide-agenda.cm-md-li),
595
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(1 of .cm-md-slide-agenda.cm-md-li) {
596
+ --agenda-bg: var(--seed-border-strong);
597
+ --agenda-fg: var(--forest-pink-bright); /* 卡内文字 5.28:1(#e89cb1 4.61 偏弱) */
598
+ --agenda-bd: var(--forest-green-deep);
599
+ }
600
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(2 of .cm-md-slide-agenda.cm-md-li),
601
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(2 of .cm-md-slide-agenda.cm-md-li),
602
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(5 of .cm-md-slide-agenda.cm-md-li),
603
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(5 of .cm-md-slide-agenda.cm-md-li) {
604
+ --agenda-bg: var(--seed-accent);
605
+ --agenda-fg: var(--forest-green-deep);
606
+ --agenda-bd: var(--seed-accent-dark);
607
+ }
608
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(3 of .cm-md-slide-agenda.cm-md-li),
609
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(3 of .cm-md-slide-agenda.cm-md-li) {
610
+ --agenda-bg: var(--seed-panel);
611
+ --agenda-fg: var(--seed-border-strong);
612
+ --agenda-bd: var(--seed-border-strong);
613
+ }
614
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(4 of .cm-md-slide-agenda.cm-md-li),
615
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(4 of .cm-md-slide-agenda.cm-md-li) {
616
+ --agenda-bg: var(--forest-green-lite);
617
+ --agenda-fg: var(--forest-pink-bright); /* 3.64 → 5.28:1 */
618
+ --agenda-bd: var(--forest-green-lite);
619
+ }
620
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
621
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
622
+ font-family: var(--slide-mono);
623
+ font-weight: 500;
624
+ font-size: 1em; /* .num 26px ÷26 */
625
+ line-height: 1;
626
+ letter-spacing: 0.14em;
627
+ text-transform: uppercase;
628
+ color: inherit;
629
+ }
630
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-strong,
631
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-strong {
632
+ font-family: var(--slide-title-font);
633
+ font-size: 2.15em; /* h3 56px ÷26 */
634
+ font-weight: 500;
635
+ line-height: 0.98;
636
+ letter-spacing: -0.01em;
637
+ color: inherit;
638
+ }
639
+ /* 首卡 hero 题 84px ÷26 = 3.23em */
640
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(1 of .cm-md-slide-agenda.cm-md-li) .cm-md-strong,
641
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(1 of .cm-md-slide-agenda.cm-md-li) .cm-md-strong {
642
+ font-size: 3.23em;
643
+ }
644
+
645
+ /* 1.6.5 quote · 参照 pink-script-dark 第 8 页「Voices」的双栏实现:
646
+ 左栏 320px 巨引号(挂在页首空行的 ::after 浮动,宽 22%),
647
+ 右栏 92px 金句(26% 起、最宽 68%,无底衬无左轨),
648
+ 署名行 = 26% 起的发丝顶线 + 48px 衬线。
649
+ 配色沿用 forest 自身:pink 底(--seed-accent)+ green-deep 墨色,
650
+ 不引入 pink-script 的 #ed3d8c 玫红与近黑底。
651
+ 另复位上游 quote 的三处残留:斜体、大引号 ::before、pele-accent 字色。 */
652
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-page-start::after,
653
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-page-start::after {
654
+ content: "\201C";
655
+ visibility: visible;
656
+ display: block;
657
+ float: left;
658
+ width: 22%;
659
+ font-family: var(--slide-title-font);
660
+ font-size: 320px; /* 模板 320px;导出在 1.7 收成 213px */
661
+ line-height: 0.65;
662
+ color: var(--forest-green-deep);
663
+ }
664
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-blockquote,
665
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-blockquote {
666
+ --blockquote-bg: transparent; /* 模板 P8 无底衬:只留右栏金句 */
667
+ margin-left: 26%;
668
+ max-width: 68%;
669
+ font-family: var(--slide-title-font);
670
+ font-size: var(--slide-quote-size); /* 3.5em = 92px */
671
+ font-weight: 400;
672
+ font-style: normal; /* 复位上游 italic */
673
+ line-height: 1.05;
674
+ letter-spacing: -0.005em;
675
+ color: var(--forest-green-deep);
676
+ background: transparent;
677
+ border-left: none;
678
+ padding-left: 0;
679
+ padding-right: 0;
680
+ }
681
+ /* 复位上游大引号(slides.css:.cm-md-slide-directive + .cm-md-blockquote::before) */
682
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-blockquote::before,
683
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-blockquote::before {
684
+ content: none;
685
+ display: none;
686
+ }
687
+ /* 金句内强调词:粉底上 pink-bright 不可读,沿用 forest 的 ink 加深 */
688
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-blockquote .cm-md-em,
689
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-blockquote .cm-md-em {
690
+ color: var(--seed-ink);
691
+ font-style: normal;
692
+ }
693
+ /* 署名行:模板 .attr —— 26% 起的 green 发丝顶线 + 48px 衬线。
694
+ 排除空行(CM6 空行 = <div class="cm-line"><br></div>),否则引文上下的
695
+ 空行也会各画一条发丝线。 */
696
+ body.presenting #editor .cm-content .cm-md-slide-quote:not(.cm-md-blockquote):not(.cm-md-page-start):not(.cm-md-slide-directive):not(:has(> br:only-child)),
697
+ body.slides-printing #editor .cm-content .cm-md-slide-quote:not(.cm-md-blockquote):not(.cm-md-page-start):not(.cm-md-slide-directive):not(:has(> br:only-child)) {
698
+ margin: 1.1em 0 0 26%;
699
+ padding-top: 0.6em;
700
+ border-top: 1px solid color-mix(in srgb, var(--forest-green-deep) 55%, transparent);
701
+ font-family: var(--slide-title-font);
702
+ font-size: 1.85em; /* 48px ÷26 */
703
+ font-weight: 400;
704
+ letter-spacing: 0;
705
+ text-transform: none;
706
+ color: var(--forest-green-deep);
707
+ }
708
+ body.presenting #editor[data-slide-layout='quote'] .cm-content .cm-md-page-title,
709
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-page-title {
710
+ font-size: var(--slide-quote-size);
711
+ line-height: 1.05;
712
+ color: var(--forest-green-deep);
713
+ max-width: 68%;
714
+ margin-left: 26%;
715
+ }
716
+
717
+ /* 1.6.5b section · P3(pink 底 statement)
718
+ label 顶部、140px 金句、导语底部(flex 的 margin-bottom:auto 近似
719
+ space-between);左右 160px、顶 130px。近似:P3 attrib 双列无挂点,
720
+ section 把说明文字放到底部。 */
721
+ body.presenting #editor[data-slide-layout='section'] {
722
+ --slide-page-pad-x: 8.33vw;
723
+ }
724
+ body.presenting #editor[data-slide-layout='section'] .cm-content {
725
+ justify-content: flex-start;
726
+ }
727
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title,
728
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-title {
729
+ font-size: var(--slide-section-title-size);
730
+ line-height: 1.02;
731
+ letter-spacing: -0.02em;
732
+ color: var(--forest-green-deep);
733
+ max-width: 11.1em; /* 1560px ÷140 */
734
+ }
735
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title {
736
+ padding-top: 130px; /* P3 页顶 130px */
737
+ margin-top: 0;
738
+ margin-bottom: auto; /* 导语压到底部 */
739
+ }
740
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
741
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-lead {
742
+ font-size: 1.15em;
743
+ line-height: 1.38;
744
+ max-width: 55%;
745
+ color: var(--forest-green-deep);
746
+ }
747
+
748
+ /* 1.6.6 default · P4(cream 底,去掉左图卡,取右栏文字版式)
749
+ 页题 96px/0.96 green;导语与正文 30px/1.38 ink、栏宽 760px(29.2em);
750
+ 页顶 110px、左右 120px。近似:底部 meta-dl 三列改用表格承载
751
+ (2px green 顶线 + mono th + serif 32/500 td),无图片框。 */
752
+ body.presenting #editor[data-slide-layout='default'] {
753
+ --slide-page-top-pad: 110px;
754
+ --slide-page-pad-x: 6.25vw;
755
+ }
756
+ body.presenting #editor[data-slide-layout='default'] .cm-content .cm-md-page-title,
757
+ body.slides-printing #editor .cm-content .cm-md-page-default.cm-md-page-title {
758
+ font-size: var(--slide-title-size);
759
+ line-height: 0.96;
760
+ max-width: 15em;
761
+ color: var(--seed-border-strong);
762
+ }
763
+ body.presenting #editor[data-slide-layout='default'] .cm-line.cm-md-page-default:not(.cm-md-page-title):not(.cm-md-page-lead),
764
+ body.slides-printing #editor .cm-content .cm-line.cm-md-page-default:not(.cm-md-page-title):not(.cm-md-page-lead) {
765
+ font-size: 1.15em; /* 正文 30px ÷26 */
766
+ line-height: 1.38;
767
+ max-width: 29.2em; /* 760px ÷26 */
768
+ }
769
+ body.presenting #editor[data-slide-layout='default'] .cm-md-page-lead,
770
+ body.slides-printing #editor .cm-content .cm-md-page-default.cm-md-page-lead {
771
+ font-size: 1.15em;
772
+ line-height: 1.38;
773
+ max-width: 29.2em;
774
+ color: var(--text-color);
775
+ }
776
+ /* meta 行近似:表格当三列定义列表 */
777
+ body.presenting #editor[data-slide-layout='default'] .cm-md-table-widget table,
778
+ body.slides-printing #editor .cm-content .cm-md-page-default .cm-md-table-widget table {
779
+ border-top: 2px solid var(--seed-border-strong);
780
+ }
781
+ body.presenting #editor[data-slide-layout='default'] .cm-md-table-widget th,
782
+ body.slides-printing #editor .cm-content .cm-md-page-default .cm-md-table-widget th {
783
+ background: transparent;
784
+ border-bottom: none;
785
+ font-family: var(--slide-mono);
786
+ font-size: 0.8em; /* dt 24px ÷30 */
787
+ letter-spacing: 0.14em;
788
+ color: var(--seed-border-strong);
789
+ }
790
+ body.presenting #editor[data-slide-layout='default'] .cm-md-table-widget td,
791
+ body.slides-printing #editor .cm-content .cm-md-page-default .cm-md-table-widget td {
792
+ border-bottom: none;
793
+ font-family: var(--slide-title-font);
794
+ font-size: 1.07em; /* dd 32px ÷30 */
795
+ font-weight: 500;
796
+ color: var(--text-color);
797
+ }
798
+
799
+ /* 1.6.7 figure · P5(green 底 chart):页题 84px/1.0 cream、max 1200px;
800
+ 导语 30px/1.38 cream;页顶 100px。图表直接画在绿底上(绿页 Pele 令牌见
801
+ 1.6.2),不再套奶油卡。近似:柱宽/柱高/网格线/图例/柱值由 Pele 决定,
802
+ 模板的 56px 柱与 2px 坐标轴只能经 --pele-line/--pele-accent 逼近。 */
803
+ body.presenting #editor[data-slide-layout='figure'] {
804
+ --slide-page-top-pad: 100px;
805
+ }
806
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title,
807
+ body.slides-printing #editor .cm-content .cm-md-slide-figure.cm-md-page-title {
808
+ font-size: 3.23em;
809
+ line-height: 1.0;
810
+ max-width: 14.3em; /* 1200px ÷84 */
811
+ color: var(--bg-color);
812
+ }
813
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-lead,
814
+ body.slides-printing #editor .cm-content .cm-md-slide-figure.cm-md-page-lead {
815
+ font-size: 1.15em;
816
+ line-height: 1.38;
817
+ color: var(--bg-color);
818
+ }
819
+ body.presenting #editor .cm-content svg.pele,
820
+ body.slides-printing #editor .cm-content svg.pele {
821
+ background: transparent;
822
+ border: none;
823
+ border-radius: 0;
824
+ }
825
+
826
+ /* 1.6.8 steps · P6(cream 底 framework)
827
+ 4 列:宽 23.3% + 右缝 1.67% = 99.88%(修掉原 101.48% 掉行);
828
+ 卡 8px 圆角、2.5px 绿边、内距 40/32/32、min-height 470;填充轮换
829
+ 奶油/粉/绿/奶油;序号 mono26(恢复被上游隐藏的 display)、卡题 68 素衬线
830
+ (复位上游 999px 胶囊)、正文 26/1.34。近似:底部 marker 行无独立行,省略。 */
831
+ body.presenting #editor[data-slide-layout='steps'] {
832
+ --slide-page-top-pad: 100px;
833
+ }
834
+ /* P6 标题与卡阵间距 70px(模板 flow margin-top) */
835
+ body.presenting #editor[data-slide-layout='steps'] .cm-content .cm-md-page-title,
836
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content .cm-md-page-title {
837
+ margin-bottom: 70px;
838
+ }
839
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
840
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
841
+ display: inline-block;
842
+ box-sizing: border-box;
843
+ width: 23.3%;
844
+ margin: 0 1.67% 1em 0;
845
+ vertical-align: top;
846
+ background: var(--step-bg, var(--seed-surface));
847
+ color: var(--step-fg, var(--seed-border-strong));
848
+ border: 2.5px solid var(--step-bd, var(--seed-border-strong));
849
+ border-radius: 8px;
850
+ box-shadow: none;
851
+ padding: 1.54em 1.23em 1.23em; /* 40px/32px/32px ÷26 */
852
+ min-height: 18em; /* .step min-height 470px ÷26 */
853
+ list-style: none;
854
+ font-size: 1em;
855
+ line-height: 1.34;
856
+ }
857
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li:nth-child(2 of .cm-md-slide-steps.cm-md-li),
858
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li:nth-child(2 of .cm-md-slide-steps.cm-md-li) {
859
+ --step-bg: var(--seed-accent);
860
+ --step-fg: var(--forest-green-deep);
861
+ --step-bd: var(--seed-accent-dark);
862
+ }
863
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li:nth-child(3 of .cm-md-slide-steps.cm-md-li),
864
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li:nth-child(3 of .cm-md-slide-steps.cm-md-li) {
865
+ --step-bg: var(--seed-border-strong);
866
+ --step-fg: var(--seed-accent);
867
+ --step-bd: var(--seed-border-strong);
868
+ }
869
+ /* 序号:恢复上游隐藏的 listmark,单独成行(.num 26px mono) */
870
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
871
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
872
+ display: block; /* 复位上游 display:none */
873
+ font-family: var(--slide-mono);
874
+ font-weight: 500;
875
+ font-size: 1em; /* .num 26px ÷26 */
876
+ line-height: 1;
877
+ letter-spacing: 0.16em;
878
+ text-transform: uppercase;
879
+ color: inherit;
880
+ margin-bottom: 0.77em; /* 序号与卡题 20px 间距 */
881
+ }
882
+ /* 卡题:复位上游胶囊(inline-flex/描边/999px 圆角/内距)→ 68px 素衬线 */
883
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
884
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
885
+ display: block;
886
+ font-family: var(--slide-title-font);
887
+ font-size: 2.62em; /* h3 68px ÷26 */
888
+ font-weight: 500;
889
+ line-height: 0.96;
890
+ letter-spacing: -0.01em;
891
+ color: inherit;
892
+ border: none;
893
+ border-radius: 0;
894
+ background: transparent;
895
+ padding: 0;
896
+ min-width: 0;
897
+ white-space: normal;
898
+ }
899
+
900
+ /* 1.6.8b matrix · P6 卡片语言(3 列,宽 31.5% + 缝 1.5%):
901
+ 复用 step 卡的 8px 圆角 / 2.5px 边 / 填充轮换;题 68px;序号恢复显示。 */
902
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
903
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
904
+ display: inline-block;
905
+ box-sizing: border-box;
906
+ width: 31.5%;
907
+ margin: 0 1.5% 1.5em 0;
908
+ vertical-align: top;
909
+ background: var(--matrix-bg, var(--seed-surface));
910
+ color: var(--matrix-fg, var(--seed-border-strong));
911
+ border: 2.5px solid var(--matrix-bd, var(--seed-border-strong));
912
+ border-radius: 8px;
913
+ box-shadow: none;
914
+ padding: 1.54em 1.23em 1.23em;
915
+ list-style: none;
916
+ font-size: 1em;
917
+ line-height: 1.34;
918
+ }
919
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li:nth-child(2 of .cm-md-slide-matrix.cm-md-li),
920
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li:nth-child(2 of .cm-md-slide-matrix.cm-md-li) {
921
+ --matrix-bg: var(--seed-accent);
922
+ --matrix-fg: var(--forest-green-deep);
923
+ --matrix-bd: var(--seed-accent-dark);
924
+ }
925
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li:nth-child(3 of .cm-md-slide-matrix.cm-md-li),
926
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li:nth-child(3 of .cm-md-slide-matrix.cm-md-li) {
927
+ --matrix-bg: var(--seed-border-strong);
928
+ --matrix-fg: var(--seed-accent);
929
+ --matrix-bd: var(--seed-border-strong);
930
+ }
931
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-listmark,
932
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-listmark {
933
+ display: block; /* 复位上游 display:none */
934
+ font-family: var(--slide-mono);
935
+ font-weight: 500;
936
+ font-size: 1em;
937
+ line-height: 1;
938
+ letter-spacing: 0.16em;
939
+ text-transform: uppercase;
940
+ color: inherit;
941
+ margin-bottom: 0.77em;
942
+ }
943
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
944
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
945
+ display: block;
946
+ font-family: var(--slide-title-font);
947
+ font-size: 2.62em; /* 68px ÷26 */
948
+ font-weight: 500;
949
+ line-height: 0.96;
950
+ letter-spacing: -0.01em;
951
+ color: inherit;
952
+ border: none;
953
+ border-radius: 0;
954
+ background: transparent;
955
+ padding: 0;
956
+ }
957
+
958
+ /* 1.6.9 kpi · P7(green 底 stats):页题 80px/0.98 cream、max 1400px;
959
+ 3 列各 33.333%(无外边距、卡内水平 30px → 60px 视觉缝),整行 2px pink
960
+ 顶线因此连续;li 基准 1.15em(说明 30px);tag mono 0.8em(24px,恢复显示)、
961
+ 大数字 7.33em(220px)、说明 1.32 cream。近似:110px 单位后缀与数字同色。 */
962
+ body.presenting #editor[data-slide-layout='kpi'] {
963
+ --slide-page-top-pad: 100px;
964
+ }
965
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title,
966
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-page-title {
967
+ font-size: 3.08em;
968
+ line-height: 0.98;
969
+ max-width: 17.5em; /* 1400px ÷80 */
970
+ color: var(--bg-color);
971
+ }
972
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
973
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
974
+ display: inline-block;
975
+ box-sizing: border-box;
976
+ width: 33.333%;
977
+ margin: 80px 0 0; /* .kpi-row margin-top 80px */
978
+ vertical-align: top;
979
+ background: transparent;
980
+ border: none;
981
+ border-top: 2px solid var(--seed-accent); /* 整行连续顶线(卡间无缝) */
982
+ border-radius: 0;
983
+ box-shadow: none;
984
+ padding: 56px 30px 0; /* .kpi-row padding-top 56px + 列缝 60px */
985
+ font-size: 1.15em; /* .desc 30px ÷26 */
986
+ line-height: 1.32;
987
+ list-style: none;
988
+ }
989
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-listmark,
990
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-listmark {
991
+ display: block; /* 复位上游 display:none */
992
+ font-family: var(--slide-mono);
993
+ font-weight: 500;
994
+ font-size: 0.8em; /* .tag 24px ÷26 ÷1.15 */
995
+ line-height: 1.2;
996
+ letter-spacing: 0.16em;
997
+ text-transform: uppercase;
998
+ color: var(--forest-pink-bright); /* tag 小字 5.28:1 */
999
+ margin-bottom: 0.53em; /* 与数字间距 16px ÷30 */
1000
+ }
1001
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
1002
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
1003
+ display: block;
1004
+ font-family: var(--slide-title-font);
1005
+ font-size: var(--slide-kpi-number-size);
1006
+ font-weight: 500;
1007
+ line-height: 0.92;
1008
+ letter-spacing: -0.03em;
1009
+ color: var(--seed-accent);
1010
+ }
1011
+
1012
+ /* 1.6.10 timeline · P8(green 底 summary 三列)
1013
+ 页题 220px/0.94 pink、max 12ch;3 列各 33.333%(卡内水平 30px → 60px 缝),
1014
+ 整行连续 2px pink 顶线;条目标题 mono 26px .16 大写 pink、正文 32px/1.32 cream;
1015
+ 页顶 110px、左右 140px。复位上游时间轴的左轴线/圆点/序号。
1016
+ 近似:清单 h4 的 18px 下距用 strong 的 margin-bottom 表达。 */
1017
+ body.presenting #editor[data-slide-layout='timeline'] {
1018
+ --slide-page-top-pad: 110px;
1019
+ --slide-page-pad-x: 7.3vw;
1020
+ }
1021
+ body.presenting #editor[data-slide-layout='timeline'] .cm-content .cm-md-page-title,
1022
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-page-title {
1023
+ font-size: var(--slide-closing-title-size); /* 220px ÷26 */
1024
+ line-height: 0.94;
1025
+ letter-spacing: -0.02em;
1026
+ color: var(--seed-accent);
1027
+ max-width: 12ch;
1028
+ }
1029
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li,
1030
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
1031
+ position: static; /* 复位上游 relative 轴点定位 */
1032
+ display: inline-block;
1033
+ box-sizing: border-box;
1034
+ width: 33.333%;
1035
+ margin: 70px 0 0; /* .grid-cols margin-top 70px */
1036
+ vertical-align: top;
1037
+ background: transparent;
1038
+ border: none;
1039
+ border-top: 2px solid var(--seed-accent); /* 整行连续顶线(卡间无缝) */
1040
+ border-radius: 0;
1041
+ box-shadow: none;
1042
+ padding: 36px 30px 0; /* .grid-cols padding-top 36px + 列缝 60px */
1043
+ font-size: 1.23em; /* p 32px ÷26 */
1044
+ line-height: 1.32;
1045
+ list-style: none;
1046
+ }
1047
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li::before,
1048
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li::before {
1049
+ content: none; /* 复位上游时间轴圆点 */
1050
+ display: none;
1051
+ }
1052
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-listmark,
1053
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-listmark {
1054
+ display: none; /* grid-cols 无序号 */
1055
+ }
1056
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-strong,
1057
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-strong {
1058
+ display: block;
1059
+ font-family: var(--slide-mono);
1060
+ font-size: 0.81em; /* h4 26px ÷26 ÷1.23 */
1061
+ font-weight: 500;
1062
+ line-height: 1.2;
1063
+ letter-spacing: 0.16em;
1064
+ text-transform: uppercase;
1065
+ color: var(--forest-pink-bright); /* 条目标题小字 5.28:1 */
1066
+ margin-bottom: 0.7em; /* 18px ÷26(h4 字号) */
1067
+ }
1068
+
1069
+ /* 1.6.10b closing · 参考 cover 的视觉语言:green 底、pink 220px 标题、
1070
+ 左上起排、同款 topbar/footline 边线;不做 P8 的三列清单。
1071
+ 近似:closing 不放 monogram,标题顶距 140px。 */
1072
+ body.presenting #editor[data-slide-layout='closing'] {
1073
+ --slide-page-pad-x: 7.3vw;
1074
+ }
1075
+ body.presenting #editor[data-slide-layout='closing'] .cm-content {
1076
+ justify-content: flex-start;
1077
+ }
1078
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title,
1079
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-page-title {
1080
+ font-size: var(--slide-closing-title-size);
1081
+ line-height: 0.92;
1082
+ letter-spacing: -0.02em;
1083
+ color: var(--seed-accent);
1084
+ max-width: 10ch;
1085
+ }
1086
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title {
1087
+ margin-top: 140px;
1088
+ }
1089
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-lead,
1090
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-page-lead {
1091
+ font-size: 1.15em;
1092
+ line-height: 1.38;
1093
+ max-width: 60%;
1094
+ }
1095
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
1096
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
1097
+ font-size: 1.15em;
1098
+ line-height: 1.5;
1099
+ }
1100
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-listmark,
1101
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-listmark {
1102
+ color: var(--forest-pink-bright); /* 清单符号小字 5.28:1 */
1103
+ }
1104
+ /* 复位上游 closing 的 ▸ 前缀(cover 语言没有列表符号) */
1105
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li::before,
1106
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li::before {
1107
+ content: none;
1108
+ display: none;
1109
+ }
1110
+ /* chrome/footline 与 cover 同一条 140px 边线 */
1111
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-chrome,
1112
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-foot,
1113
+ body.slides-printing:has(.cm-md-slide-closing) .slide-chrome,
1114
+ body.slides-printing:has(.cm-md-slide-closing) .slide-foot {
1115
+ padding-left: 7.3vw;
1116
+ padding-right: 7.3vw;
1117
+ }
1118
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-foot,
1119
+ body.slides-printing:has(.cm-md-slide-closing) .slide-foot {
1120
+ padding-bottom: 80px;
1121
+ }
1122
+
1123
+ /* 1.7 导出纸面校准(PPT-PDF 1280×720 @96dpi,上游强制 cm-content 24px/em)。
1124
+ 模板 1920×1080 / 基准 26px → 纸面换算:px × (720/1080) ÷ 24 ≈ px ÷ 36。
1125
+ 换算后按页型留「一字安全余量」防标题溢出换行(对齐 pink-script-dark)。
1126
+ 注意:这里统一压字号后,1.6 各页不再做二次 ×0.88 缩放(避免双重缩小)。 */
1127
+ body.slides-printing {
1128
+ --slide-title-size: 2.66em; /* 96px → 64px */
1129
+ --slide-cover-title-size: 5.9em; /* 220px → 146px(6.11 − 安全余量) */
1130
+ --slide-section-title-size: 3.6em; /* 140px → 93px */
1131
+ --slide-closing-title-size: 5.8em; /* 220px → 141px */
1132
+ --slide-quote-size: 2.45em; /* 92px × 2/3 ≈ 61px,留一字余量 */
1133
+ --slide-kicker-size: 17px; /* clamp 收敛为定值 */
1134
+ --slide-page-top-pad-print: 64px; /* 96px → 64px */
1135
+ }
1136
+ /* 行距与密度:正文行高压到 1.62,空行压扁(对齐 pink-script-dark 1.7 密度块) */
1137
+ body.slides-printing #editor .cm-content {
1138
+ line-height: 1.62;
1139
+ }
1140
+ body.slides-printing #editor .cm-content .cm-line:has(> .cm-md-empty-line) {
1141
+ line-height: 0.55;
1142
+ }
1143
+ body.slides-printing #editor .cm-content .cm-md-table-widget table {
1144
+ font-size: 0.72em;
1145
+ }
1146
+ body.slides-printing #editor .cm-content .cm-md-table-widget th,
1147
+ body.slides-printing #editor .cm-content .cm-md-table-widget td {
1148
+ padding: 0.35em 0.6em;
1149
+ }
1150
+ body.slides-printing #editor .cm-content .cm-md-codeblock .cm-line {
1151
+ font-size: 0.72em;
1152
+ }
1153
+ /* 列表字号校准:26px 基 li(agenda/steps/matrix)→ 0.667em;
1154
+ 30px 基 li(figure/kpi/closing 卡行)→ 0.833em;32px 基 li(timeline)→ 0.89em
1155
+ (卡内 strong/desc 均为 em 相对值,随 li 自动缩放) */
1156
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li,
1157
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li,
1158
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
1159
+ font-size: 0.667em; /* 26px → 17.3px */
1160
+ }
1161
+ body.slides-printing #editor .cm-content .cm-md-slide-figure.cm-md-li,
1162
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li,
1163
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
1164
+ font-size: 0.833em; /* 30px → 20px */
1165
+ }
1166
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
1167
+ font-size: 0.89em; /* 32px → 21.3px */
1168
+ }
1169
+ /* 绿色页纵向间距 margin → padding:换底在行盒上,margin 区会露出纸色缝。
1170
+ 数值 = 原 margin + 原 padding-top 后再 ×0.667。 */
1171
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-title {
1172
+ margin-top: 0;
1173
+ padding-top: 180px; /* 270px → 180px */
1174
+ }
1175
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-page-title {
1176
+ margin-top: 0;
1177
+ padding-top: 93px; /* 140px → 93px */
1178
+ }
1179
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-title,
1180
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-page-title {
1181
+ padding-top: 23px; /* 目标 87px − 页首垫 64px */
1182
+ }
1183
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
1184
+ margin-top: 0;
1185
+ padding-top: 91px; /* margin 80 + padding 56 → 136px → 91px */
1186
+ }
1187
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
1188
+ margin-top: 0;
1189
+ padding-top: 71px; /* margin 70 + padding 36 → 106px → 71px */
1190
+ }
1191
+ /* 页题硬编码字号的纸面换算(kpi/figure 未走 --slide-* 令牌) */
1192
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-page-title {
1193
+ font-size: 2.22em; /* 80px → 53px */
1194
+ }
1195
+ body.slides-printing #editor .cm-content .cm-md-slide-figure.cm-md-page-title {
1196
+ font-size: 2.33em; /* 84px → 56px */
1197
+ }
1198
+ /* 导语(30px)纸面换算 */
1199
+ body.slides-printing #editor .cm-content .cm-md-page-lead {
1200
+ font-size: 0.833em; /* 30px → 20px */
1201
+ }
1202
+ /* quote 双栏构图的纸面换算:巨引号 320px→213px、署名 48px→32px
1203
+ (金句本身走 --slide-quote-size 令牌,见上方 1.7 令牌块) */
1204
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-page-start::after {
1205
+ font-size: 213px; /* 320px × 2/3 */
1206
+ }
1207
+ body.slides-printing #editor .cm-content .cm-md-slide-quote:not(.cm-md-blockquote):not(.cm-md-page-start):not(.cm-md-slide-directive):not(:has(> br:only-child)) {
1208
+ font-size: 1.33em; /* 32px ÷24 */
1209
+ }
1210
+ /* chrome/foot 的 padding 为固定 px,纸面 ×0.667 */
1211
+ body.slides-printing .slide-chrome {
1212
+ padding-top: 67px; /* 100px → 67px */
1213
+ }
1214
+ body.slides-printing .slide-foot {
1215
+ padding-bottom: 53px; /* 80px → 53px */
1216
+ }
1217
+
1218
+ /* 1.6.11 chrome · topbar/footline:JetBrains Mono 500 大写;label 26px .18em /
1219
+ footline 28px .12em;cream 页色 green(模板 label-on-cream 身份) */
1220
+ body.presenting .slide-chrome,
1221
+ body.slides-printing .slide-chrome {
1222
+ font-family: var(--slide-mono);
1223
+ font-size: clamp(13px, 1.35vw, 26px); /* label 26px @1920 */
1224
+ font-weight: 500;
1225
+ letter-spacing: 0.18em;
1226
+ text-transform: uppercase;
1227
+ color: var(--seed-border-strong);
1228
+ }
1229
+ body.presenting .slide-foot,
1230
+ body.slides-printing .slide-foot {
1231
+ font-family: var(--slide-mono);
1232
+ font-size: clamp(14px, 1.46vw, 28px); /* footline 28px @1920 */
1233
+ font-weight: 500;
1234
+ letter-spacing: 0.12em;
1235
+ text-transform: uppercase;
1236
+ opacity: 1; /* 去掉 0.9 灰化(pink 4.04 → 4.61) */
1237
+ color: var(--seed-border-strong);
1238
+ }
1239
+
1240
+ /* ═══════════════════════════════════════════════════════════
1241
+ SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
1242
+ ═══════════════════════════════════════════════════════════ */
1243
+
1244
+ #editor .cm-content {
1245
+ font-family: var(--font-body);
1246
+ line-height: 1.6; /* CJK 建议 1.5-1.6 */
1247
+ }
1248
+
1249
+ /* ── 2.1 Headings(SS4 500 + LXGW 文楷 display 声部;cream 页标题身份 = green)── */
1250
+ #editor .cm-content .cm-md-atxheading1,
1251
+ #editor .cm-content .cm-md-atxheading2,
1252
+ #editor .cm-content .cm-md-atxheading3,
1253
+ #editor .cm-content .cm-md-atxheading4,
1254
+ #editor .cm-content .cm-md-atxheading5,
1255
+ #editor .cm-content .cm-md-atxheading6 {
1256
+ font-family: "Source Serif 4", "Source Serif Pro", "LXGW WenKai TC", "Noto Serif SC", Georgia, serif;
1257
+ color: var(--seed-border-strong);
1258
+ font-weight: 500; /* 模板 display 全 500(非 700),body 400 */
1259
+ line-height: 1.1;
1260
+ letter-spacing: -0.02em;
1261
+ }
1262
+
1263
+ #editor .cm-content .cm-md-atxheading1 {
1264
+ font-size: 2.9em;
1265
+ line-height: 1.05;
1266
+ }
1267
+ #editor .cm-content .cm-md-atxheading2 {
1268
+ font-size: 2.15em;
1269
+ line-height: 1.0;
1270
+ }
1271
+ #editor .cm-content .cm-md-atxheading3 { font-size: 1.65em; }
1272
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1.3em; }
1273
+ #editor .cm-content .cm-md-atxheading5 { font-size: 1.12em; }
1274
+ #editor .cm-content .cm-md-atxheading6 {
1275
+ font-size: 1em;
1276
+ font-family: var(--font-mono);
1277
+ font-weight: 500;
1278
+ letter-spacing: 0.18em; /* 模板 label 眉标声部 */
1279
+ text-transform: uppercase;
1280
+ }
1281
+
1282
+ /* ── 2.2 Inline ──
1283
+ strong 用正文色(模板强调走字号/色块,不用 accent 文字色,CR-04) */
1284
+ #editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 600; }
1285
+ #editor .cm-content .cm-md-em { font-style: italic; }
1286
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; }
1287
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
1288
+ #editor .cm-content .cm-md-link { color: var(--link-color); }
1289
+ #editor .cm-content .cm-md-url { color: var(--text-muted); }
1290
+
1291
+ #editor .cm-content .cm-md-inlinecode {
1292
+ font-family: var(--font-mono);
1293
+ background: var(--code-bg);
1294
+ color: var(--text-color);
1295
+ border-radius: 3px; /* 最小圆角档(legend swatch 2px 系) */
1296
+ }
1297
+
1298
+ #editor .cm-content .cm-md-marker,
1299
+ #editor .cm-content .cm-md-quotemark,
1300
+ #editor .cm-content .cm-md-listmark {
1301
+ color: var(--text-muted);
1302
+ }
1303
+
1304
+ /* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
1305
+ 引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
1306
+ 否则引用里的代码行会盖住代码块底色。 */
1307
+ #editor .cm-content .cm-md-blockquote {
1308
+ color: var(--text-secondary);
1309
+ border-left: 2px solid var(--blockquote-border); /* 模板 2px 线体系 */
1310
+ padding-left: 16px;
1311
+ padding-right: 16px;
1312
+ }
1313
+
1314
+ #editor .cm-content .cm-md-codeblock {
1315
+ background: var(--code-block-bg);
1316
+ color: var(--code-block-text);
1317
+ padding-left: 16px;
1318
+ padding-right: 16px;
1319
+ }
1320
+ #editor .cm-content .cm-md-codeblock-first {
1321
+ border-top-left-radius: 6px;
1322
+ border-top-right-radius: 6px;
1323
+ }
1324
+ #editor .cm-content .cm-md-codeblock-last {
1325
+ border-bottom-left-radius: 6px;
1326
+ border-bottom-right-radius: 6px;
1327
+ }
1328
+
1329
+ /* ── 2.4 Table / Rule(模板:2px green 分隔线体系,th = mono label 声部)── */
1330
+ #editor .cm-content .cm-md-table-widget th,
1331
+ #editor .cm-content .cm-md-table-widget td {
1332
+ padding: 10px 14px;
1333
+ border-color: rgba(46, 74, 42, 0.35); /* green 35% 细线(NT-03 备案) */
1334
+ }
1335
+ #editor .cm-content .cm-md-table-widget th {
1336
+ background: var(--table-header-bg);
1337
+ color: var(--seed-border-strong);
1338
+ font-family: var(--font-mono);
1339
+ font-size: 0.78em;
1340
+ font-weight: 500;
1341
+ letter-spacing: 0.14em;
1342
+ text-transform: uppercase;
1343
+ border-bottom: 2px solid var(--seed-border-strong);
1344
+ }
1345
+ #editor .cm-content .cm-md-hr { border-top: 2px solid var(--seed-border-strong); }
1346
+
1347
+ /* ── 2.5 中文首行缩进 ──
1348
+ CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
1349
+ #editor .cm-content .cm-line { text-indent: 2em; }
1350
+
1351
+ #editor .cm-content .cm-md-atxheading1,
1352
+ #editor .cm-content .cm-md-atxheading2,
1353
+ #editor .cm-content .cm-md-atxheading3,
1354
+ #editor .cm-content .cm-md-atxheading4,
1355
+ #editor .cm-content .cm-md-atxheading5,
1356
+ #editor .cm-content .cm-md-atxheading6,
1357
+ #editor .cm-content .cm-md-blockquote,
1358
+ #editor .cm-content .cm-md-codeblock,
1359
+ #editor .cm-content .cm-md-hr,
1360
+ #editor .cm-content .cm-md-mermaid,
1361
+ #editor .cm-content .cm-md-li-0,
1362
+ #editor .cm-content .cm-md-li-1,
1363
+ #editor .cm-content .cm-md-li-2,
1364
+ #editor .cm-content .cm-md-li-3,
1365
+ #editor .cm-content .cm-md-li-4,
1366
+ #editor .cm-content .cm-md-li-5,
1367
+ #editor .cm-content .cm-md-li-6 {
1368
+ text-indent: 0;
1369
+ }
1370
+
1371
+ /* ═══════════════════════════════════════════════════════════
1372
+ SECTION 3 — Exported HTML(.colamd-document,语义标签)
1373
+ HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
1374
+ ═══════════════════════════════════════════════════════════ */
1375
+
1376
+ .colamd-document {
1377
+ font-family: var(--font-body);
1378
+ font-size: 18px;
1379
+ line-height: 1.6;
1380
+ }
1381
+
1382
+ .colamd-document h1,
1383
+ .colamd-document h2,
1384
+ .colamd-document h3,
1385
+ .colamd-document h4,
1386
+ .colamd-document h5,
1387
+ .colamd-document h6 {
1388
+ font-family: "Source Serif 4", "Source Serif Pro", "LXGW WenKai TC", "Noto Serif SC", Georgia, serif;
1389
+ color: var(--seed-border-strong);
1390
+ font-weight: 500;
1391
+ line-height: 1.1;
1392
+ letter-spacing: -0.02em;
1393
+ margin: 1.5em 0 0.5em;
1394
+ }
1395
+ .colamd-document h1 { font-size: 2.9em; line-height: 1.05; margin-top: 0.4em; }
1396
+ .colamd-document h2 { font-size: 2.15em; line-height: 1.0; }
1397
+ .colamd-document h3 { font-size: 1.65em; }
1398
+ .colamd-document h4 { font-size: 1.3em; }
1399
+ .colamd-document h5 { font-size: 1.12em; }
1400
+ .colamd-document h6 {
1401
+ font-size: 1em;
1402
+ font-family: var(--font-mono);
1403
+ font-weight: 500;
1404
+ letter-spacing: 0.18em;
1405
+ text-transform: uppercase;
1406
+ }
1407
+
1408
+ .colamd-document strong { color: var(--text-color); font-weight: 600; }
1409
+ .colamd-document code {
1410
+ background: var(--code-bg);
1411
+ color: var(--text-color);
1412
+ font-family: var(--font-mono);
1413
+ border-radius: 3px;
1414
+ }
1415
+ /* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
1416
+ .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
1417
+ .colamd-document pre { background: var(--code-block-bg); }
1418
+ .colamd-document pre code { color: var(--code-block-text); }
1419
+ .colamd-document blockquote {
1420
+ background: var(--blockquote-bg);
1421
+ color: var(--text-secondary);
1422
+ border-left: 2px solid var(--blockquote-border);
1423
+ padding: 0.5em 1.2em;
1424
+ }
1425
+ .colamd-document mark { background: var(--highlight-bg); }
1426
+ .colamd-document th,
1427
+ .colamd-document td {
1428
+ border-color: rgba(46, 74, 42, 0.35);
1429
+ padding: 10px 14px;
1430
+ }
1431
+ .colamd-document th {
1432
+ background: var(--table-header-bg);
1433
+ color: var(--seed-border-strong);
1434
+ font-family: var(--font-mono);
1435
+ font-size: 0.78em;
1436
+ font-weight: 500;
1437
+ letter-spacing: 0.14em;
1438
+ text-transform: uppercase;
1439
+ border-bottom: 2px solid var(--seed-border-strong);
1440
+ }
1441
+ .colamd-document hr { border-top: 2px solid var(--seed-border-strong); }
1442
+
1443
+ .colamd-document p { text-indent: 2em; }
1444
+ .colamd-document li p,
1445
+ .colamd-document td p,
1446
+ .colamd-document th p,
1447
+ .colamd-document blockquote p {
1448
+ text-indent: 0;
1449
+ }
1450
+
1451
+ /* ═══════════════════════════════════════════════════════════
1452
+ SECTION 4 — Print
1453
+ 应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
1454
+ ═══════════════════════════════════════════════════════════ */
1455
+
1456
+ @media print {
1457
+ html,
1458
+ body {
1459
+ background: var(--bg-color);
1460
+ color: var(--text-color);
1461
+ -webkit-print-color-adjust: exact;
1462
+ print-color-adjust: exact;
1463
+ }
1464
+ }