/* The modern article page keeps its own reading layout; classic templates are untouched. */
html[data-site-ui='modern'] .news-detail-page {
  --detail-ink: #202b2e;
  --detail-muted: #657176;
  --detail-line: #d8ddda;
  --detail-accent: #a72e2b;
  width: min(1280px, calc(100% - 64px));
}

html[data-site-ui='modern'] .news-detail-page .news-breadcrumb {
  min-height: 40px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--detail-line);
  color: var(--detail-muted);
}

html[data-site-ui='modern'] .news-detail-page .news-article-header {
  max-width: 1120px;
  margin: 52px 0 42px;
  text-align: left;
}

html[data-site-ui='modern'] .news-article-heading-rule {
  width: 72px;
  height: 4px;
  background: var(--detail-accent);
}

html[data-site-ui='modern'] .news-detail-page .news-article-header h1 {
  max-width: 19em;
  margin: 25px 0 30px;
  color: var(--detail-ink);
  font-size: clamp(36px, 4.3vw, 60px);
  line-height: 1.26;
  letter-spacing: -.045em;
  /*text-wrap: balance;*/
}

html[data-site-ui='modern'] .news-detail-page .news-article-byline {
  justify-content: flex-start;
  gap: 10px 22px;
  margin-top: 0;
  padding-top: 18px;
  border-top: 1px solid var(--detail-line);
  color: var(--detail-muted);
  font-size: 13px;
  line-height: 1.7;
}

html[data-site-ui='modern'] .news-detail-page .news-byline-author img {
  width: 28px;
  height: 28px;
  object-fit: cover;
}

html[data-site-ui='modern'] .news-detail-page .news-article-cover {
  margin: 0 0 72px;
  overflow: hidden;
  background: #e9e9e4;
}

html[data-site-ui='modern'] .news-detail-page .news-article-cover img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 2.05 / 1;
  object-fit: cover;
}

html[data-site-ui='modern'] .news-detail-page .news-reading-grid {
  grid-template-columns: minmax(0, 760px) minmax(250px, 300px);
  justify-content: center;
  gap: clamp(48px, 7vw, 104px);
}

html[data-site-ui='modern'] .news-article-summary {
  margin: 0 0 50px;
  padding: 28px 34px 31px;
  border-left: 4px solid var(--detail-accent);
  background: #f0eee9;
}

html[data-site-ui='modern'] .news-article-summary h2 {
  margin: 0 0 11px;
  color: var(--detail-accent);
  font: 700 13px/1.4 'PingFang SC', 'Microsoft YaHei', sans-serif;
  letter-spacing: .1em;
}

