File size: 17,991 Bytes
a1ec94c
2319370
a1ec94c
2319370
7a7cc79
 
 
 
 
 
203d2e4
2319370
a1ec94c
 
 
67ba3ec
 
e95893b
7b89140
7a7cc79
 
a1ec94c
2319370
a1ec94c
7a7cc79
 
 
 
272839f
 
01873c8
7a7cc79
 
a1ec94c
 
 
 
 
2319370
 
c2421cf
a1ec94c
2319370
a1ec94c
7a7cc79
 
2319370
01873c8
 
272839f
2319370
7a7cc79
 
6c37665
dad383c
 
 
 
 
 
4d1a242
7a7cc79
 
7eb4f12
1773d65
 
a742b0a
2f077ed
 
272839f
1773d65
98b1025
 
 
 
4c45fcc
7ae46f3
7ce2e3f
 
 
 
d5d2bd7
7ce2e3f
7ae46f3
 
7ce2e3f
2319370
455252e
7ce2e3f
 
 
bdbfb6c
7ce2e3f
 
2319370
4c45fcc
272839f
4c45fcc
7ce2e3f
 
4c45fcc
 
98b1025
 
a742b0a
2319370
a742b0a
272839f
2319370
 
 
 
 
 
 
d5d2bd7
2319370
 
 
 
e95893b
 
4c45fcc
e95893b
bb44964
 
2319370
4c45fcc
d5d2bd7
0e96ed1
203d2e4
e95893b
4c45fcc
272839f
 
 
 
 
 
9fa144d
4c45fcc
 
 
 
18be65b
4c45fcc
 
 
98b1025
 
d5d2bd7
4c45fcc
 
 
 
a15cfd6
4c45fcc
 
 
a742b0a
272839f
 
 
 
 
 
4c45fcc
 
 
e95893b
98b1025
4c45fcc
272839f
4c45fcc
d5d2bd7
4c45fcc
 
a4b3438
 
a15cfd6
e95893b
4c45fcc
 
 
d5d2bd7
272839f
4c45fcc
 
272839f
2319370
 
ffa26f6
e95893b
4c45fcc
 
d5d2bd7
272839f
4c45fcc
 
 
 
 
 
 
d5d2bd7
70976b2
682b717
 
 
 
 
 
 
70976b2
 
 
d5d2bd7
70976b2
 
 
d5d2bd7
682b717
 
70976b2
 
0bbcf6a
 
 
 
70976b2
 
7eb4f12
2319370
7eb4f12
f577755
4c45fcc
2319370
272839f
4c45fcc
272839f
6cabc8e
 
3ee7a0e
2319370
 
 
3ee7a0e
 
 
b8707ee
2319370
3ee7a0e
 
e95893b
3ee7a0e
2319370
3ee7a0e
 
272839f
3ee7a0e
2319370
 
3ee7a0e
6cabc8e
2319370
f577755
272839f
f577755
d5d2bd7
7eb4f12
6cabc8e
d5d2bd7
272839f
b1a497f
 
 
dc85083
 
 
e95893b
b1a497f
2319370
b1a497f
 
 
 
 
 
 
 
 
 
 
 
2319370
 
7eb4f12
272839f
b1a497f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fee19a0
2319370
 
fee19a0
 
 
2319370
 
fee19a0
e95893b
fee19a0
 
 
 
 
 
6cabc8e
d5d2bd7
272839f
 
 
 
7eb4f12
272839f
 
9382e17
6cabc8e
272839f
 
 
be59e28
272839f
9382e17
272839f
 
5127f99
 
9382e17
d5d2bd7
272839f
 
 
 
 
6cabc8e
272839f
e95893b
272839f
 
4c45fcc
98b1025
272839f
2319370
272839f
d9481e4
 
e95893b
328faf1
 
 
 
2319370
328faf1
d9481e4
bdbfb6c
d5d2bd7
7ce2e3f
 
 
 
2319370
e95893b
7ce2e3f
 
 
7ae46f3
d5d2bd7
7ae46f3
 
