.news-detail-page {
  --news-detail-accent: #13ae67;
  --news-detail-dark: #071218;
  --news-detail-dark-raised: #0b2027;
  --news-detail-dark-soft: #102a31;
  --news-detail-ink: #eef5f2;
  --news-detail-muted: #a9bcc0;
  --news-detail-line-dark: rgb(238 245 242 / 12%);
  --news-detail-line-strong: rgb(238 245 242 / 22%);
  --page-content-max: 96rem;
  --page-safe-gutter: clamp(1rem, 4vw, 4.5rem);
  --page-inline: max(var(--page-safe-gutter), calc((100% - var(--page-content-max)) / 2));
  overflow-x: clip;
  color: var(--news-detail-ink);
  background: var(--news-detail-dark);
  color-scheme: dark;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

.news-detail-page *,
.news-detail-page *::before,
.news-detail-page *::after {
  box-sizing: border-box;
}

.news-detail-page :where(h1, h2, h3, p, figure) {
  margin: 0;
}

.news-detail-page :where(img) {
  display: block;
  max-width: 100%;
}

.news-detail-page a:focus-visible {
  outline: 3px solid var(--news-detail-accent);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--news-detail-dark);
}

.news-detail-page .news-article-shell,
.news-detail-page .news-article-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.news-detail-page .news-article-card {
  overflow: visible;
  padding-top: calc(var(--header-height) + clamp(2rem, 4vw, 3.75rem));
  border: 0;
  border-radius: 0;
  background: var(--news-detail-dark);
  box-shadow: none;
}

.news-detail-page .news-article-intro {
  display: block;
  width: min(100%, 52rem);
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.25rem) clamp(2.5rem, 5vw, 4rem);
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--news-detail-line-dark);
  background: transparent;
}

.news-detail-page .news-article-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
  color: var(--news-detail-ink);
  border: 0;
  background: transparent;
}

.news-detail-page .news-article-header__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.75rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: 0.62rem 1rem;
  color: var(--news-detail-ink);
  border: 2px solid var(--news-detail-accent);
  border-radius: 999px;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.news-detail-page .news-article-header__back::after,
.news-detail-page .article-nav__back::after {
  content: "→";
  margin-left: 0.65rem;
  font-size: 1.2em;
  font-weight: 400;
  line-height: 0.8;
}

.news-detail-page .news-article-header__back:hover,
.news-detail-page .article-nav__back:hover {
  color: var(--news-detail-dark);
  background: var(--news-detail-accent);
  transform: translateX(0.18rem);
}

.news-detail-page .news-article-header__date {
  margin-bottom: 0.75rem;
  color: var(--news-detail-accent);
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.news-detail-page .news-article-header__title {
  max-width: none;
  color: var(--news-detail-ink);
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.4;
  text-wrap: wrap;
}

.news-detail-page .news-article-divider {
  display: none;
}

.news-detail-page .article-content {
  width: min(100%, 52rem);
  max-width: none;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1rem, 3vw, 2.25rem);
  color: var(--news-detail-ink);
  border-inline: 1px solid var(--news-detail-line-dark);
}

.news-detail-page .article-content > p,
.news-detail-page .article-content > .article-html {
  color: var(--news-detail-ink);
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.92;
}

.news-detail-page .article-content > p + p,
.news-detail-page .article-content > .article-html + p,
.news-detail-page .article-content > p + .article-html,
.news-detail-page .article-content > .article-html + .article-html {
  margin-top: 1.6rem;
}

.news-detail-page .article-content p,
.news-detail-page .article-content li,
.news-detail-page .article-content a {
  overflow-wrap: anywhere;
}

.news-detail-page .article-content a {
  color: var(--news-detail-accent);
  font-weight: 650;
  text-underline-offset: 0.18em;
}

.news-detail-page .article-heading {
  margin: clamp(3.5rem, 7vw, 6rem) 0 clamp(1.35rem, 3vw, 2.25rem);
}

