blob: 724411c00a7755c4774644906c6576dd6756886c [file] [log] [blame]
Krishya25590de2025-04-21 19:03:49 +08001
2 .main-page {
Krishyac0f7e9b2025-04-22 15:28:28 +08003 background-color: #5F4437;
Krishya25590de2025-04-21 19:03:49 +08004 color: white;
5 }
6
7 /* 搜索、排序控件 */
8 .controls {
9 display: flex;
10 justify-content: center;
11 gap: 16px;
12 padding: 10px 20px;
Krishyac0f7e9b2025-04-22 15:28:28 +080013 background-color: #5F4437;
Krishya25590de2025-04-21 19:03:49 +080014 }
15
16 .search-input {
17 padding: 6px 10px;
18 border-radius: 6px;
19 border: none;
20 width: 200px;
21 }
22
23 .sort-select {
24 padding: 6px;
25 border-radius: 6px;
26 border: none;
27 }
28
29 /* 标签过滤 */
30 .tag-filters {
Krishyac0f7e9b2025-04-22 15:28:28 +080031 background-color: #5F4437;
Krishya25590de2025-04-21 19:03:49 +080032 display: flex;
33 justify-content: center;
34 flex-wrap: wrap;
35 gap: 8px;
36 padding: 10px;
37 }
38
39 .tag-button {
40 background-color: #b38867;
41 color: white;
42 border: none;
43 border-radius: 20px;
44 padding: 6px 12px;
45 cursor: pointer;
46 }
47
48 .active-tag {
49 background-color: #d17c4f;
50 }
51
52 .clear-filter-btn {
53 background: transparent;
54 border: none;
55 color: #888;
56 font-size: 1rem;
57 cursor: pointer;
58 margin-left: 4px;
59 }
60
61 /* 去除 Link 组件默认的下划线和文字颜色变化 */
62 .seed-item-link {
63 text-decoration: none;
64 color: inherit;
65 display: block; /* 确保整个卡片可点击 */
66 }
67
68 .clear-filter-btn:hover {
69 color: red;
70 }
71
72 /* 卡片展示 */
73 .seed-list-content {
74 padding: 20px;
Krishyac0f7e9b2025-04-22 15:28:28 +080075 background-color: #5F4437;
Krishya25590de2025-04-21 19:03:49 +080076 }
77
78 .seed-list-card {
79 background-color: #e9ded2;
80 color: #333;
81 border-radius: 8px;
82 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
83 overflow: hidden;
84 }
85
86 .seed-list-header {
87 display: grid;
88 grid-template-columns: 180px 2fr 1fr 1fr 1fr 1fr;
89 align-items: center;
90 justify-items: center; /* 新增:水平居中 */
91 padding: 12px 16px;
92 background-color: #BA929A;
93 font-weight: bold;
94 }
95
96 .seed-list-body {
97 display: flex;
98 flex-direction: column;
99 }
100
101 .seed-item {
102 display: grid;
103 grid-template-columns: 180px 2fr 1fr 1fr 1fr 1fr;
104 align-items: center;
105 justify-items: center; /* 新增:水平居中 */
106 padding: 12px 16px;
107 border-top: 1px solid #ccc;
108 }
109
110 .seed-item-cover {
111 margin-left: -50px;
112 width: 100px;
113 height: 140px;
114 object-fit: cover;
115 border-radius: 6px;
116 flex-shrink: 0;
117 }
118
119 .seed-item-title {
120 width: 100%;
121 margin-left: -100px;
122 text-align: center;
123 }
124
125 .seed-title-row {
126 display: flex;
127 flex-direction: column;
128 align-items: center; /* 新增:垂直居中 */
129 gap: 8px;
130 }
131
132 .seed-title {
133 font-size: 1.1rem;
134 margin: 0;
135 font-weight: bold;
136 }
137
138 .seed-tags {
139 margin-top: 4px;
140 display: flex;
141 flex-wrap: wrap;
142 gap: 4px;
143 justify-content: center; /* 标签水平居中 */
144 max-width: 100%; /* 限制最大宽度以触发换行 */
145 word-break: break-word; /* 避免长标签溢出 */
146 }
147
148
149 .seed-item-actions {
150 display: flex;
151 flex-direction: row;
152 gap: 8px;
153 justify-content: center; /* 新增:操作按钮水平居中 */
154 }
155
156 .seed-header-cover {
157 width: 180px;
158 flex-shrink: 0;
159 text-align: center;
160 }
161
162 .seed-header-title {
163 margin-left: -100px;
164 }
223010095b28c672025-04-10 20:12:45 +0800165
Krishya25590de2025-04-21 19:03:49 +0800166 .seed-header-size,
167 .seed-header-upload-time,
168 .seed-header-downloads,
169 .seed-header-actions {
170 text-align: center; /* 新增:文字居中 */
171 }
172
173 .seed-info {
174 display: flex;
175 justify-content: space-between;
176 font-size: 0.9rem;
177 color: #666;
178 margin-bottom: 8px;
179 }
180
181 .tag-label {
182 background-color: #eee;
183 border-radius: 4px;
184 padding: 2px 6px;
185 font-size: 12px;
186 }
187
188 .btn-primary,
189 .btn-secondary,
190 .btn-outline {
191 padding: 6px 12px;
192 border: none;
193 border-radius: 6px;
194 cursor: pointer;
195 font-size: 0.9rem;
196 text-align: center;
197 white-space: nowrap;
198 transition: background-color 0.2s ease;
199 }
200
201 .btn-primary {
202 background-color: #007bff;
203 color: white;
204 }
205
206 .btn-primary:hover {
207 background-color: #0056b3;
208 }
209
210 .btn-secondary {
211 background-color: #28a745;
212 color: white;
213 }
214
215 .btn-secondary:hover {
216 background-color: #218838;
217 }
218
219 .btn-outline {
220 background-color: transparent;
221 border: 1px solid #ccc;
222 color: #333;
223 }
224
225 .btn-outline:hover {
226 background-color: #f8f9fa;
227 }
228 .seed-cover {
229 width: 100%;
230 height: 180px;
231 object-fit: cover;
232 border-radius: 8px;
233 margin-bottom: 12px;
234 }
235 .friend-moments {
Krishyac0f7e9b2025-04-22 15:28:28 +0800236 background-color: #5F4437;
Krishya25590de2025-04-21 19:03:49 +0800237 color: white;
238 }
239