

<template>
  <div class="container">
    <AppHead/>
    <div class="banner">
      <div class="banner_main">
        <h2>合作案例</h2>
        <p>安全第一 预防为主 综合治理</p>
      </div>
    </div>
    <div class="case_main">
      <div class="top">
        <div class="top_wrap">
          <div class="title">行业 <span class="line">|</span> </div>
          <div class="num">
            <div
              v-for="(item, index) in industries"
              :key="index"
              class="item"
              :class="{ active: activeIndex === index }"
              @click="activeIndex = index"
            >
              {{ item }}
            </div>
          </div>
        </div>
      </div>
      <div class="case_main_wrap">
        <NuxtLink to="/case/details">
          <div class="item">
            <div class="img"></div>
            <div class="info">
              <div class="title">秦皇岛港股份有限公司</div>
              <div class="text">把危险化学品安全摆在防范化解重大风险的突出位置，推进新一代信息技术和危险化学品安全生产深度融合，实现数字化转型...</div>
              <div class="details">了解详情 ></div>
            </div>
          </div>
        </NuxtLink>
        <NuxtLink to="/case/details">
          <div class="item">
            <div class="img"></div>
            <div class="info">
              <div class="title">秦皇岛港股份有限公司</div>
              <div class="text">把危险化学品安全摆在防范化解重大风险的突出位置，推进新一代信息技术和危险化学品安全生产深度融合，实现数字化转型...</div>
              <div class="details">了解详情 ></div>
            </div>
          </div>
        </NuxtLink>
        <NuxtLink to="/case/details">
          <div class="item">
            <div class="img"></div>
            <div class="info">
              <div class="title">秦皇岛港股份有限公司</div>
              <div class="text">把危险化学品安全摆在防范化解重大风险的突出位置，推进新一代信息技术和危险化学品安全生产深度融合，实现数字化转型...</div>
              <div class="details">了解详情 ></div>
            </div>
          </div>
        </NuxtLink>
        <NuxtLink to="/case/details">
          <div class="item">
            <div class="img"></div>
            <div class="info">
              <div class="title">秦皇岛港股份有限公司</div>
              <div class="text">把危险化学品安全摆在防范化解重大风险的突出位置，推进新一代信息技术和危险化学品安全生产深度融合，实现数字化转型...</div>
              <div class="details">了解详情 ></div>
            </div>
          </div>
        </NuxtLink>
        <NuxtLink to="/case/details">
          <div class="item">
            <div class="img"></div>
            <div class="info">
              <div class="title">秦皇岛港股份有限公司</div>
              <div class="text">把危险化学品安全摆在防范化解重大风险的突出位置，推进新一代信息技术和危险化学品安全生产深度融合，实现数字化转型...</div>
              <div class="details">了解详情 ></div>
            </div>
          </div>
        </NuxtLink>
        <NuxtLink to="/case/details">
          <div class="item">
            <div class="img"></div>
            <div class="info">
              <div class="title">秦皇岛港股份有限公司</div>
              <div class="text">把危险化学品安全摆在防范化解重大风险的突出位置，推进新一代信息技术和危险化学品安全生产深度融合，实现数字化转型...</div>
              <div class="details">了解详情 ></div>
            </div>
          </div>
        </NuxtLink>
      </div>
    </div>
    <AppFoot/>
    <right/>
  </div>
</template>
<script setup lang="ts">
const activeIndex = ref(0);
const industries = ["全部", "冶金", "机械", "军工", "民爆", "环保", "水务", "风电", "其他"];
</script>
<style scoped lang="scss">
.container{
  background: #f6f8fa;
  .banner {
    width: 100%;
    height: 494px;
    background: url("@/assets/images/case_banner.png") no-repeat top center;
    .banner_main {
      width: 1400px;
      margin: 0 auto;
      padding-top: 230px;
      h2 {
        font-size: 60px;
        color: #ffffff;
        margin: 0;
        padding: 0;
      }
      p {
        margin: 0;
        color: #ffffff;
      }
    }
  }
  .case_main{
    width: 100%;
    padding-bottom: 50px;
    .top{
      background: #ffffff;
      height: 60px;
      padding-top: 20px;

      .top_wrap{
        width: 1400px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        .title{
          margin-right: 20px;
          .line{
            color: #999999;
            margin-left: 20px;
          }
        }
        .num{
          display: flex;
          .item{
            color: #666666;
            padding: 6px 30px;
            border-radius: 50px;
            cursor: pointer;
            margin-right: 20px;
            &.active{
              background: #2e57e9;
              color: #ffffff;
            }
            &:hover{
              background: #2e57e9;
              color: #ffffff;
            }
          }
        }

      }

    }

    .case_main_wrap{
      width: 1400px;
      margin: 30px auto;
      position: relative;
      display: flex;
      flex-wrap: wrap;
      a{
        text-decoration: none;
      }

      .item{
        width: 440px;
        background: #ffffff;
        border-radius: 16px;
        margin: 10px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
        transition: all 0.4s ease;
        cursor: pointer;
        &:hover{
          transform: translateY(-8px);
          box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        }
        .img{
          width: 100%;
          height: 250px;
          background: url("@/assets/images/img17.png") no-repeat top center;
          border-radius: 20px;
        }
        .info{
          background: #ffffff;
          padding: 20px;
          border-radius: 20px;
          margin-top: -40px;
          .title{
            font-size: 18px;
            text-align: left;
            margin-bottom: 20px;
            color: #222222;

          }
          .text{
            font-size: 14px;
            color: #575d63;
          }
          .details{
            color: #1d78ff;
            text-align: right;
            font-size: 14px;
            margin-top: 20px;
          }
        }
      }
    }


  }
}

</style>
