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

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

<style lang="scss" scoped>
.not-found {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: $bg-page;
  text-align: center;

  h1 {
    font-size: 96px;
    color: $brand-primary;
    margin: 0;
    font-weight: 700;
  }
  p {
    color: $color-text-secondary;
    margin: 8px 0 24px;
  }
}
</style>
