/* Detail styles ported from mobile-v2, scoped to the legacy detail page. */
body.detail-v2 .app.app--detail {
  background: #f4f7fd;
}
body.detail-v2 .app.app--detail .app__main {
  padding-bottom: 0;
}

body.detail-v2 .detail-page {
  min-height: 100%;
  padding: 0 1rem calc(4.375rem + env(safe-area-inset-bottom, 0px));
  background: #f4f7fd;
}
body.detail-v2 .detail-page button {
  font: inherit;
  cursor: pointer;
  border: 0;
}

body.detail-v2 .detail-article {
  margin-inline: -1rem;
  padding: 1.125rem 16px 1.5rem;
  border-radius: 0;
  background: #fff;
}
body.detail-v2 .detail-article__title {
  margin: 0;
  color: #222;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.45;
}
body.detail-v2 .detail-article__body {
  margin-top: 1.25rem;
  color: #333;
  font-size: 16px;
  letter-spacing: 1.75px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
body.detail-v2 .detail-article__body p {
  margin: 24px 0;
  text-indent: 2em;
}
body.detail-v2 .detail-article__body .detail-article__paragraph--flush {
  text-indent: 0;
}
body.detail-v2 .detail-article__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7/4;
  object-fit: cover;
  margin: 1rem 0;
  border-radius: 0.5625rem;
}
body.detail-v2 .detail-article__notice {
  margin: 0.625rem 0 0;
  color: #888;
  font-size: 0.75rem;
}
body.detail-v2 .detail-article__read-more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  margin-top: 1.25rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  background: #e8f0ff;
  color: #3078f5;
  font-size: 0.875rem;
  font-weight: 600;
}

body.detail-v2 .detail-recommendations {
  margin: 0.625rem 0 1rem;
  padding: 1.25rem 0.75rem 0;
  border-radius: 0.625rem;
  background: #fff;
}
body.detail-v2 .detail-recommendations__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
body.detail-v2 .detail-recommendations h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  color: #222;
}
body.detail-v2 .detail-recommendations__more {
  padding: 0.3125rem 0.5rem;
  color: #aaa;
  font-size: 0.75rem;
}
body.detail-v2 .detail-recommendations__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.detail-v2 .detail-recommendations li {
  border-bottom: 0.0625rem solid #f1f2f5;
}
body.detail-v2 .detail-recommendations__item {
  display: flex;
  align-items: stretch;
  gap: 0.875rem;
  padding: 0.9375rem 0;
}
body.detail-v2 .detail-recommendations__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  padding: 0.25rem 0;
}
body.detail-v2 .detail-recommendations h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #222;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}
body.detail-v2 .detail-recommendations__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.875rem 0 0;
  color: #aaa;
  font-size: 0.625rem;
  line-height: 1.4;
}
body.detail-v2 .detail-recommendations__image {
  flex-shrink: 0;
  width: 36%;
  height: auto;
  aspect-ratio: 3/2;
  align-self: center;
  object-fit: cover;
  border-radius: 0.5625rem;
}

body.detail-v2 .detail-author {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.5625rem;
}
body.detail-v2 .detail-author__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  flex-shrink: 0;
}
body.detail-v2 .detail-author__info {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 0.3125rem;
  flex-wrap: wrap;
}
body.detail-v2 .detail-author__name {
  color: #444;
  font-size: 0.8125rem;
}
body.detail-v2 .detail-author__verified {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 0.0625rem;
}
body.detail-v2 .detail-author__time {
  color: #aaa;
  font-size: 0.75rem;
  white-space: nowrap;
}
body.detail-v2 .detail-author__follow {
  flex-shrink: 0;
  min-width: 3.5rem;
  height: 1.75rem;
  padding: 0 0.625rem;
  border-radius: 0.4375rem;
  background: #3078f5;
  color: #fff;
  font-size: 0.8125rem !important;
}
body.detail-v2 .detail-author__follow.is-followed {
  background: #f1f3f6;
  color: #888;
}

body.detail-v2 .detail-listen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.6875rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.625rem;
  background: #f7f7f9;
  color: #888;
  font-size: 0.75rem;
}
body.detail-v2 .detail-listen button {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.25rem;
  padding: 0;
  background: none;
  color: #4f85ed;
  white-space: nowrap;
}
body.detail-v2 .detail-listen img {
  width: 0.75rem;
  height: 0.75rem;
  filter: invert(50%) sepia(80%) saturate(1400%) hue-rotate(195deg);
}

