/* Windows 10 shell */
body[data-os-theme="windows"] {
  font-family: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei", sans-serif;
}

body[data-os-theme="windows"] .mac-screen {
  background: #07559d url("../assets/windows-wallpaper.svg") center / cover no-repeat;
}

body[data-os-theme="windows"] .menu-bar {
  position: absolute;
  z-index: 880;
  right: 0;
  bottom: 0;
  left: 0;
  height: 48px;
  padding: 0 13px;
  background: #20242b;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: none;
}

body[data-os-theme="windows"] .menu-left {
  display: none;
}

body[data-os-theme="windows"] .menu-right {
  margin-left: auto;
  gap: 10px;
  color: #f5f7fa;
}

body[data-os-theme="windows"] .time-button {
  max-width: 92px;
  font-size: 11px;
  line-height: 1.15;
  white-space: normal;
}

body[data-os-theme="windows"] .menu-right .search-status {
  display: none;
}

body[data-os-theme="windows"] .desktop {
  height: 100vh;
}

body[data-os-theme="windows"] .desktop-icons {
  top: 68px;
  right: auto;
  left: 28px;
}

body[data-os-theme="windows"] .app-window {
  border-color: rgba(38, 53, 72, 0.24);
  border-radius: 2px;
  padding-top: 42px;
  background: #f9f9fb;
  box-shadow: 0 14px 36px rgba(3, 24, 55, 0.22), 0 2px 6px rgba(3, 24, 55, 0.12);
  backdrop-filter: none;
}

body[data-os-theme="windows"] .finder-panel {
  top: 64px;
}

body[data-os-theme="windows"] .finder-toolbar .eyebrow {
  color: #242a31;
  font-size: 15px;
  font-weight: 600;
}

body[data-os-theme="windows"] .finder-panel .finder-toolbar h2 {
  color: #4d5967;
  font-weight: 400;
}

body[data-os-theme="windows"] .finder-panel > .window-controls,
body[data-os-theme="windows"] .window-controls {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 32px;
  justify-content: flex-end;
  gap: 0;
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  background: #f2f3f6;
  cursor: grab;
}

body[data-os-theme="windows"] .window-controls::before {
  content: "文件资源管理器";
  position: absolute;
  left: 12px;
  top: 9px;
  color: #263244;
  font-size: 11px;
  font-weight: 650;
}

body[data-os-theme="windows"] .trash-window .window-controls::before {
  content: "回收站";
}

body[data-os-theme="windows"] .about-window .window-controls::before { content: "关于墨者小站"; }
body[data-os-theme="windows"] .quick-look .window-controls::before { content: "项目快速查看"; }
body[data-os-theme="windows"] .memo-window .window-controls::before { content: "便签"; }
body[data-os-theme="windows"] .terminal-window .window-controls::before { content: "终端"; }
body[data-os-theme="windows"] .shortcut-window .window-controls::before { content: "添加网站"; }
body[data-os-theme="windows"] .data-manager-window .window-controls::before { content: "导航数据"; }
body[data-os-theme="windows"] .fortune-window .window-controls::before { content: "帮助"; }

body[data-os-theme="windows"] .window-controls > button {
  width: 46px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 0;
  color: #1c2735;
  background: transparent;
}

body[data-os-theme="windows"] .window-controls > button::before {
  font-size: 14px;
  line-height: 1;
}

body[data-os-theme="windows"] .window-minimize::before { content: "−"; }
body[data-os-theme="windows"] .window-zoom::before { content: "□"; font-size: 11px !important; }
body[data-os-theme="windows"] .window-close::before { content: "×"; }
body[data-os-theme="windows"] .window-minimize { order: 1; }
body[data-os-theme="windows"] .window-zoom { order: 2; }
body[data-os-theme="windows"] .window-close { order: 3; }
body[data-os-theme="windows"] .window-close:hover { color: #fff; background: #c42b1c; }
body[data-os-theme="windows"] .window-minimize:hover,
body[data-os-theme="windows"] .window-zoom:hover { background: rgba(0, 0, 0, 0.08); }

body[data-os-theme="windows"] .finder-layout {
  height: 100%;
}

body[data-os-theme="windows"] .finder-sidebar {
  border-radius: 0;
  background: #f2f3f5;
}

body[data-os-theme="windows"] .finder-filter,
body[data-os-theme="windows"] .finder-project {
  border-radius: 0;
}

body[data-os-theme="windows"] .finder-filter:hover,
body[data-os-theme="windows"] .finder-filter.active,
body[data-os-theme="windows"] .finder-project:hover,
body[data-os-theme="windows"] .finder-project.selected {
  background: rgba(0, 103, 192, 0.12);
}

body[data-os-theme="windows"] .primary-action {
  border-radius: 4px;
  background: #0067c0;
}

body[data-os-theme="windows"] .shortcut-actions .primary-action {
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 51, 102, 0.22);
}

