<template>
  <section>
    <div class="footer__container footer-friendlink">
      <div class="footer__box footer-wrap width-1200">
        <div class="footer-friendlink__box">
          <img src="@/public/images/logo.png" class="footer-friendlink__logo" />
          <div class="footer-friendlink__baseinfo">
            <div
              v-for="(item, i) in baseInfoList"
              :key="i"
              class="footer-friendlink__baseinfo-item"
            >
              <span class="footer-friendlink__baseinfo-label">{{ item.label }}</span>
              <span class="footer-friendlink__baseinfo-content">{{ item.content }}</span>
            </div>
          </div>
        </div>
        <div class="footer-friendlink__box">
          <div
            v-for="(link, i) in linkList1"
            :key="i"
            class="footer-friendlink__item"
            @click="handleTextLinkClick(link, link.id ? link.id : '')"
          >
            <span
              class="text_hover_underline"
              :class="[
                (currentId && currentId == link.id && currentPath == link.path) ||
                (!currentId && currentPath == link.path)
                  ? 'text_hover_underline--active'
                  : '',
              ]"
              >{{ $t(`textLink["${link.text}"]`) }}</span
            >
          </div>
        </div>
        <div class="footer-friendlink__box">
          <div
            v-for="(link, i) in linkList2"
            :key="i"
            class="footer-friendlink__item"
            @click="handleTextLinkClick(link, link.id ? link.id : '')"
          >
            <span
              class="text_hover_underline"
              :class="[
                (currentId && currentId == link.id && currentPath == link.path) ||
                (!currentId && currentPath == link.path)
                  ? 'text_hover_underline--active'
                  : '',
              ]"
              >{{ $t(`textLink["${link.text}"]`) }}</span
            >
          </div>
        </div>
        <div class="footer-friendlink__box">
          <div
            v-for="(link, i) in linkList3"
            :key="i"
            class="footer-friendlink__item"
            @click="handleTextLinkClick(link, link.id ? link.id : '')"
          >
            <span
              class="text_hover_underline"
              :class="[
                (currentId && currentId == link.id && currentPath == link.path) ||
                (!currentId && currentPath == link.path)
                  ? 'text_hover_underline--active'
                  : '',
              ]"
              >{{ $t(`textLink["${link.text}"]`) }}</span
            >
          </div>
        </div>
      </div>
    </div>

    <div class="footer__container footer-right">
      <div class="footer__box width-1200">
        <span>©1997-2025 VAVA BUY.com All Rights Reserved</span>
      </div>
    </div>

    <!-- <div class="footer__container footer-footnote">
    <div class="footer__box width-1200">
      <span>{{
        $t(
          'paragraph["我们使用 cookie 来提供更好的在线体验。 访问和使用 VAVA BUY.com，即表示您同意我们使用 Cookie。 通过阅读我们的条款和条件、使用条款、 和隐私政策。"]'
        )
      }}</span>
    </div>
  </div> -->
  </section>
</template>


<script setup lang="ts">
import useLink from './hooks/useLink'

const {
  linkList1,
  linkList2,
  linkList3,
  route,
  router,
  currentPath,
  currentId,
  handleTextLinkClick,
} = useLink()

const baseInfoList = [
  { label: '', content: '4299 Express Lane' },
  { label: '', content: 'Sarasota,FL 34249 USA' },
  { label: 'WhatsApp Message: ', content: '1.941.225.7374' },
  { label: 'Phone: ', content: '1.941.227.4444' },
  { label: 'Fax: ', content: '1.941.827.2985' },
  { label: 'Local Time: ', content: '04:19' },
]
</script>


<style lang="less" scoped>
.footer__container {
  display: flex;
  justify-content: center;
  background-color: #f5f5f5;
}

.footer-friendlink {
  .footer__box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 30px 15px;
    padding: 1.875rem 0.9375rem;
  }

  .footer-friendlink__box {
    width: auto;
    padding: 6px 10px 10px;
    padding: 0.375rem 0.625rem 0.625rem;
  }

  .footer-friendlink__box:first-child {
    padding-top: 0;
  }

  .footer-friendlink__box .footer-friendlink__logo {
    width: 150px;
    width: 9.375rem;
    margin-bottom: 36px;
    margin-bottom: 2.25rem;
  }

  .footer-friendlink__baseinfo-item {
    margin-bottom: 4px;
    margin-bottom: 0.25rem;
    font-family: Poppins;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: normal;
    color: #3d3d3d;
  }

  .footer-friendlink__baseinfo-item:last-child {
    margin-bottom: 0;
    margin-top: 20px;
    margin-top: 1.25rem;
  }

  .footer-friendlink__item {
    margin-bottom: 6px;
    margin-bottom: 0.375rem;
    font-family: Poppins;
    font-weight: normal;
    letter-spacing: 1px;
    color: #3d3d3d;
  }
}

.footer-right {
  background-color: #000;

  .footer__box {
    padding: 15px;
    padding: 0.9375rem;
    font-family: Poppins;
    font-weight: 400;
    color: rgba(255, 255, 2555, 0.8);
  }
}

.footer-footnote {
  .footer__box {
    padding: 15px;
    padding: 0.9375rem;
    font-family: Source Han Sans;
    font-weight: 400;
    color: #5a6670;
  }
}
</style>

<style lang="less" scoped>
@import url(./css/footer@1200.less);
@import url(./css/footer@1024.less);
@import url(./css/footer@768.less);
@import url(./css/footer@512.less);
</style>