<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>页面未找到 – 平安官网</title>
  <style>
    html,
    body,
    button,
    div,
    a {
      padding: 0;
      margin: 0;
      -moz-appearance: none;
      -ms-progress-appearance: none;
      -webkit-appearance: none;
      appearance: none;
      -webkit-tap-highlight-color: transparent;
    }
    
    body {
      position: fixed;
      top: 0;
      bottom: 0;
      right: 0;
      left: 0;
      margin: 0 auto;
    }
    body::-webkit-scrollbar {
      display: none;
    }
    #box {
      padding-top: 30px;
      text-align: center;
      width: 100%;
      position: absolute;
      top: 0;
      bottom: 0;
      right: 0;
      left: 0;
      margin: 0 auto;
    }
    .btn a {
      width: 100%;
      height: 100%;
      display: block;
      line-height: 49px;
      font-size: 24px;
      color: #fff;
      text-decoration: none
    }

    .img-404 {
      width: 945px;
      margin: 0 auto;
    }
    .not-found {
      font-size: 26px;
      color: #1e1e1e;
      margin: 30px auto 0;
    }

    .skip {
      font-size: 18px;
      color: #a5a5a5;
      margin: 0 auto 10px;
    }

    @media only screen and (max-width:800px) {

      html,
      body {
        width: 100vw;
        height: 100vh;
      }

      #box {
        text-align: center
      }

      .img-404 {
        width: 100%;
        -webkit-user-select: none;
        user-select: none;
        cursor: pointer;
        -webkit-pointer-events: none;
        pointer-events: none;
      }
    }
  </style>
  <script src="//script2.pingan.com/app_js/sdc/prd/sdc9.js"></script>
  <script src="//hm.baidu.com/hm.js?d06f8617511c35d7eaaa23e187cd568e"></script>
  <script>
    window.isEnPage = document.referrer.indexOf('/english/') > -1;
  </script>
</head>

<body>
  <div id="box">
    <img id="img404" class="img-404" src="http://bank.pingan.com/app_images/privatebank/404-PC-2020.png" alt="404">
    <p class="not-found"><script>document.writeln(isEnPage ? 'The page has disappeared or does not exist' : '页面已消失或不存在')</script></p>
    <p class="skip" id="skip-label"></p>
  </div>
  <script>
	function setSkipLabel (value) {
	    var skipLabel = document.getElementById('skip-label');
	    var str = value + '秒后返回首页';
	    if(isEnPage) {
	      str = 'Return to home page in ' + value + ' seconds';
	    }
	    skipLabel.innerHTML = str;
	}
	
	var totalTime = 3000
	var secondInterval = 1000
	var count = totalTime / secondInterval

	setSkipLabel(count)

	setInterval(function () {
		count--
		setSkipLabel(count)
	}, secondInterval)

    var _hmt = _hmt || [];
	var img = document.getElementById('img404');

    var url = isEnPage ? 'https://bank.pingan.com/english/index.shtml' : 'http://bank.pingan.com';

    isAssetPingAnCom();

    judgeBrowser();

	setTimeout(function () {
      location.href = url;
	}, totalTime)

    function judgeBrowser() {
      if ((/AppleWebKit.*Mobile/i.test(navigator.userAgent) || /MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent)) || (/iPad/i.test(navigator.userAgent))) {
        url = '//m.pingan.com';
        img.src = '/app_images/huodong/404-M.png';
      }
    }
    function isAssetPingAnCom() {
      if (/asset\.pingan\.com/.test(document.URL)) {
        location.href = '//asset.pingan.com/';
        return true;
      } else if (/pazl\.pingan\.cn/.test(document.URL)) {
        location.href = '//pazl.pingan.cn/';
        return true;
      }

    }
  </script>
</body>

</html>