/* 侧边栏整体容器 —— 固定定位，滚动不漂移 */
.bangz_box {
  position: fixed;
  right: 0;
  top: 48%; /* 往下移了一点 */
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 0;

  -webkit-transform: translateY(-50%);
     -moz-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
}

/* 竖条细长按钮 —— 宽度调窄 */
.bangz_box .item {
  position: relative;
  padding: 14px 6px;
  border-radius: 20px 0 0 20px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 渐变底色 */
.bangz_box .item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #3798f7, #3369ff);
  border-radius: 20px 0 0 20px;
}

/* 流光外边框 */
.bangz_box .item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #ffffff, rgba(255,255,255,0.3), #ffffff);
  background-size: 200% 200%;
  animation: lightFlow 4s linear infinite;
  opacity: 0.2;
  border-radius: 20px 0 0 20px;
}

@keyframes lightFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 悬浮距离也缩小 */
.bangz_box .item:hover {
  transform: translateX(-8px) scale(1.03);
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}

/* 配色不变 */
.bangz_box .item:first-child::before {
  background: linear-gradient(135deg, #FF512F, #F09819);
}
.bangz_box .item:nth-child(2)::before {
  background: linear-gradient(135deg, #6441A5, #2a0845);
}
.bangz_box .item:nth-child(3)::before {
  background: linear-gradient(135deg, #00B4DB, #0083B0);
}
.bangz_box .item:nth-child(4)::before {
  background: linear-gradient(135deg, #1A2980, #26D0CE);
}

/* 文字竖排 */
.bangz_box .item a {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  gap: 4px;
}

.bangz_box span {
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
  white-space: nowrap;
  position: relative;
}