/* ===================== Windows 10 风格面板 ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #0078d4;
  --accent-lt: #4cc2ff;
  --taskbar: rgba(23, 23, 23, .92);
  --win-gray: #f0f0f0;
  --border: #d6d6d6;
  --text: #1a1a1a;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
}

html, body {
  height: 100%; overflow: hidden;
  font-family: "Segoe UI", "Segoe UI Variable", -apple-system, BlinkMacSystemFont,
               "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 12px; color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  user-select: none; -webkit-user-select: none;
  background: #0a1626;
}

input, button, textarea { font-family: inherit; font-size: inherit; outline: none; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #f2f2f2; }
::-webkit-scrollbar-thumb { background: #c8c8c8; border: 3px solid #f2f2f2; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #a0a0a0; }

/* ------------------------- 桌面 ------------------------- */
#wallpaper {
  position: fixed; inset: 0; z-index: 0;
  background: url(/static/wallpaper.png?v=2) center center / cover no-repeat, #0a1626;
}

#desktop { position: fixed; inset: 0 0 40px 0; z-index: 10; }

#desk-icons {
  position: absolute; top: 6px; left: 6px;
  display: flex; flex-direction: column; flex-wrap: wrap;
  align-content: flex-start; height: calc(100% - 12px);
}
.dicon {
  width: 84px; height: 86px; padding-top: 6px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  border: 1px solid transparent; cursor: default;
}
.dicon:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .22); }
.dicon.sel { background: rgba(0, 120, 215, .45); border-color: rgba(120, 190, 255, .6); }
.dicon .ic { width: 42px; height: 42px; display: grid; place-items: center;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55)); }
.dicon .ic svg { width: 42px; height: 42px; }
.dicon .lbl {
  font-size: 11px; color: #fff; line-height: 1.3; text-align: center;
  max-width: 78px; text-shadow: 0 1px 3px rgba(0, 0, 0, .95); word-break: break-all;
}

/* ------------------------- 窗口 ------------------------- */
#windows { position: absolute; inset: 0; pointer-events: none; }
.win {
  position: absolute; pointer-events: auto;
  display: flex; flex-direction: column;
  min-width: 300px; min-height: 160px;
  background: #fff; border: 1px solid rgba(0, 0, 0, .22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .38);
  overflow: hidden;
}
.win.active { border-color: var(--accent); box-shadow: 0 16px 48px rgba(0, 0, 0, .52); }
.win.min { display: none; }

