/* WhatsApp & Telegram 悬浮按钮样式 */
.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .floating-buttons {
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    gap: 12px;
  }
}
.floating-button {
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(43,84,126,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #25d366;
  cursor: pointer;
  padding: 0;
  font-size: 28px;
  color: #fff;
  transition: box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  box-sizing: border-box;
  max-width: 100%;
}
@media (max-width: 480px) {
  .floating-button {
    width: 56px;
    height: 56px;
  }
  .floating-button.whatsapp img {
    width: 48px !important;
    height: 48px !important;
  }
  .floating-button.telegram img {
    width: 40px !important;
    height: 40px !important;
  }
}
.floating-button.whatsapp img {
  width: 36px !important;
  height: 36px !important;
}
.floating-button.telegram {
  background: #0088cc;
  border-color: #0088cc;
  color: #fff;
}
.floating-button.telegram img {
  width: 28px !important;
  height: 28px !important;
}
.floating-button:hover {
  box-shadow: 0 4px 16px rgba(43,84,126,0.18);
  background: #f0f6ff;
  transform: translateY(-4px);
}
@media (max-width: 600px) {
  .floating-buttons {
    right: 20px;
    left: auto;
    bottom: 16px;
    gap: 8px;
    max-width: calc(100vw - 40px);
    flex-direction: column;
    align-items: flex-end;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
  }
  .floating-button {
    width: 40px;
    height: 40px;
    font-size: 16px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .floating-button.whatsapp img {
    width: 24px !important;
    height: 24px !important;
  }
  .floating-button.telegram img {
    width: 18px !important;
    height: 18px !important;
  }
}
@media (max-width: 400px) {
  .floating-button {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}
