Compare commits

...
17 Commits
Author SHA1 Message Date
qiqi 83d42969f0 fix(webview): 锚点消失时立即 park,消除切换面板后的画面滞留 v3.26.33 2026-11-22 09:04:00 +08:00
qiqi ef7cdf424f docs: 锚点对齐 v3.26.32
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 31s
2026-11-22 08:57:16 +08:00
qiqi 9d6cda9cf4 chore(css): T2 第四批(canvas-topbar/home-grid)v3.26.32 2026-11-22 08:56:37 +08:00
qiqi 7a2199c09f docs: 锚点对齐 v3.26.31
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 25s
2026-11-22 08:45:10 +08:00
qiqi 2f6047d9eb chore(css): T2 第三批合并 v3.26.31 2026-11-22 08:44:31 +08:00
qiqi 77170a987a docs: 锚点对齐 v3.26.30
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 31s
2026-11-22 08:31:58 +08:00
qiqi d4fde0dbb5 chore(css): T2 第二批合并 v3.26.30 2026-11-22 08:31:19 +08:00
qiqi 2e4a7aa720 docs: 锚点对齐 v3.26.29
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 27s
2026-11-22 08:23:13 +08:00
qiqi ebb8467590 chore(css): T2 合并 .iwb-mk-card/.iwb-minimap v3.26.29 2026-11-22 08:22:34 +08:00
qiqi 67b3a6c557 docs: 锚点对齐 v3.26.28
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 26s
2026-11-22 08:11:24 +08:00
qiqi b6865fb703 chore(css): T1 去重(删死声明/空规则/游离括号)v3.26.28 2026-11-22 08:10:45 +08:00
qiqi c3bf8357b0 docs: 锚点对齐 b3bf16f(3.26.27) 2026-11-22 00:51:41 +08:00
qiqi b801198d36 docs: 第二批问题复盘(封面/停靠栏持久化/图库缩略图/市场设计约束) 2026-11-22 00:50:58 +08:00
qiqi b3bf16f52e style(settings): 插件市场/管理页交互只变色 + 移除按钮浅底 v3.26.27
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 58s
2026-11-22 00:48:46 +08:00
qiqi 6b3ba48d08 style(settings): 插件市场补回浮动触感 v3.26.26
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m1s
2026-11-22 00:44:18 +08:00
qiqi 0e69ead075 feat(settings): 插件市场全宽+淡描边+已安装徽标 v3.26.25
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m5s
2026-11-22 00:41:19 +08:00
qiqi dd38d7b663 feat(settings): 插件市场版式重设计 v3.26.24
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 48s
2026-11-22 00:36:05 +08:00
16 changed files with 658 additions and 181 deletions

No files matched your search

