/* 联系悬浮窗样式 */
.contact-float {
  position: fixed;
  right: 40px;
  height:240px;
  bottom: 100px;
  width: 90px;
  padding: 22px 0 14px 0;
  /* background: linear-gradient(180deg, #4fc3ff 0%, #1e90ff 100%); */
  background: linear-gradient(180deg, #1e90ff 0%, #4fc3ff 100%);
  border-radius: 55px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  z-index: 9999;
  font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
}

.contact-float:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.contact-float-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #2682FF;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}

.contact-float-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-bottom: 10px;
  object-fit: cover;
  background: #fff;
}

.contact-float-title {
  color: #fff;
  font-size: 13px;
  text-align: center;
  margin-bottom: 2px;
  font-weight: 400;
  letter-spacing: 1px;
}

.contact-float-phone {
  color: #fff;
  font-size: 10px;
  text-align: center;
  margin-bottom: 12px;
}

.contact-float-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-btn {
  width: 70px;
  height: 26px;
  background: #fff;
  color: #1e90ff;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(30,144,255,0.08);
  outline: none;
}

.contact-btn:hover {
  background: #e3f2fd;
}

.back-to-top-btn {
  width: 70px;
  height: 26px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
  margin: 0;
  padding: 0;
}

.back-to-top-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #e3f2fd;
}

.triangle {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 7px solid #fff;
  margin: 0 auto 2px auto;
  display: block;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
  .contact-float {
    width: 100px;
    right: 10px;
    bottom: 10px;
    padding: 16px 0 10px 0;
    border-radius: 50px;
  }
  .contact-float-avatar img {
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
  }
  .contact-btn, .back-to-top-btn {
    width: 70px;
    height: 26px;
    font-size: 13px;
    border-radius: 13px;
  }
}
