/* 浮动客服入口 - 可拖动版本 */
.support-float {
  position: fixed;
  top: 60%;
  right: 0;
  transform: translateY(-50%);
  z-index: 2000;
  padding-right: 12px;
  cursor: move;
  user-select: none;
  transition: opacity 0.2s;
}
.support-float.dragging {
  opacity: 0.8;
  transition: none;
}
.support-float.dragging .support-panel {
  opacity: 0 !important;
  pointer-events: none !important;
}
.support-tab {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border: none;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  padding: 14px 12px;
  border-radius: 12px 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
  cursor: move;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  transition: background 0.2s;
}
.support-tab:hover {
  background: rgba(15, 23, 42, 1);
}
.support-tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.support-panel {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translate(16px, -50%);
  width: 220px;
  padding: 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(226, 232, 240, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  text-align: center;
}
.support-panel img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 8px;
}
.support-panel p {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
}
.support-panel strong { 
  color: var(--primary, #3b82f6); 
}
.support-float:hover .support-panel,
.support-float:focus-within .support-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-12px, -50%);
}

/* 移动端响应式 */
@media (max-width: 900px) {
  .support-float {
    top: auto;
    bottom: 24px;
    transform: none;
  }
  .support-panel {
    right: 80px;
  }
}

/* 针对 admin.html 的特殊调整（如果需要更高 z-index） */
body:has(.sidebar) .support-float,
.admin-page .support-float {
  z-index: 3000;
}

