<template>
  <el-footer class="p-footer">
    <el-row>
      <div class="p-footer-link max-w1280">
        <el-row class="">
          <el-col :span="8" style="margin-top: -10px;">
            <ul>
              <li class="desc_t">
                <NuxtLink to="/">
                  <img src="/img/logo2.png" class="p-logo" loading="lazy" width="150" alt="logo" />
                </NuxtLink>
              </li>
              <li class="desc_a desc_inner">
                <h4>Contact Us</h4>
                <p>Company Tel: 0755-82565333</p>
                <p>Email: hkt@heketai.com</p>
                <p>Sales Tel: 13670157820 (WeChat same number)</p>
                <p>Headquarters: 8F, Building 7, Kangli City, 66 Pingji Avenue, Longgang District, Shenzhen</p>
                <h4>Smart Manufacturing Bases</h4>
                <p>South China: No. 1758, Boluo Avenue West, Luoyang Street, Boluo County, Huizhou</p>
                <p>Southwest China: Building 18, Kechuang Center, Shunqing District, Nanchong</p>
              </li>
            </ul>
          </el-col>
          <el-col :span="1"></el-col>
          <el-col :span="2">
            <ul>
              <li class="li-t">
                About Us
              </li>
              <li class="li-a">
                <NuxtLink to="/about/Introduction#company-intro">Company Profile</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/about/Introduction#company-culture">Corporate Culture</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/about/Introduction#company-history">Development History</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/about/Introduction#company-award">Awards</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/about/zzzl">Certificates & Patents</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/suppliers">Supplier Lookup</NuxtLink>
              </li>
            </ul>
          </el-col>
          <el-col :span="2">
            <ul>
              <li class="li-t">
                Products
              </li>
              <li class="li-a">
                <NuxtLink to="/newProduct/72/77?page=1&name=Schottky Barrier Diode">Diodes</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/newProduct/73/87?page=1&name=NPN transistor">Transistors</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/newProduct/71/119?page=1&name=N channel MOSFET">MOS</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/newProduct/74/124?page=1&name=Linear power supply IC">Integrated Circuits</NuxtLink>
              </li>
            </ul>
          </el-col>
          <el-col :span="2">
            <ul>
              <li class="li-t">
                Manufacturing
              </li>
              <li class="li-a">
                <NuxtLink to="/pdtion/finfo">Packaging & Testing</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/pdtion/encapsulation">Package Types</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/pdtion/pktx">Quality Control</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/pdtion/sysb">Laboratory Center</NuxtLink>
              </li>
            </ul>
          </el-col>
          <el-col :span="2">
            <ul>
              <li class="li-t">
                News Center
              </li>
              <li class="li-a">
                <NuxtLink to="/news?type=40&current=1&size=6">Company News</NuxtLink>
              </li>
              <li class="li-a">
                <NuxtLink to="/news?type=41&current=1&size=6">Industry News</NuxtLink>
              </li>
            </ul>
          </el-col>
          <el-col :span="6">
            <ul>
              <li class="li-t">
                Follow Us
              </li>
              <li class="li-a d-flex footer-ico">
                <div>
                  <img src="@/assets/img/icon/shipinhao.png" alt="" srcset="">
                  <p>Video Channel</p>
                </div>
                <div>
                  <img src="@/assets/img/icon/douyinhao.png" alt="" srcset="">
                  <p>Douyin</p>
                </div>
                <div>
                  <img src="@/assets/img/icon/weixingongzhonghao.jpg" alt="" srcset="">
                  <p>WeChat Official Account</p>
                </div>
              </li>
            </ul>
          </el-col>
        </el-row>
      </div>
    </el-row>
    <el-row class="p-footer-bottom max-w1280">
      <div class="friendly_links">
      </div>
      <div class="desc_inner">
        Copyright © 2025 Shenzhen Hotking Electronics Co., Ltd. All Rights Reserved. Designed by Wanhu ICP No. Guangdong 2021089018
      </div>
    </el-row>
  </el-footer>
</template>
<script setup lang="ts">
const user = useUserStore();
const isCn = ref(false);
let open = ref({
  feedback: false,
});
function cancel() {
  Object.keys(open.value).forEach(
    (key) => (open.value[key as keyof typeof open.value] = false)
  );
}
function getUrl() {
  let hostUrl = window.location.host;
  if (
    hostUrl.indexOf("ushopfy.cn") > -1 ||
    hostUrl.indexOf("192.168.0.") > -1 ||
    hostUrl.indexOf("fatmoreshop.com") > -1
  ) {
    isCn.value = true;
  }
}
onBeforeMount(() => {
  getUrl();
});
</script>
<style scoped lang="scss">
.p-footer {
  background: #252525;
  height: 100%;
  position: relative;
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 0px 18px rgba(0, 0, 0, 0.1);
  padding: 0;
}
.p-footer-link {
  margin-top: 38px;
  padding: 0 20px;
  width: 90%;
  .el-row {
    justify-content: space-between;
  }
}
.desc_t {
  img {
    border-radius: 5px;
  }
}
.desc_a {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  margin-top: 15px;
  color: #cccccc;
  P {
    line-height: 20px;
    & + p {
      margin-top: 4px;
    }
    &+h4{
      margin-top: 12px;
    }
  }
  h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 10px;
  }
}
.li-t {
  height: 25px;
  font-size: 14px;
  font-weight: bold;
  line-height: 22px;
  margin-bottom: 31px;
  margin-top: 12px;
  color: #ffffff;
}
.li-a {
  height: 22px;
  font-size: 12px;
  line-height: 22px;
  margin-bottom: 8px;
  color: #cccccc;
  &.footer-ico {
    height: auto;
    text-align: center;
    display: flex;
    justify-content: space-between;
    img {
      width: 80px;
      height: 80px;
      margin-bottom: 5px;
    }
  }
  a {
    position: relative;
    &:hover {
      color: $mainColor;
      &::before {
        position: absolute;
        content: "";
        width: 100%;
        height: 1px;
        background: $mainColor;
        left: 0;
        bottom: 0;
      }
    }
  }
}
.module_img {
  width: 28px;
  height: 28px;
  vertical-align: top;
  opacity: 1;
  margin-left: 12px;
}
.p-footer-ico {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  height: 60px;
  align-items: flex-end;
  margin-bottom: 23px;
}
.p-footer-bottom {
  margin-top: 15px;
  display: block;
  .friendly_links {
    color: #cccccc;
    font-size: 14px;
    padding: 1px 0;
    border-bottom: 1px solid #515151;
    a {
      height: 22px;
      margin: 0 10px;
      position: relative;
      &:hover {
        color: $mainColor;
        &::before {
          position: absolute;
          content: "";
          width: 100%;
          height: 1px;
          background: $mainColor;
          left: 0;
          bottom: 0;
        }
      }
      &:first-child {
        margin-left: 0;
      }
    }
  }
  .desc_inner {
    color: #cccccc;
    line-height: 60px;
    text-align: center;
  }
}
.desc_inner-wrap {
  display: flex;
  .desc_inner {
    margin-left: 30px;
    position: relative;
    &:hover {
      color: $mainColor;
      &::before {
        position: absolute;
        content: "";
        width: 100%;
        height: 1px;
        background: $mainColor;
        left: 0;
        bottom: 0;
      }
    }
  }
}
</style>
