@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,922 @@
1
+ /*
2
+ * ColaMD Theme: Stencil & Tablet(模版刻印 · 逐页版式复刻版)
3
+ * Bone paper, stencil-cut display type and an earth palette: screen-print field manual.
4
+ * 来源:beautiful-html-templates/templates/stencil-tablet/template.html(1920×1080 / 11 页)
5
+ * + design.md / template.json(mood: bold;density: high;formality: high)
6
+ * 色板(模板 :root):bone #E2DCC9(页面纸底)/ paper #F4EFE0(卡面)/ ink #0A0A0A
7
+ * black #000000(暗页)/ sienna #A06A3C · magenta #C73B7A · orange #EE7A2E
8
+ * teal #2D7E73 · blue #3F73B7 · mustard #D8A93B · olive #6F7A2E
9
+ * 字体:Stardos Stencil 400/700(display:页题/巨数字/卡名,模板唯一标题字)·
10
+ * Bowlby One(仅 P10 大引号)· Barlow Condensed 500-900(chrome/眉标/说明)·
11
+ * Inter 400-600(正文)
12
+ *
13
+ * paradigm 备案(骨白纸面身份,与 biennale-yellow / pin-and-paper 同类,有意保留):
14
+ * SL-01 —— 纸底 bone #E2DCC9 饱和度 30.1%(>5%)。模板身份就是"骨白纸",
15
+ * 中性化会丢掉整副牌的地层感;
16
+ * SL-02 —— panel #DCD6C4 / panelAlt #CDC7B2 饱和度 25.5% / 21.3%(>10%),
17
+ * 纸面降档同属纸身份,保留;
18
+ * CR-04 —— orange #EE7A2E 对骨白仅 2.1:1,但 orange 只做卡片底/巨数字/章节巨号,
19
+ * 从不做文字色(文字一律 ink 或骨白);链接与强调走加深 sienna #8F431E
20
+ * (骨白上 5.1:1),故 CR-04 实测过线。
21
+ * 其余 CR-01(14.4:1)/ CR-02(5.4:1)/ SL-03 / SL-04 / NT-01~03 均过线。
22
+ *
23
+ * 版式复刻见 SECTION 1.5 / 1.6:11 页逐页对照、换算式、未复刻清单均在注释里。
24
+ *
25
+ * 契约:ColaMD Extend 2.7(CodeMirror 6 编辑器 + Pele 图表引擎)
26
+ *
27
+ * 两条硬规矩:
28
+ * 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
29
+ * 编辑器继承不到。
30
+ * 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
31
+ * 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
32
+ * 并且引用/代码块**不能加纵向 padding**——那会按行累加。
33
+ *
34
+ * ═══════════════════════════════════════════════════════════
35
+ * SECTION 1 — Design Tokens
36
+ * 改种子色 + 3 组字体即可换一套主题
37
+ * ═══════════════════════════════════════════════════════════ */
38
+
39
+ :root {
40
+
41
+ /* ── 1.1 Seed Palette ──
42
+ 本工具的再生成与校验读这一层;编辑器不消费。
43
+ 来源(template.html :root):bone #E2DCC9(页面底色,不是 paper)/ paper #F4EFE0(卡面)
44
+ ink #0A0A0A / black #000000(暗页)/ sienna #A06A3C / magenta #C73B7A
45
+ orange #EE7A2E / teal #2D7E73 / blue #3F73B7 / mustard #D8A93B
46
+ 模板约定:橙/品红/赭/青只做色块与巨号,文字一律 ink(浅底)或 bone(暗底)。 */
47
+ --seed-accent: #8f431e; /* 模板 orange 加深档:链接/强调文字可读(骨白 5.1:1) */
48
+ --seed-accent-light: #ee7a2e; /* 模板 orange:只做卡片底 / 巨数字 / 代码块装饰 */
49
+ --seed-accent-dark: #7c3a19;
50
+ --seed-surface: #e2dcc9; /* bone:模板页面底色 */
51
+ --seed-panel: #dcd6c4; /* 纸面降一档(SL-04 明度序) */
52
+ --seed-paper: #f4efe0; /* paper:卡面 / 表底 / 引用底 */
53
+ --seed-panel-alt: #cdc7b2;
54
+ --seed-ink: #0a0a0a;
55
+ --seed-black: #000000; /* 暗页页面底色(≠ ink,模板刻意纯黑) */
56
+ --seed-ink-muted: #565656; /* 与 ink 同色相轴(H=0,NT-01) */
57
+ --seed-ink-dim: #5f5f5f;
58
+ --seed-border: #8a8780; /* ink 45% over bone,S 4.1% 过 NT-03 */
59
+ --seed-border-strong: #0a0a0a;
60
+ --seed-magenta: #c73b7a;
61
+ --seed-mustard: #d8a93b;
62
+ --seed-teal: #2d7e73;
63
+
64
+ /* ── 1.2 Semantic Colors(活变量)── */
65
+ --bg-color: var(--seed-surface);
66
+ --text-color: var(--seed-ink);
67
+ --text-secondary: var(--seed-ink-muted);
68
+ --text-muted: var(--seed-ink-dim);
69
+ --border-color: var(--seed-border);
70
+ --link-color: var(--seed-accent);
71
+
72
+ --code-bg: var(--seed-paper); /* 行内代码:纸片浅一档 */
73
+ --code-block-bg: var(--seed-panel); /* 代码块:纸面深一档 */
74
+ --code-block-text: var(--seed-ink);
75
+
76
+ --blockquote-border: var(--seed-ink); /* 模板:2px ink 细线体系 */
77
+ --blockquote-bg: var(--seed-paper);
78
+ --table-header-bg: var(--seed-ink); /* P08 表头 ink 底 + 骨白字 */
79
+
80
+ --selection-bg: rgba(238, 122, 46, 0.28);
81
+ --highlight-bg: rgba(216, 169, 59, 0.45);
82
+
83
+ /* ── 1.3 Typography & Metrics(活变量)── */
84
+ --font-body: "Inter", "Noto Sans SC", sans-serif;
85
+ --font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
86
+ --editor-font-size: 17px;
87
+ --editor-column-width: 820px;
88
+
89
+ /* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
90
+ 图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导。 */
91
+ --pele-bg: var(--code-block-bg);
92
+ --pele-fg: var(--code-block-text);
93
+ --pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
94
+ --pele-line: var(--code-block-text);
95
+ --pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
96
+ --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
97
+ --pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
98
+ --pele-accent: var(--seed-accent);
99
+ --pele-radius: 10px; /* 模板 swatch / 卡角同族 */
100
+ }
101
+
102
+ /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 stencil-tablet 十一页逐页复刻)──
103
+ 换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
104
+ 模板 1920 画布 px ÷ 26 = em(clamp 取 1920×1080 实际落点)。
105
+ 字体体系:Stardos Stencil 700(display)/ Bowlby One(仅 P10 大引号)/
106
+ Barlow Condensed 800(chrome、眉标、说明)/ Inter(正文)。
107
+ 页面对照(11 页):
108
+ cover ← P01 Bold by design agenda ← P02 Agenda(黑)
109
+ matrix ← P03 Our Principles section ← P04 Section(黑)
110
+ matrix ← P05 Findings(与 P03 同形不单列,页题走 mustard 行动标题条)
111
+ two-col ← P06 Retention Curve(黑,左文右图)
112
+ steps ← P07 Process figure ← P08 Comparison(真表格)
113
+ kpi ← P09 In Numbers(黑) quote ← P10 Voice
114
+ closing ← P11 Next
115
+ timeline 无对应页(P07 底部时间条是绝对定位装饰条,不是日期清单)→ 上游默认。
116
+ 未复刻清单(行式 DOM 无挂点):P01 橙方块 mark + 青有机形;P02 四条有机形状 SVG;
117
+ P03 四卡异色 + 240px 巨数字(列表标记是项目符号,不是序号);P04 540px 橙巨号;
118
+ P05 三列异色;P06 图表 SVG / 图例 / 纸面板;P07 节点异色 / 箭头 / 底部时间条;
119
+ P08 胶囊 pill;P09 三卡异色;P10 面板圆角与左栏巨引号(巨引号以 ::before 近似);
120
+ P11 青/橙双 pane。
121
+ 换底页:P02/P04/P06/P09 的**页面**底色是 black(pane 不是页面)→ 1.6 整条层叠链上色。 */
122
+ :root {
123
+ --slide-mono: "Barlow Condensed", "Noto Sans SC", sans-serif;
124
+ --slide-title-font: "Stardos Stencil", "Bowlby One", "Noto Serif SC", serif;
125
+ --slide-title-size: 3.54em; /* 内容页题 92px ÷26(P07/P08/P09 同档) */
126
+ --slide-title-weight: 700; /* Stardos Stencil 取 700 档 */
127
+ --slide-subhead-weight: 700;
128
+ --slide-title-tracking: -0.01em; /* .head h2 .-01em */
129
+ --slide-title-line-height: 0.92; /* 92px / .92 */
130
+ --slide-cover-title-size: 8.46em; /* P01 h1 220px ÷26 */
131
+ --slide-cover-title-line-height: 0.82;
132
+ --slide-cover-title-tracking: -0.015em;
133
+ --slide-section-title-size: 4.62em; /* P04 h2 120px ÷26 */
134
+ --slide-closing-title-size: 5em; /* P11 h2 130px ÷26 */
135
+ --slide-lead-size: 0.85em; /* 模板 sub / p 22px ÷26 */
136
+ --slide-kicker-size: clamp(13px, 1.25vw, 24px); /* .super 28px / .label 24px @1920 */
137
+ --slide-kicker-tracking: 0.12em; /* .super .12em */
138
+ --slide-kicker-transform: uppercase;
139
+ --slide-chrome-opacity: 0.9; /* .top 无透明度,meta .85 */
140
+ --slide-chrome-transform: uppercase;
141
+ --slide-kpi-number-size: 8em; /* P09 big 160px ÷26 ÷0.77(li 缩放补偿) */
142
+ --slide-quote-size: 2.31em; /* P10 blockquote 60px ÷26 */
143
+ --slide-page-pad-x: 3.33vw; /* 模板页边距 64px @1920 */
144
+ --slide-page-top-pad: 130px; /* 正文顶 130px(chrome 高约 80px) */
145
+ --slide-page-top-pad-print: 120px;
146
+ --slide-cover-text-align: left;
147
+ --slide-cover-lead-inline: auto;
148
+ }
149
+
150
+ /* ═══════════════ SECTION 1.6 — 逐版式复刻(SLIDE-02:全部包裹在
151
+ body.presenting / body.slides-printing 作用域) ═══════════════ */
152
+
153
+ /* 1.6.1 页标题声部:Stardos Stencil 700 大写,压掉文档式标题下划线
154
+ (#editor .cm-content 带 id 权重会漏进放映,必须在这里重断言) */
155
+ body.presenting #editor .cm-content .cm-md-page-title,
156
+ body.slides-printing #editor .cm-content .cm-md-page-title {
157
+ font-family: var(--slide-title-font);
158
+ font-size: var(--slide-title-size);
159
+ font-weight: var(--slide-title-weight);
160
+ line-height: var(--slide-title-line-height);
161
+ letter-spacing: var(--slide-title-tracking);
162
+ text-transform: uppercase;
163
+ color: var(--text-color);
164
+ border-bottom: none;
165
+ padding-bottom: 0;
166
+ margin-bottom: 0.35em;
167
+ }
168
+
169
+ /* 眉标 kicker:Barlow Condensed 800 .12em(P01 .super / P04 .label 同声部) */
170
+ body.presenting .cm-md-page-title[data-slide-kicker]::before,
171
+ body.slides-printing .cm-md-page-title[data-slide-kicker]::before {
172
+ font-family: var(--slide-mono);
173
+ font-weight: 800;
174
+ letter-spacing: var(--slide-kicker-tracking);
175
+ color: var(--text-color);
176
+ opacity: 0.8;
177
+ }
178
+ /* 暗页眉标(P02/P06/P09)换骨白,否则 ink 压在 black 上不可读 */
179
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
180
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
181
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
182
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-page-title[data-slide-kicker]::before,
183
+ body.slides-printing #editor .cm-content .cm-md-slide-two-col .cm-md-page-title[data-slide-kicker]::before,
184
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-page-title[data-slide-kicker]::before {
185
+ color: var(--seed-surface);
186
+ }
187
+
188
+ /* 导语:Inter 22px(.85em),行高 1.5(模板 .sub / p 皆 1.4-1.5) */
189
+ body.presenting .cm-md-page-lead,
190
+ body.slides-printing .cm-md-page-lead {
191
+ font-family: var(--font-body);
192
+ font-size: var(--slide-lead-size);
193
+ line-height: 1.5;
194
+ color: var(--text-secondary);
195
+ max-width: 60ch;
196
+ }
197
+
198
+ /* 标题内 em 切色(模板 h2 em 换色:P04/P06/P09/P11 橙、P07 品红、P08 青) */
199
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title .cm-md-em,
200
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-title .cm-md-em,
201
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title .cm-md-em,
202
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title .cm-md-em,
203
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-title .cm-md-em,
204
+ body.slides-printing #editor .cm-content .cm-md-slide-two-col.cm-md-page-title .cm-md-em,
205
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-page-title .cm-md-em,
206
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-page-title .cm-md-em {
207
+ font-style: normal;
208
+ color: var(--seed-accent-light);
209
+ }
210
+ body.presenting #editor[data-slide-layout='steps'] .cm-content .cm-md-page-title .cm-md-em,
211
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-page-title .cm-md-em {
212
+ font-style: normal;
213
+ color: var(--seed-magenta);
214
+ }
215
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title .cm-md-em,
216
+ body.slides-printing #editor .cm-content .cm-md-slide-figure.cm-md-page-title .cm-md-em {
217
+ font-style: normal;
218
+ color: var(--seed-teal);
219
+ }
220
+
221
+ /* 1.6.2 cover · P01:骨白纸;标题 220px 贴底左对齐(stage grid 1fr auto);
222
+ 橙 mark / 青有机形 / 日期行是绝对定位装饰 → 未复刻 */
223
+ body.presenting #editor[data-slide-layout='cover'] .cm-content {
224
+ justify-content: flex-end;
225
+ padding-bottom: 150px; /* stage padding 48 + 标题下沿留白 */
226
+ text-align: left;
227
+ }
228
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
229
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-title {
230
+ font-size: var(--slide-cover-title-size);
231
+ line-height: var(--slide-cover-title-line-height);
232
+ letter-spacing: var(--slide-cover-title-tracking);
233
+ max-width: 92%;
234
+ }
235
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
236
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-lead {
237
+ font-family: var(--slide-mono);
238
+ font-weight: 700;
239
+ font-size: 1.15em; /* .who 30px ÷26 */
240
+ letter-spacing: 0.04em;
241
+ text-transform: uppercase;
242
+ max-width: 60%;
243
+ }
244
+
245
+ /* 1.6.3 agenda · P02(黑底):4 列有机形状 + 01-04 序号 / 大写标签。
246
+ 形状是绝对定位 SVG(未复刻)→ 骨白细线圆角框近似其足迹;
247
+ 原构图标签是"压在形状上"的 ink,形状缺席后黑底不可读 → 换骨白 */
248
+ body.presenting:has(#editor[data-slide-layout='agenda']),
249
+ body.presenting:has(#editor[data-slide-layout='agenda']) #editor,
250
+ body.presenting:has(#editor[data-slide-layout='agenda']) .cm-editor,
251
+ body.presenting:has(#editor[data-slide-layout='agenda']) .cm-scroller,
252
+ body.presenting:has(#editor[data-slide-layout='agenda']) .cm-content,
253
+ body.slides-printing:has(.cm-md-slide-agenda),
254
+ body.slides-printing:has(.cm-md-slide-agenda) #editor,
255
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-editor,
256
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-scroller,
257
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-content {
258
+ background: var(--seed-black);
259
+ }
260
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content,
261
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda {
262
+ color: var(--seed-surface);
263
+ }
264
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
265
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
266
+ display: inline-block;
267
+ width: 22.8%;
268
+ margin: 0 1.4% 1.4em 0;
269
+ padding: 1.13em 0.56em; /* 36px 18px ÷32 */
270
+ border: 1.5px solid rgba(226, 220, 201, 0.45);
271
+ border-radius: 26px; /* 形状足迹近似 */
272
+ vertical-align: top;
273
+ text-align: center;
274
+ list-style: none;
275
+ font-size: 1.23em; /* .lab 32px ÷26 */
276
+ color: var(--seed-surface);
277
+ }
278
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
279
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
280
+ display: block;
281
+ font-family: var(--slide-mono);
282
+ font-weight: 800;
283
+ font-size: 1em; /* .n 32px ÷26 ÷1.23 */
284
+ letter-spacing: 0.06em;
285
+ color: var(--seed-surface);
286
+ margin-bottom: 2.2em; /* space-between 的近似 */
287
+ }
288
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-strong,
289
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-strong {
290
+ display: block;
291
+ font-family: var(--slide-title-font);
292
+ font-weight: 700;
293
+ font-size: 1em; /* .lab 32px ÷26 ÷1.23 */
294
+ line-height: 1.05;
295
+ letter-spacing: 0.02em;
296
+ text-transform: uppercase;
297
+ color: var(--seed-surface);
298
+ }
299
+
300
+ /* 1.6.4 section · P04(黑底):标题 120px 贴底右对齐(right 64 / bottom 130),
301
+ 眉标 Barlow 800 24px .14em 右对齐 .7;540px 橙巨号是绝对定位装饰 → 未复刻 */
302
+ body.presenting:has(#editor[data-slide-layout='section']),
303
+ body.presenting:has(#editor[data-slide-layout='section']) #editor,
304
+ body.presenting:has(#editor[data-slide-layout='section']) .cm-editor,
305
+ body.presenting:has(#editor[data-slide-layout='section']) .cm-scroller,
306
+ body.presenting:has(#editor[data-slide-layout='section']) .cm-content,
307
+ body.slides-printing:has(.cm-md-slide-section),
308
+ body.slides-printing:has(.cm-md-slide-section) #editor,
309
+ body.slides-printing:has(.cm-md-slide-section) .cm-editor,
310
+ body.slides-printing:has(.cm-md-slide-section) .cm-scroller,
311
+ body.slides-printing:has(.cm-md-slide-section) .cm-content {
312
+ background: var(--seed-black);
313
+ }
314
+ body.presenting #editor[data-slide-layout='section'] .cm-content {
315
+ justify-content: flex-end;
316
+ padding-bottom: 130px;
317
+ text-align: right;
318
+ color: var(--seed-surface);
319
+ }
320
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title,
321
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-title {
322
+ font-size: var(--slide-section-title-size);
323
+ line-height: 0.92;
324
+ letter-spacing: -0.005em;
325
+ max-width: none;
326
+ color: var(--seed-surface);
327
+ }
328
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
329
+ body.slides-printing #editor .cm-content .cm-md-slide-section .cm-md-page-title[data-slide-kicker]::before {
330
+ font-weight: 800;
331
+ font-size: 0.92em; /* .label 24px ÷26 */
332
+ letter-spacing: 0.14em;
333
+ text-align: right;
334
+ opacity: 0.7;
335
+ color: var(--seed-surface);
336
+ }
337
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
338
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-lead {
339
+ font-family: var(--slide-mono);
340
+ font-weight: 800;
341
+ font-size: 0.92em;
342
+ letter-spacing: 0.14em;
343
+ text-transform: uppercase;
344
+ text-align: right;
345
+ max-width: none;
346
+ opacity: 0.7;
347
+ color: var(--seed-surface);
348
+ }
349
+
350
+ /* 1.6.5 matrix · P03(四卡)/ P05(三栏,同形不单列):页题 = P05 mustard 行动标题条
351
+ (34px Stardos + ink 字 + 22px 圆角 + 24/32 内距);卡片 = paper 26px 圆角卡。
352
+ 四卡异色(sienna/magenta/orange/teal)与 240px 巨数字(列表标记是项目符号,
353
+ 不是序号)→ 未复刻 */
354
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content .cm-md-page-title,
355
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-page-title {
356
+ font-size: 1.31em; /* .head h2 34px ÷26 */
357
+ line-height: 1.15;
358
+ letter-spacing: -0.005em;
359
+ background: var(--seed-mustard);
360
+ color: var(--seed-ink);
361
+ border-radius: 22px;
362
+ padding: 0.47em 0.94em; /* 24px 32px ÷34 */
363
+ max-width: none;
364
+ }
365
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
366
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
367
+ display: inline-block;
368
+ width: 22.8%;
369
+ margin: 0 1.4% 1.4em 0;
370
+ padding: 1.64em 1.36em 1.45em; /* 36px 30px 32px ÷22 */
371
+ border: none;
372
+ border-radius: 26px;
373
+ background: var(--seed-paper);
374
+ color: var(--seed-ink);
375
+ font-size: 0.85em; /* 卡说明 22px ÷26 */
376
+ line-height: 1.4;
377
+ vertical-align: top;
378
+ text-align: left;
379
+ list-style: none;
380
+ }
381
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
382
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
383
+ display: block;
384
+ font-family: var(--slide-title-font);
385
+ font-weight: 700;
386
+ font-size: 1.36em; /* 卡名 30px ÷22 */
387
+ line-height: 1.05;
388
+ letter-spacing: 0.02em;
389
+ text-transform: uppercase;
390
+ color: var(--seed-ink);
391
+ margin-bottom: 0.5em;
392
+ }
393
+
394
+ /* 1.6.6 two-col · P06(黑底):左栏 540px 文本(h2 110px 骨白 / 22px 说明 .85);
395
+ 右栏 paper 图表面板与图例、坐标轴为 SVG 绝对定位 → 未复刻 */
396
+ body.presenting:has(#editor[data-slide-layout='two-col']),
397
+ body.presenting:has(#editor[data-slide-layout='two-col']) #editor,
398
+ body.presenting:has(#editor[data-slide-layout='two-col']) .cm-editor,
399
+ body.presenting:has(#editor[data-slide-layout='two-col']) .cm-scroller,
400
+ body.presenting:has(#editor[data-slide-layout='two-col']) .cm-content,
401
+ body.slides-printing:has(.cm-md-slide-two-col),
402
+ body.slides-printing:has(.cm-md-slide-two-col) #editor,
403
+ body.slides-printing:has(.cm-md-slide-two-col) .cm-editor,
404
+ body.slides-printing:has(.cm-md-slide-two-col) .cm-scroller,
405
+ body.slides-printing:has(.cm-md-slide-two-col) .cm-content {
406
+ background: var(--seed-black);
407
+ }
408
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content {
409
+ color: var(--seed-surface);
410
+ column-rule-color: rgba(226, 220, 201, 0.3);
411
+ }
412
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-title,
413
+ body.slides-printing #editor .cm-content .cm-md-slide-two-col.cm-md-page-title {
414
+ font-size: 4.23em; /* min(110px,12vh)@1080 = 110px ÷26 */
415
+ line-height: 0.92;
416
+ letter-spacing: -0.01em;
417
+ max-width: none;
418
+ color: var(--seed-surface);
419
+ }
420
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-lead,
421
+ body.slides-printing #editor .cm-content .cm-md-slide-two-col.cm-md-page-lead {
422
+ font-size: 0.85em; /* 22px ÷26 */
423
+ line-height: 1.5;
424
+ max-width: none;
425
+ opacity: 0.85;
426
+ color: var(--seed-surface);
427
+ }
428
+
429
+ /* 1.6.7 steps · P07:页题 92px(品红 em)+ Barlow 600 .06em 副题;五列节点卡 =
430
+ paper 22px 圆角 + 64px 序号 + 28px 卡名大写 + 18px 说明。
431
+ 节点异色 / 箭头 / 底部时间条 → 未复刻 */
432
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
433
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
434
+ display: inline-block;
435
+ width: 18.3%;
436
+ margin: 0 1.1% 1.4em 0;
437
+ padding: 1.33em 1.22em; /* 24px 22px ÷18 */
438
+ border: none;
439
+ border-radius: 22px;
440
+ background: var(--seed-paper);
441
+ color: var(--seed-ink);
442
+ font-size: 0.69em; /* 说明 18px ÷26 */
443
+ line-height: 1.4;
444
+ vertical-align: top;
445
+ text-align: left;
446
+ list-style: none;
447
+ }
448
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
449
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
450
+ display: block;
451
+ font-family: var(--slide-title-font);
452
+ font-weight: 700;
453
+ font-size: 3.56em; /* .n 64px ÷18 */
454
+ line-height: 0.9;
455
+ letter-spacing: -0.02em;
456
+ color: var(--seed-ink);
457
+ margin-bottom: 0.2em;
458
+ }
459
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
460
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
461
+ display: block;
462
+ font-family: var(--slide-title-font);
463
+ font-weight: 700;
464
+ font-size: 1.56em; /* 卡名 28px ÷18 */
465
+ line-height: 1.05;
466
+ letter-spacing: 0.02em;
467
+ text-transform: uppercase;
468
+ color: var(--seed-ink);
469
+ margin-bottom: 0.5em;
470
+ }
471
+
472
+ /* 1.6.8 figure · P08(comparison matrix):页题 92px 青 em;副题与 P07/P09 共用
473
+ Barlow 600 .06em 大写(见下);本体是表格——表头 ink 底骨白字、行标签 Stardos 大写、
474
+ ink .35 网格,这套表格语言写在文档层(SECTION 2/3)全局生效;pill 胶囊无单元格挂点
475
+ → 未复刻 */
476
+ body.presenting #editor[data-slide-layout='steps'] .cm-content .cm-md-page-lead,
477
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-lead,
478
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-lead,
479
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-page-lead,
480
+ body.slides-printing #editor .cm-content .cm-md-slide-figure.cm-md-page-lead,
481
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-page-lead {
482
+ font-family: var(--slide-mono);
483
+ font-weight: 600;
484
+ letter-spacing: 0.06em;
485
+ text-transform: uppercase;
486
+ line-height: 1.5;
487
+ max-width: 38ch;
488
+ opacity: 0.85;
489
+ }
490
+
491
+ /* 1.6.9 kpi · P09(黑底):页题 92px 骨白;统计卡 = paper 22px 圆角 +
492
+ 160px Stardos 巨号 + 卡名大写 + 20px 说明。
493
+ 三卡异色(orange/mustard/bone)无逐行挂点 → 统一 paper 卡、ink 字 */
494
+ body.presenting:has(#editor[data-slide-layout='kpi']),
495
+ body.presenting:has(#editor[data-slide-layout='kpi']) #editor,
496
+ body.presenting:has(#editor[data-slide-layout='kpi']) .cm-editor,
497
+ body.presenting:has(#editor[data-slide-layout='kpi']) .cm-scroller,
498
+ body.presenting:has(#editor[data-slide-layout='kpi']) .cm-content,
499
+ body.slides-printing:has(.cm-md-slide-kpi),
500
+ body.slides-printing:has(.cm-md-slide-kpi) #editor,
501
+ body.slides-printing:has(.cm-md-slide-kpi) .cm-editor,
502
+ body.slides-printing:has(.cm-md-slide-kpi) .cm-scroller,
503
+ body.slides-printing:has(.cm-md-slide-kpi) .cm-content {
504
+ background: var(--seed-black);
505
+ }
506
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content,
507
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi {
508
+ color: var(--seed-surface);
509
+ }
510
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title,
511
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-page-title {
512
+ letter-spacing: -0.01em;
513
+ max-width: none;
514
+ color: var(--seed-surface);
515
+ }
516
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
517
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
518
+ width: 31.5%;
519
+ margin: 0 1.2% 1.4em 0;
520
+ padding: 1.6em 1.5em; /* 32px 30px ÷20 */
521
+ border: none;
522
+ border-radius: 22px;
523
+ background: var(--seed-paper);
524
+ color: var(--seed-ink);
525
+ font-size: 0.77em; /* 说明 20px ÷26 */
526
+ line-height: 1.4;
527
+ vertical-align: top;
528
+ text-align: left;
529
+ list-style: none;
530
+ }
531
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
532
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
533
+ display: block;
534
+ font-family: var(--slide-title-font);
535
+ font-weight: 700;
536
+ font-size: var(--slide-kpi-number-size);
537
+ line-height: 0.85;
538
+ letter-spacing: -0.02em;
539
+ color: var(--seed-ink);
540
+ margin-bottom: 0.35em;
541
+ }
542
+
543
+ /* 1.6.10 quote · P10:品红面板 = 引用行整块上色(相邻行只 margin,CSS-03);
544
+ 金句 60px Stardos 400(模板唯一 400 档);署名行 26px Barlow 800 大写 .08em;
545
+ 320px 巨引号(Bowlby One,左栏 grid)以 ::before 近似,面板圆角未复刻 */
546
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
547
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
548
+ font-family: var(--slide-title-font);
549
+ font-weight: 400;
550
+ font-size: var(--slide-quote-size);
551
+ font-style: normal;
552
+ line-height: 1.05;
553
+ letter-spacing: -0.005em;
554
+ color: var(--seed-ink);
555
+ background: var(--seed-magenta);
556
+ border-left: none;
557
+ max-width: 100%;
558
+ padding-left: 1.33em; /* 80px ÷60 */
559
+ padding-right: 1.33em;
560
+ }
561
+ body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
562
+ body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
563
+ font-family: var(--slide-title-font);
564
+ font-size: 5.33em; /* .qmark 320px ÷60 */
565
+ line-height: 0.6;
566
+ color: var(--seed-ink);
567
+ }
568
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
569
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
570
+ margin: 0; /* 面板连续:纵向留白只走 margin */
571
+ padding-left: 3.08em; /* 80px ÷26 */
572
+ padding-right: 3.08em;
573
+ background: var(--seed-magenta);
574
+ color: var(--seed-ink);
575
+ font-family: var(--slide-mono);
576
+ font-weight: 800;
577
+ font-size: 1em; /* .who 26px ÷26 */
578
+ letter-spacing: 0.08em;
579
+ text-transform: uppercase;
580
+ }
581
+
582
+ /* 1.6.11 closing · P11:标题 130px 贴底(左 pane 未复刻 → 标题落骨白纸面用 ink);
583
+ 行动清单 = 56px 序号 + Barlow 800 26px 步骤名 + 20px 说明(右橙 pane 未复刻) */
584
+ body.presenting #editor[data-slide-layout='closing'] .cm-content {
585
+ color: var(--text-color); /* 压掉上游 text-muted */
586
+ }
587
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title,
588
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-page-title {
589
+ font-size: var(--slide-closing-title-size);
590
+ line-height: 0.9;
591
+ letter-spacing: -0.015em;
592
+ max-width: none;
593
+ }
594
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
595
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
596
+ margin: 0 0 1.2em;
597
+ padding: 0;
598
+ border: none;
599
+ list-style: none;
600
+ font-size: 0.77em; /* 说明 20px ÷26 */
601
+ line-height: 1.4;
602
+ color: var(--text-color);
603
+ }
604
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li::before,
605
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li::before {
606
+ content: none; /* 模板无 ▸ 前缀,序号由 listmark 承担 */
607
+ }
608
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-listmark,
609
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-listmark {
610
+ display: inline-block;
611
+ font-family: var(--slide-title-font);
612
+ font-weight: 700;
613
+ font-size: 2.8em; /* .step .n 56px ÷20 */
614
+ line-height: 0.9;
615
+ letter-spacing: -0.01em;
616
+ color: var(--text-color);
617
+ margin-right: 0.45em;
618
+ vertical-align: top;
619
+ }
620
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-strong,
621
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-strong {
622
+ font-family: var(--slide-mono);
623
+ font-weight: 800;
624
+ font-size: 1.3em; /* .step h4 26px ÷20 */
625
+ letter-spacing: 0.04em;
626
+ text-transform: uppercase;
627
+ color: var(--text-color);
628
+ }
629
+
630
+ /* 1.6.12 chrome · 页眉 Barlow Condensed 800 32px .04em 大写;页脚 22px .08em .75。
631
+ 模板没有右下巨人水印页码(页码在 footer "02 / 11")→ ghost 整副牌关闭,
632
+ 换底页也就不会出现同色隐形的页码 */
633
+ body.presenting .slide-chrome,
634
+ body.slides-printing .slide-chrome {
635
+ font-family: var(--slide-mono);
636
+ font-weight: 800;
637
+ font-size: clamp(16px, 1.67vw, 32px); /* .top 32px @1920 */
638
+ letter-spacing: 0.04em;
639
+ text-transform: uppercase;
640
+ color: var(--text-color);
641
+ }
642
+ body.presenting .slide-foot,
643
+ body.slides-printing .slide-foot {
644
+ font-family: var(--slide-mono);
645
+ font-weight: 600;
646
+ font-size: clamp(12px, 1.15vw, 22px); /* .footer 22px @1920 */
647
+ letter-spacing: 0.08em;
648
+ text-transform: uppercase;
649
+ opacity: 0.75;
650
+ color: var(--text-color);
651
+ }
652
+ body.presenting .slide-ghost {
653
+ opacity: 0;
654
+ }
655
+ /* 暗页 chrome / footer 换骨白(P02/P04/P06/P09) */
656
+ body.presenting:has(#editor[data-slide-layout='agenda']) .slide-chrome,
657
+ body.presenting:has(#editor[data-slide-layout='agenda']) .slide-foot,
658
+ body.presenting:has(#editor[data-slide-layout='section']) .slide-chrome,
659
+ body.presenting:has(#editor[data-slide-layout='section']) .slide-foot,
660
+ body.presenting:has(#editor[data-slide-layout='two-col']) .slide-chrome,
661
+ body.presenting:has(#editor[data-slide-layout='two-col']) .slide-foot,
662
+ body.presenting:has(#editor[data-slide-layout='kpi']) .slide-chrome,
663
+ body.presenting:has(#editor[data-slide-layout='kpi']) .slide-foot,
664
+ body.slides-printing:has(.cm-md-slide-agenda) .slide-chrome,
665
+ body.slides-printing:has(.cm-md-slide-agenda) .slide-foot,
666
+ body.slides-printing:has(.cm-md-slide-section) .slide-chrome,
667
+ body.slides-printing:has(.cm-md-slide-section) .slide-foot,
668
+ body.slides-printing:has(.cm-md-slide-two-col) .slide-chrome,
669
+ body.slides-printing:has(.cm-md-slide-two-col) .slide-foot,
670
+ body.slides-printing:has(.cm-md-slide-kpi) .slide-chrome,
671
+ body.slides-printing:has(.cm-md-slide-kpi) .slide-foot {
672
+ color: var(--seed-surface);
673
+ }
674
+ /* 暗页表格 td:文档层把 td 字色钉成 ink,换底后必须改回纸面色(th 自带 ink 底不受影响) */
675
+ body.presenting:has(#editor[data-slide-layout='agenda']) .cm-md-table-widget td,
676
+ body.presenting:has(#editor[data-slide-layout='section']) .cm-md-table-widget td,
677
+ body.presenting:has(#editor[data-slide-layout='two-col']) .cm-md-table-widget td,
678
+ body.presenting:has(#editor[data-slide-layout='kpi']) .cm-md-table-widget td,
679
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-md-table-widget td,
680
+ body.slides-printing:has(.cm-md-slide-section) .cm-md-table-widget td,
681
+ body.slides-printing:has(.cm-md-slide-two-col) .cm-md-table-widget td,
682
+ body.slides-printing:has(.cm-md-slide-kpi) .cm-md-table-widget td {
683
+ color: var(--seed-surface);
684
+ }
685
+
686
+ /* 1.6.13 无对应版式:timeline(P07 底部时间条是装饰条,不是日期清单)与未声明的
687
+ default 文章版式均不写规则,保持上游默认(§3 约定)。 */
688
+
689
+ /* ═══════════════════════════════════════════════════════════
690
+ SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
691
+ ═══════════════════════════════════════════════════════════ */
692
+
693
+ #editor .cm-content {
694
+ font-family: var(--font-body);
695
+ line-height: 1.75;
696
+ }
697
+
698
+ /* ── 2.1 Headings:Stardos Stencil 700 大写(模板只有 700 一档标题字)──
699
+ 生成版把 h2 压到 1.125em、并给 h1/h2 加文档式下划线,均与模板不符,此处改正。 */
700
+ #editor .cm-content .cm-md-atxheading1,
701
+ #editor .cm-content .cm-md-atxheading2,
702
+ #editor .cm-content .cm-md-atxheading3,
703
+ #editor .cm-content .cm-md-atxheading4,
704
+ #editor .cm-content .cm-md-atxheading5,
705
+ #editor .cm-content .cm-md-atxheading6 {
706
+ font-family: "Stardos Stencil", "Noto Serif SC", serif;
707
+ color: var(--text-color);
708
+ font-weight: 700;
709
+ line-height: 1.15;
710
+ letter-spacing: -0.012em;
711
+ text-transform: uppercase;
712
+ }
713
+
714
+ #editor .cm-content .cm-md-atxheading1 { font-size: 2.4em; letter-spacing: -0.015em; }
715
+ #editor .cm-content .cm-md-atxheading2 { font-size: 1.9em; }
716
+ #editor .cm-content .cm-md-atxheading3 { font-size: 1.55em; letter-spacing: 0; }
717
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1.28em; letter-spacing: 0; }
718
+ #editor .cm-content .cm-md-atxheading5 { font-size: 1.1em; letter-spacing: 0; }
719
+ #editor .cm-content .cm-md-atxheading6 {
720
+ font-size: 0.95em;
721
+ font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
722
+ font-weight: 800;
723
+ letter-spacing: 0.12em;
724
+ }
725
+
726
+ /* ── 2.2 Inline ── */
727
+ #editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 700; }
728
+ #editor .cm-content .cm-md-em { font-style: italic; }
729
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; }
730
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
731
+ #editor .cm-content .cm-md-link { color: var(--link-color); }
732
+ #editor .cm-content .cm-md-url { color: var(--text-muted); }
733
+
734
+ #editor .cm-content .cm-md-inlinecode {
735
+ font-family: var(--font-mono);
736
+ background: var(--code-bg);
737
+ color: var(--text-color);
738
+ border-radius: 6px;
739
+ }
740
+
741
+ #editor .cm-content .cm-md-marker,
742
+ #editor .cm-content .cm-md-quotemark {
743
+ color: var(--text-muted);
744
+ }
745
+ #editor .cm-content .cm-md-listmark { color: var(--text-color); }
746
+
747
+ /* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
748
+ 引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
749
+ 否则引用里的代码行会盖住代码块底色。 */
750
+ #editor .cm-content .cm-md-blockquote {
751
+ color: var(--text-secondary);
752
+ border-left: 2px solid var(--blockquote-border);
753
+ padding-left: 16px;
754
+ padding-right: 16px;
755
+ }
756
+
757
+ #editor .cm-content .cm-md-codeblock {
758
+ background: var(--code-block-bg);
759
+ color: var(--code-block-text);
760
+ padding-left: 16px;
761
+ padding-right: 16px;
762
+ }
763
+ #editor .cm-content .cm-md-codeblock-first {
764
+ border-top-left-radius: 8px;
765
+ border-top-right-radius: 8px;
766
+ }
767
+ #editor .cm-content .cm-md-codeblock-last {
768
+ border-bottom-left-radius: 8px;
769
+ border-bottom-right-radius: 8px;
770
+ }
771
+
772
+ /* ── 2.4 Table / Rule:模板 P08 的表格语言 —— ink 表头 + 骨白大写 Stardos 表头字,
773
+ 1.5px ink .35 网格,首列当行标签用 Stardos 26px 大写 ── */
774
+ #editor .cm-content .cm-md-table-widget th,
775
+ #editor .cm-content .cm-md-table-widget td {
776
+ padding: 10px 14px;
777
+ border-color: rgba(10, 10, 10, 0.35);
778
+ color: var(--text-color); /* td 不另设深色字:暗页随 --seed-surface */
779
+ }
780
+ #editor .cm-content .cm-md-table-widget th {
781
+ background: var(--table-header-bg);
782
+ color: var(--seed-surface);
783
+ font-family: "Stardos Stencil", "Noto Serif SC", serif;
784
+ font-size: 0.9em;
785
+ font-weight: 700;
786
+ letter-spacing: 0.02em;
787
+ text-transform: uppercase;
788
+ border-bottom: 2px solid var(--seed-ink);
789
+ }
790
+ #editor .cm-content .cm-md-table-widget td:first-child {
791
+ font-family: "Stardos Stencil", "Noto Serif SC", serif;
792
+ font-size: 1.15em;
793
+ text-transform: uppercase;
794
+ letter-spacing: 0.01em;
795
+ }
796
+ #editor .cm-content .cm-md-hr { border-top-color: var(--seed-border-strong); }
797
+
798
+ /* ── 2.5 中文首行缩进 ──
799
+ CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
800
+ #editor .cm-content .cm-line { text-indent: 2em; }
801
+
802
+ #editor .cm-content .cm-md-atxheading1,
803
+ #editor .cm-content .cm-md-atxheading2,
804
+ #editor .cm-content .cm-md-atxheading3,
805
+ #editor .cm-content .cm-md-atxheading4,
806
+ #editor .cm-content .cm-md-atxheading5,
807
+ #editor .cm-content .cm-md-atxheading6,
808
+ #editor .cm-content .cm-md-blockquote,
809
+ #editor .cm-content .cm-md-codeblock,
810
+ #editor .cm-content .cm-md-hr,
811
+ #editor .cm-content .cm-md-mermaid,
812
+ #editor .cm-content .cm-md-li-0,
813
+ #editor .cm-content .cm-md-li-1,
814
+ #editor .cm-content .cm-md-li-2,
815
+ #editor .cm-content .cm-md-li-3,
816
+ #editor .cm-content .cm-md-li-4,
817
+ #editor .cm-content .cm-md-li-5,
818
+ #editor .cm-content .cm-md-li-6 {
819
+ text-indent: 0;
820
+ }
821
+
822
+ /* ═══════════════════════════════════════════════════════════
823
+ SECTION 3 — Exported HTML(.colamd-document,语义标签)
824
+ HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
825
+ ═══════════════════════════════════════════════════════════ */
826
+
827
+ .colamd-document {
828
+ background: var(--bg-color);
829
+ color: var(--text-color);
830
+ font-family: var(--font-body);
831
+ font-size: 17px;
832
+ line-height: 1.75;
833
+ }
834
+
835
+ .colamd-document h1,
836
+ .colamd-document h2,
837
+ .colamd-document h3,
838
+ .colamd-document h4,
839
+ .colamd-document h5,
840
+ .colamd-document h6 {
841
+ font-family: "Stardos Stencil", "Noto Serif SC", serif;
842
+ color: var(--text-color);
843
+ font-weight: 700;
844
+ line-height: 1.15;
845
+ letter-spacing: -0.012em;
846
+ text-transform: uppercase;
847
+ margin: 1.5em 0 0.5em;
848
+ }
849
+ .colamd-document h1 { font-size: 2.4em; letter-spacing: -0.015em; margin-top: 0.4em; }
850
+ .colamd-document h2 { font-size: 1.9em; }
851
+ .colamd-document h3 { font-size: 1.55em; letter-spacing: 0; }
852
+ .colamd-document h4 { font-size: 1.28em; letter-spacing: 0; }
853
+ .colamd-document h5 { font-size: 1.1em; letter-spacing: 0; }
854
+ .colamd-document h6 {
855
+ font-size: 0.95em;
856
+ font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
857
+ font-weight: 800;
858
+ letter-spacing: 0.12em;
859
+ }
860
+
861
+ .colamd-document strong { color: var(--text-color); font-weight: 700; }
862
+ .colamd-document code {
863
+ background: var(--code-bg);
864
+ color: var(--text-color);
865
+ font-family: var(--font-mono);
866
+ border-radius: 6px;
867
+ }
868
+ /* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
869
+ .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
870
+ .colamd-document pre { background: var(--code-block-bg); border-radius: 8px; }
871
+ .colamd-document pre code { color: var(--code-block-text); }
872
+ .colamd-document blockquote {
873
+ background: var(--blockquote-bg);
874
+ color: var(--text-secondary);
875
+ border-left: 2px solid var(--blockquote-border);
876
+ padding: 0.4em 1.2em;
877
+ }
878
+ .colamd-document mark { background: var(--highlight-bg); }
879
+ .colamd-document th,
880
+ .colamd-document td {
881
+ border-color: rgba(10, 10, 10, 0.35);
882
+ padding: 10px 14px;
883
+ color: var(--text-color);
884
+ }
885
+ .colamd-document th {
886
+ background: var(--table-header-bg);
887
+ color: var(--seed-surface);
888
+ font-family: "Stardos Stencil", "Noto Serif SC", serif;
889
+ font-size: 0.9em;
890
+ font-weight: 700;
891
+ letter-spacing: 0.02em;
892
+ text-transform: uppercase;
893
+ border-bottom: 2px solid var(--seed-ink);
894
+ }
895
+ .colamd-document td:first-child {
896
+ font-family: "Stardos Stencil", "Noto Serif SC", serif;
897
+ text-transform: uppercase;
898
+ }
899
+ .colamd-document hr { border-top-color: var(--seed-border-strong); }
900
+
901
+ .colamd-document p { text-indent: 2em; }
902
+ .colamd-document li p,
903
+ .colamd-document td p,
904
+ .colamd-document th p,
905
+ .colamd-document blockquote p {
906
+ text-indent: 0;
907
+ }
908
+
909
+ /* ═══════════════════════════════════════════════════════════
910
+ SECTION 4 — Print
911
+ 应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
912
+ ═══════════════════════════════════════════════════════════ */
913
+
914
+ @media print {
915
+ html,
916
+ body {
917
+ background: var(--bg-color);
918
+ color: var(--text-color);
919
+ -webkit-print-color-adjust: exact;
920
+ print-color-adjust: exact;
921
+ }
922
+ }