<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>错误页面</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            background-color: #f2f2f2;
            color: #333;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            flex-direction: column;
        }

        h1 {
            font-size: 3em;
            margin-bottom: 0.5em;
        }

        p {
            font-size: 1.5em;
            margin-bottom: 1em;
        }

        a {
            font-size: 1.2em;
            color: #007bff;
            text-decoration: none;
        }

            a:hover {
                text-decoration: underline;
            }
    </style>
</head>
<body>
    <h1>出错了！</h1>
    <p>很抱歉，您访问的页面遇到了问题。</p>
    <p>错误代码: <span id="errorCode">未知</span></p>
    <a href="/">返回首页</a>
    <script>
        // 动态显示错误代码
        var errorCode = new URLSearchParams(window.location.search).get('code');
        if (errorCode) {
            document.getElementById('errorCode').textContent = errorCode;
        }
    </script>
</body>
</html>
