4
4
}
5
5
/* 设置body的基本样式和布局 */
6
6
body {
7
- font-family : Arial, sans-serif; /* 设置字体 */
7
+ font-family : 'ShanHaiJiGuMingKe' , '思源黑体' , '微软雅黑' , '幼圆' , '华文中宋' , Arial, sans-serif;
8
8
background-color : # f4f4f4 ; /* 设置背景颜色 */
9
9
color : # 333 ; /* 设置文本颜色 */
10
10
margin : 0 ; /* 去除边距 */
@@ -24,7 +24,8 @@ body::before {
24
24
left : 0 ; /* 左部对齐 */
25
25
width : 100% ; /* 宽度占满 */
26
26
height : 100% ; /* 高度占满 */
27
- background : url ('../images/background.jpg' ) no-repeat center center fixed; /* 设置背景图片 */
27
+ background : url ("../images/background.jpg" ) no-repeat center center
28
+ fixed; /* 设置背景图片 */
28
29
background-size : cover; /* 图片等比填充 */
29
30
opacity : 0.6 ; /* 设置透明度 */
30
31
z-index : -1 ; /* 设置层级,确保在所有内容之下 */
@@ -33,9 +34,9 @@ body::before {
33
34
/* 顶栏样式定义 */
34
35
.topbar {
35
36
width : 100% ; /* 宽度占满 */
36
- display : flex; /* 使用弹性布局 */
37
- justify-content : space-between; /* 两端对齐 */
38
- align-items : center; /* 中心垂直对齐 */
37
+ display : flex;
38
+ justify-content : space-between;
39
+ align-items : center;
39
40
background-color : rgba (255 , 255 , 255 , 0.6 ); /* 半透明白色背景 */
40
41
padding : 10px 20px ; /* 内边距 */
41
42
box-shadow : 0 0 10px rgba (0 , 0 , 0 , 0.1 ); /* 阴影效果 */
@@ -48,13 +49,13 @@ body::before {
48
49
}
49
50
50
51
/* 顶栏中的标题样式 */
51
- .title {
52
- font-family : 幼圆 , serif ;
53
- font - size : 24px; /* 字号 */
54
- font - weight : bold; /* 加粗 */
55
- flex : 1; /* 占据剩余空间 */
56
- d is play : flex; /* 使用弹性布局进行垂直居中 */
57
- align - items : center; /* 垂直居中 */
52
+ .topbar . title {
53
+ flex : 1 ;
54
+ display : flex;
55
+ align-items : center;
56
+ font-family : 'ShanHaiJiGuMingKe' , '思源黑体' , '微软雅黑' , '幼圆' , '华文中宋' , Arial , sans-serif;
57
+ font-size : 24 px ;
58
+ font-weight : bold;
58
59
}
59
60
60
61
/* 顶栏中的作者图标样式 */
@@ -217,7 +218,8 @@ body::before {
217
218
align-items : flex-end; /* 靠右对齐 */
218
219
margin-bottom : 10px ; /* 底部外边距 */
219
220
margin-right : 2% ; /* 右边距 */
220
- text-align : right; /* 文本右对齐 */ }
221
+ text-align : right; /* 文本右对齐 */
222
+ }
221
223
/* 玩家布局样式 */
222
224
.team-column # right-team .player {
223
225
display : flex; /* 使用弹性布局 */
@@ -267,9 +269,9 @@ body::before {
267
269
}
268
270
/* 结果展示 p 样式 */
269
271
.footer p {
270
- font-size : 26px ; /* 字号 */
271
- font-family : "华文中宋" , serif; /* 字体设置 */
272
- margin : 5px 0 ; /* 顶部和底部外边距 */
272
+ font-size : 26px ;
273
+ font-family : 'ShanHaiJiGuMingKe' , '思源黑体' , '微软雅黑' , '幼圆' , '华文中宋' , Arial , sans-serif;
274
+ margin : 5px 0 ;
273
275
}
274
276
/* 预测按钮样式 */
275
277
# predict-btn {
@@ -313,15 +315,30 @@ body::before {
313
315
}
314
316
/* A 队胜率 p 样式 */
315
317
.A-win-rate p {
316
- font-size : 25px !important ; /* 字号 */
317
- font-family : "幼圆" , serif !important ; /* 字体设置 */
318
- font-weight : bolder; /* 加粗 */
318
+ font-size : 25px !important ;
319
+ font-family : 'ShanHaiJiGuMingKe' , '思源黑体' , '微软雅黑' , '幼圆' , '华文中宋' , Arial , sans- serif !important ;
320
+ font-weight : bolder;
319
321
}
320
322
/* B 队胜率 p 样式 */
321
323
.B-win-rate p {
322
- font-size : 25px !important ; /* 字号 */
323
- font-family : "幼圆" , serif !important ; /* 字体设置 */
324
- font-weight : bolder; /* 加粗 */
324
+ font-size : 25px !important ;
325
+ font-family : 'ShanHaiJiGuMingKe' , '思源黑体' , '微软雅黑' , '幼圆' , '华文中宋' , Arial, sans-serif !important ;
326
+ font-weight : bolder;
327
+ }
328
+ .team-selection {
329
+ margin-bottom : 20px ;
330
+ }
331
+ .team {
332
+ display : flex;
333
+ justify-content : space-between;
334
+ align-items : flex-start;
335
+ }
336
+ # win-rate-chart {
337
+ margin : 0 30px ;
338
+ flex : 1 ;
339
+ }
340
+ .footer {
341
+ margin-top : 30px ;
325
342
}
326
343
/* Echarts 图表样式 */
327
344
# win-rate-chart {
@@ -332,4 +349,97 @@ body::before {
332
349
background-color : rgba (255 , 255 , 255 , 0.5 ); /* 半透明背景 */
333
350
border-radius : 10px ; /* 圆角 */
334
351
box-shadow : 0 0 10px rgba (0 , 0 , 0 , 0.1 ); /* 阴影效果 */
335
- }
352
+ }
353
+
354
+ .site-stats-header {
355
+ flex : 1 ;
356
+ display : flex;
357
+ align-items : center;
358
+ justify-content : center;
359
+ font-size : 20px ;
360
+ color : # 666 ;
361
+ background : none;
362
+ border-radius : 8px ;
363
+ padding : 5px 10px ;
364
+ box-shadow : none;
365
+ height : 30px ;
366
+ margin : 0 20px ;
367
+ font-family : 'ShanHaiJiGuMingKe' , '思源黑体' , '微软雅黑' , '幼圆' , '华文中宋' , Arial, sans-serif;
368
+ }
369
+
370
+ .site-stats-header span {
371
+ margin-right : 20px ;
372
+ display : flex;
373
+ align-items : center;
374
+ }
375
+
376
+ .site-stats-header img {
377
+ vertical-align : middle;
378
+ margin-right : 5px ;
379
+ }
380
+
381
+ /* 移除底部 site-stats 的样式 */
382
+ .site-stats {
383
+ display : none;
384
+ }
385
+
386
+ .topbar-right {
387
+ flex : 1 ;
388
+ display : flex;
389
+ align-items : center;
390
+ justify-content : flex-end;
391
+ }
392
+ # current-time {
393
+ margin-right : 0 ;
394
+ }
395
+
396
+ @font-face {
397
+ font-family : 'ShanHaiJiGuMingKe' ;
398
+ src : url ('../font/ShanHaiJiGuMingKe(YaZhiBan).woff2' ) format ('woff2' );
399
+ font-display : swap;
400
+ }
401
+
402
+ html , body {
403
+ font-family : 'ShanHaiJiGuMingKe' , '思源黑体' , '微软雅黑' , '幼圆' , '华文中宋' , Arial, sans-serif;
404
+ }
405
+
406
+ .stats-badge {
407
+ display : inline-flex;
408
+ align-items : center;
409
+ background : none;
410
+ color : # 444 ;
411
+ border-radius : 8px ;
412
+ padding : 2px 12px 2px 8px ;
413
+ font-size : 20px ;
414
+ font-family : 'ShanHaiJiGuMingKe' , '思源黑体' , '微软雅黑' , '幼圆' , '华文中宋' , Arial, sans-serif;
415
+ margin-right : 18px ;
416
+ font-weight : 500 ;
417
+ box-shadow : none;
418
+ }
419
+ .stats-badge : last-child {
420
+ margin-right : 0 ;
421
+ }
422
+ .stats-badge svg {
423
+ display : inline-block;
424
+ width : 28px !important ;
425
+ height : 28px !important ;
426
+ }
427
+ .stats-number {
428
+ font-weight : bold;
429
+ margin-left : 8px ;
430
+ background : linear-gradient (
431
+ 270deg ,
432
+ # ff5858, # ffb347, # f9f871, # 7be495, # 4fc3f7, # a084ee, # ff5858, # ffb347, # f9f871, # 7be495, # 4fc3f7, # a084ee, # ff5858
433
+ );
434
+ background-size : 1200% 1200% ;
435
+ -webkit-background-clip : text;
436
+ -webkit-text-fill-color : transparent;
437
+ background-clip : text;
438
+ color : transparent;
439
+ animation : rainbow-flash 12s linear infinite;
440
+ text-shadow : 0 1px 2px rgba (0 , 0 , 0 , 0.12 );
441
+ }
442
+ @keyframes rainbow-flash {
443
+ 0% { background-position : 0% 50% ; }
444
+ 100% { background-position : 100% 50% ; }
445
+ }
0 commit comments