/* rightMenu */
#rightMenu {
  display: none;
  position: fixed;
  width: 200px;
  height: fit-content;
  top: 10%;
  left: 10%;
  background-color: var(--card-bg, #fff);
  background: color-mix(in srgb, var(--card-bg, #fff) 88%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--anzhiyu-card-border, rgba(128, 128, 128, 0.22));
  border-radius: 12px;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
  user-select: none;
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
}

#rightMenu::-webkit-scrollbar {
  width: 5px;
}

#rightMenu::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.35);
  border-radius: 3px;
}

#rightMenu.show {
  display: block;
  animation: rightMenuIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.15) forwards;
}

#rightMenu.hide {
  display: block;
  animation: rightMenuOut 0.22s ease-in forwards;
}

@keyframes rightMenuIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes rightMenuOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.96) translateY(-2px);
  }
}

#rightMenu .rightMenu-group {
  padding: 4px;
}

#rightMenu .rightMenu-group:not(:nth-last-child(1)) {
  border-bottom: 1px solid var(--anzhiyu-card-border, rgba(128, 128, 128, 0.14));
  margin-bottom: 4px;
}

#rightMenu .rightMenu-group.rightMenu-small {
  display: flex;
  justify-content: space-between;
}

#rightMenu .rightMenu-group .rightMenu-item {
  height: 32px;
  line-height: 32px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s, transform 0.12s;
  color: var(--font-color, #333);
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
}

#rightMenu .rightMenu-group.rightMenu-line .rightMenu-item {
  display: flex;
  height: 40px;
  line-height: 40px;
  padding: 0 6px;
}

#rightMenu .rightMenu-group .rightMenu-item:hover {
  background: var(--text-bg-hover, rgba(128, 128, 128, 0.12));
  color: var(--anzhiyu-main, #4259ef);
}

#rightMenu .rightMenu-group .rightMenu-item:active {
  transform: scale(0.96);
}

#rightMenu .rightMenu-group .rightMenu-item i {
  display: inline-block;
  text-align: center;
  line-height: 32px;
  width: 32px;
  height: 32px;
  padding: 0 5px;
  color: currentColor;
  opacity: 0.75;
  transition: opacity 0.18s;
}

#rightMenu .rightMenu-group .rightMenu-item:hover i {
  opacity: 1;
}

#rightMenu .rightMenu-group .rightMenu-item span {
  line-height: 32px;
}

#rightMenu .rightMenu-group.rightMenu-line .rightMenu-item * {
  height: 40px;
  line-height: 40px;
}

.rightMenu-group.hide {
  display: none;
}
