@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
package/themes/mat.css ADDED
@@ -0,0 +1,848 @@
1
+ /*
2
+ * ColaMD Theme: Mat(工坊垫 · 手工精修版,逐页版式复刻)
3
+ * 深森林绿画布 + 骨白无衬线正文 + 焦橙点缀;中古现代主义,底部右侧木棕光晕。
4
+ * 来源:D:\workspace\git\beautiful-html-templates\templates\mat\template.html(9 页)
5
+ * + design.md(Bricolage Grotesque 800 混合大小写巨题 / DM Sans 正文 /
6
+ * DM Mono 标签大写 .12em / 1px 低透明奶油发丝线 / 零圆角零阴影)
7
+ * colors: bg #232E26 / bg-alt #2E3D30 / cream #EDE6D0 / cream-alt #E4DAC4
8
+ * fg #F0E8D2 / fg-2 rgba(240,232,210,.58) / fg-3 rgba(...,.3)
9
+ * ink-dark #1E2820 / accent #C07030 / wood #7A4E24
10
+ * fonts: Bricolage Grotesque(display/h1/h2/h3)/ DM Sans(正文)/
11
+ * DM Mono(kicker/label/chrome)
12
+ * 由工具生成版(from-html 提取)精修为逐页复刻版;生成版的缺陷修复:
13
+ * h1 2em < h2 1.125em 的倒挂阶梯、h1/h2 文档式下划线(模板无)、
14
+ * strong 用 accent(模板正文 strong 是正文色)、accent 三档重复、
15
+ * ink-dim=ink-muted、blockquote/代码块 6px 圆角(模板零圆角)。
16
+ *
17
+ * paradigm 备案(校验基准 src/templates/theme-paradigm.md §7):
18
+ * SL-01 —— surface #232E26 饱和度 13.6% > 5%(ERROR,有意保留):深森林绿
19
+ * 是模板第一身份("Dark forest green as the dominant environment"),
20
+ * 中性化后不再有森林绿;panel/panel-alt 已按同色相轴(H136.4°)收敛到
21
+ * S 9.9%/8.0%,不再叠加 SL-02。
22
+ * CR-04 —— 模板 accent #C07030 对 #232E26 仅 3.8:1,但模板用橙色做 kicker 文字:
23
+ * 已修(可修则修)——seed-accent 提亮到 #D4853F(4.85:1,同 H26°),
24
+ * 橙色块/线/巨引号一并沿用;奶油页上的橙色文字再压暗到 #94521D(4.5:1)。
25
+ * NT-03 —— border #6C6F6A 饱和度 4.5% ≤5%,通过。
26
+ * 未复刻项(行式 DOM 无挂点,逐条见 SECTION 1.5/1.6 注释):木棕径向光晕、
27
+ * 右缘竖排 side-label、封面 info-card 的右栏 attribution、收页奶油 info-card、
28
+ * end-foot 落款条、图表 bar-track、stat 单元格末格去边、chrome 在
29
+ * cover/quote/closing 的抑制。
30
+ *
31
+ * 契约:ColaMD Extend 2.7.13(CodeMirror 6 编辑器 + Pele 图表引擎)
32
+ *
33
+ * 两条硬规矩:
34
+ * 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
35
+ * 编辑器继承不到。
36
+ * 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
37
+ * 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
38
+ * 并且引用/代码块**不能加纵向 padding**——那会按行累加。
39
+ *
40
+ * ═══════════════════════════════════════════════════════════
41
+ * SECTION 1 — Design Tokens
42
+ * 改 11 个种子色 + 3 组字体即可换一套主题
43
+ * ═══════════════════════════════════════════════════════════ */
44
+
45
+ :root {
46
+
47
+ /* ── 1.1 Seed Palette ──
48
+ 本工具的再生成与校验读这一层;编辑器不消费。
49
+ 明度排序(SL-04 深色范式):surface < panel < panelAlt;
50
+ panel 三层同 H136.4°(SL-03),S ≤10%(SL-02)。 */
51
+ --seed-accent: #d4853f; /* 模板 #C07030 提亮档(4.85:1,CR-04 过线) */
52
+ --seed-accent-light: #e2a06d; /* 派生提亮档 */
53
+ --seed-accent-dark: #c07030; /* 模板原色,供深色底上的色块/线备查 */
54
+ --seed-surface: #232e26; /* bg —— 深森林绿(SL-01 身份,见头注) */
55
+ --seed-panel: #323d35; /* bg-alt 收饱和档(L 21.8%,S 9.9%) */
56
+ --seed-panel-alt: #3f4a42; /* 再上一阶(L 26.9%,S 8.0%) */
57
+ --seed-ink: #f0e8d2; /* fg —— 暖骨白 */
58
+ --seed-ink-muted: #beb498; /* fg-2 合成档(H44,6.8:1) */
59
+ --seed-ink-dim: #a89f86; /* fg-3 加深档(H44,5.3:1,CR-02 过线) */
60
+ --seed-border: #6c6f6a; /* 奶油发丝线加深档(NT-02/NT-03 过线) */
61
+ --seed-border-strong: #8d918a; /* hr/th 强线档 */
62
+
63
+ /* ── 1.2 Semantic Colors(活变量)── */
64
+ --bg-color: var(--seed-surface);
65
+ --text-color: var(--seed-ink);
66
+ --text-secondary: var(--seed-ink-muted);
67
+ --text-muted: var(--seed-ink-dim);
68
+ --border-color: var(--seed-border);
69
+ --link-color: var(--seed-accent); /* 4.85:1(CR-04) */
70
+
71
+ --code-bg: var(--seed-panel);
72
+ --code-block-bg: var(--seed-panel-alt);
73
+ --code-block-text: var(--seed-ink); /* 模板:奶油字,不用纯白 */
74
+
75
+ --blockquote-border: var(--seed-border); /* 模板:1px 低透明奶油发丝 */
76
+ --blockquote-bg: var(--seed-panel);
77
+ --table-header-bg: var(--seed-panel);
78
+
79
+ --selection-bg: rgba(212, 133, 63, 0.28); /* 焦橙半透明选区 */
80
+ --highlight-bg: rgba(212, 133, 63, 0.28);
81
+
82
+ /* ── 1.3 Typography & Metrics(活变量)──
83
+ Bricolage Grotesque 400-800(display 800 / h1 800 / h2 700 / h3 600),
84
+ display 永远混合大小写;大写只留给 DM Mono 标签。 */
85
+ --font-body: "DM Sans", "Noto Sans SC", sans-serif;
86
+ --font-mono: "DM Mono", "Noto Sans Mono CJK SC", monospace;
87
+ --editor-font-size: 16px;
88
+ --editor-column-width: 820px;
89
+
90
+ /* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
91
+ 图画在代码块底色上,所以底色与字色都从 --code-block-* 推导。 */
92
+ --pele-bg: var(--code-block-bg);
93
+ --pele-fg: var(--code-block-text);
94
+ --pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
95
+ --pele-line: var(--code-block-text);
96
+ --pele-surface: color-mix(in srgb, var(--code-block-text) 14%, var(--code-block-bg));
97
+ --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 24%, var(--code-block-bg));
98
+ --pele-border: color-mix(in srgb, var(--code-block-text) 40%, var(--code-block-bg));
99
+ --pele-accent: var(--seed-accent); /* 图表唯一高亮条(模板 bar-fill.accent) */
100
+ --pele-radius: 0px; /* 模板:零圆角、零阴影 */
101
+ }
102
+
103
+ /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 mat 九页逐页复刻)──
104
+ 换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
105
+ 模板全 vw/vh 流式,@1920×1080:1vw=19.2px、1vh=10.8px,px ÷ 26 = em。
106
+ 字体体系:Bricolage Grotesque(display 12vw=230.4px / h1 7vw=134.4px /
107
+ h2 4vw=76.8px / h3 2.4vw=46.1px)+ DM Sans(lead 1.5vw=28.8px /
108
+ body 1.05vw=20.2px / caption .82vw=15.7px)+ DM Mono(label .7vw=13.4px,
109
+ 大写 .12em)。页面对照(9 页 → 8 版式):
110
+ cover←P1(cover) section←P2(statement, h1 134px 声明)
111
+ two-col←P7(compare, 左右面板 + 中缝 1px)
112
+ kpi←P4(stats) quote←P5(quote)
113
+ agenda←P6(list, 唯一奶油底页) figure←P3(split)+P8(chart)
114
+ closing←P9(end)
115
+ (timeline/steps/matrix 无对应页,保持上游默认。
116
+ P3 split 的三栏(文|图|文)与 P8 chart 的柱状图共用 figure,结构最贴;
117
+ 木棕光晕/竖排 side-label/巨引号外的装饰见 SECTION 1.6 注释) */
118
+ :root {
119
+ --slide-mono: "DM Mono", "Noto Sans Mono CJK SC", monospace;
120
+ --slide-title-font: "Bricolage Grotesque", "Noto Sans SC", sans-serif;
121
+ --slide-title-size: 2.95em; /* h2 4vw=76.8px ÷26(P3/P4/P6/P8) */
122
+ --slide-title-weight: 700;
123
+ --slide-subhead-weight: 800; /* h1 字号档字重 800 */
124
+ --slide-title-tracking: -0.02em; /* 模板 .h2 字距 */
125
+ --slide-title-line-height: 1; /* 模板 .h2 line-height 1 */
126
+ --slide-cover-title-size: 8.86em; /* display 12vw=230.4px ÷26 */
127
+ --slide-cover-title-line-height: 0.88;
128
+ --slide-cover-title-tracking: -0.03em;
129
+ --slide-section-title-size: 5.17em; /* P2 h1 7vw=134.4px ÷26 */
130
+ --slide-closing-title-size: 5.17em; /* P9 h1 7vw=134.4px ÷26 */
131
+ --slide-lead-size: 1.11em; /* lead 1.5vw=28.8px ÷26 */
132
+ --slide-kicker-size: clamp(11px, 0.7vw, 14px); /* label .7vw=13.4px @1920 */
133
+ --slide-kicker-tracking: 0.12em; /* 模板 .label/.kicker .12em */
134
+ --slide-kicker-transform: uppercase;
135
+ --slide-chrome-opacity: 0.58; /* chrome = fg-2 cream 58% */
136
+ --slide-chrome-transform: uppercase;
137
+ --slide-kpi-number-size: 5.24em; /* stat 5.5vw=105.6px ÷26 ÷0.7755(li) */
138
+ --slide-quote-size: 2.51em; /* quote-text 3.4vw=65.3px ÷26 */
139
+ --slide-page-pad-x: 5.5vw; /* 模板 pad-x */
140
+ --slide-page-top-pad: 58px; /* pad-y 5.5vh=59px@1080 − chrome 安全区 */
141
+ --slide-page-top-pad-print: 50px;
142
+ --slide-cover-text-align: left;
143
+ --slide-cover-lead-inline: auto;
144
+ }
145
+
146
+ /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
147
+ body.presenting / body.slides-printing 作用域) ═══════════════ */
148
+
149
+ /* 1.6.1 页标题声部对齐:Bricolage Grotesque 700 骨白、贴顶行高、负字距;
150
+ 压掉文档式 h1/h2 下划线(编辑器规则带 id 权重会漏进放映);
151
+ kicker 统一 DM Mono 大写 .12em 焦橙(模板 .kicker / .label) */
152
+ body.presenting #editor .cm-content .cm-md-page-title,
153
+ body.slides-printing #editor .cm-content .cm-md-page-title {
154
+ font-family: var(--slide-title-font);
155
+ font-size: var(--slide-title-size);
156
+ font-weight: var(--slide-title-weight);
157
+ line-height: var(--slide-title-line-height);
158
+ letter-spacing: var(--slide-title-tracking);
159
+ color: var(--text-color);
160
+ border-bottom: none;
161
+ padding-bottom: 0;
162
+ margin-bottom: 0.45em;
163
+ text-indent: 0;
164
+ }
165
+ body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
166
+ body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
167
+ font-family: var(--slide-mono);
168
+ font-size: var(--slide-kicker-size);
169
+ font-weight: 400;
170
+ letter-spacing: var(--slide-kicker-tracking);
171
+ text-transform: uppercase;
172
+ color: var(--seed-accent);
173
+ opacity: 1;
174
+ }
175
+ /* 页首 directive 块与页导语都不参与正文首行缩进 */
176
+ body.presenting #editor .cm-content .cm-md-slide-directive,
177
+ body.slides-printing #editor .cm-content .cm-md-slide-directive,
178
+ body.presenting #editor .cm-content .cm-md-page-lead,
179
+ body.slides-printing #editor .cm-content .cm-md-page-lead {
180
+ text-indent: 0;
181
+ }
182
+
183
+ /* 1.6.2 cover · P1:左上 230px 巨题(display 8.86em,混合大小写)+ 右栏 lead
184
+ 副题(1.5vw 58% cream);底部左对齐的奶油 info-card 由唯一自由文本块
185
+ (page-lead)自绘;右侧 attribution label 与木棕光晕无挂点(未复刻) */
186
+ body.presenting #editor[data-slide-layout='cover'] .cm-content,
187
+ body.slides-printing:has(.cm-md-slide-cover) .cm-content {
188
+ justify-content: flex-start;
189
+ }
190
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
191
+ body.slides-printing .cm-md-slide-cover.cm-md-page-title {
192
+ font-size: var(--slide-cover-title-size);
193
+ font-weight: 800;
194
+ line-height: var(--slide-cover-title-line-height);
195
+ letter-spacing: var(--slide-cover-title-tracking);
196
+ max-width: 9ch;
197
+ }
198
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-atxheading2:not(.cm-md-page-title),
199
+ body.slides-printing #editor .cm-content .cm-md-slide-cover .cm-md-atxheading2:not(.cm-md-page-title) {
200
+ font-family: var(--font-body);
201
+ font-size: var(--slide-lead-size);
202
+ font-weight: 400;
203
+ line-height: 1.55;
204
+ letter-spacing: 0;
205
+ color: var(--text-secondary);
206
+ max-width: 40%;
207
+ }
208
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
209
+ body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
210
+ margin-top: 2em;
211
+ width: 28vw; /* info-card max-width 28vw */
212
+ max-width: 100%;
213
+ padding: 0.9em 1.3em; /* gap-md / pad-x*0.8 近似 */
214
+ background: #ede6d0; /* 奶油嵌板(模板标志性材质对比) */
215
+ color: #1e2820;
216
+ font-size: 0.7755em; /* info-card-body 1.05vw=20.2px ÷26 */
217
+ line-height: 1.6;
218
+ text-indent: 0;
219
+ }
220
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead .cm-md-strong,
221
+ body.slides-printing .cm-md-slide-cover .cm-md-page-lead .cm-md-strong {
222
+ color: #1e2820;
223
+ }
224
+
225
+ /* 1.6.3 section · P2(statement):134px 声明 + 58% cream 导语 + 橙色 mono
226
+ 破折号清单行(1.5vw);模板 1.1fr/1fr 双栏为 grid,行式 DOM 单栏——
227
+ 用 max-width 与字阶近似左声明/右文案的声部分配 */
228
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title,
229
+ body.slides-printing .cm-md-slide-section.cm-md-page-title {
230
+ font-size: var(--slide-section-title-size);
231
+ font-weight: 800;
232
+ line-height: 0.92;
233
+ letter-spacing: -0.025em;
234
+ max-width: 12ch;
235
+ }
236
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
237
+ body.slides-printing .cm-md-slide-section.cm-md-page-lead {
238
+ font-size: var(--slide-lead-size);
239
+ line-height: 1.55;
240
+ color: var(--text-secondary);
241
+ max-width: 46ch;
242
+ }
243
+ body.presenting #editor .cm-content .cm-md-slide-section.cm-md-li,
244
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-li {
245
+ font-size: var(--slide-lead-size); /* bullet-list li 1.5vw=28.8px ÷26 */
246
+ line-height: 1.5;
247
+ color: var(--text-secondary);
248
+ background: transparent;
249
+ border: none;
250
+ margin: 0 0 1.1em 0;
251
+ }
252
+ body.presenting #editor .cm-content .cm-md-slide-section .cm-md-listmark,
253
+ body.slides-printing #editor .cm-content .cm-md-slide-section .cm-md-listmark {
254
+ font-family: var(--slide-mono);
255
+ color: var(--seed-accent); /* 模板破折号标记为焦橙 mono */
256
+ margin-right: 0.5em;
257
+ }
258
+
259
+ /* 1.6.4 two-col · P7(compare):左右面板 46px Bricolage 600 面板题 +
260
+ 1px 奶油发丝中缝(column-rule 复刻 compare-divider-line)+ 58% cream
261
+ 导语 + 20px 清单;Before/After 标签的「After 切橙」无单侧挂点(未复刻,
262
+ 统一走 compare-label 压淡档) */
263
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content {
264
+ column-gap: 8vw; /* 左右各 pad-x 105.6px 的内距 */
265
+ column-rule: 1px solid rgba(240, 232, 210, 0.12); /* compare-divider-line */
266
+ }
267
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-title,
268
+ body.slides-printing .cm-md-slide-two-col.cm-md-page-title {
269
+ font-size: 1.77em; /* 面板题 h3 2.4vw=46.1px ÷26 */
270
+ font-weight: 600;
271
+ line-height: 1.1;
272
+ letter-spacing: -0.01em;
273
+ }
274
+ body.presenting #editor .cm-content .cm-md-slide-two-col.cm-md-atxheading2:not(.cm-md-page-title),
275
+ body.slides-printing #editor .cm-content .cm-md-slide-two-col.cm-md-atxheading2:not(.cm-md-page-title) {
276
+ font-size: 1.77em; /* 两个 h2 面板题同 h3 档 */
277
+ font-weight: 600;
278
+ line-height: 1.1;
279
+ letter-spacing: -0.01em;
280
+ color: var(--text-color);
281
+ }
282
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-lead,
283
+ body.slides-printing .cm-md-slide-two-col.cm-md-page-lead {
284
+ font-size: var(--slide-lead-size);
285
+ line-height: 1.55;
286
+ color: var(--text-secondary);
287
+ max-width: none;
288
+ }
289
+ body.presenting #editor .cm-content .cm-md-slide-two-col.cm-md-li,
290
+ body.slides-printing #editor .cm-content .cm-md-slide-two-col.cm-md-li {
291
+ font-size: 0.7755em; /* 面板清单 1.05vw=20.2px ÷26 */
292
+ line-height: 1.65;
293
+ color: var(--text-secondary);
294
+ background: transparent;
295
+ border: none;
296
+ margin: 0 0 0.9em 0;
297
+ }
298
+ body.presenting #editor .cm-content .cm-md-slide-two-col .cm-md-listmark,
299
+ body.slides-printing #editor .cm-content .cm-md-slide-two-col .cm-md-listmark {
300
+ font-family: var(--slide-mono);
301
+ color: var(--seed-accent);
302
+ margin-right: 0.45em;
303
+ }
304
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
305
+ body.slides-printing .cm-md-slide-two-col .cm-md-page-title[data-slide-kicker]::before {
306
+ letter-spacing: 0.14em; /* .compare-label .14em */
307
+ color: var(--text-muted); /* fg-3 压淡档 */
308
+ }
309
+
310
+ /* 1.6.5 kpi · P4(stats):76.8px 页题 + 三格统计;格间 1px 奶油发丝竖线
311
+ (mat-stat border-right),数值 105.6px Bricolage 800 骨白、行高 1、
312
+ 字距 -.025em,格说明 20.2px 58% cream;末格去边与垂直居中未复刻 */
313
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title,
314
+ body.slides-printing .cm-md-slide-kpi.cm-md-page-title {
315
+ margin-bottom: 1.87em; /* gap-lg 4.5vh=48.6px ÷26 */
316
+ }
317
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
318
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
319
+ display: inline-block;
320
+ width: 32%;
321
+ vertical-align: top;
322
+ font-size: 0.7755em; /* stat-label 1.05vw=20.2px ÷26 */
323
+ line-height: 1.5;
324
+ color: var(--text-secondary);
325
+ background: transparent;
326
+ border: none;
327
+ border-right: 1px solid rgba(240, 232, 210, 0.12);
328
+ border-radius: 0;
329
+ box-shadow: none;
330
+ padding: 0 4.5% 0 0;
331
+ margin: 0 0 1.2em 0;
332
+ }
333
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
334
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
335
+ display: block;
336
+ font-family: var(--slide-title-font);
337
+ font-size: var(--slide-kpi-number-size);
338
+ font-weight: 800;
339
+ line-height: 1;
340
+ letter-spacing: -0.025em;
341
+ color: var(--text-color);
342
+ margin-bottom: 0.3em;
343
+ }
344
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-em,
345
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-em {
346
+ font-style: normal;
347
+ color: var(--seed-accent); /* mat-stat-val em 切橙 */
348
+ }
349
+
350
+ /* 1.6.6 quote · P5(quote):65.3px Bricolage 600 骨白金句(非衬线、非斜体),
351
+ 70% 栏宽;焦橙巨引号 153.6px(::before 近似 quote-mark);署名行 =
352
+ 13.4px DM Mono 大写 .12em 橙(.label.accent) */
353
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
354
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
355
+ font-family: var(--slide-title-font);
356
+ font-size: var(--slide-quote-size);
357
+ font-weight: 600;
358
+ line-height: 1.2;
359
+ letter-spacing: -0.02em;
360
+ color: var(--text-color);
361
+ background: transparent;
362
+ padding-left: 0;
363
+ padding-right: 0;
364
+ max-width: 70%; /* .quote-text max-width 70% */
365
+ }
366
+ body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
367
+ body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
368
+ font-family: var(--slide-title-font);
369
+ font-size: 5.9em; /* quote-mark 8vw=153.6px ÷26 */
370
+ font-weight: 800;
371
+ line-height: 0.6;
372
+ color: var(--seed-accent);
373
+ margin-bottom: 0.2em;
374
+ }
375
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
376
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
377
+ margin-top: 1.9em; /* gap-lg 48.6px ÷26(CSS-03:只走 margin) */
378
+ font-family: var(--slide-mono);
379
+ font-size: 0.52em; /* .label 13.4px ÷26 */
380
+ font-weight: 400;
381
+ letter-spacing: 0.12em;
382
+ text-transform: uppercase;
383
+ color: var(--seed-accent);
384
+ }
385
+
386
+ /* 1.6.7 agenda · P6(list,全篇唯一奶油纸页 / 孤立点法):
387
+ 整页换 #EDE6D0,正文切 #1E2820——底色必须打满整条层叠链
388
+ (body / #editor / .cm-editor / .cm-scroller / .cm-content 五层,漏 #editor
389
+ 会被平台暗绿底反盖);奶油页上 ghost(= var(--text-color) 奶油)同色隐形
390
+ → opacity:0;td 换纸面墨色。kicker 橙色压暗到 #94521D 保 4.5:1(CR-04) */
391
+ body.presenting:has(#editor[data-slide-layout='agenda']),
392
+ body.slides-printing:has(.cm-md-slide-agenda) {
393
+ background: #ede6d0;
394
+ }
395
+ body.presenting #editor[data-slide-layout='agenda'],
396
+ body.presenting #editor[data-slide-layout='agenda'] .cm-editor,
397
+ body.presenting #editor[data-slide-layout='agenda'] .cm-scroller,
398
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content,
399
+ body.slides-printing:has(.cm-md-slide-agenda) #editor,
400
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-editor,
401
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-scroller,
402
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-content {
403
+ background: #ede6d0;
404
+ }
405
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content,
406
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-content {
407
+ color: #1e2820;
408
+ }
409
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content .cm-md-page-title,
410
+ body.slides-printing .cm-md-slide-agenda.cm-md-page-title {
411
+ color: #1e2820;
412
+ max-width: 22ch;
413
+ }
414
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content .cm-md-page-lead,
415
+ body.slides-printing .cm-md-slide-agenda.cm-md-page-lead {
416
+ font-size: var(--slide-lead-size);
417
+ line-height: 1.55;
418
+ color: #4c574d; /* ink-dark-2 60% 合成档 */
419
+ max-width: 46ch;
420
+ }
421
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
422
+ body.slides-printing .cm-md-slide-agenda .cm-md-page-title[data-slide-kicker]::before {
423
+ color: #94521d; /* 奶油纸上 4.5:1 的焦橙深档 */
424
+ }
425
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
426
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
427
+ font-size: var(--slide-lead-size); /* bullet-list li 1.5vw=28.8px ÷26 */
428
+ line-height: 1.5;
429
+ color: #1e2820;
430
+ background: transparent;
431
+ border: none;
432
+ margin: 0 0 1.16em 0; /* gap-md 2.8vh=30px ÷26 */
433
+ }
434
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
435
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
436
+ font-family: var(--slide-mono);
437
+ color: #c07030; /* 模板橙色破折号标记(非文字正文) */
438
+ margin-right: 0.5em;
439
+ }
440
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content .cm-md-strong,
441
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-md-strong {
442
+ color: #1e2820;
443
+ }
444
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content .cm-md-link,
445
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-md-link {
446
+ color: #94521d;
447
+ }
448
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content .cm-md-url,
449
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-md-url {
450
+ color: rgba(30, 40, 32, 0.45);
451
+ }
452
+ body.presenting:has(#editor[data-slide-layout='agenda']) .slide-ghost,
453
+ body.slides-printing:has(.cm-md-slide-agenda) .slide-ghost {
454
+ opacity: 0;
455
+ }
456
+ body.presenting:has(#editor[data-slide-layout='agenda']) .slide-chrome,
457
+ body.presenting:has(#editor[data-slide-layout='agenda']) .slide-foot,
458
+ body.slides-printing:has(.cm-md-slide-agenda) .slide-chrome,
459
+ body.slides-printing:has(.cm-md-slide-agenda) .slide-foot {
460
+ color: #1e2820;
461
+ opacity: 0.3; /* fg-light-3 档 */
462
+ }
463
+ body.presenting #editor[data-slide-layout='agenda'] .cm-md-table-widget td,
464
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-md-table-widget td {
465
+ color: #1e2820; /* 奶油页 td 换纸面墨色 */
466
+ }
467
+ body.presenting #editor[data-slide-layout='agenda'] .cm-md-table-widget th,
468
+ body.presenting #editor[data-slide-layout='agenda'] .cm-md-table-widget td,
469
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-md-table-widget th,
470
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-md-table-widget td {
471
+ border-color: rgba(30, 40, 32, 0.14); /* border-on-cream */
472
+ }
473
+
474
+ /* 1.6.8 figure · P3(split)+ P8(chart):76.8px 页题 + 58% cream 导语;
475
+ P3 的 [Product Image] 占位框 → SECTION 2.6 的 .cm-md-image 发丝框;
476
+ P8 的 bar-track/基线/来源行无行级挂点,由 Pele 图表(--pele-accent 橙)
477
+ 承担唯一高亮条,其余柱体保持上游默认 */
478
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title,
479
+ body.slides-printing .cm-md-slide-figure.cm-md-page-title {
480
+ max-width: 18ch;
481
+ }
482
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-lead,
483
+ body.slides-printing .cm-md-slide-figure.cm-md-page-lead {
484
+ font-size: var(--slide-lead-size);
485
+ line-height: 1.55;
486
+ color: var(--text-secondary);
487
+ max-width: 46ch;
488
+ }
489
+
490
+ /* 1.6.9 closing · P9(end):134px 标题靠底(end-main justify-content:flex-end),
491
+ kicker 橙、导语 58% cream 85% 宽;右栏奶油 info-card、end-foot 落款条与
492
+ 竖排 side-label 无挂点(有意未复刻)。flex-end 仅在内容不溢出时成立 */
493
+ body.presenting #editor[data-slide-layout='closing'] .cm-content,
494
+ body.slides-printing:has(.cm-md-slide-closing) .cm-content {
495
+ justify-content: flex-end;
496
+ padding-bottom: 8vh; /* 让开 end-foot 落款带 */
497
+ }
498
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title,
499
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title {
500
+ font-size: var(--slide-closing-title-size);
501
+ font-weight: 800;
502
+ line-height: 0.92;
503
+ letter-spacing: -0.025em;
504
+ max-width: 12ch;
505
+ }
506
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-lead,
507
+ body.slides-printing .cm-md-slide-closing.cm-md-page-lead {
508
+ font-size: var(--slide-lead-size);
509
+ line-height: 1.55;
510
+ color: var(--text-secondary);
511
+ max-width: 34ch;
512
+ }
513
+
514
+ /* 1.6.10 chrome · 页眉页脚:DM Mono 13.4px 大写 .12em,cream 58%/30%;
515
+ 模板在 cover/quote/end 抑制 chrome——放映框架级元素,主题不改结构(未复刻) */
516
+ body.presenting .slide-chrome,
517
+ body.slides-printing .slide-chrome {
518
+ font-family: var(--slide-mono);
519
+ font-size: var(--slide-kicker-size);
520
+ letter-spacing: 0.12em;
521
+ text-transform: uppercase;
522
+ color: var(--text-color);
523
+ opacity: var(--slide-chrome-opacity);
524
+ }
525
+ body.presenting .slide-foot,
526
+ body.slides-printing .slide-foot {
527
+ font-family: var(--slide-mono);
528
+ font-size: clamp(10px, 0.64vw, 12px);
529
+ letter-spacing: 0.12em;
530
+ text-transform: uppercase;
531
+ color: var(--text-color);
532
+ opacity: 0.45;
533
+ }
534
+
535
+ /* ═══════════════════════════════════════════════════════════
536
+ * SECTION 2 — 编辑视图(CodeMirror 6 · .cm-md-* 钩子)
537
+ * 与 SECTION 3 导出 HTML 严格镜像;两份一起改,否则导出与编辑不一致
538
+ * ═══════════════════════════════════════════════════════════ */
539
+
540
+ /* ── 2.1 画布 ── */
541
+ #editor .cm-editor,
542
+ #editor .cm-scroller {
543
+ background: var(--bg-color);
544
+ }
545
+ #editor .cm-content {
546
+ background: var(--bg-color);
547
+ color: var(--text-color);
548
+ caret-color: var(--seed-accent);
549
+ font-family: var(--font-body);
550
+ font-size: var(--editor-font-size);
551
+ line-height: 1.7;
552
+ max-width: var(--editor-column-width);
553
+ margin: 0 auto;
554
+ padding: 52px 28px 96px;
555
+ text-align: left;
556
+ }
557
+ #editor .cm-content .cm-line {
558
+ text-indent: 2em; /* 模板首行缩进:只落在正文行(2.5 排除) */
559
+ padding-left: 0;
560
+ padding-right: 0;
561
+ }
562
+
563
+ /* ── 2.2 标题阶梯(修复生成版 h1 2em < h2 1.125em 倒挂 + 文档式下划线)──
564
+ Bricolage Grotesque 800/700/600,字阶 2.6/2.0/1.55/1.28/1.12em;
565
+ h6 是模板里的 mono 大写标签(kicker / chrome) */
566
+ #editor .cm-content .cm-md-atxheading1,
567
+ #editor .cm-content .cm-md-atxheading2,
568
+ #editor .cm-content .cm-md-atxheading3,
569
+ #editor .cm-content .cm-md-atxheading4,
570
+ #editor .cm-content .cm-md-atxheading5,
571
+ #editor .cm-content .cm-md-atxheading6 {
572
+ font-family: var(--slide-title-font);
573
+ color: var(--text-color);
574
+ border-bottom: none;
575
+ padding-bottom: 0;
576
+ text-indent: 0;
577
+ }
578
+ #editor .cm-content .cm-md-atxheading1 {
579
+ font-size: 2.6em;
580
+ font-weight: 800;
581
+ line-height: 0.95;
582
+ letter-spacing: -0.03em;
583
+ margin: 1.6em 0 0.5em;
584
+ }
585
+ #editor .cm-content .cm-md-atxheading2 {
586
+ font-size: 2em;
587
+ font-weight: 700;
588
+ line-height: 1;
589
+ letter-spacing: -0.02em;
590
+ margin: 1.5em 0 0.45em;
591
+ }
592
+ #editor .cm-content .cm-md-atxheading3 {
593
+ font-size: 1.55em;
594
+ font-weight: 600;
595
+ line-height: 1.1;
596
+ letter-spacing: -0.01em;
597
+ margin: 1.4em 0 0.35em;
598
+ }
599
+ #editor .cm-content .cm-md-atxheading4 {
600
+ font-size: 1.28em;
601
+ font-weight: 600;
602
+ line-height: 1.15;
603
+ margin: 1.3em 0 0.3em;
604
+ }
605
+ #editor .cm-content .cm-md-atxheading5 {
606
+ font-size: 1.12em;
607
+ font-weight: 600;
608
+ line-height: 1.2;
609
+ margin: 1.2em 0 0.25em;
610
+ }
611
+ #editor .cm-content .cm-md-atxheading6 {
612
+ font-family: var(--font-mono);
613
+ font-size: 0.82em;
614
+ font-weight: 400;
615
+ letter-spacing: 0.12em;
616
+ text-transform: uppercase;
617
+ color: var(--seed-accent);
618
+ margin: 1.2em 0 0.3em;
619
+ }
620
+
621
+ /* ── 2.3 正文强调与行内元素 ──
622
+ 模板正文 strong 走正文色加粗(生成版误用 accent);橙色只留给标签/数字单位 */
623
+ #editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 600; }
624
+ #editor .cm-content .cm-md-em { color: inherit; font-style: italic; }
625
+ #editor .cm-content .cm-md-link {
626
+ color: var(--link-color);
627
+ text-decoration: underline;
628
+ text-underline-offset: 3px;
629
+ text-decoration-color: rgba(212, 133, 63, 0.5);
630
+ }
631
+ #editor .cm-content .cm-md-url {
632
+ color: var(--text-muted);
633
+ font-family: var(--font-mono);
634
+ font-size: 0.82em;
635
+ }
636
+ #editor .cm-content .cm-md-inlinecode {
637
+ font-family: var(--font-mono);
638
+ font-size: 0.86em;
639
+ background: var(--code-bg);
640
+ color: var(--text-color);
641
+ padding: 2px 6px;
642
+ border-radius: 0; /* 模板零圆角 */
643
+ }
644
+ #editor .cm-content .cm-md-marker { color: var(--text-muted); }
645
+ #editor .cm-content .cm-md-hr {
646
+ border: none;
647
+ border-top: 1px solid var(--border-color); /* 模板 1px 发丝线 */
648
+ margin: 46px 0;
649
+ }
650
+ #editor .cm-content .cm-md-quotemark { color: var(--seed-accent); }
651
+
652
+ /* ── 2.4 清单 ── */
653
+ #editor .cm-content .cm-md-listmark {
654
+ color: var(--seed-accent); /* 模板橙色 mono 标记 */
655
+ font-family: var(--font-mono);
656
+ font-size: 0.92em;
657
+ margin-right: 0.4em;
658
+ }
659
+
660
+ /* ── 2.5 缩进排除:标题/引用/代码/列表/分隔线/图表/表格行一律不缩进 ── */
661
+ #editor .cm-content .cm-md-blockquote,
662
+ #editor .cm-content .cm-md-codeblock,
663
+ #editor .cm-content .cm-md-li,
664
+ #editor .cm-content .cm-md-li-0,
665
+ #editor .cm-content .cm-md-li-1,
666
+ #editor .cm-content .cm-md-li-2,
667
+ #editor .cm-content .cm-md-li-3,
668
+ #editor .cm-content .cm-md-li-4,
669
+ #editor .cm-content .cm-md-li-5,
670
+ #editor .cm-content .cm-md-li-6,
671
+ #editor .cm-content .cm-md-hr,
672
+ #editor .cm-content .cm-md-table-widget,
673
+ #editor .cm-content .cm-md-mermaid {
674
+ text-indent: 0;
675
+ }
676
+
677
+ /* ── 2.6 引用 / 代码块 / 表格 / 图片(引用与代码块只走左右 padding)── */
678
+ #editor .cm-content .cm-md-blockquote {
679
+ color: var(--text-secondary);
680
+ font-style: normal; /* 模板金句无斜体 */
681
+ background: transparent; /* 模板:无底色,只有 1px 发丝轨 */
682
+ border-left: 1px solid var(--border-color);
683
+ padding-left: 16px;
684
+ padding-right: 16px;
685
+ }
686
+ #editor .cm-content .cm-md-codeblock {
687
+ font-family: var(--font-mono);
688
+ font-size: 0.86em;
689
+ background: var(--code-block-bg);
690
+ color: var(--code-block-text);
691
+ padding-left: 20px;
692
+ padding-right: 20px;
693
+ }
694
+ #editor .cm-content .cm-md-table-widget {
695
+ font-size: 0.92em;
696
+ }
697
+ #editor .cm-content .cm-md-table-widget th,
698
+ #editor .cm-content .cm-md-table-widget td {
699
+ border: 1px solid var(--border-color);
700
+ padding: 8px 12px;
701
+ }
702
+ #editor .cm-content .cm-md-table-widget th {
703
+ background: var(--table-header-bg);
704
+ color: var(--text-color);
705
+ font-family: var(--font-mono);
706
+ font-weight: 400;
707
+ letter-spacing: 0.08em;
708
+ text-transform: uppercase;
709
+ }
710
+ #editor .cm-content .cm-md-image {
711
+ border: 1px solid var(--border-color); /* P3 [Product Image] 发丝占位框 */
712
+ background: rgba(240, 232, 210, 0.06); /* 6% 奶油纱底 */
713
+ border-radius: 0;
714
+ margin: 24px 0;
715
+ }
716
+ #editor .cm-content .cm-md-mermaid svg {
717
+ background: var(--code-block-bg);
718
+ border: 1px solid var(--border-color);
719
+ }
720
+
721
+ /* ── 2.7 选区 / 搜索高亮 ── */
722
+ #editor .cm-content ::selection { background: var(--selection-bg); }
723
+ #editor .cm-content .cm-searchMatch { background: var(--highlight-bg); }
724
+
725
+ /* ═══════════════════════════════════════════════════════════
726
+ * SECTION 3 — 导出视图(.colamd-document · 语义标签 DOM)
727
+ * 与 SECTION 2 镜像:所有值、字重、字距、行高保持一致
728
+ * ═══════════════════════════════════════════════════════════ */
729
+ .colamd-document {
730
+ background: var(--bg-color);
731
+ color: var(--text-color);
732
+ font-family: var(--font-body);
733
+ font-size: var(--editor-font-size);
734
+ line-height: 1.7;
735
+ }
736
+ .colamd-document h1,
737
+ .colamd-document h2,
738
+ .colamd-document h3,
739
+ .colamd-document h4,
740
+ .colamd-document h5 {
741
+ font-family: var(--slide-title-font);
742
+ color: var(--text-color);
743
+ border-bottom: none;
744
+ }
745
+ .colamd-document h1 { font-size: 2.6em; font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; margin: 1.6em 0 0.5em; }
746
+ .colamd-document h2 { font-size: 2em; font-weight: 700; line-height: 1; letter-spacing: -0.02em; margin: 1.5em 0 0.45em; }
747
+ .colamd-document h3 { font-size: 1.55em; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 1.4em 0 0.35em; }
748
+ .colamd-document h4 { font-size: 1.28em; font-weight: 600; line-height: 1.15; margin: 1.3em 0 0.3em; }
749
+ .colamd-document h5 { font-size: 1.12em; font-weight: 600; line-height: 1.2; margin: 1.2em 0 0.25em; }
750
+ .colamd-document h6 {
751
+ font-family: var(--font-mono);
752
+ font-size: 0.82em;
753
+ font-weight: 400;
754
+ letter-spacing: 0.12em;
755
+ text-transform: uppercase;
756
+ color: var(--seed-accent);
757
+ margin: 1.2em 0 0.3em;
758
+ }
759
+ .colamd-document p { text-indent: 2em; margin: 0 0 1em; }
760
+ .colamd-document strong { color: var(--text-color); font-weight: 600; }
761
+ .colamd-document em { font-style: italic; }
762
+ .colamd-document a {
763
+ color: var(--link-color);
764
+ text-decoration: underline;
765
+ text-underline-offset: 3px;
766
+ text-decoration-color: rgba(212, 133, 63, 0.5);
767
+ }
768
+ .colamd-document ul,
769
+ .colamd-document ol { margin: 0 0 1em; padding-left: 1.6em; }
770
+ .colamd-document li { margin: 0 0 0.4em; }
771
+ .colamd-document li::marker { color: var(--seed-accent); font-family: var(--font-mono); }
772
+ .colamd-document code {
773
+ font-family: var(--font-mono);
774
+ font-size: 0.86em;
775
+ background: var(--code-bg);
776
+ color: var(--text-color);
777
+ padding: 2px 6px;
778
+ border-radius: 0;
779
+ }
780
+ .colamd-document pre {
781
+ font-family: var(--font-mono);
782
+ font-size: 0.86em;
783
+ background: var(--code-block-bg);
784
+ color: var(--code-block-text);
785
+ padding: 16px 20px; /* <pre> 元素可安全用纵向 padding */
786
+ border-radius: 0;
787
+ overflow-x: auto;
788
+ }
789
+ .colamd-document pre code { background: transparent; padding: 0; }
790
+ .colamd-document blockquote {
791
+ color: var(--text-secondary);
792
+ font-style: normal;
793
+ background: transparent;
794
+ border-left: 1px solid var(--border-color);
795
+ padding: 0 0 0 16px;
796
+ margin: 1.4em 0;
797
+ }
798
+ .colamd-document blockquote p { text-indent: 0; }
799
+ .colamd-document hr {
800
+ border: none;
801
+ border-top: 1px solid var(--border-color);
802
+ margin: 46px 0;
803
+ }
804
+ .colamd-document table {
805
+ border-collapse: collapse;
806
+ font-size: 0.92em;
807
+ margin: 1.2em 0;
808
+ }
809
+ .colamd-document th,
810
+ .colamd-document td { border: 1px solid var(--border-color); padding: 8px 12px; }
811
+ .colamd-document th {
812
+ background: var(--table-header-bg);
813
+ color: var(--text-color);
814
+ font-family: var(--font-mono);
815
+ font-weight: 400;
816
+ letter-spacing: 0.08em;
817
+ text-transform: uppercase;
818
+ }
819
+ .colamd-document img {
820
+ border: 1px solid var(--border-color);
821
+ background: rgba(240, 232, 210, 0.06);
822
+ border-radius: 0;
823
+ max-width: 100%;
824
+ }
825
+ .colamd-document .colamd-diagram svg { background: var(--code-block-bg); }
826
+ .colamd-document mark { background: var(--highlight-bg); color: inherit; }
827
+ .colamd-document ::selection { background: var(--selection-bg); }
828
+
829
+ /* ═══════════════════════════════════════════════════════════
830
+ * SECTION 4 — 打印(导出 PDF 时 @media print 生效)
831
+ * ═══════════════════════════════════════════════════════════ */
832
+ @media print {
833
+ html,
834
+ body {
835
+ background: var(--bg-color);
836
+ color: var(--text-color);
837
+ -webkit-print-color-adjust: exact;
838
+ print-color-adjust: exact;
839
+ }
840
+ .colamd-document { background: var(--bg-color); }
841
+ .colamd-document h1,
842
+ .colamd-document h2,
843
+ .colamd-document h3 { break-after: avoid; }
844
+ .colamd-document pre,
845
+ .colamd-document table,
846
+ .colamd-document img { break-inside: avoid; }
847
+ }
848
+