<!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; }

  body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fce4ec 0%, #e8eaf6 50%, #e0f7fa 100%);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    overflow: hidden;
  }

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

  /* ========== 可爱角色 ========== */
  .mascot {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    position: relative;
    animation: float 3s ease-in-out infinite;
  }

  .mascot-body {
    width: 160px;
    height: 140px;
    background: #fff;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 3px solid #f8bbd0;
  }

  /* 眼睛 */
  .eye {
    width: 18px;
    height: 22px;
    background: #37474f;
    border-radius: 50%;
    position: absolute;
    top: 45px;
    animation: blink 4s infinite;
  }
  .eye::after {
    content: "";
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 4px;
    right: 3px;
  }
  .eye.left  { left: 38px; }
  .eye.right { right: 38px; }

  /* 腮红 */
  .blush {
    width: 24px;
    height: 14px;
    background: #f48fb1;
    border-radius: 50%;
    opacity: 0.5;
    position: absolute;
    top: 72px;
  }
  .blush.left  { left: 22px; }
  .blush.right { right: 22px; }

  /* 嘴巴 - 委屈的小嘴 */
  .mouth {
    width: 30px;
    height: 14px;
    border: 3px solid #78909c;
    border-top: none;
    border-radius: 0 0 50% 50%;
    position: absolute;
    bottom: 38px;
    left: 50%;
    transform: translateX(-50%);
    /* 翻转变成委屈嘴 */
    animation: mouth-move 4s infinite;
  }

  /* 小问号气泡 */
  .question-bubble {
    width: 52px;
    height: 52px;
    background: #fff;
    border: 3px solid #ce93d8;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    right: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
    color: #ce93d8;
    animation: pop 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(206,147,216,0.25);
  }
  .question-bubble::after {
    content: "";
    width: 12px;
    height: 12px;
    background: #fff;
    border: 3px solid #ce93d8;
    border-radius: 50%;
    position: absolute;
    bottom: -10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
  }

  /* 小手 */
  .hand {
    width: 30px;
    height: 26px;
    background: #fff;
    border: 3px solid #f8bbd0;
    border-radius: 50%;
    position: absolute;
    bottom: 20px;
  }
  .hand.left  { left: -10px; transform: rotate(-15deg); animation: wave-left 2s ease-in-out infinite; }
  .hand.right { right: -10px; transform: rotate(15deg); animation: wave-right 2s ease-in-out infinite 0.3s; }

  /* ========== 文字部分 ========== */
  .error-code {
    font-size: 96px;
    font-weight: 900;
    background: linear-gradient(135deg, #f48fb1, #ce93d8, #90caf9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -2px;
  }

  .message {
    font-size: 22px;
    color: #546e7a;
    margin-bottom: 8px;
    font-weight: 500;
  }

  .sub-message {
    font-size: 15px;
    color: #90a4ae;
    margin-bottom: 32px;
  }

  /* ========== 按钮 ========== */
  .btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
  }

  .btn-primary {
    background: linear-gradient(135deg, #f48fb1, #ce93d8);
    color: #fff;
    box-shadow: 0 4px 15px rgba(244,143,177,0.4);
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244,143,177,0.5);
  }

  .btn-secondary {
    background: #fff;
    color: #78909c;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 2px solid #e0e0e0;
  }
  .btn-secondary:hover {
    transform: translateY(-2px);
    border-color: #ce93d8;
    color: #ce93d8;
    box-shadow: 0 8px 25px rgba(206,147,216,0.15);
  }

  /* ========== 背景装饰 ========== */
  .decorations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }

  .star {
    position: absolute;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
  }

  /* ========== 动画 ========== */
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
  }

  @keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
  }

  @keyframes mouth-move {
    0%, 40%, 100% { border-radius: 0 0 50% 50%; }
    50%, 80% { border-radius: 50%; height: 16px; width: 16px; }
  }

  @keyframes pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
  }

  @keyframes wave-left {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(-30deg) translateY(-5px); }
  }

  @keyframes wave-right {
    0%, 100% { transform: rotate(15deg); }
    50% { transform: rotate(30deg) translateY(-5px); }
  }

  @keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.3); }
  }

  /* ========== 倒计时 ========== */
  .countdown-bar {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #90a4ae;
  }
  .countdown-ring {
    width: 34px;
    height: 34px;
    position: relative;
  }
  .countdown-ring svg { transform: rotate(-90deg); }
  .countdown-ring circle { fill: none; stroke-width: 3; }
  .countdown-ring .bg { stroke: #e0e0e0; }
  .countdown-ring .fg {
    stroke: #ce93d8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
  }
  .countdown-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #78909c;
  }

  /* ========== 响应式 ========== */
  @media (max-width: 480px) {
    .error-code { font-size: 72px; }
    .message { font-size: 18px; }
    .mascot { width: 140px; height: 140px; }
    .mascot-body { width: 120px; height: 105px; }
    .eye { width: 14px; height: 17px; top: 34px; }
    .eye.left { left: 28px; }
    .eye.right { right: 28px; }
    .blush { top: 54px; width: 18px; height: 10px; }
    .blush.left { left: 16px; }
    .blush.right { right: 16px; }
    .mouth { bottom: 28px; }
    .hand { width: 24px; height: 20px; }
    .question-bubble { width: 40px; height: 40px; font-size: 20px; }
  }
