@bytechain.cn/colamd-themes 0.5.9 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +85 -19
  2. package/dist/cli.js +70 -6
  3. package/dist/cli.js.map +1 -1
  4. package/dist/compat.d.ts +23 -3
  5. package/dist/compat.js +71 -12
  6. package/dist/compat.js.map +1 -1
  7. package/dist/dsh-plugin.js +1 -1
  8. package/dist/generator.d.ts +1 -1
  9. package/dist/generator.js +5 -2
  10. package/dist/generator.js.map +1 -1
  11. package/dist/models.d.ts +7 -1
  12. package/dist/models.js +1 -1
  13. package/dist/models.js.map +1 -1
  14. package/dist/renderer.d.ts +1 -1
  15. package/dist/renderer.js +21 -3
  16. package/dist/renderer.js.map +1 -1
  17. package/dist/slides-markdown.d.ts +45 -0
  18. package/dist/slides-markdown.js +515 -0
  19. package/dist/slides-markdown.js.map +1 -0
  20. package/dist/slides.d.ts +36 -0
  21. package/dist/slides.js +149 -0
  22. package/dist/slides.js.map +1 -0
  23. package/dist/templates/theme-template.hbs +11 -0
  24. package/dist/validators.d.ts +2 -2
  25. package/dist/validators.js +71 -4
  26. package/dist/validators.js.map +1 -1
  27. package/package.json +3 -2
  28. package/skills/build-skills.sh +224 -217
  29. package/skills/colamd-themes/SKILL.md +178 -6
  30. package/themes/8-bit-orbit.css +817 -0
  31. package/themes/README.md +69 -0
  32. package/themes/biennale-yellow.css +577 -0
  33. package/themes/block-frame.css +774 -0
  34. package/themes/blue-professional.css +741 -0
  35. package/themes/bold-poster.css +794 -0
  36. package/themes/broadside.css +837 -0
  37. package/themes/capsule.css +767 -0
  38. package/themes/cartesian.css +584 -0
  39. package/themes/cobalt-grid.css +632 -0
  40. package/themes/coral.css +699 -0
  41. package/themes/creative-mode.css +642 -0
  42. package/themes/daisy-days.css +1052 -0
  43. package/themes/editorial-forest.css +796 -0
  44. package/themes/editorial-tri-tone.css +811 -0
  45. package/themes/emerald-editorial.css +683 -0
  46. package/themes/grove.css +623 -0
  47. package/themes/indigo-deck.css +336 -0
  48. package/themes/indigo-porcelain-light.css +335 -0
  49. package/themes/long-table.css +782 -0
  50. package/themes/mat.css +848 -0
  51. package/themes/monochrome.css +782 -0
  52. package/themes/neo-grid-bold.css +838 -0
  53. package/themes/peoples-platform.css +843 -0
  54. package/themes/pin-and-paper.css +700 -0
  55. package/themes/pink-script-dark.css +648 -0
  56. package/themes/pink-script.css +290 -0
  57. package/themes/playful.css +774 -0
  58. package/themes/raw-grid.css +814 -0
  59. package/themes/retro-windows.css +767 -0
  60. package/themes/retro-zine.css +814 -0
  61. package/themes/sakura-chroma.css +775 -0
  62. package/themes/scatterbrain.css +726 -0
  63. package/themes/signal.css +872 -0
  64. package/themes/soft-editorial.css +788 -0
  65. package/themes/stencil-tablet.css +922 -0
  66. package/themes/studio.css +767 -0
  67. package/themes/swiss-lemon-dark.css +529 -0
  68. package/themes/swiss-lemon-light.css +375 -0
  69. package/themes/vellum.css +723 -0
