html body div.sidenav-fly-drawer {
  position: fixed;
  top: 0;
  bottom: auto;
  width: 248px;
  max-height: calc(100vh - 16px);
  transform: translateY(clamp(8px, var(--fly-anchor-top, 92px), calc(100vh - 100% - 8px)));
  padding: 10px;
  display: grid;
  box-sizing: border-box;
  background: #767880;
  color: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 4px 0 14px rgba(20, 24, 32, 0.14);
  overflow: auto;
  z-index: 1501;
}
/* 每组保持自己的布局和滚动位置，切换时只改变可见性。 */
html body div.sidenav-fly-drawer .fly-group {
  grid-area: 1 / 1;
  min-height: 0;
  overflow: auto;
  contain: layout paint;
  visibility: hidden;
}
html body div.sidenav-fly-drawer .fly-group.is-visible { visibility: inherit; }
html body div.sidenav-fly-drawer .fly-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 6px;
  padding: 4px 0;
}
html body div.sidenav-fly-drawer .fly-section + .fly-section { border-top: 1px solid rgba(255, 255, 255, 0.2); }
html body div.sidenav-fly-drawer .fly-item {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
html body div.sidenav-fly-drawer .fly-item:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
html body div.sidenav-fly-drawer .fly-item.active { background: rgba(255, 255, 255, 0.22); color: #fff; font-weight: 600; }
html body div.sidenav-fly-drawer .fly-item.placeholder { color: rgba(255, 255, 255, 0.5); }
html.dark body div.sidenav-fly-drawer { background: #3a3e48; }
