/* Product technical drawing cards: keep every image and caption consistent. */
/* Product-detail breadcrumb starts from Products; keep the header Home link. */
.hongxin-minimal main > div > section:first-child > div > div > button:first-child,
.hongxin-minimal main > div > section:first-child > div > div > button:first-child + svg {
  display: none !important;
}

/* Product catalog cards: image-first square layout without summary copy. */
.hongxin-minimal main main article > div:first-child {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  padding: clamp(18px, 3vw, 34px) !important;
  box-sizing: border-box;
}

.hongxin-minimal main main article > div:first-child img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
}

.hongxin-minimal main main article > div:last-child > h3 + p {
  display: none !important;
}

.hongxin-minimal main main article > div:last-child > h3 + p + div {
  margin-top: 24px !important;
}

html[data-hongxin-drawings-empty="true"] #technical-drawings {
  display: none !important;
}

#technical-drawings.hongxin-drawings-collapsible {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#technical-drawings .hongxin-drawings-content[hidden] {
  display: none !important;
}

#technical-drawings .hongxin-drawings-toggle {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #061733;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

#technical-drawings .hongxin-drawings-toggle:focus-visible {
  outline: 2px solid #1677ff;
  outline-offset: 4px;
}

#technical-drawings .hongxin-drawings-toggle-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

#technical-drawings[data-expanded="true"] .hongxin-drawings-toggle-icon {
  transform: rotate(225deg);
}

#technical-drawings[data-expanded="true"] > div {
  padding-bottom: 48px;
}

#technical-drawings article {
  display: grid;
  grid-template-rows: auto 40px;
  align-self: stretch;
}

#technical-drawings article > div:first-child {
  width: 100%;
  aspect-ratio: 4 / 3 !important;
  padding: 8px !important;
  overflow: hidden;
  background: #fff !important;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
}

#technical-drawings article > div:first-child img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center;
  position: relative;
  z-index: 1;
}

#technical-drawings article > div:last-child {
  display: flex !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important;
  text-align: center;
  line-height: 1.25;
  box-sizing: border-box;
  overflow: hidden;
}

#technical-drawings .hongxin-drawing-card--interactive {
  cursor: zoom-in;
}

#technical-drawings .hongxin-drawing-card--interactive:focus-visible {
  outline: 3px solid #c9923b;
  outline-offset: 3px;
}

body.hongxin-drawing-modal-open {
  overflow: hidden;
}

.hongxin-drawing-modal[hidden] {
  display: none !important;
}

.hongxin-drawing-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr) auto;
  padding: 14px 78px 24px;
  background: rgba(7, 14, 26, 0.94);
  color: #fff;
  box-sizing: border-box;
}

.hongxin-drawing-modal__topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hongxin-drawing-modal__counter {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hongxin-drawing-modal__close,
.hongxin-drawing-modal__nav {
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.hongxin-drawing-modal__close:hover,
.hongxin-drawing-modal__close:focus-visible,
.hongxin-drawing-modal__nav:hover,
.hongxin-drawing-modal__nav:focus-visible {
  border-color: #c9923b;
  background: #c9923b;
  color: #081426;
  outline: none;
}

.hongxin-drawing-modal__close {
  position: absolute;
  top: 0;
  right: -54px;
  width: 42px;
  height: 42px;
  font-size: 30px;
  line-height: 36px;
}

.hongxin-drawing-modal__stage {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hongxin-drawing-modal__stage img {
  display: block;
  width: auto;
  max-width: min(1120px, 100%);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
}

.hongxin-drawing-modal__nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 24px;
  transform: translateY(-50%);
}

.hongxin-drawing-modal__nav--previous {
  left: 18px;
}

.hongxin-drawing-modal__nav--next {
  right: 18px;
}

.hongxin-drawing-modal__specification {
  width: min(720px, 100%);
  max-height: 210px;
  margin: 16px auto 0;
  padding: 16px 20px;
  border-left: 4px solid #c9923b;
  background: #102440;
  box-sizing: border-box;
  overflow: auto;
}

.hongxin-drawing-modal__title {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 20px;
  line-height: 1.35;
}

.hongxin-drawing-modal__title:empty {
  display: none;
}

.hongxin-drawing-modal__description {
  margin: 0;
  color: #eef3f8;
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-line;
}

@media (max-width: 767px) {
  .hongxin-drawing-modal {
    grid-template-rows: 48px minmax(0, 1fr) auto;
    padding: 10px 48px 16px;
  }

  .hongxin-drawing-modal__close {
    right: -38px;
    width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .hongxin-drawing-modal__nav {
    width: 38px;
    height: 38px;
  }

  .hongxin-drawing-modal__nav--previous {
    left: 5px;
  }

  .hongxin-drawing-modal__nav--next {
    right: 5px;
  }

  .hongxin-drawing-modal__specification {
    margin-top: 10px;
    padding: 13px 15px;
  }

  .hongxin-drawing-modal__description {
    max-height: 22vh;
    overflow: auto;
    font-size: 14px;
  }

  #technical-drawings article {
    grid-template-rows: auto 38px;
  }

  #technical-drawings article > div:last-child {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
}

/* Product application section: permanently remove redundant CASE labels. */
#industry-cases > div > div:first-child > div:first-child > p {
  font-size: 0 !important;
}

#industry-cases > div > div:first-child > div:first-child > p::after {
  content: "Application";
  font-size: 11px;
}

#industry-cases article > div:last-child > p:first-child {
  display: none !important;
}

#industry-cases article > div:last-child > h3 {
  margin-top: 0 !important;
}
