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:root {
|
| 31 |
+
--bg-color: #121212;
|
| 32 |
+
--panel-bg: #1e1e1e;
|
| 33 |
+
--input-bg: #2d2d2d;
|
| 34 |
+
--text-main: #e0e0e0;
|
| 35 |
+
--text-muted: #888;
|
| 36 |
+
--accent: #FF7F50;
|
| 37 |
+
--border: #333;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
* { box-sizing: border-box; }
|
| 41 |
+
|
| 42 |
+
body {
|
| 43 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
| 44 |
+
margin: 0;
|
| 45 |
+
padding: 20px;
|
| 46 |
+
background: var(--bg-color);
|
| 47 |
+
color: var(--text-main);
|
| 48 |
+
height: 100vh;
|
| 49 |
+
display: flex;
|
| 50 |
+
justify-content: center;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
.layout {
|
| 54 |
+
display: grid;
|
| 55 |
+
grid-template-columns: 450px 1fr;
|
| 56 |
+
gap: 20px;
|
| 57 |
+
width: 100%;
|
| 58 |
+
max-width: 1400px;
|
| 59 |
+
height: 100%;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
.left-panel {
|
| 63 |
+
background: var(--panel-bg);
|
| 64 |
+
padding: 20px;
|
| 65 |
+
border-radius: 8px;
|
| 66 |
+
border: 1px solid var(--border);
|
| 67 |
+
overflow-y: auto;
|
| 68 |
+
display: flex;
|
| 69 |
+
flex-direction: column;
|
| 70 |
+
gap: 15px;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
.right-panel {
|
| 74 |
+
background: var(--panel-bg);
|
| 75 |
+
padding: 20px;
|
| 76 |
+
border-radius: 8px;
|
| 77 |
+
border: 1px solid var(--border);
|
| 78 |
+
display: flex;
|
| 79 |
+
flex-direction: column;
|
| 80 |
+
justify-content: center;
|
| 81 |
+
align-items: center;
|
| 82 |
+
position: relative;
|
| 83 |
+
overflow: hidden;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
h2 { margin: 0 0 10px 0; color: var(--accent); font-size: 20px; }
|
| 87 |
+
label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 13px; color: var(--text-muted); }
|
| 88 |
+
|
| 89 |
+
input, textarea, select {
|
| 90 |
+
width: 100%;
|
| 91 |
+
padding: 10px;
|
| 92 |
+
border-radius: 6px;
|
| 93 |
+
border: 1px solid var(--border);
|
| 94 |
+
background: var(--input-bg);
|
| 95 |
+
color: var(--text-main);
|
| 96 |
+
font-family: monospace;
|
| 97 |
+
font-size: 13px;
|
| 98 |
+
transition: border-color 0.2s;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
|
| 102 |
+
textarea { resize: vertical; min-height: 100px; }
|
| 103 |
+
|
| 104 |
+
button {
|
| 105 |
+
background: var(--accent);
|
| 106 |
+
color: white;
|
| 107 |
+
border: none;
|
| 108 |
+
cursor: pointer;
|
| 109 |
+
font-weight: bold;
|
| 110 |
+
padding: 12px;
|
| 111 |
+
border-radius: 6px;
|
| 112 |
+
font-size: 16px;
|
| 113 |
+
transition: 0.2s;
|
| 114 |
+
margin-top: 10px;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
button:hover { background: #ff6633; }
|
| 118 |
+
button:disabled { background: #555; cursor: not-allowed; }
|
| 119 |
+
|
| 120 |
+
#status { margin-top: 10px; padding: 10px; border-radius: 6px; background: var(--input-bg); font-family: monospace; font-size: 13px; }
|
| 121 |
+
|
| 122 |
+
#result-image {
|
| 123 |
+
max-width: 100%;
|
| 124 |
+
max-height: 100%;
|
| 125 |
+
object-fit: contain;
|
| 126 |
+
border-radius: 8px;
|
| 127 |
+
display: none;
|
| 128 |
+
box-shadow: 0 4px 12px rgba(0,0,0,0.5);
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
.placeholder { color: var(--text-muted); font-size: 14px; text-align: center; }
|
| 132 |
+
|
| 133 |
+
/* Base LoRA 动态容器样式 */
|
| 134 |
+
#base-lora-container {
|
| 135 |
+
display: flex;
|
| 136 |
+
flex-direction: column;
|
| 137 |
+
gap: 8px;
|
| 138 |
+
}
|
| 139 |
+
.lora-row {
|
| 140 |
+
display: flex;
|
| 141 |
+
align-items: center;
|
| 142 |
+
justify-content: space-between;
|
| 143 |
+
background: var(--input-bg);
|
| 144 |
+
padding: 10px;
|
| 145 |
+
border-radius: 6px;
|
| 146 |
+
border: 1px solid var(--border);
|
| 147 |
+
}
|
| 148 |
+
.lora-row label {
|
| 149 |
+
margin: 0;
|
| 150 |
+
display: flex;
|
| 151 |
+
align-items: center;
|
| 152 |
+
gap: 10px;
|
| 153 |
+
cursor: pointer;
|
| 154 |
+
color: var(--text-main);
|
| 155 |
+
}
|
| 156 |
+
.lora-row input[type="checkbox"] {
|
| 157 |
+
width: 18px;
|
| 158 |
+
height: 18px;
|
| 159 |
+
cursor: pointer;
|
| 160 |
+
accent-color: var(--accent);
|
| 161 |
+
}
|
| 162 |
+
.lora-row .strength-box {
|
| 163 |
+
width: 80px;
|
| 164 |
+
padding: 6px;
|
| 165 |
+
text-align: center;
|
| 166 |
+
}
|
| 167 |
+
|
| 168 |
+
@media (max-width: 768px) {
|
| 169 |
+
.layout { grid-template-columns: 1fr; height: auto; }
|
| 170 |
+
body { height: auto; }
|
| 171 |
+
.right-panel { min-height: 400px; }
|
| 172 |
+
}
|