.product-page-container {
  margin-top: 0.3rem !important;
}

.sidebar-widget {
  background-color: #fff;
  padding: 0;
  border-radius: 0.08rem;
  overflow: hidden;
  box-shadow: 0 0.02rem 0.12rem 0 rgba(0, 0, 0, 0.15);
  margin-bottom: 0.2rem;
}

.sidebar-title {
  display: flex;
  align-items: center;
  background-color: #1a3b98;
  color: #fff;
  padding: 0.28rem 0.18rem;
  margin-bottom: 0;
  font-size: 0.2rem;
}

.sidebar-title small {
  margin-left: 0.1rem;
  font-size: 0.1rem;
}

.product-categories .list-group-item {
  border: none;
  padding: 0;
  font-size: 0.16rem;
  border-radius: 0;
}

.product-categories .list-group-item {
  background-color: #ececec;
}

.product-categories .list-group-item a {
  text-decoration: none;
  padding: 0.12rem 0.2rem;
  color: #333;
  display: block;
  position: relative;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
}

.product-categories .list-group-item a::after {
  content: "";
  display: block;
  width: calc(100% - 0.4rem);
  height: 1px;
  background-color: #d9d9d9;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.product-categories .list-group-item a::before {
  content: "";
  display: none;
  width: 0.04rem;
  height: 100%;
  background-color: #0045d7;
  position: absolute;
  left: 0;
  top: 0;
}

.product-categories .list-group-item:last-child a::after {
  display: none;
}

.product-categories .list-group-item.active {
  background-image: linear-gradient(to right, rgba(0, 69, 215, .2) 0%, rgba(0, 69, 215, .1) 20%, rgba(0, 69, 215, 0) 100%);
}

.product-categories .list-group-item.active a {
  color: #003366;
  font-weight: bold;
}

.product-categories .list-group-item.active a::before {
  display: block;
}

.product-categories .list-group-item:hover:not(.active) {
  background-image: linear-gradient(to right, rgba(0, 69, 215, .2) 0%, rgba(0, 69, 215, .1) 20%, rgba(0, 69, 215, 0) 100%);
}

.product-categories .list-group-item:hover:not(.active) a {
  color: #003366;
  font-weight: bold;
}

#product-grid .col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-card-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: transparent;
  border-radius: 8px;
  transition: 0.4s;
  position: relative;
  /*box-shadow: 0 0.02rem 0.1rem 0 #c4c4c473;*/
}

.product-card-wrapper::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  border-radius: 8px;
  border: 2px solid transparent;
  pointer-events: none;
  box-sizing: border-box;
  transition: .4s;
}

.product-card-wrapper:hover::after {
  border-color: #0e38a8;
}

.product-card {
  border: none;
  border-radius: 0.08rem;
  overflow: hidden;
  transition: .4s;
  text-align: center;
  background: white;
}

.product-card:hover .card-img-top {
  transform: scale(1.05);
}

.product-card .card-img-top-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.7rem;
  overflow: hidden;
  background: white;
}

.product-card .card-img-top {
  border-radius: 0;
  height: 100%;
  object-fit: cover;
  transition: .4s;
}

.product-card .card-body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0.56rem;
  flex-grow: 1;
  padding: 0;
  background-color: #eff0f2;
  position: relative;
}

.product-card .card-body::after {
    content: "";
    position: absolute;
    left: 0.21rem;
    right: 0.21rem;
    top: 0;
    background: #717171;
    height: 1px;
}

.product-card .card-title {
  font-size: 0.18rem;
  font-weight: 400;
  color: #333;
  transition: .3s ease-in-out;
  margin-bottom: 0;
}

.product-card p {
  text-decoration: none;
  font-size: 0.16rem;
  color: #666;
}

.product-card .btn-link:hover {
  text-decoration: underline;
}

.main-footer {
  background-color: #eff0f2;
}

@media (max-width: 1200px) {
  .sidebar-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .sidebar-title small {
    margin-left: 0;
  }
}

