/* ============ 真 Aero · Windows 7 主题 ============ */
/* 覆盖 shell.css 默认样式：Aero 玻璃任务栏 / 开始菜单 / 窗口 */

/* 壁纸：真实 Win7 光效壁纸 */
#desktop {
  background: url("wallpaper.jpg") center center / cover no-repeat !important;
}
#desktop::before, #wallmark { display: none !important; }

/* ---- 桌面图标：靠左竖排（Win7 默认）---- */
#icons {
  left: 0 !important; top: 0 !important; right: 0 !important;
  width: 100% !important; height: calc(100% - 42px) !important;
  display: block !important;
}
.dicon { gap: 4px; }
.dicon .glyph { width: 44px; height: 44px; }
.dicon .glyph img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.dicon .label {
  font-size: 12px; color: #fff; max-width: 80px; word-break: break-word;
  text-shadow: 0 1px 2px #000, 0 0 4px #000; line-height: 1.25;
}
.dicon:hover { background: rgba(120,180,255,.2) !important; border-color: rgba(255,255,255,.4) !important; }
.dicon.selected { background: rgba(50,120,220,.45) !important; border-color: rgba(160,210,255,.75) !important; }
.dicon.dragging { background: rgba(40,110,210,.6) !important; border-color: rgba(255,255,255,.85) !important; box-shadow: 0 10px 22px rgba(0,0,0,.4) !important; }

/* ---- Aero 任务栏：半透明玻璃 ----
   --tb-glass：Aero 开 → 壁纸取色的半透明玻璃；关 → 经典不透明蓝 */
:root {
  --tb-c1: 108,163,224;   /* 取色亮部 */
  --tb-c2: 38,89,158;     /* 取色暗部 */
}
#taskbar {
  height: 42px;
  background: var(--tb-glass, linear-gradient(180deg, rgba(108,163,224,.72), rgba(38,89,158,.82))) !important;
  border-top: 1px solid rgba(200,225,255,.55) !important;
  box-shadow: 0 -1px 8px rgba(0,0,0,.25) inset, 0 -1px 0 rgba(255,255,255,.3) !important;
  backdrop-filter: var(--tb-blur, blur(10px) saturate(140%));
  -webkit-backdrop-filter: var(--tb-blur, blur(10px) saturate(140%));
  padding: 0 2px !important;
  gap: 2px !important;
  z-index: 2000;
}
/* Aero 关：经典不透明任务栏（无毛玻璃、无壁纸取色） */
body.tb-aero-off #taskbar {
  --tb-glass: linear-gradient(180deg, #3f86d4, #1e5aa0);
  --tb-blur: none;
}

/* Aero 开始按钮：圆形玻璃质感 + 四色旗 */
#start-btn {
  width: 46px; height: 42px; border-radius: 0 6px 6px 0 !important;
  background: radial-gradient(circle at 35% 30%, rgba(180,225,255,.95), rgba(20,90,175,.9) 70%) !important;
  border: 1px solid rgba(210,235,255,.7) !important;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.8), 0 0 12px rgba(90,170,255,.55) !important;
  font-size: 0 !important; gap: 0 !important; padding: 0;
  flex-shrink: 0;
}
#start-btn:hover { filter: brightness(1.15); box-shadow: inset 0 1px 2px rgba(255,255,255,.9), 0 0 18px rgba(120,200,255,.8) !important; }
#start-btn.active, #start-btn:active {
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95), rgba(15,70,150,.95) 70%) !important;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.35), 0 0 16px rgba(120,200,255,.9) !important;
}
.start-flag { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }

.task-divider { width: 3px; height: 34px; background: rgba(0,0,0,.2); border-right: 1px solid rgba(255,255,255,.25); margin: 0 4px; box-shadow: 1px 0 2px rgba(0,0,0,.15); }

