/* Article-only reading styles. Load after news-page.css and text-depth.css. */
.news-page .news-detail {
  min-width: 0;
  color: #2c4260;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.news-page .news-detail,
.news-page .news-detail *,
.news-page #newsImageDialog.news-image-dialog,
.news-page #newsImageDialog.news-image-dialog * {
  -webkit-text-fill-color: currentColor;
}

.news-page .news-detail .news-back {
  margin-bottom: 12px;
  color: #57749e;
  font-size: 14px;
}

.news-page .news-detail .news-rich-article {
  min-width: 0;
  padding: 24px 21px 23px;
  border: 1px solid #e0e8f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 20px #2d518005;
}

.news-page .news-detail .news-article-header {
  min-width: 0;
}
.news-page .news-detail .news-article-meta {
  column-gap: 8px;
  row-gap: 7px;
  color: #7788a0;
  font-size: 12px;
  line-height: 1.7;
}
.news-page .news-detail .news-article-meta .news-source {
  flex: 1 1 86px;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.news-page .news-detail .news-article-meta > time {
  color: #7b8da6;
}
.news-page .news-detail .news-category {
  padding: 3px 7px;
  font-size: 11px;
}
.news-page .news-detail .news-article h1 {
  margin: 16px 0 0;
  color: #203d64;
  font-family: inherit;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.52;
  letter-spacing: -0.35px;
  overflow-wrap: anywhere;
}
.news-page .news-detail .news-article h1:focus {
  outline: none;
}
.news-page .news-detail .news-article h1 {
  text-wrap: balance;
}
.news-page .news-detail .news-article h1 > span {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}
.news-page .news-detail .news-article-lead {
  margin: 19px 0 0;
  color: #627790;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.05px;
  overflow-wrap: anywhere;
}
.news-page .news-detail .news-article-cover {
  margin-top: 23px;
}
.news-page .news-detail .news-article-cover:empty {
  display: none;
}
.news-page .news-detail .news-article-body {
  min-width: 0;
  margin-top: 25px;
  color: #344c69;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.05px;
  overflow-wrap: anywhere;
}
.news-page .news-detail .news-article-body:empty {
  display: none;
}
.news-page .news-detail .news-article-body h2 {
  margin: 29px 0 12px;
  color: #28486f;
  font-family: inherit;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.65;
  letter-spacing: -0.15px;
}
.news-page .news-detail .news-article-body > h2:first-child {
  margin-top: 0;
}
.news-page .news-detail .news-article-body p {
  margin: 0;
}
.news-page .news-detail .news-article-body p + p {
  margin-top: 17px;
}
.news-page .news-detail .news-article-body strong {
  color: #29486c;
  font-weight: 650;
}
.news-page .news-detail .news-article-body a {
  color: #2858ce;
  text-decoration: underline;
  text-decoration-color: #b7caf5;
  text-underline-offset: 4px;
}

.news-page .news-detail .news-article-figure {
  min-width: 0;
  margin: 25px 0;
}
.news-page .news-detail .news-article-cover > .news-article-figure {
  margin: 0;
}
.news-page .news-detail .news-article-body > .news-article-figure:last-child {
  margin-bottom: 0;
}
.news-page .news-detail .news-image-trigger {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid #e4eaf4;
  border-radius: 11px;
  background: #f4f7fc;
  color: #41628b;
  text-align: left;
  cursor: zoom-in;
}
.news-page .news-detail .news-image-trigger > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  object-fit: contain;
}
.news-page .news-detail .news-image-hint {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid #dce6f5;
  border-radius: 6px;
  background: #fffffff0;
  color: #48658b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  pointer-events: none;
}
.news-page .news-detail .news-image-hint svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.7;
}
.news-page .news-detail .news-article-figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 9px;
  padding-inline: 1px;
  color: #6c7f98;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.news-page .news-detail .news-figure-caption {
  display: block;
}
.news-page .news-detail .news-figure-credit {
  display: block;
  color: #8493a8;
  font-size: 11px;
  line-height: 1.75;
}
.news-page .news-detail .news-image-unavailable {
  display: none;
}
.news-page .news-detail .news-article-figure[data-image-state='unavailable'] .news-image-trigger {
  display: none;
}
.news-page
  .news-detail
  .news-article-figure[data-image-state='unavailable']
  .news-image-unavailable {
  display: block;
  margin: 0;
  padding: 19px 14px;
  border: 1px solid #e5ebf4;
  border-radius: 10px;
  background: #f7f9fd;
  color: #8492a6;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.news-page .news-detail .news-article-points {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #e8eef7;
}
.news-page .news-detail .news-article-points > h2 {
  color: #28486f;
  font-size: 18px;
  line-height: 1.7;
}
.news-page .news-detail .news-article-points li {
  color: #4d6684;
  font-size: 16px;
  line-height: 1.9;
}
.news-page .news-detail .news-article-points li::before {
  top: 13px;
}
.news-page .news-detail .news-source-panel {
  margin-top: 29px;
  padding: 16px 15px 13px;
  border: 1px solid #e1e9f8;
  border-radius: 12px;
  background: #f5f8fe;
}
.news-page .news-detail .news-source-panel > span {
  margin-bottom: 5px;
  color: #7a90af;
  font-size: 11px;
  letter-spacing: 0.4px;
}
.news-page .news-detail .news-source-panel h2 {
  color: #45668f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}
.news-page .news-detail .news-source-panel p {
  margin-top: 6px;
  color: #778aa3;
  font-size: 12px;
  line-height: 1.85;
}
.news-page .news-detail .news-source-link {
  min-height: 44px;
  margin-top: 5px;
  color: #3565bd;
  font-size: 13px;
}
.news-page .news-detail .news-editor-note {
  margin-top: 17px;
  color: #8594aa;
  font-size: 12px;
  line-height: 1.85;
}

/* The native modal lives at the end of .news-page, outside .news-detail. */
.news-page #newsImageDialog.news-image-dialog {
  position: fixed;
  inset: 0;
  width: min(960px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  height: fit-content;
  max-height: 90vh;
  max-height: 90dvh;
  overflow: auto;
  margin: auto;
  padding: 0;
  border: 1px solid #dce6f5;
  border-radius: 16px;
  background: #fff;
  color: #2c476b;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  box-shadow: 0 24px 80px #102b5433;
}
.news-page #newsImageDialog.news-image-dialog[open] {
  display: block;
}
.news-page #newsImageDialog.news-image-dialog::backdrop {
  background: #19365e8c;
  backdrop-filter: blur(4px);
}
.news-page #newsImageDialog .news-image-dialog-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 9px 10px 9px 18px;
  border-bottom: 1px solid #e6edf7;
  background: #fff;
}
.news-page #newsImageDialog .news-image-dialog-bar > strong {
  min-width: 0;
  color: #29486f;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.news-page #newsImageDialog [data-news-image-close] {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  margin: 0;
  padding: 10px;
  border: 1px solid #e3eaf5;
  border-radius: 10px;
  background: #f6f9ff;
  color: #5d7595;
}
.news-page #newsImageDialog [data-news-image-close] svg {
  width: 20px;
  height: 20px;
}
.news-page #newsImageDialog .news-image-stage {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  overscroll-behavior: contain;
  padding: 12px;
  background: #f3f6fb;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.news-page #newsImageDialog #newsImageLarge {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  border-radius: 5px;
  object-fit: contain;
}
.news-page #newsImageDialog .news-image-error {
  margin: 0;
  padding: 38px 16px;
  color: #72849f;
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
}
.news-page #newsImageDialog .news-image-caption {
  flex: 0 0 auto;
  max-height: 20vh;
  overflow: auto;
  margin: 0;
  padding: 12px 18px 14px;
  border-top: 1px solid #e6edf7;
  background: #fff;
  color: #6b7f9a;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.news-page #newsImageDialog .news-image-caption:empty {
  display: none;
}
.news-page #newsImageDialog :is(button, a):focus-visible {
  outline: 3px solid #a6bcfa;
  outline-offset: 2px;
}

