/* ============================================================
   腾讯微云 · 文件中心面板
   ⚠ 与网页版设计系统同底：#F4F6F9 / #2563EB / #0E9E9E / #7B25ED
   ⚠ [hidden] 必须显式覆盖：display:flex/grid 会盖掉 UA 的 [hidden]{display:none}
   1112A：卡片网格 → 表格式列表 + 多选批量条 + 上传/新建主按钮
   ============================================================ */

.wy-toolbar{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding:11px 14px;margin-bottom:12px;
  background:var(--surface);border:1px solid var(--line);
  border-radius:14px;box-shadow:0 2px 10px rgba(16,24,40,.04);
}
.wy-toolbar .grow{flex:1 1 auto}
.wy-mains{display:flex;align-items:center;gap:8px}
.wy-main{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  height:34px;padding:0 16px;border:1px solid var(--line);border-radius:9px;
  background:var(--surface-2);color:var(--text);font-size:12.5px;font-weight:600;
  font-family:inherit;text-decoration:none;cursor:pointer;white-space:nowrap;
  transition:transform .12s,box-shadow .12s;
}
.wy-main svg{width:15px;height:15px;flex:0 0 15px}
.wy-main:hover{transform:translateY(-1px)}
.wy-main.primary{background:#2B6CF6;border-color:#2B6CF6;color:#fff;box-shadow:0 3px 10px rgba(43,108,246,.22)}
.wy-search{
  display:flex;align-items:center;height:36px;padding:0 4px 0 10px;
  background:var(--surface-2);border:1px solid var(--line);border-radius:10px;
  transition:border-color .16s,box-shadow .16s;
}
.wy-search:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px rgba(37,99,235,.10)}
.wy-search-ic{display:flex;flex:0 0 16px;width:16px;height:16px;color:var(--text-3)}
.wy-search-ic svg{width:16px;height:16px}
.wy-search .input{
  height:34px;width:220px;border:none;background:transparent;box-shadow:none;
  padding:0 8px;font-size:12.5px;
}
.wy-search .input:focus{outline:none;border:none;box-shadow:none}
.wy-search .btn.sm{margin-left:4px;height:28px;padding:0 12px;border-radius:8px;white-space:nowrap}
.wy-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.wy-tools .btn.sm{height:28px;padding:0 12px;border-radius:8px;font-size:11.5px}
.wy-brand{font-size:11.5px;color:var(--text-3);white-space:nowrap}