#task-windows { flex: 1 1 auto !important; gap: 3px !important; min-width: 0; overflow: hidden; }
.task-item {
  min-width: 60px; max-width: 180px; height: 34px;
  background: linear-gradient(180deg, rgba(160,205,250,.55), rgba(70,130,200,.5)) !important;
  border: 1px solid rgba(210,235,255,.5) !important;
  border-radius: 3px;
  color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,.6) !important;
  font-size: 12px; padding: 0 8px; gap: 5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 1px 2px rgba(0,0,0,.2);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  flex-shrink: 1;
}
.task-item .ti-glyph { width: 20px; height: 20px; flex-shrink: 0; }
.task-item .ti-glyph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.task-item.active {
  background: linear-gradient(180deg, rgba(120,180,245,.9), rgba(45,110,190,.92)) !important;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.35), 0 0 6px rgba(120,200,255,.5) !important;
  border-color: rgba(235,248,255,.8) !important;
}
.task-item:hover { filter: brightness(1.12); }

#tray {
  height: 40px; padding: 0 10px; gap: 9px;
  background: linear-gradient(180deg, rgba(150,205,255,.35), rgba(30,80,150,.4)) !important;
  border-left: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 1px 0 2px rgba(0,0,0,.15);
  color: #f0f7ff !important; text-shadow: 0 1px 2px rgba(0,0,0,.6) !important;
  font-size: 14px; flex-shrink: 0;
}
#clock { text-align: right; line-height: 1.15; }
#clock .t { font-size: 13px; font-weight: 500; }
#clock .d { font-size: 11px; opacity: .9; }

