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