/*
 * Mac Philosophy family lockup
 * Master Caps mark → divider → current capability.
 * The master mark and its visible label are the persistent route back to the current branch overview.
 */
.family-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}

.family-home-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  color: #17131c;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
  text-decoration: none;
}

.family-home-mark::after { content: "返回主页"; }
.family-home-mark[data-return="apps"]::after { content: "返回应用中心"; }

.family-home-mark img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(23, 19, 28, .18));
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), filter .18s cubic-bezier(.2, .8, .2, 1);
}

.family-home-mark:hover img {
  transform: translateY(-1px);
  filter: drop-shadow(0 9px 10px rgba(23, 19, 28, .22));
}

.family-home-mark:active img { transform: translateY(0) scale(.97); }

.family-divider {
  width: 1px;
  height: 29px;
  flex: 0 0 auto;
  background: rgba(23, 19, 28, .17);
}

.family-lockup .brand,
.family-lockup .product-brand,
.family-lockup .guide-identity {
  min-width: 0;
}

/* The master mark replaces the explanatory return control in child-page chrome. */
.site-header .return-anchor,
.guide-header > .return-anchor,
.pdf-site .hero-actions .return-anchor,
.pdf-site .status-actions .return-anchor,
.hero-actions .button-primary.return-anchor,
.host-actions .button-primary.return-anchor {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .family-home-mark img { transition: none; }
  .family-home-mark:hover img,
  .family-home-mark:active img { transform: none; }
}

@media (max-width: 640px) {
  .family-lockup { gap: 8px; }
  .family-home-mark { min-height: 40px; gap: 6px; border-radius: 10px; }
  .family-home-mark::after { content: "返回"; }
  .family-home-mark[data-return="apps"]::after { content: "应用中心"; }
  .family-home-mark img { width: 36px; height: 36px; }
  .family-divider { height: 24px; }
}

@media (forced-colors: active) {
  .family-home-mark { outline: 1px solid CanvasText; }
  .family-divider { background: CanvasText; }
}
