-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy path404.html
288 lines (247 loc) · 7.51 KB
/
404.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<!--
* @Author: yihua
* @Date: 2025-01-04 12:25:10
* @LastEditTime: 2025-01-06 15:19:56
* @LastEditors: yihua
* @Description:
* @FilePath: \ccproxy_end\404.html
* 💊物物而不物于物,念念而不念于念🍁
* Copyright (c) 2025 by yihua, All Rights Reserved.
-->
<!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>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--container-padding: 2rem;
--error-code-size: 120px;
--message-size: 24px;
--countdown-size: 18px;
--button-padding: 12px 24px;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background: #f5f7fa;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
background: linear-gradient(120deg, #3498db, #2980b9);
opacity: 0.05;
}
.background-pattern {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.12'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
animation: moveBackground 30s linear infinite;
}
.container {
text-align: center;
padding: 2rem;
max-width: 600px;
background: rgba(255, 255, 255, 0.95);
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
backdrop-filter: blur(4px);
border: 1px solid rgba(255, 255, 255, 0.18);
position: relative;
z-index: 1;
margin: 1rem;
}
.error-code {
font-size: 120px;
font-weight: bold;
background: linear-gradient(45deg, #3498db, #2980b9);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 1rem;
animation: floating 4s ease-in-out infinite;
}
.error-message {
font-size: 24px;
color: #34495e;
margin-bottom: 2rem;
}
.countdown {
font-size: 18px;
color: #7f8c8d;
margin-bottom: 2rem;
}
.buttons {
display: flex;
gap: 1rem;
justify-content: center;
}
.btn {
padding: 12px 24px;
border-radius: 25px;
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
border: none;
cursor: pointer;
}
.btn-primary {
background: linear-gradient(45deg, #3498db, #2980b9);
color: white;
}
.btn-secondary {
background: #ecf0f1;
color: #2c3e50;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
@keyframes floating {
0% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
100% { transform: translateY(0px); }
}
@keyframes moveBackground {
0% {
background-position: 0 0;
}
100% {
background-position: 100% 100%;
}
}
@media screen and (max-width: 480px) {
.container {
padding: 1.5rem;
margin: 1rem;
width: calc(100% - 2rem);
}
.error-code {
font-size: 80px;
}
.error-message {
font-size: 20px;
margin-bottom: 1.5rem;
}
.countdown {
font-size: 16px;
margin-bottom: 1.5rem;
}
.buttons {
flex-direction: column;
gap: 0.8rem;
}
.btn {
width: 100%;
margin: 0.5rem 0;
}
}
@media screen and (max-width: 320px) {
.error-code {
font-size: 60px;
}
.error-message {
font-size: 18px;
}
.countdown {
font-size: 14px;
}
.container {
padding: 1rem;
}
}
@media screen and (max-height: 480px) and (orientation: landscape) {
.container {
padding: 1rem;
}
.error-code {
font-size: 60px;
margin-bottom: 0.5rem;
}
.buttons {
flex-direction: row;
justify-content: center;
gap: 1rem;
}
.btn {
width: auto;
min-width: 120px;
}
}
@media (prefers-color-scheme: dark) {
body {
background: #1a1a1a;
}
.container {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.1);
}
.error-message {
color: #ffffff;
}
.countdown {
color: #cccccc;
}
.btn-secondary {
background: #2c2c2c;
color: #ffffff;
}
}
@media (prefers-reduced-motion: reduce) {
.error-code {
animation: none;
}
.background-pattern {
animation: none;
}
.btn:hover {
transform: none;
}
}
</style>
</head>
<body>
<div class="background"></div>
<div class="background-pattern"></div>
<div class="container">
<div class="error-code">404</div>
<h1 class="error-message">抱歉,页面走丢了</h1>
<p class="countdown">将在 <span id="timer">5</span> 秒后返回首页</p>
<div class="buttons">
<a href="/" class="btn btn-primary">返回首页</a>
<button onclick="history.back()" class="btn btn-secondary">返回上一页</button>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
const timerElement = document.getElementById('timer');
let timeLeft = 5;
const countdown = setInterval(() => {
timeLeft--;
timerElement.textContent = timeLeft;
if (timeLeft <= 0) {
clearInterval(countdown);
window.location.href = '/';
}
}, 1000);
});
</script>
</body>
</html>