<!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="20;url=http://www.ibtom.cn/" />
  <title>ERP 系统已迁移</title>
  <style>
    *, *::before, *::after { box-sizing: border-box; }
    body {
      margin: 0;
      min-height: 100vh;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
      font-size: 16px;
      line-height: 1.6;
      color: #1f2937;
      background: #f3f4f6;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px 16px;
    }
    .card {
      width: 100%;
      max-width: 520px;
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
      padding: 40px 32px 32px;
      text-align: center;
    }
    h1 {
      margin: 0 0 20px;
      font-size: 1.5rem;
      font-weight: 600;
      color: #111827;
    }
    .lead {
      margin: 0 0 16px;
      color: #4b5563;
      text-align: left;
    }
    .url-block {
      margin: 24px 0;
      padding: 16px;
      background: #f9fafb;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      text-align: left;
    }
    .url-block .label {
      font-size: 0.875rem;
      color: #6b7280;
      margin-bottom: 8px;
    }
    .url-block a {
      word-break: break-all;
      color: #2563eb;
      font-weight: 500;
      text-decoration: none;
    }
    .url-block a:hover { text-decoration: underline; }
    .countdown {
      margin: 20px 0;
      font-size: 0.9375rem;
      color: #374151;
    }
    .countdown-num {
      display: inline-block;
      min-width: 1.5em;
      font-weight: 700;
      font-size: 1.25rem;
      color: #2563eb;
    }
    .btn {
      display: inline-block;
      margin-top: 8px;
      padding: 12px 28px;
      font-size: 1rem;
      font-weight: 500;
      color: #fff;
      background: #2563eb;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      text-decoration: none;
      transition: background 0.15s ease;
    }
    .btn:hover { background: #1d4ed8; }
    .support-notice {
      margin-top: 28px;
      padding-top: 20px;
      border-top: 1px solid #e5e7eb;
      font-family: "PingFang SC", "Microsoft YaHei", "SimHei", sans-serif;
      font-size: 0.9375rem;
      font-weight: 700;
      color: #374151;
      text-align: center;
      line-height: 1.6;
    }
    @media (max-width: 480px) {
      .card { padding: 28px 20px 24px; }
      h1 { font-size: 1.25rem; }
    }
  </style>
</head>
<body>
  <main class="card" role="main">
    <h1>ERP 系统已迁移</h1>
    <p class="lead">当前旧 ERP 系统已停止使用，所有 ERP 功能已迁移至新系统。</p>
    <p class="lead">请后续统一访问新的 ERP 系统。</p>
    <div class="url-block">
      <div class="label">新 ERP：</div>
      <a id="newErpLink" href="http://www.ibtom.cn/" rel="noopener noreferrer">http://www.ibtom.cn/</a>
    </div>
    <p class="countdown">页面将在 <span class="countdown-num" id="seconds">20</span> 秒后自动跳转</p>
    <a class="btn" id="goNowBtn" href="http://www.ibtom.cn/">立即前往新 ERP</a>
    <p class="support-notice">如有使用问题，请联系技术部 Rio</p>
  </main>
  <script>
    (function () {
      var target = "http://www.ibtom.cn/";
      var sec = 20;
      var el = document.getElementById("seconds");
      function go() {
        window.location.replace(target);
      }
      document.getElementById("goNowBtn").addEventListener("click", function (e) {
        e.preventDefault();
        go();
      });
      document.getElementById("newErpLink").addEventListener("click", function (e) {
        e.preventDefault();
        go();
      });
      var timer = setInterval(function () {
        sec -= 1;
        if (sec >= 1) {
          el.textContent = String(sec);
        } else {
          clearInterval(timer);
          go();
        }
      }, 1000);
    })();
  </script>
</body>
</html>
