blob: f819038732c10a503ef8bad254f63d67128659b2 [file] [log] [blame]
223010093a876cc2025-04-14 16:22:20 +08001/* 设置整个兴趣小组页面的背景色和布局 */
2.interest-group-container {
Krishya57cc17b2025-05-26 16:43:34 +08003 background: #333;
Krishyac0f7e9b2025-04-22 15:28:28 +08004 width: 100%;
5 height: 2000px;
6}
7
8/* 页面标题样式 */
9h1 {
10 text-align: center;
11 color: #5F4437; /* 深棕色 */
12 font-size: 2rem;
13 margin-bottom: 30px;
14}
15
16/* 筛选、搜索和排序容器样式 */
17.filter-search-sort-container {
18 display: flex;
19 justify-content: center;
20 gap: 20px;
21 margin-bottom: 20px;
22}
23
24/* 筛选部分样式 */
25.filter, .sort {
26 margin-bottom: 0;
27 /* 文字在左边,下拉框在右边 */
28 display: flex;
29 justify-content: space-between;
30 align-items: center;
31 gap: 5px;
32}
33
34.search input {
35 padding: 10px;
36 width: 200px;
37 margin-left: 100px;
38 border-radius: 6px;
39 border: 1px solid #e0c4a1; /* 浅棕色 */
40 background-color: #fff5f5; /* 浅粉色 */
41 color: #5F4437;
42 font-size: 1rem;
43}
44
45.filter select,
46.sort select {
47 padding: 10px;
48 width: 200px;
49 border-radius: 6px;
50 border: 1px solid #e0c4a1; /* 浅棕色 */
51 background-color: #fff5f5; /* 浅粉色 */
52 color: #5F4437;
53 font-size: 1rem;
54}
55
56/* 激活时的输入框样式 */
57.filter select:focus,
58.search input:focus,
59.sort select:focus {
60 border-color: #b38867; /* 较深的棕色 */
61 outline: none;
62}
63
64.group-list {
65 margin-top: 5%;
66 display: flex;
67 flex-wrap: wrap;
68 gap: 20px; /* 控制 item 之间的间距 */
69 justify-content: flex-start; /* 让不足三项时左对齐 */
70}
71
72.group-item {
73 flex: 0 0 calc(33.333% - 20px); /* 每个占1/3减去间距 */
74 box-sizing: border-box;
75 border: 1px solid #e0c4a1;
76 border-radius: 8px;
77 overflow: hidden;
78 background-color: #fff;
79 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
80 transition: transform 0.3s ease-in-out;
81 padding: 15px;
82}
83
84
85.group-item:hover {
86 transform: translateY(-5px); /* 鼠标悬停时小组项上升效果 */
87}
88
89.group-content {
90 display: flex;
91 gap: 15px;
92}
93
94.group-info-right {
95 display: flex;
96 flex-direction: column;
97 align-items: flex-start;
98 justify-content: flex-start;
99}
100
101/* 小组描述样式 */
102.group-description {
103 color: #333;
104 font-size: 1rem;
105 line-height: 1.4;
106 margin-top: 10px;
107 margin-bottom: 10px;
108}
109
110/* 小组标签样式 */
111.group-tags {
112 display: flex;
113 gap: 10px;
114}
115
116.tag {
117 background-color: #f0f0f0;
118 color: #5F4437;
119 padding: 5px 10px;
120 border-radius: 4px;
121 font-size: 0.9rem;
122}
123
124/* 分页按钮 */
125.pagination {
126 text-align: center;
127 margin-top: 30px;
128}
129
130button {
131 padding: 10px 20px;
132 margin: 0 10px;
133 background-color: #5F4437; /* 深棕色 */
134 color: white;
135 border: none;
136 border-radius: 6px;
137 cursor: pointer;
138 font-size: 1rem;
139 transition: background-color 0.3s ease;
140}
141
142button:disabled {
143 background-color: #d6d6d6;
144 cursor: not-allowed;
145}
146
147button:hover {
148 background-color: #b38867; /* 深棕色的 hover 效果 */
149}
150
151/* 错误信息的样式 */
152.error {
153 color: #ff6f61; /* 红色 */
154 text-align: center;
155 margin-top: 20px;
156}
157
158/* 加载中的提示 */
159.loading {
160 color: #5F4437;
161 text-align: center;
162 margin-top: 20px;
163 font-size: 1.2rem;
164}
165
166/* 响应式设计: 确保在小屏幕下布局能适应 */
167@media (max-width: 768px) {
168 .group-item {
169 width: 48%;
170 }
171
172 .filter-search-sort-container {
173 flex-direction: column;
174 }
175
176 .filter select,
177 .search input,
178 .sort select {
223010093a876cc2025-04-14 16:22:20 +0800179 width: 100%;
223010093a876cc2025-04-14 16:22:20 +0800180 margin-bottom: 10px;
181 }
Krishyac0f7e9b2025-04-22 15:28:28 +0800182}
183
184@media (max-width: 480px) {
185 .group-item {
186 width: 100%;
223010093a876cc2025-04-14 16:22:20 +0800187 }
Krishyac0f7e9b2025-04-22 15:28:28 +0800188
189 .filter select,
190 .search input,
191 .sort select {
192 width: 100%;
193 font-size: 0.9rem;
223010093a876cc2025-04-14 16:22:20 +0800194 }
Krishyac0f7e9b2025-04-22 15:28:28 +0800195}
196
197.interest-group-card {
198 background-color: #e9ded2;
199 border-radius: 16px;
200 max-width: 70%;
201 max-height: 100%;
202 /* 卡片居中 */
203 margin: 0 auto;
204 margin-top: 40px;
205 /* padding: 24px 32px; */
206 padding: 3% 3%
Krishya73cd8822025-06-07 15:48:41 +0800207}
208
209.create-group-btn {
210 background-color: #f2d0c9; /* 浅粉色 */
211 color: #4e342e; /* 深棕色 */
212 border: none;
213 padding: 10px 20px;
214 margin: 20px 0;
215 border-radius: 8px;
216 font-size: 16px;
217 cursor: pointer;
218 transition: background-color 0.3s ease;
219}
220
221.create-group-btn:hover {
222 background-color: #e4b5ae;
223}
224
225.modal-overlay {
226 position: fixed;
227 top: 0;
228 left: 0;
229 width: 100%;
230 height: 100%;
231 background-color: rgba(50, 30, 20, 0.5); /* 米棕半透明 */
232 display: flex;
233 align-items: center;
234 justify-content: center;
235 z-index: 1000;
236}
237
238.modal-content {
239 background-color: #fffaf5; /* 淡米色 */
240 padding: 30px;
241 border-radius: 12px;
242 width: 400px;
243 box-shadow: 0 5px 15px rgba(0,0,0,0.2);
244}
245
246.modal-content h2 {
247 margin-bottom: 15px;
248 color: #4e342e;
249}
250
251.modal-content input,
252.modal-content textarea {
253 width: 100%;
254 padding: 10px;
255 margin: 8px 0;
256 border: 1px solid #d3c0b0;
257 border-radius: 6px;
258 font-size: 14px;
259}
260
261.modal-buttons {
262 display: flex;
263 justify-content: flex-end;
264 gap: 10px;
265 margin-top: 15px;
266}
267
268.modal-buttons button {
269 padding: 8px 16px;
270 border: none;
271 border-radius: 6px;
272 font-weight: bold;
273 cursor: pointer;
274 font-size: 14px;
275}
276
277.modal-buttons button:first-child {
278 background-color: #d7a29e; /* 粉棕 */
279 color: white;
280}
281
282.modal-buttons button:last-child {
283 background-color: #c5b8af; /* 米色灰棕 */
284 color: white;
285}