/* Spacing scale (8px grid): section 48/40/32, title 24/24/16 — desktop/≤1024/≤768·600·480 */
/* ============================================================
   PRODUCT PAGES — Listing & Detail shared styles
   Meditech Group brand: #98292b, Inter, white/clean
   ============================================================ */



/* ============================================================
   PRODUCT LISTING PAGE
   ============================================================ */

/* --- Listing Hero --- */
.pl-hero { background: linear-gradient(135deg, #1a2332 0%, #2a3654 40%, #1e2842 100%); position: relative; overflow: hidden; padding: 48px 0; text-align: left; }
.pl-hero::before { content: ''; position: absolute; top: -60px; right: -80px; width: 400px; height: 400px; border-radius: 50%; background: rgba(152,41,43,.06); }
.pl-hero::after { content: ''; position: absolute; bottom: -100px; left: -40px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.03); }
.pl-hero-inner { max-width: 1320px; margin: 0 auto; padding: 0 18px; position: relative; z-index: 1; }
.pl-hero-label { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.55); margin-bottom: 12px; }
.pl-hero h1 { font-size: 44px; font-weight: 800; color: #fff; margin: 0 0 16px; line-height: 1.2; letter-spacing: -.02em; }
.pl-hero-desc { font-size: 17px; color: rgba(255,255,255,.7); max-width: 680px; line-height: 1.6; margin: 0; }

/* --- Listing Section --- */
.pl-products { padding: 48px 0; }
.pl-products-inner { max-width: 1320px; margin: 0 auto; padding: 0 18px; }

/* --- Breadcrumb (listing page) --- */
.p-breadcrumb {
  background: #f8f9fb;
  border-bottom: 1px solid #eef0f4;
  padding: 0;
}
.p-breadcrumb-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}
.p-breadcrumb-inner a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .2s;
}
.p-breadcrumb-inner a:hover {
  color: var(--primary);
}
.p-breadcrumb-sep {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4c7cc;
}
.p-breadcrumb-sep svg {
  width: 12px;
  height: 12px;
}
.p-breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
}
.pl-section-title { font-size: 28px; font-weight: 700; color: var(--text-primary); margin: 0 0 8px; letter-spacing: -.02em; }
.pl-section-sub { font-size: 15px; color: var(--text-secondary); margin: 0 0 32px; }

/* --- Header Row: Title + Filter Bar --- */
.pl-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 24px; }
.pl-header-text { flex: 1; min-width: 220px; }

/* --- Category HTML Content (description field) --- */
.pl-cat-html-content {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
}
.pl-cat-html-content > *:last-child {
  margin-bottom: 0;
}

/* --- Sub-category Showcase --- */
.pl-subcat-showcase {
  margin-bottom: 48px;
}
.pl-subcat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pl-subcat-card {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 12px;
  padding: 20px 22px;
  transition: all .25s ease;
}
.pl-subcat-card:hover {
  border-color: #d4d8dd;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.pl-subcat-card__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 12px;
}
.pl-subcat-card__title svg {
  flex-shrink: 0;
  opacity: .5;
  transition: opacity .2s;
}
.pl-subcat-card__title:hover {
  color: #c4161c;
}
.pl-subcat-card__title:hover svg {
  opacity: 1;
}
.pl-subcat-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pl-subcat-card__list li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 6px;
}
.pl-subcat-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c9cdd4;
}
.pl-subcat-card__list li a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .2s;
}
.pl-subcat-card__list li a:hover {
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .pl-subcat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .pl-subcat-grid {
    grid-template-columns: 1fr;
  }
  .pl-subcat-card {
    padding: 16px 18px;
  }
}

/* --- Filter Bar --- */
.pl-filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; }

