* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #222;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #fff;
}

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

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

input,
textarea,
button {
  font: inherit;
}

button {
  cursor: pointer;
}

.section {
  position: relative;
}

.section-title h2 {
  margin: 0;
  color: #111;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 400;
}

.section-title h2 span {
  color: #d91f1f;
  font-weight: 700;
}

.section-title strong {
  display: block;
  margin-top: 16px;
  color: #444;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
}

.section-title--light h2,
.section-title--light strong {
  color: #fff;
}

.section-title--light h2 span {
  color: #e21e1e;
}

.more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  height: 44px;
  padding: 0 28px;
  border-radius: 22px;
  background: #df1f1f;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.more-btn:hover {
  transform: translateY(-2px);
  background: #c91717;
  box-shadow: 0 10px 22px rgba(217, 31, 31, .26);
}

.more-btn--light {
  background: #fff;
  color: #d91f1f;
}

.more-btn--light:hover {
  background: #fff;
  color: #c91717;
}

.hero {
  position: relative;
  height: clamp(520px, 39.0625vw, 750px);
  overflow: hidden;
}

.hero-slider,
.hero-slide {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .78);
  transition: background .25s ease, transform .25s ease;
}

.hero-dots button.active {
  background: #d91f1f;
  transform: scale(1.15);
}

.business {
  min-height: 970px;
  background: url("https://static.hengxianghongye.com/pc/newimgs/业务中心背景.png") center top / cover no-repeat;
}

.business__title {
  padding-top: 110px;
}

.business-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4.8fr);
  grid-template-rows: 300px 300px;
  gap: 36px 30px;
  width: 100%;
  margin-top: 44px;
}

.business-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f4f4f4;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

.business-card::after {
  position: absolute;
  inset: 0;
  background: rgba(218, 18, 18, .92);
  opacity: 0;
  transition: opacity .3s ease;
  content: "";
}

.business-card--tall {
  grid-row: span 2;
}

.business-card__img,
.business-card__img img {
  width: 100%;
  height: 100%;
}

.business-card__img img {
  object-fit: cover;
  transition: transform .5s ease;
}

.business-card:hover .business-card__img img {
  transform: scale(1.055);
}

.business-card__text {
  position: absolute;
  z-index: 2;
  top: 44px;
  left: 54px;
  width: min(390px, calc(100% - 90px));
  color: #fff;
}

.business-card--tall .business-card__text {
  top: 62px;
  left: 54px;
  width: min(340px, calc(100% - 80px));
}

.business-card__text h3 {
  margin: 0 0 22px;
  color: #e02020;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 700;
  transition: color .3s ease;
}

.business-card__text p {
  margin: 0 0 48px;
  font-size: 19px;
  line-height: 1.55;
  font-weight: 700;
  transition: color .3s ease;
}

.business-card__icon {
  position: absolute;
  z-index: 2;
  right: 60px;
  top: 78px;
  width: 68px;
  height: 60px;
  opacity: 0;
  transition: opacity .3s ease;
}

.business-card:hover::after {
  opacity: 1;
}

.business-card:hover .business-card__text h3,
.business-card:hover .business-card__text p {
  color: #fff;
}

.business-card:hover .more-btn {
  background: #fff;
  color: #d91f1f;
  box-shadow: none;
}

.business-card:hover .more-btn:hover {
  background: #fff;
  color: #c91717;
}

.business-card:hover .business-card__icon {
  opacity: 1;
}

.advantage {
  min-height: 860px;
  padding-top: 112px;
  background: url("https://static.hengxianghongye.com/pc/newimgs/技术优势背景.png") center top / cover no-repeat;
}

.tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 54px;
  border-top: 2px solid #cfcfcf;
}

.advantage-tab {
  position: relative;
  padding: 24px 8px 0;
  border: 0;
  background: transparent;
  color: #111;
  text-align: center;
  font-size: 22px;
  line-height: 1.2;
  transition: color .25s ease;
}

.advantage-tab.active {
  color: #d91f1f;
}

.advantage-tab.active::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 100%;
  height: 5px;
  background: #d91f1f;
  content: "";
}

.advantage-panel {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 520px);
  align-items: stretch;
  width: min(1120px, 100%);
  min-height: 340px;
  margin-top: 78px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 57, 105, .08);
  transition: opacity .22s ease, transform .22s ease;
}