/* ---------- 批量操作条 + 更多菜单（1112A） ---------- */
.wy-bulkbar{
  display:flex;align-items:center;gap:12px;position:relative;
  padding:8px 12px;margin-bottom:10px;
  background:rgba(37,99,235,.055);border:1px solid rgba(37,99,235,.18);border-radius:11px;
}
.wy-bulkbar[hidden]{display:none}
.wy-bulk-n{font-size:12px;color:var(--text-2);white-space:nowrap}
.wy-bulk-n b{color:var(--brand);font-size:13px}
.wy-bulk-clear{
  border:none;background:transparent;color:var(--brand);font-size:11.5px;
  cursor:pointer;margin-left:10px;padding:2px 4px;font-family:inherit;
}
.wy-bulk-ops{margin-left:auto;display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--surface)}
.wy-bulk-btn{
  border:none;border-right:1px solid var(--line);background:var(--surface);
  color:var(--text-2);font-size:12px;height:30px;padding:0 16px;
  cursor:pointer;white-space:nowrap;font-family:inherit;
}
.wy-bulk-btn:last-child{border-right:none}
.wy-bulk-btn:hover:not([disabled]){background:var(--brand-soft);color:var(--brand)}
.wy-bulk-btn.on{background:var(--brand-soft);color:var(--brand)}
.wy-bulk-btn.danger:hover{background:#FEF3F2;color:#D92D20}
.wy-menu{
  position:absolute;right:12px;top:42px;z-index:60;min-width:172px;
  background:var(--surface);border:1px solid var(--line);border-radius:10px;
  box-shadow:0 12px 32px rgba(16,24,40,.16);padding:6px;
}
.wy-menu[hidden]{display:none}
.wy-menu-i{
  display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;
  border:none;background:transparent;padding:8px 10px;border-radius:7px;
  font-size:12px;color:var(--text);text-align:left;cursor:pointer;font-family:inherit;
}
.wy-menu-i:hover:not([disabled]){background:var(--surface-2)}
.wy-menu-i.is-off{opacity:.48;cursor:not-allowed}
.wy-menu-tag{font-size:10px;color:var(--text-3);white-space:nowrap}
.wy-bulk-out{
  margin:-2px 0 10px;padding:10px 12px;
  background:var(--surface);border:1px solid var(--line);border-radius:11px;
}
.wy-bulk-out[hidden]{display:none}
.wy-bulk-out-h{display:flex;align-items:center;justify-content:space-between;font-size:11.5px;color:var(--text-2);font-weight:600;margin-bottom:8px}
.wy-bulk-out .wy-out-row{margin-bottom:6px}
.wy-bulk-out .hint{margin-top:6px;font-size:11px;color:var(--text-3)}

/* ---------- 面包屑 ---------- */
.wy-crumbs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 2px 12px;font-size:12px}
/* 1117K：根目录整行隐藏。display:flex 会盖过 UA 的 [hidden]，必须显式声明 */
.wy-crumbs[hidden]{display:none}
.wy-crumb{
  border:none;background:transparent;padding:3px 7px;border-radius:7px;
  color:var(--brand);cursor:pointer;font-size:12px;
}
.wy-crumb:hover{background:var(--brand-soft)}
.wy-crumb-back{font-weight:600;background:var(--brand-soft)}
.wy-sep{color:var(--text-3);opacity:.6}
.wy-crumb-cur{color:var(--text-2);font-weight:600;padding:3px 7px}

/* ---------- 表格式列表（1112A） ---------- */
.wy-list{min-height:120px}
.wy-hint{
  padding:22px 16px;text-align:center;color:var(--text-3);font-size:12.5px;
  background:var(--surface);border:1px dashed var(--line);border-radius:12px;
}
.wy-hint-link{
  border:none;background:transparent;color:var(--brand);font-weight:600;
  cursor:pointer;padding:0 2px;font-size:12.5px;text-decoration:underline;
}
.wy-err{
  padding:14px 16px;border-radius:10px;background:#FEF3F2;color:#B42318;
  border:1px solid #FECDCA;font-size:12.5px;
}
.wy-empty{padding:34px 16px;text-align:center;color:var(--text-3);font-size:12.5px}
.wy-status{margin-top:10px;font-size:11.5px;color:var(--text-3);text-align:right}

