/* ============================================================
   page-transition.css — 页面跳转转场（转圈 & 超过 1.9s 显示骨架屏）
   ============================================================ */

.page-transition {
  position: fixed;
  top: var(--header-h);   /* 从导航栏下面开始，不遮挡顶部导航 */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.page-transition.pt-show {
  opacity: 1;
  pointer-events: auto;
}

.page-transition.pt-hidden {
  opacity: 0;
  pointer-events: none;
}

.pt-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: min(78vw, 340px);
}

/* 转圈 */
.pt-spinner-icon {
  width: 46px;
  height: 46px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: pt-spin 0.8s linear infinite;
}

@keyframes pt-spin {
  to { transform: rotate(360deg); }
}