@media (max-width: 360px) {
  .news-page .news-detail .news-rich-article {
    padding: 21px 15px 20px;
    border-radius: 16px;
  }
  .news-page .news-detail .news-article h1 {
    margin-top: 15px;
    font-size: 23px;
    line-height: 1.55;
  }
  .news-page .news-detail .news-article-meta {
    column-gap: 6px;
    row-gap: 6px;
    font-size: 11px;
  }
  .news-page .news-detail .news-article-meta .news-source {
    flex-basis: 75px;
  }
  .news-page .news-detail .news-article-meta > time {
    font-size: 11px;
  }
  .news-page .news-detail .news-category {
    padding-inline: 6px;
    font-size: 10px;
  }
  .news-page .news-detail .news-article-lead {
    font-size: 16px;
  }
  .news-page .news-detail .news-article-cover {
    margin-top: 21px;
  }
  .news-page .news-detail .news-article-body {
    margin-top: 23px;
    font-size: 16px;
  }
  .news-page .news-detail .news-article-body h2 {
    font-size: 18px;
  }
  .news-page .news-detail .news-source-panel {
    padding-inline: 12px;
  }
  .news-page #newsImageDialog .news-image-dialog-bar {
    gap: 8px;
    padding-left: 13px;
  }
  .news-page #newsImageDialog .news-image-dialog-bar > strong {
    font-size: 14px;
  }
  .news-page #newsImageDialog .news-image-stage {
    padding: 8px;
  }
  .news-page #newsImageDialog .news-image-caption {
    padding-inline: 13px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .news-page .news-detail .news-image-trigger:hover {
    border-color: #b9cdef;
  }
  .news-page .news-detail .news-image-trigger:hover .news-image-hint {
    background: #fff;
    color: #2858ce;
  }
  .news-page #newsImageDialog [data-news-image-close]:hover {
    border-color: #bdcff1;
    background: #edf3ff;
    color: #2858ce;
  }
}
