import { Link } from 'react-router-dom'
import { Cloud, Upload, Shield, FolderOpen } from 'lucide-react'
import { Button } from '@/components/ui/button'

export default function HomePage() {
  return (
    <div className="text-center py-12">
      <div className="mb-8">
        <Cloud className="h-16 w-16 mx-auto text-primary mb-4" />
        <h1 className="text-4xl font-bold tracking-tight mb-4">
          欢迎使用云盘应用
        </h1>
        <p className="text-xl text-muted-foreground max-w-2xl mx-auto">
          安全、快速的云存储服务，支持文件上传、下载、分享等功能。
          让您的文件随时随地都能访问。
        </p>
      </div>

      <div className="grid md:grid-cols-3 gap-6 max-w-4xl mx-auto mb-12">
        <div className="p-6 border rounded-lg">
          <Upload className="h-12 w-12 text-primary mx-auto mb-4" />
          <h3 className="text-lg font-semibold mb-2">快速上传</h3>
          <p className="text-muted-foreground">
            支持拖拽上传，批量处理，让文件管理更高效
          </p>
        </div>

        <div className="p-6 border rounded-lg">
          <Shield className="h-12 w-12 text-primary mx-auto mb-4" />
          <h3 className="text-lg font-semibold mb-2">安全存储</h3>
          <p className="text-muted-foreground">
            企业级加密保护，确保您的文件安全无忧
          </p>
        </div>

        <div className="p-6 border rounded-lg">
          <FolderOpen className="h-12 w-12 text-primary mx-auto mb-4" />
          <h3 className="text-lg font-semibold mb-2">便捷管理</h3>
          <p className="text-muted-foreground">
            智能分类管理，快速搜索，轻松找到需要的文件
          </p>
        </div>
      </div>

      <div className="space-x-4">
        <Button asChild size="lg">
          <Link to="/cloud">进入云盘</Link>
        </Button>
        <Button variant="outline" size="lg" asChild>
          <Link to="/register">立即注册</Link>
        </Button>
        <Button variant="outline" size="lg" asChild>
          <Link to="/login">已有账户？登录</Link>
        </Button>
      </div>
    </div>
  )
}