@fish-under-sea/magpie-purge 0.8.2 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -412,22 +412,22 @@ npm run preview:serve # → http://127.0.0.1:55172
412
412
 
413
413
  - **画布全透**:`html` / `body` 都不铺底,壁纸由宿主画在自己的 body 上(带 `--wall-veil` 遮罩)。
414
414
  页面自己再铺一层 `--bg` 会整页发暗、跟宿主对不上。
415
- - **数字照抄,不设下限**:`page/glass.js` 把宿主下发的 `--magpie-glass-<region>-*` 与
416
- `magpie.glass()/onGlass()` 收敛成 `--purge-glass-*`;三张卡片、状态条、浮层用 `--card` × 区域原值。
417
- 越界、缺字段、字符串数字都在这里夹回安全值,绝不让 `NaN` 进 CSS。
418
- - **胶囊与控件用 `--fg` 的 10%**:列表行、组装行、详情里的「何时用 / 事实块」、按钮、输入框、
419
- chip、pick、查看都是 `color-mix(--fg calc(control-fill * 0.1), transparent)`,只有一圈描边与内侧高光
420
- ——这样它们才像玻璃,而不是实心块。选中态用半透强调色(24%)。
415
+ - **材质直出宿主那套**(对照 `fish-glass.css`):底色 = `--card` × 区域不透明度;
416
+ `backdrop-filter: blur(区域 blur) saturate(180%) brightness(1.06)` 做折射观感;内侧白色高光 +
417
+ 一层柔和投影;`::before` 左上冷光 / 右下壳光;`::after` 用 mask 挖出 1px 渐变高光边。
418
+ **没有自定义描边、没有黑色边框。**
419
+ - **行与块本身就是玻璃面**:状态条、列表行、组装行、详情里的「何时用 / 事实块」用同一套面材质
420
+ (行 12px 圆角、块 14px);不再给左右两列套大壳,壁纸从行与行之间透出来。
421
+ - **控件用 `--fg` 的 10%**:按钮、输入框、chip、pick、查看、胶囊组都是 `--fg` × 控件数字的 10%,
422
+ 带同一份模糊与描边高光;主操作仍用强调色。
423
+ - **数字照抄、不设下限**:`page/glass.js` 把 `--magpie-glass-<region>-*` 与 `magpie.glass()/onGlass()`
424
+ 收敛成 `--purge-glass-*`(fill 与 blur 都带);`control` 缺席时跟 `content` 走;脏值夹回安全范围。
421
425
  - **分组标题**:透明、不吸顶,跟着列表滚走(吸顶就必须给它一层遮挡,实测透明底兜不住滚过去的行)。
422
- - **材质由 `--fg` 派生**:分隔线 `--fg 12%`(深色主题下宿主的 `--line` 压在壁纸上就是「黑边」)、
423
- 高光边 `--fg 26%/14%`、内侧高光 `--fg 20%`、柔光 `--fg 10%` + 强调色 8%;深浅主题自动成立。
424
- - **颜色全部接官方 token**:正文 `--magpie-fg`、次要 `--magpie-muted`、卡面 `--magpie-card`、
425
- 字体 `--magpie-font`/`--magpie-code`;强调色 `--magpie-accent`、强调色上的文字 `--magpie-accent-fg`、
426
- 三态 `--magpie-green`/`--magpie-red`/`--magpie-amber`(人设=accent、技能=amber、素材=muted)。
427
- - **控件的兜底**:宿主 `pagebridge` 目前只下发 `sidebar / content / overlay` 三个区域,`control` 缺席时
428
- 控件沿用「主界面」的数字。
429
- - **模糊**:壁纸在宿主文档上,插件页在沙箱帧里,画布只能透、不能模糊(跨文档模糊浏览器不给);
430
- 真吃到模糊的是详情浮层与模式下拉——它们背后是本页内容。
426
+ - **文字全部接官方 token**:`--magpie-fg` / `--magpie-muted` / `--magpie-accent` / `--magpie-accent-fg` /
427
+ `--magpie-green` / `--magpie-red` / `--magpie-amber` / `--magpie-font` / `--magpie-code`;
428
+ 输入框占位符显式用 `--magpie-muted`,不再吃浏览器默认的「当前文字色 54%」。
429
+ - **模糊边界**:壁纸在宿主文档上,插件页在沙箱帧里,画布本身只能透、不能糊;能吃到模糊的是
430
+ 卡片/行的页内背景,以及详情浮层与模式下拉。
431
431
  - 降级:`@supports not (backdrop-filter)`、`prefers-reduced-transparency: reduce`、
