:root{
  --bg:#0f1115; --panel:#171a21; --panel2:#1e2230; --line:#272c38;
  --fg:#e6e8ee; --muted:#9aa3b2; --accent:#4ea1ff; --ok:#3ecf8e; --warn:#ffb020; --danger:#ff5f56;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--fg);font:15px/1.65 system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
h1{font-size:24px;margin:24px 0 8px}
h2{font-size:18px;margin:20px 0 8px}
main{max-width:960px;margin:0 auto;padding:0 16px 48px}
code,.mono{font-family:ui-monospace,Consolas,monospace;font-size:13px}
.muted{color:var(--muted)}

/* 导航栏上的"待办"红点（腐竹的额度申请） */
.nav-badge{display:inline-block;min-width:17px;margin-left:6px;padding:0 5px;border-radius:9px;
  background:var(--danger);color:#fff;font-size:11px;line-height:17px;text-align:center;font-weight:600}

/* 只读测试账号的横幅：让"点了没反应"这件事在页面上先说清楚 */
.demo-banner{max-width:960px;margin:16px auto 0;padding:10px 14px;border:1px solid var(--warn);
  border-radius:6px;background:rgba(255,176,32,.10);color:var(--fg);font-size:14px}

/* 部署额度：审批表单里的两个小输入框 + 额度用完的提示条 */
.quota-num{width:4.5em;margin:0 4px 0 0;display:inline-block}
.quota-note{width:12em;margin:0 6px 0 0;display:inline-block}
.quota-empty{margin-top:8px;padding:10px 12px;border:1px solid var(--warn);border-radius:6px;
  background:rgba(255,176,32,.08);color:var(--fg);font-size:14px}

.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;background:var(--panel);border-bottom:1px solid var(--line);flex-wrap:wrap}
.nav .brand{font-weight:700;color:var(--fg)}
.nav .links{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.nav .who{color:var(--fg)}
.nav .cta{border:1px solid var(--accent);padding:4px 10px;border-radius:6px}
.inline{display:inline}
.linkbtn{background:none;border:0;color:var(--accent);cursor:pointer;font:inherit;padding:0}
footer{max-width:960px;margin:0 auto;padding:16px;color:var(--muted);border-top:1px solid var(--line)}

.hero{padding:24px 0 8px}
.hero h1{font-size:30px;margin:0 0 6px}
.sub{color:var(--muted);margin:0 0 16px}
.stats{display:flex;gap:12px;flex-wrap:wrap}
.stat{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:12px 18px;min-width:110px}
.stat b{display:block;font-size:22px}
.stat span{color:var(--muted);font-size:13px}
.window{color:var(--warn);font-size:14px}

.modlist{list-style:none;padding:0;margin:0}
.modlist li{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin:10px 0}
.modlist .mname{font-weight:600;font-size:16px}
.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ident{color:var(--muted);font-family:ui-monospace,Consolas,monospace;font-size:12px}
.summary{margin:8px 0 6px;white-space:pre-wrap}
.meta{margin:0;color:var(--muted);font-size:13px}

.tag,.status{font-size:12px;padding:2px 8px;border-radius:99px;border:1px solid var(--line);color:var(--muted)}
.status.s-applied{color:var(--ok);border-color:var(--ok)}
.status.s-pending_apply{color:var(--warn);border-color:var(--warn)}
.status.s-machine_rejected,.status.s-human_rejected,.status.s-ai_rejected,.status.s-removed{color:var(--danger);border-color:var(--danger)}

.card{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:16px;margin:14px 0}
.card.narrow{max-width:420px}
.danger-card{border-color:var(--danger);background:#2a1512}
.ai-note{border-left:3px solid var(--accent);padding:6px 10px;margin:8px 0;background:var(--panel2);border-radius:0 8px 8px 0}
.ai-note .tag{margin-left:6px}
.warn-note{color:var(--warn);border-left:3px solid var(--warn);padding:6px 10px;background:#2a2312;border-radius:0 8px 8px 0;margin:8px 0}
label{display:block;margin:10px 0;color:var(--muted);font-size:14px}
input,textarea,select{width:100%;margin-top:6px;padding:9px 10px;background:var(--panel2);border:1px solid var(--line);border-radius:8px;color:var(--fg);font:inherit}
textarea{resize:vertical}
.btn{display:inline-block;margin-top:10px;padding:9px 16px;background:var(--accent);color:#06121f;border:0;border-radius:8px;font-weight:600;cursor:pointer}
.btn:hover{filter:brightness(1.1);text-decoration:none}
.btn.danger{background:var(--danger);color:#2a0705}
.err{color:var(--danger);margin-top:10px}
.avatarline img{width:64px;height:64px;border-radius:50%;border:1px solid var(--line)}
.secret{display:flex;align-items:center;gap:12px;margin:12px 0}
.secret code{font-size:26px;letter-spacing:3px;background:var(--panel2);padding:12px 18px;border-radius:10px;border:1px dashed var(--accent)}
.table{width:100%;border-collapse:collapse;margin:10px 0}
.table th,.table td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--line);font-size:14px;
  /* 不让表格把日期之类的短内容按字拆行（"2026-\n10-01" 就是这么来的） */
  white-space:nowrap}
.table th{color:var(--muted);font-weight:600}
/* 列多的表格（部署记录、部署日志）在窄屏上必须能横向滚动，
   而不是把每一列都挤成竖排文字 */
.tablewrap{overflow-x:auto;margin:10px 0}
.tablewrap .table{margin:0}
/* 无空格的长串（sha256、jar 路径、URL）必须能断行，否则会顶出卡片边界 */
code,.mono,.ident{overflow-wrap:anywhere}
.summary,.meta,.ai-note,.warn-note,.card,.modlist li{overflow-wrap:anywhere}
.reviewform{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.reviewform input{flex:1;min-width:220px}
.pager{display:flex;gap:12px;align-items:center;margin:16px 0}
.howto ol{color:var(--muted)}

/* ---- 搜索框 / 紧凑卡片 / 上传进度 / 危险操作区 ---- */
.searchbar{display:flex;align-items:center;gap:8px;margin:14px 0;flex-wrap:wrap}
.searchbar svg{color:var(--muted);flex:none}
.searchbar input[type=search]{flex:1;min-width:180px;width:auto;margin-top:0;padding:8px 12px}
.searchbar .btn{margin-top:0;padding:8px 14px}
.btn.ghost{background:transparent;color:var(--muted);border:1px solid var(--line)}

/* 紧凑卡片：一行放得下名字/状态/侧别/modid，简介只留一行 */
.modlist.compact li{padding:10px 14px;margin:8px 0}
.modlist.compact .mname{font-size:15px}
.modlist.compact .summary{margin:4px 0 2px}
.one-line{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.modlist.removed li{opacity:.75;border-style:dashed}
.removed-head{margin-top:28px;padding-top:16px;border-top:1px solid var(--line);color:var(--danger)}

/* 上传进度条 */
.progress{margin:14px 0}
.progress-bar{height:8px;background:var(--panel2);border:1px solid var(--line);border-radius:99px;overflow:hidden}
.progress-bar span{display:block;height:100%;width:0;background:var(--accent);transition:width .15s ease}
.progress-text{color:var(--muted);font-size:13px;margin:6px 0 0}
.danger-zone{margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}

/* ---- 移动端适配 ---- */
@media (max-width:720px){
  body{font-size:14px}
  main{padding:0 12px 32px}
  h1{font-size:20px;margin:16px 0 6px}
  h2{font-size:17px}
  /* 导航改成上下两行。
     为什么必须这样：五个链接 + 品牌一行放不下时，导航会把**整页撑宽** ——
     表现是首页所有文字都被右边缘切掉，看着像内容写坏了，其实根源在导航。 */
  .nav{flex-direction:column;align-items:flex-start;gap:6px;padding:10px 12px}
  .nav .brand{width:100%;font-size:15px}
  .nav .links{width:100%;justify-content:flex-start;gap:12px;row-gap:6px;font-size:14px}
  .nav .cta{padding:3px 8px}
  .stats{gap:8px}
  .stat{flex:1 1 calc(50% - 8px);min-width:0;padding:10px 12px}
  .stat b{font-size:18px}
  .card{padding:12px;margin:10px 0}
  /* 表格在小屏上容易撑破布局：允许横向滚动 */
  .table{display:block;overflow-x:auto;white-space:nowrap}
  .table th,.table td{padding:6px 8px;font-size:13px}
  input,textarea,select{padding:10px;font-size:15px}
  .btn{padding:10px 14px;width:100%;text-align:center;box-sizing:border-box}
  .pager{flex-wrap:wrap}
  .pager .btn{width:auto}
  .searchbar input[type=search]{min-width:0;flex:1 1 100%}
  .searchbar .btn{width:auto}
  .reviewform{flex-direction:column;align-items:stretch}
  .reviewform input{min-width:0;width:100%}
  .secret{flex-direction:column;align-items:stretch}
  .secret code{font-size:20px;text-align:center;letter-spacing:2px}
  .row{gap:6px}
  .modlist li{padding:12px}
  .modlist.compact .summary{-webkit-line-clamp:2}
  .ident{word-break:break-all}
  footer{padding:12px}
}

/* ---- 整合包下载页：照 github.com/{repo}/releases 复刻（**暗色主题**）----
   版式照 GitHub（左侧 Release list + 每版一张卡 + 资产盒 + Compare），
   配色用 GitHub 暗色主题的真实值，这样跟本站暗色底子一致、不会"就这一块是白的"。
   作用域收在 .gh 里，站点其它页面不受影响。 */
.gh{
  --gh-canvas:transparent; --gh-card:#0d1117; --gh-fg:#e6edf3; --gh-muted:#8b949e;
  --gh-border:#30363d; --gh-border-muted:#21262d; --gh-subtle:#161b22;
  --gh-link:#4493f8; --gh-green:#3fb950; --gh-green-border:#238636;
  --gh-pill:rgba(110,118,129,.4);
  --gh-add:#3fb950; --gh-del:#f85149; --gh-mod:#d29922;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif;
  font-size:14px; line-height:1.5; color:var(--gh-fg);
  padding:8px 0 16px; margin:8px 0 0;
}
.gh h1{font-size:24px;font-weight:600;color:var(--gh-fg);margin:0 0 4px;line-height:1.25}
.gh h2{font-size:24px;font-weight:600;color:var(--gh-fg);margin:0;line-height:1.25}
.gh h3{font-size:16px;font-weight:600;color:var(--gh-fg);margin:24px 0 8px;
  padding-bottom:8px;border-bottom:1px solid var(--gh-border-muted)}
.gh a{color:var(--gh-link)}
.gh-pagehead{padding-bottom:16px;border-bottom:1px solid var(--gh-border);margin-bottom:24px}
.gh-pagesub{color:var(--gh-muted);font-size:14px;margin:0}
.gh-empty{padding:16px 0;color:var(--gh-muted)}
.gh-muted{color:var(--gh-muted)}

.gh-layout{display:flex;gap:24px;align-items:flex-start}
.gh-side{flex:0 0 200px;position:sticky;top:16px}
.gh-sidetitle{font-size:14px;font-weight:600;margin-bottom:8px}
.gh-sidelist{list-style:none;margin:0;padding:0}
.gh-sidelist li{margin:0}
.gh-sidelist a{display:block;padding:6px 10px;border-radius:6px;color:var(--gh-fg);font-size:14px}
.gh-sidelist a:hover{background:var(--gh-subtle);text-decoration:none}
.gh-sidelist li.active a{background:var(--gh-subtle);font-weight:600;box-shadow:inset 2px 0 0 var(--gh-link)}
.gh-pager{display:flex;flex-direction:column;gap:6px;margin-top:12px;padding-top:12px;
  border-top:1px solid var(--gh-border-muted);font-size:12px}
.gh-pager a{color:var(--gh-link)}
.gh-pager .gh-disabled{color:var(--gh-muted);opacity:.6}
.gh-main{flex:1;min-width:0}

.gh-card{border:1px solid var(--gh-border);border-radius:6px;background:var(--gh-card);
  padding:16px 24px 24px;margin-bottom:16px}
.gh-cardhead{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gh-latest{padding:0 7px;border:1px solid var(--gh-green-border);border-radius:2em;
  font-size:12px;font-weight:500;line-height:18px;color:var(--gh-green)}
.gh-btn{margin-left:auto;display:inline-flex;align-items:center;gap:4px;
  padding:5px 12px;font-size:12px;font-weight:500;color:var(--gh-fg);
  background:var(--gh-subtle);border:1px solid var(--gh-border);border-radius:6px}
.gh-btn:hover{background:#21262d;text-decoration:none}
.gh-relmeta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  color:var(--gh-muted);font-size:12px;margin:8px 0 0}
.gh-relmeta svg{color:var(--gh-muted);vertical-align:text-bottom}
.gh-dot{margin:0 4px}
.gh-body ul{margin:8px 0 0;padding-left:24px}
.gh-body li{margin:4px 0}
.gh-body code{background:rgba(110,118,129,.4);border-radius:6px;padding:.2em .4em;font-size:85%;
  font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace}

/* 本版变动清单：新增/下架/更新各用自己的颜色，一眼扫得出来 */
.gh-changes{list-style:none;margin:8px 0 0;padding:0}
.gh-changes li{display:flex;align-items:center;gap:8px;padding:3px 0}
.gh-add,.gh-del,.gh-mod{flex:none;font-size:11px;font-weight:600;border:1px solid currentColor;
  border-radius:2em;padding:0 8px;line-height:18px}
.gh-add{color:var(--gh-add)}
.gh-del{color:var(--gh-del)}
.gh-mod{color:var(--gh-mod)}
.gh-mname{color:var(--gh-fg);font-size:14px}
.gh-changes .gh-more{color:var(--gh-muted);padding-left:4px}

/* 随包附带 / 同版本另一次构建：默认折叠，玩家想追问"为什么"时点开 */
.gh-bundle{margin-top:16px;border:1px solid var(--gh-border);border-radius:6px;background:var(--gh-subtle)}
.gh-bundle>summary{cursor:pointer;padding:8px 12px;font-size:13px;color:var(--gh-fg);list-style:none}
.gh-bundle>summary::-webkit-details-marker{display:none}
.gh-bundle>summary::before{content:"▸ ";color:var(--gh-muted)}
.gh-bundle[open]>summary::before{content:"▾ "}
.gh-bundle>p{margin:0 12px 8px;font-size:12px;line-height:1.7}
.gh-modlist{list-style:none;margin:0;padding:0 12px 12px}
.gh-modlist li{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;padding:3px 0;
  border-top:1px solid var(--gh-border)}
.gh-modlist li:first-child{border-top:0}
.gh-modlist code.ident{font-size:12px;color:var(--gh-muted)}
.gh-modlist a{font-size:12px}

/* ---- 对比页 ---- */
.gh-cmpbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  padding:12px 16px;border:1px solid var(--gh-border);border-radius:6px;background:var(--gh-subtle)}
.gh-cmplabel{color:var(--gh-muted);font-size:12px}
/* 注意：站点全局有 `input,textarea,select{width:100%}`（表单竖排用的），
   这里必须显式改回 auto，否则两个下拉各占一整行、把对比条撑成竖的。 */
.gh-select{width:auto;flex:none;min-width:11em;margin-top:0;
  background:var(--gh-card);color:var(--gh-fg);border:1px solid var(--gh-border);
  border-radius:6px;padding:4px 8px;font-size:13px;
  font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace}
.gh-cmpbar button.gh-btn{cursor:pointer;font-family:inherit}
.gh-cmpspacer{flex:1}
.gh-tag{display:inline-flex;align-items:center;height:24px;padding:0 10px;
  border:1px solid var(--gh-border);border-radius:6px;background:var(--gh-card);
  font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;font-size:12px;
  color:var(--gh-fg);white-space:nowrap}
.gh-tag:hover{border-color:var(--gh-link);text-decoration:none}
.gh-cmpsum{display:flex;gap:20px;flex-wrap:wrap;color:var(--gh-fg);
  padding:12px 16px;margin:16px 0;border:1px solid var(--gh-border);border-radius:6px}
.gh-cmpsum b{font-weight:600}
.gh-filebox{border:1px solid var(--gh-border);border-radius:6px;overflow:hidden;margin:16px 0}
.gh-filehead{display:flex;align-items:center;gap:8px;padding:8px 16px;
  background:var(--gh-subtle);border-bottom:1px solid var(--gh-border);font-size:14px;font-weight:600}
.gh-filerow{display:flex;align-items:center;gap:10px;padding:8px 16px;border-top:1px solid var(--gh-border-muted)}
.gh-filerow:first-of-type{border-top:0}
.gh-filerow:hover{background:var(--gh-subtle)}
.gh-badge{flex:none;font-size:11px;font-weight:600;border:1px solid currentColor;border-radius:2em;
  padding:0 8px;line-height:18px;min-width:56px;text-align:center}
.gh-badge.gh-add{color:var(--gh-add)}
.gh-badge.gh-del{color:var(--gh-del)}
.gh-badge.gh-mod{color:var(--gh-mod)}
.gh-filerow-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.gh-filerow-id{flex:none;color:var(--gh-muted);font-size:12px;
  font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace}
.gh-filerow-src{flex:none;font-size:12px}

.gh-assets{margin-top:24px}
.gh-assets>summary{display:flex;align-items:center;gap:6px;cursor:pointer;list-style:none;
  font-size:16px;font-weight:600;color:var(--gh-fg);user-select:none}
.gh-assets>summary::-webkit-details-marker{display:none}
.gh-chev{color:var(--gh-muted);transition:transform .12s ease}
.gh-assets:not([open])>summary .gh-chev{transform:rotate(-90deg)}
.gh-count{background:var(--gh-pill);color:var(--gh-muted);border-radius:2em;
  font-size:12px;font-weight:500;padding:0 8px;line-height:20px}
.gh-box{margin-top:8px;border:1px solid var(--gh-border);border-radius:6px;overflow:hidden}
.gh-asset{display:flex;align-items:center;gap:8px;padding:8px 16px;color:var(--gh-fg);font-size:14px}
.gh-asset+.gh-asset{border-top:1px solid var(--gh-border-muted)}
.gh-asset:hover{background:var(--gh-subtle);text-decoration:none}
.gh-ico{flex:none;color:var(--gh-muted)}
.gh-asset:hover .gh-ico{color:var(--gh-link)}
.gh-fname{flex:1 1 auto;min-width:16em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gh-kind{flex:none;font-size:11px;color:var(--gh-muted);border:1px solid var(--gh-border);
  border-radius:2em;padding:0 8px;line-height:18px;margin-left:8px;vertical-align:1px}
/* GitHub 的资产行右侧还会带上 sha256 摘要与相对时间 */
.gh-hash{flex:0 1 auto;min-width:0;color:var(--gh-muted);font-size:12px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;
  font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace}
.gh-size{flex:none;color:var(--gh-muted);font-size:12px;font-variant-numeric:tabular-nums;min-width:64px;text-align:right}
.gh-ago{flex:none;color:var(--gh-muted);font-size:12px;min-width:76px;text-align:right}
.gh-sha{margin:12px 0 0;color:var(--gh-muted);font-size:12px}
.gh-sha code{font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
  font-size:11px;word-break:break-all}
@media (max-width:800px){
  .gh{padding:16px}
  /* 列方向时要显式 stretch：桌面段写的是 align-items:flex-start，
     竖过来之后它会让每张卡片按内容的"合适宽度"排，而不是撑满 ——
     窄屏上就表现为卡片比容器宽、整页横向溢出。 */
  .gh-layout{flex-direction:column;gap:16px;align-items:stretch}
  .gh-main{width:100%;max-width:100%}
  .gh-side{position:static;flex:none;width:100%}
  .gh-sidelist{display:flex;flex-wrap:wrap;gap:4px}
  .gh-card{padding:16px}
  .gh-kind{display:none}
  /* 窄屏必须把"最小内容宽度"压下来，否则整页会被撑宽：
     sha256 那一列是 nowrap 的七十多个字符，它的 min-content 就有 ~450px，
     加上文件名 16em 与尺寸/时间，整张卡片的最小宽度接近 950px —— 在手机上就是横向溢出。 */
  .gh h2{font-size:20px;word-break:break-all}
  .gh-hash{display:none}
  .gh-ago{display:none}
  .gh-fname{min-width:0}
  .gh-size{min-width:auto}
  .gh-cardhead{gap:6px}
  .gh-btn{margin-left:0}
  .gh-cmpbar{flex-direction:column;align-items:stretch}
  .gh-select{width:100%;min-width:0}
  .gh-cmpsum{flex-wrap:wrap;gap:10px}
  .gh-filerow{flex-wrap:wrap}
  .gh-filerow-name{white-space:normal}
}

/* ============ 文件管理（资源管理器样式） ============ */
.fm{display:flex;gap:14px;align-items:flex-start;margin:14px 0}
.fm-side{flex:0 0 232px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:10px}
.fm-sidetitle{font-size:12px;color:var(--muted);padding:4px 8px;letter-spacing:.5px}
.fm-root{display:flex;gap:9px;align-items:flex-start;padding:8px 9px;border-radius:8px;color:var(--fg);text-decoration:none}
.fm-root:hover{background:var(--panel2);text-decoration:none}
.fm-root.on{background:var(--panel2);box-shadow:inset 2px 0 0 var(--accent)}
.fm-root-ico{font-size:16px;line-height:1.3}
.fm-root-txt{display:flex;flex-direction:column;min-width:0}
.fm-root-txt b{font-size:14px;font-weight:600}
.fm-root-txt small{color:var(--muted);font-size:11.5px;word-break:break-all}
.fm-sidemeta{border-top:1px solid var(--line);margin-top:8px;padding-top:6px}
.fm-sidemeta p{margin:6px 8px;font-size:12.5px;line-height:1.5}
.fm-main{flex:1;min-width:0}
.fm-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:var(--panel);
  border:1px solid var(--line);border-radius:10px 10px 0 0;padding:8px 10px}
.fm-btn{display:inline-block;background:var(--panel2);border:1px solid var(--line);color:var(--fg);
  border-radius:7px;padding:6px 11px;font:inherit;font-size:13.5px;cursor:pointer;text-decoration:none}
.fm-btn:hover{filter:brightness(1.15);text-decoration:none}
.fm-sep{width:1px;height:20px;background:var(--line);margin:0 3px}
.fm-hint{color:var(--muted);font-size:12.5px}
.fm-crumbs{background:var(--panel);border:1px solid var(--line);border-top:0;padding:7px 12px;font-size:13.5px}
.fm-crumbs a{color:var(--accent);text-decoration:none}
.fm-crumbs a:hover{text-decoration:underline}
.fm-sepc{color:var(--muted);margin:0 4px}
.fm-drop{background:var(--panel);border:1px solid var(--line);border-top:0;border-radius:0 0 10px 10px;min-height:120px}
.fm-drop.over{border-color:var(--accent);box-shadow:inset 0 0 0 2px rgba(78,161,255,.35)}
.fm-list{width:100%;border-collapse:collapse}
.fm-list th{text-align:left;color:var(--muted);font-size:12.5px;font-weight:600;padding:7px 12px;border-bottom:1px solid var(--line)}
.fm-list td{padding:7px 12px;border-bottom:1px solid var(--line);font-size:14px;vertical-align:middle}
.fm-row:hover{background:var(--panel2)}
.fm-name a{color:var(--fg);text-decoration:none}
.fm-name a:hover{color:var(--accent);text-decoration:underline}
.fm-ico{margin-right:8px;font-size:15px}
.fm-c-size{width:96px}.fm-c-time{width:150px}.fm-c-act{width:auto;text-align:right}
.fm-acts{display:flex;gap:2px;justify-content:flex-end;flex-wrap:wrap}
.fm-a{background:none;border:0;color:var(--muted);cursor:pointer;font:inherit;font-size:12.5px;
  padding:3px 7px;border-radius:6px;text-decoration:none}
.fm-a:hover{background:var(--panel2);color:var(--accent)}
.fm-a-danger:hover{color:var(--danger)}
.fm-modname{display:block;color:var(--muted);font-size:12px;margin:2px 0 0 23px}
.fm-foot{font-size:12.5px;padding:0 12px 12px}

@media(max-width:820px){
  .fm{flex-direction:column}.fm-side{flex:1 1 auto;width:100%}
  .term-help{grid-template-columns:1fr}.fm-c-time{display:none}
}

/* ============ 终端（照命令提示符的样子） ============ */
.term{background:#0c0c0c;border:1px solid #2b2b2b;border-radius:6px;margin:14px 0;overflow:hidden;
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset}
.term-titlebar{display:flex;align-items:center;gap:0;background:#1f1f1f;border-bottom:1px solid #333;
  padding:0 6px;height:34px;font-size:12.5px;color:#cfcfcf}
.term-icon{color:#7bd88f;margin:0 8px 0 2px}
.term-tab{padding:6px 12px;cursor:pointer;border-bottom:2px solid transparent;color:#9a9a9a}
.term-tab:hover{color:#e6e6e6}
.term-tab.on{color:#fff;border-bottom-color:#3b8eea;background:#141414}
.term-host{margin-left:14px;color:#8a8a8a;font-family:ui-monospace,Consolas,monospace;font-size:11.5px}
.term-win{margin-left:auto;display:flex}
.term-winbtn{background:none;border:0;color:#9a9a9a;width:34px;height:34px;cursor:pointer;font-size:12px}
.term-winbtn:hover{background:#333;color:#fff}
.term-body{max-height:58vh;overflow:auto;padding:12px 14px;background:#0c0c0c;color:#dcdcdc;
  font:13.5px/1.55 ui-monospace,SFMono-Regular,Consolas,"Cascadia Mono",monospace}
.term-line{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;margin:2px 0}
.term-tip{margin:6px 0 10px;font-size:12px}
.term-prompt{color:#7bd88f;white-space:pre}
.term-prompt2{color:#7bd88f;white-space:pre;font-family:ui-monospace,Consolas,monospace;font-size:13px}
.term-cmd{color:#fff}
.term-when{color:#6f6f6f;font-size:11.5px;margin-left:auto}
.term-out{margin:2px 0 10px 16px;padding:6px 10px;background:#111;border-left:2px solid #333;
  color:#cfcfcf;white-space:pre-wrap;word-break:break-word;font:inherit}
.term-out.err{color:#ffb020;border-left-color:#ffb020}
.term-out.ok{color:#3ecf8e;border-left-color:#3ecf8e}
.term-form{display:flex;align-items:center;gap:8px;border-top:1px solid #333;background:#0c0c0c;padding:10px 14px}
.term-form input#termcmd{flex:1;background:transparent;border:0;color:#fff;outline:none;
  font:13.5px/1.5 ui-monospace,Consolas,monospace}
.term-form input#termcmd::placeholder{color:#5f5f5f}
.term-form button{background:#2b2b2b;color:#e6e6e6;border:1px solid #3d3d3d;border-radius:4px;
  padding:6px 16px;font:inherit;cursor:pointer}
.term-form button:hover{background:#3a3a3a}
.term-help{display:grid;grid-template-columns:1fr 1fr;gap:0;border-top:1px solid #333;background:#111}
.term-helpbox{padding:10px 14px;font-size:12.5px;color:#bfbfbf}
.term-helpbox + .term-helpbox{border-left:1px solid #333}
.term-helpbox b{color:#fff}
.term-helpbox p{margin:5px 0}
.term-helpbox code{background:#1c1c1c;border:1px solid #333;border-radius:3px;padding:0 5px;margin:0 2px 0 0;
  display:inline-block;color:#dcdcdc}
.fm-c-type{width:120px}
.fm-modtitle{color:var(--fg)}

/* ============ 清理一轮：按反馈做减法 ============ */
/* 全局 `input{width:100%;padding:9px 10px;background:var(--panel2)}` 会把复选框也撑成
   一个占满整行的大方块（页面上看就是"白框里一个勾"）。复选框/单选按钮必须单独复位。 */
input[type=checkbox],input[type=radio]{
  width:auto;height:auto;margin:0;padding:0;background:none;border:0;border-radius:0;
  accent-color:var(--accent);vertical-align:-2px;flex:none
}
/* 左侧栏已去掉：三个范围就在右侧列表里当文件夹显示，不再重复一遍 */
.fm{display:block}
.fm-side,.fm-sidetitle,.fm-root,.fm-root-ico,.fm-root-txt,.fm-sidemeta{display:none!important}
.fm-toolbar{border-radius:8px 8px 0 0}
.fm-crumbs{border-top:1px solid var(--line)}
.fm-admit{display:none}  /* 直通入库开关已从页面去掉（上传默认走直通） */
.fm-sub{display:block;color:var(--muted);font-size:11.5px;margin:1px 0 0 23px;word-break:break-all}
.note-ok{color:var(--ok);font-size:13.5px;margin:8px 0}
.note-err{color:var(--warn);font-size:13.5px;margin:8px 0}

/* 终端：只留"页签 + 输出 + 输入行"，去掉假窗口按钮/徽章/说明块 */
.term-titlebar,.term-icon,.term-host,.term-win,.term-winbtn,.term-tabs-old,
.term-badge,.term-tip,.term-help,.term-helpbox,.term-flash{display:none!important}
.term-tabs{display:flex;background:#161616;border-bottom:1px solid #2b2b2b;padding:0 4px}
.term-tab{padding:7px 14px;cursor:pointer;color:#9a9a9a;font-size:13px;
  border-bottom:2px solid transparent;user-select:none}
.term-tab:hover{color:#dcdcdc}
.term-tab.on{color:#fff;border-bottom-color:#3b8eea}
.term-body{max-height:62vh;overflow:auto;padding:10px 12px;background:#0c0c0c;color:#dcdcdc;
  font:13px/1.5 ui-monospace,SFMono-Regular,Consolas,"Cascadia Mono",monospace}
.term-line{display:block;margin:6px 0 0}
.term-prompt{color:#7bd88f;white-space:pre;margin-right:6px}
.term-cmd{color:#fff;white-space:pre-wrap;word-break:break-all}
.term-out{margin:0 0 2px;padding:0 0 0 2px;background:none;border:0;color:#c8c8c8;
  white-space:pre-wrap;word-break:break-word;font:inherit}
.term-out.err{color:#ff8a80}
.term-form{border-top:1px solid #2b2b2b;background:#0c0c0c;padding:8px 12px;display:flex;
  align-items:center;gap:6px}
.term-prompt2{color:#7bd88f;white-space:pre;font:13px ui-monospace,Consolas,monospace}
.term-more{margin:10px 0;font-size:12.5px;color:var(--muted)}
.term-more summary{cursor:pointer;color:var(--muted)}
.term-more p{margin:6px 0;line-height:1.7}
.term-more code{background:var(--panel2);border:1px solid var(--line);border-radius:3px;
  padding:0 4px;margin-right:3px;display:inline-block}
/* 文件页工具条里的搜索与排序 */
.fm-search{display:flex;align-items:center;gap:6px;margin:0 0 0 auto}
.fm-search input[name=q]{width:220px;margin:0;padding:6px 10px;font-size:13.5px;
  background:var(--panel2);border:1px solid var(--line);border-radius:7px;color:var(--fg)}
.fm-search input[name=q]::placeholder{color:#6b7383}
.fm-sortwrap select{width:auto;margin:0;padding:6px 10px;font-size:13.5px;
  background:var(--panel2);border:1px solid var(--line);border-radius:7px;color:var(--fg)}

/* ============ 超级管理员页面 · 移动端 ============ */
/* 根因先修掉：`.fm-a` 没有 nowrap，列一窄就变成"下/载/编/辑"一列竖字 —— 任何宽度都该 nowrap */
.fm-a{white-space:nowrap}
.fm-acts{flex-wrap:wrap}
.fm-name{word-break:break-all}

@media (max-width:820px){
  .fm-toolbar{flex-wrap:wrap;gap:6px;padding:8px}
  .fm-search{margin:0;flex:1 1 100%;order:9}
  .fm-search input[name=q]{width:100%;flex:1;min-width:0}
  .fm-sortwrap{flex:1 1 100%}
  .fm-sortwrap select{width:100%}
  .fm-sep{display:none}
  .fm-btn{flex:1 1 auto;text-align:center}
  .fm-crumbs{white-space:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch}
  /* 表格 → 卡片：一行一个文件，操作按钮在底下排一行 */
  .fm-list thead{display:none}
  .fm-list,.fm-list tbody,.fm-list tr,.fm-list td{display:block;width:auto}
  .fm-list td{border:0;padding:0}
  .fm-row{border-bottom:1px solid var(--line);padding:10px 12px}
  .fm-row:last-child{border-bottom:0}
  .fm-name{font-size:15px}
  .fm-c-type,.fm-c-time{display:none}
  .fm-c-size{color:var(--muted);font-size:12.5px;margin-top:2px}
  .fm-c-act .fm-acts{justify-content:flex-start;margin-top:8px;gap:6px}
  .fm-c-act .fm-a{border:1px solid var(--line);border-radius:6px;padding:5px 10px;font-size:13px}
  .fm-sub{margin-left:23px}
  /* 终端：字小一点，提示符与输入框别把按钮挤出去 */
  .term-body{font-size:12.5px;max-height:60vh;padding:8px 10px}
  .term-form{padding:8px 10px;gap:5px}
  .term-form input#termcmd{font-size:13px;min-width:0}
  .term-prompt2{font-size:12px}
  .term-form button{padding:6px 12px}
}

@media (max-width:480px){
  .fm-name{font-size:14.5px}
  .fm-c-act .fm-a{font-size:12.5px;padding:5px 8px}
  .term-body{font-size:12px}
}

/* 文件管理：多选列与批量操作栏 */
.fm-c-pick{width:34px}
.fm-c-pick input{width:15px;height:15px;cursor:pointer;margin:0}
.fm-batchbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin:0 0 10px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;
  background:rgba(255,255,255,.03)}
.fm-batchbar b{color:var(--fg)}
.fm-batchbar .muted{font-size:12px}
