.main {
  background: #fff;
}

// 广告位
.advertising-box {
  width: 100%;
  background-image: url('../../assets/image/cace/banner.jpg');
  height: 314px;
  background-size: 100% 100%;
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;

  .advertising-nav-box {
    width: 1440px;
    border-bottom: 1px solid #e0e0e0;
    padding: 14px 86px;

    .nav {
      display: flex;
      grid-gap: 56px;
    }

    li {
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 16px;
      color: #7B7B7D;
      line-height: 22px;
      text-align: left;
      font-style: normal;
    }

    .active {
      position: relative;
      color: #0D7BFF;
    }

    .active a {
      color: #0D7BFF;
    }

    .active::before {
      content: '';
      position: absolute;
      bottom: -15px;
      width: calc(100% + 20px);
      left: -10px;
      height: 2px;
      background: #1F70FF;
    }
  }

  .advertising-title {
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 32px;
    color: #000000;
    line-height: 45px;
    text-align: left;
    font-style: normal;
    margin-top: 64px;
  }

  .tags-box {
    display: flex;
    align-items: center;
    margin-top: 12px;

    .tags-box-item {
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 18px;
      color: #7B8297;
      line-height: 36px;
      text-align: left;
      font-style: normal;
    }

    .line {
      height: 14px;
      width: 2px;
      background: #7B8297;
      margin: 0 6px;
    }
  }
}

// 条件区域
.select-config-box {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-gap: 24px;
  margin-top: 80px;
  margin-bottom: 84px;
}

.case-content {
  width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 330px);
  grid-gap: 40px;
}

.case-item-box {
  width: 330px;

  &:hover {
    img {
      transform: scale(1.05);
    }

    .title-name {
      color: #0D7BFF;
    }
  }

  .case-time {
    display: flex;
    align-items: flex-end;
    margin-bottom: 20px;

    .year {
      font-family: DINAlternate, DINAlternate;
      font-weight: bold;
      font-size: 36px;
      color: #000000;
      line-height: 1;
    }

    .month {
      font-family: DINAlternate, DINAlternate;
      font-weight: bold;
      font-size: 16px;
      color: #B3B3B3;
      margin-left: 8px;
    }

  }

  .case-item-img {
    width: 330px;
    height: 278px;
  }

  .title-info {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 18px;
    color: #B3B3B3;
    line-height: 18px;
    margin-top: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .title-name {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 26px;
    color: #080808;
    margin-top: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* 限制显示的行数为2 */
    overflow: hidden;
    /* 隐藏超出部分 */
    text-overflow: ellipsis;
    /* 超出部分显示为省略号 */
  }
}

.case-hide {
  display: none;
}

// 每日一贴
.new-day-article {
  min-height: 630px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #FAFBFD 0%, #EFF2F9 100%);
  margin-top: 103px;
  padding-top: 88px;
  padding-bottom: 64px;

  .new-day-article-title {
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 24px;
    color: #000000;
    margin-left: 20px;
    display: flex;
    align-items: center;
    grid-gap: 20px;
    margin-bottom: 40px;

    .new-day-article-title-icon {
      height: 37px;
    }
  }

  .new-day-article-content {
    width: 1440px;
    display: grid;
    grid-template-columns: repeat(3, 464px);
    grid-gap: 24px;
    margin-bottom: 60px;

    .new-day-article-content-item {
      background: linear-gradient(134deg, #F9FBFF 0%, #EDF3FC 100%);
      box-shadow: 0px 4px 8px 0px rgba(20, 29, 39, 0.14);
      border-radius: 4px;
      border: 2px solid;
      border-image: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(226, 233, 250, 1)) 2 2;
      backdrop-filter: blur(4px);
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 26px 33px;
      box-sizing: border-box;
    }

    .new-day-article-content-item-title {
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 18px;
      color: #080808;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .new-day-article-content-item-info {
      display: flex;
      justify-content: space-between;
      margin-top: 16px;
    }

    .new-day-article-content-item-type {
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 14px;
      color: #36383F;
    }

    .new-day-article-content-item-time {
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 14px;
      color: #36383F;
    }
  }

  .look-more {
    margin-top: 10px;
    cursor: pointer;

    a {
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 18px;
      color: #0D7BFF;
    }

  }

  .new-day-article-content-item-type-box {
    display: flex;
    align-items: center;

    img {
      width: 13px;
      height: 12px;
      margin-right: 5px;
    }
  }
}

@media screen and (max-width: 1300px) {
  .advertising-box {
    height: 280px;
    padding-top: 61px;
    box-sizing: border-box;
    background-image: url('../../assets/image/cace/app_banner.png');

    .advertising-nav-box {
      display: none;
    }

    .advertising-title {
      font-size: 28px;
      line-height: 40px;
      font-weight: bold;
      margin-top: 30px;

    }

    .tags-box {
      margin-top: 20px;

      .tags-box-item {
        font-size: 16px;
        line-height: 16px;
      }
    }
  }

  // 条件区域盒子
  .select-config-box {
    padding: 0 16px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 14px;
    margin-top: 32px;
    margin-bottom: 32px;
  }

  .case-content {
    width: 100vw;
    grid-template-columns: repeat(2, 44.5vw);
    grid-gap: 26px 10px;
    padding: 0 16px;
    box-sizing: border-box;

    .case-item-box {
      width: 100%;

      .case-time {
        margin-bottom: 10px;

        .year {
          font-size: 20px;
        }

        .month {
          font-size: 12px;
        }
      }

      .case-item-img {
        width: 100%;
        height: auto;
        display: block;
      }

      .title-info {
        font-size: 12px;
        line-height: 12px;
        margin-top: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
      }

      .title-name {
        margin-top: 8px;
        font-size: 15px;
        line-height: 21px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        /* 限制显示的行数为2 */
        overflow: hidden;
        /* 隐藏超出部分 */
        text-overflow: ellipsis;
        /* 超出部分显示为省略号 */
      }
    }
  }

  .new-day-article {
    margin-top: 32px;
    padding: 32px 16px 32px 16px;
    min-height: max-content;

    .new-day-article-title {
      margin-left: 0;
      font-size: 20px;
      font-weight: bold;
      line-height: 1;
      margin-bottom: 32px;
      grid-gap: 10px;

      .new-day-article-title-icon {
        height: 24px;
      }
    }


    .new-day-article-content {
      width: 100%;
      display: flex;
      flex-direction: column;
      margin-bottom: 0;
      grid-gap: 0;

      .new-day-article-content-item {
        padding: 24px 16px 24px 20px;
        margin-bottom: 16px;
      }

      .new-day-article-content-item-title {
        font-size: 16px;
      }

    }

    .look-more {
      a {
        font-size: 16px;
      }
    }
  }
}