body[data-os-theme="windows"] .dock {
  z-index: 900;
  bottom: 0;
  left: 0;
  gap: 0;
  padding: 4px 2px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
}

body[data-os-theme="windows"] .dock-item {
  width: 44px;
  height: 40px;
  border-radius: 0;
  box-shadow: none;
}

body[data-os-theme="windows"] .dock-item:hover {
  background-color: rgba(255, 255, 255, 0.13);
  transform: none;
}

body[data-os-theme="windows"] .dock-item img {
  width: 32px;
  height: 32px;
}

body[data-os-theme="windows"] .launchpad-dock {
  order: -2;
  background: transparent;
}

body[data-os-theme="windows"] .windows-search-dock {
  order: -1;
  width: 198px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #6c7781;
  padding: 0 12px;
  color: #20242b;
  background: #f4f4f4;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  cursor: text;
}

body[data-os-theme="windows"] .windows-search-dock span {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid #29343f;
  border-radius: 50%;
  position: relative;
}

body[data-os-theme="windows"] .windows-search-dock span::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  background: #29343f;
  transform: rotate(45deg);
}

body[data-os-theme="windows"] .system-swatch {
  background: url("../assets/windows-wallpaper.svg") center / cover no-repeat;
}

body[data-os-theme="windows"] .launchpad-grid {
  grid-template-columns: repeat(2, 8px);
  gap: 2px;
}

body[data-os-theme="windows"] .launchpad-grid i {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: #fff !important;
}

body[data-os-theme="windows"] .launchpad-grid i:nth-child(n + 5) {
  display: none;
}

body[data-os-theme="windows"] .finder-dock {
  order: 0;
  background: linear-gradient(180deg, #ffd75e 0 42%, #e6a92f 43% 100%);
}

body[data-os-theme="windows"] .finder-dock::before {
  top: 7px;
  left: 6px;
  width: 16px;
  height: 7px;
  border-radius: 3px 3px 0 0;
  background: #ffe69a;
}

body[data-os-theme="windows"] .finder-dock::after {
  top: 18px;
  right: 5px;
  width: 30px;
  height: 12px;
  border-radius: 2px;
  background: #58a6dc;
}

body[data-os-theme="windows"] .dock-status {
  bottom: -2px;
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: #1687dc;
}

body[data-os-theme="windows"] .notifications {
  top: auto;
  right: 14px;
  bottom: 68px;
}

body[data-os-theme="windows"] .notification {
  grid-template-columns: 34px 1fr;
  gap: 10px;
  border-color: rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.96);
  box-shadow: 0 12px 34px rgba(3, 24, 55, 0.24);
}

body[data-os-theme="windows"] .notification-icon {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 0;
  color: transparent;
  background: transparent;
  box-shadow: none;
  font-size: 0;
}

body[data-os-theme="windows"] .notification-icon::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 10px;
  height: 10px;
  background: #087cd4;
  box-shadow: 12px 0 #087cd4, 0 12px #087cd4, 12px 12px #087cd4;
}

body[data-os-theme="windows"] .notification:first-child:nth-last-child(n + 2)::after {
  border-radius: 0 0 8px 8px;
  background: rgba(226, 237, 248, 0.82);
}

body[data-os-theme="windows"].dark-desktop .notification {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(38, 45, 56, 0.96);
}

body[data-os-theme="windows"] .control-center,
body[data-os-theme="windows"] .calendar-panel {
  top: auto;
  bottom: 64px;
}

body[data-os-theme="windows"] .launchpad {
  inset: auto auto 48px 0;
  width: min(640px, calc(100vw - 12px));
  height: min(580px, calc(100vh - 72px));
  grid-template-rows: auto auto 1fr;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  padding: 26px 28px 32px;
  background: rgba(37, 42, 50, 0.97);
  box-shadow: 4px -12px 38px rgba(3, 12, 25, 0.34);
  backdrop-filter: none;
  transform: none;
}

body[data-os-theme="windows"] .launchpad-search {
  width: 100%;
  margin-bottom: 14px;
}

