/* 财税辫子哥 · 动态官网 V2.0 / 性能优先，渐进增强，无第三方动画库 */
:root{--motion-ease:cubic-bezier(.2,.7,.2,1)}
.scroll-progress{position:fixed;top:0;left:0;z-index:180;width:0;height:2px;pointer-events:none;background:linear-gradient(90deg,#93704a,#f5daa9);box-shadow:0 0 16px rgba(245,203,146,.6);transition:width .08s linear}
.site-header{isolation:isolate}
.hero{isolation:isolate}
.hero-aurora,.hero-halo,.hero-grain{position:absolute;inset:0;pointer-events:none;z-index:0}
.hero-aurora{left:-35%;right:-35%;top:-45%;bottom:8%;opacity:.63;filter:blur(40px);transform:translate3d(0,0,0);background:radial-gradient(ellipse 30% 28% at 27% 48%,rgba(94,100,115,.15),transparent 75%),radial-gradient(ellipse 33% 30% at 72% 56%,rgba(190,137,83,.12),transparent 74%);animation:aurora-breathe 19s ease-in-out infinite alternate}
.hero-halo{inset:auto auto 33% 50%;width:760px;height:410px;border:1px solid rgba(208,166,107,.08);border-radius:50%;transform:translate(-50%,45%) rotate(-11deg);box-shadow:0 0 0 72px rgba(196,160,114,.018),0 0 0 144px rgba(196,160,114,.009);opacity:.55;animation:halo-breathe 12s ease-in-out infinite alternate}
.hero-grain{background-image:radial-gradient(rgba(233,201,152,.065) .65px,transparent .75px);background-size:27px 27px;mask-image:linear-gradient(to bottom,transparent 3%,#000 26%,transparent 88%);opacity:.26;animation:grain-drift 55s linear infinite}
.hero-glow{animation:soft-glow 14s ease-in-out infinite alternate}
.hero-eyebrow,.hero-pretitle{animation:hero-rise 1.1s .12s both var(--motion-ease)}
.hero h1{animation:hero-rise 1.1s .3s both var(--motion-ease)}
.hero-subtitle{animation:hero-rise 1.1s .47s both var(--motion-ease)}
.hero-ctas{animation:hero-rise 1.1s .65s both var(--motion-ease)}
.orbit-layout{animation:hero-appear 1.15s .08s both var(--motion-ease)}
.orbit-card{--card-hover:0px;--card-x:0px;--card-y:0px;--card-tilt:0deg;transform:translate3d(var(--card-x),calc(var(--card-y) + var(--card-hover)),0) rotate(var(--card-tilt));transition:transform .5s var(--motion-ease),border-color .35s,background .35s,box-shadow .35s;will-change:auto}
.orbit-card:hover{--card-hover:-6px;box-shadow:0 25px 60px rgba(0,0,0,.35),inset 0 1px rgba(255,255,255,.06),0 0 35px rgba(199,156,99,.07)}
.orbit-top-left{animation:drift-card-a 8s ease-in-out infinite alternate}
.orbit-top-right{animation:drift-card-b 9s ease-in-out infinite alternate}
.orbit-bottom-left{animation:drift-card-b 9.5s ease-in-out infinite alternate}
.orbit-bottom-right{animation:drift-card-a 10s ease-in-out infinite alternate}
.orbit-lines path{stroke-dasharray:3 9;animation:line-flow 26s linear infinite;stroke:rgba(230,189,138,.28)}
.orbit-lines circle{animation:node-light 3.6s ease-in-out infinite alternate}
/* 不对人物图像做任何 perspective/scale/transform 动画，只给边框一层缓慢呼吸光 */
.portrait-shell{transform:translateX(-50%);box-shadow:0 18px 70px rgba(0,0,0,.45),0 0 75px rgba(189,136,73,.11);transition:border-color .4s,box-shadow .5s;animation:portrait-border 10s ease-in-out infinite alternate}
.portrait-image{animation:none!important;transform:none!important;object-fit:cover;object-position:center center}
.portrait-shell::before{content:"";position:absolute;inset:-1px;z-index:3;border-radius:inherit;border:1px solid rgba(250,217,170,.18);pointer-events:none;box-shadow:inset 0 0 25px rgba(232,187,124,.025)}
.portrait-shell::after{z-index:2}
.portrait-bottom{z-index:4}
.button-gold{position:relative;isolation:isolate;overflow:hidden}
.button-gold::after{content:"";position:absolute;inset:0;background:linear-gradient(106deg,transparent 30%,rgba(255,255,255,.34) 47%,transparent 63%);transform:translateX(-150%);transition:transform .75s ease;pointer-events:none}
.button-gold:hover::after{transform:translateX(150%)}
.section{scroll-margin-top:72px}
/* 仅在 IntersectionObserver 就绪后启动滚动出现，JS失效时始终显示内容 */
.motion-ready .section-header,.motion-ready .method-panel,.motion-ready .service-card,.motion-ready .knowledge-card,.motion-ready .about-image-wrap,.motion-ready .about-copy,.motion-ready .contact-left,.motion-ready .contact-panel{opacity:0;transform:translate3d(0,31px,0);transition:opacity .8s var(--motion-ease),transform .8s var(--motion-ease)}
.motion-ready .section-header.is-revealed,.motion-ready .method-panel.is-revealed,.motion-ready .service-card.is-revealed,.motion-ready .knowledge-card.is-revealed,.motion-ready .about-image-wrap.is-revealed,.motion-ready .about-copy.is-revealed,.motion-ready .contact-left.is-revealed,.motion-ready .contact-panel.is-revealed{opacity:1;transform:translate3d(0,0,0)}
.motion-ready .service-card:nth-child(2),.motion-ready .knowledge-card:nth-child(2){transition-delay:.08s}
.motion-ready .service-card:nth-child(3),.motion-ready .knowledge-card:nth-child(3){transition-delay:.16s}
.service-card,.knowledge-card,.method-panel{isolation:isolate}
.service-card::after,.knowledge-card::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(260px circle at var(--spot-x,50%) var(--spot-y,50%),rgba(220,171,107,.11),transparent 72%);opacity:0;transition:opacity .4s}
.service-card:hover::after,.knowledge-card:hover::after{opacity:1}
/* 页面辅助操作。点击可随时暂停动效，键盘可用 */
.site-controls{position:fixed;right:22px;bottom:22px;z-index:99;display:flex;gap:9px;align-items:center}
.motion-control,.back-to-top{height:41px;border-radius:22px;background:rgba(19,23,30,.94);border:1px solid rgba(235,204,157,.25);color:#d8c1a2;display:inline-flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 10px 28px rgba(0,0,0,.27);backdrop-filter:blur(12px);transition:background .25s,border-color .25s,transform .25s}
.motion-control{padding:0 14px;font-size:11px;letter-spacing:.3px}
.motion-control:hover,.back-to-top:hover{transform:translateY(-2px);border-color:rgba(235,204,157,.7);background:#20242c}
.motion-icon,.back-to-top svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.back-to-top{width:41px;opacity:0;pointer-events:none;transform:translateY(10px)}
.back-to-top.is-visible{opacity:1;pointer-events:auto;transform:translateY(0)}
/* 用户暂停时立刻显现所有模块，并暂停全部非必要动画 */
.motion-paused *, .motion-paused *::before,.motion-paused *::after{animation-play-state:paused!important;scroll-behavior:auto!important}
.motion-paused .section-header,.motion-paused .method-panel,.motion-paused .service-card,.motion-paused .knowledge-card,.motion-paused .about-image-wrap,.motion-paused .about-copy,.motion-paused .contact-left,.motion-paused .contact-panel{opacity:1!important;transform:none!important;transition-duration:0s!important}
.motion-paused .hero-eyebrow,.motion-paused .hero-pretitle,.motion-paused .hero h1,.motion-paused .hero-subtitle,.motion-paused .hero-ctas,.motion-paused .orbit-layout{opacity:1!important;animation:none!important;transform:none}
.motion-paused .portrait-shell{transform:translateX(-50%)!important}
.motion-paused .orbit-card{transform:none!important}
@keyframes aurora-breathe{0%{transform:translate3d(-2%,2%,0) scale(1);opacity:.45}100%{transform:translate3d(2%,-2%,0) scale(1.06);opacity:.72}}
@keyframes halo-breathe{0%{opacity:.2;box-shadow:0 0 0 65px rgba(196,160,114,.012),0 0 0 125px rgba(196,160,114,.006)}100%{opacity:.6;box-shadow:0 0 0 85px rgba(196,160,114,.025),0 0 0 165px rgba(196,160,114,.013)}}
@keyframes grain-drift{to{background-position:270px 81px}}
@keyframes soft-glow{to{opacity:.5;filter:blur(45px)}}
@keyframes hero-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@keyframes hero-appear{from{opacity:0;filter:blur(5px)}to{opacity:1;filter:blur(0)}}
@keyframes drift-card-a{0%{translate:0 0}100%{translate:0 -7px}}
@keyframes drift-card-b{0%{translate:0 -4px}100%{translate:0 4px}}
@keyframes line-flow{to{stroke-dashoffset:-240}}
@keyframes node-light{to{opacity:.38}}
@keyframes portrait-border{to{border-color:rgba(225,185,136,.68);box-shadow:0 18px 75px rgba(0,0,0,.4),0 0 85px rgba(189,136,73,.22)}}
@media (max-width:960px){.hero-halo{width:590px;height:330px;opacity:.26}.hero-grain{opacity:.17}}
@media (max-width:720px){
  .hero-aurora{animation-duration:28s;opacity:.38;filter:blur(50px)}
  .hero-halo,.hero-grain{display:none}
  .orbit-card{animation:none!important;translate:none!important}
  .portrait-shell,.motion-paused .portrait-shell{transform:none!important;animation:none!important}
  .site-controls{bottom:13px;right:13px}
  .motion-control{height:36px;padding:0 11px;font-size:10px}
  .back-to-top{width:36px;height:36px}
  .motion-ready .section-header,.motion-ready .method-panel,.motion-ready .service-card,.motion-ready .knowledge-card,.motion-ready .about-image-wrap,.motion-ready .about-copy,.motion-ready .contact-left,.motion-ready .contact-panel{transform:translate3d(0,19px,0);transition-duration:.62s}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-aurora,.hero-glow,.hero-grain,.hero-halo{animation:none!important}
  .hero-eyebrow,.hero-pretitle,.hero h1,.hero-subtitle,.hero-ctas,.orbit-layout,.orbit-card,.orbit-lines path,.orbit-lines circle,.portrait-shell{animation:none!important;translate:none!important;filter:none!important}
  .motion-ready .section-header,.motion-ready .method-panel,.motion-ready .service-card,.motion-ready .knowledge-card,.motion-ready .about-image-wrap,.motion-ready .about-copy,.motion-ready .contact-left,.motion-ready .contact-panel{opacity:1!important;transform:none!important;transition:none!important}
  .hero-aurora{opacity:.32}
  .portrait-shell{transform:translateX(-50%)!important}
  .button-gold::after{display:none}
}
@media (prefers-reduced-motion:reduce) and (max-width:720px){.portrait-shell{transform:none!important}}
/* 手机第一屏先交代价值主张，再展示照片与专业入口，避免标语被压到屏幕下方 */
@media (max-width:720px){
  .hero-inner{display:flex;flex-direction:column;align-items:stretch}
  .hero-eyebrow{order:0}
  .hero-copy{order:1;margin-top:26px}
  .orbit-layout{order:2;margin-top:33px;width:100%}
  .hero-bottom{order:3}
}