/* ---- Aero 开始菜单 ---- */
#start-menu {
  display: none;
  width: 460px;
  background: linear-gradient(180deg, rgba(238,247,255,.96), rgba(205,228,250,.96)) !important;
  border: 1px solid rgba(255,255,255,.9) !important;
  border-top: 3px solid #3a86d6 !important;
  border-radius: 8px 8px 0 0 !important;
  box-shadow: 0 0 30px rgba(10,50,120,.45), inset 0 1px 0 rgba(255,255,255,.9) !important;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  color: #234 !important;
  padding: 0 !important;
  overflow: hidden;
  left: 0 !important; bottom: 42px !important;
}
#start-menu.open { display: flex !important; flex-direction: column; animation: aeroIn .16s ease-out; }
@keyframes aeroIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* 顶部搜索框 */
.sm-search {
  height: 46px; flex-shrink: 0; padding: 8px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(220,238,255,.5));
  border-bottom: 1px solid rgba(120,170,220,.35);
  display: flex; align-items: center; gap: 8px;
}
.sm-search input {
  flex: 1; height: 28px; border-radius: 14px;
  border: 1px solid rgba(120,170,220,.6);
  background: #fff; padding: 0 14px; font-size: 13px; color: #345;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.08); outline: none;
}
.sm-search input::placeholder { color: #9ab; }
.sm-search .sm-go { font-size: 15px; color: #2a7fd4; cursor: pointer; }

.sm-main { display: flex; flex: 1; min-height: 0; }

/* 左侧用户栏 */
.sm-left {
  width: 210px; flex-shrink: 0;
  background: linear-gradient(180deg, rgba(205,230,252,.9), rgba(175,212,246,.85));
  border-right: 1px solid rgba(120,170,220,.4);
  display: flex; flex-direction: column; padding: 0 !important;
}
.sm-user {
  height: 66px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(180,215,248,.3));
  border-bottom: 1px solid rgba(120,170,220,.4);
}
.sm-user img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); object-fit: cover; object-position: center; }
.sm-user .u-name { font-size: 14px; font-weight: 600; color: #1c4f86; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.sm-syslist { flex: 1; overflow: hidden; padding: 6px 0; }
.sm-sys-row {
  height: 30px; display: flex; align-items: center; gap: 9px; padding: 0 16px;
  font-size: 12px; color: #2b4d70; cursor: default;
}
.sm-sys-row img { width: 20px; height: 20px; object-fit: contain; }
.sm-sys-row:hover { background: rgba(255,255,255,.5); }
.sm-sys-row b { color: #1c4f86; font-weight: 600; }

/* 右侧程序区 */
.sm-right { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 8px 10px !important; }
.sm-right h3 { margin: 2px 0 8px !important; font-size: 12px; color: #2b6cb0; }
.sm-apps {
  flex: 1; overflow-y: auto !important; display: grid !important;
  grid-template-columns: 1fr 1fr; gap: 2px 6px; align-content: start;
  max-height: none !important;
}
.sm-app {
  height: 36px; display: flex; align-items: center; gap: 8px;
  padding: 0 8px; border-radius: 3px; font-size: 12px; color: #234 !important;
  cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.sm-app:hover { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(210,233,255,.85)) !important; border-color: rgba(90,150,215,.5) !important; }
.sm-app .sa-glyph { width: 24px; height: 24px; flex-shrink: 0; background: transparent !important; }
.sm-app .sa-glyph img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* 底部关机栏 */
.sm-bottom {
  height: 44px; flex-shrink: 0;
  background: linear-gradient(180deg, rgba(200,225,248,.9), rgba(160,200,240,.9));
  border-top: 1px solid rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 14px;
}
.sm-bottom button {
  border: 1px solid rgba(90,150,215,.7); border-radius: 3px;
  background: linear-gradient(180deg, #fff, #d6e8fa); color: #1c4f86;
  font-size: 12px; padding: 6px 14px; cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.15);
}
.sm-bottom button:hover { filter: brightness(1.06); }
.sm-shutdown { font-weight: 600; }

/* 隐藏默认 footer（新底部栏替代） */
.sm-footer { display: none !important; }

/* ---- Aero 窗口：玻璃标题栏 + 圆角 ---- */
.window {
  border-radius: 8px 8px 3px 3px !important;
  border: 1px solid rgba(160,205,250,.75) !important;
  box-shadow: 0 8px 32px rgba(10,40,100,.4), 0 0 0 1px rgba(255,255,255,.4) inset !important;
  overflow: hidden;
}
.window.focused { box-shadow: 0 10px 40px rgba(10,40,100,.55), 0 0 0 1px rgba(180,220,255,.7) inset !important; }
.win-titlebar {
  height: 34px;
  background: linear-gradient(180deg, #7db4ea 0%, #4a8dd6 45%, #2f6fc0 55%, #3f82d0 100%) !important;
  border-bottom: 1px solid rgba(20,70,140,.5) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
  padding: 0 6px !important;
}
.window:not(.focused) .win-titlebar { filter: saturate(.5) brightness(1.08); }
.win-titlebar .wt-glyph { width: 20px; height: 20px; margin-right: 8px !important; }
.win-titlebar .wt-glyph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.win-titlebar .wt-text { color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,.5) !important; font-weight: 500; }
.win-btn {
  border: 1px solid rgba(255,255,255,.6) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(150,200,245,.35)) !important;
  color: #123 !important; border-radius: 3px;
}
.win-btn.close:hover { background: linear-gradient(180deg,#ff8a7a,#e0432f) !important; color: #fff !important; }
.win-body { border-radius: 0 0 3px 3px; }

/* ---- 右键菜单 ---- */
#ctx-menu {
  background: linear-gradient(180deg, rgba(245,250,255,.97), rgba(215,232,248,.97)) !important;
  border: 1px solid rgba(120,170,220,.6) !important;
  border-radius: 4px; color: #234 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
#ctx-menu div { color: #234 !important; }
#ctx-menu div:hover { background: linear-gradient(180deg,#3a86d6,#2a6db8) !important; color: #fff !important; }
/* 刚点过的选项：延迟收起期间抑制蓝底，让 ✓ 落在清爽白底上（覆盖上面的 hover） */
#ctx-menu div.mi.just-picked,
#ctx-menu div.mi.just-picked:hover { background: transparent !important; color: #234 !important; }

/* ---- 矮屏（手机横屏）优化 ---- */
@media (max-height: 500px) {
  #icons { height: calc(100% - 38px) !important; }
  .dicon .label { font-size: 11px; }
  #wallmark { display: none !important; }
  #start-btn { width: 46px; }
  #taskbar { height: 38px; }
  #start-menu { bottom: 38px !important; max-height: calc(100% - 42px) !important; }
  .sm-left { width: 180px; }
  .sm-search { height: 40px; }
  .sm-user { height: 52px; }
  .sm-user img { width: 38px; height: 38px; }
  .sm-sys-row { height: 24px; font-size: 11px; }
  .window { max-height: calc(100% - 46px); }
}

/* ============================================================
   任务栏四边停靠（仿 Win7：拖动任务栏空白处换边）
   统一用 --tb 作为任务栏厚度，矮屏自动 38px。
   所有规则用 body[data-dock] 提升优先级，覆盖上面的 !important。
   ============================================================ */
:root { --tb: 42px; }
@media (max-height: 500px) { :root { --tb: 38px; } }

/* 拖拽时的边缘预览指示条 */
#dock-hint {
  position: fixed; z-index: 9998; display: none; pointer-events: none;
  background: linear-gradient(180deg, rgba(120,180,245,.62), rgba(38,89,158,.78));
  border: 1px solid rgba(210,235,255,.85);
  box-shadow: 0 0 26px rgba(90,170,255,.65), inset 0 0 12px rgba(255,255,255,.3);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border-radius: 2px;
}
#dock-hint.show { display: block; }

/* ---------- 顶部停靠 ---------- */
body[data-dock="top"] #taskbar {
  left: 0 !important; right: 0 !important; top: 0 !important; bottom: auto !important;
  width: auto !important; height: var(--tb) !important;
  flex-direction: row !important; align-items: center !important;
  border-top: 0 !important; border-bottom: 1px solid rgba(200,225,255,.55) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.3), inset 0 -1px 0 rgba(255,255,255,.3) !important;
}
body[data-dock="top"] #icons {
  left: 0 !important; right: 0 !important; top: var(--tb) !important; bottom: 0 !important;
  width: auto !important; height: auto !important;
}
body[data-dock="top"] #start-menu {
  left: 0 !important; top: var(--tb) !important; bottom: auto !important;
  border-radius: 0 0 8px 8px !important;
  max-height: calc(100% - var(--tb)) !important;
}
body[data-dock="top"] .tray-panel {
  right: 12px !important; left: auto !important;
  top: calc(var(--tb) + 6px) !important; bottom: auto !important;
}

