@bytechain.cn/colamd-themes 0.5.9 → 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 (69) hide show
  1. package/README.md +85 -19
  2. package/dist/cli.js +70 -6
  3. package/dist/cli.js.map +1 -1
  4. package/dist/compat.d.ts +23 -3
  5. package/dist/compat.js +71 -12
  6. package/dist/compat.js.map +1 -1
  7. package/dist/dsh-plugin.js +1 -1
  8. package/dist/generator.d.ts +1 -1
  9. package/dist/generator.js +5 -2
  10. package/dist/generator.js.map +1 -1
  11. package/dist/models.d.ts +7 -1
  12. package/dist/models.js +1 -1
  13. package/dist/models.js.map +1 -1
  14. package/dist/renderer.d.ts +1 -1
  15. package/dist/renderer.js +21 -3
  16. package/dist/renderer.js.map +1 -1
  17. package/dist/slides-markdown.d.ts +45 -0
  18. package/dist/slides-markdown.js +515 -0
  19. package/dist/slides-markdown.js.map +1 -0
  20. package/dist/slides.d.ts +36 -0
  21. package/dist/slides.js +149 -0
  22. package/dist/slides.js.map +1 -0
  23. package/dist/templates/theme-template.hbs +11 -0
  24. package/dist/validators.d.ts +2 -2
  25. package/dist/validators.js +71 -4
  26. package/dist/validators.js.map +1 -1
  27. package/package.json +3 -2
  28. package/skills/build-skills.sh +224 -217
  29. package/skills/colamd-themes/SKILL.md +178 -6
  30. package/themes/8-bit-orbit.css +817 -0
  31. package/themes/README.md +69 -0
  32. package/themes/biennale-yellow.css +577 -0
  33. package/themes/block-frame.css +774 -0
  34. package/themes/blue-professional.css +741 -0
  35. package/themes/bold-poster.css +794 -0
  36. package/themes/broadside.css +837 -0
  37. package/themes/capsule.css +767 -0
  38. package/themes/cartesian.css +584 -0
  39. package/themes/cobalt-grid.css +632 -0
  40. package/themes/coral.css +699 -0
  41. package/themes/creative-mode.css +642 -0
  42. package/themes/daisy-days.css +1052 -0
  43. package/themes/editorial-forest.css +796 -0
  44. package/themes/editorial-tri-tone.css +811 -0
  45. package/themes/emerald-editorial.css +683 -0
  46. package/themes/grove.css +623 -0
  47. package/themes/indigo-deck.css +336 -0
  48. package/themes/indigo-porcelain-light.css +335 -0
  49. package/themes/long-table.css +782 -0
  50. package/themes/mat.css +848 -0
  51. package/themes/monochrome.css +782 -0
  52. package/themes/neo-grid-bold.css +838 -0
  53. package/themes/peoples-platform.css +843 -0
  54. package/themes/pin-and-paper.css +700 -0
  55. package/themes/pink-script-dark.css +648 -0
  56. package/themes/pink-script.css +290 -0
  57. package/themes/playful.css +774 -0
  58. package/themes/raw-grid.css +814 -0
  59. package/themes/retro-windows.css +767 -0
  60. package/themes/retro-zine.css +814 -0
  61. package/themes/sakura-chroma.css +775 -0
  62. package/themes/scatterbrain.css +726 -0
  63. package/themes/signal.css +872 -0
  64. package/themes/soft-editorial.css +788 -0
  65. package/themes/stencil-tablet.css +922 -0
  66. package/themes/studio.css +767 -0
  67. package/themes/swiss-lemon-dark.css +529 -0
  68. package/themes/swiss-lemon-light.css +375 -0
  69. package/themes/vellum.css +723 -0
