/* 新闻详情页样式 */
.news-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-header {
  margin-bottom: 2rem;
  text-align: center;
}

.news-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.news-meta {
  color: #666;
  font-size: 0.9rem;
}

.news-meta span {
  margin: 0 0.5rem;
}

.news-content {
  line-height: 1.8;
  margin-bottom: 2rem;
}

.news-content img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 8px;
}

.news-content p {
  margin-bottom: 1rem;
}

/* 分享功能 */
.share-section {
  margin: 2rem 0;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
  text-align: center;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.share-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background: #2E3192;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
}

.share-btn:hover {
  background: #1a1b5e;
}

/* 相关新闻 */
.related-news {
  margin: 2rem 0;
}

.related-news h2 {
  margin-bottom: 1rem;
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* 评论区 */
.comments-section {
  margin: 2rem 0;
}

.comments-section h2 {
  margin-bottom: 1rem;
}

.comment-form {
  margin-bottom: 2rem;
}

.comment-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 1rem;
  resize: vertical;
}

.comment-list {
  list-style: none;
}

.comment-item {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1rem;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-weight: bold;
}

.comment-date {
  color: #666;
  font-size: 0.9rem;
}

.comment-content {
  line-height: 1.5;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: #2E3192;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.back-to-top:hover {
  background: #1a1b5e;
}

.back-to-top.visible {
  display: flex;
} 