:root {
  --zs-ndetail-theme: #317dc9;
  --zs-ndetail-text: #333333;
  --zs-ndetail-muted: #8b8b8b;
  --zs-ndetail-line: #ececec;
  --zs-ndetail-soft: #eef8fd;
}

.zs-body.zs-news-detail-body {
  --zs-header-offset: 8rem;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--zs-ndetail-text);
}

.zs-ndetail-main {
  background: #ffffff;
}

.zs-ndetail-breadcrumb {
  background: #f7f7f7;
  border-top: 1px solid var(--zs-ndetail-line);
}

.zs-ndetail-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0;
  padding: 1.18rem 0;
  list-style: none;
}

.zs-ndetail-breadcrumb__list li {
  color: #646b76;
  font-size: 1rem;
  line-height: 1.45;
}

.zs-ndetail-breadcrumb__list a {
  color: inherit;
  text-decoration: none;
}

.zs-ndetail-breadcrumb__sep {
  color: #8b9099;
}

.zs-ndetail-breadcrumb__list li:last-child {
  color: var(--zs-ndetail-theme);
}

.zs-ndetail-content {
  padding: 26px 0 48px;
}

.zs-ndetail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.zs-ndetail-sidebar__toggle {
  display: none;
}

.zs-ndetail-panel + .zs-ndetail-panel {
  margin-top: 24px;
}

.zs-ndetail-panel__heading {
  background: var(--zs-ndetail-theme);
}

.zs-ndetail-panel__heading h2 {
  margin: 0;
  padding: 14px 18px;
  color: #ffffff;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 700;
}

.zs-ndetail-category-list {
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
}

.zs-ndetail-category-list li {
  border-bottom: 1px solid var(--zs-ndetail-line);
}

.zs-ndetail-category-list a {
  display: block;
  padding: 14px 2px 14px 0;
  color: var(--zs-ndetail-text);
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.zs-ndetail-category-list a:hover,
.zs-ndetail-category-list a.is-active {
  color: var(--zs-ndetail-theme);
}

.zs-ndetail-featured {
  margin-top: 0.85rem;
}

.zs-ndetail-featured__arrow {
  position: relative;
  display: block;
  width: 100%;
  height: 1.75rem;
  margin: 0.2rem 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.zs-ndetail-featured__arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 1rem;
  border-right: 4px solid #d4d4d4;
  border-bottom: 4px solid #d4d4d4;
}

.zs-ndetail-featured__arrow--prev::before {
  transform: translate(-50%, -30%) rotate(-135deg);
}

.zs-ndetail-featured__arrow--next::before {
  transform: translate(-50%, -70%) rotate(45deg);
}

.zs-ndetail-featured__arrow.swiper-button-disabled {
  opacity: 0.45;
  cursor: default;
}

.zs-ndetail-featured__swiper {
  height: 35rem;
  overflow: hidden;
}

.zs-ndetail-featured .swiper-slide {
  height: auto !important;
}

.zs-ndetail-featured__item {
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  color: inherit;
  text-decoration: none;
}

.zs-ndetail-featured__thumb {
  display: block;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.zs-ndetail-featured__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.zs-ndetail-featured__title {
  color: #3f454d;
  font-size: 1rem;
  line-height: 1.22;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease;
}

.zs-ndetail-featured__item:hover .zs-ndetail-featured__title,
.zs-ndetail-featured__title:hover {
  color: var(--zs-ndetail-theme);
}

.zs-ndetail-primary {
  min-width: 0;
}

.zs-ndetail-article__title {
  margin: 0;
  color: #1d1d1d;
  font-size: 1.82rem;
  line-height: 1.3;
  font-weight: 700;
}

.zs-ndetail-article__meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.7rem;
  color: #aaaaaa;
  font-size: 0.98rem;
}

.zs-ndetail-article__meta svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.zs-ndetail-article__meta em {
  font-style: normal;
}

.zs-ndetail-article__content {
  margin-top: 1.9rem;
  font-size: 1rem;
  line-height: 2;
}

.zs-ndetail-article__content p {
  margin: 0 0 1.15rem;
}

.zs-ndetail-article__content table {
  width: 100%;
  margin: 1.4rem 0;
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid #d9e4ef;
  background: #ffffff;
}

.zs-ndetail-article__content thead {
  background: #f3f8fe;
}

.zs-ndetail-article__content th,
.zs-ndetail-article__content td {
  padding: 0.9rem 1rem;
  border: 1px solid #d9e4ef;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.zs-ndetail-article__content th {
  color: #1f3f68;
  font-size: 1rem;
  font-weight: 700;
}

.zs-ndetail-article__content td {
  color: var(--zs-ndetail-text);
}

.zs-ndetail-article__figure {
  margin: 1.5rem 0 1.35rem;
}

.zs-ndetail-article__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
}

