/* Single-product B2B detail trial. Scoped to page-specific selectors. */
.pdp-b2b-product {
  --b2b-ink: #141a21;
  --b2b-muted: #697078;
  --b2b-line: #ded8ce;
  --b2b-soft: #f6f3ee;
  --b2b-paper: #fffdf9;
  --b2b-copper: #9a6b3f;
  --b2b-green: #2f6b4f;
  background: var(--b2b-paper);
}

.pdp-b2b-product .pdp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(330px, .78fr);
  gap: 36px;
  align-items: start;
  margin-top: 14px;
}

.pdp-b2b-product .crumbs {
  margin-bottom: 10px;
}

.pdp-b2b-product .pdp-hero-gallery {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  grid-template-areas: "thumbs main";
  gap: 16px;
  position: relative;
  align-items: start;
}

.pdp-b2b-product .pdp-hero-gallery::before {
  display: none !important;
  content: none !important;
}

.pdp-b2b-product .pdp-hero-gallery > * {
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
  pointer-events: auto !important;
}

.pdp-b2b-product .pdp-hero-main {
  grid-area: main;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--b2b-line);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(154, 107, 63, .035) 1px, transparent 1px),
    linear-gradient(rgba(154, 107, 63, .035) 1px, transparent 1px),
    #f8f6f1;
  background-size: 28px 28px;
  padding: 18px;
  cursor: zoom-in;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.pdp-b2b-product .pdp-hero-main:focus-visible {
  outline: 3px solid rgba(154, 107, 63, .32);
  outline-offset: 3px;
}

.pdp-b2b-product .pdp-hero-thumbs {
  grid-area: thumbs;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  flex-wrap: nowrap;
  overflow: visible;
}

.pdp-b2b-product .pdp-hero-thumbs img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  border: 1px solid var(--b2b-line);
  background: #fff;
  padding: 4px;
  opacity: 1 !important;
  visibility: visible !important;
}

.pdp-b2b-product .pdp-hero-thumbs img.on {
  border: 2px solid var(--b2b-copper);
}

.b2b-media-label,
.b2b-media-count,
.b2b-zoom-btn {
  position: absolute;
  z-index: 2;
}

.b2b-media-label {
  left: 116px;
  top: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(154, 107, 63, .2);
  border-radius: 4px;
  background: rgba(255, 253, 249, .94);
  color: var(--b2b-copper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.b2b-media-count {
  right: 18px;
  top: 18px;
  color: var(--b2b-muted);
  font-size: 12px;
}

.b2b-zoom-btn {
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(20, 26, 33, .14);
  border-radius: 6px;
  background: rgba(255, 255, 255, .94);
  color: var(--b2b-ink);
  font: 600 13px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: zoom-in;
}

.b2b-zoom-btn svg {
  width: 17px;
  height: 17px;
}

.pdp-b2b-product .pdp-hero-info {
  position: sticky;
  top: 20px;
  padding: 4px 0 0;
}

.pdp-b2b-product .pdp-hero-info .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--b2b-copper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pdp-b2b-product .pdp-hero-info .eyebrow::before {
  width: 22px;
  height: 1px;
  background: var(--b2b-copper);
  content: "";
}

.pdp-b2b-product .pdp-hero-info h1 {
  max-width: 15ch;
  margin-bottom: 14px;
  color: var(--b2b-ink);
  font-size: clamp(32px, 3.7vw, 48px);
  line-height: 1.06;
  letter-spacing: -.03em;
}

.pdp-b2b-product .pdp-hero-info .cs-lede {
  max-width: 49ch;
  margin-bottom: 18px;
  color: #4f565e;
  font-size: 15px;
  line-height: 1.62;
}

.pdp-b2b-product .pdp-hero-bullets {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin-bottom: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--b2b-line);
  border-bottom: 1px solid var(--b2b-line);
  font-size: 13px;
}

.pdp-b2b-product .pdp-hero-bullets li {
  padding-left: 20px;
}

.pdp-b2b-product .pdp-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.pdp-b2b-product .pdp-trust span {
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--b2b-line);
  border-radius: 6px;
  background: #fff;
}

.pdp-b2b-product .pdp-trust b {
  color: var(--b2b-ink);
  font-size: 12px;
  line-height: 1.35;
}

.pdp-b2b-product .pdp-hero-actions {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 9px;
  margin: 0 0 14px;
}

.pdp-b2b-product .pdp-hero-actions .btn {
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 5px;
  text-align: center;
}

