<template>
  <div class="not-found">
    <h1>404</h1>
    <h2>页面不存在</h2>
    <p>抱歉，您访问的页面不存在或已被移除。</p>
    <el-button type="primary" @click="goHome">返回首页</el-button>
  </div>
</template>

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

const router = useRouter()

const goHome = () => {
  router.push('/')
}
</script>

<style scoped>
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80vh;
  text-align: center;
}

.not-found h1 {
  font-size: 8rem;
  font-weight: 700;
  color: #409EFF;
  margin-bottom: 1rem;
}

.not-found h2 {
  font-size: 2rem;
  font-weight: 500;
  color: #303133;
  margin-bottom: 1rem;
}

.not-found p {
  font-size: 1.2rem;
  color: #606266;
  margin-bottom: 2rem;
}
</style>