/* taskbar.css — 任务栏、搜索面板、日历（嵌入通知中心右侧栏顶部）（Win10：纯色任务栏、窗口按钮浅底/选中更亮、活动下划线顶满、右对齐双行时钟） */
#taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--taskbar-h, 40px); z-index: 5000;
  display: flex; align-items: stretch;
  background: var(--taskbar-bg); color: var(--tb-fg);
  border-top: 1px solid var(--tb-sep);
}
#tb-start { width: 48px; display: flex; align-items: center; justify-content: center; color: inherit; }
#tb-start:hover { background: var(--tb-hover); }
#tb-start .tb-logo { width: 18px; height: 18px; display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 2px; pointer-events: none; }
#tb-start .tb-logo i { display: block; background: currentColor; }
#tb-search { width: 40px; display: flex; align-items: center; justify-content: center; color: inherit; }
#tb-search:hover { background: var(--tb-hover); }
.tb-spacer { width: 12px; flex: none; }
#tb-wins { flex: 1; min-width: 0; display: flex; align-items: stretch; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
#tb-wins::-webkit-scrollbar { height: 4px; }
.tb-win {
  position: relative; display: flex; align-items: center; gap: 8px; flex: 1 0 160px;
  max-width: 200px; min-width: 44px; padding: 0 20px 0 16px; color: inherit; font-size: 12px;
  background: var(--tb-win-bg);
}
.tb-win:hover { background: var(--tb-hover); }
.tb-win.active { background: var(--tb-win-active); }
.tb-win.active:hover { background: var(--tb-win-active); }
.tb-win.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent);
}
.tb-win.minimized { opacity: .55; }
.tb-win-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tb-tray { display: flex; align-items: stretch; margin-left: auto; }
#tb-clock {
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px; color: inherit; font-size: 12px;
}
#tb-clock:hover { background: var(--tb-hover); }
#tb-clock-bell { display: flex; align-items: center; color: var(--accent); }
.tb-clock-text {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  line-height: 1.35; text-align: right;
}
#tb-clock-time { font-size: 14px; }
#tb-clock-date { font-size: 10px; opacity: .55; }
#tb-showdesk { width: 8px; border-left: 1px solid var(--tb-sep); }
#tb-showdesk:hover { background: var(--tb-hover); }

/* 日历（通知中心右侧栏顶部） */
#nc-cal { padding: 16px 18px 10px; border-bottom: 1px solid var(--win-border); }
.cal-big { font-size: 42px; font-weight: 200; font-family: "Segoe UI Light", var(--font); line-height: 1.1; }
.cal-sub { opacity: .6; margin-bottom: 12px; font-size: 13px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 8px; font-size: 13px; font-weight: 600; }
.cal-nav { display: flex; gap: 2px; }
.cal-nav button { width: 28px; height: 26px; display: flex; align-items: center; justify-content: center; }
.cal-nav button:hover { background: var(--menu-hover); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 12px; }
.cal-dow { padding: 4px 0; opacity: .55; font-weight: 600; }
.cal-day {
  width: 32px; height: 32px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.cal-day:hover { background: var(--menu-hover); }
.cal-day.today { background: var(--accent); color: var(--on-accent); }
.cal-day.other { opacity: .35; }

/* 搜索面板 */
#search-panel {
  position: fixed; left: 4px; bottom: calc(var(--taskbar-h, 40px) + 6px);
  width: 640px; max-width: calc(100vw - 12px); height: min(620px, calc(100vh - var(--taskbar-h, 40px) - 50px));
  z-index: 5900; display: flex; flex-direction: column;
  background: var(--acrylic); color: var(--menu-fg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--win-border); border-radius: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
  transform: translateY(12px); opacity: 0; pointer-events: none;
  transition: transform .18s, opacity .18s; overflow: hidden;
}
#search-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.sp-box { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--win-border); }
.sp-box input { flex: 1; background: transparent; border: none; outline: none; font-size: 15px; color: inherit; }
.sp-results { flex: 1; overflow-y: auto; padding: 6px; }
.sp-item { display: flex; gap: 12px; align-items: center; padding: 9px 10px; }
.sp-item:hover { background: var(--menu-hover); }
.sp-name { font-size: 13px; }
.sp-path { font-size: 11px; opacity: .6; margin-top: 1px; }
.sp-empty { padding: 34px; text-align: center; opacity: .55; }
