<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>404 - 页面不存在</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }
        .container {
            text-align: center;
            background-color: #fff;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        h1 {
            font-size: 48px;
            color: #333;
            margin: 0;
        }
        p {
            font-size: 18px;
            color: #666;
            margin: 10px 0 20px;
        }
        a {
            color: #007BFF;
            text-decoration: none;
        }
        a:hover {
            text-decoration: underline;
        }
        .countdown {
            font-size: 16px;
            color: #999;
            margin-top: 20px;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>404</h1>
        <p>抱歉，您访问的页面不存在。</p>
        <p>将在 <span id="countdown">3</span> 秒后自动跳转到<a href="/">首页</a>。</p>
        <p class="countdown">如果未自动跳转，请<a href="/">点击这里</a>。</p>
    </div>

    <script>
        let time = 3;
        const countdownElement = document.getElementById('countdown');

        const timer = setInterval(() => {
            time--;
            countdownElement.textContent = time;
            if (time === 0) {
                clearInterval(timer);
                window.location.href = '/';
            }
        }, 1000);
    </script>
</body>
</html>
