'use client'

import { motion } from 'framer-motion'
import { 
  ShieldCheck, 
  Cpu, 
  TrendingUp,
  Users,
  Globe,
  Award
} from 'lucide-react'
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'

const features = [
  {
    icon: ShieldCheck,
    title: "国资背景",
    description: "获五轮融资超2亿元，中华财政部、社保基金理事会等间接持股，实力雄厚，稳健经营。"
  },
  {
    icon: Cpu,
    title: "军工技术",
    description: "国防科大核心团队，拥有80+项发明专利。将航天级技术应用于实体经济数字化转型。"
  },
  {
    icon: TrendingUp,
    title: "数据收益",
    description: "首创'数据收益优先分配权'，让用户和商家共享数据增值红利，打造可持续商业模式。"
  },
  {
    icon: Users,
    title: "顶尖团队",
    description: "汇聚国防科大、中科大等名校精英，以及上市企业高管、杰出CFO等行业领袖。"
  },
  {
    icon: Globe,
    title: "合规保障",
    description: "拥有收单外包服务机构备案，资金受银监会监管。数商备案接入，工商税务监管系统实时对接。"
  },
  {
    icon: Award,
    title: "权威认可",
    description: "科大讯飞AI开发者大赛冠军、中国产业元宇宙创新大赛一等奖，央视等权威媒体多次报道。"
  }
]

export function Features() {
  return (
    <section className="py-24 bg-white">
      <div className="container px-4 md:px-6 mx-auto">
        {/* Section Header */}
        <div className="text-center mb-16">
          <motion.h2 
            initial={{ opacity: 0, y: 20 }}
            whileInView={{ opacity: 1, y: 0 }}
            viewport={{ once: true }}
            className="text-3xl md:text-4xl font-bold text-secondary mb-4"
          >
            核心优势
          </motion.h2>
          <motion.p 
            initial={{ opacity: 0, y: 20 }}
            whileInView={{ opacity: 1, y: 0 }}
            viewport={{ once: true }}
            transition={{ delay: 0.1 }}
            className="text-lg text-muted-foreground max-w-2xl mx-auto"
          >
            依托强大的技术壁垒与资本实力，为实体经济数字化转型提供坚实保障
          </motion.p>
        </div>

        {/* Features Grid */}
        <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
          {features.map((feature, index) => (
            <motion.div
              key={index}
              initial={{ opacity: 0, y: 20 }}
              whileInView={{ opacity: 1, y: 0 }}
              viewport={{ once: true }}
              transition={{ duration: 0.5, delay: index * 0.1 }}
            >
              <Card className="h-full border-0 shadow-lg hover:shadow-xl transition-all duration-300 group bg-accent">
                <CardHeader className="pb-4">
                  <div className="w-14 h-14 bg-primary/10 rounded-xl flex items-center justify-center mb-4 group-hover:bg-primary group-hover:text-white transition-all duration-300">
                    <feature.icon className="w-7 h-7 text-primary group-hover:text-white" />
                  </div>
                  <CardTitle className="text-xl font-bold text-secondary group-hover:text-primary transition-colors">
                    {feature.title}
                  </CardTitle>
                </CardHeader>
                <CardContent>
                  <p className="text-muted-foreground leading-relaxed">
                    {feature.description}
                  </p>
                </CardContent>
              </Card>
            </motion.div>
          ))}
        </div>
      </div>
    </section>
  )
}
