/* =====================================================================
   量子首屏（复刻 zjkjvr.com 特效）—— 仅作用于 index 首屏
   作用域：.home-hero 与 .qx-* 前缀（index 首屏），不外溢
   ===================================================================== */
@font-face{
  font-family:'Orbitron QX';
  src:url('fonts/orbitron.woff2') format('woff2');
  font-weight:400 900;font-display:swap;
}

/* ---- 首屏容器改为 130vh sticky 结构（同参考站滚动联动） ---- */
body.home-refresh .home-hero{
  height:130vh;min-height:760px;max-height:none;
  padding-top:0;background:#04070d;
  overflow:visible; /* sticky 生效前提；裁切交给 .qx-sticky */
}
.qx-sticky{
  position:sticky;top:0;height:100vh;height:100svh;width:100%;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
#qx-stage{position:absolute;inset:0;z-index:0;pointer-events:none}
#qx-stage canvas{display:block;width:100%;height:100%}
#qx-stage .qx-galaxy-canvas{filter:drop-shadow(0 0 16px rgba(24,100,255,.15))}

/* ---- 氛围层 ---- */
.qx-bg{
  position:absolute;inset:0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%,rgba(37,99,235,.14),transparent 70%),
    linear-gradient(180deg,#04070d00 45%,#04070dcc);
}
.qx-vignette{
  position:absolute;inset:0;pointer-events:none;z-index:1;
  background:radial-gradient(ellipse at center,transparent 44%,rgba(0,0,0,.62) 100%);
}
.qx-grain{
  position:absolute;inset:0;pointer-events:none;z-index:1;
  opacity:.05;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* WebGL 不可用 / 低性能兜底 */
body.home-ui .home-hero.no-qx-gl .qx-fallback{
  position:absolute;inset:0;z-index:0;
  background:
    radial-gradient(ellipse 45% 40% at 50% 42%,rgba(34,211,238,.16),transparent 70%),
    radial-gradient(ellipse 70% 55% at 50% 45%,rgba(37,99,235,.12),transparent 75%),
    #04070d;
}
body.home-ui .home-hero.no-qx-gl #qx-stage{display:none}

/* ---- 内容层 ---- */
.qx-content{
  position:relative;z-index:10;
  max-width:80rem;margin:0 auto;padding:0 1rem;width:100%;
  will-change:opacity,transform;
}
.qx-content .qx-center{text-align:center}
.qx-eyebrow{
  margin:0 0 1.4rem;
  font-family:'Orbitron QX',sans-serif;
  font-size:17px;font-weight:700;letter-spacing:.34em;text-transform:uppercase;
  color:rgba(125,211,252,.75);
}
@media(min-width:640px){.qx-eyebrow{font-size:21px;margin-bottom:1.9rem}}

.qx-wordmark{position:relative;margin-bottom:1.6rem}
@media(min-width:640px){.qx-wordmark{margin-bottom:2.2rem}}
.qx-halo{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:86%;max-width:820px;height:130%;pointer-events:none;
  background:radial-gradient(ellipse 60% 55% at 50% 50%,rgba(4,7,13,.6),transparent 72%);
}
.qx-wordmark h1{
  position:relative;margin:0;
  font-size:clamp(48px,7vw,96px);font-weight:700;line-height:1.16;
  letter-spacing:.04em;color:#fff;
  text-shadow:0 7px 36px rgba(0,0,0,.5);
}
.qx-wordmark h1 .qx-ai{
  font-family:'Orbitron QX',sans-serif;font-weight:700;
  background:linear-gradient(115deg,#eafcff 8%,#7dd3fc 46%,#3b82f6 92%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:#7dd3fc;
}

.qx-tagline{
  margin:0 0 1.4rem;
  font-size:clamp(24px,3.2vw,44px);font-weight:300;letter-spacing:.14em;
  color:rgba(255,255,255,.9);
  display:flex;align-items:center;justify-content:center;gap:1rem;
}
@media(min-width:640px){.qx-tagline{margin-bottom:1.8rem;gap:1.4rem}}

.qx-spark-btn{
  display:inline-flex;align-items:center;justify-content:center;
  vertical-align:middle;width:30px;height:30px;margin:0 -.4rem;
  transform:translateY(-.12em);flex-shrink:0;cursor:pointer;
  background:transparent;border:0;padding:0;outline:none;
}
@media(min-width:768px){.qx-spark-btn{width:38px;height:38px}}
.qx-spark-btn .qx-spark{
  display:inline-block !important; /* 压过 site.css 的 button span:empty{display:none!important} */
  position:relative;
  width:6px;height:6px;border-radius:9999px;
  background:radial-gradient(circle at 42% 38%,#fff,#eafdff 28%,#a5f3fc 58%,#22d3ee);
  box-shadow:0 0 10px rgba(255,255,255,.7),0 0 22px rgba(34,211,238,.45);
  animation:qxSparkCore 4.6s ease-in-out infinite;
  will-change:transform,box-shadow;
}
@media(min-width:768px){.qx-spark-btn .qx-spark{width:10px;height:10px}}
.qx-spark::before{
  content:"";position:absolute;left:50%;top:50%;width:300%;height:300%;
  transform:translate(-50%,-50%);border-radius:9999px;
  background:radial-gradient(circle,rgba(34,211,238,.3) 0%,transparent 62%);
  pointer-events:none;animation:qxSparkAura 4.6s ease-in-out infinite;
}
.qx-spark::after{
  content:"";position:absolute;left:50%;top:50%;width:420%;height:420%;
  transform:translate(-50%,-50%);
  background:
    linear-gradient(to right,transparent 0%,rgba(255,255,255,.95) 50%,transparent 100%) center/100% 1px no-repeat,
    linear-gradient(to bottom,transparent 0%,rgba(165,243,252,.9) 50%,transparent 100%) center/1px 100% no-repeat;
  pointer-events:none;animation:qxSparkGlint 4.6s ease-in-out infinite;
}
@keyframes qxSparkCore{
  0%,100%{transform:scale(1);box-shadow:0 0 8px rgba(255,255,255,.55),0 0 18px rgba(34,211,238,.3)}
  50%{transform:scale(1.18);box-shadow:0 0 16px rgba(255,255,255,.95),0 0 34px rgba(34,211,238,.6)}
}
@keyframes qxSparkAura{
  0%,100%{transform:translate(-50%,-50%) scale(.9);opacity:.4}
  50%{transform:translate(-50%,-50%) scale(1.25);opacity:.8}
}
@keyframes qxSparkGlint{
  0%,100%{transform:translate(-50%,-50%) rotate(0) scale(.7);opacity:.3}
  50%{transform:translate(-50%,-50%) rotate(45deg) scale(1.15);opacity:.95}
}

.qx-sub{
  margin:0 0 2.4rem;
  font-size:13px;font-weight:300;letter-spacing:.25em;color:rgba(255,255,255,.5);
}
@media(min-width:640px){.qx-sub{font-size:15px;margin-bottom:2.8rem;letter-spacing:.2em}}

/* ---- 量子门户按钮 ---- */
.qx-portal-wrap{display:flex;justify-content:center}
.qx-portal{
  position:relative;display:flex;align-items:center;justify-content:center;
  width:122px;height:122px;border-radius:9999px;
  background:transparent;border:1px solid rgba(96,165,250,.25);
  box-shadow:inset 0 0 24px rgba(59,130,246,.08);
  cursor:pointer;
  transition:transform .6s cubic-bezier(.22,1,.36,1),border-color .5s ease,box-shadow .5s ease;
}
@media(min-width:768px){.qx-portal{width:138px;height:138px}}
.qx-portal-aura{
  position:absolute;inset:-60%;border-radius:50%;
  background:radial-gradient(circle,rgba(59,130,246,.3) 0%,rgba(59,130,246,.08) 42%,transparent 70%);
  opacity:.7;animation:qxPortalAura 5s ease-in-out infinite;pointer-events:none;
}
.qx-portal-pulse{
  position:absolute;inset:0;border-radius:50%;
  border:1px solid rgba(96,165,250,.35);
  animation:qxPortalPulse 4s ease-out infinite;pointer-events:none;
}
.qx-portal-ring{
  position:absolute;inset:-6px;border-radius:50%;padding:1px;
  background:conic-gradient(from 0deg,transparent 0%,rgba(103,232,249,.55) 22%,transparent 50%,rgba(59,130,246,.45) 78%,transparent 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:destination-out;mask-composite:exclude;
  animation:qxSpin 14s linear infinite;opacity:.75;pointer-events:none;
}
.qx-portal-core{
  position:absolute;inset:0;border-radius:50%;
  background:radial-gradient(circle at 50% 50%,rgba(59,130,246,.22),transparent 68%);
  opacity:.8;transition:opacity .5s ease,transform .6s ease;pointer-events:none;
}
.qx-portal:hover{transform:scale(1.06);border-color:rgba(103,232,249,.7);box-shadow:0 0 30px rgba(59,130,246,.35),inset 0 0 30px rgba(59,130,246,.18)}
.qx-portal:hover .qx-portal-core{opacity:1;transform:scale(1.05)}
.qx-portal-label{
  position:relative;z-index:10;display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;
}
.qx-portal-label .zh{font-size:19px;font-weight:600;color:#fff;text-shadow:0 0 8px rgba(34,211,238,.6);letter-spacing:.1em}
.qx-portal-label .en{font-family:'Orbitron QX',sans-serif;font-size:11px;color:rgba(103,232,249,.9);margin-top:6px;letter-spacing:.14em}
@keyframes qxPortalAura{0%,100%{opacity:.55;transform:scale(1)}50%{opacity:1;transform:scale(1.1)}}
@keyframes qxPortalPulse{0%{transform:scale(1);opacity:.45}70%{opacity:0}100%{transform:scale(1.55);opacity:0}}
@keyframes qxSpin{to{transform:rotate(360deg)}}

/* ---- 次级 CTA ---- */
.qx-cta{
  display:flex;justify-content:center;gap:34px;margin-top:30px;
}
.qx-cta a{
  font-size:13px;letter-spacing:.12em;color:rgba(255,255,255,.55);
  text-decoration:none;transition:color .3s;
  display:inline-flex;align-items:center;gap:6px;
}
.qx-cta a:hover{color:#fff}

/* ---- 入场动效 ---- */
.hero-rise{opacity:0;animation:qxHeroRise 1.1s cubic-bezier(.22,1,.36,1) both}
@keyframes qxHeroRise{
  0%{opacity:0;transform:translateY(28px);filter:blur(10px)}
  100%{opacity:1;transform:translateY(0);filter:blur(0)}
}
body.home-ui .home-hero:not(.is-armed) .hero-rise{animation:none;opacity:1}

/* ---- 滚动提示 ---- */
.qx-cue{position:absolute;bottom:34px;left:0;right:0;display:flex;justify-content:center;z-index:10}
.qx-cue a{display:flex;flex-direction:column;align-items:center;gap:10px;color:inherit;text-decoration:none}
.qx-cue .qx-cue-txt{font-size:12px;letter-spacing:.14em;color:rgba(255,255,255,.4);transition:color .3s}
.qx-cue a:hover .qx-cue-txt{color:rgba(255,255,255,.75)}
.qx-cue svg{width:20px;height:20px;color:rgba(125,211,252,.7);transition:color .3s}
.qx-cue a:hover svg{color:#7dd3fc}
.qx-bob{animation:qxBob 2.4s ease-in-out infinite}
@keyframes qxBob{0%,100%{transform:translateY(0);opacity:.7}50%{transform:translateY(6px);opacity:1}}

/* ---- 响应式 ---- */
@media(max-width:800px){
  body.home-refresh .home-hero{min-height:730px}
  .qx-content{padding:0 1.1rem}
}
@media(max-width:540px){
  body.home-refresh .home-hero{min-height:760px}
  .qx-wordmark h1{font-size:clamp(40px,11vw,52px)}
  .qx-tagline{font-size:22px;letter-spacing:.1em}
  .qx-sub{font-size:12px;letter-spacing:.16em}
  .qx-portal{width:112px;height:112px}
  .qx-cta{gap:22px;margin-top:24px}
}

@media(prefers-reduced-motion:reduce){
  .hero-rise{animation:none;opacity:1}
  .qx-spark,.qx-spark::before,.qx-spark::after,
  .qx-portal-aura,.qx-portal-pulse,.qx-portal-ring,.qx-bob{animation:none}
}

/* 1029 星系轨道交互：首屏空白区域拖拽旋转 / 滚轮缩放，光标反馈（仅首页） */
body.home-ui .home-hero.qx-galaxy-orbit{cursor:grab}
body.home-ui .home-hero.qx-galaxy-orbit.qx-galaxy-grabbing{cursor:grabbing}
body.home-ui .home-hero.qx-galaxy-orbit a,
body.home-ui .home-hero.qx-galaxy-orbit button{cursor:pointer}