432
432
  `forced-colors: active` 一律回实底并撤掉柔光/高光边。
433
433
 
@@ -464,6 +464,7 @@ node tools/scan.mjs --json
464
464
 
465
465
  | 版本 | 要点 |
466
466
  | --- | --- |
467
+ | `0.8.3` | 玻璃改成宿主材质直出:`--card` 底色 + backdrop 模糊/饱和/提亮 + 内侧高光 + 1px 渐变高光边 + 柔光;去掉左右两列大壳与所有自定义边框(不再有黑边),行/块本身就是玻璃面;控件仍是 `--fg` 10% 胶囊;占位符接 `--magpie-muted` |
467
468
  | `0.8.2` | 玻璃观感对齐官方插件页:画布全透、卡片用 content 原值(去掉 55/70/45 的下限)、胶囊与控件改用 `--fg` 的 10%×控件数字、材质与分隔线由 `--fg` 派生;另修掉注释里写了 `page/*/style.css` 导致 `*/` 提前闭合、整段玻璃变量规则被解析器吞掉的问题 |
468
469
  | `0.8.1` | 颜色全部接官方主题 token:强调色 `--magpie-accent`、强调色上的文字 `--magpie-accent-fg`、三态 `--magpie-green/red`、技能色 `--magpie-amber`,页面不再写死莓红;宿主只下发三个玻璃区(无 `control`)时控件跟「主界面」数字走,不再恒为实底 |
469
470
  | `0.8.0` | 玻璃卡片化:左列(搜索 + 列表)、右列(组装清单)、底部导入条在玻璃开着时各成一张玻璃卡(圆角 14、内边距 12/14、列间距 16);卡内的列表行与组装行各成一颗玻璃胶囊(12px 圆角),详情里的「何时用 / 事实块」也是胶囊,分组标题保持透明且不吸顶;玻璃关着仍是扁平工作台 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fish-under-sea/magpie-purge",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "magpie-purge: a magpie page plugin that treats a local purge folder as a free plugin/skill source, inspects and validates what is in it, and rewrites the gateway's system prompt by mode (off / strict / replace / append).",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/page/glass.js CHANGED
@@ -83,9 +83,11 @@
83
83
  '--purge-glass-canvas-fill': `${content.fill}%`,
84
84
  '--purge-glass-canvas-blur': `${content.blur}px`,
85
85
  '--purge-glass-ground-fill': `${content.fill}%`,
86
+ '--purge-glass-ground-blur': `${content.blur}px`,
86
87
  '--purge-glass-overlay-fill': `${overlay.fill}%`,
87
88
  '--purge-glass-overlay-blur': `${overlay.blur}px`,
88
89
  '--purge-glass-control-fill': `${control.fill}%`,
90
+ '--purge-glass-control-blur': `${control.blur}px`,
89
91
  }
90
92
  }
91
93
 
package/page/index.html CHANGED
@@ -6,16 +6,16 @@
6
6
  <title>破甲 · Purge</title>
7
7
  <script src="_magpie/bridge.js"></script>
8
8
  <script src="catalog.js"></script>
9
- <!-- ?v=0.8.2 是占位:tools/prepack.mjs 打包时换成真实版本号,postpack 换回来。
9
+ <!-- ?v=0.8.3 是占位:tools/prepack.mjs 打包时换成真实版本号,postpack 换回来。
10
10
  没有它,更新插件后浏览器可能一直用缓存的旧 app.js / style.css。 -->
