blob: 2b262e273f40e2357091d8aedca3c5c6c48489fd [file] [log] [blame]
meisiyu1d4aade2025-06-02 20:10:36 +08001.postCenterContainer {
2 min-height: 100vh;
3 background-color: #f5f5f5;
4}
5
6.headerNav {
7 background: white;
8 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
9 padding: 0 24px;
10 display: flex;
11 align-items: center;
12 justify-content: space-between;
13 height: 64px;
14 position: sticky;
15 top: 0;
16 z-index: 100;
17}
18
19.categoryMenu {
20 display: flex;
21 align-items: center;
22 gap: 8px;
23}
24
25.categoryButton {
26 border: none;
27 box-shadow: none;
28 font-weight: 500;
29 padding: 8px 16px;
30 border-radius: 6px;
31 transition: all 0.3s ease;
32}
33
34.categoryButton:hover {
35 background-color: #f0f0f0;
36}
37
38.searchContainer {
39 flex: 1;
40 display: flex;
41 justify-content: center;
42 max-width: 400px;
43 margin: 0 24px;
44}
45
46.userCenter {
47 display: flex;
48 align-items: center;
49 gap: 12px;
50}
51
52.carouselContainer {
53 margin: 24px;
54 border-radius: 12px;
55 overflow: hidden;
56 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
57}
58
59.carouselSlide {
60 position: relative;
61 display: flex !important;
62 align-items: center;
63 justify-content: center;
64 min-height: 300px;
65}
66
67.carouselOverlay {
68 position: absolute;
69 bottom: 0;
70 left: 0;
71 right: 0;
72 background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
73 color: white;
74 padding: 40px 40px 24px;
75 text-align: left;
76}
77
78.carouselTitle {
79 font-size: 28px;
80 font-weight: bold;
81 margin: 0 0 12px 0;
82 text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
83}
84
85.carouselSummary {
86 font-size: 16px;
87 margin: 0 0 16px 0;
88 opacity: 0.9;
89 line-height: 1.5;
90}
91
92.carouselMeta {
93 display: flex;
94 gap: 24px;
95 font-size: 14px;
96 opacity: 0.8;
97}
98
99.postsSection {
100 padding: 24px;
101}
102
103.categoryTitle {
104 margin-bottom: 24px;
105 text-align: center;
106}
107
108.categoryTitle h2 {
109 font-size: 24px;
110 margin: 0 0 8px 0;
111 color: #1890ff;
112}
113
114.categoryTitle p {
115 margin: 0;
116 color: #666;
117 font-size: 14px;
118}
119
120.postsRow {
121 margin-bottom: 32px;
122}
123
124.postCol {
125 display: flex;
126 height: 480px; /* 固定卡片高度 */
127}
128
129.postCol > * {
130 width: 100%;
131}
132
133.emptyState {
134 text-align: center;
135 padding: 60px 0;
136 color: #999;
137 font-size: 16px;
138}
139
140.paginationContainer {
141 display: flex;
142 justify-content: center;
143 margin-top: 32px;
144}
145
146/* 响应式设计 */
147@media (max-width: 768px) {
148 .headerNav {
149 flex-direction: column;
150 height: auto;
151 padding: 12px;
152 gap: 12px;
153 }
154
155 .categoryMenu {
156 flex-wrap: wrap;
157 justify-content: center;
158 }
159
160 .searchContainer {
161 margin: 0;
162 max-width: 100%;
163 }
164
165 .carouselContainer {
166 margin: 12px;
167 }
168
169 .carouselOverlay {
170 padding: 20px;
171 }
172
173 .carouselTitle {
174 font-size: 20px;
175 }
176
177 .carouselSummary {
178 font-size: 14px;
179 }
180
181 .carouselMeta {
182 flex-direction: column;
183 gap: 8px;
184 }
185
186 .postsSection {
187 padding: 12px;
188 }
189}