/* ==========================================
   news.css - 新闻动态页（news.html）独有样式
   ========================================== */

.news-item {
  display: flex;
  gap: 25px;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
  align-items: stretch;
}

.news-thumb {
  flex-shrink: 0;
  width: 260px;
  height: 170px;
  overflow: hidden;
  display: block;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-thumb:hover img {
  transform: scale(1.05);
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
}

.news-content h4 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.news-content h4 a {
  color: #333;
  transition: color 0.3s;
}

.news-content h4 a:hover {
  color: #00a651;
}

.news-summary {
  font-size: 13px;
  color: #888;
  line-height: 1.8;
  margin-bottom: 12px;
  /* 最多三行，超出省略 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  font-size: 13px;
  color: #aaa;
}

/* 响应式 */
@media (max-width: 768px) {
  .news-item {
    gap: 18px;
  }

  .news-thumb {
    width: 180px;
    height: 120px;
  }

  .news-content h4 {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .news-item {
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
  }

  .news-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }
}