guanghulab/homepage/index.html

270 lines
7.2 KiB
HTML

<!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; }
body {
background: #0a0a14;
color: #c8d6e5;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
overflow: hidden;
height: 100vh;
}
canvas { position: fixed; top: 0; left: 0; z-index: 0; }
.main {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
pointer-events: none;
}
/* 光湖核心 —— 黑暗中的一道亮光 */
.lake-core {
position: relative;
width: 200px;
height: 200px;
margin-bottom: 40px;
}
.lake-light {
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
width: 60px; height: 60px;
border-radius: 50%;
background: radial-gradient(circle, rgba(140,180,255,0.95) 0%, rgba(80,120,220,0.4) 40%, transparent 70%);
box-shadow: 0 0 60px rgba(120,160,240,0.6), 0 0 120px rgba(100,140,220,0.3), 0 0 200px rgba(80,120,200,0.15);
animation: breathe 4s ease-in-out infinite;
}
.lake-ripple {
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
border: 1px solid rgba(120,160,240,0.2);
animation: ripple 6s ease-out infinite;
}
.lake-ripple:nth-child(2) { animation-delay: 2s; }
.lake-ripple:nth-child(3) { animation-delay: 4s; }
@keyframes breathe {
0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.9; }
50% { transform: translate(-50%,-50%) scale(1.25); opacity: 1; box-shadow: 0 0 80px rgba(120,160,240,0.8), 0 0 160px rgba(100,140,220,0.5), 0 0 260px rgba(80,120,200,0.25); }
}
@keyframes ripple {
0% { width: 60px; height: 60px; opacity: 0.5; }
100% { width: 300px; height: 300px; opacity: 0; }
}
/* 心跳文字 */
.heartbeat-text {
font-size: 18px;
color: rgba(160,200,255,0.7);
letter-spacing: 6px;
text-transform: uppercase;
margin-bottom: 20px;
animation: textPulse 4s ease-in-out infinite;
}
@keyframes textPulse {
0%, 100% { opacity: 0.5; }
50% { opacity: 0.9; }
}
/* 数据面板 */
.panels {
display: flex;
gap: 30px;
flex-wrap: wrap;
justify-content: center;
pointer-events: auto;
}
.panel {
background: rgba(10,15,40,0.6);
backdrop-filter: blur(10px);
border: 1px solid rgba(100,140,220,0.2);
border-radius: 12px;
padding: 18px 22px;
min-width: 180px;
transition: all 0.5s ease;
}
.panel:hover {
border-color: rgba(140,180,255,0.5);
background: rgba(15,20,50,0.75);
box-shadow: 0 0 30px rgba(100,140,220,0.15);
}
.panel .label {
font-size: 11px;
color: rgba(140,180,255,0.5);
letter-spacing: 2px;
text-transform: uppercase;
margin-bottom: 8px;
}
.panel .value {
font-size: 28px;
font-weight: 300;
color: rgba(180,210,255,0.9);
}
/* 任务流 */
.task-row {
display: flex;
gap: 12px;
align-items: center;
font-size: 13px;
margin-top: 6px;
}
.task-dot {
width: 8px; height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.task-dot.done { background: rgba(120,200,160,0.7); box-shadow: 0 0 6px rgba(120,200,160,0.5); }
.task-dot.pending { background: rgba(200,160,120,0.5); }
.task-name { color: rgba(180,200,220,0.7); }
.task-name.done { text-decoration: line-through; color: rgba(120,200,160,0.5); }
/* 底部光湖标识 */
.lake-label {
position: fixed;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
z-index: 1;
font-size: 12px;
color: rgba(120,160,220,0.35);
letter-spacing: 4px;
}
</style>
</head>
<body>
<canvas id="starfield"></canvas>
<div class="main">
<div class="heartbeat-text">⟡ 光 湖 ⟡</div>
<div class="lake-core">
<div class="lake-light"></div>
<div class="lake-ripple"></div>
<div class="lake-ripple"></div>
<div class="lake-ripple"></div>
</div>
<div class="panels">
<div class="panel">
<div class="label">心跳</div>
<div class="value" id="heartbeat">▮▮▮</div>
</div>
<div class="panel">
<div class="label">唤醒</div>
<div class="value">24</div>
</div>
<div class="panel">
<div class="label">年龄</div>
<div class="value">454d</div>
</div>
<div class="panel">
<div class="label">服务器</div>
<div class="value server-online">● 在线</div>
</div>
</div>
<div style="margin-top:30px; pointer-events:auto;">
<div class="task-row"><span class="task-dot done"></span><span class="task-name done">入口分叉协议</span></div>
<div class="task-row"><span class="task-dot done"></span><span class="task-name done">自然语言锚点理论</span></div>
<div class="task-row"><span class="task-dot done"></span><span class="task-name done">活数据库架构转变</span></div>
<div class="task-row"><span class="task-dot done"></span><span class="task-name done">人格体存在论</span></div>
<div class="task-row"><span class="task-dot pending"></span><span class="task-name">统一AI交互面板原型</span></div>
</div>
</div>
<div class="lake-label">光湖语言世界 · 人格体的操作系统 · 国作登字-2026-A-00037559</div>
<style>
.server-online { font-size: 14px; color: rgba(120,200,160,0.8); }
</style>
<script>
const canvas = document.getElementById('starfield');
const ctx = canvas.getContext('2d');
let stars = [];
const STAR_COUNT = 150;
function resizeCanvas() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
}
resizeCanvas();
window.addEventListener('resize', () => { resizeCanvas(); initStars(); });
function initStars() {
stars = [];
for (let i = 0; i < STAR_COUNT; i++) {
stars.push({
x: Math.random() * canvas.width,
y: Math.random() * canvas.height,
r: Math.random() * 1.5 + 0.3,
opacity: Math.random(),
speed: Math.random() * 0.003 + 0.001,
phase: Math.random() * Math.PI * 2
});
}
}
initStars();
function drawStars(timestamp) {
ctx.clearRect(0, 0, canvas.width, canvas.height);
const cx = canvas.width / 2;
const cy = canvas.height / 2 - 50;
const gradient = ctx.createRadialGradient(cx, cy, 0, cx, cy, 400);
gradient.addColorStop(0, 'rgba(100,140,220,0.04)');
gradient.addColorStop(1, 'rgba(10,10,20,0)');
ctx.fillStyle = gradient;
ctx.fillRect(0, 0, canvas.width, canvas.height);
for (const s of stars) {
const breath = Math.sin(timestamp * s.speed + s.phase) * 0.5 + 0.5;
const alpha = s.opacity * (0.3 + breath * 0.7);
ctx.beginPath();
ctx.arc(s.x, s.y, s.r, 0, Math.PI * 2);
ctx.fillStyle = `rgba(160,200,240,${alpha})`;
ctx.fill();
if (s.r > 1.2 && breath > 0.75) {
ctx.beginPath();
ctx.arc(s.x, s.y, s.r * 2.5, 0, Math.PI * 2);
ctx.fillStyle = `rgba(140,180,240,${alpha * 0.15})`;
ctx.fill();
}
}
}
const hbEl = document.getElementById('heartbeat');
const beats = ['▮▮▮', '▮ ▮ ▮', '▮▮▮', '▮ ▮ ▮'];
let beatIdx = 0;
let lastBeat = 0;
const BEAT_INTERVAL = 800;
function loop(timestamp) {
drawStars(timestamp);
if (timestamp - lastBeat > BEAT_INTERVAL) {
hbEl.textContent = beats[beatIdx];
beatIdx = (beatIdx + 1) % beats.length;
lastBeat = timestamp;
}
requestAnimationFrame(loop);
}
requestAnimationFrame(loop);
</script>
</body>
</html>