@media (min-width: 992px) {
  .product-page-container>.row>.col-lg-3 {
    width: 18%;
  }

  .product-page-container>.row>.col-lg-9 {
    padding-left: 0.4rem;
    width: 82%;
  }
}

/* 响应式部分 */
@media (max-width: 767.98px) {
  .sidebar-title {
    flex-direction: row;
    padding: 0.16rem 0.2rem;
    font-size: 0.32rem;
    align-items: center;
  }

  .sidebar-title small {
    font-size: 0.14rem;
    margin-left: 0.16rem;
  }

  .product-categories .list-group-item {
    font-size: 0.2rem;
  }

  .product-page-container {
    margin-top: 0.2rem !important;
  }
}

.product-detail-header {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  background-color: #eff0f2;
  height: 3.8rem;
  border: 1px solid #eee;
  margin-bottom: 0.3rem;
}

.detail-swiper {
  width: 5rem;
  min-width: 5rem;
  max-width: 5rem;
  height: 100%;
  background-color: white;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-swiper {
  position: relative;
}

.arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.38rem;
  height: 0.38rem;
  border: 2px solid #0f39a8;
  border-radius: 50%;
  background-color: #fff;
  color: #0f39a8;
  font-size: 0.2rem;
  cursor: pointer;
  box-shadow: 0 4px 15px 0 #c4c4c4a5;
  transform: translateY(-50%) scale(1.2);
  transition: .3s;
  opacity: 0;
}

.detail-swiper:hover .arrow {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.arrow:hover {
  background-color: #0f39a8;
  color: white;
}

.arrow svg {
  fill: currentColor;
}

.arrow.swiper-button-disabled {
  cursor: default;
  border-color: #c4c4c4;
  background-color: #eff0f2;
  color: #666;
}

.prev-detail-arrow {
  left: 0.1rem;
}

.next-detail-arrow {
  right: 0.1rem;
}

.swiper-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.18rem;
  color: #666;
}

.swiper-pagination-current {
  color: #fd9f08;
}

.detail-info {
    flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.34rem 0.28rem;
  gap: 0.2rem;
}

.detail-info-scroll {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
}

.detail-info-scroll h2 {
  font-weight: bold;
  font-size: 0.28rem;
  color: #1b3b98;
  margin-bottom: 0.2rem;
}

.detail-info-scroll p {
  font-size: 0.16rem;
  color: #0c183c;
  padding-bottom: 0.2rem;
  margin-bottom: 0.2rem;
}

.contact-box {
  border-top: 1px solid #999;
  padding-top: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-left {
  display: flex;
  align-items: center;
  color: #1b3b98;

}

.contact-left h2 {
  font-size: 0.16rem;
}

.contact-left img {
  width: 0.38rem;
  margin-right: 0.05rem;
}

.contact-right {
  padding: 0.08rem 0.2rem;
  color: #fff;
  border-radius: 4px;
  font-size: 0.16rem;
  background-color: rgb(28, 59, 152);
}

.detail-info dl {
  margin-bottom: 0.2rem;
}

.detail-info dt {
  font-weight: normal;
  color: #0c183c;
  margin-bottom: 2px;
}

.detail-info dd {
  font-size: 0.14rem;
}

@media (max-width: 992px) {
  .product-detail-header {
    flex-direction: column;
    height: auto;
  }

  .detail-swiper {
    width: 100%;
  }
  .contact-left img {
      width: 0.32rem;
      margin-right: 0.1rem;
  }
  .contact-left h2 {
      font-size: 0.18rem;
  }
  .contact-left p {
      font-size: 0.18rem;
  }
}

.product-detail-content img {
    width: 100%;
    max-width: 100%;
}

.product-detail-title {
  margin-bottom: 30px;
}

.product-detail-title svg {
  margin-right: 6px;
}

.product-detail-title h3 {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  color: #0f39a8;
  font-size: 18px;
  font-weight: bold;
}

.title-line {
  width: 100%;
  height: 3px;
  background-color: #d1d1d1;
}

.title-line::before {
  content: "";
  display: block;
  width: 100px;
  height: 100%;
  background-color: #fd9f08;
}