/* WANXIN news archive and detail, matched to the customer-owned English site. */

body.wanxin-news-archive,
body.wanxin-news-detail {
  --news-blue: #0568b7;
  --news-blue-dark: #0f2747;
  --news-blue-deep: #0b1d35;
  --news-text: #334155;
  --news-muted: #64748b;
  --news-line: #e2e8f0;
  --news-soft: #f8fafc;
  --news-white: #fff;
}

body.wanxin-news-archive .wanxin-news-container,
body.wanxin-news-detail .wanxin-news-container {
  width: min(1382px, 96%);
  margin-inline: auto;
}

body.wanxin-news-archive .news-banner,
body.wanxin-news-detail .detail-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--news-white);
  background-image: var(--wanxin-news-hero-image);
  background-position: center;
  background-size: cover;
}

body.wanxin-news-archive .news-banner::before,
body.wanxin-news-detail .detail-banner::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(2, 13, 25, 0.72);
}

body.wanxin-news-archive .news-banner__inner {
  display: flex;
  min-height: 475px;
  align-items: center;
  padding-top: 80px;
}

body.wanxin-news-archive .news-banner__content {
  width: min(700px, 100%);
  margin-inline: auto;
  text-align: center;
}

body.wanxin-news-archive .news-section-label,
body.wanxin-news-detail .news-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: inherit;
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

body.wanxin-news-archive .news-banner__content .news-section-label {
  justify-content: center;
}

body.wanxin-news-archive .news-section-label::before,
body.wanxin-news-detail .news-section-label::before {
  width: 26px;
  height: 2px;
  content: "";
  background: currentColor;
}

