/* ============================================================
   home-anim.css — 中英文首页共享交互动效  @Xeron 2026-11-18
   来源：cn-index.css 与 en-index.css 中完全一致的 8 条规则。
   ⚠️ 仅首页加载，不在 assets-head.html 全站引入。
   ⚠️ transition-delay 用 0s（首页版），须覆盖 header-footer.css
      全站版的 calc(var(--i,0)*50ms)；本文件加载顺序在全站版之后。
   .hero-slogan 的字号/行高等差异留在各页面 CSS 中。
   ============================================================ */

/* Hero 标题逐行入场 */
.hero-slogan .xeron-hero-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: xeron-rise .9s cubic-bezier(.22,1,.36,1) forwards;
}
.hero-slogan .xeron-hero-line:nth-child(2) { animation-delay: .14s; }
.hero-slogan .xeron-hero-line:nth-child(3) { animation-delay: .28s; }
@keyframes xeron-rise {
  to { opacity: 1; transform: translateY(0); }
}
.xeron-cinema__actions {
  opacity: 0;
  transform: translateY(22px);
  animation: xeron-rise .9s cubic-bezier(.22,1,.36,1) .42s forwards;
}

/* 滚动进入视口渐显 */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slogan .xeron-hero-line,
  .xeron-cinema__actions,
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