eb65fd3
7ce2e3f
 
2319370
 
 
7ce2e3f
2319370
a929f1d
 
 
7ae46f3
10824fb
e95893b
10824fb
 
 
a929f1d
 
 
 
 
 
 
 
42e8d2a
 
 
 
 
 
a929f1d
 
 
 
d5d2bd7
a929f1d
 
03aacf3
c8ef933
 
 
 
03aacf3
 
d5d2bd7
70976b2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d5d2bd7
2319370
 
 
272839f
 
 
e699ea2
 
2319370
 
d0eab36
2319370
d5d2bd7
2319370
7ba390c
0279a77
7ba390c
0279a77
7ba390c
 
2319370
d0eab36
 
7ba390c
d0eab36
 
8229cca
 
2319370
d0eab36
5ece429
 
 
 
2319370
5ece429
 
d0eab36
 
 
7ba390c
 
 
 
 
c30c2c3
 
2319370
d5d2bd7
2319370
 
c30c2c3
 
 
2319370
 
afa00d7
c30c2c3
 
 
 
 
76dee12
c30c2c3
 
 
 
2319370
 
 
 
fc2a2e1
 
d5d2bd7
f860c1f
 
 
 
1285e4d
f860c1f
 
 
1285e4d
 
 
 
f860c1f
 
 
 
2319370
 
1285e4d
f860c1f
1285e4d
 
 
 
 
 
f860c1f
 
1285e4d
95af92b
 
2319370
 
 
95af92b
 
2319370
95af92b
 
 
 
 
2319370
95af92b
d5d2bd7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
/* ==========================================================================
   🎨 Variables & Theme
   ========================================================================== */
:root {
    --bg-color: #121212;
    --panel-bg: #1e1e1e;
    --input-bg: #2d2d2d;
    --text-main: #e0e0e0;
    --text-muted: #888;
    --accent: #FF7F50;
    --border: #444;
    --border-light: #555;
    --online-green: #00C851;
    --loading-yellow: #ffbb33;
    --offline-red: #ff4444;
    --preview-width: 35%;
    --preview-max-width: 320px;
    
    --base-scale: 0.8; 
}

/* ==========================================================================
   🧹 Reset & Scrollbar
   ========================================================================== */
* { box-sizing: border-box; }

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    margin: 0; padding: 20px; background: var(--bg-color); color: var(--text-main);
    display: flex; justify-content: center; align-items: flex-start; 
    min-height: 100vh;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #666; }

select { appearance: base-select; }
select::picker-icon { margin-inline-end: 0px; }

/* ==========================================================================
   🏗️ Layout & Panel Heights
   ========================================================================== */
.layout {
    display: grid;
    grid-template-columns: 6fr 7fr 5fr;
    gap: 20px;
    width: 100%; 
    max-width: 1600px; 
    align-items: start;
}

.panel {
    background: var(--panel-bg); 
    padding: 20px; 
    border-radius: 12px;
    border: 1px solid var(--border); 
    display: flex; 
    flex-direction: column; 
    overflow: hidden;
}

.left-panel { 
    height: fit-content; 
    max-height: calc(100vh - 40px); 
    overflow-y: auto; 
}

.middle-panel { 
    height: calc(100vh - 40px); 
    display: flex;
    flex-direction: column;
}

.right-panel { 
    height: auto; 
    display: flex;
    flex-direction: column;
}

/* 图像预览区容器 */
.image-preview-box {
    width: 100%;
    max-width: 100%;
    height: 400px;
    flex-shrink: 0;
    border: 1px dashed var(--border-light); 
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; 
    overflow: hidden;
    margin: 0 auto 16px auto;
}

#result-image { 
    width: 100%; 
    height: 100%; 
    object-fit: contain;
    display: none;
}

/* ==========================================================================
   🧩 Form & Common Components
   ========================================================================== */
