/* ============================================
   News Detail Page Styles
   ============================================ */

/* --- Page Banner --- */
.page-banner {
  top:0;
  position: relative;
  height: 420px;
  background-image: url('/images/b7.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.page-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.page-banner-content h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 6px;
}
.page-banner-content p {
  font-size: 14px;
  letter-spacing: 4px;
  opacity: 0.8;
  text-transform: uppercase;
}

/* --- Breadcrumb --- */
.breadcrumb-wrapper {
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  list-style: none;
  font-size: 13px;
  flex-wrap: wrap;
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb li a:hover { color: #CC0000; }
.breadcrumb li.sep {
  color: #ccc;
  margin: 0 8px;
}
.breadcrumb li.current {
  color: #CC0000;
  font-weight: 500;
}

/* --- Layout --- */
.news-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
  align-items: start;
}

/* --- Article --- */
.news-article {
  background: #fff;
}

.article-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.article-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: #999;
}
.article-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-featured-image {
  margin-bottom: 28px;
  border-radius: 6px;
  overflow: hidden;
}
.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-body {
  font-size: 15px;
  line-height: 2;
  color: #444;
}
.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin: 30px 0 14px;
  padding-left: 14px;
  border-left: 3px solid #CC0000;
}
.article-body p {
  margin-bottom: 16px;
  text-indent: 2em;
}
.article-body strong {
  color: #222;
}

.article-inline-image {
  margin: 24px 0;
  text-align: center;
}
.article-inline-image img {
  max-width: 100%;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}
.article-inline-image .image-caption {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #999;
}

/* --- Article Footer --- */
.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}
.article-tags .tag-label {
  color: #666;
}
.article-tags .tag {
  display: inline-block;
  padding: 3px 12px;
  background: #f5f5f5;
  color: #666;
  border-radius: 3px;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.3s;
}
.article-tags .tag:hover {
  background: #CC0000;
  color: #fff;
}
.article-share {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
}
.article-share .share-link {
  padding: 4px 12px;
  border-radius: 3px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  transition: opacity 0.3s;
}
.article-share .share-link:hover { opacity: 0.8; }
.article-share .share-link.wechat { background: #07c160; }
.article-share .share-link.weibo { background: #e6162d; }

/* --- Prev / Next --- */
.article-prev-next {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  gap: 20px;
}
.article-prev-next a {
  flex: 1;
  text-decoration: none;
  color: #444;
  transition: color 0.3s;
}
.article-prev-next a:hover { color: #CC0000; }
.article-prev-next .next-article { text-align: right; }
.article-prev-next .pn-label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}
.article-prev-next .pn-title {
  font-size: 14px;
  font-weight: 500;
}

/* ============================================
   Sidebar
   ============================================ */
.news-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-widget {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: 24px;
}
.sidebar-widget .widget-title {
  background: #CC0000;
  color: #fff;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

/* Widget Search */
.widget-search-form {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  margin: 20px;
}
.widget-search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 13px;
}
.widget-search-form button {
  background: #CC0000;
  color: #fff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}
.widget-search-form button:hover { background: #A00000; }

/* Hot News */
.hot-news-list { list-style: none; padding: 4px 20px 16px; }
.hot-news-list li { margin-bottom: 10px; }
.hot-news-list li:last-child { margin-bottom: 0; }
.hot-news-list li a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: #444;
  font-size: 13px;
  line-height: 1.5;
  transition: color 0.3s;
}
.hot-news-list li a:hover { color: #CC0000; }
.hot-news-list .hot-rank {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: #ccc;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 20px;
  border-radius: 3px;
  margin-top: 2px;
}
.hot-news-list .hot-rank.rank-1 { background: #CC0000; }
.hot-news-list .hot-rank.rank-2 { background: #E60000; }
.hot-news-list .hot-rank.rank-3 { background: #ff6b6b; }

/* Related News */
.related-news-list { list-style: none; padding: 4px 20px 16px; }
.related-news-list li { margin-bottom: 14px; }
.related-news-list li:last-child { margin-bottom: 0; }
.related-news-list li a {
  display: flex;
  gap: 12px;
  text-decoration: none;
}
.related-news-list .related-img {
  flex-shrink: 0;
  width: 100px;
  height: 66px;
  border-radius: 4px;
  overflow: hidden;
  background: #eee;
}
.related-news-list .related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.related-news-list li a:hover .related-img img { transform: scale(1.05); }
.related-news-list .related-info h5 {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 4px;
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-news-list li a:hover .related-info h5 { color: #CC0000; }
.related-news-list .related-info span {
  font-size: 11px;
  color: #aaa;
}

/* Category List */
.category-list { list-style: none; padding: 8px 0; margin: 0; }
.category-list li { }
.category-list li a {
  display: block;
  padding: 11px 20px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.category-list li a:hover {
  color: #CC0000;
  background: #fefafa;
  border-left-color: #CC0000;
}
.category-list li a.active {
  color: #CC0000;
  background: #fef0f0;
  border-left-color: #CC0000;
  font-weight: 600;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .news-detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .news-sidebar {
    position: static;
  }
  .page-banner { height: 160px; }
  .page-banner-content h1 { font-size: 26px; }
}

@media (max-width: 640px) {
  .page-banner { height: 130px; }
  .page-banner-content h1 { font-size: 22px; }
  .article-header h1 { font-size: 20px; }
  .article-body { font-size: 14px; }
  .article-body h2 { font-size: 17px; }
  .article-footer { flex-direction: column; align-items: flex-start; }
  .article-prev-next { flex-direction: column; }
  .article-prev-next .next-article { text-align: left; }
  .breadcrumb { font-size: 12px; }
}
