1537 lines
27 KiB
CSS
1537 lines
27 KiB
CSS
.imagine-top-grid {
|
||
display: grid;
|
||
grid-template-columns: 2fr 1fr;
|
||
gap: 24px;
|
||
margin-bottom: 24px;
|
||
align-items: stretch;
|
||
}
|
||
|
||
@media (max-width: 1024px) {
|
||
.imagine-top-grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
}
|
||
|
||
.imagine-card {
|
||
background: #fff;
|
||
border: none !important;
|
||
border-radius: 14px;
|
||
padding: 20px;
|
||
box-shadow: none !important;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: visible;
|
||
}
|
||
|
||
.imagine-card.settings-card {
|
||
padding: 16px;
|
||
}
|
||
|
||
.imagine-card-collapsible {
|
||
transition: all 0.3s ease;
|
||
}
|
||
|
||
.card-title-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
cursor: pointer;
|
||
user-select: none;
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.status-header-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
cursor: pointer;
|
||
user-select: none;
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.status-header-row .card-title {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.status-header-row .status-text {
|
||
flex: 1;
|
||
text-align: right;
|
||
}
|
||
|
||
.status-header-row .collapse-icon {
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.collapse-icon {
|
||
transition: transform 0.3s ease;
|
||
flex-shrink: 0;
|
||
color: var(--accents-4);
|
||
}
|
||
|
||
.imagine-card-collapsible.collapsed .collapse-icon {
|
||
transform: rotate(-90deg);
|
||
}
|
||
|
||
.card-title-row:hover .collapse-icon {
|
||
color: var(--accents-7);
|
||
}
|
||
|
||
.card-content {
|
||
overflow: hidden;
|
||
transition: max-height 0.3s ease, opacity 0.2s ease;
|
||
max-height: 2000px;
|
||
opacity: 1;
|
||
}
|
||
|
||
.imagine-card-collapsible.collapsed .card-content {
|
||
max-height: 0;
|
||
opacity: 0;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
.imagine-card-collapsible.collapsed .card-title-row {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.imagine-card-collapsible.collapsed .card-title {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.imagine-card-collapsible.collapsed .status-header-row {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.imagine-card-collapsible.collapsed {
|
||
padding: 12px 20px;
|
||
}
|
||
|
||
.floating-actions {
|
||
position: fixed;
|
||
bottom: 32px;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
z-index: 20;
|
||
background: #fff;
|
||
border: 1px solid var(--border);
|
||
border-radius: 999px;
|
||
padding: 8px 12px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
|
||
cursor: move;
|
||
user-select: none;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.floating-actions:active {
|
||
cursor: grabbing;
|
||
}
|
||
|
||
.shadow-xl {
|
||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
|
||
}
|
||
|
||
.toolbar-sep {
|
||
display: inline-block;
|
||
width: 1px;
|
||
height: 14px;
|
||
background: var(--border);
|
||
margin: 0 6px;
|
||
}
|
||
|
||
.imagine-textarea {
|
||
height: auto;
|
||
min-height: 0;
|
||
resize: vertical;
|
||
line-height: 1.5;
|
||
flex: 1;
|
||
}
|
||
|
||
.settings-grid {
|
||
--row-gap: 10px;
|
||
--row-h: 52px;
|
||
display: grid;
|
||
grid-template-columns: 2.2fr 1fr;
|
||
grid-template-rows: auto var(--row-h) var(--row-h);
|
||
column-gap: 16px;
|
||
row-gap: var(--row-gap);
|
||
align-items: stretch;
|
||
}
|
||
|
||
.settings-block {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
height: auto;
|
||
}
|
||
|
||
.settings-block-prompt {
|
||
grid-column: 1;
|
||
grid-row: 1;
|
||
}
|
||
|
||
.settings-block-duo {
|
||
grid-column: 2;
|
||
grid-row: 1;
|
||
height: auto;
|
||
display: grid;
|
||
grid-template-rows: 1fr 1fr;
|
||
gap: 10px;
|
||
}
|
||
|
||
.settings-block-row2 {
|
||
grid-column: 1;
|
||
grid-row: 2;
|
||
}
|
||
|
||
.settings-block-row2b {
|
||
grid-column: 2;
|
||
grid-row: 2;
|
||
}
|
||
|
||
.settings-block-row3 {
|
||
grid-column: 1;
|
||
grid-row: 3;
|
||
}
|
||
|
||
.settings-block-row3b {
|
||
grid-column: 2;
|
||
grid-row: 3;
|
||
}
|
||
|
||
.settings-block-single {
|
||
height: auto;
|
||
align-self: auto;
|
||
justify-content: stretch;
|
||
}
|
||
|
||
.settings-prompt {
|
||
display: flex;
|
||
flex-direction: column;
|
||
height: auto;
|
||
}
|
||
|
||
.settings-row {
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
gap: 8px;
|
||
align-items: stretch;
|
||
height: 100%;
|
||
}
|
||
|
||
.settings-field {
|
||
display: flex;
|
||
flex-direction: column;
|
||
height: 100%;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.settings-field .field-label {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.toggle-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 10px;
|
||
height: 100%;
|
||
padding: 0 10px;
|
||
border-radius: 10px;
|
||
background: #f7f7f8;
|
||
border: 1px solid var(--accents-1);
|
||
}
|
||
|
||
.toggle-text {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.toggle-title {
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
color: var(--accents-6);
|
||
line-height: 1.2;
|
||
}
|
||
|
||
.toggle-desc {
|
||
font-size: 10px;
|
||
color: var(--accents-4);
|
||
line-height: 1.2;
|
||
}
|
||
|
||
.toggle-row-fill {
|
||
height: 100%;
|
||
}
|
||
|
||
.settings-folder {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
height: 100%;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.settings-folder .field-label {
|
||
margin-bottom: 0;
|
||
line-height: 1;
|
||
}
|
||
|
||
.folder-select-btn {
|
||
width: 100%;
|
||
justify-content: flex-start;
|
||
font-size: 12px;
|
||
height: 30px;
|
||
padding: 0 12px;
|
||
gap: 8px;
|
||
align-items: center;
|
||
white-space: normal;
|
||
}
|
||
|
||
.folder-select-btn #folderPath {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.settings-grid {
|
||
grid-template-columns: 1fr;
|
||
grid-template-rows: auto;
|
||
}
|
||
|
||
.settings-row {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.settings-block-prompt,
|
||
.settings-block-duo,
|
||
.settings-block-row2,
|
||
.settings-block-row2b,
|
||
.settings-block-row3,
|
||
.settings-block-row3b {
|
||
grid-column: 1;
|
||
grid-row: auto;
|
||
}
|
||
|
||
.settings-block-duo {
|
||
height: auto;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
}
|
||
|
||
|
||
.waterfall-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-bottom: 16px;
|
||
min-height: 28px;
|
||
}
|
||
|
||
.card-title {
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
color: var(--accents-7);
|
||
margin: 0;
|
||
}
|
||
|
||
.waterfall-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.batch-download-btn {
|
||
height: 28px;
|
||
padding: 0 10px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
transition: all 0.2s;
|
||
color: var(--fg);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.batch-download-btn svg {
|
||
width: 14px;
|
||
height: 14px;
|
||
}
|
||
|
||
.selection-toolbar {
|
||
display: none;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.selection-toolbar.hidden {
|
||
display: none;
|
||
}
|
||
|
||
.selection-toolbar:not(.hidden) {
|
||
display: flex;
|
||
}
|
||
|
||
.selection-toolbar .geist-button-outline {
|
||
height: 28px;
|
||
padding: 0 10px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.selected-count {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
min-width: 18px;
|
||
height: 18px;
|
||
padding: 0 6px;
|
||
border-radius: 999px;
|
||
background: var(--accents-2);
|
||
color: var(--accents-6);
|
||
font-size: 10px;
|
||
font-weight: 600;
|
||
line-height: 1;
|
||
}
|
||
|
||
.field-label {
|
||
display: block;
|
||
font-size: 11px;
|
||
color: var(--accents-4);
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.status-text {
|
||
font-size: 11px;
|
||
color: var(--accents-4);
|
||
}
|
||
|
||
.status-text.connected {
|
||
color: #059669;
|
||
}
|
||
|
||
.status-text.connecting {
|
||
color: #d97706;
|
||
}
|
||
|
||
.status-text.error {
|
||
color: #dc2626;
|
||
}
|
||
|
||
|
||
.meta-grid {
|
||
display: grid;
|
||
grid-template-columns: 1fr;
|
||
gap: 12px;
|
||
}
|
||
|
||
.mode-item {
|
||
align-items: center;
|
||
}
|
||
|
||
.mode-switch {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 0;
|
||
border: 1px solid var(--border);
|
||
border-radius: 999px;
|
||
background: #fff;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.mode-btn {
|
||
border: 1px solid transparent;
|
||
background: transparent;
|
||
color: var(--accents-6);
|
||
font-size: 11px;
|
||
padding: 1px 8px;
|
||
border-radius: 999px;
|
||
cursor: pointer;
|
||
transition: all 0.2s;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.mode-btn:hover {
|
||
background: var(--hover-bg);
|
||
border-color: var(--border);
|
||
}
|
||
|
||
.mode-btn.active {
|
||
background: #000;
|
||
color: #fff;
|
||
border-color: #000;
|
||
}
|
||
|
||
.meta-item {
|
||
padding: 12px;
|
||
border-radius: 10px;
|
||
background: #f7f7f8;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 12px;
|
||
min-height: 42px;
|
||
}
|
||
|
||
.meta-label {
|
||
font-size: 10px;
|
||
color: var(--accents-4);
|
||
}
|
||
|
||
.meta-value {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--accents-7);
|
||
text-align: right;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
max-width: 150px;
|
||
}
|
||
|
||
.toggle {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
cursor: pointer;
|
||
user-select: none;
|
||
}
|
||
|
||
.toggle input {
|
||
display: none;
|
||
}
|
||
|
||
.toggle-track {
|
||
width: 38px;
|
||
height: 20px;
|
||
background: #e5e7eb;
|
||
border-radius: 999px;
|
||
position: relative;
|
||
transition: background 0.2s ease;
|
||
}
|
||
|
||
.toggle-track::after {
|
||
content: "";
|
||
width: 14px;
|
||
height: 14px;
|
||
background: #fff;
|
||
border-radius: 999px;
|
||
position: absolute;
|
||
top: 3px;
|
||
left: 3px;
|
||
box-shadow: none;
|
||
transition: transform 0.2s ease;
|
||
}
|
||
|
||
.toggle input:checked + .toggle-track {
|
||
background: #111;
|
||
}
|
||
|
||
.toggle input:checked + .toggle-track::after {
|
||
transform: translateX(18px);
|
||
}
|
||
|
||
.toggle-label {
|
||
font-size: 12px;
|
||
color: var(--accents-4);
|
||
}
|
||
|
||
.imagine-empty {
|
||
text-align: center;
|
||
padding: 32px 24px;
|
||
font-size: 12px;
|
||
color: var(--accents-4);
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 6px;
|
||
min-height: 220px;
|
||
border: 1px dashed var(--border);
|
||
border-radius: 14px;
|
||
background: linear-gradient(135deg, #fafafa 0%, #f3f4f6 100%);
|
||
}
|
||
|
||
.empty-title {
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
color: var(--accents-6);
|
||
}
|
||
|
||
.empty-subtitle {
|
||
font-size: 11px;
|
||
color: var(--accents-4);
|
||
}
|
||
|
||
.empty-hint {
|
||
margin-top: 4px;
|
||
font-size: 10px;
|
||
color: var(--accents-3);
|
||
padding: 2px 8px;
|
||
border-radius: 999px;
|
||
border: 1px solid var(--accents-1);
|
||
background: #fff;
|
||
}
|
||
|
||
.waterfall {
|
||
display: grid;
|
||
grid-template-columns: repeat(4, 1fr);
|
||
gap: 16px;
|
||
width: 100%;
|
||
}
|
||
|
||
@media (max-width: 1200px) {
|
||
.waterfall {
|
||
grid-template-columns: repeat(3, 1fr);
|
||
}
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.waterfall {
|
||
grid-template-columns: repeat(2, 1fr);
|
||
}
|
||
}
|
||
|
||
@media (max-width: 480px) {
|
||
.waterfall {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
}
|
||
|
||
.waterfall-item {
|
||
border-radius: 14px;
|
||
overflow: hidden;
|
||
border: none !important;
|
||
background: #fff;
|
||
box-shadow: none !important;
|
||
animation: riseIn 0.4s ease;
|
||
cursor: pointer;
|
||
transition: transform 0.2s ease;
|
||
display: flex;
|
||
flex-direction: column;
|
||
position: relative;
|
||
}
|
||
|
||
.waterfall-item:hover {
|
||
transform: scale(1.02);
|
||
}
|
||
|
||
.waterfall-item.selection-mode {
|
||
cursor: default;
|
||
}
|
||
|
||
.waterfall-item.selection-mode:hover {
|
||
transform: none;
|
||
}
|
||
|
||
.waterfall-item img {
|
||
width: 100%;
|
||
height: auto;
|
||
display: block;
|
||
border-radius: 14px 14px 0 0;
|
||
}
|
||
|
||
.waterfall-item .image-checkbox {
|
||
position: absolute;
|
||
top: 8px;
|
||
left: 8px;
|
||
width: 16px;
|
||
height: 16px;
|
||
background: rgba(255, 255, 255, 0.9);
|
||
border: 1px solid #ddd;
|
||
border-radius: 2px;
|
||
cursor: pointer;
|
||
display: none;
|
||
align-items: center;
|
||
justify-content: center;
|
||
transition: all 0.2s;
|
||
backdrop-filter: blur(4px);
|
||
z-index: 2;
|
||
}
|
||
|
||
.waterfall-item.selection-mode .image-checkbox {
|
||
display: flex;
|
||
}
|
||
|
||
.waterfall-item .image-checkbox:hover {
|
||
border-color: #000;
|
||
background: rgba(255, 255, 255, 1);
|
||
}
|
||
|
||
.waterfall-item.selected .image-checkbox {
|
||
background: #000;
|
||
border-color: #000;
|
||
}
|
||
|
||
.waterfall-item.selected .image-checkbox::after {
|
||
content: '';
|
||
width: 5px;
|
||
height: 8px;
|
||
border: solid #fff;
|
||
border-width: 0 1px 1px 0;
|
||
transform: rotate(45deg);
|
||
margin-top: -2px;
|
||
}
|
||
|
||
.waterfall-meta {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 10px 12px;
|
||
font-size: 11px;
|
||
color: var(--accents-4);
|
||
background: #fff;
|
||
border-radius: 0 0 14px 14px;
|
||
}
|
||
|
||
.waterfall-meta span {
|
||
font-family: 'Geist Mono', ui-monospace, monospace;
|
||
color: var(--accents-5);
|
||
}
|
||
|
||
.copy-parent-id-btn {
|
||
margin-left: auto;
|
||
border: 1px solid var(--accents-2);
|
||
background: #fff;
|
||
color: var(--accents-6);
|
||
border-radius: 999px;
|
||
font-size: 10px;
|
||
line-height: 1;
|
||
padding: 4px 8px;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.copy-parent-id-btn:hover {
|
||
border-color: var(--accents-4);
|
||
color: var(--accents-8);
|
||
background: var(--accents-1);
|
||
}
|
||
|
||
.copy-parent-id-btn.is-hidden {
|
||
display: none;
|
||
}
|
||
|
||
html[data-theme='dark'] .waterfall-item {
|
||
background: #111821;
|
||
border: 1px solid #2b3440 !important;
|
||
}
|
||
|
||
html[data-theme='dark'] .waterfall-item:hover {
|
||
border-color: #3c4756 !important;
|
||
}
|
||
|
||
html[data-theme='dark'] .waterfall-meta {
|
||
background: #111821;
|
||
color: #9aa8bc;
|
||
border-top: 1px solid #2b3440;
|
||
}
|
||
|
||
html[data-theme='dark'] .waterfall-meta span {
|
||
color: #c9d6e5;
|
||
}
|
||
|
||
html[data-theme='dark'] .copy-parent-id-btn {
|
||
background: #1a2330;
|
||
color: #d9e2ec;
|
||
border-color: #3b4654;
|
||
}
|
||
|
||
html[data-theme='dark'] .copy-parent-id-btn:hover {
|
||
background: #243244;
|
||
border-color: #5d6a7b;
|
||
color: #f2f6fa;
|
||
}
|
||
|
||
html[data-theme='dark'] .waterfall-item .image-checkbox {
|
||
background: rgba(17, 24, 33, 0.92);
|
||
border-color: #4b5767;
|
||
}
|
||
|
||
html[data-theme='dark'] .waterfall-item .image-checkbox:hover {
|
||
background: rgba(26, 35, 48, 0.98);
|
||
border-color: #94a3b8;
|
||
}
|
||
|
||
html[data-theme='dark'] .waterfall-item.selected .image-checkbox {
|
||
background: #e6edf3;
|
||
border-color: #e6edf3;
|
||
}
|
||
|
||
html[data-theme='dark'] .waterfall-item.selected .image-checkbox::after {
|
||
border-color: #0f172a;
|
||
}
|
||
|
||
|
||
@keyframes riseIn {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateY(8px);
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
}
|
||
|
||
/* 图片放大预览 */
|
||
.image-lightbox {
|
||
--keyboard-shift: 0px;
|
||
display: none;
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
background: rgba(0, 0, 0, 0.9);
|
||
z-index: 9999;
|
||
justify-content: center;
|
||
align-items: center;
|
||
cursor: zoom-out;
|
||
animation: fadeIn 0.2s ease;
|
||
}
|
||
|
||
.image-lightbox.active {
|
||
display: flex;
|
||
}
|
||
|
||
.image-lightbox img {
|
||
max-width: 90%;
|
||
max-height: calc(90% - var(--keyboard-shift));
|
||
object-fit: contain;
|
||
border-radius: 8px;
|
||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
|
||
transform: translateY(calc(var(--keyboard-shift) * -0.35));
|
||
}
|
||
|
||
.image-lightbox.image-focus-mode img {
|
||
max-width: 100vw;
|
||
max-height: 100vh;
|
||
border-radius: 0;
|
||
box-shadow: none;
|
||
transform: none;
|
||
}
|
||
|
||
.image-lightbox.image-focus-mode .lightbox-editor,
|
||
.image-lightbox.image-focus-mode .lightbox-nav,
|
||
.image-lightbox.image-focus-mode .lightbox-close {
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.lightbox-close {
|
||
position: absolute;
|
||
top: 20px;
|
||
right: 20px;
|
||
background: rgba(255, 255, 255, 0.1);
|
||
border: none;
|
||
color: #fff;
|
||
width: 40px;
|
||
height: 40px;
|
||
border-radius: 50%;
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
transition: background 0.2s;
|
||
}
|
||
|
||
.lightbox-close:hover {
|
||
background: rgba(255, 255, 255, 0.2);
|
||
}
|
||
|
||
.lightbox-editor {
|
||
position: absolute;
|
||
left: 50%;
|
||
bottom: 20px;
|
||
transform: translateX(-50%) translateY(calc(var(--keyboard-shift) * -1));
|
||
z-index: 10001;
|
||
width: min(1100px, calc(100vw - 32px));
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: stretch;
|
||
padding: 10px;
|
||
border-radius: 12px;
|
||
background: rgba(16, 18, 24, 0.78);
|
||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||
backdrop-filter: blur(10px);
|
||
}
|
||
|
||
.lightbox-edit-layout {
|
||
display: grid;
|
||
width: 100%;
|
||
grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
|
||
gap: 10px;
|
||
}
|
||
|
||
.lightbox-edit-left {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.lightbox-edit-main {
|
||
display: flex;
|
||
gap: 10px;
|
||
align-items: flex-end;
|
||
}
|
||
|
||
.lightbox-edit-input {
|
||
flex: 1;
|
||
min-height: 48px;
|
||
max-height: 160px;
|
||
resize: vertical;
|
||
border: 1px solid rgba(255, 255, 255, 0.22);
|
||
border-radius: 10px;
|
||
background: rgba(255, 255, 255, 0.08);
|
||
color: #fff;
|
||
font-size: 13px;
|
||
line-height: 1.45;
|
||
padding: 10px 12px;
|
||
outline: none;
|
||
}
|
||
|
||
.lightbox-edit-input::placeholder {
|
||
color: rgba(255, 255, 255, 0.62);
|
||
}
|
||
|
||
.lightbox-edit-input:focus {
|
||
border-color: rgba(255, 255, 255, 0.44);
|
||
}
|
||
|
||
.lightbox-edit-send {
|
||
height: 48px;
|
||
min-width: 92px;
|
||
padding: 0 14px;
|
||
border-radius: 10px;
|
||
border: 1px solid rgba(255, 255, 255, 0.24);
|
||
background: rgba(255, 255, 255, 0.12);
|
||
color: #fff;
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
cursor: pointer;
|
||
transition: all 0.2s;
|
||
}
|
||
|
||
.lightbox-edit-send:hover:not(:disabled) {
|
||
background: rgba(255, 255, 255, 0.2);
|
||
}
|
||
|
||
.lightbox-edit-send:disabled {
|
||
opacity: 0.42;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
.lightbox-edit-progress-wrap {
|
||
display: none;
|
||
height: 8px;
|
||
width: 100%;
|
||
border-radius: 999px;
|
||
overflow: hidden;
|
||
background: rgba(255, 255, 255, 0.16);
|
||
}
|
||
|
||
.lightbox-edit-progress-wrap.active {
|
||
display: block;
|
||
}
|
||
|
||
.lightbox-edit-progress-bar {
|
||
width: 0%;
|
||
height: 100%;
|
||
border-radius: 999px;
|
||
background: linear-gradient(90deg, #60a5fa 0%, #22d3ee 100%);
|
||
transition: width 0.25s ease;
|
||
}
|
||
|
||
.lightbox-edit-progress-text {
|
||
display: none;
|
||
font-size: 12px;
|
||
line-height: 1.2;
|
||
color: rgba(255, 255, 255, 0.9);
|
||
font-family: 'Geist Mono', ui-monospace, monospace;
|
||
}
|
||
|
||
.lightbox-edit-progress-text.active {
|
||
display: block;
|
||
}
|
||
|
||
.lightbox-edit-progress-wrap.is-success .lightbox-edit-progress-bar {
|
||
background: linear-gradient(90deg, #34d399 0%, #10b981 100%);
|
||
}
|
||
|
||
.lightbox-edit-progress-wrap.is-error .lightbox-edit-progress-bar {
|
||
background: linear-gradient(90deg, #f87171 0%, #ef4444 100%);
|
||
}
|
||
|
||
.lightbox-history-panel {
|
||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||
border-radius: 10px;
|
||
background: rgba(255, 255, 255, 0.04);
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-height: 170px;
|
||
max-height: 260px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.lightbox-history-head {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
padding: 9px 10px;
|
||
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
|
||
}
|
||
|
||
.lightbox-history-title {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: rgba(255, 255, 255, 0.92);
|
||
}
|
||
|
||
.lightbox-history-count {
|
||
font-size: 11px;
|
||
color: rgba(255, 255, 255, 0.64);
|
||
}
|
||
|
||
.lightbox-history-empty {
|
||
font-size: 12px;
|
||
color: rgba(255, 255, 255, 0.58);
|
||
padding: 14px 10px;
|
||
}
|
||
|
||
.lightbox-history-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
padding: 8px;
|
||
overflow: auto;
|
||
}
|
||
|
||
.lightbox-history-list::-webkit-scrollbar {
|
||
width: 6px;
|
||
}
|
||
|
||
.lightbox-history-list::-webkit-scrollbar-thumb {
|
||
background: rgba(255, 255, 255, 0.2);
|
||
border-radius: 999px;
|
||
}
|
||
|
||
.lightbox-history-item {
|
||
display: grid;
|
||
grid-template-columns: 52px minmax(0, 1fr);
|
||
gap: 8px;
|
||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||
border-radius: 8px;
|
||
padding: 6px;
|
||
background: rgba(255, 255, 255, 0.03);
|
||
}
|
||
|
||
.lightbox-history-thumb {
|
||
width: 52px;
|
||
height: 52px;
|
||
border-radius: 6px;
|
||
object-fit: cover;
|
||
background: rgba(0, 0, 0, 0.22);
|
||
}
|
||
|
||
.lightbox-history-main {
|
||
min-width: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
}
|
||
|
||
.lightbox-history-line {
|
||
font-size: 11px;
|
||
line-height: 1.25;
|
||
color: rgba(255, 255, 255, 0.75);
|
||
}
|
||
|
||
.lightbox-history-line strong {
|
||
color: rgba(255, 255, 255, 0.96);
|
||
}
|
||
|
||
.lightbox-history-prompt {
|
||
font-size: 11px;
|
||
line-height: 1.3;
|
||
color: rgba(255, 255, 255, 0.66);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.lightbox-history-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
.lightbox-history-btn {
|
||
height: 24px;
|
||
border-radius: 7px;
|
||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||
background: rgba(255, 255, 255, 0.08);
|
||
color: #fff;
|
||
font-size: 11px;
|
||
padding: 0 8px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.lightbox-history-btn:hover {
|
||
background: rgba(255, 255, 255, 0.16);
|
||
}
|
||
|
||
.lightbox-nav {
|
||
position: absolute;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
background: rgba(255, 255, 255, 0.1);
|
||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||
color: #fff;
|
||
width: 50px;
|
||
height: 50px;
|
||
border-radius: 50%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
z-index: 10000;
|
||
transition: all 0.2s;
|
||
backdrop-filter: blur(10px);
|
||
}
|
||
|
||
.lightbox-nav:hover {
|
||
background: rgba(255, 255, 255, 0.2);
|
||
border-color: rgba(255, 255, 255, 0.4);
|
||
}
|
||
|
||
.lightbox-nav:active {
|
||
transform: translateY(-50%) scale(0.95);
|
||
}
|
||
|
||
.lightbox-prev {
|
||
left: 30px;
|
||
}
|
||
|
||
.lightbox-next {
|
||
right: 30px;
|
||
}
|
||
|
||
.lightbox-nav:disabled {
|
||
opacity: 0.3;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
.lightbox-nav:disabled:hover {
|
||
background: rgba(255, 255, 255, 0.1);
|
||
border-color: rgba(255, 255, 255, 0.2);
|
||
transform: translateY(-50%);
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.lightbox-nav {
|
||
width: 40px;
|
||
height: 40px;
|
||
}
|
||
|
||
.lightbox-prev {
|
||
left: 15px;
|
||
}
|
||
|
||
.lightbox-next {
|
||
right: 15px;
|
||
}
|
||
|
||
.lightbox-editor {
|
||
width: calc(100vw - 20px);
|
||
left: 10px;
|
||
transform: translateY(calc(var(--keyboard-shift) * -1));
|
||
bottom: 10px;
|
||
padding: 8px;
|
||
}
|
||
|
||
.lightbox-edit-layout {
|
||
grid-template-columns: 1fr;
|
||
gap: 8px;
|
||
}
|
||
|
||
.lightbox-history-panel {
|
||
max-height: 220px;
|
||
}
|
||
|
||
.lightbox-edit-main {
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
gap: 8px;
|
||
}
|
||
|
||
.lightbox-edit-send {
|
||
width: 100%;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 900px) {
|
||
.imagine-top-grid {
|
||
gap: 12px;
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.imagine-card,
|
||
.imagine-card.settings-card {
|
||
padding: 12px;
|
||
border-radius: 12px;
|
||
}
|
||
|
||
.status-header-row,
|
||
.card-title-row {
|
||
margin-bottom: 8px;
|
||
gap: 8px;
|
||
}
|
||
|
||
.waterfall-header {
|
||
margin-bottom: 10px;
|
||
min-height: 24px;
|
||
}
|
||
|
||
.waterfall {
|
||
gap: 8px;
|
||
}
|
||
|
||
.waterfall-item,
|
||
.waterfall-item img {
|
||
border-radius: 10px;
|
||
}
|
||
|
||
.waterfall-item img {
|
||
border-radius: 10px 10px 0 0;
|
||
}
|
||
|
||
.waterfall-meta {
|
||
padding: 6px 8px;
|
||
font-size: 10px;
|
||
gap: 6px;
|
||
border-radius: 0 0 10px 10px;
|
||
}
|
||
|
||
.copy-parent-id-btn {
|
||
padding: 3px 7px;
|
||
font-size: 9px;
|
||
}
|
||
|
||
.imagine-empty {
|
||
min-height: 128px;
|
||
padding: 18px 10px;
|
||
}
|
||
|
||
.settings-prompt .imagine-textarea {
|
||
min-height: 84px;
|
||
}
|
||
|
||
.floating-actions {
|
||
display: none !important;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 560px) {
|
||
.waterfall {
|
||
grid-template-columns: repeat(2, 1fr);
|
||
}
|
||
}
|
||
|
||
@media (max-width: 360px) {
|
||
.waterfall {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
}
|
||
|
||
/* ============================
|
||
移动端 Sticky Bar im-sticky-bar(<=900px)
|
||
============================ */
|
||
@media (max-width: 900px) {
|
||
body {
|
||
padding-bottom: 72px !important;
|
||
}
|
||
|
||
.im-sticky-bar {
|
||
position: fixed;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
z-index: 200;
|
||
background: #fff;
|
||
border-top: 1px solid var(--border);
|
||
padding: 10px 16px;
|
||
padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
|
||
box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.07);
|
||
}
|
||
|
||
.im-sticky-bar-inner {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
max-width: 700px;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.im-icon-divider {
|
||
width: 1px;
|
||
height: 24px;
|
||
background: var(--border);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.im-icon-group {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
flex: 1;
|
||
justify-content: center;
|
||
}
|
||
|
||
.im-icon-btn {
|
||
width: 40px;
|
||
height: 40px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 10px;
|
||
background: #fff;
|
||
color: var(--fg);
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
flex-shrink: 0;
|
||
transition: background .15s ease, border-color .15s ease;
|
||
position: relative;
|
||
padding: 0;
|
||
}
|
||
|
||
.im-icon-btn:active {
|
||
background: var(--accents-1);
|
||
}
|
||
|
||
.im-icon-btn--danger {
|
||
color: #ef4444;
|
||
border-color: #fecaca;
|
||
}
|
||
|
||
.im-icon-btn--danger:active {
|
||
background: #fef2f2;
|
||
}
|
||
|
||
.im-selected-badge {
|
||
position: absolute;
|
||
top: -4px;
|
||
right: -4px;
|
||
min-width: 16px;
|
||
height: 16px;
|
||
padding: 0 4px;
|
||
border-radius: 999px;
|
||
background: #ef4444;
|
||
color: #fff;
|
||
font-size: 9px;
|
||
font-weight: 700;
|
||
line-height: 16px;
|
||
text-align: center;
|
||
display: none;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.im-selected-badge.visible {
|
||
display: block;
|
||
}
|
||
|
||
.im-main-btn {
|
||
height: 40px;
|
||
padding: 0 18px;
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
flex-shrink: 0;
|
||
border-radius: 10px;
|
||
min-width: 88px;
|
||
justify-content: center;
|
||
}
|
||
|
||
.im-main-btn.is-stop {
|
||
background: #fee2e2 !important;
|
||
color: #ef4444 !important;
|
||
border: 1px solid #fecaca !important;
|
||
}
|
||
|
||
.im-settings-overlay {
|
||
display: none;
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 300;
|
||
background: rgba(0, 0, 0, 0.38);
|
||
backdrop-filter: blur(2px);
|
||
-webkit-backdrop-filter: blur(2px);
|
||
}
|
||
|
||
.im-settings-overlay.active {
|
||
display: block;
|
||
}
|
||
|
||
.im-settings-sheet {
|
||
position: fixed;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
z-index: 301;
|
||
background: #fff;
|
||
border-radius: 20px 20px 0 0;
|
||
padding: 0 16px 24px;
|
||
padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
|
||
max-height: 88vh;
|
||
overflow-y: auto;
|
||
box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
|
||
transition: transform .28s cubic-bezier(.2, 0, 0, 1);
|
||
transform: translateY(100%);
|
||
}
|
||
|
||
.im-settings-sheet.open {
|
||
transform: translateY(0);
|
||
}
|
||
|
||
.im-settings-sheet-handle {
|
||
display: flex;
|
||
justify-content: center;
|
||
padding: 12px 0 8px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.im-settings-sheet-handle::after {
|
||
content: '';
|
||
width: 36px;
|
||
height: 4px;
|
||
border-radius: 999px;
|
||
background: var(--border);
|
||
}
|
||
|
||
.im-settings-sheet-title {
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
color: var(--accents-7);
|
||
margin-bottom: 14px;
|
||
text-align: center;
|
||
}
|
||
}
|
||
|
||
html[data-theme='dark'] .im-sticky-bar {
|
||
background: #111821;
|
||
border-top-color: #2b3440;
|
||
box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
|
||
}
|
||
|
||
html[data-theme='dark'] .im-icon-btn {
|
||
background: #1a2330;
|
||
border-color: #3b4654;
|
||
color: #c9d6e5;
|
||
}
|
||
|
||
html[data-theme='dark'] .im-icon-btn:active {
|
||
background: #243244;
|
||
}
|
||
|
||
html[data-theme='dark'] .im-main-btn.is-stop {
|
||
background: #2d1414 !important;
|
||
color: #f87171 !important;
|
||
border-color: #7f1d1d !important;
|
||
}
|
||
|
||
html[data-theme='dark'] .im-settings-sheet {
|
||
background: #111821;
|
||
color: #e2e8f0;
|
||
}
|
||
|
||
/* Bottom Sheet 内设置项:单列布局 */
|
||
.im-settings-sheet .settings-grid {
|
||
grid-template-columns: 1fr !important;
|
||
grid-template-rows: auto !important;
|
||
}
|
||
.im-settings-sheet .settings-block {
|
||
grid-column: 1 !important;
|
||
grid-row: auto !important;
|
||
}
|
||
.im-settings-sheet .settings-row {
|
||
grid-template-columns: 1fr 1fr;
|
||
}
|
||
|
||
/* 移动端 settings-card 只剩提示词时的布局调整 */
|
||
@media (max-width: 900px) {
|
||
.settings-card .card-content {
|
||
margin-bottom: 0;
|
||
}
|
||
.settings-card .settings-block-prompt {
|
||
grid-column: 1 !important;
|
||
grid-row: auto !important;
|
||
}
|
||
}
|
||
|
||
/* ============================
|
||
PC 端隐藏 Imagine 移动端专属组件
|
||
============================ */
|
||
.im-sticky-bar,
|
||
.im-settings-overlay {
|
||
display: none !important;
|
||
}
|
||
|
||
@media (max-width: 900px) {
|
||
.im-sticky-bar {
|
||
display: flex !important;
|
||
}
|
||
}
|
||
|
||
/* ============================
|
||
Imagine Sticky Bar 样式分离修正
|
||
(暗色主题和 Bottom Sheet 内规则严格在移动端生效)
|
||
============================ */
|
||
@media (max-width: 900px) {
|
||
/* Bottom Sheet 内参数 */
|
||
.im-settings-sheet .settings-grid {
|
||
grid-template-columns: 1fr !important;
|
||
grid-template-rows: auto !important;
|
||
}
|
||
|
||
.im-settings-sheet .settings-block {
|
||
grid-column: 1 !important;
|
||
grid-row: auto !important;
|
||
}
|
||
|
||
.im-settings-sheet .settings-row {
|
||
grid-template-columns: 1fr 1fr;
|
||
}
|
||
|
||
/* 暗色主题(移动端,sticky bar 可见时) */
|
||
html[data-theme='dark'] .im-sticky-bar {
|
||
background: #111821 !important;
|
||
border-top-color: #2b3440 !important;
|
||
}
|
||
|
||
html[data-theme='dark'] .im-icon-btn {
|
||
background: #1a2330 !important;
|
||
border-color: #3b4654 !important;
|
||
color: #c9d6e5 !important;
|
||
}
|
||
|
||
html[data-theme='dark'] .im-icon-btn:active {
|
||
background: #243244 !important;
|
||
}
|
||
|
||
html[data-theme='dark'] .im-settings-sheet {
|
||
background: #111821 !important;
|
||
color: #e2e8f0 !important;
|
||
}
|
||
}
|