@@ -0,0 +1,872 @@
1
+ /*
2
+ * ColaMD Theme: Signal(手工精修版 · 逐页版式复刻)
3
+ * Deep navy canvas with bone paper and a single muted-gold accent; institutional with quiet weight.
4
+ * 来源:D:\workspace\git\beautiful-html-templates\templates\signal\template.html(18 页 · ZONE A–F)
5
+ *
6
+ * 色板(模板 :root):navy #1C2644 / navy-alt #232F55 / bone #E2DCD0 / blue-grey #8A96A8 /
7
+ * hint #4E5A6E / paper #F0ECE3 / paper-alt #E6E0D4 / ink #1A2030 / ink-2 #5A6270 /
8
+ * gold #C8A870 / line-dark #2E3D5C / line-light #CAC4B4
9
+ * 字体:Source Serif 4(display 700 / h1-h2 600 / h3 500)/ DM Sans(body)/ IBM Plex Mono
10
+ * (label·chrome·date)+ Noto Serif SC / Noto Sans SC 中文回退。
11
+ *
12
+ * paradigm 备案("暗蓝纸 + 骨白 + 单点哑金"是模板身份,与 pin-and-paper 的 ink 页同类,有意保留):
13
+ * SL-01 —— surface #1C2644 饱和度 41.7%(>5%):模板身份即深海军蓝纸,不做中性化;
14
+ * SL-02 —— panel #232F55 41.7% / panelAlt #293759 36.9%(>10%):同为蓝纸分层;
15
+ * CR-04 —— 通过:gold #C8A870 vs navy 6.6:1;奶油页 #F0ECE3 上 gold 仅 1.9:1,故浅色页的
16
+ * gold 只做小面积眉标/破折号(模板原样),正文一律 ink #1A2030;
17
+ * NT-01 —— ink 暖骨白 H40° 与 secondary 冷蓝灰 H216° 是模板刻意双温(--c-fg / --c-fg-2);
18
+ * NT-03 —— 边框 #3D4A6E 蓝调 S 28.7%:暗底分节线必须带蓝,已由模板 #2E3D5C 提亮一档
19
+ * 满足 NT-02(与 panel 明度差 0.10),色相不改。
20
+ * 未入备案:CR-01 10.9:1 / CR-02 4.96:1 / SL-03 / SL-04 / NT-02 均通过。
21
+ *
22
+ * 版式映射(逐页对照与换算式见 SECTION 1.5 注释):
23
+ * P1 cover · P2 chapter/P3 statement/P11 statement→section · P4 split→two-col(奶油)
24
+ * P5 stats→kpi · P6 quote→quote · P7 list→agenda(奶油)
25
+ * P8 compare→two-col 同形(取 P4 的奶油立式,暗底 compare 不单列)
26
+ * P9 editorial/P10 dense→无对应版式(上游默认)· P12 end→closing
27
+ * P13 chart/P15 pie→figure(图表装饰未复刻)· P14 diagram→steps(奶油)
28
+ * P16 pyramid→matrix · P17 vtimeline→timeline · P18 cycle→steps 同形
29
+ *
30
+ * 契约:ColaMD Extend 2.7(CodeMirror 6 编辑器 + Pele 图表引擎)
31
+ *
32
+ * 两条硬规矩:
33
+ * 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
34
+ * 编辑器继承不到。
35
+ * 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
36
+ * 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
37
+ * 并且引用/代码块**不能加纵向 padding**——那会按行累加。
38
+ *
39
+ * ═══════════════════════════════════════════════════════════
40
+ * SECTION 1 — Design Tokens
41
+ * 改 11 个种子色 + 3 组字体即可换一套主题
42
+ * ═══════════════════════════════════════════════════════════ */
43
+
44
+ :root {
45
+
46
+ /* ── 1.1 Seed Palette ──
47
+ 本工具的再生成与校验读这一层;编辑器不消费。
48
+ 模板两套纸:navy(主)+ paper(浅色页);文字两套:bone(暗)/ ink(浅)。 */
49
+ --seed-accent: #c8a870; /* gold:模板唯一高光色,只做色块/线/眉标 */
50
+ --seed-accent-light: #dcc09a;
51
+ --seed-accent-dark: #a8874f; /* 奶油页上的可读加深档 */
52
+ --seed-surface: #1c2644; /* navy */
53
+ --seed-panel: #232f55; /* navy-alt */
54
+ --seed-panel-alt: #293759; /* 代码块/深面板,H 与 navy 同轴 */
55
+ --seed-ink: #e2dcd0; /* bone */
56
+ --seed-ink-muted: #8a96a8; /* blue-grey(模板 --c-fg-2) */
57
+ --seed-ink-dim: #6d7a8f; /* 模板 hint #4E5A6E 提亮,保 CR-02 与明度序 */
58
+ --seed-border: #3d4a6e; /* 模板 #2E3D5C 提亮一档:NT-02 明度差 0.10 */
59
+ --seed-border-strong: #c8a870; /* 金线 = 模板 .rule / chapter-rule */
60
+
61
+ /* ── 1.2 Semantic Colors(活变量)── */
62
+ --bg-color: var(--seed-surface);
63
+ --text-color: var(--seed-ink);
64
+ --text-secondary: var(--seed-ink-muted);
65
+ --text-muted: var(--seed-ink-dim);
66
+ --border-color: var(--seed-border);
67
+ /* gold vs navy = 6.6:1,可直接做链接色(CR-04 通过) */
68
+ --link-color: var(--seed-accent);
69
+
70
+ --code-bg: var(--seed-panel);
71
+ --code-block-bg: var(--seed-panel-alt);
72
+ --code-block-text: var(--seed-ink);
73
+
74
+ --blockquote-border: var(--seed-accent); /* 模板:1px 金线体系 */
75
+ --blockquote-bg: var(--seed-panel);
76
+ --table-header-bg: var(--seed-panel);
77
+
78
+ --selection-bg: rgba(200, 168, 112, 0.22);
79
+ --highlight-bg: rgba(200, 168, 112, 0.24);
80
+
81
+ /* ── 1.3 Typography & Metrics(活变量)── */
82
+ --font-body: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
83
+ --font-mono: "IBM Plex Mono", "Noto Sans Mono CJK SC", monospace;
84
+ --editor-font-size: 16px;
85
+ --editor-column-width: 820px;
86
+
87
+ /* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
88
+ 图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导。 */
89
+ --pele-bg: var(--code-block-bg);
90
+ --pele-fg: var(--code-block-text);
91
+ --pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
92
+ --pele-line: var(--code-block-text);
93
+ --pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
94
+ --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
95
+ --pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
96
+ --pele-accent: var(--seed-accent);
97
+ --pele-radius: 0px; /* 模板:零圆角平面体系 */
98
+ }
99
+
100
+ /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 signal 十八页逐页复刻)──
101
+ 换算锚点:放映基准字号 clamp(17px,1.35vw,26px) → @1920×1080 ≈ 26px/em;
102
+ 模板 px ÷ 26 = em(clamp 取 1920 实际落点)。模板字号阶梯(vw @1920):
103
+ display 9.5vw=182.4→7.02em · h1 5.2vw=99.8→3.84em · h2 3vw=57.6→2.22em
104
+ h3 1.9vw=36.5→1.40em · lead 1.4vw=26.9→1.03em · body 1.05vw=20.2→0.78em
105
+ caption 0.82vw=15.7→0.61em · label 0.7vw=13.4→0.52em
106
+ 行内元素:先定 li 基准(= 行说明文字 px ÷26),行题/序号再 ÷ li 缩放:
107
+ kpi 数字 5.5vw=105.6px ÷26 ÷0.78 = 5.21em
108
+ steps 巨数字 4.5vw=86.4px ÷26 ÷0.78 = 4.26em;step 名 36.5px ÷26 ÷0.78 = 1.79em
109
+ matrix 名称 36.5px ÷26 ÷0.78 = 1.79em(timeline 右侧日期列无 markdown 挂点)
110
+ 页面对照:cover←P1 · section←P2/P3/P11 · two-col←P4(P8 compare 同形) · kpi←P5
111
+ quote←P6 · agenda←P7 · closing←P12 · figure←P13/P15 · steps←P14(P18 cycle 同形)
112
+ matrix←P16 · timeline←P17
113
+ 奶油页(P4/P7/P14)整条层叠链换纸色,见 1.6.4;暗蓝底页不写页面级背景。
114
+ 绝对定位装饰(80px 网格纹理 / 条形·环图 / 金字塔逐级收窄 / 2×2 循环箭头)
115
+ 行式 DOM 无挂点——有意未复刻;金短轨改用眉标背景线、时间轴 spine+金点沿用
116
+ 上游结构,各节注释内逐一标注。 */
117
+ :root {
118
+ --slide-mono: "IBM Plex Mono", "Noto Sans Mono CJK SC", monospace;
119
+ --slide-title-font: "Source Serif 4", "Noto Serif SC", serif;
120
+ --slide-title-size: 2.22em; /* 内容页题 = h2 57.6px ÷26 */
121
+ --slide-title-weight: 600; /* 模板 h1/h2 = 600(非 700) */
122
+ --slide-subhead-weight: 600;
123
+ --slide-title-tracking: -0.01em; /* 模板 h1 .01em */
124
+ --slide-title-line-height: 1.18; /* h2 line-height */
125
+ --slide-cover-title-size: 7.02em; /* P1 display 182.4px ÷26 */
126
+ --slide-cover-title-line-height: 0.96;
127
+ --slide-cover-title-tracking: -0.02em;
128
+ --slide-section-title-size: 3.84em; /* P2/P3 h1 99.8px ÷26 */
129
+ --slide-closing-title-size: 3.84em; /* P12 h1 99.8px ÷26 */
130
+ --slide-lead-size: 1.03em; /* lead 26.9px ÷26 */
131
+ --slide-kicker-size: clamp(11px, 0.7vw, 14px); /* label 13.4px @1920 */
132
+ --slide-kicker-tracking: 0.14em; /* 模板 .label .14em */
133
+ --slide-kicker-transform: uppercase;
134
+ --slide-chrome-opacity: 0.9; /* chrome = fg-2 蓝灰,不做淡化 */
135
+ --slide-chrome-transform: uppercase;
136
+ --slide-kpi-number-size: 5.21em; /* 105.6px ÷26 ÷0.78(li) */
137
+ --slide-quote-size: 2.66em; /* quote-text 69.1px ÷26 */
138
+ --slide-page-pad-x: 7.5vw; /* 模板 --pad-x 144px @1920 */
139
+ --slide-page-top-pad: 60px; /* --pad-y 59.4px − chrome 安全区 */
140
+ --slide-page-top-pad-print: 50px;
141
+ --slide-cover-text-align: left;
142
+ --slide-cover-lead-inline: auto;
143
+ }
144
+
145
+ /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
146
+ body.presenting / body.slides-printing 作用域) ═══════════════ */
147
+
148
+ /* 1.6.1 页标题声部对齐:Source Serif 4 600 骨白;压掉文档式 h1/h2 的
149
+ border-bottom 与纵向留白(编辑器规则带 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: var(--slide-title-weight);
155
+ line-height: 1.18;
156
+ letter-spacing: -0.01em;
157
+ color: var(--text-color);
158
+ border-bottom: none;
159
+ padding-bottom: 0;
160
+ margin-bottom: 0.5em;
161
+ }
162
+ /* kicker 是标题行上的 ::before:模板眉标一律哑金 mono 大写(.label / .chapter-num /
163
+ .tag),上游默认是 --text-muted,必须收回 gold */
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-mono);
167
+ font-size: var(--slide-kicker-size);
168
+ font-weight: 500;
169
+ letter-spacing: var(--slide-kicker-tracking);
170
+ text-transform: var(--slide-kicker-transform);
171
+ color: var(--seed-accent);
172
+ }
173
+ /* 幻灯片不是文档:2.5 的中文首行缩进只在阅读态生效,放映/导出全部归零 */
174
+ body.presenting #editor .cm-content .cm-line,
175
+ body.slides-printing #editor .cm-content .cm-line {
176
+ text-indent: 0;
177
+ }
178
+
179
+ /* 1.6.2 cover · P1:海军蓝纸 + 80px 网格纹理(装饰未复刻);标题底部左对齐,
180
+ display 182px / 700 / .96;导语切衬线 + fg-2;meta 条(border-top)未复刻 */
181
+ body.presenting #editor[data-slide-layout='cover'] .cm-content {
182
+ justify-content: flex-end;
183
+ padding-bottom: 130px;
184
+ }
185
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
186
+ body.slides-printing .cm-md-slide-cover.cm-md-page-title {
187
+ font-size: var(--slide-cover-title-size);
188
+ font-weight: 700;
189
+ line-height: 0.96;
190
+ letter-spacing: -0.02em;
191
+ max-width: 88%;
192
+ }
193
+ body.presenting [data-slide-layout='cover'] .cm-content .cm-md-page-lead,
194
+ body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
195
+ font-family: var(--slide-title-font);
196
+ font-size: var(--slide-lead-size);
197
+ line-height: 1.58;
198
+ color: var(--text-secondary);
199
+ max-width: 52%;
200
+ }
201
+ body.presenting [data-slide-layout='cover'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
202
+ body.slides-printing .cm-md-slide-cover .cm-md-page-title[data-slide-kicker]::before {
203
+ color: var(--text-secondary); /* P1 的 label 是 muted,不是金 */
204
+ }
205
+
206
+ /* 1.6.3 section · P2 chapter / P3·P11 statement(暗蓝底):h1 99.8px / 600 /
207
+ 1.08;眉标下方 36×1px 金短轨以 ::before 背景线近似(.chapter-rule 无挂点);
208
+ chapter-num 金 .2em;导语 26.9px 蓝灰;整页垂直居中 */
209
+ body.presenting #editor[data-slide-layout='section'] .cm-content {
210
+ justify-content: center;
211
+ }
212
+ body.presenting #editor .cm-content .cm-md-slide-section .cm-md-page-title,
213
+ body.slides-printing .cm-md-slide-section.cm-md-page-title {
214
+ font-size: var(--slide-section-title-size);
215
+ line-height: 1.08;
216
+ max-width: 68%;
217
+ }
218
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
219
+ body.slides-printing .cm-md-slide-section .cm-md-page-title[data-slide-kicker]::before {
220
+ letter-spacing: 0.2em; /* .chapter-num .2em */
221
+ padding-bottom: 1.1em;
222
+ background-image: linear-gradient(var(--seed-accent), var(--seed-accent));
223
+ background-repeat: no-repeat;
224
+ background-position: left bottom; /* 模板 .chapter-rule 36×1px */
225
+ background-size: 36px 1px;
226
+ }
227
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
228
+ body.slides-printing .cm-md-slide-section.cm-md-page-lead {
229
+ font-size: var(--slide-lead-size);
230
+ line-height: 1.58;
231
+ color: var(--text-secondary);
232
+ max-width: 50%;
233
+ }
234
+
235
+ /* 1.6.4 奶油页整条层叠链换纸色(P4 split / P7 list / P14 diagram)——
236
+ 模板 .slide.light = #F0ECE3。只挂 body 会被 #editor 的 navy 反盖,必须
237
+ body / #editor / .cm-editor / .cm-scroller / .cm-content 五层同时上色;
238
+ 打印域用 body.slides-printing:has(.cm-md-slide-*) */
239
+ body.presenting:has(#editor[data-slide-layout='two-col']),
240
+ body.presenting:has(#editor[data-slide-layout='agenda']),
241
+ body.presenting:has(#editor[data-slide-layout='steps']),
242
+ body.slides-printing:has(.cm-md-slide-two-col),
243
+ body.slides-printing:has(.cm-md-slide-agenda),
244
+ body.slides-printing:has(.cm-md-slide-steps) {
245
+ background: #f0ece3;
246
+ }
247
+ body.presenting #editor[data-slide-layout='two-col'],
248
+ body.presenting #editor[data-slide-layout='two-col'] .cm-editor,
249
+ body.presenting #editor[data-slide-layout='two-col'] .cm-scroller,
250
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content,
251
+ body.presenting #editor[data-slide-layout='agenda'],
252
+ body.presenting #editor[data-slide-layout='agenda'] .cm-editor,
253
+ body.presenting #editor[data-slide-layout='agenda'] .cm-scroller,
254
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content,
255
+ body.presenting #editor[data-slide-layout='steps'],
256
+ body.presenting #editor[data-slide-layout='steps'] .cm-editor,
257
+ body.presenting #editor[data-slide-layout='steps'] .cm-scroller,
258
+ body.presenting #editor[data-slide-layout='steps'] .cm-content,
259
+ body.slides-printing:has(.cm-md-slide-two-col) #editor,
260
+ body.slides-printing:has(.cm-md-slide-two-col) .cm-editor,
261
+ body.slides-printing:has(.cm-md-slide-two-col) .cm-scroller,
262
+ body.slides-printing:has(.cm-md-slide-two-col) .cm-content,
263
+ body.slides-printing:has(.cm-md-slide-agenda) #editor,
264
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-editor,
265
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-scroller,
266
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-content,
267
+ body.slides-printing:has(.cm-md-slide-steps) #editor,
268
+ body.slides-printing:has(.cm-md-slide-steps) .cm-editor,
269
+ body.slides-printing:has(.cm-md-slide-steps) .cm-scroller,
270
+ body.slides-printing:has(.cm-md-slide-steps) .cm-content {
271
+ background: #f0ece3;
272
+ color: #1a2030;
273
+ }
274
+ /* 奶油页上的文档级色(strong / 引用 / 表格 td / 幽灵页码 / chrome 线)反向切换 */
275
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-strong,
276
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content .cm-md-strong,
277
+ body.presenting #editor[data-slide-layout='steps'] .cm-content .cm-md-strong,
278
+ body.slides-printing:has(.cm-md-slide-two-col) .cm-md-strong,
279
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-md-strong,
280
+ body.slides-printing:has(.cm-md-slide-steps) .cm-md-strong {
281
+ color: #1a2030;
282
+ }
283
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-blockquote,
284
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content .cm-md-blockquote,
285
+ body.presenting #editor[data-slide-layout='steps'] .cm-content .cm-md-blockquote,
286
+ body.slides-printing:has(.cm-md-slide-two-col) .cm-md-blockquote,
287
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-md-blockquote,
288
+ body.slides-printing:has(.cm-md-slide-steps) .cm-md-blockquote {
289
+ color: #5a6270;
290
+ border-left-color: #cac4b4;
291
+ }
292
+ body.presenting #editor[data-slide-layout='two-col'] .cm-md-table-widget td,
293
+ body.presenting #editor[data-slide-layout='agenda'] .cm-md-table-widget td,
294
+ body.presenting #editor[data-slide-layout='steps'] .cm-md-table-widget td,
295
+ body.slides-printing:has(.cm-md-slide-two-col) .cm-md-table-widget td,
296
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-md-table-widget td,
297
+ body.slides-printing:has(.cm-md-slide-steps) .cm-md-table-widget td {
298
+ color: #1a2030; /* td 换纸面 ink,否则骨白字浮在奶油上 */
299
+ }
300
+ body.presenting:has(#editor[data-slide-layout='two-col']) .slide-ghost,
301
+ body.presenting:has(#editor[data-slide-layout='agenda']) .slide-ghost,
302
+ body.presenting:has(#editor[data-slide-layout='steps']) .slide-ghost,
303
+ body.slides-printing:has(.cm-md-slide-two-col) .slide-ghost,
304
+ body.slides-printing:has(.cm-md-slide-agenda) .slide-ghost,
305
+ body.slides-printing:has(.cm-md-slide-steps) .slide-ghost {
306
+ opacity: 0; /* 幽灵页码在换底页同色隐形,整页隐藏 */
307
+ }
308
+
309
+ /* 1.6.5 two-col · P4 split(奶油):左文右图;h2 57.6px / 600 / 1.18;
310
+ 导语 26.9px ink-2;条目 20.2px + 金色破折号(li::before "—" → listmark 金);
311
+ 右侧 28vh 图片占位框无挂点,未复刻。P8 compare 同形(暗底双栏)不单列 */
312
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-title,
313
+ body.presenting #editor .cm-content .cm-md-slide-two-col .cm-md-atxheading2,
314
+ body.slides-printing .cm-md-slide-two-col.cm-md-page-title,
315
+ body.slides-printing .cm-md-slide-two-col .cm-md-atxheading2 {
316
+ color: #1a2030;
317
+ font-size: 2.22em;
318
+ font-weight: 600;
319
+ line-height: 1.18;
320
+ letter-spacing: 0;
321
+ max-width: 100%;
322
+ }
323
+ /* 上游 two-col 用 column-rule 画中缝:奶油页换成铅笔灰,别让深蓝线割纸 */
324
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content {
325
+ column-rule-color: #cac4b4;
326
+ }
327
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-lead,
328
+ body.slides-printing .cm-md-slide-two-col.cm-md-page-lead {
329
+ font-size: var(--slide-lead-size);
330
+ line-height: 1.58;
331
+ color: #5a6270;
332
+ max-width: 100%;
333
+ }
334
+ body.presenting #editor .cm-content .cm-md-slide-two-col.cm-md-li,
335
+ body.slides-printing #editor .cm-content .cm-md-slide-two-col.cm-md-li {
336
+ font-size: 0.78em; /* body 20.2px ÷26 */
337
+ line-height: 1.65;
338
+ color: #1a2030;
339
+ margin: 0 0 0.9em;
340
+ padding: 0;
341
+ border: none;
342
+ }
343
+ body.presenting #editor .cm-content .cm-md-slide-two-col .cm-md-listmark,
344
+ body.slides-printing #editor .cm-content .cm-md-slide-two-col .cm-md-listmark {
345
+ font-family: var(--slide-mono);
346
+ color: #b08c50; /* gold 在奶油上的可读档 */
347
+ }
348
+
349
+ /* 1.6.6 kpi · P5 stats(暗蓝底):页题 h2 57.6px;三列 stat-card 以
350
+ 1px 蓝线做顶边,数字 Source Serif 600 105.6px 金色(模板 stat-value),
351
+ 说明 20.2px 骨白;stat-note 15.7px mono hint 无独立挂点(与说明同段) */
352
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title,
353
+ body.slides-printing .cm-md-slide-kpi.cm-md-page-title {
354
+ font-size: 2.22em;
355
+ font-weight: 600;
356
+ line-height: 1.18;
357
+ max-width: 84%;
358
+ border-bottom: none;
359
+ }
360
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
361
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
362
+ display: inline-block;
363
+ vertical-align: top;
364
+ width: 31%;
365
+ margin: 0 2.3% 1.6em 0;
366
+ padding: 1.15em 1.4em 0 0;
367
+ border-top: 1px solid var(--seed-border);
368
+ font-size: 0.78em; /* stat-label 20.2px ÷26 */
369
+ line-height: 1.5;
370
+ color: var(--text-color);
371
+ background: transparent;
372
+ box-shadow: none;
373
+ }
374
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
375
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
376
+ font-family: var(--slide-title-font);
377
+ font-size: var(--slide-kpi-number-size);
378
+ font-weight: 600;
379
+ line-height: 1;
380
+ letter-spacing: -0.02em;
381
+ color: var(--seed-accent); /* 模板 stat-value 用 gold */
382
+ }
383
+
384
+ /* 1.6.7 quote · P6(暗蓝底):金引号 153.6px(weight 300);金句 69.1px 衬线
385
+ 400 / 1.28 / max 78%;署名 = mono label .14em;整块垂直居中。
386
+ quote-mark 以 blockquote::before 近似;第二行署名转 fg-2 */
387
+ body.presenting #editor[data-slide-layout='quote'] .cm-content {
388
+ justify-content: center;
389
+ }
390
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
391
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
392
+ font-family: var(--slide-title-font);
393
+ font-size: var(--slide-quote-size);
394
+ font-style: normal; /* 模板 quote-text 正体(上游默认斜体) */
395
+ font-weight: 400;
396
+ line-height: 1.28;
397
+ letter-spacing: -0.01em;
398
+ color: var(--text-color);
399
+ background: transparent;
400
+ border-left: none;
401
+ padding-left: 0;
402
+ padding-right: 0;
403
+ max-width: 78%;
404
+ margin-bottom: 1.5em;
405
+ }
406
+ body.presenting #editor .cm-content .cm-md-blockquote.cm-md-slide-quote::before,
407
+ body.slides-printing #editor .cm-content .cm-md-blockquote.cm-md-slide-quote::before {
408
+ font-family: var(--slide-title-font);
409
+ font-size: 2.22em; /* 153.6px ÷ 引用字号 69.1px(::before em 相对继承字号) */
410
+ font-weight: 300;
411
+ line-height: 0.6;
412
+ color: var(--seed-accent);
413
+ }
414
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
415
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
416
+ margin-top: 1.4em; /* 纵向留白只能走 margin(CSS-03) */
417
+ font-family: var(--slide-mono);
418
+ font-size: 0.52em;
419
+ letter-spacing: 0.14em;
420
+ text-transform: uppercase;
421
+ color: var(--seed-accent);
422
+ }
423
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line + .cm-line,
424
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line + .cm-line {
425
+ color: var(--text-secondary);
426
+ }
427
+
428
+ /* 1.6.8 agenda · P7 list(奶油):页题 h2 57.6px ink;左栏导语;
429
+ 条目 26.9px ink,金色破折号替代序号;右侧"—"列表间距 2.5vh → 0.95em */
430
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content .cm-md-page-title,
431
+ body.slides-printing .cm-md-slide-agenda.cm-md-page-title {
432
+ color: #1a2030;
433
+ font-size: 2.22em;
434
+ font-weight: 600;
435
+ line-height: 1.18;
436
+ max-width: 72%;
437
+ }
438
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content .cm-md-page-lead,
439
+ body.slides-printing .cm-md-slide-agenda.cm-md-page-lead {
440
+ font-size: 0.78em; /* 左栏 .body 20.2px ÷26 */
441
+ color: #5a6270;
442
+ }
443
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
444
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
445
+ font-size: 1.03em; /* .bullet-list li 26.9px ÷26 */
446
+ line-height: 1.5;
447
+ color: #1a2030;
448
+ margin: 0 0 0.95em;
449
+ padding: 0;
450
+ border: none;
451
+ }
452
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
453
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
454
+ font-family: var(--slide-mono);
455
+ color: #b08c50; /* 模板 li::before "—" 金色 */
456
+ }
457
+
458
+ /* 1.6.9 closing · P12 end:金 kicker + 36×1px 金短轨(以眉标背景线近似);
459
+ h1 99.8px / 600 / max 55%;联系行 26.9px 蓝灰 max 42%;整页垂直居中 */
460
+ body.presenting #editor[data-slide-layout='closing'] .cm-content {
461
+ justify-content: center;
462
+ }
463
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-title,
464
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title {
465
+ font-size: var(--slide-closing-title-size);
466
+ line-height: 1.08;
467
+ max-width: 55%;
468
+ }
469
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
470
+ body.slides-printing .cm-md-slide-closing .cm-md-page-title[data-slide-kicker]::before {
471
+ padding-bottom: 1.1em;
472
+ background-image: linear-gradient(var(--seed-accent), var(--seed-accent));
473
+ background-repeat: no-repeat;
474
+ background-position: left bottom;
475
+ background-size: 36px 1px;
476
+ }
477
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-lead,
478
+ body.slides-printing .cm-md-slide-closing.cm-md-page-lead {
479
+ font-size: var(--slide-lead-size);
480
+ line-height: 1.58;
481
+ color: var(--text-secondary);
482
+ max-width: 42%;
483
+ }
484
+
485
+ /* 1.6.10 steps · P14 diagram(奶油):四列流程;序号 86.4px display 700 金色,
486
+ 步骤名 h3 36.5px 600 ink,说明 20.2px ink-2。P18 cycle 同形不单列;
487
+ 右向箭头 "→" 为独立 div,无挂点未复刻 */
488
+ body.presenting #editor[data-slide-layout='steps'] .cm-content .cm-md-page-title,
489
+ body.slides-printing .cm-md-slide-steps.cm-md-page-title {
490
+ color: #1a2030;
491
+ font-size: 2.22em;
492
+ font-weight: 600;
493
+ max-width: 72%;
494
+ }
495
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
496
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
497
+ display: inline-block;
498
+ vertical-align: top;
499
+ width: 22%;
500
+ margin: 0 1.8% 1.2em 0;
501
+ padding: 0;
502
+ border: none;
503
+ font-size: 0.78em; /* .flow-desc 20.2px ÷26 */
504
+ line-height: 1.62;
505
+ color: #5a6270;
506
+ }
507
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
508
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
509
+ display: block;
510
+ font-family: var(--slide-title-font);
511
+ font-size: 4.26em; /* 86.4px ÷26 ÷0.78 */
512
+ font-weight: 700;
513
+ line-height: 1;
514
+ letter-spacing: -0.02em;
515
+ color: #b08c50;
516
+ margin-bottom: 0.25em;
517
+ }
518
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
519
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
520
+ display: block;
521
+ min-width: 0;
522
+ padding: 0; /* 撤掉上游步骤名胶囊(模板是裸标题) */
523
+ border: none;
524
+ border-radius: 0;
525
+ background: transparent;
526
+ font-family: var(--slide-title-font);
527
+ font-size: 1.79em; /* 36.5px ÷26 ÷0.78 */
528
+ font-weight: 600;
529
+ line-height: 1.15;
530
+ white-space: normal;
531
+ color: #1a2030;
532
+ }
533
+
534
+ /* 1.6.11 matrix · P16 pyramid(暗蓝底):5 级金字塔 → 行式条目;
535
+ 左 3px 金轨 + 金色底(模板 nth-child 逐级 70/45/27/15/8% 的收窄与渐淡无挂点,
536
+ 宽度统一 100%、底色取 22% 一档);名称 h3 36.5px 500、说明 20.2px */
537
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-page-title,
538
+ body.slides-printing .cm-md-slide-matrix.cm-md-page-title {
539
+ font-size: 2.22em;
540
+ font-weight: 600;
541
+ max-width: 84%;
542
+ }
543
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
544
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
545
+ display: block;
546
+ width: 100%;
547
+ font-size: 0.78em; /* .pyr-desc 20.2px ÷26 */
548
+ line-height: 1.4;
549
+ color: var(--text-color);
550
+ padding: 0.55em 1.85em; /* .pyr-level 1.3vh / 2.5vw */
551
+ margin: 0 0 2px;
552
+ border: none;
553
+ border-left: 3px solid var(--seed-accent);
554
+ border-radius: 0;
555
+ background: color-mix(in srgb, var(--seed-accent) 22%, var(--seed-surface));
556
+ }
557
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
558
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
559
+ font-family: var(--slide-title-font);
560
+ font-size: 1.79em; /* .pyr-name 36.5px ÷26 ÷0.78 */
561
+ font-weight: 500;
562
+ line-height: 1.2;
563
+ color: var(--text-color);
564
+ }
565
+
566
+ /* 1.6.12 figure · P13 chart / P15 pie(暗蓝底):页题 h2 57.6px + mono 说明
567
+ 15.7px。条形图/环图/图例为绝对定位装饰,行式 DOM 无挂点——保持上游默认版式,
568
+ 仅对齐标题与说明声部 */
569
+ body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-page-title,
570
+ body.slides-printing .cm-md-slide-figure.cm-md-page-title {
571
+ font-size: 2.22em;
572
+ font-weight: 600;
573
+ max-width: 84%;
574
+ }
575
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-lead,
576
+ body.slides-printing .cm-md-slide-figure.cm-md-page-lead {
577
+ font-family: var(--slide-mono);
578
+ font-size: 0.61em; /* .caption 15.7px ÷26 */
579
+ letter-spacing: 0.06em;
580
+ color: var(--text-secondary);
581
+ }
582
+
583
+ /* 1.6.13 timeline · P17 vtimeline(暗蓝底):页题 h2 57.6px + 1px 蓝底线;
584
+ 行内 3px 金轨 + 金圆点正是模板 spine/dot,沿用上游结构只调字号与线色;
585
+ 标题 h3 36.5px 500 + 说明 20.2px 蓝灰;右侧 mono 日期列无 markdown 挂点,未复刻 */
586
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-page-title,
587
+ body.slides-printing .cm-md-slide-timeline.cm-md-page-title {
588
+ font-size: 2.22em;
589
+ font-weight: 600;
590
+ border-bottom: 1px solid var(--seed-border);
591
+ padding-bottom: 0.45em;
592
+ }
593
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li,
594
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
595
+ font-size: 0.78em; /* .vt-body 20.2px ÷26 */
596
+ line-height: 1.65;
597
+ color: var(--text-secondary);
598
+ margin-left: 0.6em;
599
+ padding-left: 2.2em;
600
+ padding-bottom: 1.4em;
601
+ border-left: 1px solid var(--seed-border); /* 模板竖向 spine */
602
+ }
603
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-strong,
604
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-strong {
605
+ font-family: var(--slide-title-font);
606
+ font-size: 1.79em; /* .vt-title 36.5px ÷26 ÷0.78 */
607
+ font-weight: 500;
608
+ line-height: 1.25;
609
+ color: var(--text-color);
610
+ }
611
+
612
+ /* 1.6.14 chrome · 页眉页脚:mono label 13.4px / .14em / 大写 / fg-2;
613
+ 上下 1px 分节线(暗底 #3D4A6E、奶油页 #CAC4B4) */
614
+ body.presenting .slide-chrome,
615
+ body.slides-printing .slide-chrome {
616
+ font-family: var(--slide-mono);
617
+ font-size: clamp(11px, 0.7vw, 14px);
618
+ letter-spacing: 0.14em;
619
+ text-transform: uppercase;
620
+ color: var(--text-secondary);
621
+ border-bottom: 1px solid var(--seed-border);
622
+ }
623
+ body.presenting .slide-foot,
624
+ body.slides-printing .slide-foot {
625
+ font-family: var(--slide-mono);
626
+ font-size: clamp(11px, 0.7vw, 14px);
627
+ letter-spacing: 0.14em;
628
+ text-transform: uppercase;
629
+ color: var(--text-secondary);
630
+ opacity: 0.9;
631
+ border-top: 1px solid var(--seed-border);
632
+ }
633
+ body.presenting:has(#editor[data-slide-layout='two-col']) .slide-chrome,
634
+ body.presenting:has(#editor[data-slide-layout='agenda']) .slide-chrome,
635
+ body.presenting:has(#editor[data-slide-layout='steps']) .slide-chrome,
636
+ body.presenting:has(#editor[data-slide-layout='two-col']) .slide-foot,
637
+ body.presenting:has(#editor[data-slide-layout='agenda']) .slide-foot,
638
+ body.presenting:has(#editor[data-slide-layout='steps']) .slide-foot,
639
+ body.slides-printing:has(.cm-md-slide-two-col) .slide-chrome,
640
+ body.slides-printing:has(.cm-md-slide-agenda) .slide-chrome,
641
+ body.slides-printing:has(.cm-md-slide-steps) .slide-chrome,
642
+ body.slides-printing:has(.cm-md-slide-two-col) .slide-foot,
643
+ body.slides-printing:has(.cm-md-slide-agenda) .slide-foot,
644
+ body.slides-printing:has(.cm-md-slide-steps) .slide-foot {
645
+ color: #5a6270;
646
+ border-color: #cac4b4;
647
+ }
648
+
649
+ /* ═══════════════════════════════════════════════════════════
650
+ SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
651
+ ═══════════════════════════════════════════════════════════ */
652
+
653
+ #editor .cm-content {
654
+ font-family: var(--font-body);
655
+ line-height: 1.75;
656
+ }
657
+
658
+ /* ── 2.1 Headings(Source Serif 4 600;模板标题无下划线)── */
659
+ #editor .cm-content .cm-md-atxheading1,
660
+ #editor .cm-content .cm-md-atxheading2,
661
+ #editor .cm-content .cm-md-atxheading3,
662
+ #editor .cm-content .cm-md-atxheading4,
663
+ #editor .cm-content .cm-md-atxheading5,
664
+ #editor .cm-content .cm-md-atxheading6 {
665
+ font-family: "Source Serif 4", "Noto Serif SC", serif;
666
+ color: var(--text-color);
667
+ font-weight: 600;
668
+ line-height: 1.15;
669
+ letter-spacing: -0.01em;
670
+ }
671
+
672
+ #editor .cm-content .cm-md-atxheading1 {
673
+ font-size: 2.4em;
674
+ line-height: 1.08;
675
+ }
676
+ #editor .cm-content .cm-md-atxheading2 { font-size: 1.7em; line-height: 1.18; }
677
+ #editor .cm-content .cm-md-atxheading3 { font-size: 1.3em; font-weight: 500; line-height: 1.3; }
678
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1.12em; font-weight: 500; }
679
+ #editor .cm-content .cm-md-atxheading5 { font-size: 1em; }
680
+ #editor .cm-content .cm-md-atxheading6 {
681
+ font-size: 0.85em;
682
+ font-family: var(--font-mono);
683
+ font-weight: 500;
684
+ letter-spacing: 0.14em; /* 模板 .label 眉标 */
685
+ text-transform: uppercase;
686
+ }
687
+
688
+ /* ── 2.2 Inline ──
689
+ 模板签名:标题/导语里的斜体衬线走 gold(.lead em / .h1 em);正文加粗仍用正文色。 */
690
+ #editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 600; }
691
+ #editor .cm-content .cm-md-em {
692
+ font-style: italic;
693
+ font-family: "Source Serif 4", "Noto Serif SC", serif;
694
+ color: var(--seed-accent);
695
+ }
696
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; }
697
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
698
+ #editor .cm-content .cm-md-link { color: var(--link-color); }
699
+ #editor .cm-content .cm-md-url { color: var(--text-muted); }
700
+
701
+ #editor .cm-content .cm-md-inlinecode {
702
+ font-family: var(--font-mono);
703
+ background: var(--code-bg);
704
+ color: var(--text-color);
705
+ border-radius: 0; /* 模板:零圆角 */
706
+ }
707
+
708
+ #editor .cm-content .cm-md-marker,
709
+ #editor .cm-content .cm-md-quotemark,
710
+ #editor .cm-content .cm-md-listmark {
711
+ color: var(--text-muted);
712
+ }
713
+
714
+ /* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
715
+ 引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
716
+ 否则引用里的代码行会盖住代码块底色。 */
717
+ #editor .cm-content .cm-md-blockquote {
718
+ color: var(--text-secondary);
719
+ border-left: 1px solid var(--blockquote-border); /* 模板:1px 金线 */
720
+ padding-left: 16px;
721
+ padding-right: 16px;
722
+ }
723
+
724
+ #editor .cm-content .cm-md-codeblock {
725
+ background: var(--code-block-bg);
726
+ color: var(--code-block-text);
727
+ padding-left: 16px;
728
+ padding-right: 16px;
729
+ }
730
+ #editor .cm-content .cm-md-codeblock-first {
731
+ border-top-left-radius: 0;
732
+ border-top-right-radius: 0;
733
+ }
734
+ #editor .cm-content .cm-md-codeblock-last {
735
+ border-bottom-left-radius: 0;
736
+ border-bottom-right-radius: 0;
737
+ }
738
+
739
+ /* ── 2.4 Table / Rule(模板:1px 细线,表头 = mono 眉标)── */
740
+ #editor .cm-content .cm-md-table-widget th,
741
+ #editor .cm-content .cm-md-table-widget td {
742
+ border-color: var(--border-color);
743
+ }
744
+ #editor .cm-content .cm-md-table-widget th {
745
+ background: var(--table-header-bg);
746
+ color: var(--text-color);
747
+ font-family: var(--font-mono);
748
+ font-size: 0.78em;
749
+ font-weight: 500;
750
+ letter-spacing: 0.14em; /* 模板 .label 表头 */
751
+ text-transform: uppercase;
752
+ border-bottom: 1px solid var(--seed-border-strong);
753
+ }
754
+ #editor .cm-content .cm-md-hr { border-top-color: var(--seed-border-strong); }
755
+
756
+ /* ── 2.5 中文首行缩进 ──
757
+ CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
758
+ #editor .cm-content .cm-line { text-indent: 2em; }
759
+
760
+ #editor .cm-content .cm-md-atxheading1,
761
+ #editor .cm-content .cm-md-atxheading2,
762
+ #editor .cm-content .cm-md-atxheading3,
763
+ #editor .cm-content .cm-md-atxheading4,
764
+ #editor .cm-content .cm-md-atxheading5,
765
+ #editor .cm-content .cm-md-atxheading6,
766
+ #editor .cm-content .cm-md-blockquote,
767
+ #editor .cm-content .cm-md-codeblock,
768
+ #editor .cm-content .cm-md-hr,
769
+ #editor .cm-content .cm-md-mermaid,
770
+ #editor .cm-content .cm-md-li-0,
771
+ #editor .cm-content .cm-md-li-1,
772
+ #editor .cm-content .cm-md-li-2,
773
+ #editor .cm-content .cm-md-li-3,
774
+ #editor .cm-content .cm-md-li-4,
775
+ #editor .cm-content .cm-md-li-5,
776
+ #editor .cm-content .cm-md-li-6 {
777
+ text-indent: 0;
778
+ }
779
+
780
+ /* ═══════════════════════════════════════════════════════════
781
+ SECTION 3 — Exported HTML(.colamd-document,语义标签)
782
+ HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
783
+ ═══════════════════════════════════════════════════════════ */
784
+
785
+ .colamd-document {
786
+ font-family: var(--font-body);
787
+ font-size: 16px;
788
+ line-height: 1.75;
789
+ }
790
+
791
+ .colamd-document h1,
792
+ .colamd-document h2,
793
+ .colamd-document h3,
794
+ .colamd-document h4,
795
+ .colamd-document h5,
796
+ .colamd-document h6 {
797
+ font-family: "Source Serif 4", "Noto Serif SC", serif;
798
+ color: var(--text-color);
799
+ font-weight: 600;
800
+ line-height: 1.15;
801
+ letter-spacing: -0.01em;
802
+ margin: 1.5em 0 0.5em;
803
+ }
804
+ .colamd-document h1 { font-size: 2.4em; line-height: 1.08; margin-top: 0.4em; }
805
+ .colamd-document h2 { font-size: 1.7em; line-height: 1.18; }
806
+ .colamd-document h3 { font-size: 1.3em; font-weight: 500; line-height: 1.3; }
807
+ .colamd-document h4 { font-size: 1.12em; font-weight: 500; }
808
+ .colamd-document h5 { font-size: 1em; }
809
+ .colamd-document h6 {
810
+ font-size: 0.85em;
811
+ font-family: var(--font-mono);
812
+ font-weight: 500;
813
+ letter-spacing: 0.14em;
814
+ text-transform: uppercase;
815
+ }
816
+
817
+ .colamd-document strong { color: var(--text-color); font-weight: 600; }
818
+ .colamd-document em {
819
+ font-family: "Source Serif 4", "Noto Serif SC", serif;
820
+ color: var(--seed-accent);
821
+ }
822
+ .colamd-document code {
823
+ background: var(--code-bg);
824
+ color: var(--text-color);
825
+ font-family: var(--font-mono);
826
+ border-radius: 0;
827
+ }
828
+ /* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
829
+ .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
830
+ .colamd-document pre { background: var(--code-block-bg); }
831
+ .colamd-document pre code { color: var(--code-block-text); }
832
+ .colamd-document blockquote {
833
+ background: var(--blockquote-bg);
834
+ color: var(--text-secondary);
835
+ border-left: 1px solid var(--blockquote-border);
836
+ padding: 0.5em 1.2em;
837
+ }
838
+ .colamd-document mark { background: var(--highlight-bg); }
839
+ .colamd-document td { border-color: var(--border-color); }
840
+ .colamd-document th {
841
+ background: var(--table-header-bg);
842
+ border-bottom: 1px solid var(--seed-border-strong);
843
+ font-family: var(--font-mono);
844
+ font-size: 0.78em;
845
+ font-weight: 500;
846
+ letter-spacing: 0.14em;
847
+ text-transform: uppercase;
848
+ }
849
+ .colamd-document hr { border-top-color: var(--seed-border-strong); }
850
+
851
+ .colamd-document p { text-indent: 2em; }
852
+ .colamd-document li p,
853
+ .colamd-document td p,
854
+ .colamd-document th p,
855
+ .colamd-document blockquote p {
856
+ text-indent: 0;
857
+ }
858
+
859
+ /* ═══════════════════════════════════════════════════════════
860
+ SECTION 4 — Print
861
+ 应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
862
+ ═══════════════════════════════════════════════════════════ */
863
+
864
+ @media print {
865
+ html,
866
+ body {
867
+ background: var(--bg-color);
868
+ color: var(--text-color);
869
+ -webkit-print-color-adjust: exact;
870
+ print-color-adjust: exact;
871
+ }
872
+ }