This repository was archived by the owner on Aug 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
769 lines (668 loc) · 22.2 KB
/
Copy pathstyle.css
File metadata and controls
769 lines (668 loc) · 22.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
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
@import url('https://cdn.bootcdn.net/ajax/libs/noto-sans-sc/5.0.9/NotoSansSC-Regular.min.css');
/* Root Variables: Define the color palette and glassmorphism properties */
:root {
--primary-color: #6A1B9A; /* 深紫色 - Deep Purple */
--secondary-color: #9C27B0; /* 中紫色 - Medium Purple */
--accent-color: #FFD700; /* 金黄色/亮黄色 - Gold/Yellow accent */
--neon-color: #0ff; /* 霓虹青色 - Cyan Neon */
/* === 核心改变:更通透的毛玻璃效果 === */
--glass-bg: rgba(255, 255, 255, 0.1); /* 更通透的浅色玻璃背景,解决“太黑”问题 */
--glass-border: rgba(255, 255, 255, 0.2); /* 浅色边框,在更通透的玻璃上提供清晰的边缘 */
--text-color: #E0E0E0; /* 默认文本颜色,柔和且适合深色背景 */
--dark-overlay: rgba(0, 0, 0, 0.4); /* 背景叠加层,保持深色基调 */
/* 特定深色背景元素(如代码块、表格头) */
--code-bg: rgba(0, 0, 0, 0.7); /* 代码块背景更深,确保可读性 */
--sticky-header-bg: rgba(0, 0, 0, 0.5); /* 粘性表头背景,略深于毛玻璃 */
--scrollbar-track-bg: rgba(0, 0, 0, 0.4); /* 滚动条轨道背景 */
}
/* Universal Box-Sizing and Font Reset */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
-webkit-font-smoothing: antialiased; /* 改善 WebKit 浏览器的字体渲染 */
-moz-osx-font-smoothing: grayscale; /* 改善 Firefox 浏览器的字体渲染 */
}
/* Body Styling: Full-screen background, centered content, fade-in effect */
body {
padding: 20px;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: #333 url('https://www.dmoe.cc/random.php') no-repeat center center fixed; /* 动态背景图 */
background-size: cover;
position: relative;
transition: opacity 0.5s ease-in-out; /* 加载时平滑淡入 */
}
/* Body Overlay: Darkens the background image for better text contrast */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--dark-overlay); /* 使用变量定义的深色背景叠加层,维持整体深色调 */
z-index: -1;
}
/* Body Load State: Controls initial opacity */
body:not(.loaded) {
opacity: 0;
}
body.loaded {
opacity: 1;
}
/* Global Text Styling: Consistent color and enhanced shadows for headings */
body, p, a, td, th, span, pre, input, textarea, button {
color: var(--text-color); /* 使用柔和的文本颜色 */
text-shadow: none; /* 默认移除文本阴影,让小字更清晰 */
}
/* 为确保按钮和输入框内的文字有足够对比,添加轻微阴影 */
button, input, textarea {
text-shadow: 0 0 2px rgba(0, 0, 0, 0.7);
}
.travel-body {
overflow: hidden; /* 防止内容溢出导致滚动条 */
}
/* Glassmorphism Container Style: Reusable for main content areas */
.container, .travel-container {
background: var(--glass-bg); /* 使用更通透的毛玻璃背景 */
backdrop-filter: blur(18px); /* 显著增加模糊度,强化毛玻璃效果 */
-webkit-backdrop-filter: blur(18px);
border: 1px solid var(--glass-border); /* 调整边框颜色,使其在通透的玻璃上更清晰 */
box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3); /* 调整阴影,在更透明背景下依然有立体感 */
padding: 30px;
border-radius: 20px;
width: 100%;
max-width: 1200px;
min-height: 80vh;
position: relative;
z-index: 1;
transition: transform 0.3s ease, box-shadow 0.3s ease;
will-change: transform, box-shadow; /* 优化动画性能 */
}
/* Container Hover Effect: Subtle lift and shadow increase */
.container:hover, .travel-container:hover {
transform: translateY(-5px); /* 增加悬停时的上浮效果 */
box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5); /* 悬停时阴影更深 */
}
/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(8px)) {
.container, .travel-container, .card-effect, .neon-form, pre, .table-wrapper, .modal-content {
background: rgba(0, 0, 0, 0.7); /* 无玻璃效果时,提供深色半透明背景 */
}
}
/* Card Effect: Reusable glassmorphism for smaller elements */
.card-effect {
background: var(--glass-bg);
backdrop-filter: blur(18px); /* 强化模糊效果 */
-webkit-backdrop-filter: blur(18px);
border: 1px solid var(--glass-border);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25); /* 调整卡片阴影 */
border-radius: 12px;
transition: transform 0.3s ease;
will-change: transform;
}
.card-effect:hover {
transform: scale(1.02); /* 悬停时放大效果更明显 */
}
/* Header Styling */
.header {
text-align: center;
margin-bottom: 20px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
z-index: 2;
}
h1 {
font-size: 38px; /* 增大标题字号 */
font-weight: 700;
/* 使用 filter: drop-shadow 替代 text-shadow,效果更平滑、现代 */
filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
color: #FFFFFF; /* 确保标题为纯白色以配合发光 */
}
h2 {
font-size: 26px; /* 增大二级标题字号 */
margin: 25px 0 15px; /* 调整间距 */
filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4)); /* 二级标题也添加发光 */
color: #FFFFFF;
}
/* Holographic Text Effect */
.holographic-text {
background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #ff6b6b); /* 增加一个颜色重复,使渐变更流畅 */
background-size: 200% auto; /* 让渐变范围更大,动画效果更明显 */
background-clip: text;
-webkit-background-clip: text;
color: transparent;
animation: hologram 4s infinite linear, moveGradient 4s linear infinite; /* 增加渐变移动动画 */
text-align: center;
display: inline-block;
font-size: 38px; /* 与 H1 保持一致 */
font-weight: 700;
filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5)); /* 增强光影 */
}
@keyframes hologram {
0% { filter: hue-rotate(0deg); }
100% { filter: hue-rotate(360deg); }
}
@keyframes moveGradient {
0% { background-position: 0% center; }
100% { background-position: -200% center; } /* 使渐变从左向右移动 */
}
.note {
font-size: 15px; /* 调整字号 */
margin-top: 15px;
opacity: 0.8; /* 稍减透明度,作为辅助信息 */
}
/* Search Box Layout */
.search-box {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px; /* 增加间距 */
width: 100%;
max-width: 800px;
margin: 0 auto;
justify-content: center;
}
.query-form {
display: flex;
flex-direction: row;
gap: 15px; /* 增加间距 */
width: 100%;
max-width: 800px;
justify-content: center;
align-items: center;
}
/* Neon Form Container */
.neon-form {
position: relative;
border: 3px solid var(--neon-color); /* 边框更粗,更显眼 */
box-shadow: 0 0 18px var(--neon-color); /* 初始阴影更亮 */
animation: neonPulse 1.8s infinite alternate; /* 动画速度略慢,更显沉稳 */
padding: 20px; /* 增加内边距 */
border-radius: 15px; /* 调整圆角 */
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
width: 100%;
max-width: 800px;
transition: box-shadow 0.3s ease;
background: var(--glass-bg); /* 使用新的毛玻璃背景 */
backdrop-filter: blur(18px); /* 强化模糊效果 */
-webkit-backdrop-filter: blur(18px);
}
.neon-form:hover {
box-shadow: 0 0 25px var(--neon-color), 0 0 40px rgba(0, 255, 255, 0.2); /* 悬停时更强的霓虹光晕 */
}
@keyframes neonPulse {
from { box-shadow: 0 0 12px var(--neon-color), inset 0 0 6px var(--neon-color); } /* 增加内阴影效果 */
to { box-shadow: 0 0 30px var(--neon-color), inset 0 0 15px var(--neon-color); } /* 霓虹光晕更明显 */
}
/* Search Input Styling */
.search-input {
width: 100%;
flex: 1;
padding: 14px 18px; /* 增加内边距,使输入框更高 */
border: 2px solid #555; /* 边框颜色更深 */
border-radius: 12px; /* 调整圆角 */
font-size: 17px; /* 增大字号 */
transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
background: var(--glass-bg); /* 使用毛玻璃背景 */
backdrop-filter: blur(12px); /* 略微减少输入框模糊度,保持内容清晰 */
-webkit-backdrop-filter: blur(12px);
color: var(--text-color); /* 文本颜色 */
will-change: border-color, box-shadow;
}
.search-input:focus {
outline: none;
border-color: var(--neon-color);
box-shadow: 0 0 18px rgba(0, 255, 255, 0.7), 0 0 0 2px rgba(0, 255, 255, 0.5); /* 更强的焦点霓虹效果 */
transform: translateY(-2px); /* 焦点时上浮效果 */
}
.search-input[type="text"], .search-input[type="url"], .search-input[type="email"], .search-input[type="password"], .search-input[type="number"], select.search-input {
height: 50px; /* 统一输入框高度 */
}
.search-input::placeholder {
color: #AAAAAA; /* 占位符颜色更亮 */
opacity: 0.8;
}
textarea.search-input {
height: 120px; /* 增大文本域高度 */
resize: vertical;
}
/* Button Styling */
.search-button, .copy-btn, .join-btn {
padding: 14px 30px; /* 增大按钮内边距 */
border: none;
border-radius: 12px; /* 调整圆角 */
cursor: pointer;
font-size: 17px; /* 增大字号 */
background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); /* 按钮使用渐变背景 */
color: #FFFFFF; /* 按钮文字纯白 */
position: relative;
overflow: hidden;
display: block;
margin: 15px auto; /* 调整外边距 */
transition: all 0.3s ease; /* 更全面的过渡效果 */
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); /* 更深的阴影 */
font-weight: 600; /* 加粗按钮文字 */
letter-spacing: 0.5px; /* 增加字母间距 */
}
.glow-button {
background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); /* 确保 glow-button 也使用渐变 */
}
.glow-button span {
position: relative;
z-index: 1;
}
.glow-button .glow {
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
transition: left 0.6s ease; /* 光效动画略慢 */
}
.glow-button:hover .glow {
left: 100%;
}
.query-form .search-button {
flex-shrink: 0;
width: auto;
margin: 0;
}
.search-button:hover, .copy-btn:hover, .join-btn:hover {
background: linear-gradient(45deg, var(--secondary-color), var(--primary-color)); /* 悬停时渐变方向反转 */
transform: translateY(-3px); /* 悬停时上浮更多 */
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5); /* 悬停时阴影更深 */
}
/* Result and Info Boxes */
.result {
margin-top: 25px; /* 调整外边距 */
padding: 20px; /* 调整内边距 */
border-radius: 12px; /* 调整圆角 */
border-left: 5px solid var(--accent-color); /* 边框更粗 */
background: var(--glass-bg);
backdrop-filter: blur(18px); /* 强化模糊效果 */
transition: transform 0.3s ease, box-shadow 0.3s ease; /* 添加阴影过渡 */
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* 添加默认阴影 */
}
.result:hover {
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
/* Status Messages */
.error {
color: #e74c3c;
text-align: center;
font-weight: 600; /* 加粗 */
margin-top: 20px;
font-size: 16px;
}
.success {
color: #2ecc71;
text-align: center;
font-weight: 600; /* 加粗 */
margin-top: 20px;
font-size: 16px;
}
.pending {
color: #f39c12;
font-weight: bold;
font-size: 16px;
}
/* Preformatted Text Styling (Code Blocks) */
pre {
padding: 15px; /* 增加内边距 */
border-radius: 10px; /* 调整圆角 */
overflow-x: auto;
font-family: 'SFMono-Regular', 'Menlo', 'Consolas', 'Liberation Mono', 'Courier New', monospace; /* 优化字体栈 */
background: var(--code-bg); /* 使用更深的背景,突出代码,保持可读性 */
backdrop-filter: blur(10px); /* 略微模糊 */
border: 1px solid rgba(255, 255, 255, 0.1); /* 添加轻微边框 */
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
/* Custom Scrollbar Styles for WebKit browsers */
.table-wrapper::-webkit-scrollbar {
width: 10px; /* 滚动条更宽 */
height: 10px;
}
.table-wrapper::-webkit-scrollbar-track {
background: var(--scrollbar-track-bg); /* 滚动条轨道更深 */
border-radius: 5px;
}
.table-wrapper::-webkit-scrollbar-thumb {
background: var(--neon-color);
border-radius: 5px;
opacity: 0.9; /* 滚动条把手更实 */
border: 1px solid rgba(255, 255, 255, 0.1); /* 添加边框 */
}
.table-wrapper::-webkit-scrollbar-thumb:hover {
background: var(--accent-color);
opacity: 1;
}
/* Table Wrapper for Scrollability */
.table-wrapper {
overflow-x: auto;
overflow-y: auto;
max-height: 500px;
margin-top: 25px; /* 调整外边距 */
max-width: 100%;
-webkit-overflow-scrolling: touch;
scrollbar-width: thin;
scrollbar-color: var(--neon-color) var(--scrollbar-track-bg); /* Firefox 滚动条颜色 */
border-radius: 10px; /* 使整个表格区域有圆角 */
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* 添加阴影 */
}
/* Table Styling */
table {
width: 100%;
max-width: 100%;
border-collapse: collapse;
border-radius: 10px; /* 确保表格本身也有圆角 */
background: var(--glass-bg); /* 表格背景使用毛玻璃 */
backdrop-filter: blur(18px); /* 强化模糊效果 */
table-layout: auto;
overflow: hidden; /* 隐藏超出圆角的部分 */
}
th, td {
padding: 14px; /* 增加内边距 */
text-align: left;
border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 更细的边框,更柔和 */
white-space: nowrap;
min-width: 110px; /* 调整最小宽度 */
}
th {
font-weight: 700; /* 加粗表头文字 */
color: var(--accent-color);
position: sticky;
top: 0;
background: var(--sticky-header-bg); /* 使用更深的粘性表头背景 */
z-index: 3;
border-bottom: 1px solid var(--neon-color); /* 表头下方添加霓虹色边框 */
}
td[data-label="描述"] {
white-space: normal;
word-break: break-word;
max-width: 250px; /* 描述列最大宽度 */
}
tr:hover {
background: rgba(255, 255, 255, 0.12); /* 悬停背景更柔和,在通透玻璃上更明显 */
transform: scale(1.002); /* 微小放大效果 */
transition: background 0.3s, transform 0.3s;
}
/* Media Queries for Responsive Design */
@media (max-width: 768px) {
body {
padding: 10px;
}
.container, .travel-container {
padding: 20px;
min-height: auto;
margin: 10px 0;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); /* 移动端调整阴影 */
}
h1 {
font-size: 28px;
}
h2 {
font-size: 20px;
margin: 15px 0 10px;
}
.holographic-text {
font-size: 28px;
}
.search-input {
font-size: 15px;
padding: 10px 12px;
height: 45px;
}
.search-button, .copy-btn, .join-btn {
padding: 10px 20px;
font-size: 15px;
}
table {
display: block;
overflow-x: auto;
font-size: 13px;
border-radius: 8px; /* 移动端表格圆角 */
}
th, td {
min-width: 90px;
padding: 10px;
}
td[data-label="描述"] {
max-width: 150px;
}
.search-box, .neon-form {
max-width: 100%;
margin: 0 auto;
padding: 15px; /* 调整内边距 */
}
.github-corner {
width: 50px; /* 移动端角标更小 */
height: 50px;
}
.github-link {
font-size: 9px;
top: 10px;
right: 4px;
}
/* Mobile Optimization: Disable hover animations to prevent issues */
.container:hover, .travel-container:hover {
transform: none;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.card-effect:hover {
transform: none;
}
.result:hover {
transform: none;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
}
@media (min-width: 769px) {
.container {
padding: 40px;
}
th, td {
min-width: 120px;
}
td[data-label="描述"] {
max-width: 250px;
}
}
/* Footer Styling: Fixed at bottom with glassmorphism */
.footer {
text-align: center;
padding: 12px; /* 调整内边距 */
font-size: 15px;
position: fixed;
bottom: 0;
width: 100%;
background: var(--glass-bg); /* 使用毛玻璃背景 */
backdrop-filter: blur(15px); /* 强化模糊效果 */
box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3); /* 调整阴影 */
z-index: 999; /* 确保在最上层 */
}
.footer a {
text-decoration: none;
margin: 0 12px; /* 调整间距 */
transition: color 0.3s;
color: var(--text-color);
}
.footer a:hover {
text-decoration: underline;
color: var(--accent-color);
}
/* GitHub Corner (Top Right) */
.github-corner {
position: fixed;
top: 0;
right: 0;
width: 85px; /* 稍微增大 */
height: 85px;
background: var(--glass-bg); /* 使用毛玻璃背景 */
backdrop-filter: blur(18px); /* 强化模糊效果 */
clip-path: polygon(100% 0, 0 0, 100% 100%);
z-index: 1000;
transition: transform 0.3s;
box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.3); /* 添加阴影 */
}
.github-corner:hover {
transform: scale(1.08); /* 悬停时放大效果更明显 */
}
.github-link {
position: absolute;
top: 18px; /* 调整位置 */
right: 10px; /* 调整位置 */
text-decoration: none;
font-size: 13px; /* 调整字号 */
transform: rotate(45deg);
white-space: nowrap;
color: #FFFFFF; /* 纯白文字 */
font-weight: 500;
}
.github-link:hover {
text-decoration: underline;
color: var(--accent-color);
}
/* Modal Overlay */
.modal {
display: none;
position: fixed;
z-index: 2000; /* 确保模态框在最上层 */
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7); /* 更深的半透明背景 */
justify-content: center;
align-items: center;
}
/* Modal Content Styling */
.modal-content {
background: var(--glass-bg); /* 使用毛玻璃背景 */
backdrop-filter: blur(20px); /* 模态框模糊度最高,使其最突出 */
padding: 25px; /* 调整内边距 */
border-radius: 18px; /* 调整圆角 */
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5); /* 更深的阴影 */
width: 90%;
max-width: 450px; /* 调整最大宽度 */
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-height: 85vh; /* 调整最大高度 */
overflow-y: auto;
border: 1px solid var(--glass-border); /* 添加边框 */
}
/* Ensure modal content stays centered on hover */
.modal-content:hover {
transform: translate(-50%, -50%); /* 确保模态框在悬停时保持居中 */
}
/* Close Button for Modals */
.close {
float: right;
font-size: 28px; /* 增大关闭按钮 */
cursor: pointer;
transition: color 0.3s;
color: #AAAAAA; /* 初始颜色为柔和的灰色 */
}
.close:hover {
color: #e74c3c;
transform: scale(1.1); /* 悬停时略微放大 */
}
/* Action Links (Approve, Reject, Delete, Modify, Filing, Logout) */
.approve-link, .reject-link, .delete-link, .logout-link, .modify-link, .filing-link {
text-decoration: none;
transition: color 0.3s, text-shadow 0.3s; /* 添加文本阴影过渡 */
font-weight: 500;
margin-right: 15px; /* 统一右侧外边距 */
}
.approve-link {
color: #2ecc71;
}
.reject-link, .delete-link, .logout-link {
color: #e74c3c;
}
.modify-link, .filing-link {
color: var(--neon-color); /* 统一使用霓虹色作为修改类链接颜色 */
}
.approve-link:hover, .reject-link:hover, .delete-link:hover, .logout-link:hover, .modify-link:hover, .filing-link:hover {
text-decoration: underline;
color: var(--accent-color); /* 悬停时变为强调色 */
text-shadow: 0 0 8px rgba(255, 215, 0, 0.5); /* 悬停时文字发光 */
}
/* Travel Info Box */
.travel-info {
margin-top: 25px;
padding: 20px;
border-radius: 12px;
background: var(--glass-bg);
backdrop-filter: blur(18px); /* 强化模糊效果 */
transition: transform 0.3s ease, box-shadow 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.travel-info:hover {
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.travel-info p {
margin-bottom: 10px;
}
/* Background Animations: Stars/Particles */
.stars, .particles {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
}
.particle {
position: absolute;
width: 3px; /* 粒子更大 */
height: 3px;
background: rgba(255, 255, 255, 0.7); /* 粒子更亮 */
border-radius: 50%;
animation: float 7s infinite linear; /* 动画更慢,更平滑 */
box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* 粒子自带微弱光晕 */
}
@keyframes float {
0% { transform: translateY(0); opacity: 0.8; }
50% { opacity: 0.4; }
100% { transform: translateY(-110vh); opacity: 0; } /* 确保粒子完全消失 */
}
/* Progress Bar Styling */
progress {
width: 100%;
height: 25px; /* 进度条更高 */
background: rgba(0, 0, 0, 0.4); /* 进度条背景更深 */
border: 1px solid var(--glass-border);
border-radius: 12px; /* 调整圆角 */
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3); /* 内阴影效果 */
}
progress::-webkit-progress-bar {
background: rgba(0, 0, 0, 0.4);
border-radius: 12px;
}
progress::-webkit-progress-value {
background: linear-gradient(to right, var(--neon-color), var(--accent-color)); /* 进度条值使用渐变 */
border-radius: 12px;
transition: width 0.4s ease; /* 进度条动画更流畅 */
}
progress::-moz-progress-bar {
background: linear-gradient(to right, var(--neon-color), var(--accent-color));
border-radius: 12px;
}