<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="refresh" content="5;url=https://app.upstory.ai">
    <title>网站已迁移</title>
    <style>
        * {
            box-sizing: border-box;
        }

        html,
        body {
            margin: 0;
            padding: 0;
            min-height: 100%;
        }

        body {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
            background: #f7f8fa;
            color: #1f2937;
        }

        .card {
            width: 90%;
            max-width: 520px;
            padding: 40px 32px;
            text-align: center;
            background: #ffffff;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        }

        h1 {
            margin: 0 0 16px;
            font-size: 26px;
            line-height: 1.4;
            font-weight: 700;
            color: #111827;
        }

        p {
            margin: 10px 0;
            color: #4b5563;
            line-height: 1.7;
            font-size: 16px;
        }

        .count {
            margin: 24px auto;
            width: 88px;
            height: 88px;
            line-height: 88px;
            border-radius: 50%;
            background: #2563eb;
            color: #ffffff;
            font-size: 42px;
            font-weight: 700;
        }

        a {
            color: #2563eb;
            text-decoration: none;
            word-break: break-all;
        }

        a:hover {
            text-decoration: underline;
        }

        .tips {
            margin-top: 18px;
            font-size: 14px;
            color: #6b7280;
        }
    </style>
</head>
<body>
    <div class="card">
        <h1>网站已迁移</h1>
        <p>当前网站已关闭，即将跳转到新地址：</p>
        <p>
            <a href="https://app.upstory.ai">https://app.upstory.ai</a>
        </p>

        <div class="count" id="count">5</div>

        <p>页面将在 <span id="textCount">5</span> 秒后自动跳转。</p>
        <p class="tips">如果没有自动跳转，请点击上方链接。</p>
    </div>

    <script>
        var seconds = 5;
        var target = "https://app.upstory.ai";

        var timer = setInterval(function () {
            seconds = seconds - 1;

            var countEl = document.getElementById("count");
            var textCountEl = document.getElementById("textCount");

            if (countEl) {
                countEl.innerText = seconds;
            }

            if (textCountEl) {
                textCountEl.innerText = seconds;
            }

            if (seconds <= 0) {
                clearInterval(timer);
                window.location.href = target;
            }
        }, 1000);
    </script>
</body>
</html>