/* BOM 与部件 — /service/bom/ */

.sbh-page {
  padding: 0 0 72px;
  --sbh-blue: #1d5198;
  --sbh-border: rgba(29, 81, 152, 0.18);
  --sbh-accent: #e8f0fb;
}

.sbh-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 32px;
  margin: 36px 0 28px;
  padding: 28px 30px;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef3fa 100%);
}

.sbh-hero > div:first-child {
  flex: 1 1 280px;
  min-width: 0;
}

.sbh-hero__lead {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.8;
  color: #495057;
}

.sbh-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  font-size: 14px;
}

.sbh-hero__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--sbh-blue);
  text-decoration: none;
}

.sbh-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 12px;
  flex: 0 1 auto;
  min-width: min(100%, 320px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sbh-stats li {
  padding: 16px 14px;
  border: 1px solid var(--sbh-border);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.sbh-stats strong {
  display: block;
  margin-bottom: 4px;
  font-size: 28px;
  line-height: 1.1;
  color: #0f2744;
}

.sbh-stats span {
  font-size: 13px;
  line-height: 1.4;
  color: #6c757d;
}

.sbh-section-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  padding-left: 14px;
  border-left: 4px solid var(--sbh-blue);
}

.sbh-advanced-filters {
  margin-bottom: 22px;
}

.sbh-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.sbh-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sbh-filter {
  padding: 8px 14px;
  border: 1px solid #c5d4ea;
  border-radius: 3px;
  background: #fff;
  color: #495057;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sbh-filter:hover {
  background: var(--sbh-accent);
  border-color: #a8c0e6;
}

.sbh-filter.is-active {
  border-color: var(--sbh-blue);
  background: var(--sbh-blue);
  color: #fff;
}

.sbh-product-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.sbh-filter-row__label {
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  white-space: nowrap;
}

.sbh-product-select {
  width: min(18rem, 100%);
  min-width: 10rem;
  padding: 8px 36px 8px 12px;
  border: 1px solid #c5d4ea;
  border-radius: 3px;
  font-size: 14px;
  color: #212529;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231d5198' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.sbh-product-select:focus {
  outline: none;
  border-color: #1d5198;
  box-shadow: 0 0 0 3px rgba(29, 81, 152, 0.12);
}

.sbh-filter-reset {
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--sbh-blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.sbh-filter-reset:hover {
  background: #ebf3ff;
}

.sbh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sbh-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e1e5ea;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}

.sbh-card:hover {
  box-shadow: 0 12px 32px rgba(15, 39, 68, 0.1);
  transform: translateY(-2px);
}

.sbh-card.is-hidden {
  display: none;
}

.sbh-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #e8eef7 0%, #dce6f2 55%, #cfdcf0 100%);
}

.sbh-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
}

.sbh-card__media--exploded {
  aspect-ratio: 3 / 2;
  background: #eef3fa;
}

.sbh-card__media--exploded img {
  object-fit: contain;
  object-position: center;
  filter: none;
}

.sbh-card__media--scene {
  aspect-ratio: 4 / 3;
  background: #0f2744;
}

.sbh-card__media--scene img {
  object-fit: cover;
}

.sbh-card__media--cover {
  aspect-ratio: 4 / 3;
  background: radial-gradient(ellipse 85% 75% at 50% 45%, #fff 0%, #e8eef7 100%);
}

.sbh-card__media--cover img {
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(15, 39, 68, 0.1));
}

.sbh-card__series {
  position: absolute;
  top: 10px;
  left: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 0 3px 3px 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--sbh-blue);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sbh-card__series i {
  font-size: 15px;
}

.sbh-card__count {
  position: absolute;
  top: 10px;
  right: 0;
  z-index: 1;
  padding: 5px 12px;
  border-radius: 3px 0 0 3px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(29, 81, 152, 0.88);
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.14);
}

.sbh-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}

.sbh-card__sku {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(12, 20, 36, 0.45);
}

.sbh-card__title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a1a;
}

.sbh-parts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.sbh-part {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid #e8edf4;
  border-radius: 6px;
  background: linear-gradient(135deg, #fafbfd 0%, #f4f7fb 100%);
}

.sbh-part__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dce4ee;
  color: var(--sbh-blue);
  font-size: 18px;
}

.sbh-part__title {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
}

.sbh-part__meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #6c757d;
}

.sbh-part__meta strong {
  font-weight: 600;
  color: #495057;
}

.sbh-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.sbh-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.sbh-card__btn--ghost {
  border-color: #c5d4ea;
  background: #fff;
  color: var(--sbh-blue);
}

.sbh-card__btn--ghost:hover {
  background: #ebf3ff;
}

.sbh-card__btn--primary {
  border-color: var(--sbh-blue);
  background: var(--sbh-blue);
  color: #fff;
}

.sbh-card__btn--primary:hover {
  background: #163d72;
  border-color: #163d72;
  color: #fff;
}

.sbh-empty {
  margin: 24px 0 0;
  padding: 28px 20px;
  border: 1px dashed #c5d4ea;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  color: #6c757d;
  background: #f8fafc;
}

.sbh-cta {
  margin-top: 40px;
  padding: 28px 32px;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f2744 0%, #1d5198 100%);
  color: #fff;
}

.sbh-cta h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
}

.sbh-cta p {
  margin: 0 0 18px;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.sbh-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 3px;
  background: #fff;
  color: var(--sbh-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.sbh-cta__btn .pp-eng-btn__icon {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sbh-cta__btn:hover {
  background: #ebf3ff;
  color: #163d72;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

@media (max-width: 1280px) {
  .sbh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sbh-hero > div:first-child {
    flex-basis: 100%;
  }

  .sbh-stats {
    width: 100%;
    min-width: 0;
  }

  .sbh-product-filter {
    margin-left: 0;
    width: 100%;
  }

  .sbh-product-select {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .sbh-grid {
    grid-template-columns: 1fr;
  }

  .sbh-stats {
    grid-template-columns: 1fr;
  }

  .sbh-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .sbh-filters {
    width: 100%;
  }
}
