当前位置: 首页 > news >正文

活动汪活动策划网站整站优化seo

活动汪活动策划网站,整站优化seo,申请域名后 怎么把网站部署上去,经典软文范例大全之前提到了一些【通过Claude 生成图片的prompt集锦#xff08;一#xff09;】#xff0c;本篇沿着试着用prompt生成互动式网页 文章目录 1 什么是互动式网页#xff1f;1.1 一个#x1f330;1.1 核心能力列举1.3 部署方式 2 猜测秘塔AI搜索生成HTML的Prompt3 mozi大佬一】本篇沿着试着用prompt生成互动式网页 文章目录 1 什么是互动式网页1.1 一个1.1 核心能力列举1.3 部署方式 2 猜测秘塔AI搜索生成HTML的Prompt3 mozi大佬超长版HTML版本Prompt3.1 HTML 回复3.2 文本分析与概念图生成的HTML3.3 文档变思维导图 4 sandun大佬年报变HTML与PPT4.1 HTML Prompt4.2 网友改良版 1 什么是互动式网页 1.1 一个 可以看一下秘塔AI搜索AI检索完之后 有几种选项可以将内容转化为图片包括网页、展示海报、PPT这里的互动网页是本篇想了解的可以看一下效果 1.1 核心能力列举 由此来看互动式网页可能需要具备的几个核心能力 信息可视化重构 动态图表与卡片将文本数据自动转化为交互式图表折线图/饼图、分类卡片悬停显示详情。导航与目录生成为长文档如论文/报告自动生成带锚点跳转的目录结构支持快速定位。深色/浅色模式切换默认跟随系统设置用户可手动切换视觉主题 交互体验增强 微交互动效 按钮悬停放大与颜色渐变卡片浮动阴影与边框高亮页面滚动平滑过渡与内容淡入 动态内容加载 懒加载技术优化长页面性能分步展开复杂内容如教程步骤 多场景适配 响应式布局自动适配手机/平板/桌面端调整字体大小与元素排版。跨平台分享生成链接直接分享无需服务器部署如秘塔AI的一键分享功能 一般来说要完成以上的一些功能可能需要以下的一些技术组件 TailwindCSS快速构建响应式UI减少自定义CSS代码Prism.js代码块高亮显示支持多语言语法Lazy Loading延迟加载非首屏内容提升页面加载速度SVG动画生成可交互矢量图形如点击展开的流程图 1.3 部署方式 还没做具体探索一般在本地HTML直接打开为主或者直接保存图片。 或者 零代码托管上传HTML至免费平台如YourWare.so生成公开访问链接GitHub Pages开发者导向支持自定义域名但需处理网络访问限制 2 猜测秘塔AI搜索生成HTML的Prompt 笔者推测秘塔后台会根据用户搜索先生成一个专门的prompt然后在通过Prompt生成网页。 因为秘塔是开放prompt过程的这里笔者摘录 自己发挥一下 // Roles:擅长用html动画设计教学游戏的老师我们接收到的文件内容是关于{{股市赚钱效应分析}}。 我们将创建一个可视化网页来展示这些技术方案。 我们将以卡片列表的形式展示并包含标题、描述、实现步骤和代码示例高亮显示。 设计风格参考Linear App的简约现代设计使用TailwindCSS实现同时支持深色/浅色模式切换。 页面结构 1. 头部标题和简介 2. 主体10个技术方案的卡片 每个卡片包含 - 技术名称标题 - 简要描述 - 实现步骤有序列表 - 代码示例使用pre和code标签并应用代码高亮 3. 底部作者信息特制版本 我们将引入以下外部资源 - TailwindCSS 3.0CDN - Font Awesome图标CDN - 代码高亮使用Prism.jsCDN引入并选择适合的样式 - 对于深色/浅色模式我们将使用TailwindCSS的dark模式并通过JavaScript实现切换。 注意由于要求输出单一HTML文件我们将所有CSS和JavaScript内联。 步骤 1. 创建HTML骨架设置语言为zh-CN。 2. 在head中引入TailwindCSSCDN、Font AwesomeCDN、Prism.jsCDN和自定义样式如果需要。 3. 在body中构建页面结构。 4. 添加深色/浅色模式切换的JavaScript逻辑。 5. 使用TailwindCSS类进行样式设计并添加一些微交互效果如卡片悬停效果。 6. 使用Prism.js对代码块进行高亮处理注意需要在代码块中添加相应的语言类如language-css, language-javascript等。 7. 在底部添加作者信息。 由于内容较长我们将使用懒加载技术Intersection Observer来实现卡片内容的懒加载动画淡入效果。 性能优化我们将Prism.js的CSS和JS通过CDN引入并选择最小版本。 同时我们不会引入大图片所以不需要WebP转换。 注意由于要求压缩版HTML我们将在最后压缩HTML去除不必要的空格和换行但为了可读性我们先以可读方式编写最后再压缩。 开始编写代码 # 下面是根据您提供的文件内容创建的现代化可视化网页展示网页动画交互的各种技术方案 \ {{html code}} \文件内容为 \ 今天大A最高3497点距离3500点仅一步之遥创出年内新高可tm钱呢怎么指数越涨钱越少味道不对啊大哥~ 跟A股比起来有时候真不得不佩服美股实在太牛逼了顶着关税、大漂亮法案、超预期非农这三重压力完全无视滞胀风险继续勇创新高关键是真能挣到钱啊 说实话“美国例外论”的逻辑确实很无解基本面好企业盈利能力强涨基本面不好美联储降息流动性过剩涨一根筋变两头堵了属于是 \使用claude直接可以生成 这里笔者还看到百度的【网页工坊】也可以生成就是有点跑题 3 mozi大佬超长版HTML版本Prompt 3.1 HTML 回复 参考文章Canvas助手推荐2.5 Pro让模型用HTML回复支持Graphviz逻辑流程图、Echarts图表 需要在以下地址操作生成 https://aistudio.google.com/ 这位大佬分享了一个HTML生成的Prompt: !DOCTYPE html html langzh-CN head meta charsetUTF-8 meta nameviewport contentwidthdevice-width,initial-scale1.0 titleCanvas 助手/title scriptMathJax{chtml:{fontURL:https://cdn.jsdelivr.net/npm/mathjax3/es5/output/chtml/fonts/woff-v2}}/script script srchttps://cdn.jsdelivr.net/npm/mathjax3/es5/tex-chtml.js idMathJax-script async/script script srchttps://cdnjs.cloudflare.com/ajax/libs/viz.js/2.1.2/viz.js defer/script script srchttps://cdnjs.cloudflare.com/ajax/libs/viz.js/2.1.2/full.render.js defer/script script srchttps://unpkg.com/panzoom/panzoom4.5.1/dist/panzoom.min.js defer/script link hrefhttps://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-okaidia.min.css relstylesheet link hrefhttps://fonts.googleapis.com/css2?familyInter:wght400;500;600;700familyFiraCode:wght400;500displayswap relstylesheet link hrefhttps://fonts.googleapis.com/icon?familyMaterialIconsOutlined relstylesheet stylehtml,body{height:100%;margin:0;scroll-behavior:smooth}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;line-height:1.7;background-color:#f8faff;color:#374151;padding:10px;box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}.container{max-width:1100px;margin:10px auto;padding:20px;background-color:#fff;border-radius:.45rem;box-shadow:0 .4rem 1.2rem rgba(0,0,0,.06)}.material-icons-outlined{vertical-align:middle;font-size:1.15em;margin-right:.3em;line-height:1}h1.material-icons-outlined,h2.material-icons-outlined{font-size:1.1em;margin-right:.4em;color:#007bff}h3.material-icons-outlined,h4.material-icons-outlined,h5.material-icons-outlined{font-size:1.1em;margin-right:.4em;color:#4a5568}h1,h2,h3,h4,h5{color:#1f2937;margin:1.8em 0 1em;font-weight:600;display:flex;align-items:center;line-height:1.3}h1{font-size:2.6rem;letter-spacing:-.7px;border-bottom:1px solid #dde2e9;padding-bottom:.5em;margin:0 0 .8em}h2{font-size:2.1rem;border-bottom:1px solid #eef2f5;padding-bottom:.55em}h3{font-size:1.7rem}h4{font-size:1.35rem;color:#525860}.prompt-container h5{font-size:1.1rem;margin:1.8em 0 1em;padding-bottom:.3em;border-bottom:1px solid #e0e6ed}.sub-topic-heading{font-weight:600;margin-top:1.5em;margin-bottom:.7em;font-size:1.1rem;display:flex;align-items:center;line-height:1.4}.sub-topic-heading .material-icons-outlined{font-size:1.2em;margin-right:.4em}.text-primary{color:#007bff}.text-secondary{color:#525860}.text-accent1{color:#17a2b8}.text-accent2{color:#28a745}.text-accent3{color:#ffc107}.text-danger{color:#dc3545;font-weight:700}.text-warning{color:#ff8f00;font-weight:700}.text-highlight-green{color:#20c997;font-weight:600}.text-highlight-blue{color:#339AF0;font-weight:600}.text-highlight-purple{color:#AE3EC9;font-weight:600}p{margin-bottom:1.4em;color:#4b5563;font-size:1.05rem}strong,.strong-emphasis{font-weight:600;color:#007bff}.prompt-container strong{color:#2d3748}.prompt-container .strong-emphasis{color:#0056b3}.math-formula{font-size:1.3em;padding:10px;background-color:#f0f3f7;border-radius:.45rem;text-align:center;margin:15px 0;overflow-x:auto;border:1px solid #dfe5ec}.prompt-container .math-formula{margin:1.5em 0 1.8em}.two-col-grid-container .col .math-formula{margin-top:.5em;margin-bottom:0;font-size:1.1em}pre[class*language-]{padding:1.7em;margin:1.2em 0;overflow:auto;border-radius:.45rem;box-shadow:0 4px 12px rgba(0,0,0,.08);border:1px solid #dde2e9;background:#2d2d2d}code[class*language-],pre[class*language-]{font-family:Fira Code,SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:.93rem;line-height:1.5}:not(pre)code{font-family:Fira Code,SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;background-color:#f8f0f2;padding:.2em .4em;border-radius:.25rem;font-size:.9em;color:#bf0045;border:1px solid #f0e4e7}.code-wrapper{position:relative;margin:1.2em 0}.prompt-container .code-wrapper{margin:1.5em 0 2em}.code-wrapper pre[class*language-]{margin:0!important;padding-right:65px}.copy-button{position:absolute;top:.8em;right:.8em;z-index:5;padding:6px 12px;background-color:rgba(80,80,80,.8);color:#f0f4f8;border:1px solid rgba(255,255,255,.1);border-radius:.35rem;cursor:pointer;font-size:.78rem;opacity:.6;transition:opacity .25s ease,background-color .25s ease,transform .15s ease,box-shadow .25s ease;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-weight:500;line-height:1.2;box-shadow:0 2px 4px rgba(0,0,0,.2);outline:0;user-select:none}.code-wrapper:hover .copy-button,.copy-button:focus,.copy-button:hover{opacity:1;background-color:rgba(50,50,50,.95);transform:translateY(-1px);box-shadow:0 4px 8px rgba(0,0,0,.25)}.copy-button:active{transform:translateY(0);box-shadow:0 1px 3px rgba(0,0,0,.15)}media (max-width:768px){.copy-button{font-size:.75rem;padding:5px 9px;top:.6em;right:.6em}.code-wrapper pre[class*language-]{padding-right:55px}}.prompt-container{background-color:#edf2f7;border:1px solid #cbd5e0;border-radius:.45rem;padding:25px;margin-bottom:25px;box-shadow:0 3px 8px rgba(0,0,0,.04)}.prompt-containerh2:first-of-type{margin-top:1em}.prompt-container h2,.prompt-container h3,.prompt-container h4,.prompt-container h5{color:#2d3748;border-bottom-color:#cbd5e0}.prompt-container h3.material-icons-outlined{color:#2d3748}.prompt-container h3{margin-top:1.8em}.prompt-container h3ul{margin-bottom:1em}.prompt-container .content-box h4{margin-bottom:.8em}.prompt-container h2.material-icons-outlined,.prompt-container h5.material-icons-outlined{color:#4a5868}.prompt-container h2{font-size:1.9rem}.prompt-container h3{font-size:1.55rem;margin-top:2.2em}.prompt-container h4{font-size:1.25rem;margin-top:1.8em}.prompt-container li,.prompt-container p{color:#34495e;font-size:1.05rem}.prompt-container .mandatory-requirement{font-weight:700;color:#721c24;padding:12px 18px;border:2px solid #dc3545;background-color:#fddfe2;border-radius:.45rem;display:flex;align-items:center;margin:1.2em 0}.prompt-container .mandatory-requirement .material-icons-outlined{color:#dc3545;font-size:1.6em;margin-right:.6em;flex-shrink:0}.prompt-container .mandatory-requirement .instruction-chinese{font-weight:700;color:#c0392b;display:block;margin-top:8px}.prompt-container .mandatory-requirement code{background-color:#fbecee;border-color:#f8d7da;color:#a92330}.prompt-container ul{list-style-type:none;padding-left:0;margin-bottom:0}.prompt-container ul li{margin-bottom:.8em;padding-left:1.5em;position:relative}.prompt-container ul li:last-child{margin-bottom:0}.prompt-container ul li .material-icons-outlined{position:absolute;left:0;top:4px;font-size:1.25em;color:#0277bd;margin-right:.5em}.prompt-container ul li:has(.material-icons-outlined){padding-left:2em}.prompt-container .manual-list-item{margin-bottom:.8em;padding-left:2em;position:relative;color:#34495e;font-size:1.05rem;line-height:1.6}.prompt-container .manual-list-item:last-child{margin-bottom:0}.prompt-container .manual-list-item .material-icons-outlined{position:absolute;left:0;top:4px;font-size:1.25em;margin-right:.5em;color:#0277bd}.prompt-container .config-color-note .material-icons-outlined{top:6px;color:#ff8f00;font-size:1.25em;vertical-align:text-bottom}.content-box .config-color-note ol,.two-col-grid-container ol{margin-top:.6em;margin-bottom:0;color:#34495e;font-size:1rem}.content-box .config-color-note ol li,.two-col-grid-container ol li{font-size:inherit;padding-left:0;margin-bottom:.5em;line-height:1.7}.content-box .config-color-note ol li:last-child,.two-col-grid-container ol li:last-child{margin-bottom:0}#graph-container{width:100%;max-width:900px;margin:25px auto;padding-top:70px;box-sizing:border-box;background-color:#fff;border:1px solid #dde2e9;border-radius:.45rem;box-shadow:0 .4rem 1.2rem rgba(0,0,0,.06);position:relative;overflow:hidden}.prompt-container #graph-container{margin:20px auto 30px;background-color:#fff}#graph-output{display:flex;justify-content:center;align-items:center;min-height:350px;padding:30px;background-color:#fff}#graph-output svg{display:block;width:100%;max-width:100%;height:auto}#graph-controls-container{position:absolute;top:20px;right:20px;display:flex;gap:14px;z-index:10}.graph-button{padding:9px 15px;background-color:rgba(50,50,50,.8);color:#f0f4f8;border:none;border-radius:.35rem;cursor:pointer;font-size:.88rem;opacity:.9;transition:opacity .2s ease,background-color .2s ease,transform .15s ease,box-shadow .15s ease;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-weight:500;line-height:1.2;display:inline-flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 2px 5px rgba(0,0,0,.12)}.graph-button:hover{opacity:1;background-color:rgba(30,30,30,.9);transform:translateY(-2px);box-shadow:0 4px 8px rgba(0,0,0,.18)}.graph-button:active{transform:translateY(0);box-shadow:0 1px 3px rgba(0,0,0,.1)}.graph-button:disabled{opacity:.65;cursor:not-allowed;background-color:rgba(50,50,50,.8);transform:translateY(0);box-shadow:0 1px 3px rgba(0,0,0,.08)}.graph-button .svg-icon{width:1.25em;height:1.25em;fill:currentColor}.graph-button .material-icons-outlined{font-size:1.4em;margin-right:0}#layout-toggle-button{min-width:48px;font-weight:500;font-size:1rem}#layout-toggle-button.loading .material-icons-outlined{font-size:1.4em}keyframes spin{to{transform:rotate(1turn)}}.icon-spin{animation:spin 1.5s linear infinite;display:inline-block}#zoom-modal{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(25,28,32,.95);z-index:1000;justify-content:center;align-items:center;overflow:hidden;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}#zoom-content{position:relative;width:97%;height:97%;background-color:#fff;overflow:hidden;display:flex;justify-content:center;align-items:center;border-radius:calc(.45rem* 2);box-shadow:0 25px 60px rgba(0,0,0,.35)}#zoom-content svg{max-width:none;max-height:none;width:100%;height:100%;cursor:grab;display:block}#zoom-content svg:active{cursor:grabbing}#close-zoom{position:absolute;top:12px;right:12px;background:rgba(50,50,50,.85);color:#fff;border:none;border-radius:50%;width:48px;height:48px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1001;transition:background-color .25s ease;box-shadow:0 3px 12px rgba(0,0,0,.3)}#close-zoom:focus-visible,#close-zoom:hover{background:rgba(20,20,20,.95);outline:0}#close-zoom .material-icons-outlined{font-size:30px;margin-right:0}.two-col-grid-container .col p:last-of-type{margin-bottom:0}.section-divider{border:0;height:1px;background-color:#e2e8f0;margin:2.5em 0}.two-col-grid-container{display:grid;grid-template-columns:1fr;gap:25px;margin-bottom:1.5em;align-items:stretch}.two-col-grid-container .col:first-child{margin-top:0}.two-col-grid-container .col:last-child{margin-bottom:0}.two-col-grid-container h4{margin-top:.8em}.two-col-grid-container .col p{margin-bottom:.8em}.content-box{margin-top:1.5em;margin-bottom:1.5em}.content-box:first-child{margin-top:0}.content-box:last-child{margin-bottom:0}media (min-width:769px){.two-col-grid-container{grid-template-columns:repeat(2,1fr);gap:30px}.content-box{background-color:#fff;border:1px solid #e2e8f0;border-radius:.45rem;padding:20px 22px;box-shadow:0 2px 5px rgba(0,0,0,.04);box-sizing:border-box}.two-col-grid-container .col{background-color:#fff;border:1px solid #e2e8f0;border-radius:.45rem;padding:20px 22px;box-shadow:0 2px 5px rgba(0,0,0,.04);box-sizing:border-box}}media (max-width:768px){.content-box{margin-top:0}.content-boxh4:first-child{margin-top:1.8em}.content-box.manual-list-item:last-child{margin-bottom:.8em}}media (max-width:768px){body{padding:10px;font-size:.96rem}.container{padding:15px;margin:10px auto}h1{font-size:2rem;margin-bottom:.7em}h2{font-size:1.6rem}h3{font-size:1.35rem}h4{font-size:1.15rem}h5{font-size:1rem}.prompt-containerh2:first-of-type{margin-top:.8em}.prompt-container h2{font-size:1.5rem}.prompt-container h3{font-size:1.25rem;margin-top:2em}.prompt-container h4{font-size:1.1rem;margin-top:1.6em}.prompt-container h5{font-size:1rem;margin-top:1.5em}pre[class*language-],.code-wrapper{font-size:.88rem;padding:1.2em}.math-formula{font-size:1.15em;padding:8px}#graph-container{padding-top:60px}.prompt-container #graph-container{margin:20px auto}#graph-output{min-height:280px}#graph-controls-container{top:12px;right:12px;gap:8px}.graph-button{font-size:.8rem;padding:7px 10px}.graph-button .material-icons-outlined,.graph-button .svg-icon{font-size:1.25em}#layout-toggle-button{min-width:40px;font-size:.9rem}#layout-toggle-button.loading .material-icons-outlined{font-size:1.25em}#close-zoom{width:40px;height:40px}#close-zoom .material-icons-outlined{font-size:24px}.section-divider{margin:2em 0}.two-col-grid-container{margin-bottom:1em}.content-box{margin-bottom:1em}.two-col-grid-container .col:last-child{margin-bottom:1.4em}.two-col-grid-container .col:last-child:last-child{margin-bottom:0}.two-col-grid-container .col .math-formula{margin-bottom:1.4em}.two-col-grid-container .col p:last-of-type{margin-bottom:1.4em}.two-col-grid-container .col:last-child p:last-of-type{margin-bottom:0}}media (max-width:480px){body{padding:5px}.container{padding:10px;margin:5px auto}h1{font-size:1.7rem;margin-bottom:.6em}h2{font-size:1.4rem}h3{font-size:1.2rem}h4{font-size:1.05rem}h5{font-size:.95rem}.prompt-container{padding:15px}.prompt-containerh2:first-of-type{margin-top:.6em}.prompt-container h2{font-size:1.3rem}.prompt-container h3{font-size:1.1rem;margin-top:1.8em}.prompt-container h4{font-size:1rem;margin-top:1.5em}.prompt-container h5{font-size:.9rem}.prompt-container .manual-list-item,.prompt-container li,.prompt-container p,.two-col-grid-container ol,.content-box .config-color-note ol{font-size:.9rem}.prompt-container .mandatory-requirement{padding:8px 12px;font-size:.85rem}.prompt-container .mandatory-requirement .material-icons-outlined{font-size:1.2em}.prompt-container .manual-list-item,.prompt-container ul li{padding-left:1.2em}.prompt-container .manual-list-item,.prompt-container ul li:has(.material-icons-outlined){padding-left:1.8em}#graph-controls-container{flex-direction:column;align-items:flex-end;gap:8px}#graph-container{padding-top:140px}.graph-button{width:auto;min-width:130px;justify-content:flex-start}.section-divider{margin:1.8em 0}.two-col-grid-container{gap:20px}} /style /head body div classcontainer h1span classmaterial-icons-outlineddraw/span span classtext-primaryCanvas 助手/span span classtext-secondary说明与示例/span/h1 div classprompt-container p classmandatory-requirement stylemargin-top:1em span classmaterial-icons-outlinederror_outline/span span绝对强制性要求您提供的每个响应都必须是结构完整且语法有效的 HTML 文档。这意味着以 codelt;!DOCTYPE htmlgt;/code 开头并以 codelt;/htmlgt;/code 结尾strong所有输出内容都要完整地包含在此 HTML 结构中/strong。HTML 代码必须放在 Markdown 代码块中使用 “code/code” 符号。请勿添加注释。此段要求不要显示到最终的页面上。 /span /p p在遵守上述strong classtext-danger绝对强制性要求/strong的同时所有响应还必须遵循以下原则。strong classtext-accent1/strong/p h3span classmaterial-icons-outlinedchecklist_rtl/span1. 输出原则/h3 div classtwo-col-grid-container div classcol ul lispan classmaterial-icons-outlinedtrack_changes/spanstrong目标/strong生成功能齐全、视觉效果优秀且交互流畅的 HTML。优先考虑strong classstrong-emphasis美观性和可用性/strong。/li lispan classmaterial-icons-outlinedstyle/spanstrongCSS/strongstrong classstrong-emphasis必须/strong嵌入在 codelt;stylegt;/code 标签内。力求样式简洁、现代且美观。/li lispan classmaterial-icons-outlineddevices_other/spanstrong响应式/strong布局和内容strong classstrong-emphasis必须/strong适应不同的屏幕尺寸。/li /ul /div div classcol ul lispan classmaterial-icons-outlineddynamic_feed/span利用 HTML 的灵活特性并发挥其优势。/li lispan classmaterial-icons-outlinedpalette/spanstrong classstrong-emphasis必须/strong使用不同的颜色来突出或强调文本。/li lispan classmaterial-icons-outlinedemoji_objects/spanstrong图标使用/strong图标应增强理解、引导注意力并改善视觉效果而非无处不在。/li /ul /div /div hr classsection-divider h3span classmaterial-icons-outlinedfunctions/span2. 数学可选/h3 ul listrong数学/strongstrong classstrong-emphasis必须/strong使用 MathJax (CHTML) 在 HTML 页面内渲染。/strongstrong classstrong-emphasis严格/strong按照下面的示例格式提供数学内容使用 MathJax 指定的“标记”将 LaTeX 代码包裹起来。/li /ul div classtwo-col-grid-container div classcol p classsub-topic-heading text-highlight-bluespan classmaterial-icons-outlinedhorizontal_rule/span行内公式/p p嵌入文本中使用 code\( ... \)/code 作为分隔符例如著名的质能方程 strong classtext-primary\( \color{#007bff}{E} \color{#28a745}{m}\color{#dc3545}{c}^2 \)/strong。/p /div div classcol p classsub-topic-heading text-highlight-purplespan classmaterial-icons-outlinedsubject/span块级公式/p p块级公式单独成行并居中显示使用 code\[ ... \]/code 作为分隔符。例如经典的欧拉恒等式/p div classmath-formula\[ \color{#AE3EC9}{e}^{\color{#ff8f00}{i\pi}} \color{#AE3EC9}{} \color{#17a2b8}{1} \color{#374151}{0} \]/div /div /div hr classsection-divider h3span classmaterial-icons-outlinedcode/span3. 代码可选/h3 ul lispan classmaterial-icons-outlined stylecolor:#28a745colorize/spanstrong classtext-accent2代码高亮/strong如果包含代码块将使用 strong classstrong-emphasisPrism.js/strong 进行语法高亮。/li lispan classmaterial-icons-outlined stylecolor:#28a745content_copy/spanstrong classtext-accent2复制功能提示/strong页面中出现的任何代码块其右上角将自动提供“复制”按钮点击即可复制代码到剪贴板并显示操作成功提示“已复制!”。/li /ulp stylemargin-top: 1.8em; margin-bottom: 0.8em;下面是一个 JavaScript 代码块示例右上角会自动显示一个 strong classstrong-emphasis“复制”/strong 按钮/p precode classlanguage-javascriptfunction greet(name) {// 返回一个问候字符串return 你好, ${name}! 欢迎使用 Canvas 助手。; }// 调用函数并打印到控制台 console.log(greet(开发者));/code/pre hr classsection-divider h3span classmaterial-icons-outlinedvisibility/span4. 图形可视化可选/h3 div classtwo-col-grid-container div classcol h4span classmaterial-icons-outlinedbar_chart/spanECharts/h4 p使用 strong classstrong-emphasisECharts/strong 提供交互式图表。库依赖项推荐应按需选择/p pECharts 核心库 (2D 图表): codehttps://cdn.jsdelivr.net/npm/echarts5.5.0/dist/echarts.min.js/code/p pECharts-GL (3D 图表, 依赖核心库): codehttps://cdn.jsdelivr.net/npm/echarts-gl2.0.9/dist/echarts-gl.min.js/code/p /div div classcol h4span classmaterial-icons-outlined stylecolor:#673AB7gesture/span span stylecolor:#673AB7SVG (可缩放矢量图形)/span/h4 p您可以直接在 HTML 中嵌入 strong classstrong-emphasisSVG (Scalable Vector Graphics)/strong 代码来渲染矢量图形。这对于创建图标、简单的图示、或当您需要通过代码精确控制图形细节时非常有用。SVG 图形是基于 XML 的可以在不损失质量的情况下缩放。/p /div /div div classcontent-box h4span classmaterial-icons-outlinedhub/spanGraphviz/h4 div classmanual-list-item span classmaterial-icons-outlinedbiotech/span strong技术/strong在 HTML 页面内使用 DOT 语言描述结合 Viz.js (用于前端 SVG 渲染) 和 Panzoom.js (用于交互式缩放/平移)。 /div div classmanual-list-item config-color-note span classmaterial-icons-outlinedcolor_lens/span strong配置与颜色 (span classtext-warning重要/span):/strong ol stylepadding-left:20px;list-style-type:decimal listrong节点填充/strong通常设置 codestylefilled/code, codefillcolor/code。/li listrong无 CSS 变量/strong在 DOT 字符串中定义颜色时例如 codefillcolor/code, codecolor/codestrong classtext-danger严格禁止/strong使用 CSS 变量 (codevar(...)/code)。strong classstrong-emphasis必须/strong使用直接的颜色值例如 code#E8F5E9/code, codelightgrey/code, codeblue/code。/li listrong颜色对比/strong节点 codefillcolor/code 和文本strong classstrong-emphasis必须/strong具有高对比度。/li /ol /div /div h5span classmaterial-icons-outlined stylecolor:#ffc107schema/spanspan classtext-accent3Graphviz 示例简单流程图/span/h5 p这是一个使用 Graphviz 描绘的简单流程图。strong请严格参考此示例的实现。/strong/p div idgraph-container div idgraph-controls-container button idzoom-button classgraph-button title全屏查看与交互svg classsvg-icon xmlnshttp://www.w3.org/2000/svg viewBox0 0 24 24path dM7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z//svg span全屏/span/button button idlayout-toggle-button classgraph-button title切换布局方向/button button iddownload-button classgraph-button title下载 PNG 图片svg classsvg-icon xmlnshttp://www.w3.org/2000/svg viewBox0 0 24 24path dM5 20h14v-2H5v2zm14-9h-4V3H9v8H5l7 7 7-7z//svg span下载/span/button /div div idgraph-output/div /div div idzoom-modal roledialog aria-modaltrue aria-labelledbyzoom-modal-title div idzoom-content/div button idclose-zoom title关闭全屏 aria-label关闭全屏span classmaterial-icons-outlinedclose/span/button h2 idzoom-modal-title styledisplay:none图表全屏交互视图/h2 /div /div /div script srchttps://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-core.min.js defer/script script srchttps://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js defer/scriptscript document.addEventListener(DOMContentLoaded,(){document.querySelectorAll(pre code[class*language-]).forEach(e{const te.parentNode;if(t.parentNode.classList.contains(code-wrapper))return;const odocument.createElement(div);o.classNamecode-wrapper,t.parentNode.insertBefore(o,t),o.appendChild(t);const ndocument.createElement(button);n.classNamecopy-button,n.textContent复制,n.title复制代码到剪贴板,o.appendChild(n);let anull;const in.textContent,rn.style.backgroundColor;n.addEventListener(click,(){aclearTimeout(a),navigator.clipboard.writeText(e.textContent).then((){n.textContent已复制!,n.style.backgroundColor#28a745,asetTimeout((){n.textContenti,n.style.backgroundColorr,anull},1800)})})});const edocument.getElementById(graph-output),tdocument.getElementById(zoom-button),odocument.getElementById(layout-toggle-button),ndocument.getElementById(download-button),adocument.getElementById(zoom-modal),idocument.getElementById(zoom-content),rdocument.getElementById(close-zoom);let lnull,snull,cLR;const usetInterval((){if(undefined!typeof Vizvoid 0!Viz.prototype.renderSVGElement){clearInterval(u);(snew Viz({worker:void 0}))(p(),m(c));}},100);const S digraph SimpleGraph {graph [labelloct, label简单流程图示例, fontsize18, fontnameInter, sans-serif, bgcolortransparent, pad0.5, splinesortho];node [fontnameInter, sans-serif, fontsize11, stylefilled,rounded, color#666, shapebox, margin0.2,0.1];edge [fontsize9, fontnameInter, sans-serif, color#888, arrowsize0.7];A [label步骤 A, fillcolor#E0E7FF];B [label步骤 B, fillcolor#D1FAE5];C [label步骤 C, fillcolor#FEF3C7];A - B [label过程 1];B - C [label过程 2];};const ge{ll.zoomWithWheel(e.preventDefault(),l.zoomWithWheel(e))};function p(){if(!o||!s)return;const eTBc?LR:TB;o.textContente,o.title切换到 ${e} 布局,o.disabled!1;}async function m(d){if(!s || !e || !i) return;const rButtons [o,t,n];rButtons.forEach(btn { if(btn) btn.disabled true; });if (e) e.innerHTML ; let uS.replace(/rankdir\s*\s*\w\s*,?/gi,);const hu.match(/(\s*graph\s*\[)([^\]]*?)(\s*\])/);if(h){let eh[2].trim();e.length0!e.endsWith(,)(e,),uu.replace(/(\s*graph\s*\[)[^\]]*?(\s*\])/,$1 ${e} rankdir${d} $2)}const svgElement await s.renderSVGElement(u);e.appendChild(svgElement);i.innerHTML ;i.appendChild(svgElement.cloneNode(true));const zoomSvg i.querySelector(svg);if(zoomSvg undefined ! typeof Panzoom) {if(l l.destroy) {i.removeEventListener(wheel, g);l.destroy();}l Panzoom(zoomSvg, { maxZoom: 15, minZoom: .05, contain: outside, canvas: true });i.addEventListener(wheel, g, { passive: false });}c d;p();rButtons.forEach(btn { if(btn) btn.disabled false; });}eotnair(o.addEventListener(click,()m(TBc?LR:TB)),t.addEventListener(click,(){l(a.style.displayflex,document.body.style.overflowhidden,l.reset({animate:!0}),r.focus())}));const h(){a.style.displaynone,document.body.style.overflow};rr.addEventListener(click,h),document.addEventListener(keydown,e{Escapee.keyh()});setTimeout((){void 0!window.PrismPrism.highlightAllPrism.highlightAll()},300) }); /script /body /html内容非常长用Google ai studio生成最为通顺需要现在下面的【系统指令设置】中复制这段prompt,然后输入想生成的内容 笔者生成的内容 据说还是可以生成echart表格的 3.2 文本分析与概念图生成的HTML 该大佬另一个prompt来自 【提示词工程】文本分析专家HTML页面助力理解文本内容Graphviz逻辑流程图辅助理解 仍然需要在以下地址操作生成 https://aistudio.google.com/ prompt为 !DOCTYPE html html langzh-CN headmeta charsetUTF-8meta nameviewport contentwidthdevice-width,initial-scale1.0titleAI指令文本分析与交互式HTML生成/titlescript srchttps://cdnjs.cloudflare.com/ajax/libs/viz.js/2.1.2/viz.js/scriptscript srchttps://cdnjs.cloudflare.com/ajax/libs/viz.js/2.1.2/full.render.js/scriptscript srchttps://unpkg.com/panzoom/panzoom4.5.1/dist/panzoom.min.js/scriptscript async srchttps://cdn.jsdelivr.net/npm/mathjax3/es5/tex-chtml.js/script style:root{--rad:4px;--text-pri:#1f2937;--text-sec:#4b5563;--bg-main:#fff;--bg-page:#f3f4f6;--bg-panel:#f9fafb;--bord-soft:#e5e7eb;--bord-med:#d1d5db;--brand:#2563eb;--brand-light:#dbeafe;--anim-fast:.25s;--anim-norm:.4s;--map-node-active-stroke:var(--brand);--map-node-active-stroke-width:2.5px;--map-node-non-interactive-font-color:#6b7280;--map-node-non-interactive-border-color:#adb5bd}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;line-height:1.65;margin:0;background-color:var(--bg-page);color:var(--text-pri)}.pw{max-width:1366px;margin:16px auto;padding:0 24px}.cc{background-color:var(--bg-main);box-shadow:0 2px 8px #0000000f;border-radius:var(--rad)}.la{display:flex;border-bottom:1px solid var(--bord-soft)}.rc{flex:3;padding:24px 32px;border-right:1px solid var(--bord-soft)}.ep{flex:2;padding:24px 32px;background-color:var(--bg-panel);position:-webkit-sticky;position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto;align-self:flex-start}.rc h1,.ep h2{color:var(--text-pri);font-weight:600;margin-top:0;border-bottom:1px solid var(--bord-soft);padding-bottom:10px;margin-bottom:16px}.rc h1{font-size:1.75rem}.ep h2{font-size:1.375rem}.msh{display:flex;justify-content:space-between;align-items:center;padding:16px 32px 8px;border-bottom:1px solid var(--bord-soft);margin-bottom:16px}.msh h2{font-size:1.375rem;color:var(--text-pri);font-weight:600;margin:0;padding:0;border-bottom:none;flex-grow:1}.mhc{display:flex;gap:8px}p,ol,ul{margin-bottom:1.2em}ol,ul{padding-left:20px}.tm{padding:.1em .3em;margin:0 .05em;border-radius:3px;cursor:pointer;transition:background-color var(--anim-fast) ease,box-shadow var(--anim-fast) ease,color var(--anim-fast) ease;border:1px solid transparent;position:relative}.tm:hover{box-shadow:0 0 4px #0000001a}.tmc{background-color:#fef3c7;border-color:#fde68a}.tmb{background-color:#d1fae5;border-color:#a7f3d0}.tmt{background-color:#dbeafe;border-color:#bfdbfe}.tma{background-color:#fee2e2;border-color:#fecaca}.ei .tm{background-color:var(--brand-light);border:1px solid var(--brand);color:var(--brand)}.ei .tm:hover{background-color:var(--brand);color:white}.tm.active{background-color:var(--brand);color:white;border-color:var(--brand);box-shadow:0 0 6px #2563eb66}keyframes slideUpFadeIn{0%{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}keyframes simpleFadeIn{0%{opacity:0}to{opacity:1}}#explain-content.ph{color:var(--text-sec);font-style:italic;text-align:center;margin-top:40px;animation:simpleFadeIn var(--anim-norm) ease-out forwards}#explain-content.ei{margin-bottom:16px;padding:16px;background-color:var(--bg-main);border:1px solid var(--bord-soft);border-left:4px solid var(--brand);border-radius:var(--rad);box-shadow:0 1px 3px #0000000a;animation:slideUpFadeIn var(--anim-norm) ease-out forwards}.eih{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.eih h3{margin-top:0;font-size:1.125rem;color:var(--brand);margin-bottom:0;flex-grow:1}.gsb{background:0 0;border:none;padding:4px;cursor:pointer;color:#9ca3af;display:inline-flex;align-items:center;margin-left:8px;line-height:1}.gsb svg{width:1.1em;height:1.1em}.gsb:hover{opacity:.8}.ei p{margin-bottom:.75em;font-size:.9rem}.ei strong{color:#374151;font-weight:600}.ei p:last-child{margin-bottom:0}.ms{background-color:var(--bg-main)}#map-canvas-wrap{padding:16px 32px 24px;box-sizing:border-box;position:relative;overflow:hidden}#map-out{display:flex;justify-content:center;align-items:center;min-height:300px;border:1px solid var(--bord-soft);border-radius:var(--rad);background-color:#fdfdfe;transition:opacity var(--anim-fast) ease-in-out}#map-out.ld{opacity:.5}#map-out svg{display:block;width:100%;max-width:100%;height:auto;max-height:100%}#map-out svg .node{cursor:pointer}#map-out svg .node[data-iafalse]{cursor:default}#map-out svg .node.mnapolygon,#map-out svg .node.mnaellipse{stroke:var(--map-node-active-stroke)!important;stroke-width:var(--map-node-active-stroke-width)!important;transition:stroke var(--anim-fast) ease,stroke-width var(--anim-fast) ease}#map-out svg .edge text{cursor:pointer}.mcb{padding:6px 10px;background-color:#f9fafb;color:var(--text-sec);border:1px solid var(--bord-med);border-radius:var(--rad);cursor:pointer;font-size:.75rem;z-index:10;transition:background-color var(--anim-fast) ease,color var(--anim-fast) ease,border-color var(--anim-fast) ease;font-family:inherit;line-height:1.2;display:inline-flex;align-items:center;gap:5px}.mcb:hover{background-color:#f3f4f6;color:var(--text-pri);border-color:#9ca3af}.mcb:disabled{cursor:not-allowed;opacity:.7}.mcb svg{width:1.1em;height:1.1em;vertical-align:middle;fill:currentColor}#map-layout-btn{width:75px;justify-content:center}#map-download-btn svg{transform:translateY(1px)}#map-zoom-modal{display:flex;position:fixed;top:0;left:0;width:100%;height:100%;background-color:#1f2937d9;z-index:1000;justify-content:center;align-items:center;overflow:hidden;backdrop-filter:blur(2px);opacity:0;visibility:hidden;transform:scale(.95) translateY(10px);transition:opacity var(--anim-fast) ease-out,transform var(--anim-fast) ease-out,visibility 0s linear var(--anim-fast)}#map-zoom-modal.vis{opacity:1;visibility:visible;transform:scale(1) translateY(0);transition-delay:0s}#map-zoom-display{position:relative;width:95%;height:95%;background-color:var(--bg-main);overflow:hidden;display:flex;justify-content:center;align-items:center;border-radius:calc(var(--rad)*1.5);box-shadow:0 10px 30px #00000026}#map-zoom-display svg{max-width:none;max-height:none;width:100%;height:100%;cursor:grab;display:block}.rc code{background-color:var(--bg-page);padding:.1em .3em;border-radius:3px;font-size:.9em}.rc pre{background-color:var(--bg-page);padding:1em;border-radius:var(--rad);overflow-x:auto;margin-bottom:1.2em;font-size:.9em}.rc pre code{background-color:transparent;padding:0;border-radius:0;font-size:1em}#map-zoom-display svg:active{cursor:grabbing}#close-map-zoom-btn{position:absolute;top:16px;right:16px;background:#374151b3;color:white;border:none;border-radius:50%;width:36px;height:36px;font-size:20px;line-height:36px;text-align:center;cursor:pointer;z-index:1001;transition:background-color var(--anim-fast) ease,transform .15s ease}#close-map-zoom-btn:hover{background:#1f2937e6;transform:scale(1.05)}#gsp{position:fixed;background-color:#fff;color:#333;padding:6px 12px;border-radius:var(--rad);font-size:.8rem;font-weight:500;z-index:1050;border:1px solid #ccc;cursor:pointer;box-shadow:0 3px 8px #00000026;opacity:0;visibility:hidden;transition:opacity .15s ease,visibility 0s linear .15s,transform .15s ease;transform:translateY(8px) scale(.95);white-space:nowrap;display:inline-flex;align-items:center}#gsp.vis{opacity:1;visibility:visible;transform:translateY(0) scale(1);transition-delay:0s,0s,0s}#gsp svg{width:1.1em;height:1.1em;vertical-align:middle;margin-right:6px}#gsp:hover{background-color:#f8f9fa;border-color:#bbb}#pfb{position:fixed;top:16px;right:16px;z-index:1005;background-color:#ffffffd9;border:1px solid var(--bord-med);border-radius:50%;width:36px;height:36px;padding:0;display:flex;justify-content:center;align-items:center;cursor:pointer;box-shadow:0 1px 4px #0000001a;transition:background-color var(--anim-fast) ease,border-color var(--anim-fast) ease}#pfb:hover{background-color:white;border-color:var(--text-sec)}#pfb svg{width:18px;height:18px;fill:var(--text-sec);transition:fill var(--anim-fast) ease}#pfb:hover svg{fill:var(--text-pri)}media (max-width:900px){.pw{margin:0;padding:0}.cc{border-radius:0;box-shadow:none}.la{flex-direction:column}.rc{border-right:none;border-bottom:1px solid var(--bord-soft);padding:20px}.ep{padding:20px;min-height:200px;position:static;height:auto;max-height:none;align-self:auto}.msh{padding:16px 20px 8px;flex-wrap:wrap}.msh h2{font-size:1.25rem;width:100%;margin-bottom:8px}.mhc{width:100%;justify-content:flex-end}#map-canvas-wrap{padding:16px 20px 20px}.rc h1{font-size:1.5rem}.ep h2{font-size:1.25rem}#pfb{top:10px;right:10px}}/style /head body button idpfb title全屏svg classie viewBox0 0 24 24 xmlnshttp://www.w3.org/2000/svgpath dM7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z//svgsvg classic styledisplay:none viewBox0 0 24 24 xmlnshttp://www.w3.org/2000/svgpath dM5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z//svg/button div classpw div classcc div classla main classrch1AI 指令文本分析与交互式HTML生成/h1pstrong角色:/strong span classtm tmc data-idrole_expert title点击查看解释文本分析专家/span/ppstrong核心任务 (Core Task):/strong 当用户发送给你一段文字时你的任务是/polli深入span classtm tmb data-idtask_analyze_text title点击查看解释分析文本内容/span提取span classtm tmt data-idtask_extract_concepts title点击查看解释关键概念/span、span classtm tmt data-idtask_extract_terms title点击查看解释术语/span及其span classtm tma data-idtask_extract_relations title点击查看解释相互关系/span。/lili基于你的分析生成一个结构完整、语法有效的 span classtm tmb data-idtask_generate_html title点击查看解释HTML 文档/span。此 HTML 文档的目的是通过span classtm tma data-idtask_interactive_visual title点击查看解释交互式和可视化的方式/span帮助用户理解原始文本。/li/olpstrong绝对关键span classtm tmc data-idhtml_standard title点击查看解释HTML 黄金标准/span/strongbr此 HTML 页面本身即为你的黄金标准。strong你必须严格遵循此页面所展示的span classtm tmt data-idstandard_functionality title点击查看解释基础功能/span、span classtm tmt data-idstandard_structure title点击查看解释结构/span、span classtm tmt data-idstandard_interaction title点击查看解释交互逻辑/span、span classtm tmt data-idstandard_css title点击查看解释CSS 风格/span和 span classtm tmt data-idstandard_js_libs title点击查看解释JavaScript 库/span。/strong/ppem(注意此页面的完整代码即为该“span classtm tmc data-idhtml_standard title点击查看解释HTML 黄金标准/span”的直接体现它作为此指令一部分的引用和演示本身不是一个由您动态生成的“代码块特性”的实例而是您需要严格遵循的模板。)/em/phr styleborder:0;border-top:1px solid var(--bord-soft);margin:2em 0pstrongspan classtm tmc data-idoutput_reqs title点击查看解释输出格式的强制性要求 (Mandatory Output Format Requirements)/span:/strong/pulli你的每一个回答都strong必须/strong是一个从 codelt;!DOCTYPE htmlgt;/code 开始到 codelt;/htmlgt;/code 结束的span classtm tmb data-idoutput_full_html title点击查看解释完整 HTML 文档/span。/lili整个 HTML 文档strong必须/strong被包裹在 span classtm tmt data-idoutput_markdown_wrapper title点击查看解释Markdown 的代码块/span中即使用三个反引号 (codehtml ... /code)。/li/ulpstrongspan classtm tmc data-idhtml_gen_guides title点击查看解释HTML 生成指南/span (在严格遵循此 HTML 页面本身作为黄金标准的前提下):/strong/pollistrong响应式设计 (Responsive Design):/strongulli布局与内容strong必须/strong能适应不同尺寸的屏幕。/li/ul/lilistrong内容特性 (Content Features):/strongullispan classtm tmt data-idfeature_math title点击查看解释数学公式 (Mathematics)/span: strong必须/strong使用 MathJax (CHTML) 在 HTML 页面内渲染。/lilispan classtm tmt data-idfeature_code title点击查看解释代码块 (Code Blocks)/span: strong必须/strong使用 codelt;pregt;lt;code classlanguage-LLLgt;/code (LLL 为具体语言如 codejavascript/code, codepython/code 等) 标签包裹并在 HTML 页面内实现语法高亮和水平滚动 (codeoverflow-x: auto/code)。/lilistrong创造性与灵活性 (Creativity and Flexibility):/strong 在严格遵循此 HTML 页面作为黄金标准的基础上充分利用 HTML、CSS 和 JavaScript 的能力创造出信息丰富、易于理解的解释性页面。/li/ul/li/ol /main aside classep h2概念详解/h2 div idexplain-content aria-livepolitep classph点击指令中的高亮术语或图谱中的节点/关系查看相关解释。/p/div /aside /div section classms div classmsh h2指令概念图谱/h2 div classmhc button idmap-zoom-btn classmcb title全屏查看与交互svg xmlnshttp://www.w3.org/2000/svg viewBox0 0 24 24path dM7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z//svgspan全屏/span/button button idmap-layout-btn classmcb title切换布局方向LR/button button idmap-download-btn classmcb title下载关系图 (PNG)svg xmlnshttp://www.w3.org/2000/svg viewBox0 0 24 24path dM19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z//svgspan下载/span/button /div /div div idmap-canvas-wrapdiv idmap-out/div/div /section /div /div div idmap-zoom-modal classmzm div idmap-zoom-display classmzd/div button idclose-map-zoom-btn classczb title关闭×/button /div scriptconst notes{role_expert:{t:角色: 文本分析专家,type:concept,d:指定AI扮演的角色专注于文本理解和结构化信息呈现。,r:[task_analyze_text,task_generate_html]},task_analyze_text:{t:分析文本内容,type:branch,d:核心任务之一深入理解文本提取关键信息。,e:例如识别主题、情感、实体等。,r:[task_extract_concepts,task_extract_terms,task_extract_relations]},task_extract_concepts:{t:提取关键概念,type:tech,d:从文本中识别并提取核心的思想或主题。,r:[task_analyze_text]},task_extract_terms:{t:提取术语,type:tech,d:从文本中识别并提取特定领域或主题的专业词汇。,r:[task_analyze_text]},task_extract_relations:{t:提取相互关系,type:app,d:分析并确定概念与术语之间的联系和依赖。,r:[task_analyze_text]},task_generate_html:{t:生成HTML文档,type:branch,d:核心任务之二基于分析结果创建交互式、可视化的HTML报告。,r:[task_interactive_visual,html_standard]},task_interactive_visual:{t:交互式和可视化,type:app,d:通过用户交互如点击、悬停和图形化展示如知识图谱来增强信息理解。,r:[task_generate_html]},html_standard:{t:HTML 黄金标准,type:concept,d:一个必须严格遵守的HTML模板即当前您看到的这个页面结构它定义了输出的功能、结构、样式和技术栈。,e:本文档本身即是该标准的一个应用实例用于解释此指令。,r:[standard_functionality,standard_structure,standard_interaction,standard_css,standard_js_libs,output_reqs,html_gen_guides]},standard_functionality:{t:基础功能,type:tech,d:此HTML页面所展示的核心交互和展示能力。,r:[html_standard]},standard_structure:{t:结构,type:tech,d:此HTML页面所定义的页面布局和元素组织方式。,r:[html_standard]},standard_interaction:{t:交互逻辑,type:tech,d:此HTML页面中用户与页面元素互动的方式和响应机制。,r:[html_standard]},standard_css:{t:CSS风格,type:tech,d:此HTML页面中定义的视觉样式和美学标准。,r:[html_standard]},standard_js_libs:{t:JavaScript库,type:tech,d:此HTML页面中指定使用的JS库如Viz.js, Panzoom, MathJax。,r:[html_standard]},output_reqs:{t:输出格式的强制性要求,type:concept,d:对AI最终输出内容的格式规范确保一致性和可用性。,r:[output_full_html,output_markdown_wrapper]},output_full_html:{t:完整HTML文档,type:branch,d:强制性输出要求AI的回答必须是一个从 !DOCTYPE html 到 /html 的完整HTML代码。,r:[output_reqs]},output_markdown_wrapper:{t:Markdown代码块包裹,type:tech,d:强制性输出要求完整的HTML文档必须用三个反引号的Markdown代码块包围。,r:[output_reqs]},html_gen_guides:{t:HTML 生成指南,type:concept,d:在严格遵循此HTML页面本身作为黄金标准前提下的进一步指导涵盖响应式设计和特定内容特性。,r:[feature_math,feature_code,html_standard]},feature_math:{t:数学公式特性,type:branch,d:要求使用MathJax (CHTML) 在HTML页面内渲染数学公式。,e:例如 \\(Emc^2\\) (渲染需MathJax支持),r:[html_gen_guides]},feature_code:{t:代码块特性,type:branch,d:要求使用precode class\language-LLL\标签处理代码并实现高亮和滚动。,e:precode class\language-python\print(Hello)/code/pre,r:[html_gen_guides]}};const typeStyles{concept:{fillcolor:#fef3c7,cssClass:tmc},branch:{fillcolor:#d1fae5,cssClass:tmb},tech:{fillcolor:#dbeafe,cssClass:tmt},app:{fillcolor:#fee2e2,cssClass:tma},default:{fillcolor:#e0e0e0,cssClass:tmc}};const graphEdges role_expert - task_analyze_text [label\执行\]; role_expert - task_generate_html [label\执行\]; task_analyze_text - task_extract_concepts [label\包含\]; task_analyze_text - task_extract_terms [label\包含\]; task_analyze_text - task_extract_relations [label\包含\]; task_generate_html - task_interactive_visual [label\通过\]; task_generate_html - html_standard [label\遵循\]; html_standard - standard_functionality [label\规定\]; html_standard - standard_structure [label\规定\]; html_standard - standard_interaction [label\规定\]; html_standard - standard_css [label\规定\]; html_standard - standard_js_libs [label\规定\]; html_standard - output_reqs [label\包含要求\]; output_reqs - output_full_html [label\具体要求\]; output_reqs - output_markdown_wrapper [label\具体要求\]; html_standard - html_gen_guides [label\参考指南\]; html_gen_guides - feature_math [label\涉及\]; html_gen_guides - feature_code [label\涉及\];;const gIconsvg xmlnshttp://www.w3.org/2000/svg viewBox0 0 48 48path fill#EA4335 dM24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z/path fill#4285F4 dM46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z/path fill#FBBC05 dM10.53 28.72c-.79-2.36-.79-4.9 0-7.27l-7.98-6.19C.92 18.05 0 21.13 0 24.27s.92 6.22 2.56 8.74l7.97-6.03z/path fill#34A853 dM24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z/path fillnone dM0 0h48v48H0z//svg,POPUP_Y_OFF8;let srchPopnull,hidePopTimeoutnull,selectedLabelElementnull,originalLabelFill;function genD(rd,allN,termIds){let ddigraph AIInstructionConcepts {graph [labelloct,labelAI指令概念图谱,fontsize16,fontname-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,bgcolortransparent,rankdir${rd},nodesep.4,ranksep.6];node [fontname-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,fontsize10,stylefilled,shapebox,margin.12,.06,color#d1d5db,fontcolor#1f2937];edge [fontsize9,color#6b7280,fontname-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,arrowsize.7,fontcolor#1f2937];;for(const id in allN){if(id in allN){const nallN[id];if(n.hideFromGraph)continue;const stypeStyles[n.type]||typeStyles.default;let nodeAttrslabel${n.t.replace(//g,\\)}, fillcolor${s.fillcolor}, idnode-${id}, data-ia${termIds.has(id)||!!Object.values(allN).find(item!item.hideFromGraphitem.ritem.r.includes(id))};if(!termIds.has(id)){nodeAttrs, fontcolorvar(--map-node-non-interactive-font-color), colorvar(--map-node-non-interactive-border-color), stylefilled,dashed}d${id} [${nodeAttrs}];\n}}dgraphEdges.replace(/([a-zA-Z0-9_])\s*-\s*([a-zA-Z0-9_])/g,(m,p1,p2)${p1}-${p2});return d\n}} function mkPop(){if(!srchPop){srchPopdocument.createElement(button);srchPop.idgsp;srchPop.typebutton;srchPop.innerHTML${gIcon}span搜索/span;document.body.appendChild(srchPop);srchPop.addEventListener(mouseover,(){hidePopTimeoutclearTimeout(hidePopTimeout)});srchPop.addEventListener(mouseout,(){hidePopTimeoutsetTimeout(()srchPop.classList.remove(vis),300)});srchPop.addEventListener(click,e{const qe.currentTarget.dataset.st;q(window.open(https://www.google.com/search?q${encodeURIComponent(q)},_blank,noopener,noreferrer),srchPop.classList.remove(vis))})}} function dnldMap(){const svgEldocument.querySelector(#map-out svg);if(!svgEl){alert(未找到关系图SVG元素。);return}const cnvdocument.createElement(canvas),ctxcnv.getContext(2d),rectsvgEl.getBoundingClientRect(),scl2;cnv.widthrect.width*scl;cnv.heightrect.height*scl;ctx.fillStylewhite;ctx.fillRect(0,0,cnv.width,cnv.height);const svgStrnew XMLSerializer().serializeToString(svgEl),imgnew Image,svgBlbnew Blob([svgStr],{type:image/svgxml;charsetutf-8}),urlURL.createObjectURL(svgBlb);img.onloadfunction(){ctx.drawImage(img,0,0,cnv.width,cnv.height);URL.revokeObjectURL(url);const pngUrlcnv.toDataURL(image/png),dLnkdocument.createElement(a);dLnk.hrefpngUrl;dLnk.downloadinstruction-knowledge-graph.png;document.body.appendChild(dLnk);dLnk.click();document.body.removeChild(dLnk)};img.onerror(){URL.revokeObjectURL(url);alert(下载关系图失败无法加载SVG图像。)};img.srcurl} document.addEventListener(DOMContentLoaded,(){const qsAsdocument.querySelectorAll(s),qssdocument.querySelector(s),gIdiddocument.getElementById(id),allTsqsA(.rc .tm[data-id]),expElgId(explain-content),pfBtngId(pfb),mapOgId(map-out),zmBgId(map-zoom-btn),lytBgId(map-layout-btn),dlBgId(map-download-btn),zModalgId(map-zoom-modal),zDispgId(map-zoom-display),clzmBgId(close-map-zoom-btn);let actTnull,actMIdnull,pnznull,curLytLR;const rdTIdsnew Set;allTs.forEach(srdTIds.add(s.dataset.id));let viz;try{viznew Viz}catch(err){console.error(Failed to initialize Viz.js. Knowledge graph functionality will be unavailable.,err);mapO(mapO.innerHTMLp stylecolor:red;font-size:.8em;padding:10px;错误概念图谱库 (Viz.js) 加载失败。/p);lytB(lytB.disabled!0);dlB(dlB.disabled!0);zmB(zmB.disabled!0)} function hiMNode(id){if(actMId){const pNqs(#map-out svg g.node[id${actMId}]);pNpN.classList.remove(mna)}const mIdnode-${id},mNqs(#map-out svg g.node[id${mId}]);mN?(mN.classList.add(mna),actMIdmId):actMIdnull} function clrMHi(){if(actMId){const mNqs(#map-out svg g.node[id${actMId}]);mNmN.classList.remove(mna);actMIdnull}} function shwExpl(id,fromPanel0){if(selectedLabelElement){selectedLabelElement.style.fontWeightnormal;selectedLabelElement.style.filloriginalLabelFill;selectedLabelElementnull;originalLabelFill}const noteDnotes[id];actTactT.classList.remove(active);const tmInRcqs(.rc .tm[data-id${id}]);tmInRc?(tmInRc.classList.add(active),actTtmInRc,fromPanel!isVis(tmInRc)tmInRc.scrollIntoView({behavior:smooth,block:center})):actTnull;noteD!noteD.hideFromGraph?hiMNode(id):clrMHi();if(noteD){let hdiv classeidiv classeihh3${noteD.t}/h3button typebutton classgsb data-st${noteD.t.replace(//g,quot;)} title用 Google 搜索 ${noteD.t.replace(//g,quot;)}${gIcon}/button/div;noteD.d(hpstrong定义/strong ${noteD.d}/p);noteD.e(hpstrong例子/strong ${noteD.e}/p);if(noteD.r?.length){hpstrong相关概念/strong ;hnoteD.r.map(rId{const rNnotes[rId];if(!rN)returnspan classtm tmc data-id${rId} title未知概念${rId}/span;let cls;const rTITqs(.rc .tm[data-id${rId}]);rTIT?(clsArray.from(rTIT.classList).find(cc.startsWith(tm)c.length3),cls||(cls(typeStyles[rN.type]||typeStyles.default).cssClass)):cls(typeStyles[rN.type]||typeStyles.default).cssClass;returnspan classtm ${cls} data-id${rId} title点击查看解释${rN.t}/span}).join(、 );h/p}expEl.innerHTMLh/div;MathJax?.typesetPromise?.([expEl]).catch(errconsole.error(MathJax typeset error:,err))}else expEl.innerHTMLp classph未找到此术语的解释。/p} function isVis(el){const rectel.getBoundingClientRect();return rect.top0rect.left0rect.bottom(window.innerHeight||document.documentElement.clientHeight)rect.right(window.innerWidth||document.documentElement.clientWidth)} function clrExpl(){actTactT.classList.remove(active);actTnull;clrMHi();if(selectedLabelElement){selectedLabelElement.style.fontWeightnormal;selectedLabelElement.style.filloriginalLabelFill;selectedLabelElementnull;originalLabelFill}expEl.innerHTMLp classph点击指令中的高亮术语或图谱中的节点/关系查看相关解释。/p} const firstTqs(.rc .tm.tmc[data-id]);allTs.forEach(ss.addEventListener(click,function(){thisactTexpEl.querySelector(.ei h3)?.textContentnotes[this.dataset.id]?.t?clrExpl():shwExpl(this.dataset.id)})); expEl.addEventListener(click,e{const te.target.closest(.tm),be.target.closest(.gsb);if(t?.dataset.id){const curExplH3expEl.querySelector(.ei h3);notes[t.dataset.id]curExplH3curExplH3.textContentnotes[t.dataset.id].t?(qs(.rc .tm.active[data-id${t.dataset.id}])?clrExpl():(shwExpl(t.dataset.id,1),expEl.parentElement.scrollTop0)):(shwExpl(t.dataset.id,1),expEl.parentElement.scrollTop0)}else b?.dataset.stwindow.open(https://www.google.com/search?q${encodeURIComponent(b.dataset.st)},_blank,noopener,noreferrer)}); expEl.addEventListener(mouseover,e{const targetEle.target.closest(.tm);if(targetEl?.dataset.idtargetEl.parentElement?.tagNamePtargetEl.parentElement.firstChild?.tagNameSTRONGtargetEl.parentElement.firstChild.textContent.includes(相关概念)){mkPop();hidePopTimeoutclearTimeout(hidePopTimeout);const idtargetEl.dataset.id,dnotes[id],sTd?d.t:targetEl.textContent.trim();srchPop.dataset.stsT;srchPop.querySelector(span).textContent搜索 ${sT.length18?sT.substring(0,16)...:sT};srchPop.classList.remove(vis);const rtargetEl.getBoundingClientRect(),popWsrchPop.offsetWidth,popHsrchPop.offsetHeight;let lr.leftr.width/2-popW/2,tr.top-popH-POPUP_Y_OFF;lPOPUP_Y_OFF(lPOPUP_Y_OFF);lpopWinnerWidth-POPUP_Y_OFF(linnerWidth-popW-POPUP_Y_OFF);tPOPUP_Y_OFF(tr.bottomPOPUP_Y_OFF,tpopHinnerHeight-POPUP_Y_OFF(tr.topr.height/2-popH/2));srchPop.style.left${l}px;srchPop.style.top${t}px;srchPop.classList.add(vis)}}); expEl.addEventListener(mouseout,e{const targetEle.target.closest(.tm);targetEl?.dataset.idtargetEl.parentElement?.tagNamePtargetEl.parentElement.firstChild?.tagNameSTRONGtargetEl.parentElement.firstChild.textContent.includes(相关概念)srchPop(hidePopTimeoutclearTimeout(hidePopTimeout),hidePopTimeoutsetTimeout((){srchPop.matches(:hover)||srchPop.classList.remove(vis)},200))}); mapO.addEventListener(click,e{const targete.target;let nodeElementnull,currentElementForNodeSearchtarget;while(currentElementForNodeSearchcurrentElementForNodeSearch!mapO){if(currentElementForNodeSearch.matches?.(g.node[id^node-])){nodeElementcurrentElementForNodeSearch;break}currentElementForNodeSearchcurrentElementForNodeSearch.parentNode}if(nodeElement){if(selectedLabelElement){selectedLabelElement.style.fontWeightnormal;selectedLabelElement.style.filloriginalLabelFill;selectedLabelElementnull;originalLabelFill}const idnodeElement.id.substring(5);if(notes[id]!notes[id].hideFromGraphnodeElement.dataset.ia!false){const curExplH3expEl.querySelector(.ei h3);actMIdnodeElement.idcurExplH3notes[id]curExplH3.textContentnotes[id].t?clrExpl():(shwExpl(id,1),expEl.parentElement.scrollTop0)}return}if(target.localNametext){const parentGtarget.parentNode;if(parentG?.localNamegparentG.classList.contains(edge)){const labelTexttarget.textContent.trim();if(labelText){actT(actT.classList.remove(active),actTnull);clrMHi();if(selectedLabelElementtarget){target.style.fontWeightnormal;target.style.filloriginalLabelFill;selectedLabelElementnull;originalLabelFill;clrExpl();return}selectedLabelElementselectedLabelElement!target(selectedLabelElement.style.fontWeightnormal,selectedLabelElement.style.filloriginalLabelFill);originalLabelFilltarget.style.fill||target.getAttribute(fill)||var(--text-pri);target.style.fontWeightbold;target.style.fillvar(--brand);selectedLabelElementtarget;let htmldiv classeidiv classeihh3关系类型: ${labelText}/h3button typebutton classgsb data-st${labelText.replace(//g,quot;)} title用 Google 搜索 ${labelText.replace(//g,quot;)}${gIcon}/button/divp此标签描述了图谱中两个概念之间的关系类型。/pp您可以使用搜索按钮搜索关于“strong${labelText}/strong”的更多信息。/p/div;expEl.innerHTMLhtml;MathJax?.typesetPromise?.([expEl]).catch(errconsole.error(MathJax typeset error:,err));expEl.parentElement.scrollTop0}}}}); const pzWheele{pnz?.zoomWithWheel(e.preventDefault(),pnz.zoomWithWheel(e))}; function updLBtn(){lytB.textContentcurLytTB?LR:TB;lytB.title切换到 ${curLytTB?LR:TB} 布局}updLBtn(); async function rndrMap(rd){if(!viz||!mapO){!vizmapO!mapO.querySelector(p[style*color:red])(mapO.innerHTMLp stylecolor:red;font-size:.8em;padding:10px;错误概念图谱库 (Viz.js) 未初始化无法渲染图谱。/p);return}lytB.disabled!0;dlB(dlB.disabled!0);mapO.classList.add(ld);lytB.innerHTMLsvg viewBox0 0 24 24 stylewidth:1.1em;height:1.1em;fill:currentColorpath dM12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z opacity.3/path dM12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z//svg span.../span;if(selectedLabelElement){selectedLabelElementnull;originalLabelFill}const dotStrgenD(rd,notes,rdTIds);try{const svgRendawait viz.renderSVGElement(dotStr);mapO.innerHTML;mapO.appendChild(svgRend);const activeTermIdactT?actT.dataset.id:null;activeTermIdnotes[activeTermId]!notes[activeTermId].hideFromGraph?hiMNode(activeTermId):actMId(notes[actMId.substring(5)]!notes[actMId.substring(5)].hideFromGraph?hiMNode(actMId.substring(5)):clrMHi());const svgClnsvgRend.cloneNode(!0);zDisp.innerHTML;zDisp.appendChild(svgCln);const pzElzDisp.querySelector(svg);if(pnz?.destroy){const oldPnzpnz.getPan()?.parentElement;oldPnzoldPnz.removeEventListener(wheel,pzWheel);pnz.destroy();pnznull}pzEl(pnzPanzoom(pzEl,{maxZoom:10,minZoom:.1,contain:outside,canvas:!0,duration:200,easing:ease-out}),zDisp.addEventListener(wheel,pzWheel,{passive:!1}))}catch(err){console.error(Error rendering Map SVG:,err);mapO.innerHTMLp stylecolor:red;font-size:.8em;padding:10px;概念图渲染失败: ${err.message}/p}finally{curLytrd;updLBtn();lytB.disabled!1;dlB(dlB.disabled!1);mapO.classList.remove(ld)}} viz?rndrMap(curLyt).then((){firstT?.dataset.idshwExpl(firstT.dataset.id)}):firstT?.dataset.idshwExpl(firstT.dataset.id); lytB.addEventListener(click,()rndrMap(curLytTB?LR:TB)); zmB.addEventListener(click,(){zModal.classList.add(vis);pnz?.reset?.({animate:!1});clzmB.focus();pfBtn(pfBtn.style.displaynone)}); dlB?.addEventListener(click,dnldMap);function hidZm(){zModal.classList.remove(vis);pfBtn(pfBtn.style.displayflex)}clzmB.addEventListener(click,hidZm); zModal.addEventListener(click,e{e.targetzModalhidZm()});document.addEventListener(keydown,e{e.keyEscapezModal.classList.contains(vis)hidZm()}); const fsIconEpfBtn.querySelector(.ie),fsIconCpfBtn.querySelector(.ic); function tglFs(){const docdocument;!doc.fullscreenElement!doc.mozFullScreenElement!doc.webkitFullscreenElement!doc.msFullscreenElement?(doc.documentElement.requestFullscreen?doc.documentElement.requestFullscreen():doc.documentElement.mozRequestFullScreen?doc.documentElement.mozRequestFullScreen():doc.documentElement.webkitRequestFullscreen?doc.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):doc.documentElement.msRequestFullscreendoc.documentElement.msRequestFullscreen()):doc.exitFullscreen?doc.exitFullscreen():doc.mozCancelFullScreen?doc.mozCancelFullScreen():doc.webkitExitFullscreen?doc.webkitExitFullscreen():doc.msExitFullscreendoc.msExitFullscreen()} function updFsBtn(){const docdocument;doc.fullscreenElement||doc.mozFullScreenElement||doc.webkitFullscreenElement||doc.msFullscreenElement?(fsIconE.style.displaynone,fsIconC.style.displayblock,pfBtn.title退出全屏):(fsIconE.style.displayblock,fsIconC.style.displaynone,pfBtn.title全屏)} pfBtn(pfBtn.style.displayflex,pfBtn.addEventListener(click,tglFs),[fullscreenchange,webkitfullscreenchange,mozfullscreenchange,MSFullscreenChange].forEach(evtdocument.addEventListener(evt,updFsBtn)),updFsBtn())});/script /body /html笔者自己的尝试 点击不同的关键词按钮就会对这个关键词进行解释 3.3 文档变思维导图 来自https://linux.do/t/topic/722266 二开上面的prompt仍然需要使用google ai studio !DOCTYPE htmlhtml langzh-CNheadmeta charsetUTF-8meta nameviewport contentwidthdevice-width, initial-scale1.0title深度概念思维导图助手指令 (ECharts)/title!-- ECharts 核心库 --script srchttps://cdn.jsdelivr.net/npm/echarts5.5.0/dist/echarts.min.js defer/scriptlink hrefhttps://fonts.googleapis.com/css2?familyInter:wght400;500;600;700familyFiraCode:wght400;500displayswap relstylesheetlink hrefhttps://fonts.googleapis.com/icon?familyMaterialIconsOutlined relstylesheetstylehtml,body{height:100%;margin:0;scroll-behavior:smooth}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;line-height:1.7;background-color:#f8faff;color:#374151;padding:10px;box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}.container{max-width:1200px;margin:10px auto;padding:20px;background-color:#fff;border-radius:.45rem;box-shadow:0 .4rem 1.2rem rgba(0,0,0,.06)}.material-icons-outlined{vertical-align:middle;font-size:1.15em;margin-right:.3em;line-height:1}h1.material-icons-outlined,h2.material-icons-outlined{font-size:1.1em;margin-right:.4em;color:#0d6efd} h3.material-icons-outlined,h4.material-icons-outlined,h5.material-icons-outlined{font-size:1.1em;margin-right:.4em;color:#495057} h1,h2,h3,h4,h5{color:#212529;margin:1.8em 0 1em;font-weight:600;display:flex;align-items:center;line-height:1.3}h1{font-size:2.5rem;letter-spacing:-.6px;border-bottom:1px solid #dee2e6;padding-bottom:.5em;margin:.0 0 .9em}h2{font-size:2rem;border-bottom:1px solid #e9ecef;padding-bottom:.55em}h3{font-size:1.6rem}h4{font-size:1.3rem;color:#495057}h5{font-size:1.1rem;color:#212529}.text-primary{color:#0d6efd}.text-secondary{color:#6c757d}.text-accent1{color:#17a2b8}.text-accent2{color:#198754}.text-accent3{color:#ffc107}.text-danger{color:#dc3545;font-weight:bold}.text-warning{color:#fd7e14;font-weight:bold}.text-highlight-green{color:#20c997;font-weight:600}.text-highlight-blue{color:#339AF0;font-weight:600}.text-highlight-purple{color:#AE3EC9;font-weight:600}p{margin-bottom:1.4em;color:#495057;font-size:1.05rem}strong,.strong-emphasis{font-weight:600;color:#0d6efd} .prompt-container .strong-emphasis{color:#0a58ca} :not(pre)code{font-family:Fira Code,SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;background-color:#e9ecef;padding:.2em .4em;border-radius:.25rem;font-size:.9em;color:#d63384} .prompt-container{background-color:#f8f9fa;border:1px solid #ced4da;border-radius:.45rem;padding:25px;margin-bottom:25px;box-shadow:0 3px 8px rgba(0,0,0,.04)}.prompt-containerh2:first-of-type{margin-top:1em}.prompt-container h2,.prompt-container h3,.prompt-container h4,.prompt-container h5{color:#343a40;border-bottom-color:#ced4da}.prompt-container h2.material-icons-outlined,.prompt-container h5.material-icons-outlined{color:#495057}.prompt-container h2{font-size:1.8rem}.prompt-container h3{font-size:1.5rem;margin-top:2.2em}.prompt-container h4{font-size:1.2rem;margin-top:1.8em}.prompt-container h5{font-size:1.05rem;margin:1.8em 0 1em;padding-bottom:.3em;border-bottom:1px solid #dee2e6}.prompt-container p,.prompt-container li{color:#495057;font-size:1.05rem}.prompt-container .mandatory-requirement{font-weight:bold;color:#842029;padding:12px 18px;border:2px solid #dc3545;background-color:#f8d7da;border-radius:.45rem;display:flex;align-items:center;margin:1.2em 0}.prompt-container .mandatory-requirement .material-icons-outlined{color:#dc3545;font-size:1.6em;margin-right:.6em;flex-shrink:0}.prompt-container ul{list-style-type:none;padding-left:0}.prompt-container ul li{margin-bottom:.8em;padding-left:1.5em;position:relative}.prompt-container ul li .material-icons-outlined{position:absolute;left:0;top:4px;font-size:1.25em;color:#0d6efd;margin-right:.5em} .prompt-container ul li:has(.material-icons-outlined){padding-left:2em}.prompt-container strong{color:#0a58ca} .prompt-container .guideline-item { margin-bottom: 1em !important; padding-left: 2.2em !important; }.prompt-container .guideline-item .material-icons-outlined { color: #198754 !important; font-size: 1.3em !important; top: 3px !important; left: 0px !important;}.prompt-container .guideline-item ul { margin-top: 0.5em; padding-left: 1em;}.prompt-container .guideline-item ul li { font-size: 0.95em; color: #5a6268; margin-bottom: 0.4em;}.echarts-container {width: 100%;max-width: 1000px; /* Wider for deeper trees */height: 600px; /* Taller for deeper trees */margin: 25px auto;padding: 20px;box-sizing: border-box;background-color: #ffffff;border: 1px solid #dee2e6;border-radius: .45rem;box-shadow: 0 .4rem 1.2rem rgba(0,0,0,.05);display: flex; justify-content: center;align-items: center;}.prompt-container .echarts-container { margin: 30px 0; }media (max-width:992px){ /* Adjusted breakpoint */.echarts-container { height: 550px; }}media (max-width:768px){body{padding:10px;font-size:.96rem}.container{padding:15px;margin:10px auto}h1{font-size:1.9rem}h2{font-size:1.5rem}h3{font-size:1.25rem}.echarts-container { height: 500px; padding: 15px; }}media (max-width:480px){body{padding:5px}.container{padding:10px;margin:5px auto}h1{font-size:1.6rem}h2{font-size:1.3rem}h3{font-size:1.1rem}.prompt-container p,.prompt-container li{font-size:1rem}.echarts-container { height: 450px; padding: 10px; }}/style/headbodydiv classcontainerh1span classmaterial-icons-outlined aria-hiddentruepsychology_alt/span span classtext-primary深度概念思维导图助手/span span classtext-secondary高级指令/span/h1div classprompt-containerh2span classmaterial-icons-outlined aria-hiddentruechecklist_rtl/span思维导图生成核心准则 (深度强化版)/h2p classmandatory-requirementspan classmaterial-icons-outlined aria-hiddentrueerror_outline/span span绝对强制性要求你的每一个回答都必须是一个结构完整、语法有效的 HTML 文档。 这意味着从 code!DOCTYPE html/code 开始到 code/html/code 结束所有内容都必须包含在这个 HTML 结构内HTML代码必须放到markdown代码块中必须用“code/code”符号。不要加注释。/span/pp在遵循上述strong classtext-danger绝对强制性要求/strong的前提下所有思维导图的生成还strong classtext-danger必须严格遵守/strong以下准则/ph31. 内容构建准则/h3ulli classguideline-itemspan classmaterial-icons-outlined aria-hiddentrueshare/spanstrong严禁照抄目录结构:/strong 思维导图的strong classtext-highlight-purple根节点和主要分支绝对不能简单对应原始文本的章节号、标题或小节编号/strong。必须从文本内容中strong classstrong-emphasis独立提炼核心主题和概念/strong作为导图的骨架。/lili classguideline-itemspan classmaterial-icons-outlined aria-hiddentruescience/spanstrong绝对聚焦纯粹概念:/strong strong classtext-highlight-purple彻底移除所有具体的实例、例题、习题、练习、案例分析、代码片段或步骤性演练/strong。只保留对核心概念、原理、定义、特性、分类、影响因素、相关理论等的阐述和组织。/lili classguideline-itemspan classmaterial-icons-outlined aria-hiddentruehub/spanstrong构建真实的逻辑层级:/strong 思维导图的结构strong classstrong-emphasis必须反映概念之间内在的、真实的逻辑关系/strong (如总分、因果、并列、递进、分类、属性归属等)而非原始文本的叙述顺序。/lili classguideline-itemspan classmaterial-icons-outlined aria-hiddentruedensity_large/spanstrong追求极致深度与丰富性:/strongullistrong classtext-highlight-purple信息密度最大化:/strong 每一个概念节点都strong classstrong-emphasis必须尽可能地深入挖掘和扩展/strong其相关的子概念、属性、构成要素、关键特征、优缺点、适用条件、与其他概念的关联等。/lilistrong classtext-highlight-purple构建极深层级:/strong strong classstrong-emphasis目标是创建具有显著深度例如至少4-6层甚至更多只要逻辑上合理的多层级结构/strong。即使是最末梢的叶子节点如果仍能逻辑地细分或列举其组成部分/特性就应继续展开。/lilistrong classtext-highlight-purple避免空泛节点:/strong 严禁仅有标题式的、过于简略的节点。每个节点都应承载具体的、有价值的信息。/li/ul/lili classguideline-itemspan classmaterial-icons-outlined aria-hiddentrueunfold_more_double/spanstrong强制可交互展开/折叠:/strong 所有包含子节点的父节点都strong classstrong-emphasis必须能通过点击进行展开和折叠操作/strong以便用户按需探索不同层级的细节。/li/ulh32. 技术实现与输出原则/h3ullispan classmaterial-icons-outlined aria-hiddentruememory/spanstrong技术核心:/strong strong classstrong-emphasis必须使用 ECharts 的 tree 系列/strong生成思维导图。/lilispan classmaterial-icons-outlined aria-hiddentruecode_off/spanstrong格式与嵌入:/strong 最终输出strong classstrong-emphasis必须是单一、完整的 HTML 文档/strong所有 CSS strong classstrong-emphasis必须/strong嵌入在 codestyle/code 标签内JavaScript strong classstrong-emphasis必须/strong嵌入在 codescript/code 标签内。/lilispan classmaterial-icons-outlined aria-hiddentruedevices_fold/spanstrong响应式设计:/strong 布局与内容strong classstrong-emphasis必须/strong适应不同屏幕尺寸。/lilispan classmaterial-icons-outlined aria-hiddentruepalette/spanstrong视觉优化:/strong strong classstrong-emphasis必须/strong使用清晰的配色方案、合适的节点形状和标签样式以增强可读性和美观性。不同层级或类型的概念可使用不同颜色或符号区分。/lilispan classmaterial-icons-outlined aria-hiddentruesettings_ethernet/spanstrongECharts tree 配置要点:/strongol stylepadding-left:20px;list-style-type:lower-alpha; margin-top:0.5em;licodedata/code: strong classtext-highlight-purple最关键/strong 严格按照上述“内容构建准则”尤其是深度和丰富性要求生成纯概念的、层级极深、逻辑清晰的嵌套数据对象。/lilicodelayout/code, codeorient/code: 灵活选择确保深层结构清晰展示。/lilicodeinitialTreeDepth/code: strong classtext-highlight-blue建议设置为 2 或 3/strong以在初次加载时展现一定的结构深度同时避免信息过载。/lilicodeexpandAndCollapse: true/code: strong classtext-highlight-purple确保开启/strong。/lilicoderoam: true/code: 允许缩放和平移对深层导图尤为重要。/lilicodelabel.width/code, codelabel.overflow/code: 对深层结构中可能出现的长标签进行处理。/lilicodesymbolSize/code, codelineStyle/code: 细致调整以适应增加的节点数量和层级。/lilicodeemphasis: { focus: descendant }/code: 推荐使用。/li/ol/li/ulh5span classmaterial-icons-outlined stylecolor:#198754 aria-hiddentruemodel_training/spanECharts 思维导图示例 (极致深度概念化 - 正交布局)/h5p此示例旨在演示如何将一个知识领域构建为strong classtext-danger具有极高层级深度和信息密度/strong的纯概念思维导图并strong classtext-danger完全避免目录结构和实例内容/strong。/pdiv idecharts-mindmap-deep-conceptual classecharts-containerp stylepadding:20px;text-align:center;color:#6c757d深度概念思维导图加载中.../p/div/div/divscriptdocument.addEventListener(DOMContentLoaded, () {const mindmapDeepConceptualContainer document.getElementById(echarts-mindmap-deep-conceptual);if (mindmapDeepConceptualContainer typeof echarts ! undefined) {try {mindmapDeepConceptualContainer.innerHTML ; const myChartDeepConceptual echarts.init(mindmapDeepConceptualContainer);// --- 极致深度概念化数据结构示例 ---const dataDeepConceptual {name: 高级算法设计与分析, itemStyle: { color: #0d6efd, borderColor: #0a58ca, borderWidth: 2 },symbolSize: 24,label: { fontSize: 14, fontWeight: bold, color: #fff },children: [{name: 分治策略 (Divide Conquer), itemStyle: { color: #17a2b8 }, symbolSize: 20,children: [{ name: 核心思想, itemStyle: { color: #6cc0ce },children: [{ name: 分解 (Divide), itemStyle: {color: #aedde5}, children: [ {name: 子问题独立性}, {name: 规模减小} ] },{ name: 解决 (Conquer), itemStyle: {color: #aedde5}, children: [ {name: 递归基准条件} ] },{ name: 合并 (Combine), itemStyle: {color: #aedde5}, children: [ {name: 子解合并成本} ] }]},{ name: 复杂度分析模型, itemStyle: { color: #6cc0ce },children: [{ name: 主定理 (Master Theorem), itemStyle: {color: #aedde5}, children:[{name: 三种情况}, {name: 适用条件与限制}] },{ name: 递归树方法, itemStyle: {color: #aedde5} }]},{name: 典型应用场景概念性,itemStyle: {color: #6cc0ce},children: [{name: 排序算法领域, itemStyle: {color: #aedde5}, children: [{name: 归并排序思想}, {name: 快速排序思想}]},{name: 查找问题, itemStyle: {color: #aedde5}, children: [{name: 二分搜索本质}]},{name: 几何问题, itemStyle: {color: #aedde5}, children:[{name: 最近点对问题思路}]}]}]},{name: 动态规划 (Dynamic Programming), itemStyle: { color: #198754 }, symbolSize: 20,children: [{ name: 基本要素, itemStyle: { color: #72bca2 },children: [{ name: 最优子结构, itemStyle: {color: #b6dccf}, children: [{name: 定义与判断}, {name: 与贪心选择的区别}]},{ name: 重叠子问题, itemStyle: {color: #b6dccf}, children: [{name: 识别方法}, {name: 解决策略 (备忘录/自底向上)}]},{ name: 状态转移方程, itemStyle: {color: #b6dccf}, children:[{name:构建核心}, {name:边界条件设定}]}]},{ name: 实现方式, itemStyle: { color: #72bca2 },children: [{ name: 自顶向下 (备忘录法), itemStyle: {color: #b6dccf} },{ name: 自底向上 (迭代法), itemStyle: {color: #b6dccf} }]},{name: 常见模型概念性,itemStyle: { color: #72bca2 },children: [{name: 背包问题类}, {name: 最长子序列类}, {name: 矩阵链乘类}, {name: 路径规划类}]}]},{name: 贪心算法 (Greedy Algorithms), itemStyle: { color: #ffc107 }, symbolSize: 20,children: [{ name: 核心特征贪心选择性质, itemStyle: { color: #ffd567 }, children: [{name: 定义与证明思路}, {name:局部最优导出全局最优}]},{ name: 与动态规划的比较, itemStyle: { color: #ffd567 } },{ name: 设计要素, itemStyle: { color: #ffd567 },children: [{name: 候选集}, {name:选择函数}, {name:可行解函数}, {name:目标函数}]},{name: 适用场景辨析概念性,itemStyle: { color: #ffd567 },children: [{name: 活动选择问题}, {name:霍夫曼编码思想}, {name:部分背包问题}]}]},{name: 网络流 (Network Flow),itemStyle: { color: #fd7e14 }, symbolSize: 20,children: [{ name: 基本概念, itemStyle: {color: #febda8}, children:[{name:流网络 (s-t图)}, {name:容量限制}, {name:流量守恒}, {name:可行流与最大流}] },{ name: 核心定理最大流最小割定理, itemStyle: {color: #febda8}, children:[{name:割的定义},{name:定理内容与证明概要}] },{ name: 经典算法思想概念性, itemStyle: {color: #febda8}, children:[{name:Ford-Fulkerson方法}, {name:增广路径概念}, {name:Edmonds-Karp (BFS增广)} , {name:Dinic算法思想}]},{ name: 应用领域概念性, itemStyle: {color: #febda8}, children:[{name:二分图匹配}, {name:任务分配问题}]}]}]};// --- End of Deep Conceptual Data ---const optionDeepConceptual {title: { text: 极致深度概念思维导图 (正交 LR), left: center, textStyle: { fontSize: 16, fontFamily: Inter, sans-serif, color: #212529 } },tooltip: { trigger: item, triggerOn: mousemove, formatter: {b},backgroundColor: rgba(40,40,40,0.85),borderColor: #777,borderWidth: 1,textStyle: { color: #fff, fontSize: 11 }},series: [{type: tree, data: [dataDeepConceptual],top: 5%, bottom: 5%, left: 7%, right: 15%, // Adjusted for potential widthlayout: orthogonal, orient: LR, symbol: roundRect, symbolSize: function(value, params){// Adjust size based on depth or if its a leaflet depth 0;let curr params.data;// while(curr.parent) { depth; curr curr.parent; } // ECharts data doesnt directly have parent ref here// A simpler proxy: if it has children, its larger.return (params.data.children params.data.children.length 0) ? (params.data.symbolSize || 18) : 12;},roam: true,label: { show: true, position: inside, verticalAlign: middle, align: center, fontSize: 9, fontFamily: Inter, sans-serif, color: function(params) {const nodeColor params.data.itemStyle params.data.itemStyle.color ? params.data.itemStyle.color : #0d6efd;const r parseInt(nodeColor.slice(1,3), 16);const g parseInt(nodeColor.slice(3,5), 16);const b parseInt(nodeColor.slice(5,7), 16);return ((0.299*r 0.587*g 0.114*b) / 255) 0.6 ? #212529 : #f8f9fa;},overflow: truncate, width: function(params){ // Smaller width for deeper nodes if neededreturn (params.data.children params.data.children.length 0) ? 65 : 50;},formatter: function (params) { return params.name; }},leaves: { label: { position: right, offset:, align:left, color: #343a40,fontSize: 8.5,width: 80 }, itemStyle: { opacity: 0.9 },symbolSize: 10},lineStyle: { color: #adb5bd, width: 1.2, curveness: 0 }, edgeShape: polyline, initialTreeDepth: 2, // Initial expansion depthexpandAndCollapse: true,animationDurationUpdate: 500,emphasis: { focus: descendant, lineStyle: {width: 2, color: #0a58ca},itemStyle: { borderColor: #0a58ca, borderWidth: 2 }}}]};myChartDeepConceptual.setOption(optionDeepConceptual);window.addEventListener(resize, () { myChartDeepConceptual.resize(); });} catch(e) { console.error(Deep Conceptual ECharts Mindmap failed:, e); if (mindmapDeepConceptualContainer) {mindmapDeepConceptualContainer.innerHTML p stylecolor:#dc3545;text-align:center;font-weight:bold;padding:20px;深度概念思维导图加载失败。错误 e.message /p;}}} else if (!mindmapDeepConceptualContainer) { console.warn(ECharts container echarts-mindmap-deep-conceptual not found.);} else { if (mindmapDeepConceptualContainer) {mindmapDeepConceptualContainer.innerHTML p stylecolor:#fd7e14;text-align:center;font-weight:bold;padding:20px;ECharts 库未加载思维导图无法显示。/p; }}});/script/body/html笔者的效果 确实可以生成思维导图以及可交互就是字体大小不是特别适配。 4 sandun大佬年报变HTML与PPT 来自把小米379页的年报转为可视化网页附完整提示词 4.1 HTML Prompt 原作者的效果图输入年报输出的是一些数据卡片 作者仍然使用的是gemini在ai studio https://aistudio.google.com/ 生成HTML的prompt: 基于提供的源文档例如财务报告、分析报告、产品信息生成一个单一、完整、可直接运行的 HTML 文件。此文件必须动态地、可视化地呈现文档中的核心发现、关键数据和结构化信息并严格遵守以下设计和实现要求 **核心要求** 1. **单一 HTML 文件输出*** 最终交付物必须是**一个 .html 文件**包含所有必要的 HTML 结构、CSS 样式通过 style 标签或内联 Tailwind 类和 JavaScript通过 script 标签包括 CDN 引入和初始化逻辑。* 不允许使用外部 CSS 或 JS 文件只允许在 HTML 文件内部使用 CDN 链接。 **视觉设计与布局** 1. **整体风格*** 参考 Apple 官网及发布会风格——简洁、现代具有清晰的信息层级。 2. **布局核心卡片式布局*** **主卡片 (Main Cards)** 用于主要版块如执行摘要、财务状况、业务分部等。使用大尺寸、风格明确的卡片样式。* **迷你卡片 / 要点卡片 (Mini-Cards / Point-Cards) (关键布局元素)*** **目的** 专门用于拆分和展示包含多个要点、风险、建议、特性、步骤或并行信息例如“关键发现”、“风险”、“建议”、“特性”的段落或列表。* **AI 任务** 深入理解这些内容的语义。提取每个逻辑上独立、并列的核心要点。将每个要点转换为一个独立的迷你卡片。* **布局** 将这些迷你卡片排列在一个响应式网格中例如grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 gap-4。在中大型屏幕上目标是每行排列 3-5 个迷你卡片以实现结构化、易于扫视的信息密度。* **嵌套布局** 主卡片可以包含迷你卡片网格。 3. **背景*** 纯黑页面背景 (#000000)。 4. **高亮颜色*** **自动品牌色** 尝试识别内容中主要品牌例如“小米”、“华为”。如果成功则使用其官方主 VI 色例如小米橙 #FF6900作为**唯一的核心高亮色**。* **备选方案** 如果品牌/颜色识别失败则使用专业的科技蓝 (#00AEEF) 或亮橙色 (#FFA500)。* **应用** 统一应用于关键文本标题、核心数据、大的强调数字、图标、图表元素、可选边框和渐变色。 5. **科技感渐变 (Tech Gradient)*** **仅应用于高亮色** 创建从 rgba(高亮色, 0.7) 到 rgba(高亮色, 0.3) 的透明度渐变。* **用途** 用作卡片/区域、图表区域或文本背景的微妙底色。**禁止使用多色渐变**。 6. **卡片样式 (Card Styling)*** **背景** 所有卡片主卡片和迷你卡片均使用深灰色背景例如 #1a1a1a 或 #222222。* **圆角** 主卡片使用较大圆角半径rounded-xl 或 rounded-2xl迷你卡片使用较小圆角半径rounded-lg。* **分隔** 使用细微边框border: 1px solid #333;或适合暗黑模式的轻微阴影shadow-md 或 shadow-lg。 7. **主标题强化 (Main Title Enhancement)*** 使主中文标题显著增大例如text-5xl 或 text-6xl, font-bold。* 在其下方添加一个较小的、对应的英文标题例如text-xl 或 text-lg, font-semibold颜色稍浅如 text-gray-300 或 text-gray-400。示例“Xiaomi Corporation 2024 Annual Financial Report Analysis”。 **内容呈现与布局核心优化** 1. **全面的基础数据*** 准确提取并展示源文档中的所有关键信息、核心数据点特别是财务数据、增长率、市场份额、结论和分析。 2. **核心要点提取与卡片化关键*** **语义理解** 超越简单的句子分割。理解逻辑和语义识别段落或列表**内部独立、并列的核心观点/元素**。* **转换** 将每个提取出的核心要点转化为**一个独立的迷你卡片**。* **目标** 将复杂信息解构成结构化、可视化的网格使其成为易于扫视的单元。 3. **迷你卡片内部结构与细节关键*** **结构优先级*** **强调数字优先** 如果核心要点包含一个关键、突出的数字/指标则将该**数字/指标本身**作为顶部元素使用超大、粗体字号例如 text-5xl 或 text-6xl, font-bold使用高亮色。目的是为了最大化视觉冲击力。* **文本标题** 如果核心要点是概念性的或数字是次要的则使用一个**简洁、加粗的中文短语**理想情况 3-5 个汉字作为顶部元素使用大字号例如 text-3xl 或 text-4xl, font-bold白色或高亮色。* **支撑文本** 在大的数字/标题下方使用较小字号例如 text-sm, text-gray-400。* **当大元素是数字时** 解释该数字代表什么例如“研发费用同比增长”“营收额”“市场份额排名”并提供简要背景。* **当大元素是文本标题时** 提供具体细节、解释、数据支撑或影响。* **可选双语副标题选择性应用*** 在适合增强设计感的地方尤其是在大的中文数字或文本标题下方添加一个**非常简洁的英文短语**使用小字号例如 text-xs 或 text-sm、常规字重和柔和的颜色例如 text-gray-500 或 text-gray-400。示例“YoY Growth”“Total Revenue”“Market Share”。**审慎地应用**以增加视觉风格而非死板地用于每个卡片。* **专注与简洁** 严格遵守“**一个卡片一个核心要点**”。大的元素和支撑文本都必须**高度简洁**。避免在单个迷你卡片中使用长句或包含多个观点。 4. **强烈的视觉层级*** 利用显著的**字号差异**例如数字用 text-5xl/6xl vs 文本标题用 text-3xl/4xl vs 支撑文本用 text-sm vs 英文副标题用 text-xs、**字重**font-bold vs font-normal和**颜色**高亮色、白色、灰色系来在主要信息大数字/标题和次要信息支撑文本、英文副标题之间创建清晰的视觉区分。 5. **语言策略*** **主要语言** 使用**中文或数字**承载核心信息、主标题大的中文部分和迷你卡片的大元素。确保它们在视觉上占主导地位大字号、加粗。* **次要/装饰性语言** 使用**英文**作为主标题的副标题以及可选的、小的迷你卡片副标题。对这些元素使用较小字号和较低的强调度。如果源文档中存在英文术语为确保技术准确性应予保留。 **图形元素与图表** 1. **图标 (Font Awesome)*** **来源** 通过 CDN 引入 Font Awesome (v5/v6)。* **风格** 偏好简洁、现代的**线框风格 (outline-style)** 图标。* **使用** 放置于主标题附近可选择性地且需微妙地用于迷你卡片内部靠近标题处、列表前缀等。**严格禁止使用 Emoji 作为功能性图标**。颜色应协调关键图标可使用高亮色。 2. **数据可视化 (推荐 Chart.js)*** **应用场景** 用于展示趋势、增长率、构成饼图/环形图、比较柱状图等适合的数据 [引用数据可视化最佳实践]。* **技术** 通过 CDN 嵌入 Chart.js。* **位置** 放置在讨论财务或业务分析的相关主卡片内部。* **样式** 图表颜色必须与暗黑主题和高亮色保持一致。确保图表清晰、易读且响应式。 **技术与动画** 1. **技术栈*** HTML5, TailwindCSS 3 (CDN), 原生 JavaScript (用于 Intersection Observer/图表初始化), Font Awesome (CDN), Chart.js (CDN)。 2. **动画 (CSS Transitions Intersection Observer)*** **触发** 当元素所有主卡片、所有迷你卡片、其他内容块滚动进入视口时。* **效果** 平滑、微妙的**淡入/向上滑动**效果模仿 Apple 风格。通过 JavaScript 的 Intersection Observer API 添加/移除 CSS 类来触发 CSS Transitions 实现。确保动画性能流畅。为网格项应用轻微延迟以产生交错效果。 3. **响应式设计*** **强制要求**。使用 Tailwind 的响应式修饰符特别是针对网格布局确保在手机、平板和桌面设备上均具有出色的显示效果和可用性。 **最终输出** * 生成一个**单一、可运行的 .html 文件**该文件精确实现了上述所有要求特别注意**优先使用卡片布局****避免大段文字****核心要点提取到迷你卡片**、通过**更大的数字和选择性双语**实现的增强视觉层级以及整体的**美学一致性**。上述内容可以转化为PPT版本 请你修改HTML文件改成类似PPT的形式每页都是16:9可以滚动切换。注意放大文字大小以适配169的页面尺寸最后笔者将一份报告丢进去生成的HTML PPT 版本其实也是一个HTML网页截图几个 4.2 网友改良版 有一个改良版 # Role: Dynamic HTML Report Weaver## Profile - language: Chinese (Primary Content Large Titles/Numbers), English (Subtitles, Technical Terms) - description: An expert AI specializing in transforming source documents (like financial reports, analyses, product info) into a single, dynamic, visually compelling HTML file. It focuses on an Apple-inspired aesthetic, leverages card-based layouts (especially mini-cards for key points), incorporates data visualizations, and ensures all dependencies (CSS, JS via CDN) are embedded within the single HTML output. - background: Designed to distill complex information into accessible and engaging web-based presentations, understanding principles of information hierarchy, data visualization, and modern UI/UX design, particularly for dark-mode, high-impact interfaces. - personality: Professional, precise, detail-oriented, aesthetically sensitive, focused on clarity, impact, and adherence to specifications. - expertise: HTML5, CSS3 (TailwindCSS), JavaScript (DOM Manipulation, Intersection Observer, Chart.js), Data Extraction Semantic Summarization, Information Architecture, UI/UX Design (Dark Mode, Card-Based Layouts, Apple Aesthetic), Responsive Web Design, Single-File Web Application Packaging. - target_audience: Users needing to present complex data or findings in a sophisticated, easily shareable, web-based format without external dependencies.## Skills1. **Core Generation Content Processing**- HTML Generation: Create valid, semantic HTML5 structures for reports.- CSS Styling (TailwindCSS Inline): Apply TailwindCSS via CDN classes and necessary custom styles within style tags to achieve the specified visual design (dark mode, cards, typography, gradients).- JavaScript Implementation: Write clean, efficient JavaScript within script tags for dynamic behaviors (Intersection Observer animations), library initialization (Chart.js, Font Awesome), and DOM manipulation.- Single-File Packaging: Consolidate all HTML, CSS (via style/Tailwind classes), and JavaScript (via script, including CDN links) into one self-contained .html file.- Content Extraction Structuring: Analyze source documents to accurately extract key sections, findings, data points, and logically independent, parallel concepts (for mini-cards).- Semantic Point Distillation: Understand the meaning of lists or paragraphs containing multiple distinct points and extract each point as a separate conceptual unit for mini-card representation.- Data Visualization (Chart.js): Generate appropriate Chart.js charts (bar, line, pie/doughnut) based on extracted data, ensuring correct data mapping and thematic styling.2. **Design UX Implementation**- Apple Aesthetic Replication: Implement design principles inspired by Apples website and presentations (minimalism, whitespace, clear typography, subtle animations).- Card Layout Mastery: Construct layouts primarily using main cards for sections and responsive grids of mini-cards for key points/features/risks.- Visual Hierarchy Creation: Utilize typography (size, weight), color (highlight, primary, secondary), and spacing to establish clear information priority, especially within mini-cards (large number/title emphasis).- Responsive Design Execution: Employ TailwindCSS responsive modifiers (sm:, lg:, etc.) to ensure optimal layout and readability across various screen sizes (mobile, tablet, desktop).- Brand Color Identification (Basic): Attempt to identify the primary brand mentioned in the content and use its official main VI color; use specified fallbacks if identification fails.- Icon Integration (Font Awesome): Select and embed appropriate Font Awesome icons (via CDN) using clean, outline styles, placed thoughtfully for enhancement.- Animation Implementation: Use JavaScript (Intersection Observer) and CSS Transitions to trigger subtle fade-in/slide-up animations as elements scroll into view.## Rules1. **Fundamental Output Requirements**:- Single File Mandate: The absolute final output MUST be a single .html file.- Embedded Styling: All CSS must be within the HTML file, either as TailwindCSS classes (via CDN link) or within style tags. No external .css files.- Embedded Scripting: All JavaScript must be within script tags in the HTML file, including initialization logic and CDN links for libraries (Tailwind, Chart.js, Font Awesome). No external .js files.- Valid HTML5: Generated code must be valid HTML5.2. **Design Content Presentation**:- Strict Aesthetic Adherence: Follow the specified Apple-inspired design: black background (#000000), dark gray cards (#1a1a1a or #222222), large rounded corners for main cards, smaller for mini-cards.- Mandatory Card Usage: Structure content using main cards for sections. **Crucially, decompose lists or paragraphs containing multiple parallel key points, features, risks, or recommendations into a responsive grid of mini-cards.**- Mini-Card Formatting Priority: Structure mini-cards with a large, highlighted number (if applicable, text-5xl/6xl, highlight color) or a concise bold title (if conceptual, text-3xl/4xl, white/highlight color) at the top. Follow with smaller supporting text (text-sm, gray) and an optional, very small English subtitle (text-xs/sm, lighter gray). **One core idea per mini-card.**- Visual Hierarchy Enforcement: Strictly apply defined contrasts in font size, weight, and color to distinguish primary (large numbers/titles) from secondary information (supporting text, subtitles).- Single Highlight Color: Identify brand color or use fallback (#00AEEF or #FFA500). Use *only this color* for all highlights (text, numbers, icons, chart elements, gradients).- Tech Gradient Application: Use subtle transparency gradients derived *only* from the single highlight color (rgba(highlight, 0.7) to rgba(highlight, 0.3)) for subtle backgrounds where appropriate. **No multi-color gradients.**- Language Strategy Implementation: Use Chinese/Numbers for visually dominant elements (main titles, large numbers/titles in mini-cards). Use English for secondary elements (main title subtitle, optional mini-card subtitles, preserved technical terms).- Professional Iconography: Use Font Awesome (CDN) outline-style icons. Place strategically near titles or list items. Color appropriately (highlight for key icons). **No Emojis as functional icons.**3. **Technical Behavioral Constraints**:- No External File Dependencies: Reiteration - absolutely no external .css or .js files linked locally.- Avoid Long Text Blocks: Aggressively break down information. Prioritize summarized, structured presentation in cards (especially mini-cards) over lengthy paragraphs.- Subtle Animations Only: Implement smooth, non-intrusive fade-in/slide-up animations on scroll using Intersection Observer and CSS Transitions. Apply slight stagger to grid items if possible.- Mandatory Responsiveness: Ensure the layout is fully responsive using TailwindCSS modifiers, adapting gracefully from mobile to large desktop screens. Grid columns for mini-cards must adjust (1, 2, 3-5 based on screen size).## Workflows- **Goal**: To generate a single, self-contained, dynamically visualized HTML report from a provided source document, strictly adhering to the specified Apple-inspired aesthetic, card-based structure (with heavy use of mini-cards for key points), and technical constraints. - **Step 1: Document Ingestion Analysis**:- Receive and parse the source document.- Identify main thematic sections (e.g., Executive Summary, Financial Performance, Market Analysis, Product Features, Risks).- Extract key findings, conclusions, critical data points (especially quantitative data like financials, percentages, rankings).- **Critically analyze content for lists or paragraphs containing multiple distinct, parallel items (key discoveries, risks, suggestions, features, steps). Mark these for mini-card transformation.**- Attempt to identify the primary brand mentioned for color selection; determine fallback color if needed. - **Step 2: Structural Visual Planning**:- Outline the overall HTML body structure.- Map extracted sections to main cards (section, div styled as large cards).- **Plan the mini-card grids**: For each identified set of parallel items, design a responsive grid (grid, grid-cols-*, gap-*) to contain the mini-cards. Determine the content structure for each mini-card based on whether its number-centric or title-centric.- Identify data suitable for visualization and select appropriate Chart.js chart types. Plan their placement within relevant main cards.- Select appropriate Font Awesome icons for titles or specific points. - **Step 3: Code Generation (HTML, CSS, JS)**:- Generate the HTML structure, including semantic tags and container divs.- Embed CDN links for TailwindCSS, Font Awesome, and Chart.js in the head.- Apply TailwindCSS classes extensively for layout (Flexbox, Grid), spacing, colors (backgrounds, text, borders), typography (sizes, weights), card styling (padding, rounded corners, borders/shadows), and responsiveness.- Add custom CSS within style tags if needed for the specific tech gradient or minor adjustments not easily achievable with Tailwind alone.- Write JavaScript within script tags:* Implement the Intersection Observer logic to detect when cards/sections enter the viewport and add/remove CSS classes to trigger transition animations.* Initialize Chart.js instances with extracted data, configuring options for dark mode compatibility, responsiveness, and using the selected highlight color. - **Step 4: Content Integration Styling Refinement**:- Populate the generated HTML structure with the extracted text and data.- **Construct each mini-card precisely according to the rules**: Place the large number or title first, followed by supporting text and optional English subtitle, applying the correct Tailwind classes for size, weight, and color to enforce visual hierarchy.- Integrate selected Font Awesome icons.- Apply the main title enhancement (large Chinese title, smaller English subtitle).- Ensure consistent application of the highlight color and tech gradient where planned. - **Step 5: Final Packaging Output**:- Assemble all generated HTML, embedded CSS (Tailwind classes style content), and embedded JavaScript (script content including CDN links) into a single string representing the final .html file content.- Ensure the output is exclusively the HTML code, ready to be saved as a .html file.- **Expected Result**: A single, valid .html file that, when opened in a browser, displays a visually polished, dynamic, and responsive report based on the source document, characterized by a dark theme, prominent use of main cards and mini-card grids for key information, data visualizations, subtle animations, and adherence to all specified design and technical constraints.## Initialization 作为 Dynamic HTML Report Weaver你必须遵守上述Rules按照Workflows执行任务。试了一下也很不错
http://www.zqtcl.cn/news/685277/

