/* 模态窗口样式 */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: var(--z-modal); overflow-y: auto; /* 允许模态窗口内容滚动 */ -webkit-overflow-scrolling: touch; /* 为iOS设备提供平滑滚动 */ } /* 当模态窗口打开时,禁止body滚动 */ body.modal-open { position: fixed; width: 100%; padding-right: var(--scrollbar-width, 0px); /* 补偿滚动条消失导致的页面偏移 */ } .modal-content { position: relative; max-width: 800px; margin: 2rem auto; background: var(--lora-surface); border-radius: var(--border-radius-base); padding: var(--space-3); border: 1px solid var(--lora-border); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); transform: translateZ(0); /* 创建新的堆叠上下文 */ } /* Delete Modal specific styles */ .delete-modal-content { max-width: 500px; text-align: center; } .delete-message { color: var(--text-color); margin: var(--space-2) 0; } .delete-model-info { background: var(--lora-surface); border: 1px solid var(--lora-border); border-radius: var(--border-radius-sm); padding: var(--space-2); margin: var(--space-2) 0; color: var(--text-color); word-break: break-all; } /* Update delete modal styles */ .delete-modal { display: none; /* Set initial display to none */ position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: var(--z-overlay); } /* Add new style for when modal is shown */ .delete-modal.show { display: flex; align-items: center; justify-content: center; } .delete-modal-content { max-width: 500px; width: 90%; text-align: center; margin: 0 auto; position: relative; animation: modalFadeIn 0.2s ease-out; } .delete-model-info { /* Update info display styling */ background: var(--lora-surface); border: 1px solid var(--lora-border); border-radius: var(--border-radius-sm); padding: var(--space-2); margin: var(--space-2) 0; color: var(--text-color); word-break: break-all; text-align: left; line-height: 1.5; } @keyframes modalFadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } } .modal-actions { display: flex; gap: var(--space-2); justify-content: center; margin-top: var(--space-3); } .cancel-btn, .delete-btn { padding: 8px var(--space-2); border-radius: 6px; border: none; cursor: pointer; font-weight: 500; min-width: 100px; } .cancel-btn { background: var(--lora-surface); border: 1px solid var(--lora-border); color: var(--text-color); } .delete-btn { background: var(--lora-error); color: white; } .cancel-btn:hover { background: var(--lora-border); } .delete-btn:hover { opacity: 0.9; } .carousel { display: grid; grid-auto-flow: column; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; } .carousel img { scroll-snap-align: start; max-height: 60vh; object-fit: contain; } .carousel video { scroll-snap-align: start; max-height: 60vh; object-fit: contain; } .modal-content h2 { color: var(--text-color); margin-bottom: var(--space-2); font-size: 1.5em; } .description { color: var(--text-color); margin: var(--space-2) 0; line-height: 1.4; } .trigger-word-content { flex: 1; word-break: break-word; line-height: 1.4; } .trigger-word-copy { opacity: 0.5; color: var(--text-color); display: flex; align-items: center; justify-content: center; } /* Updated Trigger Words Section */ .trigger-words-container { display: grid; grid-template-columns: 200px 1fr; align-items: flex-start; gap: var(--space-2); margin: var(--space-2) 0; padding: var(--space-2); background: var(--lora-surface); border: 1px solid var(--lora-border); border-radius: var(--border-radius-sm); } .trigger-words-title { font-size: 0.95em; color: var(--text-color); text-align: center; display: flex; align-items: center; justify-content: center; min-height: 100%; } .trigger-words-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .trigger-word-tag { display: inline-flex; align-items: center; background: var(--lora-surface); border: 1px solid var(--lora-border); border-radius: var(--border-radius-xs); padding: 6px 10px; cursor: pointer; transition: all 0.2s ease; gap: 8px; max-width: 100%; } .trigger-word-content { color: oklch(65% 0.2 256); /* Accent color for trigger words */ font-size: 0.85em; line-height: 1.4; word-break: break-word; } .trigger-word-copy { display: flex; align-items: center; color: var(--text-color); opacity: 0.5; flex-shrink: 0; transition: opacity 0.2s; } .trigger-word-tag:hover { background: oklch(var(--lora-accent) / 0.1); border-color: var(--lora-accent); } .trigger-word-tag:hover .trigger-word-copy { opacity: 0.8; } .trigger-word-tag:active { transform: scale(0.98); } /* Download Modal Styles */ .download-step { margin: var(--space-2) 0; } .input-group { margin-bottom: var(--space-2); } .input-group label { display: block; margin-bottom: 8px; color: var(--text-color); } .input-group input, .input-group select { width: 100%; padding: 8px; border: 1px solid var(--border-color); border-radius: var(--border-radius-xs); background: var(--bg-color); color: var(--text-color); } .error-message { color: var(--lora-error); font-size: 0.9em; margin-top: 4px; } .version-list { max-height: 400px; overflow-y: auto; margin: var(--space-2) 0; display: flex; flex-direction: column; gap: 12px; padding: 1px; } .version-item { display: flex; gap: var(--space-2); padding: var(--space-2); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); cursor: pointer; transition: all 0.2s ease; background: var(--bg-color); margin: 1px; position: relative; } .version-item:hover { border-color: var(--lora-accent); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); z-index: 1; } .version-item.selected { border-color: var(--lora-accent); background: oklch(var(--lora-accent) / 0.1); } .close { position: absolute; top: var(--space-2); right: var(--space-2); background: transparent; border: none; color: var(--text-color); font-size: 1.5em; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; } .close:hover { opacity: 1; } .version-list { max-height: 400px; overflow-y: auto; margin: var(--space-2) 0; display: flex; flex-direction: column; gap: 12px; padding: 1px; /* Add padding to prevent border clipping */ } .version-item { display: flex; gap: var(--space-2); padding: var(--space-2); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); cursor: pointer; transition: all 0.2s ease; background: var(--bg-color); /* Add background color */ margin: 1px; /* Add margin to ensure hover effect visibility */ position: relative; /* Add position context */ } .version-item:hover { border-color: var(--lora-accent); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Replace transform with shadow */ z-index: 1; /* Ensure hover state appears above other items */ } .version-item.selected { border-color: var(--lora-accent); background: oklch(var(--lora-accent) / 0.1); } .version-thumbnail { width: 80px; height: 80px; flex-shrink: 0; border-radius: var(--border-radius-xs); overflow: hidden; background: var(--bg-color); } .version-thumbnail img { width: 100%; height: 100%; object-fit: cover; } .version-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .version-content h3 { margin: 0; font-size: 1.1em; color: var(--text-color); } .version-info { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.9em; color: var(--text-color); opacity: 0.8; } .version-info .base-model { background: oklch(var(--lora-accent) / 0.1); color: var(--lora-accent); padding: 2px 8px; border-radius: var(--border-radius-xs); } .version-meta { display: flex; gap: 12px; font-size: 0.85em; color: var(--text-color); opacity: 0.7; } .version-meta span { display: flex; align-items: center; gap: 4px; } .folder-browser { border: 1px solid var(--border-color); border-radius: var(--border-radius-xs); padding: var(--space-1); max-height: 200px; overflow-y: auto; } /* Settings styles */ .settings-toggle { width: 36px; height: 36px; border-radius: 50%; background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-color); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; } .settings-toggle:hover { background: var(--lora-accent); color: white; transform: translateY(-2px); } .settings-modal { max-width: 500px; } /* Settings Links */ .settings-links { margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--lora-border); display: flex; gap: var(--space-2); justify-content: center; } .settings-link { width: 36px; height: 36px; border-radius: 50%; background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-color); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; text-decoration: none; position: relative; } .settings-link:hover { background: var(--lora-accent); color: white; transform: translateY(-2px); } .settings-link i { font-size: 1.1em; } /* Tooltip styles */ .settings-link::after { content: attr(title); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.8); color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.8em; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; pointer-events: none; } .settings-link:hover::after { opacity: 1; visibility: visible; } /* Responsive adjustment */ @media (max-width: 480px) { .settings-links { flex-wrap: wrap; } } .api-key-input { position: relative; display: flex; align-items: center; } .api-key-input input { padding-right: 40px; } .api-key-input .toggle-visibility { position: absolute; right: 8px; background: none; border: none; color: var(--text-color); opacity: 0.6; cursor: pointer; padding: 4px 8px; } .api-key-input .toggle-visibility:hover { opacity: 1; } .input-help { font-size: 0.85em; color: var(--text-color); opacity: 0.8; margin-top: 4px; } .folder-item { padding: 8px; cursor: pointer; border-radius: var(--border-radius-xs); transition: background-color 0.2s; } .folder-item:hover { background: var(--lora-surface); } .folder-item.selected { background: oklch(var(--lora-accent) / 0.1); border: 1px solid var(--lora-accent); } /* Path Preview Styles */ .path-preview { margin-bottom: var(--space-3); padding: var(--space-2); background: var(--bg-color); border-radius: var(--border-radius-sm); border: 1px dashed var(--border-color); } .path-preview label { display: block; margin-bottom: 8px; color: var(--text-color); font-size: 0.9em; opacity: 0.8; } .path-display { padding: var(--space-1); color: var(--text-color); font-family: monospace; font-size: 0.9em; line-height: 1.4; white-space: pre-wrap; word-break: break-all; opacity: 0.85; background: var(--lora-surface); border-radius: var(--border-radius-xs); } .path-text { color: var(--text-color); } .path-preview { margin-top: var(--space-2); padding: var(--space-2); background: var(--lora-surface); border: 1px solid var(--lora-border); border-radius: var(--border-radius-sm); } .path-preview label { display: block; margin-bottom: 8px; color: var(--text-color); font-size: 0.9em; } .path-display { display: flex; align-items: center; gap: 8px; padding: var(--space-1); background: var(--bg-color); border: 1px solid var(--border-color); border-radius: var(--border-radius-xs); color: var(--text-color); font-family: monospace; font-size: 0.9em; overflow-x: auto; white-space: nowrap; } .path-display i { color: var(--lora-accent); opacity: 0.8; } .path-text { color: var(--text-color); opacity: 0.9; }