@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,632 @@
1
+ /*
2
+ * ColaMD Theme: Cobalt Grid(钴蓝格纸 · 手工精修版)
3
+ * Electric cobalt serifs on a graph-paper canvas, anchored by stair-stepped pixel-glitch decorations and slim hairline rules.
4
+ * Generated by colamd-themes (local-html: D:\workspace\git\beautiful-html-templates\templates\cobalt-grid\template.html)
5
+ * 来源:template.html + design.md(双色 risograph 趋势报告系统:奶油纸 + 电光钴蓝 + 永久格纸网格)
6
+ * colors: paper #F0EBDE / paper-2 #E6E0CE / ink #1F2BE0(唯一 ink)/ ink-soft #5560E5
7
+ * grid rgba(31,43,224,.10) / ink-faint rgba(31,43,224,.18)
8
+ * fonts: Newsreader(衬线,仅 400)/ Hanken Grotesk(正文 400 · 标签 600)/ DM Mono(chrome)
9
+ * paradigm 备案(§7 · 双色 risograph 身份,validate exit 1 项逐一备案):
10
+ * SL-01 surface #F0EBDE 饱和度 37.5%(>5%)——奶油格纸画布即模板身份
11
+ * ("cream paper",design.md:全站唯一底,暗紫格线承托钴蓝),不可中和;
12
+ * SL-02 panel #E6E0CE 32.4% / panel-alt #DCD5BC 31.4%(>10%)——两者是
13
+ * 模板 paper-2 与 paper 加深档(SL-04 明度序面内自洽),同轴奶油;
14
+ * NT-03 border #A7A8DF 饱和度 46.7%(>5% 应中性灰)——模板行分隔线本就是
15
+ * 染色 ink(rgba(31,43,224,.18) faint 档),中性灰会破坏钴蓝格纸身份;
16
+ * CR-04 无需备案:链接=ink #1F2BE0,纸上 7.1:1 过线;ink-soft 已加深为
17
+ * #4A54D6/#4E58DB 保 4.5:1(CR-02 已修,非备案项)。
18
+ * 若 SL/NT 范式项仍因高饱和钴蓝或蓝-奶油互补轴报错,均属上述身份范围
19
+ * ("adding a second hue breaks the risograph identity",design.md 原文)。
20
+ * 版式复刻见 SECTION 1.5/1.6(八页逐页对照与换算式均在其注释中)。
21
+ *
22
+ * 契约:ColaMD 2.7.13(CodeMirror 6 编辑器 + Pele 图表引擎;幻灯片版式令牌)
23
+ *
24
+ * 两条硬规矩:
25
+ * 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
26
+ * 编辑器继承不到。
27
+ * 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
28
+ * 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
29
+ * 并且引用/代码块**不能加纵向 padding**——那会按行累加。
30
+ *
31
+ * ═══════════════════════════════════════════════════════════
32
+ * SECTION 1 — Design Tokens
33
+ * 改 11 个种子色 + 3 组字体即可换一套主题
34
+ * ═══════════════════════════════════════════════════════════ */
35
+
36
+ :root {
37
+
38
+ /* ── 1.1 Seed Palette ──
39
+ 本工具的再生成与校验读这一层;编辑器不消费。
40
+ 来源(template.html :root):paper #F0EBDE / paper-2 #E6E0CE / ink #1F2BE0
41
+ ink-soft #5560E5。模板无第三色:强调 = ink 本身。
42
+ 明度排序(SL-04 亮色范式):surface > panel > panel-alt(奶油同轴加深)。 */
43
+ --seed-accent: #1f2be0; /* ink —— 电光钴蓝,唯一 ink(模板 rule=ink) */
44
+ --seed-accent-light: #5560e5; /* ink-soft 浅钴蓝 */
45
+ --seed-accent-dark: #141bb3; /* ink 加深档 */
46
+ --seed-surface: #f0ebde; /* paper —— 暖奶油纸画布 */
47
+ --seed-panel: #e6e0ce; /* paper-2 */
48
+ --seed-panel-alt: #dcd5bc; /* paper 再深一档(SL-04;生成版 #d1cede 偏灰紫已修回奶油轴) */
49
+ --seed-ink: #1f2be0;
50
+ --seed-ink-muted: #4a54d6; /* ink-soft 加深一档(纸上 5.0:1,CR-02) */
51
+ --seed-ink-dim: #4e58db; /* 4.7:1,H≈235 同钴轴(NT-01) */
52
+ --seed-border: #a7a8df; /* ink 35% over paper(行分隔 faint 档) */
53
+ --seed-border-strong: #1f2be0; /* 模板结构线全部 1.5px solid ink */
54
+
55
+ /* ── 1.2 Semantic Colors(活变量)── */
56
+ --bg-color: var(--seed-surface);
57
+ --text-color: var(--seed-ink);
58
+ --text-secondary: var(--seed-ink-muted);
59
+ --text-muted: var(--seed-ink-dim);
60
+ --border-color: var(--seed-border);
61
+ /* 模板无强调色:链接走唯一 ink(7.1:1,CR-04 过线,无需加深档) */
62
+ --link-color: var(--seed-ink);
63
+
64
+ --code-bg: var(--seed-panel);
65
+ --code-block-bg: var(--seed-panel-alt);
66
+ --code-block-text: #1f2be0;
67
+
68
+ --blockquote-border: var(--seed-border-strong); /* 模板:1px ink 细线体系 */
69
+ --blockquote-bg: var(--seed-panel);
70
+ --table-header-bg: var(--seed-panel);
71
+
72
+ --selection-bg: rgba(31, 43, 224, 0.14);
73
+ --highlight-bg: rgba(31, 43, 224, 0.18); /* ink-faint 档兼作荧光 */
74
+
75
+ /* ── 1.3 Typography & Metrics(活变量)── */
76
+ --font-body: "Hanken Grotesk", "Noto Sans SC", sans-serif;
77
+ --font-mono: "DM Mono", "Noto Sans Mono CJK SC", monospace;
78
+ --editor-font-size: 16px;
79
+ --editor-column-width: 820px;
80
+
81
+ /* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
82
+ 图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导。 */
83
+ --pele-bg: var(--code-block-bg);
84
+ --pele-fg: var(--code-block-text);
85
+ --pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
86
+ --pele-line: var(--code-block-text);
87
+ --pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
88
+ --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
89
+ --pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
90
+ --pele-accent: var(--seed-ink); /* 模板像素条形图 .on 格 = 实心 cobalt */
91
+ --pele-radius: 0px; /* 模板:零圆角,严格矩形 */
92
+ }
93
+
94
+ /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 cobalt-grid 八页逐页复刻)──
95
+ 换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
96
+ 模板 1920 画布 px ÷ 26 = em(clamp 字号取 1920×1080 实际落点)。字体体系:
97
+ Newsreader 400(display,仅 400,靠字号不靠字重)/ Hanken Grotesk 600
98
+ (micro 大写 .16-.18em)/ DM Mono(chrome .04-.08em)。页面对照:
99
+ cover←P1 agenda←P3 section←P4 kpi←P5 quote←P6 figure←P7 closing←P8
100
+ (P2 manifesto 与 quote 同形不单列:金句大字 + 1px ink 顶线署名行,结构取 P6;
101
+ timeline/steps/matrix/two-col 无对应页,保持上游默认。)
102
+ 有意未复刻(行式 DOM 无挂点的绝对定位装饰):graph-paper 网格(.stage::before)、
103
+ pixel-glitch 扫描线柱(SVG)、QR 补丁块、竖排 vstack 标签列、顶部/底部 hairlines、
104
+ P5 像素堆叠条形图(由 Pele 图承担,pele-accent=ink)、P1 cfooter 绝对定位框。
105
+ 全八页同为一页纸底(pane=页面),无换底页——不做页面级背景覆写,
106
+ .slide-ghost(ink 文字)落在奶油纸上天然可见,无需 opacity:0。 */
107
+ :root {
108
+ --slide-mono: "DM Mono", "Noto Sans Mono CJK SC", monospace;
109
+ --slide-title-font: "Newsreader", "Noto Serif SC", serif;
110
+ --slide-title-size: 3.41em; /* 内容页题 min(4.8vw,8.2vh)=88.56px ÷26(P5/P7 档;P3 单独 3.53em) */
111
+ --slide-title-weight: 400; /* Newsreader 仅 400,模板身份:靠字号不靠字重 */
112
+ --slide-subhead-weight: 600; /* Hanken 标签 600 */
113
+ --slide-title-tracking: -0.005em; /* 模板 .disp/-0.005em */
114
+ --slide-title-line-height: 1.0; /* 模板 headline 0.95,CJK 上浮至 1.0 */
115
+ --slide-cover-title-size: 7.48em; /* P1 min(11vw,18vh)=min(211,194)=194.4px ÷26 */
116
+ --slide-cover-title-line-height: 0.92;
117
+ --slide-cover-title-tracking: -0.008em;
118
+ --slide-section-title-size: 4.15em; /* P4 ttl min(6vw,10vh)=min(115,108)=108px ÷26 */
119
+ --slide-closing-title-size: 5.82em; /* P8 ttl min(8.4vw,14vh)=min(161,151)=151.2px ÷26 */
120
+ --slide-lead-size: 0.69em; /* 模板 lede 18px ÷26 */
121
+ --slide-kicker-size: clamp(12px, 0.83vw, 16px); /* P1 .l clamp(13,1vw,16) @1920=16px */
122
+ --slide-kicker-tracking: 0.18em; /* 模板 subkicker .l/.18em(micro .16-.18 档) */
123
+ --slide-kicker-transform: uppercase;
124
+ --slide-chrome-opacity: 0.9; /* 模板无顶栏;pagenum 全色 ink 与 nav-hint .4 之间取 0.9 */
125
+ --slide-chrome-transform: none; /* pagenum 是 DM Mono 小写页码,不大写 */
126
+ --slide-kpi-number-size: 11.5em; /* P5 vbig min(11vw,18vh)=194.4px ÷26 ÷0.65(li 缩放) */
127
+ --slide-quote-size: 3.74em; /* P6 qbody min(5.6vw,9vh)=min(107.5,97.2)=97.2px ÷26 */
128
+ --slide-page-pad-x: 3.6vw; /* 模板 edge clamp(36,3.6vw,80) @1920=69.1px */
129
+ --slide-page-top-pad: 72px; /* frame 顶 clamp(76,8vh,130) @1080=86.4px − chrome 安全区 */
130
+ --slide-page-top-pad-print: 62px;
131
+ --slide-cover-text-align: left; /* P1 标题左上(titlewrap top 9vh) */
132
+ --slide-cover-lead-inline: auto;
133
+ }
134
+
135
+ /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
136
+ body.presenting / body.slides-printing 作用域下) ═══════════════ */
137
+
138
+ /* 1.6.1 页标题声部对齐:Newsreader 400 电光钴蓝;并压掉文档式 h1/h2 的
139
+ border-bottom(编辑器规则带 id 权重会漏进放映) */
140
+ body.presenting #editor .cm-content .cm-md-page-title,
141
+ body.slides-printing #editor .cm-content .cm-md-page-title {
142
+ font-family: var(--slide-title-font);
143
+ font-size: var(--slide-title-size);
144
+ font-weight: 400;
145
+ line-height: 1.0;
146
+ letter-spacing: -0.005em;
147
+ color: var(--text-color);
148
+ border-bottom: none;
149
+ padding-bottom: 0;
150
+ margin-bottom: 0.45em;
151
+ }
152
+
153
+ /* 1.6.2 cover · P1:标题左上锚定(titlewrap top 9vh≈97px),194.4px 巨题 +
154
+ .ed 衬线副题 49.68px;pixel-glitch 柱/QR 块/竖排 vstack/hairlines/cfooter
155
+ 为绝对定位装饰——有意未复刻,底注走默认导语位 */
156
+ body.presenting #editor[data-slide-layout='cover'] .cm-content {
157
+ justify-content: flex-start;
158
+ padding-top: 64px; /* titlewrap top 97px − chrome 安全区 */
159
+ }
160
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
161
+ body.slides-printing .cm-md-slide-cover.cm-md-page-title {
162
+ font-size: var(--slide-cover-title-size);
163
+ line-height: 0.92;
164
+ letter-spacing: -0.008em;
165
+ max-width: 60%; /* titlewrap max-width 60% */
166
+ }
167
+ /* 封面副题 = .ed(Newsreader 400 全 ink,非上游的 muted 2.2em 档) */
168
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-atxheading2,
169
+ body.slides-printing .cm-md-slide-cover.cm-md-atxheading2 {
170
+ font-size: 1.91em; /* .ed min(2.8vw,4.6vh)=min(53.8,49.7)=49.68px ÷26 */
171
+ line-height: 1.1;
172
+ color: var(--text-color);
173
+ }
174
+
175
+ /* 1.6.3 agenda · P3(index 六条目 2×3 网格):页题 91.8px + 1.5px ink topbar 线;
176
+ 行式条目 = mono 序号 15px + Newsreader 行题 38.4px + Hanken 说明 15px +
177
+ rgba ink .18 底线;两列 inline-block 近似模板 1fr 1fr 网格 */
178
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content .cm-md-page-title,
179
+ body.slides-printing .cm-md-slide-agenda.cm-md-page-title {
180
+ font-size: 3.53em; /* .h min(5vw,8.5vh)=min(96,91.8)=91.8px ÷26 */
181
+ border-bottom: 1.5px solid var(--text-color); /* .topbar 1.5px ink */
182
+ padding-bottom: 0.16em; /* topbar pb 15.1px ÷91.8 */
183
+ }
184
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
185
+ body.slides-printing .cm-md-slide-agenda.cm-md-li {
186
+ font-size: 0.58em; /* .row p 15px ÷26 */
187
+ display: inline-block;
188
+ width: 48%; /* 两列 + gap-x clamp(28,3vw,56) @1920=56px */
189
+ margin: 0 3% 1.4em 0; /* gap-y clamp(14,2vh,28) @1080=21.6px ≈1.43em */
190
+ vertical-align: top;
191
+ border-top: none;
192
+ border-bottom: 1px solid rgba(31, 43, 224, 0.18); /* .row faint 分隔线 */
193
+ padding-top: 0;
194
+ padding-bottom: 1em; /* row pb 15.1px ÷15.08(li em) */
195
+ }
196
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
197
+ body.slides-printing .cm-md-slide-agenda .cm-md-listmark {
198
+ font-family: var(--slide-mono);
199
+ font-weight: 400;
200
+ font-size: 1em; /* .num-tag 15px ÷26 ÷0.58 */
201
+ letter-spacing: 0.04em;
202
+ color: var(--text-color);
203
+ }
204
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-strong,
205
+ body.slides-printing .cm-md-slide-agenda .cm-md-strong {
206
+ font-family: var(--slide-title-font);
207
+ font-size: 2.54em; /* .row h3 2vw@1920=38.4px ÷26 ÷0.58 */
208
+ font-weight: 400;
209
+ line-height: 1.05;
210
+ color: var(--text-color);
211
+ }
212
+
213
+ /* 1.6.4 section · P4(chapter divider):ttl 108px 居中 + lede 18px 56ch;
214
+ nm-tag 眉标走 DM Mono 15px .06em(覆写 kicker 的 Hanken 大写声部);
215
+ 右侧 pixel-glitch 柱(opacity .75)为绝对定位装饰——有意未复刻 */
216
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title,
217
+ body.slides-printing .cm-md-slide-section.cm-md-page-title {
218
+ font-size: var(--slide-section-title-size);
219
+ line-height: 1.0;
220
+ max-width: 12em; /* frame 右侧留 glitch 位 540px @1920 */
221
+ }
222
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
223
+ body.slides-printing .cm-md-slide-section.cm-md-page-lead {
224
+ font-size: var(--slide-lead-size);
225
+ line-height: 1.5;
226
+ max-width: 56ch; /* .lede max-width 56ch */
227
+ }
228
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
229
+ body.slides-printing .cm-md-slide-section.cm-md-page-title[data-slide-kicker]::before {
230
+ font-family: var(--slide-mono);
231
+ font-size: clamp(12px, 0.78vw, 15px); /* .nm-tag 15px @1920 */
232
+ letter-spacing: 0.06em;
233
+ text-transform: none;
234
+ }
235
+
236
+ /* 1.6.5 kpi · P5(data):页题 88.56px + 1.5px ink topbar 线;无卡裸排 =
237
+ vbig 194.4px Newsreader 400(上游 strong 为 block,数字独行)+ 说明 17px;
238
+ 左列竖排统计(col-a),条形图由 Pele 承担(.on 格=实心 cobalt) */
239
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title,
240
+ body.slides-printing .cm-md-slide-kpi.cm-md-page-title {
241
+ font-size: 3.41em; /* .h min(4.8vw,8.2vh)=min(92.2,88.6)=88.56px ÷26 */
242
+ border-bottom: 1.5px solid var(--text-color);
243
+ padding-bottom: 0.17em; /* topbar pb 15.1px ÷88.56 */
244
+ }
245
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
246
+ body.slides-printing .cm-md-slide-kpi.cm-md-li {
247
+ font-size: 0.65em; /* .desc 17px ÷26 */
248
+ display: block; /* 模板 col-a 竖排(压掉上游 inline-block 卡式) */
249
+ width: auto;
250
+ max-width: 50%; /* .desc max-width 30ch 档 */
251
+ background: transparent;
252
+ border: none;
253
+ box-shadow: none;
254
+ border-radius: 0;
255
+ padding: 0;
256
+ margin: 0 0 1.4em;
257
+ color: var(--text-color); /* 模板说明也是 ink(压掉上游 secondary) */
258
+ }
259
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
260
+ body.slides-printing .cm-md-slide-kpi .cm-md-strong {
261
+ font-size: var(--slide-kpi-number-size);
262
+ font-weight: 400; /* Newsreader 仅 400(上游 800) */
263
+ line-height: 0.92;
264
+ letter-spacing: -0.015em;
265
+ color: var(--text-color);
266
+ }
267
+
268
+ /* 1.6.6 quote · P6(quote spread):金句 97.2px Newsreader 400 roman 全 ink
269
+ (压掉上游 italic/secondary);右缘 pixel-glitch 柱未复刻;qkicker .2em
270
+ 走页头 kicker 挂标题时生效(上游 kicker 仅渲染在标题 ::before 上) */
271
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
272
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
273
+ font-size: var(--slide-quote-size);
274
+ font-style: normal; /* .qbody roman,非斜体 */
275
+ font-weight: 400;
276
+ line-height: 1.05;
277
+ letter-spacing: -0.005em;
278
+ color: var(--text-color);
279
+ background: transparent;
280
+ padding-left: 0;
281
+ padding-right: 0;
282
+ max-width: 70%; /* qframe 右缩 22vw → 76.6% × qbody 92% */
283
+ }
284
+ /* 模板无巨引号装饰:压掉上游 accent 大引号 ::before */
285
+ body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
286
+ body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
287
+ content: none;
288
+ }
289
+ /* 署名行 = .qattr:1px ink 顶线 + Hanken 600 大写 .16em 15px
290
+ (CSS-03:纵向留白只走 margin) */
291
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
292
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
293
+ margin-top: 1.1em; /* .qattr mt clamp(24,2.6vh,40) @1080=28.1px ÷25.92 */
294
+ border-top: 1px solid var(--text-color);
295
+ font-family: var(--font-body);
296
+ font-weight: 600;
297
+ font-size: 0.58em; /* .who-tag 15px ÷26 ÷放映基准 */
298
+ letter-spacing: 0.16em;
299
+ text-transform: uppercase;
300
+ color: var(--text-color);
301
+ }
302
+
303
+ /* 1.6.7 figure · P7(trend ledger 表格主体):页题 88.56px + 1.5px ink topbar 线;
304
+ ledger 表 = 表头 micro-sm 600 大写 .18em 12px + 1.5px ink 底线,行分隔
305
+ rgba ink .18;行名 Newsreader 28px(td 内 strong);delta 箭头等 mono 语义
306
+ 无法按单元格定字体——保持上游 */
307
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title,
308
+ body.slides-printing .cm-md-slide-figure.cm-md-page-title {
309
+ font-size: 3.41em;
310
+ border-bottom: 1.5px solid var(--text-color);
311
+ padding-bottom: 0.17em;
312
+ }
313
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-table-widget th,
314
+ body.slides-printing .cm-md-slide-figure .cm-md-table-widget th {
315
+ font-family: var(--font-body);
316
+ font-size: 0.46em; /* headrow micro-sm 12px ÷26 */
317
+ font-weight: 600;
318
+ letter-spacing: 0.18em;
319
+ text-transform: uppercase;
320
+ color: var(--text-color);
321
+ border-bottom: 1.5px solid var(--text-color); /* .row.headrow 1.5px ink */
322
+ }
323
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-table-widget td,
324
+ body.slides-printing .cm-md-slide-figure .cm-md-table-widget td {
325
+ font-size: 0.58em; /* .desc 15px ÷26 */
326
+ color: var(--text-color);
327
+ border-bottom: 1px solid rgba(31, 43, 224, 0.18); /* .row faint 分隔线 */
328
+ }
329
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-table-widget td .cm-md-strong,
330
+ body.slides-printing .cm-md-slide-figure .cm-md-table-widget td .cm-md-strong {
331
+ font-family: var(--slide-title-font);
332
+ font-size: 1.86em; /* .nm 1.6vw@1920=28px(封顶) ÷26 ÷0.58 */
333
+ font-weight: 400;
334
+ color: var(--text-color);
335
+ }
336
+
337
+ /* 1.6.8 closing · P8(colophon):标题 151.2px 右对齐(titlewrap 靠右);
338
+ 落款 = col-footer 四列(1fr×3+1.2fr)——1.5px ink 顶线 + ftag micro 大写
339
+ .18em 13px + ftxt 15px;左侧 glitch 柱/QR 块未复刻;模板无 ▸ 序号 */
340
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title,
341
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title {
342
+ font-size: var(--slide-closing-title-size);
343
+ line-height: 0.96;
344
+ letter-spacing: -0.005em;
345
+ text-align: right; /* .titlewrap text-align right */
346
+ }
347
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
348
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title[data-slide-kicker]::before {
349
+ letter-spacing: 0.22em; /* .ktag .22em */
350
+ }
351
+ body.presenting .cm-md-slide-closing,
352
+ body.slides-printing .cm-md-slide-closing {
353
+ color: var(--text-color); /* colophon 全 ink(压掉上游 muted 压淡) */
354
+ }
355
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
356
+ body.slides-printing .cm-md-slide-closing.cm-md-li {
357
+ font-size: 0.58em; /* .ftxt 15px ÷26 */
358
+ display: inline-block;
359
+ width: 21.5%; /* 四列 ≈1fr 等宽(模板末列 1.2fr 不单列) */
360
+ margin: 0 2.8% 1em 0; /* col-gap clamp(20,2.4vw,44) @1920=44px */
361
+ vertical-align: top;
362
+ border-top: 1.5px solid var(--text-color); /* .col-footer > div 1.5px ink */
363
+ border-bottom: none;
364
+ padding-top: 0.85em; /* pt clamp(10,1.2vh,16) @1080=13px ÷15.08 */
365
+ }
366
+ body.presenting .cm-md-slide-closing.cm-md-li::before,
367
+ body.slides-printing .cm-md-slide-closing.cm-md-li::before {
368
+ content: none; /* col-footer 无 ▸ 序号(压掉上游) */
369
+ }
370
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-listmark,
371
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-listmark {
372
+ display: none; /* col-footer 无序号 */
373
+ }
374
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-strong,
375
+ body.slides-printing .cm-md-slide-closing .cm-md-strong {
376
+ font-family: var(--font-body);
377
+ font-size: 0.86em; /* .ftag 13px ÷26 ÷0.58 */
378
+ font-weight: 600;
379
+ letter-spacing: 0.18em;
380
+ text-transform: uppercase;
381
+ color: var(--text-color);
382
+ }
383
+
384
+ /* 1.6.9 chrome · pagenum/nav-hint:DM Mono 13px .06em 右下不大写;
385
+ nav-hint 12px .08em opacity .4 左下 */
386
+ body.presenting .slide-chrome,
387
+ body.slides-printing .slide-chrome {
388
+ font-family: var(--slide-mono);
389
+ font-size: clamp(11px, 0.68vw, 13px); /* .pagenum clamp(11,0.82vw,13) @1920=13px */
390
+ letter-spacing: 0.06em;
391
+ text-transform: none;
392
+ color: var(--text-color);
393
+ }
394
+ body.presenting .slide-foot,
395
+ body.slides-printing .slide-foot {
396
+ font-family: var(--slide-mono);
397
+ font-size: clamp(10px, 0.63vw, 12px); /* .nav-hint clamp(10,0.75vw,12) @1920=12px */
398
+ letter-spacing: 0.08em;
399
+ opacity: 0.4;
400
+ color: var(--text-color);
401
+ }
402
+
403
+ /* ═══════════════════════════════════════════════════════════
404
+ SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
405
+ ═══════════════════════════════════════════════════════════ */
406
+
407
+ #editor .cm-content {
408
+ font-family: var(--font-body);
409
+ line-height: 1.75;
410
+ }
411
+
412
+ /* ── 2.1 Headings(Newsreader 400 衬线声部;修复生成版 h2<h3 的倒挂阶梯
413
+ 与错误的 700 字重——模板 Newsreader 仅 400,靠字号断层级)── */
414
+ #editor .cm-content .cm-md-atxheading1,
415
+ #editor .cm-content .cm-md-atxheading2,
416
+ #editor .cm-content .cm-md-atxheading3,
417
+ #editor .cm-content .cm-md-atxheading4,
418
+ #editor .cm-content .cm-md-atxheading5,
419
+ #editor .cm-content .cm-md-atxheading6 {
420
+ font-family: "Newsreader", "Noto Serif SC", serif;
421
+ color: var(--text-color);
422
+ font-weight: 400;
423
+ line-height: 1.1;
424
+ letter-spacing: -0.005em;
425
+ }
426
+
427
+ #editor .cm-content .cm-md-atxheading1 {
428
+ font-size: 2.6em;
429
+ line-height: 1.05;
430
+ letter-spacing: -0.008em;
431
+ }
432
+ #editor .cm-content .cm-md-atxheading2 {
433
+ font-size: 2.0em;
434
+ line-height: 1.05;
435
+ }
436
+ #editor .cm-content .cm-md-atxheading3 { font-size: 1.5em; }
437
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1.3em; }
438
+ #editor .cm-content .cm-md-atxheading5 { font-size: 1.12em; }
439
+ #editor .cm-content .cm-md-atxheading6 {
440
+ font-size: 1em;
441
+ font-family: var(--font-body);
442
+ font-weight: 600;
443
+ letter-spacing: 0.16em; /* 模板 micro 标签 */
444
+ text-transform: uppercase;
445
+ }
446
+
447
+ /* ── 2.2 Inline ── */
448
+ #editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 600; }
449
+ #editor .cm-content .cm-md-em { font-style: italic; }
450
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; }
451
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
452
+ #editor .cm-content .cm-md-link { color: var(--link-color); }
453
+ #editor .cm-content .cm-md-url { color: var(--text-muted); }
454
+
455
+ #editor .cm-content .cm-md-inlinecode {
456
+ font-family: var(--font-mono);
457
+ background: var(--code-bg);
458
+ color: var(--text-color);
459
+ border-radius: 0; /* 模板:零圆角 */
460
+ }
461
+
462
+ #editor .cm-content .cm-md-marker,
463
+ #editor .cm-content .cm-md-quotemark,
464
+ #editor .cm-content .cm-md-listmark {
465
+ color: var(--text-muted);
466
+ }
467
+
468
+ /* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
469
+ 引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
470
+ 否则引用里的代码行会盖住代码块底色。 */
471
+ #editor .cm-content .cm-md-blockquote {
472
+ color: var(--text-secondary);
473
+ border-left: 1px solid var(--blockquote-border); /* 模板:1px ink 细线体系 */
474
+ padding-left: 16px;
475
+ padding-right: 16px;
476
+ }
477
+
478
+ #editor .cm-content .cm-md-codeblock {
479
+ background: var(--code-block-bg);
480
+ color: var(--code-block-text);
481
+ padding-left: 16px;
482
+ padding-right: 16px;
483
+ }
484
+ #editor .cm-content .cm-md-codeblock-first {
485
+ border-top-left-radius: 0;
486
+ border-top-right-radius: 0;
487
+ }
488
+ #editor .cm-content .cm-md-codeblock-last {
489
+ border-bottom-left-radius: 0;
490
+ border-bottom-right-radius: 0;
491
+ }
492
+
493
+ /* ── 2.4 Table / Rule(模板 ledger:th = micro-sm 大写 .18em + 1.5px ink 底线,
494
+ 行分隔 = faint 1px)── */
495
+ #editor .cm-content .cm-md-table-widget th,
496
+ #editor .cm-content .cm-md-table-widget td {
497
+ padding: 10px 14px;
498
+ border-color: rgba(31, 43, 224, 0.18);
499
+ }
500
+ #editor .cm-content .cm-md-table-widget th {
501
+ background: var(--table-header-bg);
502
+ color: var(--text-color);
503
+ font-family: var(--font-body);
504
+ font-size: 0.78em;
505
+ font-weight: 600;
506
+ letter-spacing: 0.18em;
507
+ text-transform: uppercase;
508
+ border-bottom: 1.5px solid var(--seed-border-strong);
509
+ }
510
+ #editor .cm-content .cm-md-hr {
511
+ border-top-color: var(--seed-border-strong);
512
+ border-top-width: 1.5px; /* 模板结构线 1.5px ink */
513
+ }
514
+
515
+ /* ── 2.5 中文首行缩进 ──
516
+ CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
517
+ #editor .cm-content .cm-line { text-indent: 2em; }
518
+
519
+ #editor .cm-content .cm-md-atxheading1,
520
+ #editor .cm-content .cm-md-atxheading2,
521
+ #editor .cm-content .cm-md-atxheading3,
522
+ #editor .cm-content .cm-md-atxheading4,
523
+ #editor .cm-content .cm-md-atxheading5,
524
+ #editor .cm-content .cm-md-atxheading6,
525
+ #editor .cm-content .cm-md-blockquote,
526
+ #editor .cm-content .cm-md-codeblock,
527
+ #editor .cm-content .cm-md-hr,
528
+ #editor .cm-content .cm-md-mermaid,
529
+ #editor .cm-content .cm-md-li-0,
530
+ #editor .cm-content .cm-md-li-1,
531
+ #editor .cm-content .cm-md-li-2,
532
+ #editor .cm-content .cm-md-li-3,
533
+ #editor .cm-content .cm-md-li-4,
534
+ #editor .cm-content .cm-md-li-5,
535
+ #editor .cm-content .cm-md-li-6 {
536
+ text-indent: 0;
537
+ }
538
+
539
+ /* ═══════════════════════════════════════════════════════════
540
+ SECTION 3 — Exported HTML(.colamd-document,语义标签)
541
+ HTML/PDF 导出不走编辑器 DOM;这段与 SECTION 2 镜像同步。
542
+ ═══════════════════════════════════════════════════════════ */
543
+
544
+ .colamd-document {
545
+ font-family: var(--font-body);
546
+ font-size: 16px;
547
+ line-height: 1.75;
548
+ }
549
+
550
+ .colamd-document h1,
551
+ .colamd-document h2,
552
+ .colamd-document h3,
553
+ .colamd-document h4,
554
+ .colamd-document h5,
555
+ .colamd-document h6 {
556
+ font-family: "Newsreader", "Noto Serif SC", serif;
557
+ color: var(--text-color);
558
+ font-weight: 400;
559
+ line-height: 1.1;
560
+ letter-spacing: -0.005em;
561
+ margin: 1.5em 0 0.5em;
562
+ }
563
+ .colamd-document h1 { font-size: 2.6em; line-height: 1.05; letter-spacing: -0.008em; margin-top: 0.4em; }
564
+ .colamd-document h2 { font-size: 2.0em; line-height: 1.05; }
565
+ .colamd-document h3 { font-size: 1.5em; }
566
+ .colamd-document h4 { font-size: 1.3em; }
567
+ .colamd-document h5 { font-size: 1.12em; }
568
+ .colamd-document h6 {
569
+ font-size: 1em;
570
+ font-family: var(--font-body);
571
+ font-weight: 600;
572
+ letter-spacing: 0.16em;
573
+ text-transform: uppercase;
574
+ }
575
+
576
+ .colamd-document strong { color: var(--text-color); font-weight: 600; }
577
+ .colamd-document code {
578
+ background: var(--code-bg);
579
+ color: var(--text-color);
580
+ font-family: var(--font-mono);
581
+ border-radius: 0;
582
+ }
583
+ /* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
584
+ .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
585
+ .colamd-document pre { background: var(--code-block-bg); }
586
+ .colamd-document pre code { color: var(--code-block-text); }
587
+ .colamd-document blockquote {
588
+ background: var(--blockquote-bg);
589
+ color: var(--text-secondary);
590
+ border-left: 1px solid var(--blockquote-border);
591
+ padding: 0.5em 1.2em;
592
+ }
593
+ .colamd-document mark { background: var(--highlight-bg); }
594
+ .colamd-document th,
595
+ .colamd-document td {
596
+ border-color: rgba(31, 43, 224, 0.18);
597
+ padding: 10px 14px;
598
+ }
599
+ .colamd-document th {
600
+ background: var(--table-header-bg);
601
+ color: var(--text-color);
602
+ font-family: var(--font-body);
603
+ font-size: 0.78em;
604
+ font-weight: 600;
605
+ letter-spacing: 0.18em;
606
+ text-transform: uppercase;
607
+ border-bottom: 1.5px solid var(--seed-border-strong);
608
+ }
609
+ .colamd-document hr { border-top-color: var(--seed-border-strong); border-top-width: 1.5px; }
610
+
611
+ .colamd-document p { text-indent: 2em; }
612
+ .colamd-document li p,
613
+ .colamd-document td p,
614
+ .colamd-document th p,
615
+ .colamd-document blockquote p {
616
+ text-indent: 0;
617
+ }
618
+
619
+ /* ═══════════════════════════════════════════════════════════
620
+ SECTION 4 — Print
621
+ 应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
622
+ ═══════════════════════════════════════════════════════════ */
623
+
624
+ @media print {
625
+ html,
626
+ body {
627
+ background: var(--bg-color);
628
+ color: var(--text-color);
629
+ -webkit-print-color-adjust: exact;
630
+ print-color-adjust: exact;
631
+ }
632
+ }