#services {
  margin-top: 0 !important;
}
.services-bg {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.services-bg img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  opacity: 0.4;
}
.services-content {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6em;
}

.services-mobile-title {
  display: none;
}

.services-list {
  width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1em;
}
.service-title {
  grid-column: 2 / span 2;
  grid-row: 1;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  box-shadow: none;
}
.service-title h2 {
  font-size: 2.2em;
  font-weight: bold;
  color: #233a7a;
  margin: 0 0 0.5em 0;
  text-align: center;
}
.service-title p {
  font-size: 1.1em;
  color: #233a7a;
  margin: 0;
  text-align: center;
}
.service-item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(230,232,239,.7) 0%, rgba(247,248,250,.7) 100%);
  transition: box-shadow 0.2s, transform 0.2s, background-image 0.3s;
  padding: 2.5em 1.5em 2.5em 1.5em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 180px;
  font-size: 1.2em;
  padding-top: 4.5em;
  padding-left: 1.5em;
  min-width: 0;
  box-sizing: border-box;
}
.service-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--service-bg);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
  pointer-events: none;
}

.service-item:hover::before {
  opacity: 1;
}

.service-hover-content {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(30,50,100,0.55);
  color: #fff;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  text-align: left;
  padding: 2em 1.5em;
  font-size: 0.98em;
}
.service-item:hover .service-hover-content {
  display: flex;
}
.service-item:hover .service-icon,
.service-item:hover h3,
.service-item:hover .service-arrow {
  display: none !important;
}
.service-item:hover {
  background: none;
}
.service-icon {
  height: 64px;
  margin-left: 0;
  margin-top: 0;
  align-items: center;
  justify-content: flex-end;
  display: flex;
  position: absolute;
  top: 1.2em;
  left: 1.2em;
  gap: 1em;
}
.service-icon .iconfont {
  font-size: 50px;
  color: #f3c415;
  display: block;
  margin: 0 auto;
}
.service-arrow {
  position: absolute;
  right: 1.2em;
  bottom: 1.2em;
  width: 2.2em;
  height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.18s;
  padding: 0;
}
.service-arrow svg {
  display: block;
}
.service-arrow:active,
.service-arrow:hover {
  transform: scale(1.13);
}
.service-item h3 {
  font-size: 1.2em;
  font-weight: 400;
  color: #233a7a;
  text-align: left;
}
.service-item p {
  font-size: 1em;
  color: #233a7a;
  margin: 0;
  text-align: left;
}
.service-hover-title {
  font-size: 1.25em;
  font-weight: bold;
  margin-bottom: 0.8em;
}
.service-hover-desc {
  font-size: 0.8em;
  font-weight: 400;
  line-height: 1.2;
}

/* =============== 手机端 ≤767px =============== */
@media (max-width: 767px) {
  .services-bg {
    height: auto;
  }

  .services-content {
    position: relative;
  }

  .services-mobile-title {
    margin-top: 1.5em;
    display: block;
    text-align: center;
    margin-bottom: 1.5em;
  }

  .service-title {
    display: none !important;
  }

  .services-mobile-title {
    display: block;
  }

  .services-mobile-title h2{
    margin-top: 0;
    color : #ffd600;
    font-size: 1.5em;
    margin-bottom: 0;
  }

  .services-mobile-title p{
    color: #cfd4df;
    font-size: .8em;
    margin: 0;
  }

  .services-list {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
  }
  .service-item {
    width: 100%;
  }

  .services-content {
    padding-top: 0;
  }
  
  .services-bg img {
    display: none;
  }

  .service-hover-content {
    padding: 1em;
  }

  .service-hover-title {
    font-size: 1.25em;
    font-weight: bold;
    margin-bottom: 0.2em;
  }
}

/* =============== 平板端 768px~1023px =============== */
@media (min-width: 768px) and (max-width: 1023px) {
  .service-title {
    display: none !important;
  }
  
  .services-mobile-title {
    margin-top: 1.5em;
    display: block;
    text-align: center;
    margin-bottom: 1.5em;
  }

  .services-mobile-title h2,{}
  .services-mobile-title p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .services-mobile-title h2{
    color : #ffd600;
    font-size: 2em;
    margin-bottom: 0;
  }

  .services-mobile-title p{
    color: #c4c8d1;
    font-size: 3vw;
    margin: 0;
  }

  .services-list {
    width: 768px;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
  }
  .service-item {
    width: 100%;
  }
  .services-content {
    padding-top: 2em;
  }
  
  .service-hover-title {
    font-size: 1.25em;
    font-weight: bold;
    margin-bottom: 0.2em;
  }

  .service-hover-content {
    padding: 1em;
  }
}

/* =============== PC端 ≥1024px =============== */
@media (min-width: 1024px) {
  .services-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
  }
  .services-content {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 0;
  }
  .services-list {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .service-item {
    width: 100%;
    min-height: 300px;
  }
} 