/* 新闻页面样式 */
.news-container {
  min-height: 100vh;
  background: #f8f9fa;
  padding: 40px 0;
}

.news-container .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 标题样式 */
.title {
  text-align: center;
  margin-bottom: 50px;
}

.title-top {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.title-subtitle {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin: 0;
}

/* 分类导航 */
.news-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.category-item {
  padding: 10px 20px;
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #6c757d;
}

.category-item:hover,
.category-item.active {
  background: #007bff;
  border-color: #007bff;
  color: #fff;
  transform: translateY(-2px);
}

/* 章节标题 */
.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 30px;
  position: relative;
  padding-left: 20px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 30px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 2px;
}

/* 精选新闻 */
.featured-news {
  margin-bottom: 60px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

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

.featured-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.featured-card:hover .featured-image img {
  transform: scale(1.05);
}

.category-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 123, 255, 0.9);
  color: #fff;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 1.0rem;
  font-weight: 500;
}

.featured-content {
  padding: 25px;
}

.news-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-summary {
  font-size: 1.3rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.publish-date {
  color: #95a5a6;
  font-size: 1.2rem;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #f8f9fa;
  color: #6c757d;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 1.1rem;
  border: 1px solid #e9ecef;
}

/* 关联信息样式 */
.news-relation {
  margin-top: 12px;
  margin-bottom: 20px;
  padding: 10px 15px;
  background: #f0f8ff;
  border-left: 4px solid #007bff;
  border-radius: 6px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.relation-label {
  font-weight: 600;
  color: #007bff;
  margin-right: 5px;
}

.relation-text {
  color: #495057;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #0056b3;
  text-decoration: none;
}

.external-icon {
  font-style: normal;
  font-size: 1.1em;
}

/* 全部新闻 */
.all-news {
  margin-bottom: 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

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

.news-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

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

.news-card:hover .news-image img {
  transform: scale(1.03);
}

.news-content {
  padding: 20px;
}

.news-content .news-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-content .news-summary {
  font-size: 1.3rem;
  margin-bottom: 15px;
  -webkit-line-clamp: 2;
}

.news-content .news-meta {
  margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 1024px) and (min-width: 769px) {
  .featured-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  .news-container {
    padding: 20px 0;
  }
  
  .news-container .container {
    padding: 0 15px;
  }
  
  .title-top {
    font-size: 2rem;
  }
  
  .news-categories {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .category-item {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .featured-grid,
  .news-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  
  .featured-card,
  .news-card {
    margin: 0 auto;
    max-width: 400px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .news-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .title-top {
    font-size: 1.8rem;
  }
  
  .featured-content,
  .news-content {
    padding: 20px 15px;
  }
  
  .news-title {
    font-size: 1.1rem;
  }
  
  .featured-card .news-title {
    font-size: 1.2rem;
  }
}