.vidcontainer {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 9999;
  top: 0;
  left: 0;
  overflow: hidden;
  display: none;
  cursor: pointer;
}


.vidcontainer .video-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
}


.vidcontainer .mask {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: .8;
  z-index: 10000;
}

.vidcontainer .closevid {
  width: 1.5rem;
  height: 1.5rem;
  background-image: url("../image/close-vid2.png");
  background-size: .35rem;
  border: 1px solid #fff;
  border-radius: 100%;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  top: 0;
  right: -2.5rem;
  cursor: pointer;
  transition: all .3s;
  z-index: 10000;
}


.vidcontainer video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
}


@media (max-width: 767px) {
  .vidcontainer .closevid {
    width: .6rem;
    height: .6rem;
    top: -1rem;
    right: 0;
  }
}
@media (min-width: 1025px) {
  .vidcontainer .closevid:hover {
    transform: rotate(90deg);
  }
}


.filter-tabs {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
  gap: 1rem;
  font-size: 30px;
  line-height: 1.8;
}


.filter-tab {
  padding: 10px;
  background-color: #f5f5f5;
  color: #666;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  border: 1px solid #e0e0e0;
}

.filter-tab:hover {
  background-color: #e0e0e0;
  color: #333;
}


.filter-tab.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.img-item {
  display: inline-block;
  width: 400px;
  margin-right: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  vertical-align: top;
}

.img-item:hover {
  opacity: 0.85;
  transform: translateY(-5px);
}

.img-item .img {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.img-item .tit-16 {
  text-align: center;
  color: #333;
  font-weight: 500;
  display: block;
  width: 100%;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .filter-tabs {
    gap: 0.5rem;
    margin-top: 0.75rem;
  }

  .filter-tab {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 15px;
  }

  .img-item {
    width: 200px;
    margin-right: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .img-item .img {
    width: 100%;
    height: 200px;
  }

  .img-item .tit-16 {
    width: 100%;
    padding: 0 0.25rem;
  }
}

/* 地区筛选器样式 */
.region-filter {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-size: 16px;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
}

.filter-select {
  padding: 0.5rem 1rem;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.filter-select:hover {
  border-color: #007bff;
}

.filter-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.filter-reset-btn {
  padding: 0.5rem 1.5rem;
  font-size: 15px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-reset-btn:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.filter-reset-btn:active {
  transform: translateY(0);
}

/* 产品详情页视频组件样式 */
.video-section {
  margin: 3rem 0;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}



.video-container {
  position: relative;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  background: #000;
  /*border-radius: 12px;*/
}

.product-video {
  width: 100%;
  height: auto;
  max-height: 800px;
  display: block;
  object-fit: contain;
  background: #000;
  margin: 0 auto;
}


.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 1;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.video-container:hover .video-overlay {
  opacity: 0.8;
}


/* 移动端适配 */
@media (max-width: 767px) {
  .region-filter {
    margin-top: 1rem;
    padding: 1rem;
    gap: 0.75rem;
  }

  .filter-section {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .filter-label {
    font-size: 14px;
  }

  .filter-select {
    width: 100%;
    min-width: auto;
    font-size: 14px;
  }

  .filter-reset-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 14px;
  }

  .video-section {
    margin: 2rem 0;
    padding: 0 1rem;
  }

  .video-container {
    max-width: 100%;
    border-radius: 8px;
  }

  .product-video {
    max-height: 300px;
  }

  .play-btn {
    width: 60px;
    height: 60px;
  }


  .play-icon{
    width: 18px;
    height: 18px;
  }
}

/* 语言切换按钮样式 */
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background-color: transparent;
  color: #fff;
  /*border: 1px solid #e0e0e0;*/
  /*border-radius: 4px;*/
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  /*margin-right: 0.5rem;*/
}

.lang-btn:hover {
  background-color: #f5f5f5;
  color: #333;
  border-color: #ccc;
}

.lang-btn.en-btn {
  font-family: 'Arial', sans-serif;
  letter-spacing: 1px;
}

.lang-btn.active {
  /*background-color: #007bff;*/
  color: white;
  border-color: #007bff;
}

/* 手机端语言切换 */
.mobile-lang-switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid #eee;
  /*background-color: #f8f9fa;*/
}

.mobile-lang-switch .lang-btn {
  flex: 1;
  /*margin: 0 0.25rem;*/
  /*padding: 0.75rem 1rem;*/
  /*border-radius: 8px;*/
  text-align: center;
  color: #000000;
  border: 1px solid #000;
}

.mobile-lang-switch .lang-text {
  font-size: 16px;
  font-weight: 600;
}

/* 移动端适配 */
@media (max-width: 767px) {
  .lang-btn {
    padding: 0.4rem 0.8rem;
    font-size: 13px;
  }

  .mobile-lang-switch {
    padding: 0 100px;
  }

  .mobile-lang-switch .lang-text {
    font-size: 14px;
  }
}
