/* ===== 右侧联系客服浮窗 ===== */
.kf-float-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 48px;
  padding: 14px 0;
  border: 0;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, #2fb383 0%, #00bfa6 100%);
  color: #ffffff;
  cursor: pointer;
  box-shadow: -4px 4px 20px rgba(0, 191, 166, 0.35);
  transition: width 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  outline: none;
}

.kf-float-btn:hover {
  width: 56px;
  box-shadow: -6px 6px 24px rgba(0, 191, 166, 0.45);
}

.kf-float-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.kf-float-btn__icon {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  display: block;
  flex-shrink: 0;
}

.kf-float-btn__text {
  writing-mode: vertical-rl;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  line-height: 1;
  white-space: nowrap;
}

.kf-qrcode-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(50, 63, 84, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.kf-qrcode-overlay.show {
  opacity: 1;
  visibility: visible;
}

.kf-qrcode-box {
  position: relative;
  width: 360px;
  max-width: 100%;
  padding: 36px 32px 32px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  text-align: center;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.25s ease;
}

.kf-qrcode-overlay.show .kf-qrcode-box {
  transform: translateY(0) scale(1);
}

.kf-qrcode-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #999999;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.kf-qrcode-close:hover {
  color: #333333;
  background: rgba(0, 0, 0, 0.06);
}

.kf-qrcode-title {
  font-weight: bold;
  font-size: 22px;
  color: #000000;
  margin-bottom: 8px;
}

.kf-qrcode-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #7e878a;
  margin-bottom: 20px;
}

.kf-qrcode-img {
  width: 220px;
  height: 220px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

@media screen and (max-width: 768px) {
  .kf-float-btn {
    top: auto;
    bottom: 80px;
    transform: none;
    width: 44px;
    padding: 12px 0;
    border-radius: 10px 0 0 10px;
  }

  .kf-float-btn:hover {
    width: 48px;
  }

  .kf-float-btn:active {
    transform: scale(0.96);
  }

  .kf-float-btn__text {
    font-size: 13px;
    letter-spacing: 3px;
  }

  .kf-qrcode-box {
    padding: 32px 24px 28px;
  }

  .kf-qrcode-img {
    width: 200px;
    height: 200px;
  }
}
