<template>
  <div class="reasons-container">
    <h1 class="title">选择腾讯云的五大理由</h1>
    <div class="reasons-grid">
      <div class="reason-card" v-for="(reason, index) in reasons" :key="index">
        <div class="icon-wrapper">
          <img :src="reason.icon" :alt="reason.title">
        </div>
        <h3>{{ reason.title }}</h3>
        <p>{{ reason.description }}</p>
      </div>
    </div>
  </div>
</template>

<script setup>
const reasons = [
  {
    title: '高效稳定',
    description: '深厚的基础架构,自研的操作系统，多年技术积累和海量服务经验，为客户提供可靠、稳运维、智能化、弹性化的云服务。',
    // icon: '/icons/stable.png'
  },
  {
    title: '安全可靠',
    description: '七大安全联合实验室团队，一体化病毒安全管理体系，助您建立系统性的安全防御机制。',
    // icon: '/icons/security.png'
  },
  {
    title: '丰富场景',
    description: '从基础设施到行业应用领域，提供完善的产品体系，为各行业客户提供全球领先方案，助力业务腾飞。',
    // icon: '/icons/rich.png'
  },
  {
    title: '开放生态',
    description: '完整的合作伙伴生态体系，与产业链上下游通力合作，提供优质的服务和丰富的产品选择。',
    // icon: '/icons/open.png'
  },
  {
    title: '服务保障',
    description: '7*24小时贴心服务保障，多元化的服务支持，提供专业的技术咨询，让您的云上之旅更加安心。',
    // icon: '/icons/service.png'
  }
]
</script>

<style scoped>
.reasons-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.title {
  text-align: center;
  font-size: 32px;
  color: #333;
  margin-bottom: 40px;
}

.reasons-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.reason-card {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 200px;
}

.reason-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reason-card h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

.reason-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 1200px) {
  .reasons-grid {
    flex-wrap: wrap;
  }
  
  .reason-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .reason-card {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .reason-card {
    flex: 1 1 100%;
  }
}
</style>
