:root {
  --content-width: 1200px;
  --green: #00b552;
  --dark-green: #274e13;
  --search-green: #38761d;
  --text: #555;
  --ghost: #f0f0f0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 14px;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--content-width), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  position: relative;
}

.site-header {
  position: relative;
  z-index: 10;
  height: 100px;
  background: #fff;
}

.header-inner {
  height: 100px;
}

.brand {
  position: absolute;
  left: 2px;
  top: 21px;
  width: 280px;
  height: 66px;
  display: block;
}

.brand img {
  display: block;
  width: 266px;
  height: 60px;
  object-fit: contain;
}

.main-nav {
  position: absolute;
  top: 31px;
  left: 349px;
  display: flex;
  align-items: center;
  gap: 50px;
  height: 38px;
  white-space: nowrap;
}

.main-nav a {
  display: block;
  height: 38px;
  color: var(--dark-green);
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: 14px;
  line-height: 38px;
  text-align: center;
  transition: color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--green);
}

.search-form {
  position: absolute;
  top: 34px;
  right: 0;
  width: 236px;
  height: 36px;
  display: flex;
  background: #fff;
}

.search-form input {
  width: 186px;
  height: 36px;
  border: 1px solid #ccc;
  border-right: 0;
  border-radius: 0;
  outline: none;
  padding: 0 13px;
  color: #555;
  background: #fff;
  font-size: 14px;
}

.search-form input::placeholder {
  color: #aaa;
}

.search-form input:focus {
  border-color: #a9c49b;
}

.search-form button {
  width: 50px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #fff;
  background: var(--search-green);
  cursor: pointer;
  transition: background 180ms ease;
}

.search-form button:hover,
.search-form button:focus-visible {
  background: var(--green);
}

