<template>
  <div class="footerBox">
    <div class="content">
      <div class="box">
        <div class="navs">
          <div class="nav-item">
            <router-link to="/" class="title">Home</router-link>
          </div>
          <div class="nav-item">
            <div class="title" @click="goto('productCenter')">Product Center</div>
          </div>
          <div class="nav-item">
            <div class="title" @click="goto('service')">Service</div>
          </div>
          <div class="nav-item">
            <div class="title" @click="goto('projectCases')">Project Cases</div>
          </div>
          <div class="nav-item">
            <div class="title" @click="goto('informationCenter')">News</div>
          </div>
          <div class="nav-item">
            <router-link to="/contactUs" class="title">Contact Us</router-link>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script  setup lang="ts">
import { onMounted } from "vue";

const goto = (idname: any) => {
  document.getElementById(idname)?.scrollIntoView()
}

onMounted(async () => {

})
</script>

<style scoped lang="less">
.footerBox {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 1rem 0 1rem;
  background-color: #0b1030;
  white-space: nowrap;
  position: relative;

  .content {
    width: 100%;
    max-width: 75rem;
    margin: auto;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;


    .address {
      display: -webkit-box;
      display: -webkit-flex;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-align: center;
      -webkit-align-items: center;
      -ms-flex-align: center;
      align-items: center;
      padding-bottom: 2.5rem;
      border-bottom: 1px solid #2f3140;

      img {
        width: 12rem;
        margin-right: 1.875rem;
        cursor: pointer;
      }

      .right {
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        -ms-flex: 1;
        flex: 1;

        .top {
          display: -webkit-box;
          display: -webkit-flex;
          display: -ms-flexbox;
          display: flex;
          -webkit-box-align: center;
          -webkit-align-items: center;
          -ms-flex-align: center;
          align-items: center;

          .item {
            font-weight: 600;
            color: #fff;
            line-height: 1.375rem;
            padding: 0 1.25rem;
            border-right: 1px solid #fff;
            cursor: pointer;
          }

          .item:first-child {
            padding-left: 0;
          }

          .item:last-child {
            border-right: none;
          }

          .item.active {
            color: #3069fe;
          }
        }

        .info {
          font-size: .875rem;
          color: #a8a9b3;
          line-height: 1.25rem;
          margin-top: 0.625rem;
          display: -webkit-box;
          display: -webkit-flex;
          display: -ms-flexbox;
          display: flex;
          -webkit-box-align: center;
          -webkit-align-items: center;
          -ms-flex-align: center;
          align-items: center;
          -webkit-flex-wrap: wrap;
          -ms-flex-wrap: wrap;
          flex-wrap: wrap;

          p {
            margin: 0;
            padding: 0;
            margin-right: 2.5rem;
          }

          p:first-child {
            width: 100%;
          }
        }

      }
    }

    .box {
      display: -webkit-box;
      display: -webkit-flex;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-pack: justify;
      -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
      justify-content: space-between;
      margin-top: 2.5rem;

      .navs {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        vertical-align: baseline;

        .nav-item {
          cursor: pointer;
          margin-right: 3.125rem;

          .title {
            font-size: 15px;
            font-weight: bold;
            color: #fff;
            line-height: 1.3125rem;
            margin-bottom: 0.9375rem;
          }

          .items {
            .item {
              font-size: 14px;
              color: #8c8fa4;
              line-height: 1.875rem;
              display: block;
            }
          }
        }
      }

      .center {
        vertical-align: baseline;

        .title {
          font-size: .75rem;
          color: #fff;
          line-height: 1.3125rem;
          margin-bottom: 0.9375rem;
        }

        .no-transition {
          width: 6.875rem;
          margin-top: 0.75rem;
        }
      }

      .right {
        .title {
          font-size: 15px;
          font-weight: bold;
          color: #fff;
          line-height: 1.3125rem;
          margin-bottom: 0.9375rem;
        }

        .item {
          font-size: 14px;
          color: #bcbcbc;
          line-height: 1.875rem;
          cursor: pointer;
        }

        .item.active {
          color: #3069fe;
        }
      }
    }

    .copyright {
      font-size: .75rem;
      color: #8c8fa4;
      line-height: 1.0625rem;
      display: -webkit-box;
      display: -webkit-flex;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-pack: center;
      -webkit-justify-content: center;
      -ms-flex-pack: center;
      justify-content: center;
      -webkit-box-align: center;
      -webkit-align-items: center;
      -ms-flex-align: center;
      align-items: center;
      padding-top: 1.625rem;
      border-top: 1px solid #2f3140;
      margin-top: 2.5rem;
    }
  }
}

@media screen and (max-width: 1200px) {
  .footerBox {
    padding: 1rem 0;
    overflow: hidden;

    .content {
      padding: 0 1.25rem;

      .address {
        display: initial;

        .right {
          .top {
            .item {
              padding: 0 0.625rem;
            }
          }
        }
      }

      .box {
        display: initial;
        text-align: center;

        .navs {
          display: none;
        }

        .right {
          display: none;
        }

        .info {
          text-align: center;
        }
      }

      .copyright {
        flex-wrap: wrap;
      }
    }
  }
}</style>