.index-main {
    margin: auto;
    flex: 1; /* 撑满剩余空间 */
    transition: margin-top 0.3s ease;
}

/* 默认的 :root 变量 */
@media (min-width: 769px) {
    :root {
      --nav-height: 70px;
      --footer-height: 60px;
    }
  }

.slider {
    /* height: calc(100vh - var(--nav-height)); */
    position: relative;
    overflow: hidden;
    margin-top: calc(var(--nav-height));
    /* flex-grow: 1; */
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    object-fit: cover;
    display: block;
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.slide.active {
    opacity: 1;
}
.products {
    padding: 50px 0;
    text-align: center;
    display: none;
}
.about {
    padding: 60px 0;
    background-color: #ffffff;
    text-align: center;
}

.contact {
    padding: 60px 0;
    background-color: #f5f5f5;
    text-align: center;
}

.about-content {
    display: flex;
    width: 100%;
    max-width: 90%;
    margin: 40px auto;
    padding: 0;
    align-items: stretch;
    min-height: 600px;
}

.about-image {
    flex: 1.2;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,120,255,0.2);
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

.about-text {
    width: 46%;
    box-sizing: border-box;
    font-size: 20px;
    line-height: 2.0;
    color: #444;
    text-align: justify;
    font-weight: bold;
    padding-left: 30px;
    margin: 0 2%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-carousel {
    width: 46%;
    box-sizing: border-box;
    position: relative;
    border: 3px solid #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    margin: 0 2%;
}

.carousel-container {
    height: 100% !important;
    overflow: hidden;
}

.about-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}


.about-text p {
  text-indent: 2em;
  line-height: 1.8;
  margin-bottom: 1.2em;
}

@media (max-width: 768px) {
  .about-image {
    width: 100%;
    margin-right: 0;
    margin-bottom: 30px;
  }
}
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        margin: 20px 5%;
        padding: 15px;
    }
    .about-carousel,
    .about-text {
        width: 100% !important;
        margin: 0;
        padding: 10px;
    }
    .about-carousel {
        margin-bottom: 25px;
        height: 300px;
    }
    .about-text {
        font-size: 16px;
        line-height: 1.7;
        padding: 0 5px;
    }
    .about-text p {
        margin-bottom: 1em;
    }
}

.strength {
    padding: 60px 0;
    text-align: center;
    background-color: #f9f9f9;
}

.strength h2 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 80px;
    position: relative;
}

.strength h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, #00bfff, transparent);
}

.contact h2 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 80px;
    position: relative;
}

.contact h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, #00bfff, transparent);
}

/* 新增联系标题样式 */
.contact h2 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 80px;
    position: relative;
}

.contact h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, #00bfff, transparent);
}

.products h2 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 80px;
    position: relative;
}

.products h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, #00bfff, transparent);
}

.about h2 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 80px;
    position: relative;
}

.about h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, #00bfff, transparent);
}

.strength-items {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.strength-item {
    flex: 1;
    min-width: 200px;
    margin: 10px;
    padding: 40px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.strength-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #0077be, #00bfff);
}

.strength-item p {
    color: #000;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    z-index: 1;
}

.strength-item span {
    color: #00bfff;
    font-size: 32px;
    font-weight: bold;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 24px;
        margin-right: 20px;
    }
}

/* 联系信息卡片样式 */
.contact-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20 20px;
}

.contact-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 120, 255, 0.1);
  flex: 1;
  min-width: 280px;
  transition: transform 0.3s ease;
}



.contact-card:hover {
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 32px;
  color: #0077be;
  margin-bottom: 20px;
}

.contact-details h3 {
  color: #333;
  font-size: 20px;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.contact-details h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #00bfff;
}

.contact-details p {
  color: #666;
  font-size: 16px;
  line-height: 1.8;
  margin: 8px 0;
}

@media (max-width: 768px) {
  .contact-card {
    min-width: 100%;
    margin-bottom: 20px;
  }
}
/* 添加移动端适配 */
@media (max-width: 768px) {
  .carousel-container {
    padding: 0 5px;
    margin: 0 -5px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  .carousel-slide {
    width: calc(100% - 10px);
    margin: 0 5px;
    transform: translateX(0);
  }

  .contact {
    padding: 60px 0 20px 0;
  }
}