/* Shared inner-page hero + CTA reused by news/products */
.page-hero {
  position: relative;
  height: 600px;
  background: #f3f3f3;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero__bg img {
  position: absolute;
  right: -5%;
  top: 0;
  width: 70%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 32px;
}

.page-hero__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 60px;
  letter-spacing: -1.2px;
  color: #1a1c1c;
  text-transform: uppercase;
}

.page-hero__title span {
  display: block;
  color: #fcc800;
}

.page-cta {
  background: #ffc411;
  padding: 48px 0;
}

.page-cta__inner {
  max-width: 1522px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-cta__label {
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  color: #1a1a1a;
  opacity: 0.9;
}

.page-cta__num {
  font-size: 60px;
  font-weight: 900;
  line-height: 60px;
  letter-spacing: -1.5px;
  color: #1a1a1a;
  margin-top: 4px;
}

.page-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  background: #1a1a1a;
  color: #fcc800;
  font-size: 32px;
  font-weight: 700;
  line-height: 28px;
  border-radius: 2px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: opacity 0.25s, transform 0.25s;
}

.page-cta__btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* News list */
.news-main {
  background: #fff;
  padding: 48px 0 80px;
}

.news-wrap {
  max-width: 1241px;
  margin: 0 auto;
  padding: 0 32px;
}

.news-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 48px;
}

.news-tabs__btn {
  padding: 12px 32px;
  font-size: 14px;
  line-height: 16px;
  color: #666;
  background: #fff;
  border: 1px solid #e5e5e5;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.news-tabs__btn.is-active {
  background: #fcc800;
  border-color: #fcc800;
  color: #1a1a1a;
  font-weight: 500;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-row {
  display: grid;
  grid-template-columns: 153px 1fr 320px;
  gap: 0;
  align-items: flex-start;
  padding: 64px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s;
}

.news-row:first-child {
  border-top: 1px solid #eee;
}

.news-row:hover {
  background: #fafafa;
}

.news-row__date {
  border-right: 1px solid #e5e5e5;
  padding: 0 16px;
  text-align: center;
}

.news-row__day {
  display: block;
  font-size: 48px;
  font-weight: 700;
  line-height: 48px;
  color: #1a1a1a;
}

.news-row__month {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 16px;
  color: #999;
}

.news-row__body {
  padding: 0 32px;
}

.news-row__title {
  font-size: 32px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: -0.32px;
  color: #1a1c1c;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.news-row:hover .news-row__title {
  color: #e31d1a;
}

.news-row__excerpt {
  font-size: 16px;
  line-height: 24px;
  color: #5e5e5e;
  opacity: 0.8;
}

.news-row__thumb {
  width: 320px;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-row:hover .news-row__thumb img {
  transform: scale(1.05);
}

.news-panel[hidden] {
  display: none;
}

.news-empty {
  padding: 72px 24px;
  text-align: center;
  color: #999;
  font-size: 16px;
  line-height: 24px;
  border-top: 1px solid #eee;
}

.news-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.news-pager__pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-pager__btn,
.news-pager__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #1a1c1c;
  font-size: 14px;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.news-pager__btn:hover,
.news-pager__num:hover {
  border-color: #fcc800;
  color: #1a1c1c;
}

.news-pager__num.is-active {
  background: #fcc800;
  border-color: #fcc800;
  font-weight: 600;
}

.news-pager__btn.is-disabled,
.news-pager__num.is-disabled {
  color: #bbb;
  border-color: #eee;
  cursor: default;
  pointer-events: none;
}

.news-tabs__btn {
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* News detail — align Figma node 71:417 */
.detail-main {
  background: #fff;
  padding: 40px 0 96px;
}

.detail-wrap {
  max-width: 1416px;
  margin: 0 auto;
  padding: 0 32px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  line-height: 21px;
  color: #999;
  margin-bottom: 32px;
}

.breadcrumb a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #e31d1a;
}

.breadcrumb__sep {
  width: 5px;
  height: 8px;
  opacity: 0.45;
}

.detail-header {
  margin-bottom: 32px;
}

.detail-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #1a1c1c;
  margin: 0 0 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.02em;
  color: #8a8a8a;
  padding-bottom: 28px;
  border-bottom: 1px solid #eee;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  overflow: hidden;
  margin: 0 0 32px;
  /* background: #f5f5f5; */
}

/* 正文内误用 detail-cover 时勿裁剪（该 class 仅用于独立封面图块） */
.detail-body .detail-cover {
  aspect-ratio: auto;
  max-height: none;
  overflow: visible;
  margin: 0 0 22px;
}

.detail-body .detail-cover img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.detail-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-body {
  font-size: 16px;
  line-height: 1.85;
  color: #474746;
  margin-top: 32px;
}

.detail-body > .detail-cover:first-child {
  margin-top: 0;
}

.detail-body img {
  max-width: 100%;
  height: auto;
}

/* 富文本编辑器：居中/浮动图片（全局 img{display:block} 会抵消 text-align:center） */
.detail-body [style*="text-align: center"] img,
.detail-body [style*="text-align:center"] img {
  margin-left: auto;
  margin-right: auto;
}

.detail-body img.note-float-left {
  float: left;
  margin: 0 1.25em 1em 0;
}

.detail-body img.note-float-right {
  float: right;
  margin: 0 0 1em 1.25em;
}

.detail-body [style*="text-align: right"] img,
.detail-body [style*="text-align:right"] img {
  margin-left: auto;
  margin-right: 0;
}

.detail-body [style*="text-align: left"] img,
.detail-body [style*="text-align:left"] img {
  margin-left: 0;
  margin-right: auto;
}

.detail-body > p:first-child > img:only-child {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  margin: 0 0 28px;
}

.detail-body > p:first-child[style*="text-align: center"] > img:only-child,
.detail-body > p:first-child[style*="text-align:center"] > img:only-child {
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}

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

.detail-body p:last-child {
  margin-bottom: 0;
}

.detail-body ul {
  margin: 8px 0 28px;
  padding-left: 0;
  list-style: none;
}

.detail-body li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.detail-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fcc800;
}

.detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.detail-nav__item {
  max-width: 46%;
  flex: 1;
  min-width: 0;
}

.detail-nav__item--next {
  text-align: right;
}

.detail-nav__label {
  display: block;
  font-size: 13px;
  line-height: 18px;
  color: #999;
  margin-bottom: 10px;
}

.detail-nav__link {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}

.detail-nav__link:hover {
  color: #e31d1a;
}

.detail-nav__link.is-disabled {
  color: #bbb;
  cursor: default;
}

@media (max-width: 1100px) {
  .news-row {
    grid-template-columns: 100px 1fr 240px;
  }

  .news-row__thumb {
    width: 240px;
    height: 135px;
  }

  .news-row__title {
    font-size: 22px;
    line-height: 32px;
  }

  .detail-title {
    font-size: 32px;
    line-height: 1.35;
  }

  .detail-wrap > .detail-cover {
    max-height: 320px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    height: auto;
    min-height: 320px;
    padding: 80px 0;
  }

  .page-hero__title {
    font-size: 40px;
    line-height: 48px;
  }

  .page-hero__bg img {
    width: 100%;
    opacity: 0.25;
  }

  .page-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
  }

  .page-cta__num {
    font-size: 36px;
    line-height: 40px;
  }

  .page-cta__btn {
    width: 100%;
    font-size: 20px;
  }

  .news-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }

  .news-row__date {
    border-right: none;
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 0;
    text-align: left;
  }

  .news-row__day {
    font-size: 32px;
    line-height: 32px;
  }

  .news-row__body {
    padding: 0;
  }

  .news-row__thumb {
    width: 100%;
    height: 200px;
  }

  .detail-wrap {
    padding: 0 20px;
  }

  .detail-title {
    font-size: 28px;
    line-height: 1.35;
  }

  .detail-header {
    margin-bottom: 24px;
  }

  .detail-meta {
    gap: 8px 16px;
    padding-bottom: 20px;
  }

  .detail-body {
    margin-top: 24px;
    font-size: 15px;
  }

  .detail-wrap > .detail-cover {
    max-height: 240px;
  }

  .detail-nav {
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
    padding-top: 28px;
  }

  .detail-nav__item,
  .detail-nav__item--next {
    max-width: 100%;
    text-align: left;
  }

  .news-pager {
    flex-wrap: wrap;
  }
}
