@charset "UTF-8";

.hebang-oem-page {
  background: var(--hebang-color-surface);
  color: var(--hebang-color-text);
  font-family: var(--hebang-font-sans);
  font-size: 16px;
  line-height: 1.5;
}

.hebang-oem-page .hebang-oem-container {
  width: calc(100% - 60px);
  max-width: 1240px;
  margin-inline: auto;
}

.hebang-oem-page .hebang-oem-section {
  padding-top: 80px;
}

.hebang-oem-page h2 {
  margin: 0 0 20px;
  color: var(--hebang-color-primary-text);
  font-family: var(--hebang-font-heading);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.5;
  text-wrap: balance;
}

.hebang-oem-page p {
  margin: 0;
}

.hebang-oem-page .hebang-oem-heading {
  max-width: 850px;
  margin: 0 auto 36px;
  text-align: center;
}

.hebang-oem-page picture,
.hebang-oem-page img {
  display: block;
  width: 100%;
}

.hebang-oem-page img {
  height: auto;
  object-fit: contain;
}

.hebang-oem-page .hebang-oem-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.hebang-oem-page .hebang-oem-feature-copy {
  padding-right: 130px;
}

.hebang-oem-page .hebang-oem-feature--reverse .hebang-oem-feature-copy {
  grid-column: 2;
  grid-row: 1;
  padding-right: 0;
  padding-left: 130px;
}

.hebang-oem-page .hebang-oem-feature--reverse .hebang-oem-feature-media {
  grid-column: 1;
  grid-row: 1;
}

