feat(tokens): M4-B2 浮层层级表 + 阴影四档(3.26.45)

用户能感知的只有一件事:弹窗/确认框里操作,成功提示现在看得见。

修一个「改 CSS 治不好」的层级 bug
- .iwb-toast 挂在 .iwb-overlay 内部,而 overlay 自带 z-index:100 + fixed,本身是堆叠上下文,
  里面的 toast 写多少都压不过 portal 到 body 的弹窗(300)。所以此前「弹窗里点保存没反应」是提示被盖住。
- 修法改为把 toast 也 portal 到 body,实测 elementFromPoint 命中 toast 本身而非遮罩。

层级表(14 档 --iwb-z-*)
- 数值只在 gen-tokens.js 写一次;浮层族(弹窗/全窗口/命令面板/右键/toast/锚定/确认框/崩溃屏)全改 token,
  裸 z-index 取值种类 42 → 31。
- 三条关系由测试钉死:ctx-menu < sheet < modal、toast > modal、sheet-menu 夹在 sheet 与 modal 之间。

阴影四档 + 圆角归一
- 新增 --iwb-elevation-1..4(贴面/菜单/命令面板/弹窗),浮层 8 种写法 → 4 档。
- .iwb-pop 圆角 18px 归到 radius-popover(14);--sh-* 引用归零,legacy 名标 @deprecated。

守卫与验收
- 新增 tests/overlay-layer-test.js(进 test:unit):层级表存在性、9 条顺序约束、禁裸 z-index、
  引用必须存在、toast 必须 portal。
- 12 张视觉基线 0 diff;verify:ci 全绿。
This commit is contained in:
qiqi committed 2026-11-23 15:33:29 +08:00
1 parent 5002fbbefb
commit 968ff46a4c
12 files changed
+312 -61

No files matched your search

