<template>
  <div class="not-found">
    <div class="not-found-inner">
      <p class="code">404</p>
      <h1>页面不存在</h1>
      <p class="desc">该地址没有对应页面，或页面已下线。请从首页重新进入。</p>
      <div class="actions">
        <router-link to="/" class="btn-primary">返回首页</router-link>
      </div>
    </div>
  </div>
</template>

<script setup>
import { onMounted } from 'vue'

onMounted(() => {
  document.title = '页面未找到'
})
</script>

<style scoped>
.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}
.not-found-inner {
  text-align: center;
  max-width: 420px;
}
.code {
  margin: 0;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.12);
}
h1 {
  margin: 8px 0 16px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #e8e8ef;
}
.desc {
  margin: 0 0 28px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}
.actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: #0a0a12;
  background: linear-gradient(135deg, #7eb8ff 0%, #4d8fff 100%);
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
</style>