/* ---------- 左侧停靠（垂直） ---------- */
body[data-dock="left"] #taskbar {
  left: 0 !important; top: 0 !important; bottom: 0 !important; right: auto !important;
  width: var(--tb) !important; height: auto !important;
  flex-direction: column !important; align-items: stretch !important;
  justify-content: flex-start !important; gap: 2px !important; padding: 2px 0 !important;
  border-top: 0 !important; border-right: 1px solid rgba(200,225,255,.55) !important;
  box-shadow: 2px 0 10px rgba(0,0,0,.3) !important;
}
body[data-dock="left"] #start-btn {
  width: calc(var(--tb) - 4px) !important; height: var(--tb) !important;
  border-radius: 0 0 6px 0 !important; flex-shrink: 0 !important;
}
body[data-dock="left"] .task-divider {
  width: 100% !important; height: 2px !important;
  border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.25) !important;
  margin: 2px 0 !important; box-shadow: 0 1px 2px rgba(0,0,0,.15) !important;
}
body[data-dock="left"] #task-windows {
  flex-direction: column !important; align-items: stretch !important;
  flex: 0 1 auto !important; width: 100% !important; height: auto !important; min-height: 0 !important;
  overflow-x: hidden !important; overflow-y: auto !important; gap: 2px !important;
}
body[data-dock="left"] .task-item {
  min-width: 0 !important; max-width: none !important; width: 100% !important;
  height: 34px !important; flex: 0 0 auto !important; padding: 0 !important;
  font-size: 0 !important; justify-content: center !important;
}
body[data-dock="left"] .task-item .ti-glyph { width: 20px !important; height: 20px !important; flex: 0 0 20px !important; }
body[data-dock="left"] #tray {
  margin-top: auto !important; flex-direction: column !important; align-items: center !important;
  width: 100% !important; height: auto !important; flex-shrink: 0 !important;
  padding: 4px 0 !important; gap: 6px !important;
  border-left: 0 !important; border-top: 1px solid rgba(255,255,255,.25) !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.15) !important;
}
body[data-dock="left"] #clock { text-align: center !important; min-width: 0 !important; font-size: 11px !important; }
body[data-dock="left"] #clock .d { display: none !important; }
body[data-dock="left"] #clock .t { font-size: 11px !important; }
body[data-dock="left"] #icons {
  left: var(--tb) !important; right: 0 !important; top: 0 !important; bottom: 0 !important;
  width: auto !important; height: auto !important;
}
body[data-dock="left"] #start-menu {
  left: var(--tb) !important; right: auto !important; top: auto !important; bottom: 0 !important;
  border-radius: 8px 8px 0 0 !important;
  max-height: calc(100% - var(--tb)) !important;
}
body[data-dock="left"] .tray-panel {
  left: calc(var(--tb) + 6px) !important; right: auto !important;
  top: auto !important; bottom: 12px !important;
}

