<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>访问安全检测中</title>
<style>
*{margin:0;padding:0;color:#444}
body{font-size:14px;font-family:"宋体"}
.main{width:600px;margin:10% auto;}
.title{background: #20a53a;color: #fff;font-size: 16px;height: 40px;line-height: 40px;padding-left: 20px;}
.content{background-color:#f3f7f9; height:310px;border:1px dashed #c6d9b6;padding:20px}
.t1{border-bottom: 1px dashed #c6d9b6;color: #ff4000;font-weight: bold; margin: 0 0 20px; padding-bottom: 18px;}
.t2{margin-bottom:8px; font-weight:bold}
ol{margin:0 0 20px 22px;padding:0;}
ol li{line-height:30px}

/* 进度条样式 */
.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.progress-bar {
    height: 30px;
    background: linear-gradient(90deg, #20a53a 0%, #28c945 100%);
    width: 0%;
    border-radius: 10px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}
.progress-text {
    text-align: center;
    margin-top: 10px;
    color: #20a53a;
    font-weight: bold;
}
.links {
    margin-top: 15px;
    text-align: center;
}
.links a {
    margin: 0 10px;
    color: #20a53a;
    text-decoration: none;
}
.links a:hover {
    text-decoration: underline;
}

/* 页脚样式 */
.footer {
    text-align: center;
    margin-top: 20px;
    padding: 15px 0;
    color: #999;
    font-size: 12px;
}
</style>
</head>
<body>
	<div class="main">
		<div class="title">访问安全检测中</div>
		<div class="content">
			<p class="t1">Web Application Firewall 正在执行安全策略验证</p>
			
			<!-- 进度条 -->
			<div class="progress-container">
				<div class="progress-bar" id="progressBar">0%</div>
			</div>
			<div class="progress-text" id="progressText">正在初始化安全检测...</div>
			
			<p class="t2">触发机制：</p>
			<ol>
				<li>检测到请求特征符合异常流量模式</li>
				<li>User-Agent 或请求头需要进一步验证</li>
			</ol>
			<p class="t2">验证流程：</p>
			<ol>
				<li>执行 JavaScript 质询验证（JS Challenge）</li>
				<li>通过后将颁发安全令牌并自动放行</li>
			</ol>
			<div class="links">
				<a href="/cookie.shtml" role="link" aria-label="隐私与Cookie" onclick="return false;">隐私与Cookie</a>
				<a href="/about.shtml" role="link" aria-label="使用条款" onclick="return false;">使用条款</a>
				<a href="/contact.shtml" role="link" aria-label="联系管理员" onclick="return false;">联系管理员</a>
			</div>
		</div>
		
		<!-- 页脚版权信息 -->
		<div class="footer">
			© 2026 · 安全网关保护中
		</div>
	</div>

	<script>
		// 进度条动画
		let progress = 0;
		const progressBar = document.getElementById('progressBar');
		const progressText = document.getElementById('progressText');
		
		const stages = [
			{ percent: 15, text: '正在执行 TLS 指纹识别...' },
			{ percent: 30, text: '正在验证 HTTP 请求头...' },
			{ percent: 50, text: '正在分析客户端特征...' },
			{ percent: 70, text: '正在执行 JS Challenge...' },
			{ percent: 85, text: '正在颁发安全令牌...' },
			{ percent: 100, text: '验证通过，正在放行请求...' }
		];
		
		let currentStage = 0;
		
		function updateProgress() {
			if (currentStage < stages.length) {
				const targetPercent = stages[currentStage].percent;
				const stageText = stages[currentStage].text;
				
				// 平滑增加进度
				const interval = setInterval(() => {
					if (progress < targetPercent) {
						progress++;
						progressBar.style.width = progress + '%';
						progressBar.textContent = progress + '%';
					} else {
						clearInterval(interval);
						progressText.textContent = stageText;
						currentStage++;
						
						// 每个阶段之间停顿一下
						setTimeout(updateProgress, 800);
					}
				}, 30);
			} else {
				// 检测完成后的操作（可以在这里添加跳转逻辑）
				setTimeout(() => {
					 window.location.href = '/wap.html'; // 取消注释以启用自动跳转
					progressText.textContent = '安全令牌已颁发，访问已授权。';
				}, 1000);
			}
		}
		
		// 页面加载后开始进度条动画
		window.onload = function() {
			setTimeout(updateProgress, 500);
		};
	</script>
</body>
<!--9.7.0 2025-06-27  -->
</html>