.header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.header-title-group { display: flex; align-items: center; }
.header-title-group .divider { color: var(--border); margin: 0 8px; font-size: 14px; }
.header-title-group .gallery-link {
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-size: 12px;
    font-weight: 500;
    transition: opacity 0.2s;
}
.header-title-group .gallery-link:hover { opacity: 0.8; }
.header-row h2 { margin: 0; color: var(--accent); font-size: calc(18px * var(--base-scale)); font-weight: 600; }
.header-status-text { font-size: calc(13px * var(--base-scale)); font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }

label { margin-bottom: 6px; font-weight: 600; font-size: calc(13px * var(--base-scale)); color: var(--text-muted); }
.form-group { margin-bottom: 12px; display: flex; flex-direction: column; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.form-row .form-group { margin-bottom: 0 !important; }

/* 通用输入控件样式 */
input:not([type="checkbox"]), textarea, select { 
    width: 100%; padding: 10px; border-radius: 6px; border: 1px solid var(--border-light); 
    background: var(--input-bg); color: var(--text-main); font-size: calc(14px * var(--base-scale));
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}
input::-webkit-outer-spin-button, 
input::-webkit-inner-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }

textarea { 
    resize: vertical; 
    min-height: 128px; 
    max-height: 400px; 
    font-family: inherit; 
    line-height: 1.5;
}

/* 滑块与数字输入组合 */
.slider-group { display: flex; align-items: center; gap: 10px; }
.slider-group input[type="range"] {
    flex: 1; padding: 0; height: 6px; background: var(--input-bg); border-radius: 3px;
    -webkit-appearance: none; border: none;
}
.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
    background: var(--accent); cursor: pointer;
}
.slider-group input[type="number"] { 
    width: 75px !important; 
    flex-shrink: 0; 
    padding: 8px; 
    text-align: center; 
}

#generate-btn { 
    background: var(--accent); color: white; border: none; cursor: pointer; font-weight: bold; 
    padding: 12px; border-radius: 6px; font-size: calc(16px * var(--base-scale)); transition: 0.2s; margin-top: 10px;
}
#generate-btn:hover:not(:disabled) { background: #ff6633; }
#generate-btn:disabled { pointer-events: none; background-color: #555; color: #888; cursor: not-allowed; opacity: 0.6; }

/* Base LoRA 列表行 */
.lora-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0px; border-radius: 6px;
    margin-bottom: 8px;
}
.lora-row label { margin: 0; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-main); font-size: calc(13px * var(--base-scale)); }
.lora-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.lora-row .strength-box { width: 70px; padding: 6px; text-align: center; }

/* Seed 输入组 */
.seed-group { display: flex; gap: 6px; width: 100%; }
.seed-group input { flex: 1; }
.seed-group button {
    width: 40px; height: 38px; padding: 0; margin: 0;
    background: var(--input-bg); 
    border: 1px solid var(--border-light); 
    color: var(--text-main);
    border-radius: 6px; font-size: calc(16px * var(--base-scale)); cursor: pointer; transition: all 0.2s;
}

/* 后端状态指示灯 */
.status-dot { width: 10px; height: 10px; border-radius: 50%; transition: background-color 0.3s ease; box-shadow: 0 0 2px rgba(0,0,0,0.5); }
@keyframes breathe-green { 0% { opacity: 0.6; box-shadow: 0 0 4px rgba(0, 200, 81, 0.2); } 50% { opacity: 0.9; box-shadow: 0 0 10px rgba(0, 200, 81, 0.8); } 100% { opacity: 0.6; box-shadow: 0 0 4px rgba(0, 200, 81, 0.2); } }
@keyframes breathe-yellow { 0% { opacity: 0.6; box-shadow: 0 0 4px rgba(255, 187, 51, 0.2); } 50% { opacity: 0.9; box-shadow: 0 0 10px rgba(255, 187, 51, 0.8); } 100% { opacity: 0.6; box-shadow: 0 0 4px rgba(255, 187, 51, 0.2); } }
@keyframes breathe-red { 0% { opacity: 0.6; box-shadow: 0 0 4px rgba(255, 68, 68, 0.2); } 50% { opacity: 0.9; box-shadow: 0 0 10px rgba(255, 68, 68, 0.8); } 100% { opacity: 0.6; box-shadow: 0 0 4px rgba(255, 68, 68, 0.2); } }
.status-dot.online { background-color: var(--online-green); animation: breathe-green 2.5s infinite ease-in-out; }
.status-dot.loading { background-color: var(--loading-yellow); animation: breathe-yellow 1.5s infinite ease-in-out; }
.status-dot.offline { background-color: var(--offline-red); animation: breathe-red 1s infinite ease-in-out; }

