* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #f5f5f5;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

.page-title {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #333;
  font-size: 28px;
  font-weight: 300;
  text-align: center;
  z-index: 10;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.test {
  width: 300px;
  height: 80px;
}

.tp {
  stroke-dasharray: 0 1000;
  fill-opacity: 0;
}

@media screen and (max-width: 50em) {
  .page-title {
    font-size: 20px;
    top: 20px;
  }
  
  .test {
    width: 240px;
    height: 60px;
  }
}

.tp:nth-child(1){
  -webkit-animation: dash 6s linear, opac 0.25s linear 1.1s;
  -webkit-animation-fill-mode: forwards;
  animation: dash 6s linear, opac 0.25s linear 1.1s;
  animation-fill-mode: forwards;
}

.tp:nth-child(2){
  -webkit-animation: dash 6s linear 1.5s, opac 0.25s linear 3.1s;
  -webkit-animation-fill-mode: forwards;
  animation: dash 6s linear 1.5s, opac 0.25s linear 3.1s;
  animation-fill-mode: forwards;
}
.tp:nth-child(3){
  -webkit-animation: dash 6s linear 3s, opac 0.25s linear 4s;
  -webkit-animation-fill-mode: forwards;
  animation: dash 6s linear 3s, opac 0.25s linear 4s;
  animation-fill-mode: forwards;
}
.tp:nth-child(4){
  -webkit-animation: dash 6s linear 4s, opac 0.25s linear 5s;
  -webkit-animation-fill-mode: forwards;
  animation: dash 6s linear 4s, opac 0.25s linear 5s;
  animation-fill-mode: forwards;
}

@-webkit-keyframes dash {
  from {
    stroke-dasharray: 0 1000;
  }
  to {
    stroke-dasharray: 1000 0;
  }
}

@keyframes dash {
  from {
    stroke-dasharray: 0 1000;
  }
  to {
    stroke-dasharray: 1000 0;
  }
}

@-webkit-keyframes opac {
  from {
    fill-opacity: 0;
  }
  to {
    fill-opacity: 1;
  }
}

@keyframes opac {
  from {
    fill-opacity: 0;
  }
  to {
    fill-opacity: 1;
  }
}