/* Banner图 */
.banner {
  width: 100%;
  height: 560px;
  position: relative;
  margin: 80px auto 0;
}

.banner_bg {
  width: 100%;
  height: 100%;
}

.banner_bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner_text {
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
}

.banner_text h2,
.banner_text p {
  font-size: 50px;
  color: #0565C0;
  font-weight: 700;
  margin-bottom: 20px;
}

/* 产品中心 */
.product_center {
  height: auto;
  position: relative;
  margin: 80px auto;
}

.product_box {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

/* 左侧导航 */
.product_left {
  width: 150px;
  height: auto;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.product_left_title {
  width: 100%;
  height: 70px;
  line-height: 70px;
  text-align: center;
  background-color: #0565C0;
  border: 1px solid #EAEAEB;
  border-bottom: none;
}

.product_left_title h2 {
  font-size: 26px;
  color: #fff;
  font-weight: 400;
  border: none !important;
}

/* layui菜单样式 */
.layui-menu .layui-menu-item-divider,
.layui-menu,
.layui-menu li a {
  margin: 0 !important;
}

.layui-menu .layui-menu-item-group>.layui-menu-body-title,
.layui-menu .layui-menu-body-title a {
  color: #0A0F1C !important;
}

.layui-menu li {
  text-align: center;
  border: 1px solid #EAEAEB;
  border-bottom: none;
  white-space: normal !important;
  word-wrap: break-word !important;
  height: auto !important;
  min-height: 50px !important;
}

.layui-menu li:last-child {
  border-bottom: 1px solid #EAEAEB;
}

.layui-menu .layui-menu-body-title {
  padding: 10px !important;
  height: auto !important;
  min-height: 50px !important;
  line-height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border: none !important;
}

.layui-menu .layui-menu-body-title p {
  flex: 1 !important;
  text-align: center !important;
  margin: 0 !important;
}

.layui-menu .layui-menu-body-title i {
  margin-left: 10px !important;
}

.layui-menu .layui-menu-body-title a {
  padding: 0 !important;
  display: block !important;
  height: 100% !important;
  width: 100% !important;
  white-space: normal !important;
  word-wrap: break-word !important;
}

.layui-menu>li:hover>.layui-menu-body-title,
.layui-menu>li>.layui-menu-body-title:hover,
.layui-menu>li>.layui-menu-body-title:active,
.layui-menu>li.active>.layui-menu-body-title {
  background-color: #0565C0;
  color: #fff !important;
}

.layui-menu-body-title>.layui-icon {
  position: relative !important;
  right: 0 !important;
  top: 0 !important;
  margin-left: 10px !important;
}

.layui-menu>li:hover>.layui-menu-body-title a,
.layui-menu>li>.layui-menu-body-title a:hover,
.layui-menu>li>.layui-menu-body-title a:active,
.layui-menu>li.active>.layui-menu-body-title a {
  background-color: #0565C0;
  color: #fff !important;
}

.layui-menu li ul {
  background-color: #F2F3F7 !important;
}

.layui-menu li ul li {
  padding: 0 !important;
  border: 1px solid #EAEAEB;
  border-bottom: none;
}

.layui-menu li ul li:last-child {
  border-bottom: 1px solid #EAEAEB;
}

.layui-menu li ul li .layui-menu-body-title {
  padding: 0 !important;
  border: none !important;
  font-size: 14px !important;
}

.layui-menu li ul li:hover,
.layui-menu li ul li.active {
  background-color: #0565C0 !important;
}

.layui-menu li ul li:hover .layui-menu-body-title,
.layui-menu li ul li .layui-menu-body-title:hover {
  color: #fff !important;
}

.layui-menu .layui-menu-item-checked:after {
  border-color: #0565C0 !important;
}

.layui-menu li,
.layui-menu-body-title {
  font-size: 16px !important;
  padding: 5px 15px !important;
}

.layui-menu .layui-menu-item-checked a,
.layui-menu .layui-menu-item-checked2 a {
  color: #fff !important;
  background-color: #0565C0 !important;
}

/* 右侧内容 */
.product_right {
  flex: 1;
  display: flex;
  gap: 40px;
}

/* 产品图片画廊 */
.product_gallery {
  width: 550px;
  flex-shrink: 0;
  position: relative;
}

.gallery_container {
  display: flex;
  gap: 15px;
}

.gallery_main {
  width: 500px;
  height: 500px;
  border: 1px solid #eaeaea;
  flex-shrink: 0;
}

.gallery_nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding-top: 20px;
}

.middle {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: crosshair;
}

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

.layer {
  width: 200px;
  height: 200px;
  background: rgba(0, 101, 192, 0.3);
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  pointer-events: none;
}

.large {
  width: 400px;
  height: 400px;
  position: absolute;
  top: 0;
  left: 100%;
  border: 1px solid #eaeaea;
  background-repeat: no-repeat;
  background-size: 1000px 1000px;
  display: none;
  z-index: 100;
  margin-left: 10px;
}

.gallery_thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thumb_item {
  width: 60px;
  height: 60px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.thumb_item:hover,
.thumb_item.active {
  border-color: #0565C0;
}

.nav_btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 14px;
}

.nav_btn:hover {
  background: #0565C0;
  border-color: #0565C0;
  color: #fff;
}

.nav_btn i {
  line-height: 1;
}

.thumb_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 产品信息 */
.product_info {
  flex: 1;
  padding: 20px;
}

.product_name {
  border-bottom: 1px solid #eee;
}

.product_name h2 {
  font-size: 28px;
  color: #0A0F1C;
  font-weight: 600;
  padding-bottom: 5px;
}

.product_attr {
  padding-top: 15px;
  margin-bottom: 40px;
}

.attr_row {
  display: flex;
  margin-bottom: 20px;
}

.attr_label {
  width: 80px;
  font-size: 16px;
  color: #666;
  flex-shrink: 0;
}

.attr_value {
  font-size: 16px;
  color: #0A0F1C;
  font-weight: 500;
}

.product_actions {
  display: flex;
  gap: 20px;
}

.btn_inquire,
.btn_contact {
  padding: 14px 40px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn_inquire {
  background-color: #C0392B;
  color: #fff;
}

.btn_inquire:hover {
  background-color: #A93226;
}

.btn_contact {
  background-color: #0565C0;
  color: #fff;
}

.btn_contact:hover {
  background-color: #0455A4;
}

/* 产品详情 */
.product-details {
  background: #fff;
  padding-bottom: 40px;
  margin-top: 20px;
}

.product-details-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 20px;
  position: relative;
}

.product-details-header h2 {
  font-size: 18px;
  color: #333;
  font-weight: 600;
  padding-left: 20px;
  position: relative;
}

.product-details-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: #0565C0;
}

