Merged
Remove legacy website #3
Remove legacy website #3
Merged
chendunyangAdd on Aug 31
Total: 13 files changed+0-984
@@ -1,12 +0,0 @@
1-# CANNBot portal
2- 
3-Static two-page website designed to be mounted at `/cannbot/` without changing the existing site.
4- 
5-```bash
6-python3 -m http.server 4173 --directory website
7-```
8- 
9-- Home: `http://localhost:4173/`
10-- Plugin documentation: `http://localhost:4173/plugin.html?id=ops-direct-invoke`
11- 
12-For a subpath deployment, copy the complete `website/` directory to the server's `/cannbot/` static location. All internal assets and links are relative.
@@ -1,490 +0,0 @@
1-const pluginData = {
2- "ops-direct-invoke": {
3- domain: "算子领域",
4- title: "算子生成",
5- lede: "使用完整的 Ascend C Kernel 直调算子开发工作流,从需求分析、方案设计和实现推进到精度与性能验收。",
6- callout: "该工作流会安装关联 Skills、Agents、权限配置和依赖仓,首次安装耗时可能略长。",
7- prompt: "请使用 ops-direct-invoke 工作流,根据当前项目中的算子需求生成完整的 Ascend C Kernel 直调算子。先分析需求和运行环境,再完成方案设计、代码实现、测试、精度与性能验收。",
8- next: "ascendc-st-design",
9- },
10- "ascendc-st-design": {
11- domain: "算子领域",
12- title: "算子测试",
13- lede: "基于 aclnn 接口文档完成参数定义、测试因子提取、约束分析及 L0/L1/L2 系统测试用例设计。",
14- callout: "请准备算子的 REQUIREMENTS.md 和 aclnn 接口文档。生成脚本需要 Python 3,以及 PyYAML、NumPy 和 pandas。",
15- prompt: "使用 ascendc-st-design skill,为当前项目的 add_rms_norm Ascend C 算子设计 L0/L1/L2 系统测试(ST)用例。基于 REQUIREMENTS.md 和 aclnn 接口文档完成参数定义、测试因子提取与约束分析,并在 operators/add_rms_norm/tests/st/ 下生成用例和覆盖报告。",
16- next: "model-infer-optimize",
17- },
18- "model-infer-optimize": {
19- domain: "模型领域",
20- title: "模型迁移与推理优化",
21- lede: "把 PyTorch 模型迁移到昇腾 NPU,并完成精度对齐、性能分析和推理优化。",
22- callout: "工作流会先建立可复现的 CPU 基线,再处理不支持算子、设备适配、精度与性能问题。",
23- prompt: "使用 model-infer-optimize,把当前 PyTorch 模型迁移到昇腾 NPU 推理。先建立 CPU 基线,再处理不支持算子和设备适配,最后完成精度对齐、性能分析和优化,并输出可复现的验证命令。",
24- next: "ops-direct-invoke",
25- },
26-};
27- 
28-const toolLabels = { opencode: "OpenCode", codex: "Codex", claude: "Claude Code", trae: "TRAE", dsh: "DSH" };
29-let selectedTool = "opencode";
30- 
31-async function copyText(text) {
32- let copied = false;
33- if (navigator.clipboard && window.isSecureContext) {
34- try {
35- await navigator.clipboard.writeText(text);
36- copied = true;
37- } catch (_) {}
38- }
39- if (!copied) {
40- const textarea = document.createElement("textarea");
41- textarea.value = text;
42- textarea.setAttribute("readonly", "");
43- textarea.style.cssText = "position:fixed;opacity:0;pointer-events:none";
44- document.body.appendChild(textarea);
45- textarea.select();
46- try {
47- copied = document.execCommand("copy");
48- } catch (_) {}
49- textarea.remove();
50- }
51- const toast = document.getElementById("toast");
52- if (!toast) return copied;
53- toast.textContent = copied ? "内容已复制" : "复制失败,请手动复制";
54- toast.classList.add("show");
55- window.clearTimeout(copyText.timer);
56- copyText.timer = window.setTimeout(() => toast.classList.remove("show"), 1800);
57- return copied;
58-}
59- 
60-document.querySelectorAll("[data-copy-target]").forEach((button) => {
61- button.addEventListener("click", async () => {
62- const target = document.getElementById(button.dataset.copyTarget);
63- if (!target) return;
64- const originalText = button.dataset.copyLabel || button.textContent;
65- button.dataset.copyLabel = originalText;
66- const copied = await copyText(target.textContent.trim());
67- button.textContent = copied ? "已复制" : "复制失败";
68- button.classList.toggle("copied", copied);
69- window.clearTimeout(button.copyTimer);
70- button.copyTimer = window.setTimeout(() => {
71- button.textContent = originalText;
72- button.classList.remove("copied");
73- }, 1600);
74- });
75-});
76- 
77-const landingTranslations = {
78- en: {
79- "hero-title": "AI-powered innovation for the CANN ecosystem",
80- "hero-lede-one": "CANNBot provides composable Agent workflows for operator and model development.",
81- "hero-lede-two": "Make operator generation, operator testing, and model migration capabilities that your Agent can invoke directly.",
82- "view-gitcode": "View GitCode",
83- "plugin-docs": "Plugin docs",
84- "plugin-title": "Make Agents the new productivity layer for CANN development",
85- "plugin-lede": "Drive professional workflows with natural language, from operator development and testing to model migration, and make complex CANN engineering easier.",
86- "ops-domain": "Operators",
87- "model-domain": "Models",
88- "card-one-title": "Operator generation",
89- "card-one-lede": "Migrate CUDA operators to Ascend C, from analysis and design through development and validation.",
90- "card-one-meta": "Full workflow",
91- "card-two-title": "Operator testing",
92- "card-two-lede": "Use aclnn interface documentation to define parameters, extract test factors, analyze constraints, and design L0/L1/L2 system test cases.",
93- "card-two-meta-one": "Standalone Skill",
94- "card-two-meta-two": "System testing",
95- "card-three-title": "Model migration & inference optimization",
96- "card-three-lede": "Establish a baseline, adapt devices, then complete precision alignment, performance analysis, and inference optimization.",
97- "card-three-meta-one": "Model migration",
98- "card-three-meta-two": "Performance",
99- "demo-title": "See the complete operator generation workflow",
100- "demo-lede": "From plugin installation to Agent invocation, see how CANNBot carries an operator generation task forward.",
101- "workflow-title": "Minimal setup,<br />ready for CANN development.",
102- "workflow-lede": "Connect CANNBot with one command and give your Agent professional workflows it can invoke directly. Visit the plugin docs for complete installation and usage guides.",
103- "workflow-docs": "View plugin docs",
104- "step-one-title": "Install",
105- "step-one-lede": "Connect Skills, Agents, and client configuration automatically.",
106- "step-two-title": "Start your client",
107- "step-two-lede": "Open the Agent you already know in the current project.",
108- "step-three-title": "Describe the goal",
109- "step-three-lede": "Use natural language to start the complete engineering workflow.",
110- copied: "Command copied",
111- },
112-};
113- 
114-function setupLandingLanguage() {
115- if (!document.querySelector(".landing-page")) return;
116- const elements = [...document.querySelectorAll("[data-i18n], [data-i18n-html]")];
117- const defaults = new Map(elements.map((element) => [element, element.dataset.i18nHtml ? element.innerHTML : element.textContent]));
118- const title = document.title;
119- const description = document.querySelector('meta[name="description"]');
120- 
121- const applyLanguage = (language) => {
122- const english = language === "en";
123- document.documentElement.lang = english ? "en" : "zh-CN";
124- document.title = english ? "CANNBot · AI-powered CANN ecosystem innovation" : title;
125- if (description) description.content = english
126- ? "CANNBot plugin portal for composable Agent workflows in operator and model development."
127- : "CANNBot 插件门户,为算子与模型开发提供可组合的 Agent 工作流。";
128- 
129- elements.forEach((element) => {
130- const key = element.dataset.i18n || element.dataset.i18nHtml;
131- const value = english ? landingTranslations.en[key] : defaults.get(element);
132- if (element.dataset.i18nHtml) element.innerHTML = value;
133- else element.textContent = value;
134- });
135- document.querySelectorAll("[data-lang-switch]").forEach((button) => {
136- const active = button.dataset.langSwitch === language;
137- button.classList.toggle("active", active);
138- button.setAttribute("aria-pressed", String(active));
139- });
140- try { window.localStorage.setItem("cannbot-language", language); } catch (_) {}
141- };
142- 
143- let initialLanguage = "zh";
144- try { initialLanguage = window.localStorage.getItem("cannbot-language") || initialLanguage; } catch (_) {}
145- applyLanguage(initialLanguage === "en" ? "en" : "zh");
146- document.querySelectorAll("[data-lang-switch]").forEach((button) => {
147- button.addEventListener("click", () => applyLanguage(button.dataset.langSwitch));
148- });
149-}
150- 
151-setupLandingLanguage();
152- 
153-function installCommand(pluginId) {
154- return `npx @cannbot-plugin/cannbot@latest install ${pluginId} --tool ${selectedTool}`;
155-}
156- 
157-function renderPluginPage() {
158- const title = document.getElementById("article-title");
159- if (!title) return;
160- const requestedId = new URLSearchParams(window.location.search).get("id") || "ops-direct-invoke";
161- const pluginId = pluginData[requestedId] ? requestedId : "ops-direct-invoke";
162- const data = pluginData[pluginId];
163- document.title = `${data.title} - CANNBot 插件文档`;
164- title.textContent = data.title;
165- document.getElementById("article-domain").textContent = data.domain;
166- document.getElementById("breadcrumb-domain").textContent = data.domain;
167- document.getElementById("breadcrumb-title").textContent = data.title;
168- document.getElementById("article-lede").textContent = data.lede;
169- document.getElementById("article-callout").textContent = data.callout;
170- document.getElementById("prompt-example").textContent = data.prompt;
171- document.querySelectorAll("[data-plugin-link]").forEach((link) => link.classList.toggle("active", link.dataset.pluginLink === pluginId));
172- const nextData = pluginData[data.next];
173- document.getElementById("next-plugin").href = `./plugin.html?id=${data.next}`;
174- document.getElementById("next-title").textContent = nextData.title;
175- 
176- const updateCommand = () => {
177- document.getElementById("install-command").textContent = installCommand(pluginId);
178- document.getElementById("install-note").textContent = `安装器会自动识别当前目录,并写入 ${toolLabels[selectedTool]} 所需的 Skill 与 Agent 配置。`;
179- };
180- updateCommand();
181- 
182- document.querySelectorAll("[data-doc-tool]").forEach((button) => {
183- button.addEventListener("click", () => {
184- selectedTool = button.dataset.docTool;
185- document.querySelectorAll("[data-doc-tool]").forEach((item) => item.classList.toggle("active", item === button));
186- updateCommand();
187- });
188- });
189-}
190- 
191-renderPluginPage();
192- 
193-const mobileMenu = document.getElementById("mobile-menu");
194-if (mobileMenu) mobileMenu.addEventListener("click", () => document.getElementById("docs-sidebar").classList.toggle("open"));
195- 
196-const observer = new IntersectionObserver((entries) => {
197- entries.forEach((entry) => entry.isIntersecting && entry.target.classList.add("revealed"));
198-}, { threshold: 0.12 });
199-document.querySelectorAll(".reveal").forEach((element) => observer.observe(element));
200- 
201-function startHeroMotion() {
202- const canvas = document.getElementById("hero-canvas");
203- if (!canvas) return;
204- const context = canvas.getContext("2d");
205- const reduceMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
206- const pointer = { x: 0.56, y: 0.42, tx: 0.56, ty: 0.42, visible: false };
207- const motes = Array.from({ length: 128 }, (_, index) => ({
208- lane: index / 127,
209- phase: Math.random() * Math.PI * 2,
210- speed: 0.00008 + Math.random() * 0.0001,
211- size: 0.45 + Math.random() * 1.4,
212- alpha: 0.16 + Math.random() * 0.48,
213- }));
214- const meteors = Array.from({ length: 11 }, (_, index) => ({
215- lane: 0.08 + (index / 10) * 0.84,
216- phase: Math.random(),
217- speed: 0.055 + Math.random() * 0.1,
218- length: 150 + Math.random() * 150,
219- alpha: 0.22 + Math.random() * 0.25,
220- size: 0.8 + Math.random() * 0.8,
221- bend: Math.random() * Math.PI * 2,
222- }));
223- const networkNodes = Array.from({ length: 34 }, () => ({
224- x: 0.34 + Math.random() * 0.64,
225- y: 0.16 + Math.random() * 0.62,
226- phase: Math.random() * Math.PI * 2,
227- drift: 8 + Math.random() * 18,
228- size: 0.8 + Math.random() * 1.6,
229- }));
230- const pointerTrail = [];
231- const orbit = document.querySelector(".hero-orbit");
232- let width = 0;
233- let height = 0;
234- let ratio = 1;
235- let ambientX = 0;
236- let ambientY = 0;
237- let frame = 0;
238- 
239- function resize() {
240- const bounds = canvas.getBoundingClientRect();
241- ratio = Math.min(window.devicePixelRatio || 1, 2);
242- width = bounds.width;
243- height = bounds.height;
244- const orbitStyle = orbit ? window.getComputedStyle(orbit) : null;
245- ambientX = orbitStyle ? Number.parseFloat(orbitStyle.left) : width * 0.66;
246- ambientY = orbitStyle ? Number.parseFloat(orbitStyle.top) : height * 0.5;
247- canvas.width = Math.round(width * ratio);
248- canvas.height = Math.round(height * ratio);
249- context.setTransform(ratio, 0, 0, ratio, 0, 0);
250- }
251- 
252- function flowY(x, lane, time) {
253- const spread = (lane - 0.5) * height * 0.44;
254- const wave = Math.sin(x * 0.005 + time * 0.00045 + lane * 7) * (24 + lane * 22);
255- const ripple = Math.sin(x * 0.012 - time * 0.00022 + lane * 13) * 9;
256- return height * 0.43 + spread + wave + ripple;
257- }
258- 
259- function draw(time) {
260- pointer.x += (pointer.tx - pointer.x) * 0.3;
261- pointer.y += (pointer.ty - pointer.y) * 0.3;
262- context.clearRect(0, 0, width, height);
263- 
264- if (pointer.visible) {
265- const trailPoint = { x: pointer.x * width, y: pointer.y * height, life: 1 };
266- const previousPoint = pointerTrail[pointerTrail.length - 1];
267- if (!previousPoint || Math.hypot(trailPoint.x - previousPoint.x, trailPoint.y - previousPoint.y) > 1.2) {
268- pointerTrail.push(trailPoint);
269- } else {
270- previousPoint.x = trailPoint.x;
271- previousPoint.y = trailPoint.y;
272- previousPoint.life = 1;
273- }
274- if (pointerTrail.length > 22) pointerTrail.shift();
275- }
276- 
277- const halo = context.createRadialGradient(
278- ambientX, ambientY, 0,
279- ambientX, ambientY, Math.max(width, height) * 0.46,
280- );
281- halo.addColorStop(0, "rgba(42, 82, 158, 0.14)");
282- halo.addColorStop(0.32, "rgba(21, 46, 92, 0.055)");
283- halo.addColorStop(1, "rgba(7, 9, 13, 0)");
284- context.fillStyle = halo;
285- context.fillRect(0, 0, width, height);
286- 
287- context.globalCompositeOperation = "lighter";
288- for (let lane = 0; lane < 17; lane += 1) {
289- const normalized = lane / 16;
290- const fade = Math.sin(normalized * Math.PI);
291- context.beginPath();
292- for (let x = -30; x <= width + 30; x += 18) {
293- const y = flowY(x + pointer.x * 25, normalized, time + pointer.y * 450);
294- if (x === -30) context.moveTo(x, y);
295- else context.lineTo(x, y);
296- }
297- context.strokeStyle = `rgba(${86 + lane * 2}, ${128 + lane * 2}, 220, ${0.006 + fade * 0.017})`;
298- context.lineWidth = 0.7;
299- context.stroke();
300- }
301- 
302- meteors.forEach((meteor) => {
303- const travel = width + meteor.length * 2;
304- const headX = ((meteor.phase * travel + time * meteor.speed) % travel) - meteor.length;
305- const baseHeadY = flowY(headX, meteor.lane, time + meteor.bend * 140);
306- const pointerX = pointer.x * width;
307- const pointerY = pointer.y * height;
308- const pointerDistance = Math.hypot(headX - pointerX, baseHeadY - pointerY);
309- const attraction = Math.max(0, 1 - pointerDistance / 260);
310- const headY = baseHeadY + (pointerY - baseHeadY) * attraction * 0.16;
311- const segments = 22;
312- 
313- for (let segment = segments; segment > 0; segment -= 1) {
314- const tailRatio = segment / segments;
315- const previousRatio = (segment - 1) / segments;
316- const x1 = headX - meteor.length * tailRatio;
317- const x2 = headX - meteor.length * previousRatio;
318- const curveLift = attraction * 18 * Math.sin(tailRatio * Math.PI);
319- const y1 = flowY(x1, meteor.lane, time + meteor.bend * 140) + (pointerY - baseHeadY) * attraction * 0.16 - curveLift;
320- const y2 = flowY(x2, meteor.lane, time + meteor.bend * 140) + (pointerY - baseHeadY) * attraction * 0.16 - curveLift * 0.88;
321- const intensity = (1 - tailRatio) ** 1.7;
322- context.beginPath();
323- context.moveTo(x1, y1);
324- context.lineTo(x2, y2);
325- context.strokeStyle = `rgba(116, 165, 255, ${meteor.alpha * intensity * (0.72 + attraction * 0.45)})`;
326- context.lineWidth = 0.35 + intensity * meteor.size;
327- context.stroke();
328- }
329- 
330- if (headX > -8 && headX < width + 8) {
331- const glowRadius = 9 + attraction * 7;
332- const glow = context.createRadialGradient(headX, headY, 0, headX, headY, glowRadius);
333- glow.addColorStop(0, `rgba(220, 234, 255, ${0.72 + attraction * 0.08})`);
334- glow.addColorStop(0.13, `rgba(137, 182, 255, ${0.52 + attraction * 0.12})`);
335- glow.addColorStop(1, "rgba(84, 139, 240, 0)");
336- context.fillStyle = glow;
337- context.beginPath();
338- context.arc(headX, headY, glowRadius, 0, Math.PI * 2);
339- context.fill();
340- context.beginPath();
341- context.arc(headX, headY, meteor.size + attraction * 0.7, 0, Math.PI * 2);
342- context.fillStyle = "rgba(232, 241, 255, .78)";
343- context.fill();
344- }
345- });
346- 
347- const points = networkNodes.map((node) => {
348- const baseX = node.x * width + Math.sin(time * 0.00016 + node.phase) * node.drift;
349- const baseY = node.y * height + Math.cos(time * 0.0002 + node.phase) * node.drift * 0.65;
350- const deltaX = baseX - pointer.x * width;
351- const deltaY = baseY - pointer.y * height;
352- const distance = Math.hypot(deltaX, deltaY) || 1;
353- const influence = Math.max(0, 1 - distance / 210);
354- return {
355- ...node,
356- x: baseX + (deltaX / distance) * influence * 22,
357- y: baseY + (deltaY / distance) * influence * 22,
358- pointerDistance: distance,
359- };
360- });
361- 
362- for (let first = 0; first < points.length; first += 1) {
363- for (let second = first + 1; second < points.length; second += 1) {
364- const distance = Math.hypot(points[first].x - points[second].x, points[first].y - points[second].y);
365- if (distance > 145) continue;
366- context.beginPath();
367- context.moveTo(points[first].x, points[first].y);
368- context.lineTo(points[second].x, points[second].y);
369- context.strokeStyle = `rgba(94, 141, 231, ${(1 - distance / 145) * 0.105})`;
370- context.lineWidth = 0.6;
371- context.stroke();
372- }
373- }
374- 
375- points.forEach((point) => {
376- if (point.pointerDistance < 230) {
377- context.beginPath();
378- context.moveTo(point.x, point.y);
379- context.lineTo(pointer.x * width, pointer.y * height);
380- context.strokeStyle = `rgba(122, 167, 255, ${(1 - point.pointerDistance / 230) * 0.2})`;
381- context.lineWidth = 0.7;
382- context.stroke();
383- }
384- context.beginPath();
385- context.arc(point.x, point.y, point.size, 0, Math.PI * 2);
386- context.fillStyle = `rgba(133, 175, 255, ${0.18 + (1 - Math.min(1, point.pointerDistance / 230)) * 0.5})`;
387- context.fill();
388- });
389- 
390- pointerTrail.forEach((point) => { point.life -= 0.034; });
391- while (pointerTrail.length && pointerTrail[0].life <= 0) pointerTrail.shift();
392- 
393- if (pointerTrail.length > 1) {
394- const firstPoint = pointerTrail[0];
395- const lastPoint = pointerTrail[pointerTrail.length - 1];
396- const trailGradient = context.createLinearGradient(firstPoint.x, firstPoint.y, lastPoint.x, lastPoint.y);
397- trailGradient.addColorStop(0, "rgba(77, 127, 225, 0)");
398- trailGradient.addColorStop(0.55, "rgba(54, 133, 255, .08)");
399- trailGradient.addColorStop(1, "rgba(115, 181, 255, .66)");
400- const outerTrailGradient = context.createLinearGradient(firstPoint.x, firstPoint.y, lastPoint.x, lastPoint.y);
401- outerTrailGradient.addColorStop(0, "rgba(41, 105, 240, 0)");
402- outerTrailGradient.addColorStop(0.55, "rgba(41, 105, 240, .012)");
403- outerTrailGradient.addColorStop(1, "rgba(41, 105, 240, .05)");
404- const middleTrailGradient = context.createLinearGradient(firstPoint.x, firstPoint.y, lastPoint.x, lastPoint.y);
405- middleTrailGradient.addColorStop(0, "rgba(52, 135, 255, 0)");
406- middleTrailGradient.addColorStop(0.55, "rgba(52, 135, 255, .04)");
407- middleTrailGradient.addColorStop(1, "rgba(52, 135, 255, .145)");
408- 
409- const tracePointerPath = () => {
410- context.beginPath();
411- context.moveTo(firstPoint.x, firstPoint.y);
412- for (let index = 1; index < pointerTrail.length - 1; index += 1) {
413- const point = pointerTrail[index];
414- const next = pointerTrail[index + 1];
415- context.quadraticCurveTo(point.x, point.y, (point.x + next.x) / 2, (point.y + next.y) / 2);
416- }
417- context.lineTo(lastPoint.x, lastPoint.y);
418- };
419- 
420- tracePointerPath();
421- context.strokeStyle = outerTrailGradient;
422- context.lineWidth = 9.2;
423- context.stroke();
424- tracePointerPath();
425- context.strokeStyle = middleTrailGradient;
426- context.lineWidth = 3.7;
427- context.stroke();
428- tracePointerPath();
429- context.strokeStyle = trailGradient;
430- context.lineWidth = 1.08;
431- context.shadowColor = "rgba(66, 148, 255, .7)";
432- context.shadowBlur = 11.7;
433- context.stroke();
434- context.shadowBlur = 0;
435- }
436- 
437- if (pointer.visible) {
438- const pointerX = pointer.x * width;
439- const pointerY = pointer.y * height;
440- const breath = 1 + Math.sin(time * 0.006) * 0.08;
441- const pointerGlow = context.createRadialGradient(pointerX, pointerY, 0, pointerX, pointerY, 12.5 * breath);
442- pointerGlow.addColorStop(0, "rgba(244, 248, 255, .78)");
443- pointerGlow.addColorStop(0.16, "rgba(158, 196, 255, .52)");
444- pointerGlow.addColorStop(0.48, "rgba(91, 146, 248, .12)");
445- pointerGlow.addColorStop(1, "rgba(62, 116, 222, 0)");
446- context.fillStyle = pointerGlow;
447- context.beginPath();
448- context.arc(pointerX, pointerY, 12.5 * breath, 0, Math.PI * 2);
449- context.fill();
450- context.fillStyle = "rgba(248, 251, 255, .82)";
451- context.beginPath();
452- context.arc(pointerX, pointerY, 1.65, 0, Math.PI * 2);
453- context.fill();
454- }
455- 
456- motes.forEach((mote) => {
457- const progress = (mote.phase + time * mote.speed) % (Math.PI * 2);
458- const x = ((progress / (Math.PI * 2)) * (width + 160)) - 80;
459- const y = flowY(x, mote.lane, time);
460- const edgeFade = Math.sin(Math.min(1, Math.max(0, x / width)) * Math.PI);
461- context.beginPath();
462- context.arc(x, y, mote.size, 0, Math.PI * 2);
463- context.fillStyle = `rgba(132, 174, 255, ${mote.alpha * edgeFade})`;
464- context.fill();
465- });
466- context.globalCompositeOperation = "source-over";
467- if (!reduceMotion) frame = window.requestAnimationFrame(draw);
468- }
469- 
470- window.addEventListener("resize", resize);
471- window.addEventListener("pointermove", (event) => {
472- const bounds = canvas.getBoundingClientRect();
473- const wasVisible = pointer.visible;
474- pointer.tx = (event.clientX - bounds.left) / bounds.width;
475- pointer.ty = (event.clientY - bounds.top) / bounds.height;
476- pointer.visible = pointer.tx >= 0 && pointer.tx <= 1 && pointer.ty >= 0 && pointer.ty <= 1;
477- if (pointer.visible && !wasVisible) {
478- pointer.x = pointer.tx;
479- pointer.y = pointer.ty;
480- pointerTrail.length = 0;
481- }
482- }, { passive: true });
483- window.addEventListener("blur", () => { pointer.visible = false; });
484- resize();
485- if (reduceMotion) draw(0);
486- else frame = window.requestAnimationFrame(draw);
487- window.addEventListener("pagehide", () => window.cancelAnimationFrame(frame), { once: true });
488-}
489- 
490-startHeroMotion();
@@ -1,3 +0,0 @@
1-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
2- <path transform="translate(3.2 3.2) scale(.9)" fill="#ff1f2d" fill-rule="evenodd" d="M2 60 24.7 8.7A8 8 0 0 1 32 4a8 8 0 0 1 7.3 4.7L62 60H46.4l-5.2-12.5H22.8L17.6 60H2Zm26-25h8l-4-10-4 10Z"/>
3-</svg>
@@ -1,93 +0,0 @@
1-Copyright 2020 The Space Grotesk Project Authors (https://github.com/floriankarsten/space-grotesk)
2- 
3-This Font Software is licensed under the SIL Open Font License, Version 1.1.
4-This license is copied below, and is also available with a FAQ at:
5-http://scripts.sil.org/OFL
6- 
7- 
8------------------------------------------------------------
9-SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10------------------------------------------------------------
11- 
12-PREAMBLE
13-The goals of the Open Font License (OFL) are to stimulate worldwide
14-development of collaborative font projects, to support the font creation
15-efforts of academic and linguistic communities, and to provide a free and
16-open framework in which fonts may be shared and improved in partnership
17-with others.
18- 
19-The OFL allows the licensed fonts to be used, studied, modified and
20-redistributed freely as long as they are not sold by themselves. The
21-fonts, including any derivative works, can be bundled, embedded,
22-redistributed and/or sold with any software provided that any reserved
23-names are not used by derivative works. The fonts and derivatives,
24-however, cannot be released under any other type of license. The
25-requirement for fonts to remain under this license does not apply
26-to any document created using the fonts or their derivatives.
27- 
28-DEFINITIONS
29-"Font Software" refers to the set of files released by the Copyright
30-Holder(s) under this license and clearly marked as such. This may
31-include source files, build scripts and documentation.
32- 
33-"Reserved Font Name" refers to any names specified as such after the
34-copyright statement(s).
35- 
36-"Original Version" refers to the collection of Font Software components as
37-distributed by the Copyright Holder(s).
38- 
39-"Modified Version" refers to any derivative made by adding to, deleting,
40-or substituting -- in part or in whole -- any of the components of the
41-Original Version, by changing formats or by porting the Font Software to a
42-new environment.
43- 
44-"Author" refers to any designer, engineer, programmer, technical
45-writer or other person who contributed to the Font Software.
46- 
47-PERMISSION & CONDITIONS
48-Permission is hereby granted, free of charge, to any person obtaining
49-a copy of the Font Software, to use, study, copy, merge, embed, modify,
50-redistribute, and sell modified and unmodified copies of the Font
51-Software, subject to the following conditions:
52- 
53-1) Neither the Font Software nor any of its individual components,
54-in Original or Modified Versions, may be sold by itself.
55- 
56-2) Original or Modified Versions of the Font Software may be bundled,
57-redistributed and/or sold with any software, provided that each copy
58-contains the above copyright notice and this license. These can be
59-included either as stand-alone text files, human-readable headers or
60-in the appropriate machine-readable metadata fields within text or
61-binary files as long as those fields can be easily viewed by the user.
62- 
63-3) No Modified Version of the Font Software may use the Reserved Font
64-Name(s) unless explicit written permission is granted by the corresponding
65-Copyright Holder. This restriction only applies to the primary font name as
66-presented to the users.
67- 
68-4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69-Software shall not be used to promote, endorse or advertise any
70-Modified Version, except to acknowledge the contribution(s) of the
71-Copyright Holder(s) and the Author(s) or with their explicit written
72-permission.
73- 
74-5) The Font Software, modified or unmodified, in part or in whole,
75-must be distributed entirely under this license, and must not be
76-distributed under any other license. The requirement for fonts to
77-remain under this license does not apply to any document created
78-using the Font Software.
79- 
80-TERMINATION
81-This license becomes null and void if any of the above conditions are
82-not met.
83- 
84-DISCLAIMER
85-THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88-OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89-COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90-INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91-DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92-FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93-OTHER DEALINGS IN THE FONT SOFTWARE.
Binary files do not support preview
@@ -1,4 +0,0 @@
1-<svg fill="#DA203E" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2- <title>GitCode</title>
3- <path d="m15.585 4.586.486-.274q.032.17.06.303c.032.158.06.289.072.418.103 1.118.665 1.941 1.462 2.127 1.165.27 2.264-.177 2.856-1.164.711-1.184.403-2.634-.808-3.507C16.346.061 12.647-.609 8.663.56.072 3.095-2.867 13.65 3.23 20.122c2.608 2.769 5.92 3.964 9.68 3.873 4.817-.113 8.285-2.513 10.5-6.674 1.57-2.952-.137-6.178-3.405-6.849a21 21 0 0 0-5.675-.362 4.8 4.8 0 0 0-1.805.548c-.625.325-.805.998-.735 1.666.065.608.531.972 1.086 1.064 1.118.175 2.25.277 3.378.37.327.027.657.03.986.033.473.005.944.01 1.405.086 1.314.217 1.766 1.284 1.09 2.425a4.7 4.7 0 0 1-.577.766 6.55 6.55 0 0 1-3.318 1.964c-2.333.57-4.669.603-6.99-.13-2.645-.835-4.221-2.777-4.277-5.392A9.1 9.1 0 0 1 5.76 8.907c.36-.654.558-1.327.503-2.067a26 26 0 0 1-.05-.972l-.025-.565q.401.084.792.212c1.011.406 2.007.592 3.102.294a5.6 5.6 0 0 1 1.902-.122 4.76 4.76 0 0 0 2.921-.714c.218-.128.439-.251.681-.387"/>
4-</svg>
Binary files do not support preview
@@ -1,135 +0,0 @@
1-<!doctype html>
2-<html lang="zh-CN">
3- <head>
4- <meta charset="UTF-8" />
5- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6- <meta name="description" content="CANNBot 插件门户,为算子与模型开发提供可组合的 Agent 工作流。" />
7- <title>CANNBot · AI 驱动 CANN 生态创新</title>
8- <link rel="icon" type="image/svg+xml" href="./assets/brand/cannbot-favicon.svg?v=4" />
9- <link rel="stylesheet" href="./styles.css" />
10- </head>
11- <body class="landing-page">
12- <header class="landing-nav">
13- <a class="brand brand-light" href="./" aria-label="CANNBot 首页">
14- <img class="brand-image brand-image-dark" src="./assets/brand/cannbot-wordmark-dark.png" alt="CANNBot" />
15- </a>
16- <div class="language-switcher" role="group" aria-label="语言切换">
17- <button class="active" type="button" data-lang-switch="zh">中文</button>
18- <button type="button" data-lang-switch="en">EN</button>
19- </div>
20- </header>
21- 
22- <main>
23- <section class="hero">
24- <div class="hero-motion" aria-hidden="true">
25- <canvas id="hero-canvas"></canvas>
26- <div class="hero-orbit">
27- <span class="orbit-ring orbit-ring-one"></span>
28- <span class="orbit-ring orbit-ring-two"></span>
29- <span class="orbit-ring orbit-ring-three"></span>
30- <span class="orbit-core"></span>
31- <i class="orbit-node node-one"></i>
32- <i class="orbit-node node-two"></i>
33- <i class="orbit-node node-three"></i>
34- </div>
35- </div>
36- <div class="hero-inner">
37- <div class="hero-copy reveal">
38- <h1 data-i18n="hero-title">AI 驱动 CANN 生态创新</h1>
39- <div class="hero-lede">
40- <p data-i18n="hero-lede-one">CANNBot 为算子与模型开发提供可组合的 Agent 工作流。</p>
41- <p data-i18n="hero-lede-two">让算子生成、算子测试与模型迁移成为 Agent 可以直接调用的能力,自由安装,灵活组合。</p>
42- </div>
43- <div class="hero-actions">
44- <a class="button button-primary" href="https://gitcode.com/cann/cannbot" target="_blank" rel="noreferrer">
45- <img class="button-icon button-icon-gitcode" src="./assets/icons/gitcode.svg" alt="" />
46- <span data-i18n="view-gitcode">查看 GitCode</span> <span>↗</span>
47- </a>
48- <a class="button button-ghost" href="./plugin.html?id=ops-direct-invoke" target="_blank" rel="noreferrer">
49- <svg class="button-icon" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 2.2h7.2L13 5v8.8H3V2.2Z"/><path d="M10 2.5V5h2.6M5.2 8h5.6M5.2 10.5h4.2"/></svg>
50- <span data-i18n="plugin-docs">插件文档</span> <span>↗</span>
51- </a>
52- </div>
53- </div>
54- 
55- </div>
56- </section>
57- 
58- <section class="plugin-section" id="plugins">
59- <div class="section-heading reveal">
60- <p class="eyebrow dark">PLUGIN ECOSYSTEM</p>
61- <h2 data-i18n="plugin-title">让 Agent 成为 CANN 开发的新生产力</h2>
62- <p data-i18n="plugin-lede">从算子开发、测试到模型迁移,用自然语言驱动专业工作流,让复杂的 CANN 工程任务更简单。</p>
63- </div>
64- <div class="plugin-grid">
65- <a class="plugin-card plugin-card-featured reveal" href="./plugin.html?id=ops-direct-invoke">
66- <span class="card-index">01</span>
67- <div class="card-icon icon-generate">⌁</div>
68- <p class="card-domain" data-i18n="ops-domain">算子领域</p>
69- <h3 data-i18n="card-one-title">算子生成</h3>
70- <p data-i18n="card-one-lede">将 CUDA 算子迁移为 Ascend C,从分析、设计、开发到测试验证完整推进。</p>
71- <div class="card-meta"><span data-i18n="card-one-meta">完整工作流</span><span>5 Clients</span></div>
72- <span class="card-arrow">↗</span>
73- </a>
74- <a class="plugin-card reveal" href="./plugin.html?id=ascendc-st-design">
75- <span class="card-index">02</span>
76- <div class="card-icon icon-test">◇</div>
77- <p class="card-domain" data-i18n="ops-domain">算子领域</p>
78- <h3 data-i18n="card-two-title">算子测试</h3>
79- <p data-i18n="card-two-lede">基于 aclnn 接口文档完成参数定义、测试因子、约束分析及 L0/L1/L2 系统测试用例设计。</p>
80- <div class="card-meta"><span data-i18n="card-two-meta-one">独立 Skill</span><span data-i18n="card-two-meta-two">系统测试</span></div>
81- <span class="card-arrow">↗</span>
82- </a>
83- <a class="plugin-card reveal" href="./plugin.html?id=model-infer-optimize">
84- <span class="card-index">03</span>
85- <div class="card-icon icon-model">◈</div>
86- <p class="card-domain" data-i18n="model-domain">模型领域</p>
87- <h3 data-i18n="card-three-title">模型迁移与推理优化</h3>
88- <p data-i18n="card-three-lede">建立基线、处理设备适配,完成精度对齐、性能分析与推理优化。</p>
89- <div class="card-meta"><span data-i18n="card-three-meta-one">模型迁移</span><span data-i18n="card-three-meta-two">性能优化</span></div>
90- <span class="card-arrow">↗</span>
91- </a>
92- </div>
93- </section>
94- 
95- <section class="demo-section">
96- <div class="demo-heading reveal">
97- <p class="eyebrow dark">OPERATOR GENERATION DEMO</p>
98- <h2 data-i18n="demo-title">体验完整的算子生成工作流</h2>
99- <p data-i18n="demo-lede">从安装插件到调用 Agent,直观看 CANNBot 如何推进算子生成任务。</p>
100- </div>
101- <div class="demo-video-frame reveal">
102- <video controls playsinline preload="metadata" poster="./assets/videos/operator-generation-poster.jpg" aria-label="CANNBot 算子生成工作流演示">
103- <source src="./assets/videos/operator-generation-demo.mp4" type="video/mp4" />
104- 当前浏览器不支持视频播放。
105- </video>
106- </div>
107- </section>
108- 
109- <section class="workflow-band">
110- <div class="workflow-copy reveal">
111- <p class="eyebrow">MINIMAL SETUP. READY TO BUILD.</p>
112- <h2 data-i18n-html="workflow-title">极简安装,<br />即刻开始 CANN 开发。</h2>
113- <p data-i18n="workflow-lede">用一行命令接入 CANNBot,让 Agent 获得可直接调用的专业工作流。访问插件文档,查看完整安装与使用方式。</p>
114- <a class="button button-ghost workflow-doc-link" href="./plugin.html?id=ops-direct-invoke" target="_blank" rel="noreferrer">
115- <span data-i18n="workflow-docs">查看插件文档</span><span>↗</span>
116- </a>
117- </div>
118- <ol class="workflow-steps reveal">
119- <li><span>1</span><div><strong data-i18n="step-one-title">一键安装</strong><p data-i18n="step-one-lede">自动连接 Skills、Agents 与客户端配置。</p></div></li>
120- <li><span>2</span><div><strong data-i18n="step-two-title">启动客户端</strong><p data-i18n="step-two-lede">在当前项目中打开你熟悉的 Agent。</p></div></li>
121- <li><span>3</span><div><strong data-i18n="step-three-title">描述目标</strong><p data-i18n="step-three-lede">用自然语言启动完整工程工作流。</p></div></li>
122- </ol>
123- </section>
124- 
125- </main>
126- 
127- <footer class="landing-footer">
128- <a class="brand brand-light" href="./"><img class="brand-image brand-image-dark" src="./assets/brand/cannbot-wordmark-dark.png" alt="CANNBot" /></a>
129- <p>Composable workflows for Ascend developers.</p>
130- <p>© 2026 CANNBot</p>
131- </footer>
132- <div class="toast" id="toast" role="status" aria-live="polite" data-i18n="copied">命令已复制</div>
133- <script src="./app.js"></script>
134- </body>
135-</html>
@@ -1,99 +0,0 @@
1-<!doctype html>
2-<html lang="zh-CN">
3- <head>
4- <meta charset="UTF-8" />
5- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6- <meta name="description" content="CANNBot 插件安装与使用文档。" />
7- <title>CANNBot 插件文档</title>
8- <link rel="icon" type="image/svg+xml" href="./assets/brand/cannbot-favicon.svg?v=4" />
9- <link rel="stylesheet" href="./styles.css" />
10- </head>
11- <body class="docs-page">
12- <header class="docs-header">
13- <a class="brand" href="./" aria-label="返回 CANNBot 首页">
14- <img class="brand-image" src="./assets/brand/cannbot-wordmark.png" alt="CANNBot" />
15- </a>
16- <div class="docs-header-actions">
17- <label class="search-box"><span>⌕</span><input type="search" placeholder="搜索文档..." aria-label="搜索文档" /><kbd>⌘ K</kbd></label>
18- <a href="https://gitcode.com/cann/cannbot" target="_blank" rel="noreferrer">GitCode</a>
19- <button class="theme-button" aria-label="切换主题">☼</button>
20- </div>
21- </header>
22- 
23- <button class="mobile-menu" id="mobile-menu" aria-label="打开目录">☰</button>
24- <aside class="docs-sidebar" id="docs-sidebar">
25- <div class="sidebar-label">算子领域</div>
26- <a data-plugin-link="ops-direct-invoke" href="./plugin.html?id=ops-direct-invoke">算子生成</a>
27- <a data-plugin-link="ascendc-st-design" href="./plugin.html?id=ascendc-st-design">算子测试</a>
28- <div class="sidebar-label">模型领域</div>
29- <a data-plugin-link="model-infer-optimize" href="./plugin.html?id=model-infer-optimize">模型迁移与推理优化</a>
30- </aside>
31- 
32- <main class="docs-main">
33- <article class="docs-article">
34- <div class="breadcrumbs"><a href="./">插件门户</a><span>›</span><span id="breadcrumb-domain">算子领域</span><span>›</span><strong id="breadcrumb-title">算子生成</strong></div>
35- <div class="article-title-row">
36- <div><p class="article-kicker" id="article-domain">算子领域</p><h1 id="article-title">算子生成</h1></div>
37- </div>
38- <p class="article-lede" id="article-lede"></p>
39- <div class="info-callout">
40- <span class="info-callout-icon" aria-hidden="true">
41- <svg viewBox="0 0 20 20"><path d="M10 1.5c.55 4.75 3.75 7.95 8.5 8.5-4.75.55-7.95 3.75-8.5 8.5-.55-4.75-3.75-7.95-8.5-8.5 4.75-.55 7.95-3.75 8.5-8.5Z"/></svg>
42- </span>
43- <p id="article-callout"></p>
44- </div>
45- 
46- <section id="step-install" class="doc-section">
47- <h2>Step 1:一键安装</h2>
48- <p>在目标项目根目录执行。选择 Agent 客户端,复制生成的命令即可。</p>
49- <div class="install-panel">
50- <div class="tool-tabs" role="tablist" aria-label="客户端">
51- <button class="active" data-doc-tool="opencode">OpenCode</button>
52- <button data-doc-tool="codex">Codex</button>
53- <button data-doc-tool="claude">Claude Code</button>
54- <button data-doc-tool="trae">TRAE</button>
55- <button data-doc-tool="dsh">DSH</button>
56- </div>
57- <div class="code-block large-code">
58- <div class="code-label"><span>Terminal</span><button data-copy-target="install-command">复制</button></div>
59- <pre><code id="install-command"></code></pre>
60- </div>
61- <p class="install-note" id="install-note"></p>
62- </div>
63- </section>
64- 
65- <section id="step-launch" class="doc-section step-section">
66- <div class="step-number">2</div>
67- <div class="step-content">
68- <h2>启动 Agent 客户端</h2>
69- <p>安装完成后,在当前项目根目录启动客户端。以 OpenCode 为例:</p>
70- <div class="code-block"><div class="code-label"><span>Terminal</span><button data-copy-target="launch-command">复制</button></div><pre><code id="launch-command">opencode</code></pre></div>
71- </div>
72- </section>
73- 
74- <section id="step-prompt" class="doc-section step-section">
75- <div class="step-number">3</div>
76- <div class="step-content">
77- <h2>输入提示词</h2>
78- <p>直接描述目标和约束,CANNBot 会加载对应工作流并按步骤推进。</p>
79- <div class="prompt-card"><div class="prompt-card-head"><span>提示词样例</span><button data-copy-target="prompt-example">复制</button></div><p id="prompt-example"></p></div>
80- </div>
81- </section>
82- 
83- <div class="next-card">
84- <span>接下来</span>
85- <a id="next-plugin" href="./plugin.html?id=ascendc-st-design"><strong id="next-title">算子测试</strong><span>→</span></a>
86- </div>
87- </article>
88- 
89- <aside class="page-toc">
90- <strong>本页内容</strong>
91- <a href="#step-install">一键安装</a>
92- <a href="#step-launch">启动客户端</a>
93- <a href="#step-prompt">提示词样例</a>
94- </aside>
95- </main>
96- <div class="toast" id="toast" role="status" aria-live="polite">内容已复制</div>
97- <script src="./app.js"></script>
98- </body>
99-</html>
@@ -1,148 +0,0 @@
1-@font-face {
2- font-family: "Space Grotesk";
3- src: url("./assets/fonts/space-grotesk-latin.woff2") format("woff2");
4- font-style: normal;
5- font-weight: 500 700;
6- font-display: swap;
7-}
8- 
9-:root {
10- color-scheme: light;
11- --ink: #10131a;
12- --muted: #667085;
13- --line: #e7e9ef;
14- --blue: #3f6fff;
15- --blue-dark: #173c91;
16- --night: #07111f;
17- --night-soft: #0d1b2d;
18- --mint: #eafbf1;
19- --mint-border: #a8ebc2;
20- --sidebar: 252px;
21- --header: 72px;
22- font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
23-}
24- 
25-* { box-sizing: border-box; }
26-html { scroll-behavior: smooth; }
27-body { margin: 0; color: var(--ink); background: #fff; }
28-a { color: inherit; text-decoration: none; }
29-button, input { font: inherit; }
30-button { cursor: pointer; }
31- 
32-.brand { display: inline-flex; align-items: center; color: #17191f; font-family: "Space Grotesk", Inter, ui-sans-serif, sans-serif; }
33-.brand-light { color: #fff; }
34-.brand em { padding: 3px 7px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: rgba(255,255,255,.68); font-size: 10px; font-style: normal; font-weight: 500; letter-spacing: .5px; }
35-.brand-image { display: block; width: auto; height: 32px; object-fit: contain; }
36-.landing-nav .brand-image { height: 28px; }
37-.brand-light .brand-image { filter: none; }
38- 
39-.landing-page { background: #03060c; }
40-.landing-nav { position: absolute; z-index: 20; top: 0; left: 50%; display: flex; width: min(1280px, calc(100% - 64px)); height: 72px; align-items: center; justify-content: space-between; transform: translateX(-50%); }
41-.language-switcher { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(0,0,0,.18); backdrop-filter: blur(14px); }.language-switcher button { height: 28px; border: 0; border-radius: 5px; padding: 0 9px; color: rgba(255,255,255,.46); font-size: 12px; background: transparent; transition: color .2s ease, background .2s ease; }.language-switcher button:hover { color: rgba(255,255,255,.8); }.language-switcher button.active { color: #fff; background: rgba(255,255,255,.1); }
42-.hero { position: relative; min-height: 720px; height: 100vh; max-height: 1000px; overflow: hidden; color: #fff; background: #03060c; }
43-.hero::before { position: absolute; z-index: 1; inset: 0; content: ""; background-image: linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px); background-size: 90px 90px; mask-image: linear-gradient(#000, transparent 88%); pointer-events: none; }
44-.hero::after { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; height: 34%; content: ""; background: linear-gradient(transparent, #03060c 92%); pointer-events: none; }
45-.hero-motion { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; mask-image: linear-gradient(#000 0%, rgba(0,0,0,.96) 45%, transparent 100%); }
46-#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
47-.hero-orbit { position: absolute; top: 50%; left: 66%; width: min(52vw, 720px); aspect-ratio: 1; transform: translate(-50%,-50%); opacity: .74; filter: drop-shadow(0 0 48px rgba(76,126,220,.26)); animation: orbit-breathe 7s ease-in-out infinite; }
48-.orbit-ring, .orbit-core, .hero-orbit i { position: absolute; top: 50%; left: 50%; border-radius: 50%; }
49-.orbit-ring { border: 1px solid rgba(145,181,248,.3); box-shadow: inset 0 0 42px rgba(71,112,195,.08), 0 0 18px rgba(91,137,224,.06); }
50-.orbit-ring-one { width: 54%; height: 54%; transform: translate(-50%,-50%) rotate(15deg) scaleY(.38); animation: ring-one 13s linear infinite; }
51-.orbit-ring-two { width: 72%; height: 72%; border-style: dashed; transform: translate(-50%,-50%) rotate(68deg) scaleY(.46); animation: ring-two 18s linear infinite reverse; }
52-.orbit-ring-three { width: 38%; height: 38%; transform: translate(-50%,-50%) rotate(128deg) scaleY(.55); animation: ring-three 10s linear infinite; }
53-.orbit-core { width: 11px; height: 11px; transform: translate(-50%,-50%); background: #c2d8ff; box-shadow: 0 0 14px 2px #8db4ff, 0 0 54px 22px rgba(67,119,218,.4), 0 0 110px 38px rgba(47,91,181,.16); }
54-.hero-orbit i { width: 6px; height: 6px; background: #c7dcff; box-shadow: 0 0 16px 2px rgba(124,166,247,.9); }
55-.node-one { margin: -17% 0 0 25%; animation: node-flicker 2.8s ease-in-out infinite; }
56-.node-two { margin: 19% 0 0 -27%; animation: node-flicker 3.5s ease-in-out -1s infinite; }
57-.node-three { margin: -5% 0 0 -34%; animation: node-flicker 4.1s ease-in-out -2s infinite; }
58-@keyframes ring-one { to { transform: translate(-50%,-50%) rotate(375deg) scaleY(.38); } }
59-@keyframes ring-two { to { transform: translate(-50%,-50%) rotate(428deg) scaleY(.46); } }
60-@keyframes ring-three { to { transform: translate(-50%,-50%) rotate(488deg) scaleY(.55); } }
61-@keyframes orbit-breathe { 50% { opacity: .92; filter: drop-shadow(0 0 64px rgba(76,126,220,.36)); } }
62-@keyframes node-flicker { 50% { opacity: .25; transform: scale(.65); } }
63-.hero-inner { position: relative; z-index: 5; display: grid; width: min(1280px, calc(100% - 64px)); height: 100%; margin: 0 auto; grid-template-columns: 1fr; align-items: center; padding: 90px 0 54px; }
64-.hero-inner > *, .hero-copy { min-width: 0; }
65-.eyebrow { margin: 0 0 20px; color: rgba(255,255,255,.66); font-size: 12px; font-weight: 620; letter-spacing: 1.5px; text-transform: uppercase; }
66-.eyebrow.dark { color: #5476d6; }
67-.hero-copy { max-width: 720px; }
68-.hero-copy h1 { margin: 0; font-size: clamp(42px, 3.2vw, 46px); font-weight: 500; line-height: 1.2; letter-spacing: .2px; }
69-.hero-lede { max-width: 580px; margin: 28px 0 0; color: rgba(222,226,234,.53); font-size: 16px; line-height: 1.75; }
70-.hero-lede p { margin: 0; }.hero-lede p + p { margin-top: 8px; }
71-.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
72-.button { display: inline-flex; height: 42px; align-items: center; gap: 12px; padding: 0 18px; border: 1px solid rgba(255,255,255,.11); border-radius: 8px; font-size: 13px; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
73-.button:hover { transform: translateY(-2px); }
74-.button-icon { width: 15px; height: 15px; object-fit: contain; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
75-.button-icon-gitcode { width: 17px; height: 17px; }
76-.button-primary { color: #0b0d11; background: #f3f4f6; }
77-.button-ghost { color: rgba(255,255,255,.75); background: rgba(255,255,255,.035); backdrop-filter: blur(12px); }
78-.button-ghost:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); }
79-.hero .reveal { opacity: 1; transform: none; filter: none; transition: none; }
80-.plugin-section { padding: 120px max(24px, calc((100vw - 1280px)/2)) 140px; color: #f2f3f5; background: #03060c; }
81-.section-heading { max-width: 720px; margin-bottom: 46px; }
82-.section-heading h2 { margin: 0; font-size: clamp(28px, 3vw, 36px); font-weight: 500; line-height: 1.5; letter-spacing: -.02em; }
83-.section-heading > p:last-child { max-width: 610px; margin-top: 14px; color: rgba(226,230,238,.48); font-size: 16px; line-height: 1.6; }
84-.plugin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
85-.plugin-card { position: relative; min-height: 340px; overflow: hidden; padding: 34px; border: 1px solid rgba(255,255,255,.085); border-radius: 12px; background: #121419; transition: transform .28s ease, box-shadow .28s ease, border .28s ease, background .28s ease; }
86-.plugin-card:hover { transform: translateY(-5px); border-color: rgba(115,158,238,.38); background: #151922; box-shadow: 0 24px 60px rgba(0,0,0,.24); }
87-.plugin-card-featured { color: #fff; border-color: rgba(104,153,239,.3); background: radial-gradient(circle at 90% 0, rgba(54,90,147,.5), transparent 40%), #131a25; }
88-.plugin-card-featured::after { position: absolute; right: -55px; bottom: -75px; width: 230px; height: 230px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 32px rgba(255,255,255,.025), 0 0 0 64px rgba(255,255,255,.018); content: ""; }
89-.card-index { position: absolute; top: 28px; right: 30px; color: rgba(255,255,255,.3); font-family: ui-monospace, monospace; font-size: 11px; }
90-.plugin-card-featured .card-index { color: rgba(255,255,255,.35); }
91-.card-icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 46px; border-radius: 10px; color: #82a8ff; font-size: 25px; background: rgba(91,133,223,.12); }
92-.plugin-card-featured .card-icon { color: #dbe8ff; background: rgba(255,255,255,.1); }
93-.icon-test { color: #a68cf1; background: rgba(124,84,216,.13); }.icon-model { color: #68c8ad; background: rgba(23,142,114,.13); }.icon-compile { color: #e99a73; background: rgba(219,110,58,.13); }
94-.card-domain { margin: 0 0 8px; color: rgba(255,255,255,.4); font-size: 12px; }.plugin-card-featured .card-domain { color: rgba(255,255,255,.46); }
95-.plugin-card h3 { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.5; letter-spacing: -.01em; }
96-.plugin-card > p:not(.card-domain) { max-width: 460px; margin: 15px 0 28px; color: rgba(226,230,238,.48); font-size: 14px; line-height: 1.75; }.plugin-card-featured > p:not(.card-domain) { color: rgba(255,255,255,.56); }
97-.card-meta { display: flex; gap: 8px; }.card-meta span { padding: 5px 9px; border-radius: 999px; color: rgba(255,255,255,.46); font-size: 10px; background: rgba(255,255,255,.055); }.plugin-card-featured .card-meta span { color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
98-.card-arrow { position: absolute; right: 30px; bottom: 28px; font-size: 20px; transition: transform .2s ease; }.plugin-card:hover .card-arrow { transform: translate(3px,-3px); }
99-.demo-section { padding: 110px max(24px, calc((100vw - 1280px)/2)) 120px; border-top: 1px solid rgba(255,255,255,.07); color: #fff; background: #03060c; }.demo-heading { max-width: 760px; margin: 0 auto 42px; text-align: center; }.demo-heading h2 { margin: 0; font-size: clamp(28px, 3vw, 36px); font-weight: 500; line-height: 1.5; letter-spacing: -.02em; }.demo-heading > p:last-child { max-width: 650px; margin: 14px auto 0; color: rgba(226,230,238,.48); font-size: 16px; line-height: 1.6; }.demo-video-frame { position: relative; overflow: hidden; width: min(1280px, 100%); margin: 0 auto; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: #080b10; box-shadow: 0 36px 100px rgba(0,0,0,.32), 0 0 70px rgba(45,91,170,.08); }.demo-video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #080b10; }
100-.workflow-band { display: grid; padding: 130px max(24px, calc((100vw - 1280px)/2)); border-top: 1px solid rgba(255,255,255,.07); color: #fff; background: #04070e; grid-template-columns: 1fr .9fr; gap: 140px; }
101-.workflow-copy { max-width: 480px; }.workflow-copy h2 { margin: 0; font-size: clamp(28px, 3vw, 36px); font-weight: 500; line-height: 1.5; letter-spacing: -.02em; }.workflow-copy > p:not(.eyebrow) { margin: 20px 0 0; color: rgba(226,230,238,.5); font-size: 14px; line-height: 1.8; }
102-.workflow-doc-link { margin-top: 30px; }
103-.workflow-steps { margin: 0; padding: 0; list-style: none; }
104-.workflow-steps li { display: flex; gap: 24px; padding: 25px 0; border-top: 1px solid rgba(255,255,255,.1); }
105-.workflow-steps li > span { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #8eb0ed; font-size: 11px; }
106-.workflow-steps strong { font-size: 16px; font-weight: 500; }.workflow-steps p { margin: 7px 0 0; color: rgba(255,255,255,.45); font-size: 13px; line-height: 1.6; }
107-.landing-footer { display: grid; align-items: center; padding: 42px max(24px, calc((100vw - 1280px)/2)); border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.4); background: #03060c; font-size: 11px; grid-template-columns: 1fr 1fr 1fr; }.landing-footer p:nth-child(2) { text-align: center; }.landing-footer p:last-child { text-align: right; }
108-.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }.reveal-delay { transition-delay: .16s; }.reveal.revealed { opacity: 1; transform: none; }
109-.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; padding: 11px 16px; border-radius: 9px; color: #fff; font-size: 12px; background: #16243b; box-shadow: 0 12px 36px rgba(0,0,0,.2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }.toast.show { opacity: 1; transform: none; }
110- 
111-/* Documentation page */
112-.docs-page { min-height: 100vh; background: #fff; }
113-.docs-header { position: fixed; z-index: 40; top: 0; right: 0; left: 0; display: flex; height: var(--header); align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid #eceef2; background: rgba(255,255,255,.94); backdrop-filter: blur(15px); }
114-.docs-header-actions { display: flex; align-items: center; gap: 21px; color: #596173; font-size: 13px; }
115-.search-box { display: flex; width: 280px; height: 38px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #e1e4e9; border-radius: 9px; background: #fafbfc; }
116-.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: #353b47; background: transparent; }.search-box kbd { color: #9aa1ad; font-size: 10px; font-family: inherit; }
117-.theme-button { width: 34px; height: 34px; border: 1px solid #e2e5ea; border-radius: 8px; color: #596173; background: #fff; }
118-.docs-sidebar { position: fixed; z-index: 30; top: var(--header); bottom: 0; left: 0; width: var(--sidebar); overflow-y: auto; padding: 36px 22px; border-right: 1px solid #edf0f3; background: #fbfbfc; }
119-.sidebar-label { margin: 20px 11px 9px; color: #9ba2af; font-size: 11px; font-weight: 650; letter-spacing: .5px; }.sidebar-label:first-child { margin-top: 0; }
120-.docs-sidebar a { display: block; margin: 2px 0; padding: 9px 11px; border-radius: 7px; color: #606878; font-size: 13px; }.docs-sidebar a:hover { color: #315bd5; background: #f1f4fc; }.docs-sidebar a.active { color: #315bd5; font-weight: 600; background: #edf2ff; }
121-.docs-main { display: grid; max-width: 1260px; margin-left: var(--sidebar); padding: calc(var(--header) + 44px) 48px 100px 70px; grid-template-columns: minmax(0, 820px) 160px; gap: 70px; }
122-.docs-article { min-width: 0; }.breadcrumbs { display: flex; align-items: center; gap: 9px; margin-bottom: 48px; color: #8a92a0; font-size: 12px; }.breadcrumbs a { color: #5575d5; }.breadcrumbs strong { color: #424957; font-weight: 500; }
123-.article-title-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; }.article-kicker { margin: 0 0 10px; color: #3167ef; font-size: 13px; font-weight: 620; }.article-title-row h1 { margin: 0; font-size: clamp(38px, 5vw, 52px); font-weight: 680; letter-spacing: -2.2px; }
124-.article-lede { margin: 22px 0 30px; color: #626b7c; font-size: 16px; line-height: 1.85; }
125-.info-callout { display: flex; align-items: center; gap: 13px; margin-bottom: 58px; padding: 17px 20px; border: 1px solid var(--mint-border); border-radius: 13px; color: #236c43; background: var(--mint); }.info-callout-icon { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; color: #32915c; }.info-callout-icon svg { display: block; width: 17px; height: 17px; fill: currentColor; }.info-callout p { margin: 0; font-size: 13px; line-height: 1.7; }
126-.doc-section { scroll-margin-top: 100px; margin: 0 0 66px; }.doc-section > h2, .step-content h2 { margin: 0 0 14px; font-size: 26px; letter-spacing: -.8px; }.doc-section > p, .step-content > p { color: #687183; font-size: 14px; line-height: 1.75; }
127-.install-panel { overflow: hidden; margin-top: 26px; border: 1px solid #e2e5eb; border-radius: 14px; box-shadow: 0 12px 32px rgba(30,45,75,.05); }
128-.segment-control { display: flex; gap: 2px; padding: 10px; border-bottom: 1px solid #edf0f3; background: #fafbfc; }.segment-control button { padding: 9px 14px; border: 0; border-radius: 7px; color: #777f8e; font-size: 12px; background: transparent; }.segment-control button.active { color: #2855cb; font-weight: 600; background: #eaf0ff; }
129-.tool-tabs { display: flex; gap: 22px; overflow-x: auto; padding: 0 18px; border-bottom: 1px solid #edf0f3; }.tool-tabs button { padding: 15px 0 12px; border: 0; border-bottom: 2px solid transparent; color: #808796; font-size: 12px; white-space: nowrap; background: transparent; }.tool-tabs button.active { border-color: #4772ec; color: #2f5ed8; }
130-.code-block { overflow: hidden; margin-top: 18px; border: 1px solid #e3e6eb; border-radius: 10px; background: #f7f8fa; }.install-panel .code-block { margin: 22px; }.code-label { display: flex; height: 36px; align-items: center; justify-content: space-between; padding: 0 8px 0 12px; border-bottom: 1px solid #e3e6eb; color: #8b92a0; font-size: 10px; }.code-label button, .prompt-card-head button { min-width: 52px; padding: 6px 9px; border: 0; border-radius: 6px; color: #667287; font-size: 10px; background: transparent; transition: color .16s ease, background .16s ease, transform .08s ease; }.code-label button:hover, .prompt-card-head button:hover { color: #315fd7; background: #e8edfa; }.code-label button:active, .prompt-card-head button:active { transform: scale(.94); }.code-label button:focus-visible, .prompt-card-head button:focus-visible { outline: 2px solid #7191e8; outline-offset: 1px; }.code-label button.copied, .prompt-card-head button.copied { color: #237349; background: #def2e6; }.code-block pre { margin: 0; padding: 17px; overflow-x: auto; }.code-block code { color: #26334c; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 1.8; white-space: pre-wrap; }.large-code { background: #f7f9fc; }.install-note { margin: 0; padding: 0 22px 22px; color: #858d9c; font-size: 11px; }
131-.step-section { display: grid; grid-template-columns: 38px 1fr; gap: 18px; }.step-number { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #30435f; font-size: 12px; background: #f0f2f7; }.step-section::after { position: absolute; content: ""; }.step-content { min-width: 0; }
132-.prompt-card { margin-top: 20px; overflow: hidden; border: 1px solid #dfe4ec; border-radius: 12px; background: linear-gradient(145deg, #f7f9fd, #f3f6fb); }.prompt-card-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; border-bottom: 1px solid #e1e5ec; color: #697386; font-size: 11px; }.prompt-card p { margin: 0; padding: 20px; color: #3e4b61; font-size: 13px; line-height: 1.85; }
133-.next-card { margin-top: 90px; padding-top: 24px; border-top: 1px solid #e9ebef; }.next-card > span { color: #9aa1ad; font-size: 11px; }.next-card a { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 18px 20px; border: 1px solid #e3e6eb; border-radius: 11px; color: #345fda; }.next-card strong { font-size: 14px; }
134-.page-toc { position: sticky; top: 110px; height: fit-content; padding-left: 18px; border-left: 1px solid #e6e9ed; }.page-toc strong, .page-toc a { display: block; font-size: 11px; }.page-toc strong { margin-bottom: 14px; color: #424957; }.page-toc a { margin: 10px 0; color: #9097a4; }.page-toc a:hover { color: #4169db; }
135-.mobile-menu { display: none; }
136- 
137-@media (max-width: 980px) {
138- .hero { height: auto; min-height: 760px; }.hero-inner { grid-template-columns: 1fr; align-content: center; padding: 130px 0 95px; }.hero-copy h1 { letter-spacing: 0; }.hero-orbit { top: 34%; left: 72%; width: 680px; opacity: .35; }.plugin-grid { grid-template-columns: 1fr; }.workflow-band { grid-template-columns: 1fr; gap: 55px; }.page-toc { display: none; }.docs-main { grid-template-columns: 1fr; padding-right: 36px; }
139-}
140-@media (max-width: 760px) {
141- .landing-nav { width: calc(100% - 32px); }.landing-nav nav { display: none; }.hero-inner { width: calc(100% - 34px); }.hero-copy, .hero-lede { width: calc(100vw - 44px); max-width: calc(100vw - 44px); }.hero-copy h1 { font-size: 42px; }.hero-lede { font-size: 15px; }.hero-lede p { overflow-wrap: anywhere; word-break: break-all; }.hero-actions { gap: 9px; }.button { padding: 0 14px; }.hero-orbit { left: 85%; }.plugin-section, .demo-section, .workflow-band { padding: 88px 17px; }.plugin-card { min-height: 320px; padding: 26px; }.section-heading h2, .demo-heading h2, .workflow-copy h2 { letter-spacing: -2px; }.demo-heading { margin-bottom: 34px; }.demo-video-frame { border-radius: 11px; }.landing-footer { grid-template-columns: 1fr; gap: 10px; }.landing-footer p:nth-child(2), .landing-footer p:last-child { text-align: left; }
142- .docs-header { padding: 0 16px; }.docs-header-actions .search-box, .docs-header-actions > a { display: none; }.docs-sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 20px 0 40px rgba(0,0,0,.08); }.docs-sidebar.open { transform: none; }.mobile-menu { position: fixed; z-index: 50; top: 82px; left: 12px; display: block; width: 36px; height: 36px; border: 1px solid #e2e5ea; border-radius: 8px; color: #596173; background: #fff; }.docs-main { margin-left: 0; padding: 126px 20px 70px; }.breadcrumbs { margin-bottom: 30px; }.article-title-row { align-items: start; }.article-title-row h1 { font-size: 38px; }.tool-tabs { gap: 18px; }.install-panel .code-block { margin: 14px; }.step-section { grid-template-columns: 30px 1fr; gap: 12px; }
143-}
144- 
145-@media (prefers-reduced-motion: reduce) {
146- *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
147- .reveal { opacity: 1; transform: none; }
148-}