/* 新闻详情页样式 */

.news-detail {
  padding: 40px 20px 80px;
  background: #f8f9fa;
}

/* 面包屑导航 */
.breadcrumb {
  padding: 20px 0;
  color: #666;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: #1890ff;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #1e3a70;
}

.breadcrumb span {
  color: #999;
}

/* 文章头部 */
.article-header {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.article-category {
  display: inline-block;
  background: #1890ff;
  color: #fff;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.article-title {
  font-size: 2.2rem;
  color: #333;
  line-height: 1.4;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  gap: 30px;
  color: #999;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

/* 文章内容 */
.article-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

.content-main {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.content-section {
  margin-bottom: 40px;
}

.content-section h2 {
  font-size: 1.8rem;
  color: #1890ff;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid #2c5aa0;
}

.content-section h3 {
  font-size: 1.4rem;
  color: #333;
  margin: 25px 0 15px;
}

.content-section p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.content-section ul,
.content-section ol {
  color: #666;
  line-height: 1.8;
  margin: 20px 0;
  padding-left: 30px;
}

.content-section li {
  margin-bottom: 10px;
}

.content-section strong {
  color: #1890ff;
  font-weight: 600;
}

/* 亮点展示 */
.highlight-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.highlight-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #2c5aa0;
}

.highlight-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-content h4 {
  font-size: 1.1rem;
  color: #1890ff;
  margin-bottom: 8px;
}

.highlight-content p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

/* 引用块 */
blockquote {
  background: #f8f9fa;
  border-left: 4px solid #2c5aa0;
  padding: 20px 30px;
  margin: 30px 0;
  font-style: italic;
}

blockquote p {
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 15px;
}

blockquote footer {
  color: #999;
  font-size: 0.9rem;
  font-style: normal;
  text-align: right;
}

/* 文章底部 */
.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

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

.tag {
  display: inline-block;
  padding: 6px 15px;
  background: #f8f9fa;
  border-radius: 20px;
  color: #666;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.tag:hover {
  background: #2c5aa0;
  color: #fff;
}

.share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share span {
  color: #666;
  font-size: 0.95rem;
}

.share-btn {
  padding: 8px 20px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.share-btn:hover {
  background: #2c5aa0;
  border-color: #2c5aa0;
  color: #fff;
}

/* 侧边栏 */
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-widget {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
  font-size: 1.2rem;
  color: #1890ff;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.related-news,
.hot-news {
  list-style: none;
  padding: 0;
}

.related-news li,
.hot-news li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.related-news li:last-child,
.hot-news li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.related-news a,
.hot-news a {
  color: #666;
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.3s;
  display: block;
}

.related-news a:hover,
.hot-news a:hover {
  color: #1890ff;
}

.cta-widget {
  background: #1890ff;
  color: #fff;
  text-align: center;
}

.cta-widget h3 {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.3);
}

.cta-widget p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

.cta-widget .btn {
  background: #fff;
  color: #1890ff;
  border: none;
}

.cta-widget .btn:hover {
  background: #f8f9fa;
}

/* 响应式设计 */
@media (max-width: 968px) {
  .article-content {
    grid-template-columns: 1fr;
  }
  
  .content-sidebar {
    order: 2;
  }
  
  .article-title {
    font-size: 1.8rem;
  }
  
  .article-meta {
    gap: 15px;
  }
  
  .highlight-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .article-header,
  .content-main {
    padding: 25px;
  }
  
  .article-title {
    font-size: 1.5rem;
  }
  
  .content-section h2 {
    font-size: 1.5rem;
  }
  
  .article-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* 始终为滚动条保留位置，防止跨页跳转时 navbar 抖动 */
html { overflow-y: scroll; }

