.product-detail-page .breadcum {
  height: 300px;
}

.product-detail-section :not(h1):not(h2):not(h3):not(h4):not(a):not(.btn-quote):not(.pd-trust-box *) {
  color: #4a5568;
  font-size: 1rem;
}
.product-detail-section label:not(h1):not(h2):not(h3):not(h4) {
  font-size: 0.85rem;
}


.product-detail-section a:hover {
  text-decoration: underline;
}

.pd-spec-list .pd-inv {
  color: #110050;
}

.pd-gallery {
  /* position: sticky; */
  top: 20px;
}
.pd-main-img {
  /* background: linear-gradient(135deg, #f8f4ff 0%, #f0e8ff 100%); */
  border: 1px solid rgba(17, 0, 80, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  min-height: 518px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
}

.pd-main-img img {
  width: 100%;
  height: auto;
  /* max-height: 260px; */
  object-fit: contain;
  cursor: zoom-in;
}

.pd-main-img .manufacturer-logo {
  max-height: 50px;
  object-fit: contain;
}

.pd-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.pd-thumb {
  flex: 1;
  border: 1px solid rgba(17, 0, 80, 0.12);
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  background: #fff;
  transition: 0.2s;
}
.pd-thumb img {
  width: 100%;
  height: 48px;
  object-fit: contain;
}
.pd-thumb.active,
.pd-thumb:hover {
  border-color: #e95107;
}

.pd-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.pd-info .part-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.pd-part-number {
  color: #110050;
  font-weight: 700;
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  text-align: center;
}
.pd-stock-badge {
  display: inline-block;
  margin-left: 0.75rem;
  vertical-align: middle;
  background: rgba(35, 160, 70, 0.1);
  color: #1e8a48;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
}
.pd-stock-badge i {
  margin-right: 4px;
}

/* 型号规格列表：label 右对齐，value 左对齐 */
.pd-spec-list {
  width: 100%;
  display: grid;
  grid-template-columns: 40% 1fr;
  row-gap: 1rem;
  margin: 0.5rem 0;
}
.pd-spec-list dt {
  text-align: right;
  padding: 10px 5px 10px 0;
  font-weight: 500;
  border-bottom: 1px solid #eee;
  /* font-size: 0.9rem !important; */
  color: #110050 !important;
}
.pd-spec-list dd {
  text-align: left;
  padding: 10px 0 10px 10px;
  margin: 0;
  border-bottom: 1px solid #eee;
  word-break: break-word;
}
.pd-spec-list dd i {
  margin-right: 5px;
}

/* 数量输入 + RFQ 按钮 */
.pd-buy-row {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 0;
  width: 100%;
  margin-top: 1rem;
}

.pd-qty {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: end;
  padding-right: 5px;
}
.pd-qty label {
  display: block;
  margin-bottom: 4px;
}
.pd-qty input {
  width: 80px;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(17, 0, 80, 0.2);
  border-radius: 5px;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
  height: 30px;
}

.pd-qty input.error-null{
  border-color: red;
}

.pd-qty input.error-null:focus {
  border-color: red;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.pd-qty input:focus {
  border-color: #110050;
  box-shadow: 0 0 0 3px rgba(17, 0, 80, 0.1);
}
.pd-buy-row .pd-rfq-btn {
  width: 40%;
  margin-left: 10px;
  padding: 0.2rem 0.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 2rem;
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #fff;
}
.pd-rfq-btn.btn-quote i.rfq-icon {
  margin-right: 6px;
  color: #fff !important;
}

.pd-buy-row .pd-rfq-btn span{
  color: #fff !important;
}

.payway-logo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  width: 100%;
}

/* 右：询盘表单 */
.pd-inquiry {
  background: #fff;
  border: 1px solid rgba(17, 0, 80, 0.1);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 5px 20px rgba(17, 0, 80, 0.08);
}
.pd-inquiry-title {
  color: #110050;
  font-weight: 500;
  font-size: 1.25rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.pd-inquiry-sub {
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}
.pd-field {
  margin-bottom: 8px;
}
.pd-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
}
.pd-field .req {
  color: #e95107;
}
.pd-field input,
.pd-field textarea {
  width: 100%;
  padding: 5px 0.9rem;
  border: 1px solid rgba(17, 0, 80, 0.15);
  border-radius: 5px;
  font-size: 13px;
  outline: none;
  transition: 0.3s;
  font-family: inherit;
}
.pd-field input:focus,
.pd-field textarea:focus {
  border-color: #110050;
  box-shadow: 0 0 0 3px rgba(17, 0, 80, 0.1);
}

.pd-field input.error {
  border-color: #dc3545;
}

.btn-quote {
  background-color: #110050;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 500;
  transition: 0.3s;
  display: inline-block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
  margin-top: 10px;
}
.btn-quote:before {
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  width: 101%;
  height: 100%;
  background-color: #e95107;
  z-index: -1;
  transition: transform 0.4s ease-out;
  transform: translateX(-100%);
}
.btn-quote:hover:before {
  transform: translateX(0);
}
.btn-quote:hover {
  color: white;
  transform: none;
}

.btn-quote i{
  color: #e95107 !important;
}

.pd-inquiry .btn-quote {
  margin-top: 0;
  border: none;
  cursor: pointer;
}

/* ============================================================
   通用 section + Specifications 表格
   ============================================================ */
.pd-section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}
.pd-section-title {
  color: #110050;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1rem;
}
.pd-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(135deg, #110050 0%, #e95107 100%);
}
.pd-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.pd-specs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
}
.pd-specs-table .spec-label {
  text-align: left;
  font-weight: 400 !important;
  color: #110050 !important;
  width: 45%;
}

