/*
其他公共样式
*/
/* 图片悬浮放大 */
.hover-scale {
  overflow: hidden;
}
.hover-scale img {
  transition: all 0.3s ease;
}
.hover-scale img:hover {
  transform: scale(1.1);
}
/* 悬浮向上滑动 */
.hover-up {
  transition: all 0.3s ease;
}
.hover-up:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
/* 按钮组合 */
.btn-backcolor {
  background-color: var(--primary-color);
  color: #fff;
}
.btn-border {
  background-color: transparent;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
}
.btn-group {
  display: flex;
  gap: 1.5rem;
}
.btn-group .btn {
  width: 100%;
  line-height: 1.2;
}
.btn-group .btn-col .btn {
  flex-wrap: wrap;
}
.section {
  position: relative;
  overflow: hidden;
}
.section .tit {
  padding-bottom: 3rem;
  position: relative;
}
.section .tit .boldline {
  position: relative;
  padding-bottom: 1.5rem;
}
.section .tit .boldline::before {
  content: '';
  display: block;
  background-color: var(--primary-color);
  height: 5px;
  width: 15rem;
  position: absolute;
  left: 0;
  bottom: 0;
}
.section .tit .boldline::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 15rem;
  border-top: 3px solid transparent;
  border-bottom: 3px solid var(--primary-color);
  border-left: 3px solid var(--primary-color);
  border-right: 3px solid transparent;
}
.section .tit .boldline.line-center::before {
  left: 50%;
  transform: translateX(-50%);
}
.section .tit .boldline.line-center::after {
  left: calc(50% + 7.5rem);
}
.section .tit .lightline {
  border-bottom: 1px solid var(--primary-color);
  margin-bottom: 1.5rem;
}
.section .tit h2 {
  margin: 0;
}
.section .tit a.more {
  position: absolute;
  right: 0;
  bottom: 5.5rem;
  margin-right: 1.5rem;
  color: var(--primary-color);
}
.section .tit a.more:hover {
  color: var(--secondary-color);
}
.section .tit p {
  width: 75%;
  margin: 1.5rem auto 0;
}
.section p {
  line-height: 1.4;
}
/*
公共页眉样式
*/
.site-header {
  white-space: nowrap;
  position: relative;
}
.site-header .menu li {
  position: relative;
}
.site-header .menu li .sub-menu {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
  box-shadow: var(--box-shadow);
  background-color: var(--bg-primary);
  max-width: 50rem;
  left: 0;
  border-top: 5px solid var(--primary-color);
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  padding: 1rem 0;
}
.site-header .header-top {
  background-color: var(--text-main-color);
  color: var(--text-placeholder-color);
  font-size: 1.4rem;
  height: 3.2rem;
}
.site-header .header-top .header-top-contact a {
  margin-right: 1.2rem;
}
.site-header .header-top .header-top-right .header-top-menu {
  margin-right: 0.5rem;
}
.site-header .header-top .header-top-right .header-top-menu a {
  padding: 0 1rem;
  border-right: 1px solid var(--text-placeholder-color);
}
.site-header .header-top .header-top-right .header-top-menu li .sub-menu {
  z-index: 9999;
  color: var(--text-main-color);
  top: 3rem;
}
.site-header .header-top .header-top-right .header-top-menu li .sub-menu a {
  border: none;
  padding: 1rem 1rem;
}
.site-header .header-top .header-top-right .header-top-menu li .sub-menu.show {
  top: 2.3rem;
  visibility: visible;
  opacity: 1;
}
.site-header .header-top .header-top-social svg {
  width: 1.2em;
  height: 1.2em;
}
@media (max-width: 991.98px) {
  .site-header .header-top {
    display: none;
  }
}
.site-header .header-nav {
  height: 8rem;
}
.site-header .header-nav .main-navigation a {
  height: 8rem;
  line-height: 8rem;
  font-size: 1.8rem;
  font-weight: 600;
  padding: 0 2rem;
}
.site-header .header-nav .main-navigation li .sub-menu {
  top: 9.5rem;
}
.site-header .header-nav .main-navigation li .sub-menu a {
  height: 4rem;
  line-height: 4rem;
  font-weight: 400;
}
.site-header .header-nav .main-navigation li:hover .sub-menu {
  top: 8rem;
  visibility: visible;
  opacity: 1;
  z-index: 999;
}
.site-header .header-nav .main-navigation .search-trigger {
  cursor: pointer;
}
.site-header .header-nav .main-navigation .search-trigger:hover {
  color: var(--primary-color);
}
.site-header .header-nav .main-navigation .search-trigger svg {
  width: 2.2rem;
  height: 2.2rem;
}
.site-header .header-nav .main-navigation .search-trigger .close-icon {
  display: none;
}
.site-header .header-nav .main-navigation .search-trigger.close .close-icon {
  display: block;
}
.site-header .header-nav .main-navigation .search-trigger.close .search-icon {
  display: none;
}
@media (max-width: 991.98px) {
  .site-header .header-nav .main-navigation .search-trigger {
    display: none;
  }
}
@media (max-width: 991.98px) {
  .site-header .header-nav .main-navigation {
    z-index: 9999;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    background-color: rgba(232, 243, 245, 0.8);
    box-shadow: var(--box-shadow);
  }
  .site-header .header-nav .main-navigation.show {
    max-height: 500px;
  }
  .site-header .header-nav .main-navigation ul {
    width: 100%;
  }
  .site-header .header-nav .main-navigation ul li {
    width: 100%;
  }
  .site-header .header-nav .main-navigation ul li a {
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--primary-color);
  }
  .site-header .header-nav .main-navigation ul li .sub-menu {
    display: none;
  }
}
.site-header .header-nav .mobile-nav-btn {
  cursor: pointer;
  display: none;
}
.site-header .header-nav .mobile-nav-btn .close-icon {
  display: none;
}
.site-header .header-nav .mobile-nav-btn.close .close-icon {
  display: block;
}
.site-header .header-nav .mobile-nav-btn.close .menu-icon {
  display: none;
}
.site-header .header-nav .mobile-nav-btn svg {
  width: 2.5rem;
  height: 2.5rem;
}
@media (max-width: 991.98px) {
  .site-header .header-nav .mobile-nav-btn {
    display: block;
  }
}
/*
搜索表单样式
*/
.search-form-wrap {
  position: absolute;
  top: calc(100% + 2rem);
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
  box-shadow: var(--box-shadow);
  z-index: 99;
  background-color: rgba(255, 255, 255, 0.9);
}
@media (max-width: 991.98px) {
  .search-form-wrap {
    display: none;
  }
}
.search-form-wrap::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--primary-color);
  position: absolute;
  top: 0;
  left: 0;
}
.search-form-wrap.show {
  top: 100%;
  opacity: 1;
  visibility: visible;
}
.search-form-wrap form {
  padding: 4rem 0;
  width: 72rem;
  margin: 0 auto;
}
.search-form-wrap form input {
  width: calc(100% - 8.8rem);
  height: 40px;
  line-height: 40px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.search-form-wrap form button {
  width: 8.8rem;
  height: 40px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.search-form-wrap p.hot-search {
  color: var(--text-secondary-color);
  margin-top: 3rem;
}
/*
公共页脚样式
*/
.site-footer {
  background-color: var(--text-main-color);
  color: var(--text-placeholder-color);
  font-size: 1.6rem;
}
.site-footer .f-main {
  padding: 3.2rem 0;
}
.site-footer .f-main .f-info {
  width: 23%;
}
.site-footer .f-main .f-info .f-logo {
  font-size: 3.2rem;
}
.site-footer .f-main .f-info .f-online {
  max-width: 18rem;
  line-height: 2;
  margin: 2rem 0;
}
.site-footer .f-main .f-info .f-online svg {
  width: 1.3em;
  height: 1.3em;
}
.site-footer .f-main .f-info .f-contact a,
.site-footer .f-main .f-info .f-contact span {
  line-height: 2.4rem;
  margin-top: 0.8rem;
}
.site-footer .f-main .f-info .f-contact a svg,
.site-footer .f-main .f-info .f-contact span svg {
  margin-right: 1rem;
  margin-top: 0.4rem;
}
.site-footer .f-main .f-info .f-social a {
  border: 1px solid var(--text-placeholder-color);
  padding: 5px;
  margin-right: 1rem;
  margin-top: 2rem;
  border-radius: 5px;
  background-color: var(--text-placeholder-color);
  color: var(--text-main-color);
  font-size: 1.8rem;
}
.site-footer .f-main .f-info .f-social a svg {
  margin: 0;
}
.site-footer .f-main .f-info .f-social a:hover {
  background-color: var(--bg-primary);
  color: var(--secondary-color);
}
.site-footer .f-main .f-nav {
  width: 75%;
}
.site-footer .f-main .f-nav .menu > li {
  margin-top: 2.5rem;
  width: 25%;
}
.site-footer .f-main .f-nav .menu > li:nth-child(2) {
  width: 30%;
}
.site-footer .f-main .f-nav .menu > li:nth-child(3) {
  width: 45%;
}
.site-footer .f-main .f-nav .menu a {
  font-size: 2rem;
}
.site-footer .f-main .f-nav .menu .sub-menu {
  margin-top: 2rem;
}
.site-footer .f-main .f-nav .menu .sub-menu a {
  font-size: 1.6rem;
  line-height: 2.8rem;
}
.site-footer .copyright-info {
  border-top: 1px solid var(--text-placeholder-color);
}
.site-footer .copyright-info p {
  line-height: 3rem;
  height: 3rem;
}
@media (max-width: 991.98px) {
  .site-footer .f-main .f-info {
    width: 48%;
  }
  .site-footer .f-main .f-nav {
    width: 48%;
  }
  .site-footer .f-main .f-nav .menu > li {
    width: 100%;
  }
  .site-footer .f-main .f-nav .menu > li:nth-child(2) {
    width: 100%;
  }
  .site-footer .f-main .f-nav .menu > li:nth-child(3) {
    width: 100%;
  }
}
/*
面包屑导航
*/
.breadcrumb {
  background-color: var(--primary-color);
  color: var(--color-medium-gray);
}
.breadcrumb a {
  line-height: 6rem;
  color: var(--color-dark-green);
  margin: 0 0.5rem;
}
.breadcrumb a svg {
  margin-left: -0.5rem;
}
/*
联系表单样式
*/
.contact-form-container {
  padding: 3rem 5rem;
}
.contact-form-container .form-group {
  width: 49%;
}
.contact-form-container .form-group .input {
  position: relative;
  margin-top: 2rem;
  display: flex;
  align-items: center;
}
.contact-form-container .form-group .input label {
  position: absolute;
  left: 1rem;
  color: #ff0000;
  margin-top: 0.5rem;
}
.contact-form-container .form-group .input input {
  width: 100%;
  padding-left: 2rem;
  line-height: 3.2rem;
}
.contact-form-container .form-group .input .error-tip {
  position: absolute;
  z-index: 10;
  bottom: calc(100% + 1rem);
  left: 3rem;
  padding: 16px 20px 16px 48px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.contact-form-container .form-group .input .error-tip::before {
  content: 'x';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff0000;
  font-weight: bold;
  font-size: 12px;
}
.contact-form-container .form-group .input .error-tip::after {
  content: '';
  position: absolute;
  bottom: -8px;
  /* 箭头顶部贴合提示框底部 */
  left: 50%;
  /* 水平居中 */
  transform: translateX(-50%);
  /* 绘制三角形：宽16px，高8px */
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #e5e7eb;
  /* 匹配提示框边框色 */
}
.contact-form-container .form-group .input:first-child {
  margin: 0;
}
.contact-form-container .form-group .w-100 {
  width: 100%;
}
.contact-form-container .form-group .w-30 {
  width: 32%;
}
.contact-form-container .form-group textarea {
  width: 100%;
  height: 100%;
  line-height: 1.8;
}
.contact-form-container .submit-btn {
  margin-top: 3rem;
}
/*
相关案例
*/
#related-project .project-item {
  position: relative;
}
#related-project .project-item::before {
  content: '';
  display: block;
  position: absolute;
  z-index: 10;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}
#related-project .project-item p {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  line-height: 1.2;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  text-align: center;
  transition: all 0.5s ease-in;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 11;
  padding: 0.6rem;
  color: var(--primary-color);
}
#related-project .project-item:hover p {
  background-color: rgba(187, 220, 71, 0.7);
  color: #fff;
}
#related-project .project-item img {
  width: 100%;
}
#related-project .carousel-arrow {
  background-color: transparent;
  z-index: 999;
}
#related-project .carousel-arrow svg {
  width: 4rem;
  height: 4rem;
  color: var(--primary-color);
}
/*
底部热门产品/相关产品
*/
#main-equipment .item {
  padding: 1rem;
  background-color: var(--color-light-beige-green);
  display: flex;
  justify-content: center;
}
#main-equipment img {
  width: 100%;
}
#main-equipment h4 {
  margin-top: 1rem;
  text-align: center;
}
/*
列表页分页导航
*/
.category-pagination {
  padding: 4rem 0;
  gap: 1.5rem;
}
.category-pagination .disabled {
  background-color: var(--secondary-color);
}
.product-card {
  border: 1px solid var(--color-light-beige-green);
  height: 100%;
}
.product-card .thumb {
  background-color: var(--color-light-beige-green);
}
.product-card .card-brief {
  padding: 1rem;
}
.product-card h3 {
  line-clamp: 2;
  font-size: 1.6rem;
}
.product-card li {
  color: var(--text-placeholder-color);
  line-height: 1.5;
}
.product-card .btn-group {
  padding: 1.5rem 0;
}
.service-range .range-wrap {
  margin-top: 3rem;
}
.service-range .range-wrap ul {
  gap: 1rem;
}
.service-range .range-wrap ul li {
  background-color: var(--bg-dark);
  width: 100%;
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  box-shadow: var(--box-shadow);
}
.service-range .range-wrap ul li img {
  max-width: 8rem;
}
.service-range .range-wrap ul li:hover {
  background-color: var(--primary-color);
  color: #fff;
}
.service-range .range-wrap .figure {
  background-color: #fff;
}
