report-template.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. <!DOCTYPE html>
  2. <html lang="zh-CN" data-theme="light">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>{{REPORT_TITLE}}</title>
  7. <link rel="stylesheet" href="../lib/theme/tokens.css">
  8. <link rel="stylesheet" href="../lib/theme/base.css">
  9. <script src="../lib/vendor/gsap/gsap.min.js"></script>
  10. <script src="../lib/theme/theme.js"></script>
  11. <script src="../lib/player/canvas-scale.js"></script>
  12. <style>
  13. /* 页内补充样式:只用 var(--...),不新增色值(token 唯一来源纪律) */
  14. body { margin:0; background:var(--bg-0); color:var(--text-1); font-family:var(--font-body); }
  15. .screen { display:none; flex-direction:column; align-items:center; justify-content:center; width:1280px; height:720px; overflow:hidden; padding:0 40px; }
  16. .s-wrap { width:100%; max-width:1120px; }
  17. .s-foot-tags { display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:flex-end; margin-top:14px; }
  18. /* 数据速览复用 base.css .stat-band/.stat;此处补工具分布条 */
  19. .dist-row { display:flex; align-items:center; gap:10px; margin:6px 0; }
  20. .dist-name { width:110px; font-family:var(--font-mono); font-size:12px; color:var(--text-3); text-align:right; }
  21. .dist-bar { height:14px; background:var(--brand-1); border-radius:2px; min-width:2px; }
  22. .dist-num { font-family:var(--font-mono); font-size:12px; color:var(--text-2); }
  23. /* 交付物墙 */
  24. .wall { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
  25. .wall .w-card { background:var(--bg-2); border:1px solid var(--border-subtle); padding:12px; display:flex; flex-direction:column; gap:8px; min-height:120px; }
  26. .wall .w-card iframe { width:100%; height:150px; border:1px solid var(--border-subtle); background:#fff; pointer-events:none; }
  27. .wall .w-card .w-title { font:600 13px var(--font-body); color:var(--text-1); }
  28. .wall .w-card .w-src { font:11px var(--font-mono); color:var(--text-4); }
  29. .wall .w-card .w-note { font:11px var(--font-mono); color:var(--brand-ok); }
  30. .wall .w-card .w-nolink { font:11px var(--font-mono); color:var(--text-4); border:1px dashed var(--border-subtle); padding:40px 8px; text-align:center; }
  31. /* 时刻线 */
  32. .timeline { position:relative; padding-left:22px; display:flex; flex-direction:column; gap:12px; }
  33. .timeline::before { content:''; position:absolute; left:5px; top:6px; bottom:6px; width:2px; background:var(--border-subtle); }
  34. .tl-item { position:relative; }
  35. .tl-item::before { content:''; position:absolute; left:-22px; top:5px; width:10px; height:10px; border-radius:50%; background:var(--brand-1); border:2px solid var(--bg-0); }
  36. .tl-item .tl-time { font:11px var(--font-mono); color:var(--text-4); }
  37. .tl-item .tl-text { font-size:14px; color:var(--text-2); margin-top:2px; }
  38. /* 三问板块 */
  39. .q-block { border-left:3px solid var(--brand-1); background:var(--bg-2); padding:14px 18px; }
  40. .q-block.q1 { border-left-color:var(--brand-3); }
  41. .q-block.q2 { border-left-color:var(--brand-1); }
  42. .q-block.q3 { border-left-color:var(--brand-2); }
  43. .q-block .q-h { font:700 16px var(--font-display); color:var(--text-1); margin-bottom:8px; }
  44. .q-block .q-a { font-size:15px; line-height:1.8; color:var(--text-2); white-space:pre-wrap; }
  45. .q-block .q-ev { margin-top:10px; display:flex; flex-direction:column; gap:4px; }
  46. .q-block .q-ev .ev { font:11px var(--font-mono); color:var(--text-4); }
  47. .q-block .q-pending { font:12px var(--font-mono); color:var(--brand-3); }
  48. /* 附录表 */
  49. .tbl { width:100%; border-collapse:collapse; font-size:12px; }
  50. .tbl th { font-family:var(--font-mono); font-size:11px; color:var(--text-4); text-align:left; border-bottom:1px solid var(--border-subtle); padding:6px 8px; letter-spacing:.08em; }
  51. .tbl td { padding:5px 8px; border-bottom:1px solid var(--border-subtle); color:var(--text-2); }
  52. .tbl td.mono { font-family:var(--font-mono); font-size:11px; color:var(--text-4); }
  53. .pending-badge { display:inline-block; font:11px var(--font-mono); color:var(--brand-3); border:1px dashed rgba(255,0,0,.45); padding:2px 8px; margin-left:8px; }
  54. </style>
  55. </head>
  56. <body>
  57. <!-- ════ P1 · 封面 ════ -->
  58. <section class="screen" id="p1">
  59. <div class="s-wrap" style="text-align:center;">
  60. <div class="s-tag" style="letter-spacing:.3em;">AGENT LEARNING RETROSPECTIVE</div>
  61. <h1 class="s-title" style="font-size:56px; margin:18px 0 8px;">{{NAME}} · 学习复盘报告</h1>
  62. <p class="s-sub" style="margin:0 auto; max-width:70%;">{{ENTERPRISE}} · {{DATE_RANGE}}</p>
  63. <div style="margin-top:46px; display:flex; gap:14px; justify-content:center; flex-wrap:wrap;">
  64. <span class="tag">{{SESSIONS}} 场会话</span>
  65. <span class="tag ok">{{TOOLKINDS}} 类工具协作</span>
  66. <span class="tag brand-2">{{ARTIFACTS}} 项产出物</span>
  67. <span class="tag">{{HOURS}}h 全程可溯源</span>
  68. </div>
  69. </div>
  70. </section>
  71. <!-- ════ P2 · 48h 数据全景 ════ -->
  72. <section class="screen" id="p2">
  73. <div class="s-wrap">
  74. <div class="s-tag">全景 · 真实采集数据</div>
  75. <h2 class="s-title">48 小时数据全景</h2>
  76. <div class="s-body">
  77. <div class="stat-band">
  78. <div class="stat">
  79. <div class="num hero">{{SESSIONS}}</div>
  80. <div class="label">Agent 会话(场)</div>
  81. <div class="src">来源:各工具本地会话记录</div>
  82. </div>
  83. <div class="stat">
  84. <div class="num">{{TOOLKINDS}}</div>
  85. <div class="label">工具来源(类)</div>
  86. <div class="src">{{TOOL_LIST}}</div>
  87. </div>
  88. <div class="stat">
  89. <div class="num">{{ARTIFACTS}}</div>
  90. <div class="label">产出物(项)</div>
  91. <div class="src">.md/.html/.pdf/.docx/.xlsx</div>
  92. </div>
  93. <div class="stat">
  94. <div class="num">{{MESSAGES}}</div>
  95. <div class="label">对话消息(条)</div>
  96. <div class="src">user + assistant 可读消息</div>
  97. </div>
  98. </div>
  99. <div>
  100. {{TOOL_DIST_ROWS}}
  101. </div>
  102. </div>
  103. <div class="s-foot-tags">
  104. <span class="tag ok">数据优先 · 全部来自本机采集清单</span>
  105. <span class="tag">采集窗口 {{WINDOW}}</span>
  106. </div>
  107. </div>
  108. </section>
  109. <!-- ════ P3 · 交付物墙 ════ -->
  110. <section class="screen" id="p3">
  111. <div class="s-wrap">
  112. <div class="s-tag">产出 · 能看见的交付</div>
  113. <h2 class="s-title">交付物墙</h2>
  114. <div class="s-body">
  115. <div class="wall">
  116. {{ARTIFACT_WALL}}
  117. </div>
  118. </div>
  119. <div class="s-foot-tags">
  120. <span class="tag ok">HTML 交付物以 iframe 实时嵌套展示</span>
  121. <span class="tag">在线项目已标记「可嵌入」</span>
  122. </div>
  123. </div>
  124. </section>
  125. <!-- ════ P4 · 精选工作时刻线 ════ -->
  126. <section class="screen" id="p4">
  127. <div class="s-wrap">
  128. <div class="s-tag">过程 · 时间即证据</div>
  129. <h2 class="s-title">精选工作时刻线</h2>
  130. <div class="s-body">
  131. <div class="timeline">
  132. {{TIMELINE}}
  133. </div>
  134. </div>
  135. <div class="s-foot-tags">
  136. <span class="tag">按会话/文件真实 mtime 排序 · 摘取关键节点</span>
  137. </div>
  138. </div>
  139. </section>
  140. <!-- ════ P5 · 过去痛点(第一问) ════ -->
  141. <section class="screen" id="p5">
  142. <div class="s-wrap">
  143. <div class="s-tag" style="color:var(--brand-3);">第一问 · 过去</div>
  144. <h2 class="s-title">之前不够原生、不够性感的地方</h2>
  145. <div class="s-body">
  146. <div class="q-block q1">
  147. <div class="q-h">痛点与疑惑</div>
  148. <div class="q-a">{{ANSWER_PAST}}</div>
  149. {{PAST_PENDING}}
  150. <div class="q-ev">{{EVIDENCE_PAST}}</div>
  151. </div>
  152. </div>
  153. <div class="s-foot-tags">
  154. <span class="tag">用户口述 × 采集证据 关联</span>
  155. </div>
  156. </div>
  157. </section>
  158. <!-- ════ P6 · 两天感受(第二问) ════ -->
  159. <section class="screen" id="p6">
  160. <div class="s-wrap">
  161. <div class="s-tag">第二问 · 现在</div>
  162. <h2 class="s-title">这两天的感受与收获</h2>
  163. <div class="s-body">
  164. <div class="q-block q2">
  165. <div class="q-h">具体感受 · 有感觉的项目</div>
  166. <div class="q-a">{{ANSWER_PRESENT}}</div>
  167. {{PRESENT_PENDING}}
  168. <div class="q-ev">{{EVIDENCE_PRESENT}}</div>
  169. </div>
  170. </div>
  171. <div class="s-foot-tags">
  172. <span class="tag ok">成果已从采集自动带入 · 本页只讲感受</span>
  173. </div>
  174. </div>
  175. </section>
  176. <!-- ════ P7 · 未来方向(第三问) ════ -->
  177. <section class="screen" id="p7">
  178. <div class="s-wrap">
  179. <div class="s-tag" style="color:var(--brand-2);">第三问 · 未来</div>
  180. <h2 class="s-title">想回企业落地或探索的方向</h2>
  181. <div class="s-body">
  182. <div class="q-block q3">
  183. <div class="q-h">未来畅想</div>
  184. <div class="q-a">{{ANSWER_FUTURE}}</div>
  185. {{FUTURE_PENDING}}
  186. <div class="q-ev">{{EVIDENCE_FUTURE}}</div>
  187. </div>
  188. </div>
  189. <div class="s-foot-tags">
  190. <span class="tag brand-2">从个人工具箱 → 企业原生 AI 落地</span>
  191. </div>
  192. </div>
  193. </section>
  194. <!-- ════ P8 · 数据附录 ════ -->
  195. <section class="screen" id="p8">
  196. <div class="s-wrap">
  197. <div class="s-tag">附录 · 可溯源明细</div>
  198. <h2 class="s-title">数据附录</h2>
  199. <div class="s-body">
  200. <table class="tbl">
  201. <thead><tr><th style="width:110px;">时间</th><th style="width:90px;">来源</th><th>摘要</th><th style="width:180px;">路径 / URL</th></tr></thead>
  202. <tbody>
  203. {{APPENDIX_ROWS}}
  204. </tbody>
  205. </table>
  206. </div>
  207. <div class="s-foot-tags">
  208. <span class="tag">共 {{TOTAL}} 条采集 · 本页展示前 {{APPENDIX_N}} 条</span>
  209. <span class="tag">完整清单见 report-data.json</span>
  210. </div>
  211. </div>
  212. </section>
  213. <!-- ════ P9 · 收口金句 ════ -->
  214. <section class="screen" id="p9">
  215. <div class="s-wrap" style="text-align:center;">
  216. <div class="s-tag" style="letter-spacing:.3em;">TAKEAWAY</div>
  217. <div class="quote-line" style="margin-top:28px;">工具会过时,<br>把 AI 用成自己手脚的方法不会。</div>
  218. <p class="s-sub" style="margin:26px auto 0; max-width:64%;">{{NAME}} · {{DATE_RANGE}}<br>本报告由 skill-study-report 自动采集生成 · 全程可溯源</p>
  219. </div>
  220. </section>
  221. <script src="../lib/player/deck.js"></script>
  222. <script type="application/json" class="deck-config">
  223. {
  224. "case": "study-report",
  225. "page": { "id": "report", "title": "{{NAME}} · 学习复盘报告" },
  226. "chapters": [
  227. { "id": "p1", "file": "report.html", "title": "封面" },
  228. { "id": "p2", "file": "report.html", "title": "48h 数据全景" },
  229. { "id": "p3", "file": "report.html", "title": "交付物墙" },
  230. { "id": "p4", "file": "report.html", "title": "时刻线" },
  231. { "id": "p5", "file": "report.html", "title": "过去痛点" },
  232. { "id": "p6", "file": "report.html", "title": "两天感受" },
  233. { "id": "p7", "file": "report.html", "title": "未来方向" },
  234. { "id": "p8", "file": "report.html", "title": "数据附录" },
  235. { "id": "p9", "file": "report.html", "title": "收口" }
  236. ]
  237. }
  238. </script>
  239. <script>
  240. window.SCREEN_TIMELINES = window.SCREEN_TIMELINES || {};
  241. function baseCtx(el) {
  242. return {
  243. el,
  244. q: function(s){ return el.querySelector(s); },
  245. qAll: function(s){ return el.querySelectorAll(s); },
  246. };
  247. }
  248. /* P1 封面 */
  249. SCREEN_TIMELINES['p1'] = function(ctx) {
  250. var tl = gsap.timeline();
  251. tl.from(ctx.q('.s-tag'), { autoAlpha:0, y:14, duration:.4, ease:'power2.out' })
  252. .from(ctx.q('.s-title'), { autoAlpha:0, y:26, duration:.6, ease:'power2.out' }, '-=.15')
  253. .from(ctx.q('.s-sub'), { autoAlpha:0, y:14, duration:.4 }, '-=.3')
  254. .from(ctx.qAll('.tag'), { autoAlpha:0, y:10, stagger:.07, duration:.35, ease:'back.out(1.4)' }, '-=.1');
  255. return tl;
  256. };
  257. /* P2 数据全景:数字动画 + 分布条 */
  258. SCREEN_TIMELINES['p2'] = function(ctx) {
  259. var tl = gsap.timeline();
  260. tl.from(ctx.q('.s-tag'), { autoAlpha:0, duration:.3 })
  261. .from(ctx.q('.s-title'), { autoAlpha:0, y:22, duration:.5 }, '-=.1')
  262. .from(ctx.qAll('.stat'), { autoAlpha:0, scale:.92, stagger:.09, duration:.4, ease:'back.out(1.2)' }, '-=.2');
  263. ctx.qAll('.stat .num').forEach(function(n, i) {
  264. var target = parseInt(n.textContent.replace(/[^\d]/g, ''), 10) || 0;
  265. var obj = { v: 0 };
  266. tl.to(obj, { v: target, duration:1.1, ease:'power2.out', onUpdate: function(){ n.textContent = Math.round(obj.v).toLocaleString(); } }, '-=.7');
  267. void i;
  268. });
  269. tl.from(ctx.qAll('.dist-row'), { autoAlpha:0, x:-18, stagger:.06, duration:.35 }, '-=.4');
  270. tl.from(ctx.qAll('.s-foot-tags .tag'), { autoAlpha:0, y:8, stagger:.08, duration:.3 }, '-=.2')
  271. .to({}, { duration:1.4 });
  272. return tl;
  273. };
  274. /* P3 交付物墙 */
  275. SCREEN_TIMELINES['p3'] = function(ctx) {
  276. var tl = gsap.timeline();
  277. tl.from(ctx.q('.s-tag'), { autoAlpha:0, duration:.3 })
  278. .from(ctx.q('.s-title'), { autoAlpha:0, y:22, duration:.5 }, '-=.1')
  279. .from(ctx.qAll('.w-card'), { autoAlpha:0, y:24, stagger:.08, duration:.45, ease:'power2.out' }, '-=.2')
  280. .to({}, { duration:1.2 });
  281. return tl;
  282. };
  283. /* P4 时刻线 */
  284. SCREEN_TIMELINES['p4'] = function(ctx) {
  285. var tl = gsap.timeline();
  286. tl.from(ctx.q('.s-tag'), { autoAlpha:0, duration:.3 })
  287. .from(ctx.q('.s-title'), { autoAlpha:0, y:22, duration:.5 }, '-=.1')
  288. .from(ctx.qAll('.tl-item'), { autoAlpha:0, x:-22, stagger:.12, duration:.4, ease:'power2.out' }, '-=.15')
  289. .to({}, { duration:1.2 });
  290. return tl;
  291. };
  292. /* 三问页共用 */
  293. function qTimeline(key, fade) {
  294. return function(ctx) {
  295. var tl = gsap.timeline();
  296. tl.from(ctx.q('.s-tag'), { autoAlpha:0, duration:.3 })
  297. .from(ctx.q('.s-title'), { autoAlpha:0, y:22, duration:.5 }, '-=.1')
  298. .from(ctx.q('.q-block'), { autoAlpha:0, x:fade ? 24 : -24, duration:.55, ease:'power2.out' }, '-=.2')
  299. .from(ctx.qAll('.q-ev .ev'), { autoAlpha:0, stagger:.08, duration:.3 }, '-=.25')
  300. .to({}, { duration:1.4 });
  301. return tl;
  302. };
  303. }
  304. SCREEN_TIMELINES['p5'] = qTimeline('p5', false);
  305. SCREEN_TIMELINES['p6'] = qTimeline('p6', true);
  306. SCREEN_TIMELINES['p7'] = qTimeline('p7', false);
  307. /* P8 附录 */
  308. SCREEN_TIMELINES['p8'] = function(ctx) {
  309. var tl = gsap.timeline();
  310. tl.from(ctx.q('.s-tag'), { autoAlpha:0, duration:.3 })
  311. .from(ctx.q('.s-title'), { autoAlpha:0, y:22, duration:.5 }, '-=.1')
  312. .from(ctx.qAll('.tbl tbody tr'), { autoAlpha:0, stagger:.03, duration:.25 }, '-=.2')
  313. .from(ctx.qAll('.s-foot-tags .tag'), { autoAlpha:0, y:8, stagger:.08, duration:.3 }, '-=.2')
  314. .to({}, { duration:1.2 });
  315. return tl;
  316. };
  317. /* P9 收口 */
  318. SCREEN_TIMELINES['p9'] = function(ctx) {
  319. var tl = gsap.timeline();
  320. tl.from(ctx.q('.s-tag'), { autoAlpha:0, duration:.4 })
  321. .from(ctx.q('.quote-line'), { autoAlpha:0, scale:.96, duration:.8, ease:'power2.out' }, '-=.1')
  322. .from(ctx.q('.s-sub'), { autoAlpha:0, y:14, duration:.5 }, '-=.3')
  323. .to({}, { duration:1.6 });
  324. return tl;
  325. };
  326. </script>
  327. <script>
  328. (function(){
  329. var played = {};
  330. function show(hash){
  331. if(!hash) hash = 'p1';
  332. document.querySelectorAll('.screen').forEach(function(s){
  333. s.style.display = (s.id === hash) ? 'flex' : 'none';
  334. });
  335. if(!played[hash] && typeof gsap !== 'undefined'){
  336. played[hash] = true;
  337. var fn = window.SCREEN_TIMELINES[hash];
  338. var el = document.getElementById(hash);
  339. if(fn && el) fn(baseCtx(el));
  340. }
  341. }
  342. /* 键盘翻页(本报告为单文件九屏,轻量自管;deck.js 兼容单 .screen 模式不冲突) */
  343. var order = ['p1','p2','p3','p4','p5','p6','p7','p8','p9'];
  344. function step(dir){
  345. var cur = order.indexOf((location.hash || '#p1').slice(1));
  346. var next = Math.min(order.length - 1, Math.max(0, cur + dir));
  347. location.hash = '#' + order[next];
  348. }
  349. window.addEventListener('hashchange', function(){ show(location.hash.slice(1)); });
  350. window.addEventListener('keydown', function(e){
  351. if(['ArrowDown','ArrowRight','PageDown',' '].includes(e.key)) { e.preventDefault(); step(1); }
  352. if(['ArrowUp','ArrowLeft','PageUp'].includes(e.key)) { e.preventDefault(); step(-1); }
  353. });
  354. if(document.readyState === 'loading'){
  355. document.addEventListener('DOMContentLoaded', function(){ show(location.hash.slice(1) || 'p1'); });
  356. } else { show(location.hash.slice(1) || 'p1'); }
  357. })();
  358. </script>
  359. </body>
  360. </html>