:root {
  --page-bg: #fbfbfb;
  --surface: #ffffff;
  --ink: #101010;
  --copy: #121010;
  --copy-soft: #333333;
  --muted: #999999;
  --side-title: #14363f;
  --line-dark: #14363f;
  --line-soft: #dddddd;
  --line-side: #d8d8d8;
  --red: #d7000f;
  --shell: 1640px;
  --main-col: 1084px;
  --side-col: 492px;
  --col-gap: 64px;
  --font-base: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  --font-num: "Outfit", "Microsoft YaHei", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--copy);
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

a:hover,
a:focus,
a:focus-visible,
a:active,
a:visited {
  text-decoration: none;
  outline: none;
  box-shadow: none;
}

.news-detail-page {
  background: var(--page-bg);
  padding: 127px 0 82px;
  overflow-x: hidden;
}

.news-detail-shell {
  width: min(var(--shell), calc(100vw - 280px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, var(--main-col)) var(--side-col);
  gap: var(--col-gap);
  align-items: start;
}

.news-detail-shell > *,
.article-main,
.article-header,
.article-meta,
.article-rule,
.article-copy,
.article-figure,
.article-neighbor,
.article-sidebar {
  min-width: 0;
  max-width: 100%;
}

.article-main {
  width: 100%;
}

.article-header h1 {
  width: 1047px;
  max-width: 100%;
  margin: -4px 0 0;
  color: var(--ink);
  font-size: 48px;
  font-weight: 700;
  line-height: 74px;
  letter-spacing: 0;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.article-rule {
  height: 2px;
  margin-top: 33px;
  background: var(--line-dark);
}

.article-copy {
  font-size: 16px;
  line-height: 36px;
  letter-spacing: 0;
}

.article-copy p,
.article-copy section{
/*   margin: 0 0 24px; */
}

.article-copy p:empty,
.article-copy section:empty{
  display: block;
  height: 1px;       
  visibility: hidden;
  margin: 0 0 24px;
}

.article-copy p:last-child {
  margin-bottom: 0;
}

.article-copy--opening {
  margin-top: 67px;
}

.article-copy .lead {
  margin-bottom: 42px;
}

.article-copy .lead strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.article-figure {
  margin: 0;
}

.article-figure img {
  width: 100%;
}

.article-figure--machine {
  margin-top: 64px;
}

.article-copy--opening p:not(.lead):not(:last-child) {
  margin-bottom: 36px;
}

.article-figure--machine img {
  height: 358px;
  object-fit: cover;
}

.article-copy--types {
  margin-top: 82px;
}

.article-copy h2 {
  margin: 0 0 41px;
  color: var(--red);
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
}

.article-copy h3 {
  margin: 0 0 34px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
}

.article-copy h3:not(:first-of-type) {
  margin-top: 42px;
}

.article-copy .recommend {
  margin-top: 38px;
  margin-bottom: 0;
}

.article-copy .recommend + h3 {
  margin-top: 2px;
}

.article-copy a {
  text-decoration: none;
}

.article-copy .recommend a {
  display: inline;
  margin-right: 31px;
  white-space: normal;
}

.article-figure--eco {
  margin-top: 87px;
}

.article-figure--eco img {
  height: 386px;
  object-fit: cover;
}

.article-copy--closing {
  margin-top: 78px;
}

.article-copy--closing h2 {
  margin-bottom: 50px;
}

.article-copy--closing p {
  margin-bottom: 34px;
}

.article-neighbor {
  margin-top: 88px;
  padding-top: 75px;
  border-top: 2px solid #60777d;
}

.article-neighbor a,
.article-neighbor__empty {
  display: flex;
  align-items: baseline;
  gap: 32px;
  min-height: 92px;
  color: var(--ink);
  font-size: 24px;
  line-height: 36px;
  text-decoration: none;
  transition: color 0.24s ease, transform 0.24s ease;
}

.article-neighbor span {
  width: 80px;
  flex: 0 0 80px;
  color: #dedede;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.24s ease;
}

.article-neighbor strong {
  display: inline-block;
  max-width: 772px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  text-decoration: none;
  transition: color 0.24s ease;
}

.article-neighbor__empty {
  color: var(--muted);
}

.article-neighbor__empty span,
.article-neighbor__empty strong {
  color: var(--muted);
}

.article-neighbor a:hover,
.article-neighbor a:focus-visible {
  color: var(--red);
  transform: translateX(6px);
}

.article-neighbor a:hover span,
.article-neighbor a:focus-visible span,
.article-neighbor a:hover strong,
.article-neighbor a:focus-visible strong {
  color: var(--red);
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 41px;
}

.side-card {
  width: 492px;
  background: var(--surface);
  border-radius: 8px;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.side-card:hover {
  box-shadow: 0 12px 30px rgba(20, 54, 63, 0.08);
  transform: translateY(-3px);
}

.side-card h2 {
  margin: 0;
  color: var(--side-title);
  font-size: 24px;
  font-weight: 700;
  line-height: 62px;
}

.side-card--categories {
  min-height: 340px;
  height: auto;
  padding: 24px 28px 0;
}

.side-card--categories h2 {
  margin-bottom: -3px;
}

.side-card--categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 77px;
  border-bottom: 1px solid var(--line-side);
  color: #666666;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.22s ease, padding-left 0.22s ease, border-color 0.22s ease;
}

.side-card--categories a:hover,
.side-card--categories a:focus-visible,
.side-card--categories a.is-active {
  color: var(--red);
  padding-left: 6px;
  border-color: rgba(215, 0, 15, 0.28);
}

.side-card--categories a:last-child {
  border-bottom: 0;
}

.side-card--categories em {
  font-family: var(--font-num);
  font-style: normal;
  font-weight: 400;
}

.side-card--related {
  height: auto;
  padding: 16px 29px 28px;
}

.side-card--related h2 {
  margin-bottom: 14px;
}

.related-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 106px;
  padding: 13px 0;
  border-bottom: 1px solid #eeeeee;
  text-decoration: none;
  transition: border-color 0.22s ease;
}

.related-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.related-item img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 6px;
  transition: filter 0.28s ease;
}