body.detail-v2 .detail-actions {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 100;
  width: 100%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.125rem;
  padding: 0.625rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: #f4f7fd;
}
@media (min-width: 768px) {
  body.detail-v2 .detail-actions {
    max-width: 430px;
  }
}
body.detail-v2 .detail-actions__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
  width: 2.75rem;
  flex-shrink: 0;
  padding: 0.25rem 0;
  background: none;
  color: #333;
  font-size: 0.875rem !important;
}
body.detail-v2 .detail-actions__item img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}
body.detail-v2 .detail-actions__item.is-active {
  color: #3078f5;
}
body.detail-v2 .detail-actions__share {
  flex: 1;
  min-width: 0;
  height: 2rem;
  padding: 0 0.75rem;
  border-radius: 0.625rem;
  background: #3078f5;
  color: #fff;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
}
body.detail-v2 .detail-actions__notice {
  margin: 0.625rem 0;
  color: #666;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

body.detail-v2 .detail-comment {
  width: min(90vw, 21.25rem);
  max-height: 80dvh;
  padding: 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  color: #333;
}
body.detail-v2 .detail-comment::backdrop {
  background: rgba(0, 0, 0, 0.4);
}
body.detail-v2 .detail-comment h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}
body.detail-v2 .detail-comment__hint {
  font-size: 0.75rem;
  color: #999;
  line-height: 1.5;
}
body.detail-v2 .detail-comment textarea {
  width: 100%;
  resize: vertical;
  padding: 0.625rem;
  border: 0.0625rem solid #e5e7eb;
  border-radius: 0.375rem;
  font: inherit;
  font-size: 0.875rem;
}
body.detail-v2 .detail-comment ul {
  padding-left: 1.25rem;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
body.detail-v2 .detail-comment li {
  padding: 0.375rem 0;
  white-space: pre-wrap;
}
body.detail-v2 .detail-comment__buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
  margin-top: 0.75rem;
}
body.detail-v2 .detail-comment button {
  padding: 0.5rem 0.875rem;
  border-radius: 0.375rem;
  background: #eef3fc;
  color: #3078f5;
  font-size: 0.875rem;
}
body.detail-v2 .detail-comment button:disabled {
  opacity: 0.4;
  cursor: default;
}
/* Adapt existing API-driven content without inheriting the old desktop header. */
body.detail-v2 { width: 100%; min-width: 0; height: auto; min-height: 100vh; margin: 0 auto; background: #f4f7fd; color: #1a1a1a; font: 1rem/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
body.detail-v2 *, body.detail-v2 *::before, body.detail-v2 *::after { box-sizing: border-box; }
body.detail-v2 [hidden] { display: none !important; }
body.detail-v2 a { color: inherit; text-decoration: none; }
body.detail-v2 img { max-width: 100%; }
body.detail-v2 > footer { display: none; }
body.detail-v2 button { border: 0; font: inherit; cursor: pointer; }
body.detail-v2 .detail-article { overflow: hidden; }
body.detail-v2 .detail-article__title { font-size: 1.25rem; font-weight: 700; }
body.detail-v2 .detail-article__body { word-break: normal; }
body.detail-v2 .detail-article__body img { display: block; max-width: 100% !important; height: auto !important; border-radius: .5625rem; margin: 1rem auto; }
body.detail-v2 .detail-article__body iframe, body.detail-v2 .detail-article__body video { max-width: 100%; }
body.detail-v2 .detail-article__body table { display: block; max-width: 100%; overflow-x: auto; }
body.detail-v2 .detail-article__body p { font-size: 16px; line-height: 1.65; }
/* Restore semantic HTML inside CMS articles after the legacy global reset. */
body.detail-v2 .detail-article__body :is(strong, b) { font-weight: bolder; }
body.detail-v2 .detail-article__body :is(em, i, cite, dfn, var) { font-style: italic; }
body.detail-v2 .detail-article__body :is(h1, h2, h3, h4, h5, h6) {
  font-size: revert;
  font-weight: bold;
  margin: revert;
}
body.detail-v2 .detail-article__body :is(ul, ol, menu, li, dl, dt, dd, blockquote, pre, figure, figcaption) {
  margin: revert;
  padding: revert;
  list-style: revert;
}
body.detail-v2 .detail-article__body :is(a, a:hover) { color: revert; text-decoration: revert; }
body.detail-v2 .detail-article__body :is(u, ins) { text-decoration: underline; }
body.detail-v2 .detail-article__body :is(s, del) { text-decoration: line-through; }
body.detail-v2 .detail-article__body :is(code, kbd, samp, pre) { font-family: monospace; }
body.detail-v2 .detail-article__body pre { white-space: pre; overflow-x: auto; }
body.detail-v2 .detail-article__body :is(sub, sup, small) { font-size: smaller; }
body.detail-v2 .detail-article__body sub { vertical-align: sub; }
body.detail-v2 .detail-article__body sup { vertical-align: super; }
body.detail-v2 .detail-article__body th { font-weight: bold; text-align: center; }
body.detail-v2 #article-info { margin-top: .5625rem; }
body.detail-v2 #article-info .article_enterise { display: block; margin: 0; padding: 0; border: 0; }
body.detail-v2 #article-info .artjrtt_zhsp { display: flex; align-items: center; gap: .625rem; margin: 0; }
body.detail-v2 #article-info .artjsp_logo { flex-shrink: 0; float: none; width: 2.25rem; height: 2.25rem; border: 0; }
body.detail-v2 #article-info .artjsp_logo img { width: 100%; height: 100%; object-fit: cover; }
body.detail-v2 #article-info .artjrsp_gsmc { display: flex; flex-wrap: wrap; align-items: center; gap: .3125rem; flex: 1; float: none; width: auto; min-width: 0; margin: 0; }
body.detail-v2 #article-info .artjrsp_gsmc h2 { display: flex; align-items: center; gap: .3125rem; margin: 0; line-height: 1.5; }
body.detail-v2 #article-info .artjrsp_gsmc h2 span { max-width: none; padding: 0 !important; color: #444; font-size: .8125rem; }
body.detail-v2 #article-info .artjrsp_gsmc h2 i { margin: 0; padding: 0; }
body.detail-v2 #article-info .store-icon { width: .875rem; height: .875rem; object-fit: contain; }
body.detail-v2 #article-info .artjrsp_gsmc p, body.detail-v2 #article-info .artjrsp_gsmc p span { margin: 0; padding: 0; color: #aaa; font-size: .75rem; }
body.detail-v2 #article-info .arctic-other-info { margin: 0; color: #aaa; font-size: .75rem; line-height: 1.5; }
body.detail-v2 .detail-page > .detail-gain, body.detail-v2 .detail-page > .index-block, body.detail-v2 .detail-page > .detail-expert, body.detail-v2 .detail-gzh { overflow: hidden; margin: .625rem 0; padding: .75rem; border: 0; border-radius: .625rem; background: #fff; }
body.detail-v2 .detail-page .index-gain-head { font-size: 1rem; }
body.detail-v2 .detail-page .index-gain { border: 0; }
body.detail-v2 .detail-page > .detail-expert:empty, body.detail-v2 .detail-gzh:empty { display: none; }
body.detail-v2 .detail-special1 { height: auto; margin-bottom: .625rem; border-radius: .625rem; overflow: hidden; }
body.detail-v2 .detail-special1:has(.swiper-wrapper:empty) { display: none; }
body.detail-v2 .detail-label-and-share { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid #f1f2f5; }
body.detail-v2 .detail-actions__notice { position: fixed; bottom: 5rem; left: 50%; transform: translateX(-50%); z-index: 101; width: min(90%, 390px); padding: .75rem; border-radius: .625rem; background: #fff; box-shadow: 0 2px 12px #dbe0e8; }
@media (min-width: 768px) { body.detail-v2 { max-width: 430px; } }

body.detail-v2 #detail-supply .card > a > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
}

body.detail-v2 #detail-supply.list {
  padding-left: 0;
  padding-right: 0;
}

body.detail-v2 .detail-page .index-gain-head {
  padding: 10px 0;
}

body.detail-v2 .detail-reading {
  margin: .625rem -1rem 0;
  padding: 1rem;
  background: #fff;
}
body.detail-v2 .detail-reading h2 {
  margin: 0 0 1.5rem;
  color: #333;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}
body.detail-v2 .detail-reading__list { margin: 0; padding-left: 1rem; }
body.detail-v2 .detail-reading__list li {
  margin: 0 0 .625rem;
  padding: 0;
  list-style: disc outside;
  color: #333;
  font-size: .9375rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.detail-v2 #detail-back img { width: 1rem; height: 1rem; filter: brightness(0); }
body.detail-v2 #detail-back {
  flex-direction: row;
  width: auto;
  gap: .375rem;
  white-space: nowrap;
}

body.detail-v2 .detail-actions__share {
  flex: 0 0 auto;
  width: 8rem;
  margin-left: auto;
}

body.detail-v2 .detail-share-sheet {
  position: fixed;
  inset: auto 0 1rem;
  width: calc(100% - 2rem);
  max-width: 398px;
  max-height: calc(90dvh - env(safe-area-inset-bottom, 0px));
  margin: 0 auto env(safe-area-inset-bottom, 0px);
  padding: 1.5rem 1rem 2.75rem;
  overflow-y: auto;
  border: 0;
  border-radius: 1.25rem;
  background: #fff;
  color: #333;
}
body.detail-v2 .detail-share-sheet::backdrop { background: rgb(0 0 0 / 45%); }
body.detail-v2 .detail-share-sheet h2 { margin: 0; text-align: center; font-size: 1rem; font-weight: 700; }
body.detail-v2 .detail-share-sheet__close { position: absolute; top: .75rem; right: .75rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; background: none; color: #333; font-size: 2rem; font-weight: 300; line-height: 1; }
body.detail-v2 .detail-share-sheet__options { display: flex; justify-content: space-around; gap: .5rem; margin-top: 3.5rem; }
body.detail-v2 .detail-share-sheet__option { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: center; gap: .625rem; padding: .25rem 0; background: none; color: #666; font-size: .8125rem; white-space: nowrap; }
body.detail-v2 .detail-share-sheet__icon { display: grid; place-items: center; width: 2.875rem; height: 2.875rem; border-radius: 50%; color: #fff; }
body.detail-v2 .detail-share-sheet__icon svg { width: 1.875rem; height: 1.875rem; }
body.detail-v2 .detail-share-sheet__icon--wechat { background: #4bb96d; }
body.detail-v2 .detail-share-sheet__icon--link { background: #389cf4; }
body.detail-v2 .detail-share-sheet__icon--qr { background: #f4c52c; }
body.detail-v2 .detail-share-sheet__status { margin: 1.25rem 0 0; text-align: center; color: #666; font-size: .8125rem; line-height: 1.6; }
body.detail-v2 .detail-share-sheet__url { display: block; width: 100%; margin-top: .75rem; padding: .625rem; border: 1px solid #ddd; border-radius: .375rem; font-size: .75rem; }
body.detail-v2 .detail-share-sheet__qr { margin-top: 1rem; text-align: center; }
body.detail-v2 .detail-share-sheet__qr img { display: block; width: 11rem; height: 11rem; margin: 0 auto; }
body.detail-v2 .detail-share-sheet__qr a { display: inline-block; margin-top: .5rem; padding: .5rem 1.25rem; border-radius: .5rem; background: #3078f5; color: #fff; font-size: .875rem; }
body.detail-v2 .detail-share-sheet__qr p { margin-top: .5rem; color: #999; font-size: .75rem; }

body.detail-v2 .detail-share-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: min(calc(100vw - 3rem), 320px);
  margin: 0;
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: rgb(0 0 0 / 78%);
  color: #fff;
  font-size: .875rem;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
}

body.detail-v2 .detail-wechat-guide {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  border: 0;
  background: transparent;
  color: #fff;
}
body.detail-v2 .detail-wechat-guide::backdrop { background: rgb(0 0 0 / 76%); }
body.detail-v2 .detail-wechat-guide__content { width: 100%; max-width: 430px; margin: 0 auto; padding: calc(.5rem + env(safe-area-inset-top, 0px)) 1.25rem 2rem; text-align: center; }
body.detail-v2 .detail-wechat-guide__arrow { display: block; width: min(38vw, 145px); height: auto; margin: 0 0 1rem auto; color: #fff; }
body.detail-v2 .detail-wechat-guide h2 { margin: 0 0 .875rem; color: #fff; font-size: 1.375rem; font-weight: 600; }
body.detail-v2 .detail-wechat-guide p { margin: 0; color: rgb(255 255 255 / 85%); font-size: .9375rem; line-height: 1.9; }
body.detail-v2 #detail-wechat-close { min-width: 8rem; margin-top: 2rem; padding: .625rem 1.5rem; border: 1px solid rgb(255 255 255 / 65%); border-radius: 999px; background: transparent; color: #fff; font-size: .875rem; }

body.detail-v2 .index-gain-head > span,
body.detail-v2 .detail-expert-t > strong {
  font-weight: 700;
}
body.detail-v2 .index-gain-head > a,
body.detail-v2 .detail-expert-t > a {
  display: inline-flex;
  align-items: center;
  gap: .125rem;
}
body.detail-v2 .detail-more-icon {
  display: block;
  flex-shrink: 0;
  width: .8125rem;
  height: .6875rem;
  margin: 0;
  object-fit: contain;
}
