/* index.css - 首页私有样式 */

/* 轮播图样式 */
.carousel {
  width: 100%;
  position: relative;
}

.swiper {
  width: 100%;
  height: 960px;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swiper-slide .info {
  color: #fff;
  position: absolute;
  top: 200px;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
}
.swiper-slide .info .header-text {
  font-size: 50px;
  font-weight: 900;
  font-family: system-ui;
}
.swiper-slide .info .header-info {
  font-family: monospace;
  font-size: 22px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.swiper-slide .info .buttons {
  margin-top: 30px;
}
.swiper-slide .info .buttons button {
  width: 160px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  padding: 0;
  margin-right: 20px;
  border-radius: 5px;
  border: 0.5px solid rgba(255, 255, 255, 1);
  color: rgba(255, 255, 255, 1);
  font-size: 20px;
  font-weight: 500;
  background: transparent;
}
.swiper-slide .info .buttons button:last-child {
  background: rgba(205, 167, 107, 1);
  border-color: rgba(205, 167, 107, 1);
}
.swiper-button-next svg, .swiper-button-prev svg{
    display: none;
}
#main-swiper .swiper-button-next{
    margin-right: 100px;
}
#main-swiper .swiper-button-prev{
    margin-left: 100px;
}



/* 产品分类轮播 - 标签栏 */
.product-carousel {
  background-image: url("/static/index/images/productBg.png");
  padding: 50px 0;
}

.product-carousel .tabs {
  display: flex;
  margin-bottom: 30px;
  width: 100%; /* 容器宽度占满父级 */
  overflow-x: auto; /* 超出部分可横向滚动 */
  overflow-y: hidden; /* 禁止纵向滚动 */
  white-space: nowrap; /* 禁止内部元素换行 */
  scrollbar-width: none; /* 隐藏 Firefox 滚动条 */
}
.product-carousel .tab {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
}
.product-carousel .tab.active {
  border-bottom: 2px solid #cda76b;
  color: #cda76b;
}
.product-carousel .tab:hover{
    border-bottom: 2px solid #cda76b;
    color: #cda76b;
}

/* 产品分类轮播 - Swiper 容器 */
.product-swiper {
  width: 100%;
  height: 450px; /* 可根据图片调整高度 */
  margin-bottom: 90px;
}
.product-swiper .swiper-slide {
  display: flex;
  gap: 50px;
  justify-content: space-around;
  padding: 0 80px;
  box-sizing: border-box;
}
.product-swiper .swiper-slide>.swiper-imgs{
  display: flex;
  gap: 20px;
}

.product-swiper .swiper-slide img {
  flex: 1;
  /*max-width: calc(33.333% - 14px);*/
  height: 100%;
  box-shadow: 0px 2px 10px rgba(227, 206, 168, 0.2);
  border-radius: 15px;
}

.product-swiper .swiper-button-next svg,
.swiper-button-prev svg {
  display: none;
}

/* 调整箭头位置，避免超出容器 */
.product-swiper .swiper-button-prev {
  left: 20px;
}
.product-swiper .swiper-button-next {
  right: 20px;
}

/* 关于我们 */
.aboutUs {
  background-image: url("/static/index/images/aboutBg.png");
  padding: 50px 0 410px;
}
.aboutUs .intr {
  width: 50%;
  margin: 0 auto;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 32px;
  color: rgba(255, 255, 255, 0.8);
}
.aboutUs .player {
  width: 160px;
  height: 56px;
  line-height: 56px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
  margin: 112px auto 0;
  border: 0.5px solid rgba(255, 255, 255, 1);
  border-radius: 3px;
  cursor: pointer;
}

/* 手风琴图片展示样式 */
.accordionBg {
  background-color: rgba(26, 26, 26, 1);
  padding: 70px 0 130px;
}
.accordionWeb{
  display: block;
}
.accordionPhone{
  display: none;
}
.accordionBg .header-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 56px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto;
  text-align: center;
}
.accordion {
  margin: 50px auto;
  display: flex;
  justify-content: flex-end; /* 让手风琴整体靠右，以便从右往左展开 */
}

.accordion-item {
  border: none;
  margin-left: 10px; /* 调整间距方向 */
  background: transparent;
  width: 300px; /* 手风琴项初始宽度 */
  overflow: hidden;
  transition: width 0.3s ease-out;
}

.accordion-header {
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 540px; /* 手风琴项高度，可根据需求调整 */
}