+25 -25
View File
@@ -193,8 +193,8 @@ button { font-family: inherit; }
.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; }
.iwb-modal { width: 680px; max-width: calc(100vw - 60px); max-height: 82vh; background: var(--iwb-panel); border: 1px solid var(--iwb-border2); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.iwb-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: var(--iwb-z-modal); display: flex; align-items: center; justify-content: center; }
.iwb-modal { width: 680px; max-width: calc(100vw - 60px); max-height: 82vh; background: var(--iwb-panel); border: 1px solid var(--iwb-border2); border-radius: var(--iwb-radius-popover); display: flex; flex-direction: column; overflow: hidden; }
.iwb-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--iwb-border); }
.iwb-modal-body { padding: 14px 16px; overflow: auto; display: flex; flex-direction: column; gap: 10px; max-height: 62vh; }
.iwb-modal-foot { padding: 12px 16px; border-top: 1px solid var(--iwb-border); display: flex; justify-content: flex-end; }
@@ -230,7 +230,7 @@ button { font-family: inherit; }
.iwb-gmgr-count { font-size: 11px; color: var(--iwb-text2); white-space: nowrap; }
/* 提示词库:全屏管理视图(面板占满视口,内部区域各自滚动,适配小分辨率) */
/* 提示词库活动窗口(可拖动标题栏移动、右下角缩放;尺寸/位置由 fsWin 控制) */
.iwb-fullmask { position: fixed; z-index: 260; display: flex; background: var(--iwb-panel); border: 1px solid var(--iwb-border2); border-radius: 14px; box-shadow: var(--sh-lg); overflow: hidden; padding: 0; }
.iwb-fullmask { position: fixed; z-index: var(--iwb-z-sheet); display: flex; background: var(--iwb-panel); border: 1px solid var(--iwb-border2); border-radius: var(--iwb-radius-popover); box-shadow: var(--iwb-elevation-4); overflow: hidden; padding: 0; }
.iwb-fullpanel { width: 100%; height: 100%; max-width: none; max-height: none; background: var(--iwb-panel); border: none; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; overflow: hidden; }
.iwb-full-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--iwb-border); flex: 0 0 auto; cursor: move; user-select: none; }
.iwb-full-head .iwb-toolbar-title { white-space: nowrap; }
@@ -321,7 +321,7 @@ button { font-family: inherit; }
.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; }
.iwb-history { position: absolute; left: 12px; right: 12px; bottom: 46px; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 12px; z-index: 30; box-shadow: 0 8px 30px rgba(0,0,0,0.25); padding: 8px 12px; max-height: 180px; display: flex; flex-direction: column; }
.iwb-history { position: absolute; left: 12px; right: 12px; bottom: 46px; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-panel); z-index: 30; box-shadow: var(--iwb-elevation-2); padding: 8px 12px; max-height: 180px; display: flex; flex-direction: column; }
.iwb-history-grid { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px; flex: 1; }
.iwb-history-item { position: relative; flex: 0 0 110px; }
.iwb-history-item img { width: 110px; height: 82px; object-fit: contain; border-radius: 6px; border: 1px solid var(--iwb-border); background: var(--iwb-layer2); cursor: pointer; }
@@ -459,7 +459,7 @@ button { font-family: inherit; }
.iwb-node-fixed .iwb-textarea { flex: 1 1 auto; max-height: none; min-height: 56px; height: auto !important; }
/* ---- v3:toast 提示 ---- */
.iwb-toast { position: fixed; left: 50%; top: 56px; transform: translateX(-50%); z-index: 200; background: var(--iwb-panel); border: 1px solid var(--iwb-border2); border-radius: 10px; padding: 10px 18px; box-shadow: 0 8px 30px rgba(0,0,0,0.3); font-size: 13px; font-weight: 600; animation: iwb-fadein 0.18s ease; }
.iwb-toast { position: fixed; left: 50%; top: 56px; transform: translateX(-50%); z-index: var(--iwb-z-toast); background: var(--iwb-panel); border: 1px solid var(--iwb-border2); border-radius: var(--iwb-radius-card); padding: 10px 18px; box-shadow: var(--iwb-elevation-2); font-size: var(--iwb-font-md); font-weight: 600; animation: iwb-fadein 0.18s ease; }
.iwb-toast-ok { border-left: 3px solid var(--iwb-brand); }
.iwb-toast-err { border-left: 3px solid var(--iwb-err); }
@keyframes iwb-fadein { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@@ -471,7 +471,7 @@ button { font-family: inherit; }
/* 展开态标题行右侧 ⋯ 三点菜单(Portal 挂 body + fixed 定位:右侧展开不切割、层级高于画布) */
.iwb-wsrail-title-more-wrap { position: relative; margin-left: auto; display: inline-flex; align-items: center; }
.iwb-ws-title-more { flex: 0 0 24px; width: 24px; height: 24px; padding: 0; }
.iwb-ws-more { position: fixed; z-index: 310; min-width: 210px; padding: 6px; background: var(--iwb-bg-menu); border: 1px solid var(--iwb-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.16); display: flex; flex-direction: column; gap: 2px; }
.iwb-ws-more { position: fixed; z-index: var(--iwb-z-modal-menu); min-width: 210px; padding: 6px; background: var(--iwb-bg-menu); border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-panel); box-shadow: var(--iwb-elevation-2); display: flex; flex-direction: column; gap: 2px; }
.iwb-ws-more .iwb-ctx-item { white-space: nowrap; }
.iwb-ws-more-ver { font-size: 11px; color: var(--iwb-text2); padding: 4px 10px 2px; user-select: none; }
.iwb-wsrail-title-more .iwb-ws-title-more { color: var(--iwb-brand-text, var(--iwb-brand)); }
@@ -485,7 +485,7 @@ button { font-family: inherit; }
/* 组合来源停用标记 */
.iwb-combine-src-off { color: var(--iwb-text2); opacity: 0.55; text-decoration: line-through; }
/* 页面加载动画:logo 弹跳 + 进度条光斑 + 淡出 */
.iwb-splash { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--iwb-bg); transition: opacity 0.5s ease; }
.iwb-splash { position: fixed; inset: 0; z-index: var(--iwb-z-splash); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--iwb-bg); transition: opacity 0.5s ease; }
.iwb-splash-fade { opacity: 0; pointer-events: none; }
.iwb-splash-logo { width: 54px; height: 54px; color: var(--iwb-brand-text, var(--iwb-brand)); animation: iwb-splash-bounce 1.2s ease-in-out infinite; }
.iwb-splash-title { font-size: 18px; font-weight: 700; color: var(--iwb-text); letter-spacing: 1px; }
@@ -706,8 +706,8 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-node.iwb-conn-ok { border-color: var(--iwb-ok) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-ok) 45%, transparent), 0 6px 20px rgba(0,0,0,0.25) !important; }
.iwb-node.iwb-conn-bad { border-color: var(--iwb-err) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-err) 55%, transparent), 0 6px 20px rgba(0,0,0,0.25) !important; }
.iwb-conn-hint { position: absolute; left: 8px; right: 8px; bottom: 6px; z-index: 6; padding: 4px 6px; border-radius: 5px; color: var(--iwb-err); background: rgba(254, 226, 226, 0.96); border: 1px solid rgba(239, 68, 68, 0.35); font-size: 11px; line-height: 1.25; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iwb-command-mask { position: fixed; inset: 0; z-index: 120; display: flex; justify-content: center; align-items: flex-start; padding-top: 13vh; background: rgba(10, 12, 18, 0.32); }
.iwb-command { width: min(560px, calc(100vw - 32px)); max-height: min(560px, 72vh); overflow: hidden; background: var(--iwb-panel); border: 1px solid var(--iwb-border2); border-radius: 12px; box-shadow: 0 18px 60px rgba(0,0,0,.32); display: flex; flex-direction: column; }
.iwb-command-mask { position: fixed; inset: 0; z-index: var(--iwb-z-command); display: flex; justify-content: center; align-items: flex-start; padding-top: 13vh; background: rgba(10, 12, 18, 0.32); }
.iwb-command { width: min(560px, calc(100vw - 32px)); max-height: min(560px, 72vh); overflow: hidden; background: var(--iwb-panel); border: 1px solid var(--iwb-border2); border-radius: var(--iwb-radius-panel); box-shadow: var(--iwb-elevation-3); display: flex; flex-direction: column; }
.iwb-command-head { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px solid var(--iwb-border); }
.iwb-command-icon { color: var(--iwb-brand-text, var(--iwb-brand)); font-size: 11px; font-weight: 800; }
.iwb-command-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--iwb-text); font-size: 14px; }
@@ -756,10 +756,10 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
}
/* ---- 自定义右键菜单 ---- */
.iwb-ctxmask { position: fixed; inset: 0; background: transparent; z-index: 90; }
.iwb-ctxmenu { position: fixed; min-width: 196px; max-width: 240px; max-height: calc(100vh - 24px); overflow-y: auto; padding: 6px; background: var(--iwb-bg-menu); border: 1px solid var(--iwb-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.16); z-index: 91; display: flex; flex-direction: column; gap: 2px; }
.iwb-ctxmask { position: fixed; inset: 0; background: transparent; z-index: var(--iwb-z-ctx); }
.iwb-ctxmenu { position: fixed; min-width: 196px; max-width: 240px; max-height: calc(100vh - 24px); overflow-y: auto; padding: 6px; background: var(--iwb-bg-menu); border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-panel); box-shadow: var(--iwb-elevation-2); z-index: var(--iwb-z-ctx-menu); display: flex; flex-direction: column; gap: 2px; }
/* 提示词/节点组的右键「移动到分组」菜单已 portal 到 body:需高于 .iwb-overlay(z-index:100),否则被应用层盖住 */
.iwb-ctxmenu.iwb-lib-group-menu { z-index: 270; /* 高于资源中心全窗口(.iwb-fullmask 260)、低于弹窗(300):修复提示词/节点组右键菜单被资源库窗口盖住 */ }
.iwb-ctxmenu.iwb-lib-group-menu { z-index: var(--iwb-z-sheet-menu); /* 面板内的 portal 菜单:> sheet、< modal,见 tokens 层级表 */ }
.iwb-ctx-title { font-size: 10px; font-weight: 700; color: var(--iwb-text2); letter-spacing: 1px; padding: 6px 10px 2px; text-transform: uppercase; }
.iwb-ctx-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: none; border-radius: 8px; background: transparent; color: var(--iwb-text); font-size: 12.5px; cursor: pointer; text-align: left; }
.iwb-ctx-item .iwb-ic { width: 14px; height: 14px; flex: 0 0 auto; color: var(--iwb-text2); }
@@ -901,7 +901,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
/* 大图预览:左右切换 + 下载条 */
.iwb-imgpreview { position: fixed; inset: 0; background: rgba(10, 12, 18, 0.92); z-index: 100; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.iwb-imgpreview { position: fixed; inset: 0; background: rgba(10, 12, 18, 0.92); z-index: var(--iwb-z-preview); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
/* 预览图自适应宽+高:同时约束横向与纵向,保持宽高比居中显示,不溢出(图库预览已取完整原图,可能很大/超高/超宽) */
.iwb-imgpreview img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.5); cursor: default; }
.iwb-prev-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; border: none; border-radius: 8px; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 30px; cursor: pointer; z-index: 101; }
@@ -1372,7 +1372,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; box-sizing: border-box; }
.iwb-home-menu { position: fixed; width: 220px; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-panel); box-shadow: var(--iwb-elevation-2); 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); }
@@ -1382,7 +1382,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
/* 顶层弹层层级:菜单 & 放大图必须盖过画布/资源中心/遮罩 */
.iwb-home-menu-mask { z-index: 1000; }
.iwb-home-menu { z-index: 1001; }
.iwb-imgpreview { z-index: 800; }
.iwb-imgpreview { z-index: var(--iwb-z-preview); }
.iwb-home-menu-ver { display: block; padding: 8px 12px; font-size: 11px; color: var(--iwb-text2); text-align: left; border-top: 1px solid var(--iwb-border); margin-top: 4px; }
/* 资源面板 4 角缩放手柄 */
@@ -1520,8 +1520,8 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-setopen { flex: 0 0 auto; }
/* ===== v3.86.5 图像设置:贴节点浮层(popover)形态 ===== */
.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-anchor { position: fixed; z-index: var(--iwb-z-anchor); }
.iwb-pop { width: 380px; max-width: calc(100vw - 16px); background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-popover); box-shadow: var(--iwb-elevation-3); 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-weight: 700; color: var(--iwb-text); }
.iwb-pop-body { display: flex; flex-direction: column; gap: 12px; }
@@ -1607,7 +1607,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
/* ── v3.87.6 崩溃可观测性:错误边界兜底 UI + 设置里的「诊断」页 ── */
.iwb-crash-retry { margin-top: 6px; }
.iwb-crash-screen { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--iwb-bg); }
.iwb-crash-screen { position: fixed; inset: 0; z-index: var(--iwb-z-alert); display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--iwb-bg); }
.iwb-crash-card { max-width: 620px; width: 100%; padding: 20px 22px; border: 1px solid var(--iwb-border); border-radius: 14px; background: var(--iwb-panel); display: flex; flex-direction: column; gap: 10px; }
.iwb-crash-title { font-size: 16px; font-weight: 700; }
.iwb-crash-msg { font-size: 13px; color: var(--iwb-text2); word-break: break-word; max-height: 30vh; overflow: auto; }
@@ -1805,7 +1805,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-pick-caret .iwb-ic { width: 14px; height: 14px; opacity: .75; }
/* 节点背景色色板(2026-11-01):6 个预设色块 + 「无」。
纯静态 CSS,无动画/滤镜 ⇒ 不改色时开销为 0;改色只重绘该节点区域。 */
.iwb-pop.iwb-bg-palette { display: flex; flex-direction: row; align-items: center; gap: 8px; width: auto; max-width: none; padding: 8px 10px; border-radius: 12px; }
.iwb-pop.iwb-bg-palette { display: flex; flex-direction: row; align-items: center; gap: 8px; width: auto; max-width: none; padding: 8px 10px; border-radius: var(--iwb-radius-panel); }
.iwb-bg-swatch { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--iwb-border); cursor: pointer; padding: 0; flex: 0 0 auto; transition: transform .12s, box-shadow .12s; }
.iwb-bg-swatch[data-bg="white"] { background: #fdfdfd; }
.iwb-bg-swatch[data-bg="cyan"] { background: #e1eef0; }
@@ -1828,7 +1828,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
/* 气泡上的「背景色」按钮:直接显示**当前背景色**的小色块(不再用调色板图标) */
.iwb-bg-dot { width: 16px; height: 16px; border-radius: 5px; padding: 0; pointer-events: none; flex: 0 0 auto; }
.iwb-bg-dot.iwb-bg-swatch:hover { transform: none; }
.iwb-bg-palette-host { position: fixed; inset: 0; pointer-events: none; z-index: 3300; }
.iwb-bg-palette-host { position: fixed; inset: 0; pointer-events: none; z-index: var(--iwb-z-palette); }
.iwb-bg-palette-host .iwb-pop-anchor { pointer-events: auto; }
.iwb-gc-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; overflow: auto; max-height: 48vh; padding-right: 2px; }
.iwb-gc-item { flex: 0 0 auto; width: auto; min-width: max-content; max-width: 100%; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--iwb-border); border-radius: 10px; background: var(--iwb-panel); color: var(--iwb-text); font-size: 13px; cursor: pointer; white-space: nowrap; text-align: left; }
@@ -1883,8 +1883,8 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-plugin-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.iwb-plugin-desc { color: var(--iwb-text2); font-size: 13px; line-height: 1.5; margin-top: 2px; }
/* 页内确认框(替代原生 confirm,避免 WKWebView 主线程阻塞) */
.iwb-confirm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.38); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.iwb-confirm-box { width: min(460px, calc(100vw - 48px)); background: var(--iwb-bg-menu); color: var(--iwb-text); border-radius: 12px; padding: 18px 20px 14px; box-shadow: 0 12px 40px rgba(0,0,0,.28); }
.iwb-confirm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.38); display: flex; align-items: center; justify-content: center; z-index: var(--iwb-z-alert); }
.iwb-confirm-box { width: min(460px, calc(100vw - 48px)); background: var(--iwb-bg-menu); color: var(--iwb-text); border-radius: var(--iwb-radius-panel); padding: 18px 20px 14px; box-shadow: var(--iwb-elevation-3); }
.iwb-confirm-title { font-weight: 650; font-size: 15px; margin-bottom: 8px; }
.iwb-confirm-text { font-size: 13.5px; line-height: 1.65; color: var(--iwb-text2); white-space: pre-wrap; word-break: break-word; }
.iwb-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
@@ -1980,7 +1980,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-cpick-hex { font-variant-numeric: tabular-nums; } /* v3.25.75:去掉 mix-blend-mode(浅色底上文字糊成一团) */
.iwb-cpick-swatch::after { content: '▾'; margin-left: 6px; opacity: .7; font-size: 10px; } /* 提示可点开取色 */
.iwb-cpick-swatch { min-width: 104px; }
.iwb-cpick-pop { position: absolute; z-index: 80; top: calc(100% + 8px); left: 0; width: 236px; padding: 10px; border-radius: 10px; background: var(--iwb-panel); border: 1px solid var(--iwb-border); box-shadow: var(--sh-md); }
.iwb-cpick-pop { position: absolute; z-index: 80; top: calc(100% + 8px); left: 0; width: 236px; padding: 10px; border-radius: var(--iwb-radius-card); background: var(--iwb-panel); border: 1px solid var(--iwb-border); box-shadow: var(--iwb-elevation-2); }
.iwb-cpick-box { position: relative; height: 132px; border-radius: 6px; cursor: crosshair; }
.iwb-cpick-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.4); pointer-events: none; }
.iwb-cpick-hue { width: 100%; height: 12px; margin: 10px 0 8px; border-radius: 6px; -webkit-appearance: none; appearance: none; }
@@ -2227,12 +2227,12 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
/* 设置窗口可拖动(v3.25.76):拖标题栏移动,位置不受居中约束 */
.iwb-modal-draghead { cursor: move; user-select: none; }
.iwb-modal-draghead:active { cursor: grabbing; }
.iwb-modal-floating { box-shadow: 0 24px 60px rgba(0,0,0,.32); }
.iwb-modal-floating { box-shadow: var(--iwb-elevation-4); }
/* 设置面板专用透明遮罩(v3.25.77):去掉灰蒙层,调外观时能直接看到画布变化。
仍保留点击空白处关闭面板的行为。 */
.iwb-modal-mask.iwb-mask-ghost { background: transparent; }
.iwb-modal-mask.iwb-mask-ghost .iwb-settings-modal { box-shadow: 0 24px 60px rgba(0,0,0,.32); }
.iwb-modal-mask.iwb-mask-ghost .iwb-settings-modal { box-shadow: var(--iwb-elevation-4); }
/* 自动配色开启时的提示行(v3.25.81) */
.iwb-appear-note-only { font-size: 12px; color: var(--iwb-text2); padding: 4px 0 0 2px; }