body[data-os-theme="windows"] .launchpad-tools { color: #e6e9ee; text-shadow: none; margin-bottom: 14px; }
body[data-os-theme="windows"] .launchpad-tools button { color: #fff; border-color: #65727e; background: #39434d; }
body[data-os-theme="windows"] .launchpad-tools span { display: none; }
body[data-os-theme="windows"] .launchpad-folder-control { color: #fff; border-color: #65727e; background: #39434d; }
body[data-os-theme="windows"] .launchpad-folder-control:hover { background: #4c5c6a; }
body[data-os-theme="windows"] .launchpad-folder-entry select { color: #fff; border-color: #65727e; background: #303940; }

body[data-os-theme="windows"] .launchpad-search span {
  border-color: #c7d3dd;
}

body[data-os-theme="windows"] .launchpad-search span::after {
  background: #c7d3dd;
}

body[data-os-theme="windows"] .launchpad-search input {
  border-color: #69727b;
  border-radius: 0;
  color: #fff;
  background: #303740;
  box-shadow: none;
}

body[data-os-theme="windows"] .launchpad-search input::placeholder {
  color: #c7d3dd;
}

body[data-os-theme="windows"] .launchpad-app {
  min-height: 92px;
  padding: 8px;
  color: #fff;
  background: #315a85;
  font-size: 12px;
  text-shadow: none;
}

body[data-os-theme="windows"] .launchpad-app img {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  box-shadow: none;
}

body[data-os-theme="windows"] .launchpad-folder-icon {
  width: 46px;
  height: 46px;
  padding: 5px;
  box-shadow: none;
}

body[data-os-theme="windows"] .finder-results {
  border-color: #e2e5e9;
  background: #fff;
}

body[data-os-theme="windows"] .finder-project.selected {
  background: #e6f0fa;
}

body[data-os-theme="windows"] .menu-action:hover {
  color: #1d2939;
  background: #e7edf5;
}

body[data-os-theme="windows"] .launchpad-apps {
  grid-template-columns: repeat(4, minmax(72px, 108px));
  gap: 6px;
}

body[data-os-theme="windows"] .launchpad-folder-icon {
  border-color: rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

body[data-os-theme="windows"] .launchpad-folder-view {
  inset: 18px;
  border-color: rgba(0, 0, 0, 0.1);
  border-radius: 0;
  background: #303740;
}

body[data-os-theme="windows"] .launchpad-folder-view h2 {
  color: #fff;
  text-shadow: none;
}

body[data-os-theme="windows"] .launchpad-folder-back {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

body[data-os-theme="windows"].dark-desktop .launchpad-folder-view {
  background: rgba(31, 38, 48, 0.98);
}

body[data-os-theme="windows"].dark-desktop .launchpad-folder-view h2,
body[data-os-theme="windows"].dark-desktop .launchpad-folder-back {
  color: rgba(255, 255, 255, 0.92);
}

body[data-os-theme="windows"].dark-desktop .menu-bar {
  background: rgba(27, 34, 44, 0.9);
}

body[data-os-theme="windows"].dark-desktop .app-window {
  background: rgba(31, 38, 48, 0.95);
}

body[data-os-theme="windows"].dark-desktop .finder-sidebar {
  background: rgba(22, 29, 39, 0.84);
}

body[data-os-theme="windows"].dark-desktop .launchpad {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(31, 38, 48, 0.96);
}

body[data-os-theme="windows"].dark-desktop .launchpad-search input,
body[data-os-theme="windows"].dark-desktop .launchpad-app {
  color: rgba(255, 255, 255, 0.92);
}

body[data-os-theme="windows"].dark-desktop .launchpad-search input {
  background: rgba(255, 255, 255, 0.1);
}

body[data-os-theme="windows"].dark-desktop .window-controls::before,
body[data-os-theme="windows"].dark-desktop .window-controls > button {
  color: rgba(255, 255, 255, 0.9);
}


@media (max-width: 780px) {
  body[data-os-theme="windows"] .desktop {
    height: auto;
    min-height: 100vh;
  }

  body[data-os-theme="windows"] .menu-bar {
    position: fixed;
  }

  body[data-os-theme="windows"] .menu-right .search-status,
  body[data-os-theme="windows"] .menu-right .status-button {
    display: none;
  }

  body[data-os-theme="windows"] .finder-panel {
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 520px;
    padding-top: 46px;
  }

  body[data-os-theme="windows"] .desktop-icons {
    position: relative;
    inset: auto;
  }

  body[data-os-theme="windows"] .dock {
    position: fixed;
    max-width: calc(100vw - 184px);
    overflow-x: auto;
  }

  body[data-os-theme="windows"] .windows-search-dock {
    display: none;
  }

  body[data-os-theme="windows"] .launchpad {
    position: fixed;
    right: 10px;
    bottom: 62px;
    left: 10px;
    width: auto;
    height: min(480px, calc(100vh - 82px));
    padding: 30px 22px;
    transform: none;
  }

  body[data-os-theme="windows"] .launchpad-apps {
    grid-template-columns: repeat(3, minmax(64px, 90px));
    gap: 28px 18px;
  }
}
