dsh-design-studio 0.20.0 → 0.22.0

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.
@@ -0,0 +1,132 @@
1
+ /* DSH 桌面端外框(照 DSH 0.2.2 网页版 1280×800 量的)。原样复制、原样引用,别改这个文件——体检会报「外框被改动」。
2
+ 插件只写在 data-slot 里面;插件里想跟 DSH 一个样子,就用下面这些 --dsh-* 变量。
3
+ 深色:<html data-theme="dark">。 */
4
+ :root {
5
+ --dsh-bg: #ffffff; /* 主区底色 */
6
+ --dsh-side: #f9fafb; /* 左侧栏底色 */
7
+ --dsh-card: #ffffff; /* 卡片 / 弹窗底色 */
8
+ --dsh-fg: #0f1115; /* 正文 */
9
+ --dsh-muted: #81858c; /* 次要字 */
10
+ --dsh-line: rgba(0, 0, 0, 0.12);
11
+ --dsh-hover: #ebeef2; /* 选中行 / 悬停 */
12
+ --dsh-accent: #4176e6; /* 选中标签、链接 */
13
+ --dsh-btn: #0f1115; /* 主按钮(黑底白字) */
14
+ --dsh-btn-fg: #ffffff;
15
+ --dsh-folder: #4176e6;
16
+ --dsh-scrim: rgba(15, 17, 21, 0.24);
17
+ --dsh-radius-sm: 8px;
18
+ --dsh-radius-md: 12px;
19
+ --dsh-radius-lg: 16px;
20
+ --dsh-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
21
+ --dsh-font-brand: "Montserrat", var(--dsh-font);
22
+ --dsh-font-code: "SF Mono", "JetBrains Mono", "Fira Code", Consolas, Menlo, monospace;
23
+ }
24
+ [data-theme="dark"] {
25
+ --dsh-bg: #151517;
26
+ --dsh-side: #1b1b1c;
27
+ --dsh-card: #1f1f22;
28
+ --dsh-fg: #f9fafb;
29
+ --dsh-muted: #adb2b8;
30
+ --dsh-line: rgba(255, 255, 255, 0.16);
31
+ --dsh-hover: #2c2c2f;
32
+ --dsh-accent: #7aaaff;
33
+ --dsh-btn: #f9fafb;
34
+ --dsh-btn-fg: #0f1115;
35
+ --dsh-folder: #7aaaff;
36
+ --dsh-scrim: rgba(0, 0, 0, 0.56);
37
+ color-scheme: dark;
38
+ }
39
+ html, body { margin: 0; padding: 0; background: var(--dsh-bg); }
40
+
41
+ /* ── 整个窗口 ── */
42
+ .dsh-app {
43
+ position: relative; display: flex; width: 1280px; height: 800px; overflow: hidden; box-sizing: border-box;
44
+ background: var(--dsh-bg); color: var(--dsh-fg); font: 400 14px/1.5 var(--dsh-font); text-align: left; letter-spacing: 0;
45
+ }
46
+ .dsh-app .dsh-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
47
+
48
+ /* ── 左侧栏 ── */
49
+ .dsh-app .dsh-side {
50
+ position: relative; flex: none; width: 280px; height: 800px; box-sizing: border-box; padding: 0 8px;
51
+ background: var(--dsh-side); border-right: 1px solid var(--dsh-line); display: flex; flex-direction: column;
52
+ }
53
+ .dsh-app .dsh-brand { height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; box-sizing: border-box; }
54
+ .dsh-app .dsh-logo { display: flex; align-items: center; gap: 8px; font: 700 21px/1 var(--dsh-font-brand); letter-spacing: -0.02em; color: var(--dsh-fg); }
55
+ .dsh-app .dsh-logo-tag { font: 700 10px/1 var(--dsh-font); letter-spacing: 0.06em; padding: 3px 5px; border-radius: 3px; background: var(--dsh-fg); color: var(--dsh-side); }
56
+ .dsh-app .dsh-iconbtn { width: 28px; height: 28px; border-radius: var(--dsh-radius-sm); display: flex; align-items: center; justify-content: center; color: var(--dsh-muted); box-sizing: border-box; }
57
+ .dsh-app .dsh-iconbtn.on { background: var(--dsh-hover); color: var(--dsh-fg); }
58
+ .dsh-app .dsh-new {
59
+ margin: 0 4px; height: 38px; box-sizing: border-box; border: 1px solid var(--dsh-line); border-radius: var(--dsh-radius-md);
60
+ display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 500; background: var(--dsh-bg); color: var(--dsh-fg);
61
+ }
62
+ [data-theme="dark"] .dsh-app .dsh-new { background: #3a3a3e; }
63
+ .dsh-app .dsh-nav { margin-top: 10px; display: flex; flex-direction: column; }
64
+ .dsh-app .dsh-row {
65
+ height: 38px; box-sizing: border-box; padding: 0 12px; border-radius: var(--dsh-radius-md); display: flex; align-items: center; gap: 8px;
66
+ font-size: 15px; color: var(--dsh-fg); white-space: nowrap; overflow: hidden;
67
+ }
68
+ .dsh-app .dsh-row.on { background: var(--dsh-hover); }
69
+ .dsh-app .dsh-sec { margin-top: 10px; height: 36px; padding: 0 4px 0 12px; display: flex; align-items: center; justify-content: space-between; color: var(--dsh-muted); font-size: 15px; }
70
+ .dsh-app .dsh-sec-acts { display: flex; gap: 4px; }
71
+ .dsh-app .dsh-folder { color: var(--dsh-folder); }
72
+ .dsh-app .dsh-sess { height: 34px; padding: 0 12px 0 34px; border-radius: var(--dsh-radius-md); display: flex; align-items: center; justify-content: space-between; font-size: 15px; color: var(--dsh-fg); white-space: nowrap; }
73
+ .dsh-app .dsh-sess.on { background: var(--dsh-hover); }
74
+ .dsh-app .dsh-time { font-size: 12px; color: var(--dsh-muted); }
75
+ .dsh-app .dsh-acct { margin-top: auto; height: 48px; padding: 0 8px; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--dsh-fg); }
76
+ .dsh-app .dsh-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--dsh-hover); color: var(--dsh-muted); display: flex; align-items: center; justify-content: center; font-size: 12px; }
77
+
78
+ /* ── 主区 ── */
79
+ .dsh-app .dsh-main { position: relative; flex: 1 1 auto; min-width: 0; height: 800px; display: flex; flex-direction: column; background: var(--dsh-bg); }
80
+ .dsh-app .dsh-bar { flex: none; height: 40px; position: relative; }
81
+ .dsh-app .dsh-corner { position: absolute; top: 6px; right: 12px; }
82
+ /* 会话顶栏:标题一行 + 标签一行 */
83
+ .dsh-app .dsh-head { flex: none; height: 76px; box-sizing: border-box; border-bottom: 1px solid var(--dsh-line); position: relative; padding: 0 20px; }
84
+ .dsh-app .dsh-crumbs { position: absolute; top: 11px; left: 20px; height: 28px; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; white-space: nowrap; }
85
+ .dsh-app .dsh-mode { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 400; color: var(--dsh-muted); }
86
+ .dsh-app .dsh-utils { position: absolute; top: 11px; right: 48px; height: 28px; display: flex; align-items: center; gap: 4px; }
87
+ .dsh-app .dsh-split { height: 28px; display: flex; align-items: center; border-radius: var(--dsh-radius-sm); background: var(--dsh-accent); color: #fff; font-size: 13px; padding: 0 8px; gap: 4px; }
88
+ .dsh-app .dsh-tabs { position: absolute; left: 18px; bottom: 0; height: 35px; display: flex; gap: 12px; }
89
+ .dsh-app .dsh-tab { height: 35px; padding: 0 8px; box-sizing: border-box; display: flex; align-items: center; font-size: 13px; font-weight: 500; color: var(--dsh-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
90
+ .dsh-app .dsh-tab.on { color: var(--dsh-accent); border-bottom-color: var(--dsh-accent); }
91
+ /* 会话正文(占位) */
92
+ .dsh-app .dsh-chat { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; padding: 28px 24px 0; box-sizing: border-box; gap: 16px; overflow: hidden; }
93
+ .dsh-app .dsh-msg-me { align-self: flex-end; max-width: 70%; padding: 8px 14px; border-radius: var(--dsh-radius-lg); background: var(--dsh-hover); font-size: 14px; }
94
+ .dsh-app .dsh-msg-ai { align-self: stretch; font-size: 14px; color: var(--dsh-fg); }
95
+ .dsh-app .dsh-msg-ai p { margin: 0 0 8px; }
96
+ .dsh-app .dsh-composer {
97
+ flex: none; margin: 0 24px 20px; height: 112px; box-sizing: border-box; border: 1px solid var(--dsh-line); border-radius: 20px; background: var(--dsh-card);
98
+ display: flex; flex-direction: column; justify-content: space-between; padding: 14px 12px 10px 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
99
+ }
100
+ .dsh-app .dsh-ph { font-size: 14px; color: var(--dsh-muted); }
101
+ .dsh-app .dsh-cbar { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--dsh-muted); }
102
+ .dsh-app .dsh-cl, .dsh-app .dsh-cr { display: flex; align-items: center; gap: 12px; }
103
+ .dsh-app .dsh-send { width: 32px; height: 32px; border-radius: 50%; background: var(--dsh-accent); opacity: 0.5; color: #fff; display: flex; align-items: center; justify-content: center; }
104
+
105
+ /* ── 右侧栏 ── */
106
+ .dsh-app .dsh-right { flex: none; width: 575px; height: 800px; box-sizing: border-box; border-left: 1px solid var(--dsh-line); display: flex; flex-direction: column; background: var(--dsh-bg); }
107
+ .dsh-app .dsh-rtabs { flex: none; height: 38px; display: flex; align-items: flex-end; padding: 0 10px; gap: 4px; border-bottom: 1px solid var(--dsh-line); }
108
+ .dsh-app .dsh-rtab { height: 28px; max-width: 160px; box-sizing: border-box; padding: 0 10px; border-radius: var(--dsh-radius-sm) var(--dsh-radius-sm) 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dsh-muted); white-space: nowrap; overflow: hidden; }
109
+ .dsh-app .dsh-rtab.on { background: var(--dsh-hover); color: var(--dsh-fg); }
110
+
111
+ /* ── 设置弹窗 ── */
112
+ .dsh-app .dsh-scrim { position: absolute; inset: 0; background: var(--dsh-scrim); }
113
+ .dsh-app .dsh-modal {
114
+ position: absolute; left: 240px; top: 24px; width: 800px; height: 752px; box-sizing: border-box; border-radius: 24px; background: var(--dsh-card);
115
+ border: 1px solid var(--dsh-line); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18); display: flex; overflow: hidden;
116
+ }
117
+ .dsh-app .dsh-snav { flex: none; width: 188px; display: flex; flex-direction: column; }
118
+ .dsh-app .dsh-stitle { height: 54px; padding: 0 24px; display: flex; align-items: center; font-size: 16px; font-weight: 500; }
119
+ .dsh-app .dsh-slist { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
120
+ .dsh-app .dsh-scell { height: 40px; box-sizing: border-box; padding: 0 12px; border-radius: var(--dsh-radius-md); display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; overflow: hidden; }
121
+ .dsh-app .dsh-scell.on { background: var(--dsh-hover); }
122
+ .dsh-app .dsh-sbody { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
123
+ .dsh-app .dsh-stop { flex: none; height: 62px; padding: 0 16px 0 24px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
124
+ .dsh-app .dsh-ghost { height: 28px; box-sizing: border-box; padding: 0 10px; border: 1px solid var(--dsh-line); border-radius: var(--dsh-radius-sm); display: flex; align-items: center; font-size: 13px; }
125
+
126
+ /* ── 槽位:插件写在这里面 ── */
127
+ .dsh-app [data-slot] { box-sizing: border-box; min-width: 0; }
128
+ .dsh-app [data-slot="main"] { flex: 1 1 auto; min-height: 0; overflow: auto; position: relative; color: var(--dsh-fg); font: 400 14px/1.5 var(--dsh-font); }
129
+ .dsh-app .dsh-main > [data-slot="main"] { background: var(--dsh-bg); }
130
+ .dsh-app .dsh-sbody > [data-slot="main"] { padding: 0 24px 24px; }
131
+ .dsh-app [data-slot$="-icon"] { width: 16px; height: 16px; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
132
+ .dsh-app [data-slot$="-label"], .dsh-app [data-slot$="-title"] { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@@ -0,0 +1,59 @@
1
+ {
2
+ "id": "dsh",
3
+ "name": "DSH 插件",
4
+ "nameEn": "DSH plugin",
5
+ "desc": "DeepSeek Harness 桌面端的外框(照 DSH 0.2.2 量的),插件只设计槽位里那块",
6
+ "size": [1280, 800],
7
+ "css": "dsh-shell.css",
8
+ "themes": ["light", "dark"],
9
+ "darkAttr": "data-theme=\"dark\"",
10
+ "frames": [
11
+ {
12
+ "id": "sidebar",
13
+ "file": "sidebar.html",
14
+ "name": "左侧栏入口",
15
+ "dshSlot": "sidebar.panellist",
16
+ "desc": "左侧栏「插件 / 自动化任务」那一排多一行,点开主区是插件整页",
17
+ "slots": {
18
+ "entry-icon": "那一行的图标,16×16(放一个 svg)",
19
+ "entry-label": "那一行的字(插件名,2–6 个字)",
20
+ "main": "主区整页,1000×760(顶上 40px 留给 DSH 的右上角按钮)"
21
+ }
22
+ },
23
+ {
24
+ "id": "settings",
25
+ "file": "settings.html",
26
+ "name": "设置分区",
27
+ "dshSlot": "settings.section",
28
+ "desc": "设置弹窗左边导航多一项,右边是插件的设置",
29
+ "slots": {
30
+ "entry-icon": "导航那一项的图标,16×16",
31
+ "entry-label": "导航那一项的字",
32
+ "main": "右边设置内容,约 610×690,左右已留 24px"
33
+ }
34
+ },
35
+ {
36
+ "id": "view",
37
+ "file": "view.html",
38
+ "name": "会话标签页",
39
+ "dshSlot": "conversation.view",
40
+ "desc": "会话顶上「对话 / 轨迹」旁边多一个标签,下面整块是插件视图",
41
+ "slots": {
42
+ "tab-label": "标签上的字(2–6 个字)",
43
+ "main": "标签下面整块,1000×724"
44
+ }
45
+ },
46
+ {
47
+ "id": "panel",
48
+ "file": "panel.html",
49
+ "name": "右侧栏面板",
50
+ "dshSlot": "conversation.session.header.utilities + sidebarRightTabs",
51
+ "desc": "会话顶栏多一个按钮,点开右侧栏是插件面板",
52
+ "slots": {
53
+ "button-icon": "顶栏按钮的图标,16×16",
54
+ "panel-title": "右侧栏标签上的字",
55
+ "main": "右侧栏面板,574×762"
56
+ }
57
+ }
58
+ ]
59
+ }
@@ -0,0 +1,51 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=1280">
6
+ <meta name="dsh-design" content="dshplugin 1280x800">
7
+ <title>右侧栏面板</title>
8
+ <link rel="stylesheet" href="dsh-shell.css">
9
+ <!-- 外框(DSH 插件 · 右侧栏面板):只改 data-slot 里面,别动外框的结构、文字和 dsh-shell.css -->
10
+ </head>
11
+ <body>
12
+ <div class="dsh-app" data-frame="dsh/panel">
13
+ <aside class="dsh-side">
14
+ <div class="dsh-brand"><div class="dsh-logo">deepseek<span class="dsh-logo-tag">HARNESS</span></div><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M9 3v18"/></svg></div></div>
15
+ <div class="dsh-new"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 8v8M8 12h8"/></svg>新会话</div>
16
+ <nav class="dsh-nav">
17
+ <div class="dsh-row"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l3 3-3 3-3-3zM18.5 9l3 3-3 3-3-3zM5.5 9l3 3-3 3-3-3zM12 15.5l3 3-3 3-3-3z"/></svg>插件</div>
18
+ <div class="dsh-row"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg>自动化任务</div>
19
+ <div class="dsh-row"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><rect x="4" y="4" width="6" height="6" rx="1.5"/><rect x="14" y="4" width="6" height="6" rx="3"/><rect x="4" y="14" width="6" height="6" rx="1.5"/><rect x="14" y="14" width="6" height="6" rx="1.5"/></svg>更多</div>
20
+ </nav>
21
+ <div class="dsh-sec">工作区<div class="dsh-sec-acts"><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="M20 20l-4-4"/></svg></div><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8h10M18 8h2M4 16h2M10 16h10"/><circle cx="16" cy="8" r="2"/><circle cx="8" cy="16" r="2"/></svg></div><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><path d="M12 11v5M9.5 13.5h5"/></svg></div></div></div>
22
+ <div class="dsh-row"><span class="dsh-folder"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></svg></span>我的项目</div>
23
+ <div class="dsh-sess on">整理会议记录<span class="dsh-time">2 小时</span></div>
24
+ <div class="dsh-sess">新会话</div>
25
+ <div class="dsh-acct"><div class="dsh-avatar">我</div>我的账号</div>
26
+ </aside>
27
+ <main class="dsh-main">
28
+ <header class="dsh-head">
29
+ <div class="dsh-crumbs">整理会议记录<span class="dsh-mode">标准模式<svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 9l6 6 6-6"/></svg></span></div>
30
+ <div class="dsh-utils"><div class="dsh-iconbtn on"><span data-slot="button-icon"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><rect x="4" y="4" width="16" height="16" rx="4"/></svg></span></div><div class="dsh-split"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M9 8l-4 4 4 4M15 8l4 4-4 4"/></svg><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 9l6 6 6-6"/></svg></div><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><circle cx="5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/></svg></div></div>
31
+ <div class="dsh-iconbtn dsh-corner"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M15 3v18"/></svg></div>
32
+ <div class="dsh-tabs" role="tablist"><div class="dsh-tab on">对话</div><div class="dsh-tab">轨迹</div></div>
33
+ </header>
34
+ <div class="dsh-chat">
35
+ <div class="dsh-msg-me">帮我把这周的会议记录整理成一页</div>
36
+ <div class="dsh-msg-ai"><p>好的,我先读一下会议记录,再按议题归类。</p><p>整理好了,放在「会议纪要.md」。</p></div>
37
+ </div>
38
+ <div class="dsh-composer">
39
+ <div class="dsh-ph">描述你想要构建的内容,/ 调用指令,@ 文件或对话</div>
40
+ <div class="dsh-cbar"><div class="dsh-cl"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg><span class="dsh-mode"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l7 3v6c0 4-3 7-7 9-4-2-7-5-7-9V6z"/></svg>工作区内修改<svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 9l6 6 6-6"/></svg></span></div><div class="dsh-cr">DeepSeek V4.1 Flash<div class="dsh-send"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 19V5M6 11l6-6 6 6"/></svg></div></div></div>
41
+ </div>
42
+ </main>
43
+ <aside class="dsh-right">
44
+ <div class="dsh-rtabs"><div class="dsh-rtab"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 11l8-7 8 7v9H4z"/></svg>开始</div><div class="dsh-rtab on"><span data-slot="panel-title">我的插件</span></div></div>
45
+ <div data-slot="main">
46
+ <!-- 插件面板:点会话顶栏按钮后右侧栏显示的内容 -->
47
+ </div>
48
+ </aside>
49
+ </div>
50
+ </body>
51
+ </html>
@@ -0,0 +1,57 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=1280">
6
+ <meta name="dsh-design" content="dshplugin 1280x800">
7
+ <title>设置分区</title>
8
+ <link rel="stylesheet" href="dsh-shell.css">
9
+ <!-- 外框(DSH 插件 · 设置分区):只改 data-slot 里面,别动外框的结构、文字和 dsh-shell.css -->
10
+ </head>
11
+ <body>
12
+ <div class="dsh-app" data-frame="dsh/settings">
13
+ <aside class="dsh-side">
14
+ <div class="dsh-brand"><div class="dsh-logo">deepseek<span class="dsh-logo-tag">HARNESS</span></div><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M9 3v18"/></svg></div></div>
15
+ <div class="dsh-new"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 8v8M8 12h8"/></svg>新会话</div>
16
+ <nav class="dsh-nav">
17
+ <div class="dsh-row"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l3 3-3 3-3-3zM18.5 9l3 3-3 3-3-3zM5.5 9l3 3-3 3-3-3zM12 15.5l3 3-3 3-3-3z"/></svg>插件</div>
18
+ <div class="dsh-row"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg>自动化任务</div>
19
+ <div class="dsh-row"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><rect x="4" y="4" width="6" height="6" rx="1.5"/><rect x="14" y="4" width="6" height="6" rx="3"/><rect x="4" y="14" width="6" height="6" rx="1.5"/><rect x="14" y="14" width="6" height="6" rx="1.5"/></svg>更多</div>
20
+ </nav>
21
+ <div class="dsh-sec">工作区<div class="dsh-sec-acts"><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="M20 20l-4-4"/></svg></div><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8h10M18 8h2M4 16h2M10 16h10"/><circle cx="16" cy="8" r="2"/><circle cx="8" cy="16" r="2"/></svg></div><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><path d="M12 11v5M9.5 13.5h5"/></svg></div></div></div>
22
+ <div class="dsh-row"><span class="dsh-folder"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></svg></span>我的项目</div>
23
+ <div class="dsh-sess on">整理会议记录<span class="dsh-time">2 小时</span></div>
24
+ <div class="dsh-sess">新会话</div>
25
+ <div class="dsh-acct"><div class="dsh-avatar">我</div>我的账号</div>
26
+ </aside>
27
+ <main class="dsh-main">
28
+ <div class="dsh-bar"><div class="dsh-iconbtn dsh-corner"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M15 3v18"/></svg></div></div>
29
+ <div class="dsh-chat"></div>
30
+ <div class="dsh-composer">
31
+ <div class="dsh-ph">描述你想要构建的内容,/ 调用指令,@ 文件或对话</div>
32
+ <div class="dsh-cbar"><div class="dsh-cl"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg><span class="dsh-mode"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l7 3v6c0 4-3 7-7 9-4-2-7-5-7-9V6z"/></svg>工作区内修改<svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 9l6 6 6-6"/></svg></span></div><div class="dsh-cr">DeepSeek V4.1 Flash<div class="dsh-send"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 19V5M6 11l6-6 6 6"/></svg></div></div></div>
33
+ </div>
34
+ </main>
35
+ <div class="dsh-scrim"></div>
36
+ <div class="dsh-modal" role="dialog">
37
+ <div class="dsh-snav">
38
+ <div class="dsh-stitle">设置</div>
39
+ <div class="dsh-slist">
40
+ <div class="dsh-scell"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="8" r="4"/><path d="M4 21c1-4 4-6 8-6s7 2 8 6"/></svg>账号与余额</div>
41
+ <div class="dsh-scell"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="3"/><path d="M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1"/></svg>通用设置</div>
42
+ <div class="dsh-scell"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><ellipse cx="12" cy="6" rx="7" ry="3"/><path d="M5 6v12c0 1.7 3.1 3 7 3s7-1.3 7-3V6M5 12c0 1.7 3.1 3 7 3s7-1.3 7-3"/></svg>模型</div>
43
+ <div class="dsh-scell"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8h10M18 8h2M4 16h2M10 16h10"/><circle cx="16" cy="8" r="2"/><circle cx="8" cy="16" r="2"/></svg>内置插件</div>
44
+ <div class="dsh-scell"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l8 5v8l-8 5-8-5V8z"/></svg>Agent 预设</div>
45
+ <div class="dsh-scell on"><span data-slot="entry-icon"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><rect x="4" y="4" width="16" height="16" rx="4"/></svg></span><span data-slot="entry-label">我的插件</span></div>
46
+ </div>
47
+ </div>
48
+ <div class="dsh-sbody">
49
+ <div class="dsh-stop"><div class="dsh-ghost">打开配置文件</div><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></div></div>
50
+ <div data-slot="main">
51
+ <!-- 插件的设置分区 -->
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </body>
57
+ </html>
@@ -0,0 +1,36 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=1280">
6
+ <meta name="dsh-design" content="dshplugin 1280x800">
7
+ <title>左侧栏入口</title>
8
+ <link rel="stylesheet" href="dsh-shell.css">
9
+ <!-- 外框(DSH 插件 · 左侧栏入口):只改 data-slot 里面,别动外框的结构、文字和 dsh-shell.css -->
10
+ </head>
11
+ <body>
12
+ <div class="dsh-app" data-frame="dsh/sidebar">
13
+ <aside class="dsh-side">
14
+ <div class="dsh-brand"><div class="dsh-logo">deepseek<span class="dsh-logo-tag">HARNESS</span></div><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M9 3v18"/></svg></div></div>
15
+ <div class="dsh-new"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 8v8M8 12h8"/></svg>新会话</div>
16
+ <nav class="dsh-nav">
17
+ <div class="dsh-row"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l3 3-3 3-3-3zM18.5 9l3 3-3 3-3-3zM5.5 9l3 3-3 3-3-3zM12 15.5l3 3-3 3-3-3z"/></svg>插件</div>
18
+ <div class="dsh-row"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg>自动化任务</div>
19
+ <div class="dsh-row on"><span data-slot="entry-icon"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><rect x="4" y="4" width="16" height="16" rx="4"/></svg></span><span data-slot="entry-label">我的插件</span></div>
20
+ <div class="dsh-row"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><rect x="4" y="4" width="6" height="6" rx="1.5"/><rect x="14" y="4" width="6" height="6" rx="3"/><rect x="4" y="14" width="6" height="6" rx="1.5"/><rect x="14" y="14" width="6" height="6" rx="1.5"/></svg>更多</div>
21
+ </nav>
22
+ <div class="dsh-sec">工作区<div class="dsh-sec-acts"><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="M20 20l-4-4"/></svg></div><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8h10M18 8h2M4 16h2M10 16h10"/><circle cx="16" cy="8" r="2"/><circle cx="8" cy="16" r="2"/></svg></div><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><path d="M12 11v5M9.5 13.5h5"/></svg></div></div></div>
23
+ <div class="dsh-row"><span class="dsh-folder"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></svg></span>我的项目</div>
24
+ <div class="dsh-sess">整理会议记录<span class="dsh-time">2 小时</span></div>
25
+ <div class="dsh-sess">新会话</div>
26
+ <div class="dsh-acct"><div class="dsh-avatar">我</div>我的账号</div>
27
+ </aside>
28
+ <main class="dsh-main">
29
+ <div class="dsh-bar"><div class="dsh-iconbtn dsh-corner"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M15 3v18"/></svg></div></div>
30
+ <div data-slot="main">
31
+ <!-- 插件整页:点左侧栏那一行后主区显示的内容 -->
32
+ </div>
33
+ </main>
34
+ </div>
35
+ </body>
36
+ </html>
@@ -0,0 +1,40 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=1280">
6
+ <meta name="dsh-design" content="dshplugin 1280x800">
7
+ <title>会话标签页</title>
8
+ <link rel="stylesheet" href="dsh-shell.css">
9
+ <!-- 外框(DSH 插件 · 会话标签页):只改 data-slot 里面,别动外框的结构、文字和 dsh-shell.css -->
10
+ </head>
11
+ <body>
12
+ <div class="dsh-app" data-frame="dsh/view">
13
+ <aside class="dsh-side">
14
+ <div class="dsh-brand"><div class="dsh-logo">deepseek<span class="dsh-logo-tag">HARNESS</span></div><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M9 3v18"/></svg></div></div>
15
+ <div class="dsh-new"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 8v8M8 12h8"/></svg>新会话</div>
16
+ <nav class="dsh-nav">
17
+ <div class="dsh-row"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.5l3 3-3 3-3-3zM18.5 9l3 3-3 3-3-3zM5.5 9l3 3-3 3-3-3zM12 15.5l3 3-3 3-3-3z"/></svg>插件</div>
18
+ <div class="dsh-row"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg>自动化任务</div>
19
+ <div class="dsh-row"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><rect x="4" y="4" width="6" height="6" rx="1.5"/><rect x="14" y="4" width="6" height="6" rx="3"/><rect x="4" y="14" width="6" height="6" rx="1.5"/><rect x="14" y="14" width="6" height="6" rx="1.5"/></svg>更多</div>
20
+ </nav>
21
+ <div class="dsh-sec">工作区<div class="dsh-sec-acts"><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="M20 20l-4-4"/></svg></div><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8h10M18 8h2M4 16h2M10 16h10"/><circle cx="16" cy="8" r="2"/><circle cx="8" cy="16" r="2"/></svg></div><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><path d="M12 11v5M9.5 13.5h5"/></svg></div></div></div>
22
+ <div class="dsh-row"><span class="dsh-folder"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></svg></span>我的项目</div>
23
+ <div class="dsh-sess on">整理会议记录<span class="dsh-time">2 小时</span></div>
24
+ <div class="dsh-sess">新会话</div>
25
+ <div class="dsh-acct"><div class="dsh-avatar">我</div>我的账号</div>
26
+ </aside>
27
+ <main class="dsh-main">
28
+ <header class="dsh-head">
29
+ <div class="dsh-crumbs">整理会议记录<span class="dsh-mode">标准模式<svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 9l6 6 6-6"/></svg></span></div>
30
+ <div class="dsh-utils"><div class="dsh-split"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M9 8l-4 4 4 4M15 8l4 4-4 4"/></svg><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 9l6 6 6-6"/></svg></div><div class="dsh-iconbtn"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><circle cx="5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/></svg></div></div>
31
+ <div class="dsh-iconbtn dsh-corner"><svg class="dsh-i" viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M15 3v18"/></svg></div>
32
+ <div class="dsh-tabs" role="tablist"><div class="dsh-tab">对话</div><div class="dsh-tab">轨迹</div><div class="dsh-tab on"><span data-slot="tab-label">我的插件</span></div></div>
33
+ </header>
34
+ <div data-slot="main">
35
+ <!-- 插件视图:点会话顶上这个标签后下面整块显示的内容 -->
36
+ </div>
37
+ </main>
38
+ </div>
39
+ </body>
40
+ </html>
@@ -10,9 +10,12 @@
10
10
  | 技术路线、研究路线、技术方案流程(申报书、开题、论文那种) | 技术路线图 | `<div class="dg tr">` |
11
11
  | 产品路线图、规划、版本计划、按季度 / 月份排的路线 | 产品路线图 | `<div class="dg rm">` |
12
12
  | 系统架构、技术架构、分层图、平台全景 | 架构图 | `<div class="dg ar">` |
13
+ | 研究框架图、育人模式图、总体框架(申报书、结题报告那种,几层几块、互相支撑) | 架构图,层和层之间加 `dg-links` | `<div class="dg ar">` |
13
14
 
14
15
  「技术路线」没说清是哪种:按时间分阶段排计划 → 产品路线图;分析步骤、研究方法一步步往下走 → 技术路线图。拿不准就问一句。带回路、乱连线的任意流程图不在这四种里:自己用 SVG 画,每条线连到框的边上。
15
16
 
17
+ 不管哪种,**版块之间的关系要画出来**(见「版块之间要有关系」);用户给了参考图,先看「照参考图画」;申报书、结题报告那种图默认画得炫一点,看「申报书炫酷样式」;要贴进 Word / PPT,看「字号」。
18
+
16
19
  ## 文件骨架
17
20
 
18
21
  ```html
@@ -35,10 +38,10 @@
35
38
  </html>
36
39
  ```
37
40
 
38
- - **画幅**:默认 1600×1000。常用:1920×1080(放进 PPT)、1400×1800 左右的竖图(申报书、论文的技术路线图)、2400×1400(分支多的思维导图)。写进 meta,调 `preview_page` 时也带 `size`。图比画幅大时页面会往右、往下长,画布按实际大小显示;交付前把 meta 改成合适的画幅。
41
+ - **画幅**:默认 1600×1000。常用:1920×1080(放进 PPT)、1200×900 / 1100×1400 左右(申报书、论文插图,导出选 2 倍或 3 倍照样清楚)、2400×1400(分支多、只在屏幕上看的思维导图)。画幅越宽,贴进 Word 字越小,见「字号」。写进 meta,调 `preview_page` 时也带 `size`。图比画幅大时页面会往右、往下长,画布按实际大小显示;交付前把 meta 改成合适的画幅。
39
42
  - **标题区可选**:思维导图一般不要标题(中心主题就是标题);路线图、架构图放标题。
40
43
  - **颜色**:全部来自 `tokens.css`,第 1 个分支色是主色,后面自动配。要指定某个分支 / 泳道 / 层 / 阶段的颜色,在它上面加 `c1`–`c6`。全图只用主色:根元素加 `data-tone="mono"`;技术路线图默认只用主色,要每个阶段一个颜色加 `data-tone="multi"`。
41
- - **不要**:给节点写 `position: absolute`、写死坐标、自己画 SVG 连线、写脚本——会和自动排版打架。要改间距、线粗,在自己的 `<style>` 里覆盖变量(`.mm { --gx: 40px }`),别改 `diagram.css`。
44
+ - **不要**:给节点写 `position: absolute`、写死坐标、自己画 SVG 连线、写脚本——会和自动排版打架。版块之间要加箭头用 `dg-link`。要改间距、线粗、字号,在自己的 `<style>` 里覆盖变量(`.mm { --gx: 40px }`、`.dg-page { --dg-scale: 1.5 }`),别改 `diagram.css`。
42
45
 
43
46
  ## 思维导图 `.mm`
44
47
 
@@ -143,8 +146,129 @@
143
146
  - 一层里再分组:`ar-group`(虚线框 + `<h4>` 组名),组的宽度按模块个数分。
144
147
  - 贯穿所有层的(监控、安全、运维):`ar-main` 后面放 `ar-side`,竖着一栏,最多两栏。
145
148
  - `key` 标出重点模块(全图两三个)。层 3–7 个,每层模块 2–8 个。
149
+ - 一层里有先后(A → B → C):`<div class="ar-mods seq">`,箭头画在模块之间的空隙里。
150
+ - 层和层之间的关系:两个 `ar-layer` 中间放一排 `dg-links`,一个 `dg-link` 对着一个模块(上下两层模块个数一样就正好对齐;挨着箭头的层模块不换行,太多就拆层;这两层里别插 `dg-link`、别用 `ar-group`,递进用 `ar-mods seq`,不然会连偏,体检报「箭头没对着模块」),箭头上写关系词:
151
+
152
+ ```html
153
+ <section class="ar-layer"><h3 class="ar-name">研究内容</h3><div class="ar-mods"><div class="ar-mod">内容 1</div><div class="ar-mod">内容 2</div><div class="ar-mod">内容 3</div></div></section>
154
+ <div class="dg-links"><div class="dg-link"><b>落实</b></div><div class="dg-link"><b>落实</b></div><div class="dg-link"><b>落实</b></div></div>
155
+ <section class="ar-layer"><h3 class="ar-name">实施路径</h3><div class="ar-mods">…三个模块…</div></section>
156
+ ```
157
+
158
+ ## 先理逻辑,确认了再画
159
+
160
+ 框架图、模式图、技术路线图、架构图(三块以上、块和块之间有关系,申报书、结题报告、论文里那种):**先别画**,先把逻辑理出来请用户确认。原文往往一节一节写,没写清「哪个问题对应哪项内容、哪个维度落在哪个课堂」;直接一节画一层,画出来就是几块各管各的。这些关系懂课题的人最清楚,你猜的不一定对。思维导图、产品路线图不用这一步(层级、时间就是关系)。**只在第一次新画、关系还没确认过时问**;改已有的图(调字号、配色、挪位置、改几个字)直接改,不再列骨架。
161
+
162
+ **这一步别省**:用户给了整段原文、写了要几张图、带了参考图,也照样先问——写得详细的是内容,不是关系;参考图管的是画法,也不是关系。用户没说「直接做」「不用问」,就列完骨架停下等回答,别「先画出来再解释」。
163
+
164
+ 1. 读完用户给的内容,在回复里列「逻辑骨架」,十几行以内,用用户原文的词:
165
+ - **核心**:一句话(模型名、核心理念,比如「四维贯通」)
166
+ - **几块**:分几层、几栏,每块放什么
167
+ - **关系**:一行一条——`问题① ↔ 内容① ↔ 目标①`、`认知 → 第一课堂`、`实践平台 —支撑→ 三课堂`、`反思 ⟲ 认知(闭环)`
168
+ - **版式**:几层几栏,哪几块上下对齐(有参考图就说照它哪种画法)
169
+ - 原文没写、你推出来的关系,后面标「(推测)」,请用户重点看
170
+ 2. 请用户确认:有 `ask_user_question` 工具就用它问(选项「对,照这个画」「我改几条」),没有就在回复里问完、停下等回答。用户改了就按改的来。
171
+ 3. 用户说了「直接做」「不用问」:骨架照样先列出来(几行),不等回答,接着画。
172
+ 4. 画的时候,骨架里每一条关系都要在图上看得见(下面一节的箭头、对齐、编号);画完对一遍,漏的补上。
173
+
174
+ ## 版块之间要有关系
175
+
176
+ 申报书、结题报告里的框架图、模式图,评审看的是**逻辑**:问题 → 目标 → 内容 → 路径 / 措施 → 成果,谁支撑谁、谁对应谁。几层各画各的、版块之间没有线,看着就是几张卡片叠在一起——真实用户的反馈原话:「没有逻辑关系,各个版块都很独立,之间的对应关系没有」。
177
+
178
+ 动笔前先把关系理一遍:每一块从哪来、到哪去、和哪一块对应。然后至少用上下面两三种:
179
+
180
+ - **带关系词的箭头**:两块之间放 `dg-link`,箭头上写一个词(支撑、引领、驱动、落实、对应、转化、反馈)。往上 `up`、往右 `right`、往左 `left`、两头 `two`;层和层之间放一排 `dg-links`。自己写的版块也能用(复制了 `diagram.css` 就有)。
181
+ - **对齐成栏**:对应的东西放在同一栏(第一课堂 ↔ 认知 ↔ 研究内容 1),各层栏数一样、上下对齐;对不上就合并几块,或者用 `ar-group` 把几栏包成一组。
182
+ - **编号对应**:问题①、目标①、内容①是一组,同一个编号同一种颜色,读者顺着编号就能对上。
183
+ - **一个核心**:模型有核心(「四维贯通」「三维十二要素」这种)就放在中间,各块用箭头连到它;有循环(闭环迭代、螺旋上升)就画回环箭头。
184
+ - **层内递进**:同一层里有先后的串起来——架构图用 `ar-mods seq`,技术路线图用 `tr-row seq`,自己写的版块用 `dg-link right`。
185
+
186
+ 画完自己看一遍:每一块都该有箭头或编号连到别的块。孤零零的一块,先想想是不是漏了关系(它支撑谁、对应谁);真是并列的几项,就放进同一组、同一栏或用编号表示——别凭空连线,也别删用户的内容。
187
+
188
+ ## 照参考图画
189
+
190
+ 输入框里有〔参考图〕时:
191
+
192
+ 1. 先打开参考图看清楚(图大就裁几块看细节):分几层几栏、层名怎么标(左侧竖条、色带)、标题和标签的形状、卡片样子、箭头粗细和样式、编号、字号比例、颜色占比,**版块之间怎么连**。
193
+ 2. 版式和画法照它学:可以不套 `.mm / .tr / .rm / .ar`,自己写 HTML + CSS;版块之间的箭头照样用 `dg-link`,颜色写进 `tokens.css`。参考图是申报书那种立体渐变的(竖条层名、色带标题、立体标签、粗箭头):**直接用 `fx-*` 部件搭**(见「申报书炫酷样式」),颜色改 `tokens.css`,部件没有的才自己补几条 CSS。
194
+ 3. 内容用用户的,不抄参考图里的字。参考图的层数、栏数和用户的内容对不上时按内容改,别硬凑。
195
+ 4. 画完和参考图并排比一遍:第一眼像不像同一套画法、关系线有没有画出来。
196
+
197
+ ## 申报书炫酷样式 `fx-*`
198
+
199
+ 课题申报书、结题报告、开题、教学成果奖、育人模式、人才培养方案里的框架图、模式图、路线图:这一行比的是「好看、有冲击力」,**默认用这套**——立体渐变的层名竖条、色带标题、红色立体标签、粗箭头、回环箭头、发光面板。用户要素净、黑白印刷、投期刊论文就不用,照上面四种的普通画法。用户给的参考图是立体渐变那种,也用它。
200
+
201
+ - **别从零重写一套**:部件的深浅色、导出、字号都调好了,自己写的多半更素、还容易被体检挑出毛病。嫌太花就少用几种部件、body 上去掉 `fx-page`(不要柔光点阵底),别把部件换掉。
202
+ - 部件都在 `diagram.css` 里(复制过来就有),`<body class="dg-page fx-page">` 开始,不套 `.mm / .tr / .rm / .ar`;排版帮手 `fx-wrap`(整页)、`fx-head`(页头)、`fx-sec`、`fx-flow`、`fx-col`(一栏从上到下)、`fx-bridge`(层间箭头 + 横幅)、`fx-map`(对照表)够搭大多数版面,不够再自己写 grid / flex。
203
+ - 「先理逻辑」照做;关系照样要画出来:栏和栏之间 `fx-flow` 自动画粗箭头,层和层之间 `fx-arrow down` + `fx-ribbon`,闭环用 `fx-loop`,问题 / 内容 / 目标用同一个编号对上。
204
+
205
+ | 部件 | 样子 | 写法 |
206
+ | --- | --- | --- |
207
+ | `fx-title` | 渐变大标题 | `<h1 class="fx-title">` |
208
+ | `fx-gem` | 小徽章(标题上面的「课题申报 · 研究框架」) | `<span class="fx-gem">` |
209
+ | `fx-panel` | 大面板:渐变描边 + 彩色柔影,一节一个 | `<section class="fx-panel">` |
210
+ | `fx-sec` | 一节 = 左边竖条 + 右边内容 | `<div class="fx-sec"><div class="fx-rail">四维贯通</div><div>…</div></div>` |
211
+ | `fx-rail` | 层名竖条(圆柱感、竖排字) | 字 ≤ 6 个,字多会把整节撑高 |
212
+ | `fx-flow` | 等宽几栏,栏间自动画粗箭头 | `style="--fx-at: 36%"` 把箭头挪到栏高 36% 处(默认正中) |
213
+ | `fx-band` | 渐变色带标题,左边白圆里一对 » | `<div class="fx-band"><i></i>认知<small>课程教学</small></div>` |
214
+ | `fx-card` | 白卡片 | `<div class="fx-card"><small>理论对接</small><b>设计认识论</b><p>一句说明</p></div>` |
215
+ | `fx-tag` | 红色立体标签(结论两三个字) | `<span class="fx-tag">认知引领</span>` |
216
+ | `fx-slab` | 立体板,右下有厚度 | `<div class="fx-slab">课堂学</div>` |
217
+ | `fx-item` | 条目块:左色条淡底;`.solid` 实心白字 | `<div class="fx-item solid"><b class="fx-num">1</b><div><b>课程体系重构</b><span>一句说明</span></div></div>` |
218
+ | `fx-list` / `fx-num` | 编号条目 / 圆形编号 | `<ol class="fx-list"><li><b>1</b>文字</li></ol>` |
219
+ | `fx-arrow` | 粗渐变箭头,往右;`.left` `.down` `.up` | `<i class="fx-arrow down"></i>` |
220
+ | `fx-ribbon` | 双圈丝带横幅(层间那句话) | `<span class="fx-ribbon">四维贯通 · 融入三课堂</span>` |
221
+ | `fx-loop` | 回环箭头:放在一排下面,右端拐回左端 | `<div class="fx-loop"><span>闭环迭代 · 螺旋上升</span></div>` |
222
+ | `fx-core` / `fx-disc` | 发光核心球 / 立体圆台(模型核心、底座) | `<div class="fx-core">四维贯通</div>` |
223
+ | `fx-shift` | 转变:灰框 → 红色立体块 | `<div class="fx-shift"><span>教师讲</span><span>学生做</span></div>` |
224
+
225
+ **颜色**:三种色调,写在部件或它外面任何一层上,里面的都跟着变:`fx-main`(主色,默认)、`fx-warm`(红,问题、结论标签)、`fx-cool`(主色转过去的另一种色,目标、场景)。颜色来自 `tokens.css` 的 `--color-primary` 和 `--color-danger`:要紫色、蓝色就改 tokens,别在部件上手写颜色。深色模式自动跟。
226
+
227
+ ```html
228
+ <body class="dg-page fx-page">
229
+ <main class="fx-wrap">
230
+ <header class="fx-head"><span class="fx-gem">课题申报 · 研究框架</span><h1 class="fx-title">「三环联动」社区阅读推广模式</h1><p>以三所社区图书馆为试点</p></header>
231
+ <section class="fx-panel">
232
+ <div class="fx-sec">
233
+ <div class="fx-rail">三环联动</div>
234
+ <div>
235
+ <div class="fx-flow" style="--fx-at: 36%">
236
+ <div class="fx-col"><div class="fx-band"><i></i>引读</div><div class="fx-card"><small>理论对接</small><b>阅读动机理论</b></div><span class="fx-tag">兴趣引领</span></div>
237
+ <!-- 另外两栏同样写 -->
238
+ </div>
239
+ <div class="fx-loop" style="margin-inline: 12%"><span>循环推进 · 螺旋上升</span></div>
240
+ </div>
241
+ </div>
242
+ <div class="fx-bridge"><i class="fx-arrow down fx-cool"></i><span class="fx-ribbon">三环落到三类场景</span><i class="fx-arrow down fx-cool"></i></div>
243
+ <div class="fx-sec fx-cool"><div class="fx-rail">三类场景</div><div class="fx-flow">…</div></div>
244
+ </section>
245
+ <section class="fx-panel">
246
+ <div class="fx-sec"><div class="fx-rail fx-warm">研究逻辑</div>
247
+ <div class="fx-map"><!-- 五栏:问题 | 箭头 | 内容 | 箭头 | 目标;栏宽改 --fx-cols -->
248
+ <div class="fx-item fx-warm"><b class="fx-num">1</b>读者参与少</div><i class="fx-arrow fx-warm"></i>
249
+ <div class="fx-item solid"><b class="fx-num">1</b><div><b>三环活动设计</b><span>引读、共读、创读逐级递进</span></div></div><i class="fx-arrow fx-cool"></i>
250
+ <div class="fx-item fx-cool"><b class="fx-num">1</b>形成可复制的活动方案</div>
251
+ </div>
252
+ </div>
253
+ </section>
254
+ </main>
255
+ ```
256
+
257
+ - 画幅 1600 宽(部件按这个宽度调的),高度按内容;一张图 2–3 个 `fx-panel`,每节一根 `fx-rail`。
258
+ - 每栏从上到下:色带标题 → 卡片 → 标签或立体板;同一排栏数一样、上下对齐。
259
+ - 特效挑着用:一节里两三种部件就够;标签、立体板只写结论(两到六个字),长句放卡片。
260
+ - 部件的字号已经乘 `--dg-scale`,贴进 Word 够大;自己写的字用 `calc(16px * var(--dg-scale, 1.25))` 起步,别再加新字号(一屏字号别超过 7 种)。
261
+
262
+ ## 字号
263
+
264
+ 导出的图贴进 Word 会缩到页宽(约 16 厘米),字跟着缩:画幅越宽,字越小。
265
+
266
+ - **正文字号 ≥ 画幅宽 ÷ 70**(1600 宽 → 23px,1200 宽 → 17px),小字 ≥ 画幅宽 ÷ 85。`diagram.css` 的字号都乘 `--dg-scale`(默认 1.25):整体放大写 `.dg-page { --dg-scale: 1.6 }`;自己写的版块自己定字号。
267
+ - 申报书、论文插图:画幅 1200×900(横)或 1100×1400(竖)就够,别用 2400 那种大画幅塞满字。
268
+ - 放不下就删减、合并或者拆成两张图——加大画幅,字在 Word 里一样小。
269
+ - 体检的「字偏小」按这个算:正文比画幅宽 ÷ 100 还小就提醒。
146
270
 
147
271
  ## 体检和导出
148
272
 
149
- - 照常调 `check_design`:除了截断、叠字、对比度,还会查图表结构(节点没包 `mm-node`、一行框太多、横条超出时间轴、节点字太多、图超出画幅)。
273
+ - 照常调 `check_design`:除了截断、叠字、对比度,还会查图表结构(节点没包 `mm-node`、一行框太多、横条超出时间轴、节点字太多、图超出画幅、层间箭头没对着模块)和字偏小(贴进 Word 看不清)。
150
274
  - 用户要贴进 Word / PPT:告诉他在工作台「导出」里选 PNG(高清)或 PDF。