@@ -0,0 +1,1052 @@
1
+ /*
2
+ * ColaMD Theme: Daisy Days(雏菊假日 · 逐页版式复刻,按用户指定页面映射重排)
3
+ * 来源:beautiful-html-templates/templates/daisy-days/template.html(10 页 PPT 模板)+ 同目录 design.md
4
+ * 初版由 colamd-themes from-html 提取,本版按 docs/slide-theme-replication.md 七步流程逐页精修。
5
+ * 身份:奶油纸面 + 白卡片 + 3px 全墨描边 + 错位实体阴影(6px/4px 0 ink)+ 20/28px 大圆角,
6
+ * Fredoka One 展示体(仅 400 字重)× Quicksand 正文,糖果粉彩多色(butter/mint/soft-pink/lavender/peach/turquoise/sky)。
7
+ * 色板:cream #F5F0E6(纸)· ink #2D2D2D(墨/描边)· muted #6B6B6B · coral #F8635F(强调)·
8
+ * butter #FDE68A · mint #A8E6CF · soft-pink #F7C8D4 · lavender #D4A5E8 ·
9
+ * peach #FFCBA4 · turquoise #7ECDC0 · sky #A8D8F0 · 白卡片 #FFFFFF
10
+ * 字体:display "Fredoka One"(400);body "Quicksand"(400/500/600/700)
11
+ * paradigm 备案(糖果贴纸身份,类比 pin-and-paper 黄纸 / biennale-yellow 高饱和,有意保留,validate exit 1 仅此类):
12
+ * SL-01 —— 奶油纸面 #F5F0E6 饱和度 42.9%>5%(浅色 HSL 膨胀值),暖纸是模板页面底色身份,不中和为灰阶
13
+ * SL-02 —— panel #F0E9DC 40.0% / panel-alt #E7DECC 36.0%>10%:奶油纸加深档(行内代码/代码块底),保纸张暖感
14
+ * CR-04 —— ① 点缀色 coral 对纸面 2.7:1<4.5:coral/butter 仅作色块·圆点·徽章·图标底,禁作文字色;
15
+ * 链接文字走深珊瑚 #C13A35(≥4.5:1);② 换底页白字页题落粉/青/紫/薄荷底 ≈1.5-1.7:1,
16
+ * 模板以 3px 错位墨影(3px 3px 0 ink)承担可读性,白字+阴影整组保留为页面身份
17
+ * NT-01 / NT-03 —— 糖果多色相 + 全墨 3px 描边(手绘贴纸描边身份),边框不做中性淡出
18
+ *
19
+ * 页面映射(10 页 → ColaMD 版式,用户指定,覆盖旧版):
20
+ * cover ← P1 .slide-title "Daisy Days" cream,h1 104px 居中
21
+ * section ← P2 .slide-welcome "Welcome to Today" cream,mint 标题帽 + 白面板
22
+ * kpi ← P3 .slide-weekly "A Look at the Week" turquoise 底,5 张日卡
23
+ * agenda ← P4 .slide-timeline "Today's Schedule" soft-pink 底,白卡行 + 彩圆点
24
+ * figure ← P5 .slide-chart-bar "Activity Breakdown" butter 底,白图表容器
25
+ * matrix ← P6 .slide-cards "Key Focus Areas" cream,白卡 2 列 + 图标圆
26
+ * quote ← P7 .slide-quote 引言(无页题) lavender 底,白框引言
27
+ * steps ← P8 .slide-team "Our Team" mint 底,4 列头像位 + 姓名/角色
28
+ * timeline ← P9 .slide-process "How It Works" peach 底,3 列彩圆 + 标题/说明
29
+ * closing ← P1 (与 cover 同页源) cream,104px 居中主标 + 副标,位置按收页语义居中收束
30
+ * 默认文章页 ← P6 .slide-cards cream,48px 居中页题 + 18.4px 正文
31
+ * P10 .slide-donut(sky)→ 无对应版式,保持上游默认(不写任何规则)
32
+ *
33
+ * Motion 说明:模板 P2 中**不存在** class / id / 动画名为 motion 的元素或样式
34
+ * (全量检索仅命中 design.md 散文 "emotional register"),故无 Motion 视觉可合入;
35
+ * section ← P2 只按 .welcome-frame(mint 标题帽 + 白面板 + butter 圆点)还原。
36
+ *
37
+ * 位置(垂直居中):模板 .slide = flex column + align-items/justify-content:center,**每页都垂直居中**;
38
+ * 上游只给 cover/section/closing/two-col 居中,其余版式贴顶。见 §1.6.14:多列卡片页用 flex-wrap
39
+ * 行容器(卡片保持 inline-block 宽度,非卡片行 flex-basis:100%),单列页用 flex column,
40
+ * 对齐一律 safe center(内容超高自动退回顶端,不会被裁)。
41
+ *
42
+ * 未复刻清单(行式 DOM 无挂点的绝对定位层 / 无法分栏的容器):
43
+ * 雏菊·星星·彩虹·太阳·云朵 SVG 装饰(P1-P10 四角);导航圆点;页码胶囊的固定底部居中容器
44
+ * (改为 foot 内胶囊);P5 图例 6 项;P6 图标字母 A-D(保留四色圆环位,字母隐去);
45
+ * P8 头像人物 SVG(保留 100px 圆框);P9 步骤间箭头;P10 甜甜圈双列图例;
46
+ * quote 署名(模板在 .quote-box 内,行式 DOM 落在引用块之后 → 框下说明行)。
47
+ * 卡片内嵌套子清单:CM6 每行一个 div,父行包不住子行 → P3 日卡按「一张卡一行」的 kpi
48
+ * 约定排版(**周几** 当日安排),不写嵌套列表。
49
+ */
50
+
51
+ /* ============================================================
52
+ * SECTION 0 · 种子层(本地调色板原值,先写原始色再派生)
53
+ * ============================================================ */
54
+ :root {
55
+ --seed-ink: #2D2D2D;
56
+ --seed-ink-muted: #6B6B6B;
57
+ --seed-ink-dim: #8F8F8F;
58
+ --seed-accent: #F8635F; /* coral:圆点/步骤圈/图表条 */
59
+ --seed-accent-light: #FDE68A; /* butter:圆点/表头 */
60
+ --seed-accent-dark: #C13A35; /* 珊瑚加深,链接用(CR-04①) */
61
+ --seed-surface: #F5F0E6; /* cream 纸面 */
62
+ --seed-panel: #F0E9DC; /* 纸面加深一档:行内代码/引用底 */
63
+ --seed-panel-alt: #E7DECC; /* 纸面加深两档:代码块底(SL-04:surface > panel > panel-alt) */
64
+ --seed-border: #2D2D2D; /* 全墨描边(NT-03 备案) */
65
+ --seed-border-strong: #2D2D2D;
66
+ }
67
+
68
+ /* ============================================================
69
+ * SECTION 1 · 语义层(2.7 活变量)
70
+ * ============================================================ */
71
+ :root {
72
+ --bg-color: var(--seed-surface);
73
+ --text-color: var(--seed-ink);
74
+ --text-secondary: var(--seed-ink-muted);
75
+ --text-muted: var(--seed-ink-dim);
76
+ --border-color: var(--seed-border);
77
+ --link-color: var(--seed-accent-dark);
78
+ --code-bg: var(--seed-panel);
79
+ --code-block-bg: var(--seed-panel-alt);
80
+ --code-block-text: var(--seed-ink);
81
+ --blockquote-border: var(--seed-accent);
82
+ --blockquote-bg: var(--seed-panel);
83
+ --table-header-bg: var(--seed-accent-light);
84
+ --selection-bg: rgba(253, 230, 138, 0.4);
85
+ --highlight-bg: var(--seed-accent-light);
86
+ --font-body: "Quicksand", "Noto Sans SC", sans-serif;
87
+ --font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
88
+ --editor-font-size: 16px;
89
+ --editor-column-width: 820px;
90
+ --pele-bg: var(--code-block-bg);
91
+ --pele-fg: var(--code-block-text);
92
+ --pele-accent: var(--seed-accent);
93
+ --pele-radius: 20px;
94
+ }
95
+
96
+ /* ============================================================
97
+ * SECTION 1.5 · 幻灯片令牌(逐页复刻)
98
+ * 换算锚点:26px/em(slides 基准字号 clamp(17px,1.35vw,26px) @1920×1080 落点 26px)。
99
+ * clamp 取 1920 宽实际落点:7vw=134.4px 被 cap 6.5rem=104px 截断;3.5vw=67.2px 被 cap 3rem=48px 截断。
100
+ * px ÷ 26 = em。页面映射总表见文件头。
101
+ * ============================================================ */
102
+ :root {
103
+ --slide-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
104
+ --slide-title-font: "Fredoka One", "Noto Sans SC", sans-serif;
105
+ --slide-title-size: 1.85em; /* P3-P9 页题 h2 clamp(1.8rem,3.5vw,3rem) → 48px ÷26 */
106
+ --slide-title-weight: 400; /* Fredoka One 仅 400(模板 h1-h4 均 400) */
107
+ --slide-subhead-weight: 600; /* Quicksand 副标/卡片题 600 */
108
+ --slide-title-tracking: 0.02em; /* 模板 h1-h4 letter-spacing .02em */
109
+ --slide-title-line-height: 1.15;
110
+ --slide-cover-title-size: 4em; /* P1 h1 clamp(3.2rem,7vw,6.5rem) → 104px ÷26 */
111
+ --slide-cover-title-line-height: 1.1;
112
+ --slide-cover-title-tracking: 0.02em;
113
+ --slide-section-title-size: 1.23em; /* P2 .welcome-header h2 clamp(1.4rem,2.5vw,2rem) → 32px ÷26 */
114
+ --slide-closing-title-size: 4em; /* closing ← P1:同 104px ÷26 */
115
+ --slide-lead-size: 0.86em; /* P1 .subtitle clamp(1rem,1.8vw,1.4rem) → 22.4px ÷26 */
116
+ --slide-kicker-size: clamp(12px, 0.73vw, 14px); /* 模板无 kicker 页,取 .badge .85rem ≈13.6px */
117
+ --slide-kicker-tracking: 0.02em;
118
+ --slide-kicker-transform: none; /* 模板无大写标签文化 */
119
+ --slide-chrome-opacity: 1; /* .slide-counter 为实色胶囊,不做淡出 */
120
+ --slide-chrome-transform: none;
121
+ --slide-kpi-number-size: 1.16em; /* P3 .day-header 17.6px ÷ kpi li 15.2px */
122
+ --slide-quote-size: 1.23em; /* P7 .quote-text clamp(1.3rem,2.5vw,2rem) → 32px ÷26 */
123
+ --slide-page-pad-x: 3.1vw; /* .slide padding 60px ÷1920 */
124
+ --slide-page-top-pad: 34px; /* 页顶 padding 40px,扣除 chrome 安全区 */
125
+ --slide-page-top-pad-print: 30px;
126
+ --slide-cover-text-align: center; /* P1 .title-box text-align:center */
127
+ --slide-cover-lead-inline: auto;
128
+ }
129
+
130
+ /* ============================================================
131
+ * SECTION 1.6 · 逐版式 scoped 规则
132
+ * 全部包裹 body.presenting / body.slides-printing(SLIDE-02);
133
+ * 版式类与行角色类写在同一 div 上,故一律用复合选择器(不加后代空格)。
134
+ * ============================================================ */
135
+
136
+ /* ---- 1.6.1 页标题声部:模板内容页页题一律居中、无下划线 ---- */
137
+ body.presenting #editor .cm-content .cm-md-page-title,
138
+ body.slides-printing #editor .cm-content .cm-md-page-title {
139
+ font-family: var(--slide-title-font);
140
+ font-size: var(--slide-title-size);
141
+ font-weight: 400; /* Fredoka One 仅 400 */
142
+ letter-spacing: 0.02em;
143
+ line-height: 1.15;
144
+ text-align: center;
145
+ color: var(--text-color);
146
+ border-bottom: none;
147
+ padding-bottom: 0;
148
+ margin-bottom: 0.67em; /* 模板页题下距 32px ÷48 */
149
+ }
150
+ body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
151
+ body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
152
+ font-family: var(--font-body);
153
+ font-weight: 700;
154
+ letter-spacing: 0.02em;
155
+ text-transform: none;
156
+ color: var(--text-secondary);
157
+ }
158
+ /* ---- 1.6.2 cover ← P1 .slide-title(cream 默认底) ---- */
159
+ /* 主标 104px 居中;副标 h2 = .subtitle 22.4px / Quicksand 600 / muted */
160
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
161
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-title {
162
+ font-size: var(--slide-cover-title-size);
163
+ line-height: var(--slide-cover-title-line-height);
164
+ margin: 0 0 0.12em; /* P1 h1 margin-bottom 12px ÷104(.title-box 无宽度上限) */
165
+ }
166
+ body.presenting #editor .cm-content .cm-md-slide-cover.cm-md-atxheading2,
167
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-atxheading2,
168
+ body.presenting #editor .cm-content .cm-md-slide-cover.cm-md-page-lead,
169
+ body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-lead {
170
+ font-family: var(--font-body);
171
+ font-weight: 600;
172
+ font-size: var(--slide-lead-size); /* 22.4px ÷26 */
173
+ line-height: 1.6;
174
+ color: var(--text-secondary); /* .subtitle color:var(--text-muted) #6B6B6B */
175
+ text-align: center;
176
+ /* 模板 h1 下距 12px + subtitle 上距 16px,块内折行距取 16px;放映是 flex 列不折行距,
177
+ 故只补 4px(16−12)÷22.4 */
178
+ margin: 0.18em auto 0;
179
+ }
180
+ /* P1 四角雏菊 + 三星为绝对定位装饰 → 有意未复刻 */
181
+
182
+ /* ---- 1.6.3 section ← P2 .slide-welcome(cream 默认底) ---- */
183
+ /* .welcome-header:mint 帽 + 3px 墨描边 + 28px 上圆角,32px 居中(模板分隔线由 .welcome-body 顶边画出,
184
+ 这里落在标题下边,视觉等价) */
185
+ body.presenting #editor .cm-content .cm-md-slide-section.cm-md-page-title,
186
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-title {
187
+ font-size: var(--slide-section-title-size); /* 32px ÷26 */
188
+ line-height: 1.15; /* 模板 h2 line-height 1.15 */
189
+ text-align: center;
190
+ color: var(--text-color);
191
+ background: #A8E6CF; /* --mint */
192
+ border: 3px solid var(--border-color);
193
+ border-bottom: 3px solid var(--border-color); /* 面板顶线(模板由 .welcome-body 顶边画出) */
194
+ border-radius: 28px 28px 0 0;
195
+ box-sizing: border-box;
196
+ width: 100%;
197
+ max-width: 27.5em; /* 880px ÷32 */
198
+ margin: 0 auto;
199
+ padding: 0.56em 1em; /* 18px 32px ÷32 */
200
+ }
201
+ /* .welcome-body:白面板 3px 描边 + 28px 下圆角 + 6px 阴影;逐行画底、只留横向内距(禁纵向 padding 的行不涉及)
202
+ body 内距 36px 48px → 横向 2.6em(48 ÷18.4),首行上内距 1.95em(36 ÷18.4),末行下内距同值 */
203
+ body.presenting #editor .cm-content .cm-md-slide-section.cm-md-page-lead,
204
+ body.presenting #editor .cm-content .cm-md-slide-section.cm-md-li,
205
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-lead,
206
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-li {
207
+ font-size: 0.71em; /* welcome-list li 18.4px ÷26 */
208
+ font-weight: 600;
209
+ line-height: 1.5; /* .welcome-list li line-height 1.5 */
210
+ color: var(--text-color);
211
+ background: #FFFFFF;
212
+ border-left: 3px solid var(--border-color);
213
+ border-right: 3px solid var(--border-color);
214
+ box-shadow: 6px 6px 0 var(--border-color);
215
+ box-sizing: border-box;
216
+ text-align: left;
217
+ width: 100%;
218
+ max-width: 47.8em; /* 880px ÷18.4 */
219
+ margin: 0 auto;
220
+ padding: 0 2.6em; /* 48px ÷18.4 */
221
+ }
222
+ body.presenting #editor .cm-content .cm-md-slide-section.cm-md-li,
223
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-li {
224
+ padding-block: 0.5em; /* welcome-list gap 18px ÷18.4 */
225
+ margin-block: 0; /* 压掉上游 .cm-md-li 0.45em 上下距,避免 18px 变 29px */
226
+ }
227
+ /* 白面板第一行:上内距 36px ÷18.4。
228
+ :nth-child(1 of S) 数出「首个 li」/「首段导语」;列表存在时由首 li 承担面板上沿留白,
229
+ 只有纯导语页才由导语承担(:has(~ li) 排除)。 */
230
+ body.presenting #editor .cm-content .cm-md-slide-section.cm-md-li:nth-child(1 of .cm-md-slide-section.cm-md-li),
231
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-li:nth-child(1 of .cm-md-slide-section.cm-md-li) {
232
+ padding-top: 1.95em; /* body 上内距 36px ÷18.4 */
233
+ }
234
+ body.presenting #editor .cm-content .cm-md-slide-section.cm-md-page-lead:nth-child(1 of .cm-md-slide-section.cm-md-page-lead):not(:has(~ .cm-md-slide-section.cm-md-li)),
235
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-lead:nth-child(1 of .cm-md-slide-section.cm-md-page-lead):not(:has(~ .cm-md-slide-section.cm-md-li)) {
236
+ padding-top: 1.95em; /* 纯导语页(无列表)时由导语撑面板上沿 */
237
+ }
238
+ body.presenting #editor .cm-content .cm-md-slide-section.cm-md-page-lead:not(:has(~ .cm-md-page-lead)):not(:has(~ .cm-md-slide-section.cm-md-li)),
239
+ body.presenting #editor .cm-content .cm-md-slide-section.cm-md-li:not(:has(~ .cm-md-slide-section.cm-md-li)),
240
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-lead:not(:has(~ .cm-md-page-lead)):not(:has(~ .cm-md-slide-section.cm-md-li)),
241
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-li:not(:has(~ .cm-md-slide-section.cm-md-li)) {
242
+ border-bottom: 3px solid var(--border-color);
243
+ border-bottom-left-radius: 28px;
244
+ border-bottom-right-radius: 28px;
245
+ padding-bottom: 1.95em; /* body 下内距 36px ÷18.4 */
246
+ }
247
+ /* butter 空圆点 20px(li::before 绝对定位 → 行内近似):20px ÷18.4 ≈1.09em,2px 描边,右侧 16px */
248
+ body.presenting #editor .cm-content .cm-md-slide-section.cm-md-li .cm-md-listmark,
249
+ body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-li .cm-md-listmark {
250
+ display: inline-flex;
251
+ align-items: center;
252
+ justify-content: center;
253
+ font-size: 1em;
254
+ width: 1.09em;
255
+ height: 1.09em;
256
+ background: #FDE68A; /* --butter */
257
+ border: 2px solid var(--border-color);
258
+ border-radius: 50%;
259
+ margin-right: 0.87em; /* 16px ÷18.4 */
260
+ vertical-align: -0.1em;
261
+ text-indent: -999em; /* 隐藏原列表标记,只留空圆 */
262
+ overflow: hidden;
263
+ }
264
+
265
+ /* ---- 1.6.4 kpi ← P3 .slide-weekly(turquoise #7ECDC0 换底整链) ---- */
266
+ body.presenting:has(#editor[data-slide-layout='kpi']),
267
+ body.slides-printing:has(.cm-md-slide-kpi) {
268
+ background: #7ECDC0;
269
+ }
270
+ body.presenting #editor[data-slide-layout='kpi'],
271
+ body.presenting #editor[data-slide-layout='kpi'] .cm-editor,
272
+ body.presenting #editor[data-slide-layout='kpi'] .cm-scroller,
273
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content,
274
+ body.slides-printing:has(.cm-md-slide-kpi) #editor,
275
+ body.slides-printing:has(.cm-md-slide-kpi) .cm-editor,
276
+ body.slides-printing:has(.cm-md-slide-kpi) .cm-scroller,
277
+ body.slides-printing:has(.cm-md-slide-kpi) .cm-content {
278
+ background: #7ECDC0;
279
+ }
280
+ /* 页题白字 + 3px 墨影(.slide-weekly h2 text-shadow 3px 3px 0 var(--border));下距 28px ÷48 */
281
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-page-title,
282
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-page-title {
283
+ color: #FFFFFF;
284
+ text-shadow: 3px 3px 0 var(--border-color);
285
+ margin-bottom: 0.58em;
286
+ }
287
+ body.presenting:has(#editor[data-slide-layout='kpi']) .slide-chrome,
288
+ body.slides-printing:has(.cm-md-slide-kpi) .slide-chrome,
289
+ body.presenting:has(#editor[data-slide-layout='kpi']) .slide-foot,
290
+ body.slides-printing:has(.cm-md-slide-kpi) .slide-foot {
291
+ color: #FFFFFF;
292
+ }
293
+ /* .weekly-grid:5 张 208px 日卡 + 14px 间距,整组居中(模板 max-width 1100px) */
294
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content,
295
+ body.slides-printing:has(.cm-md-slide-kpi) .cm-content {
296
+ text-align: center;
297
+ }
298
+ /* .day-card:白卡 3px 描边 20px 圆角 4px 阴影,5 列 */
299
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
300
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
301
+ display: inline-block;
302
+ width: 13.7em; /* .day-card 208px ÷15.2 */
303
+ margin: 0 0.46em 0.92em; /* 卡片间距 14px ÷15.2 */
304
+ vertical-align: top;
305
+ text-align: left;
306
+ font-size: 0.58em; /* .day-body li 15.2px ÷26 */
307
+ font-weight: 600;
308
+ line-height: 1.4; /* .day-body li line-height 1.4 */
309
+ color: var(--text-color);
310
+ background: #FFFFFF;
311
+ border: 3px solid var(--border-color);
312
+ border-radius: 20px;
313
+ box-shadow: 4px 4px 0 var(--border-color);
314
+ padding: 0 1.05em 0.92em; /* .day-body 14px 16px ÷15.2 */
315
+ list-style: none;
316
+ overflow: hidden;
317
+ box-sizing: border-box;
318
+ }
319
+ /* .day-header:17.6px Fredoka、10px 8px、3px 下描边;首卡 pink,其余四色见下方轮换 */
320
+ strong 抵消卡片横向内距后满宽铺色:-1.05em(=16px) / 上 0.57em 左右 0.45em(÷17.6) */
321
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li .cm-md-strong,
322
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li .cm-md-strong {
323
+ display: block;
324
+ margin: 0 -0.91em 0.8em; /* 横向抵消 16px ÷17.6;下 14px ÷17.6 */
325
+ padding: 0.57em 0.45em;
326
+ font-family: var(--slide-title-font);
327
+ font-weight: 400;
328
+ font-size: var(--slide-kpi-number-size);
329
+ line-height: 1.2;
330
+ text-align: center;
331
+ color: var(--text-color);
332
+ background: #F7C8D4; /* --soft-pink */
333
+ border-bottom: 3px solid var(--border-color);
334
+ }
335
+ /* 五色 day-header 轮换:Monday pink / Tuesday mint / Wednesday coral(白字)/ Thursday butter /
336
+ Friday lavender。每张日卡都是同级 .cm-md-slide-kpi.cm-md-li,用 :nth-child(An+B of S)
337
+ 按卡片序号取色(Chrome 111+);旧内核不支持时回落到上一档 soft-pink,不破版。 */
338
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li:nth-child(2 of .cm-md-slide-kpi.cm-md-li) .cm-md-strong,
339
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li:nth-child(2 of .cm-md-slide-kpi.cm-md-li) .cm-md-strong {
340
+ background: #A8E6CF; /* --mint */
341
+ }
342
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li:nth-child(3 of .cm-md-slide-kpi.cm-md-li) .cm-md-strong,
343
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li:nth-child(3 of .cm-md-slide-kpi.cm-md-li) .cm-md-strong {
344
+ background: #F8635F; /* --coral */
345
+ color: #FFFFFF;
346
+ }
347
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li:nth-child(4 of .cm-md-slide-kpi.cm-md-li) .cm-md-strong,
348
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li:nth-child(4 of .cm-md-slide-kpi.cm-md-li) .cm-md-strong {
349
+ background: #FDE68A; /* --butter */
350
+ }
351
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li:nth-child(5 of .cm-md-slide-kpi.cm-md-li) .cm-md-strong,
352
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li:nth-child(5 of .cm-md-slide-kpi.cm-md-li) .cm-md-strong {
353
+ background: #D4A5E8; /* --lavender */
354
+ }
355
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li .cm-md-listmark,
356
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li .cm-md-listmark {
357
+ font-size: 1em;
358
+ color: var(--text-secondary);
359
+ margin-right: 0.3em;
360
+ }
361
+
362
+ /* ---- 1.6.5 agenda ← P4 .slide-timeline(soft-pink #F7C8D4 换底整链) ---- */
363
+ body.presenting:has(#editor[data-slide-layout='agenda']),
364
+ body.slides-printing:has(.cm-md-slide-agenda) {
365
+ background: #F7C8D4;
366
+ }
367
+ body.presenting #editor[data-slide-layout='agenda'],
368
+ body.presenting #editor[data-slide-layout='agenda'] .cm-editor,
369
+ body.presenting #editor[data-slide-layout='agenda'] .cm-scroller,
370
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content,
371
+ body.slides-printing:has(.cm-md-slide-agenda) #editor,
372
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-editor,
373
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-scroller,
374
+ body.slides-printing:has(.cm-md-slide-agenda) .cm-content {
375
+ background: #F7C8D4;
376
+ }
377
+ /* 页题白字 + 3px rgba 墨影(.slide-timeline h2),下距 32px ÷48 */
378
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-page-title,
379
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-page-title {
380
+ color: #FFFFFF;
381
+ text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
382
+ margin-bottom: 0.67em;
383
+ }
384
+ body.presenting:has(#editor[data-slide-layout='agenda']) .slide-chrome,
385
+ body.slides-printing:has(.cm-md-slide-agenda) .slide-chrome,
386
+ body.presenting:has(#editor[data-slide-layout='agenda']) .slide-foot,
387
+ body.slides-printing:has(.cm-md-slide-agenda) .slide-foot {
388
+ color: #FFFFFF;
389
+ }
390
+ /* .timeline-card:白卡 3px 描边 20px 圆角 4px 阴影,内距 16px 24px ÷14.4;行距 18px ÷14.4
391
+ 宽 700px ÷14.4 = 48em(模板圆点在卡外,行内 DOM 无挂点 → 点入卡内,已注明) */
392
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
393
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
394
+ font-size: 0.55em; /* .timeline-card p .9rem → 14.4px ÷26 */
395
+ font-weight: 500;
396
+ line-height: 1.4;
397
+ color: var(--text-secondary);
398
+ background: #FFFFFF;
399
+ border: 3px solid var(--border-color);
400
+ border-radius: 20px;
401
+ box-shadow: 4px 4px 0 var(--border-color);
402
+ padding: 1.11em 1.67em; /* 16px 24px ÷14.4 */
403
+ width: 48em;
404
+ margin: 0 auto 1.25em; /* 18px ÷14.4 */
405
+ box-sizing: border-box;
406
+ }
407
+ /* .timeline-dot:48px 圆(48 ÷14.4 ≈3.33em 卡字号):点内序号 17.6px →1.22em,圆 3.33 ÷1.22 ≈2.73em */
408
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li .cm-md-listmark,
409
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li .cm-md-listmark {
410
+ float: left;
411
+ display: inline-flex;
412
+ align-items: center;
413
+ justify-content: center;
414
+ font-family: var(--slide-title-font);
415
+ font-size: 1.22em;
416
+ width: 2.73em;
417
+ height: 2.73em;
418
+ background: #F8635F; /* --coral */
419
+ color: #FFFFFF;
420
+ border: 3px solid var(--border-color);
421
+ border-radius: 50%;
422
+ margin: 0 1.14em 0 0; /* 20px ÷17.6(点与卡内文字) */
423
+ }
424
+ /* 五色 timeline-dot 轮换(d1 coral / d2 mint / d3 sky / d4 lavender / d5 butter 墨字),
425
+ 用 :nth-child(An+B of S) 按卡序号取色;旧内核回落 coral。 */
426
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(2 of .cm-md-slide-agenda.cm-md-li) .cm-md-listmark,
427
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(2 of .cm-md-slide-agenda.cm-md-li) .cm-md-listmark {
428
+ background: #A8E6CF; /* --mint */
429
+ }
430
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(3 of .cm-md-slide-agenda.cm-md-li) .cm-md-listmark,
431
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(3 of .cm-md-slide-agenda.cm-md-li) .cm-md-listmark {
432
+ background: #A8D8F0; /* --sky */
433
+ }
434
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(4 of .cm-md-slide-agenda.cm-md-li) .cm-md-listmark,
435
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(4 of .cm-md-slide-agenda.cm-md-li) .cm-md-listmark {
436
+ background: #D4A5E8; /* --lavender */
437
+ }
438
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(5 of .cm-md-slide-agenda.cm-md-li) .cm-md-listmark,
439
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li:nth-child(5 of .cm-md-slide-agenda.cm-md-li) .cm-md-listmark {
440
+ background: #FDE68A; /* --butter */
441
+ color: var(--text-color);
442
+ }
443
+ /* .timeline-card h4:17.6px Fredoka,下距 4px ÷17.6 */
444
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li .cm-md-strong,
445
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li .cm-md-strong {
446
+ display: block;
447
+ font-family: var(--slide-title-font);
448
+ font-weight: 400;
449
+ font-size: 1.22em; /* 17.6px ÷14.4 */
450
+ line-height: 1.2;
451
+ color: var(--text-color);
452
+ margin-bottom: 0.23em;
453
+ }
454
+
455
+ /* ---- 1.6.6 figure ← P5 .slide-chart-bar(butter #FDE68A 换底整链) ---- */
456
+ body.presenting:has(#editor[data-slide-layout='figure']),
457
+ body.slides-printing:has(.cm-md-slide-figure) {
458
+ background: #FDE68A;
459
+ }
460
+ body.presenting #editor[data-slide-layout='figure'],
461
+ body.presenting #editor[data-slide-layout='figure'] .cm-editor,
462
+ body.presenting #editor[data-slide-layout='figure'] .cm-scroller,
463
+ body.presenting #editor[data-slide-layout='figure'] .cm-content,
464
+ body.slides-printing:has(.cm-md-slide-figure) #editor,
465
+ body.slides-printing:has(.cm-md-slide-figure) .cm-editor,
466
+ body.slides-printing:has(.cm-md-slide-figure) .cm-scroller,
467
+ body.slides-printing:has(.cm-md-slide-figure) .cm-content {
468
+ background: #FDE68A;
469
+ }
470
+ /* 页题墨色居中(.slide-chart-bar h2 未改色),下距 36px ÷48 */
471
+ body.presenting #editor .cm-content .cm-md-slide-figure.cm-md-page-title,
472
+ body.slides-printing #editor .cm-content .cm-md-slide-figure.cm-md-page-title {
473
+ margin-bottom: 0.75em;
474
+ }
475
+ /* .chart-container:白底 + 3px 墨描边 + 28px 圆角 + 6px 阴影,内距 32px 40px,宽 800px 上限
476
+ 图表页可能是 Pele / Mermaid / 图片,三种载体共用同一张白卡 */
477
+ body.presenting #editor[data-slide-layout='figure'] .cm-content svg.pele,
478
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-mermaid svg,
479
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-image img,
480
+ body.slides-printing #editor .cm-content .cm-md-slide-figure svg.pele,
481
+ body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-mermaid svg,
482
+ body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-image img {
483
+ display: block;
484
+ width: 100%;
485
+ max-width: 800px;
486
+ margin: 0 auto;
487
+ padding: 32px 40px;
488
+ box-sizing: border-box;
489
+ background: #FFFFFF;
490
+ border: 3px solid var(--border-color);
491
+ border-radius: 28px;
492
+ box-shadow: 6px 6px 0 var(--border-color);
493
+ }
494
+ /* 换底页表格:td/th 换白卡面色 */
495
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-table-widget td,
496
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-table-widget th,
497
+ body.slides-printing:has(.cm-md-slide-figure) .cm-md-table-widget td,
498
+ body.slides-printing:has(.cm-md-slide-figure) .cm-md-table-widget th {
499
+ background: #FFFFFF;
500
+ color: var(--text-color);
501
+ }
502
+ /* P5 图例 6 项为绝对排版的独立容器 → 有意未复刻 */
503
+
504
+ /* ---- 1.6.7 matrix ← P6 .slide-cards(cream 默认底) ---- */
505
+ /* 页题墨色居中(.slide-cards h2),下距 32px ÷48 */
506
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-page-title,
507
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-page-title {
508
+ margin-bottom: 0.67em;
509
+ }
510
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content,
511
+ body.slides-printing:has(.cm-md-slide-matrix) .cm-content {
512
+ text-align: center; /* .cards-grid 整体居中 */
513
+ }
514
+ /* .info-card:白卡 3px 描边 20px 圆角 4px 阴影,内距 28px ÷14.1;2 列 388px + 24px 间距(模板 max-width 800px) */
515
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
516
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
517
+ display: inline-block;
518
+ width: 27.5em; /* .info-card 388px ÷14.1 */
519
+ margin: 0 0.85em 1.4em; /* 12px 外侧 ÷14.1(两卡间 24px) */
520
+ vertical-align: top;
521
+ text-align: left;
522
+ font-size: 0.54em; /* .info-card p .88rem → 14.1px ÷26 */
523
+ font-weight: 500;
524
+ line-height: 1.5;
525
+ color: var(--text-secondary);
526
+ background: #FFFFFF;
527
+ border: 3px solid var(--border-color);
528
+ border-radius: 20px;
529
+ box-shadow: 4px 4px 0 var(--border-color);
530
+ padding: 2em 1.9em 1.6em; /* 28px ÷14.1,卡内 gap 10px */
531
+ box-sizing: border-box;
532
+ }
533
+ /* .card-icon:44px 圆(44 ÷14.1 ≈3.12em 卡字号),字母 19.2px →1.36em,圆 3.12 ÷1.36 ≈2.3em
534
+ 四色轮换(i1 soft-pink / i2 mint / i3 sky / i4 lavender)保留,字母隐去(行式 DOM 无图标挂点) */
535
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li .cm-md-listmark,
536
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li .cm-md-listmark {
537
+ display: flex;
538
+ align-items: center;
539
+ justify-content: center;
540
+ font-family: var(--slide-title-font);
541
+ font-size: 1.36em;
542
+ width: 2.3em;
543
+ height: 2.3em;
544
+ background: #F7C8D4; /* --soft-pink */
545
+ color: transparent;
546
+ border: 3px solid var(--border-color);
547
+ border-radius: 50%;
548
+ margin-bottom: 0.5em;
549
+ overflow: hidden;
550
+ }
551
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li:nth-child(2 of .cm-md-slide-matrix.cm-md-li) .cm-md-listmark,
552
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li:nth-child(2 of .cm-md-slide-matrix.cm-md-li) .cm-md-listmark {
553
+ background: #A8E6CF; /* --mint */
554
+ }
555
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li:nth-child(3 of .cm-md-slide-matrix.cm-md-li) .cm-md-listmark,
556
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li:nth-child(3 of .cm-md-slide-matrix.cm-md-li) .cm-md-listmark {
557
+ background: #A8D8F0; /* --sky */
558
+ }
559
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li:nth-child(4 of .cm-md-slide-matrix.cm-md-li) .cm-md-listmark,
560
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li:nth-child(4 of .cm-md-slide-matrix.cm-md-li) .cm-md-listmark {
561
+ background: #D4A5E8; /* --lavender */
562
+ }
563
+ /* .info-card h4:18.4px ÷14.1 = 1.31em */
564
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li .cm-md-strong,
565
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li .cm-md-strong {
566
+ display: block;
567
+ font-family: var(--slide-title-font);
568
+ font-weight: 400;
569
+ font-size: 1.31em;
570
+ line-height: 1.3;
571
+ color: var(--text-color);
572
+ margin-bottom: 0.5em;
573
+ }
574
+
575
+ /* ---- 1.6.8 quote ← P7 .slide-quote(lavender #D4A5E8 换底整链) ---- */
576
+ body.presenting:has(#editor[data-slide-layout='quote']),
577
+ body.slides-printing:has(.cm-md-slide-quote) {
578
+ background: #D4A5E8;
579
+ }
580
+ body.presenting #editor[data-slide-layout='quote'],
581
+ body.presenting #editor[data-slide-layout='quote'] .cm-editor,
582
+ body.presenting #editor[data-slide-layout='quote'] .cm-scroller,
583
+ body.presenting #editor[data-slide-layout='quote'] .cm-content,
584
+ body.slides-printing:has(.cm-md-slide-quote) #editor,
585
+ body.slides-printing:has(.cm-md-slide-quote) .cm-editor,
586
+ body.slides-printing:has(.cm-md-slide-quote) .cm-scroller,
587
+ body.slides-printing:has(.cm-md-slide-quote) .cm-content {
588
+ background: #D4A5E8;
589
+ }
590
+ body.presenting:has(#editor[data-slide-layout='quote']) .slide-chrome,
591
+ body.slides-printing:has(.cm-md-slide-quote) .slide-chrome,
592
+ body.presenting:has(#editor[data-slide-layout='quote']) .slide-foot,
593
+ body.slides-printing:has(.cm-md-slide-quote) .slide-foot {
594
+ color: #FFFFFF;
595
+ }
596
+ /* .quote-box:白底 + 3px 墨描边 + 28px 圆角 + 6px 阴影,750px 宽、内距 48px 56px;
597
+ 逐行画底(相邻行只 margin),首行上圆角/末行下圆角用相邻选择器判别;
598
+ 纵向留白不用 padding(CSS-03),改由首行引号块与末行 ::after 撑出高度 */
599
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-blockquote,
600
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-blockquote {
601
+ font-family: var(--slide-title-font);
602
+ font-size: var(--slide-quote-size); /* .quote-text 32px ÷26 */
603
+ font-weight: 400;
604
+ line-height: 1.35; /* .quote-text line-height 1.35 */
605
+ text-align: center;
606
+ color: var(--text-color);
607
+ background: #FFFFFF;
608
+ border: 3px solid var(--border-color);
609
+ border-radius: 0;
610
+ box-shadow: 6px 6px 0 var(--border-color);
611
+ box-sizing: border-box;
612
+ width: 100%;
613
+ max-width: 750px; /* .quote-box max-width 750px(border-box:内容 632px) */
614
+ margin: 0 auto;
615
+ padding: 0 1.75em; /* 横向 56px ÷32,仅横向(CSS-03) */
616
+ }
617
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-blockquote + .cm-md-slide-quote.cm-md-blockquote,
618
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-blockquote + .cm-md-slide-quote.cm-md-blockquote {
619
+ border-top: none; /* 相邻行消除内部分隔 */
620
+ }
621
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-blockquote:not(.cm-md-slide-quote.cm-md-blockquote + .cm-md-slide-quote.cm-md-blockquote),
622
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-blockquote:not(.cm-md-slide-quote.cm-md-blockquote + .cm-md-slide-quote.cm-md-blockquote) {
623
+ border-top-left-radius: 28px; /* 首行上圆角 */
624
+ border-top-right-radius: 28px;
625
+ }
626
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-blockquote:has(+ .cm-md-slide-quote.cm-md-blockquote),
627
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-blockquote:has(+ .cm-md-slide-quote.cm-md-blockquote) {
628
+ border-bottom: none;
629
+ }
630
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-blockquote:not(:has(+ .cm-md-slide-quote.cm-md-blockquote)),
631
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-blockquote:not(:has(+ .cm-md-slide-quote.cm-md-blockquote)) {
632
+ border-bottom-left-radius: 28px; /* 末行下圆角 */
633
+ border-bottom-right-radius: 28px;
634
+ }
635
+ /* .quote-mark:64px(4rem ÷32 = 2em)soft-pink,独立成块(模板为框内第一行) */
636
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-blockquote:not(.cm-md-slide-quote.cm-md-blockquote + .cm-md-slide-quote.cm-md-blockquote)::before,
637
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-blockquote:not(.cm-md-slide-quote.cm-md-blockquote + .cm-md-slide-quote.cm-md-blockquote)::before {
638
+ content: "\201C";
639
+ display: block;
640
+ font-family: var(--slide-title-font);
641
+ font-size: 2em;
642
+ line-height: 1;
643
+ color: #F7C8D4; /* --soft-pink */
644
+ margin-bottom: 0.125em; /* 8px ÷64 */
645
+ }
646
+ /* 框底留白 48px ÷32 = 1.5em(末行空块,替代纵向 padding) */
647
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-blockquote:not(:has(+ .cm-md-slide-quote.cm-md-blockquote))::after,
648
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-blockquote:not(:has(+ .cm-md-slide-quote.cm-md-blockquote))::after {
649
+ content: "";
650
+ display: block;
651
+ height: 1.5em;
652
+ }
653
+ /* .quote-author:16px Quicksand 700 muted(模板在框内,行式 DOM 只有下一行可挂) */
654
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-blockquote + .cm-line,
655
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-blockquote + .cm-line {
656
+ font-family: var(--font-body);
657
+ font-weight: 700;
658
+ font-size: 0.62em; /* 16px ÷26 */
659
+ letter-spacing: 0.02em;
660
+ color: var(--text-secondary);
661
+ text-align: center;
662
+ margin-top: 1.2em;
663
+ }
664
+
665
+ /* ---- 1.6.9 steps ← P8 .slide-team(mint #A8E6CF 换底整链) ---- */
666
+ body.presenting:has(#editor[data-slide-layout='steps']),
667
+ body.slides-printing:has(.cm-md-slide-steps) {
668
+ background: #A8E6CF;
669
+ }
670
+ body.presenting #editor[data-slide-layout='steps'],
671
+ body.presenting #editor[data-slide-layout='steps'] .cm-editor,
672
+ body.presenting #editor[data-slide-layout='steps'] .cm-scroller,
673
+ body.presenting #editor[data-slide-layout='steps'] .cm-content,
674
+ body.slides-printing:has(.cm-md-slide-steps) #editor,
675
+ body.slides-printing:has(.cm-md-slide-steps) .cm-editor,
676
+ body.slides-printing:has(.cm-md-slide-steps) .cm-scroller,
677
+ body.slides-printing:has(.cm-md-slide-steps) .cm-content {
678
+ background: #A8E6CF;
679
+ }
680
+ /* 页题白字 + 3px rgba(.15) 墨影(.slide-team h2),下距 36px ÷48 */
681
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-page-title,
682
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-page-title {
683
+ color: #FFFFFF;
684
+ text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15);
685
+ margin-bottom: 0.75em;
686
+ }
687
+ body.presenting:has(#editor[data-slide-layout='steps']) .slide-chrome,
688
+ body.slides-printing:has(.cm-md-slide-steps) .slide-chrome,
689
+ body.presenting:has(#editor[data-slide-layout='steps']) .slide-foot,
690
+ body.slides-printing:has(.cm-md-slide-steps) .slide-foot {
691
+ color: #FFFFFF;
692
+ }
693
+ /* .team-grid:4 列 204px + 28px 间距,整组居中(模板 max-width 900px) */
694
+ body.presenting #editor[data-slide-layout='steps'] .cm-content,
695
+ body.slides-printing:has(.cm-md-slide-steps) .cm-content {
696
+ text-align: center;
697
+ }
698
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
699
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
700
+ display: inline-block;
701
+ width: 15.9em; /* .team-member 204px ÷12.8 */
702
+ margin: 0 1.1em 1em; /* 14px 外侧 ÷12.8(成员间 28px) */
703
+ vertical-align: top;
704
+ text-align: center;
705
+ font-size: 0.49em; /* .team-role .8rem → 12.8px ÷26 */
706
+ font-weight: 600;
707
+ line-height: 1.4;
708
+ color: var(--text-secondary);
709
+ }
710
+ /* .team-avatar:100px 白圆(100 ÷12.8 = 7.81em)、3px 墨描边、4px 阴影
711
+ 人物 SVG 未复刻(行内无挂点),圆框与位置保留,原列表标记隐去 */
712
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li .cm-md-listmark,
713
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li .cm-md-listmark {
714
+ display: flex;
715
+ align-items: center;
716
+ justify-content: center;
717
+ font-size: 1em;
718
+ width: 7.81em;
719
+ height: 7.81em;
720
+ margin: 0 auto 0.94em; /* 12px ÷12.8 */
721
+ background: #FFFFFF;
722
+ color: transparent;
723
+ border: 3px solid var(--border-color);
724
+ border-radius: 50%;
725
+ box-shadow: 4px 4px 0 var(--border-color);
726
+ overflow: hidden;
727
+ }
728
+ /* .team-name:16px Fredoka ÷12.8 = 1.25em,下距 12px ÷16 = 0.75em */
729
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li .cm-md-strong,
730
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li .cm-md-strong {
731
+ display: block;
732
+ font-family: var(--slide-title-font);
733
+ font-weight: 400;
734
+ font-size: 1.25em;
735
+ line-height: 1.3;
736
+ color: var(--text-color);
737
+ margin-bottom: 0.75em;
738
+ }
739
+
740
+ /* ---- 1.6.10 timeline ← P9 .slide-process(peach #FFCBA4 换底整链) ---- */
741
+ body.presenting:has(#editor[data-slide-layout='timeline']),
742
+ body.slides-printing:has(.cm-md-slide-timeline) {
743
+ background: #FFCBA4;
744
+ }
745
+ body.presenting #editor[data-slide-layout='timeline'],
746
+ body.presenting #editor[data-slide-layout='timeline'] .cm-editor,
747
+ body.presenting #editor[data-slide-layout='timeline'] .cm-scroller,
748
+ body.presenting #editor[data-slide-layout='timeline'] .cm-content,
749
+ body.slides-printing:has(.cm-md-slide-timeline) #editor,
750
+ body.slides-printing:has(.cm-md-slide-timeline) .cm-editor,
751
+ body.slides-printing:has(.cm-md-slide-timeline) .cm-scroller,
752
+ body.slides-printing:has(.cm-md-slide-timeline) .cm-content {
753
+ background: #FFCBA4;
754
+ }
755
+ /* 页题墨色居中(.slide-process h2 未改色),下距 40px ÷48 */
756
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-page-title,
757
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-page-title {
758
+ margin-bottom: 0.83em;
759
+ }
760
+ /* .process-flow:3 列 240px + 16px 间距,整组居中(模板 max-width 900px) */
761
+ body.presenting #editor[data-slide-layout='timeline'] .cm-content,
762
+ body.slides-printing:has(.cm-md-slide-timeline) .cm-content {
763
+ text-align: center;
764
+ }
765
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li,
766
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
767
+ display: inline-block;
768
+ width: 17.6em; /* .process-step 240px ÷13.6 */
769
+ margin: 0 0.6em 1em; /* 8px 外侧 ÷13.6(相邻步 16px) */
770
+ vertical-align: top;
771
+ text-align: center;
772
+ font-size: 0.52em; /* .step-desc .85rem → 13.6px ÷26 */
773
+ font-weight: 600;
774
+ line-height: 1.45; /* .step-desc line-height 1.45 */
775
+ color: var(--text-secondary);
776
+ }
777
+ /* .step-circle:90px(90 ÷13.6 ≈6.6em 卡字号),序号 32px →2.35em,圆 6.6 ÷2.35 ≈2.8em
778
+ 三色轮换(s1 coral / s2 turquoise / s3 lavender)保留;步间箭头 → 有意未复刻 */
779
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li .cm-md-listmark,
780
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li .cm-md-listmark {
781
+ display: flex;
782
+ align-items: center;
783
+ justify-content: center;
784
+ font-family: var(--slide-title-font);
785
+ font-size: 2.35em;
786
+ width: 2.8em;
787
+ height: 2.8em;
788
+ margin: 0 auto 0.44em; /* 14px ÷32 */
789
+ background: #F8635F; /* --coral */
790
+ color: #FFFFFF;
791
+ border: 3px solid var(--border-color);
792
+ border-radius: 50%;
793
+ box-shadow: 4px 4px 0 var(--border-color);
794
+ }
795
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li:nth-child(2 of .cm-md-slide-timeline.cm-md-li) .cm-md-listmark,
796
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li:nth-child(2 of .cm-md-slide-timeline.cm-md-li) .cm-md-listmark {
797
+ background: #7ECDC0; /* --turquoise */
798
+ }
799
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li:nth-child(3 of .cm-md-slide-timeline.cm-md-li) .cm-md-listmark,
800
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li:nth-child(3 of .cm-md-slide-timeline.cm-md-li) .cm-md-listmark {
801
+ background: #D4A5E8; /* --lavender */
802
+ }
803
+ /* .step-title:17.6px ÷13.6 = 1.29em,下距 14px ÷17.6 = 0.8em */
804
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li .cm-md-strong,
805
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li .cm-md-strong {
806
+ display: block;
807
+ font-family: var(--slide-title-font);
808
+ font-weight: 400;
809
+ font-size: 1.29em;
810
+ line-height: 1.2;
811
+ color: var(--text-color);
812
+ margin-bottom: 0.8em;
813
+ }
814
+ /* .step-desc(200px 上限)无独立包裹元素,说明文字按 240px 列宽折行 → 近似(已注明) */
815
+
816
+ /* ---- 1.6.11 closing ← P1(cream 默认底,按收页语义居中收束) ---- */
817
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-page-title,
818
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-page-title {
819
+ font-size: var(--slide-closing-title-size); /* 与 cover 同源 104px ÷26 */
820
+ line-height: var(--slide-cover-title-line-height);
821
+ margin-bottom: 0.12em; /* P1 h1 下距 12px ÷104 */
822
+ }
823
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-page-lead,
824
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-page-lead {
825
+ font-family: var(--font-body);
826
+ font-weight: 600;
827
+ font-size: var(--slide-lead-size); /* P1 subtitle 22.4px ÷26 */
828
+ line-height: 1.6;
829
+ color: var(--text-secondary);
830
+ text-align: center;
831
+ margin: 0.18em auto 0; /* 同 cover:h1 12px + subtitle 16px,补 4px ÷22.4 */
832
+ }
833
+ /* 收页行动清单:模板 P1 无列表,按 P1 声部做居中淡化行(上游 closing 的 ▸ 前缀不复刻) */
834
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
835
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
836
+ font-size: 0.71em;
837
+ font-weight: 600;
838
+ line-height: 1.8;
839
+ color: var(--text-secondary);
840
+ text-align: center;
841
+ }
842
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li .cm-md-listmark,
843
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li .cm-md-listmark {
844
+ display: none;
845
+ }
846
+
847
+ /* ---- 1.6.12 默认文章页 ← P6(cream 默认底;未声明版式的页走上游默认排版) ---- */
848
+ /* P6 正文 clamp(.95rem,1.3vw,1.15rem) → 18.4px、行高 1.6;页题 48px 居中由 1.6.1 承担。
849
+ 本组同时作为各版式 li / 导语的基准字号,版式页用复合选择器(1,2,2)覆盖(1,2,1)。 */
850
+ body.presenting #editor .cm-content .cm-md-page-lead,
851
+ body.presenting #editor .cm-content .cm-md-li,
852
+ body.slides-printing #editor .cm-content .cm-md-page-lead,
853
+ body.slides-printing #editor .cm-content .cm-md-li {
854
+ font-size: 0.71em; /* 18.4px ÷26 */
855
+ line-height: 1.6; /* 模板 p line-height 1.6 */
856
+ color: var(--text-color);
857
+ }
858
+
859
+ /* ---- 1.6.13 chrome(.slide-counter:白胶囊 3px 描边 4px 阴影,Fredoka 12.8px) ---- */
860
+ body.presenting .slide-chrome,
861
+ body.slides-printing .slide-chrome {
862
+ font-family: var(--slide-title-font);
863
+ font-size: clamp(11px, 0.67vw, 13px); /* .slide-counter .8rem → 12.8px @1920 */
864
+ font-weight: 400;
865
+ letter-spacing: 0.02em;
866
+ text-transform: none;
867
+ color: var(--text-color);
868
+ }
869
+ body.presenting .slide-foot,
870
+ body.slides-printing .slide-foot {
871
+ font-family: var(--font-body);
872
+ font-size: clamp(10px, 0.6vw, 12px);
873
+ color: var(--text-secondary);
874
+ }
875
+ body.presenting .slide-foot-num,
876
+ body.slides-printing .slide-foot-num {
877
+ font-family: var(--slide-title-font);
878
+ font-size: clamp(11px, 0.67vw, 13px);
879
+ letter-spacing: 0.02em;
880
+ color: var(--text-color);
881
+ background: #FFFFFF;
882
+ border: 3px solid var(--border-color);
883
+ border-radius: 50px;
884
+ padding: 3px 14px;
885
+ box-shadow: 4px 4px 0 var(--border-color);
886
+ opacity: 1;
887
+ }
888
+ body.presenting .slide-foot-brand,
889
+ body.slides-printing .slide-foot-brand {
890
+ font-family: var(--slide-title-font);
891
+ font-weight: 400;
892
+ letter-spacing: 0.02em;
893
+ text-transform: none;
894
+ color: var(--text-secondary);
895
+ }
896
+ /* 模板没有幽灵页码(只有底部胶囊),统一压掉 */
897
+ body.presenting .slide-ghost,
898
+ body.slides-printing .slide-ghost {
899
+ opacity: 0;
900
+ }
901
+
902
+ /* ---- 1.6.14 页面垂直居中(模板 .slide:flex column + justify-content:center,每页都居中) ----
903
+ 上游只给 cover/section/closing/two-col 做整页 flex 居中,其余版式贴顶。
904
+ ① 多列卡片页(kpi/matrix/steps/timeline):卡片靠 inline-block 并排,不能把 .cm-content
905
+ 改成 flex column(那会把每张卡拆成单独一行)。这里用 flex-wrap 行容器:非卡片行
906
+ flex-basis:100% 独占一行,卡片 flex:0 0 auto 保持原宽并排,align-content 居中整块。
907
+ ② 单列页(agenda/figure/quote):直接 flex column + justify-content 居中。
908
+ 只作用于 body.presenting(导出保持上游文档式排版);safe center 让内容超高时退回顶端。 */
909
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content > .cm-md-slide-directive,
910
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content > .cm-md-slide-directive,
911
+ body.presenting #editor[data-slide-layout='figure'] .cm-content > .cm-md-slide-directive,
912
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content > .cm-md-slide-directive,
913
+ body.presenting #editor[data-slide-layout='quote'] .cm-content > .cm-md-slide-directive,
914
+ body.presenting #editor[data-slide-layout='steps'] .cm-content > .cm-md-slide-directive,
915
+ body.presenting #editor[data-slide-layout='timeline'] .cm-content > .cm-md-slide-directive {
916
+ display: none; /* 页头指令行不再撑 34px 顶距(上游对 cover 等同样处理) */
917
+ }
918
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content > .cm-md-page-start,
919
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content > .cm-md-page-start,
920
+ body.presenting #editor[data-slide-layout='figure'] .cm-content > .cm-md-page-start,
921
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content > .cm-md-page-start,
922
+ body.presenting #editor[data-slide-layout='quote'] .cm-content > .cm-md-page-start,
923
+ body.presenting #editor[data-slide-layout='steps'] .cm-content > .cm-md-page-start,
924
+ body.presenting #editor[data-slide-layout='timeline'] .cm-content > .cm-md-page-start {
925
+ padding-top: 0; /* 居中排版不再叠加页面顶距 */
926
+ }
927
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content,
928
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content,
929
+ body.presenting #editor[data-slide-layout='steps'] .cm-content,
930
+ body.presenting #editor[data-slide-layout='timeline'] .cm-content {
931
+ display: flex;
932
+ flex-wrap: wrap;
933
+ justify-content: center;
934
+ align-content: safe center;
935
+ min-height: 92vh;
936
+ }
937
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content > .cm-line,
938
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content > .cm-line,
939
+ body.presenting #editor[data-slide-layout='steps'] .cm-content > .cm-line,
940
+ body.presenting #editor[data-slide-layout='timeline'] .cm-content > .cm-line {
941
+ flex: 0 0 100%; /* 标题/导语/空行整行占位 */
942
+ }
943
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content > .cm-md-slide-kpi.cm-md-li,
944
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content > .cm-md-slide-matrix.cm-md-li,
945
+ body.presenting #editor[data-slide-layout='steps'] .cm-content > .cm-md-slide-steps.cm-md-li,
946
+ body.presenting #editor[data-slide-layout='timeline'] .cm-content > .cm-md-slide-timeline.cm-md-li {
947
+ flex: 0 0 auto; /* 卡片保持 13.7em/27.5em/15.9em/17.6em 原宽并排 */
948
+ }
949
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content,
950
+ body.presenting #editor[data-slide-layout='figure'] .cm-content,
951
+ body.presenting #editor[data-slide-layout='quote'] .cm-content {
952
+ display: flex;
953
+ flex-direction: column;
954
+ justify-content: safe center;
955
+ min-height: 92vh;
956
+ }
957
+
958
+ /* ============================================================
959
+ * SECTION 2 · 编辑器 DOM(#editor .cm-content / .cm-md-*)
960
+ * ============================================================ */
961
+ #editor .cm-content {
962
+ font-family: var(--font-body);
963
+ font-size: var(--editor-font-size);
964
+ line-height: 1.6; /* 模板 p line-height 1.6 */
965
+ color: var(--text-color);
966
+ }
967
+ /* ---- 标题:Fredoka One 400 · 0.02em · 无下划线(模板 h1-h4 均 400) ---- */
968
+ #editor .cm-content .cm-md-atxheading1 { font-family: var(--slide-title-font); font-weight: 400; font-size: 3em; line-height: 1.1; letter-spacing: 0.02em; color: var(--text-color); border-bottom: none; padding-bottom: 0; }
969
+ #editor .cm-content .cm-md-atxheading2 { font-family: var(--slide-title-font); font-weight: 400; font-size: 2.3em; line-height: 1.15; letter-spacing: 0.02em; color: var(--text-color); border-bottom: none; padding-bottom: 0; }
970
+ #editor .cm-content .cm-md-atxheading3 { font-family: var(--slide-title-font); font-weight: 400; font-size: 1.6em; line-height: 1.2; letter-spacing: 0.02em; color: var(--text-color); }
971
+ #editor .cm-content .cm-md-atxheading4 { font-family: var(--slide-title-font); font-weight: 400; font-size: 1.2em; line-height: 1.3; letter-spacing: 0.02em; color: var(--text-color); }
972
+ #editor .cm-content .cm-md-atxheading5 { font-weight: 600; font-size: 1.05em; color: var(--text-color); }
973
+ #editor .cm-content .cm-md-atxheading6 { font-weight: 700; font-size: 0.95em; letter-spacing: 0.02em; color: var(--text-secondary); }
974
+ /* ---- 行内:strong 永远正文色 ---- */
975
+ #editor .cm-content .cm-md-strong { font-weight: 700; color: var(--text-color); }
976
+ #editor .cm-content .cm-md-em { font-style: italic; }
977
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; }
978
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); color: var(--text-color); border-radius: 4px; padding: 0 2px; }
979
+ #editor .cm-content .cm-md-inlinecode { font-family: var(--font-mono); font-size: 0.9em; background: var(--code-bg); color: var(--code-block-text); border-radius: 8px; padding: 1px 6px; }
980
+ #editor .cm-content .cm-md-link { color: var(--link-color); }
981
+ #editor .cm-content .cm-md-url { color: var(--text-muted); }
982
+ #editor .cm-content .cm-md-marker { color: var(--text-muted); }
983
+ /* ---- 块级:引用 3px 珊瑚轨 + 面板底(无纵向 padding);代码块 alt 纸底 ---- */
984
+ #editor .cm-content .cm-md-blockquote { color: var(--text-secondary); border-left: 3px solid var(--blockquote-border); padding-left: 16px; padding-right: 16px; }
985
+ #editor .cm-content .cm-md-codeblock { background: var(--code-block-bg); color: var(--code-block-text); padding-left: 16px; padding-right: 16px; }
986
+ #editor .cm-content .cm-md-codeblock.cm-md-codeblock-first { border-radius: 20px 20px 0 0; }
987
+ #editor .cm-content .cm-md-codeblock.cm-md-codeblock-last { border-radius: 0 0 20px 20px; }
988
+ #editor .cm-content .cm-md-codeblock.cm-md-codeblock-first.cm-md-codeblock-last { border-radius: 20px; }
989
+ /* ---- 表格:墨描边 + butter 表头 ---- */
990
+ #editor .cm-content .cm-md-table-widget th,
991
+ #editor .cm-content .cm-md-table-widget td { padding: 10px 14px; border-color: var(--border-color); }
992
+ #editor .cm-content .cm-md-table-widget th { background: var(--table-header-bg); color: var(--text-color); font-weight: 600; border-bottom: 3px solid var(--border-color); }
993
+ /* ---- 其他 ---- */
994
+ #editor .cm-content .cm-md-hr { border-color: var(--border-color); }
995
+ #editor .cm-content svg.pele { background: var(--pele-bg); }
996
+ #editor .cm-content .cm-line { text-indent: 2em; }
997
+ #editor .cm-content .cm-md-atxheading1.cm-line,
998
+ #editor .cm-content .cm-md-atxheading2.cm-line,
999
+ #editor .cm-content .cm-md-atxheading3.cm-line,
1000
+ #editor .cm-content .cm-md-atxheading4.cm-line,
1001
+ #editor .cm-content .cm-md-atxheading5.cm-line,
1002
+ #editor .cm-content .cm-md-atxheading6.cm-line,
1003
+ #editor .cm-content .cm-md-blockquote.cm-line,
1004
+ #editor .cm-content .cm-md-codeblock.cm-line,
1005
+ #editor .cm-content .cm-md-li-0.cm-line,
1006
+ #editor .cm-content .cm-md-li-1.cm-line,
1007
+ #editor .cm-content .cm-md-li-2.cm-line,
1008
+ #editor .cm-content .cm-md-li-3.cm-line,
1009
+ #editor .cm-content .cm-md-li-4.cm-line,
1010
+ #editor .cm-content .cm-md-li-5.cm-line,
1011
+ #editor .cm-content .cm-md-li-6.cm-line,
1012
+ #editor .cm-content .cm-md-hr.cm-line { text-indent: 0; }
1013
+
1014
+ /* ============================================================
1015
+ * SECTION 3 · 导出 HTML(.colamd-document 语义标签镜像,与 SECTION 2 同步修改)
1016
+ * ============================================================ */
1017
+ .colamd-document {
1018
+ font-family: var(--font-body);
1019
+ font-size: 16px;
1020
+ line-height: 1.6;
1021
+ color: var(--text-color);
1022
+ background: var(--bg-color);
1023
+ }
1024
+ .colamd-document h1 { font-family: var(--slide-title-font); font-weight: 400; font-size: 3em; line-height: 1.1; letter-spacing: 0.02em; color: var(--text-color); border-bottom: none; padding-bottom: 0; }
1025
+ .colamd-document h2 { font-family: var(--slide-title-font); font-weight: 400; font-size: 2.3em; line-height: 1.15; letter-spacing: 0.02em; color: var(--text-color); border-bottom: none; padding-bottom: 0; }
1026
+ .colamd-document h3 { font-family: var(--slide-title-font); font-weight: 400; font-size: 1.6em; line-height: 1.2; letter-spacing: 0.02em; color: var(--text-color); }
1027
+ .colamd-document h4 { font-family: var(--slide-title-font); font-weight: 400; font-size: 1.2em; line-height: 1.3; letter-spacing: 0.02em; color: var(--text-color); }
1028
+ .colamd-document h5 { font-weight: 600; font-size: 1.05em; color: var(--text-color); }
1029
+ .colamd-document h6 { font-weight: 700; font-size: 0.95em; letter-spacing: 0.02em; color: var(--text-secondary); }
1030
+ .colamd-document strong { font-weight: 700; color: var(--text-color); }
1031
+ .colamd-document em { font-style: italic; }
1032
+ .colamd-document del { text-decoration: line-through; }
1033
+ .colamd-document mark { background: var(--highlight-bg); color: var(--text-color); border-radius: 4px; padding: 0 2px; }
1034
+ .colamd-document code { font-family: var(--font-mono); font-size: 0.9em; background: var(--code-bg); color: var(--code-block-text); border-radius: 8px; padding: 1px 6px; }
1035
+ .colamd-document a { color: var(--link-color); }
1036
+ .colamd-document blockquote { color: var(--text-secondary); background: var(--blockquote-bg); border-left: 3px solid var(--blockquote-border); padding: 0 16px; margin: 1em 0; }
1037
+ .colamd-document pre { background: var(--code-block-bg); color: var(--code-block-text); border-radius: 20px; padding: 16px; }
1038
+ .colamd-document pre code { background: transparent; color: inherit; border-radius: 0; padding: 0; }
1039
+ .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
1040
+ .colamd-document table { border-collapse: collapse; }
1041
+ .colamd-document th,
1042
+ .colamd-document td { padding: 10px 14px; border: 2px solid var(--border-color); }
1043
+ .colamd-document th { background: var(--table-header-bg); color: var(--text-color); font-weight: 600; border-bottom: 3px solid var(--border-color); }
1044
+ .colamd-document hr { border-color: var(--border-color); }
1045
+
1046
+ /* ============================================================
1047
+ * SECTION 4 · 打印(@media print,仅允许 print-color-adjust 用 !important)
1048
+ * ============================================================ */
1049
+ @media print {
1050
+ body { print-color-adjust: exact !important; -webkit-print-color-adjust: exact !important; }
1051
+ .colamd-document { background: var(--bg-color); color: var(--text-color); }
1052
+ }