.pdp-b2b-product .pdp-hero-actions .btn-primary {
  background: var(--b2b-copper);
  color: #fff;
}

.pdp-b2b-product .pdp-hero-actions .btn-ghost {
  border-color: var(--b2b-ink);
  color: var(--b2b-ink);
}

.pdp-b2b-product .pdp-hero-actions.b2b-actions-superseded {
  display: none;
}

.pdp-b2b-product .pdp-hero-info .ajmz-q-pdp {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
}

.pdp-b2b-product .pdp-hero-info .ajmz-q-pdp .ajmz-q-btn {
  min-height: 46px;
  margin: 0;
  border-radius: 5px;
}

.pdp-b2b-product .pdp-spec {
  margin: 0;
  border: 1px solid var(--b2b-line);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
}

.pdp-b2b-product .pdp-spec tr + tr {
  border-top: 1px solid #eee9e1;
}

.pdp-b2b-product .pdp-spec th,
.pdp-b2b-product .pdp-spec td {
  padding: 9px 11px;
  vertical-align: top;
}

.pdp-b2b-product .pdp-spec th {
  width: 34%;
  color: var(--b2b-muted);
  font-weight: 500;
}

.b2b-rfq-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px 13px;
  border-left: 3px solid var(--b2b-green);
  background: #f1f6f3;
  color: #3f5449;
  font-size: 12px;
  line-height: 1.5;
}

.b2b-rfq-note b {
  display: block;
  margin-bottom: 2px;
  color: #234536;
}

/* 2026-11-06：融入式章节导航。静态位于主图卡之后；滚过主图后才吸顶。 */
.pdp-b2b-product {
  --b2b-header-h: 0px;
}

.b2b-section-nav-sentinel {
  width: 1px;
  height: 1px;
  margin-top: 24px;
}

