/* 轮播图 */
.hero {
  position: relative;
  height: 700px;
  background-color: #000;
  overflow: hidden;
}

.slider {
  display: flex;
  animation: slide 15s infinite;
}

.slide {
  min-width: 100%;
  height: 700px;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
} */

.caption {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: #fff;
  font-size: 32px;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 10px;
}

@keyframes slide {
  0% { transform: translateX(0%); }
  33% { transform: translateX(-100%); }
  66% { transform: translateX(-200%); }
  100% { transform: translateX(0%); }
}

/* 服务内容 */
.services {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin: 50px auto;
  text-align: left; /* 让文字左对齐 */
  max-width: 1500px;
}

/* 改成横排卡片，图左文字右 */
.service-item {
  display: flex;
  align-items: center;
  /* background: #fff; */
  background: #F4F4F4;
  padding: 20px;
  /* border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1); */
  width: calc(33.333% - 20px);
  transition: transform 0.3s;
  gap: 20px;
  text-align: left;
}

.service-item img {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.service-item-content {
  display: flex;
  flex-direction: column;
}

.service-item h3 {
  margin: 0 0 10px;
  color: #003366;
}

.service-item p {
  margin: 0;
  color: #333;
}

/* 关于我们 */
.about-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* background: #fff; */
  background: #F4F4F4;
  padding: 50px 20px;
  /* border-top: 5px solid #003366; */
  flex-wrap: wrap;
  gap: 30px;
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.about-text h2 {
  font-size: 28px;
  color: #003366;
  margin-bottom: 20px;
}

.about-text p {
  max-width: 600px;
  line-height: 1.8;
  color: #333;
}

.about-text .btn {
  margin-top: 20px;
  padding: 10px 25px;
  background: #003366;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  transition: background 0.3s;
}

.about-text .btn:hover {
  background: #0059b3;
}

.about-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  background-color: transparent; /* 确保图片本身没有背景 */
}

/* 分类展示
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin: 40px auto;
}

.feature-item {
  background: #fff;
  padding: 15px;
  flex: 1 1 calc(20% - 20px);
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-item img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

.feature-item p {
  font-weight: bold;
  color: #003366;
} */

/* feature category */
.feature-categories {
  text-align: center;
  margin-bottom: 60px;
}

.feature-categories h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
}

.feature-categories .image-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.feature-categories .image-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-categories .large-row .image-box {
  flex: 1 1 48%;
  aspect-ratio: 16 / 10;
}

.feature-categories .small-row .image-box {
  flex: 1 1 30%;
  aspect-ratio: 16 / 10;
}

.feature-categories img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.feature-categories img:hover {
  transform: scale(1.05);
}

/* Brands Section */
.brands {
  text-align: center;
  padding: 40px 0;
}

.brands h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.brands-grid img {
  width: 100px;
  height: 60px;
  object-fit: contain;
}

/* 🔽 Mobile Responsive Design */
@media (max-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on smaller screens */
  }

  .brands-grid img {
    width: 80px;
    height: 50px;
  }

  .brands h2 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .brands-grid {
    grid-template-columns: 1fr; /* 1 per row on extra small screens */
  }

  .brands-grid img {
    width: 100px;
    height: 50px;
  }
}


/* 响应式处理 */
@media (max-width: 768px) {
  .top-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-form {
    width: 100%;
    margin: 10px 0;
  }

  .contact-info {
    width: 100%;
  }

  .nav-bar ul {
    flex-wrap: wrap;
    gap: 15px;
  }

  .service-item {
    width: 100%;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .feature-item {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .services {
    justify-content: center;
  }

  .service-item {
    width: 100%;
    max-width: 300px;
  }
}
