炫彩404页面

代码如下:
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404</title>
<style>
:root {
--neon-blue: #4dc3ff;
--neon-pink: #ff61d0;
}
body {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
color: white;
}
.container {
text-align: center;
padding: 2rem;
}
.error-code {
font-size: 72px;
font-weight: 900;
text-shadow: 0 0 15px var(--neon-blue),
0 0 30px var(--neon-pink);
animation: float 3s ease-in-out infinite;
margin-bottom: 1rem;
}
.message {
font-size: 24px;
margin: 20px 0;
color: #a8dadc;
line-height: 1.6;
}
.emoji {
font-size: 48px;
margin: 15px 0;
}
.home-btn {
display: inline-block;
padding: 15px 40px;
background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
color: white;
text-decoration: none;
border-radius: 30px;
font-size: 18px;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
border: none;
}
.home-btn::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2));
transform: rotate(45deg);
transition: 0.5s;
}
.home-btn:hover {
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.home-btn:hover::before {
animation: shine 1.5s;
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-20px); }
}
@keyframes shine {
0% { left: -50%; }
100% { left: 150%; }
}
@media (max-width: 768px) {
.error-code { font-size: 48px; }
.message { font-size: 20px; }
.emoji { font-size: 36px; }
}
</style>
</head>
<body>
<div class="container">
<div class="error-code">404</div>
<p class="message">
抱歉,您访问的页面不存在<br>
或已被移除
</p>
<a href="/" class="home-btn">返回首页</a>
</div>
</body>
</html>
