@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,794 @@
1
+ /*
2
+ * ColaMD Theme: Bold Poster(粗体海报 · 手工精修版,逐页版式复刻)
3
+ * 来源:D:\workspace\git\beautiful-html-templates\templates\bold-poster\
4
+ * template.html + design.md(十页商业提案模板)
5
+ * colors: bg #FFFFFF / dark #1C1410(暖调墨黑)/ red #D8000F(番茄红)/ light #F5F2EF
6
+ * fonts: Shrikhand 400(海报展示体,仅 400 一档,倾斜 -6°~+2° 为身份语言)
7
+ * Libre Baskerville(文人衬线正文,lh 1.75)/ Space Grotesk 600(小号大写
8
+ * 标签 chrome)/ JetBrains Mono(模板无 mono,编辑器代码补位)
9
+ * paradigm 备案(模板刻意身份,体例同 biennale-yellow / pin-and-paper):
10
+ * SL-02 —— 暖纸白面板饱和度超标 = 模板身份:--light #F5F2EF(暖沙白)是
11
+ * 模板 :root 原 token,与纯白 surface 的暖差即设计意图(番茄红配套暖调),
12
+ * 去饱和即毁版;panel 仅作 B 通道 +1 对齐墨轴(视差不可辨),饱和度超规
13
+ * 有意保留,exit 1 备案放行;
14
+ * SL-03 —— 纯白 bg #FFFFFF(模板原 token)与暖沙面板的组合使三层表面色
15
+ * 相轴判定告警:白无色相、面板暖调,二者暖差即模板意图,备案放行;
16
+ * SL-01 —— 单一番茄红 #D8000F 高饱和强调 = 模板身份(design.md:
17
+ * "single saturated tomato red…uncompromising restraint",唯一强调色纪律);
18
+ * 红对白底 5.35:1 ≥4.5 达标,文字/链接可直接用红,无需 CR-04 换档;
19
+ * NT-01/NT-03 —— 文字色相轴(muted/dim 以模板 opacity 合成色推导,与墨同轴)
20
+ * 与边框中性度(发丝线 S≈4%)已修至合规;墨色边框体系 "borders are bold
21
+ * ink rules" 刻意为之;
22
+ * 圆角 0 —— 模板方角纪律("square corners are non-negotiable"),
23
+ * 代码块 / 图表半径一律 0(覆盖上游 6px 默认)。
24
+ * 页面映射(模板十页 → ColaMD 版式;换算式见 SECTION 1.5/1.6 注释):
25
+ * cover←P1(220px) quote←P2(红底 90px) two-col←P3(64px) kpi←P4(72px)
26
+ * section←P5(320px 巨数字即标题) matrix←P6(红左轨卡) steps←P7(墨黑底)
27
+ * agenda←P8(01/02/03) closing←P10(260px 红)
28
+ * (P9 global 卡与 matrix 同形不单列,取 P6 红左轨形态为参照;
29
+ * timeline/figure 无对应页,保持上游默认)
30
+ * 有意未复刻(行式 DOM 无挂点,逐项注明于 1.6):P1 三行叠排中行红字/-4°/+2°
31
+ * 倾斜与右下绝对定位 tagline(cover 左距 7vw 受全出血 !important 约束→统一
32
+ * 2.9vw);P5/P10 巨数字倾斜 -6°/-5°;P3 三格数字高亮带;P4 3px 网格外框;
33
+ * P8 三栏竖排切分与奇数栏条纹;底部 5px 红色进度条(chrome 之外无挂点)。
34
+ *
35
+ * 契约:ColaMD 2.7.13(:root 活变量;CM6 每行一 div;引用/代码块禁纵向 padding)
36
+ *
37
+ * 两条硬规矩:
38
+ * 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
39
+ * 编辑器继承不到。
40
+ * 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
41
+ * 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
42
+ * 并且引用/代码块**不能加纵向 padding**——那会按行累加。
43
+ *
44
+ * ═══════════════════════════════════════════════════════════
45
+ * SECTION 1 — Design Tokens
46
+ * 改 11 个种子色 + 3 组字体即可换一套主题
47
+ * ═══════════════════════════════════════════════════════════ */
48
+
49
+ :root {
50
+
51
+ /* ── 1.1 Seed Palette ──
52
+ 来源(template.html :root + design.md colors)。
53
+ 明度排序(SL-04 亮色范式):surface #FFF > panel #F5F2F0 > panel-alt #E8E5E3;
54
+ muted/dim 对白底均 ≥4.5:1(CR-02:muted 5.65:1 / dim 4.7:1)。 */
55
+ --seed-accent: #d8000f; /* 模板红(白底 5.35:1,可做文字/链接,CR-04 达标) */
56
+ --seed-accent-light: #e83b3f;
57
+ --seed-accent-dark: #b0000c;
58
+ --seed-surface: #ffffff;
59
+ --seed-panel: #f5f2f0; /* light 暖白面板(模板 #F5F2EF,B 通道 +1 对齐墨轴) */
60
+ --seed-panel-alt: #e8e5e3; /* 代码块/表头降档(派生档,压饱和 S≈9.4% 并同轴 24°) */
61
+ --seed-ink: #1c1410; /* 暖调墨黑(正文/边框/墨黑页底),文字色相轴 20° */
62
+ --seed-ink-muted: #6b6664; /* = rgba(28,20,16,0.65) 合成于白底(5.65:1,与墨同轴) */
63
+ --seed-ink-dim: #7a726e; /* dark 50% 加深至 4.7:1(CR-02 过线,同轴 20°) */
64
+ --seed-border: #c5c2c0; /* 发丝线(中性暖灰 S≈4%,pillar 弹行 hairline 可见档) */
65
+ --seed-border-strong: #1c1410; /* 3px 墨框体系 */
66
+
67
+ /* ── 1.2 Semantic Colors(活变量)── */
68
+ --bg-color: var(--seed-surface);
69
+ --text-color: var(--seed-ink);
70
+ --text-secondary: var(--seed-ink-muted);
71
+ --text-muted: var(--seed-ink-dim);
72
+ --border-color: var(--seed-border);
73
+ --link-color: var(--seed-accent); /* 红 5.35:1 直接可读 */
74
+
75
+ --code-bg: var(--seed-panel);
76
+ --code-block-bg: var(--seed-panel-alt);
77
+ --code-block-text: #1c1410;
78
+
79
+ --blockquote-border: var(--seed-accent); /* 红左轨 4px(模板 editorial card) */
80
+ --blockquote-bg: transparent; /* 模板引用无底色:"no outline, just the red rule" */
81
+ --table-header-bg: var(--seed-panel);
82
+
83
+ --selection-bg: rgba(216, 0, 15, 0.16);
84
+ --highlight-bg: rgba(216, 0, 15, 0.16); /* 红色荧光 = 唯一强调 */
85
+
86
+ /* ── 1.3 Typography & Metrics(活变量)── */
87
+ --font-body: "Libre Baskerville", "Noto Serif SC", serif;
88
+ --font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
89
+ --editor-font-size: 16px;
90
+ --editor-column-width: 820px;
91
+
92
+ /* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
93
+ 数字红(模板 "every numerical callout is red")+ 方角纪律。 */
94
+ --pele-bg: var(--code-block-bg);
95
+ --pele-fg: var(--code-block-text);
96
+ --pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
97
+ --pele-line: var(--code-block-text);
98
+ --pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
99
+ --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
100
+ --pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
101
+ --pele-accent: var(--seed-accent);
102
+ --pele-radius: 0px;
103
+ }
104
+
105
+ /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 bold-poster 十页逐页复刻)──
106
+ 换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
107
+ 模板 1920 画布 px ÷ 26 = em(clamp 取 1920×1080 实际落点,如 16vw=307>220
108
+ → hero 题落 220px)。字体体系:Shrikhand 400(display,仅 400)/
109
+ Libre Baskerville(正文)/ Space Grotesk 600(标签 chrome)。页面对照:
110
+ cover←P1 quote←P2(红底) two-col←P3 kpi←P4 section←P5(巨数字)
111
+ matrix←P6 steps←P7(墨黑底) agenda←P8 closing←P10
112
+ (P9 与 matrix 同形不单列;timeline/figure 无对应页保持上游默认)
113
+ 列表行内换算:先定 li 基准(= 行说明 px ÷26),行题/序号再除以 li 缩放,
114
+ 如 fc-num 52px 在 li 0.5em 下 = 52÷26÷0.5 = 4em。 */
115
+ :root {
116
+ --slide-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
117
+ --slide-title-font: "Shrikhand", "Noto Serif SC", serif;
118
+ --slide-title-size: 2.77em; /* fin-header 72px ÷26(P4;P3/P6 64px→2.46em 见 1.6) */
119
+ --slide-title-weight: 400; /* Shrikhand 仅 400,生成版 700 为误 */
120
+ --slide-subhead-weight: 600;
121
+ --slide-title-tracking: 0em; /* 模板页题无字距(hero 1px 正字距仅封面) */
122
+ --slide-title-line-height: 1.05; /* 模板 header lh 1,CJK 微放宽 */
123
+ --slide-cover-title-size: 8.46em; /* P1 hero-title 220px ÷26 */
124
+ --slide-cover-title-line-height: 0.88;
125
+ --slide-cover-title-tracking: 0.005em; /* hero-title letter-spacing 1px ÷220px */
126
+ --slide-section-title-size: 12.3em; /* P5 stat-big 320px ÷26(巨数字即短标题) */
127
+ --slide-closing-title-size: 10em; /* P10 close-big 260px ÷26 */
128
+ --slide-lead-size: 0.62em; /* body 16px ÷26(tag-body/cite/context 同档) */
129
+ --slide-kicker-size: clamp(11px, 0.63vw, 12px); /* tag-label 12px @1920 */
130
+ --slide-kicker-tracking: 0.25em; /* tag-label 3px ÷12px */
131
+ --slide-kicker-transform: uppercase;
132
+ --slide-chrome-opacity: 0.5; /* counter opacity .5 */
133
+ --slide-chrome-transform: uppercase;
134
+ --slide-kpi-number-size: 4em; /* P4 fc-num 52px ÷26 ÷0.5(li 缩放) */
135
+ --slide-quote-size: 3.46em; /* P2 red-quote 90px ÷26 */
136
+ --slide-page-pad-x: 2.9vw; /* 模板页边距 56px @1920 */
137
+ --slide-page-top-pad: 42px; /* 页顶 48px − chrome 安全区(cover 5vh≈54px 受
138
+ page-start !important 约束→统一 42px,近似) */
139
+ --slide-page-top-pad-print: 36px;
140
+ --slide-cover-text-align: left; /* P1 左上(flex-start 见 1.6.2) */
141
+ --slide-cover-lead-inline: auto;
142
+ }
143
+
144
+ /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
145
+ body.presenting / body.slides-printing 作用域) ═══════════════ */
146
+
147
+ /* 1.6.1 页标题声部对齐:Shrikhand 400 墨黑(压掉文档式标题权重/下划线,
148
+ 编辑器规则带 id 权重会漏进放映);眉标一律红(模板 tag-label/rm-label 声部) */
149
+ body.presenting #editor .cm-content .cm-md-page-title, body.slides-printing #editor .cm-content .cm-md-page-title {
150
+ font-family: var(--slide-title-font);
151
+ font-size: var(--slide-title-size);
152
+ font-weight: 400;
153
+ line-height: var(--slide-title-line-height);
154
+ letter-spacing: var(--slide-title-tracking);
155
+ color: var(--text-color);
156
+ border-bottom: none;
157
+ padding-bottom: 0;
158
+ margin-bottom: 0.5em;
159
+ }
160
+ body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before, body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
161
+ color: var(--seed-accent);
162
+ }
163
+
164
+ /* 1.6.2 cover · P1:白底左上(顶 5vh≈54px / 左 7vw 受全出血 !important 约束→
165
+ 全局 2.9vw 近似);标题 220px。hero-meta(LB 14px 眉行)并入 kicker 声部;
166
+ 三行叠排(中行红 260px -4°/底行 200px +2°)与右下绝对定位 tagline(300px 宽)
167
+ 为行式 DOM 无挂点——未复刻,lead 以 19em 宽左置近似 tag-body */
168
+ body.presenting #editor[data-slide-layout='cover'] .cm-content {
169
+ justify-content: flex-start;
170
+ text-align: left;
171
+ }
172
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title, body.slides-printing .cm-md-slide-cover.cm-md-page-title {
173
+ font-size: var(--slide-cover-title-size);
174
+ line-height: var(--slide-cover-title-line-height);
175
+ letter-spacing: var(--slide-cover-title-tracking);
176
+ margin-bottom: 0.12em;
177
+ }
178
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead, body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
179
+ font-size: var(--slide-lead-size); /* tag-body 16px ÷26 */
180
+ line-height: 1.6;
181
+ max-width: 19em; /* tag-body 300px ÷16px */
182
+ }
183
+
184
+ /* 1.6.3 quote · P2(red statement,整页换红):白字 Shrikhand 90px + 三段堆叠
185
+ 墨影(模板唯一阴影);署名 LB 16px 白 .85;上游巨引号 ::before 红色 \201C
186
+ 落红底同色隐形 → content:none 压掉(模板红板无引号饰)。
187
+ 红页整条层叠链:body / #editor / .cm-editor / .cm-scroller / .cm-content,
188
+ 打印域 body.slides-printing:has(...) */
189
+ body.presenting:has(#editor[data-slide-layout='quote']), body.slides-printing:has(.cm-md-slide-quote) {
190
+ background: var(--seed-accent);
191
+ }
192
+ body.presenting #editor[data-slide-layout='quote'], body.slides-printing:has(.cm-md-slide-quote) #editor,
193
+ body.presenting #editor[data-slide-layout='quote'] .cm-editor, body.slides-printing:has(.cm-md-slide-quote) .cm-editor,
194
+ body.presenting #editor[data-slide-layout='quote'] .cm-scroller, body.slides-printing:has(.cm-md-slide-quote) .cm-scroller,
195
+ body.presenting #editor[data-slide-layout='quote'] .cm-content, body.slides-printing:has(.cm-md-slide-quote) .cm-content {
196
+ background: var(--seed-accent);
197
+ }
198
+ body.presenting #editor[data-slide-layout='quote'] .cm-content {
199
+ color: var(--bg-color);
200
+ justify-content: center;
201
+ text-align: center;
202
+ }
203
+ body.slides-printing .cm-md-slide-quote {
204
+ color: var(--bg-color);
205
+ text-align: center;
206
+ }
207
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote, body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
208
+ font-size: var(--slide-quote-size); /* 90px ÷26 */
209
+ font-style: normal; /* 上游斜体;Shrikhand 无意大利体 */
210
+ font-weight: 400;
211
+ line-height: 1.15;
212
+ color: var(--bg-color);
213
+ background: transparent;
214
+ border-left: none;
215
+ padding-left: 0;
216
+ padding-right: 0;
217
+ max-width: 10em; /* red-quote max-width 900px ÷90px */
218
+ margin: 0 auto;
219
+ text-shadow: 2px 2px 0 rgba(28, 20, 16, 0.25),
220
+ 4px 4px 0 rgba(28, 20, 16, 0.2),
221
+ 6px 6px 0 rgba(28, 20, 16, 0.15); /* 模板 stacked shadow(唯一阴影) */
222
+ }
223
+ body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before, body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
224
+ content: none;
225
+ }
226
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line, body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
227
+ margin-top: 2em; /* red-cite margin-top 3vh≈32px @16px(CSS-03 只走 margin) */
228
+ font-family: var(--font-body);
229
+ font-weight: 400;
230
+ font-size: 0.62em; /* red-cite 16px ÷26 */
231
+ line-height: 1.5;
232
+ letter-spacing: 0;
233
+ text-transform: none;
234
+ color: var(--bg-color);
235
+ opacity: 0.85;
236
+ border-top: none;
237
+ }
238
+ body.presenting #editor[data-slide-layout='quote'] .cm-content .cm-md-page-title[data-slide-kicker]::before, body.slides-printing .cm-md-slide-quote .cm-md-page-title[data-slide-kicker]::before {
239
+ color: var(--bg-color); /* 红底上眉标转白 */
240
+ }
241
+ body.presenting:has(#editor[data-slide-layout='quote']) .slide-ghost {
242
+ opacity: 0; /* ghost=墨黑落红底浑浊,整页隐藏 */
243
+ }
244
+ body.presenting #editor[data-slide-layout='quote'] .cm-md-table-widget td, body.slides-printing:has(.cm-md-slide-quote) .cm-md-table-widget td {
245
+ color: var(--bg-color); /* 换底页 td 转纸面色 */
246
+ }
247
+ body.presenting [data-slide-layout='quote'] .slide-chrome, body.slides-printing [data-slide-layout='quote'] .slide-chrome,
248
+ body.presenting [data-slide-layout='quote'] .slide-foot, body.slides-printing [data-slide-layout='quote'] .slide-foot {
249
+ color: var(--bg-color);
250
+ }
251
+
252
+ /* 1.6.4 two-col · P3:页题 64px;双栏散文 LB 16px(.cm-line 0.62em,栏题除外);
253
+ 栏题取 SG 600 红眉标声部近似(模板栏无栏题);三格数字高亮带(2px 墨框 +
254
+ 红数字 48px + SG 大写 label)无挂点——未复刻 */
255
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-title, body.slides-printing .cm-md-slide-two-col.cm-md-page-title {
256
+ font-size: 2.46em; /* summary-header 64px ÷26 */
257
+ }
258
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-title ~ .cm-line, body.slides-printing .cm-md-slide-two-col .cm-md-page-title ~ .cm-line {
259
+ font-size: 0.62em; /* summary-col 16px ÷26 */
260
+ line-height: 1.75;
261
+ }
262
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-slide-two-col.cm-md-atxheading2:not(.cm-md-page-title), body.slides-printing .cm-md-slide-two-col.cm-md-atxheading2:not(.cm-md-page-title) {
263
+ font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
264
+ font-size: 0.85em;
265
+ font-weight: 600;
266
+ letter-spacing: 0.18em;
267
+ text-transform: uppercase;
268
+ color: var(--seed-accent);
269
+ }
270
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-slide-two-col .cm-md-strong, body.slides-printing .cm-md-slide-two-col .cm-md-strong {
271
+ font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
272
+ font-size: 0.95em;
273
+ font-weight: 600;
274
+ color: var(--text-color); /* summary-col strong:换面不加红 */
275
+ }
276
+
277
+ /* 1.6.5 section · P5(big stat,巨数字即短标题):stat-big 320px 红(倾斜 -6°
278
+ 未复刻)居中大留白;context 16px .7;三项小统计行以普通列表近似
279
+ (si-num 56px 墨黑 Shrikhand + SG 大写 label),无序号 */
280
+ body.presenting #editor[data-slide-layout='section'] .cm-content {
281
+ justify-content: center;
282
+ text-align: center;
283
+ }
284
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title, body.slides-printing .cm-md-slide-section.cm-md-page-title {
285
+ font-size: var(--slide-section-title-size);
286
+ line-height: 0.82;
287
+ color: var(--seed-accent);
288
+ margin-bottom: 0.1em; /* stat-row margin-top 5vh≈54px @320px */
289
+ }
290
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead, body.slides-printing .cm-md-slide-section.cm-md-page-lead {
291
+ font-size: 0.62em; /* stat-context 16px ÷26 */
292
+ line-height: 1.6;
293
+ opacity: 0.7;
294
+ max-width: 32em; /* 520px ÷16px */
295
+ margin: 0 auto;
296
+ }
297
+ body.presenting #editor .cm-content .cm-md-slide-section.cm-md-li-0, body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-li-0 {
298
+ display: inline-block;
299
+ width: 30%;
300
+ margin: 1.2em 1.5% 0;
301
+ vertical-align: top;
302
+ background: transparent;
303
+ border: none;
304
+ border-radius: 0;
305
+ box-shadow: none;
306
+ padding: 0;
307
+ font-size: 0.38em; /* si-label 10px ÷26 */
308
+ }
309
+ body.presenting #editor .cm-content .cm-md-slide-section .cm-md-listmark, body.slides-printing #editor .cm-content .cm-md-slide-section .cm-md-listmark {
310
+ display: none; /* stat-item 无记号 */
311
+ }
312
+ body.presenting #editor .cm-content .cm-md-slide-section .cm-md-strong, body.slides-printing #editor .cm-content .cm-md-slide-section .cm-md-strong {
313
+ font-family: var(--slide-title-font);
314
+ font-size: 5.66em; /* si-num 56px ÷26 ÷0.38 */
315
+ font-weight: 400;
316
+ line-height: 1;
317
+ color: var(--text-color); /* stat-item-num 墨黑(数字红留给 P4) */
318
+ }
319
+
320
+ /* 1.6.6 kpi · P4:页题 72px;六格数字卡 = 1.5px 墨边单元格 ×3 列(3px 网格外框
321
+ 无容器挂点——未复刻);红数字 52px Shrikhand + 说明 LB 13px;记号红(模板红弹) */
322
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title, body.slides-printing .cm-md-slide-kpi.cm-md-page-title {
323
+ font-size: 2.77em; /* fin-header 72px ÷26 */
324
+ }
325
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li-0, body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li-0 {
326
+ display: inline-block;
327
+ width: 32.6%;
328
+ margin: 0 0.7% 0.8em 0;
329
+ vertical-align: top;
330
+ background: transparent;
331
+ border: 1.5px solid var(--text-color); /* fin-cell 1.5px 墨边 */
332
+ border-radius: 0;
333
+ box-shadow: none;
334
+ padding: 1.7em 1.55em; /* fin-cell 22px/20px @13px 基准 */
335
+ font-size: 0.5em; /* fc-body 13px ÷26 */
336
+ }
337
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-listmark, body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-listmark {
338
+ color: var(--seed-accent);
339
+ }
340
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong, body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
341
+ font-family: var(--slide-title-font);
342
+ font-size: var(--slide-kpi-number-size); /* 52px ÷26 ÷0.5 */
343
+ font-weight: 400;
344
+ line-height: 1;
345
+ letter-spacing: 0;
346
+ color: var(--seed-accent); /* 数字红 = 模板数据声部 */
347
+ }
348
+
349
+ /* 1.6.7 matrix · P6:页题 64px;红左轨 4px 卡 ×2 列(左内距 18px);卡题 36px
350
+ Shrikhand 墨黑换行独占;卡内子弹(li-1)SG 12px 红记号在卡框外接排(行式
351
+ 限制注记);P9 global 卡同形不单列(2px 全边框差异未复刻) */
352
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content .cm-md-page-title, body.slides-printing .cm-md-slide-matrix.cm-md-page-title {
353
+ font-size: 2.46em; /* svc-header 64px ÷26 */
354
+ }
355
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li-0, body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li-0 {
356
+ display: inline-block;
357
+ width: 47.6%;
358
+ margin: 0 2.4% 1.7em 0;
359
+ vertical-align: top;
360
+ background: transparent;
361
+ border: none;
362
+ border-left: 4px solid var(--seed-accent); /* svc-card 红左轨 */
363
+ border-radius: 0;
364
+ box-shadow: none;
365
+ padding: 0 0 0 1.29em; /* padding-left 18px @14px 基准 */
366
+ font-size: 0.54em; /* svc-body 14px ÷26 */
367
+ }
368
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li-0 .cm-md-listmark, body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li-0 .cm-md-listmark {
369
+ display: none; /* 卡无记号 */
370
+ }
371
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong, body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
372
+ display: block;
373
+ font-family: var(--slide-title-font);
374
+ font-size: 2.56em; /* svc-title 36px ÷26 ÷0.54 */
375
+ font-weight: 400;
376
+ line-height: 1.1;
377
+ color: var(--text-color);
378
+ }
379
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li-1, body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li-1 {
380
+ font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
381
+ font-size: 0.46em; /* svc-bullets 12px ÷26 */
382
+ line-height: 1.45;
383
+ opacity: 0.75;
384
+ padding-left: 1.8em;
385
+ }
386
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li-1 .cm-md-listmark, body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li-1 .cm-md-listmark {
387
+ color: var(--seed-accent);
388
+ }
389
+
390
+ /* 1.6.8 steps · P7(roadmap,整页换墨黑 #1C1410):3px 红左轨 ×2 列阶段卡;
391
+ 序号位 = rm-label(SG 600 9px 红 .33em 大写);阶段题 32px 白;正文白 .65;
392
+ 子弹清单 SG 11px 白 .55;换底整链同 1.6.3,打印域 body.slides-printing:has(...) */
393
+ body.presenting:has(#editor[data-slide-layout='steps']), body.slides-printing:has(.cm-md-slide-steps) {
394
+ background: var(--seed-ink);
395
+ }
396
+ body.presenting #editor[data-slide-layout='steps'], body.slides-printing:has(.cm-md-slide-steps) #editor,
397
+ body.presenting #editor[data-slide-layout='steps'] .cm-editor, body.slides-printing:has(.cm-md-slide-steps) .cm-editor,
398
+ body.presenting #editor[data-slide-layout='steps'] .cm-scroller, body.slides-printing:has(.cm-md-slide-steps) .cm-scroller,
399
+ body.presenting #editor[data-slide-layout='steps'] .cm-content, body.slides-printing:has(.cm-md-slide-steps) .cm-content {
400
+ background: var(--seed-ink);
401
+ }
402
+ body.presenting #editor[data-slide-layout='steps'] .cm-content {
403
+ color: var(--bg-color);
404
+ justify-content: center;
405
+ text-align: center;
406
+ }
407
+ body.slides-printing .cm-md-slide-steps {
408
+ color: var(--bg-color);
409
+ text-align: center;
410
+ }
411
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-page-title, body.slides-printing .cm-md-slide-steps.cm-md-page-title {
412
+ color: var(--bg-color); /* 墨黑页上标题白 */
413
+ }
414
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li-0, body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li-0 {
415
+ display: inline-block;
416
+ width: 47.4%;
417
+ margin: 0 2.4% 1.6em 0;
418
+ vertical-align: top;
419
+ background: transparent;
420
+ border: none;
421
+ border-left: 3px solid var(--seed-accent); /* rm-phase 红左轨(暗面 3px 档) */
422
+ border-radius: 0;
423
+ box-shadow: none;
424
+ padding: 0 0 0 1.23em; /* padding-left 16px @13px 基准 */
425
+ font-size: 0.5em; /* rm-body 13px ÷26 */
426
+ text-align: left;
427
+ color: var(--bg-color);
428
+ }
429
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark, body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
430
+ font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
431
+ font-weight: 600;
432
+ font-size: 0.69em; /* rm-label 9px ÷26 ÷0.5 */
433
+ letter-spacing: 0.33em; /* rm-label 3px ÷9px */
434
+ text-transform: uppercase;
435
+ color: var(--seed-accent);
436
+ }
437
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong, body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
438
+ display: block;
439
+ font-family: var(--slide-title-font);
440
+ font-size: 2.46em; /* rm-title 32px ÷26 ÷0.5 */
441
+ font-weight: 400;
442
+ line-height: 1.1;
443
+ color: var(--bg-color);
444
+ }
445
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li-1, body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li-1 {
446
+ font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
447
+ font-size: 0.42em; /* rm-bullets 11px ÷26 */
448
+ line-height: 1.4;
449
+ opacity: 0.55;
450
+ padding-left: 1.8em;
451
+ text-align: left;
452
+ }
453
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li-1 .cm-md-listmark, body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li-1 .cm-md-listmark {
454
+ color: var(--seed-accent);
455
+ }
456
+ body.presenting:has(#editor[data-slide-layout='steps']) .slide-ghost {
457
+ opacity: 0; /* ghost=墨黑落墨黑页同色隐形 */
458
+ }
459
+ body.presenting #editor[data-slide-layout='steps'] .cm-md-table-widget td, body.slides-printing:has(.cm-md-slide-steps) .cm-md-table-widget td {
460
+ color: var(--bg-color);
461
+ }
462
+ body.presenting [data-slide-layout='steps'] .slide-chrome, body.slides-printing [data-slide-layout='steps'] .slide-chrome,
463
+ body.presenting [data-slide-layout='steps'] .slide-foot, body.slides-printing [data-slide-layout='steps'] .slide-foot {
464
+ color: var(--bg-color);
465
+ }
466
+
467
+ /* 1.6.9 agenda · P8(pillars → 行式近似):序号 = p-num 64px 红 Shrikhand;
468
+ 行题 28px + 说明 LB 14px;行间 3px 墨横轨(pillar 3px 竖轨转制);栏内子弹
469
+ 12px 发丝底线(1px rgba 8%)。三栏竖排切分/奇数栏 #F5F2EF 条纹——未复刻;
470
+ P8 无页题,标题走 1.6.1 默认声部 */
471
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li-0, body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li-0 {
472
+ font-size: 0.54em; /* p-lead 14px ÷26 */
473
+ border-top: none;
474
+ border-bottom: 3px solid var(--text-color); /* pillar 3px 墨轨 → 行间横轨 */
475
+ padding: 0.8em 0 1em;
476
+ margin: 0;
477
+ background: transparent;
478
+ }
479
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark, body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
480
+ font-family: var(--slide-title-font);
481
+ font-weight: 400;
482
+ font-size: 4.56em; /* p-num 64px ÷26 ÷0.54 */
483
+ line-height: 1;
484
+ color: var(--seed-accent);
485
+ margin-right: 0.3em;
486
+ }
487
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-strong, body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-strong {
488
+ font-family: var(--slide-title-font);
489
+ font-size: 1.99em; /* p-title 28px ÷26 ÷0.54 */
490
+ font-weight: 400;
491
+ line-height: 1.15;
492
+ color: var(--text-color);
493
+ }
494
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li-1, body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li-1 {
495
+ font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
496
+ font-size: 0.46em; /* p-bullets 12px ÷26 */
497
+ line-height: 1.45;
498
+ opacity: 0.75;
499
+ padding: 0.3em 0 0.3em 1.8em;
500
+ border-bottom: 1px solid rgba(28, 20, 16, 0.08); /* pillar 弹行发丝线 */
501
+ }
502
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li-1 .cm-md-listmark, body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li-1 .cm-md-listmark {
503
+ color: var(--seed-accent);
504
+ }
505
+
506
+ /* 1.6.10 closing · P10:close-big 260px 红(倾斜 -5° 未复刻)居中;副题 LB 18px;
507
+ 链接行 = SG 600 大写 .17em + 2px 红下划线(模板 footer link) */
508
+ body.presenting #editor[data-slide-layout='closing'] .cm-content {
509
+ justify-content: center;
510
+ text-align: center;
511
+ }
512
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-title, body.slides-printing .cm-md-slide-closing.cm-md-page-title {
513
+ font-size: var(--slide-closing-title-size);
514
+ line-height: 0.88;
515
+ color: var(--seed-accent);
516
+ margin-bottom: 0.16em; /* close-sub margin-top 4vh≈43px @260px */
517
+ }
518
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-lead, body.slides-printing .cm-md-slide-closing.cm-md-page-lead {
519
+ font-size: 0.69em; /* close-sub 18px ÷26 */
520
+ line-height: 1.6;
521
+ max-width: 29em; /* 520px ÷18px */
522
+ margin: 0 auto;
523
+ }
524
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li-0, body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li-0 {
525
+ display: inline-block;
526
+ width: auto;
527
+ margin: 4.5em 0.9em 0; /* close-links margin-top 5vh≈54px @12px */
528
+ background: transparent;
529
+ border: none;
530
+ border-bottom: 2px solid var(--seed-accent); /* link 2px 红下划线 */
531
+ border-radius: 0;
532
+ padding: 0 0 0.33em;
533
+ font-size: 0.46em; /* close-links 12px ÷26 */
534
+ }
535
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-listmark, body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-listmark {
536
+ display: none; /* 链接无序号 */
537
+ }
538
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-strong, body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-strong {
539
+ font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
540
+ font-size: 1em;
541
+ font-weight: 600;
542
+ letter-spacing: 0.17em; /* close-links 2px ÷12px */
543
+ text-transform: uppercase;
544
+ color: var(--text-color);
545
+ }
546
+
547
+ /* 1.6.11 chrome · counter/hint:Space Grotesk 600 11px 大写 .18em opacity .5;
548
+ 底部 5px 红色进度条(模板最显眼 chrome)无挂点——未复刻 */
549
+ body.presenting .slide-chrome, body.slides-printing .slide-chrome {
550
+ font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
551
+ font-weight: 600;
552
+ font-size: clamp(10px, 0.57vw, 11px);
553
+ letter-spacing: 0.18em;
554
+ color: var(--text-color);
555
+ }
556
+ body.presenting .slide-foot, body.slides-printing .slide-foot {
557
+ font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
558
+ font-size: clamp(9px, 0.52vw, 10px);
559
+ letter-spacing: 0.15em;
560
+ opacity: 0.5;
561
+ color: var(--text-color);
562
+ }
563
+
564
+ /* ═══════════════════════════════════════════════════════════
565
+ SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
566
+ ═══════════════════════════════════════════════════════════ */
567
+
568
+ #editor .cm-content {
569
+ font-family: var(--font-body);
570
+ line-height: 1.75; /* design.md body lh 1.75 */
571
+ color: var(--text-color);
572
+ }
573
+
574
+ /* ── 2.1 Headings(Shrikhand 400:仅 400 一档,生成版 700 为误;
575
+ h6 = SG 红眉标声部,模板 "every section eyebrow is red")── */
576
+ #editor .cm-content .cm-md-atxheading1,
577
+ #editor .cm-content .cm-md-atxheading2,
578
+ #editor .cm-content .cm-md-atxheading3,
579
+ #editor .cm-content .cm-md-atxheading4,
580
+ #editor .cm-content .cm-md-atxheading5,
581
+ #editor .cm-content .cm-md-atxheading6 {
582
+ font-family: "Shrikhand", "Noto Serif SC", serif;
583
+ color: var(--text-color);
584
+ font-weight: 400;
585
+ line-height: 1.2;
586
+ letter-spacing: 0;
587
+ }
588
+
589
+ #editor .cm-content .cm-md-atxheading1 { font-size: 2.4em; }
590
+ #editor .cm-content .cm-md-atxheading2 { font-size: 1.7em; }
591
+ #editor .cm-content .cm-md-atxheading3 { font-size: 1.4em; }
592
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1.2em; }
593
+ #editor .cm-content .cm-md-atxheading5 { font-size: 1.05em; }
594
+ #editor .cm-content .cm-md-atxheading6 {
595
+ font-size: 0.85em;
596
+ font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
597
+ font-weight: 600;
598
+ letter-spacing: 0.18em; /* label 2px ÷11px 档 */
599
+ text-transform: uppercase;
600
+ color: var(--seed-accent);
601
+ }
602
+
603
+ /* ── 2.2 Inline ──
604
+ strong = 换面不加色(design.md:"body strong switches face to Space
605
+ Grotesk 600",颜色保持墨黑);记号/弹点一律红(模板红弹纪律)。 */
606
+ #editor .cm-content .cm-md-strong {
607
+ font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
608
+ font-size: 0.95em;
609
+ font-weight: 600;
610
+ color: var(--text-color);
611
+ }
612
+ #editor .cm-content .cm-md-em { font-style: italic; }
613
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; }
614
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
615
+ #editor .cm-content .cm-md-link { color: var(--link-color); }
616
+ #editor .cm-content .cm-md-url { color: var(--text-muted); }
617
+
618
+ #editor .cm-content .cm-md-inlinecode {
619
+ font-family: var(--font-mono);
620
+ background: var(--code-bg);
621
+ color: var(--text-color);
622
+ border-radius: 0; /* 方角纪律 */
623
+ }
624
+
625
+ #editor .cm-content .cm-md-marker,
626
+ #editor .cm-content .cm-md-quotemark,
627
+ #editor .cm-content .cm-md-listmark,
628
+ #editor .cm-content .cm-md-li-bullet {
629
+ color: var(--seed-accent);
630
+ }
631
+
632
+ /* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
633
+ 引用 = 红左轨卡(4px + 18px 左内距),底色透明(--blockquote-bg)。 */
634
+ #editor .cm-content .cm-md-blockquote {
635
+ color: var(--text-secondary);
636
+ border-left: 4px solid var(--blockquote-border);
637
+ padding-left: 18px;
638
+ padding-right: 16px;
639
+ }
640
+
641
+ #editor .cm-content .cm-md-codeblock {
642
+ background: var(--code-block-bg);
643
+ color: var(--code-block-text);
644
+ padding-left: 16px;
645
+ padding-right: 16px;
646
+ }
647
+ #editor .cm-content .cm-md-codeblock-first,
648
+ #editor .cm-content .cm-md-codeblock-last {
649
+ border-radius: 0; /* 覆盖上游 6px,方角纪律 */
650
+ }
651
+
652
+ /* ── 2.4 Table / Rule(模板墨线表格:th = SG 大写 label + 2px 墨底线)── */
653
+ #editor .cm-content .cm-md-table-widget th,
654
+ #editor .cm-content .cm-md-table-widget td {
655
+ padding: 10px 14px;
656
+ border-color: rgba(28, 20, 16, 0.15);
657
+ }
658
+ #editor .cm-content .cm-md-table-widget th {
659
+ background: var(--table-header-bg);
660
+ color: var(--text-color);
661
+ font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
662
+ font-size: 0.78em;
663
+ font-weight: 600;
664
+ letter-spacing: 0.18em;
665
+ text-transform: uppercase;
666
+ border-bottom: 2px solid var(--seed-border-strong);
667
+ }
668
+ #editor .cm-content .cm-md-hr { border-top: 2px solid var(--seed-border-strong); }
669
+
670
+ /* ── 2.5 中文首行缩进 ──
671
+ CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
672
+ #editor .cm-content .cm-line { text-indent: 2em; }
673
+
674
+ #editor .cm-content .cm-md-atxheading1,
675
+ #editor .cm-content .cm-md-atxheading2,
676
+ #editor .cm-content .cm-md-atxheading3,
677
+ #editor .cm-content .cm-md-atxheading4,
678
+ #editor .cm-content .cm-md-atxheading5,
679
+ #editor .cm-content .cm-md-atxheading6,
680
+ #editor .cm-content .cm-md-blockquote,
681
+ #editor .cm-content .cm-md-codeblock,
682
+ #editor .cm-content .cm-md-hr,
683
+ #editor .cm-content .cm-md-mermaid,
684
+ #editor .cm-content .cm-md-li-0,
685
+ #editor .cm-content .cm-md-li-1,
686
+ #editor .cm-content .cm-md-li-2,
687
+ #editor .cm-content .cm-md-li-3,
688
+ #editor .cm-content .cm-md-li-4,
689
+ #editor .cm-content .cm-md-li-5,
690
+ #editor .cm-content .cm-md-li-6 {
691
+ text-indent: 0;
692
+ }
693
+
694
+ /* ═══════════════════════════════════════════════════════════
695
+ SECTION 3 — Exported HTML(.colamd-document,语义标签)
696
+ HTML/PDF 导出不走编辑器 DOM;这段与 SECTION 2 镜像同步。
697
+ ═══════════════════════════════════════════════════════════ */
698
+
699
+ .colamd-document {
700
+ font-family: var(--font-body);
701
+ font-size: var(--editor-font-size);
702
+ line-height: 1.75;
703
+ background: var(--bg-color);
704
+ color: var(--text-color);
705
+ }
706
+
707
+ .colamd-document h1,
708
+ .colamd-document h2,
709
+ .colamd-document h3,
710
+ .colamd-document h4,
711
+ .colamd-document h5,
712
+ .colamd-document h6 {
713
+ font-family: "Shrikhand", "Noto Serif SC", serif;
714
+ color: var(--text-color);
715
+ font-weight: 400;
716
+ line-height: 1.2;
717
+ letter-spacing: 0;
718
+ margin: 1.5em 0 0.5em;
719
+ }
720
+ .colamd-document h1 { font-size: 2.4em; margin-top: 0.4em; }
721
+ .colamd-document h2 { font-size: 1.7em; }
722
+ .colamd-document h3 { font-size: 1.4em; }
723
+ .colamd-document h4 { font-size: 1.2em; }
724
+ .colamd-document h5 { font-size: 1.05em; }
725
+ .colamd-document h6 {
726
+ font-size: 0.85em;
727
+ font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
728
+ font-weight: 600;
729
+ letter-spacing: 0.18em;
730
+ text-transform: uppercase;
731
+ color: var(--seed-accent);
732
+ }
733
+
734
+ .colamd-document strong {
735
+ font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
736
+ font-size: 0.95em;
737
+ font-weight: 600;
738
+ color: var(--text-color);
739
+ }
740
+ .colamd-document code {
741
+ background: var(--code-bg);
742
+ color: var(--text-color);
743
+ font-family: var(--font-mono);
744
+ border-radius: 0;
745
+ }
746
+ /* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
747
+ .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
748
+ .colamd-document pre { background: var(--code-block-bg); }
749
+ .colamd-document pre code { color: var(--code-block-text); }
750
+ .colamd-document blockquote {
751
+ background: transparent;
752
+ color: var(--text-secondary);
753
+ border-left: 4px solid var(--blockquote-border);
754
+ padding: 0.5em 1.2em 0.5em 18px;
755
+ }
756
+ .colamd-document mark { background: var(--highlight-bg); }
757
+ .colamd-document th,
758
+ .colamd-document td {
759
+ border-color: rgba(28, 20, 16, 0.15);
760
+ padding: 10px 14px;
761
+ }
762
+ .colamd-document th {
763
+ background: var(--table-header-bg);
764
+ font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
765
+ font-size: 0.78em;
766
+ font-weight: 600;
767
+ letter-spacing: 0.18em;
768
+ text-transform: uppercase;
769
+ border-bottom: 2px solid var(--seed-border-strong);
770
+ }
771
+ .colamd-document hr { border-top: 2px solid var(--seed-border-strong); }
772
+
773
+ .colamd-document p { text-indent: 2em; }
774
+ .colamd-document li p,
775
+ .colamd-document td p,
776
+ .colamd-document th p,
777
+ .colamd-document blockquote p {
778
+ text-indent: 0;
779
+ }
780
+
781
+ /* ═══════════════════════════════════════════════════════════
782
+ SECTION 4 — Print
783
+ 应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
784
+ ═══════════════════════════════════════════════════════════ */
785
+
786
+ @media print {
787
+ html,
788
+ body {
789
+ background: var(--bg-color);
790
+ color: var(--text-color);
791
+ -webkit-print-color-adjust: exact;
792
+ print-color-adjust: exact;
793
+ }
794
+ }