Files
BESCMS/template/404.html
T

313 lines
8.7 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>{$meta_title}</title>
<meta content="{$meta_keywords}" name="keywords" />
<meta content="{$meta_description}" name="description" />
<style>
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body {
height: 100%;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
"Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.6;
color: #1e293b;
background: #f0f4f8;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}
.page {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 2rem 1.5rem;
position: relative;
}
/* 背景装饰 */
.bg-shape {
position: fixed;
border-radius: 50%;
pointer-events: none;
z-index: 0;
}
.bg-shape-1 {
width: 480px;
height: 480px;
background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
top: -120px;
right: -100px;
animation: float 8s ease-in-out infinite;
}
.bg-shape-2 {
width: 360px;
height: 360px;
background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
bottom: -80px;
left: -80px;
animation: float 10s ease-in-out infinite reverse;
}
.bg-shape-3 {
width: 200px;
height: 200px;
background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
top: 40%;
left: 10%;
animation: float 12s ease-in-out infinite 2s;
}
@keyframes float {
0%, 100% { transform: translateY(0) scale(1); }
50% { transform: translateY(-20px) scale(1.05); }
}
/* 主卡片 */
.card {
position: relative;
z-index: 1;
width: 100%;
max-width: 560px;
background: #fff;
border-radius: 20px;
box-shadow:
0 1px 3px rgba(0, 0, 0, 0.04),
0 8px 32px rgba(59, 130, 246, 0.1);
padding: 3rem 2.5rem 2.5rem;
text-align: center;
animation: fadeUp 0.6s ease both;
}
@keyframes fadeUp {
from { opacity: 0; transform: translateY(24px); }
to { opacity: 1; transform: translateY(0); }
}
/* 404 数字 */
.code-wrap {
position: relative;
display: inline-block;
margin-bottom: 1.5rem;
}
.code {
font-size: clamp(5rem, 18vw, 7.5rem);
font-weight: 800;
line-height: 1;
letter-spacing: -0.04em;
background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #0ea5e9 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
user-select: none;
}
.code-shadow {
position: absolute;
inset: 0;
font-size: clamp(5rem, 18vw, 7.5rem);
font-weight: 800;
line-height: 1;
letter-spacing: -0.04em;
color: transparent;
-webkit-text-stroke: 1.5px rgba(59, 130, 246, 0.15);
transform: translate(4px, 4px);
user-select: none;
z-index: -1;
}
/* 图标 */
.icon {
width: 64px;
height: 64px;
margin: 0 auto 1.25rem;
background: linear-gradient(135deg, #eff6ff, #e0e7ff);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.icon svg {
width: 32px;
height: 32px;
color: #3b82f6;
}
.title {
font-size: 1.375rem;
font-weight: 600;
color: #0f172a;
margin-bottom: 0.5rem;
}
.msg {
font-size: 0.9375rem;
color: #64748b;
margin-bottom: 2rem;
padding: 0.75rem 1rem;
background: #f8fafc;
border-radius: 10px;
border: 1px solid #e2e8f0;
word-break: break-word;
}
/* 按钮组 */
.actions {
display: flex;
gap: 0.75rem;
justify-content: center;
flex-wrap: wrap;
}
.btn {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.625rem 1.375rem;
border-radius: 10px;
font-size: 0.9375rem;
font-weight: 500;
text-decoration: none;
cursor: pointer;
border: none;
transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active {
transform: scale(0.97);
}
.btn-primary {
background: linear-gradient(135deg, #3b82f6, #6366f1);
color: #fff;
box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover {
box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}
.btn-secondary {
background: #f1f5f9;
color: #475569;
border: 1px solid #e2e8f0;
}
.btn-secondary:hover {
background: #e2e8f0;
}
.btn svg {
width: 16px;
height: 16px;
flex-shrink: 0;
}
/* 底部 */
.footer {
position: relative;
z-index: 1;
margin-top: 2rem;
font-size: 0.8125rem;
color: #94a3b8;
animation: fadeUp 0.6s ease 0.2s both;
}
.footer a {
color: #3b82f6;
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
@media (max-width: 480px) {
.card {
padding: 2.25rem 1.5rem 2rem;
border-radius: 16px;
}
.actions {
flex-direction: column;
}
.btn {
width: 100%;
justify-content: center;
}
}
</style>
</head>
<body>
<div class="bg-shape bg-shape-1"></div>
<div class="bg-shape bg-shape-2"></div>
<div class="bg-shape bg-shape-3"></div>
<div class="page">
<div class="card">
<div class="icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75"
stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"/>
<path d="M16 16s-1.5-2-4-2-4 2-4 2"/>
<line x1="9" y1="9" x2="9.01" y2="9"/>
<line x1="15" y1="9" x2="15.01" y2="9"/>
</svg>
</div>
<div class="code-wrap">
<div class="code-shadow">404</div>
<div class="code">404</div>
</div>
<h1 class="title">页面走丢了</h1>
<p class="msg">{$msg}</p>
<div class="actions">
<a href="{SITE_URL}" class="btn btn-primary">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>
<polyline points="9 22 9 12 15 12 15 22"/>
</svg>
返回首页
</a>
<button type="button" class="btn btn-secondary" onclick="history.back()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<line x1="19" y1="12" x2="5" y2="12"/>
<polyline points="12 19 5 12 12 5"/>
</svg>
返回上一页
</button>
</div>
</div>
<p class="footer">
<a href="{SITE_URL}">{SITE_NAME}</a>
</p>
</div>
</body>
</html>