@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,774 @@
1
+ /*
2
+ * ColaMD Theme: BlockFrame(块面框 · 新粗野主义 · 手工精修版)
3
+ * 来源:D:\workspace\git\beautiful-html-templates\templates\block-frame\
4
+ * template.html + design.md + template.json(10 页新粗野主义 PPT:
5
+ * 4px 黑框 + 8px 硬投影 + 五粉彩满铺轮换 + Inter 900 大写紧排标题 +
6
+ * Space Grotesk 药丸标签;圆角恒为 0,斜体/下划线/柔和阴影永不使用)
7
+ * 色板(template.html :root):pink #FE90E8 / blue #C0F7FE / green #99E885 /
8
+ * yellow #F7CB46 / cream #FFDC8B / black #000000 / white #FFFFFF /
9
+ * offwhite #FFFDF5(画布底,白卡浮于其上)
10
+ * 字体:Inter(display 800-900 大写紧排 -.02~-.03em,正文 500)+
11
+ * Space Grotesk(标签与 chrome 的"准等宽"声部,模板即以 monospace 栈调用)
12
+ *
13
+ * paradigm 备案(新粗野主义身份,刻意保留,同 biennale-yellow"黄纸"先例):
14
+ * SL-01 —— 画布底 #FFFDF5 为刻意暖米纸(HSL 近白使 S 计为 100%,感知上
15
+ * 仅 delta 10/255 的暖调),是模板"暖纸托白卡"身份,备案保留;
16
+ * SL-04 —— 白卡 #FFFFFF 浮于暖米纸 #FFFDF5 之上是模板核心层次
17
+ * (design.md:"white cards sitting on top still feel layered"),
18
+ * panel 明度高于 surface 为刻意反转,不属漂移,备案保留;
19
+ * CR-04 —— 黄 accent #F7CB46 对米纸 1.5:1,仅以色块/条形/▸ 符号出现:
20
+ * 黑底收页 ▸ ≈13.6:1、白卡引号(2px 黑描边)、黄号牌(黑框黑字)。
21
+ * 正文/加粗/序号一律墨黑,换底页文字 = 墨黑(各粉彩上 ≥10:1);
22
+ * SL-03(警告级)—— 暖米纸面 vs 中性白卡/灰面板的色相轴偏差,是"暖纸
23
+ * 托白卡"同一身份的必然结果,与 SL-01/SL-04 一并备案。
24
+ *
25
+ * 换底页层叠链:本模板每页整页换色。放映域 body:has(#editor[data-slide-layout])
26
+ * 与打印域 body.slides-printing:has(.cm-md-slide-*) 先把 --page-bg 折算到 body,
27
+ * 再一条五层链(#editor / .cm-editor / .cm-scroller / .cm-content)统一上色;
28
+ * 非换底页(matrix/timeline/section/agenda)保持 --bg-color 米纸。
29
+ * 收页黑底例外处理:标题白、导语奶油、表格 td 白、chrome/foot 上游已淡出。
30
+ */
31
+
32
+ /* SECTION 1 · Tokens(:root 契约) */
33
+
34
+ /* ── 1.1 Seeds(模板调色板原样入库) ── */
35
+ :root {
36
+ --seed-accent: #F7CB46; /* 黄:CTA / attention voice */
37
+ --seed-accent-light: #FFDC8B; /* 奶油:画布 P1 / P9 */
38
+ --seed-accent-dark: #D9A521; /* 深黄:accent 悬停档 */
39
+ --seed-surface: #FFFDF5; /* offwhite 画布 */
40
+ --seed-panel: #FFFFFF; /* 白卡(SL-04 备案:明度高于 surface) */
41
+ --seed-panel-alt: #ECECEC; /* 中性化:panelAlt 无语义消费,避免 HSL 近白
42
+ 饱和度爆表(SL-02/SL-03 已清零) */
43
+ --seed-ink: #000000; /* 模板唯一文字色 */
44
+ --seed-ink-muted: #3D3D3D; /* 中性灰阶(保 NT-01 无色相轴) */
45
+ --seed-ink-dim: #6E6E6E;
46
+ --seed-border: #000000; /* 模板:边框永远是纯黑 */
47
+ --seed-border-strong: #000000;
48
+ }
49
+
50
+ /* ── 1.2 Semantic(2.7 contract live variables) ── */
51
+ :root {
52
+ --bg-color: var(--seed-surface);
53
+ --text-color: var(--seed-ink); /* 修复:工具版误填 pink,可读性崩坏 */
54
+ --text-secondary: var(--seed-ink-muted);
55
+ --text-muted: var(--seed-ink-dim);
56
+ --border-color: var(--seed-border);
57
+ --link-color: var(--seed-ink); /* CR-04 备案:墨黑链接(≈20:1),下划线区分 */
58
+ --code-bg: rgba(0, 0, 0, 0.07);
59
+ --code-block-bg: var(--seed-panel); /* 白卡式代码块(见 2.3 边框) */
60
+ --code-block-text: var(--seed-ink); /* 修复:工具版误填 pink */
61
+ --blockquote-border: var(--seed-border);
62
+ --blockquote-bg: var(--seed-panel); /* 编辑器只画底色,勿手写 background */
63
+ --table-header-bg: var(--seed-panel);
64
+ --selection-bg: rgba(254, 144, 232, 0.35); /* pink 选择色 */
65
+ --highlight-bg: var(--seed-accent); /* 黄荧光笔 = 模板 attention 色 */
66
+ --font-body: "Inter", "Noto Sans SC", "PingFang SC", sans-serif;
67
+ --font-mono: "Space Grotesk", "Noto Sans Mono CJK SC", monospace; /* 模板准等宽声部 */
68
+ --editor-font-size: 16px;
69
+ --editor-column-width: 820px;
70
+ }
71
+
72
+ /* ── 1.3 Pele(圆角 0、黑线、黄高亮条;禁止 themeVariables) ── */
73
+ :root {
74
+ --pele-bg: var(--code-block-bg);
75
+ --pele-fg: var(--code-block-text);
76
+ --pele-muted: rgba(0, 0, 0, 0.55);
77
+ --pele-line: #000000;
78
+ --pele-surface: rgba(0, 0, 0, 0.18);
79
+ --pele-surface-alt: rgba(0, 0, 0, 0.28);
80
+ --pele-border: rgba(0, 0, 0, 0.45);
81
+ --pele-accent: var(--seed-accent); /* 黄 = 图表高亮条(色块用法,非文字) */
82
+ --pele-radius: 0px;
83
+ }
84
+
85
+ /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 block-frame 十页逐页复刻) ──
86
+ 换算锚点:放映基准 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
87
+ 模板 1920 画布 px ÷ 26 = em;clamp 一律取 1920×1080 实际落点。
88
+ 页面对照(10 页 → ColaMD 版式,版式名以内容结构为准):
89
+ cover←P1 Title Hero(奶油底) two-col←P2 Two Column Intro(蓝底)
90
+ matrix←P3 Feature Cards(米白底) figure←P4 Chart / Data(绿底)
91
+ quote←P5 Big Statement(粉底) steps←P6 Split List(黄底)
92
+ timeline←P7 Roadmap(米白底) kpi←P8 Statistics(蓝底)
93
+ closing←P10 Closing(黑底白字)
94
+ (P9 Team Grid 与 matrix 同形不单列,取 P3 为参照;
95
+ section / agenda 无对应页 → 保持上游默认,仅继承 1.6.1 全局声部)
96
+ 未复刻清单(绝对定位装饰 / 跨行容器 / 逐条轮换,行式 DOM 无挂点):
97
+ P1 hero-frame 白卡框、角括号、粉矩形、绿圆、黄条、点阵;
98
+ P2 右栏三张 intro-card、stat 药丸;P3 图标方块、卡顶黄缺口;
99
+ P4 右栏奶油数据盒;P5 斜纹块;P6 左黑板(行式无左右分栏);
100
+ P7 四卡蓝粉绿黄轮换底色;P8 ±2° 倾斜、圆点、网格;P9 头像方块;
101
+ P10 close-frame 白框黄影、星形、点阵。 */
102
+ :root {
103
+ --slide-mono: "Space Grotesk", "Noto Sans Mono CJK SC", monospace;
104
+ --slide-title-font: "Inter", "Noto Sans SC", sans-serif;
105
+ --slide-title-size: 2.46em; /* 内容页题 heading-lg 64px ÷26(P2/P7/P8/P9 同档) */
106
+ --slide-title-weight: 800; /* heading-lg 800;h1/收页 900 在版式层加码 */
107
+ --slide-subhead-weight: 700; /* card-title / heading-md 700 */
108
+ --slide-title-tracking: -0.02em; /* heading-lg -.02em */
109
+ --slide-title-line-height: 1.05; /* 模板 1.0,CJK 加 0.05 防叠行 */
110
+ --slide-cover-title-size: 3.69em; /* P1 heading-xl 96px ÷26(6vw@1920=115 → 封顶 96) */
111
+ --slide-cover-title-line-height: 0.95;
112
+ --slide-cover-title-tracking: -0.03em;
113
+ --slide-closing-title-size: 3.08em; /* P10 close-title 80px ÷26(5vw@1920=96 → 封顶 80) */
114
+ --slide-lead-size: 0.77em; /* nb-body 20px ÷26 */
115
+ --slide-kicker-size: clamp(11px, 0.68vw, 13px); /* label-pill 13px @1920 */
116
+ --slide-kicker-tracking: 0.08em; /* label .08em */
117
+ --slide-kicker-transform: uppercase;
118
+ --slide-chrome-opacity: 0.9; /* counter 全色,仅略淡 */
119
+ --slide-chrome-transform: uppercase;
120
+ --slide-kpi-number-size: 4.92em; /* stat-number 64px ÷26 ÷0.5(li 缩放补偿) */
121
+ --slide-quote-size: 2em; /* quote-text 52px ÷26 */
122
+ --slide-page-pad-x: 3.1vw; /* slide-pad 60px ÷1920 */
123
+ --slide-page-top-pad: 52px; /* 60px − chrome 安全区 */
124
+ --slide-page-top-pad-print: 48px;
125
+ --slide-cover-text-align: left; /* P1 框内文字左对齐(框体居中未复刻) */
126
+ --slide-cover-lead-inline: 0;
127
+ /* --slide-section-title-size 不覆写:模板无章节页,上游默认 5.2em。 */
128
+ }
129
+
130
+ /* SECTION 1.6 · 逐版式 scoped 规则(全部包裹放映/打印作用域,SLIDE-02) */
131
+
132
+ /* ── 1.6.1 页标题声部对齐 + label-pill 眉题 + 放映对比度护栏 ── */
133
+ /* 页标题:Inter 800 大写紧排,压掉文档式下划线(模板:下划线永不使用) */
134
+ body.presenting #editor .cm-content .cm-md-page-title,
135
+ body.slides-printing #editor .cm-content .cm-md-page-title {
136
+ font-family: var(--slide-title-font);
137
+ font-size: var(--slide-title-size);
138
+ font-weight: var(--slide-title-weight);
139
+ line-height: var(--slide-title-line-height);
140
+ letter-spacing: var(--slide-title-tracking);
141
+ text-transform: uppercase;
142
+ color: var(--text-color);
143
+ border-bottom: none;
144
+ padding-bottom: 0;
145
+ margin-bottom: 0.4em;
146
+ }
147
+ /* label-pill 眉题:白底黑框 + 4px 硬投影(模板全站统一 eyebrow) */
148
+ body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
149
+ body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
150
+ display: block;
151
+ width: fit-content;
152
+ background: #FFFFFF;
153
+ border: 3px solid #000000;
154
+ box-shadow: 4px 4px 0 #000000;
155
+ padding: 0.45em 1.2em;
156
+ margin-bottom: 1.6em;
157
+ font-weight: 600;
158
+ color: var(--text-color);
159
+ }
160
+ /* 护栏:上游把 strong/listmark/序号染成黄 accent,黄在浅底不可作文字(CR-04) */
161
+ body.presenting .cm-md-strong,
162
+ body.slides-printing .cm-md-strong {
163
+ color: var(--text-color);
164
+ }
165
+ body.presenting .cm-md-listmark,
166
+ body.slides-printing .cm-md-listmark {
167
+ color: var(--text-muted);
168
+ }
169
+ body.presenting .cm-md-slide-agenda .cm-md-listmark,
170
+ body.slides-printing .cm-md-slide-agenda .cm-md-listmark {
171
+ color: var(--text-color);
172
+ }
173
+
174
+ /* ── 1.6.2 换底页整链上色(P1 奶油 / P2·P8 蓝 / P4 绿 / P5 粉 / P6 黄 / P10 黑) ── */
175
+ body.presenting,
176
+ body.slides-printing {
177
+ --page-bg: var(--bg-color); /* 非换底页 = offwhite 米纸 */
178
+ }
179
+ body.presenting:has(#editor[data-slide-layout='cover']),
180
+ body.slides-printing:has(.cm-md-slide-cover) {
181
+ background: var(--seed-accent-light);
182
+ --page-bg: var(--seed-accent-light); /* P1 cream #FFDC8B */
183
+ }
184
+ body.presenting:has(#editor[data-slide-layout='two-col']),
185
+ body.presenting:has(#editor[data-slide-layout='kpi']),
186
+ body.slides-printing:has(.cm-md-slide-two-col),
187
+ body.slides-printing:has(.cm-md-slide-kpi) {
188
+ background: #C0F7FE;
189
+ --page-bg: #C0F7FE; /* P2/P8 blue */
190
+ }
191
+ body.presenting:has(#editor[data-slide-layout='figure']),
192
+ body.slides-printing:has(.cm-md-slide-figure) {
193
+ background: #99E885;
194
+ --page-bg: #99E885; /* P4 green */
195
+ }
196
+ body.presenting:has(#editor[data-slide-layout='quote']),
197
+ body.slides-printing:has(.cm-md-slide-quote) {
198
+ background: #FE90E8;
199
+ --page-bg: #FE90E8; /* P5 pink */
200
+ }
201
+ body.presenting:has(#editor[data-slide-layout='steps']),
202
+ body.slides-printing:has(.cm-md-slide-steps) {
203
+ background: #F7CB46;
204
+ --page-bg: #F7CB46; /* P6 yellow */
205
+ }
206
+ body.presenting:has(#editor[data-slide-layout='closing']),
207
+ body.slides-printing:has(.cm-md-slide-closing) {
208
+ background: #000000;
209
+ --page-bg: #000000; /* P10 black */
210
+ }
211
+ /* 五层链:body 上色在上一组规则;以下补齐内层,防原底色反盖 */
212
+ body.presenting #editor[data-slide-layout],
213
+ body.presenting #editor[data-slide-layout] .cm-editor,
214
+ body.presenting #editor[data-slide-layout] .cm-scroller,
215
+ body.presenting #editor[data-slide-layout] .cm-content,
216
+ body.slides-printing #editor,
217
+ body.slides-printing #editor .cm-editor,
218
+ body.slides-printing #editor .cm-scroller,
219
+ body.slides-printing #editor .cm-content {
220
+ background: var(--page-bg);
221
+ }
222
+
223
+ /* ── 1.6.3 cover ←P1(奶油底;hero-frame 白卡框/角标/装饰 未复刻) ── */
224
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
225
+ body.slides-printing .cm-md-slide-cover.cm-md-page-title {
226
+ font-weight: 900; /* heading-xl 900 */
227
+ }
228
+ /* 副题/导语:hero-subtitle 声部 Space Grotesk 18px ÷26 = 0.69em,max-width 500px */
229
+ body.presenting #editor[data-slide-layout='cover'] .cm-md-atxheading2,
230
+ body.slides-printing .cm-md-slide-cover.cm-md-atxheading2,
231
+ body.presenting #editor[data-slide-layout='cover'] .cm-md-page-lead,
232
+ body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
233
+ font-family: var(--slide-mono);
234
+ font-weight: 500;
235
+ font-size: 0.69em;
236
+ line-height: 1.5;
237
+ letter-spacing: 0.02em;
238
+ color: var(--text-color);
239
+ max-width: 22em;
240
+ }
241
+
242
+ /* ── 1.6.4 two-col ←P2(蓝底;右栏 intro-card 与 stat 药丸 未复刻) ── */
243
+ /* 左论/右证中缝 = 模板 split-content border-left 4px 黑(仅放映域分栏可画,
244
+ 打印域为 inline-block 分半,中缝轨无挂点) */
245
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content {
246
+ column-rule: 4px solid #000000;
247
+ }
248
+ /* 正文声部 nb-body 20px ÷26 = 0.77em */
249
+ body.presenting #editor[data-slide-layout='two-col'] .cm-md-page-lead,
250
+ body.slides-printing .cm-md-slide-two-col.cm-md-page-lead {
251
+ font-size: 0.77em;
252
+ }
253
+
254
+ /* ── 1.6.5 matrix ←P3 feature-card(白卡 + 4px 框 + 8px 影,三卡一行) ── */
255
+ /* li 行与版式类同元素(复合选择器);图标方块/黄缺口/逐卡色轮 未复刻 */
256
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
257
+ body.slides-printing .cm-md-slide-matrix.cm-md-li {
258
+ background: #FFFFFF;
259
+ border: 4px solid #000000;
260
+ box-shadow: 8px 8px 0 #000000; /* card-elevated 8px */
261
+ width: 31.5%; /* (1800-64)/3 ≈ 578px */
262
+ margin: 0 1.7% 1.2em 0;
263
+ padding: 2.4em 2.4em 2.2em; /* 36px ÷ 15px(li 基准) */
264
+ font-size: 0.577em; /* feature-desc 15px ÷26 */
265
+ color: var(--text-color);
266
+ }
267
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li .cm-md-strong,
268
+ body.slides-printing .cm-md-slide-matrix.cm-md-li .cm-md-strong {
269
+ display: block;
270
+ font-family: var(--slide-title-font);
271
+ font-size: 1.47em; /* card-title 22px ÷26 ÷0.577 */
272
+ font-weight: 700;
273
+ text-transform: uppercase;
274
+ letter-spacing: -0.01em;
275
+ color: var(--text-color);
276
+ margin-bottom: 0.4em;
277
+ }
278
+
279
+ /* ── 1.6.6 figure ←P4(绿底;chart-frame 白卡框由 svg.pele 承担) ── */
280
+ /* 页题 heading-md 40px ÷26 = 1.54em、700 */
281
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title,
282
+ body.slides-printing .cm-md-slide-figure.cm-md-page-title {
283
+ font-size: 1.54em;
284
+ font-weight: 700;
285
+ }
286
+ /* Pele 图 = chart-frame:白底 4px 黑框 8px 硬投影(全站 Pele 均按框卡复刻) */
287
+ body.presenting #editor .cm-content svg.pele,
288
+ body.slides-printing #editor .cm-content svg.pele {
289
+ background: #FFFFFF;
290
+ border: 4px solid #000000;
291
+ box-shadow: 8px 8px 0 #000000;
292
+ }
293
+ /* 右栏奶油数据盒(data-num 36px 900)无对应元素 → 未复刻 */
294
+
295
+ /* ── 1.6.7 quote ←P5(粉底;白卡整块画底,仅左右黑轨;斜纹块 未复刻) ── */
296
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
297
+ body.slides-printing .cm-md-slide-quote .cm-md-blockquote {
298
+ font-family: var(--font-body);
299
+ font-style: normal; /* 模板:斜体永不使用 */
300
+ font-size: var(--slide-quote-size); /* 52px */
301
+ font-weight: 900;
302
+ line-height: 1.15;
303
+ letter-spacing: -0.02em;
304
+ text-transform: uppercase;
305
+ color: var(--text-color);
306
+ background: #FFFFFF;
307
+ border-left: 4px solid #000000;
308
+ border-right: 4px solid #000000;
309
+ padding-left: 1.6em;
310
+ padding-right: 1.6em;
311
+ max-width: 52%; /* quote-frame 文本区 ≈ 840/1800 */
312
+ }
313
+ /* 引号 deco:120px ÷26 = 4.6em,黄底黑描边(-webkit-text-stroke 2px) */
314
+ body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
315
+ body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
316
+ font-family: var(--slide-title-font);
317
+ font-weight: 900;
318
+ font-size: 4.6em;
319
+ line-height: 0.55;
320
+ color: var(--seed-accent);
321
+ -webkit-text-stroke: 2px #000000;
322
+ }
323
+ /* 署名:quote-author SG 15px ÷26 = 0.58em 600 大写 0.05em */
324
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
325
+ body.slides-printing .cm-md-slide-quote .cm-md-blockquote + .cm-line {
326
+ font-family: var(--slide-mono);
327
+ font-size: 0.58em;
328
+ font-weight: 600;
329
+ text-transform: uppercase;
330
+ letter-spacing: 0.05em;
331
+ color: var(--text-color);
332
+ margin-top: 1.2em;
333
+ }
334
+
335
+ /* ── 1.6.8 steps ←P6(黄底;listmark = 黄号牌,左黑板 未复刻) ── */
336
+ /* 行 = 全宽列表行:黄牌 36px 方块(36÷16≈2.2em)+ Inter 700 步名 */
337
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
338
+ body.slides-printing .cm-md-slide-steps.cm-md-li {
339
+ display: block; /* 压掉上游 flex */
340
+ border-left: none;
341
+ border-bottom: none;
342
+ padding: 0.5em 0;
343
+ font-size: 0.615em; /* content-list 16px ÷26 */
344
+ color: var(--text-color);
345
+ }
346
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
347
+ body.slides-printing .cm-md-slide-steps .cm-md-listmark {
348
+ display: inline-block; /* 复活被上游隐藏的序号 → 号牌 */
349
+ min-width: 2.2em;
350
+ text-align: center;
351
+ border: 3px solid #000000;
352
+ background: var(--seed-accent);
353
+ font-family: var(--slide-mono);
354
+ font-size: 0.875em; /* 牌内数字 14px ÷16 */
355
+ font-weight: 700;
356
+ color: #000000;
357
+ margin-right: 0.9em;
358
+ }
359
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li .cm-md-strong,
360
+ body.slides-printing .cm-md-slide-steps.cm-md-li .cm-md-strong {
361
+ display: inline;
362
+ border: none;
363
+ border-radius: 0;
364
+ padding: 0;
365
+ min-width: 0;
366
+ background: transparent;
367
+ font-family: var(--slide-title-font);
368
+ font-size: 1.25em; /* step-title 20px ÷26 ÷0.615 */
369
+ font-weight: 700;
370
+ text-transform: uppercase;
371
+ letter-spacing: -0.01em;
372
+ white-space: normal;
373
+ color: var(--text-color);
374
+ }
375
+
376
+ /* ── 1.6.9 timeline ←P7(米白底;四步改横排白卡;逐卡色轮 未复刻) ── */
377
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li,
378
+ body.slides-printing .cm-md-slide-timeline.cm-md-li {
379
+ display: inline-block;
380
+ width: 22.6%; /* 4 卡 + 24px 间距 @1800 */
381
+ margin: 0 1.6% 1.2em 0;
382
+ padding: 2.2em 2.2em 2em; /* 32px ÷ 14px(li 基准) */
383
+ font-size: 0.538em; /* step-desc 14px ÷26 */
384
+ background: #FFFFFF;
385
+ border: 4px solid #000000;
386
+ box-shadow: 4px 4px 0 #000000; /* shadow-sm */
387
+ border-radius: 0;
388
+ color: var(--text-color);
389
+ vertical-align: top;
390
+ }
391
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li::before,
392
+ body.slides-printing .cm-md-slide-timeline.cm-md-li::before {
393
+ display: none; /* 上游竖轨圆点与横排卡冲突 */
394
+ }
395
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-listmark,
396
+ body.slides-printing .cm-md-slide-timeline .cm-md-listmark {
397
+ display: block; /* step-num:48px 900 60% 透明度 */
398
+ font-family: var(--slide-title-font);
399
+ font-size: 3.43em; /* 48px ÷26 ÷0.538 */
400
+ font-weight: 900;
401
+ line-height: 1;
402
+ opacity: 0.6;
403
+ color: var(--text-color);
404
+ margin-bottom: 0.2em;
405
+ }
406
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li .cm-md-strong,
407
+ body.slides-printing .cm-md-slide-timeline.cm-md-li .cm-md-strong {
408
+ display: block;
409
+ font-family: var(--slide-title-font);
410
+ font-size: 1.43em; /* step-title 20px ÷26 ÷0.538 */
411
+ font-weight: 700;
412
+ text-transform: uppercase;
413
+ color: var(--text-color);
414
+ margin-bottom: 0.3em;
415
+ }
416
+
417
+ /* ── 1.6.10 kpi ←P8(蓝底;stat-card 白卡 4px 框 4px 影,四卡一行) ── */
418
+ /* ±2° 倾斜、deco 圆点、逐卡色轮 未复刻 */
419
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
420
+ body.slides-printing .cm-md-slide-kpi.cm-md-li {
421
+ width: 22.6%;
422
+ margin: 0 1.6% 1.4em 0;
423
+ padding: 2.4em 1.6em; /* 32px ÷ 13px(li 基准) */
424
+ border: 4px solid #000000; /* 替换上游 border-top 细线 */
425
+ border-radius: 0;
426
+ background: #FFFFFF;
427
+ box-shadow: 4px 4px 0 #000000;
428
+ text-align: center;
429
+ font-family: var(--slide-mono); /* stat-label 声部 */
430
+ font-size: 0.5em; /* stat-label 13px ÷26 */
431
+ font-weight: 600;
432
+ text-transform: uppercase;
433
+ letter-spacing: 0.05em;
434
+ color: var(--text-color);
435
+ }
436
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li .cm-md-strong,
437
+ body.slides-printing .cm-md-slide-kpi.cm-md-li .cm-md-strong {
438
+ font-family: var(--slide-title-font);
439
+ font-size: var(--slide-kpi-number-size); /* 64px,含 ÷0.5 补偿 */
440
+ font-weight: 900;
441
+ line-height: 1;
442
+ letter-spacing: -0.02em;
443
+ color: var(--text-color);
444
+ margin-bottom: 0.15em;
445
+ }
446
+
447
+ /* ── 1.6.11 closing ←P10(黑底白字;close-frame/星形/点阵 未复刻) ── */
448
+ /* chrome/foot/ghost 上游已在收页淡出,无需处理;列表 ▸ 用上游黄(黑底 13.6:1) */
449
+ body.presenting #editor .cm-content .cm-md-slide-closing,
450
+ body.slides-printing .cm-md-slide-closing {
451
+ color: #FFFFFF; /* 压掉上游 text-muted(黑底不可读) */
452
+ }
453
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-page-title,
454
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title {
455
+ color: #FFFFFF; /* close-title 80px 见令牌 */
456
+ font-weight: 900;
457
+ }
458
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-page-lead,
459
+ body.slides-printing .cm-md-slide-closing.cm-md-page-lead {
460
+ font-family: var(--slide-mono);
461
+ font-size: 0.69em; /* close-subtitle 18px ÷26 */
462
+ font-weight: 500;
463
+ color: var(--seed-accent-light); /* 奶油副题 */
464
+ }
465
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-strong,
466
+ body.slides-printing .cm-md-slide-closing .cm-md-strong {
467
+ color: #FFFFFF;
468
+ }
469
+ body.presenting #editor[data-slide-layout='closing'] .cm-md-table-widget td,
470
+ body.slides-printing .cm-md-slide-closing .cm-md-table-widget td {
471
+ color: #FFFFFF; /* 黑底页 td 换白(换底页 td 规则) */
472
+ }
473
+
474
+ /* ── 1.6.12 chrome(counter = SG 700 14px 0.1em 大写;放映时全色) ── */
475
+ body.presenting .slide-counter,
476
+ body.slides-printing .slide-counter {
477
+ font-family: var(--slide-mono);
478
+ font-weight: 700;
479
+ font-size: 14px; /* 0.54em @26px 基准,chrome 悬浮件用定值 */
480
+ letter-spacing: 0.1em;
481
+ text-transform: uppercase;
482
+ }
483
+ body.presenting .slide-foot,
484
+ body.slides-printing .slide-foot {
485
+ font-family: var(--slide-mono);
486
+ font-size: 12px;
487
+ font-weight: 600;
488
+ letter-spacing: 0.08em;
489
+ text-transform: uppercase;
490
+ }
491
+
492
+ /* SECTION 2 · Editor DOM(CodeMirror 视图) */
493
+
494
+ /* 2.1 基础:正文 Inter 500,16px/1.6(模板 body 500 1.6) */
495
+ #editor .cm-content {
496
+ font-family: var(--font-body);
497
+ font-size: var(--editor-font-size);
498
+ line-height: 1.6;
499
+ color: var(--text-color);
500
+ caret-color: var(--text-color);
501
+ }
502
+ #editor .cm-cursor {
503
+ border-left: 2px solid var(--text-color);
504
+ }
505
+ #editor .cm-content::selection {
506
+ background: var(--selection-bg);
507
+ }
508
+
509
+ /* 2.2 标题阶梯:900/800/700 大写紧排;无下划线、无边框(模板律) */
510
+ #editor .cm-content .cm-md-atxheading1 {
511
+ font-size: 2.6em;
512
+ font-weight: 900;
513
+ line-height: 1.05;
514
+ letter-spacing: -0.03em;
515
+ text-transform: uppercase;
516
+ color: var(--text-color);
517
+ border-bottom: none;
518
+ margin: 1.1em 0 0.35em;
519
+ }
520
+ #editor .cm-content .cm-md-atxheading2 {
521
+ font-size: 2.0em;
522
+ font-weight: 800;
523
+ line-height: 1.1;
524
+ letter-spacing: -0.02em;
525
+ text-transform: uppercase;
526
+ color: var(--text-color);
527
+ border-bottom: none;
528
+ margin: 1.0em 0 0.3em;
529
+ }
530
+ #editor .cm-content .cm-md-atxheading3 {
531
+ font-size: 1.5em;
532
+ font-weight: 700;
533
+ letter-spacing: -0.01em;
534
+ text-transform: uppercase;
535
+ color: var(--text-color);
536
+ margin: 0.9em 0 0.25em;
537
+ }
538
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1.25em; font-weight: 700; color: var(--text-color); margin: 0.8em 0 0.2em; }
539
+ #editor .cm-content .cm-md-atxheading5 { font-size: 1.1em; font-weight: 600; color: var(--text-color); margin: 0.7em 0 0.2em; }
540
+ #editor .cm-content .cm-md-atxheading6 {
541
+ font-family: var(--font-mono);
542
+ font-size: 1em;
543
+ font-weight: 600;
544
+ letter-spacing: 0.08em;
545
+ text-transform: uppercase;
546
+ color: var(--text-color);
547
+ margin: 0.7em 0 0.2em;
548
+ }
549
+
550
+ /* 2.3 行内语义:strong 墨黑 700(模板 card-title 700 声部);链接墨黑粗下划线 */
551
+ #editor .cm-content .cm-md-strong {
552
+ color: var(--text-color);
553
+ font-weight: 700;
554
+ }
555
+ #editor .cm-content .cm-md-em {
556
+ font-style: italic;
557
+ }
558
+ #editor .cm-content .cm-md-url {
559
+ color: var(--text-color);
560
+ text-decoration: underline;
561
+ text-decoration-thickness: 2px;
562
+ }
563
+ #editor .cm-content .cm-md-inlinecode {
564
+ font-family: var(--font-mono);
565
+ font-size: 0.92em;
566
+ background: var(--code-bg);
567
+ padding: 0.15em 0.4em;
568
+ border-radius: 0;
569
+ }
570
+ #editor .cm-content .cm-md-strike {
571
+ text-decoration: line-through;
572
+ }
573
+ #editor .cm-content .cm-md-highlight {
574
+ background: var(--highlight-bg);
575
+ color: var(--seed-ink);
576
+ }
577
+
578
+ /* 2.4 列表:层级缩进走上游 .cm-md-li-0…6 的 padding-left,主题不叠加;
579
+ 序号墨黑(见 1.6.1 护栏同因),任务框用黄 accent */
580
+ #editor .cm-content .cm-md-listmark {
581
+ color: var(--text-muted);
582
+ font-weight: 600;
583
+ }
584
+ #editor .cm-content .cm-md-task {
585
+ accent-color: var(--seed-accent);
586
+ }
587
+
588
+ /* 2.5 首行缩进 + 全量排除(模板 §2.5 模式) */
589
+ #editor .cm-content .cm-line {
590
+ text-indent: 2em;
591
+ }
592
+ #editor .cm-content .cm-md-atxheading1,
593
+ #editor .cm-content .cm-md-atxheading2,
594
+ #editor .cm-content .cm-md-atxheading3,
595
+ #editor .cm-content .cm-md-atxheading4,
596
+ #editor .cm-content .cm-md-atxheading5,
597
+ #editor .cm-content .cm-md-atxheading6,
598
+ #editor .cm-content .cm-md-blockquote,
599
+ #editor .cm-content .cm-md-codeblock,
600
+ #editor .cm-content .cm-md-list,
601
+ #editor .cm-content .cm-md-li-0,
602
+ #editor .cm-content .cm-md-li-1,
603
+ #editor .cm-content .cm-md-li-2,
604
+ #editor .cm-content .cm-md-li-3,
605
+ #editor .cm-content .cm-md-li-4,
606
+ #editor .cm-content .cm-md-li-5,
607
+ #editor .cm-content .cm-md-li-6,
608
+ #editor .cm-content .cm-md-hr,
609
+ #editor .cm-content .cm-md-frontmatter,
610
+ #editor .cm-content .cm-md-directive,
611
+ #editor .cm-content .cm-md-table,
612
+ #editor .cm-content .cm-md-task {
613
+ text-indent: 0;
614
+ }
615
+
616
+ /* 2.6 引用:白卡 + 左 3px 黑轨;纵向留白只走 margin(CSS-03) */
617
+ #editor .cm-content .cm-md-blockquote {
618
+ color: var(--text-color);
619
+ background: var(--blockquote-bg);
620
+ border-left: 3px solid var(--blockquote-border);
621
+ padding-left: 1.1em;
622
+ padding-right: 1em;
623
+ margin: 0.8em 0;
624
+ }
625
+
626
+ /* 2.7 代码块:白卡 3px 黑框(逐行左右轨 + 首尾横轨拼合),圆角 0 */
627
+ #editor .cm-content .cm-md-codeblock {
628
+ background: var(--code-block-bg);
629
+ color: var(--code-block-text);
630
+ font-family: var(--font-mono);
631
+ font-size: 0.9em;
632
+ border-left: 3px solid #000000;
633
+ border-right: 3px solid #000000;
634
+ margin: 0.9em 0;
635
+ }
636
+ #editor .cm-content .cm-md-codeblock.cm-md-codeblock-first {
637
+ border-top: 3px solid #000000;
638
+ }
639
+ #editor .cm-content .cm-md-codeblock.cm-md-codeblock-last {
640
+ border-bottom: 3px solid #000000;
641
+ }
642
+
643
+ /* 2.8 表格:黑线 1px,表头白底 SG 药丸声部(单元格类在 table-widget 上) */
644
+ #editor .cm-content .cm-md-table-widget th,
645
+ #editor .cm-content .cm-md-table-widget td {
646
+ border-color: #000000;
647
+ padding: 8px 12px;
648
+ }
649
+ #editor .cm-content .cm-md-table-widget th {
650
+ background: var(--table-header-bg);
651
+ font-family: var(--font-mono);
652
+ font-size: 0.8em;
653
+ font-weight: 600;
654
+ letter-spacing: 0.08em;
655
+ text-transform: uppercase;
656
+ border-bottom: 3px solid #000000;
657
+ }
658
+
659
+ /* 2.9 分隔线 / 图片 / Pele 框 */
660
+ #editor .cm-content .cm-md-hr {
661
+ border-color: #000000;
662
+ border-width: 3px;
663
+ }
664
+ #editor .cm-content .cm-md-image {
665
+ max-width: 100%;
666
+ }
667
+ #editor .cm-content svg.pele {
668
+ background: #FFFFFF;
669
+ border: 4px solid #000000;
670
+ box-shadow: 8px 8px 0 #000000;
671
+ }
672
+
673
+ /* SECTION 3 · Export HTML(.colamd-document 语义镜像,与 SECTION 2 同步) */
674
+
675
+ .colamd-document {
676
+ font-family: var(--font-body);
677
+ font-size: var(--editor-font-size);
678
+ line-height: 1.6;
679
+ color: var(--text-color);
680
+ }
681
+ .colamd-document h1 {
682
+ font-size: 2.6em;
683
+ font-weight: 900;
684
+ line-height: 1.05;
685
+ letter-spacing: -0.03em;
686
+ text-transform: uppercase;
687
+ margin: 1.1em 0 0.35em;
688
+ }
689
+ .colamd-document h2 {
690
+ font-size: 2.0em;
691
+ font-weight: 800;
692
+ line-height: 1.1;
693
+ letter-spacing: -0.02em;
694
+ text-transform: uppercase;
695
+ margin: 1.0em 0 0.3em;
696
+ }
697
+ .colamd-document h3 {
698
+ font-size: 1.5em;
699
+ font-weight: 700;
700
+ letter-spacing: -0.01em;
701
+ text-transform: uppercase;
702
+ margin: 0.9em 0 0.25em;
703
+ }
704
+ .colamd-document h4 { font-size: 1.25em; font-weight: 700; margin: 0.8em 0 0.2em; }
705
+ .colamd-document h5 { font-size: 1.1em; font-weight: 600; margin: 0.7em 0 0.2em; }
706
+ .colamd-document h6 { font-family: var(--font-mono); font-size: 1em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0.7em 0 0.2em; }
707
+ .colamd-document h1, .colamd-document h2, .colamd-document h3,
708
+ .colamd-document h4, .colamd-document h5, .colamd-document h6 {
709
+ color: var(--text-color);
710
+ }
711
+ .colamd-document strong { color: var(--text-color); font-weight: 700; }
712
+ .colamd-document a {
713
+ color: var(--text-color);
714
+ text-decoration: underline;
715
+ text-decoration-thickness: 2px;
716
+ }
717
+ .colamd-document code {
718
+ font-family: var(--font-mono);
719
+ font-size: 0.92em;
720
+ background: var(--code-bg);
721
+ padding: 0.15em 0.4em;
722
+ border-radius: 0;
723
+ }
724
+ .colamd-document pre {
725
+ background: var(--code-block-bg);
726
+ color: var(--code-block-text);
727
+ font-family: var(--font-mono);
728
+ font-size: 0.9em;
729
+ border: 3px solid #000000;
730
+ border-radius: 0;
731
+ padding: 1em 1.2em;
732
+ overflow-x: auto;
733
+ }
734
+ .colamd-document pre code { background: transparent; padding: 0; }
735
+ .colamd-document blockquote {
736
+ color: var(--text-color);
737
+ background: var(--blockquote-bg);
738
+ border-left: 3px solid var(--blockquote-border);
739
+ padding: 0.5em 1.2em;
740
+ margin: 0.8em 0;
741
+ }
742
+ .colamd-document table { border-collapse: collapse; width: 100%; }
743
+ .colamd-document th, .colamd-document td {
744
+ border: 1px solid #000000;
745
+ padding: 8px 12px;
746
+ }
747
+ .colamd-document th {
748
+ background: var(--table-header-bg);
749
+ font-family: var(--font-mono);
750
+ font-size: 0.8em;
751
+ font-weight: 600;
752
+ letter-spacing: 0.08em;
753
+ text-transform: uppercase;
754
+ border-bottom: 3px solid #000000;
755
+ }
756
+ .colamd-document hr { border: none; border-top: 3px solid #000000; margin: 1.5em 0; }
757
+ .colamd-document mark { background: var(--highlight-bg); color: var(--seed-ink); }
758
+ .colamd-document img { max-width: 100%; }
759
+ .colamd-document svg.pele {
760
+ background: #FFFFFF;
761
+ border: 4px solid #000000;
762
+ box-shadow: 8px 8px 0 #000000;
763
+ }
764
+ .colamd-document ul, .colamd-document ol { padding-left: 1.6em; }
765
+ .colamd-document li { margin: 0.25em 0; }
766
+ .colamd-document li::marker { color: var(--text-muted); }
767
+
768
+ /* SECTION 4 · Print(导出打印;换底页底色由 1.6.2 打印域链上色) */
769
+ @media print {
770
+ body {
771
+ print-color-adjust: exact;
772
+ -webkit-print-color-adjust: exact;
773
+ }
774
+ }