/* 产业与服务模块样式 */
.services-section {
  padding: 49px 0;
  background: #f5f5f5;
  width: 100%;
}

.services-section .container {
  width: 1500px;
  margin: 0 auto;
  box-sizing: border-box;
}

.services-header {
  text-align: center;
  margin-bottom: 61px;
}

.services-title {
  font-family: Microsoft YaHei;
  font-weight: bold;
  font-size: 40px;
  color: #333333;
  line-height: 1.2;
  margin: 0 auto;
  white-space: nowrap;
}

.services-title-image {
  display: block;
  margin: 10px auto 0 auto !important;
  max-width: 100%;
  height: auto;
}

.services-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: flex-start;
  cursor: pointer;
}

.service-item {
  width: 257px;
  height: 705px;
  background: #ffffff;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.service-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 257px;
  height: 5px;
  transition: all 0.4s ease;
  z-index: 2;
}

.service-number {
  width: 31px;
  height: 30px;
  font-family: Impact;
  font-weight: 400;
  font-size: 36px;
  color: #cccccc;
  line-height: 100px;
  position: absolute;
  top: -10px;
  left: 20px;
  transition: all 0.4s ease;
  z-index: 3;
}

.service-number::after {
  content: "";
  position: absolute;
  bottom: -48px;
  left: 62%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: #cccccc;
  transition: all 0.4s ease;
  cursor: pointer;
}

.service-logo {
  margin: 76px 0 30px 0;
  transition: all 0.4s ease;
  padding: 0 10px;
  z-index: 3;
}

.service-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: all 0.4s ease;
}

.service-title {
  font-family: Microsoft YaHei;
  font-weight: bold;
  font-size: 24px;
  color: #333333;
  margin: 0 0 30px 0;
  transition: all 0.4s ease;
  padding: 0 15px;
  width: 100%;
  text-align: center;
  z-index: 3;
  cursor: pointer;
}

.service-desc {
  text-align: justify;
  text-justify: inter-ideograph;
  width: 198px;
  height: 238px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  font-size: 18px;
  color: #707070;
  line-height: 30px;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  cursor: pointer;
  z-index: 3;
}

.service-desc.hover-desc {
  display: none;
  text-align: left;
  width: 306px;
  max-height: 300px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  font-size: 18px;
  color: #ffffff;
  line-height: 30px;
  position: absolute;
  top: 180px;
  left: 42px;
  padding: 0;
  overflow: hidden;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  z-index: 10;
  cursor: pointer;
}

.service-detail-btn {
  font-family: Microsoft YaHei;
  font-size: 16px;
  color: #1a73e8;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
  align-items: center;
  gap: 5px;
  padding: 8px 20px;
  position: absolute;
  bottom: 40px;
  left: 42px;
  z-index: 3;
  cursor: pointer;
}

.service-detail-btn:hover {
  color: #0056b3;
  cursor: pointer;
}

.service-detail-btn .arrow-icon {
  font-weight: bold;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.service-detail-btn:hover .arrow-icon {
  transform: translateX(3px);
  cursor: pointer;
}

/* Hover 状态样式 */
.service-item:hover {
  width: 391px;
  height: 705px;
  transform: translateY(-10px);
  padding: 40px 25px;
  cursor: pointer;
}

.service-item:hover .service-logo,
.service-item:hover .service-title,
.service-item:hover .service-desc:not(.hover-desc),
.service-item:hover .service-bottom-bar {
  opacity: 0;
  visibility: hidden;
}

.service-item:hover .service-bottom-bar {
  opacity: 0;
}

.service-item:hover .service-number {
  color: #ffffff;
  left: 42px;
  top: 20px;
}

.service-item:hover .service-number::after {
  background: #ffffff;
}

.service-item:hover .service-title,
.service-item:hover .service-desc.hover-desc {
  opacity: 1;
  visibility: visible;
  position: absolute;
  left: 42px;
  text-align: left;
  margin: 0;
}

.service-item:hover .service-title {
  width: 120px;
  height: 30px;
  font-family: Microsoft YaHei;
  font-weight: bold;
  font-size: 30px;
  color: #ffffff;
  line-height: 116px;
  top: 106px;
  padding: 0;
}

.service-item:hover .service-desc.hover-desc {
  display: -webkit-box;
  z-index: 10;
}

.service-item:hover .service-detail-btn {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
}

.service-item:hover .service-detail-btn:hover {
  color: #1a73e8;
}

/* 1024px 响应式 - 放在hover效果之后，确保优先级 */
@media (min-width: 48.0625rem) and (max-width: 64rem) {
  .services-section {
    padding: 3rem 0;
  }

  .services-section .container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
  }

  .services-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 20px;
  }

  .services-title {
    font-size: 2rem;
  }

  .services-title-image {
    margin: 1rem auto 0 auto;
  }

  /* 修改桌面端列表为可滚动 */
  .services-list {
    display: flex !important;
    justify-content: flex-start;
    gap: 20px;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 20px 30px 20px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    cursor: grab;
  }

  /* 显示滚动条 */
  .services-list {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
  }

  .services-list::-webkit-scrollbar {
    height: 8px;
    display: block !important;
  }

  .services-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
    margin: 0 10px;
  }

  .services-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
  }

  .services-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }

  /* 确保服务项不会换行 */
  .service-item {
    width: 257px;
    height: 600px;
    flex: 0 0 auto;
    margin: 0;
  }

  .service-bottom-bar {
    width: 257px;
  }

  .service-logo {
    margin: 60px 0 30px 0;
  }

  .service-desc {
    /* height: 300px; */
    -webkit-line-clamp: 7;
  }

  .service-desc.hover-desc {
    max-height: 250px;
    top: 180px;
    overflow: hidden;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    z-index: 10;
  }

  /* Hover 状态样式 - 重新定义确保生效 */
  .service-item:hover {
    width: 391px;
    height: 600px;
    transform: translateY(-10px);
    padding: 40px 25px;
  }

  .service-item:hover .service-logo,
  .service-item:hover .service-title,
  .service-item:hover .service-desc:not(.hover-desc),
  .service-item:hover .service-bottom-bar {
    opacity: 0;
    visibility: hidden;
  }

  .service-item:hover .service-bottom-bar {
    opacity: 0;
  }

  .service-item:hover .service-number {
    color: #ffffff;
    left: 42px;
    top: 20px;
  }

  .service-item:hover .service-number::after {
    background: #ffffff;
  }

  .service-item:hover .service-title,
  .service-item:hover .service-desc.hover-desc {
    opacity: 1;
    visibility: visible;
    position: absolute;
    left: 42px;
    text-align: left;
    margin: 0;
  }

  .service-item:hover .service-title {
    width: 120px;
    height: 30px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    font-size: 30px;
    color: #ffffff;
    line-height: 116px;
    top: 106px;
    padding: 0;
  }

  .service-item:hover .service-desc.hover-desc {
    display: -webkit-box;
    z-index: 10;
  }

  .service-item:hover .service-detail-btn {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
  }

  .service-item:hover .service-detail-btn:hover {
    color: #1e90ff;
  }

  /* 隐藏移动端列表 */
  .mobile-services-list {
    display: none !important;
  }
}

