blob: f10a72340ee94266a0e6cc355cd673b7331ce62f [file] [log] [blame]
LaoeGaoci388f7762025-05-29 22:24:35 +08001.Home {
2 padding: 2rem;
3 position: relative;
4 max-width: 1200px;
5 margin: 0 auto;
6 padding: 0 2rem;
7}
8
9.main-header {
10 display: flex;
11 flex-direction: row;
12 gap: 24px;
13 margin: 0 auto;
14 margin-bottom: 2rem;
15 margin-top: 2rem;
16}
17
18.section-header {
19 display: flex;
20 justify-content: space-between;
21 align-items: center;
22 margin-top: 20px;
23}
24
25.carousel-wrapper {
26 flex: 1;
27
28 .custom-carousel {
29 position: relative;
30
31 .carousel-item {
32 max-width: 100px;
33
34 img {
35 border-radius: 8px;
36 object-fit: cover;
LaoeGaoci8f6d0db2025-06-03 22:57:04 +080037 cursor: pointer;
LaoeGaoci388f7762025-05-29 22:24:35 +080038 }
39 }
40
41 .p-carousel-prev,
42 .p-carousel-next {
43 position: absolute;
44 top: 50%;
45 transform: translateY(-50%);
46 z-index: 10;
47 /* 保证在图片之上 */
48 width: 2.5rem;
49 height: 2.5rem;
50 border-radius: 50%;
LaoeGaoci8f6d0db2025-06-03 22:57:04 +080051 background: rgba(213, 244, 235, 0.5);
52 color: #ffffff;
LaoeGaoci388f7762025-05-29 22:24:35 +080053 display: flex;
54 align-items: center;
55 justify-content: center;
56 pointer-events: auto;
57 /* 确保按钮可点击 */
58 }
59
60 /* 左箭头靠左 */
61 .p-carousel-prev {
62 left: 0.5rem;
63 }
64
65 /* 右箭头靠右 */
66 .p-carousel-next {
LaoeGaoci8f6d0db2025-06-03 22:57:04 +080067 right: 1rem;
LaoeGaoci388f7762025-05-29 22:24:35 +080068 }
69 }
70}
71
72.rewards-panel {
73 display: flex;
74 flex-direction: column;
75 height: 350px;
76 width: 400px;
77 background: #fff;
78 border-radius: 10px;
79 padding: 1rem;
80 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
81
82 h2 {
83 color: #526665;
84 font-size: 1.25rem;
85 margin-bottom: 1rem;
86 padding-bottom: 0.5rem;
87 border-bottom: 1px solid #eee;
88 text-align: center;
89 }
90
91 .rewards-list {
92 display: flex;
93 flex-direction: column;
94 gap: 1rem;
95
96 .reward-item {
97 display: flex;
98 justify-content: space-between;
99 align-items: center;
100 padding: 0.75rem;
101 background: #f8f9fa;
102 border-radius: 6px;
103 transition: all 0.3s ease;
104
105 &:hover {
106 background: #f0f4f7;
107 transform: translateY(-2px);
108 }
109
110 .reward-title {
111 font-size: 0.7rem;
112 color: #333;
113 }
114
115 .reward-price {
116 font-weight: bold;
117 color: #526665;
118 }
119 }
120 }
121
122 .view-all-button {
123 width: 60%;
124 margin-left: 4.5rem;
125 margin-top: 2rem;
126 }
127}
128
129.site-stats {
130 max-width: 1200px;
131 margin: 2rem auto;
132 padding: 1rem;
133 background-color: #fff;
134 border-radius: 8px;
135 display: flex;
136 justify-content: space-around;
137 align-items: center;
138 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
139
140 .stat-item {
141 display: flex;
142 flex-direction: column;
143 align-items: center;
144 gap: 0.5rem;
145
146 .stat-value {
147 font-size: 1.5rem;
148 font-weight: bold;
149 color: #333;
150 }
151
152 .stat-label {
153 font-size: 0.875rem;
154 color: #666;
155 }
156 }
157}
158
159.resource-grid {
160 display: grid;
161 grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
162 gap: 1rem;
163
164 .resource-card {
165 transition: transform 0.2s ease;
166 cursor: pointer;
167 box-shadow: none !important;
168
169 .p-image {
170 img {
171 border-radius: 0.5rem 0.5rem 0 0;
172 object-fit: cover;
173 }
174 }
175
176 .p-card-body {
177 padding: 0;
178 }
179
180 .p-card-content {
181 padding: 0;
182 }
183
184 &:hover {
185 transform: translateY(-4px);
186 }
187
188 .card-content {
189 display: flex;
190 flex-direction: column;
191 position: relative;
192 margin-left: 16px;
193 margin-right: 16px;
194 margin-bottom: 16px;
195
196 h3 {
197 margin: 1rem 0;
198 font-size: 1rem;
199 line-height: 1.5;
200 color: #2d3748;
201 }
202
203 .view-count {
204 position: absolute;
205 bottom: 0rem;
206 right: 0rem;
207 display: flex;
208 align-items: center;
209 gap: 0.5rem;
210 color: #718096;
211 font-size: 0.9rem;
212 }
213 }
214 }
215}