
<template>
  <div class="container">
    <AppHead/>
    <div class="banner">
      <div class="banner_main">
        <h2>政策法规</h2>
        <p>安全第一 预防为主 综合治理</p>
      </div>
    </div>
    <div class="new_container">
      <div class="top">
        <div class="wrap">
          <div
            v-for="(item, index) in rulesItems"
            :key="index"
            class="list"
            :class="{ active: activeIndex === index }"
            @click="activeIndex = index"
            >
            {{item}}
          </div>
        </div>
      </div>
      <div class="new_main">
        <NuxtLink to="/rule/details" >
          <div class="wrap" >
            <div class="item">
              <div class="info">
                <div class="title">《应急管理部行政复议和行政应诉工作办法》中华人民共和国应急管理部令第15号2024年6月1日起施行</div>
                <div class="time"><img src="@/assets/images/time.png" alt="河北秦安安全科技股份有限公司"/>   <span>2024-04-15</span> </div>
              </div>
            </div>
          </div>
        </NuxtLink>
        <NuxtLink to="/rule/details">
          <div class="wrap" >
            <div class="item">
              <div class="info">
                <div class="title">《应急管理部行政复议和行政应诉工作办法》中华人民共和国应急管理部令第15号2024年6月1日起施行</div>
                <div class="time"><img src="@/assets/images/time.png" alt="河北秦安安全科技股份有限公司"/>   <span>2024-04-15</span> </div>
              </div>
            </div>
          </div>
        </NuxtLink>
        <NuxtLink to="/rule/details">
          <div class="wrap" >
            <div class="item">
              <div class="info">
                <div class="title">《应急管理部行政复议和行政应诉工作办法》中华人民共和国应急管理部令第15号2024年6月1日起施行</div>
                <div class="time"><img src="@/assets/images/time.png" alt="河北秦安安全科技股份有限公司"/>   <span>2024-04-15</span> </div>
              </div>
            </div>
          </div>
        </NuxtLink>
      </div>
    </div>

    <AppFoot/>
    <right/>
  </div>
</template>
<script setup lang="ts">
import { ref } from "vue";

const rulesItems=["法律法规", "政策规章", "规范文件", "技术标准"];
const activeIndex = ref(0);



</script>

<style scoped lang="scss">
.container {
  background: #f6f8fa;
  .banner {
    width: 100%;
    height: 320px;
    background: url("@/assets/images/newbanner.png") no-repeat top center;
    .banner_main {
      width: 1400px;
      margin: 0 auto;
      padding-top: 135px;
      h2 {
        font-size: 60px;
        color: #ffffff;
        margin: 0;
        padding: 0;
      }
      p {
        margin: 0;
        color: #ffffff;
      }
    }
  }
  .new_container {
    width: 100%;

    .top {
      width: 100%;
      height: 60px;
      background: #ffffff;

      .wrap {
        width: 1400px;
        margin: 0 auto;
        display: flex;

        .list {
          font-size: 16px;
          line-height: 60px;
          cursor: pointer;
          position: relative;
          margin-right: 40px;

          &.active {
            color: #006aff;
            &:before {
              opacity: 1;
            }
          }

          &:before {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            border-bottom: 3px solid #006aff;
            width: 100%;
            opacity: 0;
          }
          &:hover {
            color: #006aff;
            &:before {
              opacity: 1;
            }
          }
        }
      }
    }
    .new_main{
      width: 1400px;
      margin: 20px auto;
      a{
        text-decoration: none;
      }
      .wrap{
        width: 100%;
        background: #ffffff;
        padding: 20px;
        border-radius: 4px;
        margin-bottom: 20px;
        .item{
          display: flex;
          .info{

            .title{
              font-size: 18px;
              color: #222222;
            }

            .time{
              color: #999999;
              margin-top: 10px;
              display: flex;
              align-items: center;
              margin-left: 10px;
              span{
                padding-left: 5px;
              }
            }
          }
        }
        &:hover{
          box-shadow: 0 8px 30px rgba(45, 104, 255, 0.15)
        }
      }
    }
  }
}


</style>