/* 桌面两侧各三项操作，中央产品跨三行；所有尺寸共用一组控件。 */
.hebang-oem-configurator { background: #fafaf7; padding: 28px 24px 24px; border-radius: 4px; }
.hebang-oem-page .hebang-oem-customization-map { display: grid; grid-template-columns: 20% 60% 20%; grid-template-rows: repeat(3, minmax(140px, auto)); isolation: isolate; }
.hebang-oem-page .hebang-oem-map-product { grid-column: 2; grid-row: 1 / 4; align-self: center; width: 100%; margin: 0; min-width: 0; }
/* 静态裁切对应舞台的 translate(-160 -140) scale(1.2)，共用 1600×1000 占位。 */
.hebang-oem-page [data-oem-fallback-frame] { position: relative; aspect-ratio: 8 / 5; overflow: hidden; }
.hebang-oem-page [data-oem-fallback-frame] picture { position: absolute; left: 5%; top: -11.6%; width: 90%; height: 90%; }
.hebang-oem-page [data-oem-fallback-frame] img { width: 100%; height: 100%; object-fit: fill; }
.hebang-oem-page [data-oem-fallback-frame].has-static-error picture { left: 0; top: 0; width: 100%; height: 100%; }
.hebang-oem-page [data-oem-stage] { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; overflow: visible; }
.hebang-oem-page .hebang-oem-map-options { display: contents; }
.hebang-oem-page .hebang-oem-map-option { min-width: 0; padding: 16px 12px; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 12px; color: var(--hebang-color-primary-text); }
.hebang-oem-page [data-option="color"] { grid-area: 1 / 1; }
.hebang-oem-page [data-option="logo"] { grid-area: 2 / 1; }
.hebang-oem-page [data-option="parts"] { grid-area: 3 / 1; }
.hebang-oem-page [data-option="plug"] { grid-area: 1 / 3; }
.hebang-oem-page [data-option="power"] { grid-area: 2 / 3; }
.hebang-oem-page [data-option="packing"] { grid-area: 3 / 3; }
.hebang-oem-configurator button { font: inherit; color: inherit; cursor: pointer; border: 0; background: transparent; text-align: left; min-height: 44px; padding: 0; }
.hebang-oem-configurator .hebang-oem-mode, .hebang-oem-option-title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.hebang-oem-configurator .hebang-oem-mode { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.hebang-oem-configurator fieldset { margin: 0; padding: 0; min-width: 0; border: 0; }
.hebang-oem-swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.hebang-oem-swatches label { position: relative; display: flex; gap: 6px; align-items: center; min-height: 44px; font-size: 11px; cursor: pointer; }
.hebang-oem-swatches input { position: absolute; opacity: 0; width: 28px; height: 28px; margin: 0; }
.hebang-oem-color-chip { flex-shrink: 0; width: 25px; height: 25px; border-radius: 50%; border: 1px solid #0002; }
[data-color-chip="red"] { background: #d8252d; }
[data-color-chip="sage"] { background: #89967a; }
[data-color-chip="ivory"] { background: #e5d8ba; }
[data-color-chip="charcoal"] { background: #363c3c; }
.hebang-oem-swatches input:checked + span { outline: 1.5px solid #30472e; outline-offset: 3px; }
.hebang-oem-configurator :is(button, a, input):focus-visible { outline: 2px solid #30472e; outline-offset: 4px; }
.hebang-oem-swatches input:focus-visible + span { outline: 3px double #30472e; outline-offset: 3px; }
.hebang-oem-handle-choice { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; cursor: pointer; }
.hebang-oem-handle-choice input { accent-color: #30472e; width: 16px; height: 16px; flex-shrink: 0; }
.hebang-oem-page [data-oem-panel="handles"] { display: flex; flex-direction: column; gap: 0; }
.hebang-oem-configurator .hebang-oem-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 0; font-size: 12px; }
.hebang-oem-switch { display: block; flex-shrink: 0; width: 32px; height: 18px; border-radius: 12px; background: #d1d7cc; padding: 3px; }
.hebang-oem-switch::after { content: ''; display: block; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform 160ms; }
[aria-pressed="true"] .hebang-oem-switch { background: #425b38; }
[aria-pressed="true"] .hebang-oem-switch::after { transform: translateX(14px); }
.hebang-oem-option-hint { font-size: 12px; color: #65715e; }
.hebang-oem-map-option p, .hebang-oem-map-option a { font-size: 12px; }
.hebang-oem-map-option picture { max-width: 110px; }
.hebang-oem-page .hebang-oem-configurator-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; padding: 8px 0; font-size: 12px; color: #65715e; }
.hebang-oem-configurator-footer button { text-decoration: underline; text-underline-offset: 4px; }
.hebang-oem-page [data-oem-status] { flex-basis: 100%; text-align: center; min-height: 18px; font-size: 11px; }
.hebang-oem-page [data-color="ivory"] [data-oem-layer="logo"] text { fill: #36432f; }
.hebang-oem-page .has-error [data-oem-status] { color: #a32d22; }
.hebang-oem-detail-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 14px; font-size: 12px; }
.hebang-oem-detail-links a { color: #526349; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.hebang-oem-page [hidden] { display: none !important; }
.hebang-oem-page [id^="hebang-oem-"], .hebang-oem-page [id^="oem-"] { scroll-margin-top: 120px; }
/* 平板收紧控件间距；手机仅展开当前主控件，产品仍在操作区上方。 */
@media (max-width: 1024px) {
  .hebang-oem-page .hebang-oem-customization-map { display: flex; flex-direction: column; }
  .hebang-oem-page .hebang-oem-map-product { width: 100%; max-width: 680px; margin: auto; }
  .hebang-oem-page .hebang-oem-map-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
  .hebang-oem-page .hebang-oem-map-option { grid-area: auto; border-top: 1px solid #dce0d5; padding: 12px 0; justify-content: flex-start; }
}
@media (width < 768px) {
  .hebang-oem-page [data-oem-status] { font-size: 14px; line-height: 1.6; }
  .hebang-oem-configurator { padding: 10px 14px 16px; }
  .hebang-oem-page .hebang-oem-map-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
  .hebang-oem-page .hebang-oem-map-option { gap: 4px; }
  .hebang-oem-page :is([data-option="plug"], [data-option="power"], [data-option="packing"]) { grid-column: 1 / -1; }
  .hebang-oem-page .hebang-oem-map-option :is(p, a) { font-size: 14px; line-height: 1.6; }
  .hebang-oem-page .hebang-oem-map-option a { display: inline-flex; align-items: center; min-height: 44px; }
  .hebang-oem-configurator .hebang-oem-mode, .hebang-oem-option-title { font-size: 14px; min-height: 44px; }
  .hebang-oem-page [data-option="color"], .hebang-oem-page [data-option="logo"], .hebang-oem-page [data-option="parts"] { display: contents; }
  .hebang-oem-page [data-oem-mode] { grid-row: 1; border-bottom: 1px solid #dce0d5; }
  .hebang-oem-page [data-oem-mode][aria-expanded="true"] { border-bottom: 2px solid #425b38; }
  .hebang-oem-page [data-oem-panel] { grid-column: 1 / -1; grid-row: 2; padding: 14px 0; }
  .hebang-oem-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hebang-oem-swatches label { flex-direction: column; gap: 8px; font-size: 12px; }
  .hebang-oem-page [data-oem-panel="handles"] { display: flex; flex-direction: row; gap: 20px; }
  .hebang-oem-page [data-oem-panel="logo"] { max-width: 220px; width: 100%; }
  .hebang-oem-option-hint { font-size: 14px; }
  .hebang-oem-configurator .hebang-oem-toggle { flex-wrap: wrap; font-size: 14px; }
  .hebang-oem-page .hebang-oem-configurator-footer { gap: 4px 16px; margin-top: 12px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hebang-oem-switch::after { transition: none; }
}

.hebang-oem-page .hebang-oem-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.hebang-oem-page .hebang-oem-gallery--plugs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hebang-oem-page figure {
  min-width: 0;
  margin: 0;
}

.hebang-oem-page figcaption {
  margin-top: 16px;
  color: var(--hebang-color-primary-text);
  font-weight: 600;
  text-align: center;
}

.hebang-oem-page .hebang-oem-note {
  margin-top: 24px;
  font-size: 14px;
}

.hebang-oem-page .hebang-oem-note--center {
  text-align: center;
}

.hebang-oem-page .hebang-oem-inquiry {
  padding-bottom: 80px;
  text-align: center;
}

.hebang-oem-page .hebang-oem-inquiry p {
  margin-bottom: 30px;
}

/* 中间宽度为双列图文留出空间，图组按可读宽度折列。 */
@media (max-width: 1024px) {
  .hebang-oem-page .hebang-oem-section { padding-top: 64px; }
  .hebang-oem-page .hebang-oem-inquiry { padding-bottom: 64px; }
  .hebang-oem-page h2 { font-size: 30px; line-height: 1.4; }
  .hebang-oem-page .hebang-oem-feature-copy { padding-right: 36px; }
  .hebang-oem-page .hebang-oem-feature--reverse .hebang-oem-feature-copy { padding-left: 36px; }
  .hebang-oem-page .hebang-oem-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hebang-oem-page .hebang-oem-gallery--plugs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 手机文案在前、图片在后；与 DOM 阅读顺序一致，不复制译文。 */
@media (width < 768px) {
  .hebang-oem-page .hebang-oem-container { width: calc(100% - var(--hebang-gutter) * 2); }
  .hebang-oem-page .hebang-oem-section { padding-top: var(--hebang-mobile-section-space); }
  .hebang-oem-page .hebang-oem-inquiry { padding-bottom: var(--hebang-mobile-section-space); }
  .hebang-oem-page h2 { font-size: var(--hebang-mobile-section-title); line-height: 1.3; margin-bottom: var(--hebang-mobile-content-gap); }
  .hebang-oem-page .hebang-oem-heading { margin-bottom: 24px; }
  .hebang-oem-page .hebang-oem-overview .hebang-oem-note { max-width: calc(100% - 48px); margin-inline: auto; }
  .hebang-oem-page .hebang-oem-feature { display: flex; flex-direction: column; gap: 24px; }
  .hebang-oem-page .hebang-oem-feature-copy,
  .hebang-oem-page .hebang-oem-feature--reverse .hebang-oem-feature-copy { padding: 0; }
  .hebang-oem-page .hebang-oem-feature-media { width: 100%; }
  .hebang-oem-page .hebang-oem-gallery { gap: 24px 16px; }
  .hebang-oem-page .hebang-oem-gallery--plugs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hebang-oem-page figcaption { margin-top: 12px; font-size: 14px; }
}
