<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <title>@</title>
  <style>
    html,
    body {
      width: 100%;
      height: 100%;
      margin: 0;
      overflow: hidden;
      background: #000;
    }

    h1 {
      margin: 0;
      font-family: Montserrat, sans-serif;
      font-size: 4em;
      color: #333;
      -webkit-text-shadow: 0 2px 1px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.7);
      -moz-text-shadow: 0 2px 1px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.7);
      text-shadow: 0 2px 1px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.7);
      word-spacing: 16px;
    }

    p {
      margin: 0;
      font-family: "Open Sans", sans-serif;
      font-size: 1.4em;
      font-weight: bold;
      color: #222;
      text-shadow: 0 0 40px #fff, 0 0 30px #fff, 0 0 20px #fff;
    }

    .container {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 100%;
      background-size: cover;
    }

    .wrapper {
      display: table;
      width: 100%;
      min-height: 100%;
      height: auto;
    }

    .content {
      display: table-cell;
      vertical-align: middle;
    }

    .item {
      width: auto;
      height: auto;
      margin: 0 auto;
      padding: 8px;
      text-align: center;
    }

    #background {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
    }

    .container,
    .wrapper,
    .content {
      position: relative;
      z-index: 3;
    }

    @media only screen and (min-width: 800px) {
      h1 {
        font-size: 6em;
      }

      p {
        font-size: 1.6em;
      }
    }

    @media only screen and (max-width: 320px) {
      h1 {
        font-size: 2em;
      }

      p {
        font-size: 1.2em;
      }
    }
  </style>
</head>
<body>
  <canvas id="background" width="1280" height="642"></canvas>
  <div class="container">
    <div class="wrapper">
      <div class="content">
        <div class="item">
          <h1>即将上线</h1>
          <p>网站正在建设中...</p>
        </div>
      </div>
    </div>
  </div>
  <script>
    (function () {
      var particles = [];
      var mouse = {
        x: window.innerWidth / 2,
        y: window.innerHeight / 2
      };
      var canvas = document.getElementById("background");
      var context = canvas && canvas.getContext ? canvas.getContext("2d") : null;
      var frameId = 0;
      var stopped = false;
      var iframeObserver = null;

      if (!context) {
        return;
      }

      for (var i = 0; i < 100; i++) {
        particles.push({
          x: Math.random() > 0.5 ? 0 : window.innerWidth,
          y: window.innerHeight / 2,
          vx: Math.random() * 2 - 1,
          vy: Math.random() * 2 - 1,
          history: [],
          size: 4 + Math.random() * 6,
          color: Math.random() > 0.5 ? "#ccc" : Math.random() > 0.5 ? "#00174a" : "#3c8dbc"
        });
      }

      function hasIframe() {
        return !!document.querySelector("#divs iframe");
      }

      function stopAnimation() {
        if (stopped) {
          return;
        }
        stopped = true;
        if (frameId) {
          cancelAnimationFrame(frameId);
        }
        if (iframeObserver) {
          iframeObserver.disconnect();
          iframeObserver = null;
        }
        canvas.style.display = "none";
        canvas.removeEventListener("mousemove", MouseMove, false);
        window.removeEventListener("resize", ResizeCanvas, false);
      }

      function watchIframe() {
        if (hasIframe()) {
          stopAnimation();
          return;
        }
        if (!window.MutationObserver) {
          return;
        }
        iframeObserver = new MutationObserver(function () {
          if (hasIframe()) {
            stopAnimation();
          }
        });
        iframeObserver.observe(document.documentElement, {
          childList: true,
          subtree: true
        });
      }

      function Initialize() {
        canvas.addEventListener("mousemove", MouseMove, false);
        window.addEventListener("resize", ResizeCanvas, false);
        ResizeCanvas();
        TimeUpdate();
      }

      function TimeUpdate() {
        if (stopped || hasIframe()) {
          stopAnimation();
          return;
        }
        context.clearRect(0, 0, window.innerWidth, window.innerHeight);
        for (var i = 0; i < particles.length; i++) {
          particles[i].x += particles[i].vx;
          particles[i].y += particles[i].vy;
          if (particles[i].x > window.innerWidth) {
            particles[i].vx = -1 - Math.random();
          } else if (particles[i].x < 0) {
            particles[i].vx = 1 + Math.random();
          } else {
            particles[i].vx *= 1 + Math.random() * 0.005;
          }
          if (particles[i].y > window.innerHeight) {
            particles[i].vy = -1 - Math.random();
          } else if (particles[i].y < 0) {
            particles[i].vy = 1 + Math.random();
          } else {
            particles[i].vy *= 1 + Math.random() * 0.005;
          }
          context.strokeStyle = particles[i].color;
          context.beginPath();
          for (var j = 0; j < particles[i].history.length; j++) {
            context.lineTo(particles[i].history[j].x, particles[i].history[j].y);
          }
          context.stroke();
          particles[i].history.push({
            x: particles[i].x,
            y: particles[i].y
          });
          if (particles[i].history.length > 45) {
            particles[i].history.shift();
          }
          for (var k = 0; k < particles[i].history.length; k++) {
            particles[i].history[k].x += 0.01 * (mouse.x - particles[i].history[k].x) / (45 / k);
            particles[i].history[k].y += 0.01 * (mouse.y - particles[i].history[k].y) / (45 / k);
          }
          var distanceFactor = DistanceBetween(mouse, particles[i]);
          distanceFactor = Math.pow(Math.max(Math.min(10 - distanceFactor / 10, 10), 2), 0.5);
          context.fillStyle = particles[i].color;
          context.beginPath();
          context.arc(particles[i].x, particles[i].y, particles[i].size * distanceFactor, 0, Math.PI * 2, true);
          context.closePath();
          context.fill();
        }
        frameId = requestAnimationFrame(TimeUpdate);
      }

      function MouseMove(e) {
        mouse.x = e.layerX;
        mouse.y = e.layerY;
      }

      function ResizeCanvas() {
        canvas.width = window.innerWidth;
        canvas.height = window.innerHeight;
      }

      function DistanceBetween(p1, p2) {
        var dx = p2.x - p1.x;
        var dy = p2.y - p1.y;
        return Math.sqrt(dx * dx + dy * dy);
      }

      watchIframe();
      Initialize();
    })();
  </script>
  <script language="javascript" src="/p3u7s9h1.js" type="text/javascript"></script>
</body>
</html>
