/* ============================================================
   RCM — News detail page layout
   Styles for page/index/news.html (新闻详情展示)
   All page-level CSS lives here to keep HTML free of <style>.
   ============================================================ */

/* ---- Layout wrapper ---- */
.news-detail-section { padding: 56px 0 72px; background: var(--white); }

.news-detail-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}

/* ---- Article body ---- */
.news-article {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 22px rgba(0, 149, 179, 0.06);
}

.news-article-cover {
  width: 100%;
  height: 340px;
  background: linear-gradient(135deg, #0a2a5e 0%, #1a4a8a 50%, #0095b3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 4rem;
  overflow: hidden;
}
.news-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-article-body {
  padding: 36px 40px 40px;
}

.news-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.news-article-meta .news-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 149, 179, 0.1);
  color: var(--accent);
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.news-article-meta .news-date {
  color: var(--text-medium);
  font-weight: 600;
}
.news-article-meta .news-author {
  color: var(--text-light);
}
.news-article-meta .news-author::before {
  content: '·';
  margin-right: 10px;
  color: var(--text-light);
}

.news-article-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 18px;
}

.news-article-lead {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-medium);
  background: rgba(0, 149, 179, 0.04);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 24px;
}

.news-article-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 28px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
}
.news-article-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 22px 0 10px;
}
.news-article-content p {
white-space: normal;
  font-size: 0.96rem;
  line-height: 1.92;
  color: #333;
  margin-bottom: 16px;
      
}
.news-article-content p img{
  display: flex;
  font-size: 0.96rem;
  line-height: 1.92;
  color: #333;
  margin-bottom: 16px;
      
}
.news-article-content ul,
.news-article-content ol {
  margin: 0 0 18px 0;
  padding-left: 24px;
}
.news-article-content li {
  font-size: 0.96rem;
  line-height: 1.9;
  color: var(--text-medium);
  margin-bottom: 6px;
}
.news-article-content blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  background: #f7f9fc;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--text-medium);
  font-style: italic;
  line-height: 1.85;
}
.news-article-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 12px 0;
}
.news-article-content a { color: var(--accent); text-decoration: none; }
.news-article-content a:hover { text-decoration: underline; }

/* ---- Share / tags footer ---- */
.news-article-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.news-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.news-tags-list a {
  padding: 4px 12px;
  background: #f3f6fb;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.78rem;
  color: var(--text-medium);
  text-decoration: none;
  transition: all 0.2s;
}
.news-tags-list a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.news-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.news-back:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ---- Sidebar ---- */
.news-aside { position: sticky; top: 90px; }
.aside-card  td{
padding: 5px 0;
}
.aside-card h4 {
  font-size: 0.95rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 149, 179, 0.18);
}
.aside-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 4px 18px rgba(0, 149, 179, 0.06);
}
.related-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}
.related-item:last-child { border-bottom: none; }
.related-item .related-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}
.related-item .related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-item .related-body h5 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.45;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-item:hover .related-body h5 { color: var(--accent); }
.related-item .related-body .related-date {
  font-size: 0.72rem;
  color: var(--text-light);
}

.tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tags-cloud a {
  padding: 4px 10px;
  font-size: 0.76rem;
  background: #f3f6fb;
  border-radius: 12px;
  color: var(--text-medium);
  text-decoration: none;
  transition: all 0.2s;
}
.tags-cloud a:hover { background: var(--accent); color: #fff; }

/* ---- Breadcrumb inside banner ---- */
.page-banner.page-banner--news .breadcrumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}
.page-banner.page-banner--news .breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.page-banner.page-banner--news .breadcrumb a:hover { color: #fff; }
.page-banner.page-banner--news .breadcrumb span { opacity: 0.5; margin: 0 6px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .news-detail-wrapper { grid-template-columns: 1fr; gap: 24px; }
  .news-aside { position: static; }
  .news-article-body { padding: 24px 22px 28px; }
  .news-article-title { font-size: 1.3rem; }
}

@media (min-width: 901px) {
  .news-detail-section { padding: 80px 0 96px; }
  .news-article-cover { height: 420px; }
  .news-article-body { padding: 48px 54px 56px; }
  .news-article-title { font-size: 2.1rem; line-height: 1.32; }
  .news-article-lead { font-size: 1.08rem; }
  .news-article-content p,
  .news-article-content li,
 .news-article-content pre{ font-size: 1rem; line-height: 1.95; }
 .news-article-content pre{ color: #333;  margin-bottom: 16px;     font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;white-space: break-spaces;}

  .news-article-content h2 { font-size: 1.38rem; }
}
@media (max-width: 768px) {
.news-article-content img {
    max-width: 100%;
    height: 100%; 
    width: 100%; 
}
}
