/* 主容器 - 布局面板样式会应用到这里 */
.service-features {
  width: 100%;
  background-color: rgb(var(--color-background));
}

/* Wrapper容器 - 确保宽度正确 */
.service-features__wrapper {
  width: 100%;
  display: block;
}

.service-features-header {
  text-align: center;
  margin-bottom: 40px;
}

.service-features-title {
  margin: 0;
  letter-spacing: 2px;
}

.service-features-title.text-uppercase {
  text-transform: uppercase;
}

.features {
  display: flex;
  justify-content: space-around;
  text-align: center;
  width: 100%;
  margin: auto;
  flex-wrap: wrap;
  gap: 40px;
}

.feature {
  flex: 1 1 200px;
  min-width: 200px;
}

.feature-icon {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
}

.feature-icon-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.feature-icon .svg-wrapper svg {
  width: 40px !important;
  height: 40px !important;
  stroke: currentColor !important;
  display: block !important;
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
}

.feature-title {
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 10px;
  white-space: nowrap;
  font-size: 12px;
}

.feature-title.text-uppercase {
  text-transform: uppercase;
}

.feature-text {
  color: currentColor;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
}

/* 强制覆盖可能的隐藏类 */
.feature-icon .svg-wrapper svg.hidden {
  display: block !important;
}

.feature-icon .svg-wrapper svg.sm\:block {
  display: block !important;
}

/* 桌面端大屏幕优化 */
@media (min-width: 1200px) {
  .features {
    gap: 60px;
  }
  
  .feature {
    flex: 1 1 250px;
    min-width: 250px;
  }
  
  .feature-icon {
    height: 70px;
  }
  
  .feature-icon svg {
    width: 45px;
    height: 45px;
  }
  
  .feature-title {
    font-size: 13px;
  }
  
  .feature-text {
    font-size: 15px;
  }
}

/* 平板端优化 */
@media (max-width: 1024px) and (min-width: 769px) {
  .service-features {
    padding: var(--spacing-top, 50px) 15px var(--spacing-bottom, 50px);
  }
  
  .features {
    gap: 30px;
  }
  
  .feature {
    flex: 1 1 180px;
    min-width: 180px;
  }
  
  .feature-icon {
    height: 55px;
  }
  
  .feature-icon svg {
    width: 38px;
    height: 38px;
  }
  
  .feature-title {
    font-size: 11px;
    letter-spacing: 1.5px;
  }
  
  .feature-text {
    font-size: 13px;
  }
}

/* 移动端响应式 - 水平滚动 */
@media (max-width: 768px) {
  .service-features {
    padding: var(--spacing-top, 40px) 0 var(--spacing-bottom, 40px);
  }
  
  .service-features-header {
    padding: 0 20px;
    margin-bottom: 30px;
  }

  .features {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 20px;
    padding: 0 20px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .features::-webkit-scrollbar {
    display: none;
  }

  .feature {
    flex: 0 0 calc(66.67vw - 30px);
    min-width: calc(66.67vw - 30px);
    max-width: 250px;
  }

  .feature-icon {
    height: 50px;
  }
  
  .feature-icon svg {
    width: 35px;
    height: 35px;
  }

  .feature-title {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .feature-text {
    font-size: 13px;
  }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
  .service-features {
    padding: var(--spacing-top, 30px) 0 var(--spacing-bottom, 30px);
  }
  
  .features {
    gap: 15px;
    padding: 0 15px 10px;
  }
  
  .feature {
    flex: 0 0 calc(70vw - 25px);
    min-width: calc(70vw - 25px);
    max-width: 220px;
  }
  
  .feature-icon {
    height: 45px;
  }
  
  .feature-icon svg {
    width: 32px;
    height: 32px;
  }
  
  .feature-title {
    font-size: 10px;
  }
  
  .feature-text {
    font-size: 12px;
  }
}
