<template>
  <div class="whole">
    <img src="../assets/404back.jpg" />
    <div class="mask"></div>
  </div>
  <div class="b">
    <p class="center text">500</p>
    <p>
      服务器内部发生错误<br />
      <button @click="goBack">&lt;&lt;&lt;&nbsp;&nbsp;点此返回上一页</button>
    </p>
  </div>
</template>

<script setup>
const goBack = () => {
  window.history.back(-1)
}
</script>

<style scoped>
* {
  margin: 0;
  padding: 0;
  outline: none;
  font-family: \5fae\8f6f\96c5\9ed1, 宋体;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
  user-select: none;
  cursor: default;
  font-weight: lighter;
}
.center {
  margin: 0 auto;
}
.whole {
  width: 100%;
  height: 100%;
  line-height: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: -1000;
  overflow: hidden;
}
.whole img {
  width: 100%;
  height: 100%;
}
.mask {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: #000;
  opacity: 0.6;
  filter: alpha(opacity=60);
}
.b {
  width: 100%;
  text-align: center;
  height: 400px;
  position: absolute;
  top: 50%;
  margin-top: -230px;
}
.a {
  width: 150px;
  height: 50px;
  margin-top: 30px;
}
.a a {
  display: block;
  float: left;
  width: 150px;
  height: 50px;
  background: #fff;
  text-align: center;
  line-height: 50px;
  font-size: 18px;
  border-radius: 25px;
  color: #333;
}
.a a:hover {
  color: #000;
  box-shadow: #fff 0 0 20px;
}
p {
  color: #fff;
  margin-top: 40px;
  font-size: 24px;
  line-height: 56px;
}
button {
  margin-top: 30px;
  background-color: transparent;
  border: 1px solid white;
  width: 200px;
  height: 45px;
  color: white;
  border-radius: 5px;
  font-weight: bold;
  font-size: 15px;
}
button:hover {
  background-color: silver;
  cursor: pointer;
  color: #333;
}
.text {
  font-size: 170px;
  font-weight: bold;
  margin-bottom: 100px;
}
</style>