ym923 | f0485a5 | 2025-06-09 20:18:10 +0800 | [diff] [blame] | 1 | /* 容器和布局 */ |
| 2 | .request-container { |
| 3 | max-width: 1200px; |
| 4 | margin: 0 auto; |
| 5 | padding: 20px; |
| 6 | } |
| 7 | |
| 8 | .request-header { |
| 9 | margin-bottom: 30px; |
| 10 | border-bottom: 1px solid #f0f0f0; |
| 11 | padding-bottom: 20px; |
| 12 | } |
| 13 | |
| 14 | .request-search { |
| 15 | background-color: #fff8f0; |
| 16 | border-radius: 10px; |
| 17 | padding: 20px; |
| 18 | margin-bottom: 30px; |
| 19 | box-shadow: 0 4px 12px rgba(255, 102, 0, 0.1); |
| 20 | } |
| 21 | |
| 22 | .request-money-total { |
| 23 | background-color: #fff1e6; |
| 24 | border-radius: 8px; |
| 25 | padding: 10px 15px; |
| 26 | display: inline-block; |
| 27 | font-size: 16px; |
| 28 | } |
| 29 | |
| 30 | /* 卡片样式 */ |
| 31 | .request-card { |
| 32 | background-color: white; |
| 33 | border-radius: 12px; |
| 34 | padding: 20px; |
| 35 | margin-bottom: 20px; |
| 36 | box-shadow: 0 4px 15px rgba(255, 102, 0, 0.08); |
| 37 | transition: all 0.3s ease; |
| 38 | border: 1px solid #ffe8d6; |
| 39 | } |
| 40 | |
| 41 | .request-card:hover { |
| 42 | transform: translateY(-5px); |
| 43 | box-shadow: 0 10px 25px rgba(255, 102, 0, 0.15); |
| 44 | } |
| 45 | |
| 46 | .request-card-title { |
| 47 | font-size: 18px; |
| 48 | font-weight: 700; |
| 49 | color: #d15700; |
| 50 | margin-bottom: 8px; |
| 51 | } |
| 52 | |
| 53 | .request-card-money { |
| 54 | font-size: 20px; |
| 55 | font-weight: 800; |
| 56 | color: #ff5722; |
| 57 | letter-spacing: 0.5px; |
| 58 | } |
| 59 | |
| 60 | .request-card-content { |
| 61 | color: #555; |
| 62 | line-height: 1.6; |
| 63 | margin: 15px 0; |
| 64 | padding: 15px; |
| 65 | background-color: #f9f9f9; |
| 66 | border-radius: 8px; |
| 67 | border-left: 4px solid #ffaa33; |
| 68 | } |
| 69 | |
| 70 | .request-card-meta { |
| 71 | display: flex; |
| 72 | flex-wrap: wrap; |
| 73 | gap: 15px; |
| 74 | margin: 15px 0; |
| 75 | padding: 10px 0; |
| 76 | border-top: 1px dashed #ffe0b3; |
| 77 | border-bottom: 1px dashed #ffe0b3; |
| 78 | font-size: 14px; |
| 79 | } |
| 80 | |
| 81 | .request-meta-item { |
| 82 | display: flex; |
| 83 | align-items: center; |
| 84 | gap: 5px; |
| 85 | } |
| 86 | |
| 87 | .request-meta-label { |
| 88 | font-weight: 600; |
| 89 | color: #ff8d00; |
| 90 | } |
| 91 | |
| 92 | .request-card-image-container { |
| 93 | margin: 15px 0; |
| 94 | } |
| 95 | |
| 96 | .request-card-image { |
| 97 | max-width: 300px; |
| 98 | border-radius: 8px; |
| 99 | border: 1px solid #ffd8b3; |
| 100 | box-shadow: 0 4px 8px rgba(255, 140, 0, 0.15); |
| 101 | } |
| 102 | |
| 103 | /* 用户信息 - 重点修改 */ |
| 104 | .request-user-info-container { |
| 105 | display: flex; |
| 106 | flex-direction: column; |
| 107 | gap: 8px; |
| 108 | padding: 10px; |
| 109 | background-color: #fffaf0; |
| 110 | border-radius: 10px; |
| 111 | box-shadow: 0 2px 8px rgba(255, 140, 0, 0.1); |
| 112 | min-width: 140px; |
| 113 | } |
| 114 | |
| 115 | .request-user-divider { |
| 116 | height: 1px; |
| 117 | width: 100%; |
| 118 | background-color: #ffd8b3; |
| 119 | margin: 4px 0; |
| 120 | } |
| 121 | |
| 122 | .request-user-info { |
| 123 | padding: 5px; |
| 124 | } |
| 125 | |
| 126 | .request-user-details { |
| 127 | min-width: 60px; |
| 128 | overflow: hidden; |
| 129 | } |
| 130 | |
| 131 | /* 按钮样式 */ |
| 132 | .request-button { |
| 133 | padding: 10px 16px; |
| 134 | border: none; |
| 135 | border-radius: 8px; |
| 136 | font-weight: 600; |
| 137 | cursor: pointer; |
| 138 | transition: all 0.3s ease; |
| 139 | display: inline-flex; |
| 140 | align-items: center; |
| 141 | justify-content: center; |
| 142 | font-size: 14px; |
| 143 | } |
| 144 | |
| 145 | .request-button:hover { |
| 146 | transform: translateY(-2px); |
| 147 | } |
| 148 | |
| 149 | .request-button-back { |
| 150 | background-color: #f5f5f5; |
| 151 | color: #666; |
| 152 | } |
| 153 | |
| 154 | .request-button-back:hover { |
| 155 | background-color: #e0e0e0; |
| 156 | } |
| 157 | |
| 158 | .request-button-create { |
| 159 | background: linear-gradient(135deg, #ffa500, #ff7043); |
| 160 | color: white; |
| 161 | box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3); |
| 162 | } |
| 163 | |
| 164 | .request-button-create:hover { |
| 165 | background: linear-gradient(135deg, #ff8c00, #ff5722); |
| 166 | box-shadow: 0 6px 14px rgba(255, 140, 0, 0.4); |
| 167 | } |
| 168 | |
| 169 | .request-button-search { |
| 170 | background: linear-gradient(135deg, #4db6ac, #26a69a); |
| 171 | color: white; |
| 172 | box-shadow: 0 4px 10px rgba(77, 182, 172, 0.3); |
| 173 | } |
| 174 | |
| 175 | .request-button-search:hover { |
| 176 | background: linear-gradient(135deg, #26a69a, #00897b); |
| 177 | } |
| 178 | |
| 179 | .request-button-submit { |
| 180 | background: linear-gradient(135deg, #ffa726, #fb8c00); |
| 181 | color: white; |
| 182 | padding: 12px 30px; |
| 183 | font-size: 16px; |
| 184 | box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4); |
| 185 | } |
| 186 | |
| 187 | .request-button-submit:hover { |
| 188 | background: linear-gradient(135deg, #fb8c00, #f57c00); |
| 189 | } |
| 190 | |
| 191 | .request-button-takeover { |
| 192 | background: linear-gradient(135deg, #42a5f5, #1e88e5); |
| 193 | color: white; |
| 194 | box-shadow: 0 4px 10px rgba(66, 165, 245, 0.3); |
| 195 | width: 100%; |
| 196 | font-size: 13px; |
| 197 | padding: 8px 12px; |
| 198 | } |
| 199 | |
| 200 | .request-button-takeover:hover { |
| 201 | background: linear-gradient(135deg, #1e88e5, #1565c0); |
| 202 | } |
| 203 | |
| 204 | .request-button-delete { |
| 205 | background: linear-gradient(135deg, #ef5350, #e53935); |
| 206 | color: white; |
| 207 | box-shadow: 0 4px 10px rgba(239, 83, 80, 0.3); |
| 208 | font-size: 13px; |
| 209 | padding: 8px 12px; |
| 210 | } |
| 211 | |
| 212 | .request-button-delete:hover { |
| 213 | background: linear-gradient(135deg, #e53935, #c62828); |
| 214 | } |
| 215 | |
| 216 | /* 标签页 */ |
| 217 | .request-tab { |
| 218 | padding: 8px 16px; |
| 219 | border-radius: 20px; |
| 220 | background-color: #f1f1f1; |
| 221 | border: 1px solid #e0e0e0; |
| 222 | font-weight: 600; |
| 223 | color: #666; |
| 224 | cursor: pointer; |
| 225 | transition: all 0.3s ease; |
| 226 | font-size: 13px; |
| 227 | } |
| 228 | |
| 229 | .request-tab-active { |
| 230 | background: linear-gradient(135deg, #ffb74d, #ff9800); |
| 231 | color: white; |
| 232 | border-color: #ff9800; |
| 233 | box-shadow: 0 4px 8px rgba(255, 152, 0, 0.2); |
| 234 | } |
| 235 | |
| 236 | /* 表单元素 */ |
| 237 | .request-form { |
| 238 | background-color: #fffaf5; |
| 239 | border-radius: 12px; |
| 240 | padding: 25px; |
| 241 | box-shadow: 0 5px 15px rgba(255, 140, 0, 0.1); |
| 242 | margin-top: 20px; |
| 243 | } |
| 244 | |
| 245 | .request-label { |
| 246 | display: block; |
| 247 | margin-bottom: 8px; |
| 248 | font-weight: 600; |
| 249 | color: #ff8d00; |
| 250 | font-size: 14px; |
| 251 | } |
| 252 | |
| 253 | .request-input { |
| 254 | width: 100%; |
| 255 | padding: 10px 12px; |
| 256 | border: 1px solid #ffd8b3; |
| 257 | border-radius: 8px; |
| 258 | font-size: 14px; |
| 259 | transition: all 0.3s ease; |
| 260 | background-color: #fffdfa; |
| 261 | } |
| 262 | |
| 263 | .request-input:focus { |
| 264 | outline: none; |
| 265 | border-color: #ffaa33; |
| 266 | box-shadow: 0 0 0 3px rgba(255, 170, 51, 0.2); |
| 267 | } |
| 268 | |
| 269 | .request-textarea { |
| 270 | width: 100%; |
| 271 | padding: 12px 15px; |
| 272 | border: 1px solid #ffd8b3; |
| 273 | border-radius: 8px; |
| 274 | min-height: 120px; |
| 275 | resize: vertical; |
| 276 | font-size: 14px; |
| 277 | background-color: #fffdfa; |
| 278 | } |
| 279 | |
| 280 | .request-textarea:focus { |
| 281 | outline: none; |
| 282 | border-color: #ffaa33; |
| 283 | box-shadow: 0 0 0 3px rgba(255, 170, 51, 0.2); |
| 284 | } |
| 285 | |
| 286 | .request-file { |
| 287 | width: 100%; |
| 288 | padding: 10px; |
| 289 | background: #f9f9f9; |
| 290 | border-radius: 8px; |
| 291 | font-size: 13px; |
| 292 | } |
| 293 | |
| 294 | /* 空状态 */ |
| 295 | .request-empty { |
| 296 | text-align: center; |
| 297 | padding: 50px 20px; |
| 298 | background-color: white; |
| 299 | border-radius: 12px; |
| 300 | box-shadow: 0 4px 15px rgba(255, 102, 0, 0.08); |
| 301 | } |
| 302 | |
| 303 | .request-empty-icon { |
| 304 | font-size: 48px; |
| 305 | color: #ffc107; |
| 306 | margin-bottom: 20px; |
| 307 | } |
| 308 | |
| 309 | .request-empty-text { |
| 310 | font-size: 18px; |
| 311 | color: #ff8d00; |
| 312 | font-weight: 500; |
| 313 | } |
| 314 | |
| 315 | /* 响应式调整 */ |
| 316 | @media (max-width: 768px) { |
| 317 | .request-container { |
| 318 | padding: 15px; |
| 319 | } |
| 320 | |
| 321 | .request-card { |
| 322 | padding: 15px; |
| 323 | } |
| 324 | |
| 325 | .request-header { |
| 326 | margin-bottom: 20px; |
| 327 | } |
| 328 | |
| 329 | .request-card-title { |
| 330 | font-size: 16px; |
| 331 | } |
| 332 | |
| 333 | .request-card-money { |
| 334 | font-size: 18px; |
| 335 | } |
| 336 | |
| 337 | .request-user-info-container { |
| 338 | flex-direction: row; |
| 339 | flex-wrap: wrap; |
| 340 | gap: 10px; |
| 341 | min-width: 100%; |
| 342 | margin-top: 10px; |
| 343 | } |
| 344 | |
| 345 | .request-user-info { |
| 346 | flex: 1; |
| 347 | min-width: 130px; |
| 348 | } |
| 349 | |
| 350 | .request-user-divider { |
| 351 | display: none; |
| 352 | } |
| 353 | |
| 354 | .request-card-actions { |
| 355 | flex-direction: column; |
| 356 | gap: 10px; |
| 357 | } |
| 358 | |
| 359 | .request-button { |
| 360 | padding: 8px 12px; |
| 361 | font-size: 12px; |
| 362 | } |
| 363 | |
| 364 | .request-button-takeover, |
| 365 | .request-button-delete { |
| 366 | font-size: 12px; |
| 367 | } |
| 368 | |
| 369 | /* 在您的CSS文件中添加以下样式 */ |
| 370 | @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); |
| 371 | |
| 372 | body { |
| 373 | font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; |
| 374 | background-color: #fffaf5; |
| 375 | } |
| 376 | |
| 377 | /* 全局动画效果 */ |
| 378 | .transition { |
| 379 | transition: all 0.3s ease; |
| 380 | } |
| 381 | |
| 382 | /* 卡片阴影效果 */ |
| 383 | .shadow-lg { |
| 384 | box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); |
| 385 | } |
| 386 | |
| 387 | .shadow-md { |
| 388 | box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); |
| 389 | } |
| 390 | |
| 391 | /* 圆角 */ |
| 392 | .rounded-xl { |
| 393 | border-radius: 1rem; |
| 394 | } |
| 395 | |
| 396 | .rounded-lg { |
| 397 | border-radius: 0.75rem; |
| 398 | } |
| 399 | |
| 400 | /* 渐变背景 */ |
| 401 | .bg-gradient-to-r { |
| 402 | background-size: 200% auto; |
| 403 | transition: background-position 0.5s ease; |
| 404 | } |
| 405 | |
| 406 | .bg-gradient-to-r:hover { |
| 407 | background-position: right center; |
| 408 | } |
| 409 | |
| 410 | /* 表单输入框动画 */ |
| 411 | input:focus, |
| 412 | textarea:focus { |
| 413 | transform: translateY(-1px); |
| 414 | } |
| 415 | |
| 416 | /* 卡片悬停效果 */ |
| 417 | .bg-white:hover { |
| 418 | transform: translateY(-3px); |
| 419 | } |
| 420 | |
| 421 | /* 响应式调整 */ |
| 422 | @media (max-width: 768px) { |
| 423 | .text-xl { |
| 424 | font-size: 1.25rem; |
| 425 | } |
| 426 | |
| 427 | .text-2xl { |
| 428 | font-size: 1.5rem; |
| 429 | } |
| 430 | |
| 431 | .p-6 { |
| 432 | padding: 1.25rem; |
| 433 | } |
| 434 | |
| 435 | .p-12 { |
| 436 | padding: 2rem; |
| 437 | } |
| 438 | |
| 439 | .grid-cols-2 { |
| 440 | grid-template-columns: 1fr; |
| 441 | } |
| 442 | } |
| 443 | } |