/* ==========================================================================
   PRODUCT DETAIL  —  产品详情页
   三栏：分类 / 图库 / 简介
   ========================================================================== */

.pd-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 2fr) minmax(0, 3fr);
  gap: 40px;
  align-items: start;
  padding: 48px 0 64px;
}

/* ---------- 左：产品分类 ---------- */
.pd-cats__title {
  margin: 0 0 14px;
  font-family: Poppins-SemiBold, Arial, sans-serif;
  font-size: 15px;
  letter-spacing: .02em;
  color: #fff;
  background: #086200;
  padding: 13px 16px;
  border-radius: 3px 3px 0 0;
}

.pd-cats ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #e5e5e5;
  border-top: 0;
  background: #fff;
}

.pd-cats li + li {
  border-top: 1px solid #eee;
}

.pd-cats a {
  display: block;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #444;
  transition: .2s;
}

.pd-cats a:hover {
  color: #086200;
  background: #f6f9f4;
}

.pd-cats li.is-active a {
  color: #086200;
  font-family: Poppins-SemiBold, Arial, sans-serif;
  background: #eef4ea;
  box-shadow: inset 3px 0 0 #086200;
}

/* ---------- 中：图库 ---------- */
.pd-grid .m-prob,
.pd-grid .prob-pic {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.pd-grid .prob-pic-big {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}

.pd-grid .prob-pic-big-img {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.pd-grid .prob-pic-big-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

/* 主图左右箭头 */
.pd-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #333;
  font-size: 18px;
  cursor: pointer;
  transition: .2s;
}

.pd-arrow:hover {
  background: #086200;
  border-color: #086200;
  color: #fff;
}

.pd-arrow--prev { left: 12px; }
.pd-arrow--next { right: 12px; }

/* 缩略图：一排 5 个，1:1 */
.pd-grid .prob-pic-small {
  margin-top: 12px;
  position: relative;
}

.pd-grid .prob-pic-btn { display: none !important; }

.pd-grid .prob-pic-list {
  margin: 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.pd-grid .prob-pic-list ul {
  display: flex !important;
  gap: 8px;
  width: auto !important;
  padding: 0;
  margin: 0;
  overflow: visible !important;
}

.pd-grid .prob-pic-list ul li {
  flex: 0 0 calc(20% - 6.4px);
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}

.pd-grid .prob-pic-item,
.pd-grid .item-pic {
  display: block;
  aspect-ratio: 1 / 1;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  transition: .2s;
}

.pd-grid .item-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-grid .item-pic:hover {
  border-color: #086200;
}

.pd-grid .prob-pic-item .item-pic.active,
.pd-grid .item-pic.active {
  border-color: #086200 !important;
  box-shadow: 0 0 0 1px #086200 inset;
}

/* ---------- 右：简介 ---------- */
.pd-grid .jianjie {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pd-grid .jianjie h1 {
  margin: 0 0 14px;
  font-family: Poppins-SemiBold, Arial, sans-serif;
  font-size: 24px;
  line-height: 1.34;
  color: #1a1a1a;
}

.pd-grid .jianjie .jiann {
  font-size: 14px !important;
  line-height: 1.78 !important;
  color: #5a5a5a;
}

.pd-grid .jianjie .jiann p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.78;
}

.pd-grid .jianjie .inno2 {
  margin-top: 22px;
}

.pd-grid .jianjie .inno2 a,
.pd-grid .jianjie .inno2 .link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 28px;
  background: #086200;
  color: #fff;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 2px;
}

.pd-grid .jianjie .inno2 a:hover {
  background: #0a7a00;
  color: #fff;
}

/* 分享模块移除后的占位 */
.pd-grid .share { display: none !important; }

/* ---------- 灯箱 ---------- */
.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 14, 10, .92);
  padding: 40px;
}

.pd-lightbox.is-open {
  display: flex;
}

.pd-lightbox img {
  max-width: min(1100px, 90vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.pd-lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: .2s;
}

.pd-lightbox__btn:hover {
  background: #086200;
  border-color: #086200;
}

.pd-lightbox__prev { left: 28px; }
.pd-lightbox__next { right: 28px; }

.pd-lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.pd-lightbox__close:hover {
  background: #086200;
  border-color: #086200;
}

.pd-lightbox__count {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  letter-spacing: .18em;
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1359px) {
  .pd-grid {
    grid-template-columns: 220px minmax(0, 2fr) minmax(0, 3fr);
    gap: 28px;
  }
}

@media screen and (max-width: 1100px) {
  .pd-grid {
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas:
      "cats media"
      "cats info";
    gap: 24px 28px;
  }

  .pd-cats { grid-area: cats; }
  .pd-media { grid-area: media; }
  .jianjie { grid-area: info; }
}

@media screen and (max-width: 767px) {
  .pd-grid {
    display: block;
    padding: 24px 0 40px;
  }

  .pd-cats {
    margin-bottom: 20px;
  }

  .pd-cats ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s;
  }

  .pd-cats.is-open ul {
    max-height: 640px;
    overflow: auto;
  }

  .pd-cats__title {
    cursor: pointer;
  }

  .pd-grid .prob-pic-big {
    aspect-ratio: 1 / 1;
  }

  .pd-grid .jianjie {
    margin-top: 22px;
  }

  .pd-grid .jianjie h1 {
    font-size: 20px;
  }

  .pd-arrow {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .pd-lightbox { padding: 16px; }
  .pd-lightbox__prev { left: 8px; }
  .pd-lightbox__next { right: 8px; }
  .pd-lightbox__btn { width: 42px; height: 42px; }
}