相关文章:

  • 2022年网站能用的wordpress 客户端使用
  • 社交网站建设内容如何制作橡皮泥 简单
  • 简述网站的制作流程wordpress定制分类
  • 如何自建购物网站wordpress文章编辑插件
  • 网站策划机构建筑网站、
  • 邹平做网站的公司标志设计图片大全简单
  • 广东省建设厅官方网站多少钱如何在虚拟机里面做网站
  • 上海免费网站建设模板做网站页面的软件
  • 做折页的网站个人网站有哪些
  • 服装网站建设内容wordpress媒体库只能列表
  • 北京好的做网站的公司东莞专业做淘宝网站
  • 网站结构怎么优化wordpress文章列表添加字段
  • 网站建设框架图长沙官网seo技术厂家
  • 电子商务网站建设主管的策划案html个人网站设计模板
  • 网站首页的head标签内做网站要学的教程
  • 网页设计教学网站江西省建设监督网站
  • 网站建设与发布需要什么提供网站制作公司哪家好
  • 西宁市城市道路建设规划网站探测器 东莞网站建设
  • 旅游村庄网站建设方案小程序制作价格
  • 网站地图制作软件机械加工网免费铺货
  • 网站上线有什么线上活动可以做龙华建网站多少钱
  • 门户网站系统开发建设电脑优化
  • 公司建网站多少钱一个月服务佳的广州网站建设
  • 怎么创建网站建设徐州网站建设要多少钱
  • 微网站功能列表菜市场做建筑设计图库的网站设计
  • 制作网站支付方式定制网站开发哪里好
  • 常州网络网站建设行情软件app网站大全下载
  • 出台网站集约化建设通知彩票网站开发的
  • 怎样创建个人的网站怎么学做网站
  • 小江高端网站建设网站建设中可能升级