import type { Metadata } from "next";
import Link from "next/link";

export const metadata: Metadata = {
  title: "无权访问",
};

export default function UnauthorizedPage() {
  return (
    <div className="flex min-h-screen flex-col items-center justify-center bg-gradient-to-br from-background via-background to-muted/40 p-4 text-center">
      <h1 className="text-5xl font-bold tracking-tight">403</h1>
      <p className="mt-3 text-muted-foreground">您没有权限访问该页面</p>
      <Link
        href="/dashboard"
        className="mt-6 text-sm font-medium text-primary underline-offset-4 hover:underline"
      >
        返回仪表盘
      </Link>
    </div>
  );
}