11
- <script src="plan.js?v=0.8.2"></script>
12
- <link rel="stylesheet" href="style.css?v=0.8.2">
11
+ <script src="plan.js?v=0.8.3"></script>
12
+ <link rel="stylesheet" href="style.css?v=0.8.3">
13
13
  <!-- 玻璃:把宿主的四区域数字收敛成 --purge-glass-*(见 page/glass.js 的注释)。
14
14
  排在 app.js 前面:首屏画出来之前就该有底色,不该先闪一下实底。 -->
15
- <script src="glass.js?v=0.8.2" defer></script>
15
+ <script src="glass.js?v=0.8.3" defer></script>
16
16
  <!-- 读正文的通道要排在 app.js 前面:app.js 启动就会用它取 catalog.json。 -->
17
- <script src="hostread.js?v=0.8.2" defer></script>
18
- <script src="app.js?v=0.8.2" defer></script>
17
+ <script src="hostread.js?v=0.8.3" defer></script>
18
+ <script src="app.js?v=0.8.3" defer></script>
19
19
  </head>
20
20
  <body>
21
21
 
package/page/style.css CHANGED
@@ -123,6 +123,9 @@ textarea { width: 100%; resize: vertical; font-family: var(--mono); font-size: 1
123
123
  /* 焦点环用中性墨色而不是强调色:到处一圈紫会把「哪个才是主操作」冲淡。
124
124
  只走键盘时才出现,鼠标点不亮——这是 :focus-visible 的本意。 */
125
125
  :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
126
+ /* 占位文字走 muted,而不是浏览器默认的「当前文字色 54%」:
127
+ 玻璃上的输入框常常是浅色底 + 浅色字,默认占位色会糊成一片。 */
128
+ input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
126
129
 
127
130
  /* ---------- 注入状态:整页最该被看见的一行 ---------- */
128
131
  /* 一行里说完:注不注(点+结论)、为什么(第二行小字)、怎么注(胶囊组)。
@@ -1014,50 +1017,56 @@ textarea.text-edit:focus-visible {
1014
1017
  .seg-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1015
1018
  .seg-menu { left: 8px; right: 8px; min-width: 0; }
1016
1019
  }
1017
- /* ---------- 液态玻璃:跟随 magpie 的四个区域数字 ---------- */
1018
- /* 口径与官方插件页一致(对照 magpie-checkin-relay-probe 的 page/checkin/style.css):
1019
- 1) html / body 透明——壁纸画在宿主自己的 body 上,页面不再铺一层 --bg,
1020
- 否则整页发暗、跟宿主对不上;
1021
- 2) 「面」(三张卡片、状态条、浮层)用 --card × 区域数字的原值,不加任何下限;
1022
- 3) 胶囊与控件用 --fg 的 10% × 控件数字(92 → 9.2%),靠描边与内侧高光成形,
1023
- 这样它们才像玻璃,而不是实心块;
1024
- 4) 高光边、柔光、分隔线一律由 --fg 派生,深浅主题自动成立,不写死白/黑。
1025
- 数字拖到 0 时底色全透,但高光边与柔光还在,不会变成「一个洞」;
1026
- 玻璃关闭(100% / 0px)时整节不生效,与没有玻璃的旧版一致。 */
1020
+ /* ---------- 液态玻璃:按宿主的材质直出(fish-glass.css 同款) ---------- */
1021
+ /* 不自己发明「面 + 描边」:直接抄宿主 fish-glass.css 的做法——
1022
+ 1) 底色 = --card × 区域不透明度(含 blur 的 backdrop 滤镜 saturate/brightness 做折射观感);
1023
+ 2) 内侧 1px 高光 + 底部内阴影 + 一层柔和投影;
1024
+ 3) ::before 左上冷光 / 右下壳光,::after 用 mask 挖出 1px 渐变高光边;
1025
+ 4) 画布与 body 全透,壁纸由宿主自己的 body 透出来;
1026
+ 5) 按钮 / 输入框 / 胶囊用 --fg 的 10%×控件数字,带同一份模糊与描边高光。
1027
+ 玻璃关闭(100% / 0px)时整节不生效;不支持模糊 / 减弱透明 / 高对比度时回实底。 */
1027
1028
 
1028
1029
  html[data-magpie-glass] {
1029
- /* 由 --fg 派生的材质与分隔线 */
1030
- --purge-rim-line: color-mix(in srgb, var(--ink) 26%, transparent);
1031
- --purge-rim-line-2: color-mix(in srgb, var(--ink) 14%, transparent);
1032
- --purge-sheen-a: color-mix(in srgb, var(--ink) 10%, transparent);
1033
- --purge-sheen-b: color-mix(in srgb, var(--accent) 8%, transparent);
1034
- /* 玻璃上的分隔线不用实色:宿主的 --line 压在壁纸上就是「黑边」 */
1035
- --line: color-mix(in srgb, var(--ink) 12%, transparent);
1036
- /* 「面」与「胶囊 / 控件」两档底色 */
1030
+ /* 材质:与宿主 fish-glass.css 完全相同的固定值(白边 + 黑内阴影 + 冷光) */
1031
+ --purge-rim-line: rgba(255, 255, 255, .72);
1032
+ --purge-rim-line-2: rgba(255, 255, 255, .12);
1033
+ --purge-rim-shade: rgba(0, 0, 0, .26);
1034
+ --purge-sheen-a: rgba(255, 255, 255, .20);
1035
+ --purge-sheen-b: rgba(160, 205, 255, .12);
1036
+ /* 两档底色:主界面 / 浮层;控件与胶囊用 --fg 的 10% */
1037
1037
  --purge-surface: color-mix(in srgb, var(--card) var(--purge-glass-ground-fill, 100%), transparent);
1038
+ --purge-overlay: color-mix(in srgb, var(--card) var(--purge-glass-overlay-fill, 100%), transparent);
1038
1039
  --purge-pill: color-mix(in srgb, var(--ink) calc(var(--purge-glass-control-fill, 100%) * 0.1), transparent);
1039
1040
  /* 画布不铺底:壁纸直接透出来 */
1040
1041
  background: transparent;
1041
1042
  }
1042
1043
 
1043
- /* 状态条:整页文字最密的一块,跟「主界面」同一档底色。 */
1044
+ /* 状态条:整页文字最密的一块,做成一块玻璃面;左侧状态色条保留(它是语义色)。 */
1044
1045
  html[data-magpie-glass] .plan {
1045
- background-color: var(--purge-surface);
1046
- border-top-color: var(--line);
1047
- border-right-color: var(--line);
1048
- border-bottom-color: var(--line);
1046
+ position: relative;
1047
+ background: var(--purge-surface);
1048
+ border: 0;
1049
+ border-left: 3px solid var(--muted);
1049
1050
  border-radius: 14px;
1051
+ -webkit-backdrop-filter: blur(var(--purge-glass-ground-blur, 0px)) saturate(180%) brightness(1.06);
1052
+ backdrop-filter: blur(var(--purge-glass-ground-blur, 0px)) saturate(180%) brightness(1.06);
1053
+ box-shadow: inset 0 1px 0 var(--purge-rim-line), 0 10px 30px rgba(0, 0, 0, .18);
1050
1054
  }
1055
+ html[data-magpie-glass] .plan[data-state="ready"] { border-left-color: var(--ok); }
1056
+ html[data-magpie-glass] .plan[data-state="blocked"] { border-left-color: var(--danger); }
1051
1057
 
1052
- /* 卡里的胶囊:列表行、组装行、详情里的「何时用 / 事实块」。 */
1058
+ /* 列表行 / 组装行 / 详情事实块:同一块玻璃的小号版本(12px 圆角,无黑边,只有内侧高光)。 */
1053
1059
  html[data-magpie-glass] .row,
1054
1060
  html[data-magpie-glass] .stack-row,
1055
1061
  html[data-magpie-glass] .ins-facts,
1056
1062
  html[data-magpie-glass] .ins-callout {
1057
- background: var(--purge-pill);
1058
- border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
1063
+ position: relative;
1064
+ background: var(--purge-surface);
1065
+ border: 0;
1059
1066
  border-radius: 12px;
1060
- box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 20%, transparent);
1067
+ -webkit-backdrop-filter: blur(var(--purge-glass-ground-blur, 0px)) saturate(180%) brightness(1.06);
1068
+ backdrop-filter: blur(var(--purge-glass-ground-blur, 0px)) saturate(180%) brightness(1.06);
1069
+ box-shadow: inset 0 1px 0 var(--purge-rim-line);
1061
1070
  }
