<template>
  <div>
    <div class="banner">
      <el-image
        style="width: 100%; height: 100%;position:absolute;top: 0;left: 0;"
        :src="banner"
        fit="contain"></el-image>
      <div class="bannerInfo">青岛海威物联科技有限公司，致力于工业物联网软硬件系统研发、生产和销售，提供感知互联的工业化联网整体解决方案。</div>
    </div>

      <div class="newsList">
        <div v-for="i in 9" class="newsItem">
          <div class="newsDay">03</div>
          <div class="newsTime">11/2024</div>
          <div class="newsTitle">[央视镜头]海威物联技术支持的“智慧物流”</div>
          <div class="newsImage">
            <el-image
              style="width: 100%;height: 100%"
              :src="banner"
              fit="contain"></el-image>
          </div>
          <div class="newsInfo">
            近日，央视记者探访目前全球规模最大的仓检一体智能物流园区-京东昆明
          </div>
          <div class="newsDetail">查看详情 ></div>
        </div>
      </div>

    <ContactUs class="contactUs"/>
    <Copyright class="copyright"/>
  </div>
</template>

<script>
import banner from '@/assets/image/banner.png'
import ContactUs from '@/components/contactUs'
import Copyright from '@/components/copyright'

export default {
  name: 'NewsCenter',
  components: {
    ContactUs,
    Copyright
  },
  data() {
    return {
      banner
    }
  }
}
</script>

<style lang="less" scoped>
@import "~@/style.less";

.banner {
  width: 100%;
  height: 35.5vw;
  position: relative;

  .bannerInfo {
    position: absolute;
    top: 35%;
    left: 19%;
    width: 45%;
    text-align: left;
    font-size: 1.4vw;
    color: @standard-color;
    line-height: 2.5vw;
    letter-spacing: 4px;
    word-break: break-all;
  }

  .bannerBtn {
    position: absolute;
    top: 58%;
    left: 19%;
    width: 11.5vw;
    font-size: 1.2vw;
    line-height: 2vw;
    letter-spacing: 2px;
  }

  .tabs {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to bottom, fade(@standard-color, 10), fade(#fff, 10));
    backdrop-filter: saturate(50%) blur(4px);

    .content {
      width: 62%;
      position: relative;
      left: 50%;
      bottom: 0;
      transform: translateX(-50%);

      .tab {
        display: inline-block;
        width: 33%;
        line-height: 6.2vw;
        font-size: 1.6vw;
        letter-spacing: 3px;
      }

      .tab.active {
        color: @standard-color;
        width: calc(33% - 2px);
        border: 1px solid #fff;
        box-shadow: 0 0 3px #0002;
      }
    }
  }
}

.newsList {
  width: 65vw;
  margin: 5.2vw auto 3.9vw;

  .newsItem {
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    width: 17vw;
    background-color: #f8f8f8;
    text-align: left;
    padding: 1.5vw;
    margin: 0 0.7vw 1.4vw;

    .newsDay {
      margin-top: 0.7vw;
      font-size: 2.9vw;
      color: #000;
      transition: all 0.2s;
    }

    .newsTime {
      font-size: 1.1vw;
      margin-top: 0.15vw;
      color: #666;
      transition: all 0.2s;
      letter-spacing: 2px;
    }

    .newsTitle {
      margin-top: 0.8vw;
      font-size: 1.2vw;
      color: #000;
      transition: all 0.2s;
      line-height: 1.9vw;
      letter-spacing: 3px;
    }

    .newsImage {
      margin-top: 1vw;
      width: 100%;
      height: 10.4vw;
    }

    .newsInfo {
      margin-top: 0.85vw;
      font-size: 0.9vw;
      color: #666;
      transition: all 0.2s;
      line-height: 1.4vw;
      letter-spacing: 2.5px;
    }

    .newsDetail {
      margin-top: 1vw;
      font-size: 1vw;
      color: @standard-color;
      transition: all 0.2s;
    }
  }

  .newsItem:hover {
    background-color: @standard-color;

    .newsDay {
      color: #fff;
    }

    .newsTime {
      color: #fff;
    }

    .newsTitle {
      color: #fff;
    }

    .newsInfo {
      color: #fff;
    }

    .newsDetail {
      color: #fff;
    }
  }
}

.contactUs {
  width: 100%;
  background-color: #2e445c;
}

.copyright {
  width: 100%;
  background-color: #1d3348;
}
</style>
