<template>
  <footer class="bg-white dark:bg-gray-900 text-gray-900 dark:text-white py-12 transition-colors duration-300">
    <div class="container mx-auto px-4">
      <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-8">

        <!-- 解决方案 -->
        <div class="text-center md:text-left">
          <h3 class="text-lg font-semibold mb-4 text-gray-800 dark:text-gray-100">解决方案</h3>
          <ul class="space-y-2">
            <li
                v-for="item in solutions" :key="item"
                class="text-gray-600 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 transition-colors duration-200 cursor-pointer">
              <a class="block py-1" href="#">{{ item }}</a>
            </li>
          </ul>
        </div>

        <!-- 行业方案 -->
        <div class="text-center md:text-left">
          <h3 class="text-lg font-semibold mb-4 text-gray-800 dark:text-gray-100">行业方案</h3>
          <ul class="space-y-2">
            <li
                v-for="item in industrySolutions" :key="item"
                class="text-gray-600 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 transition-colors duration-200 cursor-pointer">
              <a class="block py-1" href="#">{{ item }}</a>
            </li>
          </ul>
        </div>

        <!-- 软件开发 -->
        <div class="text-center md:text-left">
          <h3 class="text-lg font-semibold mb-4 text-gray-800 dark:text-gray-100">软件开发</h3>
          <ul class="space-y-2">
            <li
                v-for="item in softwareDevelopment" :key="item"
                class="text-gray-600 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 transition-colors duration-200 cursor-pointer">
              <a class="block py-1" href="#">{{ item }}</a>
            </li>
          </ul>
        </div>

        <!-- 智能硬件 -->
        <div class="text-center md:text-left">
          <h3 class="text-lg font-semibold mb-4 text-gray-800 dark:text-gray-100">智能硬件</h3>
          <ul class="space-y-2">
            <li
                v-for="item in smartHardware" :key="item"
                class="text-gray-600 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 transition-colors duration-200 cursor-pointer">
              <a class="block py-1" href="#">{{ item }}</a>
            </li>
          </ul>
        </div>

        <!-- 联系我们 -->
        <div class="text-center md:text-left">
          <h3 class="text-lg font-semibold mb-4 text-gray-800 dark:text-gray-100">联系我们</h3>
          <div class="space-y-3 text-gray-600 dark:text-gray-300">
            <div class="flex items-center justify-center md:justify-start space-x-2 group">
              <svg
                  class="w-4 h-4 text-gray-500 dark:text-gray-400 group-hover:text-blue-500 dark:group-hover:text-blue-400 transition-colors"
                  fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path
                    d="M3 5a2 极 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"
                    stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
              </svg>
              <a
                  class="group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors"
                  href="tel:0755-85225123">客服电话：0755-85225123</a>
            </div>
            <div class="flex items-center justify-center md:justify-start space-x-2 group">
              <svg
                  class="w-4 h-4 text-gray-500 dark:text-gray-400 group极hover:text-blue-500 dark:group-hover:text-blue-400 transition-colors"
                  fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path
                    d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.极-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 极 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 极 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"
                    stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
              </svg>
              <a
                  class="group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors"
                  href="tel:18123752516">商务合作：18123752516</a>
            </div>
            <div class="flex items-center justify-center md:justify-start space-x-2 group">
              <svg
                  class="w-4 h-4 text-gray-500 dark:text-gray-400 group-hover:text-blue-500 dark:group-hover:text-blue-400 transition-colors"
                  fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path
                    d="M3 8l7.89 4.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"
                    stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
              </svg>
              <a
                  class="group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors"
                  href="mailto:yuxi@yuxiit.com">反馈建议邮箱：yuxi@yuxiit.com</a>
            </div>
          </div>
        </div>
      </div>

      <!--      &lt;!&ndash; 底部版权信息 &ndash;&gt;-->
      <!--      <div-->
      <!--          class="border-t border-gray-300 dark:border-gray-700 mt-8 pt-8 text-center text-gray-500 dark:text-gray-400 transition-colors duration-300">-->
      <!--        <p>© 2024 玉犀科技. 保留所有权利.</p>-->
      <!--      </div>-->
    </div>
  </footer>
</template>

<script setup>
// 数据定义
const solutions = [
  '共享单车',
  '共享滑板车',
  '共享陪护床',
  '共享电动车',
  '共享充电宝'
]

const industrySolutions = [
  '智慧餐饮',
  '智慧公寓',
  '智能电动车'
]

const softwareDevelopment = [
  '微信开发',
  'APP开发',
  '小程序开发'
]

const smartHardware = [
  '物联网应用定制',
  '物联网智能硬件',
  '物联网IOT云平台'
]
</script>

<style scoped>
/* 响应式调整 */
@media (max-width: 768px) {
  .grid {
    gap: 2rem;
  }

  .text-center {
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .grid {
    gap: 4rem;
  }
}
</style>