/* 首页头图加载 */
body[data-type=anzhiyu] #nav,
body[data-type=anzhiyu] #scroll-down,
body[data-type=anzhiyu] #site-info {
  -webkit-animation: scale 2.2s cubic-bezier(.6, .1, .25, 1) .5s 1 backwards;
  animation: scale 2.2s cubic-bezier(.6, .1, .25, 1) .5s 1 backwards
}

@media screen and (max-width: 768px) {
  .pl-container {
    position: relative !important
  }
}

@media screen and (min-width: 768px) {

  #page-header.full_page,
  .pl-container {
    height: 100vh
  }

  #page-header.full_page.expand-to-full,
  .pl-container.expand-to-full {
    height: 50vh !important
  }

  .pl-container {
    will-change: opacity, transform, filter;
    opacity: calc(1 - var(--process) * 1) !important;
    transform: scale(calc(1 + var(--process) * .1));
    filter: blur(calc(var(--process) * 10px));
  }
}

.pl-container {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: -2;
  overflow: hidden;
  will-change: transform;
  /* 添加性能优化 */
  animation: blur-to-clear 2.5s cubic-bezier(.6, .25, .25, 1) 0s 1 backwards, scale 2.2s cubic-bezier(.6, .1, .25, 1) .5s 1 backwards;
}

.pl-img {
  width: 100%;
  height: 100%;
  position: absolute;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: .1;
  transition: opacity 1s;
  will-change: transform, opacity
}

.pl-video.pl-visible {
  display: block
}

.pl-container video.pl-img {
  object-fit: cover;
  background: transparent;
}

.pl-img video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

@keyframes blur-to-clear {
  0% {
    filter: blur(50px);
    opacity: 1;
  }

  100% {
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes scale {
  0% {
    transform: scale(1.5) translateZ(0);
    opacity: 0;
  }

  to {
    transform: scale(1) translateZ(0);
    opacity: 1;
  }
}

.pl-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAKUlEQVQImU3IMREAIAgAwJfNkQCEsH8cijjpMf6vnXlQaIiJFx+omEBfmqIEZLe2jzcAAAAASUVORK5CYII=);
}

.pl-visible {
  opacity: 1;
}

  .pl-blur {
   /* 小图锯齿多，增加高斯模糊 */
    filter: blur(50px);
  }

/* 头图透明 */
#page-header {
    background: transparent !important;
  }
/* 页脚 */
#footer {
  background: transparent !important;
}

/* 页面头 */
#page-header {
  background: transparent !important;
}
