* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
    list-style: none;
}

.news {
    width: 1200px;
    margin: 20px auto;
}
/* 头部区域 */
.news .news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.news .news-header .left ul {
    width: 300px;
    display: grid;
    grid-template-columns: repeat(4,minmax(0, 1fr));
    gap: 30px;
}
.news .news-header .left ul li {
    color: #fff;
    text-align: center;
    padding-bottom: 8px;
    position: relative;
    cursor: pointer;
}
.news .news-header .left ul li a {
    text-decoration: none;
    color: #fff;
}
.news .news-header .left ul li.active {
    font-weight: bold;
}

.news .news-header .left ul li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
}
.content img{
    width:100%;
}
/* 内容区域 */
.news .news-content {
  display: grid;
  grid-template-columns: repeat(4,minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.news .news-content .card {
    height: 140px;
    display: flex;
    flex-direction: column;
    background: #142a18;
    border-radius: 16px;
}  
.news .news-content .card:hover {
  background: #1f4526;
}
.news .news-content .card .img {
  width: 100%;
  height: 110px;
  border-radius: 16px 16px 0 0;
}
.news .news-content .card .title {
  width: 100%;
  font-size: 16px;
  color: #e5e5e5;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
/* 底部区域 */
.news .news-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0px;
}
.news .news-footer button {
    background: linear-gradient(180deg,#4ed462, #30933f);
    border-radius: 16px;
    font-size: 16px;
    width: 100px;
    height: 40px;
    color: #fff;
    border: none;
}

/* 新闻列表详情样式 */
.detail {
    width: 1200px;
    margin: 20px auto;
}
.detail .detail-header .back {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.detail .detail-header .back span {
    color: #fff;
}
/* .detail .detail-header label {
    width: 3px;
    height: 24px;
    background: linear-gradient(180deg,#4ed462, #30933f);
    margin-right: 10px;
} */
.detail .detail-content {
    text-align: center;
    margin-top: 20px;
}
.detail .detail-content .time {
    font-size: 20px;
}
.detail .detail-content p {
    font-size: 14px;
}
.detail .detail-content .content img {
    width: 100%;
}

@media screen and (max-width: 992px) {
    .news {
        width: 100%;
        padding: 0 15px;
    }

    /* 头部区域适配 */
    .news .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .news .news-header .left ul {
        width: 100%;
        gap: 50px;
    }

    /* 内容区域适配 */
    .news .news-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .news .news-content .card {
        height: 120px;
    }

    .news .news-content .card .img {
        height: 90px;
    }

    .news .news-content .card .title {
        font-size: 14px;
        padding: 0 5px;
    }

    /* 底部按钮适配 */
    .news .news-footer button {
        width: 100%;
        max-width: 100px;
    }
    .detail {
        padding: 0 15px;
        width: 100%;
    }
}