/* ============================================
   CLT News & Insights Module (Listing & Single Post)
   ============================================ */

/* ============================================
   1. News Hero Banner (2464x1600 Full-Width Auto-Height, No Text)
   ============================================ */
.clt-news-banner-wrap {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  background: #000000;
}
.clt-news-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   2. News Listing & Horizontal Editorial Feed (/news/)
   ============================================ */
.news-list-section {
  background: var(--home-dark-bg, #515151);
  padding: 3rem 0 5.5rem;
  min-height: 42.5rem;
}
.news-list-layout {
  width: 100%;
  max-width: var(--container-max-width, 100rem);
  padding: 0 1.5rem;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 3-Column News Card Grid */
.news-feed-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.25rem 2.25rem;
  width: 100%;
}
@media (max-width: 1100px) {
  .news-feed-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.75rem;
  }
}
@media (max-width: 768px) {
  .news-feed-list {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.news-horizontal-card,
.news-grid-card {
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: visible;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.news-card-inner {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  height: 100%;
  gap: 0;
}

/* Card Top Image Viewport */
.news-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 1rem;
  overflow: hidden;
  background: #2b2b2b;
  border: none;
  margin-bottom: 1.25rem;
}
.news-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-horizontal-card:hover .news-thumb-img,
.news-grid-card:hover .news-thumb-img {
  transform: scale(1.04);
}

/* Card Body Content */
.news-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 0;
}
.news-card-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.75;
  letter-spacing: -0.015em;
  margin: 0 0 0.85rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.news-card-excerpt {
  font-size: 0.92rem;
  color: #b8b8b8;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Bottom Card Divider & Meta Row */
.news-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.news-card-foot .news-meta-date {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: #a0aec0;
}
.news-card-foot .news-meta-date svg {
  width: 14px;
  height: 14px;
  stroke: #a0aec0;
}
.news-card-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #a0aec0;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.news-horizontal-card:hover .news-card-link,
.news-grid-card:hover .news-card-link {
  color: #ffffff;
}

/* News No Results */
.news-no-results {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 4rem 2rem;
  text-align: center;
  color: #b8b8b8;
}

/* ============================================
   3. Single Post Detail Experience (Clean Editorial Layout)
   ============================================ */
.single-post-section {
  background: var(--home-dark-bg, #515151);
  padding: 2.5rem 0 5.5rem;
  min-height: 43.75rem;
}
.single-post-layout {
  width: 100%;
  max-width: 100%;
  padding: 0 6rem;
  margin: 0 auto;
  box-sizing: border-box;
}
.single-post-main {
  background: transparent;
  border-radius: 0;
  border: none;
  padding: 0;
  box-shadow: none;
}
.single-post-header {
  margin-bottom: 2rem;
  text-align: left;
}
.single-post-meta-bottom {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1rem;
}
.single-post-date {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: #b8b8b8;
}
.single-post-date svg {
  color: #b8b8b8;
  stroke: #b8b8b8;
}
.single-post-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
}

/* Single Post Lead / Highlight Box */
.single-post-lead-box {
  position: relative;
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  padding: 1.25rem 1.75rem;
  margin: 2rem 0 2.5rem;
  overflow: hidden;
}
.single-post-lead-box .lead-quote-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent, #d61618);
}
.single-post-lead-box .lead-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #f1f5f9;
  font-style: italic;
  margin: 0;
}

/* Single Post Gallery Grid */
.single-post-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}
@media (max-width: 640px) {
  .single-post-gallery-grid {
    grid-template-columns: 1fr;
  }
}
.news-gallery-item {
  margin: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.news-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.news-gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: #a0aec0;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
}

.single-post-body.clt-prose {
  font-size: 1.125rem; /* 18px */
  line-height: 1.95;
  color: #e2e8f0;
  text-align: left;
}
.single-post-body.clt-prose p {
  margin-bottom: 1.6em;
}
.single-post-body.clt-prose .news-img-wrap {
  text-align: center;
  margin: 2.75rem auto;
}
.single-post-body.clt-prose img {
  max-width: 44.375rem; /* 710px */
  width: auto;
  height: auto;
  border-radius: 0.5rem;
  margin: 2.75rem auto;
  display: block;
}
.single-post-body.clt-prose .news-img-wrap img {
  margin: 0 auto;
}
.single-post-body.clt-prose h2 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin: 2.2em 0 0.8em;
  letter-spacing: -0.01em;
}
.single-post-body.clt-prose h3 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 1.8em 0 0.6em;
}
.single-post-body.clt-prose ul,
.single-post-body.clt-prose ol {
  margin: 0 0 1.6em 1.5em;
  padding: 0;
}
.single-post-body.clt-prose li {
  margin-bottom: 0.5em;
  color: #e2e8f0;
}