.b2b-section-nav {
  position: sticky;
  top: var(--b2b-header-h);
  z-index: 20;
  display: flex;
  align-items: stretch;
  gap: 4px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  border-top: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.b2b-section-nav::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 1px;
  display: none;
  width: 32px;
  background: linear-gradient(90deg, rgba(255, 253, 249, 0), #fffdf9 78%);
  content: "";
  pointer-events: none;
}

.b2b-section-nav.is-scrollable::after {
  display: block;
}

.b2b-section-nav.is-stuck::after {
  background: linear-gradient(90deg, rgba(251, 248, 243, 0), #fbf8f3 78%);
}

.b2b-section-nav-scroll {
  display: flex;
  align-items: stretch;
  gap: 4px;
  box-sizing: border-box;
  width: 100%;
  padding: 0 max(24px, calc((100% - 1132px) / 2));
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.b2b-section-nav-scroll::-webkit-scrollbar {
  display: none;
}

.b2b-section-nav.is-stuck {
  border-bottom-color: var(--b2b-line);
  background: #fbf8f3;
  box-shadow: 0 2px 8px rgba(30, 27, 22, .06);
}

.b2b-section-nav a {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 0;
  color: #4a443b;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.b2b-section-nav a::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 2.5px;
  background: transparent;
  content: "";
}

.b2b-section-nav a:hover {
  background: rgba(154, 107, 63, .06);
  color: #82551f;
}

.b2b-section-nav a[aria-current="location"] {
  color: #82551f;
  font-weight: 600;
}

.b2b-section-nav a[aria-current="location"]::after {
  background: #9c6b32;
}

.b2b-section-nav a:focus-visible {
  outline: 2px solid rgba(154, 107, 63, .38);
  outline-offset: -3px;
}

@media (min-width: 881px) {
  .b2b-section-nav-sentinel {
    margin-top: 121px;
  }
}

.b2b-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #101419;
  color: #fff;
}

.b2b-lightbox::backdrop {
  background: #101419;
}

.b2b-lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.b2b-lightbox-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.b2b-lightbox-title {
  overflow: hidden;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b2b-lightbox-count {
  font-size: 12px;
  letter-spacing: .08em;
}

.b2b-lightbox-tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.b2b-icon-btn {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  cursor: pointer;
}

.b2b-icon-btn:hover {
  background: rgba(255, 255, 255, .15);
}

.b2b-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.b2b-lightbox-stage {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: auto;
  padding: 24px 76px;
}

.b2b-lightbox-stage img {
  display: block;
  max-width: min(92vw, 1500px);
  max-height: calc(100vh - 112px);
  object-fit: contain;
  cursor: zoom-in;
}

.b2b-lightbox-stage img.is-zoomed {
  width: min(1800px, 175vw);
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.b2b-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.b2b-lightbox-nav.prev {
  left: 18px;
}

.b2b-lightbox-nav.next {
  right: 18px;
}

.pdp-b2b-product .pdp-sticky-bar {
  border-top-color: rgba(154, 107, 63, .25);
}

.pdp-b2b-product .pdp-sticky-bar h4 {
  max-width: 48vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .pdp-b2b-product .pdp-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pdp-b2b-product .pdp-hero-info {
    position: static;
  }

  .pdp-b2b-product .pdp-hero-info h1 {
    max-width: 20ch;
  }
}

@media (max-width: 640px) {
  .pdp-b2b-product .pdp-hero-gallery {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "thumbs";
    gap: 10px;
  }

  .pdp-b2b-product .pdp-hero-main {
    padding: 10px;
  }

  .pdp-b2b-product .pdp-hero-thumbs {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .pdp-b2b-product .pdp-hero-thumbs img {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
  }

  .b2b-media-label {
    left: 12px;
    top: 12px;
  }

  .b2b-media-count {
    top: 14px;
    right: 14px;
  }

  .b2b-zoom-btn {
    right: 12px;
    bottom: 92px;
  }

  .pdp-b2b-product .pdp-hero-bullets,
  .pdp-b2b-product .pdp-trust {
    grid-template-columns: 1fr 1fr;
  }

  .pdp-b2b-product .pdp-hero-actions {
    grid-template-columns: 1fr;
  }

  .pdp-b2b-product .pdp-hero-info .ajmz-q-pdp {
    grid-template-columns: 1fr;
  }

  .b2b-section-nav-scroll {
    padding-right: 16px;
    padding-left: 16px;
  }

  .b2b-section-nav a {
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }

  .b2b-section-nav a::after {
    right: 12px;
    left: 12px;
  }

  .b2b-lightbox-bar {
    grid-template-columns: 1fr auto;
    padding: 9px 12px;
  }

  .b2b-lightbox-title {
    display: none;
  }

  .b2b-lightbox-stage {
    padding: 18px 46px;
  }

  .b2b-lightbox-nav.prev {
    left: 8px;
  }

  .b2b-lightbox-nav.next {
    right: 8px;
  }

  .pdp-b2b-product .pdp-sticky-bar .btn-ghost {
    display: none;
  }

  .pdp-b2b-product .pdp-sticky-bar h4 {
    max-width: 62vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdp-b2b-product *,
  .b2b-lightbox * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* 2026-11-20 site repair: keep anchors clear of both sticky layers and reserve
   document space for the quotation bar once it is visible. */
.pdp-b2b-product {
  --b2b-nav-h: 48px;
  --b2b-sticky-h: 0px;
}

#key-data,
#buyer-guide,
#product-details,
#pdp-panel-qa,
#product-field-notes,
.pdp-buyer-guide .bg-faq {
  scroll-margin-top: calc(
    var(--b2b-header-h, 0px) + var(--b2b-nav-h, 48px) + 16px
  );
}

.pdp-b2b-product.pdp-sticky-visible {
  padding-bottom: max(
    112px,
    calc(var(--b2b-sticky-h, 0px) + env(safe-area-inset-bottom, 0px))
  );
}

.b2b-lightbox-stage img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 152px);
  max-height: calc(100vh - 112px);
}

@media (max-width: 880px) {
  .pdp-b2b-product.pdp-sticky-visible {
    padding-bottom: max(
      180px,
      calc(var(--b2b-sticky-h, 0px) + env(safe-area-inset-bottom, 0px))
    );
  }

  .b2b-section-nav {
    background: #fbf8f3;
  }

  .b2b-section-nav::after {
    display: none;
  }

  .b2b-section-nav-scroll {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    padding: 8px 12px;
    overflow: visible;
  }

  .b2b-section-nav a {
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    text-align: center;
    white-space: normal;
  }

  .pdp-b2b-product .pdp-sticky-bar {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .pdp-sticky-bar .actions .btn,
  .pdp-sticky-bar .actions a {
    min-height: 44px;
  }

  .b2b-lightbox-stage {
    padding: 14px 46px;
  }

  .b2b-lightbox-stage img {
    max-width: calc(100vw - 108px);
    max-height: calc(100vh - 104px);
  }
}
