/* News Module Layout Optimization */

/* 新闻容器 */
.news-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* 新闻列 */
.news-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 新闻项 */
.news-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

/* 新闻内容 */
.news-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* 新闻头部 */
.news-item-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* 新闻标题 */
.news-item-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  margin: 0;
  transition: color 0.3s ease;
}

.news-item:hover .news-item-title {
  color: #3b82f6;
}

/* 新闻元信息 */
.news-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

/* 新闻摘要 */
.news-item-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 新闻CTA */
.news-cta {
  display: flex;
  justify-content: center;
  margin: 3rem 0 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .news-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .news-column {
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .news-item {
    padding: 1.25rem;
  }
  
  .news-item-title {
    font-size: 1.125rem;
  }
  
  .news-item-excerpt {
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .news-container {
    margin: 2rem 0;
  }
  
  .news-item {
    padding: 1rem;
  }
  
  .news-item-title {
    font-size: 1rem;
  }
  
  .news-item-excerpt {
    font-size: 0.875rem;
    -webkit-line-clamp: 2;
  }
  
  .news-cta {
    margin: 2rem 0 0;
  }
}

/* 确保与其他模块的兼容性 */
.section-title {
  margin-bottom: 0.5rem;
}

.section-subheading {
  margin-bottom: 1rem;
}

.section-subtitle {
  margin-bottom: 2rem;
}
