/* 站内换页动效（配合 transition.js）。类名统一 pt- 前缀 */
/* 磨砂玻璃：底色只铺薄薄一层，靠强模糊盖住细节，后面页面的轮廓和色块还能隐约看到。
   --pt-glass 越淡越透，--pt-blur 越大越朦胧 */
[data-pt]{--pt-blur:22px}
[data-pt="home"]{--pt-glass:rgba(14,17,22,.46);--pt-solid:rgba(14,17,22,.94);--pt-ac:#D9A64B}
[data-pt="sp"]{--pt-glass:rgba(246,244,237,.46);--pt-solid:rgba(244,241,234,.95);--pt-ac:#1F5A4A}
[data-pt="lw"]{--pt-glass:rgba(10,18,32,.46);--pt-solid:rgba(10,18,32,.94);--pt-ac:#4FD1E8}

/* 离开 */
.pt-veil,html.pt-arrive::before{background:linear-gradient(160deg,rgba(255,255,255,.12),rgba(255,255,255,.02) 40%,rgba(255,255,255,.07)),var(--pt-glass);-webkit-backdrop-filter:blur(var(--pt-blur)) saturate(1.35);backdrop-filter:blur(var(--pt-blur)) saturate(1.35)}
.pt-veil{position:fixed;inset:0;z-index:1000;opacity:0;transition:opacity .22s ease;display:flex;align-items:center;justify-content:center}
.pt-veil.on{opacity:1}
.pt-veil img,html.pt-arrive::after{width:52px;height:46px}
.pt-veil img{opacity:0;transform:translateY(10px) scale(.92);transition:opacity .22s .06s ease,transform .3s .06s cubic-bezier(.2,.8,.2,1)}
.pt-veil.on img{opacity:1;transform:none}
.pt-veil i{position:absolute;left:0;top:0;height:3px;width:0;background:var(--pt-ac);box-shadow:0 0 12px var(--pt-ac)}
.pt-veil.on i{width:88%;transition:width 2.4s cubic-bezier(.1,.7,.2,1)}

/* 到达：纯 CSS 动画，即使后续脚本出错幕布也一定会消失。先停一下，让人看清玻璃后面的新页面，再慢慢散开 */
html.pt-arrive::before{content:"";position:fixed;inset:0;z-index:1000;pointer-events:none;animation:pt-out .5s .12s ease forwards}
html.pt-arrive::after{content:"";position:fixed;left:50%;top:50%;margin:-23px 0 0 -26px;z-index:1001;background:url(brand/auxoric-mark.svg) center/contain no-repeat;pointer-events:none;animation:pt-mark .34s .1s ease forwards}
html.pt-arrive header.hero>.wrap,html.pt-arrive main{animation:pt-rise .6s .1s cubic-bezier(.2,.8,.2,1) backwards}
@keyframes pt-out{to{opacity:0;visibility:hidden}}
@keyframes pt-mark{to{opacity:0;transform:translateY(-10px) scale(1.06);visibility:hidden}}
@keyframes pt-rise{from{opacity:.35;transform:translateY(22px)}}

/* 不支持背景模糊的浏览器：改用接近不透明的底色，避免出现没模糊的半透明叠影 */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .pt-veil,html.pt-arrive::before{background:var(--pt-solid)}
}
@media (prefers-reduced-motion:reduce){.pt-veil,html.pt-arrive::before,html.pt-arrive::after{display:none}}