.accordion-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.accordion-header:hover img {
  transform: scale(1.05);
}

.accordion-header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.accordion-item.active .overlay {
  justify-content: flex-end;
}
.accordion-header:hover .overlay{
    color: rgba(205, 167, 107, 1);
}

.accordion-header .overlay img {
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
}

.accordion-item.active .overlay img {
  display: none;
}

.accordion-header .overlay h3 {
  font-size: 20px;
  margin-bottom: 5px;
  font-weight: 500;
}
.accordion-item.active .overlay h3 {
  font-size: 24px;
  margin-bottom: 5px;
  font-weight: 700;
}
.accordion-header .overlay p {
  display: none;
  font-size: 14px;
}
.accordion-item.active .overlay p {
  display: block;
}

.accordion-item.active {
  width: 900px; /* 手风琴展开后的宽度，可根据需求调整 */
}

/* 新闻列表 */
.news {
  background-image: url("/static/index/images/newsBg.png");
  padding: 70px 0;
}
.newsWeb{
  display: block;
}
.newsPhone{
  display: none;
}
.news .news-list {
  display: flex;
  gap: 50px;
  margin-bottom: 50px;
}
.news .news-list .news-detail{
    flex: 1;
}
.news .news-list .news-detail .img-box{
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.news .news-list .news-detail img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
  object-fit: cover;
}
.news .news-list .news-detail .time {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
  margin: 40px 0 10px;
}
.news .news-list .news-detail .title {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 1);
}
.news .news-list .news-detail:hover img{
    transform: scale(1.2);
}

.news .news-list .news-detail:hover .title{
  color: rgba(205, 167, 107, 1);
}
.news .news-list .news-detail .detail-info {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 10px;
}

/* 联系表单样式 */
.contact-form {
  background-image: url("/static/index/images/contactBg.png");
  background-size: cover;
  background-position: center;
  padding: 70px 0;
  color: #fff;
}
.contact-form .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.contact-form .form-info {
  flex: 1.3;
}
.contact-form .form-info h2 {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  display: block;
}
.contact-form .form-info p.tips {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 60px;
}
.contact-form .form-info p {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 35px;
  color: rgba(255, 255, 255, 0.7);
}
.contact-form .form-container {
  flex: 1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.35);
  padding: 48px;
  border: 1px solid;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}
.contact-form .form-container h3 {
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 700;
}
.contact-form .form-container .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.contact-form .form-container .form-group {
  flex: 1;
  position: relative;
}
.contact-form .form-container .form-group span {
  color: red;
  position: absolute;
  left: 15px;
  top: 15px;
}

.contact-form .form-container input,
.contact-form .form-container textarea {
  width: 100%;
  padding: 12px 12px 12px 30px;
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #333;
  border-radius: 4px;
  outline: none;
}
.contact-form .form-container input::placeholder,
.contact-form .form-container textarea::placeholder {
  color: rgba(128, 128, 128, 0.5);
}
.contact-form .form-container textarea {
  height: 120px;
  resize: none;
}
.contact-form .form-container button {
  background: rgba(205, 167, 107, 1);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  margin-top: 25px;
  width: 50%;
  font-size: 17px;
}
.swiper-wrapper-phone{
        display: none;
    }
    .swiper-wrapper-web{
        display: block;
    }
