<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>结果</title>
    <style>
      :root {
        --bg: #ffffff;
        --accent: #0969da; /* 蓝色主题 */
        --accent-light: #218bff;
        --text: #1f2328;
        --sub: #57606a;
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      html,
      body {
        height: 100%;
      }

      body {
        font-family:
          "PingFang SC",
          "Microsoft YaHei",
          -apple-system,
          BlinkMacSystemFont,
          "Segoe UI",
          sans-serif;
        background: var(--bg);
        color: var(--text);
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100vh;
        overflow: hidden;
      }

      /* 顶部一条极简 nginx 绿线 */
      .topbar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--accent);
      }

      .container {
        text-align: center;
        padding: 24px;
        margin-top: clamp(24px, 5vh, 50px);
      }

      /* 后端可替换区域：占满页面剩余高度 + 滚动条 */
      #solt {
        width: 90%;
        flex: 1 1 auto;
        overflow-y: auto;
        margin: 12px 0 44px; /* 底部留白避免被 nginx 标记遮挡 */
        padding: 16px;
        flex-direction: column; /* 改为纵向排列 */
        align-items: center;
        box-sizing: border-box;
        display: flex;

        /* 细滚动条样式，贴近极简风 */
        scrollbar-width: thin;
        scrollbar-color: var(--accent) transparent;
      }
      #solt::-webkit-scrollbar {
        width: 8px;
      }
      #solt::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 4px;
      }
      #solt::-webkit-scrollbar-track {
        background: transparent;
      }
      #content {
        min-height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-size-adjust: 100%;
        -webkit-text-size-adjust: 100%;
      }

      /* ============ 通用 HTML 元素兜底美化（作用域：#content 内部） ============ */
      #content h1,
      #content h2,
      #content h3,
      #content h4,
      #content h5,
      #content h6 {
        font-weight: 600;
        color: var(--text);
        line-height: 1.3;
      }
      #content h1 {
        font-size: clamp(28px, 5vw, 42px);
      }
      #content h2 {
        font-size: clamp(22px, 4vw, 32px);
      }
      #content h3 {
        font-size: clamp(18px, 3vw, 24px);
      }
      #content h4,
      #content h5,
      #content h6 {
        font-size: clamp(15px, 2.5vw, 18px);
      }

      #content p,
      #content div {
        color: var(--sub);
        font-size: clamp(13px, 2.2vw, 15px);
        line-height: 1.8;
      }

      #content a {
        color: var(--accent);
        text-decoration: underline;
        text-underline-offset: 2px;
      }

      #content img {
        max-width: 100%;
        height: auto;
        border-radius: 6px;
      }

      #content ul,
      #content ol {
        padding-left: 20px;
        color: var(--sub);
        font-size: 14px;
        line-height: 1.8;
      }

      #content table {
        border-collapse: collapse;
        width: 100%;
        max-width: 600px;
        font-size: 14px;
        color: var(--text);
      }
      #content table th,
      #content table td {
        border: 1px solid #d0d7de;
        padding: 8px 12px;
        text-align: left;
      }
      #content table th {
        background: #f6f8fa;
        font-weight: 600;
      }

      #content code {
        background: #f6f8fa;
        padding: 2px 6px;
        border-radius: 4px;
        font-family: "SF Mono", "Fira Code", monospace;
        font-size: 13px;
        color: var(--accent);
      }
      #content pre {
        background: #f6f8fa;
        border: 1px solid #d0d7de;
        border-radius: 8px;
        padding: 14px;
        overflow-x: auto;
        font-family: "SF Mono", "Fira Code", monospace;
        font-size: 13px;
        color: var(--text);
        line-height: 1.6;
        max-width: 600px;
        width: 100%;
      }
      #content pre code {
        background: none;
        padding: 0;
        color: inherit;
      }

      #content hr {
        width: 100%;
        max-width: 400px;
        border: none;
        border-top: 1px solid #d0d7de;
        margin: 8px 0;
      }

      #content blockquote {
        border-left: 3px solid var(--accent);
        padding: 8px 16px;
        color: var(--sub);
        background: #f6f8fa;
        border-radius: 0 6px 6px 0;
        max-width: 500px;
      }

      /* 通过 CDN 引入的顶部图标 */
      /* 齿轮组容器 */
      .gears {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 14px;
      }
      /* 单个齿轮：染 nginx 绿 + 旋转 */
      .gear {
        filter: invert(33%) sepia(96%) saturate(2800%) hue-rotate(200deg)
          brightness(95%);
      }
      .gear-1 {
        width: clamp(72px, 11vw, 110px);
        height: auto;
        animation: spin 8s linear infinite;
      }
      .gear-2 {
        width: clamp(48px, 8vw, 72px);
        height: auto;
        margin-left: -16px;
        margin-top: 20px;
        animation: spin 5s linear infinite reverse;
      }
      .gear-3 {
        width: clamp(36px, 6vw, 54px);
        height: auto;
        margin-left: -12px;
        animation: spin 3.5s linear infinite;
      }
      @keyframes spin {
        from {
          transform: rotate(0deg);
        }
        to {
          transform: rotate(360deg);
        }
      }

      /* 友好提示文字 */
      .hint {
        color: var(--sub);
        font-size: clamp(16px, 2.8vw, 20px);
        line-height: 1.6;
      }
      @keyframes float {
        0%,
        100% {
          transform: translateY(0);
        }
        50% {
          transform: translateY(-10px);
        }
      }

      .code {
        font-size: clamp(60px, 11vw, 130px);
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0.04em;
        /* 流光渐变：深色文字与 nginx 绿之间缓慢流动 */
        background: linear-gradient(
          100deg,
          var(--text) 0%,
          var(--accent) 50%,
          var(--text) 100%
        );
        background-size: 220% auto;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
      }

      .title {
        font-size: clamp(20px, 3.6vw, 30px);
        font-weight: 600;
        margin: 18px 0 10px;
      }

      .desc {
        color: var(--sub);
        font-size: clamp(14px, 2.2vw, 16px);
        max-width: 420px;
        margin: 0 auto;
        line-height: 1.7;
      }

      /* ============ 错误码展示区（仅 res-code 第一个子容器非空时生效） ============ */
      #res-code:has(> :first-child:not(:empty)) {
        max-width: 420px;
        width: 90%;
        margin: 0 auto;
        padding: 20px;
        background: #f6f8fa;
        border: 1px solid #d0d7de;
        border-left: 4px solid var(--accent);
        border-radius: 6px;
        text-align: center;
        box-sizing: border-box;
      }
      #res-code > :first-child:not(:empty) {
        font-family: "SF Mono", "Fira Code", "Consolas", monospace;
        font-size: clamp(40px, 8vw, 90px);
        font-weight: 800;
        color: var(--accent);
        letter-spacing: 0.06em;
      }

      .nginx-mark {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 13px;
        letter-spacing: 0.06em;
        color: var(--sub);
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .nginx-mark .dot {
        width: 8px;
        height: 8px;
        background: var(--accent);
        border-radius: 2px;
      }
      .nginx-mark b {
        color: var(--accent);
        font-weight: 700;
      }
    </style>
  </head>
  <body>
    <div class="topbar"></div>

    <div class="container">
      <div class="gears" id="gears">
        <img
          class="gear gear-1"
          src="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/icons/gear-wide-connected.svg"
          alt=""
        />
        <img
          class="gear gear-2"
          src="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/icons/gear.svg"
          alt=""
        />
        <img
          class="gear gear-3"
          src="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/icons/gear-fill.svg"
          alt=""
        />
      </div>
      <p class="hint" id="hint">页面正在修复中，请稍后重试</p>
    </div>

    <div id="solt">
       
	<table width="100%" height="100%">
    	<tr height="10%">
    		<td></td>
    	</tr>
    	<tr>
    		<td valign="top" align="center">
    			<div class="prompt">
		            <div class="prompt_up"><strong>系统提示</strong></div>
		            <div class="prompt_down">
		              <div class="pd_text">您访问的页面未找到， 5秒后自动跳转到首页</div>
		            </div>
		          </div>
    		</td>
    	</tr>
	</table>

    </div>

    <!-- GSAP 通过 CDN 引入 -->
    <script src="https://cdn.jsdelivr.net/npm/gsap@3.12.5/dist/gsap.min.js"></script>
    <script>
      // 删除 #solt 内所有 img 标签
      (function () {
        const solt = document.querySelector("#solt");
        if (solt) {
          solt.querySelectorAll("img").forEach(function (img) {
            img.remove();
          });
        }
      })();

      // 齿轮逐个淡入
      gsap.from(".gear", {
        opacity: 0,
        scale: 0.3,
        rotation: -60,
        duration: 0.6,
        stagger: 0.1,
        ease: "back.out(1.7)",
      });
      // 提示文字淡入
      gsap.from(".hint", {
        y: 12,
        opacity: 0,
        duration: 0.5,
        delay: 0.4,
        ease: "power2.out",
      });
      gsap.from(".topbar", {
        scaleX: 0,
        transformOrigin: "left center",
        duration: 0.8,
        ease: "power2.out",
      });
      gsap.from(".nginx-mark", { opacity: 0, duration: 0.8, delay: 0.5 });

      // #res-code 入场（第一个子容器非空时）  （）
      (function () {
        const rc = document.querySelector("#res-code");
        if (!rc) return;
        const first = rc.firstElementChild;
        if (first && first.textContent.trim() !== "") {
          gsap.from("#res-code", {
            y: 12,
            opacity: 0,
            duration: 0.5,
            ease: "power2.out",
          });
        }
      })();

      // ========== #content 内注入内容的通用美化，不依赖任何类名 ==========
      (function () {
        const content = document.querySelector("#content");
        if (!content || !content.children.length) return;

        // 1）子元素依次淡入
        gsap.from(content.children, {
          y: 12,
          opacity: 0,
          duration: 0.5,
          stagger: 0.08,
          ease: "power2.out",
          delay: 0.3,
        });

        // 2）第一张图片加浮动动效
        const img = content.querySelector("img");
        if (img) {
          gsap.set(img, { maxWidth: "clamp(60px, 10vw, 100px)" });
          gsap.to(img, {
            y: 10,
            duration: 2,
            repeat: -1,
            yoyo: true,
            ease: "sine.inOut",
          });
        }

        // 3）扫描所有纯文本节点，若包含全数字 404 或 500，则高亮为大标题
        const walk = (node) => {
          if (node.nodeType === Node.TEXT_NODE) {
            const t = node.textContent.trim();
            if (
              /^(404|500)$/.test(t) &&
              node.parentElement &&
              !node.parentElement.matches("script,style,code,pre")
            ) {
              const span = document.createElement("span");
              span.className = "error-code-highlight";
              span.textContent = t;
              node.parentElement.replaceChild(span, node);
            }
          } else {
            node.childNodes.forEach(walk);
          }
        };
        content.childNodes.forEach(walk);

        // 4）给标记过的高亮 404/500 加渐变流光
        const bigs = content.querySelectorAll(".error-code-highlight");
        bigs.forEach((el) => {
          gsap.set(el, {
            display: "inline-block",
            fontSize: "clamp(56px, 10vw, 130px)",
            fontWeight: 800,
            lineHeight: 1,
            letterSpacing: "0.04em",
            color: "transparent",
            backgroundImage:
              "linear-gradient(100deg, var(--text) 0%, var(--accent) 50%, var(--text) 100%)",
            backgroundSize: "220% auto",
            WebkitBackgroundClip: "text",
            backgroundClip: "text",
            WebkitTextFillColor: "transparent",
          });
          gsap.to(el, {
            backgroundPosition: "220% center",
            duration: 3.5,
            repeat: -1,
            ease: "linear",
          });
        });
      })();
    </script>
  </body>
</html>
