@bytechain.cn/colamd-themes 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +22 -4
  2. package/package.json +1 -1
  3. package/skills/colamd-themes/SKILL.md +86 -1
  4. package/themes/8-bit-orbit.css +817 -0
  5. package/themes/README.md +69 -0
  6. package/themes/biennale-yellow.css +577 -0
  7. package/themes/block-frame.css +774 -0
  8. package/themes/blue-professional.css +741 -0
  9. package/themes/bold-poster.css +794 -0
  10. package/themes/broadside.css +837 -0
  11. package/themes/capsule.css +767 -0
  12. package/themes/cartesian.css +584 -0
  13. package/themes/cobalt-grid.css +632 -0
  14. package/themes/coral.css +699 -0
  15. package/themes/creative-mode.css +642 -0
  16. package/themes/daisy-days.css +1052 -0
  17. package/themes/editorial-forest.css +796 -0
  18. package/themes/editorial-tri-tone.css +811 -0
  19. package/themes/emerald-editorial.css +683 -0
  20. package/themes/grove.css +623 -0
  21. package/themes/long-table.css +782 -0
  22. package/themes/mat.css +848 -0
  23. package/themes/monochrome.css +782 -0
  24. package/themes/neo-grid-bold.css +838 -0
  25. package/themes/peoples-platform.css +843 -0
  26. package/themes/pin-and-paper.css +700 -0
  27. package/themes/pink-script-dark.css +648 -0
  28. package/themes/pink-script.css +290 -0
  29. package/themes/playful.css +774 -0
  30. package/themes/raw-grid.css +814 -0
  31. package/themes/retro-windows.css +767 -0
  32. package/themes/retro-zine.css +814 -0
  33. package/themes/sakura-chroma.css +775 -0
  34. package/themes/scatterbrain.css +726 -0
  35. package/themes/signal.css +872 -0
  36. package/themes/soft-editorial.css +788 -0
  37. package/themes/stencil-tablet.css +922 -0
  38. package/themes/studio.css +767 -0
  39. package/themes/vellum.css +723 -0
