/* 幕间漫游 · 子展区返回入口 */
.mj-orbit-mark {
  display: inline-block;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  background: currentColor;
  -webkit-mask: url("/shared/motifs/orbit-logo.svg") center / contain no-repeat;
  mask: url("/shared/motifs/orbit-logo.svg") center / contain no-repeat;
}

.mj-return {
  box-sizing: border-box;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #fff6e34a;
  border-radius: 999px;
  background: var(--mj-return-bg, #201d22);
  color: #fff6e3;
  font: 500 14px/1.4 var(--font-body);
  white-space: nowrap;
  text-decoration: none;
}

.mj-return:visited { color: #fff6e3; }
.mj-return:hover { border-color: #fff6e3; color: #fff; }
.mj-return:focus-visible {
  outline: 2px solid #fff6e3;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #201d22;
}

.mj-return--fixed {
  position: fixed;
  z-index: 9300;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  box-shadow: 0 2px 14px #0003;
}

.mj-return--header {
  padding-inline: 8px;
  border-color: transparent;
  background: transparent;
}

.brand-home:has(.mj-orbit-mark) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body[data-card-open="true"] .mj-return,
body:has(dialog:modal, [role="dialog"][aria-modal="true"]:not([hidden], [aria-hidden="true"])) .mj-return {
  visibility: hidden;
}

@media print {
  .mj-return { display: none; }
}

/* ============================================================
   全站字体（2026-11-20 用户定稿）
   标题：龙藏 Long Cang（SIL OFL 1.1，Google Fonts，已子集化）
   正文：苹方 PingFang SC（系统黑体栈）
   ============================================================ */
@font-face {
  font-family: 'Long Cang';
  src: url('/shared/fonts/LongCang-subset.woff') format('woff');
  /* 单一字重覆盖全区间：标题请求 600 时直接使用 400 字形，避免浏览器合成伪粗体（FONT_GUIDELINES 禁伪粗体） */
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: 'Long Cang', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans SC', 'Inter', 'Microsoft YaHei', sans-serif;
}
