<!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>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: #f8fafc;
            color: #334155;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            text-align: center;
        }
        
        .ErrorPage-container {
            max-width: 600px;
            width: 100%;
            padding: 40px;
        }
        
        .ErrorPage-title {
            font-size: 6rem;
            font-weight: 700;
            color: #3b82f6;
            margin-bottom: 10px;
            line-height: 1;
        }
        
        .ErrorPage-subtitle {
            font-size: 1.5rem;
            margin-bottom: 40px;
            color: #64748b;
            line-height: 1.4;
        }
        
        .Button {
            display: inline-block;
            padding: 12px 32px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 500;
            font-size: 1rem;
            transition: all 0.2s ease;
            border: none;
            cursor: pointer;
            outline: none;
        }
        
        .Button--primary {
            background-color: #3b82f6;
            color: white;
        }
        
        .Button--primary:hover {
            background-color: #2563eb;
            transform: translateY(-2px);
        }
        
        .Button--plain {
            background-color: transparent;
            color: #64748b;
            border: 1px solid #cbd5e1;
        }
        
        .Button--plain:hover {
            background-color: #f1f5f9;
            border-color: #94a3b8;
        }
        
        .Button--blue {
            color: #1bdd30;
        }
        
        .ErrorPage-primaryButton {
            margin-bottom: 20px;
        }
        
        .ErrorPage-otherButtonContainer {
            margin-top: 20px;
            color: #94a3b8;
            font-size: 0.95rem;
        }
        
        .ErrorPage-otherButton {
            margin-left: 8px;
        }
        
        @media (max-width: 768px) {
            .ErrorPage-title {
                font-size: 4rem;
            }
            
            .ErrorPage-subtitle {
                font-size: 1.2rem;
            }
        }
    </style>
</head>
<body>
    <div class="ErrorPage-container">
        <h1 class="ErrorPage-title">404</h1>
        <p class="ErrorPage-subtitle">你似乎来到了没有知识存在的荒原</p>
        
        <a class="Button Button--primary Button--blue ErrorPage-primaryButton" href="/">
            去往首页
        </a>
        
        <div class="ErrorPage-otherButtonContainer">
            或者
            <button class="Button Button--plain Button--blue ErrorPage-otherButton ErrorPage-goBackButton">
                返回上页
            </button>
        </div>
    </div>

    <script>
        // 返回上一页功能
        document.querySelector('.ErrorPage-goBackButton').addEventListener('click', function() {
            if (window.history.length > 1) {
                window.history.back();
            } else {
                // 如果没有上一页，则跳转到首页
                window.location.href = '/';
            }
        });
        
        // 首页按钮链接（根据实际情况修改）
        document.querySelector('.ErrorPage-primaryButton').href = '/';
    </script>
</body>
</html>