-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
460 lines (398 loc) · 11.2 KB
/
Copy pathstyle.css
File metadata and controls
460 lines (398 loc) · 11.2 KB
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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
/* 全局样式 */
body {
font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(135deg, #e0f2f7 0%, #c8e6c9 100%); /* 柔和的蓝绿渐变背景 */
color: #333;
overflow: hidden; /* 防止滚动条 */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* 隐藏类 */
.hidden {
display: none !important;
}
/* 加载动画覆盖层 */
#loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.95); /* 半透明白色背景 */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 1000;
opacity: 1;
visibility: visible;
transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}
.spinner-container {
display: flex;
flex-direction: column;
align-items: center;
transform: translateY(0); /* 初始位置 */
opacity: 1;
transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}
/* 加载动画 */
.spinner {
border: 6px solid #e0e0e0; /* 浅灰色 */
border-top: 6px solid #4CAF50; /* 绿色 */
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; /* 更流畅的动画曲线 */
margin-bottom: 20px;
box-shadow: 0 0 15px rgba(76, 175, 80, 0.3); /* 绿色光晕 */
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading-text {
font-size: 1.2em;
color: #555;
animation: pulse 1.5s infinite alternate; /* 文字呼吸效果 */
}
@keyframes pulse {
0% { opacity: 0.7; }
100% { opacity: 1; }
}
/* 动画过渡类 */
.fade-out {
opacity: 0 !important;
visibility: hidden !important;
}
/* 主内容区域 */
#main-content {
text-align: center;
width: 100%;
max-width: 550px;
padding: 20px;
box-sizing: border-box;
opacity: 0; /* 初始隐藏 */
transform: translateY(20px); /* 初始位置略低 */
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
#main-content.fade-in-up {
opacity: 1;
transform: translateY(0);
}
.card {
background-color: #FFFFFF;
border-radius: 18px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* 更深的阴影 */
padding: 40px;
box-sizing: border-box;
animation: scaleIn 0.5s ease-out forwards; /* 卡片出现动画 */
}
@keyframes scaleIn {
from {
transform: scale(0.9);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
h1 {
color: #2C3E50;
margin-bottom: 10px;
font-size: 2.3em;
font-weight: 700;
}
.subtitle {
color: #777;
margin-bottom: 35px;
font-size: 1.05em;
line-height: 1.6;
}
/* 按钮容器 */
.button-container {
display: flex;
flex-direction: column; /* 手机上垂直排列 */
gap: 20px;
justify-content: center;
align-items: center;
}
/* 按钮基础样式 */
button {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
max-width: 320px;
padding: 18px 25px;
border: none;
border-radius: 10px;
font-size: 1.25em;
font-weight: bold;
color: #FFFFFF;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
position: relative; /* 用于伪元素动画 */
overflow: hidden; /* 隐藏伪元素溢出 */
}
button img {
width: 32px;
height: 32px;
margin-right: 15px;
transition: transform 0.2s ease; /* 图片动画 */
}
button span {
line-height: 1;
position: relative;
z-index: 2; /* 确保文字在伪元素之上 */
}
/* 按钮背景动画伪元素 */
button::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.1); /* 浅色覆盖 */
transform: scaleX(0);
transform-origin: left;
transition: transform 0.3s ease-out;
z-index: 1;
}
button:hover::before {
transform: scaleX(1);
}
/* 微信按钮样式 */
.wechat-button {
background: linear-gradient(45deg, #4CAF50, #66BB6A); /* 微信绿渐变 */
}
.wechat-button:hover {
background: linear-gradient(45deg, #45A049, #5CB85C);
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}
/* 支付宝按钮样式 */
.alipay-button {
background: linear-gradient(45deg, #007BFF, #2196F3); /* 支付宝蓝渐变 */
}
.alipay-button:hover {
background: linear-gradient(45deg, #0069D9, #1E88E5);
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}
/* QQ 按钮样式 (深蓝色/紫色调) */
.qq-button {
background: linear-gradient(45deg, #1A73E8, #4285F4); /* QQ蓝 */
}
.qq-button:hover {
background: linear-gradient(45deg, #1565C0, #3367D6);
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
}
button:hover img {
transform: scale(1.1); /* 图片放大效果 */
}
/* 响应式设计 */
@media (min-width: 768px) {
.button-container {
flex-direction: row; /* 桌面端水平排列 */
}
button {
width: auto;
min-width: 240px;
}
}
/* --- 微信页面样式 --- */
.wechat-page-body {
background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); /* 微信专属浅绿渐变 */
color: #2E7D32;
}
.wechat-page-body .card {
background-color: #FFFFFF;
box-shadow: 0 10px 30px rgba(46, 125, 50, 0.15); /* 微信绿色阴影 */
}
.wechat-page-body h1 {
color: #2E7D32;
}
.wechat-page-body p {
color: #4CAF50;
}
/* 移除了 .mode-switch-container 和 .mode-switch-button 的样式 */
/* 微信页面内部的二维码容器布局 */
.wechat-qr-sections {
display: flex;
flex-direction: column; /* 默认垂直排列 */
gap: 30px; /* 两个二维码区域之间的间距 */
margin-top: 20px;
}
@media (min-width: 768px) {
.wechat-qr-sections {
flex-direction: row; /* 桌面端水平排列 */
justify-content: center;
align-items: flex-start; /* 顶部对齐 */
}
}
.qr-code-section {
padding: 20px;
background-color: #F8F8F8; /* 略有区分的背景色 */
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
flex: 1; /* 让每个section占据可用空间 */
min-width: 280px; /* 最小宽度,防止过小 */
max-width: 45%; /* 最大宽度 */
box-sizing: border-box;
text-align: center; /* 居中内容 */
}
.qr-code-section h2 {
color: #4CAF50;
font-size: 1.5em;
margin-bottom: 15px;
}
.qr-code-container {
background-color: #FFFFFF;
padding: 25px;
border-radius: 15px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
margin-top: 15px; /* 调整与上方文字的距离 */
display: flex;
flex-direction: column;
align-items: center;
animation: fadeInUp 0.6s ease-out forwards; /* 元素出现动画 */
animation-delay: 0.3s;
opacity: 0;
transform: translateY(20px);
}
.qr-code-container img {
width: 220px;
height: 220px;
border: 2px solid #EEE;
border-radius: 10px;
margin-bottom: 18px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.qr-code-container p.fallback-text {
font-size: 0.95em;
color: #666;
line-height: 1.5;
margin-bottom: 5px;
}
/* 中间页的跳转按钮样式 - 默认绿色 (给微信页面使用) */
.manual-redirect-button {
margin-top: 30px;
background: linear-gradient(45deg, #00C853, #64DD17); /* 鲜艳的绿色 */
color: white;
padding: 15px 30px;
font-size: 1.3em;
border-radius: 10px;
box-shadow: 0 6px 20px rgba(0, 200, 83, 0.3);
transition: all 0.3s ease;
text-decoration: none; /* 移除a标签下划线 */
display: inline-block; /* 确保padding和margin生效 */
font-weight: bold;
}
.manual-redirect-button:hover {
background: linear-gradient(45deg, #00B04F, #57C714);
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(0, 200, 83, 0.4);
}
/* 支付宝页面中的手动跳转按钮特定样式 (蓝色) */
.alipay-page-body .manual-redirect-button {
background: linear-gradient(45deg, #007BFF, #2196F3); /* 支付宝蓝渐变 */
box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}
.alipay-page-body .manual-redirect-button:hover {
background: linear-gradient(45deg, #0069D9, #1E88E5);
box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}
/* QQ 页面中的手动跳转按钮特定样式 (QQ蓝) */
.qq-page-body .manual-redirect-button {
background: linear-gradient(45deg, #1A73E8, #4285F4); /* QQ蓝渐变 */
box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
}
.qq-page-body .manual-redirect-button:hover {
background: linear-gradient(45deg, #1565C0, #3367D6);
box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
}
/* --- 支付宝页面样式 --- */
.alipay-page-body {
background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); /* 支付宝专属浅蓝渐变 */
color: #1976D2;
}
.alipay-page-body .card {
background-color: #FFFFFF;
box-shadow: 0 10px 30px rgba(25, 118, 210, 0.15); /* 支付宝蓝色阴影 */
}
.alipay-page-body h1 {
color: #1976D2;
}
.alipay-page-body p {
color: #2196F3;
}
#countdown {
font-size: 2.8em; /* 倒计时数字更大 */
font-weight: 900; /* 更粗 */
color: #007BFF;
margin-top: 25px;
letter-spacing: 2px; /* 字间距 */
text-shadow: 0 0 10px rgba(0, 123, 255, 0.4); /* 蓝色光晕 */
animation: scalePulse 1.2s infinite alternate; /* 数字呼吸放大动画 */
}
@keyframes scalePulse {
0% { transform: scale(1); opacity: 0.8; }
100% { transform: scale(1.05); opacity: 1; }
}
/* --- QQ页面样式 --- */
.qq-page-body {
background: linear-gradient(135deg, #e0f7fa 0%, #b3e5fc 100%); /* 浅蓝色背景 */
color: #0277BD; /* 深蓝色文字 */
}
.qq-page-body .card {
background-color: #FFFFFF;
box-shadow: 0 10px 30px rgba(2, 119, 189, 0.15); /* QQ蓝色阴影 */
}
.qq-page-body h1 {
color: #0277BD;
}
.qq-page-body p {
color: #039BE5;
}
.qq-page-body .icon {
font-size: 4em; /* 保持图标大小一致 */
margin-bottom: 30px;
color: #039BE5; /* QQ蓝 */
}
/* 页面元素进入动画 */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.alipay-page-body h1,
.alipay-page-body p,
.alipay-page-body .icon,
.wechat-page-body h1,
.wechat-page-body p,
.wechat-page-body .icon,
.qq-page-body h1, /* 新增QQ页面的动画 */
.qq-page-body p,
.qq-page-body .icon {
animation: fadeInUp 0.6s ease-out forwards;
}
.alipay-page-body .icon, .wechat-page-body .icon, .qq-page-body .icon { animation-delay: 0.1s; }
.alipay-page-body h1, .wechat-page-body h1, .qq-page-body h1 { animation-delay: 0.2s; }
.alipay-page-body p:nth-of-type(1), .wechat-page-body p:nth-of-type(1), .qq-page-body p:nth-of-type(1) { animation-delay: 0.3s; }
.alipay-page-body p:nth-of-type(2), .wechat-page-body p:nth-of-type(2), .qq-page-body p:nth-of-type(2) { animation-delay: 0.4s; }