/* ========================================================================== 🎨 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: 30%; --preview-max-width: 280px; --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; /* ⚠️ 必须 minmax(0, xfr):1fr = minmax(auto, 1fr),auto 下限 = min-content 长文件名(nowrap)会把中间列顶到 900+,左右栏被挤窄 → 每次切卡整页重排 */ grid-template-columns: minmax(0, 6fr) minmax(0, 7fr) minmax(0, 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; min-width: 0; /* ← grid/flex 子项默认 min-width:auto,会顶住下限 */ } .left-panel { height: fit-content; max-height: calc(100vh - 40px); overflow-y: auto; } .middle-panel { height: calc(100vh - 40px); display: flex; flex-direction: column; gap: 16px; } /* 顶部预览卡片:高度**写死**,三态一致(否则图库高度会跟着抖) */ .preview-card-panel { flex: 0 0 auto; height: calc(var(--media-h) + 84px); /* media260 + gap12 + HUD32 + padding40 */ display: flex; flex-direction: column; gap: 12px; overflow: hidden; } /* 底部图库卡片:占据剩余所有空间 */ .gallery-card-panel { flex: 1; /* 撑满剩余高度 */ display: flex; flex-direction: column; overflow: hidden; /* 防止内部溢出 */ } .right-panel { max-height: calc(100vh - 40px); height: 100%; display: flex; flex-direction: column; gap: 16px; } .output-card, .logs-card { width: 100%; height: auto; } .logs-card{ display: flex; flex-direction: column; flex: 1; max-height: 240px; min-height: 0; } .log-panel{ display: flex; flex-direction: column; flex: 1; min-height: 0; } .terminal-wrapper{ position: relative; min-width: 0; display: flex; flex-direction: column; flex: 1; min-height: 0; } .output-card{ aspect-ratio: 1 / 1; /* 核心属性:强制高度永远等于当前宽度 */ height: auto; /* 清除之前可能写死的固定 height 或 flex-grow */ flex: none; /* 如果父容器是 flex-col,防止它被强行拉伸 */ min-height: 50%; } /* 图像预览区容器 */ .image-preview-box { width: 100%; max-width: 100%; height: 100%; flex-shrink: 0; border-radius: 0px; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; margin: 0 auto; } #result-image { width: 100%; height: 100%; object-fit: contain; display: none; opacity: 0; /* ← 新增:隐藏态先透明,避免空 src / 半加载闪烁 */ transform: scale(.965); /* ← 新增:reveal 前就保持在初始缩放,防止任何一帧跳变 */ will-change: opacity, transform; } /* ========================================================================== 🧩 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: calc(13px * var(--base-scale)); } .header-title-group .gallery-link { color: var(--text-muted); text-decoration: none; font-weight: normal; transition: color .15s ease; font-size: calc(13px * var(--base-scale)); } /* 与 .pi-action:hover 完全一致:只变 accent,不加下划线 */ .header-title-group .gallery-link:hover { color: var(--accent); text-decoration: none; } .header-row h2 { margin: 0; font-weight: 600; font-size: calc(13px * var(--base-scale)); color: var(--text-muted); letter-spacing: 0.16em; text-transform: uppercase; } .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); } /* Prompt 标签右侧的状态文字:默认不可点,只有 "use author preset" 时变成 accent 可点 */ .label-hint { margin-left: 8px; font-weight: 600; font-size: calc(11px * var(--base-scale)); color: var(--text-muted); text-transform: none; letter-spacing: 0; user-select: none; } .label-hint.clickable { color: var(--accent); cursor: pointer; } .label-hint.clickable:hover { text-decoration: underline; } .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); letter-spacing: .16em; text-transform: uppercase; color: white; border: none; cursor: pointer; font-weight: bold; padding: 12px; border-radius: 6px; font-size: calc(13px * 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); } /* ========================================================================== 🖼️ Preview Card(无内层边框;媒体位置三态恒定;右列垂直居中) ========================================================================== */ :root { --media-h: 200px; /* 媒体高度(唯 一 的缩放开关)→ 150×200 */ --media-w: calc(var(--media-h) * 3 / 4); --preview-radius: 8px; } .preview-wrapper { width: 100%; min-height: 0; } .preview-card { display: flex; align-items: stretch; gap: 20px; height: var(--media-h); } /* --- 左侧媒体槽位 --- */ .preview-media { position: relative; flex: 0 0 var(--media-w); width: var(--media-w); height: 100%; border-radius: var(--preview-radius); overflow: hidden; border: 0.5px solid var(--border); } .preview-media .preview-placeholder, .preview-media .selected-big-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; } /* 空态:只有虚线框,不写文字(文字交给右列) */ .preview-media .preview-placeholder { display: flex; align-items: center; justify-content: center; border: 1px dashed #2c2c2c; border-radius: var(--preview-radius); color: var(--text-muted); user-select: none; } /* 可选:空框里放一个极小的图标(不写字) */ .preview-placeholder::before { content: ""; width: 24px; height: 24px; opacity: .28; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm1 2v9l4-4 3 3 3-3 4 4V7H5z'/%3E%3C/svg%3E") center / contain no-repeat; } .preview-media .selected-big-img { display: none; object-fit: cover; object-position: center top; border-radius: var(--preview-radius); } /* --- 右侧信息列:顶部对齐(位置恒定,不再因内容高度变化而跳动) --- */ .preview-info { flex: 1 1 auto; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; } .pi-empty { /* 空态只有一个子元素:auto margin 会吃掉剩余高度 → 垂直居中; 选中态时这个元素 display:none,完全不影响标题的顶部对齐 */ margin-block: auto; padding-right: 12px; color: var(--text-muted); font-size: calc(13px * var(--base-scale)); line-height: 1.6; } /* 窄屏竖向堆叠时,不要 auto margin(否则会把卡片撑高) */ @media (max-width: 640px) { .pi-empty { margin-block: 12px; padding-right: 0; } } .pi-content { display: none; /* JS 切到 flex */ flex-direction: column; gap: 0; /* ← 间距改由各块自己负租,让 trigger 紧贴下划线 */ height: 100%; /* 让 trigger 区能吃掉剩余高度 */ min-height: 0; overflow: hidden; } .pi-title { flex: 0 0 auto; /* 不再预留 2 行:标题有几行就占几行 —— 你看到的那个"大缝"就是预留出来的空行 */ margin-bottom: 3px; /* 主 → 副标题的紧凑间距 */ font-size: calc(14px * var(--base-scale)); font-weight: 600; color: var(--text-main); line-height: 1.35; word-break: break-word; overflow-wrap: anywhere; /* 🛡 兜底:超长无空格 token 也能断行,绝不横向溢出 */ display: -webkit-box; -webkit-line-clamp: 2; /* 超过 2 行 → 第二行末尾自然裁掉 */ -webkit-box-orient: vertical; overflow: hidden; } /* 名字行:独占整行,超宽省略 */ .pi-meta { display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; min-width: 0; flex: 0 0 auto; overflow: hidden; margin-bottom: 6px; } .pi-filename { flex: 1 1 auto; /* 现在它独占整行,能用到 100% 宽度 */ min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; /* 超过宽度 → … */ } /* 链接行:独立一行;这条 border 就是 TRIGGER 区的上界(同时也是"无 trigger 时"的那条线) */ .pi-actions { display: flex; flex-wrap: wrap; /* 三个链接在窄屏可换行,但同一次打开内不会跳动 */ align-items: center; gap: 4px 10px; flex: 0 0 auto; min-height: 1.35em; /* 🛡 兜底:没有链接的卡片(如 pony)也占一行高, 否则"有链接/无链接"两组卡片会让下面的 TRIGGER 差 15px */ padding-bottom: 8px; border-bottom: 1px solid #2a2a2a; white-space: nowrap; } .pi-action { font-size: 11px; color: var(--text-muted); text-decoration: none; white-space: nowrap; transition: color .15s ease; } .pi-action:hover { color: var(--accent); } /* --- 触发词块:顶部那条 border 就是"标题的下划线",同时充当滚动区上界; 底部不加任何线,改用一层渐隐,避免"两条线夹着 trigger" --- */ .pi-trigger { display: none; /* JS 切到 flex */ position: relative; flex-direction: column; flex: 1 1 auto; min-height: 0; margin-top: 0; /* margin/padding 都归零:clip 线 = 链接行下划线 */ padding-top: 0; border-top: none; /* 下划线现在归 .pi-actions 的 border-bottom */ overflow: hidden; } /* 底部渐隐:既是"滚动区下界"的视觉提示,又不会多出一条线 */ .pi-trigger::after { content: ""; position: absolute; left: 0; right: 8px; /* 给滚动条留出位置,避免把滑块也渐隐掉 */ bottom: 0; height: 18px; pointer-events: none; background: linear-gradient(to bottom, rgba(30, 30, 30, 0), var(--panel-bg)); } /* --- 底部 HUD:与左侧 Base LoRA 行同构(☑ + 名字 + 强度) --- */ .selected-hud-bar { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 32px; font-size: calc(14px * var(--base-scale)); overflow: hidden; } .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-name.is-none { color: var(--text-muted); font-weight: normal; } .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; } .hud-strength-group input:disabled { opacity: .45; cursor: not-allowed; } /* 小屏矮视口:再缩一档 */ @media (max-height: 820px) { :root { --media-h: 168px; } } /* 图库滚动容器与网格 */ .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, minmax(0, 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 { letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); font-size: calc(13px * 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-header-title{ letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); font-size: calc(14px * var(--base-scale)); } /* 日志输出面板 */ .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: 100%; 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; } } /* 窄屏:纵向堆叠,高度放开(单列滚动本来就自然,固定高度反而浪费) */ @media (max-width: 640px) { .preview-card-panel { height: auto; } .preview-card { flex-direction: column; height: auto; gap: 12px; } .preview-media { flex: 0 0 auto; width: min(58%, 220px); height: auto; aspect-ratio: 3 / 4; align-self: center; } .preview-info { height: auto; justify-content: flex-start; overflow: visible; } .pt-scroll { overflow: visible; } } 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; } /* Fix 2: 大图加载中的扫光脉冲背景(复用 shimmer-bg-pulse,视觉与 bigImage 扫光一致) */ .preview-media.loading { 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); } /* 禁用态:整块变灰,勾选后的橙色也降为中性灰 */ input[type="checkbox"]:disabled { opacity: .45; cursor: not-allowed; border-color: #3a3a3a !important; } input[type="checkbox"]:disabled:checked { background-color: #4a4a4a !important; border-color: #4a4a4a !important; } /* ========================================================================== 🎲 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; } /* ========================================================================== 🏷️ Trigger Words(chips 横排换行;无展开动画;无空态占位) ========================================================================== */ /* 现在它是滚动区里的第一行:跟着 chips 一起滚走 */ .pt-label { display: block; flex: 0 0 auto; padding-top: 8px; /* 只在滚到顶时有呼吸感;滚走后不占位 */ font-size: calc(11px * var(--base-scale)); color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: .1em; line-height: 1; margin-bottom: 8px; } .pt-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; /* ⚠️ 不能用负 margin 把滚动条推出父级:.pi-trigger 是 overflow:hidden,会连滚动条一起裁掉 */ padding-right: 4px; /* 不用 scrollbar-width/thin:Chrome 下它会覆盖 ::-webkit-scrollbar,实测占位 10px 而不是 6px */ } /* WebKit:6px、比面板底色亮一档,保证"有没有滚动"一眼可辨 */ .pt-scroll::-webkit-scrollbar { width: 6px; height: 6px; } .pt-scroll::-webkit-scrollbar-track { background: transparent; } .pt-scroll::-webkit-scrollbar-thumb { background: #5a5a5a; border-radius: 3px; } .pt-scroll::-webkit-scrollbar-thumb:hover { background: #7a7a7a; } .pt-scroll.is-scrolled::before { opacity: 1; } .pt-list { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; } .pt-box { max-width: 100%; padding: 4px 8px; border-radius: 6px; cursor: pointer; background: var(--input-bg); transition: background .15s ease; } .pt-box:hover { background: var(--border); } .pt-text { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.65rem; line-height: 1.3; color: #e8e8e8; word-break: break-word; } .pt-box.copied { background: #2f2f2f; } .pt-box.copied .pt-text { color: #e8e8e8; } /* ========================================================================== ⏳ Generation Loader(灰色点阵扩散 + 淡出) ========================================================================== */ .gen-loader { position: absolute; inset: 0; z-index: 5; display: none; /* ← 关键:默认不渲染,之前就是丢了这段 */ flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: var(--panel-bg); opacity: 0; transition: opacity .3s ease; pointer-events: none; } .gen-loader.active { display: flex; } .gen-loader.visible { opacity: 1; } .gen-loader.fading { opacity: 0; } .gen-loader-dots { display: grid; grid-template-columns: repeat(7, 15px); /* 精准 7×7 网格,保持你喜欢的 15px 宽松间距 */ grid-auto-rows: 15px; justify-items: center; align-items: center; } .gen-loader-dots i { /* 1. 静态尺寸由 JS 按距离直接赋予,天生自带“中心大、边缘针尖”的球体梯度! */ width: var(--size, 6px); height: var(--size, 6px); border-radius: 50%; /* 直接使用 JS 按距离分配的专属亮度颜色 */ background: var(--border-light); /* 2. 动画不再归零破坏梯度,而是在各自静态大小的基础上做 0.35 ~ 1.35 倍的涟漪起伏 */ transform: scale(0); opacity: 0.35; animation: genDotWave 2.2s ease-in-out infinite; animation-delay: var(--d, 0s); } @keyframes genSphereRipple { 0%, 100% { transform: scale(0); opacity: 0; } 30% { transform: scale(1.35); opacity: 1; } 65% { transform: scale(0); opacity: 0; } } /* 关键:波峰极窄(只在 25% 处瞬间冲顶),其余时间全部保持针尖大小 */ /* @keyframes genRipplePulse { 0%, 100% { transform: scale(0.08); opacity: 0.22; } 25% { transform: scale(1.1); opacity: 1; } 55% { transform: scale(0.08); opacity: 0.22; } } */ /* 中心 0 → 十字 0.12s → 四角 0.24s,向外扩散 */ /* .gen-loader-dots i:nth-child(1) { animation-delay: .24s; } .gen-loader-dots i:nth-child(2) { animation-delay: .12s; } .gen-loader-dots i:nth-child(3) { animation-delay: .24s; } .gen-loader-dots i:nth-child(4) { animation-delay: .12s; } .gen-loader-dots i:nth-child(5) { animation-delay: 0s; } .gen-loader-dots i:nth-child(6) { animation-delay: .12s; } .gen-loader-dots i:nth-child(7) { animation-delay: .24s; } .gen-loader-dots i:nth-child(8) { animation-delay: .12s; } .gen-loader-dots i:nth-child(9) { animation-delay: .24s; } */ @keyframes genDotWave { 0%, 100% { opacity: .18; transform: scale(.55); background: var(--border-light); } 45% { opacity: .95; transform: scale(1); background: #8f8f8f; } 65% { opacity: .70; transform: scale(.85); background: var(--border-light); } } .gen-loader-text { font-size: calc(12px * var(--base-scale)); letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); animation: genTextPulse 2.2s ease-in-out infinite } @keyframes genTextPulse { 0%, 100% { opacity: .40; } 50% { opacity: .90; } } #result-image.reveal { animation: genImageReveal .55s cubic-bezier(.22, .61, .36, 1) both; opacity: 1; /* ← 新增:动画结束后的最终态兜底 */ transform: scale(1); } @keyframes genImageReveal { from { opacity: 0; transform: scale(.965); } to { opacity: 1; transform: scale(1); } }