/* Shipping / Manual / QC 卡片 */
.pd-card {
  background: #fff;
  border: 1px solid rgba(17, 0, 80, 0.1);
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  transition: 0.3s;
}
.pd-card:hover {
  box-shadow: 0 10px 30px rgba(17, 0, 80, 0.1);
  border-color: rgba(17, 0, 80, 0.2);
}
.pd-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #110050 0%, #2d1b69 100%);
  color: #fff;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.pd-card h3 {
  color: #110050;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.pd-card p {
  line-height: 1.6;
  margin-bottom: 1rem;
}
.pd-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pd-check-list li {
  padding: 5px 0;
}

/* ============================================================
   独立图文模块：Shipping / Shopping Manual / QC & Packaging
   ============================================================ */
.pd-feature .pd-feature-img {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(17, 0, 80, 0.14);
}
.pd-feature .pd-feature-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.pd-feature .pd-feature-img:hover img {
  transform: scale(1.04);
}
.pd-feature .pd-feature-text {
  padding: 0 1rem;
}
/* feature 区块内的标题去掉左侧竖线，改用图标做视觉锚点 */

.pd-feature .pd-card-icon {
  margin-bottom: 0;
}
.pd-feature .pd-check-list {
  margin-top: 1rem;
}
.pd-feature .pd-check-list li {
  padding: 6px 0;
}

/* ============================================================
   Shipping / Payment / Quality Control — 新版模块
   ============================================================ */
/* 居中标题 + 副标题 */
.pd-section-title-center {
  padding-left: 0;
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.pd-section-title-center::before {
  display: none;
}
.pd-section-sub {
  max-width: 640px;
}

.pd-section-sub.text-center {
  margin: 0 auto;
}

/* 品牌标识（快递/支付 chips，纯 CSS，无需外部 logo） */
/* 嵌入卡片文字中的紧凑横排 */
.pd-logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(17, 0, 80, 0.15);
}
.pd-logo-label {
  margin-right: 0.25rem;
  color: #110050 !important;
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 0.75rem;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(17, 0, 80, 0.1);
  transition: 0.25s;
  min-width: 120px;
}

.brand-chip.visa {
  padding: 5px 0;
}

.brand-chip.mastercard {
  padding: 3px 0;
}

.brand-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 信息卡片（右侧） */
.pd-info-card {
  background: #fff;
  margin-top: 20px;
}
.pd-info-card h3 {
  color: #110050;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.pd-info-card h4 {
  color: #110050;
  font-weight: 500;
  font-size: 1rem;
  margin: 1.1rem 0 0.6rem;
}
.pd-info-card > p {
  line-height: 1.6;
  margin-bottom: 0.5rem;
}


.shipping-container{
  display: flex;
  justify-content: space-between;
  gap: 80px;
  margin-top: 20px;
}



.pd-mini-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.pd-mini-table th,
.pd-mini-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid #eee;
}
.pd-mini-table th {
  background: #faf9ff;
  color: #110050 !important;
  font-weight: 500;
}
.pd-mini-table td:first-child {
  font-weight: 400 !important;
  width: 28%;
}
.pd-plain-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
}
.pd-plain-list li {
  padding: 4px 0;
}
.pd-plain-list strong {
  color: #110050;
}
.pd-check-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin-top: 1rem;
}
.pd-check-inline li {
  flex: 0 0 45%;
}

