<!DOCTYPE html>
<html lang="en">
<head>
    <title>404 - Page Not Found</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="404 Not Found - The requested page could not be found">
    <meta name="robots" content="noindex">
    <style>
        :root {
            --bg-color: #000000;
            --text-color: #e5e5e5;
            --line-color: rgba(255, 255, 255, 0.06);
            --glitch-color-1: rgba(255, 255, 255, 0.6);
            --glitch-color-2: rgba(255, 255, 255, 0.4);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        @keyframes glitch {
            0% {
                clip-path: inset(40% 0 61% 0);
                transform: translate(-3px, -1px);
            }
            20% {
                clip-path: inset(92% 0 1% 0);
                transform: translate(3px, 1px);
            }
            40% {
                clip-path: inset(43% 0 1% 0);
                transform: translate(-3px, 1px);
            }
            60% {
                clip-path: inset(25% 0 58% 0);
                transform: translate(3px, -1px);
            }
            80% {
                clip-path: inset(54% 0 7% 0);
                transform: translate(-3px, 1px);
            }
            100% {
                clip-path: inset(58% 0 43% 0);
                transform: translate(3px, -1px);
            }
        }

        @keyframes scanline {
            0% {
                transform: translateY(-100%);
            }
            100% {
                transform: translateY(100%);
            }
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.95; }
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-color);
            color: var(--text-color);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }

        .scanlines {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: repeating-linear-gradient(
                to bottom,
                var(--line-color),
                var(--line-color) 1px,
                transparent 1px,
                transparent 6px
            );
            pointer-events: none;
            z-index: 2;
            opacity: 0.4;
        }

        .scanline {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 8px;
            background: linear-gradient(
                to bottom,
                transparent,
                var(--line-color),
                transparent
            );
            animation: scanline 8s linear infinite;
            z-index: 3;
            opacity: 0.2;
        }

        .container {
            position: relative;
            z-index: 1;
            text-align: center;
        }

        .error-code {
            font-size: clamp(8rem, 22vw, 14rem);
            font-weight: 200;
            line-height: 1;
            color: var(--text-color);
            text-shadow: 1px 1px var(--line-color);
            animation: blink 5s infinite;
            position: relative;
            letter-spacing: -0.01em;
        }

        .error-code::before,
        .error-code::after {
            content: "404";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            animation: glitch 5s infinite linear alternate-reverse;
        }

        .error-code::before {
            color: var(--glitch-color-1);
            clip-path: inset(0 0 0 0);
            animation-delay: -2s;
        }

        .error-code::after {
            color: var(--glitch-color-2);
            clip-path: inset(0 0 0 0);
            animation-delay: -1s;
        }

        .message {
            font-size: clamp(0.875rem, 1.2vw, 1rem);
            color: var(--text-color);
            margin-top: 2rem;
            display: none;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            text-shadow: 0 0 1px var(--line-color);
            position: relative;
            animation: blink 8s infinite;
            opacity: 0.7;
            font-weight: 300;
        }

        .message.active {
            display: block;
        }

        @media (max-width: 768px) {
            .error-code {
                font-size: clamp(5rem, 18vw, 10rem);
            }
            .message {
                font-size: 0.75rem;
                letter-spacing: 0.15em;
            }
            .scanlines {
                background: repeating-linear-gradient(
                    to bottom,
                    var(--line-color),
                    var(--line-color) 1px,
                    transparent 1px,
                    transparent 4px
                );
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .scanline,
            .error-code::before,
            .error-code::after {
                animation: none;
            }
        }
    </style>
</head>
<body>
    <div class="scanlines"></div>
    <div class="scanline"></div>
    <div class="container">
        <div class="error-code">404</div>
        <div class="message" data-lang="zh">页面未找到</div>
        <div class="message" data-lang="zh-TW">頁面未找到</div>
        <div class="message" data-lang="ja">ページが見つかりません</div>
        <div class="message" data-lang="ko">페이지를 찾을 수 없습니다</div>
        <div class="message" data-lang="en">Page not found</div>
    </div>

    <script>
        function setLanguage() {
            const userLanguages = navigator.languages || [navigator.language || navigator.userLanguage];
            const supportedLanguages = ['zh', 'zh-TW', 'ja', 'ko', 'en'];
            
            let userLang = userLanguages[0];
            let langBase = userLang.split('-')[0];
            
            if (langBase === 'zh') {
                userLang = userLang.includes('TW') || userLang.includes('HK') || userLang.includes('MO') 
                    ? 'zh-TW' : 'zh';
            } else {
                userLang = supportedLanguages.includes(langBase) ? langBase : 'en';
            }
            
            document.querySelectorAll('[data-lang]').forEach(el => {
                el.style.display = el.getAttribute('data-lang') === userLang ? 'block' : 'none';
            });
        }

        document.addEventListener('DOMContentLoaded', setLanguage);
    </script>
</body>
</html> 