import { Metadata } from 'next'

export const metadata: Metadata = {
  title: '农机档案管理 - Crop-X 智慧农业管理系统',
  description: '农机设备档案信息管理',
}

export default function MachineryArchivePage() {
  return (
    <div className="space-y-6">
      <div className="bg-white rounded-lg shadow p-6">
        <h2 className="text-2xl font-bold text-gray-800 mb-6">
          📋 农机档案管理
        </h2>

        <div className="grid grid-cols-1 md:grid-cols-3 gap-6">
          <div className="bg-green-50 rounded-lg p-6 hover:bg-green-100 transition-colors cursor-pointer">
            <h3 className="font-semibold text-green-900 mb-2">
              📝 农机档案录入与维护
            </h3>
            <p className="text-green-700 text-sm">
              管理农机设备的基本信息档案
            </p>
          </div>

          <div className="bg-blue-50 rounded-lg p-6 hover:bg-blue-100 transition-colors cursor-pointer">
            <h3 className="font-semibold text-blue-900 mb-2">
              🏷️ 农机分类与标签管理
            </h3>
            <p className="text-blue-700 text-sm">
              农机设备分类和标签体系管理
            </p>
          </div>

          <div className="bg-purple-50 rounded-lg p-6 hover:bg-purple-100 transition-colors cursor-pointer">
            <h3 className="font-semibold text-purple-900 mb-2">
              📱 农机二维码管理
            </h3>
            <p className="text-purple-700 text-sm">
              农机设备二维码生成和管理
            </p>
          </div>
        </div>

        <div className="mt-6 bg-gray-50 rounded-lg p-6">
          <h3 className="text-lg font-semibold text-gray-800 mb-4">
            📊 档案统计概览
          </h3>
          <div className="grid grid-cols-1 md:grid-cols-4 gap-4">
            <div className="bg-white rounded-lg p-4 text-center">
              <div className="text-2xl font-bold text-green-600 mb-2">156</div>
              <div className="text-sm text-gray-600">农机总数</div>
            </div>
            <div className="bg-white rounded-lg p-4 text-center">
              <div className="text-2xl font-bold text-blue-600 mb-2">12</div>
              <div className="text-sm text-gray-600">设备分类</div>
            </div>
            <div className="bg-white rounded-lg p-4 text-center">
              <div className="text-2xl font-bold text-purple-600 mb-2">89</div>
              <div className="text-sm text-gray-600">已生成二维码</div>
            </div>
            <div className="bg-white rounded-lg p-4 text-center">
              <div className="text-2xl font-bold text-orange-600 mb-2">95%</div>
              <div className="text-sm text-gray-600">档案完整率</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  )
}