<script setup>
import { Button as VanButton } from 'vant'
</script>

<template>
  <div class="not_found_main">
    <div class="container">
      <div class="notFound i-svg:notFound" />
    </div>
    <div class="text">
      本来无一物，何处惹尘埃
    </div>
    <div class="button_group">
      <VanButton type="primary" size="small" @click="$router.replace('/')">
        返回首页
      </VanButton>
    </div>
  </div>
</template>

<style lang="less" scoped>
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.not_found_main {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  padding-top: 30vh;
}

.container {
  width: 128px;
  height: 128px;
  animation: fadeInUp 0.8s ease-in-out;
  .notFound {
    width: 128px;
    height: 128px;
    vertical-align: middle;
  }
}

.text {
  margin-bottom: 20px;
  font-size: 14px;
  color: #333;
  animation: fadeIn 1.2s ease-in-out;
}
</style>
