/* ===== 全站动效 v4：容器只做透明度，避免 transform 破坏 position:fixed ===== */
html{scroll-behavior:smooth}
@keyframes stFade{from{opacity:.5}to{opacity:1}}
@keyframes stRise{from{opacity:.5;transform:translate3d(0,10px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes stRipple{to{transform:scale(2.8);opacity:0}}
@keyframes stFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
body.st-motion{animation:stFade .32s ease both}
/* 容器：只淡入，不加 transform */
.st-motion .shell>*,.st-motion .wrap>*,.st-motion main>*{animation:stFade .42s ease both}
.st-motion .shell>*:nth-child(2),.st-motion .wrap>*:nth-child(2),.st-motion main>*:nth-child(2){animation-delay:.05s}
.st-motion .shell>*:nth-child(3),.st-motion .wrap>*:nth-child(3),.st-motion main>*:nth-child(3){animation-delay:.09s}
.st-motion .shell>*:nth-child(4),.st-motion .wrap>*:nth-child(4),.st-motion main>*:nth-child(4){animation-delay:.13s}
.st-motion .shell>*:nth-child(n+5),.st-motion .wrap>*:nth-child(n+5),.st-motion main>*:nth-child(n+5){animation-delay:.17s}
/* 卡片/条目：可位移（内部不含固定定位元素） */
.st-motion .card,.st-motion .item,.st-motion .hero,.st-motion .grid>*,.st-motion .list>*{animation:stRise .5s cubic-bezier(.22,.61,.36,1) both}
.st-motion .card:nth-child(2),.st-motion .item:nth-child(2),.st-motion .grid>*:nth-child(2),.st-motion .list>*:nth-child(2){animation-delay:.04s}
.st-motion .card:nth-child(3),.st-motion .item:nth-child(3),.st-motion .grid>*:nth-child(3),.st-motion .list>*:nth-child(3){animation-delay:.08s}
.st-motion .card:nth-child(n+4),.st-motion .item:nth-child(n+4),.st-motion .grid>*:nth-child(n+4),.st-motion .list>*:nth-child(n+4){animation-delay:.12s}
/* 固定定位元素永不被动画影响 */
#v2nav,#bp-feat-dock,.bar{transform:none!important;animation:none!important}
.btn,.chip,.tab,.seg button{transition:transform .16s cubic-bezier(.22,.61,.36,1),box-shadow .24s ease,background .2s ease,color .2s ease,border-color .2s ease}
.btn:active,.chip:active,.tab:active,.seg button:active{transform:scale(.97)}
.btn.pri{box-shadow:0 8px 20px rgba(180,83,9,.2)}
.card{transition:transform .22s cubic-bezier(.22,.61,.36,1),box-shadow .26s ease}
@media(hover:hover)and(pointer:fine){
  .btn:hover,.chip:hover,.tab:hover{transform:translateY(-1px)}
  .btn.pri:hover{box-shadow:0 12px 26px rgba(180,83,9,.28)}
  .card:hover{transform:translate3d(0,-2px,0);box-shadow:0 16px 38px rgba(80,60,35,.12)}
  a{background-image:linear-gradient(currentColor,currentColor);background-size:0% 1px;background-repeat:no-repeat;background-position:0 100%;transition:background-size .25s ease}
  a:hover{background-size:100% 1px}
}
.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:stRipple .5s cubic-bezier(.2,.7,.3,1) forwards;background:currentColor;opacity:.26;pointer-events:none}
.st-float{animation:stFloat 3.6s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body.st-motion,.st-motion .shell>*,.st-motion .wrap>*,.st-motion main>*,.st-motion .card,.st-motion .item,.st-motion .hero,.st-motion .grid>*,.st-motion .list>*{animation:none!important}
  .btn,.chip,.tab,.card{transition:none!important}
  .ripple,.st-float{display:none!important;animation:none!important}
}
