/* desktop.css — 桌面与图标（Win10：白字黑影、半透明主题色选中、直角） */
#desktop { position: fixed; inset: 0 0 var(--taskbar-h, 40px) 0; z-index: 1; overflow: hidden; }
#desktop.drop-hint::after {
  content: '松开鼠标，上传到桌面';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 300; color: #fff;
  background: rgba(0, 90, 180, .35);
  border: 3px dashed rgba(255, 255, 255, .7);
  pointer-events: none;
}
#desktop.drop-hint.drop-move::after {
  content: '松开鼠标，移动到桌面（Ctrl=复制）';
}
.desk-icon {
  position: absolute;
  display: flex; flex-direction: column; align-items: center;
  padding: 5px 2px 3px;
  border: 1px solid transparent; border-radius: 0;
  cursor: default; outline: none;
  touch-action: none;
}
.desk-icon:hover, .desk-icon:focus { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.desk-icon.sel { background: rgba(var(--accent-rgb), .3); border: 1px solid rgba(255, 255, 255, .65); }
.desk-icon.drag-src { opacity: .35; }
.di-img { position: relative; display: flex; align-items: center; justify-content: center; color: #fff; }
.di-arrow {
  position: absolute; left: -3px; bottom: -3px; color: #fff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .55));
  display: flex;
}
.di-label {
  margin-top: 4px; max-width: 100%;
  font-size: 12px; line-height: 1.25; color: #fff; text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 5px rgba(0, 0, 0, .55);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  word-break: break-all; padding: 0 2px;
}
.desk-icon.sel .di-label { -webkit-line-clamp: 10; }
.di-tile {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; border-radius: 2px; color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
/* 复杂应用图标（PNG）：无色块底，加投影保证在壁纸上可读 */
.di-appimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.di-appimg .os-appicon, .di-folder .os-appicon { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
/* 桌面文件预览图与高清文件图标（与文件管理器共用 .os-th / OS.fileItemIcon 渲染） */
#desktop .di-img > span:has(> .os-th) { display: flex; width: 100%; height: 100%; }
#desktop .di-img .os-th { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
#desktop .di-img .os-appicon { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
.di-rename {
  width: 110%; margin-top: 4px; font-size: 12px; text-align: center;
  border: 1px solid var(--accent); border-radius: 0; outline: none;
  background: #fff; color: #000; padding: 1px 3px;
}
.cell-hl {
  position: absolute; z-index: 5; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .14); border-radius: 0;
}
.desk-rubber {
  position: absolute; z-index: 6; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(var(--accent-rgb), .25);
}
.drag-ghost { position: fixed !important; z-index: 9999; opacity: .78; pointer-events: none; }

/* 文件图标颜色统一走 base.css 的 --fico-* 调色板；应用色块磁贴内图标保持白色 */
#desktop .di-tile .os-icon { color: #fff; }
.di-arrow .os-icon { color: #fff; }