.related-item span {
  min-width: 0;
  max-width: 100%;
  color: #333333;
  font-size: 16px;
  line-height: 24px;
  word-break: break-word;
  transition: color 0.22s ease;
}

.related-item:hover,
.related-item:focus-visible {
  border-color: rgba(215, 0, 15, 0.24);
}

.related-item:hover img,
.related-item:focus-visible img {
  filter: saturate(1.08) contrast(1.04);
}

.related-item:hover span,
.related-item:focus-visible span {
  color: var(--red);
}

.side-card--share {
  margin-top: 3px;
  height: 157px;
  padding: 16px 28px 0;
}

.side-card--share h2 {
  line-height: 50px;
}

.share-list {
  display: flex;
  gap: 10px;
  margin-top: 17px;
}

.share-list a {
  width: 44px;
  height: 44px;
}

.share-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #101010;
  border-radius: 50%;
  color: #101010;
  text-decoration: none;
  transition: color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.share-list .iconfont {
  font-size: 23px;
  line-height: 1;
  transition: transform 0.24s ease;
}

.share-list a:hover,
.share-list a:focus-visible {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-3px);
}

.share-list a:hover .iconfont,
.share-list a:focus-visible .iconfont {
  transform: scale(1.04);
}

@media (max-width: 1500px) {
  .news-detail-page {
    padding-top: 80px;
  }

  .news-detail-shell {
    width: min(1180px, calc(100vw - 80px));
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
  }

  .side-card {
    width: 360px;
  }

  .article-header h1 {
    font-size: 42px;
    line-height: 1.42;
  }

  .article-copy,
  .article-copy h2,
  .article-copy h3,
  .article-neighbor a,
  .article-neighbor strong {
    font-size: 20px;
    line-height: 1.65;
  }

  .related-item {
    gap: 20px;
  }
}