.advantage-panel.is-changing {
  opacity: .18;
  transform: translateY(10px);
}

.advantage-panel__photo-wrap {
  height: 100%;
  overflow: hidden;
}

.advantage-panel__photo {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.advantage-panel__content {
  position: relative;
  min-height: 340px;
  padding: 50px 66px 42px 78px;
  background: #fff;
}

.advantage-panel__icon {
  width: 81px;
  height: 80px;
  margin-bottom: 24px;
}

.advantage-panel__content em {
  position: absolute;
  top: 48px;
  right: 50px;
  color: #f2f2f2;
  font-size: 66px;
  font-style: normal;
  font-weight: 700;
}

.advantage-panel__content h3 {
  margin: 0 0 18px;
  color: #111;
  font-size: 25px;
  line-height: 1.2;
}

.advantage-panel__content p {
  margin: 0 0 30px;
  color: #777;
  font-size: 16px;
  line-height: 1.7;
}

.about {
  height: 790px;
  background: url("https://static.hengxianghongye.com/pc/newimgs/关于我们背景.png") center top / cover no-repeat;
}

.about__inner {
  position: relative;
  height: 790px;
  padding-top: 92px;
  color: #fff;
}

.about h3 {
  margin: 76px 0 30px;
  color: #e02020;
  font-size: 31px;
  line-height: 1.2;
}

.about p {
  width: min(1060px, 100%);
  margin: 0 0 28px;
  color: #fff;
  font-size: 17px;
  line-height: 1.9;
  font-weight: 400;
}

.circle-link {
  position: absolute;
  left: 0;
  top: 494px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e02020;
  color: #fff;
  font-size: 0;
  transition: transform .25s ease, background .25s ease;
}

.circle-link::before {
  display: block;
  color: #fff;
  content: "›";
  font-family: Arial, sans-serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

.circle-link:hover {
  transform: translateX(6px);
  background: #c91717;
}

.stats {
  position: absolute;
  right: 0;
  bottom: 78px;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: #fff;
}

.stats b {
  font-size: 64px;
  line-height: 1;
  font-weight: 300;
}

.stats span {
  margin-left: 8px;
  font-size: 19px;
}

.stats p {
  width: auto;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 19px;
  line-height: 1;
  font-weight: 400;
}

.cases {
  min-height: 840px;
  padding-top: 82px;
  background: #fff;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 50px;
  gap: 22px;
  width: 100%;
  margin-top: 70px;
}

.case-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
  transition: transform .3s ease, box-shadow .3s ease;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, .12);
}

.case-card__text {
  height: 180px;
  padding: 32px 34px 24px;
}

.case-card__text i {
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 26px;
  background: #d91f1f;
}

.case-card h3 {
  overflow: hidden;
  margin: 0 0 15px;
  color: #222;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #777;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.case-card__img {
  overflow: hidden;
}

.case-card__img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform .45s ease;
}

.case-card:hover .case-card__img img {
  transform: scale(1.055);
}

.case-card:hover {
  background: #000;
}

.case-card:hover .case-card__img,
.case-card:hover .case-card__img img {
  width: 100%;
  height: 460px;
}

.case-card:hover .case-card__text {
  position: absolute;
  inset: 0;
  z-index: 2;
  height: auto;
  padding-top: 54px;
  background: rgba(0, 0, 0, .46);
}

.case-card:hover h3,
.case-card:hover p {
  color: #fff;
}

.case-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 460px;
  border-radius: 8px;
  background: #df1f1f;
  color: #fff;
  font-size: 42px;
  transition: background .25s ease, transform .25s ease;
}

.case-next:hover {
  transform: translateY(-6px);
  background: #c91717;
}

.honor {
  min-height: 820px;
  background: url("https://static.hengxianghongye.com/pc/newimgs/知产荣誉背景.png") center top / cover no-repeat;
}

.honor__inner {
  padding-top: 96px;
}

.honor-stage {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 32px;
  width: 100%;
  margin-top: 46px;
}

.honor-window {
  overflow: hidden;
}

.honor-rows {
  transition: transform .42s cubic-bezier(.22, .61, .36, 1);
}

.honor-row {
  display: flex;
  justify-content: space-between;
}

.honor-row + .honor-row {
  margin-top: 48px;
}

.honor-row img {
  flex: 0 0 160px;
  width: 160px;
  height: 226px;
  cursor: zoom-in;
  object-fit: cover;
  transition: transform .28s ease, box-shadow .28s ease;
}

