<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<title>404 Not Found</title>
		<style>
body {
	font-family: "Microsoft Yahei", sans-serif;
	text-align: center;
	padding-top: 80px;
	color: #333;
}
.code-title {
	font-size: 24px;
	font-weight: bold;
	color: #dc3545;
}
hr {
	width: 50%;
	margin: 30px auto;
}
.desc-text {
	font-size: 16px;
}
.ip-line {
	font-size: 18px;
	margin-top: 25px;
}
.footer-tip {
	margin-top: 35px;
	font-size: 14px;
	color: #666;
}
		</style>
	</head>
	<body>
		<div class="code-title">404 Not Found</div>
		<hr>
		<div class="desc-text">您访问的地址不存在、路径输入错误或资源已被删除</div>

		<div class="ip-line">访问源IP地址：<span id="clientIp"></span></div>

		<div class="footer-tip">沈阳航空航天大学数据业务服务部 | 访问行为已日志留存</div>

		<script>
			(async function(){
				let ipAddr = "无法获取访问IP";
				try {
					const res = await fetch(window.location.href, {method: "HEAD"});
					const ip = res.headers.get("X-Client-Real-IP");
					if(ip) ipAddr = ip;
				} catch (err) {}
				document.getElementById("clientIp").innerText = ipAddr;
			})();
		</script>
	</body>
</html>
