* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Helvetica", "Arial", sans-serif;
}

body {
  background-color: #fdfdfd;
  color: #333;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 5%;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #3baf44;
}

.nav a {
  margin-left: 2em;
  text-decoration: none;
  color: #000;
  font-size: 1em;
}

.nav a:hover {
  color: #3baf44;
}
.nav a.active {
  color: #3baf44;
}

.hero {
  background-image: url("../assets/bg.png");
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero.contact-hero {
  background-image: url("../assets/bann1.jpg");
}

.hero.about-hero {
  background-image: url("../assets/bann3.jpg");
}

.overlay {
  /* background-color: rgba(0, 0, 0, 0.5); */
  color: white;
  padding: 2em;
  text-align: center;
  border-radius: 10px;
}

.overlay h1 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

.overlay p {
  font-size: 1.2em;
  margin-bottom: 1em;
}

.overlay button {
  background-color: #7bc044;
  color: white;
  padding: 0.8em 2em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}

.about, .contact {
  padding: 3em 10%;
  background-color: #f7f7f7;
  text-align: center;
}
.about {
  margin-bottom: 200px;
}

.about h2, .contact h2 {
  font-size: 1.5em;
  margin-bottom: 1em;
}

.about p {
  margin-bottom: 1em;
  font-size: 1em;
  line-height: 1.6;
}

/* 新的3D轮播样式 - 手机预览图效果 */
.app-carousel {
  margin-top: 3em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.app-carousel h3 {
  font-size: 1.5em;
  margin-bottom: 100px;
  color: #333;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 500px; /* 增加高度以适应手机预览图 */
  overflow: visible; /* 改为visible以显示两侧图片 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide {
  position: absolute;
  width: 70%; /* 缩小宽度，让手机预览图更真实 */
  max-width: 300px;
  height: auto;
  transition: all 0.5s ease;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-radius: 20px;
  background-color: white;
  padding: 10px;
  border: 1px solid #e0e0e0;
}

/* 控制按钮样式调整 */
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.7);
  color: white;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 1.2em;
  border-radius: 50%;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
  background-color: rgba(59, 175, 68, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: -50px; /* 向外移动，不遮挡两侧图片 */
}

.carousel-next {
  right: -50px; /* 向外移动，不遮挡两侧图片 */
}

.carousel-indicators {
  text-align: center;
  margin-top: 100px;
  position: relative;
  z-index: 5;
}

.indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  margin: 0 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator:hover {
  transform: scale(1.2);
  background-color: #bbb;
}

.indicator.active {
  background-color: #3baf44;
  transform: scale(1.3);
  box-shadow: 0 0 0 2px rgba(59, 175, 68, 0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .carousel-container {
    height: 400px;
  }
  
  .carousel-slide {
    width: 80%;
    max-width: 250px;
  }
  
  .carousel-prev, .carousel-next {
    left: 10px;
    right: 10px;
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    height: 300px;
  }
  
  .carousel-slide {
    width: 90%;
    max-width: 200px;
  }
}

.contact-box {
  background-color: #fff;
  padding: 2em;
  margin: auto;
  max-width: 600px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #2e6b3d;
  color: white;
  text-align: center;
  padding: 1em 0;
  z-index: 2000;
}
