@bytechain.cn/colamd-themes 0.6.1 → 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,648 +1,912 @@
1
- /*
2
- * ColaMD Theme: Pink Script Dark(粉墨脚本 · 暗底精修版)
3
- * 来源:D:\workspace\git\beautiful-html-templates\templates\pink-script\
4
- * template.html + design.md(nocturnal couture editorial:热粉油墨印在暗暖黑纸上)
5
- * colors: ink-deep #060507 / ink-violet #0F0D11 / paper-blush #F5EDF1
6
- * pink #ED3D8C / pink-deep #B81D67 / line-pink rgba(237,61,140,.32)
7
- * hair-paper rgba(245,237,241,.14)
8
- * fonts: DM Serif Display(编辑体标题)/ Inter 300(正文)/ JetBrains Mono(元数据)
9
- * 与工具生成版(themes/pink-script.css,from-html 提取,奶油纸方向)并存互不覆盖。
10
- * 模板特有约定(已落实):零圆角、1px 发丝线体系、粉色 kicker、
11
- * 标题 halo 光晕 text-shadow、标题内 em 切粉色、引用左轨 1px 粉线
12
- * 契约:ColaMD 2.7.13(:root 活变量;CM6 每行一 div;引用/代码块禁纵向 padding;
13
- * .cm-md-blockquote 不写 background;SECTION 1.5 为幻灯片 --slide-* 令牌)
14
- *
15
- * paradigm 说明(近黑底陷阱):surface/panel 在极低明度下 HSL 饱和度被放大,
16
- * 模板 #060507/#0F0D11 直接用会触发 SL-01/SL-02;且 hslHue 对 max==min 返回 0,
17
- * 带 1 级蓝差的面板(H240)又会撞 SL-03 —— 三层表面必须完全中性:
18
- * #060606 / #0e0e0e / #111111(与模板差 1-2/255,肉眼不可辨)。
19
- * 粉色身份由 accent / 边框 / kicker / 高亮 / Pele 承担,paradigm 全过。
20
- */
21
-
22
- :root {
23
- /* ── 1.1 Seed Palette(11 色) ── */
24
- --seed-accent: #ED3D8C; /* pink —— 全系统唯一彩色 */
25
- --seed-accent-light: rgba(237, 61, 140, 0.16);
26
- --seed-accent-dark: #B81D67; /* pink-deep */
27
- --seed-surface: #060606; /* ink-deep 中性化(SL-01:S=0) */
28
- --seed-panel: #0e0e0e; /* ≈ink-violet,全中性(max==min → H0 与 surface 同轴) */
29
- --seed-panel-alt: #111111; /* L 6.7%(SL-04:surface < panel < panelAlt) */
30
- --seed-ink: #F5EDF1; /* paper-blush */
31
- --seed-ink-muted: #b9aab2; /* mute-paper 轴向对齐版(NT-01 H328) */
32
- --seed-ink-dim: #8c8287; /* H330,辅助文字 */
33
- --seed-border: #272528; /* hair-paper 14% over surface(NT-03 中性发丝) */
34
- --seed-border-strong: #B81D67; /* pink-deep 强调边框 */
35
-
36
- /* ── 1.2 Semantic Colors(27 活变量 · 14 色) ── */
37
- --bg-color: var(--seed-surface);
38
- --text-color: var(--seed-ink);
39
- --text-secondary: var(--seed-ink-muted);
40
- --text-muted: var(--seed-ink-dim);
41
- --border-color: var(--seed-border);
42
- --link-color: var(--seed-accent);
43
-
44
- --code-bg: #120a11; /* pink 8% over surface */
45
- --code-block-bg: var(--seed-panel-alt);
46
- --code-block-text: var(--seed-ink);
47
-
48
- --blockquote-border: var(--seed-accent); /* 模板:1px 粉色左轨 */
49
- --blockquote-bg: #14090f; /* pink 6% over surface */
50
- --table-header-bg: #160b10; /* pink 7% over surface */
51
-
52
- --selection-bg: rgba(237, 61, 140, 0.35);
53
- --highlight-bg: #4b172f; /* pink 30% over surface */
54
-
55
- /* ── 1.3 Typography & Metrics(4 活变量) ── */
56
- --font-body: "Inter", "Noto Sans SC", source-han-sans-sc, "PingFang SC",
57
- "Microsoft YaHei", system-ui, sans-serif;
58
- --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace,
59
- "Noto Sans SC", monospace;
60
- --editor-font-size: 16px; /* 模板 body 16px */
61
- --editor-column-width: 840px;
62
-
63
- /* ── 1.4 Pele Diagram(9 活变量) ── */
64
- --pele-bg: var(--code-block-bg);
65
- --pele-fg: var(--text-color);
66
- --pele-muted: var(--seed-ink-dim);
67
- --pele-line: var(--seed-ink-muted);
68
- --pele-surface: var(--seed-panel);
69
- --pele-surface-alt: var(--seed-panel-alt);
70
- --pele-border: rgba(237, 61, 140, 0.42); /* 模板:图表轴线 = pink 32-42% */
71
- --pele-accent: var(--seed-accent);
72
- --pele-radius: 0px; /* 模板:结构元素零圆角 */
73
-
74
- /* ── 1.5 PPT 幻灯片令牌(ColaMD 2.7.13 slides · 按 pink-script 九页逐页复刻) ──
75
- 换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
76
- 模板 1920 画布 px ÷ 26 = em。页面对照(指定参照):
77
- cover←s-cover(P1) agenda←s-toc(P2) section←s-stats(P3)
78
- figure←s-chart(P5) steps←s-process(P6) matrix←s-matrix(P7)
79
- quote←s-quote(P8) closing←s-cta(P9) kpi 沿用 s-stats 数字形态
80
- (s-section(P4) 与 timeline/two-col 无指定,保持上游默认) */
81
- --slide-serif: "DM Serif Display", "Noto Serif SC", "Songti SC", Georgia, serif;
82
- --slide-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
83
- --slide-title-font: "DM Serif Display", "Noto Serif SC", "Songti SC", Georgia, serif;
84
- --slide-title-weight: 400; /* DM Serif Display 仅 400 */
85
- --slide-subhead-weight: 400;
86
- --slide-title-size: 5.1em; /* s-stats/s-matrix h2 132px ÷26 */
87
- --slide-title-tracking: -0.01em; /* 模板 .script 字距 */
88
- --slide-title-line-height: 1.05; /* 模板 .script 行高 */
89
- --slide-cover-title-size: 10.8em; /* s-cover title 280px ÷26 */
90
- --slide-cover-title-line-height: 1.02;
91
- --slide-cover-title-tracking: -0.015em;
92
- --slide-section-title-size: 5.1em; /* P3 s-stats h2 132px ÷26 */
93
- --slide-closing-title-size: 5.4em; /* s-cta h2 140px ÷26 */
94
- --slide-lead-size: 0.95em; /* 模板 Inter 300 描述 24-26px ÷26 */
95
- --slide-kicker-size: clamp(18px, 1.25vw, 24px); /* 模板 kicker 22-28px @1920 */
96
- --slide-kicker-tracking: 0.18em; /* s-stats kicker;封面 .42em 由 1.6.2 页级覆盖 */
97
- --slide-kicker-transform: uppercase;
98
- --slide-chrome-opacity: 0.85; /* runner 用 mute 色,透明度留给淡出过渡 */
99
- --slide-chrome-transform: uppercase;
100
- --slide-kpi-number-size: 4.5em; /* s-stats figure 116px ÷26 */
101
- --slide-quote-size: 3.5em; /* s-quote blockquote 92px ÷26 */
102
- --slide-page-pad-x: 3.2vw; /* 模板页边距 60px @1920 */
103
- --slide-page-top-pad: 132px; /* 模板正文顶 140px − chrome 安全区 */
104
- --slide-page-top-pad-print: 116px;
105
- --slide-cover-text-align: center; /* s-cover 舞台居中(stage flex center) */
106
- --slide-cover-lead-inline: auto;
107
- }
108
-
109
- /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
110
- body.presenting / body.slides-printing 作用域;仅已知令牌 + 版式类) ═══ */
111
-
112
- /* 1.6.1 页标题声部对齐:主题文档式标题(#editor .cm-content 权重)会在放映时
113
- 压过 slides.css 的页标题规则——这里以更高权重重新断言 slides 声部。
114
- 模板内容页标题 = paper 色,em 才切粉(s-stats/s-chart/s-matrix/s-cta h2)。 */
115
- body.presenting #editor .cm-content .cm-md-page-title,
116
- body.slides-printing #editor .cm-content .cm-md-page-title {
117
- font-family: var(--slide-title-font);
118
- font-size: var(--slide-title-size);
119
- font-weight: var(--slide-title-weight);
120
- line-height: var(--slide-title-line-height);
121
- letter-spacing: var(--slide-title-tracking);
122
- color: var(--text-color);
123
- border-bottom: none;
124
- padding-bottom: 0.1em;
125
- margin-bottom: 0.35em;
126
- }
127
- body.presenting #editor .cm-content .cm-md-page-title .cm-md-em,
128
- body.slides-printing #editor .cm-content .cm-md-page-title .cm-md-em {
129
- color: var(--seed-accent);
130
- }
131
-
132
- /* 1.6.2 cover · After Hours:居中粉字巨题 + 80px halo + .42em 宽字距 pre +
133
- Inter 300 大写副题(s-cover .pre/.title/.sub) */
134
- body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
135
- body.slides-printing .cm-md-slide-cover.cm-md-page-title {
136
- font-size: var(--slide-cover-title-size);
137
- color: var(--seed-accent);
138
- text-shadow: 0 0 80px rgba(237, 61, 140, 0.18);
139
- }
140
- body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
141
- body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
142
- color: var(--text-color);
143
- opacity: 0.75;
144
- }
145
- body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title[data-slide-kicker]::before {
146
- letter-spacing: 0.42em;
147
- }
148
- body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-atxheading2,
149
- body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-atxheading3,
150
- body.slides-printing .cm-md-slide-cover .cm-md-atxheading2,
151
- body.slides-printing .cm-md-slide-cover .cm-md-atxheading3 {
152
- font-family: var(--font-body);
153
- font-weight: 300;
154
- font-size: 1.1em;
155
- letter-spacing: 0.12em;
156
- text-transform: uppercase;
157
- color: var(--text-color);
158
- }
159
-
160
- /* 1.6.3 section · 参照模板第 3 页 s-stats(By the Numbers)左栏:
161
- 粉色 mono kicker → 132px paper 大标题(em 切粉)→ Inter 压淡导语;
162
- 内容顶部对齐(模板 body inset 140px),不再垂直居中 */
163
- body.presenting #editor[data-slide-layout='section'] .cm-content {
164
- justify-content: flex-start;
165
- min-height: 92vh;
166
- padding-top: 140px;
167
- }
168
- body.presenting #editor .cm-content .cm-md-slide-section .cm-md-page-title,
169
- body.slides-printing .cm-md-slide-section.cm-md-page-title {
170
- font-size: var(--slide-section-title-size);
171
- max-width: 10em;
172
- }
173
- body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
174
- body.slides-printing .cm-md-slide-section .cm-md-page-title[data-slide-kicker]::before {
175
- color: var(--seed-accent);
176
- opacity: 1;
177
- }
178
- body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
179
- body.slides-printing .cm-md-slide-section.cm-md-page-lead {
180
- font-size: 0.92em;
181
- color: var(--text-muted);
182
- max-width: 42%;
183
- }
184
-
185
- /* 1.6.4 kpi · By the Numbers:粉色衬线大数字,行高 .9(s-stats .figure) */
186
- body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
187
- body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
188
- color: var(--seed-accent);
189
- font-weight: 400;
190
- line-height: 0.9;
191
- letter-spacing: -0.01em;
192
- }
193
- body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-page-title[data-slide-kicker]::before,
194
- body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-page-title[data-slide-kicker]::before {
195
- color: var(--seed-accent);
196
- }
197
-
198
- /* 1.6.5 agenda · 参照模板第 2 页 s-toc(The Index):
199
- 页题 220px 粉衬线(h1 ÷26);行式条目 = hairline 底线,衬线粉序号 64px、
200
- 衬线 paper 章名 56px、说明 24px mute */
201
- body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-page-title,
202
- body.slides-printing .cm-md-slide-agenda.cm-md-page-title {
203
- font-size: 8.5em;
204
- line-height: 1.04;
205
- color: var(--seed-accent);
206
- }
207
- body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
208
- body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
209
- font-size: 0.92em;
210
- margin: 0;
211
- padding: 1em 0;
212
- border-top: none;
213
- border-bottom: 1px solid var(--border-color);
214
- }
215
- body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
216
- body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
217
- font-family: var(--slide-title-font);
218
- font-size: 2.67em; /* 64px ÷26 ÷0.92(li) */
219
- line-height: 1;
220
- font-weight: 400;
221
- margin-right: 0.5em;
222
- }
223
- body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-strong,
224
- body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-strong {
225
- font-family: var(--slide-title-font);
226
- font-size: 2.34em; /* 56px ÷26 ÷0.92(li) */
227
- font-weight: 400;
228
- color: var(--text-color);
229
- }
230
-
231
- /* 1.6.6 steps · 参照模板第 6 页 s-process(Process):
232
- 页题 156px paper(em 切粉);五列横排步骤条——顶线 1px 粉、衬线粉序号 96px、
233
- 衬线 paper 步骤名 38px、说明 22px mute(.row .step) */
234
- body.presenting #editor[data-slide-layout='steps'] .cm-content .cm-md-page-title,
235
- body.slides-printing .cm-md-slide-steps.cm-md-page-title {
236
- font-size: 6em; /* 156px ÷26 */
237
- max-width: 12ch;
238
- }
239
- body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
240
- body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
241
- display: inline-block;
242
- width: 18.4%; /* 五列 + 24px gap @1920 */
243
- margin: 0 1.9% 1.2em 0;
244
- vertical-align: top;
245
- border-left: none;
246
- border-bottom: none;
247
- border-top: 1px solid rgba(237, 61, 140, 0.45);
248
- padding: 0.9em 0 0;
249
- font-size: 0.85em; /* 说明 22px ÷26 */
250
- text-align: left;
251
- list-style: none;
252
- }
253
- body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
254
- body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
255
- display: inline;
256
- font-family: var(--slide-title-font);
257
- font-size: 4.35em; /* 96px ÷26 ÷0.85(li) */
258
- font-weight: 400;
259
- line-height: 1;
260
- color: var(--seed-accent);
261
- margin-right: 0.3em;
262
- }
263
- body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
264
- body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
265
- display: block;
266
- border: none;
267
- border-radius: 0;
268
- background: transparent;
269
- padding: 0;
270
- min-width: 0;
271
- font-family: var(--slide-title-font);
272
- font-size: 1.72em; /* 38px ÷26 ÷0.85(li) */
273
- font-weight: 400;
274
- line-height: 1.05;
275
- color: var(--text-color);
276
- }
277
-
278
- /* 1.6.7 quote · 参照模板第 8 页 s-quote(Voices):
279
- 320px 粉色巨引号(qmark ÷26)、92px paper 金句非斜体、em 切粉;
280
- 署名行(引用后一行)= 粉色 1px 顶线 + 48px 衬线 paper(.attr .who) */
281
- body.presenting .cm-md-slide-quote .cm-md-blockquote,
282
- body.slides-printing .cm-md-slide-quote .cm-md-blockquote {
283
- color: var(--text-color);
284
- font-style: normal;
285
- line-height: 1.05;
286
- letter-spacing: -0.005em;
287
- max-width: 82%;
288
- }
289
- body.presenting .cm-md-slide-quote .cm-md-blockquote .cm-md-em,
290
- body.slides-printing .cm-md-slide-quote .cm-md-blockquote .cm-md-em {
291
- color: var(--seed-accent);
292
- }
293
- body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
294
- body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
295
- font-size: 12.3em; /* 320px ÷26 */
296
- line-height: 0.6;
297
- }
298
- body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
299
- body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
300
- margin-top: 1.4em;
301
- padding-top: 0.6em;
302
- border-top: 1px solid rgba(237, 61, 140, 0.45);
303
- font-family: var(--slide-title-font);
304
- font-size: 1.85em; /* 48px ÷26 */
305
- color: var(--text-color);
306
- }
307
-
308
- /* 1.6.8 closing · Encore:标题 paper 色 + 清单换模板顶线画法(s-cta .step) */
309
- body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title,
310
- body.slides-printing .cm-md-slide-closing.cm-md-page-title {
311
- font-size: var(--slide-closing-title-size);
312
- line-height: 1.04;
313
- color: var(--text-color);
314
- }
315
- body.presenting .cm-md-slide-closing.cm-md-li,
316
- body.slides-printing .cm-md-slide-closing.cm-md-li {
317
- border-top: 1px solid rgba(237, 61, 140, 0.45);
318
- padding-top: 0.8em;
319
- }
320
-
321
- /* 1.6.9 figure · The Curve:页题收一档(s-chart h2 90px ÷26) */
322
- body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title,
323
- body.slides-printing .cm-md-slide-figure.cm-md-page-title {
324
- font-size: 3.5em;
325
- }
326
-
327
- /* 1.6.10 matrix · 参照模板第 7 页 s-matrix(The Field):
328
- 页题 132px paper(em 切粉,走 1.6.1 全局 5.1em);四列 hairline 底线网格,
329
- 行标 = 衬线 paper 32px,列头概念由 strong 承担(.cell.label) */
330
- body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
331
- body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
332
- width: 23%; /* 四列 + gap @1920 */
333
- margin: 0 1.8% 1.2em 0;
334
- border: none;
335
- border-bottom: 1px solid var(--border-color);
336
- border-radius: 0;
337
- background: transparent;
338
- padding: 0.7em 0.2em;
339
- font-size: 0.85em;
340
- vertical-align: top;
341
- }
342
- body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
343
- body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
344
- font-family: var(--slide-title-font);
345
- font-size: 1.5em; /* 32px ÷26 ÷0.85(li) */
346
- font-weight: 400;
347
- color: var(--text-color);
348
- }
349
-
350
- /* 1.6.11 chrome · runner/footer:JetBrains Mono mute 色 .14em(.runner/.footer)。
351
- SLIDE-02:.slide-chrome|foot 必须包裹在放映/导出作用域下 */
352
- body.presenting .slide-chrome,
353
- body.slides-printing .slide-chrome {
354
- font-size: clamp(14px, 1.1vw, 22px);
355
- letter-spacing: 0.14em;
356
- color: var(--text-muted);
357
- }
358
- body.presenting .slide-foot,
359
- body.slides-printing .slide-foot {
360
- font-size: clamp(13px, 1vw, 20px);
361
- letter-spacing: 0.14em;
362
- color: var(--text-muted);
363
- }
364
-
365
- /* ═══════════════ SECTION 2 — Editor DOM ═══════════════ */
366
-
367
- #editor .cm-content {
368
- color: var(--text-color);
369
- font-family: var(--font-body); /* Inter 300 正文声部 */
370
- font-weight: 300;
371
- line-height: 1.75;
372
- letter-spacing: -0.005em;
373
- -webkit-font-smoothing: antialiased;
374
- text-rendering: optimizeLegibility;
375
- }
376
-
377
- /* ── 2.1 Headings:DM Serif Display 400 + 粉色光晕(模板 hero script) ── */
378
- #editor .cm-content .cm-md-atxheading1,
379
- #editor .cm-content .cm-md-atxheading2,
380
- #editor .cm-content .cm-md-atxheading3,
381
- #editor .cm-content .cm-md-atxheading4,
382
- #editor .cm-content .cm-md-atxheading5,
383
- #editor .cm-content .cm-md-atxheading6 {
384
- color: var(--seed-ink);
385
- font-family: "DM Serif Display", "Noto Serif SC", source-han-serif-sc,
386
- "Songti SC", Georgia, serif;
387
- font-weight: 400; /* DM Serif Display 只有 400 */
388
- line-height: 1.1;
389
- letter-spacing: -0.01em;
390
- }
391
- #editor .cm-content .cm-md-atxheading1 {
392
- font-size: 3.05em;
393
- line-height: 1.05;
394
- letter-spacing: -0.015em;
395
- color: var(--seed-accent); /* hero script 一律粉色 */
396
- text-shadow: 0 0 0.6em rgba(237, 61, 140, 0.22); /* 模板 halo */
397
- padding-bottom: 0.06em; /* 模板 padding-bottom .1em 补 descender */
398
- }
399
- #editor .cm-content .cm-md-atxheading2 {
400
- font-size: 2.4em;
401
- padding-bottom: 0.18em;
402
- border-bottom: 1px solid rgba(237, 61, 140, 0.32); /* 粉色发丝 */
403
- }
404
- #editor .cm-content .cm-md-atxheading3 { font-size: 1.75em; }
405
- #editor .cm-content .cm-md-atxheading4 { font-size: 1.42em; }
406
- #editor .cm-content .cm-md-atxheading5 { font-size: 1.22em; }
407
- #editor .cm-content .cm-md-atxheading6 {
408
- font-size: 1.02em;
409
- color: var(--seed-accent); /* 粉色 kicker 眉标 */
410
- font-family: var(--font-mono);
411
- font-weight: 400;
412
- letter-spacing: 0.24em; /* 模板 mono-kicker 宽字距 */
413
- text-transform: uppercase;
414
- }
415
-
416
- /* ── 2.2 Inline / Lists ── */
417
- #editor .cm-content .cm-md-strong { color: var(--seed-ink); font-weight: 600; }
418
- #editor .cm-content .cm-md-em {
419
- font-family: Georgia, "Noto Serif SC", serif; /* 模板:正文斜体走衬线 */
420
- font-style: italic;
421
- }
422
- #editor .cm-content .cm-md-strike { text-decoration: line-through; color: var(--text-muted); }
423
- #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
424
- #editor .cm-content .cm-md-link {
425
- color: var(--link-color);
426
- text-decoration: none;
427
- border-bottom: 1px solid rgba(237, 61, 140, 0.32);
428
- }
429
- #editor .cm-content .cm-md-url { color: var(--text-muted); font-family: var(--font-mono); }
430
- #editor .cm-content .cm-md-inlinecode {
431
- color: var(--text-color);
432
- font-family: var(--font-mono);
433
- font-weight: 400;
434
- font-size: 0.88em;
435
- background: var(--code-bg);
436
- border: 1px solid rgba(237, 61, 140, 0.32); /* 粉色发丝框 */
437
- border-radius: 0; /* 模板:零圆角 */
438
- padding: 1px 5px;
439
- }
440
- #editor .cm-content .cm-md-marker,
441
- #editor .cm-content .cm-md-quotemark { color: var(--text-muted); font-family: var(--font-mono); }
442
- #editor .cm-content .cm-md-listmark { color: var(--seed-accent); }
443
- #editor .cm-content .cm-md-li-0,
444
- #editor .cm-content .cm-md-li-1,
445
- #editor .cm-content .cm-md-li-2,
446
- #editor .cm-content .cm-md-li-3,
447
- #editor .cm-content .cm-md-li-4,
448
- #editor .cm-content .cm-md-li-5,
449
- #editor .cm-content .cm-md-li-6 { color: var(--text-color); }
450
-
451
- /* ── 2.3 Blockquote / Code Block(禁纵向 padding;blockquote 不写 background) ── */
452
- #editor .cm-content .cm-md-blockquote {
453
- color: var(--text-secondary);
454
- font-family: "DM Serif Display", "Noto Serif SC", "Songti SC", Georgia, serif;
455
- font-size: 1.18em; /* 模板 serif-quote 声部 */
456
- line-height: 1.5;
457
- border-left: 1px solid var(--blockquote-border); /* 模板:1px 粉色左轨,无更粗边 */
458
- padding-left: 16px;
459
- padding-right: 16px;
460
- }
461
- #editor .cm-content .cm-md-codeblock {
462
- color: var(--code-block-text);
463
- font-family: var(--font-mono);
464
- font-weight: 400;
465
- line-height: 1.6;
466
- background: var(--code-block-bg);
467
- border-left: 1px solid var(--border-color);
468
- border-right: 1px solid var(--border-color);
469
- padding-left: 16px;
470
- padding-right: 16px;
471
- }
472
- #editor .cm-content .cm-md-codeblock-first {
473
- border-top: 1px solid var(--border-color);
474
- border-radius: 0;
475
- }
476
- #editor .cm-content .cm-md-codeblock-last {
477
- border-bottom: 1px solid var(--border-color);
478
- border-radius: 0;
479
- }
480
-
481
- /* ── 2.4 Table / Rule(模板:表分隔线 = pink 32%) ── */
482
- #editor .cm-content .cm-md-table-widget th,
483
- #editor .cm-content .cm-md-table-widget td {
484
- padding: 10px 14px;
485
- border-color: rgba(237, 61, 140, 0.32);
486
- }
487
- #editor .cm-content .cm-md-table-widget td { font-weight: 400; }
488
- #editor .cm-content .cm-md-table-widget th {
489
- color: var(--seed-ink);
490
- font-family: var(--font-mono);
491
- font-size: 0.8em;
492
- font-weight: 400;
493
- letter-spacing: 0.14em; /* 模板 mono runner 字距 */
494
- text-transform: uppercase;
495
- background: var(--table-header-bg);
496
- border-bottom: 1px solid var(--seed-accent);
497
- }
498
- #editor .cm-content .cm-md-table-widget tr:nth-child(even) td { background: var(--seed-panel); }
499
- #editor .cm-content .cm-md-hr { border-top-color: rgba(237, 61, 140, 0.32); }
500
- #editor .cm-content .cm-md-task-checked { color: var(--text-muted); }
501
-
502
- /* ═══════════════ SECTION 3 — Exported HTML ═══════════════ */
503
-
504
- .colamd-document {
505
- color: var(--text-color);
506
- font-family: var(--font-body);
507
- font-weight: 300; /* Inter 300 正文 */
508
- font-size: var(--editor-font-size);
509
- line-height: 1.75;
510
- letter-spacing: -0.005em;
511
- -webkit-font-smoothing: antialiased;
512
- text-rendering: optimizeLegibility;
513
- background: var(--bg-color);
514
- }
515
- .colamd-document h1,
516
- .colamd-document h2,
517
- .colamd-document h3,
518
- .colamd-document h4,
519
- .colamd-document h5,
520
- .colamd-document h6 {
521
- color: var(--seed-ink);
522
- font-family: "DM Serif Display", "Noto Serif SC", source-han-serif-sc,
523
- "Songti SC", Georgia, serif;
524
- font-weight: 400;
525
- line-height: 1.1;
526
- letter-spacing: -0.01em;
527
- margin: 1.6em 0 0.55em;
528
- }
529
- .colamd-document h1 {
530
- font-size: 3.05em;
531
- line-height: 1.05;
532
- letter-spacing: -0.015em;
533
- color: var(--seed-accent);
534
- text-shadow: 0 0 0.6em rgba(237, 61, 140, 0.22); /* halo */
535
- padding-bottom: 0.06em;
536
- margin-top: 0.4em;
537
- }
538
- .colamd-document h2 {
539
- font-size: 2.4em;
540
- padding-bottom: 0.18em;
541
- border-bottom: 1px solid rgba(237, 61, 140, 0.32);
542
- }
543
- .colamd-document h3 { font-size: 1.75em; }
544
- .colamd-document h4 { font-size: 1.42em; }
545
- .colamd-document h5 { font-size: 1.22em; }
546
- .colamd-document h6 {
547
- font-size: 1.02em;
548
- color: var(--seed-accent); /* 粉色 kicker */
549
- font-family: var(--font-mono);
550
- font-weight: 400;
551
- letter-spacing: 0.24em;
552
- text-transform: uppercase;
553
- }
554
- /* 模板:标题里的 em = 切成粉色(不是斜体) */
555
- .colamd-document h1 em,
556
- .colamd-document h2 em,
557
- .colamd-document h3 em,
558
- .colamd-document h4 em {
559
- color: var(--seed-accent);
560
- font-style: normal;
561
- }
562
- .colamd-document strong { color: var(--seed-ink); font-weight: 600; }
563
- .colamd-document em {
564
- font-family: Georgia, "Noto Serif SC", serif;
565
- font-style: italic;
566
- }
567
- .colamd-document a {
568
- color: var(--link-color);
569
- text-decoration: none;
570
- border-bottom: 1px solid rgba(237, 61, 140, 0.32);
571
- }
572
- .colamd-document p { margin: 0.9em 0; }
573
- .colamd-document ul,
574
- .colamd-document ol { padding-left: 1.75em; }
575
- .colamd-document li { margin: 0.25em 0; }
576
- .colamd-document li::marker { color: var(--seed-accent); }
577
- .colamd-document code {
578
- color: var(--text-color);
579
- font-family: var(--font-mono);
580
- font-weight: 400;
581
- font-size: 0.88em;
582
- background: var(--code-bg);
583
- border: 1px solid rgba(237, 61, 140, 0.32);
584
- border-radius: 0;
585
- padding: 1px 5px;
586
- }
587
- .colamd-document pre {
588
- background: var(--code-block-bg);
589
- border: 1px solid var(--border-color);
590
- border-radius: 0; /* 零圆角 */
591
- }
592
- .colamd-document pre code {
593
- color: var(--code-block-text);
594
- background: transparent;
595
- border: 0;
596
- padding: 0;
597
- }
598
- .colamd-document blockquote {
599
- color: var(--text-secondary);
600
- font-family: "DM Serif Display", "Noto Serif SC", "Songti SC", Georgia, serif;
601
- font-size: 1.18em;
602
- line-height: 1.5;
603
- background: var(--blockquote-bg);
604
- border-left: 1px solid var(--blockquote-border);
605
- padding: 0.5em 1.2em;
606
- }
607
- .colamd-document mark { background: var(--highlight-bg); color: var(--seed-ink); }
608
- .colamd-document table { border-collapse: collapse; width: 100%; }
609
- .colamd-document th,
610
- .colamd-document td {
611
- border: 1px solid rgba(237, 61, 140, 0.32);
612
- padding: 10px 14px;
613
- border-radius: 0;
614
- }
615
- .colamd-document td { font-weight: 400; }
616
- .colamd-document th {
617
- color: var(--seed-ink);
618
- font-family: var(--font-mono);
619
- font-size: 0.8em;
620
- font-weight: 400;
621
- letter-spacing: 0.14em;
622
- text-transform: uppercase;
623
- background: var(--table-header-bg);
624
- border-bottom: 1px solid var(--seed-accent);
625
- }
626
- .colamd-document tbody tr:nth-child(even) td { background: var(--seed-panel); }
627
- .colamd-document hr {
628
- border: 0;
629
- border-top: 1px solid rgba(237, 61, 140, 0.32); /* 粉色发丝分隔 */
630
- }
631
- .colamd-document img {
632
- max-width: 100%;
633
- border: 1px solid var(--border-color);
634
- border-radius: 0;
635
- }
636
- .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
637
-
638
- /* ═══════════════ SECTION 4 — Print ═══════════════ */
639
-
640
- @media print {
641
- html,
642
- body {
643
- background: var(--bg-color);
644
- color: var(--text-color);
645
- -webkit-print-color-adjust: exact;
646
- print-color-adjust: exact;
647
- }
648
- }
1
+ /*
2
+ * ColaMD Theme: Pink Script Dark(粉墨脚本 · 暗底精修版)
3
+ * 来源:D:\workspace\git\beautiful-html-templates\templates\pink-script\
4
+ * template.html + design.md(nocturnal couture editorial:热粉油墨印在暗暖黑纸上)
5
+ * colors: ink-deep #060507 / ink-violet #0F0D11 / paper-blush #F5EDF1
6
+ * pink #ED3D8C / pink-deep #B81D67 / line-pink rgba(237,61,140,.32)
7
+ * hair-paper rgba(245,237,241,.14)
8
+ * fonts: DM Serif Display(编辑体标题)/ Inter 300(正文)/ JetBrains Mono(元数据)
9
+ * 与工具生成版(themes/pink-script.css,from-html 提取,奶油纸方向)并存互不覆盖。
10
+ * 模板特有约定(已落实):零圆角、1px 发丝线体系、粉色 kicker、
11
+ * 标题 halo 光晕 text-shadow、标题内 em 切粉色、引用左轨 1px 粉线
12
+ * 契约:ColaMD 2.7.13(:root 活变量;CM6 每行一 div;引用/代码块禁纵向 padding;
13
+ * .cm-md-blockquote 不写 background;SECTION 1.5 为幻灯片 --slide-* 令牌)
14
+ *
15
+ * paradigm 说明(近黑底陷阱):surface/panel 在极低明度下 HSL 饱和度被放大,
16
+ * 模板 #060507/#0F0D11 直接用会触发 SL-01/SL-02;且 hslHue 对 max==min 返回 0,
17
+ * 带 1 级蓝差的面板(H240)又会撞 SL-03 —— 三层表面必须完全中性:
18
+ * #060606 / #0e0e0e / #111111(与模板差 1-2/255,肉眼不可辨)。
19
+ * 粉色身份由 accent / 边框 / kicker / 高亮 / Pele 承担,paradigm 全过。
20
+ */
21
+
22
+ :root {
23
+ /* ── 1.1 Seed Palette(11 色) ── */
24
+ --seed-accent: #ED3D8C; /* pink —— 全系统唯一彩色 */
25
+ --seed-accent-light: rgba(237, 61, 140, 0.16);
26
+ --seed-accent-dark: #B81D67; /* pink-deep */
27
+ --seed-surface: #060606; /* ink-deep 中性化(SL-01:S=0) */
28
+ --seed-panel: #0e0e0e; /* ≈ink-violet,全中性(max==min → H0 与 surface 同轴) */
29
+ --seed-panel-alt: #111111; /* L 6.7%(SL-04:surface < panel < panelAlt) */
30
+ --seed-ink: #F5EDF1; /* paper-blush */
31
+ --seed-ink-muted: #b9aab2; /* mute-paper 轴向对齐版(NT-01 H328) */
32
+ --seed-ink-dim: #8c8287; /* H330,辅助文字 */
33
+ --seed-border: #272528; /* hair-paper 14% over surface(NT-03 中性发丝) */
34
+ --seed-border-strong: #B81D67; /* pink-deep 强调边框 */
35
+
36
+ /* ── 1.2 Semantic Colors(27 活变量 · 14 色) ── */
37
+ --bg-color: var(--seed-surface);
38
+ --text-color: var(--seed-ink);
39
+ --text-secondary: var(--seed-ink-muted);
40
+ --text-muted: var(--seed-ink-dim);
41
+ --border-color: var(--seed-border);
42
+ --link-color: var(--seed-accent);
43
+
44
+ --code-bg: #120a11; /* pink 8% over surface */
45
+ --code-block-bg: var(--seed-panel-alt);
46
+ --code-block-text: var(--seed-ink);
47
+
48
+ --blockquote-border: var(--seed-accent); /* 模板:1px 粉色左轨 */
49
+ --blockquote-bg: #14090f; /* pink 6% over surface */
50
+ --table-header-bg: #160b10; /* pink 7% over surface */
51
+
52
+ --selection-bg: rgba(237, 61, 140, 0.35);
53
+ --highlight-bg: #4b172f; /* pink 30% over surface */
54
+
55
+ /* ── 1.3 Typography & Metrics(4 活变量) ── */
56
+ --font-body: "Inter", "Noto Sans SC", source-han-sans-sc, "PingFang SC",
57
+ "Microsoft YaHei", system-ui, sans-serif;
58
+ --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace,
59
+ "Noto Sans SC", monospace;
60
+ --editor-font-size: 16px; /* 模板 body 16px */
61
+ --editor-column-width: 840px;
62
+
63
+ /* ── 1.4 Pele Diagram(9 活变量) ── */
64
+ --pele-bg: var(--code-block-bg);
65
+ --pele-fg: var(--text-color);
66
+ --pele-muted: var(--seed-ink-dim);
67
+ --pele-line: var(--seed-ink-muted);
68
+ --pele-surface: var(--seed-panel);
69
+ --pele-surface-alt: var(--seed-panel-alt);
70
+ --pele-border: rgba(237, 61, 140, 0.42); /* 模板:图表轴线 = pink 32-42% */
71
+ --pele-accent: var(--seed-accent);
72
+ --pele-radius: 0px; /* 模板:结构元素零圆角 */
73
+
74
+ /* ── 1.5 PPT 幻灯片令牌(ColaMD 2.7.13 slides · 按 pink-script 逐页复刻) ──
75
+ 放映:基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em,模板 px ÷ 26。
76
+ 导出:1280×720 纸面 = 模板 1920×1080 × 2/3,基准 24px/em,
77
+ 所以尺寸在 1.7 里按 “模板 px × 2/3 ÷ 24” 重新校准。页面对照:
78
+ cover←P1 agenda←P2 kpi←P3(s-stats) section←P4(s-section)
79
+ figure←P5 steps←P6(s-process) timeline←P6(s-process 步骤条)
80
+ matrix←P7 quote←P8(s-quote) closing←P9 */
81
+ --slide-serif: "DM Serif Display", "Noto Serif SC", "Songti SC", Georgia, serif;
82
+ --slide-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
83
+ --slide-title-font: "DM Serif Display", "Noto Serif SC", "Songti SC", Georgia, serif;
84
+ --slide-title-weight: 400; /* DM Serif Display 仅 400 */
85
+ --slide-subhead-weight: 400;
86
+ --slide-title-size: 5.1em; /* s-stats/s-matrix h2 132px ÷26 */
87
+ --slide-title-tracking: -0.01em; /* 模板 .script 字距 */
88
+ --slide-title-line-height: 1.05; /* 模板 .script 行高 */
89
+ --slide-cover-title-size: 10.8em; /* s-cover title 280px ÷26 */
90
+ --slide-cover-title-line-height: 1.02;
91
+ --slide-cover-title-tracking: -0.015em;
92
+ --slide-section-title-size: 3.38em; /* P4 s-section h2 88px ÷26 */
93
+ --slide-closing-title-size: 5.4em; /* s-cta h2 140px ÷26 */
94
+ --slide-lead-size: 0.95em; /* 模板 Inter 300 描述 24-26px ÷26 */
95
+ --slide-kicker-size: clamp(18px, 1.25vw, 24px); /* 模板 kicker 22-28px @1920 */
96
+ --slide-kicker-tracking: 0.18em; /* s-stats kicker;封面 .42em 由 1.6.2 页级覆盖 */
97
+ --slide-kicker-transform: uppercase;
98
+ --slide-chrome-opacity: 0.85; /* runner 用 mute 色,透明度留给淡出过渡 */
99
+ --slide-chrome-transform: uppercase;
100
+ --slide-kpi-number-size: 4.5em; /* s-stats figure 116px ÷26 */
101
+ --slide-quote-size: 3.5em; /* s-quote blockquote 92px ÷26 */
102
+ --slide-page-pad-x: 3.2vw; /* 模板页边距 60px @1920 */
103
+ --slide-page-top-pad: 132px; /* 模板正文顶 140px − chrome 安全区 */
104
+ --slide-page-top-pad-print: 90px; /* 模板 140px × 2/3 */
105
+ --slide-cover-text-align: center; /* s-cover 舞台居中(stage flex center) */
106
+ --slide-cover-lead-inline: auto;
107
+ }
108
+
109
+ /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
110
+ body.presenting / body.slides-printing 作用域;仅已知令牌 + 版式类) ═══ */
111
+
112
+ /* 1.6.1 页标题声部对齐:主题文档式标题(#editor .cm-content 权重)会在放映时
113
+ 压过 slides.css 的页标题规则——这里以更高权重重新断言 slides 声部。
114
+ 模板内容页标题 = paper 色,em 才切粉(s-stats/s-chart/s-matrix/s-cta h2)。 */
115
+ body.presenting #editor .cm-content .cm-md-page-title,
116
+ body.slides-printing #editor .cm-content .cm-md-page-title {
117
+ font-family: var(--slide-title-font);
118
+ font-size: var(--slide-title-size);
119
+ font-weight: var(--slide-title-weight);
120
+ line-height: var(--slide-title-line-height);
121
+ letter-spacing: var(--slide-title-tracking);
122
+ color: var(--text-color);
123
+ border-bottom: none;
124
+ padding-bottom: 0.1em;
125
+ margin-bottom: 0.35em;
126
+ }
127
+ body.presenting #editor .cm-content .cm-md-page-title .cm-md-em,
128
+ body.slides-printing #editor .cm-content .cm-md-page-title .cm-md-em {
129
+ color: var(--seed-accent);
130
+ }
131
+
132
+ /* 1.6.2 cover · After Hours:居中粉字巨题 + 80px halo + .42em 宽字距 pre +
133
+ Inter 300 大写副题(s-cover .pre/.title/.sub)。
134
+ 导出作用域必须带 #editor .cm-content 提到 id 权重:data-slide-layout 属性
135
+ 只在放映时写上,导出纸面靠行类 .cm-md-slide-cover 命中;不带 id 的选择器
136
+ 会被 1.6.1 的纸面页题规则压掉,粉色巨题退化成纸色普通页题。 */
137
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
138
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-title {
139
+ font-size: var(--slide-cover-title-size);
140
+ line-height: var(--slide-cover-title-line-height, 1.02);
141
+ letter-spacing: var(--slide-cover-title-tracking, -0.015em);
142
+ color: var(--seed-accent);
143
+ text-shadow: 0 0 80px rgba(237, 61, 140, 0.18);
144
+ }
145
+ /* 放映的封面居中靠 flex 容器,导出是块流,只能逐行对齐;
146
+ 导语块再按 --slide-cover-lead-inline 收进中线。 */
147
+ body.slides-printing #editor .cm-content .cm-md-slide-cover {
148
+ text-align: var(--slide-cover-text-align, center);
149
+ }
150
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-lead {
151
+ margin-inline: var(--slide-cover-lead-inline, auto);
152
+ }
153
+ /* 放映的封面是整页垂直居中,导出块流只能给页首垫一个近似值,
154
+ 让巨题落在纸面中上而不是贴顶(页首行可能是隐藏的指令行,
155
+ 所以要 !important 压过 slides.css 的安全区规则)。 */
156
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-start {
157
+ padding-top: 140px !important;
158
+ }
159
+ body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
160
+ body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
161
+ color: var(--text-color);
162
+ opacity: 0.75;
163
+ }
164
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
165
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-title[data-slide-kicker]::before {
166
+ letter-spacing: 0.42em;
167
+ }
168
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-atxheading2,
169
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-atxheading3,
170
+ body.slides-printing #editor .cm-content .cm-md-slide-cover .cm-md-atxheading2,
171
+ body.slides-printing #editor .cm-content .cm-md-slide-cover .cm-md-atxheading3 {
172
+ font-family: var(--font-body);
173
+ font-weight: 300;
174
+ font-size: 1.1em;
175
+ letter-spacing: 0.12em;
176
+ text-transform: uppercase;
177
+ color: var(--text-color);
178
+ border-bottom: none; /* 导出侧去掉文档式 h2 的粉色发丝线 */
179
+ }
180
+
181
+ /* 1.6.3 section · 参照模板第 4 页 s-section(Movements):
182
+ 导出纸面上:左侧 600px×2/3 粉色衬线巨号(当前章序 01/02…)+ 右栏 kicker /
183
+ 88px×2/3 paper 标题 / Inter 压淡导语。巨号挂在页首空行的 ::after 上
184
+ (浮动、不占正文行;不能用 ::before —— slides-export 给 hero 页的居中
185
+ 垫高正是 page-start::before)。放映模式保留下游的顶部对齐排版。 */
186
+ body.slides-printing #editor .cm-content {
187
+ counter-reset: ps-section;
188
+ }
189
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-start {
190
+ counter-increment: ps-section;
191
+ }
192
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-start::after {
193
+ content: counter(ps-section, decimal-leading-zero);
194
+ visibility: visible;
195
+ display: block;
196
+ float: left;
197
+ width: 40%;
198
+ white-space: nowrap;
199
+ font-family: var(--slide-title-font);
200
+ font-size: 400px; /* 600px × 2/3 */
201
+ line-height: 0.82;
202
+ letter-spacing: -0.02em;
203
+ color: var(--seed-accent);
204
+ text-shadow: 0 0 120px rgba(237, 61, 140, 0.22);
205
+ }
206
+ body.presenting #editor[data-slide-layout='section'] .cm-content {
207
+ justify-content: flex-start;
208
+ min-height: 92vh;
209
+ padding-top: 140px;
210
+ }
211
+ body.presenting #editor .cm-content .cm-md-slide-section .cm-md-page-title,
212
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-title {
213
+ font-size: var(--slide-section-title-size);
214
+ max-width: 10em;
215
+ }
216
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
217
+ body.slides-printing #editor .cm-content .cm-md-slide-section .cm-md-page-title[data-slide-kicker]::before {
218
+ color: var(--seed-accent);
219
+ opacity: 1;
220
+ }
221
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
222
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-lead {
223
+ font-size: 0.92em;
224
+ color: var(--text-muted);
225
+ max-width: 42%;
226
+ }
227
+
228
+ /* 1.6.4 kpi · 参照模板第 3 页 s-stats(By the Numbers):
229
+ 左栏 38% = kicker + 132px paper 标题 + 压淡导语(float 左栏,高度只有 ~180px,
230
+ 在页内早早收尾,不会像数字行 float 那样跨页泄漏);右侧 57% 数字带——
231
+ 240px 粉色衬线数字 / 说明右栏,行间 hairline。 */
232
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-page-title,
233
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-page-title {
234
+ float: left;
235
+ width: 38%;
236
+ margin: 0 5% 0 0;
237
+ font-size: var(--slide-title-size);
238
+ }
239
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-page-lead,
240
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-page-lead {
241
+ float: left;
242
+ clear: left;
243
+ width: 38%;
244
+ max-width: none;
245
+ margin: 0.2em 5% 0 0;
246
+ font-size: 0.92em;
247
+ color: var(--text-muted);
248
+ }
249
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-page-title[data-slide-kicker]::before,
250
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-page-title[data-slide-kicker]::before {
251
+ color: var(--seed-accent);
252
+ }
253
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
254
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
255
+ width: 57%;
256
+ margin: 0 0 0 43%;
257
+ padding: 0.5em 0;
258
+ border-bottom: 1px solid var(--border-color);
259
+ font-size: 0.92em;
260
+ line-height: 1.5;
261
+ }
262
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
263
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
264
+ display: inline-block;
265
+ width: 30%;
266
+ vertical-align: middle;
267
+ font-family: var(--slide-title-font);
268
+ font-size: var(--slide-kpi-number-size);
269
+ font-weight: 400;
270
+ line-height: 0.9;
271
+ letter-spacing: -0.01em;
272
+ color: var(--seed-accent);
273
+ }
274
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-li-bullet,
275
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-li-bullet {
276
+ display: none;
277
+ }
278
+
279
+ /* 1.6.5 timeline · 参照模板第 6 页 s-process(Process)步骤条:
280
+ 页题 156px,三/五列横排,每列顶部 1px 粉线 → 96px 粉色衬线年份 → 22px 说明 */
281
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-page-title,
282
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-page-title {
283
+ font-size: 6em;
284
+ max-width: 12ch;
285
+ }
286
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li,
287
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
288
+ display: inline-block;
289
+ width: 29%;
290
+ margin: 0 3% 1.2em 0;
291
+ vertical-align: top;
292
+ border: none;
293
+ border-top: 1px solid rgba(237, 61, 140, 0.55);
294
+ padding: 0.9em 0 0;
295
+ font-size: 0.85em;
296
+ text-align: left;
297
+ }
298
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-strong,
299
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-strong {
300
+ display: block;
301
+ font-family: var(--slide-title-font);
302
+ font-size: 2.9em; /* 64px ÷26 ÷0.85 */
303
+ font-weight: 400;
304
+ line-height: 1;
305
+ color: var(--seed-accent);
306
+ margin-bottom: 0.35em;
307
+ }
308
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-li-bullet,
309
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-li-bullet {
310
+ display: none;
311
+ }
312
+ /* 上游时间轴在每个条目前画圆点(左侧轴线的节点);模板 P6 是纯顶部横线,
313
+ 这里把圆点收掉。 */
314
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li::before,
315
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li::before {
316
+ display: none;
317
+ }
318
+
319
+ /* 1.6.6 agenda · 参照模板第 2 页 s-toc(The Index):
320
+ 页题 220px 粉衬线(h1 ÷26);行式条目 = hairline 底线,衬线粉序号 64px、
321
+ 衬线 paper 章名 56px、说明 24px mute */
322
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-page-title,
323
+ body.slides-printing .cm-md-slide-agenda.cm-md-page-title {
324
+ font-size: 8.5em;
325
+ line-height: 1.04;
326
+ color: var(--seed-accent);
327
+ }
328
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
329
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
330
+ font-size: 0.92em;
331
+ margin: 0;
332
+ padding: 1em 0;
333
+ border-top: none;
334
+ border-bottom: 1px solid var(--border-color);
335
+ }
336
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
337
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
338
+ font-family: var(--slide-title-font);
339
+ font-size: 2.67em; /* 64px ÷26 ÷0.92(li) */
340
+ line-height: 1;
341
+ font-weight: 400;
342
+ margin-right: 0.5em;
343
+ }
344
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-strong,
345
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-strong {
346
+ font-family: var(--slide-title-font);
347
+ font-size: 2.34em; /* 56px ÷26 ÷0.92(li) */
348
+ font-weight: 400;
349
+ color: var(--text-color);
350
+ }
351
+
352
+ /* 1.6.7 steps · 参照模板第 6 页 s-process(Process):
353
+ 页题 156px paper(em 切粉);五列横排步骤条——顶线 1px 粉、衬线粉序号 96px、
354
+ 衬线 paper 步骤名 38px、说明 22px mute(.row .step) */
355
+ body.presenting #editor[data-slide-layout='steps'] .cm-content .cm-md-page-title,
356
+ body.slides-printing .cm-md-slide-steps.cm-md-page-title {
357
+ font-size: 6em; /* 156px ÷26 */
358
+ max-width: 12ch;
359
+ }
360
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-page-start.cm-md-slide-directive,
361
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-page-start.cm-md-slide-directive {
362
+ counter-reset: ps-step;
363
+ }
364
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
365
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
366
+ display: inline-block;
367
+ width: 18.4%; /* 五列 + 24px gap @1920 */
368
+ margin: 0 1.9% 1.2em 0;
369
+ vertical-align: top;
370
+ border-left: none;
371
+ border-bottom: none;
372
+ border-top: 1px solid rgba(237, 61, 140, 0.45);
373
+ padding: 0.9em 0 0;
374
+ font-size: 0.85em; /* 说明 22px ÷26 */
375
+ text-align: left;
376
+ list-style: none;
377
+ counter-increment: ps-step;
378
+ }
379
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li::before,
380
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li::before {
381
+ content: counter(ps-step, decimal-leading-zero);
382
+ display: block;
383
+ font-family: var(--slide-title-font);
384
+ font-size: 96px; /* 模板序号 96px;导出在 1.7 收成 64px */
385
+ font-weight: 400;
386
+ line-height: 1;
387
+ color: var(--seed-accent);
388
+ margin-bottom: 0.18em;
389
+ }
390
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-li-bullet,
391
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-li-bullet,
392
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
393
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
394
+ display: none;
395
+ }
396
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
397
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
398
+ display: block;
399
+ border: none;
400
+ border-radius: 0;
401
+ background: transparent;
402
+ padding: 0;
403
+ min-width: 0;
404
+ font-family: var(--slide-title-font);
405
+ font-size: 1.72em; /* 38px ÷26 ÷0.85(li) */
406
+ font-weight: 400;
407
+ line-height: 1.05;
408
+ color: var(--text-color);
409
+ }
410
+
411
+ /* 1.6.8 quote · 参照模板第 8 页 s-quote(Voices):
412
+ 左栏 320px 粉色巨引号(挂在页首空行的 ::after 浮动),右栏 92px paper 金句;
413
+ 署名行 = 粉色 1px 顶线 + 48px 衬线 paper */
414
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-page-start::after,
415
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-page-start::after {
416
+ content: "\201C";
417
+ visibility: visible;
418
+ display: block;
419
+ float: left;
420
+ width: 22%;
421
+ font-family: var(--slide-title-font);
422
+ font-size: 320px; /* 模板 320px;导出在 1.7 收成 213px */
423
+ line-height: 0.65;
424
+ color: var(--seed-accent);
425
+ }
426
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-blockquote,
427
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-blockquote {
428
+ --blockquote-bg: transparent; /* 模板 P8 无底衬:只留 1px 粉左轨 */
429
+ margin-left: 26%;
430
+ max-width: 68%;
431
+ font-family: var(--slide-title-font);
432
+ font-size: var(--slide-quote-size);
433
+ font-weight: 400;
434
+ font-style: normal;
435
+ line-height: 1.05;
436
+ letter-spacing: -0.005em;
437
+ color: var(--text-color);
438
+ }
439
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote .cm-md-em,
440
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote .cm-md-em {
441
+ color: var(--seed-accent);
442
+ }
443
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-blockquote:not(:has(+ .cm-md-blockquote)),
444
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-blockquote:not(:has(+ .cm-md-blockquote)) {
445
+ margin-bottom: 0;
446
+ border-bottom: none;
447
+ }
448
+ /* 署名行:模板 .attr —— 26% 起的粉色顶线 + 48px 衬线 paper。
449
+ 排除空行(CM6 空行 = <div class="cm-line"><br></div>),否则引文上下的
450
+ 空行也会各画一条发丝线。 */
451
+ 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)),
452
+ 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)) {
453
+ margin: 1.1em 0 0 26%;
454
+ padding-top: 0.6em;
455
+ border-top: 1px solid rgba(237, 61, 140, 0.55);
456
+ font-family: var(--slide-title-font);
457
+ font-size: 1.85em; /* 48px ÷26 */
458
+ color: var(--text-color);
459
+ }
460
+
461
+ /* 1.6.9 closing · Encore:标题 paper 色 + 清单换模板顶线画法(s-cta .step) */
462
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title,
463
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title {
464
+ font-size: var(--slide-closing-title-size);
465
+ line-height: 1.04;
466
+ color: var(--text-color);
467
+ }
468
+ body.presenting .cm-md-slide-closing.cm-md-li,
469
+ body.slides-printing .cm-md-slide-closing.cm-md-li {
470
+ border-top: 1px solid rgba(237, 61, 140, 0.45);
471
+ padding-top: 0.8em;
472
+ }
473
+
474
+ /* 1.6.10 figure · The Curve:页题收一档(s-chart h2 90px ÷26) */
475
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title,
476
+ body.slides-printing .cm-md-slide-figure.cm-md-page-title {
477
+ font-size: 3.5em;
478
+ }
479
+
480
+ /* 1.6.11 matrix · 参照模板第 7 页 s-matrix(The Field):
481
+ 页题 132px paper(em 切粉,走 1.6.1 全局 5.1em);四列 hairline 底线网格,
482
+ 行标 = 衬线 paper 32px,列头概念由 strong 承担(.cell.label) */
483
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
484
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
485
+ width: 22.5%; /* 四列 + gap @1920 */
486
+ margin: 0 1.5% 1.2em 0;
487
+ border: none;
488
+ border-bottom: 1px solid var(--border-color);
489
+ border-radius: 0;
490
+ background: transparent;
491
+ padding: 0.7em 0.2em;
492
+ font-size: 0.85em;
493
+ vertical-align: top;
494
+ }
495
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-li-bullet,
496
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-li-bullet,
497
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-li-bullet,
498
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-li-bullet {
499
+ display: none;
500
+ }
501
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
502
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
503
+ font-family: var(--slide-title-font);
504
+ font-size: 1.5em; /* 32px ÷26 ÷0.85(li) */
505
+ font-weight: 400;
506
+ color: var(--text-color);
507
+ }
508
+
509
+ /* 1.6.11 chrome · runner/footer:JetBrains Mono mute 色 .14em(.runner/.footer)。
510
+ SLIDE-02:.slide-chrome|foot 必须包裹在放映/导出作用域下 */
511
+ body.presenting .slide-chrome,
512
+ body.slides-printing .slide-chrome {
513
+ font-size: clamp(14px, 1.1vw, 22px);
514
+ letter-spacing: 0.14em;
515
+ color: var(--text-muted);
516
+ }
517
+ body.presenting .slide-foot,
518
+ body.slides-printing .slide-foot {
519
+ font-size: clamp(13px, 1vw, 20px);
520
+ letter-spacing: 0.14em;
521
+ color: var(--text-muted);
522
+ }
523
+
524
+ /* 1.6.12 导出纸面校准(1280×720 = 模板 1920×1080 × 2/3,基准 24px/em)
525
+ slides-export 的纸面高度只有 720px;按模板放映尺寸直接导出会把议程 / KPI /
526
+ 时间线 / 双栏页撑成两页。这里只缩小导出尺寸,不改放映尺寸。 */
527
+ body.slides-printing {
528
+ --slide-title-size: 3.67em; /* 132px × 2/3 ÷ 24 */
529
+ --slide-section-title-size: 2.44em; /* 88px × 2/3 ÷ 24 */
530
+ --slide-cover-title-size: 7.5em; /* 280px × 2/3 ÷ 24 − 一字安全余量 */
531
+ --slide-closing-title-size: 3.9em; /* 140px × 2/3 ÷ 24 */
532
+ --slide-quote-size: 2.45em; /* 92px × 2/3 ÷ 24 − 安全余量 */
533
+ --slide-kpi-number-size: 4em; /* 116px 纸面收成 64px,给五行留高 */
534
+ --slide-lead-size: 0.667em; /* 24px × 2/3 ÷ 24 */
535
+ --slide-kicker-size: 13px;
536
+ --slide-page-top-pad-print: 90px;
537
+ }
538
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-title {
539
+ width: 52%;
540
+ margin-left: 44%;
541
+ margin-top: 1.4em;
542
+ }
543
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-lead {
544
+ font-size: 0.667em;
545
+ width: 50%;
546
+ margin-left: 44%;
547
+ /* 巨号是 float、不计入页高;给导语留出页尾余量,保证 400px 字号的
548
+ 墨迹不会越过本页底边渗到下一页。 */
549
+ margin-bottom: 2.4em;
550
+ }
551
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
552
+ font-size: 0.667em;
553
+ padding: 0.35em 0;
554
+ }
555
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-page-lead {
556
+ font-size: 0.667em;
557
+ }
558
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-page-title {
559
+ font-size: 4.6em; /* 220px × 2/3 ÷ 24,给条目留高 */
560
+ }
561
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
562
+ font-size: 0.667em;
563
+ padding: 0.45em 0;
564
+ }
565
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
566
+ font-size: 2.7em; /* 43px ÷ 16 */
567
+ }
568
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-strong {
569
+ font-size: 2.3em; /* 37px ÷ 16 */
570
+ }
571
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-page-title {
572
+ font-size: 4.33em; /* 156px × 2/3 ÷ 24 */
573
+ }
574
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
575
+ font-size: 0.667em;
576
+ }
577
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-strong {
578
+ font-size: 4em; /* 64px ÷ 16 */
579
+ }
580
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-page-title {
581
+ font-size: 4.33em;
582
+ }
583
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
584
+ font-size: 0.667em;
585
+ }
586
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li::before {
587
+ font-size: 64px; /* 96px × 2/3 */
588
+ }
589
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
590
+ font-size: 1.56em; /* 25px ÷ 16 */
591
+ }
592
+ body.slides-printing #editor .cm-content .cm-md-slide-figure.cm-md-page-title {
593
+ font-size: 2.5em; /* 90px × 2/3 ÷ 24 */
594
+ }
595
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
596
+ font-size: 0.667em;
597
+ }
598
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
599
+ font-size: 1.3em; /* 21px ÷ 16 */
600
+ }
601
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-page-start::after {
602
+ font-size: 213px; /* 320px × 2/3 */
603
+ }
604
+ 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)) {
605
+ font-size: 1.33em; /* 32px ÷ 24 */
606
+ }
607
+
608
+ /* 1.7 纸面基础密度:720px 纸面比放映画面矮,1.7 行高会让表格 / 代码页
609
+ 溢出到第二页 —— 纸面统一收到 1.62,表格与代码块再压一档字号(放映不变)。 */
610
+ body.slides-printing #editor .cm-content {
611
+ line-height: 1.62;
612
+ }
613
+ body.slides-printing #editor .cm-content .cm-md-table-widget th,
614
+ body.slides-printing #editor .cm-content .cm-md-table-widget td {
615
+ padding: 6px 10px;
616
+ font-size: 0.75em;
617
+ }
618
+ body.slides-printing #editor .cm-content .cm-md-codeblock {
619
+ padding: 0 16px; /* 每行一个 div:纵向内距会按行累加 */
620
+ font-size: 0.72em;
621
+ line-height: 1.45;
622
+ }
623
+ /* 空行(CM6 里就是 <div class="cm-line"><br></div>)在纸面上只作分隔,
624
+ 不该按整行 1.62 计高;压到 0.55 行,给版式页腾出 20px/行。 */
625
+ body.slides-printing #editor .cm-content .cm-line:has(> br:only-child) {
626
+ line-height: 0.55;
627
+ }
628
+
629
+ /* ═══════════════ SECTION 2 — Editor DOM ═══════════════ */
630
+
631
+ #editor .cm-content {
632
+ color: var(--text-color);
633
+ font-family: var(--font-body); /* Inter 300 正文声部 */
634
+ font-weight: 300;
635
+ line-height: 1.75;
636
+ letter-spacing: -0.005em;
637
+ -webkit-font-smoothing: antialiased;
638
+ text-rendering: optimizeLegibility;
639
+ }
640
+
641
+ /* ── 2.1 Headings:DM Serif Display 400 + 粉色光晕(模板 hero script) ── */
642
+ #editor .cm-content .cm-md-atxheading1,
643
+ #editor .cm-content .cm-md-atxheading2,
644
+ #editor .cm-content .cm-md-atxheading3,
645
+ #editor .cm-content .cm-md-atxheading4,
646
+ #editor .cm-content .cm-md-atxheading5,
647
+ #editor .cm-content .cm-md-atxheading6 {
648
+ color: var(--seed-ink);
649
+ font-family: "DM Serif Display", "Noto Serif SC", source-han-serif-sc,
650
+ "Songti SC", Georgia, serif;
651
+ font-weight: 400; /* DM Serif Display 只有 400 */
652
+ line-height: 1.1;
653
+ letter-spacing: -0.01em;
654
+ }
655
+ #editor .cm-content .cm-md-atxheading1 {
656
+ font-size: 3.05em;
657
+ line-height: 1.05;
658
+ letter-spacing: -0.015em;
659
+ color: var(--seed-accent); /* hero script 一律粉色 */
660
+ text-shadow: 0 0 0.6em rgba(237, 61, 140, 0.22); /* 模板 halo */
661
+ padding-bottom: 0.06em; /* 模板 padding-bottom .1em 补 descender */
662
+ }
663
+ #editor .cm-content .cm-md-atxheading2 {
664
+ font-size: 2.4em;
665
+ padding-bottom: 0.18em;
666
+ border-bottom: 1px solid rgba(237, 61, 140, 0.32); /* 粉色发丝 */
667
+ }
668
+ #editor .cm-content .cm-md-atxheading3 { font-size: 1.75em; }
669
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1.42em; }
670
+ #editor .cm-content .cm-md-atxheading5 { font-size: 1.22em; }
671
+ #editor .cm-content .cm-md-atxheading6 {
672
+ font-size: 1.02em;
673
+ color: var(--seed-accent); /* 粉色 kicker 眉标 */
674
+ font-family: var(--font-mono);
675
+ font-weight: 400;
676
+ letter-spacing: 0.24em; /* 模板 mono-kicker 宽字距 */
677
+ text-transform: uppercase;
678
+ }
679
+
680
+ /* ── 2.2 Inline / Lists ── */
681
+ #editor .cm-content .cm-md-strong { color: var(--seed-ink); font-weight: 600; }
682
+ #editor .cm-content .cm-md-em {
683
+ font-family: Georgia, "Noto Serif SC", serif; /* 模板:正文斜体走衬线 */
684
+ font-style: italic;
685
+ }
686
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; color: var(--text-muted); }
687
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
688
+ #editor .cm-content .cm-md-link {
689
+ color: var(--link-color);
690
+ text-decoration: none;
691
+ border-bottom: 1px solid rgba(237, 61, 140, 0.32);
692
+ }
693
+ #editor .cm-content .cm-md-url { color: var(--text-muted); font-family: var(--font-mono); }
694
+ #editor .cm-content .cm-md-inlinecode {
695
+ color: var(--text-color);
696
+ font-family: var(--font-mono);
697
+ font-weight: 400;
698
+ font-size: 0.88em;
699
+ background: var(--code-bg);
700
+ border: 1px solid rgba(237, 61, 140, 0.32); /* 粉色发丝框 */
701
+ border-radius: 0; /* 模板:零圆角 */
702
+ padding: 1px 5px;
703
+ }
704
+ #editor .cm-content .cm-md-marker,
705
+ #editor .cm-content .cm-md-quotemark { color: var(--text-muted); font-family: var(--font-mono); }
706
+ #editor .cm-content .cm-md-listmark { color: var(--seed-accent); }
707
+ #editor .cm-content .cm-md-li-0,
708
+ #editor .cm-content .cm-md-li-1,
709
+ #editor .cm-content .cm-md-li-2,
710
+ #editor .cm-content .cm-md-li-3,
711
+ #editor .cm-content .cm-md-li-4,
712
+ #editor .cm-content .cm-md-li-5,
713
+ #editor .cm-content .cm-md-li-6 { color: var(--text-color); }
714
+
715
+ /* ── 2.3 Blockquote / Code Block(禁纵向 padding;blockquote 不写 background) ── */
716
+ #editor .cm-content .cm-md-blockquote {
717
+ color: var(--text-secondary);
718
+ font-family: "DM Serif Display", "Noto Serif SC", "Songti SC", Georgia, serif;
719
+ font-size: 1.18em; /* 模板 serif-quote 声部 */
720
+ line-height: 1.5;
721
+ border-left: 1px solid var(--blockquote-border); /* 模板:1px 粉色左轨,无更粗边 */
722
+ padding-left: 16px;
723
+ padding-right: 16px;
724
+ }
725
+ #editor .cm-content .cm-md-codeblock {
726
+ color: var(--code-block-text);
727
+ font-family: var(--font-mono);
728
+ font-weight: 400;
729
+ line-height: 1.6;
730
+ background: var(--code-block-bg);
731
+ border-left: 1px solid var(--border-color);
732
+ border-right: 1px solid var(--border-color);
733
+ padding-left: 16px;
734
+ padding-right: 16px;
735
+ }
736
+ #editor .cm-content .cm-md-codeblock-first {
737
+ border-top: 1px solid var(--border-color);
738
+ border-radius: 0;
739
+ }
740
+ #editor .cm-content .cm-md-codeblock-last {
741
+ border-bottom: 1px solid var(--border-color);
742
+ border-radius: 0;
743
+ }
744
+
745
+ /* ── 2.4 Table / Rule(模板:表分隔线 = pink 32%) ── */
746
+ #editor .cm-content .cm-md-table-widget th,
747
+ #editor .cm-content .cm-md-table-widget td {
748
+ padding: 10px 14px;
749
+ border-color: rgba(237, 61, 140, 0.32);
750
+ }
751
+ #editor .cm-content .cm-md-table-widget td { font-weight: 400; }
752
+ #editor .cm-content .cm-md-table-widget th {
753
+ color: var(--seed-ink);
754
+ font-family: var(--font-mono);
755
+ font-size: 0.8em;
756
+ font-weight: 400;
757
+ letter-spacing: 0.14em; /* 模板 mono runner 字距 */
758
+ text-transform: uppercase;
759
+ background: var(--table-header-bg);
760
+ border-bottom: 1px solid var(--seed-accent);
761
+ }
762
+ #editor .cm-content .cm-md-table-widget tr:nth-child(even) td { background: var(--seed-panel); }
763
+ #editor .cm-content .cm-md-hr { border-top-color: rgba(237, 61, 140, 0.32); }
764
+ #editor .cm-content .cm-md-task-checked { color: var(--text-muted); }
765
+
766
+ /* ═══════════════ SECTION 3 — Exported HTML ═══════════════ */
767
+
768
+ .colamd-document {
769
+ color: var(--text-color);
770
+ font-family: var(--font-body);
771
+ font-weight: 300; /* Inter 300 正文 */
772
+ font-size: var(--editor-font-size);
773
+ line-height: 1.75;
774
+ letter-spacing: -0.005em;
775
+ -webkit-font-smoothing: antialiased;
776
+ text-rendering: optimizeLegibility;
777
+ background: var(--bg-color);
778
+ }
779
+ .colamd-document h1,
780
+ .colamd-document h2,
781
+ .colamd-document h3,
782
+ .colamd-document h4,
783
+ .colamd-document h5,
784
+ .colamd-document h6 {
785
+ color: var(--seed-ink);
786
+ font-family: "DM Serif Display", "Noto Serif SC", source-han-serif-sc,
787
+ "Songti SC", Georgia, serif;
788
+ font-weight: 400;
789
+ line-height: 1.1;
790
+ letter-spacing: -0.01em;
791
+ margin: 1.6em 0 0.55em;
792
+ }
793
+ .colamd-document h1 {
794
+ font-size: 3.05em;
795
+ line-height: 1.05;
796
+ letter-spacing: -0.015em;
797
+ color: var(--seed-accent);
798
+ text-shadow: 0 0 0.6em rgba(237, 61, 140, 0.22); /* halo */
799
+ padding-bottom: 0.06em;
800
+ margin-top: 0.4em;
801
+ }
802
+ .colamd-document h2 {
803
+ font-size: 2.4em;
804
+ padding-bottom: 0.18em;
805
+ border-bottom: 1px solid rgba(237, 61, 140, 0.32);
806
+ }
807
+ .colamd-document h3 { font-size: 1.75em; }
808
+ .colamd-document h4 { font-size: 1.42em; }
809
+ .colamd-document h5 { font-size: 1.22em; }
810
+ .colamd-document h6 {
811
+ font-size: 1.02em;
812
+ color: var(--seed-accent); /* 粉色 kicker */
813
+ font-family: var(--font-mono);
814
+ font-weight: 400;
815
+ letter-spacing: 0.24em;
816
+ text-transform: uppercase;
817
+ }
818
+ /* 模板:标题里的 em = 切成粉色(不是斜体) */
819
+ .colamd-document h1 em,
820
+ .colamd-document h2 em,
821
+ .colamd-document h3 em,
822
+ .colamd-document h4 em {
823
+ color: var(--seed-accent);
824
+ font-style: normal;
825
+ }
826
+ .colamd-document strong { color: var(--seed-ink); font-weight: 600; }
827
+ .colamd-document em {
828
+ font-family: Georgia, "Noto Serif SC", serif;
829
+ font-style: italic;
830
+ }
831
+ .colamd-document a {
832
+ color: var(--link-color);
833
+ text-decoration: none;
834
+ border-bottom: 1px solid rgba(237, 61, 140, 0.32);
835
+ }
836
+ .colamd-document p { margin: 0.9em 0; }
837
+ .colamd-document ul,
838
+ .colamd-document ol { padding-left: 1.75em; }
839
+ .colamd-document li { margin: 0.25em 0; }
840
+ .colamd-document li::marker { color: var(--seed-accent); }
841
+ .colamd-document code {
842
+ color: var(--text-color);
843
+ font-family: var(--font-mono);
844
+ font-weight: 400;
845
+ font-size: 0.88em;
846
+ background: var(--code-bg);
847
+ border: 1px solid rgba(237, 61, 140, 0.32);
848
+ border-radius: 0;
849
+ padding: 1px 5px;
850
+ }
851
+ .colamd-document pre {
852
+ background: var(--code-block-bg);
853
+ border: 1px solid var(--border-color);
854
+ border-radius: 0; /* 零圆角 */
855
+ }
856
+ .colamd-document pre code {
857
+ color: var(--code-block-text);
858
+ background: transparent;
859
+ border: 0;
860
+ padding: 0;
861
+ }
862
+ .colamd-document blockquote {
863
+ color: var(--text-secondary);
864
+ font-family: "DM Serif Display", "Noto Serif SC", "Songti SC", Georgia, serif;
865
+ font-size: 1.18em;
866
+ line-height: 1.5;
867
+ background: var(--blockquote-bg);
868
+ border-left: 1px solid var(--blockquote-border);
869
+ padding: 0.5em 1.2em;
870
+ }
871
+ .colamd-document mark { background: var(--highlight-bg); color: var(--seed-ink); }
872
+ .colamd-document table { border-collapse: collapse; width: 100%; }
873
+ .colamd-document th,
874
+ .colamd-document td {
875
+ border: 1px solid rgba(237, 61, 140, 0.32);
876
+ padding: 10px 14px;
877
+ border-radius: 0;
878
+ }
879
+ .colamd-document td { font-weight: 400; }
880
+ .colamd-document th {
881
+ color: var(--seed-ink);
882
+ font-family: var(--font-mono);
883
+ font-size: 0.8em;
884
+ font-weight: 400;
885
+ letter-spacing: 0.14em;
886
+ text-transform: uppercase;
887
+ background: var(--table-header-bg);
888
+ border-bottom: 1px solid var(--seed-accent);
889
+ }
890
+ .colamd-document tbody tr:nth-child(even) td { background: var(--seed-panel); }
891
+ .colamd-document hr {
892
+ border: 0;
893
+ border-top: 1px solid rgba(237, 61, 140, 0.32); /* 粉色发丝分隔 */
894
+ }
895
+ .colamd-document img {
896
+ max-width: 100%;
897
+ border: 1px solid var(--border-color);
898
+ border-radius: 0;
899
+ }
900
+ .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
901
+
902
+ /* ═══════════════ SECTION 4 — Print ═══════════════ */
903
+
904
+ @media print {
905
+ html,
906
+ body {
907
+ background: var(--bg-color);
908
+ color: var(--text-color);
909
+ -webkit-print-color-adjust: exact;
910
+ print-color-adjust: exact;
911
+ }
912
+ }