@media (max-width: 768px) {
    .swiper-wrapper-phone{
        display: block;
    }
    .swiper-wrapper-web{
        display: none;
    }
  .swiper{
    height: 430px;
  }
  .swiper-slide .info{
    top: 80px;
    padding: 0 20px;
  }
  .swiper-slide .info .header-text{
    font-size: 24px;
    text-align: center;
  }
  .swiper-slide .info .header-info{
    font-size: 13px;
    font-weight: 400;
    margin-top: 13px;
    line-height: 17px;
  }
  .swiper-slide .info .buttons button{
    width: 110px;
    font-size: 16px;
    font-weight: 500;
    height: 40px;
    line-height: 40px;
    margin-right: 10px;
  }
  #main-swiper .swiper-button-prev{
    bottom: 20px;
    top: auto;
    left: 60%;
    margin: 0;
  }
  #main-swiper .swiper-button-next{
    bottom: 20px;
    top: auto;
    margin: 0;
    right: 30px;
  }
  .product-carousel{
    padding: 30px 0;
  }
  .product-carousel .tab{
    font-size: 14px;
    padding: 10px 0;
  }
  .aboutUs .intr{
    width: 100%;
    padding: 0 10px;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
  }
  .product-swiper{
    margin-bottom: 50px;
  }
  .product-swiper .swiper-slide{
    padding: 0;
  }
  .product-swiper .swiper-slide>.swiper-imgs img{
    width: 100%;
    max-width: 100%
  }
  .product-swiper .swiper-slide>.swiper-imgs a:nth-child(2), .product-swiper .swiper-slide>.swiper-imgs a:nth-child(3){
    display: none;
  }
   .product-swiper .swiper-button-prev{
    bottom: 20px;
    top: auto;
    left: 60%;
  }
  .product-swiper .swiper-button-next{
    bottom: 20px;
    top: auto;
  }

  .aboutUs{
    padding-bottom: 70px;
  }
  .aboutUs .player{
    margin-top: 80px;
  }

  .accordionWeb{
    display: none;
  }
  .accordionPhone{
    display: block;
  }
  .accordionBg{
    padding: 30px 0;
  }
  .accordionBg .header-title{
    font-size: 26px;
    font-weight: 700;
  }
  #accordion-swiper{
    padding-bottom: 50px;
  }
  #accordion-swiper .swiper-slide .info{
    bottom: 0px;
    top: auto;
  }
  #accordion-swiper .swiper-slide .info .header-text{
    font-size: 20px;
    font-weight: 700;
  }
  #accordion-swiper .swiper-slide .info .header-info{
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
  }
  .newsWeb{
    display: none;
  }
  .newsPhone{
    display: block;
  }
  .news{
    padding: 30px 0;
  }
  .news .swiper-slide img{
    height: auto;
  }
  .news .swiper-slide .info{
    position: relative;
    top: auto;
  }
  #news-swiper .time{
    font-size: 15px;
    font-weight: 400;
    padding: 18px 0 10px;
  }
  #news-swiper .swiper-slide .info{
    padding: 0;
  }
  #news-swiper .title{
    font-size: 18px;
    font-weight: 700;
    color: rgba(205, 167, 107, 1);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;  /* 控制显示的行数 */
    overflow: hidden;        /* 隐藏超出部分 */
    text-overflow: ellipsis; /* 显示省略号 */
  }
  #news-swiper .detail-info{
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 26px;
    margin-top: 4px;
    overflow: hidden; /* 隐藏超出部分 */
    display: -webkit-box; /* 将元素作为弹性伸缩盒子模型显示 */
    -webkit-box-orient: vertical; /* 设置伸缩盒子的子元素排列方式为垂直 */
    -webkit-line-clamp: 3; /* 限制显示的行数为3行 */
    line-clamp: 3; /* 标准属性，部分浏览器支持 */
    word-break: break-all; /* 强制换行（英文/数字长单词） */
  }
  .news .swiper{
    height: 480px;
  }

  .contact-form .container{
    display: block;
  }
  .contact-form{
    padding: 30px 0;
  }
  .contact-form .form-info h2{
    display: none;
  }
  .contact-form .form-info p.tips{
    font-size: 22px;
    font-weight: 700;
    line-height: 29px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
  }
  .contact-form .form-info p{
    font-size: 14px;
    font-weight: 500;
    line-height: 25px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
  }
  .contact-form .form-container{
    padding: 20px 15px;
    border-radius: 10px;
  }
  .contact-form .form-container .form-row{
    gap: 10px;
    margin-bottom: 10px;
  }
  .contact-form .form-container input, .contact-form .form-container textarea{
    padding: 6px 6px 6px 20px;
    font-size: 15px;
    font-weight: 500;
  }
  .contact-form .form-container .form-group span{
    left: 10px;
    top: 10px;
  }
  .contact-form .form-container button{
    width: 70%;
  }
  
}


  /* 弹窗样式 */
  .video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000; /* 确保在最上层 */
    display: none; /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
  }

  /* 遮罩层 */
  .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* 半透明黑色 */
  }

  /* 弹窗内容 */
  .modal-content {
    position: relative; /* 用于关闭按钮定位 */
    width: 100%;
    max-width: 900px; /* 最大宽度限制 */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
  }

  /* 关闭按钮 */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* 确保在视频上层 */
  }
  .close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
  }

  /* 响应式调整 */
  @media (max-width: 768px) {
    .modal-content {
      max-width: 100%;
      height: auto;
    }
    video {
      height: auto;
      max-height: 70vh; /* 移动端视频最大高度限制 */
    }
  }
