/* 首屏轮播图 */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1920/900;
  overflow: hidden;
  margin-top: -80px;
  min-height: calc(100% / 1920 * 900);
  max-height: 900px;
}

.hero-slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  width: 100%;
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide:nth-child(1) {
  background-image: url("../img/index/banner1-1.jpg");
}

.hero-slide:nth-child(2) {
  background-image: url("../img/index/banner2-1.jpg");
}

.hero-slide:nth-child(3) {
  background-image: url("../img/index/banner3-1.jpg");
}

.scroll-indicator {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 10;
}

.scroll-indicator img {
  width: 20px;
  height: 20px;
}
.hero:hover .slider-controls {
  opacity: 1;
}
/* 轮播图控制按钮 */
.slider-controls {
  transition: all 0.3s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 10;
  transform: translateY(-50%);
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.slider-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.slider-btn svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

/* 轮播指示器 */
.slider-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: #ffffff;
}

.indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
}
.main-section {
  padding: 180px 0 240px 0;
}
.main-section-wrap{
  position: relative;
  background-color: #fff;
  z-index: 999;
}
.main-tit {
  font-size: 38px;
  font-weight: 600;
  text-transform: none;
  font-style: normal;
  text-decoration: none;
  line-height: 1.2em;
  letter-spacing: 0px;
  word-spacing: 0em;
  color: #000000;
  margin-bottom: 50px;
  text-align: left;
}
.main-content {
  display: flex;
  gap: 15px;
  flex-wrap: nowrap;
}
.main-img {
  flex: 0 0 calc(20% - 12px);
  width: calc(20% - 12px);
}
.store-section {
  text-align: center;
  position: relative;
  background-color: #fff;
  z-index: 999;
}
.store-section img {
  width: 100%;
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}
.business-content .view-btn {
  display: none;
}
.mb-md{
  display: none;
}
.mb-word{
  display: none;
}
#main-section-mobile{
  display: none;
}
.main-section-mobile-title{
  display: none;
}
@media (max-width: 768px) {
  .slider-btn{
    display: none;
  }
  .hero {
    height: 765px;
    margin-top: 0;
    aspect-ratio: auto;
  }
  .main-section {
    padding: 120px 0 160px 0;
  }
  .main-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .main-img {
    width: 100%;
    flex: 1;
    height: auto;
  }

  .hero-slide:nth-child(1) {
    background-image: url("../img/index/banner1.jpg");
  }

  .hero-slide:nth-child(2) {
    background-image: url("../img/index/banner2.jpg");
  }

  .hero-slide:nth-child(3) {  
    background-image: url("../img/index/banner3.jpg");  
  }

  #main-section-mobile{
    padding: 0 30px 130px 30px;
    display: block;
  }
  #main-section-mobile.hero{
    height: auto;
  }

  #main-section-mobile  .hero-slide:nth-child(1) {
    background-image: url("../img/index/m1.jpg");
  }
  #main-section-mobile  .hero-slide:nth-child(2) {
    background-image: url("../img/index/m2.jpg");
  }
  #main-section-mobile  .hero-slide:nth-child(3) {
    background-image: url("../img/index/m3.jpg");
  }
  #main-section-mobile  .hero-slide:nth-child(4) {  
    background-image: url("../img/index/m4.jpg");
  }
  #main-section-mobile  .hero-slide:nth-child(5) {
    background-image: url("../img/index/m5.jpg");
  }

  #main-section-mobile .hero-slider{
    /* overflow: hidden; */
    /*height: 475px;*/
    width: 100%;
    aspect-ratio:587/831;
  }

  .main-section-wrap{
    display: none;
  }

  .main-section-mobile-title{
    margin-top: 100px;
    margin-bottom: 50px;
    text-align: center;
    font-size: 20px;
    display: block;
  }
  .pc-md{
    display: none;
  }
  .mb-md{
    display: block;
  }
  .hero-slider-mobile{
    overflow: hidden;
  }
  .mb-word{
    display: block;
    padding: 15px 30px;
    text-align: right;
    font-size: 14px;
  }
  .word1{
    margin-top: 20px;
  }
  .word2{
    font-weight: bold;
    margin-top: 20px;
    padding-bottom: 20px;
  }
}
