/* 磁盘清理页（views/disk.js）。颜色只用 style.css 的变量，深浅色主题都跟着走。 */
.dk-page { max-width: 1000px; padding-bottom: 88px; }
.dk-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dk-head b { font-size: 15px; }
.dk-path { overflow-wrap: anywhere; word-break: break-all; }
.ok-txt { color: var(--ok); }

/* ───────── 扫描卡：雷达 + 一句结论 + 按钮 ───────── */
.dk-scan { display: flex; align-items: center; gap: 16px; }
.dk-scan-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dk-scan-main > b { font-size: 20px; }
.dk-scan .btn.primary { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.dk-radar { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); overflow: hidden; }
.dk-radar > .icon { position: relative; z-index: 1; }
.dk-radar-sweep { position: absolute; inset: 0; border-radius: 50%; opacity: 0;
  background: conic-gradient(from 0deg, transparent 0 70%, var(--accent) 100%); }
.dk-scan.running .dk-radar-sweep { opacity: .45; animation: dk-spin 1.6s linear infinite; }
@keyframes dk-spin { to { transform: rotate(360deg); } }
.dk-prog { height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; margin-top: 4px; }
.dk-prog-fill { height: 100%; background: var(--accent); transition: width .4s; }
@media (max-width: 560px) {
  .dk-scan { flex-wrap: wrap; }
  .dk-scan .btn.primary { width: 100%; justify-content: center; }
}

.dk-lastclean.has-fail { border-left: 3px solid var(--warn); }

/* ───────── 各盘空间 ───────── */
.dk-drive { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.dk-drive:first-of-type { border-top: 0; }
.dk-letter { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 700;
  background: var(--panel-2); }
.dk-bar-wrap { flex: 1; min-width: 0; }
.dk-bar { height: 10px; border-radius: 5px; background: var(--panel-2); overflow: hidden; }
.dk-bar-fill { height: 100%; background: var(--ok); border-radius: 5px; }
.dk-drive.lv-warn .dk-bar-fill { background: var(--warn); }
.dk-drive.lv-bad .dk-bar-fill { background: var(--bad); }
.dk-drive.lv-bad .dk-letter { background: var(--bad-soft); color: var(--bad); }
.dk-drive-txt { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.dk-drive .btn { flex: none; }

/* ───────── 分类列表 ───────── */
.dk-group { border-top: 1px solid var(--line); }
.dk-group:first-of-type { border-top: 0; }
.dk-group-head { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; min-height: 44px; }
.dk-group-head input, .dk-item input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.dk-cb-pad { flex: none; width: 20px; }
.dk-group-name { flex: 1; min-width: 0; }
.dk-group-size { flex: none; text-align: right; }
.dk-chev { flex: none; color: var(--muted); font-size: 20px; transition: transform .15s; width: 14px; text-align: center; }
.dk-chev.open { transform: rotate(90deg); }
.dk-items { padding: 0 0 8px 30px; }
.dk-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); cursor: pointer; }
.dk-item-name { flex: 1; min-width: 0; }
.dk-item-label { overflow-wrap: anywhere; }
.dk-item-size { flex: none; min-width: 64px; text-align: right; }
.dk-risk { flex: none; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.dk-risk.risk-safe { background: var(--ok-soft); color: var(--ok); }
.dk-risk.risk-review { background: var(--warn-soft); color: var(--warn); }
.dk-more { padding: 6px 0; }
@media (max-width: 560px) {
  .dk-items { padding-left: 0; }
  .dk-item { flex-wrap: wrap; }
  .dk-item-name { flex-basis: calc(100% - 30px); }
  .dk-risk { margin-left: 30px; }
  .dk-item-size { margin-left: auto; }
}

/* ───────── 大文件夹 ───────── */
.dk-big-root { padding: 8px 0; border-top: 1px solid var(--line); }
.dk-big-root:first-of-type { border-top: 0; }
.dk-big-row { position: relative; display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px calc(6px + (var(--lv, 1) - 1) * 14px);
  font-size: 13px; border-radius: 6px; overflow: hidden; }
.dk-big-row > * { position: relative; }
.dk-big-row .dk-path { flex: 1; min-width: 0; }
.dk-big-row b { flex: none; }
.dk-big-bar { position: absolute !important; left: 0; top: 0; bottom: 0; background: var(--accent-soft); opacity: .7; }
.dk-tag { flex: none; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.dk-sub { margin: 8px 0 2px; }
@media (max-width: 560px) { .dk-tag { display: none; } }

/* ───────── 底部操作条 ───────── */
.dk-actionbar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding: 10px 14px; border-radius: var(--radius, 12px); background: var(--panel); box-shadow: var(--shadow-card, var(--shadow));
  border: 1px solid var(--line); }
.dk-actionbar .btn { flex: none; min-width: 110px; }
