hongjli
2025-04-08 6590930e7aeb1345539dc571ca8202d4825ec12d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
"use client";
 
import { useEffect, useRef } from 'react';
import { motion } from 'framer-motion';
 
interface Node {
  x: number;
  y: number;
  label: string;
  color: string;
  icon?: string;
  isAI?: boolean;
}
 
export default function SupplyChainAIMindMap() {
  const canvasRef = useRef<HTMLCanvasElement>(null);
  
  useEffect(() => {
    const canvas = canvasRef.current;
    if (!canvas) return;
    
    const ctx = canvas.getContext('2d');
    if (!ctx) return;
    
    const setCanvasSize = () => {
      canvas.width = canvas.offsetWidth;
      canvas.height = canvas.offsetHeight;
    };
    
    setCanvasSize();
    window.addEventListener('resize', setCanvasSize);
    
    // 量子数据粒子系统
    interface QuantumParticle {
      x: number;
      y: number;
      targetX: number;
      targetY: number;
      size: number;
      color: string;
      speed: number;
      energy: number;
      phase: number;
      orbitRadius: number;
      orbitSpeed: number;
      pathIndex: number;
      lifespan: number;
      maxLifespan: number;
    }
    
    interface Point {
      x: number;
      y: number;
    }
    
    interface Path {
      start: Point;
      end: Point;
      color: string;
      particles: QuantumParticle[];
    }
    
    const particles: QuantumParticle[] = [];
    
    // 定义数据流路径
    const paths: Path[] = [
      { start: { x: 0.15, y: 0.3 }, end: { x: 0.35, y: 0.3 }, color: '#6ADBFF', particles: [] }, // 采购到生产
      { start: { x: 0.35, y: 0.3 }, end: { x: 0.65, y: 0.3 }, color: '#5E72EB', particles: [] }, // 生产到配送
      { start: { x: 0.65, y: 0.3 }, end: { x: 0.85, y: 0.3 }, color: '#FF6A88', particles: [] }, // 配送到客户
      { start: { x: 0.85, y: 0.3 }, end: { x: 0.85, y: 0.6 }, color: '#FF9D6A', particles: [] }, // 客户到需求预测
      { start: { x: 0.85, y: 0.6 }, end: { x: 0.5, y: 0.5 }, color: '#FF6A88', particles: [] },  // 需求预测到AI
      { start: { x: 0.5, y: 0.5 }, end: { x: 0.15, y: 0.3 }, color: '#6ADBFF', particles: [] }   // AI到采购
    ];
    
    // 创建量子粒子
    const createQuantumParticle = () => {
      const pathIndex = Math.floor(Math.random() * paths.length);
      const path = paths[pathIndex];
      const startX = path.start.x * canvas.width;
      const startY = path.start.y * canvas.height;
      const endX = path.end.x * canvas.width;
      const endY = path.end.y * canvas.height;
      
      const particle: QuantumParticle = {
        x: startX,
        y: startY,
        targetX: endX,
        targetY: endY,
        size: Math.random() * 2 + 1,
        color: path.color,
        speed: 0.5 + Math.random() * 1,
        energy: 1,
        phase: Math.random() * Math.PI * 2,
        orbitRadius: Math.random() * 20 + 10,
        orbitSpeed: (Math.random() * 0.1 + 0.05) * (Math.random() < 0.5 ? 1 : -1),
        pathIndex,
        lifespan: 0,
        maxLifespan: 150 + Math.random() * 100
      };
      
      particles.push(particle);
    };
    
    // 更新量子粒子
    const updateParticles = () => {
      const time = Date.now() * 0.001;
      
      for (let i = particles.length - 1; i >= 0; i--) {
        const p = particles[i];
        p.lifespan++;
        
        if (p.lifespan >= p.maxLifespan) {
          particles.splice(i, 1);
          continue;
        }
        
        // 计算到目标的方向和距离
        const dx = p.targetX - p.x;
        const dy = p.targetY - p.y;
        const dist = Math.sqrt(dx * dx + dy * dy);
        
        if (dist < 5) {
          // 到达目标点,设置新目标
          const nextPathIndex = (p.pathIndex + 1) % paths.length;
          const nextPath = paths[nextPathIndex];
          p.pathIndex = nextPathIndex;
          p.targetX = nextPath.end.x * canvas.width;
          p.targetY = nextPath.end.y * canvas.height;
          p.phase = Math.random() * Math.PI * 2; // 重置相位
        }
        
        // 量子轨道运动
        const progress = p.lifespan / p.maxLifespan;
        const orbitAmplitude = Math.sin(progress * Math.PI) * p.orbitRadius;
        const orbitPhase = p.phase + time * p.orbitSpeed;
        
        // 计算主要移动方向
        const moveX = dx / dist * p.speed;
        const moveY = dy / dist * p.speed;
        
        // 添加量子轨道偏移
        const perpX = -dy / dist;
        const perpY = dx / dist;
        
        p.x += moveX + perpX * Math.sin(orbitPhase) * orbitAmplitude * 0.1;
        p.y += moveY + perpY * Math.sin(orbitPhase) * orbitAmplitude * 0.1;
        
        // 更新能量值
        p.energy = Math.sin(progress * Math.PI);
      }
    };
    
    // 绘制场景
    const drawScene = () => {
      ctx.clearRect(0, 0, canvas.width, canvas.height);
      
      // 绘制科技感背景
      drawTechBackground();
      
      // 绘制能量场路径
      drawEnergyFields();
      
      // 绘制节点
      drawNodes();
      
      // 绘制量子粒子
      drawQuantumParticles();
    };
    
    // 绘制科技感背景
    const drawTechBackground = () => {
      const gridSize = 40;
      const time = Date.now() * 0.001;
      
      // 绘制动态网格
      ctx.strokeStyle = 'rgba(70, 130, 180, 0.05)';
      ctx.lineWidth = 0.5;
      
      for (let y = 0; y < canvas.height; y += gridSize) {
        ctx.beginPath();
        ctx.moveTo(0, y);
        ctx.lineTo(canvas.width, y);
        ctx.stroke();
        
        // 添加波动效果
        ctx.beginPath();
        for (let x = 0; x < canvas.width; x += 5) {
          const wave = Math.sin(x * 0.02 + time + y * 0.01) * 2;
          ctx.lineTo(x, y + wave);
        }
        ctx.strokeStyle = 'rgba(70, 130, 180, 0.02)';
        ctx.stroke();
      }
      
      for (let x = 0; x < canvas.width; x += gridSize) {
        ctx.beginPath();
        ctx.moveTo(x, 0);
        ctx.lineTo(x, canvas.height);
        ctx.strokeStyle = 'rgba(70, 130, 180, 0.05)';
        ctx.stroke();
      }
      
      // 添加随机光点
      for (let i = 0; i < 15; i++) {
        const x = Math.random() * canvas.width;
        const y = Math.random() * canvas.height;
        const size = 2 + Math.sin(time * 2 + i) * 1;
        
        const gradient = ctx.createRadialGradient(x, y, 0, x, y, size * 2);
        gradient.addColorStop(0, 'rgba(106, 219, 255, 0.2)');
        gradient.addColorStop(1, 'rgba(106, 219, 255, 0)');
        
        ctx.beginPath();
        ctx.fillStyle = gradient;
        ctx.arc(x, y, size * 2, 0, Math.PI * 2);
        ctx.fill();
      }
    };
    
    // 绘制能量场
    const drawEnergyFields = () => {
      const time = Date.now() * 0.001;
      
      paths.forEach((path: Path) => {
        const startX = path.start.x * canvas.width;
        const startY = path.start.y * canvas.height;
        const endX = path.end.x * canvas.width;
        const endY = path.end.y * canvas.height;
        
        // 创建能量场效果
        const numPoints = 30;
        const fieldWidth = 40;
        
        // 计算路径方向
        const dx = endX - startX;
        const dy = endY - startY;
        const length = Math.sqrt(dx * dx + dy * dy);
        const dirX = dx / length;
        const dirY = dy / length;
        
        // 垂直方向
        const perpX = -dirY;
        const perpY = dirX;
        
        // 绘制能量流动效果
        for (let i = 0; i < numPoints; i++) {
          const progress = i / (numPoints - 1);
          const x = startX + dx * progress;
          const y = startY + dy * progress;
          
          // 创建波浪效果
          const waveAmplitude = Math.sin(progress * Math.PI * 4 + time * 3) * fieldWidth;
          const waveFrequency = Math.cos(progress * Math.PI * 2 - time * 2) * fieldWidth * 0.3;
          
          const x1 = x + perpX * waveAmplitude + dirX * waveFrequency;
          const y1 = y + perpY * waveAmplitude + dirY * waveFrequency;
          const x2 = x - perpX * waveAmplitude - dirX * waveFrequency;
          const y2 = y - perpY * waveAmplitude - dirY * waveFrequency;
          
          const gradient = ctx.createLinearGradient(x1, y1, x2, y2);
          const alpha = (Math.sin(progress * Math.PI + time) + 1) * 0.3;
          const alphaHex = Math.floor(alpha * 255).toString(16).padStart(2, '0');
          
          gradient.addColorStop(0, `${path.color}00`);
          gradient.addColorStop(0.5, `${path.color}${alphaHex}`);
          gradient.addColorStop(1, `${path.color}00`);
          
          ctx.beginPath();
          ctx.strokeStyle = gradient;
          ctx.lineWidth = 2;
          ctx.moveTo(x1, y1);
          ctx.lineTo(x2, y2);
          ctx.stroke();
        }
      });
    };
    
    // 绘制节点
    const drawNodes = () => {
      // 节点配置
      const nodes: Node[] = [
        { x: 0.15, y: 0.3, label: '采购', color: '#6ADBFF', icon: '📦' },
        { x: 0.35, y: 0.3, label: '生产', color: '#5E72EB', icon: '🏭' },
        { x: 0.65, y: 0.3, label: '配送', color: '#FF6A88', icon: '🚚' },
        { x: 0.85, y: 0.3, label: '客户', color: '#FF9D6A', icon: '👥' },
        { x: 0.85, y: 0.6, label: '需求预测', color: '#FF6A88', icon: '📊' },
        { x: 0.5, y: 0.5, label: '智能分析引擎', color: '#5E72EB', isAI: true },
      ];
      
      const time = Date.now() * 0.001;
      
      nodes.forEach(node => {
        const x = node.x * canvas.width;
        const y = node.y * canvas.height;
        
        if (node.isAI) {
          drawAINode(x, y);
        } else {
          // 节点光环效果
          const pulseSize = 24 + Math.sin(time * 1.5 + x * 0.05) * 3;
          
          // 外发光
          const gradient = ctx.createRadialGradient(x, y, 15, x, y, pulseSize);
          gradient.addColorStop(0, `${node.color}30`);
          gradient.addColorStop(1, `${node.color}00`);
          
          ctx.beginPath();
          ctx.arc(x, y, pulseSize, 0, Math.PI * 2);
          ctx.fillStyle = gradient;
          ctx.fill();
          
          // 节点主体
          ctx.beginPath();
          ctx.arc(x, y, 20, 0, Math.PI * 2);
          ctx.fillStyle = `${node.color}20`;
          ctx.fill();
          
          ctx.beginPath();
          ctx.arc(x, y, 20, 0, Math.PI * 2);
          ctx.strokeStyle = node.color;
          ctx.lineWidth = 2;
          ctx.stroke();
          
          // 图标
          if (node.icon) {
            ctx.fillStyle = node.color;
            ctx.font = '16px monospace';
            ctx.textAlign = 'center';
            ctx.textBaseline = 'middle';
            ctx.fillText(node.icon, x, y - 3);
          }
          
          // 标签
          ctx.fillStyle = '#fff';
          ctx.font = '12px sans-serif';
          ctx.fillText(node.label, x, y + 25);
        }
      });
    };
    
    // 绘制AI节点
    const drawAINode = (x: number, y: number) => {
      const time = Date.now() * 0.001;
      
      // 神经网络背景效果
      const neuronPoints = [
        { x: -20, y: -15 }, { x: 20, y: -15 },
        { x: -25, y: 0 }, { x: 25, y: 0 },
        { x: -20, y: 15 }, { x: 20, y: 15 },
        { x: 0, y: -20 }, { x: 0, y: 20 },
        { x: -15, y: -25 }, { x: 15, y: -25 },
        { x: -15, y: 25 }, { x: 15, y: 25 }
      ];
      
      // 绘制神经连接
      ctx.strokeStyle = 'rgba(106, 219, 255, 0.3)';
      ctx.lineWidth = 1;
      
      neuronPoints.forEach((point, i) => {
        for (let j = i + 1; j < neuronPoints.length; j++) {
          const p1 = { x: x + point.x, y: y + point.y };
          const p2 = { x: x + neuronPoints[j].x, y: y + neuronPoints[j].y };
          
          const pulsePhase = (time * 2 + i * 0.5 + j * 0.3) % (Math.PI * 2);
          const pulseIntensity = (Math.sin(pulsePhase) + 1) * 0.5;
          
          const gradient = ctx.createLinearGradient(p1.x, p1.y, p2.x, p2.y);
          gradient.addColorStop(0, `rgba(106, 219, 255, ${0.1 + pulseIntensity * 0.2})`);
          gradient.addColorStop(0.5, `rgba(94, 114, 235, ${0.2 + pulseIntensity * 0.3})`);
          gradient.addColorStop(1, `rgba(106, 219, 255, ${0.1 + pulseIntensity * 0.2})`);
          
          ctx.beginPath();
          ctx.strokeStyle = gradient;
          ctx.moveTo(p1.x, p1.y);
          
          // 创建动态弧形连接
          const controlPoint = {
            x: (p1.x + p2.x) / 2 + Math.sin(time + i) * 10,
            y: (p1.y + p2.y) / 2 + Math.cos(time + j) * 10
          };
          
          ctx.quadraticCurveTo(controlPoint.x, controlPoint.y, p2.x, p2.y);
          ctx.stroke();
          
          // 在连接线上添加流动粒子
          const particlePos = Math.sin(time * 2 + i * 0.7 + j * 0.5) * 0.5 + 0.5;
          const px = p1.x + (p2.x - p1.x) * particlePos;
          const py = p1.y + (p2.y - p1.y) * particlePos;
          
          const particleGlow = ctx.createRadialGradient(px, py, 0, px, py, 3);
          particleGlow.addColorStop(0, 'rgba(255, 255, 255, 0.8)');
          particleGlow.addColorStop(1, 'rgba(106, 219, 255, 0)');
          
          ctx.fillStyle = particleGlow;
          ctx.beginPath();
          ctx.arc(px, py, 3, 0, Math.PI * 2);
          ctx.fill();
        }
      });
      
      // 绘制大脑轮廓
      ctx.beginPath();
      ctx.moveTo(x - 25, y + 20);
      
      // 左半边大脑
      const leftOffset = Math.sin(time * 2) * 2;
      ctx.bezierCurveTo(
        x - 40 + leftOffset, y + 10,  // 控制点1
        x - 40 + leftOffset, y - 20,  // 控制点2
        x - 25, y - 25   // 终点
      );
      
      // 上部褶皱
      const topOffset = Math.sin(time * 2.5) * 2;
      ctx.bezierCurveTo(
        x - 20, y - 30 + topOffset,
        x - 10, y - 35 + topOffset,
        x, y - 25
      );
      
      // 右半边大脑
      const rightOffset = Math.sin(time * 2 + Math.PI) * 2;
      ctx.bezierCurveTo(
        x + 10, y - 35 + topOffset,
        x + 20, y - 30 + topOffset,
        x + 25, y - 25
      );
      
      ctx.bezierCurveTo(
        x + 40 + rightOffset, y - 20,
        x + 40 + rightOffset, y + 10,
        x + 25, y + 20
      );
      
      // 底部曲线
      const bottomOffset = Math.sin(time * 1.5) * 2;
      ctx.bezierCurveTo(
        x + 15, y + 25 + bottomOffset,
        x - 15, y + 25 + bottomOffset,
        x - 25, y + 20
      );
      
      // 创建大脑渐变
      const brainGradient = ctx.createRadialGradient(x, y, 0, x, y, 40);
      brainGradient.addColorStop(0, 'rgba(94, 114, 235, 0.8)');
      brainGradient.addColorStop(0.5, 'rgba(106, 219, 255, 0.6)');
      brainGradient.addColorStop(1, 'rgba(94, 114, 235, 0.4)');
      
      ctx.fillStyle = brainGradient;
      ctx.fill();
      
      // 添加脑波动画效果
      for (let i = 0; i < 3; i++) {
        const waveRadius = 35 + Math.sin(time * 2 + i * Math.PI / 3) * 5;
        const waveGradient = ctx.createRadialGradient(x, y, waveRadius - 5, x, y, waveRadius + 5);
        waveGradient.addColorStop(0, 'rgba(106, 219, 255, 0)');
        waveGradient.addColorStop(0.5, `rgba(94, 114, 235, ${0.1 - i * 0.03})`);
        waveGradient.addColorStop(1, 'rgba(106, 219, 255, 0)');
        
        ctx.beginPath();
        ctx.arc(x, y, waveRadius, 0, Math.PI * 2);
        ctx.fillStyle = waveGradient;
        ctx.fill();
      }
      
      // 添加神经元闪烁效果
      neuronPoints.forEach((point, i) => {
        const neuronX = x + point.x;
        const neuronY = y + point.y;
        const pulseScale = Math.sin(time * 3 + i) * 0.5 + 1.5;
        
        const neuronGlow = ctx.createRadialGradient(
          neuronX, neuronY, 0,
          neuronX, neuronY, 4 * pulseScale
        );
        neuronGlow.addColorStop(0, 'rgba(255, 255, 255, 0.8)');
        neuronGlow.addColorStop(0.5, 'rgba(106, 219, 255, 0.4)');
        neuronGlow.addColorStop(1, 'rgba(94, 114, 235, 0)');
        
        ctx.beginPath();
        ctx.arc(neuronX, neuronY, 4 * pulseScale, 0, Math.PI * 2);
        ctx.fillStyle = neuronGlow;
        ctx.fill();
      });
      
      // 添加脑沟纹理
      const numFolds = 8;
      for (let i = 0; i < numFolds; i++) {
        const angle = (Math.PI * 2 / numFolds) * i;
        const radius = 25;
        const x1 = x + Math.cos(angle) * radius;
        const y1 = y + Math.sin(angle) * radius;
        const x2 = x + Math.cos(angle + Math.PI / numFolds) * (radius * 0.7);
        const y2 = y + Math.sin(angle + Math.PI / numFolds) * (radius * 0.7);
        
        ctx.beginPath();
        ctx.moveTo(x1, y1);
        ctx.lineTo(x2, y2);
        ctx.strokeStyle = 'rgba(94, 114, 235, 0.3)';
        ctx.lineWidth = 1;
        ctx.stroke();
      }
      
      // 标签
      ctx.fillStyle = '#FFFFFF';
      ctx.font = '13px sans-serif';
      ctx.textAlign = 'center';
      ctx.textBaseline = 'middle';
      ctx.fillText('智能分析引擎', x, y + 45);
    };
    
    // 绘制量子粒子
    const drawQuantumParticles = () => {
      particles.forEach(p => {
        const time = Date.now() * 0.001;
        
        // 量子光晕效果
        const glowSize = p.size * (2 + Math.sin(time * 3 + p.phase) * 0.5);
        const gradient = ctx.createRadialGradient(p.x, p.y, 0, p.x, p.y, glowSize * 2);
        gradient.addColorStop(0, p.color + 'FF');
        gradient.addColorStop(0.5, p.color + '40');
        gradient.addColorStop(1, p.color + '00');
        
        ctx.beginPath();
        ctx.arc(p.x, p.y, glowSize, 0, Math.PI * 2);
        ctx.fillStyle = gradient;
        ctx.fill();
        
        // 量子核心
        ctx.beginPath();
        ctx.arc(p.x, p.y, p.size, 0, Math.PI * 2);
        ctx.fillStyle = '#FFFFFF';
        ctx.fill();
        
        // 量子波纹
        if (Math.random() < 0.1) {
          const waveGradient = ctx.createRadialGradient(p.x, p.y, 0, p.x, p.y, p.size * 4);
          waveGradient.addColorStop(0, p.color + '40');
          waveGradient.addColorStop(1, p.color + '00');
          
          ctx.beginPath();
          ctx.arc(p.x, p.y, p.size * 4, 0, Math.PI * 2);
          ctx.fillStyle = waveGradient;
          ctx.fill();
        }
      });
    };
    
    // 初始化粒子系统
    const initParticles = () => {
      for (let i = 0; i < 40; i++) {
        setTimeout(() => createQuantumParticle(), i * 100);
      }
    };
    
    // 定期添加新粒子
    const particleInterval = setInterval(() => {
      if (particles.length < 50) {
        createQuantumParticle();
      }
    }, 500);
    
    // 动画循环
    const animate = () => {
      updateParticles();
      drawScene();
      requestAnimationFrame(animate);
    };
    
    initParticles();
    animate();
    
    return () => {
      window.removeEventListener('resize', setCanvasSize);
      clearInterval(particleInterval);
    };
  }, []);
  
  return (
    <div className="w-full py-4">
      <motion.div
        initial={{ opacity: 0, y: 20 }}
        whileInView={{ opacity: 1, y: 0 }}
        viewport={{ once: false, margin: "-100px" }}
        transition={{ duration: 0.7, ease: "easeOut" }}
        className="text-center mb-8"
      >
        <h2 className="text-3xl md:text-4xl font-bold text-white mb-5">
          <span className="text-transparent bg-clip-text bg-gradient-to-r from-[#6ADBFF] to-[#5E72EB]">
            AI赋能APS
          </span> 优势全景
        </h2>
        <p className="text-gray-300 max-w-3xl mx-auto">
          全局智能协同,从供应链各环节收集数据,基于深度学习与量子启发算法实现端到端的智能决策与优化
        </p>
      </motion.div>
      
      <motion.div
        initial={{ opacity: 0 }}
        whileInView={{ opacity: 1 }}
        viewport={{ once: false, margin: "-100px" }}
        transition={{ duration: 1, ease: "easeOut" }}
        className="relative h-[450px] w-full backdrop-blur-sm bg-white/5 rounded-xl border border-[#6ADBFF]/20 overflow-hidden"
      >
        <canvas 
          ref={canvasRef} 
          className="absolute inset-0 w-full h-full"
        />
        
        <div className="absolute bottom-0 left-0 right-0 flex justify-center gap-6 p-6 bg-gradient-to-t from-[#0A1033]/90 to-transparent">
          <motion.div
            initial={{ opacity: 0, y: 20 }}
            whileInView={{ opacity: 1, y: 0 }}
            viewport={{ once: false }}
            transition={{ duration: 0.7, delay: 0.2 }}
            className="backdrop-blur-sm bg-white/5 rounded-lg p-4 border border-[#6ADBFF]/20 w-[30%]"
          >
            <h3 className="text-lg font-semibold text-[#6ADBFF] mb-2">动态响应</h3>
            <p className="text-gray-300 text-sm">实时感知供应链变化,智能调整生产计划,提升40%响应速度</p>
          </motion.div>
          
          <motion.div
            initial={{ opacity: 0, y: 20 }}
            whileInView={{ opacity: 1, y: 0 }}
            viewport={{ once: false }}
            transition={{ duration: 0.7, delay: 0.3 }}
            className="backdrop-blur-sm bg-white/5 rounded-lg p-4 border border-[#5E72EB]/20 w-[30%]"
          >
            <h3 className="text-lg font-semibold text-[#5E72EB] mb-2">预测优化</h3>
            <p className="text-gray-300 text-sm">基于深度学习预测市场需求,降低25%库存成本,提高物料利用率</p>
          </motion.div>
          
          <motion.div
            initial={{ opacity: 0, y: 20 }}
            whileInView={{ opacity: 1, y: 0 }}
            viewport={{ once: false }}
            transition={{ duration: 0.7, delay: 0.4 }}
            className="backdrop-blur-sm bg-white/5 rounded-lg p-4 border border-[#FF6A88]/20 w-[30%]"
          >
            <h3 className="text-lg font-semibold text-[#FF6A88] mb-2">多维决策</h3>
            <p className="text-gray-300 text-sm">平衡成本、交期、质量多维目标,实现真正全局最优解</p>
          </motion.div>
        </div>
      </motion.div>
    </div>
  );