:root{--ink:#1d1d1f;--muted:#86868b;--line:rgba(0,0,0,.06);--blue:#0071e3;--red:#d70015;
  --font:"SF Pro Text",-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;--mono:"SF Mono",ui-monospace,Menlo,monospace}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:var(--font);background:#f5f5f7;color:var(--ink);-webkit-font-smoothing:antialiased;letter-spacing:-.005em}
[hidden]{display:none!important}
button{font:inherit;cursor:pointer}
.brand{display:flex;align-items:center;gap:10px}
.brand i{width:30px;height:30px;border-radius:9px;background:linear-gradient(160deg,#ffa149,#ff6b1f);display:grid;place-items:center;color:#fff;font:700 10px var(--font);font-style:normal}
.brand b{font-size:15px;font-weight:600}.brand small{font-size:12px;color:var(--muted);padding:2px 8px;border-radius:6px;background:rgba(0,0,0,.05)}
.btn{height:34px;padding:0 14px;border:0;border-radius:9px;font-weight:600;font-size:13px}
.btn.p{background:var(--blue);color:#fff}.btn.g{background:rgba(0,0,0,.05);color:var(--ink)}.btn.d{background:rgba(229,72,77,.09);color:var(--red)}.btn.dd{background:#e5484d;color:#fff}
.btn.sm{height:32px;padding:0 12px}.btn.wide{width:100%;height:42px;font-size:14px}
.btn:disabled{opacity:.5;cursor:default}
.link{border:0;background:none;color:var(--blue);font-size:13px;font-weight:500;padding:0}
.fld{display:flex;flex-direction:column;gap:7px;font-size:12.5px;font-weight:500;color:#6e6e73}
.fld input,.fld textarea,.link-form input{border:1px solid #d2d2d7;border-radius:10px;padding:10px 12px;font:400 14.5px var(--font);color:var(--ink);outline:0;background:#fff}
.fld input:focus,.fld textarea:focus,.link-form input:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(0,113,227,.12)}
.msg{margin:0;min-height:0;font-size:13px;color:var(--red)}.msg:empty{display:none}.msg.ok{color:#248a3d}
.muted{font-size:12px;color:var(--muted)}

/* 登录 */
.login{min-height:100%;display:grid;place-items:center;padding:24px}
.login-card{width:380px;background:#fff;border-radius:22px;padding:32px;box-shadow:0 8px 40px rgba(0,0,0,.08);display:flex;flex-direction:column;gap:16px}
.login-card .brand{margin-bottom:6px}
.captcha{display:flex;align-items:center;gap:12px}.captcha img{border-radius:10px;background:#f2f2f7;width:220px;height:78px}

/* 主界面 */
.app{height:100%;display:grid;grid-template-rows:56px 1fr}
.top{display:flex;align-items:center;gap:16px;padding:0 24px;background:rgba(255,255,255,.9);border-bottom:1px solid var(--line)}
.top-link{margin-left:auto;font-size:13px;color:var(--muted);text-decoration:none}.top-link:hover{color:var(--blue)}
.body{display:grid;grid-template-columns:340px 1fr;min-height:0}
.pane{display:flex;flex-direction:column;min-height:0;background:#fff;border-right:1px solid var(--line)}
.pane-head{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 10px}
.pane-head h2{margin:0;font-size:20px;font-weight:700;letter-spacing:-.025em}
.pane-head h2 span{font-size:13px;font-weight:500;color:var(--muted);margin-left:6px;letter-spacing:0}
.psearch{margin:0 18px 10px;height:34px;border:0;border-radius:9px;background:rgba(0,0,0,.05);padding:0 12px;font:400 13px var(--font);outline:0}
.psearch:focus{background:#fff;box-shadow:0 0 0 2px var(--blue)}
.items{flex:1;overflow:auto;padding:0 10px 10px}
.it{position:relative;display:block;width:100%;text-align:left;border:0;background:none;padding:11px 12px;border-radius:10px}
.it b{display:block;font-size:13.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:56px}
.it small{font:500 11.5px var(--mono);color:var(--muted)}
.it:hover{background:rgba(0,0,0,.035)}
.it.sel{background:var(--blue)}.it.sel b,.it.sel small{color:#fff}
.it .ops{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:none;gap:2px}
.it:hover .ops,.it.sel .ops{display:flex}
.it .ops span{width:26px;height:26px;display:grid;place-items:center;border-radius:7px;font-size:13px;color:#6e6e73}
.it .ops span:hover{background:rgba(0,0,0,.07)}
.it.sel .ops span{color:#fff}.it.sel .ops span:hover{background:rgba(255,255,255,.2)}
.nores{padding:24px 12px;text-align:center;font-size:13px;color:var(--muted)}
.editor{overflow:auto;padding:28px 40px 40px}
.empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--muted);font-size:13px}.empty b{font-size:15px;color:var(--ink);font-weight:600}
.ed-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.ed-head h3{margin:0;font-size:22px;font-weight:700;letter-spacing:-.025em}
.acts{margin-left:auto;display:flex;gap:8px}
#form-msg{margin-bottom:12px}
.box{background:#fff;border-radius:16px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 0 0 .5px rgba(0,0,0,.05);padding:22px 24px;margin-bottom:16px}
.box h4{margin:0 0 14px;font-size:13px;font-weight:600;color:#6e6e73}
.grid2{display:grid;grid-template-columns:1fr 200px;gap:14px}
.fld textarea{min-height:260px;line-height:1.75;resize:vertical}
.ups{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.up{display:flex;align-items:center;gap:12px;padding:14px;border:1px dashed #c7c7cc;border-radius:12px;background:none;text-align:left;color:var(--ink);transition:all .15s}
.up:hover{border-color:var(--blue);background:rgba(0,113,227,.04)}
.up:disabled{opacity:.5;cursor:default}
.up i{flex:none;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;font-style:normal;font-size:16px;background:#f2f2f7}
.up b{display:block;font-size:13.5px;font-weight:600}.up small{font-size:11.5px;color:var(--muted)}
.link-form{display:grid;grid-template-columns:1fr 1.6fr 140px auto;gap:8px;margin-top:12px}
.link-form input{padding:8px 10px;font-size:13.5px}
.flist{margin-top:14px;display:flex;flex-direction:column;gap:8px}.flist:empty{display:none}
.fi{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:11px;background:#f5f5f7;font-size:13px}
.ext{flex:none;width:34px;height:34px;border-radius:8px;display:grid;place-items:center;font:700 10px var(--font);background:#eef0ff;color:#4f5dff}
.ext.pdf{background:#fff0f0;color:#e5484d}.ext.zip{background:#fff6e5;color:#c27a00}.ext.video{background:#ecf9f4;color:#12a37f}
.fi .nm{flex:1;min-width:0;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fi em{font-style:normal;color:var(--muted);font:500 12px var(--mono)}
.prog{width:140px;height:4px;border-radius:2px;background:#e5e5ea;overflow:hidden}.prog i{display:block;height:100%;width:0;background:var(--blue);transition:width .2s}
.x{width:26px;height:26px;border:0;background:none;border-radius:7px;color:var(--muted)}.x:hover{background:rgba(0,0,0,.06);color:var(--red)}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.28);backdrop-filter:blur(3px);display:grid;place-items:center;z-index:9}
.dlg{width:380px;background:#fff;border-radius:18px;padding:24px;box-shadow:0 30px 80px rgba(0,0,0,.25);text-align:center}
.dlg-ic{width:48px;height:48px;margin:0 auto 12px;border-radius:50%;background:rgba(229,72,77,.1);display:grid;place-items:center;font-size:20px}
.dlg b{font-size:16px}.dlg p{margin:8px 0 20px;font-size:13px;color:#6e6e73;line-height:1.6}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}.row2 .btn{height:38px}
@media (max-width:820px){.body{grid-template-columns:1fr}.pane{max-height:40vh}.editor{padding:20px}.grid2,.ups,.link-form{grid-template-columns:1fr}}