1062
1071
  html[data-magpie-glass] .row { padding: 6px 12px; }
1063
1072
  html[data-magpie-glass] .group > .row { margin: 5px 0; }
@@ -1065,12 +1074,12 @@ html[data-magpie-glass] .group > .row:last-child { margin-bottom: 8px; }
1065
1074
  html[data-magpie-glass] .list { border-top: 0; gap: 6px; }
1066
1075
  html[data-magpie-glass] .stack-view { border-top: 0; gap: 6px; }
1067
1076
  html[data-magpie-glass] .stack-row { padding: 10px 14px; }
1068
- /* 组装行左侧那条类型色条:连同内侧高光一起写,别被后面的 box-shadow 覆盖 */
1069
- html[data-magpie-glass] .stack-row.is-persona { box-shadow: inset 3px 0 0 var(--kind-persona), inset 0 1px 0 color-mix(in srgb, var(--ink) 20%, transparent); }
1070
- html[data-magpie-glass] .stack-row.is-skill { box-shadow: inset 3px 0 0 var(--kind-skill), inset 0 1px 0 color-mix(in srgb, var(--ink) 20%, transparent); }
1071
- html[data-magpie-glass] .stack-row.is-host { box-shadow: inset 3px 0 0 var(--line), inset 0 1px 0 color-mix(in srgb, var(--ink) 20%, transparent); }
1077
+ /* 组装行左侧的类型色条:用内阴影画,圆角会一并裁圆 */
1078
+ html[data-magpie-glass] .stack-row.is-persona { box-shadow: inset 3px 0 0 var(--kind-persona), inset 0 1px 0 var(--purge-rim-line); }
1079
+ html[data-magpie-glass] .stack-row.is-skill { box-shadow: inset 3px 0 0 var(--kind-skill), inset 0 1px 0 var(--purge-rim-line); }
1080
+ html[data-magpie-glass] .stack-row.is-host { box-shadow: inset 3px 0 0 var(--line), inset 0 1px 0 var(--purge-rim-line); }
1072
1081
 
