/* Small interaction refinements. Original layout, typography and colors stay in the theme. */
:root { --jessica-ease: cubic-bezier(.22,.61,.36,1); }
.top-menu a .icon {
  transition: transform .28s var(--jessica-ease), color .25s ease;
}
.top-menu a:hover .icon,
.top-menu a:focus-visible .icon { transform: translateY(-2px); }
.profile .social a {
  transition: transform .25s var(--jessica-ease), box-shadow .25s ease, border-color .25s ease, color .25s ease;
}
.profile .social a:hover,
.profile .social a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(139,95,191,.12);
}
.profile .social a:active { transform: translateY(-1px) scale(.96); }
.profile .lnks .lnk .text { transition: transform .25s var(--jessica-ease); }
.profile .lnks .lnk:hover .text { transform: translateX(2px); }
.card-inner.animated { animation-duration: .7s; }
.mfp-fade.mfp-bg, .mfp-fade.mfp-wrap .mfp-content {
  transition-duration: .28s;
  transition-timing-function: var(--jessica-ease);
}
.mfp-fade.mfp-wrap .mfp-content { transform: translateY(8px); }
.mfp-fade.mfp-wrap.mfp-ready .mfp-content { transform: translateY(0); }
.mfp-fade.mfp-wrap.mfp-removing .mfp-content { transform: translateY(5px); }
a:focus-visible, button:focus-visible, input:focus-visible, label:focus-within {
  outline: 2px solid #8b5fbf;
  outline-offset: 4px;
}
.jessica-toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 999999;
  transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); width: max-content;
  padding: 10px 18px; border-radius: 8px;
  background: #8b5fbf; color: #fff; font-size: 13px;
  box-shadow: 0 6px 24px rgba(77,49,109,.18);
  transition: opacity .22s ease, transform .22s var(--jessica-ease);
}
.jessica-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.jessica-article-status, .popup-box-inline .desc.jessica-article-no-image { padding-top: 48px; }
.jessica-article-status { padding-left: 40px; padding-right: 40px; }
.jessica-article-retry { color: #8b5fbf; cursor: pointer; text-decoration: underline; }
@media (hover: none) {
  .top-menu a:hover .icon, .profile .social a:hover, .profile .lnks .lnk:hover .text { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  #canvas_spiral { display: none; }
}

/* 地图 / 外卖推荐弹窗：沿用文章弹窗（整高侧栏 + 右上角关闭），宽度放大到接近整屏 */
.mfp-wrap.popup-box-inline.jessica-app-popup {
  --app-w: min(1320px, calc(100vw - 112px));
  width: var(--app-w);
  margin-left: calc(var(--app-w) / -2);
  overflow: hidden;
  background: #f6f2ec;
}
.jessica-app-popup .popup-box.jessica-app-box {
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  padding: 0;
  overflow: hidden;
  background: #f6f2ec;
}
.jessica-app-box iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 720px) {
  .mfp-wrap.popup-box-inline.jessica-app-popup { width: 100%; margin-left: 0; }
}