.search-form button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.search-message {
  position: absolute;
  top: 42px;
  right: 0;
  width: 236px;
  min-height: 0;
  padding: 0 12px;
  color: #666;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  font-size: 13px;
  line-height: 34px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.search-message.is-visible {
  min-height: 34px;
  opacity: 1;
  transform: translateY(0);
}

.hero {
  position: relative;
  width: 100%;
  height: clamp(420px, 31.7647vw, 810px);
  overflow: hidden;
  background: #eee;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  z-index: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  cursor: pointer;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 1300ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-slide.is-active {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
}

.hero-slide.is-leaving {
  z-index: 3;
  opacity: 0;
  transform: scale(1.012);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  transform: translateX(-50%);
}

.hero-dot {
  width: 16px;
  height: 16px;
  margin: 0 5px;
  padding: 0;
  border: 1px solid #aaa;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.hero-dot.is-active {
  border-color: #333;
  background: #111;
}

.hero-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.products-section {
  position: relative;
  height: 829px;
  overflow: hidden;
  background: #f5f5f5;
}

.section-frame {
  position: relative;
}

.section-heading {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.heading-ghost,
.section-heading h2 {
  display: block;
  margin: 0;
  padding: 0;
  font-family: Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
  font-weight: 400;
  white-space: nowrap;
}

.heading-ghost {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  color: var(--ghost);
  font-size: 76px;
  font-weight: 700;
  line-height: 99px;
  text-align: center;
}

.section-heading h2 {
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  color: var(--text);
  font-size: 36px;
  line-height: 49px;
  text-align: center;
}

.heading-rule {
  position: absolute;
  top: 92px;
  left: 50%;
  width: 50px;
  height: 3px;
  background: var(--green);
  transform: translateX(-50%);
}

.products-heading {
  top: 91px;
  height: 110px;
}

.products-heading h2 {
  top: 40px;
  font-size: 36px;
}

.product-grid {
  position: absolute;
  top: 275px;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
  width: 100%;
}

.product-card {
  display: block;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
}

.product-image {
  display: block;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #eee;
}

.product-image img {
  display: block;
  width: 280px;
  height: 280px;
  max-width: none;
  object-fit: cover;
  transition: transform 260ms ease;
}

.product-card:hover .product-image img,
.product-card:focus-visible .product-image img {
  transform: scale(1.025);
}

.product-card h3 {
  height: 55px;
  margin: 1px 0 0;
  padding: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 55px;
}

.more-button {
  position: absolute;
  top: 685px;
  left: 50%;
  width: 200px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: #fff;
  background: var(--green);
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: 16px;
  line-height: 16px;
  transform: translateX(-50%);
  transition: background 180ms ease;
}

.more-button:hover,
.more-button:focus-visible {
  background: #08a54e;
}

.button-lines {
  width: 21px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.button-lines i {
  display: block;
  width: 21px;
  height: 2px;
  background: #fff;
}

.about-section {
  position: relative;
  height: 791px;
  overflow: hidden;
  background: #fff url("assets/about-bg.jpg") center top / cover no-repeat;
}

.about-heading {
  top: 140px;
  left: 0;
  right: auto;
  width: 437px;
  height: 100px;
  text-align: left;
}

.about-heading .heading-ghost,
.about-heading h2 {
  left: 0;
  right: auto;
  text-align: left;
}

.about-heading h2 {
  top: 36px;
  width: 231px;
  font-size: 36px;
  line-height: 54px;
}

.about-line {
  position: absolute;
  top: 181px;
  left: 423px;
  width: 382px;
  height: 4px;
  background: var(--green);
}

.about-image {
  position: absolute;
  top: 135px;
  right: 82px;
  width: 340px;
  height: 432px;
  display: block;
  object-fit: cover;
}

.about-copy {
  position: absolute;
  top: 292px;
  left: 0;
  width: 742px;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
}

.about-copy p {
  margin: 0;
  padding: 0;
}

.about-copy .about-intro {
  margin-top: 24px;
}

.about-more {
  top: 601px;
  left: 50px;
  transform: none;
}

.technical-section {
  position: relative;
  height: 770px;
  overflow: hidden;
  background: #fff;
}

.technical-panel {
  width: min(1920px, 100%);
  height: 770px;
  margin: 0 auto;
  background: #00b552 url("assets/technical-bg.jpg") center top / cover no-repeat;
}

.technical-heading {
  top: 124px;
  height: 135px;
}

.technical-heading .heading-ghost {
  color: #078241;
}

.technical-heading h2 {
  top: 46px;
  color: #fff;
  font-size: 36px;
  line-height: 48px;
}

.technical-heading .heading-rule {
  top: 124px;
}

.technical-grid {
  position: absolute;
  top: 318px;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, 277px);
  column-gap: 31px;
}

.technical-card {
  height: 287px;
  padding: 55px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  text-align: center;
}

.technical-card img {
  width: 67px;
  height: 67px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.technical-card h3 {
  width: 227px;
  margin: 20px 0 0;
  padding: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
}

.news-section {
  position: relative;
  height: 657px;
  overflow: hidden;
  background: #fff;
}

.news-heading {
  top: 91px;
  height: 110px;
}

.news-heading h2 {
  top: 49px;
  font-size: 36px;
  line-height: 47px;
}

.news-heading .heading-rule {
  top: 103px;
}

.news-grid {
  position: absolute;
  top: 274px;
  left: 0;
  width: 285px;
}

.news-card {
  display: block;
  width: 285px;
  color: var(--text);
}

.news-card img {
  display: block;
  width: 285px;
  height: 220px;
  object-fit: cover;
}

.news-card h3 {
  margin: 15px 0 24px;
  padding: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
}

.site-footer {
  color: var(--text);
}

.footer-main {
  height: 310px;
  background: #ededed;
}

.footer-grid {
  height: 310px;
}

.footer-contact,
.footer-column,
.footer-follow {
  position: absolute;
}

.footer-contact {
  top: 48px;
  left: 0;
  width: 515px;
}

.footer-logo {
  display: block;
  width: 265px;
  height: 60px;
  object-fit: contain;
}

.contact-list {
  margin-top: 24px;
  padding-left: 6px;
  font-size: 14px;
  line-height: 1.45;
}

.contact-list p {
  min-height: 24px;
  margin: 0 0 8px;
  display: flex;
  align-items: flex-start;
}

.contact-list svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 3px 15px 0 0;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-list p:first-child svg {
  fill: currentColor;
  stroke-width: 0;
}

.contact-list .address-line {
  width: 515px;
  margin-top: 1px;
}

.footer-column {
  top: 62px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-menu {
  left: 658px;
  width: 136px;
}

.footer-products {
  left: 835px;
  width: 173px;
}

.footer-column h3 {
  margin: 0 0 20px;
  color: #555;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.footer-column a {
  display: block;
  color: #666;
  font-size: 14px;
  line-height: 27px;
  white-space: nowrap;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--green);
}

.footer-follow {
  top: 44px;
  left: 1074px;
  width: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-follow img {
  width: 108px;
  height: 108px;
  display: block;
}

.footer-follow span {
  margin-top: 20px;
  color: #555;
  font-size: 16px;
  line-height: 24px;
}

.support-bar {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #555;
  background: #fff;
  font-size: 12px;
  line-height: 30px;
}

.support-bar a:hover,
.support-bar a:focus-visible {
  color: var(--green);
}

@media (max-width: 1100px) {
  :root {
    --content-width: 900px;
  }

  .main-nav {
    left: 270px;
    gap: 16px;
  }

  .search-form {
    width: 180px;
  }

  .search-form input {
    width: 130px;
  }

  .search-message {
    width: 180px;
  }

  .product-grid {
    gap: 16px;
  }

  .product-image,
  .product-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .about-image {
    right: 0;
  }

  .about-copy {
    width: calc(100% - 360px);
  }

  .about-line {
    left: 380px;
    width: 220px;
  }

  .technical-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 16px;
  }

  .technical-card h3 {
    width: 100%;
  }

  .footer-contact {
    width: 44%;
  }

  .footer-menu {
    left: 57%;
  }

  .footer-products {
    left: 73%;
  }

  .footer-follow {
    left: auto;
    right: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --content-width: 1200px;
  }

  body {
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 32px, 600px);
  }

  .site-header,
  .header-inner {
    height: 165px;
  }

  .brand {
    left: 50%;
    top: 12px;
    width: 240px;
    height: 52px;
    transform: translateX(-50%);
  }

  .brand img {
    width: 230px;
    height: 52px;
    margin: 0 auto;
  }

  .main-nav {
    top: 70px;
    left: 0;
    width: 100%;
    height: 30px;
    justify-content: center;
    gap: 17px;
    overflow-x: auto;
  }

  .main-nav a {
    height: 30px;
    font-size: 12px;
    line-height: 30px;
  }

  .search-form {
    top: 113px;
    left: 50%;
    right: auto;
    width: min(300px, 100%);
    transform: translateX(-50%);
  }

  .search-form input {
    width: calc(100% - 50px);
  }

  .search-message {
    width: 100%;
  }

  .hero {
    height: 310px;
  }

  .hero-slide {
    background-position: center center;
  }

  .products-section,
  .about-section,
  .technical-section,
  .news-section {
    height: auto;
    overflow: visible;
  }

  .products-section {
    padding: 82px 0 90px;
  }

  .section-frame {
    height: auto;
  }

  .section-heading,
  .products-heading,
  .about-heading,
  .technical-heading,
  .news-heading {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    height: 126px;
  }

  .heading-ghost {
    top: 0;
    font-size: 44px;
    line-height: 56px;
  }

  .section-heading h2,
  .products-heading h2,
  .about-heading h2,
  .technical-heading h2,
  .news-heading h2 {
    top: 32px;
    left: 0;
    width: 100%;
    font-size: 28px;
    line-height: 42px;
    text-align: center;
  }

  .heading-rule,
  .technical-heading .heading-rule,
  .news-heading .heading-rule {
    top: 91px;
  }

  .product-grid {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }

  .product-image {
    height: auto;
    aspect-ratio: 1;
  }

  .product-image img {
    width: 100%;
    height: 100%;
  }

  .product-card h3 {
    height: 42px;
    line-height: 42px;
  }

  .products-section .more-button {
    position: relative;
    top: auto;
    left: auto;
    margin: 42px auto 0;
    transform: none;
  }

  .about-section {
    padding: 82px 0 90px;
    background-size: auto 100%;
  }

  .about-heading .heading-ghost,
  .about-heading h2 {
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
  }

  .about-line {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 3px;
    display: block;
    margin: -5px 0 45px;
  }

  .about-image {
    position: relative;
    top: auto;
    right: auto;
    width: min(340px, 100%);
    height: auto;
    aspect-ratio: 340 / 432;
    margin: 0 auto;
    order: 3;
  }

  .about-copy {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin-bottom: 30px;
    order: 2;
  }

  .about-copy .about-intro {
    margin-top: 24px;
  }

  .about-section .section-frame {
    display: flex;
    flex-direction: column;
  }

  .about-heading {
    order: 1;
  }

  .about-more {
    position: relative;
    top: auto;
    left: auto;
    order: 4;
    margin: 35px auto 0;
  }

  .technical-section {
    padding: 0;
  }

  .technical-panel {
    width: 100%;
    height: auto;
    padding: 82px 0 90px;
    background-size: auto 100%;
  }

  .technical-grid {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .technical-card {
    height: 265px;
    padding: 44px 15px;
  }

  .technical-card h3 {
    width: 100%;
    margin-top: 16px;
    font-size: 13px;
    line-height: 26px;
  }

  .news-section {
    padding: 82px 0 80px;
  }

  .news-grid {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
  }

  .news-card,
  .news-card img {
    width: 100%;
  }

  .news-card img {
    height: auto;
    aspect-ratio: 570 / 440;
  }

  .footer-main,
  .footer-grid {
    height: auto;
  }

  .footer-main {
    padding: 48px 0 52px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 24px;
  }

  .footer-contact,
  .footer-column,
  .footer-follow {
    position: static;
    width: auto;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .contact-list .address-line {
    width: 100%;
  }

  .footer-follow {
    align-items: flex-start;
  }

  .footer-follow img {
    width: 108px;
    height: 108px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
