.hero-section {
  width: 100%;
  overflow: hidden;
}

.hero-container-wrapper {
  display: grid;
  grid-template-columns: calc(55% - 100.0px) calc(45% - 100.0px);
  gap: 200px;
  align-items: center;
  padding: 0 5rem;
  padding-top: 100px;
  padding-bottom: 140px;
  padding-left: 10rem;
  padding-right: 10rem;
  background-color: #A8D5BE;
}

.hero-avatar {
    margin-bottom: 15px;
}

.hero-avatar-group {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100px;
}

.hero-avatar-title {
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.5;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
  padding: 14px 18px;
  border-radius: 100px;
  border: 1px solid #121212;
}

.rating-score {
  font-weight: bold;
  margin-right: 5px;
}

.rating-stars {
  display: flex;
  margin-right: 5px;
}

.star {
  position: relative;
  display: inline-block;
  margin-right: 2px;
  font-size: 16px;
  line-height: 1;
  color: #ccc;
}

.star.filled {
  color: #000;
}

.rating-link {
  color: #000;
  text-decoration: none;
}

.rating-link:hover {
  text-decoration: underline;
}

.hero-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-description {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 30px;
  color: #121212;
}

.hero-product {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 110px;
  height: 110px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info {
  flex: 1;
}

.product-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #121212;
  text-transform: unset;
}

.product-price {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.price-current {
  font-size: 16px;
  margin-right: 10px;
  color: #121212;
}

.price-compare {
  font-size: 13px;
  color: #a3a3a3;
  text-decoration: line-through;
}

.product-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: fit-content;
  margin: 0;
  font-size: 15px;
  color: #fff !important;
  line-height: 100%;
  text-align: center;
  text-transform: unset;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.25s ease 0s;
  background-color: #121212;
}

/* 右侧视频幻灯片部分 */
.hero-slide-wrapper {
  overflow: auto;
  position: relative;
  margin-right: -10rem;
}

/* 重写swiper默认样式 */
.hero-slider.swiper {
  width: 100%;
  height: 100%;
  position: relative;
}

.swiper-wrapper {
  transition-timing-function: ease-out;
}

.swiper-slide {
  height: 100%;
  border: 8px solid #ffffff;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s ease;
  transform-origin: center;
}

/* 视频样式 */
.swiper-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 静音按钮 */
.hero-sound {
  position: absolute;
  top: 26px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
}

.hero-sound:hover {
  background: rgba(0, 0, 0, 0.6);
}

.hero-mute-template,
.hero-unmute-template {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* 导航按钮 */
.custom-swiper-button-next {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
  margin: 0;
  padding: 0;
  border: none;
}

.custom-swiper-button-next svg {
  width: 24px;
  height: 24px;
  fill: #121212;
}

/* 视频进度条 */
.video-progress {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 5;
}

.video-progress-bar {
  height: 100%;
  background: #ffffff;
  width: 0;
  transition: width 0.1s linear;
}

.swiper-slide:not(.swiper-slide-active) {
  mask-image: linear-gradient(90deg,#000 -30%,transparent 85%);
}

/* 响应式样式 */
@media (max-width: 1280px) {
  .hero-container-wrapper {
    gap: 100px;
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

@media (max-width: 1024px) {
  .custom-swiper-button-next {
    display: none;
  }

  .swiper-slide:not(.swiper-slide-active) {
    mask-image: none;
  }
  
  .hero-container-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 60px 40px;
  }
}

@media (max-width: 767px) {
  .hero-container-wrapper {
    padding: 20px;
    gap: 20px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-slide-wrapper {
    height: auto;
    margin-right: -20px;
    margin-left: -20px;
  }

  .swiper-slide {
    width: calc(33% - 10px);
  }
  
  .swiper-button-next {
    width: 40px !important;
    height: 40px !important;
  }
  
  .swiper-button-next svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .hero-sound {
    width: 32px;
    height: 32px;
    top: 22px;
    right: 12px;
  }
  
  .hero-mute-template,
  .hero-unmute-template {
    width: 16px;
    height: 16px;
  }
}