<!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>
<link rel="stylesheet" href="http://miaoda.feishu.cn/fonts/css2?family=Baloo+2:wght@600;700;800&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" />
<style>
  :root {
    --bg-1: #fdf6ff;
    --bg-2: #eef4ff;
    --bg-3: #f0fff8;
    --ink: #2d3145;
    --muted: #7d849c;
    --card: rgba(255, 255, 255, 0.75);
    --pink: #ff8fb8;
    --purple: #a78bfa;
    --blue: #60a5fa;
    --mint: #34d399;
    --yellow: #fbbf24;
    --shadow: 0 20px 50px rgba(120, 110, 200, 0.18);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { height: 100%; }

  body {
    font-family: "Noto Sans SC", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  /* ===== 漂浮光斑 ===== */
  .blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.55;
    z-index: 0;
    animation: drift 12s ease-in-out infinite alternate;
  }
  .blob.b1 { width: 380px; height: 380px; background: #ffd6e6; top: -100px; left: -80px; }
  .blob.b2 { width: 320px; height: 320px; background: #d6e6ff; bottom: -80px; right: -60px; animation-delay: -4s; }
  .blob.b3 { width: 260px; height: 260px; background: #d9f7e8; top: 40%; right: 15%; animation-delay: -8s; }

  @keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.1); }
  }

  /* ===== 漂浮小几何 ===== */
  .floaty {
    position: fixed;
    z-index: 1;
    animation: floaty 7s ease-in-out infinite;
  }
  .floaty .circle {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
  }
  .floaty .star {
    color: var(--yellow);
    filter: drop-shadow(0 4px 10px rgba(251, 191, 36, 0.4));
  }
  .floaty .ring {
    border: 3px solid var(--blue);
    border-radius: 50%;
    opacity: 0.6;
  }
  .f1 { top: 18%; left: 12%; animation-delay: -1s; }
  .f1 .circle { width: 26px; height: 26px; }
  .f2 { top: 24%; right: 14%; animation-delay: -3s; }
  .f2 .star { font-size: 34px; }
  .f3 { bottom: 20%; left: 18%; animation-delay: -5s; }
  .f3 .ring { width: 34px; height: 34px; }
  .f4 { bottom: 26%; right: 20%; animation-delay: -2s; }
  .f4 .circle { width: 18px; height: 18px; background: linear-gradient(135deg, var(--mint), var(--blue)); }

  @keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-22px) rotate(12deg); }
  }

  /* ===== 主体 ===== */
  .wrap {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 24px;
    max-width: 720px;
  }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--purple);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(167, 139, 250, 0.25);
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 26px;
    box-shadow: 0 6px 18px rgba(167, 139, 250, 0.15);
  }

  .badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
  }

  /* ===== 大字 ===== */
  .title {
    font-family: "Baloo 2", "Noto Sans SC", sans-serif;
    font-weight: 800;
    font-size: clamp(130px, 26vw, 240px);
    line-height: 0.9;
    letter-spacing: 0.01em;
    background: linear-gradient(120deg, var(--pink) 0%, var(--purple) 45%, var(--blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 16px 30px rgba(167, 139, 250, 0.3));
    user-select: none;
    animation: breathe 4s ease-in-out infinite;
  }

  @keyframes breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-8px) scale(1.02); }
  }

  .subtitle {
    margin-top: 20px;
    font-size: clamp(18px, 2.6vw, 24px);
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .desc {
    margin: 12px auto 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    max-width: 440px;
  }

  /* ===== 信息卡片 ===== */
  .card {
    margin: 26px auto 0;
    max-width: 460px;
    text-align: left;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
  }

  .card .row { display: flex; gap: 12px; line-height: 1.9; font-size: 13px; }
  .card .k { min-width: 84px; color: var(--purple); font-weight: 600; }
  .card .v { color: var(--ink); word-break: break-all; }
  .card .v.lost { color: var(--pink); font-weight: 600; }

  /* ===== 按钮 ===== */
  .actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn {
    font-family: "Noto Sans SC", sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 14px 30px;
    border-radius: 14px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: #fff;
    box-shadow: 0 12px 26px rgba(167, 139, 250, 0.35);
  }
  .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(167, 139, 250, 0.45); }

  .btn-ghost {
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
    border: 1px solid rgba(125, 132, 156, 0.25);
  }
  .btn-ghost:hover { transform: translateY(-3px); border-color: var(--purple); color: var(--purple); }

  .btn svg { width: 16px; height: 16px; }

  /* 底部 */
  .footer {
    position: fixed;
    bottom: 18px;
    left: 0; right: 0;
    z-index: 3;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: rgba(125, 132, 156, 0.7);
  }

  /* 云朵装饰 */
  .cloud {
    position: fixed;
    z-index: 0;
    opacity: 0.7;
    animation: floaty 9s ease-in-out infinite;
  }
  .cloud.c1 { top: 12%; left: 22%; animation-delay: -2s; }
  .cloud.c2 { bottom: 14%; right: 26%; animation-delay: -6s; }

  @media (max-width: 600px) {
    .actions { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .card .k { min-width: 70px; }
  }
</style>
</head>
<body>

<div class="blob b1"></div>
<div class="blob b2"></div>
<div class="blob b3"></div>

<div class="floaty f1"><div class="circle"></div></div>
<div class="floaty f2"><div class="star">★</div></div>
<div class="floaty f3"><div class="ring"></div></div>
<div class="floaty f4"><div class="circle"></div></div>

<svg class="cloud c1" width="90" height="40" viewBox="0 0 90 40" fill="#fff">
  <ellipse cx="28" cy="28" rx="20" ry="12"/>
  <ellipse cx="50" cy="20" rx="22" ry="15"/>
  <ellipse cx="66" cy="29" rx="18" ry="10"/>
</svg>
<svg class="cloud c2" width="70" height="32" viewBox="0 0 90 40" fill="#fff">
  <ellipse cx="28" cy="28" rx="20" ry="12"/>
  <ellipse cx="50" cy="20" rx="22" ry="15"/>
  <ellipse cx="66" cy="29" rx="18" ry="10"/>
</svg>

<main class="wrap">
  <div class="badge"><span class="dot"></span>PAGE NOT FOUND</div>

  <h1 class="title">404</h1>

  <p class="subtitle">哎呀，这个页面迷路啦</p>
  <p class="desc">它可能已经搬走、被删掉，或者地址少打了一个字符。别急，沿着下面的路径就能回到主路。</p>

  <div class="card">
    <div class="row"><span class="k">状态</span><span class="v lost">404 · 未找到</span></div>
    <div class="row"><span class="k">地址</span><span class="v" id="reqPath">/unknown/route</span></div>
    <div class="row"><span class="k">提示</span><span class="v">检查链接拼写，或从首页重新出发</span></div>
  </div>

  <div class="actions">
    <a class="btn btn-primary" href="/">
      <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 10.5 12 3l9 7.5"/><path d="M5 9.5V21h14V9.5"/></svg>
      回到首页
    </a>
    <button class="btn btn-ghost" id="retryBtn" type="button">
      <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12a9 9 0 1 1-2.64-6.36"/><path d="M21 3v6h-6"/></svg>
      再试一次
    </button>
  </div>
</main>

<div class="footer">MADE WITH · 温柔色彩 · 2026</div>

<script>
  document.getElementById('reqPath').textContent =
    location.pathname + location.search || '/unknown/route';

  document.getElementById('retryBtn').addEventListener('click', () => location.reload());

  // 鼠标轻微视差：漂浮元素反向跟随
  const floaties = document.querySelectorAll('.floaty, .cloud');
  window.addEventListener('mousemove', e => {
    const dx = (e.clientX / window.innerWidth - 0.5) * 14;
    const dy = (e.clientY / window.innerHeight - 0.5) * 10;
    floaties.forEach((el, i) => {
      const factor = (i % 2 === 0 ? 1 : -1) * 0.6;
      el.style.translate = `${dx * factor}px ${dy * factor}px`;
    });
  });
</script>
</body>
</html>
