:root {
  --material-bg: #f5f9fc;
  --material-paper: #fff;
  --material-blue: #1b4a72;
  --material-blue-mid: #4a89b8;
  --material-blue-soft: #eff5f9;
  --material-line: #c9ddeb;
  --material-ink: #183f5f;
  --material-text: #315f82;
  --material-red: #e50012;
  --material-shadow: 0 0 24px rgba(27, 74, 114, .1);
  --material-font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--material-text);
  background: var(--material-bg);
  font-family: var(--material-font);
}

button,
figure,
h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.material-topics-page {
  min-height: 100vh;
  overflow: hidden;
  background: var(--material-bg);
}

.material-shell {
  width: min(1151px, calc(100% - 12vw));
  margin-right: auto;
  margin-left: auto;
  padding: 48px 0 80px;
}

.material-breadcrumb {
  display: flex;
  min-height: 24px;
  align-items: center;
  gap: 12px;
  padding-left: 22px;
  color: #252f36;
  font-size: 14px;
  line-height: 24px;
}

.material-breadcrumb a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.material-board-list {
  display: grid;
  gap: 24px;
  margin-top: 0;
}

.material-board {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--material-paper);
  box-shadow: var(--material-shadow);
}

.board-yasha {
  min-height: 1819px;
}

.board-shengxiang {
  min-height: 831px;
}

.board-yuhong {
  min-height: 1998px;
}

.board-suns {
  min-height: 1261px;
}

.material-board h2,
.material-board h3,
.material-board h4 {
  color: var(--material-blue);
  font-weight: 500;
}

.yasha-banner {
  height: 220px;
  overflow: hidden;
  background: #245ca8;
}

.yasha-brand {
  width: 100%;
  height: 60px;
  object-fit: fill;
  background: #fff;
}

.yasha-hero {
  display: grid;
  height: 160px;
  grid-template-columns: 47% 53%;
  overflow: hidden;
  color: #fff;
  background: #245ca8;
}

.yasha-hero-copy {
  padding: 14px 22px 12px 84px;
}

.yasha-hero-copy h2 {
  color: #fff;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.28;
}

.yasha-hero-copy p {
  max-width: 430px;
  margin-top: 10px;
  color: rgba(255, 255, 255, .96);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.yasha-hero > img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
}

.yasha-content {
  padding: 23px 24px 24px;
}

.copy-section + .copy-section {
  margin-top: 24px;
}

.copy-section > h3 {
  font-size: 24px;
  line-height: 32px;
}

.copy-section > p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 24px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.service-card {
  min-width: 0;
  height: 200px;
  padding: 16px;
  border-radius: 16px;
  background: #eff5f9;
}

.service-card svg {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 4px;
  color: #fff;
  background: var(--material-blue-mid);
  stroke-width: 1.7;
}

.service-card h4 {
  margin-top: 12px;
  font-size: 24px;
  line-height: 32px;
  white-space: nowrap;
}

.service-card p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 24px;
}

.scene-grid {
  display: grid;
  height: 171px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 15px -2px 0;
  overflow: hidden;
}

.scene-grid figure {
  display: flex;
  min-width: 0;
  height: 171px;
  flex-direction: column;
  overflow: hidden;
}

.scene-grid img {
  width: 100%;
  height: calc(100% - 34px);
  object-fit: cover;
}

.scene-grid figcaption {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  color: #fff;
  background: #050505;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.scene-grid figcaption span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scene-grid figcaption span:first-child {
  flex: 1 1 auto;
}

.scene-grid figcaption span:last-child {
  flex: 0 1 45%;
  text-align: right;
}

.product-section > p {
  max-width: 100%;
}

.yasha-product-panel {
  position: relative;
  min-height: 786px;
  margin-top: 18px;
  padding: 22px 44px 68px;
  border: 1px solid var(--material-line);
  border-radius: 16px;
}

.yasha-products-composite {
  width: 788px;
  height: 712px;
  margin: -8px auto 0;
  object-fit: fill;
}

.enlarge-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  color: #528cbb;
  background: transparent;
  font-size: 14px;
  line-height: 24px;
  cursor: pointer;
}

.enlarge-button svg {
  width: 18px;
  height: 18px;
}

.yasha-product-panel > .enlarge-button,
.yuhong-products > .enlarge-button {
  position: absolute;
  right: 23px;
  bottom: 12px;
}

.yasha-product-panel::after,
.yuhong-products::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 48px;
  background: #eff5f9;
  content: "";
}

.yasha-product-panel > .enlarge-button,
.yuhong-products > .enlarge-button {
  z-index: 1;
}

.simple-brand-header {
  padding: 24px 24px 0;
}

.simple-brand-header img {
  width: 99px;
  height: 53px;
  object-fit: contain;
}

.simple-brand-header h2 {
  margin-top: 24px;
  font-size: 24px;
  line-height: 32px;
}

.shengxiang-showcase {
  height: 580px;
  margin: 16px 24px 0;
  overflow: hidden;
  border: 1px solid var(--material-line);
  border-radius: 16px 16px 0 0;
  background: #fff;
}

.shengxiang-showcase > img {
  width: 100%;
  height: 580px;
  object-fit: fill;
}

.board-enlarge-bar {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 23px;
  background: #eff5f9;
}

.yuhong-header {
  padding: 24px 24px 0;
}

.yuhong-header img {
  width: 64px;
  height: 61px;
  object-fit: contain;
}

.yuhong-summary {
  margin: 24px;
  padding: 24px;
  border-radius: 16px;
  background: #eff5f9;
}

.yuhong-summary h2,
.green-factory h3 {
  font-size: 24px;
  line-height: 32px;
}