/* Text Encoder / VAE 信息展示 */
.te-vae-container {
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 6px;
    margin-bottom: 6px;
    padding: 0px;
}

.te-label {
    color: var(--text-muted);
    font-size: 11px;
}

.te-value, .vae-value {
    color: var(--text-main);
    font-size: calc(14px * var(--base-scale));
}

.vae-label, .te-label {
    font-weight: 600;
    font-size: calc(13px * var(--base-scale));
    color: var(--text-muted);
}

/* ==========================================================================
   🖼️ Gallery & HUD
   ========================================================================== */
.preview-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.preview-placeholder {
    width: var(--preview-width);
    max-width: var(--preview-max-width);
    aspect-ratio: 3 / 4;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed var(--border); 
    border-radius: 12px;
    background: transparent;
    color: var(--text-muted);
    font-size: calc(14px * var(--base-scale));
    user-select: none;
    margin: 0 auto;
}

.selected-big-img {
    display: none;
    width: var(--preview-width);
    max-width: var(--preview-max-width);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    margin: 0 auto;
    border: 1px solid var(--border);
}

/* 选中 LoRA 的控制栏 */
.selected-hud-bar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: #232323;
    padding: 12px 16px;
    border-radius: 8px; 
    width: 100%; margin-bottom: 20px; font-size: calc(14px * var(--base-scale));
    overflow: hidden; 
    gap: 15px;
}

.hud-left { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    flex: 1; 
    min-width: 0; 
}

.hud-label { 
    color: var(--text-muted); 
    white-space: nowrap;
    flex-shrink: 0;
}
.hud-checkbox { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.hud-name { 
    color: var(--accent); 
    font-weight: bold; 
    flex: 1;
    min-width: 0;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.hud-strength-group { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    flex-shrink: 0; 
}
.hud-strength-group input { 
    width: 70px; 
    height: 32px; 
    padding: 0 8px; 
    text-align: center; 
    border-radius: 6px; 
    background: var(--input-bg); 
    border: 1px solid var(--border-light);
    color: var(--text-main); 
    font-size: calc(14px * var(--base-scale));
    box-sizing: border-box;
}
.hud-strength-group input:focus { 
    outline: none !important; 
    border-color: var(--accent) !important; 
}

/* 图库滚动容器与网格 */
.gallery-scroll-container {
    flex: 1; overflow-y: auto; 
    border: 1px solid var(--border); border-radius: 8px;
    padding: 12px; background: rgba(0, 0, 0, 0.2);
}
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; 
}

.lora-card {
    position: relative; aspect-ratio: 3 / 4;
    border-radius: 8px; overflow: hidden; cursor: pointer;
    border: 1.5px solid transparent; background-color: var(--input-bg);
    transition: border-color 0.2s;
}
.lora-card:hover { border-color: rgba(255, 127, 80, 0.5); }
.lora-card.selected { border-color: var(--accent); box-shadow: 0 0 12px rgba(255, 127, 80, 0.3); }
.lora-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: filter 0.3s ease; }
.lora-card:hover img { filter: brightness(1.05); }