.product-details-content {
  padding: 20px;
}

.product-details-content p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.product-details-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 响应式布局 - 1200px */
@media (max-width: 1200px) {
  .banner {
    height: 400px;
  }

  .product_right {
    gap: 30px;
  }

  .product_gallery {
    width: 500px;
  }

  .gallery_main {
    width: 450px;
    height: 450px;
  }

  .large {
    width: 350px;
    height: 350px;
    background-size: 900px 900px;
  }
}

/* 响应式布局 - 992px */
@media (max-width: 992px) {
  .banner {
    height: 350px;
  }

  .product_box {
    flex-direction: row;
    gap: 20px;
  }

  .product_left {
    width: 140px;
    max-width: 140px;
    position: sticky;
    top: 100px;
    margin: 0;
  }

  .product_right {
    flex-direction: column;
    gap: 30px;
  }

  .product_gallery {
    width: 100%;
  }

  .gallery_main {
    width: 100%;
    height: 400px;
  }

  .large {
    display: none;
  }

  .layer {
    display: none !important;
  }

  .product_center .wrapper {
    padding: 0;
  }

  .product-details .wrapper {
    padding: 0;
  }

  .product_info {
    padding: 20px 0;
    text-align: center;
  }

  .product_name h2 {
    text-align: center;
  }

  .product_attr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
  }

  .attr_row {
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
  }

  .attr_label {
    width: auto;
    font-size: 14px;
    text-align: left;
    flex-shrink: 0;
  }

  .attr_value {
    min-width: 0;
    font-size: 14px;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .product_actions {
    justify-content: center;
  }

  .product-details-content {
    padding: 20px 0;
  }

  .gallery_container {
    flex-direction: column;
  }

  .gallery_nav {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-top: 15px;
    gap: 10px;
  }

  .gallery_thumbs {
    flex-direction: row;
    gap: 8px;
  }

  .nav_btn {
    transform: rotate(-90deg);
  }

  .nav_down {
    transform: rotate(-90deg);
  }
}

/* 响应式布局 - 768px */
/* 响应式布局 - 768px 手机端修复完整版 */
@media (max-width: 768px) {
  html,body{
    overflow-x:hidden;
  }
  .banner {
    height: 200px;
  }
  .wrapper{
    padding: 0 15px !important;
  }
  .product_box {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  .product_left {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
  }
  .product_right {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  .product_gallery {
    width: 100%;
    max-width: 100%;
    flex-shrink: 1;
    box-sizing: border-box;
  }
  .gallery_container {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  .gallery_main {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    flex-shrink: 1;
    box-sizing: border-box;
  }
  .gallery_nav {
    flex-direction: row;
    padding-top: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  .gallery_nav::-webkit-scrollbar {
    display: none;
  }
  .gallery_thumbs {
    flex-direction: row;
    width: max-content; /* 自适应内容宽度，内部横向滚动 */
    gap: 8px;
    min-width: 0;
  }
  .thumb_item {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }
  .nav_btn {
    transform: rotate(-90deg);
    flex-shrink: 0;
  }
  .nav_down {
    transform: rotate(-90deg);
  }
  .large {
    display: none;
  }
  .product_info {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 0;
    text-align: center;
  }
  .product_name h2 {
    font-size: 22px;
    text-align: center;
  }
  .product_attr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
  }
  .attr_row {
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
  }
  .attr_label {
    width: auto;
    font-size: 14px;
    text-align: left;
    flex-shrink: 0;
  }
  .attr_value {
    min-width: 0;
    font-size: 14px;
    text-align: right;
    overflow-wrap: anywhere;
  }
  .product_actions {
    justify-content: center;
  }
  .btn_inquire,
  .btn_contact {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
  }
  .product_actions {
    flex-direction: column;
  }
  .product-details-header h2 {
    font-size: 16px;
  }
  .product-details {
    padding-bottom: 12px;
  }
  .product-details-content {
    padding: 15px 0 6px;
  }
  .product-details-content p {
    font-size: 14px;
    line-height: 1.6;
  }
  /* layui组件宽度限制 */
  .layui-panel, .layui-menu{
    max-width:100%;
    min-width:0;
    overflow-x:hidden;
  }
}
