/* startmenu.css — 开始菜单（Win10：左窄栏 + 应用列表 + 磁贴区、亚克力） */
#startmenu {
  position: fixed; left: 0; bottom: var(--taskbar-h, 40px);
  width: 760px; max-width: 100vw;
  height: min(640px, calc(100vh - var(--taskbar-h, 40px) - 10px));
  z-index: 6000; display: flex;
  background: var(--acrylic); color: var(--menu-fg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-right: 1px solid var(--win-border);
  border-top: 1px solid var(--win-border);
  box-shadow: 0 -6px 44px rgba(0, 0, 0, .4);
  transform: translateY(16px); opacity: 0; pointer-events: none;
  transition: transform .16s, opacity .16s;
}
#startmenu.open { transform: none; opacity: 1; pointer-events: auto; }

/* 左侧窄栏：汉堡 / 用户 / 电源，可展开 */
.sm-rail {
  width: 48px; flex: none;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--win-border);
  overflow: hidden; transition: width .12s ease;
}
#startmenu.sm-expanded .sm-rail { width: 200px; }
.sm-rail-sp { flex: 1; }
.sm-rail-btn {
  display: flex; align-items: center; gap: 14px; flex: none;
  width: 100%; height: 44px; padding: 0 13px;
  white-space: nowrap; text-align: left;
}
.sm-rail-btn:hover { background: var(--menu-hover); }
.sm-rail-btn > .os-icon { width: 22px; }
.sm-rail-label {
  display: none; font-size: 13px;
  overflow: hidden; text-overflow: ellipsis;
}
#startmenu.sm-expanded .sm-rail-label { display: block; }
.sm-avatar {
  width: 28px; height: 28px; flex: none; border-radius: 50%; margin-left: -3px;
  background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}

/* 应用列表 */
.sm-left { width: 250px; flex: none; display: flex; flex-direction: column; border-right: 1px solid var(--win-border); }
.sm-search { padding: 10px 10px 6px; }
.sm-search input {
  width: 100%; padding: 7px 10px; font-size: 13px;
  border: 1px solid var(--win-border); border-radius: 0;
  background: var(--win-bg); color: var(--win-fg); outline: none;
}
.sm-search input:focus { border-color: var(--accent); }
.sm-apps { flex: 1; overflow-y: auto; padding: 4px 0; }
.sm-app {
  display: flex; width: 100%; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: 0; font-size: 13px; text-align: left;
}
.sm-app:hover { background: var(--menu-hover); }
.sm-app-ico { display: flex; width: 24px; justify-content: center; }

/* 磁贴区 */
.sm-right { flex: 1; padding: 16px; overflow-y: auto; }
.sm-tiles-title { font-size: 13px; font-weight: 600; opacity: .75; margin-bottom: 10px; }
.sm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-content: start; }
.sm-tile {
  position: relative; width: 100%; height: auto; aspect-ratio: 1;
  color: #fff; display: flex; align-items: center; justify-content: center;
  border-radius: 0; transition: transform .08s;
}
.sm-tile:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.sm-tile:active { transform: scale(.96); }
.sm-tile-name { position: absolute; left: 8px; right: 8px; bottom: 6px; font-size: 12px; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-empty { padding: 30px 10px; opacity: .55; font-size: 13px; }