/* 卡片底部标题渐变遮罩 */
.card-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 30px 10px 10px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}
.card-title {
    color: #fff; font-size: calc(13px * var(--base-scale)); font-weight: 600; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* ==========================================================================
   ⚙️ Output & Logs
   ========================================================================== */
.placeholder-text { 
    color: var(--text-muted); 
    font-size: calc(14px * var(--base-scale)); 
    text-align: center;
    padding: 0 30px;
    max-width: 100%;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* 日志输出面板 */
.log-content {
    flex: 1;
    padding: 10px 12px;
    overflow-y: auto;
    font-family: monospace;
    font-size: calc(12px * var(--base-scale));
    line-height: 1.5;
    color: #a0a0a0;
    background: #0a0a0a;
    max-height: 240px;
    height: 240px;
    border-radius: 8px;
    border: 1px solid var(--border);
    scroll-behavior: smooth;
}

.log-line { margin-bottom: 4px; word-break: break-all; }
.log-line.highlight { color: var(--accent); }
.log-line.error { color: #ff4444; }

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: calc(13px * var(--base-scale));
    color: var(--text-muted);
}

.log-header label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: calc(11px * var(--base-scale));
}

.log-header span {
    font-weight: 600;
    font-size: calc(13px * var(--base-scale));
    color: var(--text-muted);
}

.log-header input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    top: 1px !important;
}

.log-header input[type="checkbox"]:checked::after {
    top: 1px !important;
    left: 4px !important;
    width: 2px;
    height: 6px;
}

/* 日志复制按钮(绝对定位在日志区右上角) */
.copy-log-btn {
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: calc(13px * var(--base-scale));
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: absolute;
    top: 8px;
    right: 8px;
    line-height: 12px;
    background: #232323;
    padding: 3px 6px;
    border-radius: 3px;
}

/* ==========================================================================
   📱 Responsive & Cursor
   ========================================================================== */
@media (max-width: 1024px) {
    .layout { grid-template-columns: 1fr; }
    .left-panel, .middle-panel, .right-panel { height: auto; min-height: 400px; max-height: none; }
}

select, input[type="checkbox"] { cursor: pointer; }
.lora-row label, .lora-row input[type="checkbox"] { cursor: pointer; }

/* ==========================================================================
   ✨ Shimmer Effects (扫光动画)
   ========================================================================== */
.shimmer-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
    border-radius: 6px;
}

.shimmer-overlay::before {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
    animation: shimmer-sweep 1.5s infinite linear;
}

.selected-big-img.shimmer-active {
    background: #151515;
    animation: shimmer-bg-pulse 1.5s infinite linear;
}

@keyframes shimmer-sweep {
    0% { transform: translate(-40%, -40%); }
    100% { transform: translate(40%, 40%); }
}

@keyframes shimmer-bg-pulse {
    0%, 100% { background-color: #1a1a1a; }
    50% { background-color: #252525; }
}

/* ==========================================================================
   📐 Aspect Ratio & Custom Checkbox
   ========================================================================== */
.aspect-ratio-row { display: flex; gap: 8px; width: 100%; }

.ratio-btn {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 6px 0;
    border-radius: 6px;
    font-size: calc(12px * var(--base-scale));
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.ratio-btn.active {
    background: var(--input-bg) !important;
    border: 1px solid var(--accent) !important;
    color: var(--accent) !important;
    box-shadow: 0 0 6px rgba(255, 127, 80, 0.2);
}

/* 自定义 Checkbox 样式 */
input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    background-color: transparent !important; 
    border: 1px solid var(--border-light) !important; 
    border-radius: 4px !important;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin: 0;
    vertical-align: middle;
}

input[type="checkbox"]:hover { border-color: #888 !important; }
input[type="checkbox"]:checked { background-color: var(--accent) !important; border-color: var(--accent) !important; }

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg);
}

/* ==========================================================================
   🎲 Hover States
   ========================================================================== */
.seed-group button:hover {
    background: #333 !important; 
    border-color: #d65a31 !important; 
    color: #fff !important;
}

.ratio-btn:hover {
    background: #333 !important; 
    border-color: #d65a31 !important; 
    color: var(--text-main) !important; 
}