/* News Detail Page Styles */

/* Layout & Structure */
.news-detail-section {
  padding: 60px 0;
}

.news-article {
  width: 100%;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  /* Max width constraint for readability on large screens? 
       Actually with sidebar it fills the flex space. 
    */
}

/* Article Header */
.article-header {
  margin-bottom: 30px;
}

.article-header .news-category {
  position: relative;
  top: auto;
  left: auto;
  display: inline-block;
  margin-bottom: 15px;
  border-radius: 4px;
}

.article-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-color);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  color: #888;
  font-size: 0.95rem;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-meta i {
  color: var(--primary-color);
}

/* Featured Image */
.article-featured-image {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Content Body Typography */
.article-content-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

.article-content-body p {
  margin-bottom: 20px;
}

.article-intro {
  font-size: 1.15rem;
  color: #333;
  font-weight: 500;
  margin-bottom: 30px;
  padding-left: 20px;
  border-left: 4px solid var(--primary-color);
}

.article-content-body h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--text-color);
  position: relative;
  padding-left: 15px;
}
/* .article-content-body h2:before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  background: var(--primary-color);
  border-radius: 2px;
} */

.article-content-body ul.feature-list {
  margin-bottom: 30px;
  list-style: none;
  padding: 0;
}

.article-content-body ul.feature-list li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.article-content-body ul.feature-list li:before {
  content: "\f00c"; /* FontAwesome check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary-color);
}

.article-quote {
  background: #f5f8fc;
  border-left: 4px solid var(--primary-color);
  padding: 25px 30px;
  margin: 30px 0;
  font-style: italic;
  color: #555;
  border-radius: 0 8px 8px 0;
}

.article-quote cite {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  font-style: normal;
  color: var(--text-color);
}

.article-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.article-images-grid figure img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.article-images-grid figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

/* Article Footer */
.article-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.article-tags,
.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.article-tags span,
.share-buttons span {
  font-weight: 600;
  color: var(--text-color);
}

.article-tags a {
  background: #f0f0f0;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #666;
  transition: all 0.3s;
}

.article-tags a:hover {
  background: var(--primary-color);
  color: white;
}

.share-buttons a {
  width: 36px;
  height: 36px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.3s;
}

.share-buttons a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Navigation */
.article-navigation {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.article-navigation a {
  flex: 1;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.article-navigation a:hover {
  border-color: var(--primary-color);
  background: #fcfcfc;
}

.article-navigation .label {
  font-size: 0.8rem;
  color: #999;
}

.article-navigation .title {
  font-weight: 600;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-navigation a:hover .title {
  color: var(--primary-color);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  border-bottom: 1px solid #f9f9f9;
}

.toc-list li:last-child {
  border-bottom: none;
}

.toc-list a {
  display: block;
  padding: 12px 20px;
  color: #666;
  font-size: 0.95rem;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.toc-list a:hover,
.toc-list a.active {
  background: #f5f8fc;
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  padding-left: 25px;
}
.news-grid {
  grid-template-columns: repeat(3, 1fr);
}
/* Related News Override Grid */
@media (min-width: 992px) {
  .related-news-section .news-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .article-header h1 {
    font-size: 2rem;
  }
  .article-navigation {
    flex-direction: column;
  }
  .related-news-section .news-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}


/* 2. 工业科技感标题设计 (H2) */
.article-content-body h2.wp-block-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-color);
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
  letter-spacing: -0.01em;
}

.article-content-body h2.wp-block-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 70px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* 3. 段落与排版强化 */
.article-content-body p.wp-block-paragraph {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 20px;
}

/* 首段引言/摘要样式放大 */
.article-content-body > p.wp-block-paragraph:first-of-type {
  font-size: 1.075rem;
  line-height: 1.8;
  color: #222222;
  font-weight: 450;
}

.article-content-body p.wp-block-paragraph strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* 4. Key Features 列表卡片网格化 */
.article-content-body ul.wp-block-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  padding: 0;
  margin: 28px 0 40px 0;
  list-style: none !important;
}

.article-content-body ul.wp-block-list > li {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 6px;
  padding: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-content-body ul.wp-block-list > li:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 92, 185, 0.08);
  border-color: var(--border-color);
  border-left-color: var(--primary-hover);
}

.article-content-body ul.wp-block-list > li > strong {
  display: block;
  font-size: 1.05rem;
  color: var(--primary-color);
  margin-bottom: 6px;
}

/* 5. 工业高质感引用框 (Blockquote) */
.article-content-body blockquote.wp-block-quote {
  position: relative;
  margin: 36px 0;
  padding: 28px 32px 28px 64px;
  background-color: rgba(0, 92, 185, 0.03);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow);
}

.article-content-body blockquote.wp-block-quote::before {
  content: "“";
  position: absolute;
  top: 12px;
  left: 20px;
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-color);
  opacity: 0.25;
}

.article-content-body blockquote.wp-block-quote p {
  font-size: 1.05rem;
  font-style: italic;
  color: #1a1a1a;
  margin: 0 !important;
  font-weight: 500;
}

/* 6. 图片展台与 Caption 浮雕效果 */
.article-content-body figure.wp-block-image {
  margin: 32px 0;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.article-content-body figure.wp-block-image:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.article-content-body figure.wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content-body figure.wp-block-image figcaption.wp-element-caption {
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--text-light);
  text-align: center;
  background-color: var(--secondary-color);
  border-top: 1px solid var(--border-color);
  font-weight: 500;
}

/* 7. 移动端响应式处理 */
@media (max-width: 768px) {
  .article-content-body h2.wp-block-heading {
    font-size: 1.35rem;
    margin-top: 36px;
  }

  .article-content-body ul.wp-block-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .article-content-body blockquote.wp-block-quote {
    padding: 20px 20px 20px 48px;
  }

  .article-content-body blockquote.wp-block-quote::before {
    font-size: 3rem;
    top: 8px;
    left: 12px;
  }
}