@bytechain.cn/colamd-themes 0.6.0 → 0.6.1

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.
Files changed (39) hide show
  1. package/README.md +22 -4
  2. package/package.json +1 -1
  3. package/skills/colamd-themes/SKILL.md +86 -1
  4. package/themes/8-bit-orbit.css +817 -0
  5. package/themes/README.md +69 -0
  6. package/themes/biennale-yellow.css +577 -0
  7. package/themes/block-frame.css +774 -0
  8. package/themes/blue-professional.css +741 -0
  9. package/themes/bold-poster.css +794 -0
  10. package/themes/broadside.css +837 -0
  11. package/themes/capsule.css +767 -0
  12. package/themes/cartesian.css +584 -0
  13. package/themes/cobalt-grid.css +632 -0
  14. package/themes/coral.css +699 -0
  15. package/themes/creative-mode.css +642 -0
  16. package/themes/daisy-days.css +1052 -0
  17. package/themes/editorial-forest.css +796 -0
  18. package/themes/editorial-tri-tone.css +811 -0
  19. package/themes/emerald-editorial.css +683 -0
  20. package/themes/grove.css +623 -0
  21. package/themes/long-table.css +782 -0
  22. package/themes/mat.css +848 -0
  23. package/themes/monochrome.css +782 -0
  24. package/themes/neo-grid-bold.css +838 -0
  25. package/themes/peoples-platform.css +843 -0
  26. package/themes/pin-and-paper.css +700 -0
  27. package/themes/pink-script-dark.css +648 -0
  28. package/themes/pink-script.css +290 -0
  29. package/themes/playful.css +774 -0
  30. package/themes/raw-grid.css +814 -0
  31. package/themes/retro-windows.css +767 -0
  32. package/themes/retro-zine.css +814 -0
  33. package/themes/sakura-chroma.css +775 -0
  34. package/themes/scatterbrain.css +726 -0
  35. package/themes/signal.css +872 -0
  36. package/themes/soft-editorial.css +788 -0
  37. package/themes/stencil-tablet.css +922 -0
  38. package/themes/studio.css +767 -0
  39. package/themes/vellum.css +723 -0
