/* 冲鸭 · 退出到极简空间：液态玻璃胶囊 */
.exit-space {
  position: fixed;
  left: 18px;
  top: 84px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  color: var(--ink, #2c3037);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .12) 46%, rgba(255, 255, 255, .34)),
    var(--lg-bg-2, rgba(255, 255, 255, .55));
  border: 1px solid var(--lg-ring, rgba(255, 255, 255, .72));
  box-shadow:
    inset 0 1px 0 var(--lg-hl, rgba(255, 255, 255, .9)),
    inset 0 -1px 0 rgba(24, 22, 18, .06),
    0 1px 1px rgba(24, 22, 18, .05),
    0 10px 26px -14px rgba(46, 38, 26, .38);
  -webkit-backdrop-filter: var(--lg-blur-sm, blur(16px) saturate(160%));
  backdrop-filter: var(--lg-blur-sm, blur(16px) saturate(160%));
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, background .22s ease;
}
.exit-space::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(80% 120% at 20% 0%, rgba(255, 255, 255, .7), transparent 52%);
  opacity: .55;
  mix-blend-mode: screen;
}
.exit-space:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow:
    inset 0 1px 0 var(--lg-hl, rgba(255, 255, 255, .95)),
    inset 0 -1px 0 rgba(24, 22, 18, .06),
    0 2px 2px rgba(24, 22, 18, .05),
    0 18px 36px -18px rgba(46, 38, 26, .46);
}
.exit-space:active { transform: translateY(0) scale(.985); }
.exit-space:focus-visible {
  outline: 2px solid var(--accent, #2f8f74);
  outline-offset: 3px;
}
.exit-arrow {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #2f8f74) 14%, transparent);
  color: var(--accent-ink, #1f6f5a);
  flex: 0 0 auto;
}
.exit-arrow svg { width: 13px; height: 13px; }
.exit-label { white-space: nowrap; line-height: 1; }

/* 给悬浮返回按钮让出标题区，避免和页面大标题贴在一起 */
.exit-space ~ .main { padding-top: 22px; }

:root[data-theme="dark"] .exit-space {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04) 46%, rgba(255, 255, 255, .1)),
    var(--lg-bg-2, rgba(23, 26, 31, .55));
  color: #f2f0ea;
}

@media (max-width: 620px) {
  .exit-space {
    left: 12px;
    top: 70px;
    padding: 8px 11px 8px 8px;
    font-size: 12px;
  }
  .exit-label { max-width: 128px; overflow: hidden; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
  .exit-space, .exit-space:hover, .exit-space:active { transition: none; transform: none; }
}