@@ -0,0 +1,623 @@
1
+ /*
2
+ * ColaMD Theme: Grove(林间 · 手工精修逐页复刻版)
3
+ * 来源:D:\workspace\git\beautiful-html-templates\templates\grove\template.html
4
+ * + design.md + template.json(12 页文学 monograph 演讲系统)
5
+ * 色板(template.html :root):
6
+ * bg #192b1b 深林绿 / bg-alt #1e3221 / parchment #e8e4d6 / parchment-alt #dedad0
7
+ * fg #d4cfbf 暖奶油(禁纯白)/ fg-2 cream 60% / fg-3 cream 32%
8
+ * fg-light #192b1b(绿既是暗底又是纸面正文色——模板明文的表面反转手法)
9
+ * accent #c8524a 陶土珊瑚 / border cream 12% / border-light green 14%
10
+ * 字体(单字重纪律):Playfair Display 400(唯一衬线,禁 bold——模板第一铁律)
11
+ * Jost 300(正文 good-paper 声部)/ JetBrains Mono 300(chrome 标签声部)
12
+ * paradigm 备案(深林绿身份,与 biennale-yellow「黄纸」同类,有意保留):
13
+ * SL-01 —— 画布 #192b1b 饱和度 26.5% > 5%:深林绿画布即主题身份,不中性化;
14
+ * SL-02 —— panel #2c3b2b / panelAlt #3e4c3c 绿系面板(15.7%/11.8%):代码块
15
+ * 与表头同属林间世界,与画布同轴;
16
+ * CR-04 —— 珊瑚 #c8524a 作文字色(kicker/stat 大数字/巨引号/署名):暗绿底
17
+ * 3.4:1、纸面 3.5:1——仅用于大字号(stat 86px,过 3:1 大字标准)与
18
+ * chrome 声部;正文阅读文字一律奶油/绿,链接用提亮档 #d9796b
19
+ * (暗绿底 4.9:1);标题内 em 珊瑚斜体为 design.md 明文签名手法。
20
+ * 其余范式项已沿画布色相轴(H≈127°)无感修正,不再备案:SL-02 panelAlt、
21
+ * SL-03 色相轴(面板/边框 ΔH ≤ 3°)、NT-03 边框饱和度。
22
+ * 十二页 → 版式映射总表(换算式详载 SECTION 1.5 注释):
23
+ * cover←P1(暗) section←P2/P9(暗 chapter) kpi←P5(暗 stats)
24
+ * quote←P7(暗) closing←P12(暗 end)
25
+ * figure←P4(纸 split) agenda←P6(纸 list) two-col←P8(纸 compare)
26
+ * 契约:ColaMD 2.7.13(:root 活变量;CM6 每行一 div;引用/代码块禁纵向 padding)
27
+ *
28
+ * 两条硬规矩:
29
+ * 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
30
+ * 编辑器继承不到。
31
+ * 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
32
+ * 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
33
+ * 并且引用/代码块**不能加纵向 padding**——那会按行累加。
34
+ *
35
+ * ═══════════════════════════════════════════════════════════
36
+ * SECTION 1 — Design Tokens
37
+ * 改 11 个种子色 + 3 组字体即可换一套主题
38
+ * ═══════════════════════════════════════════════════════════ */
39
+
40
+ :root {
41
+
42
+ /* ── 1.1 Seed Palette ──
43
+ 本工具的再生成与校验读这一层;编辑器不消费。
44
+ 来源(template.html :root):bg #192b1b / fg #d4cfbf / accent #c8524a
45
+ panel 系为 bg-alt 同轴绿;边框中性化见文件头备案。 */
46
+ --seed-accent: #c8524a; /* 陶土珊瑚——kicker/巨数字/引号的身份色(CR-04 备案) */
47
+ --seed-accent-light: #d9796b; /* 珊瑚提亮档:暗绿底 4.9:1,正文链接用 */
48
+ --seed-accent-dark: #a8433c;
49
+ --seed-surface: #192b1b; /* 深林绿画布(SL-01 备案) */
50
+ --seed-panel: #2e382f; /* bg-alt 同轴:行内代码/表头托(沿 H≈127° 微调消 SL-02/SL-03) */
51
+ --seed-panel-alt: #3e4b40; /* 代码块底(同上) */
52
+ --seed-ink: #d4cfbf; /* 暖奶油正文(禁纯白) */
53
+ --seed-ink-muted: #b9b6ac; /* 次要文字(模板 fg-2 60% 提亮保编辑器可读) */
54
+ --seed-ink-dim: #a9a69c; /* 辅助文字 */
55
+ --seed-border: #565c57; /* 发丝线(NT-03 中性化 + 沿色相轴微调) */
56
+ --seed-border-strong: #565c57;
57
+
58
+ /* ── 1.2 Semantic Colors(活变量)── */
59
+ --bg-color: var(--seed-surface);
60
+ --text-color: var(--seed-ink);
61
+ --text-secondary: var(--seed-ink-muted);
62
+ --text-muted: var(--seed-ink-dim);
63
+ --border-color: var(--seed-border);
64
+ /* 正文链接走珊瑚提亮档 ≥4.5:1(CR-04);珊瑚身份由 chrome/大字承担 */
65
+ --link-color: #d9796b;
66
+
67
+ --code-bg: var(--seed-panel);
68
+ --code-block-bg: var(--seed-panel-alt);
69
+ --code-block-text: #d4cfbf; /* 暖奶油——模板禁纯白,生成版 #fff 已修 */
70
+
71
+ --blockquote-border: var(--seed-accent); /* 珊瑚左轨(巨引号同源) */
72
+ --blockquote-bg: var(--seed-panel);
73
+ --table-header-bg: var(--seed-panel);
74
+
75
+ --selection-bg: rgba(200, 82, 74, 0.18);
76
+ --highlight-bg: rgba(200, 82, 74, 0.18); /* 珊瑚淡染荧光 */
77
+
78
+ /* ── 1.3 Typography & Metrics(活变量)── */
79
+ --font-body: "Jost", "Noto Sans SC", sans-serif;
80
+ --font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
81
+ --editor-font-size: 16px;
82
+ --editor-column-width: 820px;
83
+
84
+ /* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
85
+ 图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导。 */
86
+ --pele-bg: var(--code-block-bg);
87
+ --pele-fg: var(--code-block-text);
88
+ --pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
89
+ --pele-line: var(--code-block-text);
90
+ --pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
91
+ --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
92
+ --pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
93
+ --pele-accent: var(--seed-accent); /* 放映弹头/引号/时间轴点/表头线全吃珊瑚 */
94
+ --pele-radius: 0px; /* 模板零圆角(生成版 6px 已修) */
95
+ }
96
+
97
+ /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 grove 十二页逐页复刻)──
98
+ 换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
99
+ 模板为 vw/vh 流式体系,取 1920×1080 实际落点:5.5vw=105.6px、3.2vw=61.4px、
100
+ 4.5vw=86.4px、8vw=153.6px、1.45vw=27.8px、max(1.4vw,17px)=26.9px、0.7vw=13.4px。
101
+ 字体体系:Playfair Display 400(唯一衬线,禁 bold)/ Jost 300 正文 /
102
+ JetBrains Mono 300 chrome。页面对照:
103
+ cover←P1(暗) section←P2/P9(暗 chapter) kpi←P5(暗 stats)
104
+ quote←P7(暗) closing←P12(暗 end)
105
+ figure←P4(纸 split) agenda←P6(纸 list) two-col←P8(纸 compare)
106
+ (P3/P10 statement 与 section 同形不单列——P10 为纸页异底,以 section 放映
107
+ 走暗底声部,未复刻;P11 chart 图表主体与 figure 同形但暗底,未单列;
108
+ timeline/steps/matrix 无对应页,保持上游默认。
109
+ 绝对定位装饰:grove-num 水印巨数字以上游 .slide-ghost 近似复刻(仅
110
+ cover/section/closing 显示,Playfair 400 18vw 6%,见 1.6.9);grove-sidebar
111
+ 模板自身已 display:none 弃用,无需复刻;36px 珊瑚短横(kicker 与标题间的
112
+ 节拍线)、cover 底部 meta 条、nav-dots、data-anim 入场动画在行式 DOM 无挂点
113
+ ——未复刻;em-dash 弹头以珊瑚+mono 染色近似,字形未替换。
114
+ 纸页(P4/P6/P8)整链换 parchment 见 1.6.4。 */
115
+ :root {
116
+ --slide-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
117
+ --slide-title-font: "Playfair Display", "Noto Serif SC", serif;
118
+ --slide-title-size: 2.36em; /* 内容页题 .h2 3.2vw=61.4px ÷26(P4/P5/P6/P8 同档) */
119
+ --slide-title-weight: 400; /* Playfair 禁 bold(生成版 700 已修) */
120
+ --slide-subhead-weight: 400; /* 模板无粗子题 */
121
+ --slide-title-tracking: 0; /* 模板 h1/h2 无字距(display 才 -.01em) */
122
+ --slide-title-line-height: 1.2; /* .h2 1.2 */
123
+ --slide-cover-title-size: 4.06em; /* P1 h1 5.5vw=105.6px ÷26(模板封面即 h1,非 display) */
124
+ --slide-cover-title-line-height: 1.1; /* .h1 1.1 */
125
+ --slide-cover-title-tracking: 0;
126
+ --slide-section-title-size: 4.06em; /* P2/P9 chapter h1 5.5vw=105.6px ÷26 */
127
+ --slide-closing-title-size: 4.06em; /* P12 h1 5.5vw=105.6px ÷26 */
128
+ --slide-lead-size: 1.07em; /* .lead 1.45vw=27.8px ÷26 */
129
+ --slide-kicker-size: clamp(10px, 0.7vw, 14px); /* .kicker/.label 0.7vw=13.4px @1920 */
130
+ --slide-kicker-tracking: 0.14em; /* .kicker .14em */
131
+ --slide-kicker-transform: uppercase;
132
+ --slide-chrome-opacity: 0.62; /* chrome .label.muted = cream 60% 淡出档 */
133
+ --slide-chrome-transform: uppercase;
134
+ --slide-kpi-number-size: 6.39em; /* .grove-stat-val 4.5vw=86.4px ÷26 ÷0.52(li 基准) */
135
+ --slide-quote-size: 2.36em; /* .quote-text 3.2vw=61.4px ÷26 */
136
+ --slide-page-pad-x: 8vw; /* 模板 --pad-x 8vw 原样 */
137
+ --slide-page-top-pad: 70px; /* pad-y 6.5vh @1080,已容 chrome 安全区 */
138
+ --slide-page-top-pad-print: 60px;
139
+ --slide-cover-text-align: left; /* P1 左对齐(垂直居中) */
140
+ --slide-cover-lead-inline: auto;
141
+ }
142
+
143
+ /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
144
+ body.presenting / body.slides-printing 作用域) ═══════════════ */
145
+
146
+ /* 1.6.1 页标题声部对齐:Playfair 400 奶油(编辑器文档式标题带 id 权重会漏进
147
+ 放映,此处重断言),并压掉文档式 h1/h2 的 border-bottom */
148
+ body.presenting #editor .cm-content .cm-md-page-title,
149
+ 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; /* Playfair 禁 bold */
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.45em;
159
+ }
160
+ /* kicker 珊瑚:mono 大写小字是模板唯一吃强调色的 chrome(P1-P12 一致,CR-04 备案) */
161
+ body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
162
+ body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
163
+ color: var(--seed-accent);
164
+ }
165
+
166
+ /* 1.6.2 cover · P1(暗):Playfair h1 105.6px 垂直居中左对齐(55% 宽)+
167
+ lead 27.8px(40% 宽);36px 珊瑚短横与底部 meta 条无挂点(未复刻) */
168
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
169
+ body.slides-printing .cm-md-slide-cover.cm-md-page-title {
170
+ font-size: var(--slide-cover-title-size);
171
+ line-height: var(--slide-cover-title-line-height);
172
+ letter-spacing: var(--slide-cover-title-tracking);
173
+ max-width: 55%;
174
+ }
175
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
176
+ body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
177
+ max-width: 40%;
178
+ }
179
+
180
+ /* 1.6.3 section · P2/P9(暗 chapter):h1 105.6px(62% 宽)垂直居中 +
181
+ lead 27.8px(48% 宽);chapter-num 字距 .2em(比通用 kicker .14em 宽) */
182
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title,
183
+ body.slides-printing .cm-md-slide-section.cm-md-page-title {
184
+ max-width: 62%;
185
+ line-height: 1.1;
186
+ }
187
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
188
+ body.slides-printing .cm-md-slide-section.cm-md-page-lead {
189
+ max-width: 48%;
190
+ }
191
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
192
+ body.slides-printing .cm-md-slide-section .cm-md-page-title[data-slide-kicker]::before {
193
+ letter-spacing: 0.2em; /* .chapter-num .2em */
194
+ }
195
+
196
+ /* 1.6.4 纸页整链换 parchment(P4/P6/P8 原页面底色即 --c-bg-light #e8e4d6):
197
+ 底色必须打满整条层叠链——body / #editor / .cm-editor / .cm-scroller /
198
+ .cm-content 五层,只挂 body 会被平台给 #editor 画的暗绿底反盖("纸页显成绿页");
199
+ 文字翻转用 var(--bg-color)——绿既是暗底又是纸面正文色(模板反转手法)。
200
+ 打印域混底 deck 时页面底色取其一(行式 DOM 限制,与 pin-and-paper 同) */
201
+ body.presenting:has(#editor[data-slide-layout='figure']),
202
+ body.presenting:has(#editor[data-slide-layout='agenda']),
203
+ body.presenting:has(#editor[data-slide-layout='two-col']),
204
+ body.slides-printing:has(.cm-md-slide-figure),
205
+ body.slides-printing:has(.cm-md-slide-agenda),
206
+ body.slides-printing:has(.cm-md-slide-two-col) {
207
+ background: #e8e4d6; /* --c-bg-light 暖羊皮纸 */
208
+ }
209
+ body.presenting #editor[data-slide-layout='figure'],
210
+ body.presenting #editor[data-slide-layout='agenda'],
211
+ body.presenting #editor[data-slide-layout='two-col'],
212
+ body.slides-printing:has(.cm-md-slide-figure) #editor,
213
+ body.slides-printing:has(.cm-md-slide-agenda) #editor,
214
+ body.slides-printing:has(.cm-md-slide-two-col) #editor,
215
+ body.presenting #editor[data-slide-layout='figure'] .cm-editor,
216
+ body.presenting #editor[data-slide-layout='agenda'] .cm-editor,
217
+ body.presenting #editor[data-slide-layout='two-col'] .cm-editor,
218
+ body.slides-printing:has(.cm-md-slide-figure) .cm-editor,
219
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-editor,
220
+ body.slides-printing:has(.cm-md-slide-two-col) .cm-editor,
221
+ body.presenting #editor[data-slide-layout='figure'] .cm-scroller,
222
+ body.presenting #editor[data-slide-layout='agenda'] .cm-scroller,
223
+ body.presenting #editor[data-slide-layout='two-col'] .cm-scroller,
224
+ body.slides-printing:has(.cm-md-slide-figure) .cm-scroller,
225
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-scroller,
226
+ body.slides-printing:has(.cm-md-slide-two-col) .cm-scroller,
227
+ body.presenting #editor[data-slide-layout='figure'] .cm-content,
228
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content,
229
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content,
230
+ body.slides-printing:has(.cm-md-slide-figure) .cm-content,
231
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-content,
232
+ body.slides-printing:has(.cm-md-slide-two-col) .cm-content {
233
+ background: #e8e4d6;
234
+ }
235
+ body.presenting #editor[data-slide-layout='figure'] .cm-content,
236
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content,
237
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content,
238
+ body.slides-printing .cm-md-slide-figure .cm-md-page-title ~ *,
239
+ body.slides-printing .cm-md-slide-agenda .cm-md-page-title ~ *,
240
+ body.slides-printing .cm-md-slide-two-col .cm-md-page-title ~ * {
241
+ color: var(--bg-color); /* 纸面正文 = 深林绿 */
242
+ }
243
+ /* 导语压淡档:fg-light-2(green 58%)——奶油 60% 落纸面同色隐形 */
244
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-lead,
245
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content .cm-md-page-lead,
246
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-lead,
247
+ body.slides-printing .cm-md-slide-figure.cm-md-page-lead,
248
+ body.slides-printing .cm-md-slide-agenda.cm-md-page-lead,
249
+ body.slides-printing .cm-md-slide-two-col.cm-md-page-lead {
250
+ color: rgba(25, 43, 27, 0.58);
251
+ }
252
+ /* 幽灵页码 = 奶油,落纸面同色隐形;纸页本无水印,整页隐藏(同 1.6.9 全局) */
253
+ /* 表格:奶油 td 落纸面同色隐形 → 换绿;th 自带绿系底色不受影响,字回奶油 */
254
+ body.presenting #editor[data-slide-layout='figure'] .cm-md-table-widget td,
255
+ body.presenting #editor[data-slide-layout='agenda'] .cm-md-table-widget td,
256
+ body.presenting #editor[data-slide-layout='two-col'] .cm-md-table-widget td,
257
+ body.slides-printing:has(.cm-md-slide-figure) .cm-md-table-widget td,
258
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-md-table-widget td,
259
+ body.slides-printing:has(.cm-md-slide-two-col) .cm-md-table-widget td {
260
+ color: var(--bg-color);
261
+ }
262
+ body.presenting #editor[data-slide-layout='figure'] .cm-md-table-widget th,
263
+ body.presenting #editor[data-slide-layout='agenda'] .cm-md-table-widget th,
264
+ body.presenting #editor[data-slide-layout='two-col'] .cm-md-table-widget th,
265
+ body.slides-printing:has(.cm-md-slide-figure) .cm-md-table-widget th,
266
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-md-table-widget th,
267
+ body.slides-printing:has(.cm-md-slide-two-col) .cm-md-table-widget th {
268
+ color: var(--text-color);
269
+ }
270
+ /* 纸页 chrome/foot:fg-light-2 绿淡出档,发丝线 currentColor 同步翻转 */
271
+ body.presenting [data-slide-layout='figure'] .slide-chrome,
272
+ body.presenting [data-slide-layout='agenda'] .slide-chrome,
273
+ body.presenting [data-slide-layout='two-col'] .slide-chrome,
274
+ body.presenting [data-slide-layout='figure'] .slide-foot,
275
+ body.presenting [data-slide-layout='agenda'] .slide-foot,
276
+ body.presenting [data-slide-layout='two-col'] .slide-foot,
277
+ body.slides-printing [data-slide-layout='figure'] .slide-chrome,
278
+ body.slides-printing [data-slide-layout='agenda'] .slide-chrome,
279
+ body.slides-printing [data-slide-layout='two-col'] .slide-chrome,
280
+ body.slides-printing [data-slide-layout='figure'] .slide-foot,
281
+ body.slides-printing [data-slide-layout='agenda'] .slide-foot,
282
+ body.slides-printing [data-slide-layout='two-col'] .slide-foot {
283
+ color: rgba(25, 43, 27, 0.58);
284
+ }
285
+
286
+ /* 1.6.5 agenda · P6(纸 list):页题 61.4px;清单 = max(1.4vw,17px)=26.9px
287
+ Jost 300 + 珊瑚 mono 弹头,行距 gap 2.8vh——grove 清单无行线,压掉上游
288
+ agenda 的 border-top(**行题**珊瑚 = 模板 .accent 正文强调声部,上游默认) */
289
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
290
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
291
+ font-size: 1.03em; /* 26.9px ÷26 */
292
+ border-top: none;
293
+ border-bottom: none;
294
+ padding-top: 0;
295
+ padding-bottom: 0;
296
+ margin: 0 0 1.1em; /* gap 2.8vh=30px ÷26.9px 行字号 */
297
+ }
298
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
299
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
300
+ font-family: var(--slide-mono);
301
+ font-weight: 400;
302
+ font-size: 1em;
303
+ color: var(--seed-accent); /* em-dash 弹头珊瑚(字形未替换) */
304
+ }
305
+
306
+ /* 1.6.6 kpi · P5(暗 stats):页题 61.4px;grove-stat 无卡壳——三列裸排 +
307
+ mono 大写 label 13.4px 基准 + 底部 cream 12% 发丝线 + 86.4px 珊瑚 serif
308
+ 大数字(模板 stat 是唯一吃强调色的大字,CR-04 备案) */
309
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
310
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
311
+ width: 27.6%; /* 三列 1fr + gap 4.8vw @1920(含尾距均摊) */
312
+ margin: 0 5.7% 1.4em 0;
313
+ padding: 0 0 2.2em; /* .grove-stat padding-bottom 30px ÷13.4px 行字号 */
314
+ background: transparent;
315
+ border: none;
316
+ border-bottom: 1px solid rgba(212, 207, 191, 0.12); /* cream 发丝线(.grove-stat) */
317
+ border-radius: 0;
318
+ box-shadow: none;
319
+ font-family: var(--slide-mono);
320
+ font-size: 0.52em; /* .grove-stat-label 13.4px ÷26 */
321
+ letter-spacing: 0.12em;
322
+ text-transform: uppercase;
323
+ line-height: 1.6;
324
+ }
325
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
326
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
327
+ font-size: var(--slide-kpi-number-size); /* 86.4px ÷26 ÷0.52(li 基准) */
328
+ font-weight: 400; /* Playfair 禁 bold(上游 800 已修) */
329
+ line-height: 1;
330
+ letter-spacing: -0.02em;
331
+ color: var(--seed-accent); /* .grove-stat-val 珊瑚 */
332
+ }
333
+
334
+ /* 1.6.7 quote · P7(暗):8vw 珊瑚巨引号 + 61.4px Playfair 斜体奶油金句
335
+ (75% 宽)+ mono 珊瑚署名行;quote 页 chromeless(见 1.6.9 隐藏 chrome) */
336
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
337
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
338
+ font-size: var(--slide-quote-size); /* .quote-text 61.4px ÷26 */
339
+ line-height: 1.35;
340
+ color: var(--text-color); /* 模板金句 = fg 全色,非压淡 */
341
+ max-width: 75%;
342
+ }
343
+ body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
344
+ body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
345
+ font-size: 5.9em; /* .quote-mark 8vw=153.6px ÷26 */
346
+ color: var(--seed-accent);
347
+ }
348
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
349
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
350
+ margin-top: 3.6em; /* .quote-attr 上距 gap-lg 48.6px ÷13.4px 行字号
351
+ (CSS-03:纵向留白只走 margin) */
352
+ font-family: var(--slide-mono);
353
+ font-size: 0.52em; /* .label 13.4px ÷26 */
354
+ letter-spacing: 0.12em;
355
+ text-transform: uppercase;
356
+ color: var(--seed-accent); /* 署名 name 珊瑚(CR-04 备案) */
357
+ }
358
+
359
+ /* 1.6.8 closing · P12(暗):h1 105.6px 全色(压掉上游收束页整页压淡);
360
+ P12 无行动清单——清单条目(▸ 珊瑚前缀)保持上游默认 */
361
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title,
362
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title {
363
+ color: var(--text-color);
364
+ }
365
+
366
+ /* 1.6.9 chrome · grove 页框:mono 13.4px .12em 大写;cover/chapter/quote/end
367
+ 模板隐藏 chrome(closing 上游已淡出);ghost = grove-num 水印近似——仅
368
+ cover/section/closing 显示,Playfair 400 18vw 6%(与 grove-num 同参) */
369
+ body.presenting .slide-chrome,
370
+ body.slides-printing .slide-chrome,
371
+ body.presenting .slide-foot,
372
+ body.slides-printing .slide-foot {
373
+ font-size: clamp(10px, 0.7vw, 14px); /* .label 0.7vw=13.4px @1920 */
374
+ letter-spacing: 0.12em;
375
+ }
376
+ body.presenting:has(#editor[data-slide-layout='cover']) .slide-chrome,
377
+ body.presenting:has(#editor[data-slide-layout='cover']) .slide-foot,
378
+ body.presenting:has(#editor[data-slide-layout='section']) .slide-chrome,
379
+ body.presenting:has(#editor[data-slide-layout='section']) .slide-foot,
380
+ body.presenting:has(#editor[data-slide-layout='quote']) .slide-chrome,
381
+ body.presenting:has(#editor[data-slide-layout='quote']) .slide-foot {
382
+ opacity: 0; /* .slide--cover/chapter/quote/end display:none */
383
+ }
384
+ body.presenting .slide-ghost {
385
+ font-weight: 400; /* Playfair 禁 bold(上游 800 已修) */
386
+ font-size: 18vw; /* .grove-num 18vw */
387
+ letter-spacing: -0.03em;
388
+ opacity: 0; /* 水印只属于封面/章节/收页 */
389
+ }
390
+ body.presenting:has(#editor[data-slide-layout='cover']) .slide-ghost,
391
+ body.presenting:has(#editor[data-slide-layout='section']) .slide-ghost,
392
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-ghost {
393
+ opacity: 0.06; /* .grove-num 6% 近隐形 */
394
+ }
395
+
396
+ /* 1.6.10 two-col · P8(纸 compare):栏题 = .compare .h3 2vw=41.6px(第二个
397
+ h2 起;页首 h2 仍是页题声部);compare-label mono 眉标无挂点(未复刻);
398
+ 纸底/文字翻转见 1.6.4;中缝 1px 发丝线由上游 column-rule 承担 */
399
+ body.presenting #editor .cm-content .cm-md-slide-two-col.cm-md-atxheading2:not(.cm-md-page-title),
400
+ body.slides-printing .cm-md-slide-two-col.cm-md-atxheading2:not(.cm-md-page-title) {
401
+ font-size: 1.6em; /* 41.6px ÷26 */
402
+ font-weight: 400;
403
+ }
404
+
405
+ /* ═══════════════════════════════════════════════════════════
406
+ SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
407
+ ═══════════════════════════════════════════════════════════ */
408
+
409
+ #editor .cm-content {
410
+ font-family: var(--font-body);
411
+ font-weight: 300; /* Jost 300 good-paper 声部(单字重纪律) */
412
+ line-height: 1.75; /* 模板 body 1.75 */
413
+ }
414
+
415
+ /* ── 2.1 Headings:Playfair 400 阶梯(模板禁 bold;生成版 h2<h3 倒挂已修,
416
+ 文档式 border-bottom 已去——grove 的线只属于 chrome 与发丝线) ── */
417
+ #editor .cm-content .cm-md-atxheading1,
418
+ #editor .cm-content .cm-md-atxheading2,
419
+ #editor .cm-content .cm-md-atxheading3,
420
+ #editor .cm-content .cm-md-atxheading4,
421
+ #editor .cm-content .cm-md-atxheading5,
422
+ #editor .cm-content .cm-md-atxheading6 {
423
+ font-family: "Playfair Display", "Noto Serif SC", serif;
424
+ color: var(--text-color);
425
+ font-weight: 400;
426
+ }
427
+
428
+ #editor .cm-content .cm-md-atxheading1 { font-size: 2.6em; line-height: 1.1; }
429
+ #editor .cm-content .cm-md-atxheading2 { font-size: 1.9em; line-height: 1.2; }
430
+ #editor .cm-content .cm-md-atxheading3 { font-size: 1.45em; line-height: 1.3; }
431
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1.2em; }
432
+ #editor .cm-content .cm-md-atxheading5 { font-size: 1.05em; }
433
+ #editor .cm-content .cm-md-atxheading6 {
434
+ font-size: 0.95em;
435
+ font-family: var(--font-mono);
436
+ font-weight: 400;
437
+ letter-spacing: 0.12em; /* 模板 mono 眉标声部 */
438
+ text-transform: uppercase;
439
+ }
440
+
441
+ /* Grove 签名:标题内 em = 珊瑚斜体(design.md 明文,斜体沿用浏览器/编辑器默认) */
442
+ #editor .cm-content .cm-md-atxheading1 .cm-md-em,
443
+ #editor .cm-content .cm-md-atxheading2 .cm-md-em,
444
+ #editor .cm-content .cm-md-atxheading3 .cm-md-em {
445
+ color: var(--seed-accent);
446
+ }
447
+
448
+ /* ── 2.2 Inline ── */
449
+ #editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 500; }
450
+ #editor .cm-content .cm-md-em { font-style: italic; }
451
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; }
452
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
453
+ #editor .cm-content .cm-md-link { color: var(--link-color); }
454
+ #editor .cm-content .cm-md-url { color: var(--text-muted); }
455
+
456
+ #editor .cm-content .cm-md-inlinecode {
457
+ font-family: var(--font-mono);
458
+ background: var(--code-bg);
459
+ color: var(--text-color);
460
+ border-radius: 0; /* 模板零圆角 */
461
+ }
462
+
463
+ #editor .cm-content .cm-md-marker,
464
+ #editor .cm-content .cm-md-quotemark,
465
+ #editor .cm-content .cm-md-listmark {
466
+ color: var(--text-muted);
467
+ }
468
+
469
+ /* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
470
+ 引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
471
+ 否则引用里的代码行会盖住代码块底色。 */
472
+ #editor .cm-content .cm-md-blockquote {
473
+ color: var(--text-secondary);
474
+ border-left: 1px solid var(--blockquote-border); /* 1px 发丝纪律(生成版 3px 已修) */
475
+ padding-left: 16px;
476
+ padding-right: 16px;
477
+ }
478
+
479
+ #editor .cm-content .cm-md-codeblock {
480
+ background: var(--code-block-bg);
481
+ color: var(--code-block-text);
482
+ padding-left: 16px;
483
+ padding-right: 16px;
484
+ }
485
+
486
+ /* ── 2.4 Table / Rule(1px 发丝纪律:生成版 th 2px 珊瑚线已修)── */
487
+ #editor .cm-content .cm-md-table-widget th,
488
+ #editor .cm-content .cm-md-table-widget td {
489
+ padding: 10px 14px;
490
+ border-color: var(--border-color);
491
+ }
492
+ #editor .cm-content .cm-md-table-widget th {
493
+ background: var(--table-header-bg);
494
+ color: var(--text-color);
495
+ font-family: var(--font-mono);
496
+ font-size: 0.78em;
497
+ font-weight: 400;
498
+ letter-spacing: 0.12em; /* 模板 mono 标签表头 */
499
+ text-transform: uppercase;
500
+ border-bottom: 1px solid var(--border-color);
501
+ }
502
+ #editor .cm-content .cm-md-hr { border-top-color: var(--border-color); }
503
+
504
+ /* ── 2.5 中文首行缩进 ──
505
+ CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
506
+ #editor .cm-content .cm-line { text-indent: 2em; }
507
+
508
+ #editor .cm-content .cm-md-atxheading1,
509
+ #editor .cm-content .cm-md-atxheading2,
510
+ #editor .cm-content .cm-md-atxheading3,
511
+ #editor .cm-content .cm-md-atxheading4,
512
+ #editor .cm-content .cm-md-atxheading5,
513
+ #editor .cm-content .cm-md-atxheading6,
514
+ #editor .cm-content .cm-md-blockquote,
515
+ #editor .cm-content .cm-md-codeblock,
516
+ #editor .cm-content .cm-md-hr,
517
+ #editor .cm-content .cm-md-mermaid,
518
+ #editor .cm-content .cm-md-li-0,
519
+ #editor .cm-content .cm-md-li-1,
520
+ #editor .cm-content .cm-md-li-2,
521
+ #editor .cm-content .cm-md-li-3,
522
+ #editor .cm-content .cm-md-li-4,
523
+ #editor .cm-content .cm-md-li-5,
524
+ #editor .cm-content .cm-md-li-6 {
525
+ text-indent: 0;
526
+ }
527
+
528
+ /* ═══════════════════════════════════════════════════════════
529
+ SECTION 3 — Exported HTML(.colamd-document,语义标签)
530
+ HTML/PDF 导出不走编辑器 DOM;这段与 SECTION 2 镜像同步。
531
+ ═══════════════════════════════════════════════════════════ */
532
+
533
+ .colamd-document {
534
+ font-family: var(--font-body);
535
+ font-size: 16px;
536
+ font-weight: 300;
537
+ line-height: 1.75;
538
+ }
539
+
540
+ .colamd-document h1,
541
+ .colamd-document h2,
542
+ .colamd-document h3,
543
+ .colamd-document h4,
544
+ .colamd-document h5,
545
+ .colamd-document h6 {
546
+ font-family: "Playfair Display", "Noto Serif SC", serif;
547
+ color: var(--text-color);
548
+ font-weight: 400;
549
+ margin: 1.5em 0 0.5em;
550
+ }
551
+ .colamd-document h1 { font-size: 2.6em; line-height: 1.1; margin-top: 0.4em; }
552
+ .colamd-document h2 { font-size: 1.9em; line-height: 1.2; }
553
+ .colamd-document h3 { font-size: 1.45em; line-height: 1.3; }
554
+ .colamd-document h4 { font-size: 1.2em; }
555
+ .colamd-document h5 { font-size: 1.05em; }
556
+ .colamd-document h6 {
557
+ font-size: 0.95em;
558
+ font-family: var(--font-mono);
559
+ font-weight: 400;
560
+ letter-spacing: 0.12em;
561
+ text-transform: uppercase;
562
+ }
563
+
564
+ .colamd-document h1 em,
565
+ .colamd-document h2 em,
566
+ .colamd-document h3 em { color: var(--seed-accent); }
567
+
568
+ .colamd-document strong { color: var(--text-color); font-weight: 500; }
569
+ .colamd-document code {
570
+ background: var(--code-bg);
571
+ color: var(--text-color);
572
+ font-family: var(--font-mono);
573
+ border-radius: 0;
574
+ }
575
+ /* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
576
+ .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
577
+ .colamd-document pre { background: var(--code-block-bg); }
578
+ .colamd-document pre code { color: var(--code-block-text); }
579
+ .colamd-document blockquote {
580
+ background: var(--blockquote-bg);
581
+ color: var(--text-secondary);
582
+ border-left: 1px solid var(--blockquote-border);
583
+ padding: 0.5em 1.2em;
584
+ }
585
+ .colamd-document mark { background: var(--highlight-bg); }
586
+ .colamd-document th,
587
+ .colamd-document td {
588
+ border-color: var(--border-color);
589
+ padding: 10px 14px;
590
+ }
591
+ .colamd-document th {
592
+ background: var(--table-header-bg);
593
+ font-family: var(--font-mono);
594
+ font-size: 0.78em;
595
+ font-weight: 400;
596
+ letter-spacing: 0.12em;
597
+ text-transform: uppercase;
598
+ border-bottom: 1px solid var(--border-color);
599
+ }
600
+ .colamd-document hr { border-top-color: var(--border-color); }
601
+
602
+ .colamd-document p { text-indent: 2em; }
603
+ .colamd-document li p,
604
+ .colamd-document td p,
605
+ .colamd-document th p,
606
+ .colamd-document blockquote p {
607
+ text-indent: 0;
608
+ }
609
+
610
+ /* ═══════════════════════════════════════════════════════════
611
+ SECTION 4 — Print
612
+ 应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
613
+ ═══════════════════════════════════════════════════════════ */
614
+
615
+ @media print {
616
+ html,
617
+ body {
618
+ background: var(--bg-color);
619
+ color: var(--text-color);
620
+ -webkit-print-color-adjust: exact;
621
+ print-color-adjust: exact;
622
+ }
623
+ }