/* 移动端产品服务列表 */
.mobile-services-list {
  display: none;
}

.mobile-service-item {
  display: flex;
  background: #ffffff;
  border-radius: 4px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-service-color-bar {
  width: 6px;
  background: #043491;
}

.mobile-service-content {
  flex: 1;
  padding: 20px;
}

.mobile-service-title {
  font-family: Microsoft YaHei;
  font-weight: bold;
  font-size: 18px;
  color: #333333;
  margin: 0 0 10px 0;
}

.mobile-service-desc {
  font-family: Microsoft YaHei;
  font-weight: 400;
  font-size: 14px;
  color: #707070;
  line-height: 1.5;
  margin: 0 0 15px 0;
}

/* 480px 响应式 */
@media (max-width: 30rem) {
  .services-section {
    padding: 2.5rem 0 !important;
  }

  .services-section .container {
    width: 100% !important;
    padding: 0 1.5rem !important;
  }

  .services-header {
    margin-bottom: 2rem !important;
    margin-top: 2rem;
  }

  .services-title {
    font-size: 1.5rem !important;
  }

  .services-title-image {
    width: 90px !important;
    height: 2px !important;
    margin: 0.5rem auto 0 auto;
  }

  .services-list {
    display: none !important;
  }

  .mobile-services-list {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-service-item {
    position: relative;
    padding: 0rem 0rem;
    border-left: none;
    width: 100%;
  }

  .mobile-service-color-bar {
    position: absolute;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    height: auto;
    border-radius: 4px 0 0 4px;
  }

  .mobile-service-content {
    gap: 0.75rem;
  }

  .mobile-service-title {
    font-size: 1.4rem !important;
    -webkit-line-clamp: 2;
  }

  .mobile-service-desc {
    font-size: 1.2rem !important;
    -webkit-line-clamp: 3;
  }

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

  .mobile-service-item:nth-child(1) .mobile-service-color-bar {
    background-color: #043491;
  }
  .mobile-service-item:nth-child(2) .mobile-service-color-bar {
    background-color: #ad7c13;
  }
  .mobile-service-item:nth-child(3) .mobile-service-color-bar {
    background-color: #0ca43e;
  }
  .mobile-service-item:nth-child(4) .mobile-service-color-bar {
    background-color: #32aaba;
  }
  .mobile-service-item:nth-child(5) .mobile-service-color-bar {
    background-color: #a02dc5;
  }
}

/* 375px 响应式 */
@media (max-width: 23.4375rem) {
  .services-section {
    padding: 0rem 0rem !important;
  }

  .services-section .container {
    padding: 0 1.5rem !important;
  }

  .services-title {
    font-size: 1.5rem !important;
  }

  .services-title-image {
    width: 90px !important;
    height: 0.2rem !important;
    margin-top: 0.5rem !important;
  }

  .mobile-services-list {
    gap: 1.5rem;
  }

  .mobile-service-item {
    min-height: 90px;
    border-left: none;
  }

  .mobile-service-color-bar {
    width: 4px !important;
    border-radius: 4px 0 0 4px;
  }

  .mobile-service-content {
    gap: 0.5rem;
  }

  .mobile-service-title {
    font-size: 1.3rem !important;
  }

  .mobile-service-desc {
    /* font-size: 1rem !important; */
  }

  .mobile-service-item:nth-child(1) .mobile-service-color-bar {
    background-color: #043491;
  }
  .mobile-service-item:nth-child(2) .mobile-service-color-bar {
    background-color: #ad7c13;
  }
  .mobile-service-item:nth-child(3) .mobile-service-color-bar {
    background-color: #0ca43e;
  }
  .mobile-service-item:nth-child(4) .mobile-service-color-bar {
    background-color: #32aaba;
  }
  .mobile-service-item:nth-child(5) .mobile-service-color-bar {
    background-color: #a02dc5;
  }
}