Peach: Local-first video metadata scraper and media manager.
fix(web): 选中态只剩填充,填充让位给选中
longmeidao1367a9abbe5a
diff --git a/.claude/skills/peach-web-ui/SKILL.md b/.claude/skills/peach-web-ui/SKILL.mdindex f891b6505..da9169118 100644--- a/.claude/skills/peach-web-ui/SKILL.md+++ b/.claude/skills/peach-web-ui/SKILL.md@@ -42,7 +42,8 @@ description: 在新增、修改或复核 Peach 页面、控件、提示、错误- 优先扩展 `web/js/ui-components.js`,不要为同一语义复制一次性 class 和模板。- 颜色、字号、圆角、浮层层级只用 `:root` 已有 token;新 token 必须证明现有词汇无法表达。- 字重只有 400/500/600 三档,标题也是 600;圆角只用 `--badge-radius`/`--control-radius`/`--surface-radius`/`--floating-radius`/`--pill-radius` 加 `50%` 与 `0`,带边框容器里的头尾条用 `calc(… - 1px)` 保持同心。两者的字面值由 `tests/test_web_ui.py` 拒绝,归属判据见 `:root` 注释。-- 单色优先:`--tungsten` 只给焦点环、链接、进度/数据与 Toggle 开态。选中态不反相——一律 `--hover` 底 `--ink` 字,无边框控件补 `inset 0 0 0 1px var(--border-15)`,带边框控件把边提到墨色 28%,还要更强就加一档字重;主动作用 `--ink` 底 `--ground` 字且每屏最多一个。标题悬停下划线不变蓝,计数徽章中性灰。其它选择器引用 `--tungsten` 由 `tests/test_web_ui.py` 拒绝;实测见 `vercel-geist-semantics-measured.md`「选中态与开关色」「Button 全变体与状态」。+- 单色优先:`--tungsten` 只给焦点环、链接、进度/数据与 Toggle 开态。主动作用 `--ink` 底 `--ground` 字且每屏最多一个。标题悬停下划线不变蓝,计数徽章中性灰。其它选择器引用 `--tungsten` 由 `tests/test_web_ui.py` 拒绝;实测见 `vercel-geist-semantics-measured.md`「选中态与开关色」「Button 全变体与状态」。+- 选中态只有填充:一律 `--hover` 底 `--ink` 字,不加边框、不加 `inset` 一圈线、不加字重(Geist Switch/Tabs 的类名里三样都没有)。填充既然专属选中,同一组互斥选项的未选中项悬停就只提文字色到 `--ink`;没有选中态的按钮和没有并排邻居的孤立开关悬停照旧抬填充。适用清单见同一份快照的「选中态与它的悬停」。- 按钮悬停只抬填充:次级到 `--hover`,主动作到 `color-mix(in srgb,var(--ink) 88%,var(--ground))`,边框与文字色都不动。禁用走 `--surface` 底、`--border-15` 边、`--muted` 字,不用 `opacity`;按下不加 `scale`。三条都有 Geist Button 源规则佐证。- `outline:0`/`outline:none` 只允许出现在同一规则给出替代焦点样式的地方(`box-shadow` 或子元素 outline),或输入框由带 `:focus-within` 的容器接管焦点时;reduced motion 由全局 `@media (prefers-reduced-motion:reduce)` 统一关闭,不逐处补。- Progress 必须有真实 `value/max`、可见单位与 `aria-valuemin/max/now`;分隔线放在完整指标(含进度条)之后。diff --git a/docs/reference-snapshots/vercel-geist-semantics-measured.md b/docs/reference-snapshots/vercel-geist-semantics-measured.mdindex 985c22776..3966193c1 100644--- a/docs/reference-snapshots/vercel-geist-semantics-measured.md+++ b/docs/reference-snapshots/vercel-geist-semantics-measured.md@@ -157,17 +157,49 @@ error 底 `rgb(217,48,54)` 字 `#fff`;warning 底 `rgb(255,153,10)` 字 `rgb(1ring `rgb(46,46,46)`、`opacity:1`、`cursor:not-allowed`。- **按下没有缩放**:页面上全部按钮的 `transform` 都是 `none`,Geist 不做 `scale`。+### 选中态与它的悬停:源类名取证(2026-09-03)++`getComputedStyle` 读不到悬停态(要么得手工触发,要么被冻住的 transition 骗),但 Geist+是 Tailwind 写的,`class` 属性里的 `hover:`/`aria-selected:`/`peer-checked:` 前缀就是+规则原文,比计算值更硬。三个组件的类名清单一致:++| 组件 | 未选中悬停 | 选中 |+| --- | --- | --- |+| Switch 分段项 `/geist/switch` | `hover:text-[var(--ds-gray-1000)]` | `peer-checked:text-[--ds-gray-1000]` + `peer-checked:bg-[--switch-checked-color]` + `peer-checked:rounded-[4px]` |+| Tabs primary `/geist/tabs` | `not-disabled:hover:text-gray-1000` | `aria-selected:text-gray-1000` + `primary:aria-selected:border-gray-1000`(底边 2px) |+| Tabs secondary `/geist/tabs` | `not-disabled:hover:text-gray-1000` | `aria-selected:text-gray-1000` + `aria-selected:bg-gray-200`,`rounded-md`、`h-8`、`px-3` |++三条共同点,都与我们之前的写法相反:++- **悬停只改文字色,不上填充**。填充是「选中」的专属信号,所以一行选项里鼠标划过邻居时,+ 哪个是当前项始终看得见。这与 Button 的「悬停只抬填充」不冲突:Button 没有选中态,+ 没有需要让位的信号。+- **选中不加边、不加内嵌一圈线**。Tabs primary 的底边 2px 是这个组件自己的形状语言+ (未选中也占着 `border-b-2 border-transparent`),不是通用的选中环。+- **字重两态相同**。Switch 分段项 `font-medium` 常驻,Tabs 全程不改字重。++唯一的例外是主题选择器(system/light/dark 三个圆形按钮):选中项是+`bg-[--ds-background-100]` + `shadow-[0_0_0_1px_var(--ds-gray-400)]`。它加环是因为选中项+的底色和容器同色,填充本身分不出来;不是通用做法。+### Peach 对应(2026-09-03 收敛)-- 按下/选中(`aria-pressed="true"`、`aria-current`、`.selected`、`.current`、`.picked`、`:checked`)不再反相。- 无边框控件用 `--hover` 底 `--ink` 字 + `box-shadow:inset 0 0 0 1px var(--border-15)`,- 带边框控件用 `--hover` 底 `--ink` 字 + 边框提到 `color-mix(in srgb,var(--ink) 28%,transparent)`,- 需要再强调时加一档字重(500/600)。这条推翻了本文件此前写的「统一 `--ink-2` 底 `--ground` 字」:- Geist 的 Switch 选中项只是 `#0A0A0A` 面上抬到 `#1A1A1A`,没有一处是反相白块。+- 按下/选中(`aria-pressed="true"`、`aria-current`、`.selected`、`.current`、`.picked`、`:checked`)+ 只有填充:一律 `--hover` 底 `--ink` 字,不加边、不加内嵌一圈线、不加字重。这条推翻了本文件+ 此前写的两版——先是「统一 `--ink-2` 底 `--ground` 字」(Geist 的 Switch 选中项只是 `#0A0A0A`+ 面上抬到 `#1A1A1A`,没有一处是反相白块),再是「无边框补内嵌一圈线、带边框提到墨色 28%、+ 还要更强就加字重」(那一整套是自造的强调阶梯,上面三个组件的类名里一条都没有)。+- 因此**同一组互斥选项的未选中项,悬停只提文字色到 `--ink`,不上填充**:`.pill`、`.chip`、+ `.reviewtabs button`、`.sorts button`、`.junkfilters a`、`.tagmodes button`、`.dnav button`、+ `.edge button`、`.managebar button`、`.mediaviewbutton`、`.javbar button`。没有选中态的按钮+ (`.fbtn`、`.fchip`)和没有并排邻居的孤立开关(`.ib`、`.brandpill`、`.playerstatsbtn`、+ `.fb .like`)悬停照旧抬填充。彩色标签类控件(`.tagfilters`、`.index-tags .tg`、`.alphatag`、+ `.sec.cat-* .chip`)的悬停本来就是标签色 tint,与白色选中底不同色,不受这条影响。- 主动作 `--ink` 底 `--ground` 字,悬停 `color-mix(in srgb,var(--ink) 88%,var(--ground))`(对应 Geist 的 #EDEDED→#CCC,同为掉一档而非换色);每屏最多一个。-- 悬停统一只抬填充到 `--hover`,边框与文字色不动——同样推翻此前的「悬停边提亮到墨色 28%」,- 那一档在 Peach 是全站最亮的边,实际效果比 Vercel 重得多。28% 现在只用于选中态的边。+- 按钮(无选中态)悬停只抬填充到 `--hover`,边框与文字色不动——同样推翻此前的+ 「悬停边提亮到墨色 28%」,那一档在 Peach 是全站最亮的边,实际效果比 Vercel 重得多。+ 墨色 28% 的边现在只剩输入框 `.fpicksearch:hover` 一处。- 禁用统一 `--surface` 底、`--border-15` 边、`--muted` 字,不用 `opacity`;按下不加 `scale`。Peach 保留 `cursor:default` 而不是 Geist 的 `not-allowed`,与本仓库其余禁用态写法一致。diff --git a/tests/test_web_ui.py b/tests/test_web_ui.pyindex e105557fd..78683c818 100644--- a/tests/test_web_ui.py+++ b/tests/test_web_ui.py@@ -343,7 +343,7 @@ class WebUiSourceTests(unittest.TestCase):`#EDEDED→#ccc`、secondary `#0A0A0A→--ds-gray-200`、ghost 走`--ds-gray-alpha-200`,没有任何一条 hover 改 border 或 ring。Peach 此前把边提到墨色 28%(`.fbtn` 甚至提到 `--ink-2`,接近 79% 白),一排按钮里被鼠标- 扫过的那颗看着像是被选中了。28% 现在只留给选中态的边。+ 扫过的那颗看着像是被选中了。墨色 28% 的边现在只剩输入框一处。"""css = re.sub(r"/\*.*?\*/", "", (Path(__file__).resolve().parents[1]/ "web" / "app.css").read_text(encoding="utf-8"),@@ -367,6 +367,87 @@ class WebUiSourceTests(unittest.TestCase):self.assertEqual(offenders, [],f"这些 hover 在提亮边框,请改成只抬 background:{offenders}")+ # 悬停允许照旧抬填充的四个孤立开关:它们没有并排的同类邻居,鼠标压着的那颗+ # 就是你正在问的那颗,看不出「按没按」不构成误读。+ HOVER_FILL_ALLOWED = (+ ".ib", # 顶栏图标按钮,八个里只有一个有按下态+ ".brandpill", # 顶栏厂牌胶囊,全站一颗+ ".playerstatsbtn", # 播放器覆盖层,悬停走 ::after 另一层+ ".fb .like", # 这一排彩色反馈按钮的既有约定就是悬停预览按下后的颜色+ ".tagpickitem", # 选中由图标换成对勾表达,填充留给悬停与键盘游标+ )++ STATE_TOKENS = ('[aria-pressed="true"]', '[aria-selected="true"]',+ '[aria-current="page"]', '[aria-current="true"]', ".selected")++ def _leaf_rules(self):+ css = re.sub(r"/\*.*?\*/", "", (Path(__file__).resolve().parents[1]+ / "web" / "app.css").read_text(encoding="utf-8"),+ flags=re.S)+ for match in re.finditer(r"([^{}]+)\{([^{}]*)\}", css):+ yield match.group(1).strip().split("{")[-1], match.group(2)++ def test_selected_states_carry_no_ring_no_lifted_border_and_no_extra_weight(self):+ """选中态只有填充,不加边、不加内嵌一圈线、不加字重。++ 2026-09-03 用户指出侧栏当前项在 Vercel 里既没有边框线也没有加粗。核对+ Geist 的类名(`class` 里的 Tailwind 前缀就是规则原文,不受悬停取证的限制):+ Switch 分段项 `peer-checked:` 下只有 `text` 与 `bg`,`font-medium` 两态常驻;+ Tabs secondary 只有 `aria-selected:bg-gray-200` 与 `aria-selected:text-gray-1000`。+ 我们此前那套「无边框补 inset 一圈、带边框提到墨色 28%、还要更强就加字重」+ 是自造的强调阶梯,三个组件里一条都找不到。彩色标签控件的语义色边框不在此列,+ 它换的是色相不是亮度。+ """+ offenders = []+ for leaf, body in self._leaf_rules():+ if not any(state in leaf for state in self.STATE_TOKENS):+ continue+ if ":after" in leaf or ":before" in leaf:+ continue+ # 只拦控件上那圈中性发丝线。压在缩略图上的 2px 白框(`.card.selected .pic`)+ # 是另一回事:媒体画面吃掉 7% 的填充,选中只能靠取景框描边。+ if "box-shadow:inset 0 0 0 1px var(--border-15)" in body:+ offenders.append((leaf, "inset 一圈线"))+ if "color-mix(in srgb,var(--ink) 28%" in body:+ offenders.append((leaf, "墨色 28% 提边"))+ if "font-weight" in body:+ offenders.append((leaf, "字重加档"))+ self.assertEqual(offenders, [],+ f"选中态只留 --hover 底 --ink 字:{offenders}")++ def test_hover_yields_the_fill_to_selection_inside_a_group(self):+ """一组互斥选项里,填充专属选中,未选中项悬停只提文字色。++ 去掉边框与字重之后,`:hover` 和 `[aria-pressed="true"]` 都是 `--hover`,+ 鼠标划过邻居时就分不出哪个是当前项了。Geist 的解法三个组件一致:+ `hover:text-[var(--ds-gray-1000)]`、`not-disabled:hover:text-gray-1000`——+ 悬停只改文字色,背景留给 checked/aria-selected。这与 Button 的「悬停只抬+ 填充」不冲突:Button 没有选中态,没有需要让位的信号。+ """+ selected_bases = set()+ for leaf, body in self._leaf_rules():+ if "background:var(--hover)" not in body:+ continue+ for part in leaf.split(","):+ part = part.strip()+ for state in self.STATE_TOKENS:+ if part.endswith(state):+ selected_bases.add(part[: -len(state)].strip())+ self.assertIn(".pill", selected_bases, "基线选择器没被认出来,测试本身失效了")+ offenders = []+ for leaf, body in self._leaf_rules():+ if ":hover" not in leaf or "background:var(--hover)" not in body:+ continue+ for part in leaf.split(","):+ part = part.strip()+ if not part.endswith(":hover"):+ continue+ base = part[: -len(":hover")].strip()+ if base in selected_bases and base not in self.HOVER_FILL_ALLOWED:+ offenders.append(part)+ self.assertEqual(sorted(offenders), [],+ f"这些控件有选中态,悬停请只提文字色到 --ink:{offenders}")+def test_buttons_do_not_shrink_on_press_and_disable_to_a_solid_gray(self):"""按下不缩放,禁用是实底灰而不是半透明。diff --git a/web/app.css b/web/app.cssindex ee62be2a1..e26dc4d78 100644--- a/web/app.css+++ b/web/app.css@@ -142,7 +142,7 @@ button[aria-busy="true"],[role="button"][aria-busy="true"]{.ib svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;display:block}.ib:hover{color:var(--ink);background:var(--hover)}-.ib[aria-pressed="true"]{background:var(--hover);color:var(--ink);box-shadow:inset 0 0 0 1px var(--border-15)}+.ib[aria-pressed="true"]{background:var(--hover);color:var(--ink)}.brand{display:flex;align-items:center;gap:9px;flex:none;text-decoration:none;color:inherit;height:32px}.mark{width:28px;height:28px;flex:none;display:block;object-fit:contain}.brand h1{font-family:Bahnschrift,"Segoe UI Variable Display","Microsoft YaHei UI","PingFang SC",sans-serif;font-weight:600;margin:0;font-size:var(--fs-xl);line-height:1;letter-spacing:.08em}@@ -194,7 +194,7 @@ button[aria-busy="true"],[role="button"][aria-busy="true"]{border-radius:var(--pill-radius);background:var(--overlay-5);border:1px solid var(--border-10);cursor:pointer;font-size:var(--fs-md);white-space:nowrap}.brandpill:hover{border-color:var(--border-15);background:color-mix(in srgb,var(--overlay-5) 78%,var(--ink) 3%)}-.brandpill[aria-pressed="true"]{background:var(--hover);color:var(--ink);border-color:color-mix(in srgb,var(--ink) 28%,transparent);font-weight:500}+.brandpill[aria-pressed="true"]{background:var(--hover);color:var(--ink)}.brandpill .mk{width:32px;height:32px;border-radius:50%;background:#CFCFCF;flex:none;display:flex;align-items:center;justify-content:center;font-size:var(--fs-xs);font-family:Bahnschrift,"Microsoft YaHei UI","Microsoft YaHei","PingFang SC",sans-serif;color:var(--ground);overflow:hidden;position:relative}@@ -209,8 +209,8 @@ button[aria-busy="true"],[role="button"][aria-busy="true"]{.pill{flex:none;height:var(--filterItemH);padding:0 20px;border:1px solid var(--border-15);border-radius:var(--pill-radius);background:transparent;display:inline-flex;align-items:center;justify-content:center;color:var(--ink-2);cursor:pointer;font-size:var(--fs-lg);white-space:nowrap;text-decoration:none}-.pill:hover{color:var(--ink);background:var(--hover)}-.pill[aria-pressed="true"]{background:var(--hover);color:var(--ink);border-color:color-mix(in srgb,var(--ink) 28%,transparent);font-weight:500}+.pill:hover{color:var(--ink)}+.pill[aria-pressed="true"]{background:var(--hover);color:var(--ink)}.pill.act{border-color:var(--ink-2);color:var(--ink)}.sep{flex:none;width:1px;height:19px;background:var(--border-15);margin:0 3px}@@ -232,7 +232,7 @@ button[aria-busy="true"],[role="button"][aria-busy="true"]{.playlistcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}.playlistcard{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;padding:12px;border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--surface);min-width:0}.playlistcover{position:relative;aspect-ratio:16/10;border:0;border-radius:var(--surface-radius);background:#000;overflow:hidden;padding:0;cursor:pointer}.playlistcover:disabled{cursor:default}.playlistcover img{width:100%;height:100%;object-fit:cover}.playlistcover span{position:absolute;right:5px;bottom:5px;border-radius:var(--badge-radius);background:#000b;color:#fff;padding:3px 6px;font-size:var(--fs-xs)}.playlistmeta{display:grid;align-content:center;gap:6px;min-width:0}.playlistmeta input{min-width:0;width:100%;font-weight:600}.playlistmeta small{color:var(--muted)}.playlistactions{grid-column:1/-1;display:flex;gap:7px;justify-content:flex-end}.playlistactions .danger{color:var(--drop)}.playlistdialog{width:min(520px,calc(100vw - 28px));border:1px solid var(--line);border-radius:var(--floating-radius);background:var(--surface);color:var(--ink);padding:0;box-shadow:0 2px 4px #0003,0 24px 80px #000b}.playlistdialog::backdrop{background:#000a;backdrop-filter:blur(5px)}.playlistdialoghead{display:flex;align-items:center;justify-content:space-between;padding:16px 17px;border-bottom:1px solid var(--line-soft)}.playlistdialoghead h2{margin:0;font-size:var(--fs-xl)}.playlistdialoghead button{width:34px;height:34px;border:0;border-radius:var(--control-radius);background:transparent;color:var(--ink);display:grid;place-items:center;cursor:pointer}.playlistdialoghead button:hover{background:var(--hover)}.playlistdialoghead svg{width:19px;height:19px;stroke:currentColor;fill:none}.playlistdialogbody{padding:17px}.playlistpicklist{display:grid;gap:7px;margin-top:16px;max-height:320px;overflow-y:auto;overscroll-behavior:contain}.playlistpickrow{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--border-10);border-radius:var(--control-radius);background:var(--overlay-5);color:var(--ink);padding:11px 12px;text-align:left;cursor:pointer}.playlistpickrow:hover{background:var(--hover)}.playlistpickrow small{color:var(--muted)}.runtimegate{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:12px;margin:0 0 12px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--meter) 35%,var(--line));border-radius:var(--control-radius);background:color-mix(in srgb,var(--meter) 8%,var(--surface));color:var(--ink);font-size:var(--fs-sm)}.runtimegate>svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.runtimegate span{min-width:0}.runtimegate a{color:var(--ink);font-weight:600;text-decoration:none}.runtimegate a:hover{color:var(--ink-2)}-.review{--review-fieldset-height:440px;padding:0 0 42px}.reviewtabs{display:flex;gap:6px;overflow-x:auto;margin-bottom:16px;scrollbar-width:none}.reviewtabs::-webkit-scrollbar{display:none}.reviewtabs button{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border-15);border-radius:var(--control-radius);background:transparent;color:var(--ink-2);padding:7px 14px;cursor:pointer;font-size:var(--fs-sm);white-space:nowrap}.reviewtabs button:hover{background:var(--hover);color:var(--ink)}.reviewtabs button[aria-pressed="true"]{background:var(--hover);color:var(--ink);border-color:color-mix(in srgb,var(--ink) 28%,transparent);font-weight:600}.reviewtabs .n{color:var(--muted);font-size:var(--fs-xs)}.reviewsection{margin-bottom:20px}.reviewsection h3{margin:0 0 9px;font-size:var(--fs-lg)}.reviewlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:14px;align-items:start}+.review{--review-fieldset-height:440px;padding:0 0 42px}.reviewtabs{display:flex;gap:6px;overflow-x:auto;margin-bottom:16px;scrollbar-width:none}.reviewtabs::-webkit-scrollbar{display:none}.reviewtabs button{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border-15);border-radius:var(--control-radius);background:transparent;color:var(--ink-2);padding:7px 14px;cursor:pointer;font-size:var(--fs-sm);white-space:nowrap}.reviewtabs button:hover{color:var(--ink)}.reviewtabs button[aria-pressed="true"]{background:var(--hover);color:var(--ink)}.reviewtabs .n{color:var(--muted);font-size:var(--fs-xs)}.reviewsection{margin-bottom:20px}.reviewsection h3{margin:0 0 9px;font-size:var(--fs-lg)}.reviewlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:14px;align-items:start}/* 判定状态用左侧色条表达:整卡描边在一列里扫过去时反而认不出来 */.reviewitem{position:relative;display:flex;flex-direction:column;box-sizing:border-box;height:var(--review-fieldset-height);margin:0;padding:0;min-width:0;overflow:hidden;background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--floating-radius)}.reviewitem::before{content:'';position:absolute;z-index:3;left:0;top:0;bottom:0;width:3px;background:transparent}.reviewitem[data-decision="approved"]::before{background:var(--keep)}.reviewitem[data-decision="rejected"]::before{background:var(--drop)}.reviewitem[data-decision="skipped"]::before{background:var(--muted)}.reviewitem[data-decision="rejected"],.reviewitem[data-decision="skipped"]{opacity:.6}.reviewitem h4{margin:0 0 6px;font-size:var(--fs-lg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reviewitem p{margin:4px 0;color:var(--muted);font-size:var(--fs-xs);line-height:1.55;overflow-wrap:anywhere}.reviewitem>.geist-fieldset-content{flex:1;min-height:0;padding:20px}.reviewcontent{height:100%}@@ -360,6 +360,7 @@ body.entity-open .index{overflow-x:visible}.tagmodes{display:flex;gap:4px;padding:3px;border:1px solid var(--line-soft);border-radius:var(--surface-radius);background:var(--surface)}.tagmodes button{border:0;border-radius:var(--control-radius);background:transparent;color:var(--muted);padding:6px 10px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}.tagmodes button svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8}+.tagmodes button:hover{color:var(--ink)}.tagmodes button[aria-pressed="true"]{background:var(--hover);color:var(--ink)}.tagfilters{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 18px}.tagfilters button{height:34px;padding:0 13px;border-radius:var(--pill-radius);border:1px solid var(--line-soft);@@ -404,7 +405,7 @@ body.entity-open .index{overflow-x:visible}.index .index-tags .tg .n{opacity:.6;font-size:var(--fs-xs)}.index .index-tags .tg:hover{border-color:color-mix(in srgb,var(--tag-color) 62%,transparent);background:color-mix(in srgb,var(--tag-color) 13%,transparent)}-.index .index-tags .tg.selected,.alphatag.selected{background:var(--hover);color:var(--ink);border-color:color-mix(in srgb,var(--ink) 28%,transparent);font-weight:500}+.index .index-tags .tg.selected,.alphatag.selected{background:var(--hover);color:var(--ink)}.alphabet{display:grid;gap:22px}.alphagroup{border-top:1px solid var(--line-soft);padding-top:14px}.alphagroup:first-child{border-top:0}.alphagroup h3{margin:0 0 10px;font-size:var(--fs-xl);color:var(--ink-2)}.alphalist{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:5px 18px}@@ -461,8 +462,8 @@ body.entity-open .index{overflow-x:visible}border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}.mediaviewbuttons .mediaviewbutton svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2}.mediaviewbuttons .mediaviewbutton[data-media-icon="image"] svg{fill:currentColor;stroke:none}-.mediaviewbuttons .mediaviewbutton:hover{background:var(--hover);color:var(--ink)}-.mediaviewbuttons .mediaviewbutton[aria-pressed="true"]{background:var(--hover);color:var(--ink);box-shadow:inset 0 0 0 1px var(--border-15)}+.mediaviewbuttons .mediaviewbutton:hover{color:var(--ink)}+.mediaviewbuttons .mediaviewbutton[aria-pressed="true"]{background:var(--hover);color:var(--ink)}.relatedpeople{display:flex;gap:14px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.relatedpeople::-webkit-scrollbar{display:none}.relatedperson{flex:0 0 78px;border:0;background:transparent;color:inherit;padding:0;cursor:pointer;text-align:center}.relatedperson .ring{display:grid;place-items:center;width:64px;height:64px;@@ -787,8 +788,8 @@ main{position:relative;z-index:1;padding:14px 16px 90px}background:transparent;color:var(--ink-2);padding:0 14px;cursor:pointer;font-size:var(--fs-sm);white-space:nowrap}.managebar button svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}-.managebar button:hover{background:var(--hover);color:var(--ink)}-.managebar button[aria-pressed="true"]{background:var(--hover);color:var(--ink);box-shadow:inset 0 0 0 1px var(--border-15);font-weight:600}+.managebar button:hover{color:var(--ink)}+.managebar button[aria-pressed="true"]{background:var(--hover);color:var(--ink)}.managebar{margin-left:auto;margin-right:auto}.insight-layout .managetitle,.insight-layout .pagelede{width:min(1100px,100%);margin-left:auto;margin-right:auto}.cleanup-layout .geist-breadcrumb,.cleanup-layout .managetitle,.cleanup-layout .pagelede{width:min(812px,100%);margin-left:auto;margin-right:auto}@@ -832,8 +833,8 @@ main{position:relative;z-index:1;padding:14px 16px 90px}border:1px solid var(--border-15);border-radius:var(--control-radius);background:transparent;cursor:pointer;font-size:var(--fs-xs);color:var(--ink-2);flex:0 0 auto;white-space:nowrap}-.count .sorts button:hover,.entitycollectionhead .sorts button:hover{background:var(--hover);color:var(--ink)}-.count .sorts button[aria-pressed="true"],.entitycollectionhead .sorts button[aria-pressed="true"]{background:var(--hover);color:var(--ink);border-color:color-mix(in srgb,var(--ink) 28%,transparent)}+.count .sorts button:hover,.entitycollectionhead .sorts button:hover{color:var(--ink)}+.count .sorts button[aria-pressed="true"],.entitycollectionhead .sorts button[aria-pressed="true"]{background:var(--hover);color:var(--ink)}.count .sorts .batchaction,.entitycollectionhead .sorts .batchaction{background:var(--ink);border-color:var(--ink);color:var(--ground);font-weight:600;padding-inline:14px}.count .sorts #batchAction,.entitycollectionhead .sorts .entitybatch{width:36px;padding:0;display:inline-grid;place-items:center}@@ -959,9 +960,9 @@ body.select-mode .selectionMark,.card.selected .selectionMark{display:grid}text-decoration:none;font-size:var(--fs-xs);white-space:nowrap}.junkfilters a>svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}-.junkfilters a:hover{background:var(--hover);color:var(--ink)}+.junkfilters a:hover{color:var(--ink)}.junkfilters a:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}-.junkfilters a[aria-current="page"]{background:var(--hover);color:var(--ink);border-color:color-mix(in srgb,var(--ink) 28%,transparent);font-weight:500}+.junkfilters a[aria-current="page"]{background:var(--hover);color:var(--ink)}.junkfilters a span{font-variant-numeric:tabular-nums;color:inherit;opacity:.72}.junkcard{cursor:default;gap:0;overflow:hidden;border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--surface);content-visibility:auto;contain-intrinsic-size:auto 360px}@@ -1392,7 +1393,7 @@ body.index-open #tiers,body.index-open #tagbar{display:none}.playerstatsbtn:hover:after,.playerstatsbtn:focus-visible:after,.closestage:hover:after,.closestage:focus-visible:after{background:rgba(255,255,255,.1)}.playerstatsbtn:active:after,.closestage:active:after{background:rgba(255,255,255,.2)}.playerstatsbtn:focus-visible,.closestage:focus-visible{outline:0}-.playerstatsbtn[aria-pressed="true"]{background:var(--hover);color:var(--ink);box-shadow:inset 0 0 0 1px var(--border-15)}+.playerstatsbtn[aria-pressed="true"]{background:var(--hover);color:var(--ink)}.playerstatsbtn svg{position:relative;z-index:1;width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;filter:drop-shadow(0 0 1px rgba(0,0,0,.8))}.playerstats{position:absolute;left:11px;top:58px;z-index:8;min-width:320px;max-width:min(520px,calc(100% - 22px));padding:10px 12px;border:1px solid rgba(255,255,255,.18);border-radius:var(--surface-radius);@@ -1497,7 +1498,7 @@ body.index-open #tiers,body.index-open #tagbar{display:none}.fb .fdownload{box-sizing:border-box;width:44px;height:42px;display:grid;place-items:center;border-right:1px solid var(--border-10);color:var(--ink-2)}.fb .fdownload:hover{background:rgba(255,255,255,.12);color:var(--ink)}.fb .fdownload svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}-.fb .like:hover{color:var(--ink);background:var(--hover)}.fb .like[aria-pressed="true"]{background:var(--hover);color:var(--ink);box-shadow:inset 0 0 0 1px var(--border-15)}+.fb .like:hover,.fb .like[aria-pressed="true"]{color:var(--ink);background:var(--hover)}.fb .reason:hover,.fb .reason[aria-expanded="true"],.fb .reason[data-has-reason="true"]{color:#FF669D;background:color-mix(in srgb,#FF669D 12%,transparent)}.fb .dislike:hover,.fb .dislike[aria-pressed="true"]{color:var(--drop);background:color-mix(in srgb,var(--drop) 12%,transparent)}.fb .seen:hover,.fb .seen[aria-pressed="true"]{color:var(--keep);background:color-mix(in srgb,var(--keep) 12%,transparent)}@@ -1644,8 +1645,8 @@ body.censor .brand .mark,body.censor .src img,body.censor .ficon{filter:none}display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 0}.edge button{width:52px;height:52px;border-radius:var(--control-radius);background:none;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--muted);transition:background .12s}-.edge button:hover{background:var(--hover);color:var(--ink)}-.edge button[aria-pressed="true"]{background:var(--hover);color:var(--ink);box-shadow:inset 0 0 0 1px var(--border-15)}+.edge button:hover{color:var(--ink)}+.edge button[aria-pressed="true"]{background:var(--hover);color:var(--ink)}.edge button.nav-dragging,.dnav button.nav-dragging{opacity:.38}.edge button.nav-drop-before::before,.edge button.nav-drop-after::after,.dnav button.nav-drop-before::before,.dnav button.nav-drop-after::after{content:'';position:absolute;z-index:2;left:7px;right:7px;height:2px;border-radius:var(--pill-radius);background:var(--ink)}.edge button.nav-drop-before::before,.dnav button.nav-drop-before::before{top:-3px}.edge button.nav-drop-after::after,.dnav button.nav-drop-after::after{bottom:-3px}.edge button[data-nav],.dnav button[data-nav]{position:relative}.edge svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}@@ -1678,8 +1679,8 @@ body.drawer-open .edge{opacity:0;pointer-events:none} /* 展开时窄栏让位.dnav button{padding-left:12px}.dnav button{display:flex;align-items:center;gap:14px;padding:11px 14px;background:none;border:0;border-radius:var(--control-radius);cursor:pointer;text-align:left;font-size:var(--fs-lg);color:var(--ink)}-.dnav button:hover{background:var(--hover)}-.dnav button[aria-pressed="true"]{background:var(--hover);color:var(--ink);box-shadow:inset 0 0 0 1px var(--border-15);font-weight:600}+.dnav button:hover svg{color:var(--ink)}+.dnav button[aria-pressed="true"]{background:var(--hover);color:var(--ink)}.dnav svg{width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;color:var(--muted)}.dnav button[aria-pressed="true"] svg{color:var(--ink)}@@ -1699,8 +1700,8 @@ body.drawer-open .edge{opacity:0;pointer-events:none} /* 展开时窄栏让位.chip>svg{stroke:currentColor;fill:none;stroke-width:1.7}.chip{display:inline-flex;align-items:center;gap:6px;padding:var(--tag-pad-y) var(--tag-pad-x);border:1px solid var(--line);border-radius:var(--tag-radius);background:transparent;cursor:pointer;font-size:var(--fs-xs)}-.chip:hover{background:var(--hover);color:var(--ink)}-.chip[aria-pressed="true"]{background:var(--hover);color:var(--ink);border-color:color-mix(in srgb,var(--ink) 28%,transparent);font-weight:500}+.chip:hover{color:var(--ink)}+.chip[aria-pressed="true"]{background:var(--hover);color:var(--ink)}/* 不同类别保留语义色,内容卡片本身维持中性。 */.sec.cat-artist .chip{color:#D2703F;border-color:#D2703F44}.sec.cat-artist .chip[aria-pressed="true"]{background:#D2703F22;border-color:#D2703F}@@ -1931,7 +1932,7 @@ body.drawer-open .edge{opacity:0;pointer-events:none} /* 展开时窄栏让位给它们切「封面」没有意义。 */.javbar{display:flex;align-items:center;gap:8px;padding:0 0 10px;flex-wrap:wrap}.javbar[hidden]{display:none}-.javbar button{width:34px;height:30px;display:inline-grid;place-items:center;border-radius:var(--control-radius);border:1px solid var(--overlay-10);background:transparent;color:var(--ink-2);cursor:pointer;padding:0}.javbar button svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8}.javbar button:hover{background:var(--hover);color:var(--ink)}.javbar button[aria-pressed="true"]{background:var(--hover);color:var(--ink);border-color:color-mix(in srgb,var(--ink) 28%,transparent)}+.javbar button{width:34px;height:30px;display:inline-grid;place-items:center;border-radius:var(--control-radius);border:1px solid var(--overlay-10);background:transparent;color:var(--ink-2);cursor:pointer;padding:0}.javbar button svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8}.javbar button:hover{color:var(--ink)}.javbar button[aria-pressed="true"]{background:var(--hover);color:var(--ink)}.javlayout{min-width:0;margin:0;padding:3px;border:1px solid var(--line-soft);border-radius:var(--surface-radius);background:var(--overlay-5)}.javlayout label{position:relative;display:inline-grid;width:34px;height:28px;place-items:center;border-radius:var(--control-radius);color:var(--muted);cursor:pointer}.javlayout input{position:absolute;inline-size:1px;block-size:1px;opacity:0}.javlayout label:hover{color:var(--ink)}.javlayout label:has(input:checked){background:var(--surface);color:var(--ink);box-shadow:0 1px 2px #0005}.javlayout label:has(input:focus-visible){outline:2px solid var(--tungsten);outline-offset:2px}.javlayout svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8}/* 取景:正封模式下,整张封套要把镜头推到右半边;本身就是竖版正封的则整张用。判据是图片自己的宽高比,由 onload 写进 data-frame。 */