/* AI 工具页 · scoped 样式 入口页 .asset-factory 对照影擎 image-create(三张工具卡 + 最近创作)。 工作室壳 .image-workbench 仍对照 public/exact/{model-photo,platform-cover,image-optimize}.html。 不重写共享 .btn/.pill/.input/.chip/.modal。 */ /* ============================================================ A · 图片生成入口(.asset-factory) · 对照影擎 image-create ============================================================ */ .asset-factory { --klein: #002fa7; --klein-hover: #002680; --af-black: #101012; --af-muted: #6f747c; --af-line: rgba(34, 42, 54, 0.10); --af-wash: rgba(34, 42, 54, 0.045); --af-shadow: 0 8px 18px rgba(20, 27, 38, 0.075); width: 100%; max-width: none; box-sizing: border-box; /* 抵消 .content 的 24/28/60,网格底铺满主区。正文对照影擎 .content:1560 居中 */ margin: -24px -28px -60px; padding: 52px clamp(40px, 3.2vw, 68px) 48px; } @media (max-width: 1100px) { .asset-factory { margin: -28px -24px -48px; } } .asset-factory .asset-factory-inner { width: min(1560px, 100%); margin: 0 auto; } .asset-factory .af-page-head { min-height: 76px; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 34px; } .asset-factory .af-page-head h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--accent-black); } .asset-factory .af-page-head p { margin: 0; color: var(--af-muted); font-size: 15px; } .asset-factory .af-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .asset-factory .af-tool { position: relative; width: 100%; min-height: 268px; display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid var(--af-line); border-radius: 14px; color: var(--accent-black); background: var(--af-wash); box-shadow: var(--af-shadow); font: inherit; text-align: left; cursor: pointer; transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease; } .asset-factory .af-tool:hover { transform: translateY(-4px); background: rgba(34, 42, 54, 0.075); box-shadow: 0 15px 32px rgba(20, 27, 38, 0.13); } .asset-factory .af-tool-cover { width: calc(100% + 2px); height: 158px; flex: 0 0 158px; margin: -1px -1px 0; overflow: hidden; border-radius: 14px 14px 0 0; background: #e8e9ec; } .asset-factory .af-tool-cover img, .asset-factory .af-media-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; } .asset-factory .af-tool-body { flex: 1; padding: 19px 20px 20px; } .asset-factory .af-tool-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; } .asset-factory .af-tool-title h3 { margin: 0; font-size: 18px; font-weight: 600; } .asset-factory .af-tool-title svg { width: 21px; height: 21px; flex: 0 0 auto; color: var(--klein); } .asset-factory .af-tool-body p { margin: 9px 0 0; color: var(--af-muted); font-size: 13px; line-height: 1.65; } .asset-factory .af-section { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 32px 0 17px; } .asset-factory .af-section h2 { margin: 0; font-size: 21px; font-weight: 600; color: var(--accent-black); } .asset-factory .af-section p { margin: 5px 0 0; color: var(--af-muted); font-size: 13px; } .asset-factory .af-toolbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 14px; border: 1px solid rgba(34, 42, 54, 0.09); border-radius: 13px; background: var(--af-wash); box-shadow: 0 7px 17px rgba(20, 27, 38, 0.07); } .asset-factory .af-seg { display: flex; align-items: center; gap: 8px; } .asset-factory .af-seg-btn { height: 38px; padding: 0 16px; border: 0; border-radius: 9px; color: #50555d; background: transparent; font: inherit; font-size: 14px; cursor: pointer; transition: color 160ms ease, background-color 160ms ease; } .asset-factory .af-seg-btn:hover { color: var(--accent-black); } .asset-factory .af-seg-btn.active { color: #fff; background: var(--af-black); } .asset-factory .af-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .asset-factory .af-search { width: 250px; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--af-line); border-radius: 10px; background: #fff; } .asset-factory .af-search svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--af-muted); } .asset-factory .af-search input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; color: var(--accent-black); } .asset-factory .af-search input::placeholder { color: var(--af-muted); } .asset-factory .af-search:focus-within { border-color: rgba(0, 47, 167, 0.36); box-shadow: 0 0 0 3px rgba(0, 47, 167, 0.07); } .asset-factory .af-select { position: relative; width: 150px; flex: 0 0 150px; z-index: 40; } .asset-factory .af-select-trigger { width: 100%; height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 13px; border: 1px solid rgba(34, 42, 54, 0.12); border-radius: 10px; color: var(--accent-black); background: #fff; font: inherit; font-size: 12px; text-align: left; cursor: pointer; } .asset-factory .af-select-trigger:hover, .asset-factory .af-select.open .af-select-trigger { border-color: rgba(0, 47, 167, 0.36); } .asset-factory .af-select.open .af-select-trigger { box-shadow: 0 0 0 3px rgba(0, 47, 167, 0.07); } .asset-factory .af-select-trigger svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--af-muted); transition: transform 180ms ease; } .asset-factory .af-select.open .af-select-trigger svg { transform: rotate(180deg); } .asset-factory .af-select-menu { position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 120; display: grid; gap: 3px; padding: 6px; border: 1px solid var(--af-line); border-radius: 11px; background: #fff; box-shadow: 0 14px 34px rgba(20, 27, 38, 0.14); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-5px); } .asset-factory .af-select.open .af-select-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); } .asset-factory .af-select-option { min-height: 38px; padding: 0 10px; border: 0; border-radius: 8px; color: var(--accent-black); background: #fff; font: inherit; font-size: 13px; text-align: left; cursor: pointer; } .asset-factory .af-select-option:hover { background: #e8f2ff; } .asset-factory .af-select-option.selected { color: var(--klein); background: #f3f7ff; font-weight: 600; } .asset-factory .af-view { display: flex; align-items: center; gap: 10px; } .asset-factory .af-view-btn { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(34, 42, 54, 0.11); border-radius: 10px; color: #393d44; background: rgba(34, 42, 54, 0.055); cursor: pointer; } .asset-factory .af-view-btn:hover, .asset-factory .af-view-btn.active { background: rgba(34, 42, 54, 0.11); } .asset-factory .af-view-btn svg { width: 16px; height: 16px; } .asset-factory .af-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px; margin-top: 18px; } .asset-factory .af-media { overflow: hidden; border: 1px solid var(--af-line); border-radius: 13px; background: rgba(34, 42, 54, 0.05); box-shadow: var(--af-shadow); cursor: pointer; outline: none; transition: transform 180ms ease, background-color 180ms ease; } .asset-factory .af-media:hover { transform: translateY(-3px); background: rgba(34, 42, 54, 0.08); } .asset-factory .af-media-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e5e6e9; } .asset-factory .af-media-meta { padding: 15px 16px 17px; } .asset-factory .af-media-meta h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--accent-black); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .asset-factory .af-media-meta p { margin: 0; color: var(--af-muted); font-size: 12px; } .asset-factory .af-meta-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; } .asset-factory .af-tag { display: inline-flex; align-items: center; height: 25px; padding: 0 9px; border-radius: 7px; color: #4c5360; background: rgba(34, 42, 54, 0.08); font-size: 11px; font-weight: 500; white-space: nowrap; } .asset-factory .af-tag.ok { color: #138d3f; background: rgba(22, 184, 78, 0.10); } .asset-factory .af-tag.info { color: var(--klein); background: rgba(0, 47, 167, 0.09); } .asset-factory .af-tag.err { color: #c73737; background: rgba(34, 42, 54, 0.08); } .asset-factory .af-tag.type.image { color: var(--klein); background: rgba(0, 47, 167, 0.09); } .asset-factory .af-media-grid.list { grid-template-columns: 1fr; } .asset-factory .af-media-grid.list .af-media { display: grid; grid-template-columns: 184px minmax(0, 1fr); align-items: stretch; min-height: 132px; } .asset-factory .af-media-grid.list .af-media-thumb { width: 184px; height: 132px; min-width: 0; aspect-ratio: auto; } .asset-factory .af-media-grid.list .af-media-meta { display: flex; min-width: 0; padding: 18px 22px; flex-direction: column; justify-content: center; } .asset-factory .af-media-grid.list .af-media-meta h3, .asset-factory .af-media-grid.list .af-media-meta p { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .asset-factory .list-pager { margin-top: 20px; } .asset-factory .af-empty { box-sizing: border-box; width: 100%; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; grid-column: 1 / -1; margin-top: 18px; padding: 28px 24px; border: 1px dashed rgba(0, 47, 167, 0.20); border-radius: 16px; color: var(--af-muted); background: rgba(0, 47, 167, 0.03); text-align: center; } .asset-factory .af-empty svg { display: block; flex-shrink: 0; width: 28px; height: 28px; color: var(--klein); opacity: 0.72; } .asset-factory .af-empty strong, .asset-factory .af-empty span { display: block; max-width: 28em; } .asset-factory .af-empty strong { color: var(--accent-black); font-size: 14px; font-weight: 600; } .asset-factory .af-empty span { font-size: 12px; } .asset-factory .task-empty { padding: 60px 20px; text-align: center; color: var(--af-muted); font-size: 13px; line-height: 1.6; } .asset-factory .task-empty .mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; margin-bottom: 6px; } @media (max-width: 1100px) { .asset-factory .af-tools { grid-template-columns: 1fr; } .asset-factory .af-toolbar { flex-wrap: wrap; } } @media (max-width: 720px) { .asset-factory .af-media-grid.list .af-media { grid-template-columns: 1fr; } .asset-factory .af-media-grid.list .af-media-thumb { width: 100%; height: auto; aspect-ratio: 16 / 10; } } /* ============================================================ B · 图片工作室壳(.image-workbench) 基线:model-photo / platform-cover(商品空间 + 表单 + 预览) 与 image-optimize(对话流)布局相近 — 统一为 mode 感知工作室。 在 .content 内铺满可用高度(shell 由 App.tsx 渲染,这里只占正文)。 ============================================================ */ .image-workbench { /* 抵消 .content 的 24/28/60 padding,让工作室壳贴边铺满(同旧 .tool-shell 思路)。 必须与 design-restraint.css .content 的 padding 严格一致:多减则顶部钻进 sticky topbar(被遮)、底部溢出视口(被裁)。 */ margin: -24px -28px -60px; height: calc(100vh - 116px); display: flex; flex-direction: column; background: var(--background-base); overflow: hidden; } /* <1100px 时 .content 改 28/24/48,负边距需同步,否则窄屏又会上下被遮/裁 */ @media (max-width: 1100px) { .image-workbench { margin: -28px -24px -48px; } } /* ════════════════════════════════════════════════ 通用:返回 pill(图片创作侧栏头 / 模特·平台侧栏头共用) ════════════════════════════════════════════════ */ .image-workbench .back-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px 0 11px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-pill); color: var(--accent-black); font-size: 13px; font-weight: 500; font-family: inherit; cursor: pointer; transition: background var(--t-base), border-color var(--t-base), color var(--t-base); } .image-workbench .back-pill:hover { background: var(--black-alpha-4); border-color: var(--black-alpha-24); color: var(--accent-black); } .image-workbench .back-pill svg { width: 14px; height: 14px; } /* ════════════════════════════════════════════════ mode=model / mode=cover · 外层两栏(商品空间 + 主区) 基线:model-photo.html / platform-cover.html ════════════════════════════════════════════════ */ .image-workbench.iw-prod { flex-direction: row; } .image-workbench .iw-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 260px minmax(0, 1fr); } @media (max-width: 1280px) { .image-workbench .iw-layout { grid-template-columns: 240px minmax(0, 1fr); } } @media (max-width: 1100px) { .image-workbench .iw-layout { grid-template-columns: 1fr; } } /* ── 最左 · 商品空间(单选) ── */ .image-workbench .iw-prod-space { background: var(--surface); border-right: 1px solid var(--border-faint); display: flex; flex-direction: column; min-height: 0; overflow: hidden; } /* 侧栏头部 · 返回(同基线 .mp-side-top) */ .image-workbench .iw-side-top { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; border-bottom: 1px solid var(--border-faint); } /* 商品列表标题行(// 商品空间) */ .image-workbench .iw-list-h { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 4px 14px 10px; } .image-workbench .iw-list-h .mono { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .06em; text-transform: uppercase; } /* 新建商品 主 CTA(转写自 model-photo.html .mp-list-h .new-prod) */ .image-workbench .iw-list-h .new-prod { margin-left: auto; height: 28px; padding: 0 12px 0 10px; display: inline-flex; align-items: center; gap: 6px; background: var(--heat); color: #fff; border: 1px solid var(--heat); border-radius: var(--r-sm); font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer; box-shadow: var(--shadow-cta); transition: filter var(--t-base), transform var(--t-fast), box-shadow var(--t-base); } .image-workbench .iw-list-h .new-prod:hover { filter: brightness(.96); box-shadow: var(--shadow-cta-hover); } .image-workbench .iw-list-h .new-prod:active { transform: scale(.98); } .image-workbench .iw-list-h .new-prod svg { width: 12px; height: 12px; } .image-workbench .iw-ps-search { position: relative; height: 32px; margin: 12px 14px 10px; } .image-workbench .iw-ps-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--black-alpha-48); z-index: 2; pointer-events: none; } .image-workbench .iw-ps-search input { width: 100%; height: 100%; padding: 0 10px 0 30px; background: var(--background-lighter); border: 1px solid var(--border-faint); border-radius: var(--r-sm); font-size: 13px; color: var(--accent-black); font-family: inherit; outline: none; transition: border-color var(--t-base), background var(--t-base); } .image-workbench .iw-ps-search input:focus { border-color: var(--heat-40); background: var(--surface); } .image-workbench .iw-ps-search input::placeholder { color: var(--black-alpha-48); } .image-workbench .iw-ps-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 10px; display: flex; flex-direction: column; gap: 4px; } .image-workbench .iw-prod-item { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid transparent; border-radius: var(--r-sm); cursor: pointer; text-align: left; background: transparent; font-family: inherit; transition: background var(--t-base), border-color var(--t-base); } .image-workbench .iw-prod-item:hover { background: var(--black-alpha-4); } .image-workbench .iw-prod-item.active { background: var(--heat-12); border-color: var(--heat-20); } .image-workbench .iw-prod-item .thumb { position: relative; flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--r-sm); } /* YYX#row22:商品预览右下角 · 未读生成任务分数(H22 示例) */ .image-workbench .iw-prod-item .thumb .iw-prod-unread { position: absolute; right: -4px; bottom: -4px; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; background: var(--heat); color: var(--accent-white); font-family: var(--font-mono); font-size: 10px; line-height: 1; font-weight: 600; border-radius: 999px; border: 2px solid var(--background-base); z-index: 2; } /* 不用 overflow:hidden 裁切(否则切掉右下角未读角标);改由 img 自己圆角 */ .image-workbench .iw-prod-item .thumb.has-real-media { background: var(--background-lighter); } .image-workbench .iw-prod-item .thumb.has-real-media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--r-sm); } .image-workbench .iw-prod-item .body { flex: 1; min-width: 0; } .image-workbench .iw-prod-item .nm { font-size: 13px; color: var(--accent-black); font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .image-workbench .iw-prod-item.active .nm { color: var(--heat); font-weight: 600; } .image-workbench .iw-prod-item .sub { margin-top: 2px; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .image-workbench .iw-ps-empty { padding: 24px 14px; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .04em; line-height: 1.7; } /* ── 主区 · flat 头部 + 参数/结果双栏(基线 .mp-main) ── */ .image-workbench .iw-main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; } .image-workbench .iw-main-h { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 12px 28px; border-bottom: 1px solid var(--border-faint); background: var(--surface); } .image-workbench .iw-main-h .cur-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; max-width: 50%; } .image-workbench .iw-main-h .cur-title .crumb { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .04em; flex-shrink: 0; } .image-workbench .iw-main-h .cur-title .nm { font-size: 15px; font-weight: 600; color: var(--accent-black); letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .image-workbench .iw-main-h .cur-title .nm.placeholder { font-weight: 400; font-size: 13px; color: var(--black-alpha-48); } .image-workbench .iw-main-h .spacer { flex: 1; } .image-workbench .iw-main-h .search-btn { width: 32px; height: 32px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-sm); color: var(--black-alpha-72); cursor: pointer; display: grid; place-items: center; transition: border-color var(--t-base), color var(--t-base); } .image-workbench .iw-main-h .search-btn:hover { border-color: var(--heat-20); color: var(--heat); } .image-workbench .iw-main-h .search-btn svg { width: 14px; height: 14px; } .image-workbench .iw-main-h .tb-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-sm); font-size: 13px; color: var(--black-alpha-72); font-family: inherit; cursor: pointer; transition: border-color var(--t-base), color var(--t-base); } .image-workbench .iw-main-h .tb-chip:hover { border-color: var(--heat-20); color: var(--heat); } .image-workbench .iw-main-h .tb-chip svg { width: 10px; height: 10px; color: var(--ink-3); } .image-workbench .iw-main-h .tb-menu-wrap { position: relative; } .image-workbench .iw-main-h .tb-search-wrap { display: inline-flex; align-items: center; } /* P0④「商品库」入口(打开 pl-modal 全屏选择器 · 二级胶囊) */ .image-workbench .iw-main-h .iw-pl-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-sm); color: var(--black-alpha-72); font-size: 13px; font-family: inherit; cursor: pointer; transition: border-color var(--t-base), color var(--t-base), background var(--t-base); } .image-workbench .iw-main-h .iw-pl-btn:hover { border-color: var(--heat-20); color: var(--heat); background: var(--heat-12); } .image-workbench .iw-main-h .iw-pl-btn svg { width: 13px; height: 13px; } .image-workbench .iw-main-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); } @media (max-width: 1280px) { .image-workbench .iw-main-body { grid-template-columns: 300px minmax(0, 1fr); } } @media (max-width: 1100px) { .image-workbench .iw-main-body { grid-template-columns: 1fr; } } /* ── 左 · 参数表单(基线 .mp-form / .pc-form) ── */ .image-workbench .iw-form { border-right: 1px solid var(--border-faint); background: var(--surface); overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; } .image-workbench .iw-step { margin-bottom: 22px; } .image-workbench .iw-step:last-of-type { margin-bottom: 0; } .image-workbench .iw-step-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; } .image-workbench .iw-step-h .num { width: 22px; height: 22px; border-radius: 50%; background: var(--heat-12); color: var(--heat); font-family: var(--font-mono); font-size: 12px; font-weight: 600; display: grid; place-items: center; flex-shrink: 0; } .image-workbench .iw-step-h .title { font-size: 14px; font-weight: 600; color: var(--accent-black); } .image-workbench .iw-step-h .right { font-size: 12px; color: var(--heat); cursor: pointer; } .image-workbench .iw-step-h .right:hover { text-decoration: underline; } .image-workbench .iw-sub-h { font-size: 12px; color: var(--black-alpha-48); margin-bottom: 6px; font-family: var(--font-mono); letter-spacing: .02em; } .image-workbench .iw-sub { margin-bottom: 12px; } .image-workbench .iw-sub:last-child { margin-bottom: 0; } /* 单选 pill row(比例 / 张数 / 风格) */ .image-workbench .pill-row { display: flex; gap: 6px; flex-wrap: wrap; } .image-workbench .pill-row .opt { flex: 1; min-width: 56px; height: 32px; background: var(--background-lighter); border: 1px solid var(--border-faint); border-radius: var(--r-sm); color: var(--black-alpha-72); font-size: 13px; cursor: pointer; font-family: inherit; transition: background var(--t-base), color var(--t-base), border-color var(--t-base); } .image-workbench .pill-row .opt:hover { color: var(--accent-black); } .image-workbench .pill-row .opt.active { background: var(--heat-12); color: var(--heat); border-color: var(--heat-40); font-weight: 600; } /* 手动输入比例:宽 : 高 两个数字框 */ .image-workbench .iw-ratio-manual { display: flex; align-items: center; gap: 8px; margin-top: 8px; } .image-workbench .iw-ratio-manual .input { flex: 1; min-width: 0; height: 32px; text-align: center; } .image-workbench .iw-ratio-manual .sep { color: var(--black-alpha-48); font-size: 13px; flex-shrink: 0; } /* ── 模特选择 · 3:4 矩形卡多选(基线 .model-card)── */ .image-workbench .model-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .image-workbench .model-card { position: relative; background: var(--background-lighter); border: 1px solid var(--border-faint); border-radius: var(--r-md); padding: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; text-align: left; font-family: inherit; transition: background var(--t-base), border-color var(--t-base); } .image-workbench .model-card:hover { background: var(--surface); } .image-workbench .model-card.selected { border-color: var(--heat); background: var(--heat-12); } .image-workbench .model-card .m-thumb { position: relative; aspect-ratio: 3/4; border-radius: var(--r-sm); overflow: hidden; } .image-workbench .model-card .m-thumb .placeholder { position: absolute; inset: 0; } .image-workbench .model-card .m-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--black-alpha-4); } /* 标题:遮罩层贴图片底部,白字单行省略,节省一行纵向空间 */ .image-workbench .model-card .m-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: 13px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0)); pointer-events: none; z-index: 1; } .image-workbench .model-card .m-check { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; background: var(--surface); border: 1.5px solid var(--black-alpha-24); border-radius: 50%; display: grid; place-items: center; color: var(--accent-white); z-index: 2; } .image-workbench .model-card .m-check svg { width: 11px; height: 11px; visibility: hidden; } .image-workbench .model-card.selected .m-check { background: var(--heat); border-color: var(--heat); } .image-workbench .model-card.selected .m-check svg { visibility: visible; } /* row40:模特改单选 —— 只一张卡,一列且宽度约等原双列模特卡,不留半宽空位;占位/已选同用 .model-card 故同尺寸 */ .image-workbench .model-grid.model-grid-single { grid-template-columns: minmax(0, 150px); } /* 未选时占位「+」卡(虚线,点击打开模特库);已选卡点击可换模特 */ .image-workbench .model-card.model-card-empty { border-style: dashed; border-color: var(--black-alpha-24); background: var(--background-lighter); } .image-workbench .model-card.model-card-empty:hover { border-color: var(--heat-40); background: var(--heat-12); } .image-workbench .model-card .m-thumb-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--black-alpha-48); } .image-workbench .model-card.model-card-empty:hover .m-thumb-empty { color: var(--heat); } .image-workbench .model-card .m-thumb-empty .m-empty-label { font-size: 12px; color: inherit; font-family: var(--font-mono); letter-spacing: .02em; } /* ── 平台选择 · 3 列卡多选(基线 .platform-card)── */ .image-workbench .platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .image-workbench .platform-card { position: relative; background: var(--background-lighter); border: 1px solid var(--border-faint); border-radius: var(--r-md); padding: 10px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-family: inherit; transition: background var(--t-base), border-color var(--t-base); } .image-workbench .platform-card:hover { background: var(--surface); } .image-workbench .platform-card.selected { border-color: var(--heat); background: var(--heat-12); } .image-workbench .platform-card .p-logo { width: 32px; height: 32px; border-radius: var(--r-md); display: grid; place-items: center; color: var(--accent-white); font-family: var(--font-mono); font-size: 12px; font-weight: 600; } .image-workbench .platform-card .p-name { font-size: 12px; color: var(--accent-black); font-weight: 500; } .image-workbench .platform-card.selected .p-name { color: var(--heat); } .image-workbench .platform-card .p-check { position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; border-radius: 50%; background: transparent; border: 1.5px solid var(--black-alpha-24); } .image-workbench .platform-card.selected .p-check { background: var(--heat); border-color: var(--heat); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.5'%3E%3Cpolyline points='3 8 7 12 13 4'/%3E%3C/svg%3E"); background-position: center; background-size: 10px 10px; background-repeat: no-repeat; border: 0; } /* 平台 logo 配色(基线 .p-logo.* · scoped 命名,不写裸色到全局) */ .image-workbench .p-logo-dy { background: #000; } .image-workbench .p-logo-tb { background: #ff6f00; } .image-workbench .p-logo-tm { background: #ff0036; } .image-workbench .p-logo-jd { background: #e1251b; } .image-workbench .p-logo-pdd { background: #e02e24; } .image-workbench .p-logo-xhs { background: #ff2741; } .image-workbench .p-logo-ks { background: #ff4906; } .image-workbench .p-logo-sph { background: #07c160; } .image-workbench .p-logo-amz { background: #ff9900; } .image-workbench .p-logo-al { background: #2c4af1; } /* YYX#row10:真平台 logo 图 —— 填满 logo 容器(平台卡 32 / 筛选 20 / 分组头 24); has-img 时容器底色改中性,真 logo 自带配色覆盖在上;图加载失败回退品牌色块字符 */ .image-workbench .p-logo.has-img, .image-workbench .cg-logo.has-img { background: var(--surface); overflow: hidden; } .image-workbench .p-logo-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; } /* ── 提示词框(YYX#7/R83 加大)+ 框内生图模型胶囊(YYX#10/R86 靠左置底)── 外层 .iw-prompt-box 即视觉上的「输入框」(复用 §4.3 输入族 default/hover/focus 三态), 内部 = 无边框 textarea(4-5 行起步,随内容自动增高,可手动拉伸)+ 底部工具条。 胶囊复用 chat 输入栏 .ic-param(r-pill 真胶囊 · 菜单向上弹),不再绝对定位盖在文字上。 */ .image-workbench .iw-prompt-box { background: var(--surface); border: 1px solid var(--black-alpha-12); border-radius: var(--r-md); display: flex; flex-direction: column; transition: border-color var(--t-base), box-shadow var(--t-base); } .image-workbench .iw-prompt-box:hover { border-color: var(--black-alpha-24); } .image-workbench .iw-prompt-box:focus-within { border-color: var(--heat-40); box-shadow: inset 0 0 0 1px var(--heat-40); } .image-workbench .iw-prompt-text { width: 100%; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 14px; line-height: 1.6; color: var(--accent-black); padding: 12px 14px 4px; min-height: 124px; /* 原共享 .textarea 88px → 约 4-5 行起步 */ max-height: 360px; resize: vertical; /* 允许手动拉伸(容器随之增高) */ field-sizing: content; /* 支持的浏览器随内容在 min/max 间自动增高 */ } .image-workbench .iw-prompt-text::placeholder { color: var(--black-alpha-48); } .image-workbench .iw-prompt-bar { display: flex; align-items: center; gap: 8px; padding: 6px 12px 10px; } /* ── YYX#17:左侧商品栏折叠 —— 复用导航栏(app-shell .sidebar-toggle)同款视觉/交互 ── 贴商品栏右边缘的竖条按钮:平时隐形(chevron opacity 0),hover 才浮现 chevron + 浅底, 点击切换收/展。不用原来那个带边框的方块丑按钮。 */ .image-workbench .iw-prod-space { position: relative; } .image-workbench .iw-side-toggle { position: absolute; top: 0; right: 0; z-index: 5; width: 28px; height: 100%; border: 0; border-radius: 0; background: transparent; color: var(--black-alpha-48); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: color var(--t-base), background var(--t-base); } .image-workbench .iw-side-toggle:hover, .image-workbench .iw-side-toggle:focus-visible { background: var(--black-alpha-4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: var(--accent-black); outline: none; } .image-workbench .iw-side-toggle-icon { display: block; opacity: 0; line-height: 1; transition: opacity var(--t-base); } .image-workbench .iw-side-toggle:hover .iw-side-toggle-icon, .image-workbench .iw-side-toggle:focus-visible .iw-side-toggle-icon { opacity: 1; } .image-workbench .iw-side-toggle-icon--expand { display: none; } .image-workbench .iw-prod-space.collapsed .iw-side-toggle-icon--collapse { display: none; } .image-workbench .iw-prod-space.collapsed .iw-side-toggle-icon--expand { display: block; } /* 展开态:列表/头部右侧给竖条让位(28px),避免竖条覆盖商品行右侧的点击区 */ .image-workbench .iw-prod-space:not(.collapsed) .iw-side-top { padding-right: 30px; } .image-workbench .iw-prod-space:not(.collapsed) .iw-ps-list { padding-right: 28px; } /* 收起后整列变窄,只剩商品图 */ .image-workbench .iw-layout:has(.iw-prod-space.collapsed) { grid-template-columns: 76px minmax(0, 1fr); } .image-workbench .iw-prod-space.collapsed .back-pill, .image-workbench .iw-prod-space.collapsed .iw-ps-search, .image-workbench .iw-prod-space.collapsed .iw-list-h, .image-workbench .iw-prod-space.collapsed .iw-prod-item .body { display: none; } .image-workbench .iw-prod-space.collapsed .iw-side-top { justify-content: center; padding: 12px 0 10px; } .image-workbench .iw-prod-space.collapsed .iw-ps-list { padding-left: 0; padding-right: 0; align-items: center; } .image-workbench .iw-prod-space.collapsed .iw-prod-item { justify-content: center; padding: 4px; } /* ── YYX#12:结果搜索框 × 清空 + 平台筛选弹窗 ── */ .image-workbench .iw-search-box { position: relative; display: inline-flex; align-items: center; margin-right: 6px; } .image-workbench .iw-search-box .input { height: 30px; width: 150px; padding-right: 26px; } .image-workbench .iw-search-clear { position: absolute; right: 6px; width: 16px; height: 16px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--black-alpha-12); color: var(--accent-black); cursor: pointer; } .image-workbench .iw-search-clear:hover { background: var(--black-alpha-24); } .image-workbench .iw-filter-wrap { position: relative; } .image-workbench .iw-filter-wrap .search-btn { position: relative; } .image-workbench .iw-filter-count { position: absolute; top: -4px; right: -4px; min-width: 14px; height: 14px; padding: 0 3px; display: grid; place-items: center; background: var(--heat); color: var(--accent-white); font-family: var(--font-mono); font-size: 10px; line-height: 1; border-radius: 999px; } .image-workbench .iw-filter-menu { width: 244px; padding: 10px; } .image-workbench .iw-filter-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .image-workbench .iw-filter-h .mono { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); } .image-workbench .iw-filter-clear { border: 0; background: none; cursor: pointer; font-size: 12px; color: var(--heat); } .image-workbench .iw-filter-clear:disabled { color: var(--black-alpha-24); cursor: default; } .image-workbench .iw-filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .image-workbench .iw-filter-opt { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--border-faint); border-radius: var(--r-md); background: var(--background-lighter); cursor: pointer; font-family: inherit; } .image-workbench .iw-filter-opt:hover { background: var(--surface); } .image-workbench .iw-filter-opt.on { border-color: var(--heat); background: var(--heat-12); } .image-workbench .iw-filter-opt .p-logo { width: 20px; height: 20px; border-radius: 5px; font-size: 11px; } .image-workbench .iw-filter-opt .nm { font-size: 12px; color: var(--accent-black); flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .image-workbench .iw-filter-opt .ck { color: var(--heat); opacity: 0; flex-shrink: 0; } .image-workbench .iw-filter-opt.on .ck { opacity: 1; } /* ── YYX#G23:筛选已开启 · 结果区置顶提示栏 ── */ .image-workbench .iw-filter-notice { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 14px; background: var(--heat-12); border: 1px solid var(--heat-20); border-radius: var(--r-md); } .image-workbench .iw-filter-notice .ifn-text { flex: 1; font-size: 13px; color: var(--accent-black); } .image-workbench .iw-filter-notice .ifn-clear { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; cursor: pointer; font-size: 12px; color: var(--heat); font-family: inherit; } .image-workbench .iw-filter-notice .ifn-clear:hover { text-decoration: underline; } /* ── YYX#18:结果卡精简头部(提示词折叠 + 灰色张数,无容器/引号/标题)── */ .image-workbench .iw-batch-head { padding: 2px 2px 0; margin-bottom: 8px; } .image-workbench .iw-batch-head .ibh-prompt { font-size: 13px; color: var(--accent-black); line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .image-workbench .iw-batch-head .ibh-prompt.expanded { white-space: normal; } .image-workbench .iw-batch-head .ibh-toggle { border: 0; background: none; padding: 2px 0; cursor: pointer; font-size: 12px; color: var(--heat); } .image-workbench .iw-batch-head .ibh-count { margin-top: 2px; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); } /* 左栏底部 · 立即生成(主 CTA · 通栏) */ .image-workbench .iw-cta { margin-top: auto; padding-top: 14px; } .image-workbench .iw-cta .btn { width: 100%; justify-content: center; height: 44px; font-size: 14px; } .image-workbench .iw-cta-hint { margin-top: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; text-align: center; line-height: 1.5; } /* ── 右 · 结果预览 ── */ .image-workbench .iw-preview { background: var(--background-base); overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; min-height: 0; } /* prompt-style summary 卡片(引号 icon + 灰底 + 右上 meta) */ .image-workbench .iw-pv-h { position: relative; background: var(--background-lighter); border: 1px solid var(--border-faint); border-radius: var(--r-md); padding: 14px 18px 14px 44px; margin-bottom: 14px; } .image-workbench .iw-pv-h .quote-icon { position: absolute; top: 13px; left: 16px; width: 18px; height: 18px; color: var(--black-alpha-24); } .image-workbench .iw-pv-h .pv-line { font-size: 13px; color: var(--accent-black); line-height: 1.6; display: flex; align-items: center; } .image-workbench .iw-pv-h .pv-line + .pv-line { margin-top: 2px; } .image-workbench .iw-pv-h .pv-line .k { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .04em; margin-right: 8px; min-width: 36px; } .image-workbench .iw-pv-h .pv-line .v { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* YYX#13:提示词整段较长 → 顶对齐 + 最多两行省略,不挤掉平台/张数行 */ .image-workbench .iw-pv-h .pv-line .v.pv-prompt { font-weight: 400; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .image-workbench .iw-pv-h .pv-line:has(.pv-prompt) { align-items: flex-start; } /* YYX#5:单张失败占位 —— 灰底 + ✕ + 「重跑这张」 */ .image-workbench .gen-image.failed .placeholder { background: var(--background-lighter); } .image-workbench .gen-failed { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--black-alpha-48); } .image-workbench .gen-failed .gf-text { font-size: 12px; } .image-workbench .gen-failed .gf-retry { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border: 1px solid var(--border-faint); border-radius: 999px; background: var(--surface); color: var(--accent-black); font-size: 12px; cursor: pointer; transition: background var(--t-base), border-color var(--t-base); } .image-workbench .gen-failed .gf-retry:hover { background: var(--heat-12); border-color: var(--heat); color: var(--heat); } /* 结果区:复用 §4.18 .gen-card 规范结构(scoped 实现 · 仅 token) */ .image-workbench .gen-card { background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); padding: 16px; display: flex; flex-direction: column; gap: 14px; } .image-workbench .gen-meta { display: flex; align-items: center; gap: 8px; padding: 0 4px; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .04em; } .image-workbench .gen-meta .m-sep { color: var(--black-alpha-24); } .image-workbench .gen-images { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 10px; } @media (max-width: 1400px) { .image-workbench .gen-images { grid-template-columns: repeat(2, 1fr); } } .image-workbench .gen-image { position: relative; aspect-ratio: var(--ratio, 1 / 1); border-radius: var(--r-md); /* 不在此裁切:否则「更多」气泡(.gen-bubble)作为后代会被 overflow:hidden 切掉。 改为给图片/占位各自圆角,卡片保持圆角的同时让气泡能溢出展示。 */ cursor: pointer; /* YYX#13:容器自带铺满的 skeleton 占位底(网纹 + 灰底),图片加载前/加载中不留空白; 真图(.gen-image-img)叠在其上,加载完盖住占位底。复用 .placeholder 同款网纹纹理。 */ background: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.025) 0 1px, transparent 1px 12px), var(--black-alpha-4); } .image-workbench .gen-image .placeholder { position: absolute; inset: 0; border-radius: var(--r-md); overflow: hidden; } /* 生成结果真图 · 填满 .gen-image(比例由容器 aspect-ratio 控制) · 透明背景让容器 skeleton 占位透出,加载完图片自身盖住 */ .image-workbench .gen-image-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--r-md); } /* 右上浮层按钮组(§4.18 .gen-image-actions) */ .image-workbench .gen-image-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 2px; padding: 2px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); opacity: 0; z-index: 2; transition: opacity var(--t-base); } .image-workbench .gen-image:hover .gen-image-actions { opacity: 1; } .image-workbench .gen-img-btn { width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--black-alpha-56); cursor: pointer; display: grid; place-items: center; transition: background var(--t-base), color var(--t-base); } .image-workbench .gen-img-btn:hover { background: var(--black-alpha-4); color: var(--accent-black); } .image-workbench .gen-img-btn:disabled { color: var(--black-alpha-24); cursor: not-allowed; } .image-workbench .gen-img-btn:disabled:hover { background: transparent; color: var(--black-alpha-24); } .image-workbench .gen-img-btn svg { width: 14px; height: 14px; } /* §4.18 ② 中央就地反馈(采用瞬间亮 1.5s · 暗底白字 · 禁全局 toast) */ .image-workbench .gen-image-feedback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(38, 38, 38, .88); color: var(--accent-white); border-radius: var(--r-md); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 3; } .image-workbench .gen-image.show-feedback .gen-image-feedback { opacity: 1; } .image-workbench .gen-image-feedback svg { width: 20px; height: 20px; } .image-workbench .gen-image-feedback span { font-size: 12px; font-weight: 500; letter-spacing: .02em; } /* R109:成图自动入资产库 —— 「已入库」绿角标 / 单图加入按钮已随功能移除 */ /* row38:任务中心批次弹窗(createPortal 到 body,不在 .image-workbench 作用域内)—— 自带一份 gen 网格样式,复用主工作台视觉。 */ .modal .gen-images { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 10px; } .modal .gen-image { position: relative; aspect-ratio: var(--ratio, 1 / 1); border-radius: var(--r-md); overflow: hidden; background: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.025) 0 1px, transparent 1px 12px), var(--black-alpha-4); } .modal .gen-image-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; } .modal .gen-image .placeholder { position: absolute; inset: 0; display: grid; place-items: center; } /* 底部操作按钮行(§4.18 .gen-card-actions · 二级 + ghost · 不放主橙) */ .image-workbench .gen-card-actions { display: flex; gap: 8px; padding-top: 4px; } /* 预览区空态 */ .image-workbench .iw-pv-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; gap: 6px; } .image-workbench .iw-pv-empty .mono { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .06em; margin-bottom: 4px; } .image-workbench .iw-pv-empty .title { font-size: 14px; font-weight: 600; color: var(--accent-black); } .image-workbench .iw-pv-empty .hint { font-size: 13px; color: var(--black-alpha-48); line-height: 1.6; max-width: 320px; } .image-workbench .iw-pv-empty .hint b { color: var(--heat); font-weight: 600; } /* 生成中占位 · 脉冲(loading 态) */ .image-workbench .gen-image.gen .placeholder { animation: iw-gen-pulse 1.4s ease-in-out infinite; } @keyframes iw-gen-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } } /* 行30:生成中占位 · 旋转 spinner icon(替代「生成中…」文字) */ .image-workbench .gen-image .gen-loading { display: grid; place-items: center; } .image-workbench .gen-image .gen-loading .spinner { width: 24px; height: 24px; } /* ════════════════════════════════════════════════ 行31/32/33 · 批次卡 + 气泡菜单 ════════════════════════════════════════════════ */ /* 批次卡:复用 .gen-card。每批各带一个导航头(.iw-pv-h),批次间靠「卡片→下一个头」拉开间距; 首个头紧跟 iw-preview 顶 padding,无需额外上间距(故只给跟在卡片后的头加 margin)。 */ .image-workbench .gen-batch-card + .iw-pv-h { margin-top: 22px; } /* ── YYX#row24/row25:去掉结果批次卡的白色容器 / 边框 / 内边距 + 底部分割线 ── 让图片显示区铺满预览宽度、更大;批次间距由「卡片 → 下一个批次头」拉开。 */ .image-workbench .gen-batch-card { background: transparent; border: 0; border-radius: 0; padding: 0; gap: 12px; } .image-workbench .gen-batch-card .gen-batch-actions { border-top: 0; padding-top: 0; margin-top: 8px; } .image-workbench .gen-batch-card + .iw-batch-head { margin-top: 22px; } /* P0③ · 平台套图多平台分组 section 头(平台 logo + 名 + 批次数) */ .image-workbench .iw-cover-group-h { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-faint); } .image-workbench .gen-batch-card + .iw-cover-group-h { margin-top: 28px; } .image-workbench .iw-cover-group-h .cg-logo { width: 24px; height: 24px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--accent-white); font-family: var(--font-mono); font-size: 12px; font-weight: 600; flex-shrink: 0; } .image-workbench .iw-cover-group-h .cg-name { font-size: 14px; font-weight: 600; color: var(--accent-black); } .image-workbench .iw-cover-group-h .cg-ct { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; } /* 分组头里第一个导航头紧跟,无需额外上间距 */ .image-workbench .iw-cover-group-h + .iw-pv-h { margin-top: 0; } /* 行30:批次底部操作行 · 与上方图片网格拉开间距(原 .gen-card-actions 仅 4px,过小) */ .image-workbench .gen-batch-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-faint); } /* 行32③ · 单图「更多」气泡 + 批次底部「更多」气泡(hover 展开) */ .image-workbench .gen-img-more, .image-workbench .gen-batch-more { position: relative; display: inline-flex; } .image-workbench .gen-bubble { /* row37:气泡左缘与触发它的「更多」icon 左缘对齐(原 right:0 是右对齐)。 .gen-image 不裁切(见上方 901 行注释),气泡可溢出卡片显示,不会被卡片切掉。 */ position: absolute; top: calc(100% + 6px); left: 0; min-width: 168px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); box-shadow: 0 6px 24px rgba(0, 0, 0, .08); padding: 4px; display: none; z-index: 40; } /* 批次底部气泡向上弹出(底部空间不足) */ .image-workbench .gen-bubble.gen-bubble-up { top: auto; bottom: calc(100% + 6px); } .image-workbench .gen-batch-more:hover .gen-bubble, .image-workbench .gen-batch-more:focus-within .gen-bubble { display: block; } /* 单图气泡改 click 驱动(§4.18 悬浮组在 hover 浮层内,hover 嵌套会闪;用 .open 显式控制) */ .image-workbench .gen-img-more .gen-bubble.open { display: block; } /* row39:「更多按钮 → 气泡」间 6px 空隙的透明桥接 —— 鼠标下移到气泡途中不掠出容器, 避免 .gen-img-more 的 onMouseLeave 在空隙处误触发把气泡收起(桥接是气泡的后代,仍算「在区域内」)。 */ .image-workbench .gen-img-more .gen-bubble::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px; } .image-workbench .gen-bubble-item { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: transparent; font-size: 13px; color: var(--accent-black); font-family: inherit; text-align: left; cursor: pointer; transition: background var(--t-base), color var(--t-base); } .image-workbench .gen-bubble-item svg { width: 13px; height: 13px; flex-shrink: 0; } .image-workbench .gen-bubble-item:hover { background: var(--background-lighter); } .image-workbench .gen-bubble-item.danger { color: var(--accent-crimson); } .image-workbench .gen-bubble-item.danger:hover { background: var(--crimson-bg); } .image-workbench .gen-bubble-item:disabled { color: var(--black-alpha-32); cursor: not-allowed; } .image-workbench .gen-bubble-item:disabled:hover { background: transparent; } /* ════════════════════════════════════════════════ mode=image · 对话流形态(基线 image-optimize.html · design.md §4.13) 外层两栏:左会话列表 + 右对话流(底部固定 chat 输入栏) ════════════════════════════════════════════════ */ .image-workbench.iw-chat { flex-direction: row; display: grid; grid-template-columns: 240px minmax(0, 1fr); } @media (max-width: 1100px) { .image-workbench.iw-chat { grid-template-columns: 200px minmax(0, 1fr); } } /* 左 · 会话栏 */ .image-workbench .ic-side { border-right: 1px solid var(--border-faint); background: var(--surface); display: flex; flex-direction: column; min-height: 0; overflow: hidden; } .image-workbench .ic-side-h { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; border-bottom: 1px solid var(--border-faint); } .image-workbench .ic-new-conv { margin: 10px 12px 0; height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); color: var(--accent-black); font-size: 13px; font-weight: 500; font-family: inherit; cursor: pointer; transition: border-color var(--t-base), background var(--t-base), color var(--t-base); } .image-workbench .ic-new-conv:hover { border-color: var(--heat-20); background: var(--heat-12); color: var(--heat); } .image-workbench .ic-new-conv svg { width: 13px; height: 13px; } .image-workbench .ic-side-sec { margin: 16px 14px 6px; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .08em; text-transform: uppercase; } .image-workbench .ic-conv-list { padding: 0 6px; display: flex; flex-direction: column; gap: 2px; } .image-workbench .ic-conv-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; color: var(--accent-black); transition: background var(--t-base); } .image-workbench .ic-conv-item:hover { background: var(--background-lighter); } .image-workbench .ic-conv-item.active { background: var(--heat-12); } .image-workbench .ic-conv-item .thumb { flex-shrink: 0; width: 28px; height: 28px; background: var(--background-lighter); border: 1px solid var(--border-faint); border-radius: var(--r-sm); display: grid; place-items: center; color: var(--black-alpha-32); } .image-workbench .ic-conv-item .thumb.default { background: var(--accent-black); color: var(--accent-white); border-color: var(--accent-black); } .image-workbench .ic-conv-item .thumb svg { width: 13px; height: 13px; } .image-workbench .ic-conv-item .nm { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .image-workbench .ic-conv-item.active .nm { color: var(--heat); font-weight: 600; } .image-workbench .ic-conv-empty { padding: 14px 12px; font-size: 12px; color: var(--black-alpha-48); line-height: 1.55; } .image-workbench .ic-conv-empty .mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; display: inline-block; margin-top: 4px; } /* 对话操作失败的内联提示(不再静默吞错) */ .image-workbench .ic-conv-error { margin: 6px 12px 0; padding: 8px 10px; font-size: 12px; line-height: 1.5; color: var(--heat); background: var(--heat-12); border-radius: var(--r-sm); } /* 会话项就地重命名输入框 */ .image-workbench .ic-conv-rename { flex: 1; min-width: 0; font-size: 13px; font-family: inherit; color: var(--accent-black); background: var(--accent-white); border: 1px solid var(--heat-20); border-radius: var(--r-sm); padding: 2px 6px; outline: none; } /* 会话项 hover 露出的「重命名 / 删除」 */ .image-workbench .ic-conv-acts { flex-shrink: 0; display: none; align-items: center; gap: 2px; } .image-workbench .ic-conv-item:hover .ic-conv-acts { display: inline-flex; } .image-workbench .ic-conv-acts button { display: grid; place-items: center; width: 22px; height: 22px; border: none; background: none; cursor: pointer; border-radius: var(--r-sm); color: var(--black-alpha-48); transition: background var(--t-base), color var(--t-base); } .image-workbench .ic-conv-acts button:hover { background: var(--background-base); color: var(--heat); } .image-workbench .ic-conv-acts svg { width: 12px; height: 12px; } /* 右 · 对话流主体 */ .image-workbench .ic-main { display: flex; flex-direction: column; min-height: 0; position: relative; } .image-workbench .ic-stream { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 28px 220px; /* 底部留出输入栏高度 */ background: var(--background-base); } .image-workbench .ic-stream-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; } /* 空态 · 中央 hero「开始你的创作」+ 提示词建议 chip */ .image-workbench .ic-empty { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px; text-align: center; } .image-workbench .ic-empty .ic { width: 64px; height: 64px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); display: grid; place-items: center; color: var(--heat); } .image-workbench .ic-empty .badge { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--black-alpha-48); text-transform: uppercase; } .image-workbench .ic-empty h2 { font-size: 22px; font-weight: 600; color: var(--accent-black); letter-spacing: -.015em; } .image-workbench .ic-empty p { font-size: 13px; color: var(--black-alpha-56); max-width: 460px; line-height: 1.6; } .image-workbench .ic-empty .examples { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 720px; } .image-workbench .ic-empty .examples .ex { padding: 6px 12px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-pill); font-size: 12px; color: var(--black-alpha-72); font-family: inherit; cursor: pointer; transition: border-color var(--t-base), color var(--t-base), background var(--t-base); } .image-workbench .ic-empty .examples .ex:hover { border-color: var(--heat-20); color: var(--heat); background: var(--heat-12); } /* 单条对话(提示词块 + 结果网格) */ .image-workbench .ic-msg { display: flex; flex-direction: column; gap: 14px; } .image-workbench .ic-msg-prompt { display: flex; align-items: flex-start; gap: 12px; } .image-workbench .ic-msg-prompt .quote { flex-shrink: 0; width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border-faint); color: var(--heat); display: grid; place-items: center; } .image-workbench .ic-msg-prompt .quote svg { width: 13px; height: 13px; } .image-workbench .ic-msg-prompt .pt { flex: 1; min-width: 0; padding-top: 4px; } .image-workbench .ic-msg-prompt .pt-text { font-size: 14px; color: var(--accent-black); line-height: 1.55; word-break: break-word; } .image-workbench .ic-msg-prompt .pt-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; } .image-workbench .ic-msg-prompt .pt-tags .meta-chip { padding: 2px 8px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-sm); } .image-workbench .ic-msg-prompt .pt-tags .sep { color: var(--black-alpha-24); } /* 批次头:本批用过的参考图缩略 */ .image-workbench .ic-msg-prompt .pt-refs { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .image-workbench .ic-msg-prompt .pt-ref { width: 28px; height: 28px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border-faint); flex-shrink: 0; } .image-workbench .ic-msg-prompt .pt-ref img { width: 100%; height: 100%; object-fit: cover; display: block; } .image-workbench .ic-msg-prompt .pt-ref-label { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; } /* 底部 · chat 输入栏 */ .image-workbench .ic-input-wrap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 28px 22px; background: linear-gradient(to bottom, transparent 0, var(--background-base) 24px); z-index: 5; } .image-workbench .ic-input { max-width: 1180px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, .06); transition: border-color var(--t-base); } .image-workbench .ic-input:focus-within { border-color: var(--heat-40); } .image-workbench .ic-input-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .image-workbench .ic-input-top .add-btn { flex-shrink: 0; width: 64px; height: 64px; background: var(--background-lighter); border: 1px dashed var(--border-faint); border-radius: var(--r-md); display: grid; place-items: center; color: var(--black-alpha-56); cursor: pointer; transition: border-color var(--t-base), color var(--t-base), background var(--t-base); } .image-workbench .ic-input-top .add-btn:hover { border-color: var(--heat-40); color: var(--heat); background: var(--heat-12); } .image-workbench .ic-input-text { width: 100%; border: 0; outline: 0; resize: none; background: transparent; font-family: inherit; font-size: 14px; line-height: 1.5; color: var(--accent-black); min-height: 44px; max-height: 220px; padding: 4px 2px; } .image-workbench .ic-input-text::placeholder { color: var(--black-alpha-48); } .image-workbench .ic-input-bottom { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .image-workbench .ic-input-bottom .right-meta { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; } .image-workbench .ic-input-bottom .right-meta .val { color: var(--accent-black); } .image-workbench .ic-input .send-btn { flex-shrink: 0; width: 32px; height: 32px; background: var(--heat); color: var(--accent-white); border: 0; border-radius: var(--r-md); cursor: pointer; display: grid; place-items: center; transition: background var(--t-base), color var(--t-base), filter var(--t-base); margin-left: 8px; } .image-workbench .ic-input .send-btn:hover { filter: brightness(1.05); } .image-workbench .ic-input .send-btn:disabled { background: var(--background-lighter); color: var(--ink-3); cursor: not-allowed; } .image-workbench .ic-input .send-btn svg { width: 15px; height: 15px; } /* 输入栏参数胶囊(比例 / 风格 / 张数 · 基线 .param + 下拉气泡) */ .image-workbench .ic-param { position: relative; outline: none; } .image-workbench .ic-param-btn { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; background: var(--background-lighter); border: 1px solid transparent; border-radius: var(--r-pill); font-size: 12px; color: var(--black-alpha-72); font-family: inherit; cursor: pointer; transition: border-color var(--t-base), color var(--t-base), background var(--t-base); } .image-workbench .ic-param-btn:hover { background: var(--surface); border-color: var(--border-faint); } .image-workbench .ic-param.open .ic-param-btn { background: var(--heat-12); color: var(--heat); border-color: transparent; } .image-workbench .ic-param-btn .lbl-mono { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; margin-right: 1px; } .image-workbench .ic-param.open .ic-param-btn .lbl-mono { color: var(--heat); } .image-workbench .ic-param-btn svg { width: 10px; height: 10px; color: var(--ink-3); } .image-workbench .ic-param.open .ic-param-btn svg { transform: rotate(180deg); } .image-workbench .ic-param-menu { position: absolute; bottom: calc(100% + 6px); left: -2px; min-width: 140px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); box-shadow: 0 6px 24px rgba(0, 0, 0, .08); padding: 4px; display: none; z-index: 30; } .image-workbench .ic-param.open .ic-param-menu { display: block; } .image-workbench .ic-param-menu .mi { width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 0; border-radius: var(--r-sm); background: transparent; font-size: 13px; color: var(--accent-black); font-family: inherit; text-align: left; cursor: pointer; } .image-workbench .ic-param-menu .mi:hover { background: var(--background-lighter); } .image-workbench .ic-param-menu .mi.selected { color: var(--heat); font-weight: 600; } .image-workbench .ic-param-menu .mi .mi-check { margin-left: auto; visibility: hidden; color: var(--heat); } .image-workbench .ic-param-menu .mi.selected .mi-check { visibility: visible; } /* ============================================================ C · 模特图方案对比 Demo(.model-demo · 纯静态展示) 基线:public/exact/model-photo-demo-a.html(参数面板 + 结果双栏) public/exact/model-photo-demo-b.html(任务流 + 底部 fixed 参数栏) 逐字对齐 .content 级正文。全局 token + 共享 .pill;.content padding 抵消同 .image-workbench。 ============================================================ */ .model-demo { /* 抵消 .content 的 36/48/60 padding,贴边铺满(同 .image-workbench 思路) */ margin: -36px -48px -60px; height: calc(100vh - 65px); display: flex; flex-direction: column; background: var(--background-base); overflow: hidden; } /* 顶部 demo 提示条(两版共用) */ .model-demo .dm-banner { flex-shrink: 0; margin: 12px 28px 0; padding: 8px 12px; background: var(--heat-12); border: 1px dashed var(--heat-20); border-radius: var(--r-sm); font-size: 12px; color: var(--accent-black); font-family: var(--font-mono); letter-spacing: .02em; line-height: 1.5; } .model-demo .dm-banner b { color: var(--heat); } /* 两栏:左侧栏 260px + 主区 */ .model-demo .dm-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 260px minmax(0, 1fr); } @media (max-width: 1100px) { .model-demo .dm-grid { grid-template-columns: 220px minmax(0, 1fr); } } /* ── 左侧栏 · 商品空间(两版共用) ── */ .model-demo .dm-side { border-right: 1px solid var(--border-faint); background: var(--surface); display: flex; flex-direction: column; min-height: 0; } .model-demo .dm-side-h { padding: 14px 14px 10px; flex-shrink: 0; } .model-demo .dm-side-h .ti-row { display: flex; align-items: center; margin-bottom: 10px; } .model-demo .dm-side-h .ti { font-size: 12px; font-family: var(--font-mono); color: var(--black-alpha-48); letter-spacing: .08em; text-transform: uppercase; } .model-demo .dm-side-h .add { margin-left: auto; width: 22px; height: 22px; display: grid; place-items: center; background: var(--heat-12); color: var(--heat); border: 0; border-radius: var(--r-sm); cursor: pointer; } .model-demo .dm-side-h .add svg { width: 11px; height: 11px; } .model-demo .dm-search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; background: var(--background-lighter); border: 1px solid var(--border-faint); border-radius: var(--r-sm); transition: border-color var(--t-base), background var(--t-base); } .model-demo .dm-search:focus-within { border-color: var(--heat-40); background: var(--surface); } .model-demo .dm-search svg { width: 13px; height: 13px; color: var(--ink-3); flex-shrink: 0; } .model-demo .dm-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--accent-black); font-family: inherit; } .model-demo .dm-search input::placeholder { color: var(--black-alpha-48); } .model-demo .dm-prod-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 10px; display: flex; flex-direction: column; gap: 4px; } .model-demo .dm-prod { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid transparent; border-radius: var(--r-sm); cursor: pointer; text-align: left; background: transparent; font-family: inherit; transition: background var(--t-base), border-color var(--t-base); } .model-demo .dm-prod:hover { background: var(--background-lighter); } .model-demo .dm-prod.active { background: var(--heat-12); border-color: var(--heat-20); } .model-demo .dm-prod .thumb { flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--border-faint); border-radius: var(--r-sm); overflow: hidden; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--black-alpha-4) 4px 5px); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-32); } .model-demo .dm-prod.active .thumb { border-color: var(--heat); } .model-demo .dm-prod .body { flex: 1; min-width: 0; } .model-demo .dm-prod .nm { font-size: 13px; color: var(--accent-black); font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .model-demo .dm-prod.active .nm { color: var(--heat); font-weight: 600; } .model-demo .dm-prod .sub { margin-top: 2px; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .model-demo .dm-all { flex-shrink: 0; margin: 0 10px 12px; padding: 10px 12px; background: var(--background-lighter); border: 1px dashed var(--border-faint); border-radius: var(--r-sm); color: var(--black-alpha-72); font-size: 12px; font-family: inherit; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: border-color var(--t-base), color var(--t-base), background var(--t-base); } .model-demo .dm-all:hover { border-color: var(--heat); color: var(--heat); background: var(--heat-12); } .model-demo .dm-all .ct { color: var(--black-alpha-48); font-family: var(--font-mono); font-size: 12px; margin-left: auto; } .model-demo .dm-all svg { width: 12px; height: 12px; } .model-demo .dm-all .arrow { margin-left: 4px; } /* 主区 · 返回 pill(基线无,挂主区头部,保留 onBack) */ .model-demo .dm-back { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-pill); color: var(--accent-black); font-size: 13px; font-weight: 500; font-family: inherit; cursor: pointer; transition: background var(--t-base), border-color var(--t-base), color var(--t-base); } .model-demo .dm-back:hover { background: var(--black-alpha-4); border-color: var(--black-alpha-24); } .model-demo .dm-back svg { width: 14px; height: 14px; } /* ── 主区(两版共用骨架) ── */ .model-demo .dm-main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; position: relative; } /* 批次卡(两版共用) */ .model-demo .dm-batch { background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 14px; } .model-demo .dm-batch-h .pic { flex-shrink: 0; width: 28px; height: 28px; background: var(--background-lighter); border: 1px solid var(--border-faint); border-radius: var(--r-sm); display: grid; place-items: center; color: var(--heat); font-family: var(--font-mono); font-size: 12px; font-weight: 600; } .model-demo .dm-batch-h .meta { flex: 1; min-width: 0; } .model-demo .dm-batch-h .nm { font-size: 13px; font-weight: 600; color: var(--accent-black); } .model-demo .dm-batch-h .info { margin-top: 2px; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; } .model-demo .dm-batch-h .info .sep { color: var(--black-alpha-24); } .model-demo .dm-batch-h .ops { display: flex; gap: 4px; } .model-demo .dm-batch-h .ops button { width: 28px; height: 28px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-sm); color: var(--black-alpha-56); cursor: pointer; display: grid; place-items: center; transition: border-color var(--t-base), color var(--t-base); } .model-demo .dm-batch-h .ops button:hover { border-color: var(--heat-20); color: var(--heat); } .model-demo .dm-batch-h .ops button svg { width: 13px; height: 13px; } .model-demo .dm-batch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } @media (max-width: 1400px) { .model-demo .dm-batch-grid { grid-template-columns: repeat(3, 1fr); } } .model-demo .dm-cell { aspect-ratio: 3 / 4; background: var(--background-lighter); border: 1px solid var(--border-faint); border-radius: var(--r-sm); overflow: hidden; position: relative; cursor: pointer; } .model-demo .dm-cell .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-32); background: repeating-linear-gradient(135deg, transparent 0 6px, var(--black-alpha-3) 6px 7px); } .model-demo .dm-cell .tag { position: absolute; top: 6px; left: 6px; padding: 2px 6px; background: var(--accent-black); color: var(--accent-white); border-radius: var(--r-sm); font-size: 12px; font-weight: 500; } /* ════════════════════════════════════════════════ 方案 A · 参数面板 + 结果双栏 ════════════════════════════════════════════════ */ .model-demo.dm-a .dm-main-h { flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 14px 28px; border-bottom: 1px solid var(--border-faint); background: var(--surface); } .model-demo.dm-a .dm-main-h .cur { min-width: 0; } .model-demo.dm-a .dm-main-h .crumb { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .04em; } .model-demo.dm-a .dm-main-h h2 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; color: var(--accent-black); } .model-demo.dm-a .dm-main-h .stats { margin-left: auto; display: flex; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; } .model-demo.dm-a .dm-main-h .stats b { color: var(--accent-black); font-weight: 600; } .model-demo.dm-a .dm-main-h .stats .sep { color: var(--black-alpha-24); } .model-demo.dm-a .dm-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); } @media (max-width: 1100px) { .model-demo.dm-a .dm-body { grid-template-columns: 280px minmax(0, 1fr); } } /* 左侧参数面板 */ .model-demo.dm-a .dm-form { border-right: 1px solid var(--border-faint); background: var(--surface); display: flex; flex-direction: column; min-height: 0; } .model-demo.dm-a .dm-form-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; } .model-demo.dm-a .dm-field { margin-bottom: 16px; } .model-demo.dm-a .dm-field:last-child { margin-bottom: 0; } .model-demo.dm-a .dm-field-h { font-size: 12px; font-weight: 600; color: var(--accent-black); margin-bottom: 8px; } .model-demo.dm-a .dm-field-h .opt { font-weight: 400; font-size: 12px; color: var(--black-alpha-48); margin-left: 4px; } .model-demo.dm-a .dm-models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .model-demo.dm-a .dm-model { aspect-ratio: 3 / 4; border: 1px solid var(--border-faint); background: var(--background-lighter); border-radius: var(--r-sm); position: relative; cursor: pointer; overflow: hidden; transition: border-color var(--t-base); } .model-demo.dm-a .dm-model:hover { border-color: var(--black-alpha-32); } .model-demo.dm-a .dm-model.selected { border-color: var(--heat); border-width: 2px; } .model-demo.dm-a .dm-model .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-32); background: repeating-linear-gradient(135deg, transparent 0 6px, var(--black-alpha-3) 6px 7px); } .model-demo.dm-a .dm-model .nm { position: absolute; bottom: 0; left: 0; right: 0; padding: 4px 6px; background: linear-gradient(transparent, var(--black-alpha-48)); font-size: 12px; color: var(--accent-white); font-weight: 500; } .model-demo.dm-a .dm-model.selected::after { content: ''; position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; background: var(--heat) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 9px; border-radius: 50%; } .model-demo.dm-a .dm-model.add { border-style: dashed; display: flex; align-items: center; justify-content: center; color: var(--black-alpha-48); } .model-demo.dm-a .dm-chip-row { display: flex; flex-wrap: wrap; gap: 6px; } .model-demo.dm-a .dm-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-sm); font-size: 12px; color: var(--black-alpha-72); font-family: inherit; cursor: pointer; transition: border-color var(--t-base), color var(--t-base), background var(--t-base); } .model-demo.dm-a .dm-chip:hover { border-color: var(--black-alpha-32); color: var(--accent-black); } .model-demo.dm-a .dm-chip.active { background: var(--heat-12); color: var(--heat); border-color: var(--heat-20); font-weight: 600; } .model-demo.dm-a .dm-textarea { width: 100%; min-height: 60px; padding: 8px 10px; background: var(--background-lighter); border: 1px solid var(--black-alpha-12); border-radius: var(--r-sm); font-family: inherit; font-size: 13px; color: var(--accent-black); outline: none; resize: vertical; } .model-demo.dm-a .dm-textarea::placeholder { color: var(--black-alpha-48); } .model-demo.dm-a .dm-textarea:focus { border-color: var(--heat-40); background: var(--surface); } .model-demo.dm-a .dm-form-cta { flex-shrink: 0; padding: 14px 18px; border-top: 1px solid var(--border-faint); background: var(--surface); } .model-demo.dm-a .dm-cost { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; } .model-demo.dm-a .dm-cost .v { color: var(--accent-black); font-weight: 600; } .model-demo.dm-a .dm-gen { width: 100%; height: 42px; background: var(--heat); color: var(--accent-white); border: 1px solid var(--heat); border-radius: var(--r-md); font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: var(--shadow-cta); } .model-demo.dm-a .dm-gen svg { width: 15px; height: 15px; } /* 右侧结果区 */ .model-demo.dm-a .dm-result { background: var(--background-base); min-height: 0; overflow-y: auto; padding: 22px 24px; } .model-demo.dm-a .dm-result-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; } .model-demo.dm-a .dm-result-h .ti { font-size: 15px; font-weight: 600; color: var(--accent-black); } .model-demo.dm-a .dm-result-h .sub { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; } .model-demo.dm-a .dm-batch-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-faint); } /* ════════════════════════════════════════════════ 方案 B · v2:任务流主区 + 底部 fixed 参数栏 ════════════════════════════════════════════════ */ .model-demo.dm-b .dm-main-h { flex-shrink: 0; padding: 16px 28px 12px; border-bottom: 1px solid var(--border-faint); background: var(--surface); } .model-demo.dm-b .dm-main-h .crumb { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .04em; margin-bottom: 4px; } .model-demo.dm-b .dm-main-h .title-row { display: flex; align-items: center; gap: 14px; } .model-demo.dm-b .dm-main-h h2 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; color: var(--accent-black); } .model-demo.dm-b .dm-main-h .title-row .dm-back { margin-left: auto; } .model-demo.dm-b .dm-main-h .row { display: flex; align-items: center; gap: 16px; margin-top: 6px; } .model-demo.dm-b .dm-main-h .stats { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; display: flex; gap: 4px; } .model-demo.dm-b .dm-main-h .stats b { color: var(--accent-black); font-weight: 600; } .model-demo.dm-b .dm-main-h .stats .sep { color: var(--black-alpha-24); } .model-demo.dm-b .dm-main-h .spacer { flex: 1; } .model-demo.dm-b .dm-tb { display: flex; gap: 8px; align-items: center; } .model-demo.dm-b .dm-tb .icbtn { width: 30px; height: 30px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-sm); color: var(--black-alpha-72); cursor: pointer; display: grid; place-items: center; transition: border-color var(--t-base), color var(--t-base); } .model-demo.dm-b .dm-tb .icbtn:hover { border-color: var(--heat-20); color: var(--heat); } .model-demo.dm-b .dm-tb .icbtn svg { width: 13px; height: 13px; } .model-demo.dm-b .dm-tb .chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-sm); font-size: 12px; color: var(--black-alpha-72); font-family: inherit; cursor: pointer; transition: border-color var(--t-base), color var(--t-base); } .model-demo.dm-b .dm-tb .chip:hover { border-color: var(--heat-20); color: var(--heat); } .model-demo.dm-b .dm-tb .chip svg { width: 10px; height: 10px; color: var(--ink-3); } .model-demo.dm-b .dm-stream { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 28px 200px; background: var(--background-base); } .model-demo.dm-b .dm-day-h { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 10px; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .06em; text-transform: uppercase; } .model-demo.dm-b .dm-day-h::before { content: ''; width: 14px; height: 1px; background: var(--black-alpha-24); display: inline-block; margin-right: 2px; } .model-demo.dm-b .dm-day-h .ct { color: var(--black-alpha-72); font-weight: 500; margin-left: auto; text-transform: none; letter-spacing: 0; } .model-demo.dm-b .dm-batch-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .model-demo.dm-b .dm-batch-h .nm { font-size: 14px; } .model-demo.dm-b .dm-batch-h .info { display: flex; flex-wrap: wrap; gap: 4px; } /* 状态 pill 紧贴标题右侧(局部尺寸变体 · 不改全局 .pill) */ .model-demo.dm-b .stat-pill { margin-left: 8px; padding: 2px 7px; font-size: 12px; } .model-demo.dm-b .stat-pill .dot { width: 4px; height: 4px; } .model-demo.dm-b .dm-cell.gen .ph { animation: dm-pulse 1.4s ease-in-out infinite; } @keyframes dm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } } .model-demo.dm-b .dm-cell.err { border-color: var(--accent-crimson); } .model-demo.dm-b .dm-cell.err .ph { color: var(--accent-crimson); background: var(--crimson-bg); } /* 底部 fixed 参数面板 */ .model-demo.dm-b .dm-param-wrap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 28px 22px; background: linear-gradient(to bottom, transparent 0, var(--background-base) 24px); z-index: 5; } .model-demo.dm-b .dm-param { max-width: 1180px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); padding: 10px 14px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-floating); } .model-demo.dm-b .dm-param .pchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--background-lighter); border: 1px solid transparent; border-radius: var(--r-pill); font-size: 12px; color: var(--black-alpha-72); cursor: pointer; font-family: inherit; transition: border-color var(--t-base), background var(--t-base), color var(--t-base); } .model-demo.dm-b .dm-param .pchip:hover { background: var(--surface); border-color: var(--border-faint); } .model-demo.dm-b .dm-param .pchip.active { background: var(--heat-12); color: var(--heat); } .model-demo.dm-b .dm-param .pchip svg { width: 10px; height: 10px; color: var(--ink-3); } .model-demo.dm-b .dm-param .pchip .lbl-mono { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; } .model-demo.dm-b .dm-param .pchip.active .lbl-mono { color: var(--heat); } .model-demo.dm-b .dm-param .pchip .muted { color: var(--black-alpha-48); } .model-demo.dm-b .dm-param .spacer { flex: 1; } .model-demo.dm-b .dm-param .meta-right { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; margin-right: 6px; text-align: right; } .model-demo.dm-b .dm-param .meta-right .v { color: var(--accent-black); font-weight: 600; } .model-demo.dm-b .dm-param .gen-btn { height: 38px; padding: 0 20px; background: var(--heat); color: var(--accent-white); border: 0; border-radius: var(--r-md); font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow-cta); } .model-demo.dm-b .dm-param .gen-btn svg { width: 14px; height: 14px; } /* ─── 任务中心 · 网格视图(转写自 asset-factory.html .history-grid/.history-card)─── */ .asset-factory .history-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; } @media (max-width: 1280px) { .asset-factory .history-grid { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 960px) { .asset-factory .history-grid { grid-template-columns: repeat(2, 1fr); } } .asset-factory .history-card { background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); padding: 12px; display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: center; transition: background var(--t-base); position: relative; } .asset-factory .history-card:hover { background: var(--black-alpha-4); } .asset-factory .history-card .placeholder { width: 78px; height: 78px; } /* 任务结果图:有真实生成图时铺满占位框,去掉斜纹底与编号 */ .asset-factory .placeholder.has-img { overflow: hidden; position: relative; padding: 0; } .asset-factory .placeholder.has-img::after { display: none; } .asset-factory .placeholder.has-img .ph-frame { display: none; } .asset-factory .placeholder.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; } .asset-factory .history-body { min-width: 0; } .asset-factory .history-name { font-weight: 600; color: var(--accent-black); font-size: 14px; } .asset-factory .history-type { font-size: 12px; color: var(--black-alpha-48); margin-top: 3px; font-family: var(--font-mono); letter-spacing: .02em; } .asset-factory .history-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; } .asset-factory .history-foot .mono { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); } /* ============================================================ D · 商品库全屏选择器(.pl-modal · P0④) 基线:public/exact/model-photo.html .pl-modal —— 重写为 restraint token (旧 styles.css .pl-card/.pl-modal 是暖米/出错色,禁复用)。 全屏无遮罩,portal 到 body,顶 z-index。多选 + 右上勾 + 底部已选汇总。 ============================================================ */ .pl-modal-bg { position: fixed; inset: 0; background: var(--surface); z-index: 998; display: flex; } .pl-modal { flex: 1; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; min-width: 0; } .pl-modal-h { display: flex; align-items: center; gap: 14px; padding: 14px 28px; border-bottom: 1px solid var(--border-faint); flex-shrink: 0; } .pl-modal-h h2 { font-size: 16px; font-weight: 600; color: var(--accent-black); } .pl-modal-h .ct { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; } .pl-modal-h .actions { margin-left: auto; display: flex; gap: 10px; } .pl-modal-h .x { width: 32px; height: 32px; display: grid; place-items: center; background: transparent; border: 0; border-radius: var(--r-sm); cursor: pointer; color: var(--black-alpha-56); transition: background var(--t-base), color var(--t-base); } .pl-modal-h .x:hover { background: var(--black-alpha-8); color: var(--accent-black); } .pl-modal-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 200px minmax(0, 1fr); } @media (max-width: 900px) { .pl-modal-body { grid-template-columns: 160px minmax(0, 1fr); } } /* 左 · 分类侧栏 */ .pl-side { border-right: 1px solid var(--border-faint); padding: 18px 0; overflow-y: auto; } .pl-side .pl-side-h { padding: 0 20px 8px; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .06em; text-transform: uppercase; } .pl-side .pl-side-item { display: flex; align-items: center; gap: 8px; padding: 9px 20px; cursor: pointer; color: var(--black-alpha-72); font-size: 13px; border-left: 3px solid transparent; transition: background var(--t-base), color var(--t-base); } .pl-side .pl-side-item:hover { background: var(--black-alpha-4); } .pl-side .pl-side-item.active { background: var(--heat-12); color: var(--accent-black); border-left-color: var(--heat); font-weight: 600; } .pl-side .pl-side-item .ct { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); } /* 右 · 搜索 toolbar + 网格 + 底部汇总 */ .pl-main { overflow: hidden; padding: 0; display: flex; flex-direction: column; min-width: 0; } .pl-toolbar { padding: 14px 28px; border-bottom: 1px solid var(--border-faint); display: flex; align-items: center; gap: 12px; flex-shrink: 0; } .pl-toolbar .search { position: relative; flex: 1; max-width: 360px; } .pl-toolbar .search input { width: 100%; height: 32px; padding: 0 10px 0 32px; background: var(--background-lighter); border: 1px solid var(--border-faint); border-radius: var(--r-sm); font-size: 13px; font-family: inherit; color: var(--accent-black); outline: none; transition: border-color var(--t-base), background var(--t-base); } .pl-toolbar .search input:focus { border-color: var(--heat-40); background: var(--surface); } .pl-toolbar .search input::placeholder { color: var(--black-alpha-48); } .pl-toolbar .search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--black-alpha-48); pointer-events: none; } .pl-toolbar .btn-new { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-sm); color: var(--accent-black); font-family: inherit; font-size: 13px; cursor: pointer; margin-left: auto; transition: background var(--t-base), border-color var(--t-base); } .pl-toolbar .btn-new:hover { background: var(--background-lighter); border-color: var(--black-alpha-24); } .pl-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 28px 28px; } .pl-empty { padding: 60px 20px; text-align: center; color: var(--black-alpha-48); font-size: 13px; line-height: 1.7; } .pl-empty .mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; margin-bottom: 6px; } .pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; } .pl-card { position: relative; background: var(--background-lighter); border: 1px solid var(--border-faint); border-radius: var(--r-md); padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; text-align: left; font-family: inherit; transition: background var(--t-base), border-color var(--t-base); } .pl-card:hover { background: var(--surface); } .pl-card.selected { border-color: var(--heat); background: var(--heat-12); } .pl-card .pl-thumb { aspect-ratio: 1; border-radius: var(--r-sm); } .pl-card .pl-thumb.has-real-media { overflow: hidden; background: var(--black-alpha-4); } .pl-card .pl-thumb.has-real-media img { width: 100%; height: 100%; object-fit: cover; display: block; } .pl-card .pl-name { font-size: 13px; font-weight: 500; color: var(--accent-black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pl-card .pl-meta { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pl-card .pl-check { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; background: var(--surface); border: 1.5px solid var(--black-alpha-24); border-radius: 50%; display: grid; place-items: center; z-index: 2; color: var(--accent-white); } .pl-card .pl-check svg { width: 11px; height: 11px; visibility: hidden; } .pl-card.selected .pl-check { background: var(--heat); border-color: var(--heat); } .pl-card.selected .pl-check svg { visibility: visible; } /* 底部 · 已选汇总 + 操作 */ .pl-modal-f { padding: 14px 28px; border-top: 1px solid var(--border-faint); display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-shrink: 0; } .pl-modal-f .summary { margin-right: auto; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-56); letter-spacing: .02em; } .pl-modal-f .summary b { color: var(--heat); font-weight: 600; } /* ============================================================ C · 影擎三工作台(.yz-image) · 模特上身 / 平台套图 / 图片创作 ============================================================ */ .yz-image { --klein: #002fa7; --klein-hover: #002680; --muted: #6f747c; --text: #17181a; --shadow-card: 0 8px 20px rgba(20, 27, 38, 0.09); --image-workspace-height: clamp(640px, calc(100dvh - 232px), 1008px); box-sizing: border-box; margin: -24px -28px -60px; padding: 18px clamp(28px, 2.6vw, 56px) 22px; } @media (max-width: 1100px) { .yz-image { margin: -28px -24px -48px; } } .yz-image .image-subpage-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 18px; } .yz-image .image-title-row { display: flex; align-items: center; gap: 13px; } .yz-image .image-back-button { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(34, 42, 54, 0.12); border-radius: 12px; color: var(--text); background: rgba(255, 255, 255, 0.82); cursor: pointer; } .yz-image .image-back-button:hover { transform: translateX(-2px); background: rgba(34, 42, 54, 0.08); } .yz-image .image-back-button svg { width: 19px; height: 19px; } .yz-image .image-subpage-header h1 { margin: 0 0 4px; font-size: 26px; line-height: 1.2; font-weight: 600; } .yz-image .image-subpage-header p { margin: 0; color: var(--muted); font-size: 13px; } .yz-image .product-context { min-width: 244px; display: flex; align-items: center; gap: 12px; padding: 7px 12px 7px 7px; border: 1px solid rgba(34, 42, 54, 0.10); border-radius: 13px; background: rgba(34, 42, 54, 0.045); cursor: pointer; } .yz-image .product-context img { width: 42px; height: 42px; display: block; border-radius: 10px; object-fit: cover; } .yz-image .product-context-copy { min-width: 0; display: grid; gap: 3px; } .yz-image .product-context-copy span { color: var(--muted); font-size: 11px; } .yz-image .product-context-copy strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; } .yz-image .secondary-action { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid rgba(34, 42, 54, 0.12); border-radius: 10px; color: var(--text); background: rgba(255, 255, 255, 0.82); font: inherit; font-size: 13px; cursor: pointer; } .yz-image .secondary-action svg { width: 16px; height: 16px; } .yz-image .generator-layout { display: grid; grid-template-columns: minmax(640px, min(1120px, calc(100% - 420px))) minmax(320px, 1fr); gap: 16px; align-items: stretch; } .yz-image .generator-panel, .yz-image .result-panel, .yz-image .studio-history, .yz-image .studio-stage { border: 1px solid rgba(34, 42, 54, 0.10); border-radius: 16px; background: rgba(255, 255, 255, 0.76); box-shadow: var(--shadow-card); } .yz-image .generator-panel { height: var(--image-workspace-height); min-height: 0; display: flex; flex-direction: column; padding: 16px 18px; overflow: hidden; } .yz-image .asset-pair-grid { overflow: auto; flex: 0 1 auto; } .yz-image .generator-settings { flex: 1; min-height: 0; overflow: auto; } .yz-image .generator-footer { flex: 0 0 auto; } .yz-image .asset-pair-grid { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr); gap: 18px; min-height: 0; } .yz-image .asset-pair-grid > .control-section { min-width: 0; } .yz-image .asset-pair-grid > .control-section + .control-section { margin-top: 0; padding-top: 0; padding-left: 18px; border-top: 0; border-left: 1px solid rgba(34, 42, 54, 0.09); } .yz-image .generator-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 18px; margin-top: 15px; padding-top: 14px; border-top: 1px solid rgba(34, 42, 54, 0.09); } .yz-image .generator-settings .control-heading, .yz-image .generator-settings .field-group:last-child { grid-column: 1 / -1; } .yz-image .platform-generator-settings .field-group { grid-column: 1 / -1; } .yz-image .control-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; } .yz-image .step-number { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--klein); background: rgba(0, 47, 167, 0.10); font-size: 12px; font-weight: 600; } .yz-image .control-heading strong { font-size: 16px; font-weight: 600; } .yz-image .product-choice-list { display: grid; gap: 8px; } .yz-image .product-choice { position: relative; min-height: 72px; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 8px; border: 1px solid rgba(34, 42, 54, 0.10); border-radius: 12px; color: var(--text); background: rgba(34, 42, 54, 0.035); text-align: left; cursor: pointer; font: inherit; } .yz-image .product-choice.active { border-color: rgba(0, 47, 167, 0.64); background: rgba(0, 47, 167, 0.075); } .yz-image .product-choice img, .yz-image .product-choice .thumb-fallback { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 9px; object-fit: cover; background: rgba(34, 42, 54, 0.08); font-size: 12px; } .yz-image .product-choice-copy { min-width: 0; display: grid; gap: 4px; } .yz-image .product-choice-copy strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; } .yz-image .product-choice-copy span { color: var(--muted); font-size: 12px; } .yz-image .choice-check { position: absolute; top: 9px; right: 9px; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid rgba(34, 42, 54, 0.18); border-radius: 50%; background: #fff; } .yz-image .product-choice.active .choice-check, .yz-image .model-choice.active .choice-check, .yz-image .platform-choice.active .choice-check { border-color: var(--klein); background: var(--klein); } .yz-image .product-choice.active .choice-check::after, .yz-image .model-choice.active .choice-check::after, .yz-image .platform-choice.active .choice-check::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; } .yz-image .product-library-choice, .yz-image .upload-choice { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px dashed rgba(34, 42, 54, 0.18); border-radius: 11px; color: var(--muted); background: rgba(34, 42, 54, 0.025); font: inherit; font-size: 12px; cursor: pointer; } .yz-image .product-library-choice svg, .yz-image .upload-choice svg { width: 16px; height: 16px; color: var(--klein); } .yz-image .model-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .yz-image .model-choice, .yz-image .upload-choice.model-upload { position: relative; min-height: 92px; display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 9px; padding: 8px; border: 1px solid rgba(34, 42, 54, 0.10); border-radius: 12px; color: var(--text); background: rgba(34, 42, 54, 0.035); text-align: left; cursor: pointer; font: inherit; } .yz-image .upload-choice.model-upload { grid-template-columns: 1fr; place-items: center; border-style: dashed; color: var(--muted); text-align: center; } .yz-image .model-choice.active { border-color: rgba(0, 47, 167, 0.64); background: rgba(0, 47, 167, 0.075); } .yz-image .model-choice img, .yz-image .model-choice .thumb-fallback { width: 56px; height: 72px; display: grid; place-items: center; border-radius: 9px; object-fit: cover; background: rgba(34, 42, 54, 0.08); font-size: 11px; } .yz-image .model-choice-copy { min-width: 0; display: grid; gap: 5px; } .yz-image .model-choice-copy strong { font-size: 15px; } .yz-image .model-choice-copy span { color: var(--muted); font-size: 12px; line-height: 1.45; } .yz-image .yz-platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .yz-image .platform-choice { position: relative; min-height: 72px; display: grid; place-items: center; gap: 4px; padding: 7px 5px; border: 1px solid rgba(34, 42, 54, 0.10); border-radius: 11px; color: var(--text); background: rgba(34, 42, 54, 0.035); cursor: pointer; font: inherit; } .yz-image .platform-choice.active { border-color: rgba(0, 47, 167, 0.64); background: rgba(0, 47, 167, 0.075); } .yz-image .platform-choice .p-logo { width: 32px; height: 32px; border-radius: 9px; font-size: 10px; } .yz-image .platform-choice > span:last-child { font-size: 12px; } .yz-image .field-group { display: grid; gap: 7px; } .yz-image .field-label { display: flex; align-items: center; justify-content: space-between; color: #4a5059; font-size: 14px; font-weight: 600; } .yz-image .field-label small { color: var(--muted); font-size: 11px; font-weight: 500; } .yz-image .choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .yz-image .choice-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .yz-image .choice-row button { height: 40px; border: 1px solid rgba(34, 42, 54, 0.10); border-radius: 9px; color: #4a5059; background: rgba(34, 42, 54, 0.035); font: inherit; font-size: 13px; cursor: pointer; } .yz-image .choice-row button.active { color: var(--klein); border-color: rgba(0, 47, 167, 0.42); background: rgba(0, 47, 167, 0.075); font-weight: 600; } .yz-image .image-prompt { width: 100%; min-height: 82px; height: 82px; padding: 11px 13px; resize: none; border: 1px solid rgba(34, 42, 54, 0.11); border-radius: 11px; outline: 0; color: var(--text); background: rgba(34, 42, 54, 0.03); font: inherit; font-size: 14px; line-height: 1.65; } .yz-image .image-prompt:focus { border-color: rgba(0, 47, 167, 0.48); background: #fff; box-shadow: 0 0 0 3px rgba(0, 47, 167, 0.07); } .yz-image .model-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--muted); font-size: 11px; } .yz-image .generator-footer { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; margin-top: auto; padding-top: 16px; } .yz-image .cost-line { width: 230px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 11px; } .yz-image .cost-line strong { color: var(--text); font-size: 13px; } .yz-image .generate-button { width: 230px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 11px; color: #fff; background: var(--klein); box-shadow: 0 10px 22px rgba(0, 47, 167, 0.18); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; } .yz-image .generate-button:hover:not(:disabled) { transform: translateY(-2px); background: var(--klein-hover); } .yz-image .generate-button:disabled { opacity: 0.62; cursor: not-allowed; } .yz-image .generate-button svg { width: 17px; height: 17px; } .yz-image .result-panel { min-width: 0; height: var(--image-workspace-height); display: flex; flex-direction: column; overflow: visible; } .yz-image .result-topbar { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 20px; position: relative; z-index: 5; border-bottom: 1px solid rgba(34, 42, 54, 0.08); } .yz-image .result-topbar strong { font-size: 14px; } .yz-image .result-tags { display: flex; align-items: center; gap: 8px; } .yz-image .result-tags span { padding: 6px 9px; border-radius: 999px; color: var(--muted); background: rgba(34, 42, 54, 0.055); font-size: 10px; } .yz-image .result-canvas { position: relative; min-height: 0; flex: 1; display: grid; place-items: center; padding: 18px; overflow: auto; background: radial-gradient(circle at center, rgba(0, 47, 167, 0.055), transparent 32%), linear-gradient(rgba(34, 42, 54, 0.034) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 42, 54, 0.034) 1px, transparent 1px); background-size: auto, 34px 34px, 34px 34px; } .yz-image .result-canvas.has-results { place-items: start stretch; } .yz-image .result-empty { position: relative; z-index: 1; max-width: 380px; display: grid; place-items: center; gap: 10px; color: var(--muted); text-align: center; } .yz-image .result-empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 5px; border: 1px solid rgba(34, 42, 54, 0.09); border-radius: 16px; color: var(--klein); background: rgba(255, 255, 255, 0.86); } .yz-image .result-empty-icon svg { width: 25px; height: 25px; } .yz-image .result-empty strong { color: var(--text); font-size: 16px; } .yz-image .result-empty p { margin: 0; font-size: 12px; line-height: 1.65; } .yz-image .result-footer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(34, 42, 54, 0.08); } .yz-image .result-stat { padding: 11px 14px; border-right: 1px solid rgba(34, 42, 54, 0.08); } .yz-image .result-stat:last-child { border-right: 0; } .yz-image .result-stat span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; } .yz-image .result-stat strong { font-size: 12px; } .yz-image .studio-layout { height: var(--image-workspace-height); min-height: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; } .yz-image .studio-history { display: flex; flex-direction: column; padding: 14px; min-height: 0; } .yz-image .new-conversation { height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(34, 42, 54, 0.11); border-radius: 10px; color: var(--text); background: rgba(34, 42, 54, 0.035); font: inherit; cursor: pointer; } .yz-image .history-label { margin: 18px 4px 10px; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; } .yz-image .history-list { min-height: 0; flex: 1; overflow: auto; display: grid; align-content: start; gap: 4px; } .yz-image .history-item { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; color: var(--text); cursor: pointer; } .yz-image .history-item.active { background: rgba(0, 47, 167, 0.075); } .yz-image .history-item .nm { min-width: 0; flex: 1; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; } .yz-image .history-item .ic-conv-acts { display: flex; gap: 2px; } .yz-image .history-empty { margin: 6px 4px; color: var(--muted); font-size: 12px; line-height: 1.7; } .yz-image .history-tip { margin-top: auto; padding: 14px; border-radius: 11px; color: var(--muted); background: rgba(34, 42, 54, 0.045); font-size: 11px; line-height: 1.6; } .yz-image .studio-stage { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; } .yz-image .studio-canvas { min-height: 0; flex: 1; display: grid; place-items: center; padding: 24px; overflow: auto; background: radial-gradient(circle at center, rgba(0, 47, 167, 0.06), transparent 28%), linear-gradient(rgba(34, 42, 54, 0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 42, 54, 0.028) 1px, transparent 1px); background-size: auto, 42px 42px, 42px 42px; } .yz-image .studio-canvas.has-results { place-items: start stretch; } .yz-image .studio-empty { max-width: 700px; display: grid; place-items: center; gap: 10px; text-align: center; } .yz-image .studio-empty h2 { margin: 7px 0 0; font-size: 24px; font-weight: 600; } .yz-image .studio-empty > p { margin: 0; color: var(--muted); font-size: 13px; } .yz-image .suggestion-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; } .yz-image .suggestion-chip { padding: 7px 11px; border: 1px solid rgba(34, 42, 54, 0.10); border-radius: 999px; color: #444b55; background: rgba(255, 255, 255, 0.76); font: inherit; font-size: 11px; cursor: pointer; } .yz-image .image-composer { margin: 0 12px 12px; padding: 20px; border: 1px solid rgba(34, 42, 54, 0.11); border-radius: 15px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 14px 34px rgba(20, 27, 38, 0.09); } .yz-image .image-composer-main { display: grid; grid-template-columns: 60px 1fr; gap: 16px; align-items: start; } .yz-image .image-reference-button { width: 60px; height: 60px; display: grid; place-items: center; border: 1px dashed rgba(34, 42, 54, 0.18); border-radius: 11px; color: var(--klein); background: rgba(34, 42, 54, 0.035); cursor: pointer; } .yz-image .image-reference-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .yz-image .image-reference-thumbs span { position: relative; width: 36px; height: 36px; overflow: hidden; border-radius: 8px; } .yz-image .image-reference-thumbs img { width: 100%; height: 100%; object-fit: cover; } .yz-image .studio-prompt { width: 100%; min-height: 96px; padding: 4px 2px; resize: none; border: 0; outline: 0; color: var(--text); background: transparent; font: inherit; font-size: 14px; line-height: 1.6; } .yz-image .image-composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(34, 42, 54, 0.08); } .yz-image .image-composer-options { display: flex; flex-wrap: wrap; gap: 7px; } .yz-image .studio-submit { min-width: 154px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 0; border-radius: 10px; color: #fff; background: var(--klein); font: inherit; cursor: pointer; } .yz-image .studio-submit:disabled { opacity: 0.62; cursor: not-allowed; } .yz-image .studio-submit:hover:not(:disabled) { transform: translateY(-1px); background: var(--klein-hover); } .yz-image .studio-submit svg { width: 16px; height: 16px; } .yz-image .iw-ratio-manual { display: flex; align-items: center; gap: 8px; margin-top: 8px; } /* 与旧 .image-workbench 共存:吃掉全屏壳,只保留结果卡 / logo / 气泡后代样式 */ .yz-image.image-workbench { height: auto; min-height: calc(100vh - 116px); overflow: visible; background: transparent; display: block; } .yz-image .product-context { font: inherit; text-align: left; } .yz-image .product-context .thumb-fallback { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: rgba(34, 42, 54, 0.08); font-size: 12px; } .yz-image .product-choice-unread { position: absolute; left: 4px; top: 4px; z-index: 1; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: var(--klein); font-size: 10px; font-weight: 600; } .yz-image .platform-choice .p-logo { display: grid; place-items: center; overflow: hidden; color: #fff; } .yz-image .platform-choice .p-logo.has-img { background: #fff; } .yz-image .model-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; color: #3f4550; background: rgba(34, 42, 54, 0.055); } .yz-image .model-pill svg { width: 13px; height: 13px; color: var(--klein); } .yz-image .model-line .ic-param { position: relative; outline: none; } .yz-image .model-line .ic-param-btn { height: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 0; border-radius: 999px; color: #3f4550; background: rgba(34, 42, 54, 0.055); font: inherit; font-size: 11px; cursor: pointer; } .yz-image .result-canvas.has-results, .yz-image .studio-canvas.has-results { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 14px; } .yz-image .result-topbar-tools { display: flex; align-items: center; gap: 8px; } .yz-image .result-topbar .search-btn { width: 32px; height: 32px; display: grid; place-items: center; position: relative; border: 1px solid rgba(34, 42, 54, 0.10); border-radius: 8px; color: var(--muted); background: rgba(255, 255, 255, 0.82); cursor: pointer; } .yz-image .result-topbar .search-btn.active, .yz-image .result-topbar .search-btn:hover { color: var(--klein); border-color: rgba(0, 47, 167, 0.28); background: rgba(0, 47, 167, 0.075); } .yz-image .iw-filter-notice { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; padding: 8px 10px; border-radius: 10px; color: var(--muted); background: rgba(0, 47, 167, 0.06); font-size: 12px; } .yz-image .iw-filter-count { background: var(--klein); } .yz-image .iw-filter-clear { color: var(--klein); } .yz-image .iw-filter-opt.on { border-color: rgba(0, 47, 167, 0.42); background: rgba(0, 47, 167, 0.075); } .yz-image .iw-filter-opt .ck { color: var(--klein); } .yz-image .history-item .ic-conv-acts button { width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; } .yz-image .history-item .ic-conv-acts button:hover { color: var(--klein); background: rgba(0, 47, 167, 0.08); } .yz-image .ic-conv-rename { min-width: 0; flex: 1; height: 28px; padding: 0 8px; border: 1px solid rgba(0, 47, 167, 0.35); border-radius: 6px; outline: 0; font: inherit; font-size: 13px; } .yz-image .ic-conv-error { margin: 8px 0 0; color: #b42318; font-size: 12px; } .yz-image .image-composer-options .ic-param { position: relative; outline: none; } .yz-image .image-composer-options .ic-param-btn { height: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border: 0; border-radius: 999px; color: var(--muted); background: rgba(34, 42, 54, 0.055); font: inherit; font-size: 11px; cursor: pointer; } .yz-image .image-composer-options .ic-param-btn span:last-of-type { color: var(--text); font-size: 11px; font-weight: 600; } .yz-image .image-composer-options .ic-param-btn svg { width: 12px; height: 12px; } .yz-image .image-composer-options .ic-param.open .ic-param-btn, .yz-image .model-line .ic-param.open .ic-param-btn { color: var(--klein); background: rgba(0, 47, 167, 0.075); } .yz-image .ic-param-menu .mi.selected { color: var(--klein); } .yz-image .image-reference-thumbs button { position: absolute; top: 0; right: 0; width: 14px; height: 14px; display: grid; place-items: center; border: 0; border-radius: 999px; color: #fff; background: rgba(16, 16, 18, 0.72); font-size: 10px; line-height: 1; cursor: pointer; } .yz-image .studio-kicker { margin: 0; color: var(--klein); font-size: 11px; letter-spacing: 0.12em; } @media (max-width: 1320px) { .yz-image .generator-layout { grid-template-columns: 1fr; } .yz-image .generator-panel, .yz-image .result-panel { height: auto; min-height: 420px; } .yz-image .studio-layout { grid-template-columns: 1fr; height: auto; } } /* 参考图可直接拖进输入区 */ .yz-image .image-composer.is-dragover { outline: 1.5px dashed var(--heat); outline-offset: 4px; border-radius: var(--r-md, 8px); }