+91
View File
@@ -14,6 +14,97 @@
> 3. 核验正式地址版本 → 之后才移动 `stable` / `stable-verified-<日期>` 标签、更新本 CHANGELOG、写 GitHub Release(`gh release create`)。
> 测试发现问题 → 改 → 再 `deploy:test`,正式环境不受影响。回滚点 `git reset --hard stable`。
## v3.26.33(2026-11-22)切换面板后浏览器画面滞留约 1 秒
### 根因
- 面板里的原生 webview 锚点随插件卸载从 DOM 消失后,宿主只是**排了 900ms 宽限期的 close**,没有先隐藏;原生层永远在最上层,于是旧网页盖住新面板约 1 秒。
### 修复
- `detach()` 在排 close 之前**立即 park**(visible=false)。宽限期保留,用于节点体短暂重建(LOD/React 重建)时不重载网页。
## v3.26.32(2026-11-22)CSS 合并(T2 第四批:顶层 chrome)
### 合并
- `.iwb-canvas-topbar`:7 条基础规则 → **1 条**(保留 `left/right/background/border-bottom` 的 `!important` 与 `pointer-events:none`)。
- `.iwb-home-grid`:4 条 → **1 条**(最终列宽 230px)。
- 等价性校验:5623 条生效声明 0 差异;括号平衡。
### 测试
- `page-chrome-regression` 两处源码钉改成正则:不再依赖旧值(300px 列宽、字面空格)。
## v3.26.31(2026-11-22)CSS 合并(T2 第三批)
### 合并
- `.iwb-home-card-meta` 6 条 → 1。
- `.iwb-home-card-foot` 4 条 → 1。
- `.iwb-home-card-actions` 4 条 → 1。
- `.iwb-mk-row` 2 条 → 1;`.iwb-mk-tag` 2 条 → 1。
- 等价性校验:5623 条生效声明,0 差异;括号平衡。
## v3.26.30(2026-11-22)CSS 合并(T2 第二批)
### 合并
- `.iwb-home-card`:8 条 → **1 条**。
- `.iwb-top-nav-icon`:3 条 → **1 条**。
- `.iwb-mk-chip`:3 条 → **1 条**。
- 这三个选择器的状态变体(`:hover`、`.on`、`:first-of-type`)特异性更高,合并位置不影响层叠。
- 等价性校验:5623 条生效声明,0 处差异;括号平衡。
### 累计
- 行数 2504 → 约 2370;重复(选择器,上下文)组合 174 → **145**;死声明 367 → **107**。
## v3.26.29(2026-11-22)CSS 合并(T2):.iwb-mk-card 与 .iwb-minimap
### 合并
- `.iwb-mk-card`:4 条基础规则 → **1 条**(保留最终生效的全部声明)。
- `.iwb-minimap`:2 条(基础 + 停靠栏避让)→ **1 条**。
- 这两个选择器的状态/变体(`:hover`、`.is-installed`、`.iwb-overlay.drawer-open .iwb-minimap`)特异性更高,位置不影响层叠。
- 等价性校验:清理前后生效声明集合一致(5623 条,0 处差异)。
## v3.26.28(2026-11-22)CSS 去重(T1):删除死声明 + 修一处游离括号
### 清理
- 按「选择器 + 媒体上下文」解析 style.css:删除 **242 条已被后续同选择器覆盖的死声明**(逐条校验:后者非 !important 才删;同一规则多选择器时要求每个选择器都被覆盖才删)。
- 修复一处**游离 `}`** 与它的孤立声明块(`.iwb-picklist` 已无任何 JS 引用,属历史残留)。
- 等价性校验:清理前后「生效声明集合」完全一致(5630 条,0 处值差异)。
### 结果
- style.css 2504 → 2431 行(-73);删除死声明 **242 条**、空规则 **58 条**、游离声明块 1 处。
- 等价性校验:清理前后生效声明集合完全一致(0 处值差异);仅把 `interface-hierarchy` 测试里“钉住已死文本”的断言改为钉住最终生效的 0 偏移。
## v3.26.27(2026-11-22)插件市场交互回退为「只变色」
### 交互
- 卡片、标签、管理页行**取消上浮/阴影**,只保留背景与描边颜色变化。
- 卡片上的「移除/安装」按钮加**浅灰底**,不再只有文字;悬停略深、按下更深(安装仍是深色主按钮)。
- 管理页改回**横线分隔**行,悬停只轻微变色。
## v3.26.26(2026-11-22)插件市场补回悬停浮动触感
### 交互
- 卡片悬停上浮 3px(按下回落 1px),带阴影过渡。
- 操作按钮悬停上浮 1px + 投影;主按钮(安装)阴影更深;按下回到原位。
- 标签胶囊、管理页行也补了相同的轻浮动反馈。
## v3.26.25(2026-11-22)插件市场二次优化:全宽自适应 + 淡描边 + 已安装徽标
### 版式
- 去掉页面 1180px 限宽,卡片网格随窗口自适应(多出空间就多排卡片)。
- 卡片恢复**很淡的描边**(55% 边框色)+ 轻投影,悬停加深;不再是纯色块。
- 已安装不再用绿色底,改为名字后的 **「已安装」小徽标**(淡绿描边胶囊);绿点方案取消。
- 管理页列表改为块面行(圆角浅底、间距 8px),操作列仍右对齐。
## v3.26.24(2026-11-22)插件市场版式重设计
### 版式
- 顶部合并为一块「工具条」(搜索 + 标签)浅底块面,去掉逐行线框。
- 卡片:无描边,改浅色块面;悬停提亮;已安装卡片带极淡的成功色底。
- 页脚一行:左侧标签、右侧操作按钮;安装=深色主按钮,移除=无边框浅底按钮。
### 交互收敛
- 去掉「重装」按钮(无实际意义),已安装只保留「移除」。
- 「已安装」文字标签改为 **绿色圆点**(带 title 提示)。
## v3.26.23(2026-11-22)停靠栏“当前面板”重启后被切走
### 修复
+1 -1
View File
@@ -1,7 +1,7 @@
# 现状架构与性能事实基线(image-workbench-web)
> **本文档是什么**:现状**事实快照**,不是规范。用途:任何性能 / 内存 / 存储相关改动,先对齐这里的现实,避免把已经调好的东西改坏。
> 日期 **2026-10-20**(**2026-11-16 复算 · v3.24.85**)| 基线(**最近一次 bump 版本的提交**,不是主干 HEAD)`main = dd498a1`(线上 `v3.26.23+dd498a1` —— **未上线**(本地测试中):左右停靠栏配色对齐主色调(新增 `--iwb-dock-bg` 进灰阶 ramp + 头部深一档 + `.iwb-pcard` 补白底)+ 修 `Cargo.toml`/`Cargo.lock` 版本漂移,四处统一到 3.25.58)。上一条 3.25.30:线上实际运行提交是 docs 提交 `7df9dc4`,bump 提交为 `4be78c0`;2026-11-16 已发**测试站 + 正式站**,三地址一致 + `IWB_VERIFY_STRICT=1` 通过。v3.24.85 是「代码体检收口」(棘轮收回 Workbench 3090→2998 + 图库索引 4 条绕过锁的写路径收口到 `mutate` + 文档数字校准),`stable` / `stable-v3.24.85` / `stable-verified-2026-11-16` 均指向 `7df9dc4`。上一条 —— 2026-11-14 发**测试站 + 正式站** `https://test.image-workbench-web.pages.dev`:**v3.24.84 修「生图节点连了 3 条上游只出 1 个任务」**(任务 id 与去重基准改用新字段 `ownerNodeId`=本节点自己,不再用随继承冒泡的 `sourceNodeId` ⇒ 连几条线就几个任务;`relay` 仍归约到真实文本来源,同一来源多路径抵达只算一次)。上一条 v3.24.83:**修「插件节点冷启动退化成一段文本」**(插件节点体是异步注册的,`registerNodeType` 在 `render` 由无变有时自增 `NODE_TYPES_REV`,`NodeCard` 比它 ⇒ 注册那一刻重建一次;`canvas-normalize` 按命名规则把 `plugin:<id>:<variant>` 认作已知类型,不再降级成 `plugin` 并写回存档);配套插件 `style-source` 1.3.2 把节点体样式改为**脚本执行时注入**(此前只在面板 `mount()` 注入 ⇒ 从存档直接进画布时节点无样式、缩略图按原图铺满)。上一条 v3.24.82 同批:提示词/文本节点**显示上游继承文本**(自己 `data.text` 为空时把上游那段话显示在框里,改一个字即接管,另有「恢复跟随」清空回跟随;多路上游按 Y 轴取第一条)+ 修 `nodeRefsOf` 的 textout 分支只认 llm/batch/combine 上游导致「样式 → 文本 → 分层」丢参考图;再上一条 v3.24.81:① 插件节点可自定义节点体(`render(node, props, host)` 画真实 DOM,宿主不每帧重建 ⇒ 输入框不失焦);② 节点自带参考图(`data.refOn/refUrl` ⇒ 任务图里补伪参考图,坐标取节点自身 ⇒ 仍参与「图片按 X 轴排序」);③ 连线白名单按 `data.outKind === 'prompt'` 归一化,7 条规则一次放行,内置节点行为逐字不变。上一条 v3.24.80 = 离开页面的兜底保存不递增 rev(2026-11-14 07:20 补发 —— 首发 11-13 23:25 撞 Cloudflare Workers API 事故 `503 no healthy upstream`,期间正式站保持在 `v3.24.79+8598a57` 未动)。v3.24.83 的 bump 提交即 `0a27a42`(v3.24.82 为 `ef6cf42`、v3.24.81 为 `dba71e3`);主干 HEAD 会继续前进,见 [`RELEASES.md`](../RELEASES.md))| 历史分支 `refactor/architecture` / `feat/multi-canvas-tabs` / `refactor/state-store` 已于 2026-10-20 清理(内容均已并入 main,归档标签 `archive/*`),本文**计数类事实**已按 main HEAD 复算。
> 日期 **2026-10-20**(**2026-11-16 复算 · v3.24.85**)| 基线(**最近一次 bump 版本的提交**,不是主干 HEAD)`main = ef7cdf4`(线上 `v3.26.33+ef7cdf4` —— **未上线**(本地测试中):左右停靠栏配色对齐主色调(新增 `--iwb-dock-bg` 进灰阶 ramp + 头部深一档 + `.iwb-pcard` 补白底)+ 修 `Cargo.toml`/`Cargo.lock` 版本漂移,四处统一到 3.25.58)。上一条 3.25.30:线上实际运行提交是 docs 提交 `7df9dc4`,bump 提交为 `4be78c0`;2026-11-16 已发**测试站 + 正式站**,三地址一致 + `IWB_VERIFY_STRICT=1` 通过。v3.24.85 是「代码体检收口」(棘轮收回 Workbench 3090→2998 + 图库索引 4 条绕过锁的写路径收口到 `mutate` + 文档数字校准),`stable` / `stable-v3.24.85` / `stable-verified-2026-11-16` 均指向 `7df9dc4`。上一条 —— 2026-11-14 发**测试站 + 正式站** `https://test.image-workbench-web.pages.dev`:**v3.24.84 修「生图节点连了 3 条上游只出 1 个任务」**(任务 id 与去重基准改用新字段 `ownerNodeId`=本节点自己,不再用随继承冒泡的 `sourceNodeId` ⇒ 连几条线就几个任务;`relay` 仍归约到真实文本来源,同一来源多路径抵达只算一次)。上一条 v3.24.83:**修「插件节点冷启动退化成一段文本」**(插件节点体是异步注册的,`registerNodeType` 在 `render` 由无变有时自增 `NODE_TYPES_REV`,`NodeCard` 比它 ⇒ 注册那一刻重建一次;`canvas-normalize` 按命名规则把 `plugin:<id>:<variant>` 认作已知类型,不再降级成 `plugin` 并写回存档);配套插件 `style-source` 1.3.2 把节点体样式改为**脚本执行时注入**(此前只在面板 `mount()` 注入 ⇒ 从存档直接进画布时节点无样式、缩略图按原图铺满)。上一条 v3.24.82 同批:提示词/文本节点**显示上游继承文本**(自己 `data.text` 为空时把上游那段话显示在框里,改一个字即接管,另有「恢复跟随」清空回跟随;多路上游按 Y 轴取第一条)+ 修 `nodeRefsOf` 的 textout 分支只认 llm/batch/combine 上游导致「样式 → 文本 → 分层」丢参考图;再上一条 v3.24.81:① 插件节点可自定义节点体(`render(node, props, host)` 画真实 DOM,宿主不每帧重建 ⇒ 输入框不失焦);② 节点自带参考图(`data.refOn/refUrl` ⇒ 任务图里补伪参考图,坐标取节点自身 ⇒ 仍参与「图片按 X 轴排序」);③ 连线白名单按 `data.outKind === 'prompt'` 归一化,7 条规则一次放行,内置节点行为逐字不变。上一条 v3.24.80 = 离开页面的兜底保存不递增 rev(2026-11-14 07:20 补发 —— 首发 11-13 23:25 撞 Cloudflare Workers API 事故 `503 no healthy upstream`,期间正式站保持在 `v3.24.79+8598a57` 未动)。v3.24.83 的 bump 提交即 `0a27a42`(v3.24.82 为 `ef6cf42`、v3.24.81 为 `dba71e3`);主干 HEAD 会继续前进,见 [`RELEASES.md`](../RELEASES.md))| 历史分支 `refactor/architecture` / `feat/multi-canvas-tabs` / `refactor/state-store` 已于 2026-10-20 清理(内容均已并入 main,归档标签 `archive/*`),本文**计数类事实**已按 main HEAD 复算。
<!-- 2026-10-28 P1 拆分批 1:新增 src/generation-task-graph.js(5 个任务图纯函数自 app.js 迁出)
⇒ 模块数 60→61、耦合面 51→52、sourceModules 60→61。耦合面只**新增** IWBWTaskGraph,无删除。
2026-10-28 P1 拆分批 2:新增 src/storage-config-shape.js(9 个配置形状纯函数自 app.js 迁出)
@@ -122,3 +122,30 @@ PY
> 插件样式出问题,先分清「CSS 没生效」还是「规则写错了」——用 `style.sheet` + `getComputedStyle` 两个判据,一次就能定位;
> 发布时一次只动一件事,坏了好回滚;回滚后必须跑 UI 冒烟,因为回滚会带回旧 bug。
## 8. 第二批问题(3.26.21 – 3.26.27)
| # | 现象 | 根因 | 修法 |
|---|---|---|---|
| 1 | 封面单张 300KB,`prompts.json` 1.1MB | WebP 编码不可用时回退成 448px PNG | putCover 增加 JPEG 兜底(webp→jpeg→原图取小);实测 261KB |
| 2 | 每次切面板都弹「已压缩 N 张封面」 | 迁移阈值按体积 60KB,JPEG 封面 75KB 永远命中 | 条件改为 PNG 或 >150KB,且只有内容变化才保存/提示 |
| 3 | 更新/重启后左右栏摆放被打回默认 | 启动瞬间 panels 为空,整理逻辑删掉未注册 id 并写盘 | 不丢未注册 id;active 在 list 内则保持;面板为空不写盘 |
| 4 | 重启后当前面板从提示词库变浏览器 | active 在未加载时被回退成 list[0] | 同上(保持 active) |
| 5 | 图库部分格子永远“加载中…” | 重测会重建 DOM,缩略图被重复请求 | 缓存 URL + 共享 Promise + 微任务绘制 + 700ms 坏图快速失败 |
| 6 | 插件主题契约“看起来全,实际只查 2 个文件” | 只扫 .js 且只统计含颜色声明的文件 | 扫 .js + .css 全量(8 个),补白字例外 |
### 8.1 停靠栏持久化的通用教训
持久化状态 + 异步依赖(插件/面板注册)组合时:
1. 清理只作用于渲染,不回写存储;未注册的 id 必须保留,等它加载。
2. 写盘要有「依赖就绪」守卫,否则会用空集合覆盖用户数据。
3. 变更检测用内容比较而不是长度比较——去重(-1) 与回填(+1) 同时发生时长度不变,旧实现会漏检。
### 8.2 插件市场设计约束(用户裁定)
- 卡片:淡描边可,不要位移/上浮;只允许颜色变化。
- 已安装:名字后徽标;不要绿底、不要绿点。
- 按钮:浅色底;已安装只保留移除,不要重装。
- 管理页:横线分隔,不要块面卡片与浮动。
- 设置页不要限宽,网格随窗口自适应。
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "image-workbench-web",
"private": true,
"version": "3.26.23",
"version": "3.26.33",
"description": "Browser-based node canvas image workbench",
"scripts": {
"build": "node scripts/build.js && node scripts/copy-plugins.js",
+45 -5
View File
@@ -54,13 +54,13 @@
<h2>下载</h2>
<div class="row">
<div class="name">macOS · Apple Silicon<div class="hint">M1 / M2 / M3 / M4</div></div>
<div class="meta">版本 3.26.23 · 8.4 MB · .dmg<div class="hash">sha256 beb45e0df21d1449…</div></div>
<a class="btn" href="/updates/darwin-aarch64/image-workbench_3.26.23_aarch64.dmg?h=beb45e0df21d">下载</a>
<div class="meta">版本 3.26.33 · 8.4 MB · .dmg<div class="hash">sha256 3ef7cbd6777565eb…</div></div>
<a class="btn" href="/updates/darwin-aarch64/image-workbench_3.26.33_aarch64.dmg?h=3ef7cbd67775">下载</a>
</div>
<div class="row">
<div class="name">macOS · Intel<div class="hint">x86_64</div></div>
<div class="meta">版本 3.26.23 · 8.8 MB · .dmg<div class="hash">sha256 2a83fbad20717ba7…</div></div>
<a class="btn" href="/updates/darwin-x86_64/image-workbench_3.26.23_x64.dmg?h=2a83fbad2071">下载</a>
<div class="meta">版本 3.26.33 · 8.8 MB · .dmg<div class="hash">sha256 e44baa8c9d5aebe5…</div></div>
<a class="btn" href="/updates/darwin-x86_64/image-workbench_3.26.33_x64.dmg?h=e44baa8c9d5a">下载</a>
</div>
<div class="row">
<div class="name">Windows · x64<div class="hint">需要 WebView2</div></div>
@@ -94,6 +94,46 @@
</ol>
<h2>历史版本</h2>
<div class="row">
<div class="name">3.26.33<div class="hint">Intel 版:同一修复</div></div>
<div class="meta">2026-11-22<div class="hint">macOS · Apple Silicon / macOS · Intel</div></div>
</div>
<div class="row">
<div class="name">3.26.32<div class="hint">Intel 版:同一合并</div></div>
<div class="meta">2026-11-22<div class="hint">macOS · Apple Silicon / macOS · Intel</div></div>
</div>
<div class="row">
<div class="name">3.26.31<div class="hint">Intel 版:同一合并</div></div>
<div class="meta">2026-11-22<div class="hint">macOS · Apple Silicon / macOS · Intel</div></div>
</div>
<div class="row">
<div class="name">3.26.30<div class="hint">Intel 版:同一合并</div></div>
<div class="meta">2026-11-22<div class="hint">macOS · Apple Silicon / macOS · Intel</div></div>
</div>
<div class="row">
<div class="name">3.26.29<div class="hint">Intel 版:同一合并</div></div>
<div class="meta">2026-11-22<div class="hint">macOS · Apple Silicon / macOS · Intel</div></div>
</div>
<div class="row">
<div class="name">3.26.28<div class="hint">Intel 版:同一清理</div></div>
<div class="meta">2026-11-22<div class="hint">macOS · Apple Silicon / macOS · Intel</div></div>
</div>
<div class="row">
<div class="name">3.26.27<div class="hint">Intel 版:同一交互</div></div>
<div class="meta">2026-11-22<div class="hint">macOS · Apple Silicon / macOS · Intel</div></div>
</div>
<div class="row">
<div class="name">3.26.26<div class="hint">Intel 版:同一交互</div></div>
<div class="meta">2026-11-22<div class="hint">macOS · Apple Silicon / macOS · Intel</div></div>
</div>
<div class="row">
<div class="name">3.26.25<div class="hint">Intel 版:同一优化</div></div>
<div class="meta">2026-11-22<div class="hint">macOS · Apple Silicon / macOS · Intel</div></div>
</div>
<div class="row">
<div class="name">3.26.24<div class="hint">Intel 版:同一设计</div></div>
<div class="meta">2026-11-22<div class="hint">macOS · Apple Silicon / macOS · Intel</div></div>
</div>
<div class="row">
<div class="name">3.26.23<div class="hint">Intel 版:同一修复</div></div>
<div class="meta">2026-11-22<div class="hint">macOS · Apple Silicon / macOS · Intel</div></div>
@@ -424,7 +464,7 @@
</div>
<div class="foot">
本页由 <code>scripts/gen-release-page.js</code> 从 releases.json 生成 · 源码 <a href="https://git.maqiart.eu.org/malongan/image-workbench-desktop">git.maqiart.eu.org</a> · 更新于 2026-11-21
本页由 <code>scripts/gen-release-page.js</code> 从 releases.json 生成 · 源码 <a href="https://git.maqiart.eu.org/malongan/image-workbench-desktop">git.maqiart.eu.org</a> · 更新于 2026-11-22
</div>
</div></div>
+7 -7
View File
@@ -2,7 +2,7 @@
<html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>Image Workbench · 本地优先的 AI 生图工作台</title>
<meta name="description" content="本地优先的 AI 生图无限画布:节点式工作流、插件按需安装、数据全部留在本机。">
<link rel="stylesheet" href="/assets/style.css?v=3.26.23-mwqmiapo">
<link rel="stylesheet" href="/assets/style.css?v=3.26.33-mwr4vxlk">
</head><body>
<nav><div class="wrap inner">
<a class="brand" href="/"><span class="dot">IW</span>Image Workbench</a>
@@ -14,19 +14,19 @@
</div>
<div class="right">
<a class="btn" href="/plugins/">插件市场</a>
<a class="btn primary" href="/download/">下载 v3.26.23</a>
<a class="btn primary" href="/download/">下载 v3.26.33</a>
</div>
</div></nav>
<main>
<section class="hero hero-art">
<div class="hero-bg"><img src="/assets/painting.jpg?v=3.26.23-mwqmiapo" alt=""></div>
<div class="hero-bg"><img src="/assets/painting.jpg?v=3.26.33-mwr4vxlk" alt=""></div>
<div class="hero-veil"></div>
<div class="wrap">
<span class="kicker">v3.26.23 · macOS / Windows · 数据在本地</span>
<span class="kicker">v3.26.33 · macOS / Windows · 数据在本地</span>
<h1>本地优先的<br>AI 生图无限画布</h1>
<p class="sub">用节点把「参考图 → 提示词 → 批量生成 → 图库」串成一条生产线。<br>图片、提示词、模型配置全部留在你自己的电脑里,插件按需安装。</p>
<div class="cta">
<a class="btn primary lg" href="/download/">下载 v3.26.23</a>
<a class="btn primary lg" href="/download/">下载 v3.26.33</a>
<a class="btn lg" href="/plugins/">浏览 11 个插件</a>
</div>
<div class="meta">支持 macOS 12+ 与 Windows 10 1803+ · 安装包约 7 MB · 无需登录</div>
@@ -93,8 +93,8 @@
<section class="section"><div class="wrap">
<h2>下载 Image Workbench</h2>
<p class="lead">选你的平台。装过一次之后,以后在应用内「设置 → 通用 → 版本与更新」就能一键升级。</p>
<div class="dl"><a href="/updates/darwin-aarch64/image-workbench_3.26.23_aarch64.dmg?h=beb45e0df21d"><div class="n">macOS · Apple Silicon</div><div class="s">M1 / M2 / M3 / M4 · 8.4 MB · .dmg</div></a>
<a href="/updates/darwin-x86_64/image-workbench_3.26.23_x64.dmg?h=2a83fbad2071"><div class="n">macOS · Intel</div><div class="s">x86_64 · 8.8 MB · .dmg</div></a>
<div class="dl"><a href="/updates/darwin-aarch64/image-workbench_3.26.33_aarch64.dmg?h=3ef7cbd67775"><div class="n">macOS · Apple Silicon</div><div class="s">M1 / M2 / M3 / M4 · 8.4 MB · .dmg</div></a>
<a href="/updates/darwin-x86_64/image-workbench_3.26.33_x64.dmg?h=e44baa8c9d5a"><div class="n">macOS · Intel</div><div class="s">x86_64 · 8.8 MB · .dmg</div></a>
<div class="none"><div class="n">Windows · x64</div><div class="s">暂未提供</div></div></div>
<div style="margin-top:20px;color:#9ca3af;font-size:12.5px">安装包未做 Apple 公证 / Windows 代码签名,首次打开需手动放行一次,细节见 <a href="/download/" style="text-decoration:underline">下载页</a>。</div>
</div></section>
+2 -2
View File
@@ -1,7 +1,7 @@
<!doctype html>
<html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>插件市场 · Image Workbench</title>
<link rel="stylesheet" href="/assets/style.css?v=3.26.23-mwqmiapo">
<link rel="stylesheet" href="/assets/style.css?v=3.26.33-mwr4vxlk">
</head><body>
<nav><div class="wrap inner">
<a class="brand" href="/"><span class="dot">IW</span>Image Workbench</a>
@@ -13,7 +13,7 @@
</div>
<div class="right">
<a class="btn" href="/plugins/">插件市场</a>
<a class="btn primary" href="/download/">下载 v3.26.23</a>
<a class="btn primary" href="/download/">下载 v3.26.33</a>
</div>
</div></nav>
<main>
+211 -1
View File
@@ -1,8 +1,218 @@
{
"app": "Image Workbench",
"subtitle": "本地优先的 AI 生图无限画布 · 桌面版(Tauri v2)",
"updatedAt": "2026-11-21T16:29:30.596Z",
"updatedAt": "2026-11-22T01:03:59.874Z",
"releases": [
{
"version": "3.26.33",
"date": "2026-11-22",
"notes": "Intel 版:同一修复",
"platforms": {
"darwin-aarch64": {
"file": "updates/darwin-aarch64/image-workbench_3.26.33_aarch64.dmg",
"size": 8779829,
"sha256": "3ef7cbd6777565eb39646d7372790b39401382a20fea61c1da5b2d2396d1934c",
"h": "3ef7cbd67775",
"kind": "dmg"
},
"darwin-x86_64": {
"file": "updates/darwin-x86_64/image-workbench_3.26.33_x64.dmg",
"size": 9185159,
"sha256": "e44baa8c9d5aebe5b3a648a26595fc56158933506a85a949ac2dcf8a5e04c1bc",
"h": "e44baa8c9d5a",
"kind": "dmg"
}
}
},
{
"version": "3.26.32",
"date": "2026-11-22",
"notes": "Intel 版:同一合并",
"platforms": {
"darwin-aarch64": {
"file": "updates/darwin-aarch64/image-workbench_3.26.32_aarch64.dmg",
"size": 8778200,
"sha256": "caf473d86026705fb91bbbcc0323ccf4d688add861d77c3e1ddb7bb076fe5891",
"h": "caf473d86026",
"kind": "dmg"
},
"darwin-x86_64": {
"file": "updates/darwin-x86_64/image-workbench_3.26.32_x64.dmg",
"size": 9184024,
"sha256": "e18c3b20c333840056d70eca94730227dc457ace866fe23f04cb2b3690b86983",
"h": "e18c3b20c333",
"kind": "dmg"
}
}
},
{
"version": "3.26.31",
"date": "2026-11-22",
"notes": "Intel 版:同一合并",
"platforms": {
"darwin-aarch64": {
"file": "updates/darwin-aarch64/image-workbench_3.26.31_aarch64.dmg",
"size": 8783826,
"sha256": "aa8bfbed06a341093f912e421af72d994fc04fe532c34f49e3e2ec558af50153",
"h": "aa8bfbed06a3",
"kind": "dmg"
},
"darwin-x86_64": {
"file": "updates/darwin-x86_64/image-workbench_3.26.31_x64.dmg",
"size": 9182641,
"sha256": "9ebbe328872b9ac84540c64f3b214646f730ec3328e4c980339f5442ccdd4638",
"h": "9ebbe328872b",
"kind": "dmg"
}
}
},
{
"version": "3.26.30",
"date": "2026-11-22",
"notes": "Intel 版:同一合并",
"platforms": {
"darwin-aarch64": {
"file": "updates/darwin-aarch64/image-workbench_3.26.30_aarch64.dmg",
"size": 8782101,
"sha256": "cf79ab4999afddc18bde76db8f49f730132adc8dbad39ad988e4bb86236d7101",
"h": "cf79ab4999af",
"kind": "dmg"
},
"darwin-x86_64": {
"file": "updates/darwin-x86_64/image-workbench_3.26.30_x64.dmg",
"size": 9182524,
"sha256": "2ff71718943c06bd5bb848fb1ef99547ed3654a4be5615b2fd99ed96c9ea7eb2",
"h": "2ff71718943c",
"kind": "dmg"
}
}
},
{
"version": "3.26.29",
"date": "2026-11-22",
"notes": "Intel 版:同一合并",
"platforms": {
"darwin-aarch64": {
"file": "updates/darwin-aarch64/image-workbench_3.26.29_aarch64.dmg",
"size": 8784778,
"sha256": "3f2ff7d708121417fb5f04dabc14240553c7a84297eb02283f16583e0e914db2",
"h": "3f2ff7d70812",
"kind": "dmg"
},
"darwin-x86_64": {
"file": "updates/darwin-x86_64/image-workbench_3.26.29_x64.dmg",
"size": 9185981,
"sha256": "496868a9e62b383d659f69fdd07fa561b31f180a5a486960b653b6745385d7e8",
"h": "496868a9e62b",
"kind": "dmg"
}
}
},
{
"version": "3.26.28",
"date": "2026-11-22",
"notes": "Intel 版:同一清理",
"platforms": {
"darwin-aarch64": {
"file": "updates/darwin-aarch64/image-workbench_3.26.28_aarch64.dmg",
"size": 8780175,
"sha256": "917f9c435a4bd80e0cec37d469c60ae90474944f3a88a4a545f530d590a385d1",
"h": "917f9c435a4b",
"kind": "dmg"
},
"darwin-x86_64": {
"file": "updates/darwin-x86_64/image-workbench_3.26.28_x64.dmg",
"size": 9183561,
"sha256": "9daa6522269953a038d9f46a006bcbf6e3d03f304ff7c4c6ef334905eeb7662e",
"h": "9daa65222699",
"kind": "dmg"
}
}
},
{
"version": "3.26.27",
"date": "2026-11-22",
"notes": "Intel 版:同一交互",
"platforms": {
"darwin-aarch64": {
"file": "updates/darwin-aarch64/image-workbench_3.26.27_aarch64.dmg",
"size": 8782227,
"sha256": "2c3d2d2ca6c9fc86e361bc1506f39bbc407e5011545c95b187c2ff2489dd740e",
"h": "2c3d2d2ca6c9",
"kind": "dmg"
},
"darwin-x86_64": {
"file": "updates/darwin-x86_64/image-workbench_3.26.27_x64.dmg",
"size": 9187975,
"sha256": "ed0c8ba2f9c69a2ff17b9cefe9f469fd8adc201d10e188a2bd6e58a92e55e717",
"h": "ed0c8ba2f9c6",
"kind": "dmg"
}
}
},
{
"version": "3.26.26",
"date": "2026-11-22",
"notes": "Intel 版:同一交互",
"platforms": {
"darwin-aarch64": {
"file": "updates/darwin-aarch64/image-workbench_3.26.26_aarch64.dmg",
"size": 8782545,
"sha256": "bc50a4d1bd5ef8c2f68fc5f10cf05d11dcd56c9feccdbcc4bb2308ef3bae2318",
"h": "bc50a4d1bd5e",
"kind": "dmg"
},
"darwin-x86_64": {
"file": "updates/darwin-x86_64/image-workbench_3.26.26_x64.dmg",
"size": 9180404,
"sha256": "3149451c46d07ad89d17399bbda6e2520931707ad1ea90f873705d7b5efa7e61",
"h": "3149451c46d0",
"kind": "dmg"
}
}
},
{
"version": "3.26.25",
"date": "2026-11-22",
"notes": "Intel 版:同一优化",
"platforms": {
"darwin-aarch64": {
"file": "updates/darwin-aarch64/image-workbench_3.26.25_aarch64.dmg",
"size": 8779187,
"sha256": "952072aa7209a5561a34e070e29c90022f15b99dcdc8d9f340d7ef46e2981f37",
"h": "952072aa7209",
"kind": "dmg"
},
"darwin-x86_64": {
"file": "updates/darwin-x86_64/image-workbench_3.26.25_x64.dmg",
"size": 9182258,
"sha256": "b439bf90f80e3048f127b73a63f121222472833cde044335ca561532a40293b8",
"h": "b439bf90f80e",
"kind": "dmg"
}
}
},
{
"version": "3.26.24",
"date": "2026-11-22",
"notes": "Intel 版:同一设计",
"platforms": {
"darwin-aarch64": {
"file": "updates/darwin-aarch64/image-workbench_3.26.24_aarch64.dmg",
"size": 8783850,
"sha256": "dfe5550e8d71095a1f079897691b65b580a1a873564a0659c1c611ca39fef5d9",
"h": "dfe5550e8d71",
"kind": "dmg"
},
"darwin-x86_64": {
"file": "updates/darwin-x86_64/image-workbench_3.26.24_x64.dmg",
"size": 9183734,
"sha256": "e5d960bde2388ebd2215a0441fd88ed4391fdd6756657ffbf4e6d7ad9e78c57f",
"h": "e5d960bde238",
"kind": "dmg"
}
}
},
{
"version": "3.26.23",
"date": "2026-11-22",
+1 -1
View File
@@ -1983,7 +1983,7 @@ dependencies = [
[[package]]
name = "image-workbench"
version = "3.26.23"
version = "3.26.33"
dependencies = [
"arboard",
"base64 0.22.1",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "image-workbench"
version = "3.26.23"
version = "3.26.33"
description = "无限画布 · 生图工作台桌面版"
authors = ["malongan"]
license = ""
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "image-workbench",
"version": "3.26.23",
"version": "3.26.33",
"identifier": "com.malongan.imageworkbench",
"build": {
"frontendDist": "../dist",
+8
View File
@@ -361,6 +361,14 @@
if (!st) return
anchors.delete(id)
if (!st.open) return
// v3.26.33:锚点从 DOM 消失(换停靠栏面板 / React 重建节点体)时**立刻 park**,
// 原生层永远在最上层,不先隐藏会盖住新面板约 900ms(宽限期才 close)——表现为"切换后面面滞留 1 秒"。
if (st.shown !== false) {
push(st,
isFinite(st.px) ? st.px : 0, isFinite(st.py) ? st.py : 0,
isFinite(st.pw) ? st.pw : MIN_EDGE, isFinite(st.ph) ? st.ph : MIN_EDGE,
false, null)
}
var prev = pendingClose.get(id)
if (prev) clearTimeout(prev)
// 宽限窗口:LOD 降级 / React 重建节点体会让锚点短暂消失,立刻 close 会导致
+19 -18
View File
@@ -364,17 +364,17 @@
el('button', { className: 'iwb-btn iwb-btn-sm', style: { marginRight: 10 }, onClick: function () { setView('manage') } }, '返回'),
'插件市场',
),
el('div', { className: 'iwb-hint' }, '共 ' + mList.length + ' 个插件 · 安装在 ' + dirHint),
el('div', { className: 'iwb-row' },
el('div', { className: 'iwb-mk-subtitle' }, '共 ' + mList.length + ' 个插件 · ' + dirHint),
el('div', { className: 'iwb-mk-toolbar' },
el('input', { className: 'iwb-input iwb-grow', placeholder: '搜索插件,例如:出图、抠图、矢量…', value: q, onChange: function (e) { setQ(e.target.value) } }),
(function () {
const tags = []
for (const m of mList) for (const t of (m.tags || [])) if (tags.indexOf(t) < 0) tags.push(t)
return el('div', { className: 'iwb-mk-filters' }, tags.map(function (t) {
return el('button', { key: t, className: 'iwb-mk-chip' + (mt === t ? ' on' : ''), onClick: function () { setMt(mt === t ? '' : t) } }, t)
}))
})(),
),
(function () {
const tags = []
for (const m of mList) for (const t of (m.tags || [])) if (tags.indexOf(t) < 0) tags.push(t)
return el('div', { className: 'iwb-mk-filters' }, tags.map(function (t) {
return el('button', { key: t, className: 'iwb-mk-chip' + (mt === t ? ' on' : ''), onClick: function () { setMt(mt === t ? '' : t) } }, t)
}))
})(),
(function () {
const all = mList.filter(function (m) { return hit(m.name, m.desc) })
const shown = all.filter(function (m) {
@@ -397,22 +397,23 @@
if (m.size) bits.push(kb(m.size))
return el('div', { key: m.id, className: 'iwb-mk-card' },
el('div', { className: 'iwb-mk-head' },
el('span', { className: 'iwb-mk-avatar', style: { background: m.color || '#eef2f6' } }, m.icon || '◻'),
el('span', { className: 'iwb-mk-avatar', style: { background: m.color || 'var(--iwb-layer2)' } }, m.icon || '◻'),
el('div', { className: 'iwb-mk-titles' },
el('div', { className: 'iwb-mk-name' }, m.name || m.id,
((m.id in inst) || regById[m.id]) ? el('span', { className: 'iwb-plugin-tag', style: { marginLeft: 6 } }, '已安装') : null,
((m.id in inst) || regById[m.id]) ? el('span', { className: 'iwb-mk-badge' }, '已安装') : null,
),
el('div', { className: 'iwb-mk-sub' }, bits.join(' · ')),
),
el('div', { className: 'iwb-mk-actions' },
((m.id in inst) || regById[m.id]) ? el('button', { className: 'iwb-btn iwb-btn-sm', disabled: !!busy, onClick: function () { act('install', m.id) } }, busy === m.id ? '处理中…' : '重装') : null,
((m.id in inst) || regById[m.id])
? el('button', { className: 'iwb-btn iwb-btn-sm', disabled: !!busy, onClick: function () { act('uninstall', m.id) } }, '移除')
: el('button', { className: 'iwb-btn iwb-btn-sm iwb-btn-primary', disabled: !!busy, onClick: function () { act('install', m.id) } }, busy === m.id ? '处理中…' : '安装'),
),
),
m.desc ? el('div', { className: 'iwb-mk-desc' }, m.desc) : null,
(m.tags && m.tags.length) ? el('div', { className: 'iwb-mk-tags' }, m.tags.map(function (t) { return el('span', { key: t, className: 'iwb-mk-tag' }, t) })) : null,
el('div', { className: 'iwb-mk-foot' },
el('div', { className: 'iwb-mk-tags' }, (m.tags || []).slice(0, 3).map(function (t) { return el('span', { key: t, className: 'iwb-mk-tag' }, t) })),
el('div', { className: 'iwb-mk-actions' },
((m.id in inst) || regById[m.id])
? el('button', { className: 'iwb-btn iwb-btn-sm', disabled: !!busy, onClick: function () { act('uninstall', m.id) } }, '移除')
: el('button', { className: 'iwb-btn iwb-btn-sm iwb-btn-primary', disabled: !!busy, onClick: function () { act('install', m.id) } }, busy === m.id ? '安装中…' : '安装'),
),
),
)
})) : el('div', { className: 'iwb-hint' }, mList.length ? '没有匹配的插件' : '市场加载中…'),
)
+236 -140
View File
@@ -277,10 +277,10 @@ button { font-family: inherit; }
.iwb-out-img { width: 100%; border-radius: 8px; border: 1px solid var(--iwb-border); }
.iwb-out-meta { font-size: 10px; color: var(--iwb-text2); margin-top: 3px; }
.iwb-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.iwb-toolbar { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 12px; padding: 8px 10px; z-index: 10; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.iwb-toolbar { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; flex-wrap: wrap; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 12px; padding: 8px 10px; z-index: 10; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.iwb-toolbar-title { font-weight: 700; font-size: 13px; margin-right: 2px; }
.iwb-toolbar-sep { width: 1px; height: 18px; background: var(--iwb-border2); margin: 0 2px; }
.iwb-statusbar { position: absolute; right: 62px; top: 12px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; max-width: calc(100vw - 60px); justify-content: flex-end; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 10px; padding: 6px 12px; z-index: 10; font-size: 11px; color: var(--iwb-text2); box-shadow: 0 4px 16px rgba(0,0,0,0.12); transition: right 0.15s; }
.iwb-statusbar { position: absolute; top: 12px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; max-width: calc(100vw - 60px); justify-content: flex-end; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 10px; padding: 6px 12px; z-index: 10; font-size: 11px; color: var(--iwb-text2); box-shadow: 0 4px 16px rgba(0,0,0,0.12); transition: right 0.15s; }
.iwb-status-err { color: var(--iwb-err); }
.iwb-status-ok { color: var(--iwb-ok); }
/* 生成中状态:直接附着在顶部计时/状态背景,确保不依赖画布节点可见性 */
@@ -291,11 +291,11 @@ button { font-family: inherit; }
.iwb-save-saving { animation: iwb-pulse 1.2s ease-in-out infinite; }
@keyframes iwb-spin { to { transform: rotate(360deg); } }
@keyframes iwb-pulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
.iwb-hint-bottom { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-size: 10px; color: var(--iwb-text2); background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 8px; padding: 3px 10px; z-index: 9; opacity: 0.8; white-space: nowrap; }
.iwb-hint-bottom { position: absolute; bottom: 10px; transform: translateX(-50%); font-size: 10px; color: var(--iwb-text2); background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 8px; padding: 3px 10px; z-index: 9; opacity: 0.8; white-space: nowrap; }
.iwb-boxsel { position: absolute; border: 1px dashed var(--iwb-brand); background: color-mix(in srgb, var(--iwb-brand) 12%, transparent); z-index: 3; pointer-events: none; }
/* v3.26.18:右栏挤压到工具栏时自动隐藏(避免两者重叠) */
.iwb-minimap.iwb-minimap-tight { opacity: 0; transform: translateY(6px); pointer-events: none; }
.iwb-minimap { transition: opacity .16s ease, transform .16s ease; position: absolute; right: 62px; bottom: 14px; width: 132px; height: 88px; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 8px; z-index: 11; cursor: crosshair; overflow: hidden; touch-action: none; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.iwb-mini-node { position: absolute; border-radius: 2px; opacity: 0.85; }
.iwb-mini-view { position: absolute; border: 1px solid var(--iwb-brand); border-radius: 2px; pointer-events: none; }
.iwb-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 300; display: flex; align-items: center; justify-content: center; }
@@ -305,7 +305,6 @@ button { font-family: inherit; }
.iwb-modal-foot { padding: 12px 16px; border-top: 1px solid var(--iwb-border); display: flex; justify-content: flex-end; }
.iwb-provider-card { border: 1px solid var(--iwb-border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.iwb-keyrow { display: flex; gap: 6px; align-items: center; }
.iwb-keyname { flex: 0 0 110px; }
.iwb-lib { position: absolute; top: 0; right: 0; bottom: 0; background: var(--iwb-panel); border-left: 1px solid var(--iwb-border2); z-index: 20; display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(0,0,0,0.15); }
.iwb-lib-handle { position: absolute; left: -4px; top: 0; bottom: 0; width: 8px; cursor: ew-resize; z-index: 3; }
.iwb-lib-handle:hover { background: color-mix(in srgb, var(--iwb-text) 14%, transparent); }
@@ -387,7 +386,7 @@ button { font-family: inherit; }
.iwb-full-split:hover { background: var(--iwb-text2); }
.iwb-full-edit { flex: 0 0 auto; border-left: 1px solid var(--iwb-border); background: var(--iwb-layer); display: flex; flex-direction: column; min-height: 0; }
.iwb-full-edit-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--iwb-border); flex: 0 0 auto; }
.iwb-full-editor { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.iwb-full-editor { overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.iwb-full-editor { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.iwb-full-editor-title { font-size: 13px; font-weight: 700; color: var(--iwb-text); }
.iwb-full-editor-text { min-height: 220px; resize: vertical; }
@@ -423,7 +422,7 @@ button { font-family: inherit; }
.iwb-task-title { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--iwb-text); }
.iwb-task-title-text { font-size: 11px; font-weight: 400; color: var(--iwb-text2); margin-left: 3px; }
.iwb-task-refs { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.iwb-task-ref { width: 40px; height: 40px; object-fit: cover; border-radius: 5px; border: 1px solid var(--iwb-border); cursor: zoom-in; }
.iwb-task-ref { object-fit: cover; border-radius: 5px; border: 1px solid var(--iwb-border); cursor: zoom-in; }
.iwb-ref-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.iwb-ref-single { width: 100%; min-height: 60px; max-height: 340px; object-fit: contain; object-position: center; border-radius: 6px; border: 1px solid var(--iwb-border); background: var(--iwb-layer2); cursor: move; }
@@ -460,16 +459,13 @@ button { font-family: inherit; }
.iwb-section-sub { font-weight: 600; font-size: 12px; margin: 10px 0 6px; color: var(--iwb-text2); }
.iwb-mode-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.iwb-check { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--iwb-text); }
.iwb-num { width: 76px; flex: none; }
.iwb-hdrbox { min-height: 54px; font-family: ui-monospace, Menlo, monospace; font-size: 11px; resize: vertical; }
/* ---- v2 P3:4-Tab 设置 ---- */
.iwb-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--iwb-border); padding: 8px 12px 0; }
.iwb-tab { background: transparent; border: 1px solid transparent; border-bottom: none; padding: 7px 14px; border-radius: 8px 8px 0 0; font-size: 12px; color: var(--iwb-text2); cursor: pointer; }
.iwb-tab:hover { color: var(--iwb-text); }
.iwb-tab-active { background: var(--iwb-panel); border-color: var(--iwb-border); color: var(--iwb-brand); font-weight: 700; }
.iwb-tab { border-bottom: none; }
.iwb-tab-active { border-color: var(--iwb-border); }
.iwb-addrrow { gap: 6px; margin-bottom: 6px; }
.iwb-addr-tag { flex: 0 0 26px; text-align: right; }
.iwb-speed { border: 1px solid var(--iwb-border); border-radius: 8px; padding: 6px 8px; margin: 6px 0; background: var(--iwb-layer); }
.iwb-speed-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-size: 11px; }
.iwb-speed-ms { flex: 0 0 74px; font-weight: 600; }
@@ -559,10 +555,10 @@ button { font-family: inherit; }
.iwb-backup-actions .iwb-btn { font-size: 13px; }
.iwb-backup-file { font-size: 12.5px; color: var(--iwb-text2); padding: 2px 0 4px; }
.iwb-backup-note { font-size: 12px; color: var(--iwb-text2); line-height: 1.6; }
.iwb-settings-modal .iwb-hint { font-size: 13.5px; line-height: 1.7; }
.iwb-settings-modal .iwb-hint { font-size: 13.5px; }
.iwb-settings-modal .iwb-btn { font-size: 13.5px; }
.iwb-settings-modal .iwb-section-title { font-size: 15px; margin: 6px 0 8px; }
.iwb-settings-modal .iwb-section-sub { font-size: 13.5px; margin: 10px 0 4px; }
.iwb-settings-modal .iwb-section-sub { font-size: 13.5px; }
.iwb-settings-modal .iwb-provider-card { padding: 12px 14px; gap: 8px; }
.iwb-settings-modal .iwb-row { gap: 8px; }
.iwb-settings-modal .iwb-keyrow, .iwb-settings-modal .iwb-speed-row, .iwb-settings-modal .iwb-mode-row { padding: 5px 0; gap: 8px; }
@@ -580,7 +576,7 @@ button { font-family: inherit; }
/* ---- v3:左侧多工作台 ---- */
.iwb-wsrail { position: absolute; left: 0; top: 36px; bottom: 0; width: 52px; background: var(--iwb-panel); border-right: 1px solid var(--iwb-border); z-index: 25; display: flex; flex-direction: column; align-items: stretch; transition: width 0.15s; }
.iwb-wsrail-title { display: flex; align-items: center; gap: 4px; padding: 14px 12px; font-weight: 800; font-size: 18px; color: var(--iwb-text); border-bottom: 1px solid var(--iwb-border); cursor: default; user-select: none; white-space: nowrap; flex: 0 0 auto; justify-content: center; }
.iwb-wsrail-title { align-items: center; gap: 4px; padding: 14px 12px; font-weight: 800; font-size: 18px; color: var(--iwb-text); border-bottom: 1px solid var(--iwb-border); cursor: default; user-select: none; white-space: nowrap; flex: 0 0 auto; justify-content: center; }
.iwb-wsrail-title:hover { background: var(--iwb-layer); }
/* 展开态标题行右侧 ⋯ 三点菜单(Portal 挂 body + fixed 定位:右侧展开不切割、层级高于画布) */
.iwb-wsrail-title-more-wrap { position: relative; margin-left: auto; display: inline-flex; align-items: center; }
@@ -593,7 +589,7 @@ button { font-family: inherit; }
.ws-expanded .iwb-wsrail-title { font-size: 18px; }
.ws-expanded .iwb-wsrail-title .iwb-btn-text { font-size: inherit; }
.iwb-wsrail-label { font-size: 10px; color: var(--iwb-text2); font-weight: 700; letter-spacing: 1px; margin: 2px 2px 4px; user-select: none; }
.iwb-wsrail-foot { flex: 0 0 auto; border-top: 1px solid var(--iwb-border); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.iwb-wsrail-foot { flex: 0 0 auto; border-top: 1px solid var(--iwb-border); padding: 10px; flex-direction: column; gap: 8px; }
.iwb-wsrail-footrow { display: flex; gap: 6px; }
.iwb-wsrail-footrow .iwb-btn { flex: 1 1 auto; justify-content: center; font-size: 11px; }
/* 组合来源停用标记 */
@@ -613,13 +609,10 @@ button { font-family: inherit; }
.iwb-node-disabled { opacity: 0.55; filter: grayscale(0.35); }
.iwb-node-disabled .iwb-node-head { background: color-mix(in srgb, var(--iwb-layer2) 60%, transparent); }
.iwb-node-disabled .iwb-port { opacity: 0.45; }
.iwb-canvas { left: 52px; transition: left 0.15s; }
.iwb-canvas { transition: left 0.15s; }
.iwb-toolbar-wrap { position: absolute; left: 0; right: 60px; bottom: 14px; display: flex; justify-content: center; pointer-events: none; z-index: 10; }
.iwb-overlay.has-minimap .iwb-toolbar-wrap { right: 244px; }
.ws-expanded .iwb-wsrail { width: 200px; }
.ws-expanded .iwb-canvas { left: 200px; }
/* ---- v3:工具栏分组 ---- */
@@ -649,9 +642,8 @@ button { font-family: inherit; }
.iwb-drawer-tab { background: none; border: 1px solid transparent; border-radius: 8px; padding: 5px 10px; font-size: 12px; color: var(--iwb-text2); cursor: pointer; white-space: nowrap; }
.iwb-drawer-tab:hover { color: var(--iwb-text); }
.iwb-drawer-tab-active { background: var(--iwb-layer); border-color: var(--iwb-border); color: var(--iwb-brand); font-weight: 700; }
.iwb-drawer-spacer { flex: 1 1 auto; }
.iwb-drawer-body { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.iwb-drawer-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 21; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-right: none; border-radius: 8px 0 0 8px; padding: 12px 5px; cursor: pointer; font-size: 12px; color: var(--iwb-text2); box-shadow: -4px 0 12px rgba(0,0,0,0.1); writing-mode: vertical-lr; letter-spacing: 2px; }
.iwb-drawer-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 21; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-right: none; border-radius: 8px 0 0 8px; padding: 12px 5px; cursor: pointer; font-size: 12px; color: var(--iwb-text2); box-shadow: -4px 0 12px rgba(0,0,0,0.1); letter-spacing: 2px; }
.iwb-drawer-toggle:hover { color: var(--iwb-brand); }
/* 嵌入抽屉时面板填满 */
.iwb-lib-embedded, .iwb-groups-embedded { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
@@ -789,7 +781,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-wsrail-title .iwb-ic { width: 20px; height: 20px; }
.iwb-wsrail-label { display: flex; align-items: center; gap: 5px; }
.iwb-wsrail-foot .iwb-btn { border-radius: 8px; background: color-mix(in srgb, var(--iwb-layer) 42%, transparent); border-color: color-mix(in srgb, var(--iwb-border2) 40%, transparent); }
.iwb-drawer-toggle { display: flex; align-items: center; gap: 4px; writing-mode: initial; }
.iwb-drawer-toggle { align-items: center; gap: 4px; writing-mode: initial; }
/* 窄屏时压缩工具栏避免换行 */
@media (max-width: 760px) {
@@ -915,7 +907,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
/* ---- 生图节点:参数设置(横向一行,无标题无分类) ---- */
.iwb-gen-row { display: flex; gap: 4px; align-items: center; }
.iwb-gen-cell { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; }
.iwb-gen-cell .iwb-input { width: auto; max-width: 100%; font-size: 15px; padding: 3px 18px 3px 5px; background-color: var(--iwb-panel); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23c8cdd6' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 5px center; border: none; appearance: none; -webkit-appearance: none; -moz-appearance: none; }
.iwb-gen-cell .iwb-input { width: auto; max-width: 100%; font-size: 15px; background-color: var(--iwb-panel); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23c8cdd6' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 5px center; border: none; appearance: none; -webkit-appearance: none; -moz-appearance: none; }
.iwb-gen-cell .iwb-input:focus { outline: none; background-color: color-mix(in srgb, var(--iwb-brand) 6%, var(--iwb-panel)); }
/* ---- 任务卡:张数下拉移到右下角(状态在左) ---- */
@@ -949,7 +941,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
/* 左侧栏底部:收起态图标列 + 链接按钮 */
.iwb-wsrail-foot-collapsed { padding-top: 6px; border-top: 1px solid var(--iwb-border); }
.iwb-wsrail-iconcol { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.iwb-wsrail-iconcol { display: flex; flex-direction: column; align-items: center; }
.iwb-wsrail-iconcol .iwb-ws-headicon { width: 32px; height: 30px; }
.iwb-wsrail-foot a.iwb-btn, a.iwb-btn { text-decoration: none; }
.iwb-wsrail-foot .iwb-ws-headicon .iwb-ic { width: 15px; height: 15px; }
@@ -994,7 +986,6 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-out-head .iwb-label { flex: 0 0 auto; }
.iwb-out-tools { flex: 1 1 auto; display: flex; gap: 4px; justify-content: flex-end; }
.iwb-out-tools .iwb-btn { padding: 2px 8px; font-size: 11px; }
.iwb-out-cell { position: relative; }
.iwb-out-cell-img { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid var(--iwb-border); cursor: zoom-in; background: var(--iwb-layer2); transition: border-color 0.12s; }
.iwb-out-cell-img:hover { border-color: var(--iwb-brand); }
.iwb-out-cell-meta { font-size: 10px; color: var(--iwb-text2); text-align: center; margin-top: 2px; }
@@ -1065,14 +1056,14 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
/* 生图/LLM 服务设置:模型列表 + 行内删除操作 */
.iwb-modelrow { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 8px; border: 1px solid var(--iwb-border); border-radius: 8px; margin-bottom: 4px; background: var(--iwb-layer); }
.iwb-modelrow-main { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1 1 auto; }
.iwb-modelrow-main { display: flex; align-items: center; gap: 4px; }
.iwb-modelrow-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwb-modelrow .iwb-btn-danger { color: var(--iwb-err); opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.iwb-modelrow:hover .iwb-btn-danger, .iwb-modelrow:focus-within .iwb-btn-danger { opacity: 1; pointer-events: auto; }
.iwb-modelrow-main { cursor: default; }
.iwb-modelrow-main span { cursor: default; }
.iwb-modelrow-active { border-color: var(--iwb-border2); background: color-mix(in srgb, var(--iwb-text) 6%, transparent); }
.iwb-modelrow-name { flex: 1 1 auto; cursor: pointer; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwb-modelrow-name { flex: 1 1 auto; cursor: pointer; font-size: 12px; }
.iwb-input-err { border-color: var(--iwb-err) !important; box-shadow: 0 0 0 1px rgba(239,68,68,0.35); }
/* LLM 多渠道设置卡片 */
@@ -1111,63 +1102,53 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-size-preset-grid-edit { grid-template-columns: minmax(120px, 1fr) repeat(3, minmax(108px, 1fr)) 38px; }
.iwb-size-preset-grid-edit .iwb-btn { width: 34px; min-width: 34px; padding: 0; justify-content: center; justify-self: center; }
.iwb-shell-nav { position: absolute; left: 12px; top: 12px; z-index: 30; display: flex; align-items: center; gap: 6px; padding: 5px; border: 1px solid var(--iwb-border); border-radius: 10px; background: color-mix(in srgb, var(--iwb-panel) 92%, transparent); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.iwb-shell-nav { left: 12px; top: 12px; z-index: 30; align-items: center; }
.iwb-shell-nav-item { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 7px; padding: 7px 10px; background: transparent; color: var(--iwb-text2); cursor: pointer; }
.iwb-shell-nav-item:hover, .iwb-shell-nav-active { background: var(--iwb-layer2); color: var(--iwb-text); }
.iwb-shell-nav-caption { padding: 0 8px; font-size: 11px; color: var(--iwb-text2); }
.iwb-home-panel { position: absolute; inset: 0; z-index: 20; padding: 110px 9vw 40px; overflow: auto; background: var(--iwb-home-bg); }
.iwb-home-title { font-size: 30px; font-weight: 700; color: var(--iwb-text); }
.iwb-home-panel { position: absolute; inset: 0; z-index: 20; overflow: auto; background: var(--iwb-home-bg); }
.iwb-home-title { font-weight: 700; color: var(--iwb-text); }
.iwb-home-subtitle { margin-top: 8px; color: var(--iwb-text2); }
.iwb-home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 30px; max-width: 1100px; }
.iwb-home-sec-head { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--iwb-text2); letter-spacing: .5px; margin: 6px 0 2px; padding-top: 8px; border-top: 1px solid var(--iwb-hr); }
.iwb-home-sec-head:first-child { border-top: none; padding-top: 0; }
.iwb-home-card { min-height: 130px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; border: 1px solid var(--iwb-border); border-radius: 14px; background: color-mix(in srgb, var(--iwb-panel) 52%, var(--iwb-home-bg) 48%); color: var(--iwb-text); text-align: left; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.iwb-home-card:hover { border-color: var(--iwb-border2); background: color-mix(in srgb, var(--iwb-panel) 76%, var(--iwb-home-bg) 24%); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.iwb-home-card span { color: var(--iwb-text2); font-size: 12px; }
.iwb-home-new { align-items: center; justify-content: center; color: var(--iwb-brand); }
.iwb-canvas-hidden { visibility: hidden; pointer-events: none; }
.iwb-shell-nav { position: static; display: flex; flex-direction: column; gap: 3px; padding: 8px; border: 0; border-bottom: 1px solid var(--iwb-border); border-radius: 0; background: transparent; box-shadow: none; }
.iwb-shell-nav { position: static; flex-direction: column; gap: 3px; padding: 8px; border: 0; border-bottom: 1px solid var(--iwb-border); border-radius: 0; background: transparent; box-shadow: none; }
.iwb-shell-nav-item { width: 100%; justify-content: flex-start; min-height: 34px; }
.iwb-wsrail-current { flex: 1 1 auto; min-height: 0; padding: 14px 10px; color: var(--iwb-text); }
.iwb-wsrail-current .iwb-wsrail-label { margin: 0 0 8px; }
.iwb-wsrail-current-name { padding: 10px; border: 1px solid var(--iwb-border); border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.iwb-wsrail-current .iwb-btn { margin-top: 8px; width: 100%; justify-content: center; }
.iwb-home-panel { padding-left: max(9vw, 240px); }
/* 顶部应用导航:不覆盖左栏,统一承载页面级入口与当前工作台 */
.iwb-top-nav { position: absolute; left: 0; right: 0; top: 0; height: 54px; z-index: 35; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: color-mix(in srgb, var(--iwb-panel) 94%, transparent); border-bottom: 1px solid var(--iwb-border); box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.iwb-top-nav-brand { display: inline-flex; align-items: center; gap: 7px; margin-right: 12px; font-weight: 800; color: var(--iwb-text); white-space: nowrap; }
.iwb-top-nav-item, .iwb-top-nav-workspace, .iwb-top-nav-icon { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; border: 1px solid transparent; border-radius: 8px; padding: 0 10px; background: transparent; color: var(--iwb-text2); cursor: pointer; }
.iwb-top-nav-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--iwb-text); white-space: nowrap; }
.iwb-top-nav-item, .iwb-top-nav-workspace, .iwb-top-nav-icon { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 8px; padding: 0 10px; background: transparent; color: var(--iwb-text2); cursor: pointer; }
.iwb-top-nav-item:hover, .iwb-top-nav-active, .iwb-top-nav-workspace:hover, .iwb-top-nav-icon:hover { background: var(--iwb-layer2); color: var(--iwb-text); border-color: var(--iwb-border); }
.iwb-top-nav-workspace { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwb-top-nav-workspace .iwb-ic { width: 13px; height: 13px; }
.iwb-top-nav-sep { width: 1px; height: 22px; margin: 0 6px; background: var(--iwb-border); }
.iwb-top-nav-spacer { flex: 1 1 auto; }
.iwb-top-nav-icon { width: 34px; justify-content: center; padding: 0; }
.iwb-top-nav-icon .iwb-ic { width: 16px; height: 16px; }
.iwb-wsrail { top: 54px; }
.iwb-wsrail-title, .iwb-wsrail-current, .iwb-wsrail-foot { display: none; }
.iwb-shell-nav { display: none; }
.iwb-wsrail { width: 52px; }
.ws-expanded .iwb-wsrail { width: 52px; }
.iwb-canvas, .ws-expanded .iwb-canvas { left: 52px; }
.iwb-home-panel { padding-left: max(9vw, 100px); padding-top: 90px; }
.iwb-home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--iwb-hr); padding-bottom: 24px; }
.iwb-home-kicker { color: var(--iwb-text2); font-size: 12px; margin-bottom: 8px; }
.iwb-home-panel { padding-top: 90px; }
.iwb-home-head { display: flex; justify-content: space-between; gap: 20px; }
.iwb-home-kicker { color: var(--iwb-text2); font-size: 12px; }
.iwb-home-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* 仅首页用「深底浅字」;画布内的主按钮(生成 / 批量出图)保持品牌底 + 白字,避免暗色下发灰看不清 */
.iwb-home-panel .iwb-btn-primary { background: var(--iwb-text); color: var(--iwb-bg); }
.iwb-home-card { position: relative; padding: 18px 18px 14px; min-height: 174px; }
.iwb-home-card > input { position: absolute; left: 18px; top: 20px; width: 17px; height: 17px; accent-color: var(--iwb-text); z-index: 2; }
.iwb-home-card-main { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 10px; width: 100%; min-height: 105px; padding: 26px 0 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.iwb-home-card-main strong { padding-left: 30px; font-size: 18px; }
.iwb-home-card-main span, .iwb-home-card-main small { color: var(--iwb-text2); }
.iwb-home-card-actions { display: flex; justify-content: flex-end; gap: 8px; width: 100%; }
.iwb-home-card-actions button { width: 30px; height: 28px; border: 0; background: transparent; color: var(--iwb-text2); cursor: pointer; border-radius: 6px; }
.iwb-home-card-actions button:hover { background: var(--iwb-layer2); color: var(--iwb-text); }
/* 资源工具栏移至左侧:窄 rail + 可展开面板 */
.iwb-canvas { left: 48px; top: 54px; }
.ws-expanded .iwb-canvas { left: 48px; }
.iwb-top-nav { height: 54px; }
/* v4 参考布局:顶部产品导航、左侧资源区、中央画布三层分离 */
.iwb-overlay { background: var(--iwb-bg); }
.iwb-top-nav { height: 64px; padding: 0 max(18px, calc((100vw - 1760px) / 2)); gap: 4px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--iwb-border); box-shadow: 0 1px 8px rgba(20,20,20,.05); }
@@ -1177,15 +1158,13 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-top-nav-item:hover, .iwb-top-nav-active { background: transparent; border-color: transparent; color: var(--iwb-text); }
.iwb-top-nav-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--iwb-text); }
.iwb-top-nav-workspace { min-height: 38px; border-color: var(--iwb-border); margin-left: 8px; }
.iwb-top-nav-icon { min-height: 38px; }
.iwb-top-nav-icon:first-of-type { margin-left: auto; }
.iwb-wsrail { top: 64px; }
.iwb-canvas, .ws-expanded .iwb-canvas { left: 52px; top: 64px; }
.iwb-home-panel { padding: 116px max(30px, calc((100vw - 1580px) / 2)) 60px; }
.iwb-home-head { min-height: 112px; align-items: center; }
.iwb-home-head { align-items: center; }
.iwb-home-title { font-size: 34px; letter-spacing: -.03em; }
.iwb-home-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; max-width: 1580px; }
.iwb-home-card { min-height: 210px; border-radius: 16px; background: color-mix(in srgb, var(--iwb-panel) 86%, #f3f0eb); }
@media (max-width: 900px) { .iwb-top-nav-brand { margin-right: 4px; } .iwb-top-nav-item span, .iwb-top-nav-workspace { display: none; } .iwb-top-nav { padding: 0 8px; } .iwb-home-head { align-items: flex-start; flex-direction: column; } }
/* v5:三页面语义与编辑器 chrome */
.iwb-product-nav, .iwb-canvas-topbar { position: absolute; left: 0; right: 0; top: 0; height: 64px; z-index: 35; display: flex; align-items: center; gap: 6px; padding: 0 max(18px, calc((100vw - 1760px) / 2)); background: var(--iwb-bg); border-bottom: 1px solid var(--iwb-border); }
@@ -1195,36 +1174,29 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-product-spacer { flex: 1; }
.iwb-product-icon, .iwb-canvas-menu, .iwb-top-nav-icon { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--iwb-text2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.iwb-product-icon:hover, .iwb-canvas-menu:hover, .iwb-top-nav-icon:hover { background: var(--iwb-layer2); color: var(--iwb-text); }
.iwb-canvas-topbar { padding-left: 10px; padding-right: 14px; box-shadow: 0 1px 8px rgba(0,0,0,.04); }
.iwb-canvas-title { font-weight: 700; font-size: 15px; }
.iwb-canvas-status { color: var(--iwb-text2); font-size: 12px; }
.iwb-canvas, .ws-expanded .iwb-canvas { left: 0; top: 64px; }
.iwb-landing-panel { position: absolute; inset: 0; z-index: 20; padding: 64px 8vw 80px; overflow: auto; text-align: center; background-color: var(--iwb-bg); background-image: radial-gradient(circle, color-mix(in srgb, var(--iwb-border) 70%, transparent) 1px, transparent 1.5px); background-size: 28px 28px; }
.iwb-landing-panel h1 { margin: 190px auto 22px; max-width: 850px; font-size: clamp(42px, 6vw, 84px); letter-spacing: -.06em; color: var(--iwb-text); }
.iwb-landing-panel p { max-width: 760px; margin: 0 auto; color: var(--iwb-text2); font-size: 18px; line-height: 1.8; }
.iwb-landing-kicker { padding-top: 74px; font-size: 14px; color: var(--iwb-text2); }
.iwb-landing-actions { display: flex; justify-content: center; gap: 12px; margin-top: 38px; }
.iwb-landing-divider { max-width: 1200px; margin: 210px auto 70px; border-top: 1px solid var(--iwb-border); }
.iwb-landing-panel h2 { font-size: 32px; margin-bottom: 14px; }
.iwb-landing-panel h1 { max-width: 850px; color: var(--iwb-text); }
.iwb-landing-panel p { max-width: 760px; margin: 0 auto; line-height: 1.8; }
.iwb-landing-actions { display: flex; justify-content: center; }
.iwb-landing-divider { max-width: 1200px; border-top: 1px solid var(--iwb-border); }
/* v6:无白色占位条,三页铺满视口;编辑器左侧只保留顶部展开把手 */
.iwb-overlay { left: 0 !important; right: 0 !important; width: 100% !important; }
.iwb-wsrail { display: none !important; width: 0 !important; border: 0 !important; }
.iwb-canvas, .ws-expanded .iwb-canvas { left: 0 !important; top: 64px !important; }
.iwb-canvas, .ws-expanded .iwb-canvas { left: 0 !important; }
.iwb-product-nav { background: var(--iwb-bg); }
.iwb-canvas-topbar { background: var(--iwb-bg); }
.iwb-home-panel, .iwb-landing-panel { left: 0 !important; right: 0 !important; padding-left: max(24px, calc((100vw - 1580px) / 2)); padding-right: max(24px, calc((100vw - 1580px) / 2)); }
.iwb-home-card { min-width: 0; }
/* v7:画布卡片(参考图1)、编辑器顶栏(参考图3)、左侧展开按钮(参考图2) */
.iwb-home-card { padding: 0; gap: 0; min-height: 172px; overflow: hidden; }
.iwb-home-card-top { display: flex; align-items: center; gap: 12px; padding: 22px 22px 0 22px; }
.iwb-home-card-top { display: flex; align-items: center; gap: 12px; }
.iwb-home-card-top > input { position: static; width: 18px; height: 18px; accent-color: var(--iwb-text); z-index: 2; }
.iwb-home-card-title { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; padding: 0; display: flex; align-items: center; }
.iwb-home-card-title strong { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwb-home-card-meta { padding: 14px 22px 0 52px; color: var(--iwb-text2); font-size: 13px; }
.iwb-home-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px 18px 22px; }
.iwb-home-card-foot small { color: var(--iwb-text2); font-size: 12px; }
.iwb-home-card-actions { display: flex; gap: 6px; }
.iwb-home-card-actions button { width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--iwb-text2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.iwb-home-card-title { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; display: flex; align-items: center; }
.iwb-home-card-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwb-home-card-actions button { border: 0; background: transparent; color: var(--iwb-text2); cursor: pointer; }
.iwb-home-card-actions button:hover { background: var(--iwb-layer2); color: var(--iwb-text); }
/* 进入画布加载动画 */
.iwb-enter-loading { position: absolute; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: color-mix(in srgb, var(--iwb-bg) 92%, transparent); backdrop-filter: blur(2px); }
@@ -1232,11 +1204,16 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-enter-text { color: var(--iwb-text2); font-size: 14px; }
@keyframes iwb-spin { to { transform: rotate(360deg); } }
/* 编辑器顶栏:紧凑胶囊式,参考图3 */
.iwb-canvas-topbar { height: 56px; background: var(--iwb-bg); border-bottom: 1px solid var(--iwb-border); padding: 0 12px; box-shadow: none; gap: 2px; }
.iwb-canvas-menu { width: 34px; height: 34px; }
.iwb-canvas-title { font-weight: 600; font-size: 14px; margin: 0 6px 0 2px; }
.iwb-canvas-title { margin: 0 6px 0 2px; }
.iwb-canvas-status { color: var(--iwb-text2); font-size: 12px; }
.iwb-top-nav-icon { width: 32px; height: 32px; }
.iwb-top-nav-icon {
padding: 0;
min-height: 38px;
width: 32px;
height: 32px;
}
/* 资源展开按钮:顶部贴左(参考图2),带 panel 图标 */
/* 左侧资源面板:贴左边展开(参考图2) */
/* v9:首页不留左栏按钮;优化首页文字与按钮大小;卡片重命名输入框 */
@@ -1250,27 +1227,25 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-landing-actions .iwb-btn-primary { background: #111; color: #fff; }
.iwb-landing-divider { margin: 90px auto 54px; }
.iwb-landing-panel h2 { font-size: 28px; color: var(--iwb-text); margin-bottom: 10px; }
.iwb-home-card-rename { flex: 1 1 auto; min-width: 0; height: 36px; font-size: 15px; }
/* v10:我的画布卡片交互——默认隐藏复选框与操作图标,hover 显示;批量管理模式显示复选框 */
.iwb-home-card-check { display: none; }
.iwb-home-card-check-placeholder { flex: 0 0 18px; width: 18px; height: 18px; }
.iwb-home-card.iwb-manage .iwb-home-card-check { display: inline-block; }
.iwb-home-card.iwb-manage .iwb-home-card-check-placeholder { display: none; }
.iwb-home-card-actions { opacity: 0; transition: opacity .15s ease; }
.iwb-home-card:hover .iwb-home-card-actions,
.iwb-home-card:focus-within .iwb-home-card-actions { opacity: 1; }
.iwb-home-card-rename { flex: 1 1 auto; min-width: 0; height: 34px; font-size: 15px; color: var(--iwb-text); background: var(--iwb-bg); border: 1px solid var(--iwb-border2); border-radius: 8px; padding: 0 10px; }
.iwb-home-actions .iwb-btn { min-height: 36px; }
/* v11:统一画布卡片对齐与排版 */
.iwb-home-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; max-width: 1600px; }
.iwb-home-card { min-height: 176px; box-sizing: border-box; background: color-mix(in srgb, var(--iwb-panel) 52%, var(--iwb-home-bg) 48%); border: 1px solid var(--iwb-border); border-radius: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.iwb-home-card:hover { border-color: var(--iwb-border2); background: color-mix(in srgb, var(--iwb-panel) 76%, var(--iwb-home-bg) 24%); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.iwb-home-card-top { padding: 24px 22px 0 22px; }
.iwb-home-card-title strong { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--iwb-text); }
.iwb-home-card-meta { padding: 14px 22px 0 22px; color: var(--iwb-text2); font-size: 13px; line-height: 1.5; }
.iwb-home-card-foot { padding: 0 22px 20px 22px; }
.iwb-home-card-foot small { color: var(--iwb-text2); font-size: 12px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; flex: 1 1 auto; }
.iwb-home-card-actions { flex: 0 0 auto; }
.iwb-home-card-actions button { width: 32px; height: 32px; border-radius: 8px; }
/* v12:世界容器提升为合成层(节点随世界一起 transform,不单独建层) */
.iwb-world { will-change: transform; }
@@ -1280,7 +1255,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-overlay.drawer-open .iwb-toolbar-wrap { left: var(--iwb-dock-l, 0px) !important; }
.iwb-overlay.drawer-open .iwb-minimap { margin-left: 0 !important; }
/* 画布顶栏:标题 + 实时通知 + 右侧图标组(padding-left 14px = 标签条 padding,标题左缘与房子图标对齐;52px 是左侧栏时代的遗留已废弃) */
.iwb-canvas-topbar { gap: 8px; padding: 0 14px; }
.iwb-canvas-meta { display: flex; align-items: center; gap: 8px; overflow: hidden; }
.iwb-canvas-meta .iwb-status-item { font-size: 11px; color: var(--iwb-text2); white-space: nowrap; }
.iwb-canvas-meta .iwb-status-ok { color: var(--iwb-brand); }
@@ -1314,7 +1289,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-tab-home { padding: 0 9px; }
.iwb-tab-home .iwb-ic { width: 16px; height: 16px; }
/* 标签条出现时顶栏下移(仅画布视图;覆盖共享 top:0 规则) */
.iwb-canvas-topbar { top: 36px; }
/* 标签条始终顶左对齐(不随左侧栏展开缩进——标签条在最顶层、横跨全宽) */
/* 资源中心浮动窗口:自由拖动、统一白色圆角样式 */
@@ -1340,28 +1315,25 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-full-main > .iwb-groups-embedded, .iwb-full-main > .iwb-history-embedded { width: 100%; flex: 1 1 auto; }
/* 我的画布卡片:文本左对齐、底部图标右对齐、批量选中高亮、重命名放大、分类 */
.iwb-home-card { align-items: flex-start; }
.iwb-home-card-title { text-align: left; justify-content: flex-start; width: 100%; }
.iwb-home-card-title strong { text-align: left; width: 100%; }
.iwb-home-card-meta { display: flex; align-items: center; gap: 8px; text-align: left; }
.iwb-home-card-meta-text { color: var(--iwb-text2); font-size: 13px; }
.iwb-home-card-cat { border: 1px solid var(--iwb-border); border-radius: 999px; padding: 2px 10px; font-size: 11px; color: var(--iwb-text2); background: color-mix(in srgb, var(--iwb-text) 6%, transparent); cursor: pointer; white-space: nowrap; }
.iwb-home-card-cat-empty { color: var(--iwb-text2); background: transparent; border-color: var(--iwb-border2); }
.iwb-home-card-cat:hover { border-color: var(--iwb-border2); color: var(--iwb-text); }
.iwb-home-card-actions { margin-left: auto; justify-content: flex-end; }
.iwb-home-card-actions button { display: inline-flex; align-items: center; justify-content: center; }
.iwb-home-card-selected { border-color: var(--iwb-border2); box-shadow: 0 0 0 1px var(--iwb-border2), 0 6px 18px rgba(0,0,0,.10); background: color-mix(in srgb, var(--iwb-panel) 72%, var(--iwb-layer) 28%); }
.iwb-home-card-top .iwb-home-card-rename { height: 42px; font-size: 16px; flex: 1 1 auto; min-width: 0; box-sizing: border-box; }
.iwb-home-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.iwb-home-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.iwb-home-cats .iwb-chip { cursor: pointer; }
/* 画布库:卡片撑满、去右侧留白、卡片更紧凑 */
.iwb-home-panel { padding-left: 24px; padding-right: 24px; }
.iwb-home-grid { max-width: none; width: 100%; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.iwb-home-card { min-height: 150px; box-sizing: border-box; }
.iwb-home-card-top { padding-top: 18px; padding-left: 20px; padding-right: 20px; }
.iwb-home-card-meta { padding-top: 10px; padding-left: 20px; padding-right: 20px; }
.iwb-home-card-foot { padding: 0 20px 16px 20px; }
/* 资源中心窗口四向缩放手柄 */
@@ -1378,12 +1350,12 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-home-cats { margin-top: 16px; margin-bottom: 4px; }
/* 画布卡片:底部三个图标在卡片内右对齐 */
.iwb-home-card-foot { justify-content: flex-end; }
.iwb-home-card-actions { width: auto; margin-left: auto; justify-content: flex-end; }
.iwb-home-card-actions { display: flex; gap: 6px; opacity: 0; transition: opacity .15s ease; flex: 0 0 auto; width: auto; margin-left: auto; justify-content: flex-end; }
.iwb-home-card-foot .iwb-home-card-actions { width: auto; }
.iwb-home-card-foot { width: 100%; }
.iwb-home-card-meta { width: 100%; }
/* 画布库:顶部导航与内容水平对齐(统一左 24px,撑满) */
.iwb-product-nav { padding-left: 24px; padding-right: 24px; }
@@ -1422,13 +1394,13 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-home-main-head .iwb-btn:hover { background: color-mix(in srgb, var(--iwb-panel) 65%, var(--iwb-home-bg) 35%); }
.iwb-home-main-head .iwb-btn-primary { background: var(--iwb-text2); border-color: var(--iwb-text2); color: #fff; }
.iwb-home-main-head .iwb-btn-primary:hover { background: color-mix(in srgb, var(--iwb-text2) 80%, #000); border-color: color-mix(in srgb, var(--iwb-text2) 80%, #000); color: #fff; }
.iwb-home-grid { margin-top: 22px; max-width: none; width: 100%; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.iwb-home-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); max-width: none; margin-top: 22px; width: 100%; }
.iwb-home-empty { margin-top: 40px; color: var(--iwb-text2); font-size: 15px; text-align: center; padding: 40px 0; }
.iwb-home-card .iwb-home-card-top { padding: 20px 20px 0 20px; }
.iwb-home-card-meta { padding: 12px 20px 0 20px; }
.iwb-home-card-foot { padding: 0 20px 18px 20px; }
.iwb-home-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: flex-end; gap: 12px; width: 100%; padding: 0 20px 18px 20px; }
.iwb-home-card-star { border: 0; background: transparent; color: var(--iwb-text2); font-size: 18px; cursor: pointer; line-height: 1; padding: 0; }
.iwb-home-card-star.on { color: var(--iwb-text); }
.iwb-home-card-star:hover { color: var(--iwb-text); }
@@ -1466,8 +1438,27 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-overlay .iwb-enter-loading { background: color-mix(in srgb, var(--iwb-bg) 97%, transparent); backdrop-filter: blur(4px); }
/* 卡片按参考排版:名字 / 统计 / 底部行(分类chip左+图标右) */
.iwb-home-card { min-height: 138px; }
.iwb-home-card-meta { min-height: 18px; }
.iwb-home-card {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: space-between;
gap: 0;
color: var(--iwb-text);
text-align: left;
cursor: pointer;
position: relative;
padding: 0;
min-width: 0;
min-height: 138px;
overflow: hidden;
background: color-mix(in srgb, var(--iwb-panel) 52%, var(--iwb-home-bg) 48%);
border: 1px solid var(--iwb-border);
border-radius: 16px;
box-shadow: 0 1px 4px rgba(0,0,0,.05);
box-sizing: border-box;
}
.iwb-home-card-meta { color: var(--iwb-text2); font-size: 13px; line-height: 1.5; display: flex; align-items: center; gap: 8px; text-align: left; padding-top: 10px; padding-left: 20px; padding-right: 20px; width: 100%; padding: 12px 20px 0 20px; min-height: 18px; }
.iwb-home-card .iwb-home-card-foot { justify-content: space-between; gap: 10px; align-items: center; }
.iwb-home-card .iwb-home-card-foot .iwb-home-card-cat { flex: 0 0 auto; }
@@ -1483,7 +1474,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-home-menu-btn:hover { background: var(--iwb-layer2); border-color: var(--iwb-border2); color: var(--iwb-text); }
.iwb-home-menu-btn .iwb-ic { width: 18px; height: 18px; }
.iwb-home-menu-mask { position: fixed; inset: 0; z-index: 200; }
.iwb-home-menu { position: fixed; width: 220px; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 12px; box-shadow: var(--sh-lg); padding: 6px; display: flex; flex-direction: column; gap: 2px; z-index: 201; box-sizing: border-box; }
.iwb-home-menu { position: fixed; width: 220px; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 12px; box-shadow: var(--sh-lg); padding: 6px; display: flex; flex-direction: column; gap: 2px; box-sizing: border-box; }
.iwb-home-menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: transparent; color: var(--iwb-text); font-size: 14px; cursor: pointer; border-radius: 8px; text-align: left; width: 100%; box-sizing: border-box; }
.iwb-home-menu-item:hover { background: var(--iwb-layer2); }
.iwb-home-menu-item .iwb-ic { color: var(--iwb-text2); }
@@ -1506,7 +1497,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
/* 图库历史项图片:完整展示 + 上限尺寸(放大量大面板也不无限变大) */
.iwb-history-embedded .iwb-history-item img { max-width: 100%; max-height: none; object-fit: contain; margin: 0 auto; }
/* 编辑器顶栏:透明悬浮(对齐参考图样式),画布铺满视口让点阵/网格透过顶栏 */
.iwb-canvas-topbar { background: transparent !important; border-bottom: 0 !important; box-shadow: none !important; pointer-events: none; }
.iwb-canvas-topbar button:not(.iwb-canvas-title), .iwb-canvas-topbar input, .iwb-canvas-topbar label { pointer-events: auto; }
.iwb-canvas-title { pointer-events: auto; }
.iwb-canvas, .ws-expanded .iwb-canvas { top: 0 !important; }
@@ -1648,7 +1639,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-pop-anchor { position: fixed; z-index: 3200; }
.iwb-pop { width: 380px; max-width: calc(100vw - 16px); background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 18px; box-shadow: 0 18px 54px rgba(28,25,23,.16); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 32px); overflow-y: auto; }
.iwb-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.iwb-pop-title { font-size: 14px; font-weight: 700; color: var(--iwb-text); }
.iwb-pop-title { font-weight: 700; color: var(--iwb-text); }
.iwb-pop-body { display: flex; flex-direction: column; gap: 12px; }
/* 纯描边胶囊:与截图一致(选中只加重描边与文字色,不填充) */
.iwb-chip-line { background: transparent; border: 1px solid var(--iwb-border); color: var(--iwb-text); border-radius: 999px; padding: 5px 14px; }
@@ -1695,13 +1686,6 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
/* ===== v3.86.7 通用选择气泡(PickerBubble):与图像设置面板同一套 popover 外观 ===== */
/* v3.87.3:面板宽度按内容自适应(原来写死 240px,长模型名被硬切且连省略号都没有)。
max-content + 上限:常见模型名(约 30 字符 / 15px ≈ 290px)可整行显示;极端长名/窄屏退到上限并用省略号 + title。 */
.iwb-picklist { display: flex; flex-direction: column; gap: 6px; }
display: flex; align-items: center; width: 100%; min-width: 0; min-height: 38px;
padding: 6px 12px; border: 1px solid var(--iwb-border); border-radius: 10px;
background: var(--iwb-panel); color: var(--iwb-text); font-size: 15px;
text-align: left; cursor: pointer;
transition: border-color 0.15s, color 0.15s;
}
/* 文本必须包在块级子元素里,省略号才生效(flex 容器上的 text-overflow 对裸文本无效 → 原来长名是硬切) */
/* 选中项 = 品牌色描边 + 品牌色文字(与 .iwb-chip-line-on 同一套选中语言,只加重不填充) */
@@ -1758,7 +1742,6 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
/* v3.87.29 厂商分类(决定请求体怎么发尺寸) */
.iwb-shape-box { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
.iwb-shape-box .iwb-textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.iwb-modelrow-kind { max-width: 104px; flex: 0 0 auto; }
/* v3.87.30 修复设置弹窗内的挤压/换行(新增厂商分类控件后暴露) */
.iwb-addr-tag { flex: 0 0 auto; min-width: 44px; white-space: nowrap; text-align: right; }
.iwb-modelrow { flex: 1 1 340px; min-width: 0; display: flex; align-items: center; gap: 8px; }
@@ -1814,7 +1797,6 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-set-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--iwb-border); border-radius: 10px; background: var(--iwb-layer); margin-top: 10px; }
.iwb-set-row > input { justify-self: end; }
.iwb-set-row-text { min-width: 0; }
.iwb-set-row-title { font-size: 13.5px; }
.iwb-set-row-desc { font-size: 12.5px; color: var(--iwb-text2); margin-top: 2px; line-height: 1.5; }
/* ── 「模型设置」面板(2026-10-30):服务商 / 分组 / 模型 ─────────────────────
@@ -2025,16 +2007,13 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
/* 插件市场卡片(设置 → 插件 / 与 market.maqiart.eu.org 同一套视觉) */
.iwb-mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 4px 0 6px; }
.iwb-mk-card { border: 1px solid var(--iwb-border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 132px; }
.iwb-mk-head { display: flex; gap: 10px; align-items: center; }
.iwb-mk-avatar { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 36px; }
.iwb-mk-titles { min-width: 0; }
.iwb-mk-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; flex-wrap: wrap; }
.iwb-mk-sub { color: var(--iwb-text2); font-size: 12px; margin-top: 2px; }
.iwb-mk-desc { color: var(--iwb-text2); font-size: 12.5px; line-height: 1.5; flex: 1 1 auto; }
.iwb-mk-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.iwb-mk-tag { padding: 1px 8px; border-radius: 999px; background: var(--iwb-layer2); color: var(--iwb-text2); font-size: 11px; }
.iwb-mk-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 2px; }
.iwb-mk-head { display: flex; }
.iwb-mk-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; }
.iwb-mk-name { display: flex; align-items: center; flex-wrap: wrap; }
.iwb-mk-desc { flex: 1 1 auto; }
.iwb-mk-tags { display: flex; flex-wrap: wrap; }
.iwb-mk-actions { display: flex; justify-content: flex-end; margin-top: 2px; }
/* 设置行(Obsidian 风格:标题 + 说明 + 右侧控件) */
.iwb-set-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--iwb-border); }
.iwb-set-row-main { flex: 1 1 auto; min-width: 0; }
@@ -2051,17 +2030,17 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
/* 已安装插件:横向列表 */
.iwb-mk-list { display: flex; flex-direction: column; }
.iwb-mk-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--iwb-border); }
.iwb-mk-row-main { flex: 1 1 auto; min-width: 0; }
.iwb-mk-row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.iwb-mk-row-name { font-weight: 600; font-size: 14px; }
.iwb-mk-row-ver { color: var(--iwb-text2); font-size: 12px; }
.iwb-mk-row-author { color: var(--iwb-text2); font-size: 12px; }
.iwb-mk-row-desc { color: var(--iwb-text2); font-size: 12.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwb-mk-row-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.iwb-mk-row-actions { display: flex; align-items: center; flex: 0 0 auto; }
.iwb-mk-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.iwb-mk-chip { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--iwb-border); background: transparent; color: var(--iwb-text2); font-size: 12px; cursor: pointer; }
.iwb-mk-chip.on { background: var(--iwb-text); color: var(--iwb-layer); border-color: var(--iwb-text); }
.iwb-mk-chip.on { border-color: var(--iwb-text); }
/* 插件设置:行(无边框盒子,只有细分隔线) */
.iwb-mk-setrow { display: flex; align-items: center; gap: 16px; padding: 14px 2px; border: 0; border-bottom: 1px solid var(--iwb-border); background: transparent; border-radius: 0; margin: 0; }
.iwb-mk-setrow:last-of-type { border-bottom: 0; }
@@ -2081,14 +2060,14 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-mk-filters .iwb-mk-sep { width: 1px; height: 16px; background: var(--iwb-border); margin: 0 4px; }
/* 市场卡片:等高、底部按钮对齐 */
.iwb-mk-grid { align-items: stretch; }
.iwb-mk-card { min-height: 178px; display: flex; flex-direction: column; gap: 8px; }
.iwb-mk-card .iwb-mk-desc { flex: 1 1 auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.iwb-mk-card .iwb-mk-tags { min-height: 20px; align-items: center; }
.iwb-mk-card .iwb-mk-desc { flex: 1 1 auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.iwb-mk-card .iwb-mk-tags { align-items: center; }
.iwb-mk-card .iwb-mk-actions { margin-top: auto; display: flex; align-items: center; justify-content: flex-end; min-height: 30px; }
.iwb-mk-card .iwb-mk-name { line-height: 1.35; }
.iwb-mk-card .iwb-plugin-tag { font-size: 11px; padding: 0 6px; line-height: 16px; }
/* 市场卡片:紧凑版(按钮在右上角,去掉底部空档) */
.iwb-mk-card { min-height: 0; padding: 10px 12px; gap: 6px; border-radius: 10px; }
.iwb-mk-head { align-items: flex-start; gap: 8px; }
.iwb-mk-titles { flex: 1 1 auto; min-width: 0; }
.iwb-mk-head .iwb-mk-actions { flex: 0 0 auto; margin: 0; padding: 0; min-height: 0; }
@@ -2098,7 +2077,6 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-mk-card .iwb-mk-desc { font-size: 12px; line-height: 1.45; min-height: 0; margin-top: 2px; }
.iwb-mk-card .iwb-mk-tags { min-height: 0; margin-top: 2px; gap: 5px; }
.iwb-mk-card .iwb-mk-tag { font-size: 10.5px; padding: 0 7px; line-height: 16px; }
.iwb-mk-grid { gap: 10px; }
.iwb-mk-card .iwb-btn-sm { padding: 3px 10px; font-size: 12px; }
/* LLM 渠道:去掉外框,改成分区 + 细分隔线;默认渠道用左侧色条标记 */
.iwb-settings-modal .iwb-llm-card { border: 0; border-top: 1px solid var(--iwb-border); border-radius: 0; background: transparent; padding: 12px 0 8px; margin: 0; }
@@ -2228,14 +2206,29 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
box-shadow: 0 8px 24px rgba(0,0,0,.18); white-space: nowrap;
}
/* 顶栏与标签条随左右栏内缩(标题跟着缩进;画布仍不动) */
.iwb-canvas-topbar { left: var(--iwb-dock-l, 0px) !important; right: var(--iwb-dock-r, 0px) !important; }
.iwb-canvas-topbar { padding-left: 10px; padding-right: 14px; box-shadow: none !important; background: transparent !important; height: 56px; border-bottom: 0 !important; padding: 0 14px; gap: 8px; top: 36px; pointer-events: none; left: var(--iwb-dock-l, 0px) !important; right: var(--iwb-dock-r, 0px) !important; }
.iwb-tabstrip { left: 0 !important; right: 0 !important; }
.iwb-tab-spacer { flex: 1 1 auto; }
.iwb-tab-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; pointer-events: auto; }
.iwb-tab-actions .iwb-top-nav-icon { width: 28px; height: 28px; min-height: 28px; }
/* 其它浮层让位(画布不动) */
.iwb-toolbar-wrap { left: var(--iwb-dock-l, 0px); right: calc(60px + var(--iwb-dock-r, 0px)); }
.iwb-minimap { right: calc(62px + var(--iwb-dock-r, 0px)); bottom: 14px; }
.iwb-minimap {
transition: opacity .16s ease, transform .16s ease;
position: absolute;
width: 132px;
height: 88px;
background: var(--iwb-panel);
border: 1px solid var(--iwb-border);
border-radius: 8px;
z-index: 11;
cursor: crosshair;
overflow: hidden;
touch-action: none;
box-shadow: 0 4px 16px rgba(0,0,0,0.12);
right: calc(62px + var(--iwb-dock-r, 0px));
bottom: 14px;
}
.iwb-statusbar { right: calc(62px + var(--iwb-dock-r, 0px)); }
.iwb-hint-bottom { left: calc(var(--iwb-dock-l, 0px) + (100% - var(--iwb-dock-l, 0px) - var(--iwb-dock-r, 0px)) / 2); }
@@ -2379,3 +2372,106 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-dock-body[data-panel="prompts"] .iwb-pcard:hover,
.iwb-dock-body[data-panel="groups"] .iwb-pcard:hover { background: var(--iwb-plugin-hover); border-color: var(--iwb-border2); }
.iwb-dock-body[data-panel="groups"] .iwb-pcard-selected { border-color: var(--iwb-brand); box-shadow: 0 0 0 1px var(--iwb-brand); }
/* ── v3.26.24 插件市场重设计:去线框、块面分区、按钮收敛 ───────────────── */
.iwb-set-page { max-width: 1180px; }
.iwb-mk-toolbar {
display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
background: var(--iwb-layer); border-radius: 12px; padding: 8px 10px; margin: 6px 0 12px;
}
.iwb-mk-toolbar .iwb-input { border: 0; background: var(--iwb-layer2); box-shadow: none; }
.iwb-mk-toolbar .iwb-input:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-brand) 22%, transparent); }
.iwb-mk-filters { margin: 0; gap: 6px; }
.iwb-mk-chip:hover { background: var(--iwb-layer2); color: var(--iwb-text); }
.iwb-mk-chip.on { background: var(--iwb-text); color: var(--iwb-layer); }
.iwb-mk-avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
.iwb-mk-name { font-weight: 600; font-size: 13.5px; }
.iwb-mk-sub { font-size: 11.5px; color: var(--iwb-text2); margin-top: 1px; }
.iwb-mk-desc { font-size: 12px; line-height: 1.55; color: var(--iwb-text2); }
.iwb-mk-dot {
width: 7px; height: 7px; border-radius: 50%; margin-left: 6px; flex: 0 0 auto;
background: var(--iwb-ok, #1d9e75); box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-ok, #1d9e75) 22%, transparent);
}
.iwb-mk-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.iwb-mk-tags { gap: 4px; }
.iwb-mk-tag { border-radius: 999px; background: var(--iwb-layer2); color: var(--iwb-text2); font-size: 10.5px; padding: 1px 7px; }
.iwb-mk-actions { gap: 6px; }
.iwb-mk-actions .iwb-btn { border: 0; background: var(--iwb-layer2); box-shadow: none; }
.iwb-mk-subtitle { font-size: 11.5px; color: var(--iwb-text2); margin: 2px 0 10px; }
.iwb-set-page-title { margin-bottom: 2px; }
/* ── v3.26.25 插件市场二次优化:自适应全宽 + 淡描边 + 已安装徽标(去绿色底) ── */
.iwb-set-page { max-width: none; }
.iwb-mk-card.is-installed { background: var(--iwb-panel); }
.iwb-mk-badge {
margin-left: 7px; padding: 0 7px; border-radius: 999px; font-size: 10.5px; line-height: 17px;
background: color-mix(in srgb, var(--iwb-ok, #1d9e75) 14%, transparent);
color: color-mix(in srgb, var(--iwb-ok, #1d9e75) 82%, var(--iwb-text));
border: 1px solid color-mix(in srgb, var(--iwb-ok, #1d9e75) 32%, transparent);
}
.iwb-mk-grid { grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 14px; }
.iwb-mk-toolbar { border: 1px solid color-mix(in srgb, var(--iwb-border) 45%, transparent); }
/* 管理页:行块面化、宽度自适应、操作列右对齐 */
.iwb-mk-list { display: flex; flex-direction: column; gap: 8px; }
.iwb-mk-row-actions { gap: 6px; }
/* ── v3.26.26 插件市场:补回按钮/卡片的“浮动”触感 ───────────────── */
.iwb-mk-actions .iwb-btn { transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.iwb-mk-chip {
cursor: pointer;
border: 0;
background: var(--iwb-layer);
color: var(--iwb-text2);
padding: 4px 12px;
border-radius: 999px;
font-size: 12px;
line-height: 18px;
transition: transform .12s ease, background .12s ease, color .12s ease;
}
/* ── v3.26.27 插件市场/管理:去掉浮动,只保留颜色反馈;移除按钮给浅底;管理页回到横线分隔 ── */
.iwb-mk-card, .iwb-mk-card:hover, .iwb-mk-card:active { transform: none; }
.iwb-mk-card {
display: flex;
flex-direction: column;
border-radius: 14px;
padding: 14px;
gap: 10px;
min-height: 168px;
background: var(--iwb-panel);
border: 1px solid color-mix(in srgb, var(--iwb-border) 55%, transparent);
transition: background .14s ease, border-color .14s ease, box-shadow .14s ease;
box-shadow: none;
}
.iwb-mk-card:hover {
background: color-mix(in srgb, var(--iwb-layer) 55%, var(--iwb-panel));
border-color: color-mix(in srgb, var(--iwb-border2) 62%, transparent);
box-shadow: none;
}
/* 操作按钮:默认给浅底,看起来像按钮 */
.iwb-mk-actions .iwb-btn {
transform: none; box-shadow: none;
background: color-mix(in srgb, var(--iwb-text) 6%, var(--iwb-panel));
transition: background .12s ease, color .12s ease;
}
.iwb-mk-actions .iwb-btn:hover {
transform: none; box-shadow: none;
background: color-mix(in srgb, var(--iwb-text) 11%, var(--iwb-panel));
}
.iwb-mk-actions .iwb-btn:active { transform: none; box-shadow: none; background: color-mix(in srgb, var(--iwb-text) 16%, var(--iwb-panel)); }
.iwb-mk-actions .iwb-btn-primary {
background: var(--iwb-text); color: var(--iwb-layer);
}
.iwb-mk-actions .iwb-btn-primary:hover { background: color-mix(in srgb, var(--iwb-text) 86%, var(--iwb-layer)); box-shadow: none; }
.iwb-mk-chip, .iwb-mk-chip:hover, .iwb-mk-chip:active { transform: none; }
/* 管理页:横线分隔 + 悬停变色,不浮动 */
.iwb-mk-list { gap: 0; }
.iwb-mk-row { display: flex; align-items: center; gap: 12px; background: transparent; border-radius: 0; padding: 12px 6px; border-bottom: 1px solid color-mix(in srgb, var(--iwb-border) 62%, transparent); transform: none; box-shadow: none; transition: background .12s ease; }
.iwb-mk-row:last-child { border-bottom: 0; }
.iwb-mk-row:hover { background: color-mix(in srgb, var(--iwb-text) 3%, transparent); transform: none; box-shadow: none; }
.iwb-mk-row-actions .iwb-btn { transform: none; box-shadow: none; transition: background .12s ease; }
.iwb-mk-row-actions .iwb-btn:hover { transform: none; box-shadow: none; background: color-mix(in srgb, var(--iwb-text) 10%, var(--iwb-panel)); }
+3 -1
View File
@@ -17,5 +17,7 @@ assert.ok(source.includes("shellView === 'home' ? el('div', { className: 'iwb-ho
assert.ok(css.includes('.iwb-top-nav { height: 64px;'))
assert.ok(!css.includes('.iwb-leftrail'))
assert.ok(css.includes('.iwb-fullmask { position: fixed; z-index: 260;'))
assert.ok(css.includes('.iwb-canvas, .ws-expanded .iwb-canvas { left: 52px; top: 64px;'))
// v5 起画布在页面容器内,偏移由容器负责:这里钉住**最终生效**的 0 偏移(旧的 52/64 早已被 !important 覆盖)
assert.ok(css.includes('.iwb-canvas, .ws-expanded .iwb-canvas { left: 0 !important; }'))
assert.ok(css.includes('.iwb-canvas, .ws-expanded .iwb-canvas { top: 0 !important; }'))
console.log('interface hierarchy checks passed')
+4 -2
View File
@@ -78,8 +78,10 @@ assert.ok(!source.includes("className: 'iwb-canvas-expand'"))
assert.ok(!source.includes("title: '图库(右侧栏)'"))
assert.ok(source.includes("title: '显示 / 隐藏左栏'") && source.includes("title: '显示 / 隐藏右栏'"))
assert.ok(css.includes('.iwb-landing-actions .iwb-btn { min-height: 42px;'))
assert.ok(css.includes('.iwb-home-card-actions { opacity: 0;'))
// 合并后规则变紧凑,用正则匹配(属性顺序/空白不敏感)
assert.ok(/\.iwb-home-card-actions\s*\{[^}]*opacity:\s*0/.test(css))
assert.ok(css.includes('.iwb-home-card.iwb-manage .iwb-home-card-check { display: inline-block; }'))
assert.ok(css.includes('.iwb-home-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));'))
// 合并后规则变紧凑;且最终生效列宽是 230px(300px 的旧定义早已被覆盖)
assert.ok(/\.iwb-home-grid\s*\{[^}]*repeat\(auto-fill,\s*minmax\(230px/.test(css))
assert.ok(css.includes('.iwb-home-card-foot small { color: var(--iwb-text2); font-size: 12px; line-height: 1.4; white-space: nowrap;'))
console.log('page chrome regression checks passed')