/* ---------- 右侧停靠（垂直，镜像） ---------- */
body[data-dock="right"] #taskbar {
  right: 0 !important; top: 0 !important; bottom: 0 !important; left: auto !important;
  width: var(--tb) !important; height: auto !important;
  flex-direction: column !important; align-items: stretch !important;
  justify-content: flex-start !important; gap: 2px !important; padding: 2px 0 !important;
  border-top: 0 !important; border-left: 1px solid rgba(200,225,255,.55) !important;
  box-shadow: -2px 0 10px rgba(0,0,0,.3) !important;
}
body[data-dock="right"] #start-btn {
  width: calc(var(--tb) - 4px) !important; height: var(--tb) !important;
  border-radius: 0 0 0 6px !important; flex-shrink: 0 !important;
}
body[data-dock="right"] .task-divider {
  width: 100% !important; height: 2px !important;
  border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.25) !important;
  margin: 2px 0 !important; box-shadow: 0 1px 2px rgba(0,0,0,.15) !important;
}
body[data-dock="right"] #task-windows {
  flex-direction: column !important; align-items: stretch !important;
  flex: 0 1 auto !important; width: 100% !important; height: auto !important; min-height: 0 !important;
  overflow-x: hidden !important; overflow-y: auto !important; gap: 2px !important;
}
body[data-dock="right"] .task-item {
  min-width: 0 !important; max-width: none !important; width: 100% !important;
  height: 34px !important; flex: 0 0 auto !important; padding: 0 !important;
  font-size: 0 !important; justify-content: center !important;
}
body[data-dock="right"] .task-item .ti-glyph { width: 20px !important; height: 20px !important; flex: 0 0 20px !important; }
body[data-dock="right"] #tray {
  margin-top: auto !important; flex-direction: column !important; align-items: center !important;
  width: 100% !important; height: auto !important; flex-shrink: 0 !important;
  padding: 4px 0 !important; gap: 6px !important;
  border-left: 0 !important; border-top: 1px solid rgba(255,255,255,.25) !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.15) !important;
}
body[data-dock="right"] #clock { text-align: center !important; min-width: 0 !important; font-size: 11px !important; }
body[data-dock="right"] #clock .d { display: none !important; }
body[data-dock="right"] #clock .t { font-size: 11px !important; }
body[data-dock="right"] #icons {
  left: 0 !important; right: var(--tb) !important; top: 0 !important; bottom: 0 !important;
  width: auto !important; height: auto !important;
}
body[data-dock="right"] #start-menu {
  right: var(--tb) !important; left: auto !important; top: auto !important; bottom: 0 !important;
  border-radius: 8px 8px 0 0 !important;
  max-height: calc(100% - var(--tb)) !important;
}
body[data-dock="right"] .tray-panel {
  right: calc(var(--tb) + 6px) !important; left: auto !important;
  top: auto !important; bottom: 12px !important;
}

