<template>
  <div class="max-w-7xl mx-auto px-4 py-12">
    <!-- Hero Section -->
    <div class="text-center mb-16">
      <h1 class="text-4xl font-bold text-gray-900 mb-4">{{ $t('nav.solutions') }}</h1>
      <p class="text-xl text-gray-600 max-w-3xl mx-auto">
        {{ $t('solutions.subtitle') }}
      </p>
    </div>

    <!-- Solutions Grid -->
    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16">
      <div class="bg-white rounded-lg shadow-md p-8 hover:shadow-lg transition-shadow">
        <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mb-6">
          <svg class="w-6 h-6 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"/>
          </svg>
        </div>
        <h3 class="text-xl font-semibold mb-4">{{ $t('solutions.ec2.title') }}</h3>
        <p class="text-gray-600 mb-6">{{ $t('solutions.ec2.description') }}</p>
        <ul class="space-y-2 text-sm text-gray-600">
          <li>• {{ $t('solutions.ec2.features.0') }}</li>
          <li>• {{ $t('solutions.ec2.features.1') }}</li>
          <li>• {{ $t('solutions.ec2.features.2') }}</li>
        </ul>
      </div>

      <div class="bg-white rounded-lg shadow-md p-8 hover:shadow-lg transition-shadow">
        <div class="w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center mb-6">
          <svg class="w-6 h-6 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4"/>
          </svg>
        </div>
        <h3 class="text-xl font-semibold mb-4">{{ $t('solutions.s3.title') }}</h3>
        <p class="text-gray-600 mb-6">{{ $t('solutions.s3.description') }}</p>
        <ul class="space-y-2 text-sm text-gray-600">
          <li>• {{ $t('solutions.s3.features.0') }}</li>
          <li>• {{ $t('solutions.s3.features.1') }}</li>
          <li>• {{ $t('solutions.s3.features.2') }}</li>
        </ul>
      </div>

      <div class="bg-white rounded-lg shadow-md p-8 hover:shadow-lg transition-shadow">
        <div class="w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center mb-6">
          <svg class="w-6 h-6 text-purple-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4"/>
          </svg>
        </div>
        <h3 class="text-xl font-semibold mb-4">{{ $t('solutions.rds.title') }}</h3>
        <p class="text-gray-600 mb-6">{{ $t('solutions.rds.description') }}</p>
        <ul class="space-y-2 text-sm text-gray-600">
          <li>• {{ $t('solutions.rds.features.0') }}</li>
          <li>• {{ $t('solutions.rds.features.1') }}</li>
          <li>• {{ $t('solutions.rds.features.2') }}</li>
        </ul>
      </div>

      <div class="bg-white rounded-lg shadow-md p-8 hover:shadow-lg transition-shadow">
        <div class="w-12 h-12 bg-orange-100 rounded-lg flex items-center justify-center mb-6">
          <svg class="w-6 h-6 text-orange-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"/>
          </svg>
        </div>
        <h3 class="text-xl font-semibold mb-4">{{ $t('solutions.lambda.title') }}</h3>
        <p class="text-gray-600 mb-6">{{ $t('solutions.lambda.description') }}</p>
        <ul class="space-y-2 text-sm text-gray-600">
          <li>• {{ $t('solutions.lambda.features.0') }}</li>
          <li>• {{ $t('solutions.lambda.features.1') }}</li>
          <li>• {{ $t('solutions.lambda.features.2') }}</li>
        </ul>
      </div>

      <div class="bg-white rounded-lg shadow-md p-8 hover:shadow-lg transition-shadow">
        <div class="w-12 h-12 bg-red-100 rounded-lg flex items-center justify-center mb-6">
          <svg class="w-6 h-6 text-red-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/>
          </svg>
        </div>
        <h3 class="text-xl font-semibold mb-4">{{ $t('solutions.security.title') }}</h3>
        <p class="text-gray-600 mb-6">{{ $t('solutions.security.description') }}</p>
        <ul class="space-y-2 text-sm text-gray-600">
          <li>• {{ $t('solutions.security.features.0') }}</li>
          <li>• {{ $t('solutions.security.features.1') }}</li>
          <li>• {{ $t('solutions.security.features.2') }}</li>
        </ul>
      </div>

      <div class="bg-white rounded-lg shadow-md p-8 hover:shadow-lg transition-shadow">
        <div class="w-12 h-12 bg-indigo-100 rounded-lg flex items-center justify-center mb-6">
          <svg class="w-6 h-6 text-indigo-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"/>
          </svg>
        </div>
        <h3 class="text-xl font-semibold mb-4">{{ $t('solutions.monitoring.title') }}</h3>
        <p class="text-gray-600 mb-6">{{ $t('solutions.monitoring.description') }}</p>
        <ul class="space-y-2 text-sm text-gray-600">
          <li>• {{ $t('solutions.monitoring.features.0') }}</li>
          <li>• {{ $t('solutions.monitoring.features.1') }}</li>
          <li>• {{ $t('solutions.monitoring.features.2') }}</li>
        </ul>
      </div>
    </div>

    <!-- CTA Section -->
    <div class="bg-blue-600 rounded-lg p-8 text-center text-white">
      <h2 class="text-3xl font-bold mb-4">{{ $t('solutions.cta.title') }}</h2>
      <p class="text-xl mb-8">{{ $t('solutions.cta.description') }}</p>
      <div class="space-x-4">
        <NuxtLink 
          :to="localePath('/pricing')" 
          class="bg-white text-blue-600 px-8 py-3 rounded-lg font-semibold hover:bg-gray-100 transition-colors"
        >
          {{ $t('solutions.cta.viewPricing') }}
        </NuxtLink>
        <NuxtLink 
          :to="localePath('/contact')" 
          class="border border-white text-white px-8 py-3 rounded-lg font-semibold hover:bg-white hover:text-blue-600 transition-colors"
        >
          {{ $t('solutions.cta.contactUs') }}
        </NuxtLink>
      </div>
    </div>
  </div>
</template>

<script setup>
const { t } = useI18n()
const localePath = useLocalePath()

// SEO设置
useSeoMeta({
  title: () => t('solutions.seo.title'),
  description: () => t('solutions.seo.description'),
  ogTitle: () => t('solutions.seo.title'),
  ogDescription: () => t('solutions.seo.description')
})
</script>
