|
| 1 | +/* 让上传和导入按钮大小一致 */ |
| 2 | +.same-size-btn { |
| 3 | + min-width: 160px; |
| 4 | + height: 44px; |
| 5 | + box-sizing: border-box; |
| 6 | + font-size: 16px; |
| 7 | + padding: 0 20px; |
| 8 | + display: flex; |
| 9 | + align-items: center; |
| 10 | + justify-content: center; |
| 11 | + line-height: 1; |
| 12 | + vertical-align: middle; |
| 13 | +} |
| 14 | + |
| 15 | +.upload-step .upload-btn, |
| 16 | +.upload-step .import-btn { |
| 17 | + margin: 0; |
| 18 | +} |
| 19 | + |
| 20 | +.upload-step { |
| 21 | + /* 保证按钮容器本身是flex且垂直居中 */ |
| 22 | + /* 只影响上传区域的按钮,不影响其它地方 */ |
| 23 | +} |
1 | 24 | .difficulty-settings { |
2 | 25 | display: flex; |
3 | 26 | flex-direction: column; |
4 | 27 | gap: 32px; |
| 28 | + max-height: 100vh; |
| 29 | + overflow-y: auto; |
| 30 | + padding-top: 24px; |
| 31 | + box-sizing: border-box; |
| 32 | + width: 1100px; |
| 33 | + min-height: 800px; |
| 34 | + margin: 0 auto; |
5 | 35 | } |
6 | 36 |
|
7 | 37 | .settings-section { |
8 | 38 | background: white; |
9 | 39 | border-radius: 12px; |
10 | | - padding: 24px; |
| 40 | + padding: 8px 24px 24px 24px; |
11 | 41 | border: 1px solid #e5e7eb; |
12 | 42 | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); |
13 | 43 | } |
14 | 44 |
|
| 45 | +/* 单独放大“选择拼块形状”大框 */ |
| 46 | +.settings-section:nth-of-type(2) { |
| 47 | + padding: 32px 48px 36px 48px; |
| 48 | + margin-bottom: 44px; |
| 49 | +} |
| 50 | + |
15 | 51 | .settings-section h3 { |
16 | 52 | margin: 0 0 12px 0; |
17 | 53 | font-size: 24px; |
18 | 54 | color: #1f2937; |
19 | 55 | font-weight: 600; |
20 | | - padding-top: 8px; |
| 56 | + padding-top: 0; |
21 | 57 | } |
22 | 58 |
|
23 | 59 | .settings-section:first-of-type h3 { |
24 | | - padding-top: 40px; |
| 60 | + padding-top: 0; |
25 | 61 | } |
26 | 62 |
|
27 | 63 | .section-description { |
|
34 | 70 | /* Difficulty Grid */ |
35 | 71 | .difficulty-grid { |
36 | 72 | display: grid; |
37 | | - grid-template-columns: repeat(4, 1fr); |
| 73 | + grid-template-columns: repeat(5, 1fr); |
38 | 74 | gap: 16px; |
39 | 75 | } |
40 | 76 |
|
|
66 | 102 | box-shadow: 0 8px 24px color-mix(in srgb, var(--accent-color, #3b82f6) 20%, transparent); |
67 | 103 | } |
68 | 104 |
|
| 105 | +/* 自定义选项的特殊样式 */ |
| 106 | +.difficulty-card[style*="--accent-color: #8b5cf6"] { |
| 107 | + border: 2px solid #e5e7eb; |
| 108 | +} |
| 109 | + |
| 110 | +.difficulty-card[style*="--accent-color: #8b5cf6"].selected { |
| 111 | + border: 2px solid #8b5cf6; |
| 112 | + background: linear-gradient(135deg, |
| 113 | + color-mix(in srgb, #8b5cf6 15%, white), |
| 114 | + white |
| 115 | + ); |
| 116 | + box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2); |
| 117 | +} |
| 118 | + |
| 119 | +.difficulty-card[style*="--accent-color: #8b5cf6"]:hover { |
| 120 | + border-color: #7c3aed; |
| 121 | + transform: translateY(-2px); |
| 122 | + box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25); |
| 123 | +} |
| 124 | + |
69 | 125 | .card-header { |
70 | 126 | display: flex; |
71 | 127 | flex-direction: column; |
|
142 | 198 | font-weight: 500; |
143 | 199 | text-align: center; |
144 | 200 | transition: all 0.2s ease; |
| 201 | + margin-top: 8px; |
| 202 | + min-height: 24px; |
| 203 | + overflow: visible; |
145 | 204 | } |
146 | 205 |
|
147 | 206 | .selection-indicator:not(.active) { |
|
157 | 216 | /* Shape Grid */ |
158 | 217 | .shape-grid { |
159 | 218 | display: grid; |
160 | | - grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); |
| 219 | + grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); |
| 220 | + gap: 20px; |
| 221 | + margin-top: 16px; |
| 222 | +} |
| 223 | + |
| 224 | +.shape-grid-horizontal { |
| 225 | + display: flex; |
| 226 | + flex-direction: row; |
| 227 | + justify-content: space-between; |
161 | 228 | gap: 16px; |
162 | 229 | } |
163 | 230 |
|
| 231 | +.shape-grid-horizontal .shape-card { |
| 232 | + flex: 1 1 0; |
| 233 | + min-width: 0; |
| 234 | + max-width: 220px; |
| 235 | +} |
164 | 236 | .shape-card { |
165 | 237 | display: flex; |
166 | 238 | flex-direction: column; |
167 | | - padding: 20px; |
| 239 | + padding: 20px 12px 20px 12px; |
168 | 240 | border: 2px solid #e5e7eb; |
169 | 241 | border-radius: 12px; |
170 | 242 | background: white; |
171 | 243 | cursor: pointer; |
172 | 244 | transition: all 0.3s ease; |
173 | 245 | text-align: center; |
| 246 | + min-width: 0; |
| 247 | + min-height: 220px; |
| 248 | + box-sizing: border-box; |
| 249 | + overflow: visible; |
174 | 250 | } |
175 | 251 |
|
176 | 252 | .shape-card:hover:not(.coming-soon) { |
|
257 | 333 | flex: 1; |
258 | 334 | display: flex; |
259 | 335 | flex-direction: column; |
260 | | - gap: 12px; |
| 336 | + gap: 8px; |
| 337 | + margin-bottom: 16px; |
| 338 | + align-items: center; |
| 339 | + overflow: visible; |
261 | 340 | } |
262 | 341 |
|
263 | 342 | .shape-description { |
|
270 | 349 | .shape-meta { |
271 | 350 | display: flex; |
272 | 351 | justify-content: center; |
| 352 | + margin-top: 4px; |
| 353 | + margin-bottom: 0; |
273 | 354 | } |
274 | 355 |
|
275 | 356 | .difficulty-badge { |
|
312 | 393 |
|
313 | 394 | .summary-content { |
314 | 395 | display: grid; |
315 | | - grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); |
| 396 | + grid-template-columns: repeat(3, 1fr); |
316 | 397 | gap: 12px; |
317 | 398 | } |
318 | 399 |
|
319 | 400 | .summary-item { |
320 | 401 | display: flex; |
321 | | - justify-content: space-between; |
| 402 | + justify-content: flex-start; |
322 | 403 | align-items: center; |
323 | 404 | padding: 8px 0; |
| 405 | + gap: 12px; |
324 | 406 | } |
325 | 407 |
|
326 | 408 | .summary-label { |
|
379 | 461 | background: #f0f9ff; |
380 | 462 | border: 1px solid #bfdbfe; |
381 | 463 | border-radius: 12px; |
382 | | - padding: 20px; |
| 464 | + padding: 8px 20px 20px 20px; |
383 | 465 | } |
384 | 466 |
|
385 | 467 | .settings-tips h4 { |
|
409 | 491 | /* Responsive Design */ |
410 | 492 | @media (max-width: 1024px) { |
411 | 493 | .difficulty-grid { |
412 | | - grid-template-columns: repeat(2, 1fr); |
| 494 | + grid-template-columns: repeat(3, 1fr); |
413 | 495 | } |
414 | 496 |
|
415 | 497 | .shape-grid { |
|
451 | 533 |
|
452 | 534 | .stat-item { |
453 | 535 | flex-direction: row; |
| 536 | + .difficulty-grid { |
| 537 | + display: flex; |
| 538 | + flex-direction: row; |
| 539 | + justify-content: center; |
| 540 | + align-items: stretch; |
| 541 | + gap: 16px; |
| 542 | + margin: 0 auto 12px auto; |
| 543 | + width: 80%; |
| 544 | + max-width: 100px; |
| 545 | + } |
| 546 | + .difficulty-card { |
| 547 | + display: flex; |
| 548 | + flex-direction: column; |
| 549 | + padding: 12px 6px; |
| 550 | + border: 2px solid #e5e7eb; |
| 551 | + border-radius: 12px; |
| 552 | + background: white; |
| 553 | + cursor: pointer; |
| 554 | + transition: all 0.3s ease; |
| 555 | + text-align: center; |
| 556 | + min-height: 120px; |
| 557 | + width: 50px; |
| 558 | + max-width: 10vw; |
| 559 | + box-sizing: border-box; |
| 560 | + } |
454 | 561 | justify-content: space-between; |
455 | 562 | align-items: center; |
456 | 563 | } |
|
507 | 614 | .shape-card:nth-child(1) { animation-delay: 0.1s; } |
508 | 615 | .shape-card:nth-child(2) { animation-delay: 0.2s; } |
509 | 616 | .shape-card:nth-child(3) { animation-delay: 0.3s; } |
| 617 | + |
| 618 | +/* Custom shape section animations */ |
| 619 | +@keyframes fadeIn { |
| 620 | + from { |
| 621 | + opacity: 0; |
| 622 | + transform: translateY(10px); |
| 623 | + } |
| 624 | + to { |
| 625 | + opacity: 1; |
| 626 | + transform: translateY(0); |
| 627 | + } |
| 628 | +} |
| 629 | + |
| 630 | +.custom-shape-section { |
| 631 | + animation: fadeIn 0.3s ease-in-out; |
| 632 | + margin-top: 6px !important; |
| 633 | + padding: 6px !important; |
| 634 | +} |
0 commit comments