/* 新闻页面样式 */

/* 首页和新闻页通用的新闻列表样式 */
.news-grid,
#news-list,
#news-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* 新闻卡片样式 */
.news-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-title {
  font-size: 1.1rem;
  margin: 0 0 10px 0;
  color: #2c3e50;
  flex-grow: 1;
}

.news-title a {
  color: #2c3e50;
  text-decoration: none;
}

.news-title a:hover {
  color: #3498db;
}

.news-excerpt {
  color: #34495e;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.news-meta {
  color: #7f8c8d;
  font-size: 0.85rem;
  margin-bottom: 10px;
  align-self: flex-start;
}

.read-more {
  display: inline-block;
  margin-top: auto;
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  text-decoration: underline;
}

/* 新闻详情页样式 */
.news-detail-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
}

.news-detail-header {
  text-align: center;
  margin-bottom: 20px;
}

.news-detail-title {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.news-detail-meta {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.news-detail-content {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #34495e;
}

/* 新闻来源信息样式 */
.news-source-info {
  margin-top: 30px;
  padding: 15px;
  background-color: #f8f9fa;
  border-left: 4px solid #3498db;
  border-radius: 0 4px 4px 0;
}

.news-source-info h4 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.news-source-info p {
  margin: 5px 0;
  color: #7f8c8d;
  font-size: 0.9rem;
}

.news-source-info a {
  color: #3498db;
  text-decoration: none;
}

.news-source-info a:hover {
  text-decoration: underline;
}

/* 分类筛选按钮样式 */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.category-btn {
  padding: 8px 16px;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 16px;
  color: #495057;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.category-btn:hover,
.category-btn.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

/* 新闻列表页样式 */
.news-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.news-header {
  text-align: center;
  margin-bottom: 30px;
}