/* 头部布局 */
.companyNews .banner {
    width: 100%;
    position: relative;
    min-height: 300px;
}
.companyNews .company_img {
  width: 100%; /* 或者指定固定宽度 */
  height: 607px; /* 根据需要指定高度 */
  background-size: cover; /* 让背景图覆盖整个盒子 */
  background-position: center; /* 背景图居中显示 */
  background-repeat: no-repeat; /* 不重复背景图 */
}
.companyNews .banner .text{
  height: auto;
  position: absolute;
  left: 45%;
  top: 40%;
  transform: translate(-50%, -50%);
  font-family: PingFang SC, PingFang SC;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 0px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.companyNews .banner .banner_news{
  position: absolute;
  left: 25%;
  margin-top: 30%;
  font-size: 24px;
}
.text.show {
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 3s forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 相关新闻布局 */
.companyNewsLists {
    margin: 0 auto;
}

.companyNews .companyNewsList {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    /* justify-content: center; */
}

.companyNews .companyNewsList li {
    width: 23%;
    height: auto;
    margin-right: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}


/* 定义 li 元素动画 */

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 给每个 li 元素设置动画效果 */

.companyNews li.show {
    animation: fadeInUp 0.5s ease forwards;
}

.companyNews .companyNewsList li:nth-child(4n) {
    margin-right: 0;
}


/* 图片盒子的宽度 */

.companyNews .companyNewsList li .img {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}

.companyNews .companyNewsList li .img img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 170px;
    transition: transform 1s;
}

.companyNews .companyNewsList li:hover .img img {
    scale: 1.1;
    transition: scale 1s linear;
}

.companyNews .companyNewsList li .content {
    width: 100%;
    height: 130px;
    background-color: #eeeeee;
    padding: 15px;
}

.hover-effect:hover h5.txt_ellipsis,
.hover-effect:hover p.txt_two_ellipsis,
.hover-effect:hover .time span {
    color: #72AF39;
    /* 将文字颜色设置为绿色 */
}

.hover-effect:hover .time span {
    color: #72AF39 !important;
    /* 将文字颜色设置为绿色 */
}

.companyNews .companyNewsList li h5 {
    font-size: 16px;
    font-family: PingFang SC, PingFang SC;
    font-weight: 500;
    color: #333333;
    line-height: 22px;
}

.companyNews .companyNewsList li p {
    font-size: 12px;
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    color: #666666;
    margin-top: 8px;
}

.companyNews .companyNewsList li .time {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.companyNews .companyNewsList li .time span {
    font-size: 12px;
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    color: #999999;
}

.companyNews .companyNewsList li .time span i {
    font-size: 14px;
    color: #333333;
    font-style: normal;
}







