blob: 681a24641b9f7bdf668d1056bef37c6d276f9f1a [file] [log] [blame]
LaoeGaoci8f6d0db2025-06-03 22:57:04 +08001.HotResource {
2 max-width: 1200px;
3 margin: 0 auto;
4 padding: 0 2rem;
5}
6
7.main-header {
8 display: flex;
9 flex-direction: row;
10 gap: 12px;
11 margin: 0 auto;
12 margin-bottom: 2rem;
13 margin-top: 2rem;
14}
15
16.chart-wrapper {
17 flex: 1.2; // 右侧占一半
18 min-width: 0;
19 display: flex;
20 align-items: center;
21 padding: 0.5rem;
22 justify-content: center;
23 background: #fff;
24 border-radius: 10px;
25
26 canvas {
27 width: 100% !important;
28 height: 100% !important;
29 }
30}
31
32.carousel-wrapper {
33 flex: 0.8;
34
35 .custom-carousel {
36 position: relative;
37
38 .carousel-item {
39 position: relative;
40 max-width: 100px;
41
42 img {
43 border-radius: 10px 10px 10px 10px;
44 border-top-right-radius: 10px;
45 border-bottom-left-radius: 10px;
46 object-fit: cover;
47 cursor: pointer;
48 }
49
50 h3 {
51 width: 480px;
52 text-align: center;
53 bottom: 0;
54 left: 0;
55 color: #fff;
56 background: #14b8a6;
57 padding: 0.5rem 1rem;
58 font-size: 1.75rem;
59 margin: 0;
60 border-radius: 0 0 10px 10px;
61 position: absolute;
62 }
63 }
64
65 .p-carousel-prev,
66 .p-carousel-next {
67 position: absolute;
68 top: 50%;
69 transform: translateY(-50%);
70 z-index: 10;
71 /* 保证在图片之上 */
72 width: 2.5rem;
73 height: 2.5rem;
74 border-radius: 50%;
75 background: rgba(213, 244, 235, 0.5);
76 color: #ffffff;
77 display: flex;
78 align-items: center;
79 justify-content: center;
80 pointer-events: auto;
81 /* 确保按钮可点击 */
82 }
83
84 /* 左箭头靠左 */
85 .p-carousel-prev {
86 left: 0.5rem;
87 }
88
89 /* 右箭头靠右 */
90 .p-carousel-next {
91 right: 0.6rem;
92 }
93 }
LaoeGaoci8f6d0db2025-06-03 22:57:04 +080094}