zhaoyumao | f8f8184 | 2025-06-09 00:00:46 +0800 | [diff] [blame^] | 1 | .homeContainer { |
| 2 | padding: 20px; |
| 3 | margin-top: 20px; |
| 4 | background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); |
| 5 | border-radius: 15px; |
| 6 | min-height: 100vh; |
| 7 | } |
| 8 | |
| 9 | .searchBarContainer { |
| 10 | display: flex; |
| 11 | justify-content: center; |
| 12 | position: fixed; |
| 13 | top: 60px; |
| 14 | left: 0; |
| 15 | right: 0; |
| 16 | /* z-index: 1000; */ |
| 17 | padding: 10px 0; |
| 18 | background: rgba(255, 255, 255, 0.05); |
| 19 | min-width: fit-content |
| 20 | } |
| 21 | |
| 22 | .searchInput { |
| 23 | width: 80%; |
| 24 | padding: 8px; |
| 25 | font-size: 18px; |
| 26 | max-width: 1000px; |
| 27 | border: 2px solid #333; |
| 28 | border-radius: 8px; |
| 29 | background: rgba(255, 255, 255, 0.1); |
| 30 | color: white; |
| 31 | backdrop-filter: blur(5px); |
| 32 | } |
| 33 | |
| 34 | .searchInput:focus { |
| 35 | outline: none; |
| 36 | border: 2px solid #666; |
| 37 | /* 灰色高亮边框 */ |
| 38 | } |
| 39 | |
| 40 | |
| 41 | .secondRow { |
| 42 | display: flex; |
| 43 | justify-content: space-between; |
| 44 | margin-bottom: 20px; |
| 45 | } |
| 46 | |
| 47 | .leftBox { |
| 48 | margin-left: 20px; |
| 49 | flex: 1; |
| 50 | padding: 20px; |
| 51 | background: rgba(255, 255, 255, 0.05); |
| 52 | border-radius: 12px; |
| 53 | display: flex; |
| 54 | align-items: center; |
| 55 | justify-content: space-between; |
| 56 | backdrop-filter: blur(5px); |
| 57 | border: 1px solid rgba(255, 255, 255, 0.1); |
| 58 | max-width: 500px; |
| 59 | min-width: 500px; |
| 60 | gap: 15px; |
| 61 | } |
| 62 | |
| 63 | .rightCard { |
| 64 | flex: 1; |
| 65 | padding: 20px; |
| 66 | background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.8)); |
| 67 | /* 星空渐变背景 */ |
| 68 | border-radius: 12px; |
| 69 | display: flex; |
| 70 | flex-direction: column; |
| 71 | justify-content: space-between; |
| 72 | backdrop-filter: blur(10px); |
| 73 | border: 1px solid rgba(255, 255, 255, 0.1); |
| 74 | max-width: 350px; |
| 75 | margin-left: 20px; |
| 76 | height: 200px; |
| 77 | } |
| 78 | |
| 79 | .rightCard2 { |
| 80 | flex: 1; |
| 81 | padding: 10px; |
| 82 | background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.8)); |
| 83 | /* 星空渐变背景 */ |
| 84 | border-radius: 12px; |
| 85 | display: flex; |
| 86 | flex-direction: column; |
| 87 | justify-content: space-between; |
| 88 | backdrop-filter: blur(10px); |
| 89 | border: 1px solid rgba(255, 255, 255, 0.1); |
| 90 | max-width: 200px; |
| 91 | width: 100px; |
| 92 | margin-left: 20px; |
| 93 | height: 200px; |
| 94 | } |
| 95 | |
| 96 | /* 覆盖Ant Design Card默认样式 */ |
| 97 | .rightCard .ant-card { |
| 98 | background: transparent; |
| 99 | border-radius: 12px; |
| 100 | } |
| 101 | |
| 102 | .rightCard .ant-card-head { |
| 103 | border-bottom: 1px solid rgba(255, 255, 255, 0.1); |
| 104 | } |
| 105 | |
| 106 | .rightCard .ant-card-head-title { |
| 107 | color: #fff; |
| 108 | font-size: 16px; |
| 109 | } |
| 110 | |
| 111 | /* 覆盖Statistic组件样式 */ |
| 112 | .rightCard .ant-statistic-title { |
| 113 | color: #a8b2d1; |
| 114 | font-size: 12px; |
| 115 | } |
| 116 | |
| 117 | .rightCard .ant-statistic-content-value { |
| 118 | color: #fff; |
| 119 | font-size: 16px; |
| 120 | font-weight: 600; |
| 121 | } |
| 122 | |
| 123 | /* 覆盖Button组件样式 */ |
| 124 | .rightCard .ant-btn { |
| 125 | padding: 10px; |
| 126 | background: linear-gradient(135deg, #4a69bd, #6c5ce7); |
| 127 | border: none; |
| 128 | border-radius: 8px; |
| 129 | color: white; |
| 130 | font-size: 14px; |
| 131 | transition: transform 0.2s; |
| 132 | } |
| 133 | |
| 134 | .rightCard .ant-btn:hover { |
| 135 | transform: translateY(-2px); |
| 136 | background: linear-gradient(135deg, #3c56a8, #5b4ac7); |
| 137 | color: white; |
| 138 | } |
| 139 | |
| 140 | .rightCard .ant-btn-primary { |
| 141 | background: linear-gradient(135deg, #6c5ce7, #4a69bd); |
| 142 | /* 主按钮颜色调整 */ |
| 143 | } |
| 144 | |
| 145 | .statsContainer { |
| 146 | display: flex; |
| 147 | justify-content: space-between; |
| 148 | gap: 10px; |
| 149 | margin-bottom: 15px; |
| 150 | } |
| 151 | |
| 152 | .statItem { |
| 153 | flex: 1; |
| 154 | padding: 12px; |
| 155 | background: rgba(255, 255, 255, 0.03); |
| 156 | border-radius: 8px; |
| 157 | text-align: center; |
| 158 | } |
| 159 | |
| 160 | .statTitle { |
| 161 | font-size: 12px; |
| 162 | color: #a8b2d1; |
| 163 | margin-bottom: 4px; |
| 164 | } |
| 165 | |
| 166 | .statValue { |
| 167 | font-size: 16px; |
| 168 | color: #fff; |
| 169 | font-weight: 600; |
| 170 | } |
| 171 | |
| 172 | .buttonGroup { |
| 173 | display: flex; |
| 174 | flex-direction: column; |
| 175 | gap: 10px; |
| 176 | } |
| 177 | |
| 178 | .actionButton { |
| 179 | padding: 10px; |
| 180 | background: linear-gradient(135deg, #4a69bd, #6c5ce7); |
| 181 | /* 星空蓝紫色渐变 */ |
| 182 | border: none; |
| 183 | border-radius: 8px; |
| 184 | color: white; |
| 185 | font-size: 14px; |
| 186 | cursor: pointer; |
| 187 | transition: transform 0.2s; |
| 188 | } |
| 189 | |
| 190 | .actionButton:hover { |
| 191 | transform: translateY(-2px); |
| 192 | background: linear-gradient(135deg, #3c56a8, #5b4ac7); |
| 193 | } |
| 194 | |
| 195 | .textContent { |
| 196 | display: flex; |
| 197 | |
| 198 | flex-direction: column; |
| 199 | /* 垂直排列 */ |
| 200 | width: min-content; |
| 201 | } |
| 202 | |
| 203 | .titlebox { |
| 204 | width: 220px; |
| 205 | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; |
| 206 | } |
| 207 | |
| 208 | .middleBox { |
| 209 | margin-left: 20px; |
| 210 | flex: 1; |
| 211 | padding: 20px; |
| 212 | background: rgba(255, 255, 255, 0.05); |
| 213 | border-radius: 12px; |
| 214 | display: flex; |
| 215 | align-items: center; |
| 216 | backdrop-filter: blur(5px); |
| 217 | border: 1px solid rgba(255, 255, 255, 0.1); |
| 218 | max-width: 350px; |
| 219 | } |
| 220 | |
| 221 | .gitAnimation { |
| 222 | height: 150px; |
| 223 | min-width: 150px; |
| 224 | /* 固定动图区域宽度 */ |
| 225 | /* 保持正方形 */ |
| 226 | width: 150px; |
| 227 | min-width: 150px; |
| 228 | border-radius: 8px; |
| 229 | /* 移除背景色,使用实际图片 */ |
| 230 | } |
| 231 | |
| 232 | .gitSquare { |
| 233 | width: 100%; |
| 234 | /* 完全填充容器 */ |
| 235 | height: 100%; |
| 236 | object-fit: cover; |
| 237 | /* 保持宽高比填充 */ |
| 238 | border-radius: 8px; |
| 239 | min-width: 60px; |
| 240 | min-height: 60px; |
| 241 | } |
| 242 | |
| 243 | .rightBox { |
| 244 | flex: 1; |
| 245 | padding: 20px; |
| 246 | background: rgba(255, 255, 255, 0.05); |
| 247 | border-radius: 12px; |
| 248 | margin-left: 20px; |
| 249 | backdrop-filter: blur(5px); |
| 250 | border: 1px solid rgba(255, 255, 255, 0.1); |
| 251 | } |
| 252 | |
| 253 | .carouselContainer { |
| 254 | overflow: hidden; |
| 255 | position: relative; |
| 256 | } |
| 257 | |
| 258 | .carouselItem { |
| 259 | padding: 10px 0; |
| 260 | } |
| 261 | |
| 262 | .thirdRow { |
| 263 | display: grid; |
| 264 | grid-template-columns: repeat(4, 1fr); |
| 265 | gap: 24px; |
| 266 | margin-top: 32px; |
| 267 | } |
| 268 | |
| 269 | .postCard { |
| 270 | background: rgba(255, 255, 255, 0.05); |
| 271 | border-radius: 16px; |
| 272 | backdrop-filter: blur(8px); |
| 273 | border: 1px solid rgba(255, 255, 255, 0.1); |
| 274 | transition: all 0.3s ease; |
| 275 | padding: 16px; |
| 276 | min-width: 280px; |
| 277 | max-width: 320px; |
| 278 | display: flex; |
| 279 | flex-direction: column; |
| 280 | min-height: 200px; |
| 281 | } |
| 282 | |
| 283 | .cardContent { |
| 284 | display: flex; |
| 285 | flex-direction: column; |
| 286 | gap: 12px; |
| 287 | width: 100%; |
| 288 | } |
| 289 | |
| 290 | .postCard:hover { |
| 291 | transform: translateY(-4px); |
| 292 | box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); |
| 293 | } |
| 294 | |
| 295 | .cardContent { |
| 296 | display: flex; |
| 297 | gap: 16px; |
| 298 | width: 100%; |
| 299 | } |
| 300 | |
| 301 | .cardImage { |
| 302 | width: 120px; |
| 303 | height: 90px; |
| 304 | object-fit: cover; |
| 305 | border-radius: 8px; |
| 306 | background: #f0f0f0; |
| 307 | } |
| 308 | |
| 309 | .infoWrapper { |
| 310 | flex: 1; |
| 311 | display: flex; |
| 312 | flex-direction: column; |
| 313 | gap: 8px; |
| 314 | } |
| 315 | |
| 316 | .postTitle { |
| 317 | font-size: 14px; |
| 318 | font-weight: 500; |
| 319 | color: white; |
| 320 | white-space: nowrap; |
| 321 | overflow: hidden; |
| 322 | text-overflow: ellipsis; |
| 323 | margin: 0; |
| 324 | } |
| 325 | |
| 326 | .postAuthor { |
| 327 | font-size: 12px; |
| 328 | color: #ddd; |
| 329 | margin: 0; |
| 330 | } |
| 331 | |
| 332 | .tagsContainer { |
| 333 | display: flex; |
| 334 | gap: 8px; |
| 335 | flex-wrap: wrap; |
| 336 | margin: 4px 0; |
| 337 | } |
| 338 | |
| 339 | .tag { |
| 340 | font-size: 11px; |
| 341 | padding: 2px 8px; |
| 342 | background: rgba(255, 255, 255, 0.1); |
| 343 | border-radius: 12px; |
| 344 | color: #eee; |
| 345 | } |
| 346 | |
| 347 | .statsContainer { |
| 348 | display: flex; |
| 349 | gap: 16px; |
| 350 | margin-top: auto; |
| 351 | } |
| 352 | |
| 353 | .statItem { |
| 354 | display: flex; |
| 355 | align-items: center; |
| 356 | gap: 4px; |
| 357 | font-size: 12px; |
| 358 | color: #bbb; |
| 359 | } |