.win-title {
  height: 32px; flex: none; display: flex; align-items: center;
  background: #fff; border-bottom: 1px solid #e9e9e9; cursor: default;
}
.win-title .t-icon { width: 16px; height: 16px; margin: 0 8px 0 12px; flex: none; display: grid; place-items: center; }
.win-title .t-icon svg { width: 16px; height: 16px; }
.win-title .t-text {
  flex: 1; font-size: 12px; color: #1a1a1a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win-ctrl { display: flex; height: 32px; flex: none; }
.win-ctrl button {
  width: 46px; height: 32px; border: 0; background: transparent;
  display: grid; place-items: center; cursor: default;
}
.win-ctrl button:hover { background: #e5e5e5; }
.win-ctrl button.close:hover { background: #e81123; }
.win-ctrl button svg { width: 10px; height: 10px; stroke: #171717; stroke-width: 1.1; fill: none; }
.win-ctrl button.close:hover svg { stroke: #fff; }

.win-body { flex: 1; min-height: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.rz {
  position: absolute; right: 0; bottom: 0; width: 16px; height: 16px;
  cursor: nwse-resize; z-index: 8;
}
.rz::after {
  content: ""; position: absolute; right: 3px; bottom: 3px; width: 7px; height: 7px;
  border-right: 1px solid #bbb; border-bottom: 1px solid #bbb;
}

/* ------------------------- 任务栏 ------------------------- */
#taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 40px; z-index: 900;
  display: flex; align-items: center;
  background: var(--taskbar); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #fff;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .07);
}
#start-btn {
  width: 48px; height: 40px; flex: none; border: 0; background: transparent;
  display: grid; place-items: center; cursor: default;
}
#start-btn:hover { background: rgba(255, 255, 255, .1); }
#start-btn svg { width: 16px; height: 16px; fill: #fff; }
#start-btn.on { background: rgba(255, 255, 255, .16); }

#searchbox {
  width: 288px; height: 30px; flex: none; margin-right: 4px;
  display: flex; align-items: center; gap: 7px; padding: 0 9px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  color: #d8d8d8; font-size: 12px; cursor: text; overflow: hidden; white-space: nowrap;
}
#searchbox:hover { background: rgba(255, 255, 255, .13); }
#searchbox svg { width: 13px; height: 13px; flex: none; stroke: #cfcfcf; fill: none; stroke-width: 1.6; }

#tasks { flex: 1; display: flex; align-items: center; height: 40px; overflow: hidden; }
.taskbtn {
  width: 40px; height: 40px; flex: none; position: relative;
  border: 0; background: transparent; display: grid; place-items: center; cursor: default;
}
.taskbtn:hover { background: rgba(255, 255, 255, .1); }
.taskbtn::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px;
  background: transparent;
}
.taskbtn.run { background: rgba(255, 255, 255, .09); }
.taskbtn.run::after { background: #7bb7ea; }
.taskbtn.on { background: rgba(255, 255, 255, .2); }
.taskbtn.on::after { background: var(--accent-lt); }
.taskbtn svg { width: 22px; height: 22px; }

#tray { display: flex; align-items: center; height: 40px; flex: none; }
.tray-btn {
  height: 40px; min-width: 34px; padding: 0 7px; border: 0; background: transparent;
  display: flex; align-items: center; justify-content: center; cursor: default;
}
.tray-btn:hover { background: rgba(255, 255, 255, .12); }
.tray-btn svg { width: 16px; height: 16px; fill: #fff; }
#clock {
  height: 40px; padding: 0 10px 0 8px; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-end; line-height: 1.35; cursor: default;
}
#clock:hover { background: rgba(255, 255, 255, .12); }
#clock .t { font-size: 12px; }
#clock .d { font-size: 12px; }
#show-desk { width: 6px; height: 40px; flex: none; border: 0; background: transparent; border-left: 1px solid rgba(255, 255, 255, .2); }
#show-desk:hover { background: rgba(255, 255, 255, .18); }

/* ------------------------- 开始菜单 ------------------------- */
#start {
  position: fixed; left: 0; bottom: 40px; z-index: 950;
  width: 646px; height: 596px;
  background: rgba(31, 31, 31, .955); backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 0 24px rgba(0, 0, 0, .6);
  display: none; flex-direction: row; color: #fff;
  transform-origin: left bottom;
}
#start.show { display: flex; animation: smIn .16s ease-out; }
@keyframes smIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.sm-left {
  width: 48px; flex: none; display: flex; flex-direction: column;
  align-items: center; padding: 8px 0 6px; gap: 2px;
}
.sm-lbtn {
  width: 40px; height: 40px; border: 0; background: transparent;
  display: grid; place-items: center; cursor: default; color: #fff;
}
.sm-lbtn:hover { background: rgba(255, 255, 255, .12); }
.sm-lbtn svg { width: 18px; height: 18px; }
.sm-lspacer { flex: 1; }

.sm-apps { width: 302px; flex: none; display: flex; flex-direction: column; padding: 14px 0 6px 6px; height: 100%; }
.sm-h { font-size: 12px; color: #b9b9b9; padding: 0 8px 8px; }
#sm-applist { flex: 1; overflow-y: auto; padding-right: 6px; }
.sm-app {
  height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 8px;
  cursor: default; color: #fff;
}
.sm-app:hover { background: rgba(255, 255, 255, .1); }
.sm-app .ic { width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
.sm-app .ic svg { width: 22px; height: 22px; }
.sm-app .nm { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-letter { font-size: 11px; color: #8f8f8f; padding: 6px 8px 2px; }

.sm-tiles { width: 296px; flex: none; padding: 14px 10px 8px 4px; display: flex; flex-direction: column; height: 100%; overflow-y: auto; }
.sm-tg { font-size: 12px; color: #c9c9c9; padding: 4px 6px 8px; }
#sm-tiles { display: grid; grid-template-columns: repeat(3, 88px); gap: 6px; }
.tile {
  width: 88px; height: 88px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px;
  color: #fff; font-size: 11px; text-align: center; cursor: default;
  transition: filter .12s;
}
.tile:hover { filter: brightness(1.15); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset; }
.tile svg { width: 30px; height: 30px; }
.tile span { line-height: 1.2; padding: 0 4px; }

/* ------------------------- 应用：文件资源管理器 ------------------------- */
.exp { display: flex; flex-direction: column; height: 100%; font-size: 12px; background: #fff; }
.exp-cmd {
  height: 36px; flex: none; display: flex; align-items: center; gap: 2px;
  padding: 0 6px; background: #fafafa; border-bottom: 1px solid #e6e6e6;
}
.exp-cmd button, .exp-addr button {
  height: 26px; padding: 0 9px; border: 1px solid transparent; background: transparent;
  color: #1f1f1f; display: flex; align-items: center; gap: 6px; cursor: default; font-size: 12px;
}
.exp-cmd button:hover, .exp-addr button:hover { background: #e9e9e9; border-color: #dcdcdc; }
.exp-cmd button:active, .exp-addr button:active { background: #dcdcdc; }
.exp-cmd .sp { flex: 1; }
.exp-disk { color: #555; font-size: 11px; padding-right: 6px; }
.exp-addr {
  height: 34px; flex: none; display: flex; align-items: center; gap: 4px;
  padding: 0 6px; border-bottom: 1px solid #e6e6e6;
}
.exp-path {
  flex: 1; height: 24px; display: flex; align-items: center; gap: 1px;
  border: 1px solid #cfcfcf; background: #fff; padding: 0 4px;
  overflow: hidden; white-space: nowrap;
}
.crumb { padding: 1px 4px; cursor: default; }
.crumb:hover { background: #e5f3ff; }
.sep { color: #888; font-size: 10px; }

.exp-main { flex: 1; display: flex; min-height: 0; }
.exp-nav { width: 196px; flex: none; background: #f7f7f7; border-right: 1px solid #e6e6e6; overflow: auto; padding: 6px 0; }
.nv { height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 8px; cursor: default; color: #222; }
.nv:hover { background: #e5f3ff; }
.nv.on { background: #dceafc; }
.nv svg { width: 16px; height: 16px; flex: none; }
.nv .s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-h { font-size: 11px; color: #777; padding: 8px 10px 4px; }

.exp-list { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #fff; position: relative; }
.row-head {
  height: 26px; flex: none; display: grid;
  grid-template-columns: 1fr 156px 108px 88px;
  align-items: center; border-bottom: 1px solid #e6e6e6;
  background: #fff; color: #444; font-size: 12px; padding-left: 8px;
}
.row-head div { padding: 0 8px; height: 100%; display: flex; align-items: center; border-right: 1px solid #f0f0f0; }
.rows { flex: 1; overflow: auto; }
.frow {
  height: 26px; display: grid; grid-template-columns: 1fr 156px 108px 88px;
  align-items: center; padding-left: 8px; cursor: default; white-space: nowrap;
}
.frow:hover { background: #e5f3ff; }
.frow.sel { background: #cce8ff; }
.frow > div { padding: 0 8px; overflow: hidden; text-overflow: ellipsis; }
.frow .nm { display: flex; align-items: center; gap: 8px; }
.frow .ic { width: 16px; height: 16px; flex: none; display: grid; place-items: center; }
.frow .ic svg { width: 16px; height: 16px; }
.frow .muted { color: #666; }
.empty { padding: 40px; text-align: center; color: #999; }

/* ------------------------- 应用：任务管理器 ------------------------- */
.tm { display: flex; flex-direction: column; height: 100%; background: #fff; }
.tm-tabs { height: 34px; flex: none; display: flex; align-items: stretch; border-bottom: 1px solid #e2e2e2; padding-left: 6px; background: #fbfbfb; }
.tm-tab {
  padding: 0 16px; display: flex; align-items: center; gap: 6px; cursor: default;
  border: 1px solid transparent; border-bottom: 0; color: #333; font-size: 12px;
}
.tm-tab:hover { background: #f0f0f0; }
.tm-tab.on { background: #fff; border-color: #e2e2e2; position: relative; top: 1px; }
.tm-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.tm-head, .tm-row { display: grid; grid-template-columns: 1fr 78px 66px 86px 96px; align-items: center; }
.tm-head {
  height: 28px; flex: none; border-bottom: 1px solid #e2e2e2; background: #fff;
  font-size: 12px; color: #444; padding-left: 10px;
}
.tm-head > div { padding: 0 6px; display: flex; align-items: center; gap: 4px; }
.tm-rows { flex: 1; overflow: auto; }
.tm-row { height: 26px; padding-left: 10px; cursor: default; font-size: 12px; }
.tm-row:nth-child(odd) { background: #fafafa; }
.tm-row:hover { background: #e5f3ff; }
.tm-row.sel { background: #cce8ff; }
.tm-row > div { padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-row .pn { display: flex; align-items: center; gap: 7px; }
.tm-row .pn .dot { width: 8px; height: 8px; flex: none; background: #4caf50; }
.tm-row .heat { display: inline-block; padding: 0 3px; }
.tm-foot {
  height: 34px; flex: none; border-top: 1px solid #e2e2e2; display: flex;
  align-items: center; justify-content: space-between; padding: 0 8px; background: #fbfbfb; color: #555;
}
.tm-foot button {
  height: 26px; padding: 0 12px; border: 1px solid #cfcfcf; background: #f5f5f5; cursor: default;
}
.tm-foot button:hover { background: #e9e9e9; }
.tm-foot button:disabled { color: #aaa; border-color: #e0e0e0; background: #fafafa; }

.perf { display: flex; height: 100%; }
.perf-left { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.perf-card { border: 1px solid #e6e6e6; background: #fff; padding: 8px 10px 10px; }
.perf-card h4 { font-size: 12px; font-weight: 400; color: #444; margin-bottom: 4px; display: flex; justify-content: space-between; }
.perf-card h4 b { font-size: 13px; color: var(--accent); font-weight: 400; }
.perf-card canvas { width: 100%; height: 70px; display: block; background:
  repeating-linear-gradient(to right, #f7f7f7 0 1px, transparent 1px 25%); }
.perf-side { width: 190px; flex: none; border-left: 1px solid #e6e6e6; padding: 12px; background: #fbfbfb; font-size: 12px; color: #333; }
.perf-side .k { color: #666; padding: 4px 0; display: flex; justify-content: space-between; gap: 8px; }
.perf-side .k b { color: #111; font-weight: 400; text-align: right; }

/* ------------------------- 应用：终端 ------------------------- */
.term {
  flex: 1; background: #0c0c0c; color: #ccc; font-family: Consolas, "Cascadia Mono", "DejaVu Sans Mono", monospace;
  font-size: 13px; line-height: 1.5; padding: 6px 8px; overflow: auto; user-select: text; -webkit-user-select: text;
}
.term-out { white-space: pre-wrap; word-break: break-all; }
.term-line { display: flex; align-items: flex-start; gap: 0; }
.term-line .ps1 { white-space: nowrap; color: #16c60c; }
.term-line input {
  flex: 1; background: transparent; border: 0; color: #ccc; caret-color: #ccc;
  font-family: inherit; font-size: inherit; line-height: inherit; padding: 0; min-width: 0;
}
.term .err { color: #e86c6c; }
.term .dim { color: #8a8a8a; }

/* ------------------------- 应用：设置 ------------------------- */
.st { display: flex; height: 100%; background: #f2f2f2; }
.st-nav { width: 210px; flex: none; padding: 12px 0; overflow: auto; }
.st-nav .it {
  height: 38px; display: flex; align-items: center; gap: 12px; padding: 0 14px;
  cursor: default; color: #222;
}
.st-nav .it:hover { background: #e5e5e5; }
.st-nav .it.on { background: #dceafc; }
.st-nav .it svg { width: 16px; height: 16px; flex: none; }
.st-main { flex: 1; background: #fff; overflow: auto; padding: 18px 24px; }
.st-main h2 { font-size: 20px; font-weight: 400; margin-bottom: 4px; }
.st-main .sub { color: #666; font-size: 12px; margin-bottom: 16px; }
.st-card { border: 1px solid #e2e2e2; margin-bottom: 14px; }
.st-card .h { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid #eee; background: #fafafa; }
.st-card .b { padding: 6px 14px 12px; }
.st-row { display: flex; gap: 12px; padding: 7px 0; font-size: 12px; }
.st-row .k { width: 120px; color: #555; flex: none; }
.st-row .v { color: #111; word-break: break-all; }
.st-btn {
  height: 26px; padding: 0 12px; border: 1px solid #bfbfbf; background: #f5f5f5; cursor: default;
}
.st-btn:hover { background: #e9e9e9; }
.st-btn.danger { border-color: #d9534f; color: #b52b27; }
.st-btn.danger:hover { background: #fde8e8; }
.bar { height: 6px; background: #e6e6e6; margin-top: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); }

/* ------------------------- 应用：服务 / 网络 ------------------------- */
.list { flex: 1; overflow: auto; background: #fff; }
.svc-head, .svc-row { display: grid; grid-template-columns: 26px 1fr 150px 210px; align-items: center; }
.svc-head { height: 28px; position: sticky; top: 0; background: #fafafa; border-bottom: 1px solid #e2e2e2; color: #444; padding-left: 8px; }
.svc-head > div { padding: 0 8px; }
.svc-row { height: 30px; padding-left: 8px; border-bottom: 1px solid #f4f4f4; font-size: 12px; }
.svc-row:hover { background: #e5f3ff; }
.svc-row > div { padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-row .st-dot { width: 8px; height: 8px; background: #c4c4c4; }
.svc-row .st-dot.run { background: #107c10; }
.svc-row .desc { color: #666; }
.svc-row .ops { display: flex; gap: 4px; justify-content: flex-end; }
.svc-row .ops button { height: 20px; padding: 0 8px; border: 1px solid #cfcfcf; background: #f7f7f7; font-size: 11px; cursor: default; }
.svc-row .ops button:hover { background: #e6e6e6; }
.svc-row .ops button.stop { color: #b52b27; }
.svc-row .ops button.start { color: #0b6b0b; }

.net-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; padding: 12px; }
.net-card { border: 1px solid #e2e2e2; padding: 10px 12px; background: #fff; }
.net-card .n { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.net-card .r { display: flex; justify-content: space-between; font-size: 12px; color: #555; padding: 2px 0; }
.net-card .r b { color: #111; font-weight: 400; }

/* ------------------------- 锁屏 ------------------------- */
#lock {
  position: fixed; inset: 0; z-index: 2000;
  background: url(/static/wallpaper.png?v=2) center center / cover no-repeat, #0a1626;
  color: #fff; display: flex; align-items: center; justify-content: center;
  transition: opacity .35s;
}
#lock::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); }
#lock.hide { opacity: 0; pointer-events: none; }
.lock-time { position: absolute; top: 9vh; left: 8vw; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.lock-time .t { font-size: 84px; font-weight: 200; line-height: 1; letter-spacing: -2px; }
.lock-time .d { font-size: 22px; font-weight: 300; margin-top: 8px; }
.lock-center { position: relative; text-align: center; margin-top: 40px; }
.avatar {
  width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .55);
  display: grid; place-items: center; overflow: hidden;
}
.avatar svg { width: 92px; height: 92px; fill: rgba(255, 255, 255, .9); }
.lock-user { font-size: 26px; font-weight: 300; margin-bottom: 22px; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.lock-pw {
  width: 300px; height: 38px; display: flex; align-items: center;
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(0, 0, 0, .2);
  margin: 0 auto; padding: 0 4px 0 12px;
}
.lock-pw input {
  flex: 1; height: 100%; border: 0; background: transparent; font-size: 14px; color: #111;
  user-select: text; -webkit-user-select: text;
}
.lock-pw button {
  width: 34px; height: 30px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.lock-pw button:hover { background: #e0e0e0; }
.lock-pw button svg { width: 16px; height: 16px; stroke: #333; stroke-width: 2; fill: none; }
#lock-err { height: 20px; margin-top: 12px; font-size: 12px; color: #ffb4b4; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.shake { animation: shake .3s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); }
  50% { transform: translateX(7px); } 75% { transform: translateX(-4px); }
}
.lock-hint { position: absolute; bottom: 6vh; font-size: 12px; color: rgba(255, 255, 255, .72); }

/* ------------------------- 右键菜单 / 通知 ------------------------- */
#ctxmenu {
  position: fixed; z-index: 3000; min-width: 180px; display: none;
  background: #f2f2f2; border: 1px solid #cfcfcf; box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  padding: 3px; font-size: 12px;
}
#ctxmenu.show { display: block; }
#ctxmenu .mi { height: 26px; display: flex; align-items: center; gap: 8px; padding: 0 10px; cursor: default; }
#ctxmenu .mi:hover { background: #dcdcdc; }
#ctxmenu .hr { height: 1px; background: #d5d5d5; margin: 3px 6px; }

#toast {
  position: fixed; right: 14px; bottom: 54px; z-index: 4000;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none;
}
.toast {
  min-width: 240px; max-width: 340px; background: #2b2b2b; color: #fff;
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  padding: 10px 14px; font-size: 12px; line-height: 1.45;
  animation: tin .2s ease-out;
}
.toast b { display: block; font-weight: 400; font-size: 12px; color: #9ccfff; margin-bottom: 2px; }
@keyframes tin { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ------------------------- 移动端适配 ------------------------- */
@media (max-width: 900px) {
  #searchbox { display: none; }
  #start { width: 100vw; height: calc(100vh - 40px); }
  .sm-tiles { display: none; }
  .sm-apps { width: 100%; }
  .lock-time .t { font-size: 60px; }
  .lock-time { top: 6vh; left: 7vw; }
  .win { border: 0 !important; }
  .row-head, .frow { grid-template-columns: 1fr 96px; }
  .row-head > div:nth-child(3), .row-head > div:nth-child(4),
  .frow > div:nth-child(3), .frow > div:nth-child(4) { display: none; }
  .exp-nav { width: 0; display: none; }
  .tm-head, .tm-row { grid-template-columns: 1fr 60px 72px; }
  .tm-head > div:nth-child(3), .tm-row > div:nth-child(3),
  .tm-head > div:nth-child(5), .tm-row > div:nth-child(5) { display: none; }
  .perf-side { display: none; }
  .svc-head, .svc-row { grid-template-columns: 20px 1fr 130px; }
  .svc-head > div:nth-child(4), .svc-row > div:nth-child(4) { display: none; }
}

/* ============ 深色任务管理器 + 热区表 ============ */
.tm.dark { background: #1f1f1f; color: #e6e6e6; }
.tm.dark .tm-tabs { background: #2b2b2b; border-bottom-color: #3a3a3a; }
.tm.dark .tm-tab { color: #c9c9c9; }
.tm.dark .tm-tab:hover { background: #363636; }
.tm.dark .tm-tab.on { background: #1f1f1f; border-color: #3a3a3a; color: #fff; }
.tm.dark .tm-head { background: #262626; border-bottom-color: #3a3a3a; color: #9d9d9d; }
.tm.dark .tm-row { color: #e4e4e4; }
.tm.dark .tm-row:nth-child(odd) { background: #232323; }
.tm.dark .tm-row:hover { background: #313131; }
.tm.dark .tm-row.sel { background: #0e4a7b; }
.tm.dark .tm-row .dot { background: #46a64a; }
.tm.dark .tm-row .dot.idle { background: #6a6a6a; }
.tm.dark .tm-foot { background: #262626; border-top-color: #3a3a3a; color: #b3b3b3; }
.tm.dark .tm-foot button { background: #3a3a3a; border-color: #4d4d4d; color: #eee; }
.tm.dark .tm-foot button:hover { background: #4a4a4a; }
.tm.dark .perf-card { background: #262626; border-color: #383838; }
.tm.dark .perf-card h4 { color: #b5b5b5; }
.tm.dark .perf-card canvas { background: repeating-linear-gradient(to right, #2e2e2e 0 1px, transparent 1px 25%); }
.tm.dark .perf-side { background: #232323; border-left-color: #383838; color: #cfcfcf; }
.tm.dark .perf-side .k { color: #9a9a9a; }
.tm.dark .perf-side .k b { color: #fff; }
.tm-row .hc { font-variant-numeric: tabular-nums; }

/* ============ 资源管理器底部磁盘环形图 ============ */
.exp-foot {
  height: 58px; flex: none; display: flex; align-items: center; gap: 10px;
  padding: 0 14px; background: #fafafa; border-top: 1px solid #e6e6e6;
}
.exp-foot canvas { width: 48px; height: 48px; flex: none; display: block; }
.exp-foot .ft1 { font-size: 11.5px; color: #222; line-height: 1.35; }
.exp-foot .ft2 { font-size: 11px; color: #777; }
.exp-foot .sp { flex: 1; }
.exp-foot .badge {
  font-size: 11px; color: #0b6b3a; background: #e6f6ec;
  border: 1px solid #bfe3cd; padding: 2px 8px;
}

/* ============ 任务栏搜索面板 ============ */
#searchpanel {
  position: fixed; left: 0; bottom: 40px; z-index: 960;
  width: 430px; max-height: 520px;
  background: rgba(31, 31, 31, .97); backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 0 24px rgba(0, 0, 0, .6);
  display: none; flex-direction: column; color: #fff;
  transform-origin: left bottom;
}
#searchpanel.show { display: flex; animation: smIn .16s ease-out; }
.sp-in { height: 46px; flex: none; display: flex; align-items: center; gap: 9px; padding: 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sp-in svg { width: 14px; height: 14px; stroke: #cfcfcf; fill: none; stroke-width: 1.6; flex: none; }
.sp-in input { flex: 1; height: 100%; background: transparent; border: 0; color: #fff; font-size: 13px; }
.sp-in input::placeholder { color: #9a9a9a; }
.sp-list { overflow: auto; padding: 6px 0 8px; }
.sp-item { height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 14px; cursor: default; }
.sp-item:hover, .sp-item.on { background: rgba(255, 255, 255, .13); }
.sp-item .ic { width: 20px; height: 20px; flex: none; display: grid; place-items: center; }
.sp-item .ic svg { width: 20px; height: 20px; }
.sp-item .nm { flex: 1; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-item .hint { font-size: 11px; color: #9a9a9a; }
.sp-sec { font-size: 11px; color: #8a8a8a; padding: 8px 14px 4px; }

/* ============ 内置浏览器 ============ */
.br { display: flex; flex-direction: column; height: 100%; background: #fff; }
.br-bar { height: 42px; flex: none; display: flex; align-items: center; gap: 3px; padding: 0 8px; background: #f3f3f3; border-bottom: 1px solid #e2e2e2; }
.br-bar button { width: 28px; height: 28px; border: 0; background: transparent; display: grid; place-items: center; font-size: 15px; color: #444; cursor: default; border-radius: 3px; }
.br-bar button:hover { background: #e2e2e2; }
.br-url { flex: 1; height: 28px; margin: 0 6px; border: 1px solid #cfcfcf; background: #fff; padding: 0 10px; font-size: 12px; color: #111; }
.br-url:focus { border-color: #0078d4; }
.br-go { width: auto !important; padding: 0 12px !important; height: 28px; border: 1px solid #cfcfcf !important; background: #fafafa !important; font-size: 12px !important; }
.br-content { flex: 1; position: relative; overflow: hidden; background: #fff; }
.br-frame { width: 100%; height: 100%; border: 0; background: #fff; display: block; }
.br-home { padding: 26px 30px; height: 100%; overflow: auto; }
.br-home h3 { font-size: 15px; font-weight: 400; color: #222; margin: 0 0 4px; }
.br-home p { font-size: 11.5px; color: #888; margin: 0 0 18px; }
.br-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 9px; max-width: 660px; }
.br-link { border: 1px solid #e4e4e4; padding: 11px 12px; display: flex; flex-direction: column; gap: 5px; cursor: default; background: #fff; }
.br-link:hover { background: #f4f9ff; border-color: #b9d8f5; }
.br-link b { font-size: 12.5px; font-weight: 400; color: #222; }
.br-link span { font-size: 10.5px; color: #9a9a9a; }
.br-load { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: #0078d4; transition: width .3s; z-index: 3; }

/* 深色标题栏（任务管理器） */
.win.dark .win-title { background: #1f1f1f; border-bottom-color: #333; }
.win.dark .win-title .t-text { color: #f0f0f0; }
.win.dark .win-ctrl button svg { stroke: #e2e2e2; }
.win.dark .win-ctrl button:hover { background: #333; }
.win.dark .win-ctrl button.close:hover { background: #e81123; }
.win.dark .win-body { background: #1f1f1f; }
.tm.dark .tm-rows::-webkit-scrollbar { width: 12px; }
.tm.dark .tm-rows::-webkit-scrollbar-track { background: #1f1f1f; }
.tm.dark .tm-rows::-webkit-scrollbar-thumb { background: #4a4a4a; border: 3px solid #1f1f1f; }
.tm.dark .tm-rows::-webkit-scrollbar-thumb:hover { background: #5d5d5d; }
.br-mode {
  width: auto !important; height: 28px; padding: 0 10px !important;
  border: 1px solid #cfcfcf !important; background: #fafafa !important;
  font-size: 12px !important; color: #333; margin-left: 2px;
}
.br-mode:hover { background: #eaeaea !important; }