.yuhong-summary p,
.green-factory p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 24px;
}

.yuhong-slogan {
  padding: 0 24px;
  color: #222 !important;
  font-size: 30px;
  line-height: 45px;
  text-align: center;
}

.certification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 24px;
}

.certification-grid h3 {
  font-size: 24px;
  line-height: 32px;
}

.certification-grid figcaption p {
  min-height: 60px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 24px;
}

.certification-grid img {
  width: 100%;
  height: 286px;
  margin-top: 14px;
  border: 1px solid #d8d8d8;
  object-fit: cover;
}

.green-factory {
  margin: 0 24px;
  padding: 20px 24px;
  border-radius: 16px;
  background: #eff5f9;
}

.yuhong-products {
  position: relative;
  padding: 24px 24px 72px;
}

.yuhong-products > header {
  text-align: center;
}

.yuhong-products > header h2 {
  color: #222;
  font-size: 30px;
  line-height: 45px;
}

.yuhong-products > header p {
  margin-top: 8px;
  color: #333;
  font-size: 14px;
  line-height: 20px;
}

.yuhong-product-panel {
  margin-top: 24px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--material-line);
  border-radius: 16px 16px 0 0;
}

.yuhong-products-composite {
  width: 100%;
  height: 870px;
  object-fit: fill;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.suns-header {
  padding: 24px 24px 0;
  text-align: center;
}

.suns-header img {
  width: 267px;
  height: 45px;
  object-fit: contain;
}

.suns-header h2 {
  margin-top: 26px;
  color: #222;
  font-size: 30px;
  line-height: 45px;
}

.suns-header h3 {
  margin-top: 5px;
  font-size: 24px;
  line-height: 32px;
}

.suns-advantages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
  padding: 18px 24px 24px;
}

.suns-advantages div {
  min-height: 124px;
  padding: 16px;
  border-radius: 16px;
  background: #eff5f9;
}

.suns-advantages h4 {
  font-size: 24px;
  line-height: 32px;
}

.suns-advantages p {
  margin-top: 7px;
  font-size: 14px;
  line-height: 24px;
}

.suns-system {
  display: block;
  height: auto;
  margin: 0 24px;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid var(--material-line);
  border-radius: 16px 16px 0 0;
}

.suns-system figure {
  min-width: 0;
  overflow: hidden;
}

.suns-system figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 180;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #9fc7df;
  border-radius: 50%;
  color: #4e8db9;
  background: #fff;
  box-shadow: 0 6px 18px rgba(27, 74, 114, .16);
  cursor: pointer;
}

.back-to-top svg {
  width: 19px;
  height: 19px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #f3b642;
  outline-offset: 3px;
}

@media (max-width: 1500px) {
  .material-shell {
    width: min(1151px, calc(100% - 12vw));
  }

  .yasha-hero-copy {
    padding-left: 48px;
  }

  .service-grid {
    gap: 14px;
  }

  .service-card {
    padding: 14px 12px;
  }

  .service-card h4 {
    font-size: clamp(17px, 1.7vw, 24px);
  }
}

@media (max-width: 900px) {
  .board-yasha,
  .board-shengxiang,
  .board-yuhong,
  .board-suns {
    min-height: 0;
  }

  .material-shell {
    padding-top: 28px;
  }

  .yasha-banner {
    height: auto;
  }

  .yasha-brand {
    height: auto;
  }

  .yasha-hero {
    height: auto;
    grid-template-columns: 1fr;
  }

  .yasha-hero-copy {
    padding: 24px;
  }

  .yasha-hero > img {
    height: auto;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    height: auto;
    min-height: 184px;
  }

  .scene-grid {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scene-grid figure {
    height: auto;
    aspect-ratio: 1.58;
  }

  .scene-grid img {
    min-height: 0;
  }

  .yasha-product-panel {
    min-height: 0;
    padding-inline: 24px;
  }

  .yasha-products-composite,
  .yuhong-products-composite {
    width: 100%;
    height: auto;
    margin: 0;
  }

  .shengxiang-showcase {
    height: auto;
    grid-template-columns: 1fr;
  }

  .shengxiang-showcase > img {
    height: auto;
  }

  .certification-grid {
    grid-template-columns: 1fr;
  }

  .suns-advantages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .suns-system {
    height: auto;
  }

  .suns-system figure img {
    height: auto;
  }
}

@media (max-width: 720px) {
  .material-shell {
    width: min(100% - 28px, 640px);
    margin: 0 auto;
    padding-bottom: 80px;
  }

  .material-breadcrumb {
    padding-left: 8px;
  }
}

@media (max-width: 560px) {
  .yasha-content,
  .simple-brand-header,
  .yuhong-header,
  .suns-header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .copy-section > h3,
  .simple-brand-header h2,
  .certification-grid h3,
  .green-factory h3,
  .suns-advantages h4 {
    font-size: 20px;
    line-height: 28px;
  }

  .service-grid,
  .scene-grid,
  .suns-advantages {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 168px;
  }

  .yasha-product-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .shengxiang-showcase,
  .yuhong-summary,
  .green-factory,
  .suns-system {
    margin-right: 16px;
    margin-left: 16px;
  }

  .yuhong-slogan,
  .yuhong-products > header h2,
  .suns-header h2 {
    font-size: 23px;
    line-height: 34px;
  }

  .certification-grid,
  .yuhong-products,
  .suns-advantages {
    padding-right: 16px;
    padding-left: 16px;
  }

  .certification-grid img {
    height: auto;
  }

  .yuhong-product-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .suns-system {
    padding: 16px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
