@import url("https://fonts.googleapis.com/css?family=Roboto");

@-webkit-keyframes come-in {
  0% {
    transform: translatey(100px);
    opacity: 1;
  }

  30% {
    transform: translateX(-50px) scale(0.4);
  }

  70% {
    transform: translateX(0px) scale(1.2);
  }

  100% {
    transform: translatey(0px) scale(1);
    opacity: 1;
  }
}

@keyframes come-in {
  0% {
    transform: translatey(100px);
    opacity: 1;
  }

  30% {
    transform: translateX(-50px) scale(0.4);
  }

  70% {
    transform: translateX(0px) scale(1.2);
  }

  100% {
    transform: translatey(0px) scale(1);
    opacity: 1;
  }
}

@keyframes come-float1 {
  0% {
    transform: translatey(100px);
    opacity: 1;
  }

  30% {
    transform: translateX(-50px) scale(0.4);
    opacity: 0.8;
  }

  70% {
    transform: translateX(0px) scale(1.2);
    opacity: 0.2;
  }

  100% {
    transform: translatey(0px) scale(1);
    opacity: 0;
  }
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  background: #111;
  font-family: "Roboto", sans-serif;
}
.element-container{    position: relative;
    width: 500px;
    height: 500px;
    margin-left: 80px;
}
.floating-container {
   position: fixed !important;
   width: 500px;
   height: 500px;
   bottom: 30%;
   right: 5%;
   margin: 35px 25px;
   position: absolute;
   cursor: move;
   /* padding: 300px;
  box-sizing: border-box; */
  /* 添加平滑过渡效果 */
   transition: transform 0.3s ease;
  /* 防止拖拽时选中文本 */
   user-select: none;
   -webkit-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
   z-index: 999999999999999999;

}

.floating-container:hover {
  height: 500px;
  width: 500px;
}

/* 拖拽时的样式 */
.floating-container:active {
  cursor: grabbing;
  transform: scale(1.02);
}

.floating-container:hover .floating-button {
  transform: translatey(5px);
  transition: all 0.3s;
}

.floating-container:hover .element-container .float-element:nth-child(1) {
  -webkit-animation: come-in 0.4s forwards 0.2s;
  animation: come-in 0.4s forwards 0.2s;
}

.floating-container:hover .element-container .float-element:nth-child(2) {
  -webkit-animation: come-in 0.4s forwards 0.4s;
  animation: come-in 0.4s forwards 0.4s;
}

.floating-container:hover .element-container .float-element:nth-child(3) {
  -webkit-animation: come-in 0.4s forwards 0.6s;
  animation: come-in 0.4s forwards 0.6s;
}

.floating-container:hover .element-container .float-element:nth-child(4) {
  -webkit-animation: come-in 0.4s forwards 0.8s;
  animation: come-in 0.4s forwards 0.8s;
}

.floating-container:hover .element-container .float-element:nth-child(5) {
  -webkit-animation: come-in 0.4s forwards 1s;
  animation: come-in 0.4s forwards 1s;
}

.floating-container .floating-button {
  width: 200px;
  height: 200px;
  line-height: 65px;
  text-align: center;
  font-size: 23px;
  cursor: pointer;
  transition: all 0.3s;
  float: right;
  margin-top: 150px;
  position: relative;
  z-index: 9999999999999;
}

.floating-container .floating-button img {
  width: 200px;
  height: 200px;
}

.floating-container .float-element {
  position: relative;
  display: block;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: white;
  font-weight: 500;
  text-align: center;
  line-height: 50px;
  z-index: 0;
  opacity: 0;
  transform: translateY(100px);
 
}

.title {
  margin-top: -30px;
}

.floating-container .float-element:nth-child(1) {
  position: absolute;
  left: 260px;
  top: 100px;
  cursor: pointer;
}

.floating-container .float-element:nth-child(2) {
  position: absolute;
  left: 170px;
  top: 145px;
  cursor: pointer;
}

.floating-container .float-element:nth-child(3) {
  position: absolute;
  left: 140px;
  top: 230px;
  cursor: pointer;
}

.floating-container .float-element:nth-child(4) {
  position: absolute;
  left: 180px;
  top: 320px;
  cursor: pointer;
}

.floating-container .float-element:nth-child(5) {
  position: absolute;
  left: 260px;
  top: 360px;
  cursor: pointer;
}

.floating-container .float-element .material-icons {
  vertical-align: middle;
  font-size: 16px;
}

.floating-container .float-element:nth-child(1) {
  background: #87c2f1;
  font-size: 10px;
}

.floating-container .float-element:nth-child(2) {
  background: #87c2f1;
  font-size: 10px;
}

.floating-container .float-element:nth-child(3) {
  background: #87c2f1;
  font-size: 10px;
}

.floating-container .float-element:nth-child(4) {
  background: #87c2f1;

  font-size: 10px;

}

.floating-container .float-element:nth-child(5) {
  background: #87c2f1;
  font-size: 10px;

}

.float-element img {
  width: 50px;
  height: 50px;
}

.float1 {
  -webkit-animation: come-in 0.4s forwards 0.2s;
  animation: come-in 0.4s forwards 0.2s;
}

.float2 {
  -webkit-animation: come-in 0.4s forwards 0.4s;
  animation: come-in 0.4s forwards 0.4s;
}

.float3 {
  -webkit-animation: come-in 0.4s forwards 0.6s;
  animation: come-in 0.4s forwards 0.6s;
}

.float4 {
  -webkit-animation: come-in 0.4s forwards 0.8s;
  animation: come-in 0.4s forwards 0.8s;
}

.float5 {
  -webkit-animation: come-in 0.4s forwards 1s;
  animation: come-in 0.4s forwards 1s;
}
.title {
    color: #333;
    font-weight: bold;
    font-size: 12px;
    text-shadow: -0.5px -0.5px 0 #fff, /* 左上描边 */
    0.5px -0.5px 0 #fff,  /* 右上描边 */
    -0.5px 0.5px 0 #fff,  /* 左下描边 */
    0.5px 0.5px 0 #fff;
}

@media only screen and (max-width: 1024px) {
 .floating-container {
    display: none;
}
}