/* 容器样式 */
.news-4 {
    width: calc(100% + 10px);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* 单个项目样式 */
.news-4 .item {
    width: calc(25% - 10px); /* 每个项目占据25%的宽度，减去左右padding */
    margin-right: 10px;
    margin-bottom:10px;
    border-radius: 8px;
    overflow: hidden;
}

.news-4 .item .imgs {
    position: relative; /* 为了绝对定位描述文本（可选） */
    height: 220px; /* 固定高度，你可以根据需要调整 */
    overflow: hidden;
}

.news-4 .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease; /* 添加过渡效果 */
}

.news-4  .item:hover img {
    transform: scale(1.2); /* 当鼠标悬停时，图片放大到原来的1.05倍 */
}

.news-4 .item .text {
    bottom: 10px; /* 距离容器底部的距离 */
    left: 0;
    right: 0;
    margin: 0 auto;
    font-size:14px;
    padding: 20px 10px 12px; /* 可选的，为了增加可读性 */
}

.news-4 .item .text h4{
    font-weight: bold;
    padding-bottom:5px;
    font-size:14px;
}
.news-4 .item .text p, .news-4 .item .text span{
    font-size:12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-4 .item {
        flex: 1 1 calc(50% - 20px); /* 每个项目占据50%的宽度 */
    }
}

@media (max-width: 480px) {
    .news-4 .item {
        flex: 1 1 calc(100% - 20px); /* 每个项目占据100%的宽度 */
    }
}