/* 面包屑导航 */
.news-breadcrumb {
  background: white;
  border-radius: 8px;
  padding: 12px 20px;
  margin: 120px auto 0;
  max-width: 800px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  border-left: 3px solid #EB6630;
}

.news-breadcrumb a {
  color: #EB6630;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.news-breadcrumb a:hover {
  color: #D45520;
  text-decoration: underline;
}

.news-breadcrumb i {
  color: #adb5bd;
  font-size: 12px;
}

.news-breadcrumb span {
  color: #333;
  font-weight: 600;
  max-width: 500px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 文章详情页样式 */
.article-container {
  max-width: 800px;
  margin: 20px auto 40px;
  padding: 0 20px;
}

.article-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 40px;
  overflow: hidden;
}

.article-title {
  font-size: 28px;
  color: #333;
  line-height: 1.4;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #666;
  margin-bottom: 30px;
  font-size: 14px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.article-meta i {
  color: #EB6630;
  font-size: 13px;
}

.article-category {
  background: #EB6630;
  color: white !important;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.article-category i {
  color: white !important;
}

.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  word-wrap: break-word;
  margin-top: 30px;
}

.article-body p {
  margin: 1.5em 0;
  text-indent: 2em;
}

/* 包含图片的段落不使用文本缩进，图片居中显示 */
.article-body p:has(img) {
  text-indent: 0;
  text-align: center;
}

/* 兼容不支持:has()的浏览器 */
.article-body p img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: none;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.article-body table, .article-body th, .article-body td {
  border: 1px solid #e5e5e5;
  padding: 12px;
}

.article-body th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.article-body iframe {
  width: 100%;
  height: 400px;
  margin: 1.5rem 0;
  border-radius: 8px;
}

.article-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.article-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #EB6630, #D45520);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(235, 102, 48, 0.3);
}

.back-btn:hover {
  background: linear-gradient(135deg, #D45520, #B8441A);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(235, 102, 48, 0.4);
}

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

.share-text {
  color: #666;
  font-size: 14px;
  margin-right: 8px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.share-btn.wechat {
  background: linear-gradient(135deg, #1aad19, #009a3e);
}

.share-btn.weibo {
  background: linear-gradient(135deg, #e6162d, #d71920);
}

.share-btn.copy {
  background: linear-gradient(135deg, #34495e, #2c3e50);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .article-container {
    margin-top: 90px;
    padding: 0 15px;
  }
  
  .article-content {
    padding: 25px 20px;
  }
  
  .article-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }
  
  .article-meta span {
    justify-content: center;
  }
  
  .article-body {
    font-size: 15px;
    line-height: 1.7;
  }
  
  .article-body p {
    text-indent: 1.5em;
  }
  
  .article-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 20px;
  }
  
  /* 移动端分享区域置顶优化 */
  .share-buttons {
    order: -1;
    justify-content: center;
    padding: 20px 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .share-text {
    font-size: 14px;
    margin-right: 12px;
    color: #555;
    font-weight: 600;
  }
  
  .share-btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
    margin: 0 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  .back-btn {
    justify-content: center;
    font-size: 16px;
    padding: 16px 24px;
  }
}

@media (max-width: 480px) {
  .article-content {
    padding: 20px 15px;
  }
  
  .article-title {
    font-size: 20px;
  }
  
  .article-body {
    font-size: 14px;
  }
  
  /* 小屏幕分享区域进一步优化 */
  .article-actions {
    gap: 15px;
  }
  
  .share-buttons {
    padding: 15px 10px;
    margin-bottom: 10px;
  }
  
  .share-text {
    font-size: 13px;
    margin-right: 8px;
  }
  
  .share-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
    margin: 0 4px;
  }
  
  .back-btn {
    font-size: 15px;
    padding: 14px 20px;
  }
  
  /* 小屏幕文章元数据优化 */
  .article-meta {
    padding: 10px;
    gap: 8px;
  }
  
  .article-meta span {
    font-size: 12px;
  }
  
  .article-category {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* 视频容器样式 */
.article-body .video-container {
  margin: 20px 0;
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
  clear: both;
}

/* 视频播放器样式 */
.article-body video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: #000;
}

/* 视频错误提示样式 */
.article-body .video-error {
  display: none;
  padding: 20px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  color: #856404;
  margin-top: 10px;
}

.article-body .video-error.show {
  display: block;
}

.article-body .video-error h4 {
  margin: 0 0 10px 0;
  color: #856404;
  font-size: 16px;
}

.article-body .video-error ul {
  text-align: left;
  margin: 10px 0;
  padding-left: 20px;
}

.article-body .video-error a {
  color: #007bff;
  text-decoration: none;
}

.article-body .video-error a:hover {
  text-decoration: underline;
}

/* 视频标题样式 */
.article-body .video-caption {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
  font-style: italic;
}