<template>
  <div :class="isMobile ? 'is-h5' : 'is-pc'">
    <div class="banner-content">
      <img
        v-if="!isMobile"
        class="img"
        src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/seg-ppa/home-banner.png"
      />
      <img v-else class="img" src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/seg-ppa/h5/banner.png" />
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  computed: {
    isMobile() {
      return this.$store.state.isMobile
    }
  },
  methods: {}
}
</script>

<style lang="scss" scoped>
.is-pc {
  .banner-content {
    position: relative;
    width: 100%;
    .img {
      width: 100%;
      height: 100%;
      min-height: 650px;
      object-fit: cover;
      z-index: 1000;
    }
    .content_desc {
      position: absolute;
      top: 255px;
      left: 50%;
      transform: translate(-50%, -50%);

      .desc_cn {
        font-size: 60px;
        font-weight: 500;
        color: #ffffff;
        text-shadow: -1.8369701465288538e-16px 3px 6px rgba(0, 0, 0, 0.3);
        white-space: nowrap;
        letter-spacing: 5.5px;
      }
      .desc_en {
        font-size: 30px;
        font-weight: 400;
        color: #ffffff;
        text-shadow: -1.8369701465288538e-1 3px 6px rgba(0, 0, 0, 0.3);
        white-space: nowrap;
        margin-top: 5px;
      }
    }
    .banner_navList {
      position: absolute;
      bottom: -59px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      align-items: flex-end;
      margin: 0;
      padding: 0;
      .banner_nav {
        width: 239px;
        height: 144px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        background-color: #be0927;
        // border-right: 1px solid #e64b77;
        padding-right: 0;
        opacity: 0.71;

        .nav_top {
          width: 100%;
          height: 87px;
          display: flex;
          justify-content: center;
          align-items: center;
          border-right: 0.5px solid rgba(255, 255, 255, 0.30196078431372547);
        }
        .banner_nav:last-child {
          border: none;
        }
        .nav_tit {
          width: 100%;
          height: 57px;
          font-size: 14px;
          line-height: 57px;
          text-align: center;
          color: #fefffe;
          padding-bottom: 15px;
          border-right: 1px solid #be0927;
          font-size: 20px;
        }
        &:hover {
          height: 160px;
          background-color: #aa1941;
          border-right: 1px solid #be0927;
          opacity: 0.78;
        }
        &:hover .nav_top {
          border-right: none;
        }
      }
    }
  }
}
.is-h5 {
  .banner-content {
    img {
      display: block;
      width: 100%;
    }
  }
}
</style>