.news-detail-page .article-heading h3 {
  color: var(--news-detail-ink);
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.news-detail-page .article-heading h3::before {
  display: block;
  width: 2.75rem;
  height: 0.22rem;
  margin-bottom: 1rem;
  background: var(--news-detail-accent);
  content: "";
}

.news-detail-page .article-img {
  margin: clamp(2.5rem, 5vw, 4rem) 0;
  overflow: hidden;
  border: 1px solid var(--news-detail-line-dark);
  background: var(--news-detail-dark-raised);
}

.news-detail-page .article-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.news-detail-page .wechat-original-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  color: var(--news-detail-ink) !important;
}

.news-detail-page .wechat-original-content :where(section, div) {
  max-width: 100%;
  color: inherit !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.news-detail-page .wechat-original-content :where(p, li, span, strong, b, em, h1, h2, h3, h4, h5, h6, blockquote) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: normal !important;
}

.news-detail-page .wechat-original-content img {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain;
}

.news-detail-page .wechat-original-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.news-detail-page .news33-article {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  color: var(--news-detail-ink);
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.92;
}

.news-detail-page .news33-article .news33-article__copy {
  margin: 0;
  color: var(--news-detail-ink);
}

.news-detail-page .news33-article__figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--news-detail-line-strong);
  background: var(--news-detail-dark-raised);
}

.news-detail-page .news33-article__figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.news-detail-page .news33-article__figure figcaption {
  padding: 0.85rem 1rem;
  color: var(--news-detail-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.news-detail-page .wechat-original-source {
  margin-top: clamp(3rem, 6vw, 5rem) !important;
  padding: 0.35rem 0 0.35rem 1.1rem !important;
  color: var(--news-detail-muted) !important;
  border-left: 3px solid var(--news-detail-accent);
  font-size: 0.94rem !important;
  line-height: 1.75 !important;
}

.news-detail-page .article-nav {
  display: grid;
  grid-template-columns: minmax(10rem, 0.36fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 9rem);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(3.5rem, 7vw, 6rem) var(--page-inline) clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--news-detail-line-strong);
  background: var(--news-detail-dark-raised);
}

.news-detail-page .article-nav__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: fit-content;
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  color: var(--news-detail-ink);
  border: 2px solid var(--news-detail-accent);
  border-radius: 999px;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.news-detail-page .article-nav__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 4rem);
  min-width: 0;
}

.news-detail-page .article-nav__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 9.5rem;
  padding: 1.5rem 0;
  color: var(--news-detail-ink);
  border-top: 1px solid var(--news-detail-line-strong);
  background: transparent;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.news-detail-page .article-nav__card:only-child {
  grid-column: 1 / -1;
}

.news-detail-page .article-nav__card:hover {
  color: var(--news-detail-accent);
  border-color: var(--news-detail-accent);
  transform: translateY(-0.15rem);
}

.news-detail-page .article-nav__card span {
  color: var(--news-detail-accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.news-detail-page .article-nav__card strong {
  margin-top: 2rem;
  font-size: clamp(1.02rem, 1.35vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.5;
}

@media (width <= 960px) {
  .news-detail-page .news-article-card {
    padding-top: calc(var(--header-height) + 1.5rem);
  }

  .news-detail-page .news-article-intro {
    width: 100%;
  }
}

@media (width <= 760px) {
  .news-detail-page .news-article-header__title {
    max-width: none;
    font-size: clamp(1.45rem, 6.5vw, 1.7rem);
    line-height: 1.42;
    text-wrap: wrap;
  }

  .news-detail-page .news-article-header__back {
    margin-bottom: 2.25rem;
  }

  .news-detail-page .article-content {
    padding: 3.75rem 1rem 4.5rem;
    border-inline: 0;
  }

  .news-detail-page .wechat-original-content {
    width: 100% !important;
    margin-inline: 0 !important;
  }

  .news-detail-page .article-nav,
  .news-detail-page .article-nav__links {
    grid-template-columns: 1fr;
  }

  .news-detail-page .article-nav {
    gap: 2.5rem;
    padding: 3.25rem 1rem 4rem;
  }

  .news-detail-page .article-nav__card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-detail-page :is(
    .news-article-header__back,
    .article-nav__back,
    .article-nav__card
  ) {
    transition: none;
  }
}
