/* 新闻网格样式 */
.news-grid-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.news-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top:60px;
}

/* 新闻卡片 */
.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
    background: url(../images/card.jpg) no-repeat center;
    background-size: cover;
}

.news-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
  border-top: 3px solid #5669d6;
}

/* 新闻内容区域（现在在图片上方） */
.news-card-content {
  padding: 20px 20px 16px 20px;
}

/* 新闻日期 */
.news-card-date {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
  display: block;
}

/* 新闻标题 */
.news-card-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
  margin-bottom: 12px;
}

.news-card:hover .news-card-title {
  color: #007bff;
}

/* 新闻图片容器 */
.news-card-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f0f0f0;
    margin: 0 4%;
    width: 92%;
    display: inline-block;
    overflow: hidden;
    border-radius: 6px;
}
.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.news-card:hover .news-card-image img {
  transform: scale(1.1);
}

/* Learn more 按钮 */
.news-card-footer {
  padding: 20px;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.news-card-link::after {
  content: '»';
  font-size: 16px;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-link {
  color: #007bff;
}

.news-card:hover .news-card-link::after {
  transform: translateX(4px);
}

/* Learn More 大按钮 */
.news-more-section {
  text-align: center;
  margin-top: 50px;
}

.news-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  background: transparent;
  color: #0174d2;
  border: 1px solid #0174d2;
  border-radius: 50px;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
}

.news-more-btn::after {
  content: '»';
  font-size: 16px;
  transition: transform 0.3s ease;
}

.news-more-btn:hover {
  background: #0174d2;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.news-more-btn:hover::after {
  transform: translateX(4px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .news-grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .news-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .news-grid-section {
    padding: 40px 0;
  }
  
  .news-grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .news-card-image {
    height: 200px;
  }
  
  .news-card-title {
    font-size: 15px;
  }
  .news-card-content {
    padding: 16px;
  }
  
  .news-card-image {
    height: 180px;
  }
}