@@ -0,0 +1,788 @@
1
+ /*
2
+ * ColaMD Theme: Soft Editorial(柔和社论 · 手工精修版)
3
+ * Cormorant Garamond serif on warm paper with sage, blush, and lemon accents.
4
+ * 来源:D:\workspace\git\beautiful-html-templates\templates\soft-editorial\
5
+ * template.html + design.md + template.json(12 页,1920×1080 画布)
6
+ * 色板:paper #F2EEDF / paper-2 #ECE6D2 / ink #2A241B / ink-soft #5C5345
7
+ * pink #E1A4C2 / lemon #D6DD63 / blush #E8C9B6 / sage #B7C7A8 / lilac #C9BEDC
8
+ * 字体:Cormorant Garamond(display 500,<em> 400,斜体承担 kicker/页码/署名)
9
+ * Work Sans(正文/眉标 400-500,从不做标题)
10
+ *
11
+ * paradigm 备案(暖纸身份,与 biennale-yellow / pin-and-paper 同类,有意保留):
12
+ * SL-01 —— surface #F2EEDF 饱和度 42%,模板身份即"暖奶油纸";
13
+ * SL-02 —— panel #ECE6D2 / panelAlt #E4DFCB 饱和度 41%/32%,同属纸面色阶;
14
+ * NT-03 —— border #B6B1A4 暖灰(饱和度 11%),模板发丝线是 ink 18-35% 叠色,
15
+ * 中性灰会丢掉"旧纸"气质;
16
+ * CR-04 —— 已修正:链接不用 lemon(纸上 1.2:1),换粉调加深档 #9C4A72(4.98:1);
17
+ * 文字一律 ink,pastel 只做卡片底色,从不反白。
18
+ *
19
+ * 契约:ColaMD 2.7.13(CodeMirror 6 编辑器 + Pele 图表引擎)
20
+ *
21
+ * 两条硬规矩:
22
+ * 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
23
+ * 编辑器继承不到。
24
+ * 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
25
+ * 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
26
+ * 并且引用/代码块**不能加纵向 padding**——那会按行累加。
27
+ *
28
+ * ═══════════════════════════════════════════════════════════
29
+ * SECTION 1 — Design Tokens
30
+ * 改 11 个种子色 + 3 组字体即可换一套主题
31
+ * ═══════════════════════════════════════════════════════════ */
32
+
33
+ :root {
34
+
35
+ /* ── 1.1 Seed Palette ──
36
+ 本工具的再生成与校验读这一层;编辑器不消费。
37
+ 明度序(SL-04 亮色范式):surface > panel > panelAlt,三层同 H≈46-48°轴。 */
38
+ --seed-accent: #9c4a72; /* 粉调加深(纸上 4.98:1,CR-04 过线) */
39
+ --seed-accent-light: #e1a4c2; /* 模板 pink —— 卡片底色,不做文字色 */
40
+ --seed-accent-dark: #7a3a59;
41
+ --seed-surface: #f2eedf; /* paper —— 暖奶油纸 */
42
+ --seed-panel: #ece6d2; /* paper-2 */
43
+ --seed-panel-alt: #e4dfcb; /* paper 再降一档 */
44
+ --seed-ink: #2a241b; /* ink —— 暖近黑 */
45
+ --seed-ink-muted: #5c5345; /* ink-soft —— 次要文字 */
46
+ --seed-ink-dim: #6e6557; /* 同轴辅助文字 */
47
+ --seed-border: #b6b1a4; /* 发丝线暖灰 */
48
+ --seed-border-strong: #2a241b;
49
+
50
+ /* ── 1.2 Semantic Colors(活变量)── */
51
+ --bg-color: var(--seed-surface);
52
+ --text-color: var(--seed-ink);
53
+ --text-secondary: var(--seed-ink-muted);
54
+ --text-muted: var(--seed-ink-dim);
55
+ --border-color: var(--seed-border);
56
+ --link-color: var(--seed-accent); /* 模板无链接色,取粉调可读档 */
57
+
58
+ --code-bg: rgba(255, 255, 255, 0.55); /* 模板 card-fill 行内托底 */
59
+ --code-block-bg: var(--seed-panel-alt);
60
+ --code-block-text: #2a241b;
61
+
62
+ /* 模板:卡片无实线边,内部发丝线是 ink 18%(dashed)/ 35%(solid) */
63
+ --blockquote-border: rgba(42, 36, 27, 0.35);
64
+ --blockquote-bg: rgba(255, 255, 255, 0.55);
65
+ --table-header-bg: rgba(255, 255, 255, 0.55);
66
+
67
+ --selection-bg: rgba(225, 164, 194, 0.35); /* pink 半透 */
68
+ --highlight-bg: rgba(214, 221, 99, 0.55); /* lemon 荧光 */
69
+
70
+ /* ── 1.3 Typography & Metrics(活变量)──
71
+ 模板正文 Work Sans 26px / 行高 1.5(1920 画布);阅读端 17px 起步。 */
72
+ --font-body: "Work Sans", "Noto Serif SC", sans-serif;
73
+ --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
74
+ --editor-font-size: 17px;
75
+ --editor-column-width: 760px;
76
+
77
+ /* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
78
+ 图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导。
79
+ 圆角 18px 呼应模板图卡(chart frame 28px,取中间档)。 */
80
+ --pele-bg: var(--code-block-bg);
81
+ --pele-fg: var(--code-block-text);
82
+ --pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
83
+ --pele-line: var(--code-block-text);
84
+ --pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
85
+ --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
86
+ --pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
87
+ --pele-accent: var(--seed-accent);
88
+ --pele-radius: 18px;
89
+ }
90
+
91
+ /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 soft-editorial 十二页逐页复刻)──
92
+ 换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
93
+ 模板 1920 画布 px ÷ 26 = em(clamp 取 1920×1080 实际落点;vw 换算 = px ÷1920)。
94
+ 字体体系:Cormorant Garamond 500(display;<em> 落 400)/
95
+ Work Sans 400-500(正文、眉标)/ 模板无等宽。
96
+ 页面对照(12 页 → 11 版式):
97
+ cover ← P01 232px 巨标题 + 38px 斜体 kicker + 30px lede
98
+ two-col ← P02 foreword:56px 斜体 opener / 24px 右栏正文
99
+ matrix ← P04 insights(3 张 36px 圆角彩卡:72px 卡名 + 32px sans 副题 + 24px 文)
100
+ P03 method 与 P04 同形卡片网格,不单列
101
+ section ← P05 closer ⚠ 全篇唯一换底页:#E1A4C2 粉底,168px 居中标题
102
+ kpi ← P06 numbers:200px 大数字 + 24px 说明(hero 320px 跨格未复刻)
103
+ quote ← P07 220px blush 引号 + 88px 引文 + 24px 署名
104
+ closing ← P08 next:124px 标题 + 3 张 28px 圆角行动卡(38px 行题)
105
+ figure ← P10 chart(96px 左栏标题)、P12 matrix(表格为主体)
106
+ steps ← P11 process:5 张 28px 圆角流程卡 + 罗马序号 i.–v.
107
+ P09 consult(三栏密集详情 + lemon 行动条)/ agenda / timeline
108
+ 无对应页,保持上游默认。
109
+ 装饰未复刻:封面三色圆点、眉标/页脚绝对定位四列、drop cap 132px、
110
+ P06 hero 跨格、P11 箭头连线与 Week 时间条、P12 状态胶囊。
111
+ 本主题在应用内加载于 slides.css 之后,:root 同权重后到先赢。 */
112
+ :root {
113
+ /* 模板无等宽字体:chrome/kicker 一律衬线,--slide-mono 兜底走 sans */
114
+ --slide-mono: "Work Sans", "Noto Sans SC", sans-serif;
115
+ --slide-title-font: "Cormorant Garamond", "LXGW WenKai TC", "Noto Serif SC", serif;
116
+ --slide-title-size: 3.38em; /* 内容页题 88px ÷26(page-headline) */
117
+ --slide-title-weight: 500; /* 模板全部标题 500,<em> 才落 400 */
118
+ --slide-subhead-weight: 500;
119
+ --slide-title-tracking: -0.01em;
120
+ --slide-title-line-height: 1.0;
121
+ --slide-cover-title-size: 8.92em; /* P01 h1 232px ÷26 */
122
+ --slide-cover-title-line-height: 0.92;
123
+ --slide-cover-title-tracking: -0.02em;
124
+ --slide-section-title-size: 6.46em; /* P05 h2 168px ÷26 */
125
+ --slide-closing-title-size: 4.77em; /* P08 panel h2 124px ÷26 */
126
+ --slide-lead-size: 1.15em; /* P01 lede 30px ÷26 */
127
+ --slide-kicker-size: clamp(16px, 1.98vw, 38px); /* 模板 kicker/marker 38px @1920 */
128
+ --slide-kicker-tracking: 0; /* 斜体衬线,不做字距 */
129
+ --slide-kicker-transform: none; /* 系统只有 11px swatch-label 大写 */
130
+ --slide-chrome-opacity: 1; /* 眉标/页脚全色 ink,淡出交给翻页 */
131
+ --slide-chrome-transform: none;
132
+ --slide-kpi-number-size: 8.36em; /* 200px ÷26 ÷0.92(li 缩放) */
133
+ --slide-quote-size: 3.38em; /* P07 blockquote 88px ÷26 */
134
+ --slide-page-pad-x: 4.17vw; /* 模板页边距 80px @1920 */
135
+ --slide-page-top-pad: 130px; /* 内容顶 130px(P09/P11 顶栏),扣 chrome */
136
+ --slide-page-top-pad-print: 110px;
137
+ --slide-cover-text-align: left; /* P01 标题左对齐、垂直居中 */
138
+ --slide-cover-lead-inline: 0;
139
+ }
140
+
141
+ /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
142
+ body.presenting / body.slides-printing 作用域) ═══════════════ */
143
+
144
+ /* 1.6.1 页标题声部对齐:Cormorant Garamond 500;压掉文档式 h1/h2 下划线
145
+ (编辑器规则带 id 权重会漏进放映),kicker 从等宽大写改回斜体衬线 */
146
+ body.presenting #editor .cm-content .cm-md-page-title,
147
+ body.slides-printing #editor .cm-content .cm-md-page-title {
148
+ font-family: var(--slide-title-font);
149
+ font-size: var(--slide-title-size);
150
+ font-weight: 500;
151
+ line-height: 1.0;
152
+ letter-spacing: -0.01em;
153
+ color: var(--text-color);
154
+ border-bottom: none;
155
+ padding-bottom: 0;
156
+ margin-bottom: 0.4em;
157
+ }
158
+ /* 放映域取消 2.5 的中文首行缩进:页内每个段落都写成一行,缩进会破坏版式 */
159
+ body.presenting #editor .cm-content .cm-line,
160
+ body.slides-printing #editor .cm-content .cm-line {
161
+ text-indent: 0;
162
+ }
163
+ /* 模板 kicker = Cormorant italic 400:38px、ink-soft、句首大写、零字距 */
164
+ body.presenting .cm-md-page-title[data-slide-kicker]::before,
165
+ body.slides-printing .cm-md-page-title[data-slide-kicker]::before {
166
+ font-family: var(--slide-title-font);
167
+ font-style: italic;
168
+ font-weight: 400;
169
+ letter-spacing: 0;
170
+ text-transform: none;
171
+ color: var(--text-secondary);
172
+ margin-bottom: 0.95em; /* 模板 stack gap 36px ÷38 */
173
+ }
174
+
175
+ /* 1.6.2 cover · P01:奶油纸 + 三色圆点(装饰未复刻);232px 标题(上游已垂直居中、
176
+ 已把 page-start 顶距归零),38px 斜体 kicker 在上,30px lede 限 60ch */
177
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title {
178
+ font-size: var(--slide-cover-title-size);
179
+ line-height: 0.92;
180
+ letter-spacing: -0.02em;
181
+ max-width: 15em;
182
+ margin-bottom: 0.16em; /* 模板 stack gap 36px ÷232 */
183
+ }
184
+ body.slides-printing .cm-md-slide-cover.cm-md-page-title {
185
+ font-size: calc(var(--slide-cover-title-size) * 0.88); /* 打印域随上游缩 0.88 */
186
+ line-height: 1.02;
187
+ letter-spacing: -0.02em;
188
+ max-width: 15em;
189
+ margin-bottom: 0.16em;
190
+ }
191
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
192
+ body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
193
+ font-size: 1.15em; /* 30px ÷26 */
194
+ line-height: 1.4;
195
+ max-width: 50%; /* 模板 max-width 60ch */
196
+ color: var(--text-secondary);
197
+ }
198
+
199
+ /* 1.6.3 two-col · P02(foreword):左栏 56px 斜体 opener / 右栏 24px 正文。
200
+ drop cap 132px 是 :first-letter 局部装饰,行式 DOM 无挂点——未复刻 */
201
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-title,
202
+ body.slides-printing .cm-md-slide-two-col.cm-md-page-title {
203
+ font-size: 2.15em; /* opener 56px ÷26 */
204
+ font-style: italic;
205
+ font-weight: 500;
206
+ line-height: 1.1;
207
+ letter-spacing: 0;
208
+ color: var(--text-color);
209
+ max-width: none;
210
+ }
211
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-lead,
212
+ body.slides-printing .cm-md-slide-two-col.cm-md-page-lead {
213
+ font-size: 1.15em;
214
+ line-height: 1.5;
215
+ color: var(--text-color);
216
+ max-width: 100%;
217
+ }
218
+ body.presenting #editor .cm-content .cm-md-slide-two-col,
219
+ body.slides-printing #editor .cm-content .cm-md-slide-two-col {
220
+ font-size: 0.92em; /* 24px ÷26 */
221
+ line-height: 1.55;
222
+ color: var(--text-secondary);
223
+ }
224
+
225
+ /* 1.6.4 matrix · P04(insights,模板标注 reference layout)/ P03 同形:
226
+ 3 张 36px 圆角彩卡(blush——五色 pastel 轮换依赖固定序位,行式 DOM 取不到
227
+ nth,统一取"最中性"的 blush);居中 72px 衬线卡名 + 24px 文 */
228
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
229
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
230
+ display: inline-block;
231
+ width: 30.6%;
232
+ margin: 0 1.5% 1.8em 0;
233
+ padding: 2.46em 1.85em; /* 模板 64px 48px ÷26 */
234
+ border: none;
235
+ border-radius: 36px;
236
+ background: #e8c9b6; /* blush */
237
+ vertical-align: top;
238
+ text-align: center;
239
+ font-size: 0.92em; /* 卡内 24px ÷26 */
240
+ line-height: 1.45;
241
+ color: var(--text-color);
242
+ }
243
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
244
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
245
+ display: block;
246
+ font-family: var(--slide-title-font);
247
+ font-size: 3em; /* 72px ÷26 ÷0.92 */
248
+ font-weight: 500;
249
+ line-height: 1;
250
+ letter-spacing: -0.01em;
251
+ color: var(--text-color);
252
+ margin-bottom: 0.18em;
253
+ }
254
+ /* 卡内 sans 副题(Work Sans 32px 500)在 Markdown 无独立行,随说明文字排 */
255
+
256
+ /* 1.6.5 section · P05(closer):⚠ 全篇唯一整页换底——#E1A4C2 粉底。
257
+ 底色必须打满整条层叠链:body / #editor / .cm-editor / .cm-scroller /
258
+ .cm-content 五层同时上色(只挂 body 会被平台给 #editor 画的纸色反盖);
259
+ 打印域用 body.slides-printing:has(.cm-md-slide-section)。 */
260
+ body.presenting:has(#editor[data-slide-layout='section']),
261
+ body.slides-printing:has(.cm-md-slide-section) {
262
+ background: #e1a4c2;
263
+ }
264
+ body.presenting #editor[data-slide-layout='section'],
265
+ body.slides-printing:has(.cm-md-slide-section) #editor,
266
+ body.presenting #editor[data-slide-layout='section'] .cm-editor,
267
+ body.presenting #editor[data-slide-layout='section'] .cm-scroller,
268
+ body.presenting #editor[data-slide-layout='section'] .cm-content,
269
+ body.slides-printing:has(.cm-md-slide-section) .cm-editor,
270
+ body.slides-printing:has(.cm-md-slide-section) .cm-scroller,
271
+ body.slides-printing:has(.cm-md-slide-section) .cm-content {
272
+ background: #e1a4c2;
273
+ }
274
+ /* 粉底上 ink 字仍 7:1,标题/导语不换色;居中舞台 1100px ≈ 57% */
275
+ body.presenting #editor[data-slide-layout='section'] .cm-content {
276
+ align-items: center;
277
+ text-align: center;
278
+ }
279
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title {
280
+ font-size: var(--slide-section-title-size);
281
+ line-height: 0.95;
282
+ letter-spacing: -0.015em;
283
+ max-width: 57%;
284
+ margin-bottom: 0.21em; /* 模板 margin-bottom 36px ÷168 */
285
+ }
286
+ body.slides-printing .cm-md-slide-section.cm-md-page-title {
287
+ font-size: calc(var(--slide-section-title-size) * 0.88);
288
+ line-height: 1.02;
289
+ letter-spacing: -0.015em;
290
+ max-width: 57%;
291
+ padding-bottom: 0.3em;
292
+ }
293
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
294
+ body.slides-printing .cm-md-slide-section.cm-md-page-lead {
295
+ font-size: 1.08em; /* 28px ÷26 */
296
+ line-height: 1.5;
297
+ max-width: 57%;
298
+ color: var(--text-color);
299
+ }
300
+ /* 眉标 marker 在粉底上转 ink(模板 .s-closer .marker / .eyebrow 全 ink) */
301
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
302
+ body.slides-printing .cm-md-slide-section .cm-md-page-title[data-slide-kicker]::before {
303
+ color: var(--text-color);
304
+ margin-bottom: 0.84em; /* 模板 32px ÷38 */
305
+ }
306
+ /* 幽灵页码 = var(--text-color) 巨字形,模板没有这个装饰 → 整页隐藏;
307
+ 页脚在粉底上按模板降到 70%(.s-closer .footer rgba ink .7)。
308
+ 表格 td 无需换纸面色:粉底上 ink 仍可读(与 pin-and-paper 的 ink 页相反)。 */
309
+ body.presenting:has(#editor[data-slide-layout='section']) .slide-ghost {
310
+ opacity: 0;
311
+ }
312
+ body.presenting:has(#editor[data-slide-layout='section']) .slide-foot {
313
+ opacity: 0.7;
314
+ }
315
+
316
+ /* 1.6.6 kpi · P06(numbers):三张 36px 圆角彩卡 + 200px 衬线大数字 +
317
+ 24px ink 说明;模板 hero 320px 跨 2×2 格(依赖 grid 定位,未复刻) */
318
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
319
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
320
+ display: inline-block;
321
+ width: 31%;
322
+ margin: 0 1.5% 1.5em 0;
323
+ padding: 1.75em 1.83em; /* 模板 42px 44px ÷24 */
324
+ border: none;
325
+ border-radius: 36px;
326
+ background: #e8c9b6;
327
+ vertical-align: top;
328
+ font-size: 0.92em; /* 24px ÷26 */
329
+ line-height: 1.45;
330
+ color: var(--text-color);
331
+ }
332
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
333
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
334
+ display: block;
335
+ font-family: var(--slide-title-font);
336
+ font-size: var(--slide-kpi-number-size); /* 200px ÷26 ÷0.92 */
337
+ font-weight: 500;
338
+ line-height: 0.9;
339
+ letter-spacing: -0.02em;
340
+ color: var(--text-color);
341
+ margin-bottom: 0.12em;
342
+ }
343
+
344
+ /* 1.6.7 quote · P07:220px blush 大引号 + 88px 居中引文(模板正体,不斜)+
345
+ 48px 间距 + Work Sans 24px 500 署名 */
346
+ body.presenting .cm-content .cm-md-slide-quote .cm-md-blockquote,
347
+ body.slides-printing .cm-content .cm-md-slide-quote .cm-md-blockquote {
348
+ font-family: var(--slide-title-font);
349
+ font-style: normal; /* 模板 blockquote 正体 */
350
+ font-weight: 500;
351
+ font-size: var(--slide-quote-size);
352
+ line-height: 1.05;
353
+ letter-spacing: -0.01em;
354
+ color: var(--text-color);
355
+ background: transparent;
356
+ border-left: none;
357
+ padding-left: 0;
358
+ padding-right: 0;
359
+ max-width: 62%;
360
+ margin: 0 auto;
361
+ text-align: center;
362
+ }
363
+ body.presenting .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
364
+ body.slides-printing .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
365
+ font-size: 2.5em; /* 220px ÷88 */
366
+ line-height: 0.7;
367
+ font-style: normal;
368
+ color: #e8c9b6; /* 模板 qmark = blush */
369
+ opacity: 1;
370
+ margin-bottom: 0.14em; /* 模板 12px ÷88 */
371
+ }
372
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
373
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
374
+ margin-top: 1.85em; /* 模板 48px ÷26(CSS-03:纵向留白走 margin) */
375
+ font-family: var(--font-body);
376
+ font-weight: 500;
377
+ font-size: 0.92em; /* 24px ÷26 */
378
+ line-height: 1.3;
379
+ letter-spacing: 0;
380
+ color: var(--text-color);
381
+ text-align: center;
382
+ }
383
+
384
+ /* 1.6.8 closing · P08(next):124px 左对齐标题 + 3 张 28px 圆角行动卡
385
+ (模板 1fr 右栏竖排;行式 DOM 无左右分栏挂点 → 标题在上、卡片满列)
386
+ 卡:38px 衬线行题 + 24px ink .85 说明;模板无 ▸ 前缀 */
387
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title {
388
+ font-size: var(--slide-closing-title-size);
389
+ line-height: 0.95;
390
+ letter-spacing: -0.015em;
391
+ max-width: 55%;
392
+ }
393
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title {
394
+ font-size: calc(var(--slide-closing-title-size) * 0.9);
395
+ line-height: 0.95;
396
+ letter-spacing: -0.015em;
397
+ max-width: 55%;
398
+ }
399
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
400
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
401
+ width: 62%;
402
+ margin: 0 0 0.85em;
403
+ padding: 1em 1.33em; /* 模板 24px 32px ÷24 */
404
+ border: none;
405
+ border-radius: 28px;
406
+ background: #e8c9b6;
407
+ font-size: 0.92em; /* 24px ÷26 */
408
+ line-height: 1.4;
409
+ color: var(--text-color);
410
+ opacity: 1;
411
+ }
412
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li::before,
413
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li::before {
414
+ content: none; /* 压掉上游 ▸ 前缀 */
415
+ }
416
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-strong,
417
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-strong {
418
+ font-family: var(--slide-title-font);
419
+ font-size: 1.59em; /* 38px ÷26 ÷0.92 */
420
+ font-weight: 500;
421
+ line-height: 1.05;
422
+ letter-spacing: 0;
423
+ color: var(--text-color);
424
+ }
425
+ /* 上游把 closing 当收束页、整副 chrome 淡出;P08(next)眉标与页脚仍在 ⇒ 收回 */
426
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-chrome {
427
+ opacity: 1;
428
+ }
429
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-foot {
430
+ opacity: 0.9;
431
+ }
432
+
433
+ /* 1.6.9 figure · P10(chart)+ P12(matrix 表格):96px 左栏标题;
434
+ chart 绘图区/P10 图例色条为绝对定位装饰——未复刻,图表交给 Pele。
435
+ 表格按模板画:th 衬线 500 + 1.5px ink .4 底线,td 1px dashed ink .18 */
436
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title,
437
+ body.slides-printing .cm-md-slide-figure.cm-md-page-title {
438
+ font-size: 3.7em; /* 96px ÷26 */
439
+ line-height: 0.98;
440
+ letter-spacing: -0.01em;
441
+ max-width: 12em;
442
+ }
443
+ body.presenting #editor .cm-content .cm-md-table-widget th,
444
+ body.slides-printing #editor .cm-content .cm-md-table-widget th {
445
+ font-family: var(--slide-title-font);
446
+ font-size: 1.2em; /* 28px ÷ (0.88em 表基) */
447
+ font-weight: 500;
448
+ color: var(--text-color);
449
+ background: transparent;
450
+ border-bottom: 1.5px solid rgba(42, 36, 27, 0.4);
451
+ }
452
+ body.presenting #editor .cm-content .cm-md-table-widget td,
453
+ body.slides-printing #editor .cm-content .cm-md-table-widget td {
454
+ font-size: 1.02em; /* 24px ÷ (0.88em 表基) */
455
+ color: var(--text-color);
456
+ border-bottom: 1px dashed rgba(42, 36, 27, 0.18);
457
+ }
458
+
459
+ /* 1.6.10 steps · P11(process):5 张 28px 圆角流程卡 + 斜体罗马序号 i.–v.
460
+ 序号用 CSS counter(lower-roman)复刻模板 i./ii./iii.;counter 在页题行
461
+ 复位、在条目行自增。卡宽 18.4% × 5 + 1.2% 间距 = 98%。
462
+ 节点箭头连线、Week 时间条(绝对定位 SVG / 条形)——未复刻 */
463
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-page-start,
464
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-page-title,
465
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-page-title,
466
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-page-start,
467
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-page-title {
468
+ counter-reset: soft-step;
469
+ }
470
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
471
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
472
+ counter-increment: soft-step;
473
+ display: inline-block;
474
+ width: 18.4%;
475
+ margin: 0 1.2% 1.4em 0;
476
+ padding: 1.08em 1em; /* 模板 26px 24px ÷24 */
477
+ border: none;
478
+ border-radius: 28px;
479
+ background: #e8c9b6;
480
+ vertical-align: top;
481
+ font-size: 0.92em; /* 24px ÷26 */
482
+ line-height: 1.4;
483
+ color: var(--text-color);
484
+ text-align: left;
485
+ }
486
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li::before,
487
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li::before {
488
+ content: counter(soft-step, lower-roman) ".";
489
+ display: block;
490
+ font-family: var(--slide-title-font);
491
+ font-style: italic;
492
+ font-weight: 500;
493
+ font-size: 2.34em; /* 56px ÷26 ÷0.92 */
494
+ line-height: 0.9;
495
+ color: var(--text-color);
496
+ margin-bottom: 0.3em;
497
+ }
498
+ /* 模板节点行题 32px 衬线 500;压掉上游步骤名"描边胶囊" */
499
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
500
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
501
+ display: block;
502
+ min-width: 0;
503
+ padding: 0;
504
+ border: none;
505
+ border-radius: 0;
506
+ background: transparent;
507
+ font-family: var(--slide-title-font);
508
+ font-size: 1.34em; /* 32px ÷26 ÷0.92 */
509
+ font-weight: 500;
510
+ line-height: 1.05;
511
+ letter-spacing: 0;
512
+ color: var(--text-color);
513
+ white-space: normal;
514
+ margin-bottom: 0.2em;
515
+ }
516
+ /* 副题(P11 head .sub):28px 斜体衬线、挤到右侧、max-width 32ch */
517
+ body.presenting #editor[data-slide-layout='steps'] .cm-content .cm-md-page-lead,
518
+ body.slides-printing .cm-md-slide-steps.cm-md-page-lead {
519
+ font-family: var(--slide-title-font);
520
+ font-style: italic;
521
+ font-size: 1.08em; /* 28px ÷26 */
522
+ line-height: 1.3;
523
+ color: var(--text-secondary);
524
+ max-width: 45%;
525
+ margin-left: auto;
526
+ margin-right: 0;
527
+ text-align: right;
528
+ margin-bottom: 1.6em;
529
+ }
530
+
531
+ /* 1.6.11 chrome · 眉标 = Work Sans 28px ink(句首大写、-0.005em);
532
+ 页脚/页码 = Cormorant italic 26px ink-soft(模板从不大写、从不等宽) */
533
+ body.presenting .slide-chrome,
534
+ body.slides-printing .slide-chrome {
535
+ font-family: var(--font-body);
536
+ font-size: clamp(12px, 1.46vw, 28px); /* 28px @1920 */
537
+ font-weight: 400;
538
+ letter-spacing: -0.005em;
539
+ text-transform: none;
540
+ color: var(--text-color);
541
+ }
542
+ body.presenting .slide-foot,
543
+ body.slides-printing .slide-foot {
544
+ font-family: var(--slide-title-font);
545
+ font-style: italic;
546
+ font-size: clamp(11px, 1.35vw, 26px); /* 26px @1920 */
547
+ letter-spacing: 0;
548
+ text-transform: none;
549
+ opacity: 0.9;
550
+ color: var(--text-secondary);
551
+ }
552
+ body.presenting .slide-foot-brand,
553
+ body.slides-printing .slide-foot-brand {
554
+ font-family: var(--slide-title-font);
555
+ font-style: italic;
556
+ font-size: inherit;
557
+ font-weight: 400;
558
+ letter-spacing: 0;
559
+ text-transform: none;
560
+ }
561
+ body.presenting .slide-ghost,
562
+ body.slides-printing .slide-ghost {
563
+ font-weight: 500; /* 上游 800 → Cormorant 500 */
564
+ }
565
+
566
+ /* ═══════════════════════════════════════════════════════════
567
+ SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
568
+ ═══════════════════════════════════════════════════════════ */
569
+
570
+ #editor .cm-content {
571
+ font-family: var(--font-body);
572
+ line-height: 1.7;
573
+ }
574
+
575
+ /* ── 2.1 Headings(Cormorant 500;修正:生成版 h2 小于正文、h3 爆到 3em)── */
576
+ #editor .cm-content .cm-md-atxheading1,
577
+ #editor .cm-content .cm-md-atxheading2,
578
+ #editor .cm-content .cm-md-atxheading3,
579
+ #editor .cm-content .cm-md-atxheading4,
580
+ #editor .cm-content .cm-md-atxheading5,
581
+ #editor .cm-content .cm-md-atxheading6 {
582
+ font-family: "Cormorant Garamond", "LXGW WenKai TC", "Noto Serif SC", serif;
583
+ color: var(--text-color);
584
+ font-weight: 500;
585
+ line-height: 1.1;
586
+ letter-spacing: -0.012em;
587
+ }
588
+
589
+ #editor .cm-content .cm-md-atxheading1 {
590
+ font-size: 2.7em;
591
+ line-height: 1.02;
592
+ letter-spacing: -0.018em;
593
+ }
594
+ #editor .cm-content .cm-md-atxheading2 { font-size: 2em; line-height: 1.08; }
595
+ #editor .cm-content .cm-md-atxheading3 { font-size: 1.55em; }
596
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1.25em; }
597
+ #editor .cm-content .cm-md-atxheading5 { font-size: 1.08em; }
598
+ #editor .cm-content .cm-md-atxheading6 {
599
+ font-family: var(--font-body);
600
+ font-size: 0.9em;
601
+ font-weight: 500;
602
+ letter-spacing: 0.06em; /* 模板唯一大写:swatch-label */
603
+ text-transform: uppercase;
604
+ color: var(--text-secondary);
605
+ }
606
+
607
+ /* ── 2.2 Inline(模板:强调一律 ink 500,从不用 accent 做文字色)── */
608
+ #editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 500; }
609
+ #editor .cm-content .cm-md-em { font-style: italic; }
610
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; }
611
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
612
+ #editor .cm-content .cm-md-link { color: var(--link-color); }
613
+ #editor .cm-content .cm-md-url { color: var(--text-muted); }
614
+
615
+ #editor .cm-content .cm-md-inlinecode {
616
+ font-family: var(--font-mono);
617
+ background: var(--code-bg);
618
+ color: var(--text-color);
619
+ border-radius: 4px;
620
+ }
621
+
622
+ #editor .cm-content .cm-md-marker,
623
+ #editor .cm-content .cm-md-quotemark,
624
+ #editor .cm-content .cm-md-listmark {
625
+ color: var(--text-muted);
626
+ }
627
+
628
+ /* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
629
+ 引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
630
+ 否则引用里的代码行会盖住代码块底色。 */
631
+ #editor .cm-content .cm-md-blockquote {
632
+ color: var(--text-secondary);
633
+ border-left: 1px solid var(--blockquote-border); /* 模板 1px ink 发丝线 */
634
+ padding-left: 16px;
635
+ padding-right: 16px;
636
+ }
637
+
638
+ #editor .cm-content .cm-md-codeblock {
639
+ background: var(--code-block-bg);
640
+ color: var(--code-block-text);
641
+ padding-left: 16px;
642
+ padding-right: 16px;
643
+ }
644
+ #editor .cm-content .cm-md-codeblock-first {
645
+ border-top-left-radius: 18px;
646
+ border-top-right-radius: 18px;
647
+ }
648
+ #editor .cm-content .cm-md-codeblock-last {
649
+ border-bottom-left-radius: 18px;
650
+ border-bottom-right-radius: 18px;
651
+ }
652
+
653
+ /* ── 2.4 Table / Rule(模板:卡片式表头 + dashed 行线)── */
654
+ #editor .cm-content .cm-md-table-widget th,
655
+ #editor .cm-content .cm-md-table-widget td {
656
+ padding: 10px 14px;
657
+ border-color: rgba(42, 36, 27, 0.18);
658
+ }
659
+ #editor .cm-content .cm-md-table-widget th {
660
+ background: var(--table-header-bg);
661
+ color: var(--text-color);
662
+ font-family: "Cormorant Garamond", "LXGW WenKai TC", "Noto Serif SC", serif;
663
+ font-size: 1.08em;
664
+ font-weight: 500;
665
+ border-bottom: 1.5px solid rgba(42, 36, 27, 0.4);
666
+ }
667
+ #editor .cm-content .cm-md-table-widget td {
668
+ border-bottom: 1px dashed rgba(42, 36, 27, 0.18);
669
+ }
670
+ #editor .cm-content .cm-md-hr { border-top-color: rgba(42, 36, 27, 0.18); }
671
+
672
+ /* ── 2.5 中文首行缩进 ──
673
+ CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
674
+ #editor .cm-content .cm-line { text-indent: 2em; }
675
+
676
+ #editor .cm-content .cm-md-atxheading1,
677
+ #editor .cm-content .cm-md-atxheading2,
678
+ #editor .cm-content .cm-md-atxheading3,
679
+ #editor .cm-content .cm-md-atxheading4,
680
+ #editor .cm-content .cm-md-atxheading5,
681
+ #editor .cm-content .cm-md-atxheading6,
682
+ #editor .cm-content .cm-md-blockquote,
683
+ #editor .cm-content .cm-md-codeblock,
684
+ #editor .cm-content .cm-md-hr,
685
+ #editor .cm-content .cm-md-mermaid,
686
+ #editor .cm-content .cm-md-li-0,
687
+ #editor .cm-content .cm-md-li-1,
688
+ #editor .cm-content .cm-md-li-2,
689
+ #editor .cm-content .cm-md-li-3,
690
+ #editor .cm-content .cm-md-li-4,
691
+ #editor .cm-content .cm-md-li-5,
692
+ #editor .cm-content .cm-md-li-6 {
693
+ text-indent: 0;
694
+ }
695
+
696
+ /* ═══════════════════════════════════════════════════════════
697
+ SECTION 3 — Exported HTML(.colamd-document,语义标签)
698
+ HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
699
+ ═══════════════════════════════════════════════════════════ */
700
+
701
+ .colamd-document {
702
+ font-family: var(--font-body);
703
+ font-size: 17px;
704
+ line-height: 1.7;
705
+ }
706
+
707
+ .colamd-document h1,
708
+ .colamd-document h2,
709
+ .colamd-document h3,
710
+ .colamd-document h4,
711
+ .colamd-document h5,
712
+ .colamd-document h6 {
713
+ font-family: "Cormorant Garamond", "LXGW WenKai TC", "Noto Serif SC", serif;
714
+ color: var(--text-color);
715
+ font-weight: 500;
716
+ line-height: 1.1;
717
+ letter-spacing: -0.012em;
718
+ margin: 1.5em 0 0.5em;
719
+ }
720
+ .colamd-document h1 { font-size: 2.7em; line-height: 1.02; letter-spacing: -0.018em; margin-top: 0.4em; }
721
+ .colamd-document h2 { font-size: 2em; line-height: 1.08; }
722
+ .colamd-document h3 { font-size: 1.55em; }
723
+ .colamd-document h4 { font-size: 1.25em; }
724
+ .colamd-document h5 { font-size: 1.08em; }
725
+ .colamd-document h6 {
726
+ font-family: var(--font-body);
727
+ font-size: 0.9em;
728
+ font-weight: 500;
729
+ letter-spacing: 0.06em;
730
+ text-transform: uppercase;
731
+ color: var(--text-secondary);
732
+ }
733
+
734
+ .colamd-document strong { color: var(--text-color); font-weight: 500; }
735
+ .colamd-document code {
736
+ background: var(--code-bg);
737
+ color: var(--text-color);
738
+ font-family: var(--font-mono);
739
+ border-radius: 4px;
740
+ }
741
+ /* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
742
+ .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
743
+ .colamd-document pre { background: var(--code-block-bg); }
744
+ .colamd-document pre code { color: var(--code-block-text); background: transparent; }
745
+ .colamd-document blockquote {
746
+ background: var(--blockquote-bg);
747
+ color: var(--text-secondary);
748
+ border-left: 1px solid var(--blockquote-border);
749
+ padding: 0.5em 1.2em;
750
+ }
751
+ .colamd-document mark { background: var(--highlight-bg); }
752
+ .colamd-document th,
753
+ .colamd-document td {
754
+ padding: 10px 14px;
755
+ border-color: rgba(42, 36, 27, 0.18);
756
+ }
757
+ .colamd-document td { border-bottom: 1px dashed rgba(42, 36, 27, 0.18); }
758
+ .colamd-document th {
759
+ background: var(--table-header-bg);
760
+ font-family: "Cormorant Garamond", "LXGW WenKai TC", "Noto Serif SC", serif;
761
+ font-size: 1.08em;
762
+ font-weight: 500;
763
+ border-bottom: 1.5px solid rgba(42, 36, 27, 0.4);
764
+ }
765
+ .colamd-document hr { border-top-color: rgba(42, 36, 27, 0.18); }
766
+
767
+ .colamd-document p { text-indent: 2em; }
768
+ .colamd-document li p,
769
+ .colamd-document td p,
770
+ .colamd-document th p,
771
+ .colamd-document blockquote p {
772
+ text-indent: 0;
773
+ }
774
+
775
+ /* ═══════════════════════════════════════════════════════════
776
+ SECTION 4 — Print
777
+ 应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
778
+ ═══════════════════════════════════════════════════════════ */
779
+
780
+ @media print {
781
+ html,
782
+ body {
783
+ background: var(--bg-color);
784
+ color: var(--text-color);
785
+ -webkit-print-color-adjust: exact;
786
+ print-color-adjust: exact;
787
+ }
788
+ }