.pd-check-inline li i{
  color: #e95107 !important;
}

/* Payment 方法块 */
.pd-pay-method {
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(17, 0, 80, 0.15);
}
.pd-pay-method h4 {
  margin: 0 0 0.25rem;
}
.pd-pay-method p {
  margin: 0;
}

/* Quality Control 三步 */
.pd-qc-step {
  background: #fff;
  border: 1px solid rgba(17, 0, 80, 0.1);
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  transition: 0.3s;
}

.pd-qc-img {
  position: relative;
  overflow: hidden;
}
.pd-qc-img img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.pd-qc-step:hover .pd-qc-img img {
  transform: scale(1.06);
}
.pd-qc-num {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #110050 0%, #e95107 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(17, 0, 80, 0.3);
}
.pd-qc-step h3 {
  color: #110050;
  font-weight: 500;
  font-size: 1.1rem;
  margin: 1.1rem 1.25rem 0.6rem;
}
.pd-qc-step p {
  line-height: 1.6;
  margin: 0 1.25rem 1.25rem;
}

/* Trust box */
.pd-trust-box {
  margin-top: 2rem;
  background: linear-gradient(135deg, #110050 0%, #2d1b69 100%);
  border-radius: 18px;
  padding: 2rem 2.25rem;
  color: #fff;
}
.pd-trust-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.pd-trust-head i {
  font-size: 1.5rem;
  color: #ff8a4c;
}
.pd-trust-head h3 {
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0;
}
.pd-trust-box > p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}
.pd-trust-box .pd-check-list li {
  color: #fff;
}
.pd-trust-box .pd-check-list li i {
  color: #4ade80;
}

/* 产品卡片优化 - 支持产品照片 */
.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card-link:hover {
  text-decoration: none;
}
.product-card {
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover .product-title {
  color: #0d6efd;
}
.product-img {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.product-img img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.05);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #110050 0%, #2d1b69 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
  display: inline-block;
  z-index: 2;
}
.product-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.4;
  color: #110050;
  white-space: nowrap;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-desc {
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  text-overflow: ellipsis;
  overflow: hidden;
}
.product-spec {
  padding: 0.5rem 0;
  display: flex;
  gap: 5px;
}
.product-spec a {
}
.product-spec i {
  color: #110050;
  width: 18px;
}
.product-spec p {
  margin-bottom: 0.25rem;
}

.img-preview-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.img-preview-modal.show {
  display: flex;
}

.modal-inner {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}
#modal-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}
.modal-close {
  position: absolute;
  right: -30px;
  top: -30px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  text-align: center;
  line-height: 36px;
}
.modal-close:hover {
  color: #ccc;
}

/* 响应式断点重写：996px / 768px / 480px，仅保留适配样式、不新增额外样式 */
@media (max-width: 996px) {
  .product-detail-page .breadcum {
    height: 200px;
  }
  .pd-feature .pd-feature-img img {
    height: 260px;
  }
  .pd-feature .pd-feature-text {
    padding: 0;
    margin-top: 0.5rem;
  }
  .pd-check-inline li {
    flex: 0 0 100%;
  }
  .pd-gallery {
    position: static;
  }
  .pd-inquiry {
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .pd-spec-list {
    grid-template-columns: 42% 1fr;
  }
  .pd-spec-list dt {
    background-color: #eee;
    padding-left: 0.4rem;
  }

  .pd-spec-list dd {
    padding-left: 0.4rem;
    padding-top: 0;
    padding-bottom: 0;
  }
  .pd-part-number {
    font-size: 1.5rem;
  }
  .pd-buy-row {
    flex-wrap: wrap;
  }
  .pd-qty input {
    width: 100%;
  }

  .payway-logo-row {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 1rem;
  }
  .pd-main-img {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .pd-spec-list {
    grid-template-columns: 1fr;
  }
  .pd-spec-list dt {
    text-align: left;
  }
  .pd-buy-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pd-qty {
    align-items: flex-start;
    padding-right: 0;
  }
  .pd-buy-row .pd-rfq-btn {
    width: 100%;
    margin-left: 0;
  }
  .payway-logo-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .pd-inquiry {
    padding: 1.25rem;
  }
  .pd-trust-box {
    padding: 1.5rem;
  }
  .modal-close {
    right: 0;
    top: -40px;
  }
}