@bytechain.cn/colamd-themes 0.6.2 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,837 +1,1187 @@
1
- /*
2
- * ColaMD Theme: Broadside(大字报 · 手工精修版,逐页版式复刻)
3
- * Near-black newspaper canvas, warm cream text, single fire-orange accent;
4
- * orange register(cover/section/kpi/steps/closing)整页换 fire orange,"ink on fire"。
5
- * 来源:D:\workspace\git\beautiful-html-templates\templates\broadside\template.html(16 页)
6
- * + design.md(Barlow 900 小写巨字 / 双 register / 平面 1px hairline 体系)
7
- *
8
- * paradigm 备案与微调说明(校验基准见 src/templates/theme-paradigm.md):
9
- * SL-01/SL-02 —— 橙色环境页 #e85d26(S≈83%)是模板身份"orange register 整页环境色",
10
- * 但它只出现在 SECTION 1.6 版式规则里,不进 seed 色板;seed 层
11
- * surface/panel 全部近中性,SL-01/SL-02 实测通过;
12
- * SL-03 —— surface 微调 #111111→#111110(H0→H60,视觉无差),与 panel/panel-alt
13
- * 同入 60° 暖灰轴,保三层表面同色相轴(可修则修);
14
- * NT-01 —— cream 墨阶并轴:ink-muted #888880→#8a8680(H60→H36)、ink-dim 微调,
15
- * 三档 ΔH≤2°(可修则修,视觉无差);
16
- * CR-03 —— ink-dim 模板 #505048 只有 2.3:1,提亮到 #6b6862(3.4:1)保 MUST(可修则修);
17
- * NT-02 —— 模板 hairline #282826 与 panel 明度差 0.055<0.08(边框不可见),提亮到
18
- * #7a7770(可修则修);1.6 版式层 chrome 仍用模板字面值 #282826;
19
- * CR-04 —— accent #e85d26 对 #111 实测 5.5:1 ≥4.5,无需备案;橙底页文字一律切墨
20
- * (ink on fire,#111 字面值),橙从不做橙底上的文字色;
21
- * NT-03 —— border #7a7770 S=4.3% ≤5%,通过。
22
- * 未复刻项(行式 DOM 无挂点,逐一注明于 SECTION 1.6):巨字引号以 ::before 近似,
23
- * 其余见 1.5 注释清单。同形页:P3 statement/P6 fadelist/P9 compare/P15 cycle
24
- * 均不单列,差异在对应版式注释备案。
25
- *
26
- * 契约:ColaMD Extend 2.7.13(CodeMirror 6 编辑器 + Pele 图表引擎)
27
- *
28
- * 两条硬规矩:
29
- * 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
30
- * 编辑器继承不到。
31
- * 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
32
- * 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
33
- * 并且引用/代码块**不能加纵向 padding**——那会按行累加。
34
- *
35
- * ═══════════════════════════════════════════════════════════
36
- * SECTION 1 — Design Tokens
37
- * 改 11 个种子色 + 3 组字体即可换一套主题
38
- * ═══════════════════════════════════════════════════════════ */
39
-
40
- :root {
41
-
42
- /* ── 1.1 Seed Palette ──
43
- 本工具的再生成与校验读这一层;编辑器不消费。
44
- 来源(template.html :root):bg #111111 / bg-alt #1a1a18 / orange #e85d26
45
- fg #f0ece5 / fg-2 #888880 / fg-3 #505048 / border #282826
46
- 模板约定:橙 = 暗底上的唯一强调(kicker/stat/序标/高亮条),也是声明页
47
- (cover/chapter/stats/diagram/end)的整页环境色;橙底页文字一律墨 #111。 */
48
- --seed-accent: #e85d26;
49
- --seed-accent-light: #ef7d50; /* 派生提亮档(模板无此token) */
50
- --seed-accent-dark: #c74c1f; /* 派生加深档 */
51
- --seed-surface: #111110; /* 模板 #111111 微调保 SL-03(见头注) */
52
- --seed-panel: #1a1a18; /* bg-alt 次表面 */
53
- --seed-panel-alt: #282826; /* border-dark 档 */
54
- --seed-ink: #f0ece5;
55
- --seed-ink-muted: #8a8680; /* 模板 #888880 并轴微调(NT-01) */
56
- --seed-ink-dim: #6b6862; /* 模板 #505048 提亮保 CR-03 ≥3:1 */
57
- --seed-border: #7a7770; /* 模板 #282826 提亮保 NT-02(见头注) */
58
- --seed-border-strong: #57534d; /* hr/th 强线档(暖灰) */
59
-
60
- /* ── 1.2 Semantic Colors(活变量)── */
61
- --bg-color: var(--seed-surface);
62
- --text-color: var(--seed-ink);
63
- --text-secondary: var(--seed-ink-muted);
64
- --text-muted: var(--seed-ink-dim);
65
- --border-color: var(--seed-border);
66
- --link-color: var(--seed-accent); /* 5.5:1 ≥4.5(CR-04) */
67
-
68
- --code-bg: var(--seed-panel);
69
- --code-block-bg: var(--seed-panel);
70
- --code-block-text: #f0ece5;
71
-
72
- --blockquote-border: var(--seed-accent); /* 模板 .rule 36×2 橙短线的竖轨回声 */
73
- --blockquote-bg: rgba(255, 255, 255, 0.04); /* img-placeholder 同款白纱 */
74
- --table-header-bg: var(--seed-panel);
75
-
76
- --selection-bg: rgba(232, 93, 38, 0.25);
77
- --highlight-bg: rgba(232, 93, 38, 0.30);
78
-
79
- /* ── 1.3 Typography & Metrics(活变量)──
80
- Barlow 单一字相体系(400/500/700/800/900),display 永不大写;
81
- IBM Plex Mono 只做 chrome(kicker/序标/页码);Noto Sans SC 全角位兜底。 */
82
- --font-body: "Barlow", "Noto Sans SC", sans-serif;
83
- --font-mono: "IBM Plex Mono", "Noto Sans Mono CJK SC", monospace;
84
- --editor-font-size: 16px;
85
- --editor-column-width: 820px;
86
-
87
- /* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
88
- 图画在暗底上;accent 橙 = 模板 bar-fill.accent / stat-value 的高亮条。 */
89
- --pele-bg: var(--code-block-bg);
90
- --pele-fg: var(--code-block-text);
91
- --pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
92
- --pele-line: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
93
- --pele-surface: color-mix(in srgb, var(--code-block-text) 14%, var(--code-block-bg));
94
- --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 24%, var(--code-block-bg));
95
- --pele-border: color-mix(in srgb, var(--code-block-text) 40%, var(--code-block-bg));
96
- --pele-accent: var(--seed-accent);
97
- --pele-radius: 0px; /* 模板:平面体系,除 nav-dot 外零圆角 */
98
- }
99
-
100
- /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 broadside 16 页逐页复刻)──
101
- 换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
102
- 模板全 vw 流式,@1920 1vw=19.2px,px ÷ 26 = em(换算式随属性注释)。
103
- 字体体系:Barlow(display 900 小写 / h1 800 / h2 700 / h3 600,负字距)
104
- + IBM Plex Mono(chrome 500 大写 .14em)。页面对照(16 页 → 11 版式):
105
- cover←P1 section←P2(chapter) quote←P8 agenda←P7(list)
106
- kpi←P5(stats) timeline←P14(vtimeline) matrix←P13(pyramid)
107
- steps←P11(diagram) closing←P16(end)
108
- 同形不单列:P3 statement→quote(7.5vw 橙字声明,quote 版式承担大字声部,
109
- 色差备案);P4 split→two-col(左文右图对半,two-col 保持上游默认);
110
- P6 fadelist→cover(三词渐隐+右下巨题为绝对定位组合,无挂点);
111
- P9 compare→two-col(右半橙面板无挂点);P15 cycle→steps(暗底页,
112
- 与 steps 橙底差异备案);P10 chart/P12 pie→figure(保持上游默认,
113
- --pele-accent 橙承担高亮条)。
114
- 换底页(orange register):cover / section / kpi / steps / closing ——
115
- 整页换 #e85d26(五层链见 1.6.2),ghost opacity:0、td 换墨。
116
- 未复刻装饰(行式 DOM 无挂点):巨引号(::before 近似)、cover-meta 底部
117
- 作者行、broadside-num 目录号、rule 36×2 橙短线、fadelist 渐隐阶梯、
118
- compare 橙面板、bar-track/pie-donut、pyramid 明度阶梯、vt-spine 橙方块、
119
- cycle 2×2 箭头网格、end 底部落款条。 */
120
- :root {
121
- --slide-mono: "IBM Plex Mono", "Noto Sans Mono CJK SC", monospace;
122
- --slide-title-font: "Barlow", "Noto Sans SC", sans-serif;
123
- --slide-title-size: 3.32em; /* 内容页题 h2 4.5vw=86.4px ÷26 */
124
- --slide-title-weight: 700; /* h2 700;display 永不大写 */
125
- --slide-subhead-weight: 800; /* h1 800 */
126
- --slide-title-tracking: -0.02em;
127
- --slide-title-line-height: 1.1;
128
- --slide-cover-title-size: 9.6em; /* display 13vw=249.6px ÷26 */
129
- --slide-cover-title-line-height: 0.88;
130
- --slide-cover-title-tracking: -0.04em;
131
- --slide-section-title-size: 5.54em; /* chapter h1 7.5vw=144px ÷26 */
132
- --slide-closing-title-size: 9.6em; /* end 同 display 13vw ÷26 */
133
- --slide-lead-size: 1.18em; /* lead 1.6vw=30.7px ÷26 */
134
- --slide-kicker-size: clamp(11px, 0.72vw, 14px); /* label 0.72vw=13.8px @1920 */
135
- --slide-kicker-tracking: 0.14em; /* 模板 .label/.kicker .14em */
136
- --slide-kicker-transform: uppercase;
137
- --slide-chrome-opacity: 0.75;
138
- --slide-chrome-transform: uppercase; /* chrome 全大写(mono 声部) */
139
- --slide-kpi-number-size: 4.56em; /* stat-value 5.5vw=105.6px ÷26 ÷0.89(li) */
140
- --slide-quote-size: 2.81em; /* quote-text 3.8vw=73px ÷26 */
141
- --slide-page-pad-x: 5.5vw; /* 模板 pad-x */
142
- --slide-page-top-pad: 48px; /* pad-y 5.5vh≈59px@1080 − chrome 安全区 */
143
- --slide-page-top-pad-print: 42px;
144
- --slide-cover-text-align: left;
145
- --slide-cover-lead-inline: auto;
146
- }
147
-
148
- /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
149
- body.presenting / body.slides-printing 作用域) ═══════════════ */
150
-
151
- /* 1.6.1 页标题声部对齐:Barlow 700 小写负字距;压掉文档式 h1/h2 的 border-bottom
152
- (编辑器规则带 id 权重会漏进放映);kicker 全局切橙(模板 .kicker 暗底声部) */
153
- body.presenting #editor .cm-content .cm-md-page-title,
154
- body.slides-printing #editor .cm-content .cm-md-page-title {
155
- font-family: var(--slide-title-font);
156
- font-size: var(--slide-title-size);
157
- font-weight: 700;
158
- line-height: 1.1;
159
- letter-spacing: -0.02em;
160
- text-transform: none; /* Broadside:display 永不大写 */
161
- color: var(--text-color);
162
- border-bottom: none;
163
- padding-bottom: 0;
164
- margin-bottom: 0.45em;
165
- }
166
- body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
167
- body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
168
- color: var(--seed-accent);
169
- }
170
-
171
- /* 1.6.2 orange register · P1/P2/P5/P11/P16(cover/section/kpi/steps/closing):
172
- 整页换 fire orange("ink on fire")。底色必须打满整条层叠链——
173
- body / #editor / .cm-editor / .cm-scroller / .cm-content 五层,只挂 body 或漏
174
- #editor 都会被平台原暗底反盖(与 pin-and-paper 1.6.4 同病) */
175
- body.presenting:has(#editor[data-slide-layout='cover']),
176
- body.presenting:has(#editor[data-slide-layout='section']),
177
- body.presenting:has(#editor[data-slide-layout='kpi']),
178
- body.presenting:has(#editor[data-slide-layout='steps']),
179
- body.presenting:has(#editor[data-slide-layout='closing']),
180
- body.slides-printing:has(.cm-md-slide-cover),
181
- body.slides-printing:has(.cm-md-slide-section),
182
- body.slides-printing:has(.cm-md-slide-kpi),
183
- body.slides-printing:has(.cm-md-slide-steps),
184
- body.slides-printing:has(.cm-md-slide-closing) {
185
- background: var(--seed-accent);
186
- }
187
- body.presenting #editor[data-slide-layout='cover'],
188
- body.presenting #editor[data-slide-layout='section'],
189
- body.presenting #editor[data-slide-layout='kpi'],
190
- body.presenting #editor[data-slide-layout='steps'],
191
- body.presenting #editor[data-slide-layout='closing'],
192
- body.presenting #editor[data-slide-layout='cover'] .cm-editor,
193
- body.presenting #editor[data-slide-layout='cover'] .cm-scroller,
194
- body.presenting #editor[data-slide-layout='cover'] .cm-content,
195
- body.presenting #editor[data-slide-layout='section'] .cm-editor,
196
- body.presenting #editor[data-slide-layout='section'] .cm-scroller,
197
- body.presenting #editor[data-slide-layout='section'] .cm-content,
198
- body.presenting #editor[data-slide-layout='kpi'] .cm-editor,
199
- body.presenting #editor[data-slide-layout='kpi'] .cm-scroller,
200
- body.presenting #editor[data-slide-layout='kpi'] .cm-content,
201
- body.presenting #editor[data-slide-layout='steps'] .cm-editor,
202
- body.presenting #editor[data-slide-layout='steps'] .cm-scroller,
203
- body.presenting #editor[data-slide-layout='steps'] .cm-content,
204
- body.presenting #editor[data-slide-layout='closing'] .cm-editor,
205
- body.presenting #editor[data-slide-layout='closing'] .cm-scroller,
206
- body.presenting #editor[data-slide-layout='closing'] .cm-content,
207
- body.slides-printing:has(.cm-md-slide-cover) #editor,
208
- body.slides-printing:has(.cm-md-slide-cover) .cm-editor,
209
- body.slides-printing:has(.cm-md-slide-cover) .cm-scroller,
210
- body.slides-printing:has(.cm-md-slide-cover) .cm-content,
211
- body.slides-printing:has(.cm-md-slide-section) #editor,
212
- body.slides-printing:has(.cm-md-slide-section) .cm-editor,
213
- body.slides-printing:has(.cm-md-slide-section) .cm-scroller,
214
- body.slides-printing:has(.cm-md-slide-section) .cm-content,
215
- body.slides-printing:has(.cm-md-slide-kpi) #editor,
216
- body.slides-printing:has(.cm-md-slide-kpi) .cm-editor,
217
- body.slides-printing:has(.cm-md-slide-kpi) .cm-scroller,
218
- body.slides-printing:has(.cm-md-slide-kpi) .cm-content,
219
- body.slides-printing:has(.cm-md-slide-steps) #editor,
220
- body.slides-printing:has(.cm-md-slide-steps) .cm-editor,
221
- body.slides-printing:has(.cm-md-slide-steps) .cm-scroller,
222
- body.slides-printing:has(.cm-md-slide-steps) .cm-content,
223
- body.slides-printing:has(.cm-md-slide-closing) #editor,
224
- body.slides-printing:has(.cm-md-slide-closing) .cm-editor,
225
- body.slides-printing:has(.cm-md-slide-closing) .cm-scroller,
226
- body.slides-printing:has(.cm-md-slide-closing) .cm-content {
227
- background: var(--seed-accent);
228
- }
229
- /* 橙底页正文/行内元素全切墨(ink on fire 字面值,模板身份);
230
- 序标/引标/链接地址走墨 .45 hint 档(模板 ink-on-orange-faint) */
231
- body.presenting #editor[data-slide-layout='cover'] .cm-content,
232
- body.presenting #editor[data-slide-layout='section'] .cm-content,
233
- body.presenting #editor[data-slide-layout='kpi'] .cm-content,
234
- body.presenting #editor[data-slide-layout='steps'] .cm-content,
235
- body.presenting #editor[data-slide-layout='closing'] .cm-content,
236
- body.slides-printing:has(.cm-md-slide-cover) .cm-content,
237
- body.slides-printing:has(.cm-md-slide-section) .cm-content,
238
- body.slides-printing:has(.cm-md-slide-kpi) .cm-content,
239
- body.slides-printing:has(.cm-md-slide-steps) .cm-content,
240
- body.slides-printing:has(.cm-md-slide-closing) .cm-content {
241
- color: #111111;
242
- }
243
- body.presenting #editor[data-slide-layout='cover'] .cm-md-strong,
244
- body.presenting #editor[data-slide-layout='section'] .cm-md-strong,
245
- body.presenting #editor[data-slide-layout='kpi'] .cm-md-strong,
246
- body.presenting #editor[data-slide-layout='steps'] .cm-md-strong,
247
- body.presenting #editor[data-slide-layout='closing'] .cm-md-strong,
248
- body.presenting #editor[data-slide-layout='cover'] .cm-md-link,
249
- body.presenting #editor[data-slide-layout='section'] .cm-md-link,
250
- body.presenting #editor[data-slide-layout='kpi'] .cm-md-link,
251
- body.presenting #editor[data-slide-layout='steps'] .cm-md-link,
252
- body.presenting #editor[data-slide-layout='closing'] .cm-md-link,
253
- body.slides-printing:has(.cm-md-slide-cover) .cm-md-strong,
254
- body.slides-printing:has(.cm-md-slide-section) .cm-md-strong,
255
- body.slides-printing:has(.cm-md-slide-kpi) .cm-md-strong,
256
- body.slides-printing:has(.cm-md-slide-steps) .cm-md-strong,
257
- body.slides-printing:has(.cm-md-slide-closing) .cm-md-strong,
258
- body.slides-printing:has(.cm-md-slide-cover) .cm-md-link,
259
- body.slides-printing:has(.cm-md-slide-section) .cm-md-link,
260
- body.slides-printing:has(.cm-md-slide-kpi) .cm-md-link,
261
- body.slides-printing:has(.cm-md-slide-steps) .cm-md-link,
262
- body.slides-printing:has(.cm-md-slide-closing) .cm-md-link {
263
- color: #111111;
264
- }
265
- body.presenting #editor[data-slide-layout='cover'] .cm-md-listmark,
266
- body.presenting #editor[data-slide-layout='section'] .cm-md-listmark,
267
- body.presenting #editor[data-slide-layout='kpi'] .cm-md-listmark,
268
- body.presenting #editor[data-slide-layout='steps'] .cm-md-listmark,
269
- body.presenting #editor[data-slide-layout='closing'] .cm-md-listmark,
270
- body.presenting #editor[data-slide-layout='cover'] .cm-md-url,
271
- body.presenting #editor[data-slide-layout='section'] .cm-md-url,
272
- body.presenting #editor[data-slide-layout='kpi'] .cm-md-url,
273
- body.presenting #editor[data-slide-layout='steps'] .cm-md-url,
274
- body.presenting #editor[data-slide-layout='closing'] .cm-md-url,
275
- body.slides-printing:has(.cm-md-slide-cover) .cm-md-listmark,
276
- body.slides-printing:has(.cm-md-slide-section) .cm-md-listmark,
277
- body.slides-printing:has(.cm-md-slide-kpi) .cm-md-listmark,
278
- body.slides-printing:has(.cm-md-slide-steps) .cm-md-listmark,
279
- body.slides-printing:has(.cm-md-slide-closing) .cm-md-listmark,
280
- body.slides-printing:has(.cm-md-slide-cover) .cm-md-url,
281
- body.slides-printing:has(.cm-md-slide-section) .cm-md-url,
282
- body.slides-printing:has(.cm-md-slide-kpi) .cm-md-url,
283
- body.slides-printing:has(.cm-md-slide-steps) .cm-md-url,
284
- body.slides-printing:has(.cm-md-slide-closing) .cm-md-url {
285
- color: rgba(17, 17, 17, 0.45);
286
- }
287
- /* 幽灵页码 = cream(var(--text-color)),落橙底上同色错乱——与上游 section/closing
288
- 的处理一致,橙底五版式整页隐藏 */
289
- body.presenting:has(#editor[data-slide-layout='cover']) .slide-ghost,
290
- body.presenting:has(#editor[data-slide-layout='section']) .slide-ghost,
291
- body.presenting:has(#editor[data-slide-layout='kpi']) .slide-ghost,
292
- body.presenting:has(#editor[data-slide-layout='steps']) .slide-ghost,
293
- body.presenting:has(#editor[data-slide-layout='closing']) .slide-ghost,
294
- body.slides-printing:has(.cm-md-slide-cover) .slide-ghost,
295
- body.slides-printing:has(.cm-md-slide-section) .slide-ghost,
296
- body.slides-printing:has(.cm-md-slide-kpi) .slide-ghost,
297
- body.slides-printing:has(.cm-md-slide-steps) .slide-ghost,
298
- body.slides-printing:has(.cm-md-slide-closing) .slide-ghost {
299
- opacity: 0;
300
- }
301
- /* 橙底页表格 td:cream 正文被橙底吃掉 → 换墨色(th 自带 panel 底不受影响) */
302
- body.presenting #editor[data-slide-layout='cover'] .cm-md-table-widget td,
303
- body.presenting #editor[data-slide-layout='section'] .cm-md-table-widget td,
304
- body.presenting #editor[data-slide-layout='kpi'] .cm-md-table-widget td,
305
- body.presenting #editor[data-slide-layout='steps'] .cm-md-table-widget td,
306
- body.presenting #editor[data-slide-layout='closing'] .cm-md-table-widget td,
307
- body.slides-printing:has(.cm-md-slide-cover) .cm-md-table-widget td,
308
- body.slides-printing:has(.cm-md-slide-section) .cm-md-table-widget td,
309
- body.slides-printing:has(.cm-md-slide-kpi) .cm-md-table-widget td,
310
- body.slides-printing:has(.cm-md-slide-steps) .cm-md-table-widget td,
311
- body.slides-printing:has(.cm-md-slide-closing) .cm-md-table-widget td {
312
- color: #111111;
313
- }
314
- /* 橙底页 chrome:ink .55 + 模板 hairline rgba(17,17,17,.2) */
315
- body.presenting #editor[data-slide-layout='cover'] .slide-chrome,
316
- body.presenting #editor[data-slide-layout='cover'] .slide-foot,
317
- body.presenting #editor[data-slide-layout='section'] .slide-chrome,
318
- body.presenting #editor[data-slide-layout='section'] .slide-foot,
319
- body.presenting #editor[data-slide-layout='kpi'] .slide-chrome,
320
- body.presenting #editor[data-slide-layout='kpi'] .slide-foot,
321
- body.presenting #editor[data-slide-layout='steps'] .slide-chrome,
322
- body.presenting #editor[data-slide-layout='steps'] .slide-foot,
323
- body.presenting #editor[data-slide-layout='closing'] .slide-chrome,
324
- body.presenting #editor[data-slide-layout='closing'] .slide-foot,
325
- body.slides-printing:has(.cm-md-slide-cover) .slide-chrome,
326
- body.slides-printing:has(.cm-md-slide-cover) .slide-foot,
327
- body.slides-printing:has(.cm-md-slide-section) .slide-chrome,
328
- body.slides-printing:has(.cm-md-slide-section) .slide-foot,
329
- body.slides-printing:has(.cm-md-slide-kpi) .slide-chrome,
330
- body.slides-printing:has(.cm-md-slide-kpi) .slide-foot,
331
- body.slides-printing:has(.cm-md-slide-steps) .slide-chrome,
332
- body.slides-printing:has(.cm-md-slide-steps) .slide-foot,
333
- body.slides-printing:has(.cm-md-slide-closing) .slide-chrome,
334
- body.slides-printing:has(.cm-md-slide-closing) .slide-foot {
335
- color: rgba(17, 17, 17, 0.55);
336
- border-color: rgba(17, 17, 17, 0.2);
337
- }
338
-
339
- /* 1.6.3 cover · P1(orange):13vw 巨题底部锚定,lead 墨 .65 max-width 55%;
340
- cover-meta 底部作者行与顶线无挂点(未复刻);broadside-num/corner-label →
341
- kicker 横排 mono 大写墨 .55 */
342
- body.presenting #editor[data-slide-layout='cover'] .cm-content,
343
- body.slides-printing:has(.cm-md-slide-cover) .cm-content {
344
- justify-content: flex-end;
345
- padding-bottom: 110px; /* cover-meta 带留白 ≈ gap-lg×2+lead 行 */
346
- }
347
- body.presenting #editor .cm-content .cm-md-slide-cover .cm-md-page-title,
348
- body.slides-printing .cm-md-slide-cover.cm-md-page-title {
349
- font-size: var(--slide-cover-title-size);
350
- line-height: 0.88;
351
- letter-spacing: -0.04em;
352
- max-width: 95%;
353
- }
354
- body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
355
- body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
356
- font-size: var(--slide-lead-size); /* lead 1.6vw ÷26 */
357
- opacity: 0.65;
358
- max-width: 55%;
359
- }
360
- body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
361
- body.slides-printing .cm-md-slide-cover .cm-md-page-title[data-slide-kicker]::before {
362
- color: #111111;
363
- opacity: 0.55; /* broadside-num ink .45/.55 档 */
364
- }
365
-
366
- /* 1.6.4 section · P2(chapter,orange):h1 7.5vw 800 墨题,lead max-width 50%;
367
- chapter-num → kicker mono 大写 .2em 墨 .55;chapter-rule 36×2 墨条无挂点(未复刻) */
368
- body.presenting #editor .cm-content .cm-md-slide-section .cm-md-page-title,
369
- body.slides-printing .cm-md-slide-section.cm-md-page-title {
370
- font-size: var(--slide-section-title-size); /* 7.5vw ÷26 */
371
- font-weight: 800;
372
- line-height: 0.9;
373
- letter-spacing: -0.03em;
374
- color: #111111;
375
- }
376
- body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
377
- body.slides-printing .cm-md-slide-section.cm-md-page-lead {
378
- font-size: var(--slide-lead-size);
379
- opacity: 0.65;
380
- max-width: 50%;
381
- }
382
- body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
383
- body.slides-printing .cm-md-slide-section .cm-md-page-title[data-slide-kicker]::before {
384
- letter-spacing: 0.2em; /* .chapter-num .2em */
385
- color: #111111;
386
- opacity: 0.55;
387
- }
388
-
389
- /* 1.6.5 kpi · P5(stats,orange):无卡裸排 = stat-card 顶线 1px 墨 .22 +
390
- stat-value 5.5vw 900 墨 + 说明墨 .65;三列 inline-block;stat-note 无挂点 */
391
- body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
392
- body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
393
- font-size: 0.89em; /* .stat-label 1.2vw=23px ÷26 */
394
- background: transparent;
395
- border: none;
396
- border-top: 1px solid rgba(17, 17, 17, 0.22);
397
- box-shadow: none;
398
- border-radius: 0;
399
- padding: 0.9em 1.2em 0 0; /* gap-md 2vh≈21.6px ÷23.04 ≈ 0.9em */
400
- margin: 0 2.8% 1.2em 0;
401
- width: 30.8%; /* 三列 */
402
- display: inline-block;
403
- vertical-align: top;
404
- color: rgba(17, 17, 17, 0.65); /* .orange .stat-label */
405
- }
406
- body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
407
- body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
408
- font-size: var(--slide-kpi-number-size); /* 5.5vw ÷26 ÷0.89 */
409
- font-weight: 900;
410
- line-height: 1;
411
- letter-spacing: -0.04em;
412
- color: #111111; /* .orange .stat-value */
413
- }
414
- body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-listmark,
415
- body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-listmark {
416
- display: none; /* stat-card 无序号 */
417
- }
418
-
419
- /* 1.6.6 steps · P11(diagram,orange):flow 裸排四步——flow-num 5vw 900 墨 .2、
420
- flow-title h3 700 墨、flow-desc 墨 .6;箭头 → 无挂点(未复刻);
421
- P15 cycle 同形不单列(暗底 + cycle-step 顶线 3px 橙,差异备案) */
422
- body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
423
- body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
424
- font-size: 0.89em; /* .flow-desc 1.2vw ÷26 */
425
- background: transparent;
426
- border: none;
427
- box-shadow: none;
428
- border-radius: 0;
429
- padding: 0;
430
- margin: 0 2.5% 1.6em 0;
431
- width: 22.5%; /* 四列 */
432
- display: inline-block;
433
- vertical-align: top;
434
- color: rgba(17, 17, 17, 0.6); /* .orange .flow-desc */
435
- }
436
- body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
437
- body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
438
- font-weight: 900;
439
- font-size: 4.16em; /* .flow-num 5vw=96px ÷26 ÷0.89 */
440
- line-height: 1;
441
- letter-spacing: -0.03em;
442
- margin-right: 0.25em;
443
- color: rgba(17, 17, 17, 0.2); /* .orange .flow-num(行内近似独立行) */
444
- }
445
- body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
446
- body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
447
- font-size: 2.34em; /* .flow-title 2.8vw=53.8px ÷26 ÷0.89 */
448
- font-weight: 700;
449
- line-height: 1.15;
450
- color: #111111;
451
- }
452
-
453
- /* 1.6.7 matrix · P13(pyramid,暗底):pyr-level 胶囊去底重画 = 左 4px 橙轨 +
454
- 橙阶底(五行 75/50/28/14/6% 明度阶梯与宽度递变无 nth 挂点,取中档 16% 近似);
455
- pyr-name h3 900 小写 + pyr-desc fg-2 */
456
- body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-page-title,
457
- body.slides-printing .cm-md-slide-matrix.cm-md-page-title {
458
- font-weight: 900; /* pyramid 页题 900 */
459
- }
460
- body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
461
- body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
462
- font-size: 0.89em; /* .pyr-desc 1.2vw ÷26 */
463
- background: rgba(232, 93, 38, 0.16);
464
- border: none;
465
- border-left: 4px solid var(--seed-accent);
466
- box-shadow: none;
467
- border-radius: 0;
468
- padding: 0.55em 1.2em 0.55em 0.8em;
469
- margin: 0 0 0.14em; /* .pyramid gap 3px */
470
- color: var(--text-secondary); /* .pyr-desc fg-2 */
471
- }
472
- body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
473
- body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
474
- font-size: 2.34em; /* .pyr-name 2.8vw ÷26 ÷0.89 */
475
- font-weight: 900;
476
- line-height: 1.1;
477
- text-transform: lowercase; /* Broadside 小写 display */
478
- color: var(--text-color);
479
- }
480
-
481
- /* 1.6.8 timeline · P14(vtimeline,暗底):vt-hl 页题 900 + 1px hairline 底线;
482
- 行 = vt-date mono 大写 .1em + vt-title h3 900 小写 + vt-body fg-2;
483
- vt-spine 橙方块节点 absolute 无挂点(未复刻) */
484
- body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-page-title,
485
- body.slides-printing .cm-md-slide-timeline.cm-md-page-title {
486
- font-weight: 900;
487
- border-bottom: 1px solid var(--border-color);
488
- padding-bottom: 0.45em; /* vt-hl padding-bottom gap-md */
489
- }
490
- body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li,
491
- body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
492
- font-size: 0.89em; /* .vt-body 1.2vw ÷26 */
493
- color: var(--text-secondary);
494
- margin: 0 0 1.1em;
495
- }
496
- body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-listmark,
497
- body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-listmark {
498
- font-family: var(--slide-mono);
499
- font-weight: 500;
500
- font-size: 0.75em; /* .vt-date 0.9vw=17.3px ÷26 ÷0.89 */
501
- letter-spacing: 0.1em;
502
- color: var(--text-muted); /* fg-3 提档(#505048 过暗) */
503
- }
504
- body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-strong,
505
- body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-strong {
506
- font-size: 2.34em; /* .vt-title 2.8vw ÷26 ÷0.89 */
507
- font-weight: 900;
508
- line-height: 1.1;
509
- text-transform: lowercase;
510
- color: var(--text-color);
511
- }
512
-
513
- /* 1.6.9 agenda · P7(list,暗底):bullet-list lead 1.6vw 500 + 橙 "/" mono 700
514
- 序标(模板 li::before 无挂点 → listmark 承担);页题走 1.6.1 默认 h2 声部 */
515
- body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
516
- body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
517
- font-size: 1.18em; /* .bullet-list li 1.6vw ÷26 */
518
- font-weight: 500;
519
- line-height: 1.4;
520
- margin: 0 0 0.9em; /* bullet-list gap-md 2vh */
521
- color: var(--text-color);
522
- }
523
- body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
524
- body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
525
- font-family: var(--slide-mono);
526
- font-weight: 700;
527
- margin-right: 0.3em;
528
- color: var(--seed-accent); /* "/" 橙 */
529
- }
530
-
531
- /* 1.6.10 quote · P8(quote spread,暗底):quote-text 3.8vw 700 cream 78% 宽裸排;
532
- 巨引号 quote-mark 10vw 橙 900 lh .6 以 ::before 近似;署名行 = mono 大写 .14em;
533
- P3 statement 同形不单列(7.5vw 橙字声明由本版式承担,色差备案于头注) */
534
- body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
535
- body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
536
- font-size: var(--slide-quote-size); /* 3.8vw ÷26 */
537
- font-weight: 700;
538
- line-height: 1.15;
539
- letter-spacing: -0.02em;
540
- color: var(--text-color);
541
- background: transparent;
542
- border-left: none; /* 模板金句裸排,无竖轨 */
543
- padding-left: 0;
544
- padding-right: 0;
545
- max-width: 78%;
546
- }
547
- body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
548
- body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
549
- font-family: var(--slide-title-font);
550
- font-weight: 900;
551
- font-size: 7.38em; /* quote-mark 10vw=192px ÷26 */
552
- line-height: 0.6;
553
- color: var(--seed-accent);
554
- }
555
- body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
556
- body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
557
- margin-top: 1.2em; /* quote-attr 间距(CSS-03:留白只走 margin) */
558
- font-family: var(--slide-mono);
559
- font-weight: 500;
560
- font-size: 0.53em; /* label 0.72vw ÷26 */
561
- letter-spacing: 0.14em;
562
- text-transform: uppercase;
563
- color: var(--text-muted);
564
- }
565
- body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line .cm-md-strong,
566
- body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line .cm-md-strong {
567
- color: var(--seed-accent); /* .label accent 署名橙 */
568
- }
569
-
570
- /* 1.6.11 closing · P16(end,orange):13vw 巨题墨 + 联络/行动清单 lead 墨 .65;
571
- 底部落款条 border-top 无挂点(未复刻);模板无清单序号 → "/" 墨 .45 保留 */
572
- body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-title,
573
- body.slides-printing .cm-md-slide-closing.cm-md-page-title {
574
- font-size: var(--slide-closing-title-size);
575
- line-height: 0.9;
576
- letter-spacing: -0.04em;
577
- color: #111111;
578
- }
579
- body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
580
- body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
581
- font-size: var(--slide-lead-size); /* contact lead 1.6vw ÷26 */
582
- background: transparent;
583
- border: none;
584
- box-shadow: none;
585
- border-radius: 0;
586
- padding: 0;
587
- margin: 0 0 0.55em;
588
- color: rgba(17, 17, 17, 0.65);
589
- }
590
-
591
- /* 1.6.12 chrome · IBM Plex Mono 大写 .14em label 声部,1px #282826 hairline
592
- (模板字面值;橙底页覆写见 1.6.2 组) */
593
- body.presenting .slide-chrome,
594
- body.slides-printing .slide-chrome,
595
- body.presenting .slide-foot,
596
- body.slides-printing .slide-foot {
597
- font-family: var(--slide-mono);
598
- font-weight: 500;
599
- font-size: clamp(10px, 0.72vw, 14px); /* label 0.72vw */
600
- letter-spacing: 0.14em;
601
- text-transform: uppercase;
602
- color: var(--text-muted);
603
- }
604
- body.presenting .slide-chrome,
605
- body.slides-printing .slide-chrome {
606
- border-bottom: 1px solid #282826;
607
- padding-bottom: 0.5em;
608
- margin-bottom: 0.9em;
609
- }
610
- body.presenting .slide-foot,
611
- body.slides-printing .slide-foot {
612
- border-top: 1px solid #282826;
613
- padding-top: 0.5em;
614
- margin-top: 0.9em;
615
- }
616
-
617
- /* ═══════════════════════════════════════════════════════════
618
- SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
619
- ═══════════════════════════════════════════════════════════ */
620
-
621
- #editor .cm-content {
622
- font-family: var(--font-body);
623
- line-height: 1.75;
624
- }
625
-
626
- /* ── 2.1 Headings ──
627
- 模板字阶:h1 800 / h2 700 / h3 600;display 永不大写;标题无下划线
628
- (hairline 只属于 chrome/stat-card),生成版的 h1/h2 border-bottom 移除 */
629
- #editor .cm-content .cm-md-atxheading1,
630
- #editor .cm-content .cm-md-atxheading2,
631
- #editor .cm-content .cm-md-atxheading3,
632
- #editor .cm-content .cm-md-atxheading4,
633
- #editor .cm-content .cm-md-atxheading5,
634
- #editor .cm-content .cm-md-atxheading6 {
635
- font-family: "Barlow", "Noto Sans SC", sans-serif;
636
- color: var(--text-color);
637
- font-weight: 700;
638
- line-height: 1.1;
639
- letter-spacing: -0.02em;
640
- }
641
-
642
- #editor .cm-content .cm-md-atxheading1 {
643
- font-size: 2.5em;
644
- font-weight: 800;
645
- line-height: 0.95;
646
- letter-spacing: -0.03em;
647
- }
648
- #editor .cm-content .cm-md-atxheading2 { font-size: 2em; }
649
- #editor .cm-content .cm-md-atxheading3 { font-size: 1.5em; font-weight: 600; line-height: 1.2; }
650
- #editor .cm-content .cm-md-atxheading4 { font-size: 1.25em; font-weight: 600; }
651
- #editor .cm-content .cm-md-atxheading5 { font-size: 1.1em; font-weight: 600; }
652
- #editor .cm-content .cm-md-atxheading6 {
653
- font-size: 0.85em;
654
- font-family: var(--font-mono); /* h6 = .label chrome 声部 */
655
- font-weight: 500;
656
- letter-spacing: 0.14em;
657
- text-transform: uppercase;
658
- }
659
-
660
- /* ── 2.2 Inline ──
661
- 强调 = 字重/尺寸/色(模板体系):strong 用正文色 700;橙只给链接/序标/高亮 */
662
- #editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 700; }
663
- #editor .cm-content .cm-md-em { font-style: italic; }
664
- #editor .cm-content .cm-md-strike { text-decoration: line-through; }
665
- #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
666
- #editor .cm-content .cm-md-link { color: var(--link-color); }
667
- #editor .cm-content .cm-md-url { color: var(--text-muted); }
668
-
669
- #editor .cm-content .cm-md-inlinecode {
670
- font-family: var(--font-mono);
671
- background: var(--code-bg);
672
- color: var(--text-color);
673
- border-radius: 0; /* 平面体系零圆角 */
674
- }
675
-
676
- #editor .cm-content .cm-md-marker,
677
- #editor .cm-content .cm-md-quotemark,
678
- #editor .cm-content .cm-md-listmark {
679
- color: var(--seed-accent); /* "/" 橙 mono 序标(模板 bullet-marker) */
680
- }
681
-
682
- /* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
683
- 引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
684
- 否则引用里的代码行会盖住代码块底色。 */
685
- #editor .cm-content .cm-md-blockquote {
686
- color: var(--text-secondary);
687
- border-left: 2px solid var(--blockquote-border); /* .rule 2px 橙轨回声 */
688
- padding-left: 16px;
689
- padding-right: 16px;
690
- }
691
-
692
- #editor .cm-content .cm-md-codeblock {
693
- background: var(--code-block-bg);
694
- color: var(--code-block-text);
695
- padding-left: 16px;
696
- padding-right: 16px;
697
- }
698
- #editor .cm-content .cm-md-codeblock-first,
699
- #editor .cm-content .cm-md-codeblock-last {
700
- border-radius: 0;
701
- }
702
-
703
- /* ── 2.4 Table / Rule(模板:1px hairline + mono 大写表头)── */
704
- #editor .cm-content .cm-md-table-widget th,
705
- #editor .cm-content .cm-md-table-widget td {
706
- padding: 10px 14px;
707
- border-color: var(--border-color);
708
- }
709
- #editor .cm-content .cm-md-table-widget th {
710
- background: var(--table-header-bg);
711
- color: var(--text-color);
712
- font-family: var(--font-mono);
713
- font-size: 0.8em;
714
- font-weight: 500;
715
- letter-spacing: 0.14em;
716
- text-transform: uppercase;
717
- border-bottom: 1px solid var(--seed-border-strong);
718
- }
719
- #editor .cm-content .cm-md-hr { border-top-color: var(--border-color); }
720
-
721
- /* ── 2.5 中文首行缩进 ──
722
- CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
723
- #editor .cm-content .cm-line { text-indent: 2em; }
724
-
725
- #editor .cm-content .cm-md-atxheading1,
726
- #editor .cm-content .cm-md-atxheading2,
727
- #editor .cm-content .cm-md-atxheading3,
728
- #editor .cm-content .cm-md-atxheading4,
729
- #editor .cm-content .cm-md-atxheading5,
730
- #editor .cm-content .cm-md-atxheading6,
731
- #editor .cm-content .cm-md-blockquote,
732
- #editor .cm-content .cm-md-codeblock,
733
- #editor .cm-content .cm-md-hr,
734
- #editor .cm-content .cm-md-mermaid,
735
- #editor .cm-content .cm-md-li-0,
736
- #editor .cm-content .cm-md-li-1,
737
- #editor .cm-content .cm-md-li-2,
738
- #editor .cm-content .cm-md-li-3,
739
- #editor .cm-content .cm-md-li-4,
740
- #editor .cm-content .cm-md-li-5,
741
- #editor .cm-content .cm-md-li-6 {
742
- text-indent: 0;
743
- }
744
-
745
- /* ═══════════════════════════════════════════════════════════
746
- SECTION 3 — Exported HTML(.colamd-document,语义标签)
747
- HTML/PDF 导出不走编辑器 DOM;与 SECTION 2 镜像同步。
748
- ═══════════════════════════════════════════════════════════ */
749
-
750
- .colamd-document {
751
- font-family: var(--font-body);
752
- font-size: 16px;
753
- line-height: 1.75;
754
- }
755
-
756
- .colamd-document h1,
757
- .colamd-document h2,
758
- .colamd-document h3,
759
- .colamd-document h4,
760
- .colamd-document h5,
761
- .colamd-document h6 {
762
- font-family: "Barlow", "Noto Sans SC", sans-serif;
763
- color: var(--text-color);
764
- font-weight: 700;
765
- line-height: 1.1;
766
- letter-spacing: -0.02em;
767
- margin: 1.5em 0 0.5em;
768
- }
769
- .colamd-document h1 { font-size: 2.5em; font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; margin-top: 0.4em; }
770
- .colamd-document h2 { font-size: 2em; }
771
- .colamd-document h3 { font-size: 1.5em; font-weight: 600; line-height: 1.2; }
772
- .colamd-document h4 { font-size: 1.25em; font-weight: 600; }
773
- .colamd-document h5 { font-size: 1.1em; font-weight: 600; }
774
- .colamd-document h6 {
775
- font-size: 0.85em;
776
- font-family: var(--font-mono);
777
- font-weight: 500;
778
- letter-spacing: 0.14em;
779
- text-transform: uppercase;
780
- }
781
-
782
- .colamd-document strong { color: var(--text-color); font-weight: 700; }
783
- .colamd-document code {
784
- background: var(--code-bg);
785
- color: var(--text-color);
786
- font-family: var(--font-mono);
787
- border-radius: 0;
788
- }
789
- /* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
790
- .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
791
- .colamd-document pre { background: var(--code-block-bg); }
792
- .colamd-document pre code { color: var(--code-block-text); }
793
- .colamd-document blockquote {
794
- background: var(--blockquote-bg);
795
- color: var(--text-secondary);
796
- border-left: 2px solid var(--blockquote-border);
797
- padding: 0.5em 1.2em;
798
- }
799
- .colamd-document mark { background: var(--highlight-bg); }
800
- .colamd-document th,
801
- .colamd-document td {
802
- border-color: var(--border-color);
803
- padding: 10px 14px;
804
- }
805
- .colamd-document th {
806
- background: var(--table-header-bg);
807
- font-family: var(--font-mono);
808
- font-size: 0.8em;
809
- font-weight: 500;
810
- letter-spacing: 0.14em;
811
- text-transform: uppercase;
812
- border-bottom: 1px solid var(--seed-border-strong);
813
- }
814
- .colamd-document hr { border-top-color: var(--border-color); }
815
-
816
- .colamd-document p { text-indent: 2em; }
817
- .colamd-document li p,
818
- .colamd-document td p,
819
- .colamd-document th p,
820
- .colamd-document blockquote p {
821
- text-indent: 0;
822
- }
823
-
824
- /* ═══════════════════════════════════════════════════════════
825
- SECTION 4 — Print
826
- 应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
827
- ═══════════════════════════════════════════════════════════ */
828
-
829
- @media print {
830
- html,
831
- body {
832
- background: var(--bg-color);
833
- color: var(--text-color);
834
- -webkit-print-color-adjust: exact;
835
- print-color-adjust: exact;
836
- }
837
- }
1
+ /*
2
+ * ColaMD Theme: Broadside(大字报 · 手工精修版,逐页版式复刻)
3
+ * Near-black newspaper canvas, warm cream text, single fire-orange accent;
4
+ * orange register(cover/section/kpi/steps/closing)整页换 fire orange,"ink on fire"。
5
+ * 来源:D:\workspace\git\beautiful-html-templates\templates\broadside\template.html(16 页)
6
+ * + design.md(Barlow 900 小写巨字 / 双 register / 平面 1px hairline 体系)
7
+ *
8
+ * paradigm 备案与微调说明(校验基准见 src/templates/theme-paradigm.md):
9
+ * SL-01/SL-02 —— 橙色环境页 #e85d26(S≈83%)是模板身份"orange register 整页环境色",
10
+ * 但它只出现在 SECTION 1.6 版式规则里,不进 seed 色板;seed 层
11
+ * surface/panel 全部近中性,SL-01/SL-02 实测通过;
12
+ * SL-03 —— surface 微调 #111111→#111110(H0→H60,视觉无差),与 panel/panel-alt
13
+ * 同入 60° 暖灰轴,保三层表面同色相轴(可修则修);
14
+ * NT-01 —— cream 墨阶并轴:ink-muted #888880→#8a8680→#98938b(H60→H36,正文灰
15
+ * 亮度再提 10%)、ink-dim 微调,
16
+ * 三档 ΔH≤2°(可修则修,视觉无差);
17
+ * CR-03 —— ink-dim 模板 #505048 只有 2.3:1,提亮到 #6b6862(3.4:1)保 MUST(可修则修);
18
+ * NT-02 —— 模板 hairline #282826 与 panel 明度差 0.055<0.08(边框不可见),提亮到
19
+ * #7a7770(可修则修);1.6 版式层 chrome 仍用模板字面值 #282826;
20
+ * CR-04 —— accent #e85d26 对 #111 实测 5.5:1 ≥4.5,无需备案;橙底页文字一律切墨
21
+ * (ink on fire,#111 字面值),橙从不做橙底上的文字色;
22
+ * NT-03 —— border #7a7770 S=4.3% ≤5%,通过。
23
+ * 未复刻项(行式 DOM 无挂点,逐一注明于 SECTION 1.6):巨字引号以 ::before 近似,
24
+ * 其余见 1.5 注释清单。同形页:P3 statement/P6 fadelist/P9 compare/P15 cycle
25
+ * 均不单列,差异在对应版式注释备案。
26
+ *
27
+ * 契约:ColaMD Extend 2.7.13(CodeMirror 6 编辑器 + Pele 图表引擎)
28
+ *
29
+ * 两条硬规矩:
30
+ * 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
31
+ * 编辑器继承不到。
32
+ * 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
33
+ * 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
34
+ * 并且引用/代码块**不能加纵向 padding**——那会按行累加。
35
+ *
36
+ * ═══════════════════════════════════════════════════════════
37
+ * SECTION 1 — Design Tokens
38
+ * 改 11 个种子色 + 3 组字体即可换一套主题
39
+ * ═══════════════════════════════════════════════════════════ */
40
+
41
+ /* 参考页 template.html 用 Google Fonts 加载 Barlow / IBM Plex Mono(OFL);
42
+ 这里镜像同一份 webfont(latin 子集),编号(.flow-num = f-display Barlow 900)
43
+ 与拉丁标题才会呈现参考图字形。离线/断网时自动回落到系统 grotesk(Arial 等)。
44
+ 用 @font-face 而非 @import:导出时主题 CSS 会被拼进已有样式表,@import 位置非法会被丢弃 */
45
+ @font-face {
46
+ font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
47
+ src: url("https://fonts.gstatic.com/s/barlow/v13/7cHpv4kjgoGqM7E_DMs5.woff2") format("woff2");
48
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
49
+ }
50
+ @font-face {
51
+ font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
52
+ src: url("https://fonts.gstatic.com/s/barlow/v13/7cHqv4kjgoGqM7E3_-gs51os.woff2") format("woff2");
53
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
54
+ }
55
+ @font-face {
56
+ font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap;
57
+ src: url("https://fonts.gstatic.com/s/barlow/v13/7cHqv4kjgoGqM7E3t-4s51os.woff2") format("woff2");
58
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
59
+ }
60
+ @font-face {
61
+ font-family: "Barlow"; font-style: normal; font-weight: 800; font-display: swap;
62
+ src: url("https://fonts.gstatic.com/s/barlow/v13/7cHqv4kjgoGqM7E3q-0s51os.woff2") format("woff2");
63
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
64
+ }
65
+ @font-face {
66
+ font-family: "Barlow"; font-style: normal; font-weight: 900; font-display: swap;
67
+ src: url("https://fonts.gstatic.com/s/barlow/v13/7cHqv4kjgoGqM7E3j-ws51os.woff2") format("woff2");
68
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
69
+ }
70
+ @font-face {
71
+ font-family: "IBM Plex Mono"; font-style: normal; font-weight: 300; font-display: swap;
72
+ src: url("https://fonts.gstatic.com/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3oQIwlBFgg.woff2") format("woff2");
73
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
74
+ }
75
+ @font-face {
76
+ font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
77
+ src: url("https://fonts.gstatic.com/s/ibmplexmono/v23/-F63fjptAgt5VM-kVkqdyU8n1i8q1w.woff2") format("woff2");
78
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
79
+ }
80
+ @font-face {
81
+ font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
82
+ src: url("https://fonts.gstatic.com/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3twJwlBFgg.woff2") format("woff2");
83
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
84
+ }
85
+
86
+ /* ── 0. Bilingual font split ──
87
+ 字体栈按字符回退:中文衬线直接排进 --font-body 时,Barlow 未安装的机器上
88
+ 拉丁也会落到衬线的拉丁字形(broadside 的 grotesk 声部丢失)。这里用
89
+ unicode-range 把拉丁与 CJK 拆成别名族:
90
+ Broadside Latin —— 拉丁/数字/西文标点,Barlow → Helvetica → Arial
91
+ Broadside Mono —— 拉丁等宽,IBM Plex Mono → Cascadia Mono → Consolas
92
+ Broadside Serif CJK —— 中文/全角标点,思源宋体 → 宋体-简 → 华文宋体 → 中易宋体
93
+ local() 缺失时别名族自动跳过,由栈里后续 family 兜底。 */
94
+ @font-face {
95
+ font-family: "Broadside Latin";
96
+ src: local("Barlow"), local("Helvetica Neue"), local("Arial"), local("Segoe UI");
97
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20A0-20CF;
98
+ }
99
+ @font-face {
100
+ font-family: "Broadside Mono";
101
+ src: local("IBM Plex Mono"), local("Cascadia Mono"), local("Consolas"), local("Menlo");
102
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20A0-20CF;
103
+ }
104
+ @font-face {
105
+ font-family: "Broadside Serif CJK";
106
+ src: local("Noto Serif SC"), local("Source Han Serif SC"), local("Songti SC"),
107
+ local("STSong"), local("SimSun"), local("宋体"), local("NSimSun");
108
+ unicode-range: U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF,
109
+ U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF;
110
+ }
111
+ /* 标题中文字族:参考 elegant 主题的主体(霞鹜文楷 → 思源宋体 → 宋体-简),
112
+ 只在标题声部启用;正文仍用上面的 Serif CJK */
113
+ @font-face {
114
+ font-family: "Broadside Title CJK";
115
+ src: local("LXGW WenKai"), local("LXGW WenKai TC"), local("LXGW WenKai GB"),
116
+ local("Noto Serif SC"), local("Source Han Serif SC"), local("Songti SC"),
117
+ local("STSong"), local("SimSun"), local("宋体");
118
+ unicode-range: U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF,
119
+ U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF;
120
+ }
121
+
122
+ :root {
123
+
124
+ /* ── 1.1 Seed Palette ──
125
+ 本工具的再生成与校验读这一层;编辑器不消费。
126
+ 来源(template.html :root):bg #111111 / bg-alt #1a1a18 / orange #e85d26
127
+ fg #f0ece5 / fg-2 #888880 / fg-3 #505048 / border #282826
128
+ 模板约定:橙 = 暗底上的唯一强调(kicker/stat/序标/高亮条),也是声明页
129
+ (cover/chapter/stats/diagram/end)的整页环境色;橙底页文字一律墨 #111。 */
130
+ --seed-accent: #e85d26;
131
+ --seed-accent-light: #ef7d50; /* 派生提亮档(模板无此token) */
132
+ --seed-accent-dark: #c74c1f; /* 派生加深档 */
133
+ --seed-surface: #111110; /* 模板 #111111 微调保 SL-03(见头注) */
134
+ --seed-panel: #1a1a18; /* bg-alt 次表面 */
135
+ --seed-panel-alt: #282826; /* border-dark 档 */
136
+ --seed-ink: #f0ece5;
137
+ --seed-ink-muted: #98938b; /* 模板 #888880 并轴微调(NT-01);正文灰再提亮 10% */
138
+ --seed-ink-dim: #6b6862; /* 模板 #505048 提亮保 CR-03 ≥3:1 */
139
+ --seed-border: #7a7770; /* 模板 #282826 提亮保 NT-02(见头注) */
140
+ --seed-border-strong: #57534d; /* hr/th 强线档(暖灰) */
141
+
142
+ /* ── 1.2 Semantic Colors(活变量)── */
143
+ --bg-color: var(--seed-surface);
144
+ --text-color: var(--seed-ink);
145
+ --text-secondary: var(--seed-ink-muted);
146
+ --text-muted: var(--seed-ink-dim);
147
+ --border-color: var(--seed-border);
148
+ --link-color: var(--seed-accent); /* 5.5:1 ≥4.5(CR-04) */
149
+
150
+ --code-bg: var(--seed-panel);
151
+ --code-block-bg: var(--seed-panel);
152
+ --code-block-text: #f0ece5;
153
+
154
+ --blockquote-border: var(--seed-accent); /* 模板 .rule 36×2 橙短线的竖轨回声 */
155
+ --blockquote-bg: rgba(255, 255, 255, 0.04); /* img-placeholder 同款白纱 */
156
+ --table-header-bg: var(--seed-panel);
157
+
158
+ --selection-bg: rgba(232, 93, 38, 0.25);
159
+ --highlight-bg: rgba(232, 93, 38, 0.30);
160
+
161
+ /* ── 1.3 Typography & Metrics(活变量)──
162
+ Barlow 单一字相体系(400/500/700/800/900),display 永不大写;
163
+ IBM Plex Mono 只做 chrome(kicker/序标/页码)。
164
+ 中文一律走印刷体(宋体/思源宋体)——报头气质靠衬线中文立住,标题尤其;
165
+ 兜底顺序:Noto Serif SC / 思源宋体(900 可用)→ 宋体-简 → 华文宋体 → 中易宋体。 */
166
+ --font-body: "Barlow", "Broadside Latin", "Broadside Serif CJK", "Noto Serif SC",
167
+ "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
168
+ /* 等宽声部只有拉丁需要真 mono;中文取印刷体(chrome 里的中文标签) */
169
+ --font-mono: "IBM Plex Mono", "Broadside Mono", "Broadside Serif CJK", "Sarasa Mono SC",
170
+ "Noto Sans Mono CJK SC", "Noto Serif SC", "Songti SC", "SimSun", monospace;
171
+ --editor-font-size: 17px; /* 中文印刷体在 16px 下偏细,抬一档更耐读 */
172
+ --editor-column-width: 820px;
173
+
174
+ /* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
175
+ 图画在暗底上;accent 橙 = 模板 bar-fill.accent / stat-value 的高亮条。 */
176
+ --pele-bg: var(--code-block-bg);
177
+ --pele-fg: var(--code-block-text);
178
+ --pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
179
+ --pele-line: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
180
+ --pele-surface: color-mix(in srgb, var(--code-block-text) 14%, var(--code-block-bg));
181
+ --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 24%, var(--code-block-bg));
182
+ --pele-border: color-mix(in srgb, var(--code-block-text) 40%, var(--code-block-bg));
183
+ --pele-accent: var(--seed-accent);
184
+ --pele-radius: 0px; /* 模板:平面体系,除 nav-dot 外零圆角 */
185
+ }
186
+
187
+ /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 broadside 16 页逐页复刻)──
188
+ 换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
189
+ 模板全 vw 流式,@1920 1vw=19.2px,px ÷ 26 = em(换算式随属性注释)。
190
+ 字体体系:Barlow(display 900 小写 / h1 800 / h2 700 / h3 600,负字距)
191
+ + IBM Plex Mono(chrome 500 大写 .14em);中文标题取 elegant 主体
192
+ (LXGW WenKai → 思源宋体 → 宋体-简),正文中文用思源宋体系。
193
+ 页面对照(16 页 → 12 版式):
194
+ cover←P1(cover) section←P3(statement) agenda←P7(list)
195
+ matrix←P5(stats) quote←P6(fadelist) two-col←P9(compare)
196
+ kpi←P15(cycle) timeline←P14(vtimeline) steps←P11(diagram)
197
+ figure←P12(pie) default←P12(pie) closing←P16(end)
198
+ 未单列的页(按用户指定对照,差异备案):
199
+ P2 chapter → section 的大字声部近似(h1 800 橙字),chapter-num/rule 无挂点;
200
+ P4 split → two-col(左文右图对半,two-col 保持上游列流);
201
+ P8 quote → 上游 quote 声部(大字金句),与本主题 quote←P6 的 fadelist
202
+ 构图不冲突:fadelist 无引号、右对齐阶梯渐隐;
203
+ P10 chart → figure 的图表容器(保持上游默认);
204
+ P13 pyramid → matrix 的旧实现退役(matrix 改按 P5 stats)。
205
+ 换底页(orange register,模板 .orange):P1 cover / P5 stats(matrix) /
206
+ P6 fadelist(quote) / P11 diagram(steps) / P16 end(closing) ——
207
+ 整页换 #e85d26(五层链见 1.6.2),ghost opacity:0、td 换墨;
208
+ 橙底页 kicker/chrome 一律 ink .55 / hairline ink .2。
209
+ 极难复刻项(行式 DOM 无挂点):cover-meta 作者行、broadside-num 目录号、
210
+ rule 36×2 短线、fadelist 三词渐隐(以 :nth-child(of) 近似)、
211
+ compare 右半橙面板、bar-track/pie-donut、pyramid 明度阶梯、
212
+ vt-spine 橙方块、cycle 2×2 箭头网格、end 落款条。 */
213
+ :root {
214
+ --slide-mono: "IBM Plex Mono", "Broadside Mono", "Broadside Serif CJK", "Sarasa Mono SC",
215
+ "Noto Sans Mono CJK SC", "Noto Serif SC", "Songti SC", "SimSun", monospace;
216
+ --slide-title-font: "Barlow", "Broadside Latin", "Broadside Title CJK", "LXGW WenKai",
217
+ "LXGW WenKai TC", "Noto Serif SC", "Source Han Serif SC", "Songti SC",
218
+ "STSong", "SimSun", Georgia, serif; /* 中文标题 = elegant 主体声部 */
219
+ --slide-title-size: 3.32em; /* 内容页题 h2 4.5vw=86.4px ÷26 */
220
+ --slide-title-weight: 700; /* h2 700;display 永不大写 */
221
+ --slide-subhead-weight: 800; /* h1 800 */
222
+ --slide-title-tracking: -0.02em;
223
+ --slide-title-line-height: 1.1;
224
+ --slide-cover-title-size: 9.6em; /* display 13vw=249.6px ÷26 */
225
+ --slide-cover-title-line-height: 0.88;
226
+ --slide-cover-title-tracking: -0.04em;
227
+ --slide-section-title-size: 5.54em; /* P3 statement h1 7.5vw=144px ÷26 */
228
+ --slide-closing-title-size: 9.6em; /* end 同 display 13vw ÷26 */
229
+ --slide-lead-size: 1.18em; /* lead 1.6vw=30.7px ÷26 */
230
+ --slide-kicker-size: clamp(11px, 0.72vw, 14px); /* label 0.72vw=13.8px @1920 */
231
+ --slide-kicker-tracking: 0.14em; /* 模板 .label/.kicker .14em */
232
+ --slide-kicker-transform: uppercase;
233
+ --slide-chrome-opacity: 0.75;
234
+ --slide-chrome-transform: uppercase; /* chrome 全大写(mono 声部) */
235
+ --slide-kpi-number-size: 3.32em; /* P15 cycle-num 4vw=76.8px ÷26 ÷0.89 */
236
+ --slide-quote-size: 5.54em; /* P6 fadelist-item 7.5vw=144px ÷26 */
237
+ --slide-page-pad-x: 5.5vw; /* 模板 pad-x */
238
+ --slide-page-top-pad: 48px; /* pad-y 5.5vh≈59px@1080 − chrome 安全区 */
239
+ --slide-page-top-pad-print: 42px;
240
+ --slide-cover-text-align: left;
241
+ --slide-cover-lead-inline: 0; /* lead 左对齐,不居中 */
242
+ }
243
+
244
+ /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
245
+ body.presenting / body.slides-printing 作用域) ═══════════════ */
246
+
247
+ /* 1.6.1 页标题声部对齐:Barlow 700 小写负字距;压掉文档式 h1/h2 的 border-bottom
248
+ (编辑器规则带 id 权重会漏进放映);kicker 全局切橙(模板 .kicker 暗底声部) */
249
+ body.presenting #editor .cm-content .cm-md-page-title,
250
+ body.slides-printing #editor .cm-content .cm-md-page-title {
251
+ font-family: var(--slide-title-font);
252
+ font-size: var(--slide-title-size);
253
+ font-weight: 700;
254
+ line-height: 1.1;
255
+ letter-spacing: -0.02em;
256
+ text-transform: none; /* Broadside:display 永不大写 */
257
+ color: var(--text-color);
258
+ border-bottom: none;
259
+ padding-bottom: 0;
260
+ margin-bottom: 0.45em;
261
+ }
262
+ body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
263
+ body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
264
+ color: var(--seed-accent);
265
+ }
266
+
267
+ /* 1.6.2 orange register · P1/P5/P6/P11/P16(cover/matrix/quote/steps/closing):
268
+ 整页换 fire orange("ink on fire")。底色必须打满整条层叠链——
269
+ body / #editor / .cm-editor / .cm-scroller / .cm-content 五层,只挂 body 或漏
270
+ #editor 都会被平台原暗底反盖(与 pin-and-paper 1.6.4 同病) */
271
+ body.presenting:has(#editor[data-slide-layout='cover']),
272
+ body.presenting:has(#editor[data-slide-layout='matrix']),
273
+ body.presenting:has(#editor[data-slide-layout='quote']),
274
+ body.presenting:has(#editor[data-slide-layout='steps']),
275
+ body.presenting:has(#editor[data-slide-layout='closing']),
276
+ body.slides-printing:has(.cm-md-slide-cover),
277
+ body.slides-printing:has(.cm-md-slide-matrix),
278
+ body.slides-printing:has(.cm-md-slide-quote),
279
+ body.slides-printing:has(.cm-md-slide-steps),
280
+ body.slides-printing:has(.cm-md-slide-closing) {
281
+ background: var(--seed-accent);
282
+ }
283
+ body.presenting #editor[data-slide-layout='cover'],
284
+ body.presenting #editor[data-slide-layout='matrix'],
285
+ body.presenting #editor[data-slide-layout='quote'],
286
+ body.presenting #editor[data-slide-layout='steps'],
287
+ body.presenting #editor[data-slide-layout='closing'],
288
+ body.presenting #editor[data-slide-layout='cover'] .cm-editor,
289
+ body.presenting #editor[data-slide-layout='cover'] .cm-scroller,
290
+ body.presenting #editor[data-slide-layout='cover'] .cm-content,
291
+ body.presenting #editor[data-slide-layout='matrix'] .cm-editor,
292
+ body.presenting #editor[data-slide-layout='matrix'] .cm-scroller,
293
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content,
294
+ body.presenting #editor[data-slide-layout='quote'] .cm-editor,
295
+ body.presenting #editor[data-slide-layout='quote'] .cm-scroller,
296
+ body.presenting #editor[data-slide-layout='quote'] .cm-content,
297
+ body.presenting #editor[data-slide-layout='steps'] .cm-editor,
298
+ body.presenting #editor[data-slide-layout='steps'] .cm-scroller,
299
+ body.presenting #editor[data-slide-layout='steps'] .cm-content,
300
+ body.presenting #editor[data-slide-layout='closing'] .cm-editor,
301
+ body.presenting #editor[data-slide-layout='closing'] .cm-scroller,
302
+ body.presenting #editor[data-slide-layout='closing'] .cm-content,
303
+ body.slides-printing:has(.cm-md-slide-cover) #editor,
304
+ body.slides-printing:has(.cm-md-slide-cover) .cm-editor,
305
+ body.slides-printing:has(.cm-md-slide-cover) .cm-scroller,
306
+ body.slides-printing:has(.cm-md-slide-cover) .cm-content,
307
+ body.slides-printing:has(.cm-md-slide-matrix) #editor,
308
+ body.slides-printing:has(.cm-md-slide-matrix) .cm-editor,
309
+ body.slides-printing:has(.cm-md-slide-matrix) .cm-scroller,
310
+ body.slides-printing:has(.cm-md-slide-matrix) .cm-content,
311
+ body.slides-printing:has(.cm-md-slide-quote) #editor,
312
+ body.slides-printing:has(.cm-md-slide-quote) .cm-editor,
313
+ body.slides-printing:has(.cm-md-slide-quote) .cm-scroller,
314
+ body.slides-printing:has(.cm-md-slide-quote) .cm-content,
315
+ body.slides-printing:has(.cm-md-slide-steps) #editor,
316
+ body.slides-printing:has(.cm-md-slide-steps) .cm-editor,
317
+ body.slides-printing:has(.cm-md-slide-steps) .cm-scroller,
318
+ body.slides-printing:has(.cm-md-slide-steps) .cm-content,
319
+ body.slides-printing:has(.cm-md-slide-closing) #editor,
320
+ body.slides-printing:has(.cm-md-slide-closing) .cm-editor,
321
+ body.slides-printing:has(.cm-md-slide-closing) .cm-scroller,
322
+ body.slides-printing:has(.cm-md-slide-closing) .cm-content {
323
+ background: var(--seed-accent);
324
+ }
325
+ /* 橙底页正文/行内元素全切墨(ink on fire 字面值,模板身份);
326
+ 序标/引标/链接地址走墨 .45 hint 档(模板 ink-on-orange-faint) */
327
+ body.presenting #editor[data-slide-layout='cover'] .cm-content,
328
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content,
329
+ body.presenting #editor[data-slide-layout='quote'] .cm-content,
330
+ body.presenting #editor[data-slide-layout='steps'] .cm-content,
331
+ body.presenting #editor[data-slide-layout='closing'] .cm-content,
332
+ body.slides-printing:has(.cm-md-slide-cover) .cm-content,
333
+ body.slides-printing:has(.cm-md-slide-matrix) .cm-content,
334
+ body.slides-printing:has(.cm-md-slide-quote) .cm-content,
335
+ body.slides-printing:has(.cm-md-slide-steps) .cm-content,
336
+ body.slides-printing:has(.cm-md-slide-closing) .cm-content {
337
+ color: #111111;
338
+ }
339
+ /* 橙底页页题一律墨(模板 .orange h1/h2 = #111;1.6.1 的 cream 标题声部需压回) */
340
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
341
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content .cm-md-page-title,
342
+ body.presenting #editor[data-slide-layout='quote'] .cm-content .cm-md-page-title,
343
+ body.presenting #editor[data-slide-layout='steps'] .cm-content .cm-md-page-title,
344
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title,
345
+ body.slides-printing .cm-md-slide-cover.cm-md-page-title,
346
+ body.slides-printing .cm-md-slide-matrix.cm-md-page-title,
347
+ body.slides-printing .cm-md-slide-quote.cm-md-page-title,
348
+ body.slides-printing .cm-md-slide-steps.cm-md-page-title,
349
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title {
350
+ color: #111111;
351
+ }
352
+ /* 幻灯片行一律取消文档首行缩进(SECTION 2 的 2em 会漏进标题/导语/正文;
353
+ 放映与导出纸面里的每一行都属于幻灯片内容) */
354
+ body.presenting #editor .cm-content .cm-line,
355
+ body.slides-printing #editor .cm-content .cm-line {
356
+ text-indent: 0;
357
+ }
358
+ body.presenting #editor[data-slide-layout='cover'] .cm-md-strong,
359
+ body.presenting #editor[data-slide-layout='matrix'] .cm-md-strong,
360
+ body.presenting #editor[data-slide-layout='quote'] .cm-md-strong,
361
+ body.presenting #editor[data-slide-layout='steps'] .cm-md-strong,
362
+ body.presenting #editor[data-slide-layout='closing'] .cm-md-strong,
363
+ body.presenting #editor[data-slide-layout='cover'] .cm-md-link,
364
+ body.presenting #editor[data-slide-layout='matrix'] .cm-md-link,
365
+ body.presenting #editor[data-slide-layout='quote'] .cm-md-link,
366
+ body.presenting #editor[data-slide-layout='steps'] .cm-md-link,
367
+ body.presenting #editor[data-slide-layout='closing'] .cm-md-link,
368
+ body.slides-printing:has(.cm-md-slide-cover) .cm-md-strong,
369
+ body.slides-printing:has(.cm-md-slide-matrix) .cm-md-strong,
370
+ body.slides-printing:has(.cm-md-slide-quote) .cm-md-strong,
371
+ body.slides-printing:has(.cm-md-slide-steps) .cm-md-strong,
372
+ body.slides-printing:has(.cm-md-slide-closing) .cm-md-strong,
373
+ body.slides-printing:has(.cm-md-slide-cover) .cm-md-link,
374
+ body.slides-printing:has(.cm-md-slide-matrix) .cm-md-link,
375
+ body.slides-printing:has(.cm-md-slide-quote) .cm-md-link,
376
+ body.slides-printing:has(.cm-md-slide-steps) .cm-md-link,
377
+ body.slides-printing:has(.cm-md-slide-closing) .cm-md-link {
378
+ color: #111111;
379
+ }
380
+ body.presenting #editor[data-slide-layout='cover'] .cm-md-listmark,
381
+ body.presenting #editor[data-slide-layout='matrix'] .cm-md-listmark,
382
+ body.presenting #editor[data-slide-layout='quote'] .cm-md-listmark,
383
+ body.presenting #editor[data-slide-layout='steps'] .cm-md-listmark,
384
+ body.presenting #editor[data-slide-layout='closing'] .cm-md-listmark,
385
+ body.presenting #editor[data-slide-layout='cover'] .cm-md-url,
386
+ body.presenting #editor[data-slide-layout='matrix'] .cm-md-url,
387
+ body.presenting #editor[data-slide-layout='quote'] .cm-md-url,
388
+ body.presenting #editor[data-slide-layout='steps'] .cm-md-url,
389
+ body.presenting #editor[data-slide-layout='closing'] .cm-md-url,
390
+ body.slides-printing:has(.cm-md-slide-cover) .cm-md-listmark,
391
+ body.slides-printing:has(.cm-md-slide-matrix) .cm-md-listmark,
392
+ body.slides-printing:has(.cm-md-slide-quote) .cm-md-listmark,
393
+ body.slides-printing:has(.cm-md-slide-steps) .cm-md-listmark,
394
+ body.slides-printing:has(.cm-md-slide-closing) .cm-md-listmark,
395
+ body.slides-printing:has(.cm-md-slide-cover) .cm-md-url,
396
+ body.slides-printing:has(.cm-md-slide-matrix) .cm-md-url,
397
+ body.slides-printing:has(.cm-md-slide-quote) .cm-md-url,
398
+ body.slides-printing:has(.cm-md-slide-steps) .cm-md-url,
399
+ body.slides-printing:has(.cm-md-slide-closing) .cm-md-url {
400
+ color: rgba(17, 17, 17, 0.45);
401
+ }
402
+ /* 幽灵页码 = cream(var(--text-color)),落橙底上同色错乱——与上游 section/closing
403
+ 的处理一致,橙底五版式整页隐藏 */
404
+ body.presenting:has(#editor[data-slide-layout='cover']) .slide-ghost,
405
+ body.presenting:has(#editor[data-slide-layout='matrix']) .slide-ghost,
406
+ body.presenting:has(#editor[data-slide-layout='quote']) .slide-ghost,
407
+ body.presenting:has(#editor[data-slide-layout='steps']) .slide-ghost,
408
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-ghost,
409
+ body.slides-printing:has(.cm-md-slide-cover) .slide-ghost,
410
+ body.slides-printing:has(.cm-md-slide-matrix) .slide-ghost,
411
+ body.slides-printing:has(.cm-md-slide-quote) .slide-ghost,
412
+ body.slides-printing:has(.cm-md-slide-steps) .slide-ghost,
413
+ body.slides-printing:has(.cm-md-slide-closing) .slide-ghost {
414
+ opacity: 0;
415
+ }
416
+ /* 模板 cover / quote / end 三页不显示 chrome 与页脚(.slide--cover/.slide--quote/
417
+ .slide--end 上 display:none);橙底页若保留会露出浅墨 hairline */
418
+ body.presenting:has(#editor[data-slide-layout='cover']) .slide-chrome,
419
+ body.presenting:has(#editor[data-slide-layout='cover']) .slide-foot,
420
+ body.presenting:has(#editor[data-slide-layout='quote']) .slide-chrome,
421
+ body.presenting:has(#editor[data-slide-layout='quote']) .slide-foot,
422
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-chrome,
423
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-foot,
424
+ body.slides-printing:has(.cm-md-slide-cover) .slide-chrome,
425
+ body.slides-printing:has(.cm-md-slide-cover) .slide-foot,
426
+ body.slides-printing:has(.cm-md-slide-quote) .slide-chrome,
427
+ body.slides-printing:has(.cm-md-slide-quote) .slide-foot,
428
+ body.slides-printing:has(.cm-md-slide-closing) .slide-chrome,
429
+ body.slides-printing:has(.cm-md-slide-closing) .slide-foot {
430
+ display: none;
431
+ }
432
+
433
+ /* 橙底页表格 td:cream 正文被橙底吃掉 → 换墨色(th 自带 panel 底不受影响) */
434
+ body.presenting #editor[data-slide-layout='cover'] .cm-md-table-widget td,
435
+ body.presenting #editor[data-slide-layout='matrix'] .cm-md-table-widget td,
436
+ body.presenting #editor[data-slide-layout='quote'] .cm-md-table-widget td,
437
+ body.presenting #editor[data-slide-layout='steps'] .cm-md-table-widget td,
438
+ body.presenting #editor[data-slide-layout='closing'] .cm-md-table-widget td,
439
+ body.slides-printing:has(.cm-md-slide-cover) .cm-md-table-widget td,
440
+ body.slides-printing:has(.cm-md-slide-matrix) .cm-md-table-widget td,
441
+ body.slides-printing:has(.cm-md-slide-quote) .cm-md-table-widget td,
442
+ body.slides-printing:has(.cm-md-slide-steps) .cm-md-table-widget td,
443
+ body.slides-printing:has(.cm-md-slide-closing) .cm-md-table-widget td {
444
+ color: #111111;
445
+ }
446
+ /* 橙底页 chrome:ink .55 + 模板 hairline rgba(17,17,17,.2) */
447
+ body.presenting #editor[data-slide-layout='cover'] .slide-chrome,
448
+ body.presenting #editor[data-slide-layout='cover'] .slide-foot,
449
+ body.presenting #editor[data-slide-layout='matrix'] .slide-chrome,
450
+ body.presenting #editor[data-slide-layout='matrix'] .slide-foot,
451
+ body.presenting #editor[data-slide-layout='quote'] .slide-chrome,
452
+ body.presenting #editor[data-slide-layout='quote'] .slide-foot,
453
+ body.presenting #editor[data-slide-layout='steps'] .slide-chrome,
454
+ body.presenting #editor[data-slide-layout='steps'] .slide-foot,
455
+ body.presenting #editor[data-slide-layout='closing'] .slide-chrome,
456
+ body.presenting #editor[data-slide-layout='closing'] .slide-foot,
457
+ body.slides-printing:has(.cm-md-slide-cover) .slide-chrome,
458
+ body.slides-printing:has(.cm-md-slide-cover) .slide-foot,
459
+ body.slides-printing:has(.cm-md-slide-matrix) .slide-chrome,
460
+ body.slides-printing:has(.cm-md-slide-matrix) .slide-foot,
461
+ body.slides-printing:has(.cm-md-slide-quote) .slide-chrome,
462
+ body.slides-printing:has(.cm-md-slide-quote) .slide-foot,
463
+ body.slides-printing:has(.cm-md-slide-steps) .slide-chrome,
464
+ body.slides-printing:has(.cm-md-slide-steps) .slide-foot,
465
+ body.slides-printing:has(.cm-md-slide-closing) .slide-chrome,
466
+ body.slides-printing:has(.cm-md-slide-closing) .slide-foot {
467
+ color: rgba(17, 17, 17, 0.55);
468
+ border-color: rgba(17, 17, 17, 0.2);
469
+ }
470
+ /* 橙底页 kicker:模板 .label / .kicker 在橙底一律墨 .55(cover 已单列) */
471
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
472
+ body.presenting #editor[data-slide-layout='quote'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
473
+ body.presenting #editor[data-slide-layout='steps'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
474
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
475
+ body.slides-printing .cm-md-slide-matrix.cm-md-page-title[data-slide-kicker]::before,
476
+ body.slides-printing .cm-md-slide-quote.cm-md-page-title[data-slide-kicker]::before,
477
+ body.slides-printing .cm-md-slide-steps.cm-md-page-title[data-slide-kicker]::before,
478
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title[data-slide-kicker]::before {
479
+ color: rgba(17, 17, 17, 0.55);
480
+ }
481
+
482
+ /* 1.6.3 cover · P1(orange):13vw 巨题底部锚定,lead 墨 .65 max-width 55%;
483
+ cover-meta 底部作者行与顶线无挂点(未复刻);broadside-num/corner-label →
484
+ kicker 横排 mono 大写墨 .55 */
485
+ body.presenting #editor[data-slide-layout='cover'] .cm-content,
486
+ body.slides-printing:has(.cm-md-slide-cover) .cm-content {
487
+ justify-content: flex-end;
488
+ padding-bottom: 110px; /* cover-meta 带留白 ≈ gap-lg×2+lead 行 */
489
+ }
490
+ body.presenting #editor .cm-content .cm-md-slide-cover.cm-md-page-title,
491
+ body.slides-printing .cm-md-slide-cover.cm-md-page-title {
492
+ font-size: var(--slide-cover-title-size);
493
+ font-weight: 900; /* .display 900 */
494
+ line-height: 0.88;
495
+ letter-spacing: -0.04em;
496
+ max-width: 95%;
497
+ }
498
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
499
+ body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
500
+ font-size: var(--slide-lead-size); /* lead 1.6vw ÷26 */
501
+ color: rgba(17, 17, 17, 0.65); /* 橙底上必须切墨(上游 lead 是 cream) */
502
+ opacity: 1;
503
+ max-width: 55%;
504
+ }
505
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
506
+ body.slides-printing .cm-md-slide-cover.cm-md-page-title[data-slide-kicker]::before {
507
+ color: #111111;
508
+ opacity: 0.55; /* broadside-num ink .45/.55 档 */
509
+ }
510
+
511
+ /* 1.6.4 section · P3(statement,暗底):h1 7.5vw 800 **橙字** max-width 75%,
512
+ 行高 .9 / 字距 -.03em;kicker 橙 mono 大写 .14em;statement-rule 36×2 橙条
513
+ 无挂点(以 kicker 与标题的间距节奏近似,未复刻);statement 无导语,
514
+ 若写了导语按 fg-2 1.6vw 处理 */
515
+ body.presenting #editor .cm-content .cm-md-slide-section.cm-md-page-title,
516
+ body.slides-printing .cm-md-slide-section.cm-md-page-title {
517
+ font-size: var(--slide-section-title-size); /* 7.5vw ÷26 */
518
+ font-weight: 800;
519
+ line-height: 0.9;
520
+ letter-spacing: -0.03em;
521
+ max-width: 75%;
522
+ color: var(--seed-accent); /* .statement h1.accent */
523
+ }
524
+ /* 标题行与导语之间的呼吸(模板 gap-lg) */
525
+ body.presenting #editor .cm-content .cm-md-slide-section.cm-md-page-title,
526
+ body.slides-printing .cm-md-slide-section.cm-md-page-title {
527
+ margin-bottom: 0.35em;
528
+ }
529
+
530
+ /* 橙底页(cover/matrix/steps/closing)页题已在 1.6.2 组统一压回墨色 */
531
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
532
+ body.slides-printing .cm-md-slide-section.cm-md-page-lead {
533
+ font-size: var(--slide-lead-size);
534
+ max-width: 60%;
535
+ color: var(--text-secondary);
536
+ opacity: 1;
537
+ }
538
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
539
+ body.slides-printing .cm-md-slide-section.cm-md-page-title[data-slide-kicker]::before {
540
+ letter-spacing: 0.14em;
541
+ color: var(--seed-accent); /* .statement .kicker 橙 */
542
+ opacity: 1;
543
+ margin-bottom: 1.1em; /* rule 与 gap-lg 的呼吸感近似 */
544
+ }
545
+
546
+ /* 1.6.5 matrix · P5(stats,orange):无卡裸排 = stat-card 顶线 1px 墨 .22 +
547
+ stat-value 5.5vw 900 墨 + stat-label 1.2vw 墨 .65;三列 inline-block(gap 4vw≈2.8%);
548
+ stat-note 小注无挂点(未复刻) */
549
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
550
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
551
+ font-size: 0.89em; /* .stat-label 1.2vw=23px ÷26 */
552
+ background: transparent;
553
+ border: none;
554
+ border-top: 1px solid rgba(17, 17, 17, 0.22);
555
+ box-shadow: none;
556
+ border-radius: 0;
557
+ padding: 0.9em 1.2em 0 0; /* gap-md 2vh≈21.6px ÷23.04 ≈ 0.9em */
558
+ margin: 0 0 1.2em;
559
+ width: 33.33%; /* stats-grid repeat(3,1fr)、gap:0 */
560
+ display: inline-block;
561
+ vertical-align: top;
562
+ color: rgba(17, 17, 17, 0.65); /* .orange .stat-label */
563
+ }
564
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
565
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
566
+ font-size: 4.56em; /* P5 stat-value 5.5vw ÷26 ÷0.89 */
567
+ font-weight: 900;
568
+ line-height: 1;
569
+ letter-spacing: -0.04em;
570
+ color: #111111; /* .orange .stat-value */
571
+ }
572
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-listmark,
573
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-listmark {
574
+ display: none; /* stat-card 无序号 */
575
+ }
576
+
577
+ /* 1.6.6 steps · P11(diagram,orange):flow 裸排四步——
578
+ flow-num 编号 = display 字族(Barlow)5vw 900 墨 .2;
579
+ flow-title(加粗内容)= heading 字族 2.8vw 700 墨;
580
+ flow-desc(正文)= body 字族 1.2vw 400 墨 .6;箭头 → 2.2vw 300 墨 .3
581
+ (li::after 绝对定位进栏距);P15 cycle 同形不单列(暗底 + cycle-step
582
+ 顶线 3px 橙,差异备案) */
583
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
584
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
585
+ font-family: var(--font-body); /* .flow-desc = f-body */
586
+ font-size: 0.89em; /* .flow-desc 1.2vw ÷26 */
587
+ font-weight: 400;
588
+ line-height: 1.6; /* .flow-desc lh 1.6 */
589
+ background: transparent;
590
+ border: none;
591
+ box-shadow: none;
592
+ border-radius: 0;
593
+ padding: 0;
594
+ margin: 0 5% 1.6em 0; /* 20% 卡 + 5% 栏距(容纳 2.2vw 箭头) */
595
+ width: 20%;
596
+ display: inline-block;
597
+ position: relative; /* 箭头绝对定位到栏距里 */
598
+ vertical-align: top;
599
+ color: rgba(17, 17, 17, 0.6); /* .orange .flow-desc */
600
+ }
601
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
602
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
603
+ display: block; /* flow-num 独立成行(标题在其下) */
604
+ font-family: var(--slide-title-font); /* .flow-num = f-display */
605
+ font-weight: 900;
606
+ font-size: 4.15em; /* .flow-num 5vw=96px ÷26 ÷0.89 */
607
+ line-height: 1;
608
+ letter-spacing: -0.03em;
609
+ text-transform: none;
610
+ margin: 0 0 0.12em;
611
+ color: rgba(17, 17, 17, 0.2); /* .orange .flow-num */
612
+ }
613
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
614
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
615
+ display: block; /* flow-title 独立成行 */
616
+ font-family: var(--slide-title-font); /* .flow-title = f-heading */
617
+ font-size: 2.32em; /* .flow-title 2.8vw=53.8px ÷26 ÷0.89 */
618
+ font-weight: 700;
619
+ line-height: 1.15;
620
+ margin-bottom: 0.15em;
621
+ color: #111111; /* .orange .flow-title */
622
+ }
623
+ /* .flow-arrow →:2.2vw 300,橙底墨 .3,padding-top 1.2em(相对箭头字号);
624
+ 行式 DOM 无独立箭头行 → 用 li 的 ::after 绝对定位到 5% 栏距里,
625
+ 最后一张不画(:has(~ ...) 规避尾部空行) */
626
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li:has(~ .cm-md-slide-steps.cm-md-li)::after,
627
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li:has(~ .cm-md-slide-steps.cm-md-li)::after {
628
+ content: "→";
629
+ position: absolute;
630
+ top: 1.2em; /* .flow-arrow padding-top 1.2em */
631
+ right: -15%; /* 落在栏距中央 */
632
+ font-family: var(--slide-title-font);
633
+ font-size: 1.82em; /* 2.2vw=42.2px ÷26 ÷0.89 */
634
+ font-weight: 300;
635
+ line-height: 1;
636
+ color: rgba(17, 17, 17, 0.3); /* .orange .flow-arrow */
637
+ pointer-events: none;
638
+ }
639
+
640
+ /* 1.6.7 kpi · P15(cycle,暗底):2×2 cycle-step——顶线 3px 橙 + cycle-num 4vw 900 橙
641
+ + 说明 fg-2;网格 gap 3em 与对角线箭头无挂点,以 46% inline-block + 8% 右距
642
+ + 2.6em 底距近似;cycle-title 与 cycle-desc 在行式 DOM 合并为一段(title 声部
643
+ 由 strong 承担,desc 落到 li 正文) */
644
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
645
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
646
+ font-size: 0.89em; /* .cycle-desc 1.2vw=23px ÷26 */
647
+ background: transparent;
648
+ border: none;
649
+ border-top: 3px solid var(--seed-accent); /* .cycle-step 顶线 3px 橙 */
650
+ box-shadow: none;
651
+ border-radius: 0;
652
+ padding: 0.9em 1.5em 0 0; /* gap-md 2vh ÷23 ≈ 0.9em */
653
+ margin: 0 4% 2.6em 0; /* 3em gap 折半:两列 46%+4% */
654
+ width: 46%; /* 2×2 网格 */
655
+ display: inline-block;
656
+ vertical-align: top;
657
+ color: var(--text-secondary); /* .cycle-desc fg-2 */
658
+ }
659
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
660
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
661
+ font-size: var(--slide-kpi-number-size); /* .cycle-num 4vw=76.8px ÷26 ÷0.89 */
662
+ font-weight: 900;
663
+ line-height: 1;
664
+ letter-spacing: -0.03em;
665
+ color: var(--seed-accent); /* .cycle-num 橙 */
666
+ }
667
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-listmark,
668
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-listmark {
669
+ display: none; /* cycle-step 无序号 */
670
+ }
671
+
672
+ /* 1.6.8 timeline · P14(vtimeline,暗底):vt-hl 页题 900 + 1px hairline 底线;
673
+ 行 = vt-date mono 大写 .1em + vt-title h3 900 小写 + vt-body fg-2;
674
+ vt-spine 橙方块节点 absolute 无挂点(未复刻) */
675
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-page-title,
676
+ body.slides-printing .cm-md-slide-timeline.cm-md-page-title {
677
+ font-weight: 900; /* .vt-hl 900 */
678
+ letter-spacing: -0.03em; /* .vt-hl -.03em */
679
+ border-bottom: 1px solid var(--border-color);
680
+ padding-bottom: 0.45em; /* vt-hl padding-bottom gap-md */
681
+ }
682
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li,
683
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
684
+ font-size: 0.89em; /* .vt-body 1.2vw ÷26 */
685
+ color: var(--text-secondary);
686
+ margin: 0 0 1.1em;
687
+ }
688
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-listmark,
689
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-listmark {
690
+ font-family: var(--slide-mono);
691
+ font-weight: 500;
692
+ font-size: 0.75em; /* .vt-date 0.9vw=17.3px ÷26 ÷0.89 */
693
+ letter-spacing: 0.1em;
694
+ color: var(--text-muted); /* fg-3 提档(#505048 过暗) */
695
+ }
696
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-strong,
697
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-strong {
698
+ font-size: 2.32em; /* .vt-title 2.8vw ÷26 ÷0.89 */
699
+ font-weight: 900; /* .vt-title 900 */
700
+ line-height: 1.1;
701
+ text-transform: lowercase;
702
+ color: var(--text-color);
703
+ }
704
+
705
+ /* 1.6.9 agenda · P7(list,暗底):bullet-list lead 1.6vw 500 + 橙 "/" mono 700
706
+ 序标(模板 li::before 无挂点 → listmark 承担);页题走 1.6.1 默认 h2 声部 */
707
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
708
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
709
+ font-size: 1.18em; /* .bullet-list li 1.6vw ÷26 */
710
+ font-weight: 500;
711
+ line-height: 1.4;
712
+ margin: 0 0 0.9em; /* bullet-list gap-md 2vh */
713
+ color: var(--text-color);
714
+ }
715
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
716
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
717
+ font-family: var(--slide-mono);
718
+ font-weight: 700;
719
+ margin-right: 0.3em;
720
+ color: var(--seed-accent); /* "/" 橙 */
721
+ }
722
+
723
+ /* 1.6.10 quote · P6(fadelist,orange):三行阶梯渐隐——item 7.5vw 900 墨、右对齐,
724
+ 不透明度 1 / .5 / .22(模板 .fade-1/2/3 三个类名在行式 DOM 无挂点,以
725
+ :nth-child(n of .cm-md-slide-quote.cm-md-blockquote) 近似);署名行 =
726
+ fadelist-title 10.5vw 900 墨右对齐(模板 absolute 右下角 → 行内右对齐近似);
727
+ fadelist 无引号 → 复位上游 ::before */
728
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-blockquote,
729
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-blockquote {
730
+ font-size: var(--slide-quote-size); /* 7.5vw=144px ÷26 */
731
+ font-weight: 900;
732
+ line-height: 1; /* .fadelist-item lh 1 */
733
+ letter-spacing: -0.03em; /* .fadelist-item -.03em */
734
+ text-align: right;
735
+ color: #111111; /* .orange .fadelist-item ink */
736
+ background: transparent;
737
+ border-left: none; /* 模板裸排,无竖轨 */
738
+ padding-left: 0;
739
+ padding-right: 0;
740
+ max-width: 100%;
741
+ }
742
+ /* 第 2/3 行渐隐(.fade-2 .5 / .fade-3 .22) */
743
+ body.presenting #editor .cm-content .cm-md-slide-quote:nth-child(2 of .cm-md-slide-quote.cm-md-blockquote),
744
+ body.slides-printing #editor .cm-content .cm-md-slide-quote:nth-child(2 of .cm-md-slide-quote.cm-md-blockquote) {
745
+ opacity: 0.5;
746
+ }
747
+ body.presenting #editor .cm-content .cm-md-slide-quote:nth-child(3 of .cm-md-slide-quote.cm-md-blockquote),
748
+ body.slides-printing #editor .cm-content .cm-md-slide-quote:nth-child(3 of .cm-md-slide-quote.cm-md-blockquote) {
749
+ opacity: 0.22;
750
+ }
751
+ body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
752
+ body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
753
+ content: none; /* fadelist 无巨引号 */
754
+ display: none;
755
+ }
756
+ /* 署名行(fadelist-title):排除块引/页首/指令/空行后命中的普通行 */
757
+ 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)),
758
+ 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)) {
759
+ margin: 0.25em 0 0;
760
+ font-family: var(--slide-title-font);
761
+ font-weight: 900;
762
+ font-size: 7.75em; /* P6 fadelist-title 10.5vw=201.6px ÷26 */
763
+ line-height: 0.9;
764
+ letter-spacing: -0.04em; /* .fadelist-title -.04em */
765
+ text-align: right;
766
+ text-transform: none;
767
+ color: #111111;
768
+ }
769
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote .cm-md-em,
770
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote .cm-md-em {
771
+ font-style: normal;
772
+ color: #111111;
773
+ }
774
+
775
+ /* 1.6.11 closing · P16(end,orange):13vw 巨题墨 + 联络/行动清单 lead 墨 .65;
776
+ 底部落款条 border-top 无挂点(未复刻);模板无清单序号 → "/" 墨 .45 保留 */
777
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-page-title,
778
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title {
779
+ font-size: var(--slide-closing-title-size);
780
+ font-weight: 900; /* .display 900 */
781
+ line-height: 0.9;
782
+ letter-spacing: -0.04em;
783
+ max-width: 80%; /* 模板 end h1 max-width:80% */
784
+ color: #111111;
785
+ }
786
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
787
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
788
+ font-size: var(--slide-lead-size); /* contact lead 1.6vw ÷26 */
789
+ background: transparent;
790
+ border: none;
791
+ box-shadow: none;
792
+ border-radius: 0;
793
+ padding: 0;
794
+ margin: 0 0 0.55em;
795
+ color: rgba(17, 17, 17, 0.65);
796
+ }
797
+
798
+ /* 1.6.12 two-col · P9(compare,暗底):上游放映已是双栏 + 中缝 1px(≈ compare
799
+ 左面板右边框);模板 .compare-label(mono .72vw 大写 .14em fg-2 + 1px 底 hairline)
800
+ → 列首 h2/h3/h4 面板标题承担(页题排除);.panel-orange(右半橙面板)无行级
801
+ 挂点,未复刻,以 label 橙强调与中缝对立感近似 */
802
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content {
803
+ column-rule-color: var(--border-color);
804
+ }
805
+ /* 上游 column-fill:auto + 88vh:内容填不满一栏时全部堆在左栏,compare 页
806
+ 退化成单栏(上下流)。把「第二个及之后的栏目标签」强制开新栏 → 左右两栏:
807
+ 页题留在左栏顶部,h2/h3/h4 面板标题各起一栏,与 P9 compare 的双面板一致。
808
+ (deck 里面板标题可能写成 h2 或 h3,三档都覆盖) */
809
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content
810
+ :nth-child(n+2 of .cm-md-slide-two-col.cm-md-atxheading2:not(.cm-md-page-title)),
811
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content
812
+ :nth-child(n+2 of .cm-md-slide-two-col.cm-md-atxheading3:not(.cm-md-page-title)),
813
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content
814
+ :nth-child(n+2 of .cm-md-slide-two-col.cm-md-atxheading4:not(.cm-md-page-title)) {
815
+ break-before: column;
816
+ }
817
+ body.presenting #editor .cm-content .cm-md-slide-two-col.cm-md-atxheading2:not(.cm-md-page-title),
818
+ body.presenting #editor .cm-content .cm-md-slide-two-col.cm-md-atxheading3:not(.cm-md-page-title),
819
+ body.presenting #editor .cm-content .cm-md-slide-two-col.cm-md-atxheading4:not(.cm-md-page-title),
820
+ body.slides-printing #editor .cm-content .cm-md-slide-two-col.cm-md-atxheading2:not(.cm-md-page-title),
821
+ body.slides-printing #editor .cm-content .cm-md-slide-two-col.cm-md-atxheading3:not(.cm-md-page-title),
822
+ body.slides-printing #editor .cm-content .cm-md-slide-two-col.cm-md-atxheading4:not(.cm-md-page-title) {
823
+ font-family: var(--slide-mono);
824
+ font-weight: 500;
825
+ font-size: 0.53em; /* .compare-label 0.72vw ÷26 */
826
+ line-height: 1.4;
827
+ letter-spacing: 0.14em;
828
+ text-transform: uppercase;
829
+ color: var(--text-muted); /* fg-2 提档 */
830
+ border-bottom: 1px solid var(--border-color);
831
+ padding-bottom: 0.8em; /* gap-md */
832
+ margin-bottom: 0.9em;
833
+ }
834
+ /* compare 列表:bullet-list 1.6vw 500 + 橙 "/" 序标(模板 li::before 无挂点) */
835
+ body.presenting #editor .cm-content .cm-md-slide-two-col.cm-md-li,
836
+ body.slides-printing #editor .cm-content .cm-md-slide-two-col.cm-md-li {
837
+ font-size: 1.18em; /* 1.6vw ÷26 */
838
+ font-weight: 500;
839
+ line-height: 1.4;
840
+ margin: 0 0 0.9em;
841
+ color: var(--text-color);
842
+ }
843
+ body.presenting #editor .cm-content .cm-md-slide-two-col .cm-md-listmark,
844
+ body.slides-printing #editor .cm-content .cm-md-slide-two-col .cm-md-listmark {
845
+ font-family: var(--slide-mono);
846
+ font-weight: 700;
847
+ margin-right: 0.3em;
848
+ color: var(--seed-accent);
849
+ }
850
+
851
+ /* 1.6.13 figure · P12(pie,暗底):图占画面七成居中(上游默认),标题 700、
852
+ 导语 fg-2;pie 图例 → 页内列表:1.6vw 700 + mono 橙值 + 1px 底 hairline
853
+ (tfoot 合计行同色 hairline);pie-donut 与图例色点无挂点(未复刻)。
854
+ 默认页(未声明版式)按同一页的文本节奏校准:标题 700 / 导语 1.6vw fg-2 /
855
+ 正文 1.2vw fg-2 —— 由 1.6.1 与本文标题体系承接,不额外覆写 */
856
+ body.presenting #editor .cm-content .cm-md-slide-figure.cm-md-page-title,
857
+ body.slides-printing .cm-md-slide-figure.cm-md-page-title {
858
+ font-weight: 700;
859
+ }
860
+ body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-page-lead,
861
+ body.slides-printing .cm-md-slide-figure.cm-md-page-lead {
862
+ font-size: var(--slide-lead-size);
863
+ color: var(--text-secondary);
864
+ }
865
+ body.presenting #editor .cm-content .cm-md-slide-figure.cm-md-li,
866
+ body.slides-printing #editor .cm-content .cm-md-slide-figure.cm-md-li {
867
+ font-size: 1.18em; /* .pie-label 1.6vw ÷26 */
868
+ font-weight: 700;
869
+ line-height: 1.4;
870
+ padding-bottom: 0.55em;
871
+ margin: 0 0 0.5em;
872
+ border-bottom: 1px solid var(--border-color); /* .pie-item 1px hairline */
873
+ color: var(--text-color);
874
+ }
875
+ body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-strong,
876
+ body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-strong {
877
+ font-family: var(--slide-mono);
878
+ font-weight: 500;
879
+ font-size: 0.75em; /* .pie-item-val 1.2vw ÷26 ÷1.18 */
880
+ letter-spacing: 0.06em;
881
+ color: var(--seed-accent); /* 数值橙 */
882
+ }
883
+ body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-listmark,
884
+ body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-listmark {
885
+ display: none; /* pie-item 无色点挂点,去序标 */
886
+ }
887
+
888
+ /* 1.6.13b 默认页(未声明版式)← P12 文本节奏:正文 = .body 1.2vw → 0.89em、
889
+ lead = 1.6vw → 1.18em;标题仍由 1.6.1 的 h2 声部接管(不缩小) */
890
+ body.presenting #editor .cm-content .cm-md-page-default.cm-md-page-lead,
891
+ body.slides-printing .cm-md-page-default.cm-md-page-lead {
892
+ font-size: var(--slide-lead-size);
893
+ color: var(--text-color);
894
+ }
895
+ body.presenting #editor .cm-content .cm-md-page-default:not(.cm-md-page-title):not(.cm-md-page-lead):not(.cm-md-page-kicker),
896
+ body.slides-printing .cm-md-page-default:not(.cm-md-page-title):not(.cm-md-page-lead):not(.cm-md-page-kicker) {
897
+ font-size: 0.89em; /* .body 1.2vw ÷26 */
898
+ line-height: 1.6;
899
+ color: var(--text-secondary); /* 正文 = fg-2 灰 */
900
+ }
901
+
902
+ /* 1.6.14 chrome · IBM Plex Mono 大写 .14em label 声部,1px #282826 hairline
903
+ (模板字面值;橙底页覆写见 1.6.2 组) */
904
+ body.presenting .slide-chrome,
905
+ body.slides-printing .slide-chrome,
906
+ body.presenting .slide-foot,
907
+ body.slides-printing .slide-foot {
908
+ font-family: var(--slide-mono);
909
+ font-weight: 500;
910
+ font-size: clamp(10px, 0.72vw, 14px); /* label 0.72vw */
911
+ letter-spacing: 0.14em;
912
+ text-transform: uppercase;
913
+ color: var(--text-muted);
914
+ }
915
+ body.presenting .slide-chrome,
916
+ body.slides-printing .slide-chrome {
917
+ border-bottom: 1px solid #282826;
918
+ padding-bottom: 0.5em;
919
+ margin-bottom: 0.9em;
920
+ }
921
+ body.presenting .slide-foot,
922
+ body.slides-printing .slide-foot {
923
+ border-top: 1px solid #282826;
924
+ padding-top: 0.5em;
925
+ margin-top: 0.9em;
926
+ }
927
+
928
+ /* ═══════════════════════════════════════════════════════════
929
+ SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
930
+ ═══════════════════════════════════════════════════════════ */
931
+
932
+ #editor .cm-content {
933
+ font-family: var(--font-body);
934
+ line-height: 1.8; /* 中文衬线行距略放宽 */
935
+ }
936
+ /* 正文色 = 模板 --c-fg-2 灰(参考图二);只作用于文档态,
937
+ 幻灯片仍按各版式自己的墨/cream 声部 */
938
+ body:not(.presenting):not(.slides-printing) #editor .cm-content .cm-line {
939
+ color: var(--text-secondary);
940
+ }
941
+
942
+ /* ── 2.1 Headings ──
943
+ 模板字阶:h1 800 / h2 700 / h3 600;display 永不大写;标题无下划线
944
+ (hairline 只属于 chrome/stat-card),生成版的 h1/h2 border-bottom 移除 */
945
+ #editor .cm-content .cm-md-atxheading1,
946
+ #editor .cm-content .cm-md-atxheading2,
947
+ #editor .cm-content .cm-md-atxheading3,
948
+ #editor .cm-content .cm-md-atxheading4,
949
+ #editor .cm-content .cm-md-atxheading5,
950
+ #editor .cm-content .cm-md-atxheading6 {
951
+ font-family: var(--slide-title-font); /* 中文标题走 elegant 主体(霞鹜文楷) */
952
+ color: var(--text-color);
953
+ font-weight: 700;
954
+ line-height: 1.1;
955
+ letter-spacing: -0.02em;
956
+ }
957
+
958
+ #editor .cm-content .cm-md-atxheading1 {
959
+ font-size: 2.5em;
960
+ font-weight: 800;
961
+ line-height: 0.95;
962
+ letter-spacing: -0.03em;
963
+ }
964
+ #editor .cm-content .cm-md-atxheading2 { font-size: 2em; }
965
+ /* h1/h2 = 参考图一的 accent 橙(模板 h1.accent 声部);仅文档态,
966
+ 幻灯片页题由 1.6 各版式接管 */
967
+ body:not(.presenting):not(.slides-printing) #editor .cm-content .cm-md-atxheading1,
968
+ body:not(.presenting):not(.slides-printing) #editor .cm-content .cm-md-atxheading2 {
969
+ color: var(--seed-accent);
970
+ }
971
+ #editor .cm-content .cm-md-atxheading3 { font-size: 1.5em; font-weight: 600; line-height: 1.2; }
972
+ /* h3/h4 = 强调白(cream),与 h1/h2 橙、正文灰分层 */
973
+ body:not(.presenting):not(.slides-printing) #editor .cm-content .cm-md-atxheading3,
974
+ body:not(.presenting):not(.slides-printing) #editor .cm-content .cm-md-atxheading4 {
975
+ color: var(--text-color);
976
+ }
977
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1.25em; font-weight: 600; }
978
+ #editor .cm-content .cm-md-atxheading5 { font-size: 1.1em; font-weight: 600; }
979
+ #editor .cm-content .cm-md-atxheading6 {
980
+ font-size: 0.85em;
981
+ font-family: var(--font-mono); /* h6 = .label chrome 声部 */
982
+ font-weight: 500;
983
+ letter-spacing: 0.14em;
984
+ text-transform: uppercase;
985
+ }
986
+
987
+ /* ── 2.2 Inline ──
988
+ 强调 = 字重/尺寸/色(模板体系):strong 用正文色 700;橙只给链接/序标/高亮 */
989
+ #editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 700; }
990
+ #editor .cm-content .cm-md-em { font-style: italic; }
991
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; }
992
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
993
+ #editor .cm-content .cm-md-link { color: var(--link-color); }
994
+ #editor .cm-content .cm-md-url { color: var(--text-muted); }
995
+
996
+ #editor .cm-content .cm-md-inlinecode {
997
+ font-family: var(--font-mono);
998
+ background: var(--code-bg);
999
+ color: var(--text-color);
1000
+ border-radius: 0; /* 平面体系零圆角 */
1001
+ }
1002
+
1003
+ #editor .cm-content .cm-md-marker,
1004
+ #editor .cm-content .cm-md-quotemark,
1005
+ #editor .cm-content .cm-md-listmark {
1006
+ color: var(--seed-accent); /* "/" 橙 mono 序标(模板 bullet-marker) */
1007
+ }
1008
+
1009
+ /* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
1010
+ 引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
1011
+ 否则引用里的代码行会盖住代码块底色。 */
1012
+ #editor .cm-content .cm-md-blockquote {
1013
+ color: var(--text-secondary);
1014
+ border-left: 2px solid var(--blockquote-border); /* .rule 2px 橙轨回声 */
1015
+ padding-left: 16px;
1016
+ padding-right: 16px;
1017
+ }
1018
+
1019
+ #editor .cm-content .cm-md-codeblock {
1020
+ background: var(--code-block-bg);
1021
+ color: var(--code-block-text);
1022
+ padding-left: 16px;
1023
+ padding-right: 16px;
1024
+ }
1025
+ #editor .cm-content .cm-md-codeblock-first,
1026
+ #editor .cm-content .cm-md-codeblock-last {
1027
+ border-radius: 0;
1028
+ }
1029
+
1030
+ /* ── 2.4 Table / Rule ──
1031
+ 表格按报头排版:表头用印刷体粗体(mono 大写对中文表头无效且难读),
1032
+ 表头 = 强调白 + 印刷体 700,表体 = 与正文一致的 fg-2 灰 + 斑马纹 + 等宽数字 */
1033
+ #editor .cm-content .cm-md-table-widget th,
1034
+ #editor .cm-content .cm-md-table-widget td {
1035
+ padding: 10px 14px;
1036
+ border-color: var(--border-color);
1037
+ font-variant-numeric: tabular-nums;
1038
+ }
1039
+ #editor .cm-content .cm-md-table-widget td {
1040
+ font-size: 0.95em;
1041
+ line-height: 1.65;
1042
+ color: var(--text-secondary); /* 与正文同色(fg-2) */
1043
+ }
1044
+ #editor .cm-content .cm-md-table-widget th {
1045
+ background: var(--table-header-bg);
1046
+ color: var(--text-color);
1047
+ font-family: var(--font-body); /* 印刷体表头(中文衬线生效) */
1048
+ font-size: 0.92em;
1049
+ font-weight: 700;
1050
+ letter-spacing: 0.02em;
1051
+ text-transform: none;
1052
+ border-bottom: 1px solid var(--seed-border-strong);
1053
+ }
1054
+ #editor .cm-content .cm-md-table-widget tr:nth-child(even) td {
1055
+ background: rgba(255, 255, 255, 0.03); /* 暗底斑马纹,长表不串行 */
1056
+ }
1057
+ #editor .cm-content .cm-md-hr { border-top-color: var(--border-color); }
1058
+
1059
+ /* ── 2.5 中文首行缩进 ──
1060
+ CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
1061
+ #editor .cm-content .cm-line { text-indent: 2em; }
1062
+
1063
+ #editor .cm-content .cm-md-atxheading1,
1064
+ #editor .cm-content .cm-md-atxheading2,
1065
+ #editor .cm-content .cm-md-atxheading3,
1066
+ #editor .cm-content .cm-md-atxheading4,
1067
+ #editor .cm-content .cm-md-atxheading5,
1068
+ #editor .cm-content .cm-md-atxheading6,
1069
+ #editor .cm-content .cm-md-blockquote,
1070
+ #editor .cm-content .cm-md-codeblock,
1071
+ #editor .cm-content .cm-md-hr,
1072
+ #editor .cm-content .cm-md-mermaid,
1073
+ #editor .cm-content .cm-md-li-0,
1074
+ #editor .cm-content .cm-md-li-1,
1075
+ #editor .cm-content .cm-md-li-2,
1076
+ #editor .cm-content .cm-md-li-3,
1077
+ #editor .cm-content .cm-md-li-4,
1078
+ #editor .cm-content .cm-md-li-5,
1079
+ #editor .cm-content .cm-md-li-6 {
1080
+ text-indent: 0;
1081
+ }
1082
+
1083
+ /* ═══════════════════════════════════════════════════════════
1084
+ SECTION 3 — Exported HTML(.colamd-document,语义标签)
1085
+ HTML/PDF 导出不走编辑器 DOM;与 SECTION 2 镜像同步。
1086
+ ═══════════════════════════════════════════════════════════ */
1087
+
1088
+ .colamd-document {
1089
+ font-family: var(--font-body);
1090
+ font-size: 17px;
1091
+ line-height: 1.8;
1092
+ color: var(--text-secondary); /* 正文 = fg-2 灰(参考图二) */
1093
+ }
1094
+
1095
+ .colamd-document h1,
1096
+ .colamd-document h2,
1097
+ .colamd-document h3,
1098
+ .colamd-document h4,
1099
+ .colamd-document h5,
1100
+ .colamd-document h6 {
1101
+ font-family: var(--slide-title-font); /* 与编辑器标题同声部 */
1102
+ color: var(--text-color);
1103
+ font-weight: 700;
1104
+ line-height: 1.1;
1105
+ letter-spacing: -0.02em;
1106
+ margin: 1.5em 0 0.5em;
1107
+ }
1108
+ .colamd-document h1 { font-size: 2.5em; font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; margin-top: 0.4em; }
1109
+ .colamd-document h2 { font-size: 2em; }
1110
+ /* h1/h2 = accent 橙(与编辑器同步) */
1111
+ .colamd-document h1,
1112
+ .colamd-document h2 { color: var(--seed-accent); }
1113
+ .colamd-document h3 { font-size: 1.5em; font-weight: 600; line-height: 1.2; }
1114
+ .colamd-document h4 { font-size: 1.25em; font-weight: 600; }
1115
+ .colamd-document h5 { font-size: 1.1em; font-weight: 600; }
1116
+ .colamd-document h6 {
1117
+ font-size: 0.85em;
1118
+ font-family: var(--font-mono);
1119
+ font-weight: 500;
1120
+ letter-spacing: 0.14em;
1121
+ text-transform: uppercase;
1122
+ }
1123
+
1124
+ .colamd-document strong { color: var(--text-color); font-weight: 700; }
1125
+ .colamd-document code {
1126
+ background: var(--code-bg);
1127
+ color: var(--text-color);
1128
+ font-family: var(--font-mono);
1129
+ border-radius: 0;
1130
+ }
1131
+ /* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
1132
+ .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
1133
+ .colamd-document pre { background: var(--code-block-bg); }
1134
+ .colamd-document pre code { color: var(--code-block-text); }
1135
+ .colamd-document blockquote {
1136
+ background: var(--blockquote-bg);
1137
+ color: var(--text-secondary);
1138
+ border-left: 2px solid var(--blockquote-border);
1139
+ padding: 0.5em 1.2em;
1140
+ }
1141
+ .colamd-document mark { background: var(--highlight-bg); }
1142
+ .colamd-document th,
1143
+ .colamd-document td {
1144
+ border-color: var(--border-color);
1145
+ padding: 10px 14px;
1146
+ font-variant-numeric: tabular-nums;
1147
+ }
1148
+ .colamd-document td {
1149
+ font-size: 0.95em;
1150
+ line-height: 1.65;
1151
+ color: var(--text-secondary); /* 表体与正文同为 fg-2 灰 */
1152
+ }
1153
+ .colamd-document th {
1154
+ background: var(--table-header-bg);
1155
+ color: var(--text-color);
1156
+ font-family: var(--font-body);
1157
+ font-size: 0.92em;
1158
+ font-weight: 700;
1159
+ letter-spacing: 0.02em;
1160
+ text-transform: none;
1161
+ border-bottom: 1px solid var(--seed-border-strong);
1162
+ }
1163
+ .colamd-document tr:nth-child(even) td { background: rgba(255, 255, 255, 0.03); }
1164
+ .colamd-document hr { border-top-color: var(--border-color); }
1165
+
1166
+ .colamd-document p { text-indent: 2em; }
1167
+ .colamd-document li p,
1168
+ .colamd-document td p,
1169
+ .colamd-document th p,
1170
+ .colamd-document blockquote p {
1171
+ text-indent: 0;
1172
+ }
1173
+
1174
+ /* ═══════════════════════════════════════════════════════════
1175
+ SECTION 4 — Print
1176
+ 应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
1177
+ ═══════════════════════════════════════════════════════════ */
1178
+
1179
+ @media print {
1180
+ html,
1181
+ body {
1182
+ background: var(--bg-color);
1183
+ color: var(--text-color);
1184
+ -webkit-print-color-adjust: exact;
1185
+ print-color-adjust: exact;
1186
+ }
1187
+ }