<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>系统发生错误</title>
<style>
/* 配色取自 wakyo 设计系统：藏青 #2A5A78 + 奶白 #FAF6EE + 樱花粉 #E8788A */
*{ margin:0; padding:0; box-sizing:border-box; }
body{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  padding:24px;
  background:#FAF6EE;
  font-family:"PingFang SC","Microsoft YaHei","微软雅黑",-apple-system,sans-serif;
  color:#1A3A50; font-size:15px; line-height:1.6;
}
.card{
  width:100%; max-width:720px;
  background:#fff; border:1px solid #C8DFF0; border-radius:12px;
  box-shadow:0 4px 20px rgba(42,90,120,.08);
  overflow:hidden;
}
.head{ padding:32px 36px 26px; border-bottom:1px solid #E0EEF8; }
.badge{
  display:inline-flex; align-items:center; gap:7px;
  padding:4px 12px; margin-bottom:14px;
  background:#FDEEF2; color:#E8788A;
  border-radius:999px; font-size:11px; font-weight:600; letter-spacing:.5px;
}
.badge i{ width:6px; height:6px; background:#E8788A; border-radius:50%; }
.msg{ font-size:20px; font-weight:600; color:#2A5A78; word-break:break-all; }
.tip{ margin-top:10px; font-size:13px; color:#6A9AB8; }
.body{ padding:22px 36px 8px; }
.sec{ margin-bottom:20px; }
.sec h3{
  font-size:11px; font-weight:600; letter-spacing:.5px;
  color:#A0BDD0; text-transform:uppercase; margin-bottom:8px;
}
.sec .text{
  padding:12px 14px; background:#F0F7FC; border:1px solid #E0EEF8; border-radius:8px;
  font-family:Consolas,Monaco,"Courier New",monospace; font-size:12px; line-height:1.75;
  color:#1A3A50; word-break:break-all; max-height:340px; overflow:auto;
}
.foot{
  padding:16px 36px; background:#F0F7FC; border-top:1px solid #E0EEF8;
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.foot .brand{ font-size:12px; color:#A0BDD0; }
.foot .back{
  display:inline-block; padding:7px 18px;
  background:#2A5A78; color:#fff; text-decoration:none;
  border-radius:8px; font-size:13px; transition:background .2s;
}
.foot .back:hover{ background:#1A3A50; }
/* 必须显式写：上面的 display:inline-block 优先级高于浏览器默认的 [hidden]{display:none} */
.foot .back[hidden]{ display:none; }
</style>
</head>
<body>
<div class="card">
  <div class="head">
    <div class="badge"><i></i>系统发生错误</div>
    <div class="msg">页面错误！请稍后再试～</div>
    <div class="tip">请稍后再试；若反复出现，请把本页信息反馈给管理员。</div>
  </div>


  <div class="foot">
    <span class="brand">系统提示</span>
    <a class="back" id="backBtn" href="#" hidden>返回上一页</a>
  </div>
</div>
<script>
/* 返回按钮默认隐藏，只有「确实有上一页」时才显示：
   新标签直接打开、地址栏输错网址进来时，历史里根本没有可回的页面，
   这时按钮点了不会有任何反应，不如干脆不显示。
   用同源 referrer 的真实地址跳（而不是 history.back()），点了必定有反应。 */
(function () {
  var btn = document.getElementById('backBtn');
  var ref = document.referrer;
  if (ref && ref.indexOf(location.origin + '/') === 0 && ref !== location.href) {
    btn.href = ref;
    btn.hidden = false;
  }
})();
</script>
</body>
</html>
