/* 产品详情页响应式样式 */

/* 通用样式 */
.clear {
  clear: both;
  display: block;
  width: 100%;
}

/* 响应式布局 - 仅移动端 */
@media screen and (max-width: 768px) {
  /* 产品展示区域 - 移动端 */
  .lina_products {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  .lina_products_left {
    width: 100% !important;
    float: none !important;
    margin-bottom: 20px !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .lina_products_right {
    width: 100% !important;
    float: none !important;
    position: relative !important;
    z-index: 2 !important;
    clear: both !important;
    /* margin-top会由JavaScript动态设置 */
  }

  /* 产品图片展示区 - 移动端 */
  .proviewbox {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important; /* 移除固定的最小高度 */
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    position: relative !important;
  }

  /* 隐藏移动端不需要的元素 */
  .proviewbox .btn,
  .proviewbox #prevTop,
  .proviewbox #nextTop,
  .proviewbox .listBox,
  #probig_preview,
  .zoomplepopup {
    display: none !important;
  }

  .proviewbox .probigshow {
    height: auto !important;
    position: relative !important;
    overflow: visible !important;
    width: 100% !important;
  }

  .proviewbox .probigshow ul {
    height: auto !important;
    position: relative !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .proviewbox .probigshow li {
    width: 100% !important;
    height: auto !important;
    background: #fff !important;
    cursor: default !important;
    display: block !important;
    float: none !important;
  }

  /* 关键修复：确保图片容器能够完全显示图片 */
  .proviewbox .cf li {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-bottom: 60px !important; /* 为标题留出空间 */
  }

  .proviewbox .cf a {
    position: relative !important;
    width: 100% !important;
    display: block !important;
  }

  /* 图片样式优化 */
  .proviewbox .probigshow li img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    min-height: 250px !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    background: #fff !important;
    border: none !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* 标题样式优化 */
  .proviewbox .cf li span {
    position: absolute !important;
    width: 100% !important;
    display: block !important;
    bottom: -60px !important; /* 将标题放在图片下方 */
    left: 0 !important;
    line-height: 1.5 !important;
    padding: 10px 0 !important;
    font-size: 16px !important;
    text-align: center !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 5 !important;
  }

  /* 产品信息区域 - 移动端 */
  .lina_pro_name {
    line-height: 50px !important;
    font-size: 16px !important;
    text-indent: 15px !important;
    background: #ff6600 !important;
    color: #fff !important;
    margin-bottom: 15px !important;
  }

  .lina_pro_name span {
    color: #fff !important;
  }

  .lina_pro_cont {
    padding: 0 !important;
    line-height: 24px !important;
    font-size: 14px !important;
    color: #666 !important;
    margin-bottom: 20px !important;
  }

  .lina_pro_erweima {
    padding: 15px 0 !important;
    text-align: center !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 5px !important;
  }

  .lina_pro_erweima p {
    margin: 10px 0 !important;
    line-height: 1.5 !important;
  }

  .lina_pro_erweima img {
    max-width: 120px !important;
    height: auto !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
  }

  /* 其他区域优化 */
  .gui-sz {
    padding: 20px 10px !important;
    overflow: hidden !important;
  }

  .gui-sz .gun {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
  }

  .gui-sz .gun li {
    width: 48% !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    background: #f5f5f5 !important;
    padding: 15px 5px !important;
    border-radius: 5px !important;
  }

  /* 视频播放器移动端适配 */
  video {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 15px 0 !important;
  }

  /* 产品宣传图片 */
  .lina_comm_bg_con + p + img,
  .lina_comm_bg_con + p + img + img,
  .lina_comm_bg_con + p + img + img + img,
  .lina_comm_bg_con + p + img + img + img + img {
    width: 100% !important;
    height: auto !important;
    margin: 10px 0 !important;
    border-radius: 5px !important;
  }
}

/* 特殊处理小屏幕设备 */
@media screen and (max-width: 480px) {
  .proviewbox {
    min-height: 250px !important;
  }
  
  .gui-sz .gun li {
    width: 100% !important;
    margin-bottom: 10px !important;
  }
}

/* Banner图片样式 */
@media screen and (max-width: 768px) {
  /* 移动端banner样式 */
  .neiyeflash {
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
    position: relative !important;
  }
  
  .neiyeflash .banner-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
  }
}

/* 桌面端放大镜样式优化 */
@media screen and (min-width: 769px) {
  .zoomplepopup {
    opacity: 0.8 !important;
    z-index: 99999999 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #ff6600 !important;
  }
  
  #probig_preview {
    z-index: 99999999 !important;
    width: 500px !important;
    height: 500px !important;
    border: 2px solid #ccc !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
  }
  
  #probig_preview img {
    width: auto !important;
    height: auto !important;
    min-width: 500px !important;
    min-height: 500px !important;
    max-width: 800px !important;
    max-height: 800px !important;
  }
}