@media (max-width: 1024px) {
  .news-detail-page {
    padding: 72px 0 70px;
  }

  .news-detail-shell {
    width: min(920px, calc(100vw - 48px));
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .article-main,
  .article-header h1,
  .article-copy,
  .article-figure,
  .article-neighbor,
  .article-sidebar,
  .side-card,
  .side-card--related {
    width: 100%;
    max-width: 100%;
  }

  .article-header h1 {
    font-size: 38px;
    line-height: 1.38;
    overflow-wrap: anywhere;
  }

  .article-copy {
    font-size: 19px;
    line-height: 1.72;
    overflow-wrap: anywhere;
  }

  .article-copy h2,
  .article-copy h3,
  .article-neighbor a,
  .article-neighbor strong {
    font-size: 19px;
    line-height: 1.68;
  }

  .article-copy--opening {
    margin-top: 54px;
  }

  .article-copy--types {
    margin-top: 62px;
  }

  .article-copy--closing {
    margin-top: 62px;
  }

  .article-figure--machine,
  .article-figure--eco {
    margin-top: 54px;
  }

  .article-neighbor {
    margin-top: 64px;
    padding-top: 48px;
  }

  .article-neighbor strong {
    min-width: 0;
    max-width: 100%;
  }

  .article-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    position: static;
  }

  .side-card {
    width: 100%;
  }

  .side-card--categories,
  .side-card--related,
  .side-card--share {
    height: auto;
  }

  .side-card--related {
    grid-column: 1 / -1;
    padding-bottom: 18px;
  }

  .related-item {
    min-height: 104px;
    padding: 12px 0;
  }

  .related-item:last-child {
    padding-bottom: 0;
  }

  .share-list {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .news-detail-shell {
    width: calc(100vw - 40px);
  }

  .article-header h1 {
    font-size: 34px;
  }

  .article-meta {
    margin-top: 32px;
  }

  .article-rule {
    margin-top: 26px;
  }

  .article-copy--opening,
  .article-copy--types,
  .article-copy--closing,
  .article-figure--machine,
  .article-figure--eco {
    margin-top: 46px;
  }

  .article-copy p,
  .article-copy .lead,
  .article-copy--opening p:not(.lead):not(:last-child),
  .article-copy--closing p {
    margin-bottom: 24px;
  }

  .article-copy h2 {
    margin-bottom: 28px;
  }

  .article-copy h3 {
    margin-bottom: 22px;
  }

  .article-copy h3:not(:first-of-type) {
    margin-top: 30px;
  }

  .article-neighbor {
    margin-top: 50px;
    padding-top: 36px;
  }

  .article-sidebar {
    gap: 20px;
  }

  .side-card--categories,
  .side-card--related,
  .side-card--share {
    padding-left: 20px;
    padding-right: 20px;
  }

  .side-card h2 {
    font-size: 22px;
    line-height: 54px;
  }

  .related-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    min-height: 98px;
  }

  .related-item img {
    width: 76px;
    height: 76px;
  }

  .related-item span {
    font-size: 15px;
    line-height: 22px;
  }
}

@media (max-width: 640px) {
  .news-detail-page {
    padding: 44px 0 64px;
  }

  .news-detail-shell {
    width: calc(100vw - 28px);
    gap: 28px;
  }

  .article-header h1 {
    font-size: 30px;
    line-height: 1.32;
  }

  .article-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .article-copy,
  .article-copy h2,
  .article-copy h3,
  .article-neighbor strong {
    font-size: 16px;
    line-height: 1.75;
  }

  .article-copy .recommend a {
    white-space: normal;
  }

  .article-figure--machine img,
  .article-figure--eco img {
    height: auto;
  }

  .article-neighbor a,
  .article-neighbor__empty {
    align-items: flex-start;
    gap: 12px;
  }

  .article-neighbor strong {
    flex: 1 1 auto;
    max-width: none;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .side-card--categories,
  .side-card--related,
  .side-card--share {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 480px) {
  .article-header h1 {
    font-size: 28px;
  }

  .related-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    min-height: 92px;
  }

  .related-item img {
    width: 72px;
    height: 72px;
  }

  .related-item span {
    font-size: 14px;
    line-height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-neighbor a,
  .article-neighbor span,
  .article-neighbor strong,
  .side-card,
  .side-card--categories a,
  .related-item,
  .related-item img,
  .related-item span,
  .share-list a,
  .share-list .iconfont {
    transition: none;
  }

  .article-neighbor a:hover,
  .article-neighbor a:focus-visible,
  .side-card:hover,
  .related-item:hover,
  .related-item:focus-visible,
  .related-item:hover img,
  .related-item:focus-visible img,
  .share-list a:hover,
  .share-list a:focus-visible,
  .share-list a:hover .iconfont,
  .share-list a:focus-visible .iconfont {
    transform: none;
  }
}