.honor-row img:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, .22);
}

.honor-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  color: #d91f1f;
  font-size: 0;
  transition: transform .25s ease, background .25s ease;
}

.honor-arrow::before {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

.honor-arrow:hover {
  transform: scale(1.08);
}

.honor-arrow--prev {
  background: #fff;
}

.honor-arrow--prev::before {
  content: "‹";
}

.honor-arrow--next {
  background: #e02020;
  color: #fff;
}

.honor-arrow--next::before {
  content: "›";
}

.partners {
  min-height: 610px;
  padding-top: 86px;
  background: #fff;
}

.partners__logos {
  width: 100%;
  margin-top: 54px;
}

.partners__logos img {
  width: 100%;
  height: auto;
}

.news {
  min-height: 758px;
  padding-top: 108px;
  background: url("https://static.hengxianghongye.com/pc/newimgs/新闻动态背景.png") center top / cover no-repeat #f5f5f5;
}

.news-layout {
  display: grid;
  grid-template-columns: 600px minmax(0, 1fr);
  gap: 66px;
  margin-top: 70px;
}

.news-feature {
  display: grid;
  grid-template-columns: 1fr 78px;
  min-height: 420px;
  background: #e7e7e7;
}

.news-feature__main {
  position: relative;
  overflow: hidden;
  transition: opacity .22s ease, transform .22s ease;
}

.news-feature.is-changing .news-feature__main {
  opacity: .28;
  transform: translateY(8px);
}

.news-feature__img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.news-feature__text {
  padding: 26px 34px 30px;
}

.news-feature h3 {
  overflow: hidden;
  margin: 0 0 16px;
  color: #222;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-feature p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #555;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 54px;
}

.news-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #858585;
  transition: background .25s ease, transform .25s ease;
}

.news-dots button.active,
.news-dots button:hover {
  background: #d91f1f;
  transform: scale(1.1);
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px 58px;
}

.news-list article {
  position: relative;
  min-height: 178px;
  padding-bottom: 44px;
}

.news-list time {
  display: block;
  margin-bottom: 14px;
  color: #777;
  font-size: 15px;
}

.news-list h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 14px;
  color: #222;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-list p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-list a {
  position: absolute;
  right: 0px;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e02020;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 32px;
  line-height: 30px;
  padding-bottom: 3px;
}

.contact {
  min-height: 720px;
  padding-top: 78px;
  padding-bottom: 70px;
  background: url("https://static.hengxianghongye.com/pc/newimgs/联系我们背景.png") center top / cover no-repeat;
}

.message-form {
  width: 100%;
  margin-top: 72px;
  padding: 58px 64px 64px;
  background: rgba(255, 255, 255, .34);
}

.message-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 28px;
}

.message-form input,
.message-form textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: #fff;
  color: #333;
  font-size: 20px;
}

.message-form input {
  height: 66px;
  padding: 0 46px;
  border-radius: 33px;
}

.message-form textarea {
  height: 130px;
  padding: 26px 46px;
  border-radius: 10px;
  resize: none;
}

.message-form input::placeholder,
.message-form textarea::placeholder {
  color: #888;
}

.message-form__action {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

.message-form button {
  width: 190px;
  height: 58px;
  border: 0;
  border-radius: 29px;
  background: #e02020;
  color: #fff;
  font-size: 22px;
  transition: background .25s ease, transform .25s ease;
}

.message-form button:hover {
  transform: translateY(-2px);
  background: #c91717;
}

.honor-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: rgba(0, 0, 0, .74);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.honor-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.honor-modal img {
  max-width: min(82vw, 760px);
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .42);
  transform: scale(.94);
  transition: transform .25s ease;
}

.honor-modal.show img {
  transform: scale(1);
}

.honor-modal__close {
  position: absolute;
  top: 32px;
  right: 42px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 34px;
  line-height: 1;
}

@media (max-width: 1280px) {
  .brand {
    width: 300px;
  }

  .brand img {
    width: 300px;
    height: auto;
  }

  .main-nav {
    gap: 18px;
    font-size: 14px;
  }

  .header-tel {
    margin-left: 22px;
    font-size: 20px;
  }

  .hero-dots {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-nav a:not(.footer-phone) {
    padding: 0 20px;
  }

  .footer-phone {
    font-size: 23px;
  }
}
