.section-layout {
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 24px;
}

.section-sticky {
  position: sticky;
  top: 100px;
}

.news-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.news-header img {
  border-radius: 16px;
}

.news-body {
  display: flex;
  gap: 24px;
}
.news-body .news-body-column:nth-child(2) {
  width: 296px;
}
.news-body .news-body-column:nth-child(1) {
  width: calc(100% - 296px - 24px);
  display: flex;
  gap: 24px;
}
.news-body .news-body-column:nth-child(1) .body-menu {
  width: 296px;
  transition: 0.15s ease-in-out;
}
.news-body .news-body-column:nth-child(1) .body-content {
  width: calc(100% - 296px - 24px);
  transition: 0.15s ease-in-out;
}
.news-body #news-toc {
  transition: 0.15s ease-in-out;
}
.news-body .title-menu {
  white-space: nowrap;
  transition: 0.15s ease-in-out;
}
.news-body.active .news-body-column:nth-child(1) .body-menu {
  width: 40px;
}
.news-body.active .news-body-column:nth-child(1) .body-menu #news-toc, .news-body.active .news-body-column:nth-child(1) .body-menu .title-menu {
  opacity: 0;
  visibility: hidden;
}
.news-body.active .news-body-column:nth-child(1) .body-content {
  width: calc(100% - 40px - 24px);
}

.news-content * {
  max-width: 100% !important;
  white-space: normal !important;
  font-family: inherit !important;
}
.news-content img {
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
}
.news-content p:last-child {
  margin-bottom: 0;
}

#news-toc {
  width: 296px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#news-toc a {
  padding: 16px 26px;
  font-size: 16px;
  color: #6B7280;
  font-weight: 500;
  display: block;
  border-left: 2px solid transparent;
  transition: 0.15s ease-in-out;
}
#news-toc a:hover, #news-toc a.active {
  color: #2D52A0;
  border-color: #2D52A0;
}

.news-menu-title {
  display: flex;
  align-items: center;
}

.news-menu {
  position: absolute;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.news-menu svg {
  transition: 0.15s ease-in-out;
}
.news-menu svg:nth-child(2) {
  position: absolute;
  opacity: 0;
  visibility: hidden;
}
.news-menu.active svg:nth-child(1) {
  opacity: 0;
  visibility: hidden;
}
.news-menu.active svg:nth-child(2) {
  opacity: 1;
  visibility: visible;
}

.product-item-layout {
  display: grid !important;
  grid-template-columns: 1fr 2fr;
}
.product-item-layout .product-image .installment {
  display: none;
}
.product-item-layout .product-image img {
  width: auto;
  height: auto;
}
.product-item-layout .product-info {
  padding: 12px 12px 12px 0;
}
.product-item-layout .product-name {
  line-height: normal;
  height: auto;
}
.product-item-layout .product-attribute {
  display: none;
}
.product-item-layout .product-version {
  display: none;
}

@media (max-width: 1024px) {
  .section-sticky {
    position: unset;
  }
  .section-layout {
    padding: 16px 10px;
  }
  .news-header {
    grid-template-columns: 1fr;
  }
  .news-body {
    flex-wrap: wrap;
    gap: 0;
  }
  .news-body-column {
    width: 100% !important;
    display: block !important;
  }
  .body-content {
    width: 100% !important;
  }
  .news-menu {
    visibility: visible;
  }
  .news-body .body-menu {
    z-index: 1;
    position: fixed;
    top: 20%;
    border-radius: 16px;
    transition: unset !important;
  }
  .news-body:not(.active) .body-menu {
    visibility: visible;
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.3) !important;
    background: #fff;
    padding: 16px;
    box-shadow: none;
  }
  .news-body.active .body-menu {
    visibility: hidden;
    padding: 0 !important;
  }
  .news-menu-title {
    margin-bottom: 10px !important;
  }
  #news-toc {
    width: auto;
    max-height: 300px;
    overflow-y: auto;
  }
  #news-toc a {
    padding: 4px 0;
  }
}
