/* PC 全站面包屑：统一胶囊条 + 箭头分隔 + 过长省略 */

.BreadNavArea {
  width: min(1200px, calc(100% - 48px));
  max-width: 1200px;
  margin: 20px auto 16px;
  box-sizing: border-box;
  min-width: 0;
}

.BreadNavArea > nav[aria-label="breadcrumb"],
.BreadNavArea > nav.breadcrumb,
.BreadNavArea > nav {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.BreadNavArea .breadcrumb {
  --bs-breadcrumb-divider: "";
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 10px 14px !important;
  list-style: none;
  background: #ffffff;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
}

.BreadNavArea .breadcrumb-item {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 42%;
  padding: 0 !important;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.BreadNavArea .breadcrumb-item + .breadcrumb-item::before {
  float: none;
  content: "" !important;
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 10px !important;
  padding: 0 !important;
  border: 0;
  border-right: 1.5px solid #94a3b8;
  border-bottom: 1.5px solid #94a3b8;
  transform: rotate(-45deg);
  opacity: 0.75;
  vertical-align: 0.15em;
}

.BreadNavArea .breadcrumb-item a {
  display: inline;
  min-width: 0;
  color: #475569 !important;
  text-decoration: none !important;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.BreadNavArea .breadcrumb-item a:hover {
  color: #0b4fd6 !important;
}

.BreadNavArea .breadcrumb-item.active,
.BreadNavArea .breadcrumb-item.active a {
  color: #0f172a !important;
  font-weight: 650;
}

/* Home：不收缩，轻量胶囊入口 */
.BreadNavArea .breadcrumb-item:first-child {
  flex: 0 0 auto;
  max-width: none;
  overflow: visible;
}

.BreadNavArea .breadcrumb-item:first-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #0b4fd6 !important;
  font-weight: 650;
}

.BreadNavArea .breadcrumb-item:first-child a:hover {
  background: #e0ebff;
  color: #093dad !important;
}

.BreadNavArea .breadcrumb-item:first-child a::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8.707 1.5a1 1 0 0 0-1.414 0L.646 8.146a.5.5 0 0 0 .708.708L2 8.207V13.5A1.5 1.5 0 0 0 3.5 15h9a1.5 1.5 0 0 0 1.5-1.5V8.207l.646.647a.5.5 0 0 0 .708-.708L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.707 1.5ZM13 7.207V13.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V7.207l5-5 5 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8.707 1.5a1 1 0 0 0-1.414 0L.646 8.146a.5.5 0 0 0 .708.708L2 8.207V13.5A1.5 1.5 0 0 0 3.5 15h9a1.5 1.5 0 0 0 1.5-1.5V8.207l.646.647a.5.5 0 0 0 .708-.708L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.707 1.5ZM13 7.207V13.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V7.207l5-5 5 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 最后一级吃剩余宽度，过长显示省略号 */
.BreadNavArea .breadcrumb-item:last-child {
  flex: 1 1 0;
  max-width: none;
  min-width: 0;
}

/* 详情页窄栏：同样省略，不换行挡内容 */
.ProductsContainer .BreadNavArea {
  width: min(1200px, calc(100% - 24px));
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
}

.ProductsContainer .ProductsTopRow .BreadNavArea {
  width: auto;
  max-width: 100%;
}

.ProductsContainer .BreadNavArea .breadcrumb-item:not(:first-child) {
  max-width: 100%;
}

@media (max-width: 768px) {
  .BreadNavArea {
    width: calc(100% - 24px);
    margin: 14px auto 12px;
  }

  .BreadNavArea .breadcrumb {
    padding: 8px 10px !important;
    font-size: 12px;
  }

  .BreadNavArea .breadcrumb-item:not(:first-child) {
    max-width: 48%;
  }

  .BreadNavArea .breadcrumb-item:last-child {
    max-width: none;
  }

  .BreadNavArea .breadcrumb-item + .breadcrumb-item::before {
    margin: 0 7px 0 0 !important;
  }
}
