@font-face {
  font-family: "HarmonyOS";
  src: url("../font/HarmonyOS.ttf");
}
body {
  font-family: "HarmonyOS", "Microsoft YaHei", sans-serif;
}
@media (max-width: 575px) {
  .wrapper {
    max-width: 400px;
  }
}
@media (min-width: 576px) {
  .wrapper {
    max-width: 500px;
  }
}
@media (min-width: 768px) {
  .wrapper {
    max-width: 600px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 1000px;
  }
  .wrapper {
    max-width: 800px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1000px;
  }
  .wrapper {
    max-width: 800px;
  }
}
@media (min-width: 1400px) {
  .container {
    max-width: 1200px;
  }
  .wrapper {
    max-width: 1000px;
  }
}
.grey {
  color: #797b79;
}
.wrapper {
  margin: 0 auto;
}
.my {
  margin: 3rem auto;
}
@media (max-width: 768px) {
  .my {
    margin: 1em auto;
  }
}
/* 恒信空调主题色 - 冷色调 */
.btn-primary {
  background-color: #0077b6; /* 深蓝色 */
  border-color: #0077b6;
}
.btn-primary:hover {
  background-color: #005f8d; /* 深蓝色变深 */
  border-color: #005f8d;
}
.title .line {
  display: block;
  margin: 0 auto;
  width: 3rem;
  height: 0.12rem;
  background-color: #0077b6; /* 深蓝色 */
}
ul {
  padding-left: 0;
}
ul li {
  transition: all 0.5s;
}
i {
  padding-right: 0.5rem;
}
.main-mt {
  margin-top: 3rem;
}
.box-hover:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0px 5px 3px rgba(0, 119, 182, 0.2); /* 深蓝色阴影 */
}
.ico {
  color: #0077b6; /* 深蓝色 */
  font-size: 1.2rem;
}
.spacing {
  letter-spacing: 0.1rem;
}
.bi-calendar-week {
  font-size: 0.5rem;
}
#services,
#about,
#advantages,
#cases,
#contact {
  scroll-margin-top: 3rem;
}
.navbar {
  background-color: #fff;
}
.navbar li a:hover {
  color: #0077b6 !important; /* 深蓝色 */
  font-weight: 700;
}
#home {
  padding: 15rem 5rem;
}
#home .main {
  flex: 1;
}
#home .main h1 {
  font-weight: 700;
}
#home .logo {
  width: 10rem;
  height: 10rem;
}
@media (max-width: 768px) {
  #home {
    position: relative;
    padding-top: 20rem!important;
    padding-bottom: 0;
    margin-bottom: 2em;
  }
  #home .logo {
    position: absolute;
    top: 8rem;
    left: 0;
  }
}
#services ul li img[alt='top'] {
  position: absolute;
  left: -0.2rem;
  top: -0.1rem;
  width: 3rem;
}
@media (max-width: 1400px) {
  #services ul li:nth-child(3) {
    display: none;
  }
}
@media (max-width: 992px) {
  #services ul {
    justify-content: center!important;
  }
  #services ul li {
    margin-bottom: 1rem;
    width: 100%!important;
  }
  #services ul li:last-child {
    margin-bottom: 0;
  }
}
@media (max-width: 768px) {
  #services ul li {
    width: 110%!important;
  }
}
#about .main .left img {
  transition: all 0.5s;
  width: 25rem;
}
@media (min-width: 768px) {
  #about .main .left {
    margin-right: 2rem;
  }
}
@media (min-width: 992px) {
  #about .main .right {
    width: 50%;
  }
}
@media (max-width: 768px) {
  #about .main .count .years {
    padding: 1rem;
  }
  #about .main .count .customers {
    padding: 1rem;
  }
  #about .main .count .techs {
    padding: 1rem;
  }
}
#advantages li {
  padding: 0.3rem 0;
}
#advantages li .percent {
  float: right;
}
#advantages li .progress {
  margin-top: 0.3rem;
}
#cases li {
  margin: 2rem 0;
}
#cases li:first-child {
  margin-top: 0;
}
#cases li:last-child {
  margin-bottom: 0;
}
#advantages .main div {
  margin: 5rem 0;
}
#advantages .main div:first-child {
  margin-top: 0;
}
#advantages .main div:last-child {
  margin-bottom: 0;
}
#advantages .main div:nth-child(1),
#advantages .main div:nth-child(3) {
  padding-left: 1rem;
  border-left: 3px solid #0077b6; /* 深蓝色 */
}
#advantages .main div:nth-child(2),
#advantages .main div:nth-child(4) {
  padding-right: 1rem;
  border-right: 3px solid #0077b6; /* 深蓝色 */
}
#advantages .main h5 {
  color: #0077b6; /* 深蓝色 */
}
#contact .main img {
  width: 10rem;
}
@media (max-width: 768px) {
  #contact .main img {
    width: 7rem;
  }
}
footer {
  background-color: #0077b6; /* 深蓝色 */
  color: #fff;
  margin-bottom: 0!important;
}
/* 为服务卡片添加特殊样式 */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 119, 182, 0.2);
}
/* 为返回顶部按钮添加样式 */
.backtop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background-color: #0077b6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s;
}
.backtop:hover {
  background-color: #005f8d;
}