.contact-icons {
  position: fixed;
  bottom: 150px;
  left: 20px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000; /* 确保其在最上层 */
}

.contact-icons.show {
  opacity: 1;
}

.contact-icon {
  margin-bottom: 10px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #007bff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-icon i {
  font-size: 24px;
  color: white;
}

.toggle-button {
  position: fixed;
  bottom: 85px;
  left: 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  z-index: 1001; /* 确保其在最上层，比 .contact-icons 高 */
}

.qr-code {
  display: none;
  position: absolute;
  left: 60px;
  max-width: 250%;
}

.contact-icon:hover .qr-code {
  display: block;
}

/* Add animation keyframes for beat effect */
@keyframes beat {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* Add animation for the icon */
.toggle-button {
  animation: beat 0.4s infinite alternate;  /*跳动的频率，数值越少越快*/
}