<!DOCTYPE html>
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<head>
  <title>404-对不起！您访问的页面不存在</title>
  <meta charset="UTF-8" http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<style>
  html,body {
    height: 100%;
    font-family: "微软雅黑","Microsoft Yahei,Arial, Verdana,";
    font-size: 18px;
    width: 100%;
    overflow: hidden;
  }
  body {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
            align-items: center;
    -webkit-box-pack: center;
            justify-content: center;
    font-family: "Nunito Sans";
    color: var(--blue);
    font-size: 1em;
  }
  a {text-decoration: none;
  }
  button {
    font-family: "Nunito Sans";
  }

  h1 {
    font-size: 7.5em;
    margin:0;
    font-weight: bold;
  }

  h2 {
    font-weight: bold;
    font-size: 30px;
    line-height: 26px;
  }
  main,.container{
    width:100%;
    height:100%;
    display: block;
  }
  .row{
    width:500px;
    position:absolute;
    top:25%;
    left:50%;
    margin-left:-250px;
  }
  .btn {
    z-index: 1;
    overflow: hidden;
    background: transparent;
    position: relative;
    padding: 8px 50px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1em;
    letter-spacing: 2px;
    -webkit-transition: 0.2s ease;
    transition: 0.2s ease;
    font-weight: bold;
    margin: 5px 0px;
  }
  .btn.green {
    border: 4px solid #2ccf6d;
    color:#2ccf6d;
  }
  .btn.green:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background: #2ccf6d;
    z-index: -1;
    -webkit-transition: 0.2s ease;
    transition: 0.2s ease;
  }
  .btn.green:hover {
    color: #fff;
    background:#2ccf6d;
    -webkit-transition: 0.2s ease;
    transition: 0.2s ease;
  }
  .btn.green:hover:before {
    width: 100%;
  }
  .bgc{
    width:100%;
    font-size: 22px;
    color:#222222;
  }
  #time{
    display: none;
    outline:none
  }
  span{
    color:red;
  }
  @media screen and (max-width: 768px) {
    body {
      display: block;
    }

    .container {
      margin-top: 70px;
      margin-bottom: 70px;
    }
  }
  .container a{ color:#2ccf6d}
</style>
  <body>
    <main>
      <div class="container">
        <div class="row">
          <div class="col-md-6 align-self-center">
            <h1>404</h1>
            <h2>UH OH! 页面丢失</h2>
            <div id="bgc" class="bgc">
                <p>您所寻找的页面不存在。请在<span id="bgm">5</span>秒后点击按钮，返回主页</p>
            </div>
            <a href="/"><button  id="time" class="btn green">返回首页</button></a>
          </div>
        </div>
      </div>
      <script>
          function closeAds() {
              document.getElementById('bgc').style.display = "none";
              document.getElementById('time').style.display = "block";
          }
          var oCount5s = document.getElementById("bgm").innerText
          var second = parseInt(oCount5s)
          function countDown() {
              second -= 1;
              document.getElementById("bgm").innerText = second;

          }
          var countDown = setInterval(countDown, 1000)
          setInterval(function () {

              if (second === 0) {
                  closeAds();
                  clearInterval(countDown);
              }
          }, 1000)



      </script>
  </body>
</html>