<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sky Data | 天空数据</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
color: #ffffff;
min-height: 100vh;
overflow-x: hidden;
position: relative;
background: transparent;
}
/* 透明玻璃质感背景 */
.glass-layer {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
background:
radial-gradient(circle at 20% 30%, rgba(0, 150, 255, 0.08) 0%, transparent 40%),
radial-gradient(circle at 80% 70%, rgba(138, 43, 226, 0.05) 0%, transparent 40%);
backdrop-filter: blur(8px);
}
/* 数据粒子效果 */
.data-particles {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
pointer-events: none;
}
.particle {
position: absolute;
width: 2px;
height: 2px;
background: rgba(0, 150, 255, 0.3);
border-radius: 50%;
animation: particleFloat 15s infinite linear;
}
/* 主容器 */
.main-container {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 20px;
position: relative;
}
/* 标题区域 */
.title-container {
text-align: center;
margin-bottom: 60px;
}
.main-title {
font-size: 5.5rem;
font-weight: 900;
margin-bottom: 15px;
background: linear-gradient(135deg, #0096ff 0%, #00d4ff 50%, #8a2be2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
letter-spacing: -2px;
animation: titleGlow 3s ease-in-out infinite alternate;
}
@keyframes titleGlow {
0% { filter: drop-shadow(0 0 20px rgba(0, 150, 255, 0.3)); }
100% { filter: drop-shadow(0 0 40px rgba(0, 150, 255, 0.5)); }
}
.subtitle {
font-size: 1.8rem;
color: rgba(255, 255, 255, 0.8);
letter-spacing: 10px;
text-transform: uppercase;
margin-bottom: 40px;
}
/* 第一行:资源总量 + 部署教程 */
.first-row {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 30px;
max-width: 1000px;
width: 100%;
margin-bottom: 30px;
}
/* 第二行:数据文件 + 联系方式 */
.second-row {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 30px;
max-width: 1000px;
width: 100%;
}
/* 通用卡片样式 */
.data-card {
background: rgba(255, 255, 255, 0.07);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 20px;
padding: 40px 30px;
text-align: center;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
height: 260px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.data-card:hover {
transform: translateY(-10px);
background: rgba(255, 255, 255, 0.12);
border-color: #0096ff;
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.3),
0 0 40px rgba(0, 150, 255, 0.2);
}
.data-icon {
font-size: 2.5rem;
margin-bottom: 20px;
color: #0096ff;
filter: drop-shadow(0 0 10px rgba(0, 150, 255, 0.5));
}
.data-number {
font-size: 3rem;
font-weight: 800;
margin-bottom: 10px;
background: linear-gradient(135deg, #0096ff, #00d4ff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.data-label {
font-size: 1.1rem;
color: rgba(255, 255, 255, 0.9);
margin-bottom: 5px;
font-weight: 600;
}
.data-subtitle {
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.6);
text-transform: uppercase;
letter-spacing: 1.5px;
}
/* 联系卡片 - 与数据文件卡片尺寸一致 */
.contact-card {
background: rgba(255, 255, 255, 0.07);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 20px;
padding: 40px 30px;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
height: 260px;
display: flex;
flex-direction: column;
justify-content: center;
}
.contact-card:hover {
transform: translateY(-10px);
background: rgba(255, 255, 255, 0.12);
border-color: #0096ff;
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.3),
0 0 40px rgba(0, 150, 255, 0.2);
}
.contact-title {
text-align: center;
font-size: 1.4rem;
color: rgba(255, 255, 255, 0.9);
margin-bottom: 35px;
font-weight: 600;
}
/* 联系方式图标全部放在一行 */
.contact-row {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
gap: 15px;
}
.contact-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-decoration: none;
transition: all 0.3s ease;
position: relative;
flex: 1;
padding: 10px 5px;
cursor: pointer;
}
.contact-item:hover {
transform: translateY(-5px);
}
.contact-icon {
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.1);
border-radius: 18px;
margin-bottom: 12px;
font-size: 1.8rem;
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
}
.contact-item:hover .contact-icon {
background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.2);
transform: scale(1.15) rotate(5deg);
}
.contact-label {
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.8);
font-weight: 500;
text-align: center;
}
/* 图标颜色定制 - 更新顺序 */
.gongzhong { color: #07C160; }
.gongzhong .contact-icon {
background: rgba(7, 193, 96, 0.1);
border-color: rgba(7, 193, 96, 0.2);
}
.gongzhong:hover .contact-icon {
box-shadow: 0 10px 25px rgba(7, 193, 96, 0.2);
}
.douyin { color: #FF6B35; }
.douyin .contact-icon {
background: rgba(255, 107, 53, 0.1);
border-color: rgba(255, 107, 53, 0.2);
}
.douyin:hover .contact-icon {
box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
}
.xianyu { color: #FF2D55; }
.xianyu .contact-icon {
background: rgba(255, 45, 85, 0.1);
border-color: rgba(255, 45, 85, 0.2);
}
.xianyu:hover .contact-icon {
box-shadow: 0 10px 25px rgba(255, 45, 85, 0.2);
}
.fans-group { color: #0096FF; }
.fans-group .contact-icon {
background: rgba(0, 150, 255, 0.1);
border-color: rgba(0, 150, 255, 0.2);
}
.fans-group:hover .contact-icon {
box-shadow: 0 10px 25px rgba(0, 150, 255, 0.2);
}
/* 底部版权 */
.copyright {
margin-top: 50px;
text-align: center;
color: rgba(255, 255, 255, 0.5);
font-size: 0.9rem;
padding: 0 20px;
}
/* 二维码弹窗样式 */
.qrcode-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(10px);
z-index: 1000;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease;
}
.qrcode-modal.active {
display: flex;
opacity: 1;
}
.qrcode-container {
background: rgba(255, 255, 255, 0.12);
backdrop-filter: blur(30px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 25px;
padding: 40px;
max-width: 400px;
width: 90%;
text-align: center;
transform: translateY(-30px);
transition: transform 0.4s ease;
}
.qrcode-modal.active .qrcode-container {
transform: translateY(0);
}
/* 不同平台的弹窗颜色 - 更新顺序 */
.gongzhong-modal .qrcode-container {
box-shadow:
0 30px 60px rgba(0, 0, 0, 0.5),
0 0 50px rgba(7, 193, 96, 0.2);
}
.douyin-modal .qrcode-container {
box-shadow:
0 30px 60px rgba(0, 0, 0, 0.5),
0 0 50px rgba(255, 107, 53, 0.2);
}
.xianyu-modal .qrcode-container {
box-shadow:
0 30px 60px rgba(0, 0, 0, 0.5),
0 0 50px rgba(255, 45, 85, 0.2);
}
.fans-modal .qrcode-container {
box-shadow:
0 30px 60px rgba(0, 0, 0, 0.5),
0 0 50px rgba(0, 150, 255, 0.2);
}
.qrcode-title {
font-size: 1.8rem;
margin-bottom: 25px;
font-weight: 600;
}
/* 不同平台的标题颜色 - 更新顺序 */
.gongzhong-title { color: #07C160; }
.douyin-title { color: #FF6B35; }
.xianyu-title { color: #FF2D55; }
.fans-title { color: #0096FF; }
.qrcode-image {
width: 250px;
height: 250px;
margin: 0 auto 25px;
border-radius: 15px;
padding: 15px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
/* 不同平台的二维码背景颜色 - 更新顺序 */
.gongzhong-modal .qrcode-image {
background: linear-gradient(135deg, #07C160, #05a050);
}
.douyin-modal .qrcode-image {
background: linear-gradient(135deg, #FF6B35, #E05A2B);
}
.xianyu-modal .qrcode-image {
background: linear-gradient(135deg, #FF2D55, #E0264D);
}
.fans-modal .qrcode-image {
background: linear-gradient(135deg, #0096FF, #007ACC);
}
.qrcode-image::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(
45deg,
transparent 30%,
rgba(255, 255, 255, 0.1) 50%,
transparent 70%
);
animation: qrShine 3s infinite linear;
}
@keyframes qrShine {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.qrcode-img {
width: 100%;
height: 100%;
border-radius: 10px;
object-fit: cover;
position: relative;
z-index: 1;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.qrcode-tips {
color: rgba(255, 255, 255, 0.7);
font-size: 0.95rem;
margin-bottom: 20px;
line-height: 1.5;
}
.qrcode-close {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
padding: 12px 30px;
border-radius: 12px;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 500;
}
.qrcode-close:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-2px);
}
/* 加载指示器 */
.qrcode-loading {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.9);
border-radius: 10px;
z-index: 2;
}
.loading-spinner {
width: 40px;
height: 40px;
border: 3px solid rgba(0, 0, 0, 0.2);
border-radius: 50%;
animation: spin 1s linear infinite;
}
/* 不同平台的加载器颜色 - 更新顺序 */
.gongzhong-modal .loading-spinner {
border-top: 3px solid #07C160;
}
.douyin-modal .loading-spinner {
border-top: 3px solid #FF6B35;
}
.xianyu-modal .loading-spinner {
border-top: 3px solid #FF2D55;
}
.fans-modal .loading-spinner {
border-top: 3px solid #0096FF;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* 响应式设计 */
@media (max-width: 1024px) {
.main-title {
font-size: 4rem;
}
.subtitle {
font-size: 1.5rem;
letter-spacing: 8px;
}
.first-row, .second-row {
max-width: 800px;
}
.contact-icon {
width: 55px;
height: 55px;
font-size: 1.6rem;
}
.qrcode-image {
width: 220px;
height: 220px;
}
}
@media (max-width: 768px) {
.main-title {
font-size: 3rem;
}
.subtitle {
font-size: 1.2rem;
letter-spacing: 6px;
}
.first-row, .second-row {
grid-template-columns: 1fr;
max-width: 500px;
gap: 20px;
}
.data-card, .contact-card {
height: 240px;
padding: 30px 20px;
}
.data-number {
font-size: 2.5rem;
}
.contact-title {
margin-bottom: 30px;
}
.contact-row {
gap: 10px;
}
.contact-icon {
width: 50px;
height: 50px;
font-size: 1.5rem;
}
.contact-label {
font-size: 0.85rem;
}
.qrcode-container {
padding: 30px;
width: 95%;
}
.qrcode-image {
width: 200px;
height: 200px;
}
}
@media (max-width: 480px) {
.main-title {
font-size: 2.5rem;
}
.subtitle {
font-size: 1rem;
letter-spacing: 4px;
}
.data-card, .contact-card {
height: 220px;
padding: 25px 15px;
}
.contact-title {
font-size: 1.2rem;
margin-bottom: 25px;
}
.contact-row {
gap: 8px;
}
.contact-icon {
width: 45px;
height: 45px;
font-size: 1.3rem;
border-radius: 15px;
}
.contact-label {
font-size: 0.8rem;
}
.data-number {
font-size: 2.2rem;
}
.qrcode-container {
padding: 25px 20px;
}
.qrcode-title {
font-size: 1.5rem;
margin-bottom: 20px;
}
.qrcode-image {
width: 180px;
height: 180px;
padding: 10px;
}
}
/* 淡入动画 */
.fade-in {
opacity: 0;
transform: translateY(30px);
transition: all 0.8s ease;
}
.fade-in.visible {
opacity: 1;
transform: translateY(0);
}
</style>
</head>
<body>
<!-- 玻璃质感背景层 -->
<div class="glass-layer"></div>
<!-- 数据粒子 -->
<div class="data-particles" id="dataParticles"></div>
<!-- 二维码弹窗 - 公众号 -->
<div class="qrcode-modal gongzhong-modal" id="gongzhongModal">
<div class="qrcode-container">
<h3 class="qrcode-title gongzhong-title">公众号二维码</h3>
<p class="qrcode-tips">使用微信扫一扫功能扫描下方二维码<br>关注我的公众号获取更多内容</p>
<div class="qrcode-image">
<div class="qrcode-loading" id="gongzhongLoading">
<div class="loading-spinner"></div>
</div>
<!-- 公众号二维码图片 -->
<img src="https://yy.skydata.fun:8443/content/uploadfile/202512/81781766490707.jpg"
alt="Sky Data 公众号二维码"
class="qrcode-img"
id="gongzhongImg">
</div>
<button class="qrcode-close" onclick="closeModal('gongzhong')">关闭</button>
</div>
</div>
<!-- 二维码弹窗 - 抖音 -->
<div class="qrcode-modal douyin-modal" id="douyinModal">
<div class="qrcode-container">
<h3 class="qrcode-title douyin-title">抖音二维码</h3>
<p class="qrcode-tips">使用抖音App扫描下方二维码<br>关注我的抖音账号获取更多内容</p>
<div class="qrcode-image">
<div class="qrcode-loading" id="douyinLoading">
<div class="loading-spinner"></div>
</div>
<!-- 抖音二维码图片 -->
<img src="https://yy.skydata.fun:8443/content/uploadfile/202512/014a1766490707.png"
alt="Sky Data 抖音二维码"
class="qrcode-img"
id="douyinImg">
</div>
<button class="qrcode-close" onclick="closeModal('douyin')">关闭</button>
</div>
</div>
<!-- 二维码弹窗 - 闲鱼 -->
<div class="qrcode-modal xianyu-modal" id="xianyuModal">
<div class="qrcode-container">
<h3 class="qrcode-title xianyu-title">闲鱼二维码</h3>
<p class="qrcode-tips">使用闲鱼App扫描下方二维码<br>查看我的闲鱼店铺和商品</p>
<div class="qrcode-image">
<div class="qrcode-loading" id="xianyuLoading">
<div class="loading-spinner"></div>
</div>
<!-- 闲鱼二维码图片 -->
<img src="https://yy.skydata.fun:8443/content/uploadfile/202512/af5c1766490707.jpg"
alt="Sky Data 闲鱼二维码"
class="qrcode-img"
id="xianyuImg">
</div>
<button class="qrcode-close" onclick="closeModal('xianyu')">关闭</button>
</div>
</div>
<!-- 二维码弹窗 - 粉丝群 -->
<div class="qrcode-modal fans-modal" id="fansModal">
<div class="qrcode-container">
<h3 class="qrcode-title fans-title">粉丝群二维码</h3>
<p class="qrcode-tips">扫描下方二维码加入粉丝群<br>与更多爱好者交流分享</p>
<div class="qrcode-image">
<div class="qrcode-loading" id="fansLoading">
<div class="loading-spinner"></div>
</div>
<!-- 粉丝群二维码图片 -->
<img src="https://yy.skydata.fun:8443/content/uploadfile/202512/5f721766490707.jpg"
alt="Sky Data 粉丝群二维码"
class="qrcode-img"
id="fansImg">
</div>
<button class="qrcode-close" onclick="closeModal('fans')">关闭</button>
</div>
</div>
<!-- 主要内容 -->
<main class="main-container">
<!-- 标题区域 -->
<div class="title-container fade-in">
<h1 class="main-title">SKY DATA</h1>
<div class="subtitle">天空数据</div>
</div>
<!-- 第一行:资源总量 + 部署教程 -->
<div class="first-row">
<div class="data-card fade-in">
<div class="data-icon">📊</div>
<div class="data-number">2K</div>
<div class="data-label">资源总量</div>
<div class="data-subtitle">Total Resources Files</div>
</div>
<div class="data-card fade-in">
<div class="data-icon">💾</div>
<div class="data-number">20G</div>
<div class="data-label">数据文件</div>
<div class="data-subtitle">Data Files</div>
</div>
</div>
<!-- 第二行:部署教程 + 联系方式 -->
<div class="second-row">
<div class="data-card fade-in">
<div class="data-icon">🚀</div>
<div class="data-number">1</div>
<div class="data-label">部署教程</div>
<div class="data-subtitle">Open Source</div>
</div>
<div class="contact-card fade-in">
<div class="contact-title">联系我们</div>
<div class="contact-row">
<!-- 公众号图标 - 点击弹出二维码 -->
<div class="contact-item gongzhong" onclick="openModal('gongzhong')">
<div class="contact-icon">
<i class="fab fa-weixin"></i>
</div>
<span class="contact-label">公众号</span>
</div>
<!-- 抖音图标 - 点击弹出二维码 -->
<div class="contact-item douyin" onclick="openModal('douyin')">
<div class="contact-icon">
<i class="fab fa-tiktok"></i>
</div>
<span class="contact-label">抖音</span>
</div>
<!-- 闲鱼图标 - 点击弹出二维码 -->
<div class="contact-item xianyu" onclick="openModal('xianyu')">
<div class="contact-icon">
<i class="fas fa-fish"></i>
</div>
<span class="contact-label">闲鱼</span>
</div>
<!-- 粉丝群图标 - 点击弹出二维码 -->
<div class="contact-item fans-group" onclick="openModal('fans')">
<div class="contact-icon">
<i class="fas fa-users"></i>
</div>
<span class="contact-label">粉丝群</span>
</div>
</div>
</div>
</div>
<!-- 版权信息 -->
<div class="copyright fade-in">
© 2025 Sky Data · 云端数据资源库
</div>
</main>
<script>
// 创建数据粒子
const particlesContainer = document.getElementById('dataParticles');
for (let i = 0; i < 120; i++) {
const particle = document.createElement('div');
particle.classList.add('particle');
// 随机位置
particle.style.left = Math.random() * 100 + '%';
particle.style.top = Math.random() * 100 + '%';
// 随机大小和透明度
const size = Math.random() * 3 + 1;
particle.style.width = particle.style.height = size + 'px';
particle.style.opacity = Math.random() * 0.5 + 0.1;
// 随机颜色(蓝色到紫色)
const hue = 200 + Math.random() * 120;
particle.style.background = `hsla(${hue}, 100%, 70%, ${particle.style.opacity})`;
// 随机动画
particle.style.animationDelay = Math.random() * 5 + 's';
particle.style.animationDuration = Math.random() * 10 + 10 + 's';
particlesContainer.appendChild(particle);
}
// 二维码图片链接配置 - 已更新顺序
const qrcodeLinks = {
'gongzhong': 'https://yy.skydata.fun:8443/content/uploadfile/202512/81781766490707.jpg',
'douyin': 'https://yy.skydata.fun:8443/content/uploadfile/202512/014a1766490707.png',
'xianyu': 'https://yy.skydata.fun:8443/content/uploadfile/202512/af5c1766490707.jpg',
'fans': 'https://yy.skydata.fun:8443/content/uploadfile/202512/5f721766490707.jpg'
};
// 二维码弹窗管理 - 更新了名称
const modals = {
'gongzhong': document.getElementById('gongzhongModal'),
'douyin': document.getElementById('douyinModal'),
'xianyu': document.getElementById('xianyuModal'),
'fans': document.getElementById('fansModal')
};
const images = {
'gongzhong': document.getElementById('gongzhongImg'),
'douyin': document.getElementById('douyinImg'),
'xianyu': document.getElementById('xianyuImg'),
'fans': document.getElementById('fansImg')
};
const loadings = {
'gongzhong': document.getElementById('gongzhongLoading'),
'douyin': document.getElementById('douyinLoading'),
'xianyu': document.getElementById('xianyuLoading'),
'fans': document.getElementById('fansLoading')
};
// 打开弹窗函数
function openModal(type) {
// 先关闭所有其他弹窗
Object.keys(modals).forEach(key => {
modals[key].classList.remove('active');
});
// 打开指定弹窗
modals[type].classList.add('active');
document.body.style.overflow = 'hidden';
// 重置加载状态
loadings[type].style.display = 'flex';
loadings[type].innerHTML = '<div class="loading-spinner"></div>';
// 强制刷新图片(防止缓存问题)
const timestamp = new Date().getTime();
images[type].src = `${qrcodeLinks[type]}?t=${timestamp}`;
}
// 关闭弹窗函数
function closeModal(type) {
modals[type].classList.remove('active');
document.body.style.overflow = 'auto';
}
// 预加载所有二维码图片
function preloadAllQrcodes() {
Object.keys(qrcodeLinks).forEach(type => {
const img = new Image();
img.src = qrcodeLinks[type];
img.onload = function() {
console.log(`${type} 二维码图片预加载成功`);
};
img.onerror = function() {
console.error(`${type} 二维码图片加载失败`);
loadings[type].innerHTML = '二维码加载失败<br><small>请稍后重试</small>';
};
});
}
// 页面加载后预加载所有二维码
window.addEventListener('load', preloadAllQrcodes);
// 图片加载完成时的处理
Object.keys(images).forEach(type => {
images[type].onload = function() {
loadings[type].style.display = 'none';
console.log(`${type} 二维码图片加载完成`);
};
images[type].onerror = function() {
loadings[type].innerHTML = '二维码加载失败<br><small>请检查网络连接或稍后重试</small>';
console.error(`${type} 二维码图片加载错误`);
};
});
// 点击弹窗背景关闭当前弹窗
document.querySelectorAll('.qrcode-modal').forEach(modal => {
modal.addEventListener('click', function(e) {
if (e.target === modal) {
const modalType = modal.classList[1].replace('-modal', '');
closeModal(modalType);
}
});
});
// ESC键关闭弹窗
document.addEventListener('keydown', function(e) {
if (e.key === 'Escape') {
Object.keys(modals).forEach(type => {
if (modals[type].classList.contains('active')) {
closeModal(type);
}
});
}
});
// 淡入动画
const fadeElements = document.querySelectorAll('.fade-in');
function checkScroll() {
fadeElements.forEach(element => {
const rect = element.getBoundingClientRect();
if (rect.top < window.innerHeight * 0.85) {
element.classList.add('visible');
}
});
}
// 初始检查
checkScroll();
window.addEventListener('scroll', checkScroll);
window.addEventListener('resize', checkScroll);
// 鼠标交互效果
document.addEventListener('mousemove', (e) => {
const x = e.clientX / window.innerWidth;
const y = e.clientY / window.innerHeight;
// 背景移动效果
document.querySelector('.glass-layer').style.transform =
`translate(${x * 20}px, ${y * 20}px)`;
// 粒子跟随效果
particlesContainer.style.transform =
`translate(${x * -15}px, ${y * -15}px)`;
});
// 标题发光效果
const title = document.querySelector('.main-title');
setInterval(() => {
const intensity = Math.sin(Date.now() / 2000) * 0.3 + 0.7;
title.style.filter = `drop-shadow(0 0 ${25 * intensity}px rgba(0, 150, 255, 0.4))`;
}, 100);
// 联系方式图标动画
const contactIcons = document.querySelectorAll('.contact-icon');
contactIcons.forEach(icon => {
icon.addEventListener('mouseenter', () => {
icon.style.transform = 'scale(1.15) rotate(5deg)';
});
icon.addEventListener('mouseleave', () => {
icon.style.transform = 'scale(1) rotate(0deg)';
});
});
// 背景色彩变化
const glassLayer = document.querySelector('.glass-layer');
let hue = 200;
setInterval(() => {
hue = (hue + 0.1) % 360;
glassLayer.style.background =
`radial-gradient(circle at 20% 30%, hsla(${hue}, 100%, 70%, 0.08) 0%, transparent 40%),
radial-gradient(circle at 80% 70%, hsla(${hue + 60}, 100%, 70%, 0.05) 0%, transparent 40%)`;
}, 100);
// 卡片点击波纹效果
const cards = document.querySelectorAll('.data-card, .contact-card');
cards.forEach(card => {
card.addEventListener('click', function(e) {
// 如果是联系方式按钮,不执行波纹效果(已经有弹窗了)
if (e.target.closest('.contact-item')) return;
const rect = this.getBoundingClientRect();
const x = e.clientX - rect.left;
const y = e.clientY - rect.top;
const ripple = document.createElement('div');
ripple.style.position = 'absolute';
ripple.style.left = x + 'px';
ripple.style.top = y + 'px';
ripple.style.width = ripple.style.height = '0px';
ripple.style.background = 'radial-gradient(circle, rgba(0, 150, 255, 0.2), transparent)';
ripple.style.borderRadius = '50%';
ripple.style.transform = 'translate(-50%, -50%)';
ripple.style.pointerEvents = 'none';
ripple.style.zIndex = '1';
this.appendChild(ripple);
requestAnimationFrame(() => {
ripple.style.width = ripple.style.height = '150px';
ripple.style.opacity = '0';
ripple.style.transition = 'all 0.5s ease-out';
});
setTimeout(() => ripple.remove(), 500);
});
});
// 确保所有卡片高度一致
function equalizeCardHeights() {
const dataCards = document.querySelectorAll('.data-card');
const contactCard = document.querySelector('.contact-card');
if (dataCards.length > 0 && contactCard) {
const maxHeight = Math.max(
...Array.from(dataCards).map(card => card.offsetHeight)
);
dataCards.forEach(card => {
card.style.height = `${maxHeight}px`;
});
contactCard.style.height = `${maxHeight}px`;
}
}
// 页面加载后调整高度
window.addEventListener('load', equalizeCardHeights);
window.addEventListener('resize', equalizeCardHeights);
</script>
</body>
</html>
<audio id="bgAudio" autoplay hidden></audio>
<script>
const musicList = [
"https://yy.skydata.fun:8443/content/uploadfile/202512/d9181766466706.mp3",
"https://yy.skydata.fun:8443/content/uploadfile/202512/8bd91766466704.mp3",
"https://yy.skydata.fun:8443/content/uploadfile/202512/86141766466702.mp3",
"https://yy.skydata.fun:8443/content/uploadfile/202512/49f61766466700.mp3",
"https://yy.skydata.fun:8443/content/uploadfile/202512/10811766466698.mp3",
"https://yy.skydata.fun:8443/content/uploadfile/202512/9dff1766466695.mp3",
"https://yy.skydata.fun:8443/content/uploadfile/202512/093f1766466694.mp3",
];
const audio = document.getElementById('bgAudio');
// 设置默认音量为30%
audio.volume = 0.3;
function playRandomMusic() {
const randomIndex = Math.floor(Math.random() * musicList.length);
audio.src = musicList[randomIndex];
audio.play();
}
// 监听歌曲结束事件
audio.addEventListener('ended', playRandomMusic);
// 播放第一首随机歌曲
playRandomMusic();
</script>