/* 右侧悬浮咨询栏 */
.fixed-sidebar {
  position: fixed;
  right: 10px;
  bottom: 100px;
  z-index: 90;
  width: 70px;
}

.fixed-sidebar__nav,
.fixed-sidebar__top {
  width: 70px;
  border-radius: 70px;
  background: #fff;
  box-shadow: 0 0 8.55px rgba(0, 0, 0, 0.06);
}

.fixed-sidebar__nav {
  padding: 15px 0;
}

.fixed-sidebar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
  position: relative;
  padding: 8px 0;
  color: #505050;
  text-decoration: none;
  cursor: pointer;
}

.fixed-sidebar__item:hover {
  color: var(--color-primary);
}

.fixed-sidebar__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.fixed-sidebar__icon img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.fixed-sidebar__icon--pulse {
  width: 48px;
  height: 48px;
}

.fixed-sidebar__icon--pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 153, 247, 0.35);
  animation: fixedSidebarPulse 1s ease-in-out infinite alternate;
}

.fixed-sidebar__icon--pulse::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  z-index: 0;
}

.fixed-sidebar__icon--pulse svg {
  position: relative;
  z-index: 1;
}

.fixed-sidebar__label {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.3;
}

.fixed-sidebar__wechat-panel {
  position: absolute;
  right: calc(100% + 32px);
  top: 0;
  display: none;
  z-index: 2;
  transform: translateY(-50%);
  pointer-events: none;
}

.fixed-sidebar.is-wechat-visible .fixed-sidebar__wechat-panel {
  display: block;
}

.fixed-sidebar__popup-inner {
  width: 140px;
  box-sizing: border-box;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fixed-sidebar__popup-inner img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.fixed-sidebar__popup-inner p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  white-space: nowrap;
}

.fixed-sidebar__popup-hint {
  font-size: 12px !important;
  color: #999 !important;
}

.fixed-sidebar__top {
  height: auto;
  min-height: 70px;
  margin-top: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fixed-sidebar__top .fixed-sidebar__label {
  margin-top: 0;
}

.fixed-sidebar__top:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 153, 247, 0.15);
}

@keyframes fixedSidebarPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}

@media (max-width: 768px) {
  .fixed-sidebar {
    right: 6px;
    bottom: 72px;
    transform: scale(0.88);
    transform-origin: bottom right;
  }

  .fixed-sidebar__wechat-panel {
    right: calc(100% + 24px);
  }
}