/* Dropdown */
.pl-filter-dropdown { position: relative; }
.pl-filter-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-primary, #1a2332);
  background: #fff; border: 1px solid #d4d8dd;
  cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.pl-filter-toggle:hover { border-color: var(--text-primary, #1a2332); }
.pl-filter-toggle svg { flex-shrink: 0; transition: transform .2s ease; }
.pl-filter-dropdown.open .pl-filter-toggle svg { transform: rotate(180deg); }
.pl-filter-dropdown.open .pl-filter-toggle { border-color: var(--primary, #98292b); color: var(--primary, #98292b); }

/* Dropdown Menu */
.pl-filter-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
  min-width: 200px; max-width: 280px;
  background: #fff; border: 1px solid #e2e6eb; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.10), 0 0 0 1px rgba(0,0,0,.04);
  padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(-4px); transition: all .2s ease;
}
.pl-filter-dropdown.open .pl-filter-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.pl-filter-option {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 14px; color: var(--text-primary, #1a2332); text-decoration: none;
  transition: background .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-filter-option:hover { background: #f5f6f8; }
.pl-filter-option.active { background: rgba(152,41,43,.08); color: var(--primary, #98292b); font-weight: 600; }
.pl-filter-clear { border-top: 1px solid #f0f2f5; margin-top: 4px; padding-top: 8px; color: var(--text-muted, #9ba3af); font-size: 13px; }
.pl-filter-clear:hover { color: var(--primary, #98292b); }

/* All Filters button */
.pl-filter-all {
  display: inline-flex; align-items: center;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-primary, #1a2332);
  background: #fff; border: 1px solid #d4d8dd;
  text-decoration: none; transition: all .2s ease; white-space: nowrap;
}
.pl-filter-all:hover { border-color: var(--primary, #98292b); color: var(--primary, #98292b); background: rgba(152,41,43,.04); }

/* Active filter tags */
.pl-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; align-items: center; }
.pl-filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text-primary, #1a2332);
  background: #f0f2f5; border: 1px solid #e2e6eb;
}
.pl-filter-tag a { display: inline-flex; align-items: center; color: var(--text-muted, #9ba3af); text-decoration: none; transition: color .2s; }
.pl-filter-tag a:hover { color: var(--primary, #98292b); }
.pl-filter-tag-clear { background: transparent; border-style: dashed; cursor: pointer; color: var(--text-muted, #9ba3af); }
.pl-filter-tag-clear:hover { color: var(--primary, #98292b); border-color: var(--primary, #98292b); }

/* --- Sub-category Pill Filters --- */
.pl-subcat-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; }
.pl-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-primary, #1a2332);
  background: #fff; border: 1px solid #e2e6eb;
  text-decoration: none; cursor: pointer;
  transition: all .2s ease; white-space: nowrap;
}
.pl-pill:hover {
  border-color: var(--primary, #98292b); color: var(--primary, #98292b);
  background: rgba(152,41,43,.04);
}
.pl-pill.active {
  background: var(--primary, #98292b); color: #fff; border-color: var(--primary, #98292b);
  font-weight: 600;
}
.pl-pill.active:hover {
  background: #7a2123; border-color: #7a2123; color: #fff;
}

/* --- Product Card Grid --- */
.pl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* --- Product Card --- */
.p-card { background: #fff; border: 1px solid #eef0f4; border-radius: 12px; overflow: hidden; transition: all .3s ease; cursor: pointer; display: flex; flex-direction: column; text-decoration: none; }
.p-card:hover { border-color: rgba(152,41,43,.2); box-shadow: 0 12px 40px rgba(0,0,0,.10); transform: translateY(-4px); }

/* 图片区：白底，padding 留出空间，图片居中展示 */
.p-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #f0f2f5;
    padding: 16px;
    box-sizing: border-box;
}
.p-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}
.p-card:hover .p-card-img img { transform: scale(1.04); }
.p-card-img svg { width: 64px; height: 64px; stroke: #ccc; opacity: .5; }

.p-card-body { padding: 20px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.p-card-title { font-size: 17px; font-weight: 700; color: var(--text-primary, #1a2332); margin: 0 0 8px; line-height: 1.35; }
.p-card-model { font-size: 12px; color: var(--text-muted, #9ba3af); font-weight: 500; margin: 0 0 8px; letter-spacing: .2px; }
.p-card-desc { font-size: 13.5px; color: var(--text-secondary, #5f6b7a); line-height: 1.6; margin: 0 0 18px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p-card-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--primary, #98292b); text-decoration: none; transition: gap .2s; }
.p-card-link svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.p-card:hover .p-card-link { gap: 9px; }


/* ============================================================
   PRODUCT DETAIL PAGE — Meditech.com.cn style
   ============================================================ */

/* --- Detail Hero: two-column --- */
.pd-hero { padding: 48px 0; background: #fff; }
.pd-hero-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 540px) 1fr; gap: 56px; align-items: start; }

/* --- Gallery (left) — constrained width, centered within column --- */
.pd-gallery { position: sticky; top: 100px; }
.pd-main-img { width: 100%; aspect-ratio: 4/3;  display: flex; align-items: center; justify-content: center; overflow: visible; position: relative; }
.pd-main-img .gallery-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease; }
.pd-main-img .gallery-slide.active { opacity: 1; }
.pd-main-img .gallery-slide img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.pd-main-img .gallery-slide svg { width: 160px; height: 160px; stroke: var(--primary); opacity: .15; }

/* --- Certification Overlay — floating badge row on gallery --- */
.pd-cert-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04);
}
.pd-cert-badge {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}
.pd-cert-badge:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
}
.pd-cert-badge.active {
  border-color: #98292b !important;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 3px 12px rgba(152,41,43,.18);
}
.pd-cert-badge.active .pd-cert-tooltip {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
  pointer-events: auto !important;
}
.pd-cert-badge svg {
  width: 24px;
  height: 24px;
  display: block;
}
.pd-cert-badge img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* --- Certification Tooltip (above active badge) --- */
.pd-cert-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity .2s ease, transform .2s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
  z-index: 10;
}
.pd-cert-tooltip-text {
  display: block;
  background: #fff;
  color: #1a2332;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.4;
  box-shadow: 0 3px 16px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.04);
  letter-spacing: .2px;
}
.pd-cert-tooltip-arrow {
  display: block;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 6px solid #fff;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.06));
  margin-top: -1px;
}

.pd-thumbs { display: flex; gap: 10px; margin-top: 14px; justify-content: center; }
.pd-thumb { width: 72px; height: 72px; border-radius: 8px; border: 2px solid transparent; background: #f8f9fb; cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pd-thumb:hover { border-color: #c0c4ca; }
.pd-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(152,41,43,.12); }

/* --- Product Info (right) --- */
.pd-info { padding-top: 4px; }
.pd-info h1 { font-size: 28px; font-weight: 700; color: var(--text-primary); margin: 0 0 8px; line-height: 1.3; letter-spacing: -.01em; }
.pd-subtitle { font-size: 14px; color: var(--text-muted); margin: 0 0 24px; font-weight: 500; }
.pd-introduction { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin: 0 0 32px; }
/* --- Certification Badges --- */
.pd-certs { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 40px; }
.pd-cert { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-secondary); }
.pd-cert svg { width: 28px; height: 28px; flex-shrink: 0; }
.pd-cert span { line-height: 1.3; white-space: nowrap; }
/* --- Quick Links Accordion --- */

.pd-info-divider { width: 48px; height: 3px; background: var(--primary); border-radius: 2px; margin-bottom: 18px; }




/* --- Breadcrumb (detail page version) --- */
.pd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 12px 0 4px;
  font-size: 13px;
}
.pd-breadcrumb-link {
  color: #6a7688;
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.pd-breadcrumb-link:hover { color: var(--text-primary, #1a2332); text-decoration: underline; }
.pd-breadcrumb-current {
  color: var(--text-primary, #1a2332);
  font-weight: 700;
}
.pd-breadcrumb-current:hover { text-decoration: none; }
.pd-breadcrumb-sep {
  width: 14px;
  height: 14px;
  color: #c4cdd6;
  flex-shrink: 0;
}

/* --- Description + Read More --- */
.pd-description {


  padding: 20px 0px;
  margin-top: 0px;
  position: relative;
}
.pd-summary {
  font-size: 14px;
  color: var(--text-secondary, #5f6b7a);
  line-height: 1.75;
  position: relative;
}
.pd-summary h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #1a2332);
  margin: 0 0 10px;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.pd-summary h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.pd-summary strong {
  font-weight: 700;
}

.pd-summary p {
  margin: 0 0 10px;
}
.pd-summary p:last-child { margin-bottom: 0; }

.pd-summary .alignright {
  text-align: right; margin: 0.5em 0 0.5em 1em;
}

.pd-summary .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.pd-summary  .alignleft {
  float: left;
  margin: 0.5em 1em 0.5em 0;
}

.pd-summary .alignnone {
  float: none;
}

.pd-summary ul,
.pd-summary ol {
  margin: 0 0 10px;
  padding-left: 18px;
}
.pd-summary ul:last-child,
.pd-summary ol:last-child { margin-bottom: 0; }
.pd-summary li {
  margin-bottom: 4px;
  padding-left: 2px;
}
.pd-summary li::marker {
  color: var(--primary, #98292b);
}
.pd-desc-full {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.4,0,.2,1);
}
.pd-desc-full.expanded { max-height: 2000px; }
.pd-desc-full-inner {
  padding-top: 16px;
  border-top: 1px solid #eef0f4;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary, #5f6b7a);
  line-height: 1.75;
}
.pd-desc-full-inner h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #1a2332);
  margin: 20px 0 10px;
  line-height: 1.3;
}
.pd-desc-full-inner h2:first-child { margin-top: 0; }
.pd-desc-full-inner h3,
.pd-desc-full-inner strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #1a2332);
}
.pd-desc-full-inner p {
  margin: 0 0 10px;
}
.pd-desc-full-inner p:last-child { margin-bottom: 0; }
.pd-desc-full-inner ul,
.pd-desc-full-inner ol {
  margin: 0 0 10px;
  padding-left: 18px;
}
.pd-desc-full-inner li {
  margin-bottom: 4px;
  padding-left: 2px;
}
.pd-desc-full-inner li::marker {
  color: var(--primary, #98292b);
}
.pd-desc-img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #f0f2f5, #e8ecf1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #eef0f4;
  margin: 12px 0;
}
.pd-desc-img svg { width: 48px; height: 48px; stroke: var(--primary); opacity: .18; }
.pd-desc-img-label { font-size: 12px; color: var(--text-muted); text-align: center; margin: 8px 0 0; }
.pd-readmore {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary, #98292b);
  cursor: pointer;
  border: none;
  background: none;
  padding: 8px 0 0;
  text-decoration: none;
  transition: opacity .2s;
}
.pd-readmore:hover { opacity: .75; }
.pd-readmore svg { width: 14px; height: 14px; transition: transform .25s; }
.pd-readmore.expanded svg { transform: rotate(180deg); }

/* --- Hero CTA --- */
.pd-cta { display: flex; gap: 12px; margin-top: 24px; margin-bottom: 24px; }
.pd-btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s; }
.pd-btn-primary:hover { background: #822427; }
.pd-btn-primary svg { width: 18px; height: 18px; }
.pd-btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: transparent; color: var(--primary); border: 1.5px solid var(--primary); border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s; }
.pd-btn-outline:hover { background: var(--primary-lighter); }
.pd-btn-outline svg { width: 18px; height: 18px; }

/* ============================================================
   TAB NAVIGATION
   ============================================================ */
.pd-tabs-wrap { background: #fff; border-bottom: 1px solid #eef0f4; position: sticky; top: 70px; z-index: 10; }
.pd-tabs { max-width: 1320px; margin: 0 auto; padding: 0 24px; display: flex; gap: 0; }
.pd-tab { display: inline-flex; align-items: center; gap: 8px; padding: 16px 24px; font-size: 14px; font-weight: 600; color: var(--text-secondary); background: none; border: none; border-bottom: 3px solid transparent; cursor: pointer; transition: all .2s; white-space: nowrap; }
.pd-tab-icon { width: 13px; height: 13px; stroke-width: 1.5 !important; stroke: currentColor; flex-shrink: 0; }
.pd-tab:hover { color: var(--primary); }
.pd-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* --- Tab Panels --- */
.pd-tab-content { padding: 48px 0 0; background: #f8f9fb; border-top: 1px solid #eef0f4; }
.pd-tab-panel { display: none; max-width: 1320px; margin: 0 auto; padding: 0 24px; animation: pdFadeIn .35s ease; }
.pd-tab-panel.active { display: block; }
@keyframes pdFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* --- Panel Intro Header --- */
.pd-tab-panel-header { margin-bottom: 24px; text-align: center; }
.pd-tab-panel-header h3 { font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 0 0 10px; }
.pd-tab-panel-header p { font-size: 15px; color: var(--text-secondary); margin: 0; line-height: 1.6; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- Content Card Grid --- */
.pd-tab-content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* --- Content Card --- */
.pd-content-card { background: #fff; border: 1px solid #eef0f4; border-radius: 12px; padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,.03); transition: box-shadow .2s; }
.pd-content-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.pd-content-card-full { grid-column: 1 / -1; }
.pd-content-card h2 { font-size: 17px; font-weight: 700; color: var(--text-primary); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); display: flex; align-items: center; gap: 10px; }
.pd-content-card h2:first-child { margin-top: 0; }
.pd-content-card h3 { font-size: 15px; font-weight: 600; color: var(--primary); margin: 24px 0 10px; }
.pd-content-card h3:first-child { margin-top: 0; }
.pd-content-card p { font-size: 14px; line-height: 1.75; color: var(--text-primary); margin: 0 0 14px; }
.pd-content-card p:last-child { margin-bottom: 0; }
.pd-content-card ul,
.pd-content-card ol { font-size: 14px; line-height: 1.7; margin: 0 0 14px; padding-left: 18px; }
.pd-content-card ul { list-style: none; padding-left: 0; }
.pd-content-card ul li { position: relative; padding: 5px 0 5px 22px; }
.pd-content-card ul li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; opacity: .55; }
.pd-content-card ol { padding-left: 20px; }
.pd-content-card ol li { padding: 3px 0; }
.pd-content-card strong { color: var(--text-primary); font-weight: 600; }
.pd-content-card table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; }
.pd-content-card table th,
.pd-content-card table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #f0f2f5; }
.pd-content-card table th { font-weight: 600; color: var(--text-secondary); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; background: #f8f9fb; }
.pd-content-card table tr:last-child td { border-bottom: none; }
.pd-content-card table tr:hover td { background: #fafbfc; }
.pd-accessories-content a{ color: var(--primary); text-decoration: underline;}

/* ═══════════════════════════════════════════════════════════
   段落间距 — 兼容 <p> / <div> / <br> 三种格式
   ═══════════════════════════════════════════════════════════ */
.pd-features-content,
.pd-specs-content,
.pd-accessories-content,
.pd-summary,
.pd-desc-full-inner {
    line-height: 1.75;
}
/* <p> 段落间距 */
.pd-features-content p,
.pd-specs-content p,
.pd-accessories-content p,
.pd-summary p,
.pd-desc-full-inner p {
    margin: 0 0 12px;
}
.pd-features-content p:last-child,
.pd-specs-content p:last-child,
.pd-accessories-content p:last-child,
.pd-summary p:last-child,
.pd-desc-full-inner p:last-child {
    margin-bottom: 0;
}
/* 旧 <div> 格式（向后兼容） */
.pd-features-content > div,
.pd-specs-content > div,
.pd-accessories-content > div,
.pd-summary > div,
.pd-desc-full-inner > div {
    margin-bottom: 10px;
}
.pd-features-content > div:last-child,
.pd-specs-content > div:last-child,
.pd-accessories-content > div:last-child,
.pd-summary > div:last-child,
.pd-desc-full-inner > div:last-child {
    margin-bottom: 0;
}
/* 显式段落间距（手动 spacer 按钮） */
.mdg-spacer {
    height: 30px;
    margin: 0 !important;
    line-height: 1 !important;
    min-height: 0 !important;
}

/* --- Specs Table (alternating style) --- */
.pd-specs-table { width: 100%; border-collapse: collapse; }
.pd-specs-table tr { border-bottom: 1px solid #f0f2f5; }
.pd-specs-table tr:last-child { border-bottom: none; }
.pd-specs-table td { padding: 14px 16px; font-size: 14px; line-height: 1.5; }
.pd-specs-table td:first-child { font-weight: 600; color: var(--text-secondary); width: 220px; background: #f8f9fb; border-right: 1px solid #f0f2f5; }
.pd-specs-table td:last-child { color: var(--text-primary); }
.pd-specs-table tr:hover td { background: #fafbfc; }
.pd-specs-table tr:hover td:first-child { background: #f0f2f5; }

/* --- Product Overview Grid --- */
.pd-overview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pd-overview-card { display: flex; align-items: flex-start; gap: 14px; padding: 20px; background: #fff; border: 1px solid #eef0f4; border-radius: 10px; }
.pd-overview-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: var(--primary-lighter, #fdf6f6); border-radius: 8px; flex-shrink: 0; }
.pd-overview-icon svg { width: 22px; height: 22px; stroke: var(--primary, #98292b); }
.pd-overview-body { display: flex; flex-direction: column; gap: 4px; }
.pd-overview-label { font-size: 12px; font-weight: 600; color: var(--text-secondary, #666); text-transform: uppercase; letter-spacing: 0.5px; }
.pd-overview-value { font-size: 15px; font-weight: 600; color: var(--text-primary, #222); }

/* --- Inquiry Panel --- */
.pd-inquiry-card { background: linear-gradient(135deg, #fff 0%, #fafbfc 100%); border: 1px solid #eef0f4; border-radius: 12px; padding: 48px 40px; text-align: center; max-width: 680px; margin: 0 auto; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.pd-inquiry-card h3 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin: 0 0 12px; }
.pd-inquiry-card p { font-size: 15px; color: var(--text-secondary); margin: 0 0 28px; line-height: 1.7; }
.pd-inquiry-link { display: inline-flex; align-items: center; gap: 8px; padding: 14px 36px; background: var(--primary); color: #fff; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; transition: all .2s; box-shadow: 0 2px 8px rgba(152,41,43,.25); }
.pd-inquiry-link:hover { background: #822427; box-shadow: 0 4px 16px rgba(152,41,43,.35); transform: translateY(-1px); }
.pd-inquiry-link svg { width: 18px; height: 18px; }

/* --- Related Products (2-card grid for Meditech style) --- */
/* ============================================================
   RELATED ITEMS — Horizontal scroll carousel (matches .p-card style)
   ============================================================ */
.pd-related { padding: 48px 0; background: #f8f9fb; }
.pd-related-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.pd-related-header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 32px; }
.pd-related-header h2 { font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 0; }

/* Nav buttons */
.pd-related-nav { display: flex; gap: 8px; }
.pd-related-nav button {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid #e0e2e6; background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s ease; color: var(--text-primary);
}
.pd-related-nav button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pd-related-nav button:disabled { opacity: .35; cursor: not-allowed; }
.pd-related-nav button svg { width: 16px; height: 16px; }

/* Scroll container */
.pd-related-scroll-wrap { position: relative; overflow: hidden; }
.pd-related-scroll {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 4px 0; /* room for hover shadow */
}
.pd-related-scroll::-webkit-scrollbar { display: none; }

/* Card — matches .p-card style */
.pd-rel-card {
  flex: 0 0 300px;
  background: #fff; border: 1px solid #eef0f4; border-radius: 12px;
  overflow: hidden; transition: all .3s ease;
  cursor: pointer; display: flex; flex-direction: column;
  text-decoration: none;
}
.pd-rel-card:hover { border-color: rgba(152,41,43,.2); box-shadow: 0 12px 40px rgba(0,0,0,.10); transform: translateY(-4px); }

/* Image area: white bg, padding, centred */
.pd-rel-img {
  width: 100%; aspect-ratio: 4 / 3; height: auto; background: #fff;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  border-bottom: 1px solid #f0f2f5;
  padding: 16px; box-sizing: border-box;
}
.pd-rel-img img {
  width: 100%; height: 100%;
  object-fit: contain; transition: transform .4s ease;
}
.pd-rel-card:hover .pd-rel-img img { transform: scale(1.04); }
.pd-rel-img svg { width: 64px; height: 64px; stroke: #ccc; opacity: .5; }

.pd-rel-body { padding: 20px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.pd-rel-title { font-size: 17px; font-weight: 700; color: var(--text-primary,#1a2332); margin: 0 0 8px; line-height: 1.35; }
.pd-rel-desc { font-size: 13.5px; color: var(--text-secondary,#5f6b7a); line-height: 1.6; margin: 0 0 18px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pd-rel-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--primary,#98292b); text-decoration: none; transition: gap .2s; }
.pd-rel-link svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pd-rel-card:hover .pd-rel-link { gap: 9px; }


/* ============================================================
   MEDITECH LIBRARY — News & Events style card grid
   ============================================================ */
.library-section { padding: 48px 0; background: #fff; }
/* 产品列表页：相邻同底色模块避免留白叠加过宽 */
.pl-products + .library-section { padding-top: 24px; }
.library-section .section-container { max-width: 1320px; margin: 0 auto; padding: 0 18px; }
.library-section .section-header { text-align: center; margin-bottom: 24px; }
.library-section .section-header-label { display: inline-flex; align-items: center; gap: 16px; }
.library-section .section-header-line { width: 60px; height: 1px; background: var(--border-color, #e2e8f0); }
.library-section .section-header-title { font-size: 22px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--primary); }

.library-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.lib-card { background: #fff; border: 1px solid #eef0f4; border-radius: 14px; padding: 32px 26px 28px; display: flex; flex-direction: column; gap: 16px; transition: all .3s ease; position: relative; overflow: hidden; }
.lib-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.lib-card:hover { border-color: rgba(152,41,43,.2); box-shadow: 0 8px 32px rgba(0,0,0,.07); transform: translateY(-4px); }
.lib-card:hover::before { transform: scaleX(1); }
.lib-card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-lighter, #fdf2f2), #faf5f5); flex-shrink: 0; }
.lib-card-icon svg { width: 20px; height: 20px; color: var(--primary); stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lib-card-title { font-size: 17px; font-weight: 700; color: var(--text-primary); line-height: 1.38; letter-spacing: -.2px; transition: color .2s ease; }
.lib-card:hover .lib-card-title { color: var(--primary); }
.lib-card-desc { font-size: 14px; line-height: 1.65; color: var(--text-secondary); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lib-card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; transition: gap .2s; margin-top: auto; }
.lib-card-link:hover { gap: 10px; }
.lib-card-link svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1024px) {
  .library-section { padding: 40px 0; }
  .library-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 600px) {
  .library-section { padding: 32px 0; }
  .library-section .section-container { padding: 0 18px; }
  .library-section .section-header { margin-bottom: 16px; }
  .library-section .section-header-title { font-size: 18px; letter-spacing: 2px; }
  .library-grid { grid-template-columns: 1fr; gap: 18px; }
  .lib-card { padding: 24px 20px 20px; }
  .lib-card-title { font-size: 16px; }
}

/* ============================================================
   RESPONSIVE — Shared product page breakpoints
   ============================================================ */

/* ≤ 1024px — tablet */
@media (max-width: 1024px) {
  .pl-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .pd-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .pd-gallery { position: static; max-width: none; width: 100%; }
  .pd-main-img { aspect-ratio: auto; min-height: auto; }
  .pd-cert-overlay {
    position: absolute !important;
    bottom: 8px !important;
    right: 8px !important;
    gap: 5px !important;
    padding: 4px 7px !important;
    background: rgba(255,255,255,.7) !important;
    backdrop-filter: blur(10px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(120%) !important;
    border: 1px solid rgba(255,255,255,.4) !important;
    border-radius: 22px !important;
    box-shadow: 0 1px 8px rgba(0,0,0,.06) !important;
    width: auto !important;
    margin-top: 0 !important;
  }
  .pd-cert-badge { width: 28px !important; height: 28px !important; }
  .pd-cert-badge svg,
  .pd-cert-badge img { width: 18px !important; height: 18px !important; }
  .pd-cert-tooltip-text { font-size: 12px; padding: 6px 12px; }
  .pd-rel-card { flex: 0 0 280px; }
  .pd-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pd-tab { flex-shrink: 0; }
}

/* ≤ 768px — mobile landscape */
@media (max-width: 768px) {
  .pl-hero { padding: 32px 0; }
  .pl-hero h1 { font-size: 32px; }
  .pl-hero-desc { font-size: 15px; }
  .pl-products { padding: 32px 0; }
  .pl-section-title { font-size: 24px; }
  .pl-grid { grid-template-columns: 1fr; gap: 18px; }
  .pl-header-row { flex-direction: column; gap: 20px; }
  .pl-filter-bar { width: 100%; }
  .pl-filter-toggle, .pl-filter-all { padding: 8px 14px; font-size: 13px; }
  .pl-filter-menu { left: 0; right: auto; max-width: 240px; }

  .pd-hero { padding: 20px 0 32px; }
  .pd-hero-inner { padding: 0 12px; gap: 24px; }
  .pd-info h1 { font-size: 22px; }
  .pd-subtitle { font-size: 13px; }
  .pd-certs { gap: 10px; }
  .pd-cert { font-size: 11px; gap: 5px; }
  .pd-cert svg { width: 22px; height: 22px; }
  .pd-cert span { white-space: nowrap; font-size: 11px; }
  .pd-gallery { max-width: 100%; width: 100%; }
  .pd-main-img { aspect-ratio: auto; min-height: 280px; }
  .pd-main-img .gallery-slide img { width: 100%; height: 100%; object-fit: cover; padding: 0; }
  .pd-cert-overlay {
    position: absolute !important;
    bottom: 6px !important;
    right: 6px !important;
    gap: 4px !important;
    padding: 3px 6px !important;
    background: rgba(255,255,255,.65) !important;
    backdrop-filter: blur(8px) saturate(110%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(110%) !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    width: auto !important;
    margin-top: 0 !important;
  }
  .pd-cert-badge { width: 24px !important; height: 24px !important; }
  .pd-cert-badge svg,
  .pd-cert-badge img { width: 16px !important; height: 16px !important; }
  .pd-thumbs { gap: 10px; justify-content: center; }
  .pd-thumb { width: 68px; height: 68px; }
  .pd-cta { flex-direction: column; }
  .pd-btn-primary, .pd-btn-outline { justify-content: center; }
  .pd-description { padding: 16px 18px; }
  .pd-summary { font-size: 13px; }
  .pd-summary h2 { font-size: 16px; }
  .pd-desc-full-inner { font-size: 13px; }
  .pd-desc-full-inner h2 { font-size: 16px; }
  .pd-breadcrumb { font-size: 12px; margin: 8px 0 2px; }
  .pd-breadcrumb-sep { width: 12px; height: 12px; }
  .pd-tab-content { padding: 40px 0 0; }
  .pd-related { padding: 40px 0; }
  .pd-related-header { margin: 0 0 20px; }
  .pd-related-header h2 { font-size: 20px; }
  .pd-related-nav button { width: 32px; height: 32px; }
  .pd-rel-card { flex: 0 0 260px; }
  .pd-rel-title { font-size: 15px; }
  .pd-rel-desc { font-size: 13px; }
  .pd-inquiry-card { padding: 24px; }
  .pd-content-card { padding: 20px; }
  .pd-content-card h2 { font-size: 16px; }
  .pd-tab-panel-header h3 { font-size: 18px; }
  .pd-tab-panel-header p { font-size: 13px; }
}
@media (max-width: 600px) {
  .pd-content-card { padding: 16px; }
  .pd-content-card h2 { font-size: 15px; }
  .pd-specs-table td:first-child { width: 120px; font-size: 12px; }
  .pd-specs-table td:last-child { font-size: 13px; }
}

/* ============================================================
   PAGINATION — WordPress paginate_links( type='list' )
   Output: <ul class="page-numbers"><li><a class="page-numbers">
   Used on: archive-product.php, taxonomy-product_category.php
   ============================================================ */
.pl-pagination,
.site-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding: 20px 0;
}
ul.page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none !important;
  margin: 0;
  padding: 0;
}
ul.page-numbers li {
  margin: 0;
}
ul.page-numbers a,
ul.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary, #4a5568);
  background: #fff;
  border: 1.5px solid #e2e6eb;
  text-decoration: none;
  transition: all .2s ease;
  line-height: 1;
  list-style: none !important;
}
ul.page-numbers a:hover {
  border-color: var(--primary, #98292b);
  color: var(--primary, #98292b);
  background: rgba(152,41,43,.04);
  transform: translateY(-1px);
}
ul.page-numbers .current {
  background: var(--primary, #98292b);
  color: #fff;
  border-color: var(--primary, #98292b);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(152,41,43,.25);
}
ul.page-numbers .dots {
  border: none;
  background: transparent;
  color: var(--text-muted, #8896ab);
  cursor: default;
  padding: 0 4px;
}
ul.page-numbers .prev svg,
ul.page-numbers .next svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  .pl-pagination,
  .site-pagination {
    margin-top: 32px;
    gap: 4px;
  }
  ul.page-numbers a,
  ul.page-numbers span {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 8px;
  }
}

/* ≤ 480px — mobile */
@media (max-width: 480px) {
  .pl-hero { padding: 32px 0; }
  .pl-hero h1 { font-size: 26px; }
  .pl-hero-desc { font-size: 14px; }

  .p-card-body { padding: 18px 16px 16px; }
  .p-card-title { font-size: 16px; }

  .p-breadcrumb-inner { font-size: 12px; padding: 10px 18px; }

  .pd-certs { gap: 8px; }
  .pd-cert { font-size: 11px; gap: 4px; }
  .pd-cert svg { width: 20px; height: 20px; }

  .pd-info h1 { font-size: 22px; }
}

/* ========== Quick Links Accordion (Philips-style, no border) ========== */
.pd-quick-links {
  margin-top: 24px;
}
.pd-ql-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0;
}
.pd-ql-item:first-child {
  padding-top: 4px;
}
.pd-ql-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary, #1a1a1a);
  cursor: pointer;
  text-align: left;
}
.pd-ql-toggle:hover {
  opacity: 0.7;
}
.pd-ql-toggle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #333;
  transition: transform 0.25s ease;
}
.pd-ql-item.open .pd-ql-toggle svg {
  transform: rotate(180deg);
}
.pd-ql-content {
  display: none;
  padding-top: 16px;
}
.pd-ql-item.open .pd-ql-content {
  display: block;
}

/* Global support content (from Product Settings page) */
.pd-support-global {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary, #555);
}
.pd-support-global p {
  margin: 0 0 10px;
}
.pd-support-global a {
  color: var(--brand, #c8102e);
  text-decoration: underline;
  text-decoration-color: rgba(200,16,46,0.35);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}
.pd-support-global a:hover {
  text-decoration-color: var(--brand, #c8102e);
}

/* Documentation list (Philips-style) */
.pd-doc-list {
  margin: 0;
}
.pd-doc-item {
  margin-bottom: 20px;
}
.pd-doc-item:last-child {
  margin-bottom: 0;
}
.pd-doc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #1a1a1a);
  margin: 0 0 4px;
}
.pd-doc-item a {
  font-size: 15px;
  color: var(--text-secondary, #555);
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.35);
  text-underline-offset: 2px;
}
.pd-doc-item a:hover {
  text-decoration-color: var(--text-primary, #1a1a1a);
  color: var(--text-primary, #1a1a1a);
}

@media (max-width: 768px) {
  .pd-quick-links { margin-top: 18px; }
  .pd-ql-toggle { font-size: 16px; }
  .pd-support-global { font-size: 14px; }
  .pd-doc-title { font-size: 14px; }
  .pd-doc-item a { font-size: 14px; }
}
/* ============================================================
   PRODUCT LISTING — 容器栏距统一 & Hero 响应式
   ------------------------------------------------------------
   栏距契约：以下四个容器共用 max-width 1320px + 左右 18px，
   保证面包屑 / Hero / 产品网格 / Library 区块左右完全对齐。
   改栏距时四处必须同步：
     .p-breadcrumb-inner        → padding: 14px 18px
     .pl-hero-inner            → padding: 0 18px
     .pl-products-inner        → padding: 0 18px
     .library-section .section-container → padding: 0 18px

   Hero 文字样式原先写在 taxonomy-product_category.php 的内联 style 里，
   内联优先级高于媒体查询 → 平板/手机断点全部失效（h1 恒为 42px）。
   现迁到此处，作用域 body.tax-product_category 只影响产品分类页，
   不影响 archive-product.php 等共用 .pl-hero 的页面。
   注意：作用域特异性 (0,2,1) 高于主题原有 .pl-hero h1 (0,1,1)，
   因此下方各断点必须同样带 body.tax-product_category 前缀才能生效。
   桌面端取值与迁移前内联值逐项一致，视觉零变化。
   ============================================================ */

body.tax-product_category .pl-hero-label {
  display: inline-block;
  background: rgba(152,41,43,0.2);
  border: 1px solid rgba(152,41,43,0.4);
  color: #e8a0a2;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}
body.tax-product_category .pl-hero h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 0 0 16px;
}
body.tax-product_category .pl-hero-desc {
  color: #a0b0cc;
  font-size: 17px;
  max-width: 640px;
  line-height: 1.7;
  margin: 0 0 36px;
}

/* ── 平板横屏 ≤1024px ── */
@media (max-width: 1024px) {
  body.tax-product_category .pl-hero h1 { font-size: 36px; letter-spacing: -.6px; }
  body.tax-product_category .pl-hero-desc { font-size: 16px; margin-bottom: 28px; }
}

/* ── 平板竖屏 / 大屏手机 ≤768px ── */
@media (max-width: 768px) {
  .p-breadcrumb-inner { padding: 12px 18px; font-size: 12.5px; }

  body.tax-product_category .pl-hero-label {
    font-size: 12px;
    letter-spacing: 1.6px;
    padding: 5px 14px;
    margin-bottom: 16px;
  }
  body.tax-product_category .pl-hero h1 { font-size: 32px; letter-spacing: -.4px; }
  body.tax-product_category .pl-hero-desc {
    font-size: 15px;
    line-height: 1.65;
    max-width: none;
    margin-bottom: 24px;
  }
}

/* ── 手机 ≤480px ── */
@media (max-width: 480px) {
  body.tax-product_category .pl-hero-label {
    font-size: 11px;
    letter-spacing: 1.4px;
    padding: 4px 12px;
    margin-bottom: 14px;
  }
  body.tax-product_category .pl-hero h1 { font-size: 26px; letter-spacing: -.2px; }
  body.tax-product_category .pl-hero-desc { font-size: 14px; margin-bottom: 20px; }
}
