.contact-menu {
  position: fixed;
  z-index: 9999;
}

.contact-menu[data-position="bottom-right"] {
  bottom: 30px;
  right: 30px;
}

.contact-menu[data-position="bottom-left"] {
  bottom: 30px;
  left: 30px;
}

.contact-toggle {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 102;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-items {
  position: absolute;
  bottom: 0;
  right: 0;
  pointer-events: none;
}

.contact-item {
  position: absolute;
  bottom: 0;
  right: 4px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
}

/* 独立负责白色圆盘背景与 Hover 悬停放大，不干扰父级 translate 位移 */
.contact-icon-inner {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-item:hover .contact-icon-inner {
  transform: scale(1.15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.contact-item svg,
.contact-toggle svg {
  display: block;
  margin: auto;
  pointer-events: none;
}

.contact-toggle .icon-main,
.contact-toggle .icon-close {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact-toggle .icon-close {
  opacity: 0;
  transform: scale(0.5) rotate(0deg);
}

.contact-menu.active .contact-toggle .icon-main {
  opacity: 0;
  transform: scale(0.5);
}

.contact-menu.active .contact-toggle .icon-close {
  opacity: 1;
  transform: scale(1) rotate(135deg);
}

.contact-toggle:hover {
  transform: scale(1.05);
}