/* ============================================
   news.html 新闻列表页样式
   ============================================ */

.news-list {
  padding: 60px 20px;
  background: #ffffff;
}

.news-list__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.news-card {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-card:hover {
  border-color: #c8e6c9;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.news-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.news-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: rgba(76, 175, 80, 0.9);
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card__media img {
  transform: scale(1.06);
}

.news-card__body {
  padding: 22px 20px 24px;
}

.news-card__title {
  font-size: 17px;
  font-weight: 700;
  font-family: "Archivo", sans-serif;
  color: #1a1a2e;
  margin: 0 0 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.news-card:hover .news-card__title {
  color: #4caf50;
}

.news-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #757575;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #4caf50;
}

.news-card__more i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card__more i {
  transform: translateX(4px);
}

/* Pagination */
.news-list__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.news-list__pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #424242;
  background: #f5f5f5;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-list__pagination a:hover {
  background: #e0e0e0;
  color: #1a1a2e;
}

.news-list__pagination a.is-active {
  background: #4caf50;
  color: #ffffff;
}

/* Tablet */
@media (min-width: 600px) {
  .news-list__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 992px) {
  .news-list {
    padding: 80px 20px;
  }

  .news-list__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

@media (max-width: 599px) {
  .news-list {
    padding: 40px 16px;
  }

  .news-list__grid {
    gap: 16px;
  }
}
