@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,811 @@
1
+ /*
2
+ * ColaMD Theme: Editorial Tri-Tone(三色编辑部 · 逐页版式复刻版)
3
+ * 来源:D:\workspace\git\beautiful-html-templates\templates\editorial-tri-tone\template.html
4
+ * + design.md(「三色纪律」:11 个 CSS 变量名其实只有 3 个色值)
5
+ * 色板:pink #F2B6C6 / butter #F2D86A(=cream/lime/terracotta)/ burgundy #7A1F35
6
+ * (=navy/forest/ink)——模板前提是只有三色,再加色即破功
7
+ * 字体:Bricolage Grotesque(display 500-800 + body)/ Instrument Serif 400
8
+ * (斜体割据:章节数字/引号/年份/署名/统计百分号)/ JetBrains Mono
9
+ * (全部标签大写 0.10-0.18em 字距)
10
+ * paradigm 备案(三色身份,与 biennale-yellow / pin-and-paper 同类,有意保留,
11
+ * 实测值 = validate 报告):
12
+ * SL-01 —— 黄油纸底 #F2D86A 饱和度 84.0% > 5%:「三色纪律、无中性灰」即
13
+ * 模板身份(yellow-paper),文字一律 burgundy(对 butter 7.1:1、
14
+ * 对 pink 5.9:1),不中性化;
15
+ * SL-02 —— panel #E3C35C S 70.7%、panelAlt #D9B44F S 64.5% > 10%:黄油
16
+ * 纸降档派生(代码块/图底),同属三色身份;
17
+ * CR-04 —— seed-accent(pink #F2B6C6) 对 butter 底仅 1.2:1:pink 只做
18
+ * 深底文字(对 burgundy 5.9:1)与色块/高亮,浅底从不出现粉字;
19
+ * 链接用加深玫瑰档 #8F3048(butter 5.5:1 / pink 4.6:1);
20
+ * NT-03 —— 边框 #BC8452 饱和度 44.2% > 5%:burgundy 45% 混入 butter
21
+ * (琥珀调),wine×butter 混色必然偏出酒色轴,模板无灰阶,刻意;
22
+ * KPI 巨数 —— 模板 P4 display-stat 540px 为单巨数页;kpi 版式约定 2-6 条目,
23
+ * 严格换算 22.5em 装不下 → 取 16em(≈384px)折中,网格不溢出;
24
+ * matrix 卡 —— 模板奇偶双色卡(c1/c3/c5/c7 酒红、c2/c4/c6/c8 黄油)依赖 DOM
25
+ * 奇偶挂点,行式 DOM 无稳定结构 → 统一取深卡声部。
26
+ *
27
+ * 页面映射(八页逐页复刻,换底页打满整条层叠链):
28
+ * cover ←P1 粉底 matrix ←P3 粉底 section ←P2 黄油底 kpi ←P4 酒红底
29
+ * timeline←P5 黄油底 quote ←P7 黄油底 figure ←P6 酒红底 closing←P8 酒红底
30
+ * (agenda / steps / two-col 无对应模板页,保持上游默认)
31
+ *
32
+ * 契约:ColaMD Extend 2.7(CodeMirror 6 编辑器 + Pele 图表引擎)
33
+ *
34
+ * 两条硬规矩:
35
+ * 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
36
+ * 编辑器继承不到。
37
+ * 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
38
+ * 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
39
+ * 并且引用/代码块**不能加纵向 padding**——那会按行累加。
40
+ *
41
+ * ═══════════════════════════════════════════════════════════
42
+ * SECTION 1 — Design Tokens
43
+ * 改 11 个种子色 + 3 组字体即可换一套主题
44
+ * ═══════════════════════════════════════════════════════════ */
45
+
46
+ :root {
47
+
48
+ /* ── 1.1 Seed Palette ──
49
+ 本工具的再生成与校验读这一层;编辑器不消费。
50
+ 明度排序(SL-04 亮色范式):surface(0.69) > panel(0.56) > panelAlt(0.48)。 */
51
+ --seed-accent: #f2b6c6; /* pink —— 深底文字/高亮/粉页纸底 */
52
+ --seed-accent-light: #f7cdd8; /* pink 提亮一档 */
53
+ --seed-accent-dark: #8f3048; /* pink 加深玫瑰档(浅底可读,CR-04 链接档) */
54
+ --seed-surface: #f2d86a; /* butter —— 黄油纸底(=cream/lime/terracotta) */
55
+ --seed-panel: #e3c35c; /* butter 降档一阶 */
56
+ --seed-panel-alt: #d9b44f; /* butter 再降一档(代码块/图底) */
57
+ --seed-ink: #7a1f35; /* burgundy —— 结构色/正文(=navy/forest/ink) */
58
+ --seed-ink-muted: #743e4b; /* wine 同轴次要文字 */
59
+ --seed-ink-dim: #6e3a47; /* wine 同轴辅助文字 */
60
+ --seed-border: #bc8452; /* burgundy 45% over butter(NT-03 备案) */
61
+ --seed-border-strong: #7a1f35; /* burgundy 实线 */
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
+ /* pink 原色加深保浅底 ≥4.5:1(CR-04);原粉由 seed-accent 承担深底场景 */
70
+ --link-color: var(--seed-accent-dark);
71
+
72
+ --code-bg: rgba(122, 31, 53, 0.08);
73
+ --code-block-bg: var(--seed-panel-alt);
74
+ --code-block-text: #7a1f35;
75
+
76
+ --blockquote-border: var(--seed-border-strong);
77
+ --blockquote-bg: var(--seed-panel);
78
+ --table-header-bg: var(--seed-panel);
79
+
80
+ --selection-bg: rgba(242, 182, 198, 0.45); /* blush 选区 */
81
+ --highlight-bg: #f2b6c6; /* pink 荧光笔 */
82
+
83
+ /* ── 1.3 Typography & Metrics(活变量)── */
84
+ --font-body: "Bricolage Grotesque", "Noto Sans SC", sans-serif;
85
+ --font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
86
+ --editor-font-size: 16px;
87
+ --editor-column-width: 820px;
88
+
89
+ /* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
90
+ 图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导。
91
+ accent 用深玫瑰档:图底是黄油纸,粉原色 1.3:1 不可见(CR-04)。 */
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) 18%, var(--code-block-bg));
97
+ --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
98
+ --pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
99
+ --pele-accent: var(--seed-accent-dark);
100
+ --pele-radius: 10px; /* 模板 28/32px 卡圆角的编辑器档 */
101
+
102
+ /* ═══ 1.5 幻灯片令牌 --slide-*(editorial-tri-tone 八页复刻)═══
103
+ 换算基准:1080p 全屏 ≈ 26px 正文(上游 --slide 基准),px÷26=em。
104
+ 行内元素先定 li 基准再除以 li 缩放补偿(例:kpi/li 基准 24px=0.92em,
105
+ 卡号 24px ÷24px=1em;数字 540px ÷26 ÷0.92=22.5em→16em,见文件头备案)。
106
+
107
+ 页面 → 版式映射(八页全复刻;agenda/steps/two-col 无对应页,上游默认):
108
+ cover ←P1 封面巨词(粉底) matrix ←P3 价值观四列卡(粉底)
109
+ section ←P2 manifesto 章节数字(黄油底) kpi ←P4 headline 巨数(酒红底)
110
+ timeline ←P5 五列站点(黄油底) figure ←P6 构成图表(酒红底)
111
+ quote ←P7 引言巨字(黄油底) closing ←P8 四列 colophon(酒红底)
112
+ 未复刻:P1 药丸云/meta 顶行 · P2 右栏墨 pane 与 mono meta · P3 卡奇偶双色
113
+ · P4 % 后缀(220px Instrument Serif lime)/swatches/绝对定位注释与
114
+ breakdown 列 · P5 轴线+圆点(模板圆点本身 display:none)/ribbon 胶囊
115
+ · P6 legend 色点/图卡绝对定位 · P7 右栏酒红 pane/头像圆 · P8 corner-pills
116
+ 与右上 mono 落款。 */
117
+ --slide-serif: "Instrument Serif", "Noto Serif SC", serif;
118
+ --slide-title-font: "Bricolage Grotesque", "Noto Sans SC", sans-serif;
119
+ --slide-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
120
+ --slide-title-size: 2.92em; /* 内容页题 76px ÷26(P3/P5) */
121
+ --slide-title-weight: 700; /* 模板 h2 全 700 */
122
+ --slide-subhead-weight: 600; /* 卡题 h4 / stop h5 */
123
+ --slide-title-tracking: -0.02em; /* Bricolage 显示档惯例 */
124
+ --slide-title-line-height: 1;
125
+ --slide-cover-title-size: 11.5em; /* wordmark 300px ÷26(P1) */
126
+ --slide-cover-title-line-height: 0.82; /* wordmark 行高 */
127
+ --slide-cover-title-tracking: -0.04em; /* wordmark 字距 */
128
+ --slide-section-title-size: 9.2em; /* .chapter 240px ÷26(P2) */
129
+ --slide-closing-title-size: 12.3em; /* .big 320px ÷26(P8) */
130
+ --slide-lead-size: 0.92em; /* .body-sm 24px ÷26(P6/P4 注释) */
131
+ --slide-kicker-size: clamp(13px, 1.25vw, 24px); /* .label 24px @1920 */
132
+ --slide-kicker-tracking: 0.15em; /* .label 标准字距(深底页 0.18em) */
133
+ --slide-kicker-transform: uppercase; /* 标签一律大写 */
134
+ --slide-chrome-opacity: 0.75; /* .footer opacity .75 */
135
+ --slide-chrome-transform: uppercase; /* footer 大写 .12em */
136
+ --slide-kpi-number-size: 16em; /* 巨数折中(严格 22.5em,备案) */
137
+ --slide-quote-size: 2.46em; /* 引言 64px ÷26(P7) */
138
+ --slide-page-pad-x: 3.3vw; /* slide-pad 64px @1920 */
139
+ --slide-page-top-pad: 76px; /* 96px 压掉 chrome 安全区 */
140
+ --slide-page-top-pad-print: 68px;
141
+ --slide-cover-text-align: left; /* 巨词左对齐 + 底部 */
142
+ --slide-cover-lead-inline: auto;
143
+ }
144
+
145
+ /* ═══════════════════════════════════════════════════════════
146
+ * SECTION 1.6 — 逐版式复刻(SLIDE-02:.cm-md-page-*/.cm-md-slide-*/
147
+ * /chrome 规则全部包裹在 body.presenting / body.slides-printing 之下)
148
+ * ═══════════════════════════════════════════════════════════ */
149
+
150
+ /* 1.6.1 页标题声部对齐:先压掉文档式标题样式——模板内容页题统一
151
+ Bricolage 700 酒红(76px 700 -0.02em,P3/P5);em → Instrument Serif 斜体
152
+ 是模板的招牌混排(headline em 规则),中文落入 Noto Serif SC 正体衬线并禁
153
+ 合成斜体(design.md:斜汉字读作破损,改走对比字体层) */
154
+ body.presenting #editor .cm-content .cm-md-page-title,
155
+ body.slides-printing #editor .cm-content .cm-md-page-title {
156
+ font-family: var(--slide-title-font);
157
+ font-size: var(--slide-title-size);
158
+ font-weight: var(--slide-title-weight);
159
+ line-height: var(--slide-title-line-height);
160
+ letter-spacing: var(--slide-title-tracking);
161
+ color: var(--text-color);
162
+ border-bottom: none;
163
+ padding-bottom: 0;
164
+ margin-bottom: 0.35em;
165
+ }
166
+ body.presenting .cm-md-em,
167
+ body.slides-printing .cm-md-em {
168
+ font-family: var(--slide-serif);
169
+ font-style: italic;
170
+ font-weight: 400;
171
+ font-synthesis: none;
172
+ }
173
+ /* kicker 眉标:模板浅底页 § NN 为 burgundy 实色(默认 muted 太淡) */
174
+ body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
175
+ body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
176
+ color: var(--text-color);
177
+ }
178
+
179
+ /* 1.6.2 酒红深底页(kpi←P4 / figure←P6 / closing←P8):原「页面」底色即酒红。
180
+ 底色必须打满整条层叠链——body / #editor / .cm-editor / .cm-scroller /
181
+ .cm-content 五层(只染 body 会被平台画给 #editor 的纸底反盖) */
182
+ body.presenting:has(#editor[data-slide-layout='kpi']),
183
+ body.presenting:has(#editor[data-slide-layout='figure']),
184
+ body.presenting:has(#editor[data-slide-layout='closing']),
185
+ body.slides-printing:has(.cm-md-slide-kpi),
186
+ body.slides-printing:has(.cm-md-slide-figure),
187
+ body.slides-printing:has(.cm-md-slide-closing) {
188
+ background: var(--seed-ink);
189
+ }
190
+ body.presenting #editor[data-slide-layout='kpi'],
191
+ body.presenting #editor[data-slide-layout='figure'],
192
+ body.presenting #editor[data-slide-layout='closing'],
193
+ body.slides-printing:has(.cm-md-slide-kpi) #editor,
194
+ body.slides-printing:has(.cm-md-slide-figure) #editor,
195
+ body.slides-printing:has(.cm-md-slide-closing) #editor,
196
+ body.presenting #editor[data-slide-layout='kpi'] .cm-editor,
197
+ body.presenting #editor[data-slide-layout='figure'] .cm-editor,
198
+ body.presenting #editor[data-slide-layout='closing'] .cm-editor,
199
+ body.presenting #editor[data-slide-layout='kpi'] .cm-scroller,
200
+ body.presenting #editor[data-slide-layout='figure'] .cm-scroller,
201
+ body.presenting #editor[data-slide-layout='closing'] .cm-scroller,
202
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content,
203
+ body.presenting #editor[data-slide-layout='figure'] .cm-content,
204
+ body.presenting #editor[data-slide-layout='closing'] .cm-content,
205
+ body.slides-printing:has(.cm-md-slide-kpi) .cm-editor,
206
+ body.slides-printing:has(.cm-md-slide-figure) .cm-editor,
207
+ body.slides-printing:has(.cm-md-slide-closing) .cm-editor,
208
+ body.slides-printing:has(.cm-md-slide-kpi) .cm-scroller,
209
+ body.slides-printing:has(.cm-md-slide-figure) .cm-scroller,
210
+ body.slides-printing:has(.cm-md-slide-closing) .cm-scroller,
211
+ body.slides-printing:has(.cm-md-slide-kpi) .cm-content,
212
+ body.slides-printing:has(.cm-md-slide-figure) .cm-content,
213
+ body.slides-printing:has(.cm-md-slide-closing) .cm-content {
214
+ background: var(--seed-ink);
215
+ }
216
+ /* 深底页正文切黄油(=模板 cream,对酒红 7.1:1);打印域自页题后内容行取色 */
217
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content,
218
+ body.presenting #editor[data-slide-layout='figure'] .cm-content,
219
+ body.presenting #editor[data-slide-layout='closing'] .cm-content,
220
+ body.slides-printing .cm-md-slide-kpi .cm-md-page-title ~ *,
221
+ body.slides-printing .cm-md-slide-figure .cm-md-page-title ~ *,
222
+ body.slides-printing .cm-md-slide-closing .cm-md-page-title ~ * {
223
+ color: var(--bg-color);
224
+ }
225
+ /* 幽灵页码 = text-color 酒红,落酒红页同色隐形 → 显式 opacity:0
226
+ (与上游 section/closing 的处理一致) */
227
+ body.presenting:has(#editor[data-slide-layout='kpi']) .slide-ghost,
228
+ body.presenting:has(#editor[data-slide-layout='figure']) .slide-ghost,
229
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-ghost {
230
+ opacity: 0;
231
+ }
232
+ /* chrome/foot 在深底页换黄油;kicker 走 label-wide 0.18em(模板 P4/P8 眉标) */
233
+ body.presenting [data-slide-layout='kpi'] .slide-chrome,
234
+ body.slides-printing [data-slide-layout='kpi'] .slide-chrome,
235
+ body.presenting [data-slide-layout='figure'] .slide-chrome,
236
+ body.slides-printing [data-slide-layout='figure'] .slide-chrome,
237
+ body.presenting [data-slide-layout='closing'] .slide-chrome,
238
+ body.slides-printing [data-slide-layout='closing'] .slide-chrome,
239
+ body.presenting [data-slide-layout='kpi'] .slide-foot,
240
+ body.slides-printing [data-slide-layout='kpi'] .slide-foot,
241
+ body.presenting [data-slide-layout='figure'] .slide-foot,
242
+ body.slides-printing [data-slide-layout='figure'] .slide-foot,
243
+ body.presenting [data-slide-layout='closing'] .slide-foot,
244
+ body.slides-printing [data-slide-layout='closing'] .slide-foot {
245
+ color: var(--bg-color);
246
+ }
247
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
248
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
249
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
250
+ body.slides-printing .cm-md-slide-kpi .cm-md-page-title[data-slide-kicker]::before,
251
+ body.slides-printing .cm-md-slide-figure .cm-md-page-title[data-slide-kicker]::before,
252
+ body.slides-printing .cm-md-slide-closing .cm-md-page-title[data-slide-kicker]::before {
253
+ color: var(--bg-color);
254
+ letter-spacing: 0.18em;
255
+ }
256
+ /* 深底页链接与列表符换粉(pink 对酒红 5.9:1;#8F3048 会没入酒红底) */
257
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-link,
258
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-link,
259
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-link,
260
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-link,
261
+ body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-link,
262
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-link {
263
+ color: var(--seed-accent);
264
+ }
265
+ /* 深底页表格 td 正文换黄油(th 自带 panel 纸面色不受影响) */
266
+ body.presenting #editor[data-slide-layout='kpi'] .cm-md-table-widget td,
267
+ body.presenting #editor[data-slide-layout='figure'] .cm-md-table-widget td,
268
+ body.presenting #editor[data-slide-layout='closing'] .cm-md-table-widget td,
269
+ body.slides-printing:has(.cm-md-slide-kpi) .cm-md-table-widget td,
270
+ body.slides-printing:has(.cm-md-slide-figure) .cm-md-table-widget td,
271
+ body.slides-printing:has(.cm-md-slide-closing) .cm-md-table-widget td {
272
+ color: var(--bg-color);
273
+ }
274
+
275
+ /* 1.6.3 粉底页(cover←P1 / matrix←P3):原页面底色即粉。同样整条层叠链。
276
+ 文字保持 burgundy(对粉 5.9:1)——模板浅底页从不出现粉字 */
277
+ body.presenting:has(#editor[data-slide-layout='cover']),
278
+ body.presenting:has(#editor[data-slide-layout='matrix']),
279
+ body.slides-printing:has(.cm-md-slide-cover),
280
+ body.slides-printing:has(.cm-md-slide-matrix) {
281
+ background: var(--seed-accent);
282
+ }
283
+ body.presenting #editor[data-slide-layout='cover'],
284
+ body.presenting #editor[data-slide-layout='matrix'],
285
+ body.slides-printing:has(.cm-md-slide-cover) #editor,
286
+ body.slides-printing:has(.cm-md-slide-matrix) #editor,
287
+ body.presenting #editor[data-slide-layout='cover'] .cm-editor,
288
+ body.presenting #editor[data-slide-layout='matrix'] .cm-editor,
289
+ body.presenting #editor[data-slide-layout='cover'] .cm-scroller,
290
+ body.presenting #editor[data-slide-layout='matrix'] .cm-scroller,
291
+ body.presenting #editor[data-slide-layout='cover'] .cm-content,
292
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content,
293
+ body.slides-printing:has(.cm-md-slide-cover) .cm-editor,
294
+ body.slides-printing:has(.cm-md-slide-matrix) .cm-editor,
295
+ body.slides-printing:has(.cm-md-slide-cover) .cm-scroller,
296
+ body.slides-printing:has(.cm-md-slide-matrix) .cm-scroller,
297
+ body.slides-printing:has(.cm-md-slide-cover) .cm-content,
298
+ body.slides-printing:has(.cm-md-slide-matrix) .cm-content {
299
+ background: var(--seed-accent);
300
+ }
301
+
302
+ /* 1.6.4 cover · P1:粉底 + 底部左对齐 300px 巨词(wordmark 800 / -0.04em /
303
+ lh 0.82,weight 800 为 wordmark 专属);顶部药丸云与 meta 行是绝对定位
304
+ 装饰——未复刻 */
305
+ body.presenting #editor[data-slide-layout='cover'] .cm-content {
306
+ justify-content: flex-end;
307
+ padding-bottom: 80px; /* .wordmark bottom:80px */
308
+ }
309
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
310
+ body.slides-printing .cm-md-slide-cover.cm-md-page-title {
311
+ font-size: var(--slide-cover-title-size);
312
+ font-weight: 800;
313
+ line-height: var(--slide-cover-title-line-height);
314
+ letter-spacing: var(--slide-cover-title-tracking);
315
+ color: var(--text-color);
316
+ max-width: none;
317
+ }
318
+
319
+ /* 1.6.5 section · P2(manifesto):黄油底 = 全局默认,无需换底链。章节数字
320
+ 240px Instrument Serif 400(.chapter);lede 56px Bricolage 500;右栏酒红
321
+ pane 双栏切分与 mono meta 行无法单栏复刻——未复刻 */
322
+ body.presenting #editor[data-slide-layout='section'] .cm-content {
323
+ justify-content: flex-end;
324
+ padding-bottom: 96px;
325
+ }
326
+ body.presenting #editor .cm-content .cm-md-slide-section .cm-md-page-title,
327
+ body.slides-printing .cm-md-slide-section.cm-md-page-title {
328
+ font-family: var(--slide-serif);
329
+ font-weight: 400;
330
+ font-size: var(--slide-section-title-size);
331
+ line-height: 0.9;
332
+ letter-spacing: 0;
333
+ color: var(--text-color);
334
+ }
335
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
336
+ body.slides-printing .cm-md-slide-section.cm-md-page-lead {
337
+ font-size: 2.15em; /* .lede 56px ÷26 */
338
+ font-weight: 500;
339
+ line-height: 1.05;
340
+ letter-spacing: -0.02em;
341
+ color: var(--text-color);
342
+ max-width: 12.9em; /* .lede 720px @56px */
343
+ }
344
+
345
+ /* 1.6.6 matrix · P3(values grid):粉底 + 页题 76px;四列圆角卡(radius
346
+ 28px)。模板奇偶双色卡无稳定奇偶挂点 → 统一深卡声部(备案见文件头);
347
+ 卡号「/ 01」以 mono 列表符近似 */
348
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-page-title,
349
+ body.slides-printing .cm-md-slide-matrix.cm-md-page-title {
350
+ max-width: 14.5em; /* h2 1100px @76px */
351
+ }
352
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
353
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
354
+ width: 23.4%; /* 四列 + 24px gap @1792 */
355
+ margin: 0 1.4% 1.4em 0;
356
+ background: var(--seed-ink);
357
+ color: var(--bg-color);
358
+ border: none;
359
+ border-radius: 1.15em; /* 28px ÷24px(li 基准) */
360
+ padding: 1.15em 1.15em 1.25em; /* 28/28/30px ÷24 */
361
+ font-size: 0.92em; /* .card p 24px ÷26 */
362
+ line-height: 1.45;
363
+ }
364
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-listmark,
365
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-listmark {
366
+ display: inline;
367
+ font-family: var(--font-mono);
368
+ font-weight: 400;
369
+ font-size: 1em; /* .num 24px ÷24 */
370
+ letter-spacing: 0.15em;
371
+ opacity: 0.7;
372
+ color: var(--bg-color);
373
+ }
374
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
375
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
376
+ font-family: var(--slide-title-font);
377
+ font-size: 1.67em; /* h4 40px ÷26 ÷0.92 */
378
+ font-weight: var(--slide-subhead-weight);
379
+ letter-spacing: -0.02em;
380
+ color: var(--bg-color); /* 卡上标题 = butter */
381
+ }
382
+
383
+ /* 1.6.7 kpi · P4(headline figure):页题 = serif 副「A portrait, in
384
+ numbers.」48px Instrument Serif 粉;巨数 540px 为 display-stat 身份,严格
385
+ 换算 540÷26÷0.92(li 基准)=22.5em,2-6 条目装不下 → 16em 折中(备案);
386
+ 条目 = .breakdown .row 的 rgba(246,237,220,.25) 顶线行声部;% 后缀(220px
387
+ Instrument Serif lime)无行内拆分挂点、swatches 圆点、左下注释与右下
388
+ breakdown 绝对定位——未复刻 */
389
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title,
390
+ body.slides-printing .cm-md-slide-kpi.cm-md-page-title {
391
+ font-family: var(--slide-serif);
392
+ font-weight: 400;
393
+ font-size: 1.85em; /* .serif 48px ÷26 */
394
+ line-height: 1;
395
+ letter-spacing: 0;
396
+ color: var(--seed-accent); /* 粉对酒红 5.9:1 */
397
+ }
398
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-lead,
399
+ body.slides-printing .cm-md-slide-kpi.cm-md-page-lead {
400
+ color: var(--bg-color);
401
+ max-width: 38em; /* 注释 900px @24px */
402
+ }
403
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
404
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
405
+ width: 46%;
406
+ margin: 0 2% 1.2em 0;
407
+ padding: 0.6em 0 0.8em;
408
+ background: transparent;
409
+ border: none;
410
+ border-top: 1px solid rgba(246, 237, 220, 0.25);
411
+ border-radius: 0;
412
+ box-shadow: none;
413
+ font-size: 0.92em; /* .body-sm 24px ÷26 */
414
+ line-height: 1.45;
415
+ color: var(--bg-color);
416
+ }
417
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
418
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
419
+ font-family: var(--slide-title-font);
420
+ font-size: var(--slide-kpi-number-size);
421
+ font-weight: 700;
422
+ line-height: 0.78;
423
+ letter-spacing: -0.06em;
424
+ color: var(--seed-accent); /* .figure 粉 */
425
+ }
426
+
427
+ /* 1.6.8 timeline · P5(trajectory):黄油底 = 默认。页题 76px(默认令牌);
428
+ 五列站点 = yr 56px Instrument Serif(listmark 恢复显示)+ h5 28px 600 +
429
+ 文 24px;轴线与站点圆点是绝对定位装饰(模板圆点本身 display:none),
430
+ ribbon 酒红胶囊横幅无行式挂点——均未复刻 */
431
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li,
432
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
433
+ display: inline-block;
434
+ width: 18.2%; /* 五列 + 24px gap @1792 */
435
+ margin: 0 1.6% 1em 0;
436
+ vertical-align: top;
437
+ border-left: none;
438
+ padding-left: 0;
439
+ padding-bottom: 0.4em;
440
+ font-size: 0.92em; /* .stop p 24px ÷26 */
441
+ }
442
+ body.presenting .cm-md-slide-timeline.cm-md-li::before,
443
+ body.slides-printing .cm-md-slide-timeline.cm-md-li::before {
444
+ content: none; /* 去上游轴点 */
445
+ }
446
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-listmark,
447
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-listmark {
448
+ display: inline;
449
+ font-family: var(--slide-serif);
450
+ font-weight: 400;
451
+ font-size: 2.33em; /* .yr 56px ÷26 ÷0.92 */
452
+ line-height: 1;
453
+ color: var(--text-color);
454
+ margin-right: 0.25em;
455
+ }
456
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-strong,
457
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-strong {
458
+ font-family: var(--slide-title-font);
459
+ font-size: 1.17em; /* h5 28px ÷26 ÷0.92 */
460
+ font-weight: var(--slide-subhead-weight);
461
+ letter-spacing: -0.01em;
462
+ color: var(--text-color);
463
+ }
464
+
465
+ /* 1.6.9 figure · P6(composition chart):酒红底(1.6.2 已换)。页题 84px
466
+ 黄油(=cream);lede 24px .85;标题内 em → Instrument Serif 黄油(模板
467
+ h2 em 规则);右栏奶油图卡以 svg.pele 奶油底近似(32px 图卡圆角 → 14px
468
+ 编辑器档);legend 色点未复刻 */
469
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title,
470
+ body.slides-printing .cm-md-slide-figure.cm-md-page-title {
471
+ font-size: 3.23em; /* h2 84px ÷26 */
472
+ line-height: 0.95;
473
+ color: var(--bg-color);
474
+ }
475
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title .cm-md-em,
476
+ body.slides-printing .cm-md-slide-figure .cm-md-page-title .cm-md-em {
477
+ color: var(--bg-color); /* h2 em → Instrument Serif butter */
478
+ }
479
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-lead,
480
+ body.slides-printing .cm-md-slide-figure.cm-md-page-lead {
481
+ font-size: 0.92em; /* .lede 24px ÷26 */
482
+ line-height: 1.5;
483
+ color: var(--bg-color);
484
+ opacity: 0.85;
485
+ }
486
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-listmark,
487
+ body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-listmark {
488
+ color: var(--bg-color);
489
+ }
490
+ body.presenting #editor .cm-content svg.pele,
491
+ body.slides-printing #editor .cm-content svg.pele {
492
+ background: var(--bg-color); /* .r 奶油图卡落纸 */
493
+ border-radius: 14px;
494
+ }
495
+
496
+ /* 1.6.10 quote · P7(in their words):黄油底 = 默认。引用 64px Instrument
497
+ Serif 斜体酒红(模板 blockquote;b → Bricolage 600 酒红);巨引号 200px
498
+ (上游 3.2em → 7.7em);署名行 = Bricolage 600 26px;头像圆与右栏酒红
499
+ pane(双栏切分)——未复刻 */
500
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
501
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
502
+ font-family: var(--slide-serif);
503
+ font-style: italic;
504
+ font-weight: 400;
505
+ font-size: var(--slide-quote-size);
506
+ line-height: 1.1;
507
+ color: var(--text-color);
508
+ background: transparent;
509
+ border-left: none;
510
+ padding-left: 0;
511
+ padding-right: 0;
512
+ max-width: 12em; /* 760px @64px */
513
+ }
514
+ body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
515
+ body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
516
+ font-size: 7.7em; /* .mark 200px ÷26 */
517
+ font-style: normal;
518
+ color: var(--text-color); /* 引号酒红(非粉) */
519
+ }
520
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote .cm-md-strong,
521
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote .cm-md-strong {
522
+ font-family: var(--font-body);
523
+ font-style: normal;
524
+ font-weight: 600;
525
+ color: var(--text-color); /* 模板 b 规则 */
526
+ }
527
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
528
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
529
+ margin-top: 1.2em;
530
+ font-family: var(--font-body);
531
+ font-weight: 600;
532
+ font-size: 1em; /* .who 26px ≈ 基准 */
533
+ color: var(--text-color);
534
+ }
535
+
536
+ /* 1.6.11 closing · P8(colophon):酒红底(1.6.2 已换)。巨词 320px 粉
537
+ (display-closer 700 / -0.05em / lh 0.82)+ serif 副 48px 粉(lead);
538
+ 四列 colophon(23.2% 列宽)= h6 mono 24px lime 大写 .15em + 文 24px 奶白;
539
+ corner-pills 与右上 mono 落款为绝对定位装饰——未复刻 */
540
+ body.presenting #editor[data-slide-layout='closing'] .cm-content {
541
+ justify-content: flex-end;
542
+ padding-bottom: 110px; /* .grid bottom:120px 留 chrome 量 */
543
+ }
544
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title,
545
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title {
546
+ font-size: var(--slide-closing-title-size);
547
+ line-height: 0.82;
548
+ letter-spacing: -0.05em;
549
+ color: var(--seed-accent);
550
+ }
551
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-lead,
552
+ body.slides-printing .cm-md-slide-closing.cm-md-page-lead {
553
+ font-family: var(--slide-serif);
554
+ font-weight: 400;
555
+ font-size: 1.85em; /* .serif 48px ÷26 */
556
+ line-height: 1;
557
+ color: var(--seed-accent);
558
+ max-width: none;
559
+ opacity: 1;
560
+ }
561
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
562
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
563
+ display: inline-block;
564
+ width: 23.2%; /* 四列 + 24px gap @1792 */
565
+ margin: 1.2em 2.3% 0 0;
566
+ vertical-align: top;
567
+ font-size: 0.92em; /* .col p 24px ÷26 */
568
+ line-height: 1.45;
569
+ }
570
+ body.presenting .cm-md-slide-closing.cm-md-li::before,
571
+ body.slides-printing .cm-md-slide-closing.cm-md-li::before {
572
+ content: none; /* colophon 列无 ▸ 序标 */
573
+ }
574
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-strong,
575
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-strong {
576
+ display: block;
577
+ font-family: var(--font-mono);
578
+ font-size: 1em; /* h6 24px ÷24 */
579
+ font-weight: 500;
580
+ letter-spacing: 0.15em;
581
+ text-transform: uppercase;
582
+ color: var(--bg-color); /* h6 lime = butter */
583
+ margin-bottom: 0.55em;
584
+ }
585
+
586
+ /* 1.6.12 chrome · footer:JetBrains Mono 16px 0.12em 大写 .75(.footer);
587
+ 上游对 closing 整页淡出 chrome,模板 P8 保留页脚 → 恢复 */
588
+ body.presenting .slide-chrome,
589
+ body.slides-printing .slide-chrome,
590
+ body.presenting .slide-foot,
591
+ body.slides-printing .slide-foot {
592
+ font-size: clamp(12px, 0.83vw, 16px);
593
+ letter-spacing: 0.12em;
594
+ opacity: 0.75;
595
+ }
596
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-chrome,
597
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-foot {
598
+ opacity: 0.75;
599
+ }
600
+
601
+ /* ═══════════════════════════════════════════════════════════
602
+ * SECTION 2 — Editor Styling
603
+ * 编辑器的文档式排版(三色纪律:正文酒红于黄油纸)
604
+ * ═══════════════════════════════════════════════════════════ */
605
+
606
+ #editor .cm-content {
607
+ font-family: var(--font-body);
608
+ line-height: 1.6;
609
+ }
610
+
611
+ /* ── 2.1 Headings(Bricolage 结构声部;800 只留给封面巨词;h6 = mono
612
+ 标签声部,对齐模板「全部标签大写等宽」纪律)── */
613
+ #editor .cm-content .cm-md-atxheading1,
614
+ #editor .cm-content .cm-md-atxheading2,
615
+ #editor .cm-content .cm-md-atxheading3,
616
+ #editor .cm-content .cm-md-atxheading4,
617
+ #editor .cm-content .cm-md-atxheading5,
618
+ #editor .cm-content .cm-md-atxheading6 {
619
+ font-family: var(--font-body);
620
+ color: var(--text-color);
621
+ line-height: 1.15;
622
+ padding-top: 0.2em;
623
+ }
624
+ #editor .cm-content .cm-md-atxheading1 { font-size: 2.7em; font-weight: 700; letter-spacing: -0.025em; }
625
+ #editor .cm-content .cm-md-atxheading2 { font-size: 2em; font-weight: 700; letter-spacing: -0.02em; }
626
+ #editor .cm-content .cm-md-atxheading3 { font-size: 1.5em; font-weight: 600; letter-spacing: -0.01em; }
627
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1.25em; font-weight: 600; }
628
+ #editor .cm-content .cm-md-atxheading5 { font-size: 1.12em; font-weight: 600; }
629
+ #editor .cm-content .cm-md-atxheading6 {
630
+ font-family: var(--font-mono);
631
+ font-size: 1em;
632
+ font-weight: 500;
633
+ letter-spacing: 0.15em;
634
+ text-transform: uppercase;
635
+ }
636
+
637
+ /* ── 2.2 Inline(em → Instrument Serif 斜体是模板 em 规则;strong 永远
638
+ 正文色——模板三色纪律里浅底强调靠字重而非换色;链接用加深玫瑰档 CR-04)── */
639
+ #editor .cm-content .cm-md-em {
640
+ font-family: var(--slide-serif);
641
+ font-style: italic;
642
+ font-weight: 400;
643
+ font-synthesis: none;
644
+ }
645
+ #editor .cm-content .cm-md-strong {
646
+ color: var(--text-color);
647
+ font-weight: 600;
648
+ }
649
+ #editor .cm-content .cm-md-link {
650
+ color: var(--link-color);
651
+ text-decoration-color: var(--border-color);
652
+ }
653
+
654
+ /* ── 2.3 Code / Quote / Table(引用与代码块一律只加横向 padding:
655
+ 每行一个 div,纵向 padding 会按行累加)── */
656
+ #editor .cm-content .cm-md-inlinecode {
657
+ font-family: var(--font-mono);
658
+ font-size: 0.92em;
659
+ background: var(--code-bg);
660
+ border-radius: 4px;
661
+ }
662
+ #editor .cm-content .cm-md-codeblock {
663
+ font-family: var(--font-mono);
664
+ font-size: 0.9em;
665
+ background: var(--code-block-bg);
666
+ color: var(--code-block-text);
667
+ padding-left: 16px;
668
+ padding-right: 16px;
669
+ border-radius: 4px;
670
+ }
671
+ #editor .cm-content .cm-md-codeblock:first-child { border-radius: 4px 4px 0 0; }
672
+ #editor .cm-content .cm-md-codeblock:last-child { border-radius: 0 0 4px 4px; }
673
+ #editor .cm-content .cm-md-blockquote {
674
+ background: var(--blockquote-bg);
675
+ border-left: 2px solid var(--blockquote-border);
676
+ padding-left: 16px;
677
+ padding-right: 16px;
678
+ color: var(--text-secondary);
679
+ }
680
+ #editor .cm-content .cm-md-listmark { color: var(--text-muted); }
681
+ #editor .cm-content .cm-md-hr { border-top-color: var(--seed-border-strong); }
682
+ #editor .cm-md-table-widget th {
683
+ font-family: var(--font-mono);
684
+ font-size: 0.72em;
685
+ font-weight: 500;
686
+ letter-spacing: 0.15em;
687
+ text-transform: uppercase;
688
+ background: var(--table-header-bg);
689
+ border-bottom: 2px solid var(--seed-border-strong);
690
+ padding: 10px 14px;
691
+ }
692
+ #editor .cm-md-table-widget td {
693
+ padding: 10px 14px;
694
+ border-bottom: 1px solid rgba(122, 31, 53, 0.25);
695
+ }
696
+
697
+ /* ── 2.4 中文首行缩进 ──
698
+ CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表/
699
+ 图表行归零(页首指令行与 kicker 行不参与正文排版)。 */
700
+ #editor .cm-content .cm-line { text-indent: 2em; }
701
+
702
+ #editor .cm-content .cm-md-atxheading1,
703
+ #editor .cm-content .cm-md-atxheading2,
704
+ #editor .cm-content .cm-md-atxheading3,
705
+ #editor .cm-content .cm-md-atxheading4,
706
+ #editor .cm-content .cm-md-atxheading5,
707
+ #editor .cm-content .cm-md-atxheading6,
708
+ #editor .cm-content .cm-md-blockquote,
709
+ #editor .cm-content .cm-md-codeblock,
710
+ #editor .cm-content .cm-md-hr,
711
+ #editor .cm-content .cm-md-mermaid,
712
+ #editor .cm-content .cm-md-li-0,
713
+ #editor .cm-content .cm-md-li-1,
714
+ #editor .cm-content .cm-md-li-2,
715
+ #editor .cm-content .cm-md-li-3,
716
+ #editor .cm-content .cm-md-li-4,
717
+ #editor .cm-content .cm-md-li-5,
718
+ #editor .cm-content .cm-md-li-6 {
719
+ text-indent: 0;
720
+ }
721
+
722
+ /* ═══════════════════════════════════════════════════════════
723
+ * SECTION 3 — Export DOM Styling
724
+ * 导出 DOM 用语义标签(.colamd-document),与 SECTION 2 保持同款数值
725
+ * ═══════════════════════════════════════════════════════════ */
726
+
727
+ .colamd-document {
728
+ font-family: var(--font-body);
729
+ font-size: 16px;
730
+ line-height: 1.6;
731
+ color: var(--text-color);
732
+ }
733
+ .colamd-document h1 { font-size: 2.7em; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 0.4em 0 0.5em; }
734
+ .colamd-document h2 { font-size: 2em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 1.4em 0 0.5em; }
735
+ .colamd-document h3 { font-size: 1.5em; font-weight: 600; letter-spacing: -0.01em; margin: 1.3em 0 0.45em; }
736
+ .colamd-document h4 { font-size: 1.25em; font-weight: 600; margin: 1.2em 0 0.4em; }
737
+ .colamd-document h5 { font-size: 1.12em; font-weight: 600; margin: 1.2em 0 0.4em; }
738
+ .colamd-document h6 {
739
+ font-family: var(--font-mono);
740
+ font-size: 1em;
741
+ font-weight: 500;
742
+ letter-spacing: 0.15em;
743
+ text-transform: uppercase;
744
+ margin: 1.2em 0 0.4em;
745
+ }
746
+ .colamd-document em {
747
+ font-family: var(--slide-serif);
748
+ font-style: italic;
749
+ font-weight: 400;
750
+ font-synthesis: none;
751
+ }
752
+ .colamd-document strong { color: var(--text-color); font-weight: 600; }
753
+ .colamd-document a { color: var(--link-color); text-decoration-color: var(--border-color); }
754
+ .colamd-document code {
755
+ font-family: var(--font-mono);
756
+ font-size: 0.92em;
757
+ background: var(--code-bg);
758
+ border-radius: 4px;
759
+ padding: 0.1em 0.35em;
760
+ }
761
+ .colamd-document pre {
762
+ font-family: var(--font-mono);
763
+ font-size: 0.9em;
764
+ background: var(--code-block-bg);
765
+ color: var(--code-block-text);
766
+ border-radius: 4px;
767
+ padding: 1em 1.2em;
768
+ }
769
+ .colamd-document blockquote {
770
+ background: var(--blockquote-bg);
771
+ border-left: 2px solid var(--blockquote-border);
772
+ padding: 0.6em 1.2em;
773
+ margin: 1.2em 0;
774
+ color: var(--text-secondary);
775
+ }
776
+ .colamd-document mark { background: var(--highlight-bg); padding: 0.05em 0.2em; }
777
+ .colamd-document hr { border: none; border-top: 1px solid var(--seed-border-strong); margin: 2em 0; }
778
+ .colamd-document th {
779
+ font-family: var(--font-mono);
780
+ font-size: 0.72em;
781
+ font-weight: 500;
782
+ letter-spacing: 0.15em;
783
+ text-transform: uppercase;
784
+ background: var(--table-header-bg);
785
+ border-bottom: 2px solid var(--seed-border-strong);
786
+ padding: 10px 14px;
787
+ text-align: left;
788
+ }
789
+ .colamd-document td { padding: 10px 14px; border-bottom: 1px solid rgba(122, 31, 53, 0.25); }
790
+ .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
791
+
792
+ /* 中文首行缩进(显式排除块级元素) */
793
+ .colamd-document p { text-indent: 2em; }
794
+ .colamd-document h1 p, .colamd-document h2 p, .colamd-document h3 p,
795
+ .colamd-document blockquote p, .colamd-document li p, .colamd-document pre p,
796
+ .colamd-document td p, .colamd-document th p, .colamd-document figure p {
797
+ text-indent: 0;
798
+ }
799
+ .colamd-document p:has(blockquote),
800
+ .colamd-document p:has(table),
801
+ .colamd-document p:has(pre),
802
+ .colamd-document p:has(svg),
803
+ .colamd-document p:has(img) { text-indent: 0; }
804
+
805
+ /* ── Print ── */
806
+ @media print {
807
+ .colamd-document {
808
+ print-color-adjust: exact;
809
+ -webkit-print-color-adjust: exact;
810
+ }
811
+ }