﻿    /* 基础样式 */
.news-container {
  margin: 30px auto;
  font-family:Arial, sans-serif;
}

.section-title {
  font-size: 24px;
  color: #333;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.news-item {
  display: flex;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.news-thumbnail {
  flex: 0 0 200px;
  height: 120px;
  overflow: hidden;
  border-radius: 4px;
}

.thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item:hover .thumbnail-img {
  transform: scale(1.05);
}

.news-content {
  flex: 1;
}

.news-title {
  margin: 0 0 10px 0;
  font-size: 18px;
}

.news-title a {
  color: #333;
  text-decoration: none;
}

.news-title a:hover {
  color: #e74c3c;
}

.news-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.news-meta {
  font-size: 12px;
  color: #999;
}

.news-date {
  margin-right: 15px;
}

.news-category {
  background-color: #f5f5f5;
  padding: 2px 8px;
  border-radius: 3px;
}

.news-footer {
  text-align: right;
  margin-top: 20px;
}

.view-all {
  color: #e74c3c;
  text-decoration: none;
  font-weight: bold;
}

.view-all:hover {
  text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
  }
  
  .news-thumbnail {
    flex: 0 0 auto;
    width: 100%;
    height: 180px;
  }
}