<script setup lang="ts">
defineProps<{ icon: string; title: string; desc: string }>()
</script>

<template>
  <div class="bg-surface rounded-2xl p-8 hover:shadow-md transition-all duration-300 border border-gray-100 group">
    <div class="w-14 h-14 rounded-2xl bg-gradient-to-br from-primary-50 to-accent-50 text-primary flex items-center justify-center mb-5 group-hover:from-primary group-hover:to-accent group-hover:text-white transition-all">
      <AppIcon :name="icon" class="w-7 h-7" />
    </div>
    <h3 class="font-bold text-xl mb-3">{{ title }}</h3>
    <p class="text-sm text-text-secondary leading-relaxed mb-4">{{ desc }}</p>
    <span class="text-primary font-medium text-sm hover:underline cursor-pointer inline-flex items-center gap-1">
      了解更多
      <svg class="w-4 h-4" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path d="M9 5l7 7-7 7" stroke-linecap="round" stroke-linejoin="round"/></svg>
    </span>
  </div>
</template>
