@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,774 @@
1
+ /*
2
+ * ColaMD Theme: Playful(手工精修 · 逐页版式复刻版)
3
+ * Peach-clay paper with charcoal ink and Syne display: a hand-crafted studio deck.
4
+ * Generated by colamd-themes (local-html: D:\workspace\git\beautiful-html-templates\templates\playful\template.html)
5
+ *
6
+ * 来源:beautiful-html-templates/templates/playful/template.html(十页,1920×1080)
7
+ * 色板(template.html :root):bg #F0C8A0 / bg-alt #E8B88E / light #F7DEC6 / text #1A1A1A
8
+ * 字体:Syne 700/800(display,模板即 700/800,无需降字重)
9
+ * Space Grotesk 400/500/600(body/label);中文按 design.md 建议
10
+ * ZCOOL KuaiLe(display 兜底)/ Yozai(body 兜底)。
11
+ *
12
+ * paradigm 备案(桃纸 + 单墨色身份,与 pin-and-paper 黄纸同类,有意保留):
13
+ * SL-01 —— surface #F0C8A0 饱和度 72.7% > 5%,模板身份即"桃纸画布";
14
+ * 文字一律 ink #1A1A1A(与纸底 11.2:1),暖纸不承担文字可读性。
15
+ * SL-02 —— panel #E8B88E 饱和度 66.2% / panelAlt #D9A97D 54.8% > 10%,
16
+ * 二者是模板 bg-alt / 更深一档的暖色兄弟(代码/引用/表头底),
17
+ * design.md 明确规定暖色分层,保留;其上文字仍用 ink。
18
+ * HR-01 —— accent = ink(饱和度 0% < 30%),模板 design.md 写明
19
+ * "accent alias resolves to text",单色纪律即身份;强调靠重量/字号/形状。
20
+ * (CR-04 实测 ink 对纸底 11.2:1、CR-02 muted #3D3D3D 5.9:1,均通过;
21
+ * NT-03 边框取中性灰 #8A8A8A,无违规。)
22
+ *
23
+ * 版式复刻见 SECTION 1.5/1.6(页面映射与换算式均在其注释中)。
24
+ *
25
+ * 契约:ColaMD Extend 2.7(CodeMirror 6 编辑器 + Pele 图表引擎)
26
+ *
27
+ * 两条硬规矩:
28
+ * 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
29
+ * 编辑器继承不到。
30
+ * 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
31
+ * 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
32
+ * 并且引用/代码块**不能加纵向 padding**——那会按行累加。
33
+ *
34
+ * ═══════════════════════════════════════════════════════════
35
+ * SECTION 1 — Design Tokens
36
+ * 改 11 个种子色 + 3 组字体即可换一套主题
37
+ * ═══════════════════════════════════════════════════════════ */
38
+
39
+ :root {
40
+
41
+ /* ── 1.1 Seed Palette ──
42
+ 本工具的再生成与校验读这一层;编辑器不消费。
43
+ 模板约定:全站只有桃纸 + 炭墨两色;bg-alt/light 是纸的同族明度兄弟,
44
+ 不做第三色。ink 系列保持中性灰(NT-01 同色相轴)。 */
45
+ --seed-accent: #1a1a1a; /* 模板 accent = text(单色纪律) */
46
+ --seed-accent-light: #3d3d3d;
47
+ --seed-accent-dark: #000000;
48
+ --seed-surface: #f0c8a0; /* bg 桃纸 */
49
+ --seed-panel: #e8b88e; /* bg-alt:引用/表头底 */
50
+ --seed-panel-alt: #d9a97d; /* 纸再深一档:代码块底 */
51
+ --seed-ink: #1a1a1a;
52
+ --seed-ink-muted: #3d3d3d; /* 修正生成版 ink-muted=ink-dim 的重复 */
53
+ --seed-ink-dim: #4f4f4f;
54
+ --seed-border: #8a8a8a; /* NT-03 中性灰;模板卡片线另用 ink 硬描边 */
55
+ --seed-border-strong: #1a1a1a;
56
+
57
+ /* ── 1.2 Semantic Colors(活变量)── */
58
+ --bg-color: var(--seed-surface);
59
+ --text-color: var(--seed-ink);
60
+ --text-secondary: var(--seed-ink-muted);
61
+ --text-muted: var(--seed-ink-dim);
62
+ --border-color: var(--seed-border);
63
+ --link-color: var(--seed-ink); /* accent=ink,CR-04 11.2:1 */
64
+
65
+ --code-bg: var(--seed-panel);
66
+ --code-block-bg: var(--seed-panel-alt);
67
+ --code-block-text: #1a1a1a;
68
+
69
+ --blockquote-border: var(--seed-accent); /* 模板 rough-box 3px 炭墨 */
70
+ --blockquote-bg: var(--seed-panel);
71
+ --table-header-bg: var(--seed-panel);
72
+
73
+ --selection-bg: rgba(26, 26, 26, 0.18);
74
+ --highlight-bg: #f7dec6; /* 模板 light:唯一"提亮"层 */
75
+
76
+ /* ── 1.3 Typography & Metrics(活变量)── */
77
+ --font-body: "Space Grotesk", "Yozai", "Noto Sans SC", sans-serif;
78
+ --font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
79
+ --editor-font-size: 16px;
80
+ --editor-column-width: 820px;
81
+
82
+ /* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
83
+ 图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导。 */
84
+ --pele-bg: var(--code-block-bg);
85
+ --pele-fg: var(--code-block-text);
86
+ --pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
87
+ --pele-line: var(--code-block-text);
88
+ --pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
89
+ --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
90
+ --pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
91
+ --pele-accent: var(--seed-ink); /* 模板图表只有实心墨条/描边墨条 */
92
+ --pele-radius: 0px; /* 模板:卡片/标签/图表零圆角 */
93
+ }
94
+
95
+ /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 playful 十页逐页复刻)──
96
+ 换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
97
+ 模板 1920 画布 px ÷ 26 = em(clamp 取 1920×1080 实际落点):
98
+ P1 日期 9rem(144px) / 主标题 5rem(80px) / 副题 1.1rem(17.6px)
99
+ P2 页题 3.5rem(56px) / 卡号 2.5rem(40px) / 卡签 1rem(16px)
100
+ P3 声明 4.5rem(72px) / 正文 1rem(16px)
101
+ P4 页题 3rem(48px) / 图例 0.85rem(13.6px)
102
+ P5 页题 3rem(48px) / 姓名 1.3rem(20.8px) / 角色 0.85rem(13.6px)
103
+ P6 页题 3.5rem(56px) / 块题 1.3rem(20.8px) / 块述 0.9rem(14.4px)
104
+ P7 页题 3rem(48px) / 步题 1.1rem(17.6px) / 步述 0.8rem(12.8px)
105
+ P8 页题 2.5rem(40px) / 巨数 7rem(112px) / 标签 1rem(16px)
106
+ P9 页题 3rem(48px) / 副题 1rem(16px)
107
+ P10 收束 7rem(112px) / 副题 1.2rem(19.2px) / 联系行 1rem(16px)
108
+ 页面对照:
109
+ cover←P1 agenda←P2 section←P3 figure←P4 matrix←P5
110
+ steps←P7 kpi←P8 figure←P9 closing←P10
111
+ (P6 services 与 P5 team 同为卡片网格 → 共用 matrix 规则,P6 的
112
+ 3×2 拼贴/隔卡墨底/±0.5–0.8deg 微旋转无法在行式 DOM 按卡片序号稳定
113
+ 命中,未复刻;quote / timeline / two-col 无对应页,保持上游默认。)
114
+ 全十页同一桃纸底,无换底色页 → 不做页面级背景覆写,天然无层叠覆盖问题。
115
+ 全部绝对定位装饰(blob 光斑、SVG 涂鸦、竖排 SCROLL DOWN、巨数字旋转、
116
+ 联系框偏移双线、进度条/右下翻页器)在 CM6 行式 DOM 无挂点 → 有意未复刻。 */
117
+ :root {
118
+ --slide-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
119
+ --slide-title-font: "Syne", "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
120
+ --slide-title-size: 2.15em; /* P2 toc-title 56px ÷26 */
121
+ --slide-title-weight: 700; /* Syne 模板标题即 700 */
122
+ --slide-subhead-weight: 600;
123
+ --slide-title-tracking: -0.01em; /* design.md title -.01em */
124
+ --slide-title-line-height: 1.1;
125
+ --slide-cover-title-size: 3.08em; /* P1 title-main 80px ÷26 */
126
+ --slide-cover-title-line-height: 1;
127
+ --slide-cover-title-tracking: -0.01em;
128
+ --slide-section-title-size: 2.77em; /* P3 big-statement 72px ÷26 */
129
+ --slide-closing-title-size: 4.31em; /* P10 closing-big 112px ÷26 */
130
+ --slide-lead-size: 0.615em; /* 正文 16px ÷26 */
131
+ --slide-kicker-size: clamp(12px, 0.71vw, 14px); /* eyebrow 13.6px @1920 */
132
+ --slide-kicker-tracking: 0.15em; /* section-label .15em */
133
+ --slide-kicker-transform: uppercase;
134
+ --slide-chrome-opacity: 0.9; /* slide-counter 全墨;不大写 */
135
+ --slide-chrome-transform: none;
136
+ --slide-kpi-number-size: 7em; /* P8 stat-num 112px ÷26 ÷0.615(li) */
137
+ --slide-quote-size: 2.4em; /* 无 quote 页,留上游默认 */
138
+ --slide-page-pad-x: 3.34vw; /* 模板内容页边距 64px @1920 */
139
+ --slide-page-top-pad: 70px; /* 正文顶 48px + chrome 安全区 */
140
+ --slide-page-top-pad-print: 60px;
141
+ --slide-cover-text-align: left; /* P1 左对齐(垂直居中) */
142
+ --slide-cover-lead-inline: 0;
143
+ }
144
+
145
+ /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
146
+ body.presenting / body.slides-printing 作用域) ═══════════════ */
147
+
148
+ /* 1.6.1 页标题声部对齐:Syne 700 炭墨;并压掉文档式标题的 border-bottom
149
+ 与中文首行缩进(编辑器规则带 id 权重会漏进放映) */
150
+ body.presenting #editor .cm-content .cm-md-page-title,
151
+ body.slides-printing #editor .cm-content .cm-md-page-title {
152
+ font-family: var(--slide-title-font);
153
+ font-size: var(--slide-title-size);
154
+ font-weight: 700;
155
+ line-height: 1.1;
156
+ letter-spacing: -0.01em;
157
+ color: var(--text-color);
158
+ border-bottom: none;
159
+ padding-top: 0;
160
+ padding-bottom: 0;
161
+ margin-bottom: 0.86em;
162
+ text-indent: 0;
163
+ }
164
+ body.presenting #editor .cm-content .cm-md-page-lead,
165
+ body.presenting #editor .cm-content .cm-md-li,
166
+ body.slides-printing #editor .cm-content .cm-md-page-lead,
167
+ body.slides-printing #editor .cm-content .cm-md-li {
168
+ text-indent: 0;
169
+ }
170
+
171
+ /* 1.6.2 cover · P1:桃纸舞台居中;kicker = 日期巨字(144px,Syne 800
172
+ -.03em),主标题 80px,副题 17.6px / 400 宽。blob 光斑与竖排标签未复刻。
173
+ 日期实现:cover 标题 3.08em 为基,1.8em × 3.08 × 26 ≈ 144px。 */
174
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
175
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-title {
176
+ font-size: var(--slide-cover-title-size);
177
+ font-weight: 700;
178
+ line-height: 1;
179
+ letter-spacing: -0.01em;
180
+ max-width: 70%; /* title-main max-width:70% */
181
+ margin-bottom: 0.4em; /* 2rem ÷80px */
182
+ }
183
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
184
+ body.slides-printing .cm-md-slide-cover.cm-md-page-title[data-slide-kicker]::before {
185
+ font-family: var(--slide-title-font);
186
+ font-size: 1.8em; /* 144px ÷80px */
187
+ font-weight: 800;
188
+ line-height: 0.9;
189
+ letter-spacing: -0.03em;
190
+ text-transform: none;
191
+ color: var(--text-color);
192
+ opacity: 1;
193
+ margin-bottom: 0.11em; /* 1rem ÷144px */
194
+ }
195
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-atxheading2,
196
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-atxheading3,
197
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
198
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-atxheading2,
199
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-atxheading3,
200
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-lead {
201
+ font-family: var(--font-body);
202
+ font-size: 0.677em; /* subtitle 17.6px ÷26 */
203
+ font-weight: 500;
204
+ line-height: 1.6;
205
+ letter-spacing: 0;
206
+ color: var(--text-color);
207
+ max-width: 22.7em; /* 400px ÷17.6px */
208
+ margin-bottom: 0;
209
+ }
210
+
211
+ /* 1.6.3 agenda · P2(table of contents):页题 56px / 60% 宽;条目 =
212
+ 3px 炭墨描边卡 + 6px 偏移双线(.toc-item::before),卡号 40px Syne 800
213
+ 独立一行,卡签 16px。行式 DOM 无 2 列容器 → 每卡 44% 宽保 2 列结构
214
+ (模板卡宽 434px 在此放大到约 790px,列数优先)。 */
215
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content .cm-md-page-title,
216
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-page-title {
217
+ font-size: 2.15em; /* toc-title 56px ÷26 */
218
+ max-width: 60%;
219
+ margin-bottom: 0.86em; /* 3rem ÷56px */
220
+ }
221
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
222
+ body.slides-printing .cm-md-slide-agenda.cm-md-page-title[data-slide-kicker]::before {
223
+ letter-spacing: 0.15em; /* section-label .15em */
224
+ color: var(--text-color);
225
+ opacity: 0.7;
226
+ margin-bottom: 2.35em; /* 2rem ÷13.6px */
227
+ }
228
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
229
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
230
+ position: relative; /* 偏移双线挂点 */
231
+ display: inline-block;
232
+ width: 44%;
233
+ margin: 0 4% 2em 0; /* gap 2rem ÷16px */
234
+ padding: 1.5em; /* 1.5rem ÷16px */
235
+ vertical-align: top;
236
+ border: 3px solid var(--text-color); /* .toc-item 3px */
237
+ background: var(--bg-color);
238
+ font-size: 0.615em; /* 卡签 16px ÷26 */
239
+ line-height: 1.5;
240
+ }
241
+ /* .toc-item::before 的 6px 偏移第二道线(绘制在上层,不设负 z-index,
242
+ 否则会被卡片自身底色盖住;6px 落在 1.5em 内边距里,不压字) */
243
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li::before,
244
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li::before {
245
+ content: '';
246
+ position: absolute;
247
+ top: 6px;
248
+ left: 6px;
249
+ right: -6px;
250
+ bottom: -6px;
251
+ border: 2px solid var(--text-color);
252
+ pointer-events: none;
253
+ }
254
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
255
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
256
+ display: block; /* 卡号独立一行 */
257
+ font-family: var(--slide-title-font);
258
+ font-size: 2.5em; /* 40px ÷16px */
259
+ font-weight: 800;
260
+ line-height: 1;
261
+ letter-spacing: -0.01em;
262
+ color: var(--text-color);
263
+ margin: 0 0 0.2em; /* 0.5rem ÷40px */
264
+ }
265
+
266
+ /* 1.6.4 section · P3(about / vision):声明 72px / 75% 宽;
267
+ 正文 16px / 1.7 / 0.9 不透明 / 800px 宽。模板 body-columns 双栏在
268
+ 行式 DOM 无法把两段独立行并排 → 改为单栏顺排(有意未复刻);
269
+ 右侧 blob-frame 装饰未复刻。 */
270
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title,
271
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-title {
272
+ font-size: var(--slide-section-title-size);
273
+ line-height: 1.1;
274
+ max-width: 75%;
275
+ margin-bottom: 0.667em; /* 3rem ÷72px */
276
+ }
277
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
278
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-lead {
279
+ font-size: 0.615em; /* body-text 16px ÷26 */
280
+ line-height: 1.7;
281
+ color: var(--text-color);
282
+ opacity: 0.9;
283
+ max-width: 50em; /* 800px ÷16px */
284
+ margin-bottom: 1.4em;
285
+ }
286
+
287
+ /* 1.6.5 figure · P4(chart)/ P9(gallery):页题 48px;图例 13.6px
288
+ micro-label 由 kicker 承担,P9 副题 16px 由 lead 承担。
289
+ P4 自绘柱图与 P9 图墙拼贴都用 Mermaid/图片近似;图轴、星形涂鸦、
290
+ IMG 标签与卡片旋转为绝对定位装饰,未复刻。 */
291
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title,
292
+ body.slides-printing #editor .cm-content .cm-md-slide-figure.cm-md-page-title {
293
+ font-size: 1.85em; /* chart-title 48px ÷26 */
294
+ max-width: 50%; /* chart-title max-width:50% */
295
+ margin-bottom: 1.2em; /* 3rem ÷48px */
296
+ }
297
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
298
+ body.slides-printing .cm-md-slide-figure.cm-md-page-title[data-slide-kicker]::before {
299
+ letter-spacing: 0.15em;
300
+ color: var(--text-color);
301
+ opacity: 0.7;
302
+ }
303
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-lead,
304
+ body.slides-printing #editor .cm-content .cm-md-slide-figure.cm-md-page-lead {
305
+ font-size: 0.615em; /* gallery-sub 16px ÷26 */
306
+ line-height: 1.5;
307
+ color: var(--text-color);
308
+ opacity: 0.7;
309
+ max-width: none;
310
+ margin-bottom: 1.5em;
311
+ }
312
+
313
+ /* 1.6.6 matrix · P5(team)/ P6(services):页题 56px;
314
+ 卡片 = 3px 炭墨描边 + 纸底 + 24px 内距(模板 .team-card/.service-block),
315
+ 头像 60px 墨圆用行级 ::before 补回;姓名 20.8px Syne 700,
316
+ 角色 13.6px / 0.7。P6 隔卡墨底反白与 ±0.5–0.8deg 微旋转按卡片序号
317
+ 无法在行式 DOM 稳定命中 → 未复刻(卡宽取 4 列 22.5%,P6 的 3×2 拼贴
318
+ 退化为 4+1 两行)。 */
319
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content .cm-md-page-title,
320
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-page-title {
321
+ font-size: 2.15em; /* services-title 56px ÷26 */
322
+ max-width: 50%;
323
+ margin-bottom: 2.3em; /* 3rem ÷56px */
324
+ }
325
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content .cm-md-page-lead,
326
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-page-lead {
327
+ font-size: 0.615em; /* team-sub 16px ÷26 */
328
+ line-height: 1.5;
329
+ color: var(--text-color);
330
+ opacity: 0.7;
331
+ max-width: 60%;
332
+ margin-bottom: 3em; /* 3rem ÷16px */
333
+ }
334
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
335
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
336
+ display: inline-block;
337
+ width: 22.5%;
338
+ margin: 0 2% 1.6em 0;
339
+ padding: 1.765em 1.765em 1.6em; /* 1.5rem ÷13.6px */
340
+ vertical-align: top;
341
+ border: 3px solid var(--text-color); /* .team-card 3px */
342
+ border-radius: 0; /* 模板零圆角 */
343
+ background: var(--bg-color);
344
+ font-size: 0.523em; /* role 13.6px ÷26 */
345
+ line-height: 1.4;
346
+ color: rgba(26, 26, 26, 0.7); /* role 0.7;姓名另行收回全墨 */
347
+ }
348
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-listmark,
349
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-listmark {
350
+ display: none;
351
+ }
352
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li::before,
353
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li::before {
354
+ content: '';
355
+ display: block;
356
+ width: 4.41em; /* avatar 60px ÷13.6px */
357
+ height: 4.41em;
358
+ margin-bottom: 1.176em; /* 1rem ÷13.6px */
359
+ border-radius: 50%;
360
+ background: var(--text-color);
361
+ }
362
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
363
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
364
+ display: block;
365
+ font-family: var(--slide-title-font);
366
+ font-size: 1.53em; /* name 20.8px ÷13.6px */
367
+ font-weight: 700;
368
+ line-height: 1.2;
369
+ letter-spacing: -0.01em;
370
+ color: var(--text-color);
371
+ margin-bottom: 0.294em; /* 0.25rem ÷13.6px */
372
+ }
373
+
374
+ /* 1.6.7 steps · P7(process):页题 48px;五列横排;圆形节点 64px
375
+ 用 listmark 画(3px 墨圈 + Syne 24px 数码),步题 17.6px,步述
376
+ 12.8px / 0.7 / 160px 宽。横向连接线与涂鸦箭头为绝对定位装饰,未复刻。 */
377
+ body.presenting #editor[data-slide-layout='steps'] .cm-content .cm-md-page-title,
378
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-page-title {
379
+ font-size: 1.85em; /* timeline-title 48px ÷26 */
380
+ margin-bottom: 0.97em; /* 3rem ÷48px */
381
+ }
382
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
383
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
384
+ display: inline-block;
385
+ width: 18%;
386
+ margin: 0 1% 1em 0;
387
+ padding: 0;
388
+ vertical-align: top;
389
+ border: none;
390
+ text-align: center;
391
+ font-size: 0.492em; /* step-desc 12.8px ÷26 */
392
+ line-height: 1.4;
393
+ color: rgba(26, 26, 26, 0.75); /* desc 0.7;步题/节点另行收回全墨 */
394
+ }
395
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
396
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
397
+ display: inline-flex;
398
+ align-items: center;
399
+ justify-content: center;
400
+ width: 2.667em; /* 64px ÷24px(先定字号再除) */
401
+ height: 2.667em;
402
+ margin-bottom: 1em; /* 1.5rem ÷24px */
403
+ border: 3px solid var(--text-color);
404
+ border-radius: 50%;
405
+ background: var(--bg-color);
406
+ font-family: var(--slide-title-font);
407
+ font-size: 1.875em; /* 24px ÷12.8px */
408
+ font-weight: 800;
409
+ line-height: 1;
410
+ color: var(--text-color);
411
+ }
412
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
413
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
414
+ display: block;
415
+ font-family: var(--slide-title-font);
416
+ font-size: 1.375em; /* step-title 17.6px ÷12.8px */
417
+ font-weight: 700;
418
+ line-height: 1.2;
419
+ letter-spacing: -0.01em;
420
+ color: var(--text-color);
421
+ opacity: 1;
422
+ margin-bottom: 0.455em; /* 0.5rem ÷17.6px */
423
+ }
424
+
425
+ /* 1.6.8 kpi · P8(big numbers):页题 40px;三列裸排,无卡片无边线
426
+ (模板 .stat-item 只有数字 + 标签);巨数 112px Syne 800 / 行高 1,
427
+ 标签 16px / 0.8 / 200px 宽。数字 ±1deg 微旋转未复刻。 */
428
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title,
429
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-page-title {
430
+ font-size: 1.54em; /* stats-title 40px ÷26 */
431
+ line-height: 1.1;
432
+ max-width: none;
433
+ margin-bottom: 1.2em; /* 3rem ÷40px */
434
+ }
435
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
436
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
437
+ display: inline-block;
438
+ width: 30%;
439
+ margin: 0 3% 1.4em 0;
440
+ padding: 0;
441
+ vertical-align: top;
442
+ border: none;
443
+ background: transparent;
444
+ font-size: 0.615em; /* stat-label 16px ÷26 */
445
+ line-height: 1.5;
446
+ color: rgba(26, 26, 26, 0.8); /* stat-label 0.8;巨数另行收回全墨 */
447
+ }
448
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
449
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
450
+ display: block;
451
+ font-family: var(--slide-title-font);
452
+ font-size: var(--slide-kpi-number-size); /* 112px ÷26 ÷0.615 */
453
+ font-weight: 800;
454
+ line-height: 1;
455
+ letter-spacing: -0.02em;
456
+ color: var(--text-color);
457
+ margin-bottom: 1em; /* 1rem ÷16px */
458
+ }
459
+
460
+ /* 1.6.9 closing · P10(contact):整页居中;收束 112px Syne 800 / 0.9;
461
+ 副题 19.2px / 0.8;联系行 16px,居中、无列表符号。
462
+ 联系信息框(3px 描边 + 8px 偏移双线,跨三行)在行式 DOM 无整块挂点
463
+ → 边框未复刻,只保留居中联系行;圆/矩形涂鸦未复刻。 */
464
+ body.presenting #editor[data-slide-layout='closing'] .cm-content {
465
+ align-items: center;
466
+ text-align: center;
467
+ }
468
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title,
469
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-page-title {
470
+ font-size: var(--slide-closing-title-size);
471
+ font-weight: 800;
472
+ line-height: 0.9;
473
+ letter-spacing: -0.02em;
474
+ max-width: none;
475
+ margin-bottom: 0.36em; /* 2rem ÷112px */
476
+ color: var(--text-color); /* 收束页上游会整体压淡,标题收回全墨 */
477
+ }
478
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-lead,
479
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-page-lead {
480
+ font-size: 0.738em; /* closing-sub 19.2px ÷26 */
481
+ font-weight: 500;
482
+ line-height: 1.5;
483
+ color: var(--text-color);
484
+ opacity: 0.8;
485
+ max-width: none;
486
+ margin-bottom: 2.34em; /* 3rem ÷19.2px */
487
+ }
488
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
489
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
490
+ display: block;
491
+ margin: 0.5em 0; /* contact-line 0.5rem */
492
+ padding: 0;
493
+ border: none;
494
+ list-style: none;
495
+ text-align: center;
496
+ font-size: 0.615em; /* contact-line 16px ÷26 */
497
+ font-weight: 500;
498
+ line-height: 1.5;
499
+ color: var(--text-color);
500
+ }
501
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-listmark,
502
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-listmark {
503
+ display: none;
504
+ }
505
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li::before,
506
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li::before {
507
+ content: none; /* 去掉上游 ▸ */
508
+ }
509
+
510
+ /* 1.6.10 chrome · 模板页内无页眉/页脚,只有右下角 14.4px 计数器:
511
+ Space Grotesk 500 / .05em / 不大写;幽灵页码保留为放映辅助,压到 Syne 800。 */
512
+ body.presenting .slide-chrome,
513
+ body.presenting .slide-foot,
514
+ body.slides-printing .slide-chrome,
515
+ body.slides-printing .slide-foot {
516
+ font-family: var(--font-body);
517
+ font-size: clamp(12px, 0.75vw, 14px); /* counter 0.9rem @1920 */
518
+ font-weight: 500;
519
+ letter-spacing: 0.05em;
520
+ text-transform: none;
521
+ color: var(--text-color);
522
+ }
523
+ body.presenting .slide-foot-brand,
524
+ body.slides-printing .slide-foot-brand {
525
+ font-family: var(--font-body);
526
+ font-weight: 500;
527
+ letter-spacing: 0.05em;
528
+ text-transform: none;
529
+ }
530
+ body.presenting .slide-ghost,
531
+ body.slides-printing .slide-ghost {
532
+ font-family: var(--slide-title-font);
533
+ font-weight: 800;
534
+ }
535
+
536
+ /* ═══════════════════════════════════════════════════════════
537
+ SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
538
+ ═══════════════════════════════════════════════════════════ */
539
+
540
+ #editor .cm-content {
541
+ font-family: var(--font-body);
542
+ line-height: 1.7;
543
+ }
544
+
545
+ /* ── 2.1 Headings ──
546
+ 修正生成版:h2 比 h1 小、h3 反而大于 h2 的阶梯错误;模板标题无下划线。 */
547
+ #editor .cm-content .cm-md-atxheading1,
548
+ #editor .cm-content .cm-md-atxheading2,
549
+ #editor .cm-content .cm-md-atxheading3,
550
+ #editor .cm-content .cm-md-atxheading4,
551
+ #editor .cm-content .cm-md-atxheading5,
552
+ #editor .cm-content .cm-md-atxheading6 {
553
+ font-family: "Syne", "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
554
+ color: var(--text-color);
555
+ font-weight: 700;
556
+ line-height: 1.1;
557
+ letter-spacing: -0.01em;
558
+ border-bottom: none;
559
+ padding-bottom: 0;
560
+ }
561
+
562
+ #editor .cm-content .cm-md-atxheading1 {
563
+ font-size: 2.6em;
564
+ font-weight: 800;
565
+ line-height: 1;
566
+ letter-spacing: -0.03em;
567
+ }
568
+ #editor .cm-content .cm-md-atxheading2 {
569
+ font-size: 2em;
570
+ line-height: 1.05;
571
+ letter-spacing: -0.02em;
572
+ }
573
+ #editor .cm-content .cm-md-atxheading3 { font-size: 1.5em; }
574
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1.25em; }
575
+ #editor .cm-content .cm-md-atxheading5 { font-size: 1.08em; }
576
+ #editor .cm-content .cm-md-atxheading6 {
577
+ font-size: 0.85em;
578
+ font-family: var(--font-body);
579
+ font-weight: 600;
580
+ letter-spacing: 0.15em; /* 模板 label-eyebrow */
581
+ text-transform: uppercase;
582
+ }
583
+
584
+ /* ── 2.2 Inline ── */
585
+ #editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 700; }
586
+ #editor .cm-content .cm-md-em { font-style: italic; }
587
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; }
588
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
589
+ #editor .cm-content .cm-md-link { color: var(--link-color); }
590
+ #editor .cm-content .cm-md-url { color: var(--text-muted); }
591
+
592
+ #editor .cm-content .cm-md-inlinecode {
593
+ font-family: var(--font-mono);
594
+ background: var(--code-bg);
595
+ color: var(--text-color);
596
+ border-radius: 0; /* 模板零圆角 */
597
+ }
598
+
599
+ #editor .cm-content .cm-md-marker,
600
+ #editor .cm-content .cm-md-quotemark,
601
+ #editor .cm-content .cm-md-listmark {
602
+ color: var(--text-muted);
603
+ }
604
+
605
+ /* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
606
+ 引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
607
+ 否则引用里的代码行会盖住代码块底色。 */
608
+ #editor .cm-content .cm-md-blockquote {
609
+ color: var(--text-secondary);
610
+ border-left: 3px solid var(--blockquote-border); /* 模板 rough-box 3px */
611
+ padding-left: 16px;
612
+ padding-right: 16px;
613
+ }
614
+
615
+ #editor .cm-content .cm-md-codeblock {
616
+ background: var(--code-block-bg);
617
+ color: var(--code-block-text);
618
+ padding-left: 16px;
619
+ padding-right: 16px;
620
+ }
621
+ #editor .cm-content .cm-md-codeblock-first {
622
+ border-top-left-radius: 0;
623
+ border-top-right-radius: 0;
624
+ }
625
+ #editor .cm-content .cm-md-codeblock-last {
626
+ border-bottom-left-radius: 0;
627
+ border-bottom-right-radius: 0;
628
+ }
629
+
630
+ /* ── 2.4 Table / Rule(模板:炭墨细线表格,表头走 eyebrow)── */
631
+ #editor .cm-content .cm-md-table-widget th,
632
+ #editor .cm-content .cm-md-table-widget td {
633
+ padding: 10px 14px;
634
+ border-color: rgba(26, 26, 26, 0.28);
635
+ }
636
+ #editor .cm-content .cm-md-table-widget th {
637
+ background: var(--table-header-bg);
638
+ color: var(--text-color);
639
+ font-family: var(--font-body);
640
+ font-size: 0.85em;
641
+ font-weight: 600;
642
+ letter-spacing: 0.15em;
643
+ text-transform: uppercase;
644
+ border-bottom: 3px solid var(--seed-border-strong);
645
+ }
646
+ #editor .cm-content .cm-md-hr { border-top-color: var(--seed-border-strong); }
647
+
648
+ /* ── 2.5 中文首行缩进 ──
649
+ CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
650
+ #editor .cm-content .cm-line { text-indent: 2em; }
651
+
652
+ #editor .cm-content .cm-md-atxheading1,
653
+ #editor .cm-content .cm-md-atxheading2,
654
+ #editor .cm-content .cm-md-atxheading3,
655
+ #editor .cm-content .cm-md-atxheading4,
656
+ #editor .cm-content .cm-md-atxheading5,
657
+ #editor .cm-content .cm-md-atxheading6,
658
+ #editor .cm-content .cm-md-blockquote,
659
+ #editor .cm-content .cm-md-codeblock,
660
+ #editor .cm-content .cm-md-hr,
661
+ #editor .cm-content .cm-md-mermaid,
662
+ #editor .cm-content .cm-md-li-0,
663
+ #editor .cm-content .cm-md-li-1,
664
+ #editor .cm-content .cm-md-li-2,
665
+ #editor .cm-content .cm-md-li-3,
666
+ #editor .cm-content .cm-md-li-4,
667
+ #editor .cm-content .cm-md-li-5,
668
+ #editor .cm-content .cm-md-li-6 {
669
+ text-indent: 0;
670
+ }
671
+
672
+ /* ═══════════════════════════════════════════════════════════
673
+ SECTION 3 — Exported HTML(.colamd-document,语义标签)
674
+ HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
675
+ ═══════════════════════════════════════════════════════════ */
676
+
677
+ .colamd-document {
678
+ font-family: var(--font-body);
679
+ font-size: 16px;
680
+ line-height: 1.7;
681
+ }
682
+
683
+ .colamd-document h1,
684
+ .colamd-document h2,
685
+ .colamd-document h3,
686
+ .colamd-document h4,
687
+ .colamd-document h5,
688
+ .colamd-document h6 {
689
+ font-family: "Syne", "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
690
+ color: var(--text-color);
691
+ font-weight: 700;
692
+ line-height: 1.1;
693
+ letter-spacing: -0.01em;
694
+ margin: 1.5em 0 0.5em;
695
+ }
696
+ .colamd-document h1 {
697
+ font-size: 2.6em;
698
+ font-weight: 800;
699
+ line-height: 1;
700
+ letter-spacing: -0.03em;
701
+ margin-top: 0.4em;
702
+ }
703
+ .colamd-document h2 {
704
+ font-size: 2em;
705
+ line-height: 1.05;
706
+ letter-spacing: -0.02em;
707
+ }
708
+ .colamd-document h3 { font-size: 1.5em; }
709
+ .colamd-document h4 { font-size: 1.25em; }
710
+ .colamd-document h5 { font-size: 1.08em; }
711
+ .colamd-document h6 {
712
+ font-size: 0.85em;
713
+ font-family: var(--font-body);
714
+ font-weight: 600;
715
+ letter-spacing: 0.15em;
716
+ text-transform: uppercase;
717
+ margin-top: 2em;
718
+ }
719
+
720
+ .colamd-document strong { color: var(--text-color); font-weight: 700; }
721
+ .colamd-document code {
722
+ background: var(--code-bg);
723
+ color: var(--text-color);
724
+ font-family: var(--font-mono);
725
+ border-radius: 0;
726
+ }
727
+ /* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
728
+ .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
729
+ .colamd-document pre { background: var(--code-block-bg); }
730
+ .colamd-document pre code { color: var(--code-block-text); }
731
+ .colamd-document blockquote {
732
+ background: var(--blockquote-bg);
733
+ color: var(--text-secondary);
734
+ border-left: 3px solid var(--blockquote-border);
735
+ padding: 0.5em 1.2em;
736
+ }
737
+ .colamd-document mark { background: var(--highlight-bg); }
738
+ .colamd-document th,
739
+ .colamd-document td {
740
+ border-color: rgba(26, 26, 26, 0.28);
741
+ padding: 10px 14px;
742
+ }
743
+ .colamd-document th {
744
+ background: var(--table-header-bg);
745
+ font-size: 0.85em;
746
+ font-weight: 600;
747
+ letter-spacing: 0.15em;
748
+ text-transform: uppercase;
749
+ border-bottom: 3px solid var(--seed-border-strong);
750
+ }
751
+ .colamd-document hr { border-top-color: var(--seed-border-strong); }
752
+
753
+ .colamd-document p { text-indent: 2em; }
754
+ .colamd-document li p,
755
+ .colamd-document td p,
756
+ .colamd-document th p,
757
+ .colamd-document blockquote p {
758
+ text-indent: 0;
759
+ }
760
+
761
+ /* ═══════════════════════════════════════════════════════════
762
+ SECTION 4 — Print
763
+ 应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
764
+ ═══════════════════════════════════════════════════════════ */
765
+
766
+ @media print {
767
+ html,
768
+ body {
769
+ background: var(--bg-color);
770
+ color: var(--text-color);
771
+ -webkit-print-color-adjust: exact;
772
+ print-color-adjust: exact;
773
+ }
774
+ }