html[data-site-ui='modern'] .news-article-summary p {
  color: var(--detail-ink);
  font-family: 'Noto Serif SC', 'Songti SC', SimSun, serif;
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

html[data-site-ui='modern'] .news-detail-page .news-article-body {
  color: #30393b;
  font-size: 19px;
  line-height: 2;
}

html[data-site-ui='modern'] .news-detail-page .news-article-body p {
  margin: 0 0 1.45em;
  font-size: inherit;
  line-height: inherit;
}

html[data-site-ui='modern'] .news-detail-page .news-article-body a {
  color: var(--detail-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-site-ui='modern'] .news-detail-page .news-article-body img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  object-fit: contain;
}

html[data-site-ui='modern'] .news-detail-page .news-article-body h2,
html[data-site-ui='modern'] .news-detail-page .news-article-body h3 {
  color: var(--detail-ink);
  font-family: 'Noto Serif SC', 'Songti SC', SimSun, serif;
  line-height: 1.4;
}

html[data-site-ui='modern'] .news-detail-page .news-article-body blockquote {
  margin: 40px 0;
  padding: 6px 0 6px 26px;
  border-left: 3px solid var(--detail-accent);
  color: #526064;
  font-family: 'Noto Serif SC', 'Songti SC', SimSun, serif;
}

html[data-site-ui='modern'] .news-detail-page .news-article-body iframe,
html[data-site-ui='modern'] .news-detail-page .news-article-body video {
  max-width: 100%;
}

html[data-site-ui='modern'] .news-detail-page .news-article-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

html[data-site-ui='modern'] .news-detail-page .news-rail-block {
  margin-bottom: 36px;
  padding-top: 17px;
  border-top-width: 2px;
}

html[data-site-ui='modern'] .news-detail-page .news-rail-ad {
  padding-top: 0;
}

html[data-site-ui='modern'] .news-detail-page .news-article-tags {
  margin-top: 60px;
  padding-top: 23px;
  border-top: 1px solid var(--detail-line);
}

html[data-site-ui='modern'] .news-detail-page .news-reprint {
  border-top: 0;
  padding: 0 0 22px;
  line-height: 1.7;
}

html[data-site-ui='modern'] .news-detail-page .news-share {
  margin: 0 0 35px;
  padding: 16px 0;
  border-top: 1px solid var(--detail-line);
  border-bottom: 1px solid var(--detail-line);
}

html[data-site-ui='modern'] .news-detail-page .news-engagement {
  padding-top: 0;
  border-top: 0;
}

html[data-site-ui='modern'] .news-detail-page .news-detail-ads {
  margin: 90px 0 80px;
}

html[data-site-ui='modern'] .news-detail-page .news-related {
  padding-top: 23px;
  border-top: 3px solid var(--detail-ink);
}

html[data-site-ui='modern'] .news-detail-page .news-related-grid article {
  overflow: hidden;
}

html[data-site-ui='modern'] .news-detail-page .news-related-grid img {
  transition: transform .35s ease;
}

html[data-site-ui='modern'] .news-detail-page .news-related-grid a:hover img {
  transform: scale(1.035);
}

@media (max-width: 1100px) {
  html[data-site-ui='modern'] .news-detail-page .news-reading-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 48px;
  }
}

@media (max-width: 820px) {
  html[data-site-ui='modern'] .news-detail-page {
    width: min(100% - 40px, 700px);
  }
  html[data-site-ui='modern'] .news-detail-page .news-article-header {
    margin: 40px 0 34px;
  }
  html[data-site-ui='modern'] .news-detail-page .news-reading-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }
  html[data-site-ui='modern'] .news-detail-page .news-article-cover {
    margin-bottom: 48px;
  }
  html[data-site-ui='modern'] .news-detail-page .news-article-cover img {
    aspect-ratio: 1.6 / 1;
  }
}

@media (max-width: 580px) {
  html[data-site-ui='modern'] .news-detail-page {
    width: calc(100% - 32px);
  }
  html[data-site-ui='modern'] .news-detail-page .news-breadcrumb {
    padding-bottom: 13px;
  }
  html[data-site-ui='modern'] .news-detail-page .news-article-header {
    margin: 31px 0 28px;
  }
  html[data-site-ui='modern'] .news-detail-page .news-article-header h1 {
    margin: 20px 0 23px;
    font-size: clamp(30px, 8vw, 38px);
    line-height: 1.32;
  }
  html[data-site-ui='modern'] .news-detail-page .news-article-byline {
    gap: 5px 15px;
    font-size: 12px;
  }
  html[data-site-ui='modern'] .news-detail-page .news-article-cover {
    margin-bottom: 35px;
  }
  html[data-site-ui='modern'] .news-detail-page .news-article-cover img {
    aspect-ratio: 1.35 / 1;
  }
  html[data-site-ui='modern'] .news-article-summary {
    margin-bottom: 35px;
    padding: 21px 21px 23px;
  }
  html[data-site-ui='modern'] .news-article-summary p {
    font-size: 18px;
  }
  html[data-site-ui='modern'] .news-detail-page .news-article-body {
    font-size: 17px;
    line-height: 1.95;
  }
  html[data-site-ui='modern'] .news-detail-page .news-detail-ads {
    margin: 60px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-site-ui='modern'] .news-detail-page .news-related-grid img {
    transition: none;
  }
}
