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