.wy-grid{
  background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;
}
.wy-thead,.wy-row{
  display:grid;grid-template-columns:44px minmax(0,1fr) 190px 110px;align-items:center;
}
.wy-thead{
  height:38px;background:var(--surface-2);border-bottom:1px solid var(--line);
  font-size:11.5px;color:var(--text-3);
}
.wy-th-size{text-align:right;padding-right:18px}
.wy-row{
  height:84px;border-bottom:1px solid var(--line);cursor:pointer;
  transition:background .12s;
}
.wy-row:last-child{border-bottom:none}
.wy-row:hover{background:var(--surface-2)}
.wy-row.is-sel{background:rgba(37,99,235,.075)}
.wy-row.is-dir{background:transparent}
.wy-row.is-dir:hover{background:var(--surface-2)}
.wy-row.is-dir.is-sel{background:rgba(37,99,235,.075)}
.wy-chk{
  position:relative;display:flex;align-items:center;justify-content:center;
  width:16px;height:16px;margin-left:14px;cursor:pointer;
}
.wy-chk input{
  position:absolute;inset:0;width:100%;height:100%;margin:0;
  opacity:0;cursor:pointer;z-index:2;
}
.wy-chk span{
  display:block;position:relative;width:15px;height:15px;box-sizing:border-box;
  border:1.5px solid #C7D0DD;border-radius:3px;background:#fff;
}
.wy-chk input:checked + span{background:var(--brand);border-color:var(--brand)}
.wy-chk input:checked + span::after{
  content:'';position:absolute;left:4px;top:1px;width:4px;height:8px;
  border:solid #fff;border-width:0 2px 2px 0;transform:rotate(42deg);
}
.wy-chk input:indeterminate + span{background:var(--brand);border-color:var(--brand)}
.wy-chk input:indeterminate + span::after{
  content:'';position:absolute;left:3px;top:6px;width:7px;height:2px;background:#fff;
}
.wy-cell-name{display:flex;align-items:center;gap:10px;min-width:0;padding-right:12px}
.wy-row-name{
  font-size:12.5px;color:var(--text);font-weight:500;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.wy-row-ic{
  flex:0 0 66px;width:66px;height:66px;display:flex;align-items:center;justify-content:center;
  border-radius:9px;overflow:hidden;cursor:pointer;
}
.wy-row-ic svg{width:66px;height:66px}
.wy-thumb{
  display:block;width:66px;height:66px;object-fit:cover;border-radius:8px;
  background:var(--surface-2);
}
.wy-row-ic.is-img{background:var(--surface-2)}
.wy-ic{
  display:inline-flex;align-items:center;justify-content:center;
  width:66px;height:66px;border-radius:9px;font-size:18px;font-weight:800;letter-spacing:-.2px;
}
.wy-row-name[data-wy-open]{cursor:pointer}
.wy-row-name[data-wy-open]:hover{color:var(--brand);text-decoration:underline}
.wy-cell-time{font-size:11.5px;color:var(--text-3)}
.wy-cell-size{font-size:11.5px;color:var(--text-3);text-align:right;padding-right:18px}
.wy-foot{padding:10px 0 2px;text-align:center;font-size:11.5px;color:var(--text-3)}

/* ---------- 展示分页 ---------- */
.wy-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:10px}
.wy-pager-info{font-size:11.5px;color:var(--text-3);margin-right:6px}
.wy-pager-go{
  height:26px;padding:0 11px;border:1px solid var(--line);border-radius:7px;
  background:var(--surface);color:var(--text-2);font-size:11.5px;cursor:pointer;
}
.wy-pager-go:hover:not([disabled]){border-color:var(--brand);color:var(--brand)}
.wy-pager-go[disabled]{opacity:.45;cursor:default}

