<!DOCTYPE html>
|
<html lang="zh-CN">
|
<head>
|
<meta charset="UTF-8">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<title>游趣电玩 · 客户端下载</title>
|
<style>
|
* { margin:0; padding:0; box-sizing:border-box; }
|
html, body { height:100%; }
|
body {
|
font-family:"Microsoft YaHei","PingFang SC",sans-serif;
|
background:#07070f; color:#e8e8f0; overflow-x:hidden;
|
min-height:100vh; display:flex; flex-direction:column; align-items:center;
|
}
|
|
/* ---------- 动态背景 ---------- */
|
#bgCanvas { position:fixed; inset:0; z-index:0; pointer-events:none; }
|
.bg-glow { position:fixed; border-radius:50%; filter:blur(120px); opacity:.35; z-index:0; pointer-events:none; animation:drift 14s ease-in-out infinite alternate; }
|
.glow-1 { width:520px; height:520px; background:#7b2ff7; top:-160px; left:-120px; }
|
.glow-2 { width:460px; height:460px; background:#00c6ff; bottom:-140px; right:-100px; animation-delay:-7s; }
|
@keyframes drift { from { transform:translate(0,0) scale(1); } to { transform:translate(60px,40px) scale(1.15); } }
|
|
.wrap { position:relative; z-index:1; width:100%; max-width:860px; padding:48px 24px 40px; display:flex; flex-direction:column; align-items:center; }
|
|
/* ---------- 品牌 ---------- */
|
.brand { display:flex; align-items:center; gap:14px; margin-bottom:10px; }
|
.brand .logo {
|
width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center;
|
background:linear-gradient(135deg,#7b2ff7,#00c6ff); font-size:26px;
|
box-shadow:0 0 30px rgba(123,47,247,.55); animation:logoPulse 2.6s ease-in-out infinite;
|
}
|
@keyframes logoPulse { 0%,100% { box-shadow:0 0 22px rgba(123,47,247,.45); } 50% { box-shadow:0 0 44px rgba(0,198,255,.65); } }
|
.brand h1 {
|
font-size:34px; font-weight:800; letter-spacing:2px;
|
background:linear-gradient(90deg,#c56bff,#00c6ff,#c56bff); background-size:200% auto;
|
-webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
|
animation:shine 4s linear infinite;
|
}
|
@keyframes shine { to { background-position:200% center; } }
|
.slogan { color:#8a8aa3; font-size:14px; letter-spacing:6px; margin-bottom:44px; }
|
|
/* ---------- 版本卡片 ---------- */
|
.card {
|
width:100%; border-radius:22px; padding:40px 44px 36px; position:relative;
|
background:linear-gradient(160deg, rgba(30,26,58,.72), rgba(10,12,24,.78));
|
border:1px solid rgba(140,120,255,.22);
|
box-shadow:0 24px 70px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
|
backdrop-filter:blur(14px);
|
}
|
.card::before {
|
content:""; position:absolute; inset:-1px; border-radius:23px; padding:1px; z-index:-1;
|
background:linear-gradient(120deg,#7b2ff7,#00c6ff,transparent 60%);
|
-webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
-webkit-mask-composite:xor; mask-composite:exclude; opacity:.55;
|
}
|
.card-head { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:8px; }
|
.ver-label { color:#9d9db8; font-size:13px; letter-spacing:3px; margin-bottom:6px; }
|
.ver-num {
|
font-size:44px; font-weight:800; font-family:Consolas,monospace; line-height:1;
|
background:linear-gradient(90deg,#00c6ff,#7bfff2); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
|
}
|
.badge {
|
display:inline-flex; align-items:center; gap:7px; padding:7px 16px; border-radius:999px;
|
font-size:13px; border:1px solid rgba(0,198,255,.35); color:#7bfff2; background:rgba(0,198,255,.08);
|
}
|
.badge .dot { width:8px; height:8px; border-radius:50%; background:#2bff9e; box-shadow:0 0 10px #2bff9e; animation:blink 1.6s infinite; }
|
@keyframes blink { 50% { opacity:.35; } }
|
|
.meta { display:flex; gap:26px; flex-wrap:wrap; margin:22px 0 4px; padding:16px 0; border-top:1px solid rgba(255,255,255,.07); border-bottom:1px solid rgba(255,255,255,.07); }
|
.meta .item { display:flex; flex-direction:column; gap:5px; }
|
.meta .k { font-size:12px; color:#7d7d99; letter-spacing:1px; }
|
.meta .v { font-size:16px; font-weight:600; color:#dcdcf0; }
|
|
.notes { margin:20px 0 6px; }
|
.notes h3 { font-size:14px; color:#9d9db8; letter-spacing:2px; margin-bottom:12px; }
|
.notes ul { list-style:none; }
|
.notes li { position:relative; padding:5px 0 5px 24px; color:#c3c3d6; font-size:14px; line-height:1.7; }
|
.notes li::before { content:""; position:absolute; left:2px; top:13px; width:9px; height:9px; border-radius:3px; background:linear-gradient(135deg,#7b2ff7,#00c6ff); box-shadow:0 0 8px rgba(123,47,247,.7); }
|
|
/* ---------- 下载按钮 ---------- */
|
.dl-zone { display:flex; align-items:center; justify-content:center; margin-top:30px; }
|
.dl-btn {
|
position:relative; display:flex; align-items:center; gap:12px; text-decoration:none;
|
padding:18px 58px; border-radius:999px; font-size:19px; font-weight:700; letter-spacing:3px; color:#fff;
|
background:linear-gradient(90deg,#7b2ff7,#4a6bff,#00c6ff); background-size:200% auto;
|
box-shadow:0 10px 34px rgba(90,90,255,.45); transition:all .3s; overflow:visible;
|
}
|
.dl-btn:hover { background-position:right center; transform:translateY(-3px); box-shadow:0 16px 44px rgba(90,90,255,.65); }
|
.dl-btn svg { width:22px; height:22px; }
|
.dl-btn::after {
|
content:""; position:absolute; inset:-4px; border-radius:999px; z-index:-1;
|
border:2px solid rgba(123,47,247,.6); animation:ring 2s ease-out infinite;
|
}
|
@keyframes ring { 0% { transform:scale(.96); opacity:1; } 100% { transform:scale(1.14); opacity:0; } }
|
.dl-hint { margin-top:16px; text-align:center; color:#6d6d87; font-size:12px; line-height:1.9; }
|
|
/* ---------- 空状态 / 加载 ---------- */
|
.loading { text-align:center; color:#7d7d99; padding:90px 0; font-size:15px; letter-spacing:2px; }
|
.loading .spin {
|
display:block; width:44px; height:44px; margin:0 auto 18px; border-radius:50%;
|
border:3px solid rgba(255,255,255,.12); border-top-color:#00c6ff; animation:rot 1s linear infinite;
|
}
|
@keyframes rot { to { transform:rotate(360deg); } }
|
.empty { text-align:center; padding:70px 0; color:#7d7d99; font-size:15px; line-height:2.2; }
|
.empty .icon { font-size:44px; display:block; margin-bottom:8px; filter:grayscale(.4); }
|
|
/* ---------- 页脚 ---------- */
|
.footer { position:relative; z-index:1; margin-top:auto; padding:26px 0 30px; text-align:center; color:#6d6d87; font-size:16px; letter-spacing:1px; }
|
.footer a { color:#7b8bd0; text-decoration:none; }
|
.footer a:hover { color:#00c6ff; }
|
|
@media (max-width:560px) {
|
.card { padding:30px 24px; }
|
.ver-num { font-size:34px; }
|
.dl-btn { padding:16px 40px; font-size:17px; }
|
.meta { gap:18px; }
|
}
|
</style>
|
</head>
|
<body>
|
<canvas id="bgCanvas"></canvas>
|
<div class="bg-glow glow-1"></div>
|
<div class="bg-glow glow-2"></div>
|
|
<div class="wrap">
|
<div class="brand">
|
<div class="logo">🎮</div>
|
<h1>游趣电玩</h1>
|
</div>
|
<div class="slogan">GAMEBOX · 极致游戏体验</div>
|
|
<div class="card" id="verCard" style="display:none"></div>
|
<div class="loading" id="verLoading"><span class="spin"></span>正在获取最新版本…</div>
|
</div>
|
|
<div class="footer">
|
<a href="/showcase">浏览游戏目录</a> · 游趣电玩 GameBox · Windows 10 及以上系统
|
</div>
|
|
<script>
|
/* ---------- 背景粒子 ---------- */
|
(function () {
|
const cv = document.getElementById('bgCanvas'), ctx = cv.getContext('2d');
|
let W, H, pts = [];
|
function resize() {
|
W = cv.width = innerWidth; H = cv.height = innerHeight;
|
const n = Math.min(90, Math.floor(W * H / 16000));
|
pts = Array.from({length: n}, () => ({
|
x: Math.random() * W, y: Math.random() * H,
|
vx: (Math.random() - .5) * .35, vy: (Math.random() - .5) * .35,
|
r: Math.random() * 1.6 + .4
|
}));
|
}
|
addEventListener('resize', resize); resize();
|
(function tick() {
|
ctx.clearRect(0, 0, W, H);
|
for (const p of pts) {
|
p.x += p.vx; p.y += p.vy;
|
if (p.x < 0 || p.x > W) p.vx *= -1;
|
if (p.y < 0 || p.y > H) p.vy *= -1;
|
ctx.beginPath(); ctx.arc(p.x, p.y, p.r, 0, 7);
|
ctx.fillStyle = 'rgba(150,160,255,.5)'; ctx.fill();
|
}
|
for (let i = 0; i < pts.length; i++) for (let j = i + 1; j < pts.length; j++) {
|
const a = pts[i], b = pts[j], dx = a.x - b.x, dy = a.y - b.y, d = dx * dx + dy * dy;
|
if (d < 13000) {
|
ctx.strokeStyle = 'rgba(110,120,255,' + (0.16 * (1 - d / 13000)) + ')';
|
ctx.beginPath(); ctx.moveTo(a.x, a.y); ctx.lineTo(b.x, b.y); ctx.stroke();
|
}
|
}
|
requestAnimationFrame(tick);
|
})();
|
})();
|
|
/* ---------- 加载版本信息 ---------- */
|
(async function () {
|
const card = document.getElementById('verCard'), loading = document.getElementById('verLoading');
|
let v = null;
|
try {
|
const res = await fetch('/api/client/latest');
|
const j = await res.json();
|
if (j.code === 0) v = j.data;
|
} catch (e) {}
|
loading.style.display = 'none';
|
if (!v) {
|
card.style.display = 'block';
|
card.innerHTML = '<div class="empty"><span class="icon">🛠️</span>暂未发布客户端版本<br>请稍后再来查看</div>';
|
return;
|
}
|
const notes = (v.notes || '').split('\n').map(s => s.trim()).filter(Boolean);
|
card.innerHTML = `
|
<div class="card-head">
|
<div>
|
<div class="ver-label">LATEST VERSION · 最新版本</div>
|
<div class="ver-num">v${escapeHtml(v.version)}</div>
|
</div>
|
<span class="badge"><span class="dot"></span>Windows 客户端</span>
|
</div>
|
<div class="meta">
|
<div class="item"><span class="k">文件大小</span><span class="v">${escapeHtml(v.file_size || '-')}</span></div>
|
<div class="item"><span class="k">运行平台</span><span class="v">Windows 10 及以上</span></div>
|
</div>
|
${notes.length ? `<div class="notes"><h3>更新内容 / WHAT'S NEW</h3><ul>${notes.map(n => `<li>${escapeHtml(n)}</li>`).join('')}</ul></div>` : ''}
|
<div class="dl-zone">
|
<a class="dl-btn" href="/api/client/download">
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round">
|
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/>
|
</svg>立即下载
|
</a>
|
</div>
|
<div class="dl-hint">下载得到 zip 压缩包,解压后运行「fluttergamebox.exe」即可 · 无需安装 · 下载页面无需登录</div>`;
|
card.style.display = 'block';
|
})();
|
|
function escapeHtml(s) {
|
return String(s == null ? '' : s).replace(/[&<>"']/g, c => ({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
|
}
|
</script>
|
</body>
|
</html>
|