body.wanxin-news-archive .news-banner__title {
  max-width: 100%;
  margin: 0 0 18px;
  color: var(--news-white);
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

body.wanxin-news-archive .news-banner__title span,
body.wanxin-news-detail .related-news-heading h2 span {
  color: #2d87d8;
}

body.wanxin-news-archive .news-banner__sub {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.65;
}

body.wanxin-news-archive .news-reference-breadcrumb,
body.wanxin-news-detail .news-reference-breadcrumb {
  min-height: 87px;
  background: var(--news-soft);
  border-bottom: 1px solid var(--news-line);
}

body.wanxin-news-archive .news-reference-breadcrumb nav,
body.wanxin-news-detail .news-reference-breadcrumb nav {
  display: flex;
  min-height: 87px;
  align-items: center;
  gap: 9px;
  color: var(--news-muted);
  font-size: 14px;
  line-height: 1.5;
}

body.wanxin-news-archive .news-reference-breadcrumb a,
body.wanxin-news-detail .news-reference-breadcrumb a {
  color: var(--news-blue);
  font-weight: 700;
}

body.wanxin-news-detail .news-reference-breadcrumb [aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.wanxin-news-archive .news-body-section {
  padding: 92px 0;
  background: var(--news-white);
}

body.wanxin-news-archive .news-layout,
body.wanxin-news-detail .detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 46px;
}

body.wanxin-news-archive .news-main {
  min-width: 0;
}

body.wanxin-news-archive .news-card-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body.wanxin-news-archive .news-card {
  display: grid;
  min-height: 285px;
  grid-template-columns: minmax(250px, 0.6fr) minmax(0, 1fr);
  gap: 28px;
  overflow: hidden;
  background: var(--news-white);
  border: 1px solid var(--news-line);
  border-radius: 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

body.wanxin-news-archive .news-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 18px 38px rgba(15, 39, 71, 0.12);
  transform: translateY(-3px);
}

body.wanxin-news-archive .news-card__image {
  display: block;
  position: relative;
  min-width: 0;
  min-height: 283px;
  overflow: hidden;
  background: #f0f4f8;
}

body.wanxin-news-archive .news-card__image-file {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 283px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

body.wanxin-news-archive .news-card:hover .news-card__image-file {
  transform: scale(1.08);
}

body.wanxin-news-archive .news-card__body {
  display: flex;
  position: relative;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 28px 28px 28px 0;
}

body.wanxin-news-archive .news-card__date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.4;
}

body.wanxin-news-archive .news-card__date svg {
  width: 13px;
  height: 13px;
  color: var(--news-blue);
}

body.wanxin-news-archive .news-card__title-link {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

body.wanxin-news-archive .news-card__title {
	margin: 0 0 12px;
  color: var(--news-blue-dark);
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: none;
  overflow-wrap: anywhere;
}

body.wanxin-news-archive .news-card__title-link:hover .news-card__title {
  color: var(--news-blue);
}

body.wanxin-news-archive .news-card__link,
body.wanxin-news-detail .news-read-more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  color: var(--news-blue);
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  transition: gap 0.2s ease, color 0.2s ease;
}

body.wanxin-news-archive .news-card__link:hover,
body.wanxin-news-detail .news-read-more:hover {
  gap: 13px;
  color: #2d87d8;
}

body.wanxin-news-archive .news-card__link svg,
body.wanxin-news-detail .news-read-more svg {
  width: 15px;
  height: 15px;
}

body.wanxin-news-archive .news-sidebar,
body.wanxin-news-detail .news-sidebar {
  position: relative;
  min-width: 0;
  align-self: stretch;
}

body.wanxin-news-archive .sidebar-sticky,
body.wanxin-news-detail .sidebar-sticky {
  position: sticky;
  top: 112px;
}

body.wanxin-news-archive .sidebar-block,
body.wanxin-news-detail .sidebar-block {
  padding: 34px 28px;
  background: var(--news-white);
  border: 1px solid var(--news-line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 39, 71, 0.06);
}

body.wanxin-news-archive .sidebar-title,
body.wanxin-news-detail .sidebar-title {
  margin: 0 0 24px;
  padding-bottom: 16px;
  color: var(--news-blue-dark);
  border-bottom: 2px solid var(--news-blue);
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

body.wanxin-news-archive .side-nav-list,
body.wanxin-news-detail .side-nav-list {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

body.wanxin-news-archive .side-nav-link,
body.wanxin-news-detail .side-nav-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: var(--news-text);
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

body.wanxin-news-archive .side-nav-link svg,
body.wanxin-news-detail .side-nav-link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

body.wanxin-news-archive .side-nav-link:hover,
body.wanxin-news-archive .side-nav-link.active,
body.wanxin-news-detail .side-nav-link:hover,
body.wanxin-news-detail .side-nav-link.active {
  color: var(--news-white);
  background: var(--news-blue);
}

body.wanxin-news-archive .sidebar-cta,
body.wanxin-news-detail .sidebar-cta {
  margin-top: 24px;
  padding: 36px 28px;
  color: var(--news-white);
  background: var(--news-blue);
  border-radius: 10px;
  text-align: center;
}

body.wanxin-news-archive .sidebar-cta > svg,
body.wanxin-news-detail .sidebar-cta > svg {
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
}

body.wanxin-news-archive .sidebar-cta h3,
body.wanxin-news-detail .sidebar-cta h3 {
  margin: 0 0 14px;
  color: var(--news-white);
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

body.wanxin-news-archive .sidebar-cta p,
body.wanxin-news-detail .sidebar-cta p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.65;
}

body.wanxin-news-archive .news-button,
body.wanxin-news-detail .news-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: var(--news-white);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

body.wanxin-news-archive .news-button:hover,
body.wanxin-news-detail .news-button:hover {
  color: var(--news-blue);
  background: var(--news-white);
}

body.wanxin-news-archive .navigation.pagination {
  margin-top: 46px;
}

body.wanxin-news-archive .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.wanxin-news-archive .page-numbers {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding-inline: 12px;
  color: var(--news-muted);
  background: var(--news-white);
  border: 1px solid var(--news-line);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

body.wanxin-news-archive .page-numbers.current,
body.wanxin-news-archive .page-numbers:hover {
  color: var(--news-white);
  background: var(--news-blue);
  border-color: var(--news-blue);
}

/* Detail hero */
body.wanxin-news-detail .detail-banner {
  padding: 160px 0 80px;
}

body.wanxin-news-detail .detail-banner::before {
  background: rgba(0, 0, 0, 0.8);
}

body.wanxin-news-detail .detail-banner__inner {
  display: flex;
  min-height: 420px;
  max-height: 500px;
  align-items: stretch;
  gap: 46px;
}

body.wanxin-news-detail .detail-banner__content {
  display: flex;
  min-width: 0;
  flex: 1 1 55%;
  flex-direction: column;
  justify-content: center;
}

body.wanxin-news-detail .detail-banner__tag {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 6px 13px;
  color: var(--news-white);
  background: var(--news-blue);
  border-radius: 2px;
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

body.wanxin-news-detail .detail-banner__title {
  margin: 0 0 22px;
  color: var(--news-white);
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: clamp(31px, 3vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

body.wanxin-news-detail .detail-banner__meta {
  display: flex;
  margin-bottom: 20px;
  gap: 22px;
  flex-wrap: wrap;
}

body.wanxin-news-detail .detail-banner__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.4;
}

body.wanxin-news-detail .detail-banner__meta-item svg {
  width: 14px;
  height: 14px;
  color: #60a5fa;
}

body.wanxin-news-detail .detail-banner__excerpt {
  display: -webkit-box;
  max-width: 760px;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

body.wanxin-news-detail .detail-banner__image {
  display: block;
  position: relative;
  min-width: 0;
  flex: 0 0 42%;
  align-self: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
}

body.wanxin-news-detail .detail-banner__image-file {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.wanxin-news-detail .detail-body-section {
  padding: 74px 0;
  background: var(--news-white);
}

body.wanxin-news-detail .detail-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: stretch;
  gap: 55px;
}

body.wanxin-news-detail .detail-article {
  min-width: 0;
}

body.wanxin-news-detail .detail-article__body {
  color: var(--news-text);
  font-size: 16px;
  line-height: 1.85;
}

body.wanxin-news-detail .detail-lead {
  margin: 0 0 34px;
  padding-bottom: 34px;
  color: var(--news-blue-dark);
  border-bottom: 1px solid var(--news-line);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.7;
}

body.wanxin-news-detail .detail-article__body h2,
body.wanxin-news-detail .detail-article__body h3,
body.wanxin-news-detail .detail-article__body h4 {
  scroll-margin-top: 118px;
  color: var(--news-blue-dark);
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  overflow-wrap: anywhere;
}

body.wanxin-news-detail .detail-article__body h2 {
  margin: 44px 0 17px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
}

body.wanxin-news-detail .detail-article__body h3 {
  margin: 30px 0 13px;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.3;
}

body.wanxin-news-detail .detail-article__body p {
  margin: 0 0 22px;
}

body.wanxin-news-detail .detail-article__body ul,
body.wanxin-news-detail .detail-article__body ol {
  margin: 22px 0;
  padding-left: 24px;
}

body.wanxin-news-detail .detail-article__body li {
  margin-bottom: 10px;
}

body.wanxin-news-detail .detail-article__body a {
  color: var(--news-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.wanxin-news-detail .detail-article__body img,
body.wanxin-news-detail .detail-article__body figure {
  max-width: 100%;
}

body.wanxin-news-detail .detail-article__body figure {
  margin: 32px 0;
}

body.wanxin-news-detail .detail-article__body img {
  display: block;
  width: auto;
  height: auto;
  border-radius: 10px;
}

body.wanxin-news-detail .detail-article__body table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

body.wanxin-news-detail .detail-article__body th,
body.wanxin-news-detail .detail-article__body td {
  padding: 13px 14px;
  border: 1px solid var(--news-line);
  text-align: left;
  vertical-align: top;
}

body.wanxin-news-detail .detail-article__body th {
  color: var(--news-blue-dark);
  background: var(--news-soft);
}

body.wanxin-news-detail .news-detail-toc {
  margin: 30px 0 38px;
  padding: 24px 28px;
  background: var(--news-soft);
  border: 1px solid var(--news-line);
  border-left: 4px solid var(--news-blue);
  border-radius: 0 8px 8px 0;
}

body.wanxin-news-detail .news-detail-toc ol {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
  counter-reset: news-toc;
}

body.wanxin-news-detail .news-detail-toc li {
  margin: 0;
  counter-increment: news-toc;
}

body.wanxin-news-detail .news-detail-toc a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--news-blue-dark);
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

body.wanxin-news-detail .news-detail-toc a::before {
  content: counter(news-toc, decimal-leading-zero);
  color: var(--news-blue);
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-weight: 800;
}

body.wanxin-news-detail .news-detail-toc a:hover {
  color: var(--news-blue);
}

body.wanxin-news-detail .detail-share {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 50px;
  padding-top: 34px;
  border-top: 1px solid var(--news-line);
  flex-wrap: wrap;
}

body.wanxin-news-detail .detail-share__label {
  color: var(--news-muted);
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

body.wanxin-news-detail .detail-share__buttons {
  display: flex;
  gap: 8px;
}

body.wanxin-news-detail .detail-share__btn {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--news-muted);
  background: var(--news-white);
  border: 1px solid var(--news-line);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.wanxin-news-detail .detail-share__btn svg {
  width: 17px;
  height: 17px;
}

body.wanxin-news-detail .detail-share__btn > span {
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
}

body.wanxin-news-detail .detail-share__btn--linkedin > span {
  transform: translateY(1px);
}

body.wanxin-news-detail .detail-share__btn--facebook > span {
  font-size: 21px;
}

body.wanxin-news-detail .detail-share__status {
  min-width: 120px;
  color: var(--news-blue);
  font-size: 13px;
  font-weight: 700;
}

body.wanxin-news-detail .detail-share__btn:hover,
body.wanxin-news-detail .detail-share__btn.is-copied {
  color: var(--news-white);
  background: var(--news-blue);
  border-color: var(--news-blue);
  transform: translateY(-2px);
}

body.wanxin-news-detail .related-news-section {
  padding: 92px 0;
  background: var(--news-soft);
  border-top: 1px solid var(--news-line);
}

body.wanxin-news-detail .related-news-heading h2 {
  max-width: 700px;
  margin: 0;
  color: var(--news-blue-dark);
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

body.wanxin-news-detail .related-news-heading .news-section-label {
  color: var(--news-blue);
}

body.wanxin-news-detail .related-news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 46px;
}

body.wanxin-news-detail .news-featured {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--news-blue-deep);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

body.wanxin-news-detail .news-featured:hover {
  box-shadow: 0 18px 38px rgba(15, 39, 71, 0.18);
  transform: translateY(-4px);
}

body.wanxin-news-detail .news-featured-img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dbe5ee;
}

body.wanxin-news-detail .news-featured-img-main {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

body.wanxin-news-detail .news-featured:hover .news-featured-img-main {
  transform: scale(1.06);
}

body.wanxin-news-detail .news-featured-body {
  display: flex;
  min-height: 220px;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

body.wanxin-news-detail .news-featured-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

body.wanxin-news-detail .news-featured-date svg {
  width: 13px;
  height: 13px;
  color: #60a5fa;
}

body.wanxin-news-detail .news-featured-title {
  margin: 0 0 18px;
  color: var(--news-white);
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body.wanxin-news-detail .news-featured-title a {
  color: inherit;
}

body.wanxin-news-detail .news-featured .news-read-more {
  margin-top: auto;
  color: #60a5fa;
}

@media (max-width: 1024px) {
  body.wanxin-news-archive .news-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
  }

  body.wanxin-news-detail .detail-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 34px;
  }

  body.wanxin-news-archive .news-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  body.wanxin-news-detail .detail-banner {
    padding-top: 140px;
  }

  body.wanxin-news-detail .detail-banner__inner {
    gap: 30px;
  }

  body.wanxin-news-detail .detail-banner__title {
    font-size: 34px;
  }

  body.wanxin-news-detail .related-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  body.wanxin-news-archive .news-banner__inner {
    min-height: calc(26vw + 101px);
    justify-content: center;
  }

  body.wanxin-news-archive .news-banner__content {
    width: min(700px, calc(29vw + 290px));
  }

  body.wanxin-news-archive .news-layout,
  body.wanxin-news-detail .detail-layout {
    gap: 37px;
  }

  body.wanxin-news-archive .news-card {
    min-height: 0;
  }

  body.wanxin-news-archive .news-card__image,
  body.wanxin-news-archive .news-card__image-file {
    min-height: 0;
  }

  body.wanxin-news-archive .news-card__body {
    padding: 37px 24px 37px 0;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  body.wanxin-news-detail .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.wanxin-news-detail .sidebar-sticky {
    position: static;
  }

  body.wanxin-news-archive .news-card {
    min-height: 244px;
  }

  body.wanxin-news-archive .news-card__image,
  body.wanxin-news-archive .news-card__image-file {
    min-height: 242px;
  }
}

@media (max-width: 768px) {
  body.wanxin-news-archive .wanxin-news-container,
  body.wanxin-news-detail .wanxin-news-container {
    width: min(calc(100% - 36px), 680px);
  }

  body.wanxin-news-archive .news-banner__inner {
    min-height: 410px;
    justify-content: center;
    padding: 132px 0 42px;
  }

  body.wanxin-news-archive .news-banner__title {
    font-size: 32px !important;
    line-height: 1.12;
  }

  body.wanxin-news-archive .news-banner__sub {
    font-size: 16px;
    line-height: 1.55;
  }

  body.wanxin-news-archive .news-reference-breadcrumb,
  body.wanxin-news-detail .news-reference-breadcrumb,
  body.wanxin-news-archive .news-reference-breadcrumb nav,
  body.wanxin-news-detail .news-reference-breadcrumb nav {
    min-height: 64px;
  }

  body.wanxin-news-archive .news-reference-breadcrumb nav,
  body.wanxin-news-detail .news-reference-breadcrumb nav {
    font-size: 13px;
  }

  body.wanxin-news-archive .news-layout,
  body.wanxin-news-detail .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  body.wanxin-news-archive .news-body-section,
  body.wanxin-news-detail .detail-body-section,
  body.wanxin-news-detail .related-news-section {
    padding: 48px 0;
  }

  body.wanxin-news-archive .sidebar-sticky,
  body.wanxin-news-detail .sidebar-sticky {
    position: static;
  }

  body.wanxin-news-detail .detail-banner {
    padding: 118px 0 44px;
  }

  body.wanxin-news-detail .detail-banner__inner {
    max-height: none;
    flex-direction: column-reverse;
    gap: 24px;
  }

  body.wanxin-news-detail .detail-banner__image {
    width: 100%;
    flex: 0 0 auto;
  }

  body.wanxin-news-detail .detail-banner__title {
    margin-bottom: 16px;
    font-size: 28px !important;
    line-height: 1.14;
  }

  body.wanxin-news-detail .detail-banner__meta {
    margin-bottom: 15px;
    gap: 14px;
  }

  body.wanxin-news-detail .detail-banner__excerpt {
    font-size: 15px;
    line-height: 1.6;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  html:lang(ru) body.wanxin-news-archive :where(.news-banner__title, .news-card__title, .sidebar-cta h3),
  html:lang(ru) body.wanxin-news-detail :where(.detail-banner__title, .detail-article__body h2, .detail-article__body h3, .detail-article__body h4, .sidebar-cta h3, .related-news-heading h2, .news-featured-title) {
    hyphens: auto !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  html:lang(ru) body.wanxin-news-archive :where(.news-banner__title, .sidebar-cta h3),
  html:lang(ru) body.wanxin-news-detail :where(.detail-banner__title, .related-news-heading h2, .sidebar-cta h3) {
    text-wrap: balance;
  }

  html:lang(ru) body.wanxin-news-archive :where(.news-banner__sub, .news-reference-breadcrumb, .news-reference-breadcrumb *, .sidebar-cta p, .news-card__link),
  html:lang(ru) body.wanxin-news-detail :where(.detail-banner__excerpt, .detail-banner__meta, .news-reference-breadcrumb, .news-reference-breadcrumb *, .detail-article__body, .detail-article__body *, .sidebar-cta p, .news-read-more) {
    hyphens: none !important;
    word-break: normal !important;
  }

  body.wanxin-news-archive .news-reference-breadcrumb nav,
  body.wanxin-news-detail .news-reference-breadcrumb nav {
    overflow: hidden;
    flex-wrap: nowrap;
  }

  body.wanxin-news-archive .news-reference-breadcrumb a,
  body.wanxin-news-detail .news-reference-breadcrumb a,
  body.wanxin-news-archive .news-reference-breadcrumb [aria-hidden="true"],
  body.wanxin-news-detail .news-reference-breadcrumb [aria-hidden="true"] {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  body.wanxin-news-archive .news-reference-breadcrumb [aria-current="page"],
  body.wanxin-news-detail .news-reference-breadcrumb [aria-current="page"] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.wanxin-news-archive .sidebar-block,
  body.wanxin-news-detail .sidebar-block {
    padding: 26px 22px;
  }

  body.wanxin-news-archive .sidebar-title,
  body.wanxin-news-detail .sidebar-title {
    margin-bottom: 18px;
    padding-bottom: 13px;
  }

  body.wanxin-news-archive .sidebar-cta,
  body.wanxin-news-detail .sidebar-cta {
    margin-top: 18px;
    padding: 28px 22px;
  }

  body.wanxin-news-archive .sidebar-cta > svg,
  body.wanxin-news-detail .sidebar-cta > svg {
    margin-bottom: 14px;
  }

  body.wanxin-news-archive .sidebar-cta h3,
  body.wanxin-news-detail .sidebar-cta h3 {
    font-size: 20px;
  }

  body.wanxin-news-archive .sidebar-cta p,
  body.wanxin-news-detail .sidebar-cta p {
    margin-bottom: 18px;
  }

  body.wanxin-news-archive .news-button,
  body.wanxin-news-detail .news-button {
    width: 100%;
  }

  body.wanxin-news-detail .detail-article__body {
    line-height: 1.75;
  }

  body.wanxin-news-detail .detail-lead {
    margin-bottom: 26px;
    padding-bottom: 26px;
    line-height: 1.65;
  }

  body.wanxin-news-detail .detail-article__body h2 {
    margin: 34px 0 14px;
    line-height: 1.28;
  }

  body.wanxin-news-detail .detail-article__body h3 {
    margin: 26px 0 12px;
    font-size: 20px;
  }

  body.wanxin-news-detail .detail-article__body p {
    margin-bottom: 18px;
  }

  body.wanxin-news-detail .detail-article__body ul,
  body.wanxin-news-detail .detail-article__body ol {
    margin: 18px 0;
    padding-left: 21px;
  }

  body.wanxin-news-detail .news-detail-toc {
    margin: 24px 0 30px;
    padding: 18px;
  }

  body.wanxin-news-detail .detail-share {
    margin-top: 38px;
    padding-top: 26px;
  }

  body.wanxin-news-detail .detail-share__btn {
    width: 44px;
    height: 44px;
  }

  body.wanxin-news-detail .related-news-heading h2 {
    font-size: 30px;
    line-height: 1.14;
  }

  body.wanxin-news-detail .related-news-grid {
    margin-top: 30px;
    gap: 18px;
  }

  body.wanxin-news-detail .detail-article__body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  body.wanxin-news-archive .news-card {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  body.wanxin-news-archive .news-card__image,
  body.wanxin-news-archive .news-card__image-file {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  body.wanxin-news-archive .news-card__body {
    padding: 20px;
  }

  body.wanxin-news-archive .news-card__title {
    font-size: 20px;
    line-height: 1.32;
  }

  body.wanxin-news-detail .related-news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.wanxin-news-detail .news-featured-body {
    min-height: 0;
    padding: 18px;
  }

  body.wanxin-news-detail .news-featured-img {
    aspect-ratio: 16 / 9;
  }

  body.wanxin-news-detail .news-featured-title {
    margin-bottom: 14px;
    font-size: 17px;
    line-height: 1.35;
  }

  body.wanxin-news-detail .detail-lead {
    font-size: 17px;
  }

  body.wanxin-news-detail .detail-article__body h2 {
    font-size: 25px;
  }

  body.wanxin-news-detail .news-detail-toc {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.wanxin-news-archive .news-card,
  body.wanxin-news-archive .news-card__image-file,
  body.wanxin-news-detail .news-featured,
  body.wanxin-news-detail .news-featured-img-main,
  body.wanxin-news-detail .detail-share__btn {
    transition: none;
  }
}
