Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

feat: finish Claude UI takeover and design audit

longmeidao0018fe56b2b7
diff --git a/docs/HANDOFF.md b/docs/HANDOFF.md
index 326412a7b..e0184d286 100644
--- a/docs/HANDOFF.md
+++ b/docs/HANDOFF.md
@@ -110,7 +110,7 @@ Claude 的 `.claude/settings.json` 已配置 Stop、StopFailure、SessionEnd hoo
- **重复错误复盘(2026-08-16)**:反复出现的 pytest、错误 `/health`、worktree 错找 `.venv` 或加载主目录源码、PowerShell `$HOME` 大小写冲突、`foreach {}` 后直接接管道、Schannel 失败后改用 HTTP 冒充 HTTPS,以及浏览器不可用却继续报视觉通过,根因都是「文字提醒没有变成执行门槛」。测试入口已收敛为 `scripts/test.ps1`,自动定位主 venv 并拒绝错误源码;其他禁用模式写入项目 `AGENTS.md`,以后必须由可执行检查、真实端点/CA 校验和失败即时报告共同拦截,不能再靠操作者记忆。
- **TikTok 单列滚动(2026-08-15)**:当前 bundle `async/89993.30b4c2a9.js`(SHA-256 `C4D4867C5C6C89DCE560D429A4686427C911267DCBB2787AEB31B7BD333E9088`)使用 200 ms、`cubic-bezier(.2,.2,.4,.9)`、目标 `offsetTop`,滚动时临时禁用并恢复 `scrollSnapType`。Peach 复用时长和 easing,保留自己的两视频预载与 wheel/touch 队列。
- **Apple 播放控件(2026-08-15)**:Apple HIG 「Playing video」 只支持熟悉、克制的传输控制语义,没有提供可复用的 `gobackward.10`/`goforward.10` Web SVG。Peach 使用固定版本的 Lucide 子集和明确的「后退/前进 10 秒」无障碍标签,不声称精确复制 iOS glyph。
-- **Vercel 设计规范(2026-08-15)**:`https://vercel.com/design.md`(SHA-256 `07ED2923294AA326F65F9D9D4094B6E97BF7DE10C39ACD8BE935F2045C5A688F`)只作为评审清单:先用字体和间距建立层级、保持连续画布、避免任意图标瓷砖/嵌套卡片/微小灰字,动画只表达状态或连续性。
+- **Vercel Web Interface Guidelines(2026-08-15 首录,2026-08-26 复核)**:入口 `https://vercel.com/design.md` 首录 SHA-256 为 `07ED2923294AA326F65F9D9D4094B6E97BF7DE10C39ACD8BE935F2045C5A688F`;本次核对官方 `vercel-labs/web-interface-guidelines` 的 `command.md`,资源版本为 commit `e3d624baaf29dc1fc645aff3e38f03e564d2d6b1`(2026-08-18)。Peach 将它作为跨框架评审清单:键盘与可见焦点、触控命中、URL/标题状态、空/错/密集状态、移动端输入、异步播报、减少动画和固有布局;同时保留 Peach 的单用户中文语义、现有色彩 token 与高密度媒体浏览,不复制 Vercel 专属品牌、英文标题大小写或营销文案。
- **kill-ai-slop**:在 commit `96d1ca568a1db7e1ef9a381644c744440f816ee4` 上作为减法审计清单使用,不安装 skill、不复制 scanner。
- **Lucide**:通用操作和导航图标使用固定本地 `lucide-static` 1.31.0 子集(ISC);许可见 `web/vendor/lucide-LICENSE.txt`。品牌/来源 Logo 和计时圈不属于通用图标。
- **Rule34 样式**:旧代码注释没有 DOM/CSS 证据,已删除「Rule34-style」声明。当前标签颜色是 Peach 自有语义。
diff --git a/docs/STATUS.md b/docs/STATUS.md
index 75d6f062a..991b70aa5 100644
--- a/docs/STATUS.md
+++ b/docs/STATUS.md
@@ -1,6 +1,6 @@
# Peach 当前状态
-最后核验:2026-08-25
+最后核验:2026-08-26
## 运行态
@@ -112,6 +112,7 @@
## 界面与交互现状
+- 2026-08-26 接手并合入 Claude 的导航修复:抽屉与桌面窄栏共用 `navTo()`,抽屉里的关注、播放列表不再落入错误的首页状态;管理区按「统计 → 人工复核 → 疑似广告 → 重复文件 → 回收站 → 关注 → 高清版」排列。旧 `agent/claude/dup-keeper-options` 分支落后当前主线,不能整体合并;其保留 115/PikPak、整组回收能力主线已有,只移植仍缺的重复项完整路径显示。Vercel Web Interface Guidelines 复核后补齐跳到正文、图标按钮名称、路由标题、设置弹窗焦点闭环、搜索组合焦点、浏览器主题色与移动端 16 px 输入。
- 首页、详情、标签管理(字母表/标签云)、女优墙、厂牌/创作者/系列资料页、统计、沉浸模式均为同一无构建单页表面,桌面与手机共享数据契约。
- 女优/厂牌/创作者/系列名称用于导航;只有内容标签直接叠加筛选。「换一批」是动作,不是筛选状态。
- 共演作品在卡片上叠放前 3 位女优头像并列出前 2 个名字,超出部分写「等 N 人」;契约每条卡片下发至多 `CARD_PERFORMERS`(当前 6)位并给出 `performer_total`。详情页逐行列出全部出镜者,每行带自己的头像,标签只写在第一行;超过 8 位时其余默认收起,一次点击展开,收起的行始终留在 DOM 里。沉浸模式的归属行同样列出前 3 位。
@@ -295,22 +296,23 @@
<!-- job-status:start -->
<!-- 由 scripts/job_status.py 生成,勿手改;数字现算于账本与产物 -->
-<!-- generated 2026-08-21T18:13Z -->
+<!-- generated 2026-08-26T05:44Z -->
-- 资产 81753 条,其中视频 24873 条。
+- 最近自动交接:`claude` / `Stop` / `completed`,2026-08-26T05:23:36+00:00。
+- 资产 81554 条,其中视频 24674 条。
- 待抽帧(可抽 / 缺时长待 probe / 合计):
- `local`:3 / 1 / 4
- `115`:11 / 139 / 150
- - `pikpak`:4751 / 5445 / 10196
+ - `pikpak`:8881 / 1310 / 10191
PikPak 的策略组已可切 DIRECT:2026-08-15 实测走代理时 9 帧 163 MB / 13.7 秒,走直连时 30.5 MB / 64.2 秒——慢约 4.7 倍但流量少约 5 倍且不占代理预算。全量抽帧仍是 773 GB 量级(代理口径),按创作者采样 88 板直连约 2.7 GB。115 一直走直连,同样动作约 285 MB 一张接触表。
-- 无内容标签视频 7537 条(占视频 30%)。
-- `asset_tag` 来源分布:`vision_creator` 27004、`pixiv_tag` 19753、`name` 19295、`stash` 15450、`r18` 2451、`performer` 1596、`follow` 1376、`r18:performer` 1204、`javbus:performer` 49。
-- 番号 1465 个,其中 1158 个有厂牌(79%)。
+- 无内容标签视频 7442 条(占视频 30%)。
+- `asset_tag` 来源分布:`vision_creator` 27004、`pixiv_tag` 19753、`name` 19271、`stash` 15450、`r18` 2254、`performer` 1589、`follow` 1376、`r18:performer` 1126、`javbus:performer` 37。
+- 番号 1462 个,其中 1155 个有厂牌(79%)。
| 产物 | 行数 | 生成时间 | 说明 |
| --- | ---: | --- | --- |
-| `code-scrape.csv` | 1104 | 08-14 16:17 | 番号刮削结果 |
-| `name-clean.csv` | 287 | 08-14 16:18 | 文件名净化清单 |
+| `code-scrape.csv` | 1135 | 08-22 10:39 | 番号刮削结果 |
+| `name-clean.csv` | 7 | 08-22 10:42 | 文件名净化清单 |
| `ad-candidates.csv` | 82 | 08-14 22:53 | 广告候选(confidence 分级) |
| `disposal-candidates.csv` | 54 | 08-14 22:53 | 待处置候选(含「保留」判定) |
| `creator-tags-review.csv` | 86 | 08-15 18:35 | 创作者标签待审 |
diff --git a/src/peach/web_contract.py b/src/peach/web_contract.py
index 120f2061b..6b79705cf 100644
--- a/src/peach/web_contract.py
+++ b/src/peach/web_contract.py
@@ -2394,7 +2394,8 @@ def q_duplicates(contract: WebContract, args):
if not is_jav_code(row["code"]):
continue
item = dict(row)
- item["drive"] = str(item.pop("path") or "")[:2].upper()
+ # 盘符只用于判定跨盘;重复项页面还要显示完整路径,不能在契约层丢掉。
+ item["drive"] = str(item.get("path") or "")[:2].upper()
grouped.setdefault(normalise_code_key(row["code"]), []).append(item)
groups = []
diff --git a/tests/test_rm_web.py b/tests/test_rm_web.py
index 976a55d0e..d9fab0e09 100644
--- a/tests/test_rm_web.py
+++ b/tests/test_rm_web.py
@@ -1780,6 +1780,13 @@ class DuplicateDetectionTests(unittest.TestCase):
self.assertTrue(group["cross_drive"])
self.assertEqual(group["drives"], ["A:", "B:"])
+ def test_duplicate_rows_keep_the_full_path_for_review(self):
+ self.add("SSIS-057", 7200, 5_000_000_000, drive="A")
+ self.add("SSIS-057", 7200, 4_000_000_000, drive="B")
+ files = {row["drive"]: row for row in self.groups()["groups"][0]["files"]}
+ self.assertEqual(files["A:"]["path"], r"A:\1.mp4")
+ self.assertEqual(files["B:"]["path"], r"B:\2.mp4")
+
def test_reclaimable_keeps_the_largest_of_each_cluster(self):
self.add("WAAA-415", 7200, 5_000_000_000)
self.add("WAAA-415", 7200, 3_000_000_000)
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index 66eaa2df3..3512387b7 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -33,6 +33,30 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains('<link rel="icon" href="/peach-logo.png" type="image/png">')
self.assertPageContains('<img class="mark" src="/peach-logo.png" alt="">')
+ def test_global_navigation_and_controls_have_accessible_context(self):
+ self.assertPageContains('<a class="skiplink" href="#main">跳到正文</a>')
+ self.assertPageContains('<main id="main" tabindex="-1">')
+ self.assertPageContains('id="filterBtn" title="筛选" aria-label="筛选"')
+ self.assertPageContains('id="settingsBtn" title="设置" aria-label="打开设置"')
+ self.assertPageContains('name="q" type="search"')
+ self.assertPageContains('aria-label="搜索作品、女优、厂牌或标签"')
+ self.assertPageContains('id="count" role="status" aria-live="polite" aria-atomic="true"')
+
+ def test_browser_chrome_focus_and_mobile_inputs_follow_the_ui_checklist(self):
+ self.assertPageContains('<meta name="theme-color" content="#FFFFFF"')
+ self.assertPageContains('<meta name="theme-color" content="#020408"')
+ self.assertPageContains('.search:focus-within{border-color:var(--tungsten);box-shadow:')
+ self.assertPageContains('@media (max-width:760px){input,textarea,select{font-size:16px!important}}')
+ self.assertPageContains('button,a,input,textarea,select,summary{touch-action:manipulation}')
+
+ def test_route_titles_and_settings_dialog_manage_focus(self):
+ self.assertPageContains('const pageTitle=path=>{')
+ self.assertPageContains("'follow-manage':'关注管理'")
+ self.assertPageContains('syncPageTitle(path);')
+ self.assertPageContains("queueMicrotask(()=>$('#settingsClose').focus())")
+ self.assertPageContains('if(settingsReturnFocus&&document.contains(settingsReturnFocus))')
+ self.assertPageContains("if(e.key!=='Tab')return")
+
def test_entity_routes_are_semantic_and_not_model_shaped(self):
self.assertPageLacks("route(`/entity/")
self.assertPageContains("performer:'performers'")
@@ -930,6 +954,11 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains('data-dup-keep="all"')
self.assertPageContains("all:'零个文件'")
+ def test_duplicate_rows_show_the_full_path_without_losing_source_and_size(self):
+ self.assertPageContains('class="mono duppath" title="${esc(f.path||\'\')}"')
+ self.assertPageContains("${esc(f.path||'')}")
+ self.assertPageContains('.duppath{grid-column:2/-1;min-width:0;overflow:hidden')
+
def test_duplicate_removal_is_reversible(self):
# 只能进回收站;永久删除仍得从回收站单独执行。
self.assertPageContains("operation:'dispose'")
diff --git a/web/app.css b/web/app.css
index a61cbfeef..123029b60 100644
--- a/web/app.css
+++ b/web/app.css
@@ -30,6 +30,9 @@
--loupe:#6FD0C8; --keep:#5FB95F; --meter:#E0912F; --drop:#FF5252; --ambient-opacity:1;}
*,*::before,*::after{box-sizing:border-box}
+html{color-scheme:light;scroll-padding-top:calc(var(--topH) + 8px)}
+@media (prefers-color-scheme:dark){html:not([data-theme="light"]){color-scheme:dark}}
+html[data-theme="dark"]{color-scheme:dark}
html,body{margin:0;padding:0}
body{background:var(--ground);color:var(--ink);
font-family:Roboto,"Segoe UI Variable Text","Segoe UI","Microsoft YaHei UI","PingFang SC",sans-serif;
@@ -50,8 +53,13 @@ body::before{content:"";position:absolute;z-index:0;pointer-events:none;top:var(
.mono{font-family:"Cascadia Mono",Consolas,ui-monospace,monospace;
font-variant-numeric:tabular-nums;font-size:12px}
button,input,textarea{font:inherit;color:inherit}
+button,a,input,textarea,select,summary{touch-action:manipulation}
:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
+.skiplink{position:fixed;z-index:1000;left:12px;top:8px;transform:translateY(-150%);
+ padding:9px 13px;border-radius:8px;background:var(--ink);color:var(--ground);text-decoration:none;
+ transition:transform .12s ease}
+.skiplink:focus-visible{transform:translateY(0)}
/* 滚动条:全站统一,不用浏览器默认。细、无箭头、无轨道底色,悬停才提亮。 */
*{scrollbar-width:thin;scrollbar-color:var(--sb) transparent}
::-webkit-scrollbar{width:8px;height:8px}
@@ -84,7 +92,7 @@ button,input,textarea{font:inherit;color:inherit}
.brand .sub{font-size:11.5px;line-height:1;letter-spacing:.14em;color:var(--muted);padding-top:2px}
.search{flex:1;max-width:620px;margin:0 auto;display:flex;align-items:center;gap:8px;
background:var(--surface);border:1px solid var(--line);border-radius:9999px;padding:8px 16px;position:relative}
-.search:focus-within{border-color:var(--tungsten)}
+.search:focus-within{border-color:var(--tungsten);box-shadow:0 0 0 2px var(--tungsten-soft)}
.search input{flex:1;min-width:0;background:none;border:0;outline:none;font-size:15px}
.search>svg{width:21px;height:21px;flex:none;stroke:var(--muted);fill:none;stroke-width:1.8;stroke-linecap:round}
.searchmenu{position:absolute;z-index:130;left:0;right:0;top:calc(100% + 8px);padding:8px;
@@ -424,6 +432,8 @@ button.serieslink.entitylink:hover{color:var(--tungsten);text-decoration:none}
.duprow{display:grid;grid-template-columns:96px minmax(0,1fr) 44px 84px 84px;gap:10px;
align-items:center;padding:7px 12px;border-top:1px solid var(--overlay-5)}
.duprow .mono{color:var(--muted);font-size:12px}
+.duppath{grid-column:2/-1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
+ padding-top:2px;color:var(--muted)}
.dupname{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;
border:0;background:transparent;color:inherit;cursor:pointer;padding:0}
.dupname:hover{color:var(--tungsten)}
@@ -1059,6 +1069,7 @@ body.drawer-open .edge button{color:var(--ink-2)}
.scard2{padding:16px}.kv .u{display:block;margin-left:0;margin-top:2px}
.ctags .tg:nth-child(n+3){display:none}
}
+@media (max-width:760px){input,textarea,select{font-size:16px!important}}
#searchBtn{display:none}
.searchback{display:none}
.reviewimage{width:160px;height:112px;border-radius:8px;overflow:hidden;background:#000;margin:8px 0}.reviewimage img{width:100%;height:100%;object-fit:contain;display:block}
diff --git a/web/app.js b/web/app.js
index 45994e330..de81d8c35 100644
--- a/web/app.js
+++ b/web/app.js
@@ -10,7 +10,19 @@ const api=async(p,o)=>{
}
return payload;
};
-const route=(path,replace=false)=>history[replace?'replaceState':'pushState']({},'',path);
+const pageTitle=path=>{
+ const url=new URL(path,location.origin),parts=decodeURIComponent(url.pathname).split('/').filter(Boolean);
+ const fixed={stats:'统计',review:'人工复核',duplicates:'重复文件','quality-goals':'高清版',
+ follow:'关注','follow-manage':'关注管理',playlists:'播放列表',performers:'女优',studios:'厂牌',
+ creators:'创作者',series:'系列',tags:'标签',immerse:'沉浸模式',mix:'Mix',item:'作品'};
+ const label=parts.length>1&&['performers','studios','creators','series'].includes(parts[0])
+ ? parts.slice(1).join('/') : fixed[parts[0]];
+ return label?`${label} · Peach`:'Peach · 蜜桃';
+};
+const syncPageTitle=path=>{document.title=pageTitle(path)};
+const route=(path,replace=false)=>{
+ history[replace?'replaceState':'pushState']({},'',path);syncPageTitle(path);
+};
const ENTITY_ROUTES={performer:'performers',studio:'studios',creator:'creators',series:'series'};
const ROUTE_ENTITIES={performers:'performer',studios:'studio',creators:'creator',series:'series'};
const entityPath=(kind,name)=>`/${ENTITY_ROUTES[kind]||kind}/${encodeURIComponent(name)}`;
@@ -75,9 +87,27 @@ function syncSettingsPanel(){
$('#searchHistoryLimitSetting').value=String(appSettings.searchHistoryLimit);
$('#relatedLimitSetting').value=String(appSettings.relatedLimit);
}
-function openSettings(open=true){$('#settingsPanel').hidden=!open;if(open)syncSettingsPanel()}
+let settingsReturnFocus=null;
+function openSettings(open=true){
+ const panel=$('#settingsPanel');
+ if(open){
+ settingsReturnFocus=document.activeElement;panel.hidden=false;syncSettingsPanel();
+ queueMicrotask(()=>$('#settingsClose').focus());return
+ }
+ panel.hidden=true;
+ if(settingsReturnFocus&&document.contains(settingsReturnFocus))settingsReturnFocus.focus();
+ settingsReturnFocus=null;
+}
$('#settingsBtn').onclick=()=>openSettings(true);$('#settingsClose').onclick=()=>openSettings(false);
$('#settingsPanel').onclick=e=>{if(e.target===$('#settingsPanel'))openSettings(false)};
+$('#settingsPanel').onkeydown=e=>{
+ if(e.key!=='Tab')return;
+ const focusable=[...e.currentTarget.querySelectorAll('button:not([disabled]),select:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]')];
+ if(!focusable.length)return;
+ const first=focusable[0],last=focusable.at(-1);
+ if(e.shiftKey&&document.activeElement===first){e.preventDefault();last.focus()}
+ else if(!e.shiftKey&&document.activeElement===last){e.preventDefault();first.focus()}
+};
$('#rotateSetting').onchange=e=>{appSettings.rotateMinutes=+e.target.value;saveSettings()};
$('#batchSizeSetting').onchange=e=>{appSettings.batchSize=+e.target.value||60;saveSettings();if(location.pathname==='/')load(true)};
$('#defaultSortSetting').onchange=e=>{appSettings.defaultSort=e.target.value;saveSettings();state.sort=appSettings.defaultSort;if(location.pathname==='/')load(true)};
@@ -995,7 +1025,8 @@ function renderDuplicates(){
<button class="dupname" data-open-dup="${f.id}" title="${esc(f.name)}">${esc(f.name)}</button>
<span class="mono">${esc(LOC[f.location]||f.location||f.drive||'')}</span>
<span class="mono">${fmtSize(f.size||0)}</span>
- <span class="mono">${fmtDur(f.duration)}</span></div>`).join('')}</div>
+ <span class="mono">${fmtDur(f.duration)}</span>
+ <span class="mono duppath" title="${esc(f.path||'')}">${esc(f.path||'')}</span></div>`).join('')}</div>
</section>`).join(''):'<p class="empty">没有找到重复文件</p>'}</div>`;
$('#stats').querySelectorAll('[data-open-dup]').forEach(b=>
b.onclick=()=>openItem(+b.dataset.openDup));
@@ -3099,6 +3130,7 @@ function wireAllDrag(){['#tagbar','#srow','#nrow'].forEach(s=>wireDrag($(s)));
document.querySelectorAll('.tier').forEach(wireDrag)}
async function restoreRoute(){
+ syncPageTitle(location.href);
const path=decodeURIComponent(location.pathname),parts=path.split('/').filter(Boolean);
if(path==='/trash'){
state={...state,creator:'',studio:'',tag:'',orient:'',state:'trash',q:''};$('#q').value='';
diff --git a/web/index.html b/web/index.html
index 07ca4eb87..2ec4fd68d 100644
--- a/web/index.html
+++ b/web/index.html
@@ -3,12 +3,15 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
+<meta name="theme-color" content="#FFFFFF" media="(prefers-color-scheme: light)">
+<meta name="theme-color" content="#020408" media="(prefers-color-scheme: dark)">
<link rel="icon" href="/peach-logo.png" type="image/png">
<link rel="stylesheet" href="/vendor/videojs/8.23.9/video-js.min.css">
<title>Peach · 蜜桃</title>
<link rel="stylesheet" href="/app.css">
</head>
<body>
+<a class="skiplink" href="#main">跳到正文</a>
<!-- Lucide static 1.31.0, ISC. Local pinned subset; no CDN/runtime dependency.
Climax uses Health Icons sperm outline-24px, CC0/public domain. -->
<svg aria-hidden="true" width="0" height="0" style="position:absolute;overflow:hidden">
@@ -54,19 +57,19 @@
</svg>
<header class="top">
- <button class="ib" id="filterBtn" title="筛选"><svg viewBox="0 0 24 24"><use href="#i-sliders-horizontal"/></svg></button>
+ <button class="ib" id="filterBtn" title="筛选" aria-label="筛选"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-sliders-horizontal"/></svg></button>
<a class="brand" href="#" id="brandHome"><img class="mark" src="/peach-logo.png" alt=""><h1 class="disp">Peach</h1><span class="sub mono">蜜桃</span></a>
- <button class="ib searchback" id="searchBack" title="退出搜索" aria-label="退出搜索"><svg viewBox="0 0 24 24"><use href="#i-chevron-left"/></svg></button>
+ <button class="ib searchback" id="searchBack" title="退出搜索" aria-label="退出搜索"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-left"/></svg></button>
<div class="search"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-search"/></svg>
- <input id="q" type="search" placeholder="FC2" autocomplete="off">
+ <input id="q" name="q" type="search" placeholder="FC2" autocomplete="off" aria-label="搜索作品、女优、厂牌或标签">
<div class="searchmenu" id="searchMenu" hidden></div></div>
- <button class="ib" id="immerseBtn" title="沉浸模式 · 随机连播"><svg viewBox="0 0 24 24"><use href="#i-play"/></svg></button>
+ <button class="ib" id="immerseBtn" title="沉浸模式 · 随机连播" aria-label="进入沉浸模式"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-play"/></svg></button>
- <button class="ib" id="searchBtn" title="搜索"><svg viewBox="0 0 24 24"><use href="#i-search"/></svg></button>
- <button class="ib" id="selectMode" title="多选(Ctrl 单项,Shift 连续)" aria-label="多选模式" aria-pressed="false"><svg viewBox="0 0 24 24"><use href="#i-square-check-big"/></svg></button>
- <button class="ib" id="density" title="密度:大图 / 密集"><svg viewBox="0 0 24 24"><use href="#i-layout-grid"/></svg></button>
- <button class="ib" id="refresh" title="换一批推荐"><svg viewBox="0 0 24 24"><use href="#i-refresh-cw"/></svg></button>
- <button class="ib" id="settingsBtn" title="设置"><svg viewBox="0 0 24 24"><use href="#i-settings"/></svg></button>
+ <button class="ib" id="searchBtn" title="搜索" aria-label="搜索"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-search"/></svg></button>
+ <button class="ib" id="selectMode" title="多选(Ctrl 单项,Shift 连续)" aria-label="多选模式" aria-pressed="false"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-square-check-big"/></svg></button>
+ <button class="ib" id="density" title="密度:大图 / 密集" aria-label="切换卡片密度"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-layout-grid"/></svg></button>
+ <button class="ib" id="refresh" title="换一批推荐" aria-label="换一批推荐"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-refresh-cw"/></svg></button>
+ <button class="ib" id="settingsBtn" title="设置" aria-label="打开设置"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-settings"/></svg></button>
</header>
@@ -75,14 +78,14 @@
<div class="javbar" id="javbar" hidden></div>
<nav class="edge" id="edge"></nav>
-<main>
+<main id="main" tabindex="-1">
<section class="stage" id="stage" hidden></section>
<div class="combo" id="combo"></div>
<section class="index" id="index" hidden></section>
<nav class="managebar" id="managebar" hidden></nav>
<h2 class="disp managetitle" id="manageTitle" hidden></h2>
<section class="stats" id="stats" hidden></section>
- <div class="count mono" id="count">载入中…</div>
+ <div class="count mono" id="count" role="status" aria-live="polite" aria-atomic="true">载入中…</div>
<div class="grid" id="grid"></div>
<section class="shorts" id="shortsSec" hidden>
<h2 class="disp">竖屏 <span class="mono" style="color:var(--muted);font-size:11px" id="shortsN"></span>