/* 极点 · 侧边悬浮工具栏（白天/夜间 + 在线客服）
   先进感、精致、贴边设计 */

/* 主悬浮容器 */
.qy-side-dock {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  pointer-events: none;
}

.qy-side-dock > * {
  pointer-events: auto;
}

/* 单个工具按钮 */
.qy-dock-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #475569;
  overflow: hidden;
}

.qy-dock-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(59, 130, 246, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.qy-dock-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
  color: #2563eb;
}

.qy-dock-btn:hover::before {
  opacity: 1;
}

.qy-dock-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.qy-dock-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}

/* 主题切换按钮特殊样式 */
.qy-dock-theme {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}

.qy-dock-theme.dark-mode {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fbbf24;
  border-color: #334155;
}

.qy-dock-theme.dark-mode:hover {
  color: #fcd34d;
  border-color: #fbbf24;
}

/* 客服按钮 */
.qy-dock-support {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.qy-dock-support:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 16px 32px rgba(59, 130, 246, 0.45);
  color: #fff;
}

.qy-dock-support::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

/* 提示标签 */
.qy-dock-btn .tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #1e293b;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.qy-dock-btn .tip::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: #1e293b;
}

.qy-dock-btn:hover .tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .qy-side-dock {
    right: 12px;
    bottom: 80px;
    gap: 10px;
  }
  .qy-dock-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .qy-dock-btn .tip {
    display: none;
  }
}

/* 深色模式下的容器调整 */
.dark .qy-dock-btn:not(.qy-dock-support) {
  background: rgba(30, 41, 59, 0.95);
  border-color: #334155;
  color: #e2e8f0;
}

.dark .qy-dock-btn:not(.qy-dock-support):hover {
  border-color: #60a5fa;
  color: #60a5fa;
}

.dark .qy-dock-support::after {
  border-color: #1e293b;
}

/* 入场动画 */
.qy-side-dock {
  animation: dock-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

@keyframes dock-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 客服面板联系方式 */
.qy-contacts {
  margin-bottom: 8px;
}
.qy-contact-item {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.qy-contact-item:last-child {
  border-bottom: none;
}
.qy-contact-item strong {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 4px;
}
.qy-contact-item p {
  margin: 0;
  font-size: 15px;
  color: #1e293b;
  font-weight: 500;
}
.dark .qy-contact-item {
  border-color: #334155;
}
.dark .qy-contact-item strong {
  color: #94a3b8;
}
.dark .qy-contact-item p {
  color: #e2e8f0;
}