/* 开始菜单左侧「附件」展开项（与游戏同列） */
.sm-acc-head { cursor: pointer; }
.sm-acc-head b { flex: 0 0 auto; }
.sm-acc-favicon { width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.sm-acc-arrow {
  margin-left: auto; width: 0; height: 0;
  border-left: 5px solid #3a6ea5; border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  transition: transform .15s; flex: 0 0 auto;
}
.sm-acc-head.open .sm-acc-arrow { transform: rotate(90deg); }
.sm-acc-head.open { background: rgba(255,255,255,.55); }
.sm-acc-list { padding: 2px 8px 4px 16px; }
.sm-acc-list .sm-acc-item { height: 28px; font-size: 11px; padding: 0 6px; gap: 6px; }
.sm-acc-list .sm-acc-item .sa-glyph { width: 20px; height: 20px; flex-shrink: 0; }
.sm-acc-list .sm-acc-item .sa-glyph svg { width: 100%; height: 100%; display: block; }

/* ---------- 关机画面（仿 Win7） ---------- */
#shutdown-screen {
  display: none; position: fixed; inset: 0; z-index: 10000;
  flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 42%, #1a5aa8 0%, #0d3f7a 55%, #072a55 100%);
  color: #eaf3ff; cursor: pointer; user-select: none;
}
#shutdown-screen.show { display: flex !important; animation: sdFade .3s ease-out; }
@keyframes sdFade { from { opacity: 0; } to { opacity: 1; } }
#shutdown-screen .sd-inner { display: flex; flex-direction: column; align-items: center; gap: 30px; }
#shutdown-screen .sd-logo svg { width: 112px; height: 112px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); }
#shutdown-screen .sd-spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.25); border-top-color: #fff;
  animation: sdSpin .9s linear infinite;
}
@keyframes sdSpin { to { transform: rotate(360deg); } }
#shutdown-screen .sd-msg { font-size: 18px; font-weight: 600; letter-spacing: 3px; }
#shutdown-screen .sd-done, #shutdown-screen .sd-hint { display: none; }
#shutdown-screen.done .sd-spinner, #shutdown-screen.done .sd-msg { display: none; }
#shutdown-screen.done .sd-done { display: block; font-size: 22px; font-weight: 600; letter-spacing: 1px; }
#shutdown-screen.done .sd-hint { display: block; font-size: 12px; opacity: .65; letter-spacing: 0; }

/* ============================================================
   任务栏自动隐藏 + 任务栏设置面板
   ============================================================ */
/* 自动隐藏：任务栏向所属边缘移出，仅保留平滑过渡 */
body[data-autohide="1"] #taskbar {
  transition: transform .28s cubic-bezier(.2,.7,.3,1) !important;
  will-change: transform;
}
body[data-autohide="1"]:not(.tb-visible)[data-dock="bottom"] #taskbar { transform: translateY(100%) !important; }
body[data-autohide="1"]:not(.tb-visible)[data-dock="top"]    #taskbar { transform: translateY(-100%) !important; }
body[data-autohide="1"]:not(.tb-visible)[data-dock="left"]   #taskbar { transform: translateX(-100%) !important; }
body[data-autohide="1"]:not(.tb-visible)[data-dock="right"]  #taskbar { transform: translateX(100%) !important; }

