/* News article body typography — aligned with /news/question/114/ reference */

article .news-container .article .sub_txt {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
  font-size: 16px;
  color: #333;
  line-height: 1.85;
  padding-bottom: 1rem;
}

/* 详情页正文区域与下方「相关资讯」之间留白 */
article .news-container:has(.article) {
  padding-bottom: 0.5rem;
  margin-bottom: 0.625rem;
}

/* 列表页：文章列表与下方「相关资讯」之间留白（对齐详情页） */
article .news-container:has(.article-list) {
  padding-bottom: 0.5rem;
  margin-bottom: 0.625rem;
}

article .news-container .article-list {
  padding-bottom: 1rem;
}

/* Override legacy inline line-height: 2 */
article .news-container .article .sub_txt [style*="line-height"] {
  line-height: inherit !important;
}

/* Section headings — match ace-line heading-h3 from post 114 */
article .news-container .article .sub_txt h2,
article .news-container .article .sub_txt h3,
article .news-container .article .sub_txt h3.header-vfC6AV,
article .news-container .article .sub_txt div.ace-line.heading-h3,
article .news-container .article .sub_txt div.ace-line.heading-h3 .lb {
  font-size: 17px !important;
  line-height: 1.65 !important;
  margin: 1.25em 0 0.5em !important;
  padding: 0 !important;
  color: #222 !important;
  font-weight: 700 !important;
}

article .news-container .article .sub_txt h2 {
  font-size: 18px !important;
}

/* Body paragraphs */
article .news-container .article .sub_txt p,
article .news-container .article .sub_txt div.paragraph-JOTKXA,
article .news-container .article .sub_txt div.auto-hide-last-sibling-br:not(.table-container-GhL7Lo),
article .news-container .article .sub_txt div.dpu8C,
article .news-container .article .sub_txt div.ace-line:not(.heading-h3) {
  line-height: 1.85 !important;
  margin-bottom: 0.65em !important;
  margin-top: 0 !important;
  color: #333 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
}

article .news-container .article .sub_txt p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

article .news-container .article .sub_txt div.ace-line .lb {
  line-height: inherit !important;
}

article .news-container .article .sub_txt ul,
article .news-container .article .sub_txt ol {
  margin: 0.2em 0 0.65em 1.25em;
  padding: 0;
  line-height: 1.85;
  color: #333;
  font-size: 16px;
}

/* Tighten gap when list follows paragraph block */
article .news-container .article .sub_txt div + ul,
article .news-container .article .sub_txt div + ol,
article .news-container .article .sub_txt p + ul,
article .news-container .article .sub_txt p + ol {
  margin-top: 0.15em !important;
}

article .news-container .article .sub_txt ul + div,
article .news-container .article .sub_txt ol + div,
article .news-container .article .sub_txt ul + h3,
article .news-container .article .sub_txt ol + h3 {
  margin-top: 0.5em !important;
}

article .news-container .article .sub_txt li {
  margin-bottom: 0.35em;
  line-height: 1.85 !important;
}

article .news-container .article .sub_txt li:last-child {
  margin-bottom: 0;
}

article .news-container .article .sub_txt strong {
  font-weight: 600;
  color: #222;
}

article .news-container .article .sub_txt code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.92em;
  font-family: Consolas, Monaco, "Courier New", monospace;
}

/* Tables — 形象类比 / 总结 sections */
article .news-container .article .sub_txt .table-container-GhL7Lo,
article .news-container .article .sub_txt table {
  width: 100%;
  max-width: 100%;
}

article .news-container .article .sub_txt table {
  border-collapse: collapse;
  margin: 0.75em 0 1.25em;
  font-size: 15px;
  line-height: 1.6;
  background: #fff;
}

article .news-container .article .sub_txt th,
article .news-container .article .sub_txt td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
  word-break: break-word;
}

article .news-container .article .sub_txt th {
  background: #f5f7fa;
  font-weight: 600;
  color: #222;
}

article .news-container .article .sub_txt tr:nth-child(even) td {
  background: #fafafa;
}

article .news-container .article .sub_txt img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1em auto;
  border-radius: 4px;
}

article .news-container .article .sub_txt img[src*="logo.gif"] {
  display: none !important;
}

article .news-container .article .sub_txt span:empty {
  display: none;
}

article .news-container .article .sub_txt span.container-Oc5zuD,
article .news-container .article .sub_txt br.container-utlnW2 {
  display: none;
}

/* List page summary */
article .news-container .article-desc {
  line-height: 1.75 !important;
  margin-bottom: 12px !important;
}

article .news-container .article-desc .article-more-link {
  color: #007bff;
  text-decoration: none;
  margin-left: 0.25rem;
}

article .news-container .article-desc .article-more-link:hover {
  text-decoration: underline;
}

.empty-state {
  text-align: center;
  color: #888;
  padding: 3rem 1rem;
}

article .news-container .article-item img {
  object-fit: cover;
  background: #f0f0f0;
}

article .news-container .article .title {
  font-size: 0.4rem;
  line-height: 1.4;
  padding: 0 0.5rem;
}

article .news-container .article .meta-info {
  line-height: 1.6;
}

article .news-container .article .divider {
  margin: 1rem 0 1.25rem;
}

@media (max-width: 768px) {
  article .news-container .article .sub_txt {
    font-size: 15px;
    padding-bottom: 0.75rem;
  }

  article .news-container:has(.article) {
    padding-bottom: 0.375rem;
    margin-bottom: 0.5rem;
  }

  article .news-container:has(.article-list) {
    padding-bottom: 0.375rem;
    margin-bottom: 0.5rem;
  }

  article .news-container .article-list {
    padding-bottom: 0.75rem;
  }

  article .news-container .article .sub_txt p,
  article .news-container .article .sub_txt div {
    font-size: 15px !important;
  }

  article .news-container .article .sub_txt h3,
  article .news-container .article .sub_txt div.ace-line.heading-h3 {
    font-size: 16px !important;
  }

  article .news-container .article .sub_txt table {
    font-size: 14px;
  }

  article .news-container .article .sub_txt th,
  article .news-container .article .sub_txt td {
    padding: 8px;
  }

  article .news-container .article .title {
    font-size: 0.4rem;
  }

  /* ─── 资讯列表页移动端 ─── */
  article .news-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.75rem 0.75rem 1rem !important;
    box-sizing: border-box;
  }

  article .news-container .breadcrumb {
    padding: 0.35rem 0.15rem 0.65rem !important;
    margin-top: 0 !important;
    font-size: 12px !important;
  }

  article .news-container .article-list {
    max-width: 100% !important;
    width: 100%;
  }

  article .news-container .article-item {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin-bottom: 0.875rem !important;
    gap: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }

  article .news-container .article-item:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }

  article .news-container .article-item > a:first-of-type {
    display: block !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    line-height: 0 !important;
  }

  article .news-container .article-item img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    display: block !important;
    background: #eef1f5 !important;
  }

  article .news-container .article-content {
    padding: 0.75rem 0.85rem 0.65rem !important;
  }

  article .news-container .article-title {
    font-size: 15px !important;
    line-height: 1.45 !important;
    margin-bottom: 0.35rem !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2;
    overflow: hidden !important;
    white-space: normal !important;
  }

  article .news-container .article-desc {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 0.5rem !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3;
    overflow: hidden !important;
    color: #666 !important;
  }

  article .news-container .article-date {
    font-size: 11px !important;
    color: #999 !important;
  }
}
