欢迎来到小意官网

@iosyi666

// 添加淡出效果 announcement.classList.add('hidden'); // 初始化粒子特效 createCyberEffect(); }); // 粒子特效函数 function createCyberEffect() { const colors = ['#00f3ff', '#ff00ff', '#00ff00']; let particles = 0; const effectInterval = setInterval(() => { if(particles++ > 100) clearInterval(effectInterval); const particle = document.createElement('div'); particle.style.cssText = ` position: fixed; width: 2px; height: 2px; background: ${colors[Math.floor(Math.random()*colors.length)]}; box-shadow: 0 0 10px currentColor; left: ${Math.random()*100}%; top: ${Math.random()*100}%; pointer-events: none; animation: fall ${2 + Math.random()*3}s linear; `; document.body.appendChild(particle); // 自动移除粒子 setTimeout(() => { particle.remove(); }, 2000); }, 50); // 粒子下落动画 const style = document.createElement('style'); style.textContent = ` @keyframes fall { 0% { transform: translateY(-100vh); } 100% { transform: translateY(100vh); } } `; document.head.appendChild(style); } });