</style>
</head>
<body><h1 style="font-size: 10px;">yl23411永利官网</h1>

<div class="decorations" id="decorations"></div>

<div class="scene">
  <div class="mascot">
    <div class="question-bubble">?</div>
    <div class="mascot-body">
      <div class="eye left"></div>
      <div class="eye right"></div>
      <div class="blush left"></div>
      <div class="blush right"></div>
      <div class="mouth"></div>
      <div class="hand left"></div>
      <div class="hand right"></div>
    </div>
  </div>

  <div class="error-code">404</div>
  <p class="message">哎呀，页面跑丢了~</p>
  <p class="sub-message">这个小可爱找不到你要的页面，要不回去看看？</p>

  <div class="btn-group">
    <a href="http://www.dgubd.com" class="btn btn-primary">
      <span>?</span> 回到首页
    </a>
    <button class="btn btn-secondary" onclick="history.back()">
      <span>←</span> 返回上一页
    </button>
  </div>

  <div class="countdown-bar">
    <div class="countdown-ring">
      <svg width="34" height="34">
        <circle class="bg" cx="17" cy="17" r="14"/>
        <circle class="fg" id="ring-fg" cx="17" cy="17" r="14"
                stroke-dasharray="87.96" stroke-dashoffset="0"/>
      </svg>
      <span class="countdown-num" id="countdown-num">10</span>
    </div>
    <span id="countdown-text">秒后自动返回上一页…</span>
  </div>
</div>

<script>
  // 生成背景装饰粒子
  (function() {
    var container = document.getElementById('decorations');
    var colors = ['#f48fb1', '#ce93d8', '#90caf9', '#a5d6a7', '#fff59d', '#ffab91'];
    for (var i = 0; i < 25; i++) {
      var star = document.createElement('div');
      star.className = 'star';
      var size = Math.random() * 10 + 4;
      star.style.width = size + 'px';
      star.style.height = size + 'px';
      star.style.left = Math.random() * 100 + '%';
      star.style.top = Math.random() * 100 + '%';
      star.style.background = colors[Math.floor(Math.random() * colors.length)];
      star.style.animationDelay = (Math.random() * 3) + 's';
      star.style.animationDuration = (Math.random() * 2 + 2) + 's';
      container.appendChild(star);
    }
  })();

  // 倒计时自动返回
  (function() {
    var TOTAL = 10;
    var remaining = TOTAL;
    var CIRCUMFERENCE = 87.96; // 2 * π * 14
    var numEl = document.getElementById('countdown-num');
    var fgEl  = document.getElementById('ring-fg');
    var textEl = document.getElementById('countdown-text');

    var timer = setInterval(function() {
      remaining--;
      if (numEl) numEl.textContent = remaining;
      if (fgEl) {
        var offset = CIRCUMFERENCE * (1 - remaining / TOTAL);
        fgEl.setAttribute('stroke-dashoffset', offset);
      }
      if (remaining <= 0) {
        clearInterval(timer);
        if (textEl) textEl.textContent = '正在返回…';
        setTimeout(function() { history.back(); }, 400);
      }
    }, 1000);

    // 用户点击任意按钮时清除定时器
    document.querySelectorAll('.btn').forEach(function(btn) {
      btn.addEventListener('click', function() { clearInterval(timer); });
    });
  })();
</script>

</body>
</html>
