<!DOCTYPE html>
<html lang="zh-TW">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>系統維護中 - WOOO TECH</title>
    <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4F46E5;
            --secondary: #7C3AED;
            --accent: #06B6D4;
            --bg-glass: rgba(255, 255, 255, 0.8);
            --text-main: #1F2937;
        }

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

        body {
            font-family: 'Outfit', sans-serif;
            background: #0f172a;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }

        /* Animated Mesh Gradient Background */
        .bg-gradient {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background:
                radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
            z-index: 1;
        }

        .container {
            position: relative;
            z-index: 10;
            background: var(--bg-glass);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 32px;
            padding: 60px 40px;
            max-width: 550px;
            width: 90%;
            text-align: center;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .logo-section {
            margin-bottom: 40px;
        }

        .logo-section img {
            height: 80px;
            filter: drop-shadow(0 0 15px rgba(79, 70, 229, 0.3));
        }

        h1 {
            color: var(--text-main);
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 24px;
            letter-spacing: -0.025em;
        }

        p {
            color: #4B5563;
            font-size: 1.15rem;
            line-height: 1.8;
            margin-bottom: 12px;
            font-weight: 400;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 12px 28px;
            border-radius: 9999px;
            font-weight: 600;
            margin-top: 32px;
            box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
            }

            50% {
                transform: scale(1.02);
                box-shadow: 0 15px 25px -3px rgba(79, 70, 229, 0.6);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
            }
        }

        .footer-time {
            margin-top: 40px;
            color: #9CA3AF;
            font-size: 0.9rem;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            padding-top: 20px;
        }

        /* Floating elements for "AI/Tech" vibe */
        .orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(60px);
            z-index: 2;
            opacity: 0.4;
            animation: float 10s infinite alternate;
        }

        .orb-1 {
            width: 300px;
            height: 300px;
            background: var(--primary);
            top: -100px;
            left: -100px;
        }

        .orb-2 {
            width: 400px;
            height: 400px;
            background: var(--accent);
            bottom: -150px;
            right: -150px;
            animation-delay: -5s;
        }

        @keyframes float {
            from {
                transform: translate(0, 0);
            }

            to {
                transform: translate(50px, 50px);
            }
        }

        @media (max-width: 480px) {
            h1 {
                font-size: 1.8rem;
            }

            p {
                font-size: 1rem;
            }

            .container {
                padding: 40px 24px;
            }
        }
    </style>
</head>

<body>
    <div class="bg-gradient"></div>
    <div class="orb orb-1"></div>
    <div class="orb orb-2"></div>

    <div class="container">
        <div class="logo-section">
            <img src="/static/images/logo.png" alt="WOOO TECH"
                onerror="this.src='https://cdn-icons-png.flaticon.com/512/3252/3252971.png';">
        </div>
        <h1>正在進行系統升級</h1>
        <p>為了提供更穩定的網站服務</p>
        <p>系統正在進行必要的維護與優化</p>
        <p>造成不便，敬請見諒</p>

        <div class="status-badge">
            <i class="fas fa-tools"></i>
            <span>維護升級中</span>
        </div>

        <div class="footer-time" id="current-time"></div>
    </div>

    <script>
        function updateTime() {
            try {
                const now = new Date();
                const timeStr = now.toLocaleString('zh-TW', {
                    timeZone: 'Asia/Taipei',
                    year: 'numeric',
                    month: '2-digit',
                    day: '2-digit',
                    hour: '2-digit',
                    minute: '2-digit',
                    second: '2-digit'
                });
                document.getElementById('current-time').textContent = '台北標準時間：' + timeStr;
            } catch (e) {
                console.error(e);
            }
        }
        updateTime();
        setInterval(updateTime, 1000);
    </script>
</body>

</html>