/* 页面基础样式 */
html,
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* 悬浮Logo样式 */
#floating-logo {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: bounce 2s infinite;
}

#floating-logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  animation: ripple 2s linear infinite;
}

.logo {
  width: 60px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#floating-logo:hover {
  transform: translateY(-5px);
}

#floating-logo img:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 1);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* 图标样式 */
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 5px;
  border-radius: 10vh;
  background: rgba(255, 255, 255, 0.85);
}

.contact-icon:hover {
  transform: scale(1.05) translateX(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

/* 提示框样式 */
.tooltip-container {
  position: relative;
}

.tooltip {
  display: none;
  position: absolute;
  right: 100%;
  margin-right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #2d3748;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 鼠标悬停时显示提示框 */
.contact-icon:hover + .tooltip {
  display: block;
  opacity: 1; /* 显示并淡入 */
  transform: translateY(-50%) translateX(-5px); /* 添加轻微的位移效果 */
}

/* 弹出框样式 */
#contact-popup {
  position: absolute;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  border: none;
  border-radius: 10vh;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  width: 60px;
}

#contact-popup.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}


/* 音乐播放器样式 */
#music {
  position: fixed; /* 固定定位 */
  bottom: 20px; /* 距离底部 */
  left: 20px; /* 距离右侧 */
  z-index: 1000; /* 保证置顶 */
  cursor: pointer; /* 鼠标指针 */
}


/* 手机端样式调整 */
@media screen and (max-width: 768px) {
  #floating-logo {
    bottom: 1vh;
    right: 1.5vh;
  }

  .logo {
    width: 50px;
  }

  #contact-popup {
    bottom: 70px;
    padding: 12px;
  }

  .contact-icon {
    width: 40px;
    height: auto;
    padding: 6px;
  }

  #music {
    position: fixed; /* 固定定位 */
    top: 1vh; /* 调整音乐图标位置 */
    left: 50%; /* 将元素的左边缘移动到容器的50%处 */
    transform: translateX(-50%); /* 将元素向左移动自身宽度的50%，实现水平居中 */
  }

  #floating-logo::before {
    width: 80px;
    height: 80px;
  }

    @keyframes ripple {
    0% {
      transform: translate(-50%, -50%) scale(0);
      opacity: 1;
    }
    100% {
      transform: translate(-50%, -50%) scale(1.2);
      opacity: 0;
    }
  }
}
