/**
 * 公开页（首页 / 登录注册 / 中间页）丝滑体验
 */

@media (prefers-reduced-motion: no-preference) {
  html.public-smooth { scroll-behavior: smooth; }
}

html.public-page-leaving body {
  opacity: 0.92;
  transition: opacity 0.12s ease;
}

/* 认证卡入场 */
@media (prefers-reduced-motion: no-preference) {
  .auth-page .auth-card {
    animation: publicFadeUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .auth-page .auth-shell {
    animation: publicFadeIn 0.28s ease both;
  }
}

@keyframes publicFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes publicFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 首页滚动卡片（减少 JS 依赖的初始闪动） */
.hp-scroll-card {
  will-change: transform, opacity;
}
