/* 侧边栏样式 */
.sidebar-fixed {
  position: fixed;
  right: 0;
  display: grid;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

.sidebar-item {
  position: relative;
  padding: 10px 8px 13px;
  background: rgb(54, 73, 244);
  border-radius: 4px 0 0 4px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-item:hover {
  left: -1px;
  box-shadow: rgba(0, 0, 0, 0.24) 0 0 35px 2px;
}

.sidebar-icon {
  width: 22px;
  height: 17px;
  display: block;
  object-fit: contain;
}

.sidebar-item:hover .sidebar-icon {
  filter: brightness(0) invert(1);
}

.sidebar-bubble {
  position: absolute;
  top: -60px;
  left: -135px;
  display: none;
  background: #fff;
  border-radius: 3px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  min-width: 120px;
  /* 扩大 hover 区域，包含箭头和到侧边栏之间的区域 */
  /* padding-right: 10px; */
}

.sidebar-item:hover .sidebar-bubble,
.sidebar-bubble:hover {
  display: block;
}

.sidebar-bubble::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #fff;
  pointer-events: none;
}

/* 创建一个不可见的连接区域，从气泡右边缘到侧边栏左边缘 */
.sidebar-bubble::before {
  content: '';
  position: absolute;
  right: -20px;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: auto;
}

.bubble-qr {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 10px;
  object-fit: contain;
}

.bubble-text {
  font-size: 12px;
  color: rgb(102, 102, 102);
  margin-bottom: 10px;
}

