<script setup lang="ts">
/**
 * 404 页面
 */
import { useRouter } from 'vue-router'

const router = useRouter()
</script>

<template>
  <div class="not-found-page">
    <div class="not-found-card">
      <h1>404</h1>
      <p>哎呀，这个页面走丢了 🍪</p>
      <el-button type="primary" size="large" round @click="router.push('/')">
        返回首页
      </el-button>
    </div>
  </div>
</template>

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

.not-found-card {
  text-align: center;
  padding: 60px 40px;
  background: $bg-surface;
  border: 2px solid $color-border;
  border-radius: $radius-lg;
  box-shadow: $clay-shadow-sm;

  h1 {
    font-size: 72px;
    color: $color-primary;
    margin: 0 0 8px;
  }

  p {
    font-size: $font-size-lg;
    color: $color-text-secondary;
    margin: 0 0 32px;
  }
}
</style>