.zs-ndetail-block {
  margin-top: 1.35rem;
}

.zs-ndetail-block__title {
  margin: 0 0 1.3rem;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  background: #e8f7fd;
  color: #00a2e9;
  font-size: 1.6rem;
  line-height: 1.35;
  font-weight: 700;
}

.zs-ndetail-article__list {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.zs-ndetail-article__list li + li {
  margin-top: 0.65rem;
}

.zs-ndetail-post-nav {
  margin-top: 2rem;
  padding: 0.95rem 0;
  border-top: 1px dashed #333333;
  border-bottom: 1px dashed #333333;
}

.zs-ndetail-post-nav__row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.zs-ndetail-post-nav__row + .zs-ndetail-post-nav__row {
  margin-top: 0.55rem;
}

.zs-ndetail-post-nav__row a {
  color: var(--zs-ndetail-theme);
  text-decoration: none;
}

.zs-ndetail-post-nav__row a:hover {
  text-decoration: underline;
}

.zs-ndetail-related {
  padding: 4rem 0 0;
}

.zs-ndetail-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.zs-ndetail-related__title {
  margin: 0;
  color: #202020;
  font-size: 2.2rem;
  line-height: 1.2;
  font-style: italic;
  font-weight: 700;
}

.zs-ndetail-related__controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.zs-ndetail-related__button {
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid #d8d8d8;
  background: #ffffff;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.zs-ndetail-related__button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid #4d4d4d;
  border-bottom: 2px solid #4d4d4d;
}

.zs-ndetail-related__button--prev::before {
  transform: translate(-35%, -50%) rotate(135deg);
}

.zs-ndetail-related__button--next::before {
  transform: translate(-65%, -50%) rotate(-45deg);
}

.zs-ndetail-related__button:hover {
  border-color: var(--zs-ndetail-theme);
  background: var(--zs-ndetail-theme);
}

.zs-ndetail-related__button:hover::before {
  border-color: #ffffff;
}

.zs-ndetail-related__button.swiper-button-disabled {
  opacity: 0.45;
}

.zs-ndetail-related__item {
  height: auto;
}

.zs-ndetail-related__inner {
  display: block;
  color: inherit;
  text-decoration: none;
}

.zs-ndetail-related__thumb {
  position: relative;
  overflow: hidden;
}

.zs-ndetail-related__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.zs-ndetail-related__arrow {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(49, 125, 201, 0.92);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.zs-ndetail-related__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: translate(-60%, -50%) rotate(-45deg);
}

.zs-ndetail-related__body {
  padding-top: 1rem;
}

.zs-ndetail-related__name {
  margin: 0;
  color: #222222;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 600;
}

.zs-ndetail-related__inner:hover .zs-ndetail-related__thumb img {
  transform: scale(1.06);
}

.zs-ndetail-related__inner:hover .zs-ndetail-related__arrow {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1199px) {
  .zs-ndetail-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
  }

  .zs-ndetail-featured__swiper {
    height: 31rem;
  }

  .zs-ndetail-related__title {
    font-size: 1.95rem;
  }
}

@media (max-width: 991px) {
  .zs-ndetail-layout {
    grid-template-columns: 1fr;
  }

  .zs-ndetail-sidebar__toggle {
    display: block;
    width: 100%;
    padding: 0.95rem 1rem;
    border: 0;
    background: var(--zs-ndetail-theme);
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 700;
    text-align: left;
  }

  .zs-ndetail-sidebar__panel {
    display: none;
    margin-top: 1rem;
  }

  .zs-ndetail-sidebar__panel.is-open {
    display: block;
  }

  .zs-ndetail-article__title {
    font-size: 1.6rem;
  }

  .zs-ndetail-block__title {
    font-size: 1.35rem;
  }

  .zs-ndetail-related {
    padding-top: 3rem;
  }
}

@media (max-width: 767px) {
  .zs-ndetail-content {
    padding: 22px 0 40px;
  }

  .zs-ndetail-panel__heading h2 {
    font-size: 20px;
  }

  .zs-ndetail-featured__swiper {
    height: 26rem;
  }

  .zs-ndetail-featured__item {
    grid-template-columns: 4.2rem minmax(0, 1fr);
    gap: 0.8rem;
  }

  .zs-ndetail-article__title {
    font-size: 1.38rem;
  }

  .zs-ndetail-article__content {
    margin-top: 1.4rem;
    font-size: 0.96rem;
    line-height: 1.9;
    overflow-x: auto;
  }

  .zs-ndetail-article__content table {
    min-width: 640px;
  }

  .zs-ndetail-post-nav__row {
    flex-direction: column;
    gap: 0.1rem;
  }

  .zs-ndetail-related__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .zs-ndetail-related__title {
    font-size: 1.7rem;
  }
}
