<template>
  <div class="not-found">
    <h1>404</h1>
    <p>页面不存在</p>
    <el-button type="primary" @click="router.push('/')">返回首页</el-button>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()
</script>

<style scoped lang="scss">
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg0);
  color: var(--t1);

  h1 {
    font-size: 120px;
    margin: 0;
    color: var(--blu);
  }

  p {
    font-size: 24px;
    color: var(--t2);
    margin: 20px 0 40px;
  }
}
</style>