/* ============================================
   Global News / Single Post Content Tables
   100% 复刻案例页面 (.qs-case-comparison-table) 高端深色卡片表格
   强制忽略富文本内置样式，统一样式与质感
   ============================================ */
.single-post-body .news-table-wrap,
.single-post-body.clt-prose .news-table-wrap,
.entry-content .news-table-wrap,
.wp-block-table {
  width: 100% !important;
  max-width: min(100%, 58rem) !important;
  margin: 2.5rem auto !important;
  border-radius: 0.75rem !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  overflow-x: auto !important;
  background: var(--home-dark-bg, #515151) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  -webkit-overflow-scrolling: touch !important;
}

/* 彻底杜绝多层 div 嵌套时的重复套娃边框与背景 */
.news-table-wrap .news-table-wrap,
.wp-block-table .wp-block-table {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}

.single-post-body table,
.single-post-body.clt-prose table,
.entry-content table,
article.post table,
.wp-block-table table {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* 无外层包裹时的裸表格自适应卡片底座 */
.single-post-body > table,
.single-post-body.clt-prose > table,
.entry-content > table,
article.post > table {
  margin: 2.5rem auto !important;
  max-width: min(100%, 58rem) !important;
  border-radius: 0.75rem !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: var(--home-dark-bg, #515151) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden !important;
}

/* 单元格细线分割（对齐案例页面规范：下边框与右边框细腻分割，抹平所有富文本内置颜色与白底） */
.single-post-body table th,
.single-post-body table td,
.single-post-body.clt-prose th,
.single-post-body.clt-prose td,
.entry-content table th,
.entry-content table td,
article.post table th,
article.post table td,
.wp-block-table table th,
.wp-block-table table td {
  padding: 1.15rem 1.5rem !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  border-top: none !important;
  border-left: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: transparent !important;
  background-color: transparent !important;
  vertical-align: middle !important;
  text-align: left !important;
}

/* 最后一列无右边框 */
.single-post-body table th:last-child,
.single-post-body table td:last-child,
.single-post-body.clt-prose th:last-child,
.single-post-body.clt-prose td:last-child,
.entry-content table th:last-child,
.entry-content table td:last-child,
article.post table th:last-child,
article.post table td:last-child,
.wp-block-table table th:last-child,
.wp-block-table table td:last-child {
  border-right: none !important;
}

/* 最后一行无底边框 */
.single-post-body table tr:last-child td,
.single-post-body.clt-prose tr:last-child td,
.entry-content table tr:last-child td,
article.post table tr:last-child td,
.wp-block-table table tr:last-child td {
  border-bottom: none !important;
}

/* 表头 thead th */
.single-post-body table thead th,
.single-post-body.clt-prose thead th,
.entry-content table thead th,
article.post table thead th,
.wp-block-table table thead th {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.single-post-body table thead th:first-child,
.single-post-body.clt-prose thead th:first-child,
.entry-content table thead th:first-child,
article.post table thead th:first-child,
.wp-block-table table thead th:first-child {
  width: 1% !important;
  white-space: nowrap !important;
}

/* 数据单元格 tbody td */
.single-post-body table tbody td,
.single-post-body.clt-prose tbody td,
.entry-content table tbody td,
article.post table tbody td,
.wp-block-table table tbody td {
  color: #d1d5db !important;
}

/* 首列项目名称高亮（对标案例对比表） */
.single-post-body table tbody td:first-child,
.single-post-body.clt-prose tbody td:first-child,
.entry-content table tbody td:first-child,
article.post table tbody td:first-child,
.wp-block-table table tbody td:first-child {
  font-weight: 600 !important;
  color: #ffffff !important;
  width: 1% !important;
  white-space: nowrap !important;
}

/* 鼠标悬浮整行微弱高亮 */
.single-post-body table tbody tr:hover td,
.single-post-body.clt-prose tbody tr:hover td,
.entry-content table tbody tr:hover td,
article.post table tbody tr:hover td,
.wp-block-table table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02) !important;
}

/* Post Share & Footer */
.single-post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.single-post-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.share-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #b8b8b8;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.375rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.share-btn:hover {
  background: var(--accent, #d61618) !important;
  color: #fff;
  border-color: var(--accent, #d61618) !important;
}
