

/* 新闻容器 */
.news-container {
  max-width: 1600px;
  margin: 50px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

/* 文章主体 */
.news-article {
  margin-bottom: 30px;
}

/* 新闻标题 */
.news-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
  color: #222;
}

/* 新闻元数据 */
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  color: #888;
}

.news-meta span {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  margin-bottom: 5px;
}

.news-meta i {
  margin-right: 4px;
  font-size: 16px;
}

/* 摘要 */
.news-summary {
  padding: 15px;
  background-color: #f9f9f9;
  border-left: 4px solid #2196f3;
  margin-bottom: 20px;
  font-size: 16px;
  color: #444;
  line-height: 1.8;
}

/* 分享按钮 */
.news-share {
  display: flex;
  margin-bottom: 25px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  margin-right: 10px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  color: #fff;
  transition: background-color 0.3s;
}

.share-weixin {
  background-color: #07c160;
}

.share-weibo {
  background-color: #e6162d;
}

.share-link {
  background-color: #909399;
}

.share-btn:hover {
  opacity: 0.9;
}

.share-btn i {
  margin-right: 4px;
}

/* 新闻内容 */
.news-content {
  margin-bottom: 30px;
}

.news-content p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  text-align: justify;
}

.news-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 30px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #222;
}

/* 图片及图片说明 */
.news-image {
  margin: 25px 0;
  text-align: center;
}

.news-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.news-image figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #888;
  line-height: 1.5;
}

/* 引用块 */
.news-quote {
  margin: 25px 0;
  padding: 20px;
  background-color: #f9f9f9;
  border-left: 4px solid #ff9800;
  font-style: italic;
  color: #555;
  line-height: 1.7;
}

/* 标签 */
.news-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  margin: 0 10px 10px 0;
  background-color: #f0f2f5;
  border-radius: 16px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: background-color 0.3s;
}

.tag:hover {
  background-color: #e0e2e5;
  color: #333;
}

/* 栏目标题 */
.section-title {
  position: relative;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #222;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: #2196f3;
}

.comment-count {
  font-size: 14px;
  color: #888;
  font-weight: normal;
}

/* 相关新闻 */
.related-news {
  margin-bottom: 40px;
}

.related-news-list {
  list-style: none;
}

.related-news-item {
  margin-bottom: 15px;
}

.related-news-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  padding: 10px;
  transition: background-color 0.3s;
  border-radius: 4px;
}

.related-news-link:hover {
  background-color: #f5f5f5;
}

.related-news-img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
}

.related-news-info {
  flex: 1;
}

.related-news-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* 评论区 */
.news-comments {
  margin-top: 30px;
}

/* 评论表单 */
.comment-form {
  margin-bottom: 25px;
}

.comment-input {
  width: 100%;
  height: 100px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: none;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 10px;
  transition: border-color 0.3s;
}

.comment-input:focus {
  border-color: #2196f3;
  outline: none;
}

.comment-submit {
  padding: 8px 20px;
  background-color: #2196f3;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.3s;
}

.comment-submit:hover {
  background-color: #1976d2;
}

/* 评论列表 */
.comment-list {
  list-style: none;
}

.comment-item {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.comment-avatar {
  margin-right: 15px;
}

.comment-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.comment-body {
  flex: 1;
}

.comment-header {
  margin-bottom: 5px;
}

.comment-author {
  font-weight: 500;
  margin-right: 10px;
  color: #333;
}

.comment-time {
  font-size: 13px;
  color: #999;
}

.comment-content {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
}

.comment-actions {
  display: flex;
}

.comment-actions a {
  display: flex;
  align-items: center;
  margin-right: 15px;
  font-size: 13px;
  color: #666;
  text-decoration: none;
}

.comment-actions a i {
  margin-right: 4px;
}

/* 加载更多按钮 */
.comment-more {
  text-align: center;
  margin-top: 20px;
}

.load-more-btn {
  padding: 8px 25px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #666;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.load-more-btn:hover {
  background-color: #eee;
  color: #333;
}

/* 响应式适配 */
@media screen and (max-width: 768px) {
  .news-container {
    padding: 15px;
  }
  
  .news-title {
    font-size: 22px;
  }
  
  .news-meta {
    font-size: 12px;
  }
  
  .news-meta span {
    margin-right: 10px;
  }
  
  .news-content p {
    font-size: 15px;
  }
  
  .news-content h2 {
    font-size: 18px;
  }
  
  .related-news-img {
    width: 80px;
    height: 60px;
  }
  
  .related-news-title {
    font-size: 14px;
  }
}

/* 图标字体（这里使用占位，实际使用时可以替换为字体图标库或SVG图标） */
[class^="icon-"] {
  font-style: normal;
  display: inline-block;
  width: 16px;
  height: 16px;
  text-align: center;
}