-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
760 lines (711 loc) · 21.7 KB
/
style.css
File metadata and controls
760 lines (711 loc) · 21.7 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
/* Import Google Fonts */
@import url('https://gstatic.aby.pub/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');
/* --- M3 Design Tokens --- */
:root {
/* Color Palette (Light Theme) */
--md-sys-color-primary: #0061a4;
--md-sys-color-on-primary: #ffffff;
--md-sys-color-primary-container: #d1e4ff;
--md-sys-color-on-primary-container: #001d36;
--md-sys-color-secondary: #535f70;
--md-sys-color-on-secondary: #ffffff;
--md-sys-color-secondary-container: #d7e3f7;
--md-sys-color-on-secondary-container: #101c2b;
--md-sys-color-tertiary: #6b5778;
--md-sys-color-on-tertiary: #ffffff;
--md-sys-color-tertiary-container: #f2daff;
--md-sys-color-on-tertiary-container: #251431;
--md-sys-color-error: #ba1a1a;
--md-sys-color-on-error: #ffffff;
--md-sys-color-error-container: #ffdad6;
--md-sys-color-on-error-container: #410002;
--md-sys-color-background: #fdfcff;
--md-sys-color-on-background: #1a1c1e;
--md-sys-color-surface: #fdfcff;
--md-sys-color-on-surface: #1a1c1e;
--md-sys-color-surface-variant: #dfe3eb;
--md-sys-color-on-surface-variant: #42474e;
--md-sys-color-outline: #73777f;
--md-sys-color-outline-variant: #c2c7cf;
--md-sys-color-shadow: #000000;
--md-sys-color-surface-container-lowest: #ffffff;
--md-sys-color-surface-container-low: #f7f9fc;
--md-sys-color-surface-container: #f1f4f7;
--md-sys-color-surface-container-high: #ebeef1;
--md-sys-color-surface-container-highest: #e6e8eb;
/* Typography */
--md-sys-typescale-font-family: 'Noto Sans SC', sans-serif;
--md-sys-typescale-display-large-size: 3.5625rem;
--md-sys-typescale-display-medium-size: 2.8125rem;
--md-sys-typescale-headline-large-size: 2rem;
--md-sys-typescale-headline-medium-size: 1.75rem;
--md-sys-typescale-title-large-size: 1.375rem;
--md-sys-typescale-title-medium-size: 1rem;
--md-sys-typescale-label-large-size: 0.875rem;
--md-sys-typescale-body-large-size: 1rem;
--md-sys-typescale-body-medium-size: 0.875rem;
/* Transitions */
--transition-duration: 0.3s;
--transition-timing: ease-in-out;
}
html.dark {
/* Color Palette (Dark Theme) */
--md-sys-color-primary: #9ecaff;
--md-sys-color-on-primary: #003258;
--md-sys-color-primary-container: #00497d;
--md-sys-color-on-primary-container: #d1e4ff;
--md-sys-color-secondary: #bac7db;
--md-sys-color-on-secondary: #253140;
--md-sys-color-secondary-container: #3b4858;
--md-sys-color-on-secondary-container: #d7e3f7;
--md-sys-color-tertiary: #d6bee4;
--md-sys-color-on-tertiary: #3b2948;
--md-sys-color-tertiary-container: #523f5f;
--md-sys-color-on-tertiary-container: #f2daff;
--md-sys-color-error: #ffb4ab;
--md-sys-color-on-error: #690005;
--md-sys-color-error-container: #93000a;
--md-sys-color-on-error-container: #ffdad6;
--md-sys-color-background: #1a1c1e;
--md-sys-color-on-background: #e2e2e6;
--md-sys-color-surface: #1a1c1e;
--md-sys-color-on-surface: #e2e2e6;
--md-sys-color-surface-variant: #42474e;
--md-sys-color-on-surface-variant: #c2c7cf;
--md-sys-color-outline: #8c9199;
--md-sys-color-outline-variant: #42474e;
--md-sys-color-shadow: #000000;
--md-sys-color-surface-container-lowest: #141619;
--md-sys-color-surface-container-low: #1a1c1e;
--md-sys-color-surface-container: #1e2022;
--md-sys-color-surface-container-high: #282b2d;
--md-sys-color-surface-container-highest: #333638;
}
/* --- Base & Reset --- */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
}
body {
font-family: var(--md-sys-typescale-font-family);
background-color: var(--md-sys-color-background);
color: var(--md-sys-color-on-background);
transition: background-color var(--transition-duration) var(--transition-timing), color var(--transition-duration) var(--transition-timing);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a {
color: inherit;
text-decoration: none;
}
img {
max-width: 100%;
height: auto;
display: block;
}
/* --- Layout --- */
.container {
max-width: 1152px; /* Corresponds to max-w-6xl */
margin-left: auto;
margin-right: auto;
padding-left: 1.5rem;
padding-right: 1.5rem;
}
@media (max-width: 640px) {
.container {
padding-left: 1rem;
padding-right: 1rem;
}
}
.grid-3-col {
display: grid;
grid-template-columns: repeat(1, 1fr);
gap: 1.5rem;
}
@media (min-width: 768px) {
.grid-3-col { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
.grid-3-col { grid-template-columns: repeat(3, 1fr); }
}
.grid-4-col {
display: grid;
grid-template-columns: repeat(1, 1fr);
gap: 1.5rem;
}
@media (min-width: 640px) {
.grid-4-col { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
.grid-4-col { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
.grid-4-col { grid-template-columns: repeat(4, 1fr); }
}
.divider {
border-top: 1px solid var(--md-sys-color-outline-variant);
margin-block: 0.5rem;
}
/* --- Typography Classes --- */
.typescale-display-large { font-size: var(--md-sys-typescale-display-large-size); font-weight: 400; line-height: 4rem; }
.typescale-display-medium {
font-size: var(--md-sys-typescale-display-medium-size);
font-weight: 400;
line-height: 3.25rem;
margin-left: 1rem;
margin-right: 1rem;
word-break: break-word;
}
.typescale-headline-large { font-size: var(--md-sys-typescale-headline-large-size); font-weight: 400; line-height: 2.5rem; }
.typescale-headline-medium { font-size: var(--md-sys-typescale-headline-medium-size); font-weight: 400; line-height: 2.25rem; }
.typescale-title-large { font-size: var(--md-sys-typescale-title-large-size); font-weight: 500; line-height: 1.75rem; }
.typescale-title-medium { font-size: var(--md-sys-typescale-title-medium-size); font-weight: 500; line-height: 1.5rem; }
.typescale-label-large { font-size: var(--md-sys-typescale-label-large-size); font-weight: 500; line-height: 1.25rem; }
.typescale-body-large { font-size: var(--md-sys-typescale-body-large-size); font-weight: 400; line-height: 1.5rem; }
.typescale-body-medium { font-size: var(--md-sys-typescale-body-medium-size); font-weight: 400; line-height: 1.25rem; letter-spacing: 0.017em;}
/* --- Components --- */
/* Button */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
height: 2.5rem; /* 40px */
padding: 0 1.5rem;
border-radius: 6.25rem; /* 100px */
border: 1px solid transparent;
font-size: var(--md-sys-typescale-label-large-size);
font-weight: 500;
cursor: pointer;
transition: background-color var(--transition-duration) var(--transition-timing), box-shadow var(--transition-duration) var(--transition-timing), transform var(--transition-duration) var(--transition-timing);
user-select: none;
-webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}
.btn:hover {
box-shadow: 0 1px 3px 1px rgba(0,0,0,0.15);
}
.btn:active {
transform: scale(0.98);
}
.btn--filled {
background-color: var(--md-sys-color-primary);
color: var(--md-sys-color-on-primary);
}
.btn--filled:hover { background-color: color-mix(in srgb, var(--md-sys-color-primary), white 8%); }
.btn--tonal {
background-color: var(--md-sys-color-secondary-container);
color: var(--md-sys-color-on-secondary-container);
}
.btn--tonal:hover { background-color: color-mix(in srgb, var(--md-sys-color-secondary-container), white 8%);}
.btn--text {
height: auto;
padding: 0.5rem 0.75rem;
color: var(--md-sys-color-on-surface-variant);
background-color: transparent;
}
.btn--text:hover { background-color: color-mix(in srgb, var(--md-sys-color-on-surface), transparent 88%); box-shadow: none; }
.btn--icon {
width: 2.5rem;
height: 2.5rem;
padding: 0;
font-size: 1.5rem;
color: var(--md-sys-color-on-surface-variant);
background-color: transparent;
}
.btn--icon:hover { background-color: color-mix(in srgb, var(--md-sys-color-on-surface), transparent 88%); box-shadow: none; }
/* Card */
.card {
border-radius: 1.5rem;
padding: 1.5rem;
transition: background-color var(--transition-duration) var(--transition-timing), border-color var(--transition-duration) var(--transition-timing), transform var(--transition-duration) var(--transition-timing);
}
.card--filled {
background-color: var(--md-sys-color-surface-container-high);
}
.card--outlined {
background-color: transparent;
border: 1px solid var(--md-sys-color-outline);
}
.card--outlined:hover {
background-color: var(--md-sys-color-surface-container);
transform: translateY(-4px);
}
.card--error {
background-color: var(--md-sys-color-error-container);
color: var(--md-sys-color-on-error-container);
}
.card-title-icon {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
}
.card-subtitle {
color: var(--md-sys-color-on-surface-variant);
}
/* Chip */
.chips-group {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.75rem;
}
.chip {
display: inline-flex;
align-items: center;
gap: 0.375rem;
height: 2rem;
padding: 0 0.75rem;
border-radius: 2rem;
font-size: var(--md-sys-typescale-label-large-size);
background-color: var(--md-sys-color-secondary-container);
color: var(--md-sys-color-on-secondary-container);
}
.chip--small {
height: 1.5rem;
padding: 0.125rem 0.5rem;
font-size: 0.75rem;
background-color: var(--md-sys-color-primary-container);
color: var(--md-sys-color-on-primary-container);
}
/* --- Sections --- */
/* Top App Bar */
#top-app-bar {
background-color: var(--md-sys-color-surface-container);
position: sticky;
top: 0;
z-index: 100;
transition: background-color var(--transition-duration) var(--transition-timing);
}
.nav-container {
display: flex;
align-items: center;
justify-content: space-between;
height: 4rem;
}
.nav-logo {
display: flex;
align-items: center;
gap: 0.75rem;
}
.nav-logo-img {
width: 2rem;
height: 2rem;
border-radius: 50%;
}
.nav-links-desktop {
display: flex;
align-items: center;
gap: 0.5rem;
}
@media (max-width: 767px) {
.nav-links-desktop { display: none; }
}
.nav-mobile-toggle {
display: none;
}
@media (max-width: 767px) {
.nav-mobile-toggle { display: flex; }
}
/* Mobile Navigation */
/* Mobile Navigation */
#mobile-nav-scrim {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.4);
z-index: 198;
opacity: 0;
pointer-events: none;
/* 保持不变,用于背景遮罩的淡入淡出 */
transition: opacity var(--transition-duration) var(--transition-timing);
will-change: opacity;
}
#mobile-nav-scrim.is-open {
opacity: 1;
pointer-events: auto;
}
#mobile-nav-drawer {
position: fixed;
top: 0;
left: 0;
width: 80%;
max-width: 320px;
height: 100%;
background-color: var(--md-sys-color-surface-container-high);
z-index: 199;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
/* 初始状态:完全移出视图,并且透明 */
transform: translateX(-100%);
opacity: 0; /* 新增:初始透明度为0 */
/* 动画过渡:同时过渡 transform 和 opacity */
transition: transform var(--transition-duration) var(--transition-timing),
opacity var(--transition-duration) var(--transition-timing),
background-color var(--transition-duration) var(--transition-timing);
will-change: transform, opacity; /* 更新:will-change 包含 opacity */
}
#mobile-nav-drawer.is-open {
transform: translateX(0); /* 动画结束状态:回到原位 */
opacity: 1; /* 新增:动画结束透明度为1 */
}
.mobile-nav-header {
padding: 1rem 0.5rem;
}
.mobile-nav-link {
display: flex;
align-items: center;
gap: 1rem;
padding: 0.75rem 1rem;
border-radius: 1.5rem;
font-size: var(--md-sys-typescale-body-large-size);
color: var(--md-sys-color-on-surface-variant);
transition: background-color var(--transition-duration) var(--transition-timing);
cursor: pointer;
background: none;
border: none;
width: 100%;
text-align: left;
}
.mobile-nav-link:hover {
background-color: color-mix(in srgb, var(--md-sys-color-on-surface), transparent 90%);
}
/* Hero Section */
.hero-section {
background-color: var(--md-sys-color-surface-container-low);
padding: 4rem 0;
text-align: center;
transition: background-color var(--transition-duration) var(--transition-timing);
}
.hero-content {
display: flex;
flex-direction: column;
align-items: center;
gap: 2rem;
}
.hero-logo {
width: 7rem;
height: 7rem;
margin-bottom: -1rem;
}
.hero-subtitle {
color: var(--md-sys-color-on-surface-variant);
max-width: 35ch; /* Limit text width */
margin: -1rem auto 0;
}
.hero-actions {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1rem;
margin-top: 1rem;
}
/* Content Sections */
.content-section {
padding: 4rem 0;
}
.section-title {
text-align: center;
margin-bottom: 3rem;
}
/* --- Release Section --- */
#release-info {
margin: 4rem 0;
}
.release-header {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 1rem;
margin-bottom: 1.5rem;
}
.release-title {
display: flex;
align-items: center;
gap: 0.75rem;
color: var(--md-sys-color-on-surface-variant);
}
.release-item {
padding: 1.5rem;
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: 1rem;
background-color: var(--md-sys-color-surface-container);
}
.release-item + .release-item { margin-top: 1rem; }
.release-item-header {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
}
.release-item-tag {
font-size: 0.8rem;
padding: 0.25rem 0.6rem;
border-radius: 0.5rem;
background-color: var(--md-sys-color-tertiary-container);
color: var(--md-sys-color-on-tertiary-container);
}
.release-item-body {
color: var(--md-sys-color-on-surface-variant);
}
.release-item-body h1, .release-item-body h2, .release-item-body h3 { margin-bottom: 0.5em; }
.release-item-body ul { list-style-position: inside; padding-left: 1rem; }
.release-item-body li { margin-bottom: 0.25em; }
.release-item-actions {
margin-top: 1.5rem;
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
}
.release-item-actions .download-btn {
flex: 1;
min-width: 200px;
}
/* Features Section */
.feature-card {
display: flex;
flex-direction: column;
}
.feature-icon {
width: 3rem;
height: 3rem;
margin-bottom: 1rem;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--md-sys-color-primary-container);
color: var(--md-sys-color-on-primary-container);
}
.feature-icon > .material-symbols-outlined { font-size: 1.5rem; }
.feature-card h3 {
margin-bottom: 0.75rem;
}
/* Contributors Section */
.contributor-card {
text-align: center;
}
.contributor-avatar {
width: 6rem;
height: 6rem;
border-radius: 50%;
margin: 0 auto 0.75rem;
transition: transform var(--transition-duration) var(--transition-timing);
}
.contributor-card a:hover .contributor-avatar {
transform: scale(1.05);
}
.contributor-name {
color: var(--md-sys-color-on-surface-variant);
}
.contributor-card .chips-group {
margin-top: 0.5rem;
}
/* Footer */
.site-footer {
background-color: var(--md-sys-color-surface-container-high);
color: var(--md-sys-color-on-surface-variant);
padding: 3rem 0;
}
.footer-content {
display: flex;
flex-direction: column;
md:flex-row;
justify-content: space-between;
align-items: center;
gap: 2rem;
text-align: center;
}
@media (min-width: 768px) {
.footer-content {
flex-direction: row;
text-align: left;
}
}
.footer-subtitle {
margin-top: 0.25rem;
}
.footer-socials {
display: flex;
gap: 0.5rem;
}
.footer-socials .btn--icon {
font-size: 1.25rem;
}
.site-footer .divider {
margin-top: 2rem;
margin-bottom: 2rem;
}
.footer-copyright {
text-align: center;
}
/* --- Custom Loader Animation --- */
.release-loader-container {
text-align: center;
padding: 2rem;
color: var(--md-sys-color-on-surface-variant);
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}
.loader {
width: 48px;
height: 48px;
border-radius: 50%;
display: inline-block;
border: 4px solid var(--md-sys-color-surface-variant);
border-top: 4px solid var(--md-sys-color-primary);
animation: spin 1s linear infinite;
}
.release-navigation {
display: flex;
align-items: center; /* 确保这一行存在 */
justify-content: center;
gap: 16px;
margin-top: 20px; /* 您可以根据需要调整此值 */
}
.release-navigation .btn {
display: flex;
align-items: center; /* 确保按钮内部内容也垂直居中 */
/* 如果按钮高度不一致,可以尝试设置一个固定的高度 */
/* height: 48px; */
}
/* 针对页码文本进行微调 */
.release-navigation .card-subtitle {
/* 移除或调整可能导致上浮的默认边距或行高 */
margin: 0; /* 确保没有额外的 margin */
padding: 0; /* 确保没有额外的 padding */
line-height: 1; /* 尝试将行高设置为1,或者与按钮的文字行高保持一致 */
/* 如果需要,可以进行微调 */
/* transform: translateY(2px); */ /* 尝试向下微调,根据实际效果调整像素值 */
}
.release-item {
/* 如果 release-item 本身的内容就可能溢出(例如,其内部有太多行文本) */
/* 并且你想限制它的单行高度,那么可以考虑设置 min-height 或 max-height */
/* 但通常溢出的是内部文本,而不是 release-item 容器本身 */
/* 允许长单词或URL在需要时断开,防止水平溢出 */
word-wrap: break-word; /* 兼容旧浏览器 */
overflow-wrap: break-word; /* 现代浏览器推荐 */
}
/* 如果 release-item 内部有特定的文本区域(比如用于显示发布说明的div或p标签) */
/* 你可能需要更具体地定位它们,以确保文本换行 */
.release-item .release-description, /* 假设你有一个这样的类来包裹描述文本 */
.release-item .release-asset-name { /* 假设你有一个这样的类来包裹文件名称 */
word-wrap: break-word;
overflow-wrap: break-word;
white-space: normal; /* 确保没有强制不换行 */
}
/* style.css */
.btn--tonal span { /* 定位到下载按钮内的文本 span */
display: inline-block; /* 必须是块级或行内块级元素才能应用文本溢出 */
max-width: 150px; /* 设置一个最大宽度,文本超出这个宽度才会显示省略号 */
white-space: nowrap; /* 强制文本不换行 */
overflow: hidden; /* 隐藏超出宽度的部分 */
text-overflow: ellipsis; /* 显示省略号 */
vertical-align: middle; /* 确保文本和图标垂直对齐 */
}
/* 调整按钮整体的内边距,以确保图标和省略号文本的布局 */
.btn--tonal {
display: inline-flex; /* 使用 flexbox 布局使图标和文本对齐 */
align-items: center; /* 垂直居中对齐 */
gap: 8px; /* 图标和文本之间的间距 */
/* 移除之前可能为换行设置的 padding-left/right 如果它导致了不协调 */
padding: 8px 16px; /* 调整整体内边距 */
}
/* 如果你的下载图标和文本在不同的 span 里,可能需要更精细的调整 */
.btn--tonal .material-symbols-outlined {
flex-shrink: 0; /* 确保图标不会被压缩 */
}
/* 如果按钮文本被包裹在 span 中 */
.release-item .download-button span {
white-space: normal;
word-wrap: break-word;
overflow-wrap: break-word;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
#top-app-bar.is-scrolled {
background-color: var(--md-sys-color-surface-container-high);
box-shadow: 0 2px 6px -1px rgba(0,0,0,0.1);
}
/* 下载弹窗样式 */
.modal {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background-color: rgba(0,0,0,0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.modal.is-open {
opacity: 1;
visibility: visible;
}
.modal-content {
background: var(--md-sys-color-surface-container);
border-radius: 1rem;
padding: 0 1.5rem 1.5rem;
max-width: 480px;
width: 100%;
box-shadow: var(--md-sys-elevation-level3, 0 4px 24px rgba(0,0,0,0.12));
transform: translateY(20px);
transition: transform 0.3s ease;
position: relative;
}
.modal.is-open .modal-content {
transform: translateY(0);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
padding: 1.5rem 0 0.75rem;
border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.modal-body {
padding: 0 1rem;
}
.countdown-number {
font-weight: bold;
color: var(--md-sys-color-primary);
}
.help-section {
margin-top: 1.5rem;
padding: 1rem;
background: var(--md-sys-color-surface-container-high);
border-radius: 0.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.link {
text-decoration: underline;
color: var(--md-sys-color-primary);
font-weight: 600;
}
/* 移动端优化 */
@media (max-width: 480px) {
.modal-content {
margin: 0 1rem;
padding: 0 1rem 1rem;
}
}