/* ---------- 文件操作面板 / 移动到 ---------- */
.wy-modal{
  position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;
  background:rgba(15,23,42,.42);padding:20px;
}
/* ⚠ 必须显式覆盖，否则 display:flex 会让 hidden 失效（1107C 同款坑） */
.wy-modal[hidden]{display:none}
.wy-modal-box{
  width:min(520px,100%);max-height:82vh;overflow:auto;
  background:var(--surface);border-radius:16px;padding:18px 20px;
  box-shadow:0 18px 50px rgba(16,24,40,.22);
}
.wy-modal-h{display:flex;align-items:center;gap:10px}
.wy-modal-h h3{margin:0;font-size:15px;font-weight:700;color:var(--text);word-break:break-all;flex:1 1 auto}
.wy-modal-x{
  border:none;background:transparent;color:var(--text-3);font-size:22px;
  line-height:1;cursor:pointer;padding:0 4px;
}
.wy-modal-x:hover{color:var(--text)}
.wy-modal-sub{margin-top:6px;font-size:11.5px;color:var(--text-3)}
.wy-modal-tip{
  margin-top:12px;padding:9px 11px;border-radius:9px;
  background:var(--surface-2);color:var(--text-2);font-size:11.5px;line-height:1.6;
}
.wy-modal-ops{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.wy-modal-ops .btn{height:32px;padding:0 13px;font-size:12px;text-decoration:none;display:inline-flex;align-items:center}
.wy-modal-ops-sub{margin-top:10px;padding-top:9px;border-top:1px solid var(--line);align-items:center;gap:14px}
.wy-modal-ops-sub .wy-link{font-size:11.5px;padding:4px 6px}
.wy-modal-out{margin-top:12px}
.wy-out-row{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);
}
.wy-out-k{font-size:11px;color:var(--text-3);flex:0 0 auto}
.wy-out-v{
  font-size:11.5px;color:var(--brand);word-break:break-all;flex:1 1 160px;
  text-decoration:none;
}
.wy-out-v:hover{text-decoration:underline}
.wy-modal-out .hint{margin-top:7px;font-size:11px;color:var(--text-3)}
.wy-move-list{margin-top:12px;max-height:46vh;overflow:auto;display:flex;flex-direction:column;gap:4px}
.wy-move-i{
  display:flex;align-items:center;gap:10px;width:100%;
  border:1px solid var(--line);background:var(--surface);border-radius:9px;
  padding:9px 11px;font-size:12.5px;color:var(--text);
  text-align:left;cursor:pointer;font-family:inherit;
}
.wy-move-i:hover{border-color:var(--brand);background:var(--brand-soft)}
.wy-move-i svg{width:20px;height:20px;flex:0 0 20px}
.wy-link{
  border:none;background:transparent;color:var(--brand);font-size:11px;
  padding:3px 5px;border-radius:5px;cursor:pointer;white-space:nowrap;
}
.wy-link:hover{background:var(--brand-soft)}
.wy-link.danger{color:#D92D20}
.wy-link.danger:hover{background:#FEF3F2}

/* ---------- 1112C：大图预览 ---------- */
.wy-preview{position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center}
.wy-preview[hidden]{display:none}
.wy-pv-mask{position:absolute;inset:0;background:rgba(15,23,42,.62)}
.wy-pv-box{
  position:relative;z-index:1;max-width:min(92vw,1000px);max-height:90vh;
  display:flex;flex-direction:column;background:var(--surface);
  border:1px solid var(--line);border-radius:14px;overflow:hidden;
}
.wy-pv-h{
  display:flex;align-items:center;gap:14px;padding:12px 16px;
  border-bottom:1px solid var(--line);font-size:13px;font-weight:600;
}
.wy-pv-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wy-pv-x{
  margin-left:auto;border:0;background:transparent;color:var(--text-3);
  font-size:22px;line-height:1;cursor:pointer;padding:2px 6px;
}
.wy-pv-x:hover{color:var(--text)}
.wy-pv-img-wrap{
  flex:1;min-height:0;display:flex;align-items:center;justify-content:center;
  background:var(--surface-2);padding:14px;
}
.wy-pv-img{max-width:100%;max-height:70vh;object-fit:contain;display:block}
.wy-pv-foot{
  display:flex;align-items:center;gap:12px;padding:10px 16px;
  font-size:11.5px;color:var(--text-3);border-top:1px solid var(--line);
}
.wy-pv-ops{margin-left:auto}

/* ---------- 移动端 ---------- */
@media (max-width:900px){
  .wy-thead,.wy-row{grid-template-columns:40px minmax(0,1fr) 150px 92px}
  .wy-brand{display:none}
  .wy-row{height:72px}
  .wy-row-ic{flex:0 0 52px;width:52px;height:52px}
  .wy-row-ic svg,.wy-thumb,.wy-ic{width:52px;height:52px}
}
@media (max-width:560px){
  .wy-toolbar{gap:8px;padding:10px}
  .wy-search{width:100%}
  .wy-search .input{width:100%;flex:1 1 auto}
  .wy-thead,.wy-row{grid-template-columns:36px minmax(0,1fr) 84px}
  .wy-row{height:64px}
  .wy-row-ic{flex:0 0 46px;width:46px;height:46px}
  .wy-row-ic svg,.wy-thumb,.wy-ic{width:46px;height:46px}
  .wy-th-time,.wy-cell-time{display:none}
  .wy-th-size,.wy-cell-size{padding-right:12px}
  .wy-mains{width:100%}
  .wy-bulkbar{flex-wrap:wrap}
  .wy-bulk-ops{margin-left:0;width:100%;overflow-x:auto}
  .wy-menu{right:8px}
  .wy-modal{padding:12px}
  .wy-modal-box{padding:15px}
}
