/* ===== 新闻/文章页面样式 ===== */

/* 面包屑 */
.breadcrumb {
  background: #f0f4f8;
  padding: 12px 0;
  border-bottom: 1px solid #e0e8f0;
}
.breadcrumb .container { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.breadcrumb a { color: #2d6a9f; }
.breadcrumb a:hover { color: #e67e22; }
.breadcrumb span { color: #888; }

/* 新闻详情页 */
.main {
  background: #f7f9fc;
  padding: 50px 0;
  min-height: 60vh;
}

.news-detail {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  border: 1px solid #e0e8f0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* 新闻标题 */
.news-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f2540;
  line-height: 1.4;
  margin-bottom: 20px;
}

/* 新闻元数据 */
.news-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  color: #666;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f4f8;
  margin-bottom: 30px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-icon {
  font-size: 16px;
}

/* 文章内容 */
.article-content {
  font-size: 16px;
  color: #444;
  line-height: 1.9;
}

.article-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a3a5c;
  margin: 28px 0 14px;
  padding-left: 14px;
  border-left: 4px solid #e67e22;
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a3a5c;
  margin: 22px 0 10px;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
  margin: 14px 0 14px 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 20px 0;
}

.article-content blockquote {
  border-left: 4px solid #2d6a9f;
  background: #f0f4f8;
  padding: 14px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  color: #555;
  font-style: italic;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.article-content th,
.article-content td {
  padding: 10px 14px;
  border: 1px solid #e0e8f0;
}

.article-content th {
  background: #f0f4f8;
  font-weight: 700;
  color: #1a3a5c;
}

/* 新闻底部 */
.news-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #f0f4f8;
}

.news-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* 相关新闻 */
.related-news {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  border: 1px solid #e0e8f0;
  margin-top: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.related-news h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f2540;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e67e22;
}

.related-list a {
  font-size: 14px;
  color: #555;
  line-height: 2;
  display: block;
}

.related-list a:hover {
  color: #2d6a9f;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-primary {
  background: #2d6a9f;
  color: #fff;
}

.btn-primary:hover {
  background: #1a3a5c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45,106,159,0.3);
}

.btn-secondary {
  background: #f7f9fc;
  color: #2d6a9f;
  border: 2px solid #2d6a9f;
}

.btn-secondary:hover {
  background: #2d6a9f;
  color: #fff;
}

/* 回到顶部 */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 80px;
  width: 40px;
  height: 40px;
  background: #2d6a9f;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #1a3a5c;
  transform: translateY(-3px);
}

/* 新闻列表页 */
.news-list-page { background: #f7f9fc; padding: 60px 0; }
.news-list-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; }

.news-list .news-list-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0e8f0;
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  transition: all 0.3s;
}
.news-list .news-list-item:hover { transform: translateX(4px); box-shadow: 0 4px 20px rgba(26,58,92,0.1); }
.news-list-img {
  width: 220px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1a3a5c, #2d6a9f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,0.3);
}
.news-list-body { padding: 22px 24px; flex: 1; }
.news-list-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.news-list-date { font-size: 12px; color: #888; }
.news-list-cat { font-size: 11px; background: rgba(230,126,34,0.1); color: #e67e22; padding: 2px 10px; border-radius: 20px; font-weight: 700; }
.news-list-body h3 { font-size: 17px; font-weight: 700; color: #0f2540; margin-bottom: 10px; line-height: 1.5; }
.news-list-body h3 a { color: inherit; }
.news-list-body h3 a:hover { color: #2d6a9f; }
.news-list-body p { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list-more { font-size: 13px; color: #e67e22; font-weight: 600; }

/* 侧边栏 */
.sidebar-box { background: #fff; border-radius: 10px; border: 1px solid #e0e8f0; padding: 22px; margin-bottom: 22px; }
.sidebar-title { font-size: 15px; font-weight: 700; color: #0f2540; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #e67e22; display: flex; align-items: center; gap: 6px; }
.sidebar-news li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #f0f4f8; }
.sidebar-news li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-news a { font-size: 13px; color: #555; line-height: 1.5; display: block; }
.sidebar-news a:hover { color: #2d6a9f; }
.sidebar-news .s-date { font-size: 11px; color: #aaa; margin-top: 3px; display: block; }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-tag { display: inline-block; font-size: 12px; color: #2d6a9f; border: 1px solid #2d6a9f; padding: 4px 12px; border-radius: 20px; transition: all 0.2s; }
.sidebar-tag:hover { background: #2d6a9f; color: #fff; }

/* 新闻详情页 */
.news-detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; padding: 60px 0; background: #f7f9fc; }
.news-article-wrap { background: #fff; border-radius: 12px; padding: 40px; border: 1px solid #e0e8f0; }
.article-header { margin-bottom: 28px; }
.article-category { display: inline-block; font-size: 12px; background: rgba(230,126,34,0.1); color: #e67e22; padding: 4px 14px; border-radius: 20px; font-weight: 700; margin-bottom: 14px; }
.article-title { font-size: 1.8rem; font-weight: 800; color: #0f2540; line-height: 1.4; margin-bottom: 14px; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 13px; color: #888; border-bottom: 1px solid #e0e8f0; padding-bottom: 16px; }
.article-meta span { display: flex; align-items: center; gap: 4px; }

.article-body { font-size: 15px; color: #444; line-height: 1.9; }
.article-body h2 { font-size: 1.2rem; font-weight: 700; color: #1a3a5c; margin: 28px 0 14px; padding-left: 14px; border-left: 4px solid #e67e22; }
.article-body h3 { font-size: 1rem; font-weight: 700; color: #1a3a5c; margin: 22px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 14px 0 14px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.article-body blockquote { border-left: 4px solid #2d6a9f; background: #f0f4f8; padding: 14px 20px; margin: 20px 0; border-radius: 0 8px 8px 0; color: #555; font-style: italic; }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.article-body th, .article-body td { padding: 10px 14px; border: 1px solid #e0e8f0; }
.article-body th { background: #f0f4f8; font-weight: 700; color: #1a3a5c; }

/* 文章标签 */
.article-tags { margin-top: 28px; padding-top: 20px; border-top: 1px solid #e0e8f0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.article-tags strong { font-size: 13px; color: #888; }
.article-tag { font-size: 12px; color: #2d6a9f; border: 1px solid #c0d8ef; padding: 4px 12px; border-radius: 20px; transition: all 0.2s; }
.article-tag:hover { background: #2d6a9f; color: #fff; border-color: #2d6a9f; }

/* 文章底部相关文章 */
.related-news { margin-top: 36px; padding-top: 28px; border-top: 2px solid #f0f4f8; }
.related-news h3 { font-size: 16px; font-weight: 700; color: #0f2540; margin-bottom: 18px; }
.related-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related-item { background: #f7f9fc; border-radius: 8px; padding: 16px; border: 1px solid #e0e8f0; transition: all 0.2s; }
.related-item:hover { border-color: #2d6a9f; background: #fff; }
.related-item a { font-size: 14px; font-weight: 600; color: #0f2540; display: block; margin-bottom: 4px; line-height: 1.4; }
.related-item a:hover { color: #2d6a9f; }
.related-item span { font-size: 12px; color: #aaa; }

/* 上下篇 */
.article-nav { display: flex; gap: 12px; margin-top: 24px; }
.article-nav-item { flex: 1; padding: 14px 18px; border: 1px solid #e0e8f0; border-radius: 8px; background: #f7f9fc; transition: all 0.2s; }
.article-nav-item:hover { border-color: #2d6a9f; background: #fff; }
.article-nav-item small { font-size: 11px; color: #aaa; display: block; margin-bottom: 4px; }
.article-nav-item a { font-size: 13px; font-weight: 600; color: #2d6a9f; display: block; line-height: 1.4; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid #e0e8f0;
  border-radius: 6px;
  font-size: 14px;
  color: #555;
  transition: all 0.2s;
}
.pagination a:hover, .pagination .current {
  background: #2d6a9f;
  border-color: #2d6a9f;
  color: #fff;
}

@media (max-width: 768px) {
  .news-list-layout, .news-detail-layout { grid-template-columns: 1fr; }
  .news-article-wrap { padding: 22px 16px; }
  .article-title { font-size: 1.3rem; }
  .news-list .news-list-item { flex-direction: column; }
  .news-list-img { width: 100%; height: 140px; }
  .related-list { grid-template-columns: 1fr; }
  .article-nav { flex-direction: column; }
}