/* 感应条：贴屏幕边缘的细条，隐藏态下鼠标移入即唤出任务栏 */
#tb-sensor {
  position: fixed; z-index: 1999; display: none;
  background: transparent;
}
body[data-autohide="1"]:not(.tb-visible) #tb-sensor { display: block; }
body[data-autohide="1"]:not(.tb-visible)[data-dock="bottom"] #tb-sensor { left: 0; right: 0; bottom: 0; height: 12px; cursor: default; }
body[data-autohide="1"]:not(.tb-visible)[data-dock="top"]    #tb-sensor { left: 0; right: 0; top: 0; height: 12px; cursor: default; }
body[data-autohide="1"]:not(.tb-visible)[data-dock="left"]   #tb-sensor { left: 0; top: 0; bottom: 0; width: 12px; cursor: default; }
body[data-autohide="1"]:not(.tb-visible)[data-dock="right"]  #tb-sensor { right: 0; top: 0; bottom: 0; width: 12px; cursor: default; }

/* 设置中心 */
#settings-center {
  position: fixed; z-index: 10005;
  left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96);
  width: 440px; max-width: calc(100vw - 32px);
  background: linear-gradient(180deg, #fff, #f2f6fb);
  border: 1px solid #a9c5e8; border-radius: 9px;
  box-shadow: 0 18px 48px rgba(0,0,0,.35), inset 0 1px 0 #fff;
  display: none; opacity: 0;
  transition: opacity .16s, transform .16s;
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  overflow: hidden;
}
#settings-center.open { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sc-title { flex: 1; }
/* 标签栏：每个设置项一个标签，后期新增直接加 .sc-tab + .sc-tabpage */
.sc-tabs {
  display: flex; gap: 2px; padding: 0 16px;
  background: linear-gradient(180deg, #eef4fb, #dce9f7);
  border-bottom: 1px solid #b8cee6;
}
.sc-tab {
  border: 1px solid transparent; border-bottom: 0;
  background: transparent; color: #567;
  padding: 9px 16px; margin-top: 5px;
  font: 600 12px 'Segoe UI', 'Microsoft YaHei', sans-serif;
  border-radius: 5px 5px 0 0; cursor: pointer;
  transition: background .14s, color .14s;
}
.sc-tab:hover { background: rgba(255,255,255,.55); color: #2b5f9e; }
.sc-tab.active {
  background: #fff; color: #2b5f9e;
  border-color: #b8cee6;
  box-shadow: inset 0 2px 0 #4a90d9;
}
.sc-tabpages { padding: 18px 16px; min-height: 70px; }
.sc-tabpage { display: none; }
.sc-tabpage.active { display: block; }
.tbs-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(180deg, #6ba3dd, #3e7cc4);
  color: #fff; font-weight: 600; font-size: 14px;
  border-radius: 8px 8px 0 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.tbs-close {
  border: 0; background: rgba(255,255,255,.18); color: #fff;
  width: 24px; height: 24px; border-radius: 4px; cursor: pointer; font-size: 13px;
}
.tbs-close:hover { background: rgba(255,255,255,.35); }
.tbs-body { padding: 16px; }
.tbs-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tbs-label { display: flex; flex-direction: column; gap: 4px; }
.tbs-label b { font-size: 13px; color: #234; }
.tbs-label small { font-size: 11px; color: #7a8a99; line-height: 1.4; max-width: 220px; }
.tbs-switch { position: relative; flex: 0 0 auto; width: 42px; height: 22px; cursor: pointer; }
.tbs-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.tbs-track {
  position: absolute; inset: 0; border-radius: 22px;
  background: linear-gradient(#c4ccd6, #aab4c0);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.25);
  transition: background .18s;
}
.tbs-track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .18s;
}
.tbs-switch input:checked + .tbs-track { background: linear-gradient(#4a9be0, #2b6cb0); }
.tbs-switch input:checked + .tbs-track::after { transform: translateX(20px); }
