22301009 | 5b28c67 | 2025-04-10 20:12:45 +0800 | [diff] [blame] | 1 | .main-page { |
| 2 | background-color: #5c3f31; |
| 3 | color: white; |
| 4 | } |
| 5 | |
| 6 | .header { |
| 7 | display: flex; |
| 8 | justify-content: space-between; |
| 9 | align-items: center; |
| 10 | padding: 10px; |
| 11 | } |
| 12 | |
| 13 | .logo-and-name { |
| 14 | display: flex; |
| 15 | align-items: center; |
| 16 | } |
| 17 | |
| 18 | .logo { |
| 19 | height: 30px; |
| 20 | margin-right: 10px; |
| 21 | } |
| 22 | |
| 23 | .site-name { |
| 24 | font-size: 24px; |
| 25 | } |
| 26 | |
| 27 | .user-and-message { |
| 28 | display: flex; |
| 29 | align-items: center; |
| 30 | } |
| 31 | |
| 32 | .user-avatar { |
| 33 | height: 40px; |
| 34 | margin-right: 10px; |
| 35 | } |
| 36 | |
| 37 | .message-center { |
| 38 | font-size: 16px; |
| 39 | } |
| 40 | |
| 41 | .nav { |
| 42 | background-color: #b38867; |
| 43 | display: flex; |
| 44 | justify-content: center; |
| 45 | } |
| 46 | |
| 47 | .nav-item { |
| 48 | color: white; |
| 49 | text-decoration: none; |
| 50 | padding: 10px 20px; |
| 51 | } |
| 52 | |
| 53 | .active { |
| 54 | background-color: #996633; |
| 55 | } |
| 56 | |
| 57 | /* 搜索、排序控件 */ |
| 58 | .controls { |
| 59 | display: flex; |
| 60 | justify-content: center; |
| 61 | gap: 16px; |
| 62 | padding: 10px 20px; |
| 63 | background-color: #704c3b; |
| 64 | } |
| 65 | |
| 66 | .search-input { |
| 67 | padding: 6px 10px; |
| 68 | border-radius: 6px; |
| 69 | border: none; |
| 70 | width: 200px; |
| 71 | } |
| 72 | |
| 73 | .sort-select { |
| 74 | padding: 6px; |
| 75 | border-radius: 6px; |
| 76 | border: none; |
| 77 | } |
| 78 | |
| 79 | /* 标签过滤 */ |
| 80 | .tag-filters { |
| 81 | display: flex; |
| 82 | justify-content: center; |
| 83 | flex-wrap: wrap; |
| 84 | gap: 8px; |
| 85 | padding: 10px; |
| 86 | } |
| 87 | |
| 88 | .tag-button { |
| 89 | background-color: #b38867; |
| 90 | color: white; |
| 91 | border: none; |
| 92 | border-radius: 20px; |
| 93 | padding: 6px 12px; |
| 94 | cursor: pointer; |
| 95 | } |
| 96 | |
| 97 | .active-tag { |
| 98 | background-color: #d17c4f; |
| 99 | } |
| 100 | |
| 101 | .clear-filter-btn { |
| 102 | background: transparent; |
| 103 | border: none; |
| 104 | color: #888; |
| 105 | font-size: 1rem; |
| 106 | cursor: pointer; |
| 107 | margin-left: 4px; |
| 108 | } |
| 109 | |
| 110 | .clear-filter-btn:hover { |
| 111 | color: red; |
| 112 | } |
| 113 | |
| 114 | /* 卡片展示 */ |
| 115 | .seed-list-content { |
| 116 | padding: 20px; |
| 117 | } |
| 118 | |
| 119 | .seed-cards { |
| 120 | display: grid; |
| 121 | grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); |
| 122 | gap: 20px; |
| 123 | padding: 20px 0; |
| 124 | } |
| 125 | |
| 126 | .seed-card { |
| 127 | background-color: #fff; |
| 128 | border-radius: 12px; |
| 129 | box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); |
| 130 | padding: 16px; |
| 131 | display: flex; |
| 132 | flex-direction: column; |
| 133 | justify-content: space-between; |
| 134 | color: #333; |
| 135 | transition: transform 0.2s ease; |
| 136 | } |
| 137 | |
| 138 | .seed-card:hover { |
| 139 | transform: translateY(-5px); |
| 140 | } |
| 141 | |
| 142 | .seed-card-header h3 { |
| 143 | font-size: 1.2rem; |
| 144 | margin-bottom: 10px; |
| 145 | color: #333; |
| 146 | word-break: break-word; |
| 147 | } |
| 148 | |
| 149 | .seed-card-body { |
| 150 | display: flex; |
| 151 | flex-direction: column; |
| 152 | } |
| 153 | |
| 154 | .seed-info { |
| 155 | display: flex; |
| 156 | justify-content: space-between; |
| 157 | font-size: 0.9rem; |
| 158 | color: #666; |
| 159 | margin-bottom: 8px; |
| 160 | } |
| 161 | |
| 162 | .seed-card-tags { |
| 163 | display: flex; |
| 164 | flex-wrap: wrap; |
| 165 | gap: 6px; |
| 166 | margin-top: 6px; |
| 167 | } |
| 168 | |
| 169 | .tag-label { |
| 170 | background-color: #f0f0f0; |
| 171 | color: #555; |
| 172 | padding: 4px 10px; |
| 173 | font-size: 0.75rem; |
| 174 | border-radius: 12px; |
| 175 | white-space: nowrap; |
| 176 | } |
| 177 | |
| 178 | .seed-card-actions { |
| 179 | display: flex; |
| 180 | justify-content: space-between; |
| 181 | gap: 10px; |
| 182 | margin-top: 12px; |
| 183 | } |
| 184 | |
| 185 | .btn-primary, |
| 186 | .btn-secondary, |
| 187 | .btn-outline { |
| 188 | padding: 6px 12px; |
| 189 | border: none; |
| 190 | border-radius: 6px; |
| 191 | cursor: pointer; |
| 192 | font-size: 0.9rem; |
| 193 | text-align: center; |
| 194 | white-space: nowrap; |
| 195 | transition: background-color 0.2s ease; |
| 196 | } |
| 197 | |
| 198 | .btn-primary { |
| 199 | background-color: #007bff; |
| 200 | color: white; |
| 201 | } |
| 202 | |
| 203 | .btn-primary:hover { |
| 204 | background-color: #0056b3; |
| 205 | } |
| 206 | |
| 207 | .btn-secondary { |
| 208 | background-color: #28a745; |
| 209 | color: white; |
| 210 | } |
| 211 | |
| 212 | .btn-secondary:hover { |
| 213 | background-color: #218838; |
| 214 | } |
| 215 | |
| 216 | .btn-outline { |
| 217 | background-color: transparent; |
| 218 | border: 1px solid #ccc; |
| 219 | color: #333; |
| 220 | } |
| 221 | |
| 222 | .btn-outline:hover { |
| 223 | background-color: #f8f9fa; |
| 224 | } |
| 225 | .seed-cover { |
| 226 | width: 100%; |
| 227 | height: 180px; |
| 228 | object-fit: cover; |
| 229 | border-radius: 8px; |
| 230 | margin-bottom: 12px; |
| 231 | } |