body{
    font-family: 'Microsoft YaHei', sans-serif;
}

.container{
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 600px;
    min-height: 400px;
}

.block{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 519px;
    height: 324px;
}


.bg{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(../imgs/bg.jpg);
    transition: filter 0.3s;
    -moz-transition: -moz-filter 0.3s;
    -webkit-transition: -webkit-filter 0.3s;
    -ms-transition: -ms-filter 0.3s;
}

.block:hover .bg{
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -ms-filter: blur(5px);    
    filter: blur(5px); 
}

.wrapper{
    position: relative;
    z-index: 999;
    width: 85%;
    height: 80%;
}

.border{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.border .border-v{
    width: 0%;
    height: 100%;
    border-top: 2px white solid;
    border-bottom: 2px white solid;
    opacity: 0;
    transition:  opacity 0.3s, width 0.3s;
}

.block:hover .border-v{
    opacity: 1;
    width: 100%;
}

.border .border-h{
    width: 100%;
    height: 0%;
    border-left: 2px white solid;
    border-right: 2px white solid;
    opacity: 0;
    transition:  opacity 0.3s, height 0.3s;
}

.block:hover .border-h{
    opacity: 1;
    height: 100%;
}

.content {

    position: relative;
    top: 100px;
    opacity: 0;
    transition: opacity 0.3s, top 0.3s;
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background-image: -webkit-linear-gradient(left, #3498db, #f47920 10%, #d71345 20%, #f7acbc 30%, #ffd400 40%, #3498db 50%, #f47920 60%, #d71345 70%, #f7acbc 80%, #ffd400 90%, #3498db);
    color: transparent;
    
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-background-size: 200% 100%;
    -webkit-animation: masked-animation 4s infinite linear;
}

.block:hover .content{
    opacity: 1;
    top: 0px;
}

@keyframes masked-animation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@-webkit-keyframes masked-animation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -100% 0;
  }
}