/* AI 工具页 · 像素还原 scoped 样式 基线:public/exact/asset-factory.html(图片生成入口 + 任务中心) public/exact/{model-photo,platform-cover,image-optimize}.html(工作室壳) 只用 design-restraint.css 的 token;共享组件类(.btn/.pill/.input/.field/ .placeholder/.with-corners/.toolbar/table.t/.tabs/.chip/.view-toggle…)直接复用, 不在此重写。以下仅页面专属结构。 挂载根:.asset-factory(AssetFactoryPage)/ .image-workbench(ImageWorkbenchPage)。 */ /* ============================================================ A · 图片生成入口(.asset-factory) ============================================================ */ /* ─── 三 Hero 卡片网格(模特上身图 / 平台套图 / 图片创作 · 等比)─── */ .asset-factory .factory-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 56px; } @media (max-width: 1400px) { .asset-factory .factory-hero { grid-template-columns: 1fr 1fr; } } @media (max-width: 1000px) { .asset-factory .factory-hero { grid-template-columns: 1fr; } } .asset-factory .factory-card { position: relative; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); padding: 28px 30px; overflow: hidden; } .asset-factory .factory-body { display: flex; flex-direction: column; gap: 18px; height: 100%; } .asset-factory .factory-text { display: flex; flex-direction: column; min-width: 0; } .asset-factory .factory-tag { align-self: flex-start; font-family: var(--font-mono); font-size: 10.5px; color: var(--black-alpha-48); letter-spacing: .06em; padding: 2px 8px; border: 1px solid var(--border-faint); background: var(--background-lighter); border-radius: var(--r-sm); margin-bottom: 14px; } .asset-factory .factory-title { font-size: 22px; font-weight: 600; letter-spacing: -.018em; line-height: 1.25; color: var(--accent-black); } .asset-factory .factory-desc { margin-top: 8px; font-size: 13.5px; color: var(--black-alpha-64); line-height: 1.55; } /* CTA 行:主按钮 + 价格 mono */ .asset-factory .factory-cta { margin-top: auto; padding-top: 24px; display: flex; align-items: center; gap: 14px; } .asset-factory .factory-cta .cost { font-family: var(--font-mono); font-size: 10.5px; color: var(--black-alpha-48); letter-spacing: .04em; } /* ─── 任务中心 · section header(基线 .section-h 带 mono sub)─── */ .asset-factory .section-h { margin-top: 24px; } .asset-factory .section-h .sub-mono { font-family: var(--font-mono); font-size: 11.5px; color: var(--black-alpha-48); letter-spacing: .02em; } .asset-factory .result-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--black-alpha-48); letter-spacing: .02em; margin: 2px 0 12px; } /* ─── 列表视图 · 表格容器(基线 #task-list-view)─── */ .asset-factory .task-list-view { background: var(--surface); border: 1px solid var(--border-muted); border-radius: var(--r-md); overflow: hidden; } .asset-factory .task-list-view table.t { border: 0; border-radius: 0; background: transparent; } .asset-factory .task-list-view table.t thead th { background: var(--background-lighter); border-bottom-color: var(--border-muted); } .asset-factory .task-list-view table.t tbody td { border-bottom: 0; } .asset-factory .task-name-cell { display: flex; align-items: center; gap: 12px; } .asset-factory .task-thumb { width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r-sm); } .asset-factory .task-name { font-weight: 600; color: var(--accent-black); font-size: 13.5px; } .asset-factory .task-sub { font-size: 11.5px; color: var(--black-alpha-48); margin-top: 3px; font-family: var(--font-mono); letter-spacing: .02em; } .asset-factory .task-list-prog { display: flex; align-items: center; gap: 8px; min-width: 120px; } .asset-factory .task-list-prog .bar { flex: 1; height: 4px; background: var(--black-alpha-7); border-radius: 2px; overflow: hidden; } .asset-factory .task-list-prog .bar span { display: block; height: 100%; background: var(--heat); border-radius: 2px; animation: af-hp-pulse 1.4s ease-in-out infinite; } .asset-factory .task-list-prog .pct { font-family: var(--font-mono); font-size: 10.5px; color: var(--heat); letter-spacing: .02em; white-space: nowrap; } @keyframes af-hp-pulse { 0%, 100% { opacity: 1; transform: scaleY(1); } 50% { opacity: .55; transform: scaleY(.7); } } .asset-factory .task-empty { padding: 60px 20px; text-align: center; color: var(--black-alpha-48); font-size: 13px; line-height: 1.6; } .asset-factory .task-empty .mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; margin-bottom: 6px; } /* ============================================================ B · 图片工作室壳(.image-workbench) 基线:model-photo / platform-cover(商品空间 + 表单 + 预览) 与 image-optimize(对话流)布局相近 — 统一为 mode 感知工作室。 在 .content 内铺满可用高度(shell 由 App.tsx 渲染,这里只占正文)。 ============================================================ */ .image-workbench { /* 抵消 .content 的 48/28/72 padding,让工作室壳贴边铺满(同旧 .tool-shell 思路) */ margin: -48px -28px -72px; height: calc(100vh - 64px); display: flex; flex-direction: column; background: var(--background-base); overflow: hidden; } /* ════════════════════════════════════════════════ 通用:返回 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: 10.5px; 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: inset 0 -2px 4px rgba(250, 93, 25, 0.20), 0 1px 1px rgba(250, 93, 25, 0.12), 0 2px 4px rgba(250, 93, 25, 0.10); 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: inset 0 -2px 4px rgba(250, 93, 25, 0.20), 0 1px 1px rgba(250, 93, 25, 0.16), 0 4px 8px rgba(250, 93, 25, 0.20); } .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: 12.5px; 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 { flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--r-sm); } .image-workbench .iw-prod-item .body { flex: 1; min-width: 0; } .image-workbench .iw-prod-item .nm { font-size: 12.5px; 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: 10px; 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: 10.5px; 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: 10.5px; 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: 12.5px; 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; opacity: .6; } .image-workbench .iw-main-h .tb-menu-wrap { position: relative; } .image-workbench .iw-main-h .tb-search-wrap { display: inline-flex; align-items: center; } .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: 11px; font-weight: 700; 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 { margin-left: auto; 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: 12.5px; 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; } /* ── 模特选择 · 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 { font-size: 12.5px; font-weight: 500; color: var(--accent-black); } .image-workbench .model-card.selected .m-name { color: var(--heat); } .image-workbench .model-card .m-tag { font-family: var(--font-mono); font-size: 10.5px; color: var(--black-alpha-48); letter-spacing: .02em; } .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; opacity: 0; } .image-workbench .model-card.selected .m-check { background: var(--heat); border-color: var(--heat); } .image-workbench .model-card.selected .m-check svg { opacity: 1; } /* ── 平台选择 · 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: 11px; font-weight: 700; } .image-workbench .platform-card .p-name { font-size: 11.5px; 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; } /* 左栏底部 · 立即生成(主 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: 11px; 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-meta { float: right; font-family: var(--font-mono); font-size: 11px; color: var(--black-alpha-48); letter-spacing: .04em; line-height: 1.5; } .image-workbench .iw-pv-h .pv-meta b { color: var(--accent-black); font-weight: 600; } .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: 11px; 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; } /* 结果区:复用 §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: 11.5px; 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); overflow: hidden; cursor: pointer; } .image-workbench .gen-image .placeholder { position: absolute; inset: 0; } /* 生成结果真图 · 填满 .gen-image(比例由容器 aspect-ratio 控制) */ .image-workbench .gen-image-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--black-alpha-4); } /* 右上浮层按钮组(§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 svg { width: 14px; height: 14px; } /* 底部操作按钮行(§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: 10.5px; 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: 12.5px; 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; } } /* ════════════════════════════════════════════════ 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: 10px; 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: 12.5px; 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: 11.5px; color: var(--black-alpha-48); line-height: 1.55; } .image-workbench .ic-conv-empty .mono { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .02em; display: inline-block; margin-top: 4px; } /* 右 · 对话流主体 */ .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: 11px; 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: 11px; 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); } /* 底部 · 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: 10.5px; 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: opacity 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 { opacity: .4; 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: 11.5px; 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: 10.5px; 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; opacity: .6; } .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: 12.5px; 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; opacity: 0; color: var(--heat); } .image-workbench .ic-param-menu .mi.selected .mi-check { opacity: 1; } /* ============================================================ 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: 11px; 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(--black-alpha-48); flex-shrink: 0; } .model-demo .dm-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 12.5px; 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: 9px; 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: 12.5px; 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: 10px; 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: 10.5px; 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: 12.5px; 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: 11px; 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: 10.5px; 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: 11px; 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: 10px; 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: 10.5px; 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: 11px; 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: 11px; 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: 10px; 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: 10px; 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: 12.5px; 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: 11px; 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: 10.5px; 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: 10.5px; 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: 11px; 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; opacity: .6; } .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: 10.5px; 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: 13.5px; } .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: 10px; } .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; opacity: .6; } .model-demo.dm-b .dm-param .pchip .lbl-mono { font-family: var(--font-mono); font-size: 10px; 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: 10.5px; 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: 13.5px; 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 .history-body { min-width: 0; } .asset-factory .history-name { font-weight: 600; color: var(--accent-black); font-size: 13.5px; } .asset-factory .history-type { font-size: 11.5px; 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: 10.5px; color: var(--black-alpha-48); }