1073
- /* 分组标题:透明、不吸顶(吸顶就必须给它一层遮挡,实测透明底兜不住滚过去的行)。 */
1082
+ /* 分组标题:透明、不吸顶(吸顶就需要遮挡,透明底兜不住滚过去的行)。 */
1074
1083
  html[data-magpie-glass] .group > .group-head {
1075
1084
  position: static;
1076
1085
  top: auto;
@@ -1084,41 +1093,26 @@ html[data-magpie-glass] .group > .group-head {
1084
1093
  text-shadow: none;
1085
1094
  }
1086
1095
 
1087
- /* hover / 选中:底色再加一档或用半透强调色,不再是实色块。 */
1088
- html[data-magpie-glass] .row:hover {
1089
- background: color-mix(in srgb, var(--ink) calc(var(--purge-glass-control-fill, 100%) * 0.18), transparent);
1090
- border-color: color-mix(in srgb, var(--ink) 26%, transparent);
1091
- }
1096
+ /* hover / 选中:底色不动,只叠一层强调色(与宿主列表选中同思路)。 */
1097
+ html[data-magpie-glass] .row:hover { background: color-mix(in srgb, var(--accent) 7%, var(--purge-surface)); }
1092
1098
  html[data-magpie-glass] .row[aria-selected="true"] {
1093
- background: color-mix(in srgb, var(--accent) 24%, transparent);
1094
- border-color: color-mix(in srgb, var(--accent) 42%, transparent);
1099
+ background: color-mix(in srgb, var(--accent) 16%, var(--purge-surface));
1100
+ box-shadow: inset 0 1px 0 var(--purge-rim-line), inset 2px 0 0 var(--accent);
1095
1101
  }
1096
1102
  html[data-magpie-glass] .seg-opt:hover { background-color: color-mix(in oklab, var(--ink) 8%, transparent); }
1097
1103
 
1098
- /* 三块「以前没有壳」的区域:左列、右列、底部导入条各一张玻璃卡。 */
1099
- html[data-magpie-glass] .rail,
1100
- html[data-magpie-glass] .panel,
1101
- html[data-magpie-glass] .foot {
1102
- position: relative;
1103
- background: var(--purge-surface);
1104
- border: 1px solid var(--line);
1105
- border-radius: 14px;
1106
- padding: 12px 14px;
1107
- }
1108
- /* 卡片之间留 16:原来 24 是给两个无壳栏目留白,有壳之后太散。 */
1109
- html[data-magpie-glass] .work { gap: 16px; }
1110
- html[data-magpie-glass] .foot { margin-top: 16px; }
1111
-
1112
- /* 浮层:详情浮层与模式下拉跟「浮层」区域;这里的模糊是真能生效的一处(背后是本页内容)。 */
1104
+ /* 浮层:详情与模式下拉跟「浮层」区域,模糊与材质同宿主。 */
1113
1105
  html[data-magpie-glass] .modal-sheet,
1114
1106
  html[data-magpie-glass] .seg-menu {
1115
- background: color-mix(in srgb, var(--card) var(--purge-glass-overlay-fill, 100%), transparent);
1107
+ position: relative;
1108
+ background: var(--purge-overlay);
1109
+ border: 0;
1116
1110
  -webkit-backdrop-filter: blur(var(--purge-glass-overlay-blur, 0px)) saturate(180%) brightness(1.06);
1117
1111
  backdrop-filter: blur(var(--purge-glass-overlay-blur, 0px)) saturate(180%) brightness(1.06);
1112
+ box-shadow: inset 0 1px 0 var(--purge-rim-line), 0 10px 30px rgba(0, 0, 0, .18);
1118
1113
  }
1119
1114
 
1120
- /* 控件:按钮、输入框、胶囊组、chip、pick、查看——与胶囊同一档底色。
1121
- 主操作 .primary 与胶囊内段 .seg 不在里面:前者要保住强调色,后者由外层统一上色。 */
1115
+ /* 控件:按钮、输入框、胶囊组、chip、pick、查看——--fg 的 10%×控件数字 + 同一份模糊。 */
1122
1116
  html[data-magpie-glass] .plan-controls,
1123
1117
  html[data-magpie-glass] :is(
1124
1118
  button:not(.primary):not(.seg),
@@ -1132,28 +1126,16 @@ html[data-magpie-glass] :is(
1132
1126
  ) {
1133
1127
  background-color: var(--purge-pill);
1134
1128
  border-color: color-mix(in srgb, var(--ink) 14%, transparent);
1129
+ -webkit-backdrop-filter: blur(var(--purge-glass-control-blur, 0px)) saturate(180%) brightness(1.06);
1130
+ backdrop-filter: blur(var(--purge-glass-control-blur, 0px)) saturate(180%) brightness(1.06);
1135
1131
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 20%, transparent);
1136
1132
  }
1137
1133
 
1138
- /* 柔光与高光边:只在「模糊 + color-mix 都支持」时出现。 */
1134
+ /* 柔光与渐变高光边:只在「模糊 + color-mix 都支持」时出现(mask 不支持会糊满整面)。 */
1139
1135
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) and (background: color-mix(in srgb, red, transparent)) {
1140
- html[data-magpie-glass] .plan,
1141
- html[data-magpie-glass] .modal-sheet,
1142
- html[data-magpie-glass] .seg-menu,
1143
- html[data-magpie-glass] .rail,
1144
- html[data-magpie-glass] .panel,
1145
- html[data-magpie-glass] .foot {
1146
- box-shadow: inset 0 1px 0 var(--purge-rim-line);
1147
- }
1148
- html[data-magpie-glass] .modal-sheet,
1149
- html[data-magpie-glass] .seg-menu { border-color: transparent; }
1150
-
1151
1136
  html[data-magpie-glass] .plan::before,
1152
1137
  html[data-magpie-glass] .modal-sheet::before,
1153
- html[data-magpie-glass] .seg-menu::before,
1154
- html[data-magpie-glass] .rail::before,
1155
- html[data-magpie-glass] .panel::before,
1156
- html[data-magpie-glass] .foot::before {
1138
+ html[data-magpie-glass] .seg-menu::before {
1157
1139
  content: "";
1158
1140
  position: absolute;
1159
1141
  inset: 0;
@@ -1165,10 +1147,7 @@ html[data-magpie-glass] :is(
1165
1147
  }
1166
1148
  html[data-magpie-glass] .plan::after,
1167
1149
  html[data-magpie-glass] .modal-sheet::after,
1168
- html[data-magpie-glass] .seg-menu::after,
1169
- html[data-magpie-glass] .rail::after,
1170
- html[data-magpie-glass] .panel::after,
1171
- html[data-magpie-glass] .foot::after {
1150
+ html[data-magpie-glass] .seg-menu::after {
1172
1151
  content: "";
1173
1152
  position: absolute;
1174
1153
  inset: 0;
@@ -1180,26 +1159,34 @@ html[data-magpie-glass] :is(
1180
1159
  -webkit-mask-composite: xor;
1181
1160
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
1182
1161
  mask-composite: exclude;
1183
- opacity: .8;
1162
+ opacity: .7;
1163
+ }
1164
+ /* 行与事实块:只补一圈渐变高光边,不加柔光(小面积上会脏)。 */
1165
+ html[data-magpie-glass] .row::after,
1166
+ html[data-magpie-glass] .stack-row::after,
1167
+ html[data-magpie-glass] .ins-facts::after,
1168
+ html[data-magpie-glass] .ins-callout::after {
1169
+ content: "";
1170
+ position: absolute;
1171
+ inset: 0;
1172
+ border-radius: inherit;
1173
+ padding: 1px;
1174
+ pointer-events: none;
1175
+ background: linear-gradient(145deg, var(--purge-rim-line), transparent 42%, transparent 62%, var(--purge-rim-line-2));
1176
+ -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
1177
+ -webkit-mask-composite: xor;
1178
+ mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
1179
+ mask-composite: exclude;
1180
+ opacity: .6;
1184
1181
  }
1185
1182
  }
1186
1183
 
1187
- /* 壁纸真的透进来(内容区 < 60%,glass.js 判 deep):分隔线加一档。 */
1188
- html[data-glass="deep"] {
1189
- --line: color-mix(in srgb, var(--ink) 20%, transparent);
1190
- --selected: color-mix(in oklab, var(--ink) 14%, transparent);
1191
- }
1192
- html[data-glass="deep"] .plan { box-shadow: none; }
1193
-
1194
- /* 降级一:环境不支持背景模糊 → 全部回实底,柔光与高光边(靠 mask)一起撤掉。 */
1184
+ /* 降级一:环境不支持背景模糊 → 全部回实底,柔光与高光边一起撤掉。 */
1195
1185
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
1196
1186
  html[data-magpie-glass] { background: var(--bg); }
1197
1187
  html[data-magpie-glass] .plan,
1198
1188
  html[data-magpie-glass] .modal-sheet,
1199
1189
  html[data-magpie-glass] .seg-menu,
1200
- html[data-magpie-glass] .rail,
1201
- html[data-magpie-glass] .panel,
1202
- html[data-magpie-glass] .foot,
1203
1190
  html[data-magpie-glass] .ins-facts,
1204
1191
  html[data-magpie-glass] .ins-callout,
1205
1192
  html[data-magpie-glass] .row,
@@ -1211,18 +1198,17 @@ html[data-glass="deep"] .plan { box-shadow: none; }
1211
1198
  html[data-magpie-glass] .plan-controls,
1212
1199
  html[data-magpie-glass] :is(button:not(.primary):not(.seg), select, input:not([type="checkbox"]):not([type="range"]), textarea:not(.text-edit), .chip, .pick, .row-view, .modal-x) {
1213
1200
  background-color: var(--card);
1201
+ -webkit-backdrop-filter: none;
1202
+ backdrop-filter: none;
1214
1203
  }
1215
1204
  }
1216
1205
 
1217
- /* 降级二:用户要求减弱透明 / 高对比度 → 回实底并关掉模糊,不为玻璃牺牲可读性。 */
1206
+ /* 降级二:用户要求减弱透明 / 高对比度 → 回实底并关掉模糊。 */
1218
1207
  @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
1219
1208
  html[data-magpie-glass] { background: var(--bg); }
1220
1209
  html[data-magpie-glass] .plan,
1221
1210
  html[data-magpie-glass] .modal-sheet,
1222
1211
  html[data-magpie-glass] .seg-menu,
1223
- html[data-magpie-glass] .rail,
1224
- html[data-magpie-glass] .panel,
1225
- html[data-magpie-glass] .foot,
1226
1212
  html[data-magpie-glass] .ins-facts,
1227
1213
  html[data-magpie-glass] .ins-callout,
1228
1214
  html[data-magpie-glass] .row,
@@ -1230,23 +1216,23 @@ html[data-glass="deep"] .plan { box-shadow: none; }
1230
1216
  background: var(--card);
1231
1217
  -webkit-backdrop-filter: none;
1232
1218
  backdrop-filter: none;
1219
+ box-shadow: none;
1233
1220
  }
1234
1221
  html[data-magpie-glass] .plan-controls,
1235
1222
  html[data-magpie-glass] :is(button:not(.primary):not(.seg), select, input:not([type="checkbox"]):not([type="range"]), textarea:not(.text-edit), .chip, .pick, .row-view, .modal-x) {
1236
1223
  background-color: var(--card);
1224
+ -webkit-backdrop-filter: none;
1225
+ backdrop-filter: none;
1226
+ box-shadow: none;
1237
1227
  }
1238
- html[data-magpie-glass] .modal-sheet,
1239
- html[data-magpie-glass] .seg-menu { border-color: var(--line); }
1240
1228
  html[data-magpie-glass] .plan::before,
1241
1229
  html[data-magpie-glass] .plan::after,
1242
1230
  html[data-magpie-glass] .modal-sheet::before,
1243
1231
  html[data-magpie-glass] .modal-sheet::after,
1244
1232
  html[data-magpie-glass] .seg-menu::before,
1245
1233
  html[data-magpie-glass] .seg-menu::after,
1246
- html[data-magpie-glass] .rail::before,
1247
- html[data-magpie-glass] .rail::after,
1248
- html[data-magpie-glass] .panel::before,
1249
- html[data-magpie-glass] .panel::after,
1250
- html[data-magpie-glass] .foot::before,
1251
- html[data-magpie-glass] .foot::after { content: none; }
1234
+ html[data-magpie-glass] .row::after,
1235
+ html[data-magpie-glass] .stack-row::after,
1236
+ html[data-magpie-glass] .ins-facts::after,
1237
+ html[data-magpie-glass] .ins-callout::after { content: none; }
1252
1238
  }