/* =========================================================
   首页加载动效 · swarm rebuild（原创轻量版）
   仅首页、每个会话一次、桌面端；尊重 prefers-reduced-motion
   ========================================================= */

.swarm-loading .hero-copy > *,
.swarm-loading .hero-visual {
  animation: none !important;
  opacity: 0;
}
.swarm-loading .hero-visual { opacity: .12; }
.swarm-loading .hero-copy,
.swarm-loading .hero-visual { pointer-events: none; }

/* Logo 周围的扫描环 */
.swarm-loading .brand-mark { position: relative; }
.swarm-loading .brand-mark::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(125, 211, 252, .6);
  border-radius: 18px;
  animation: swarmRing 1.5s ease-out both;
  pointer-events: none;
}
@keyframes swarmRing {
  0% { opacity: 0; transform: scale(.82); }
  25% { opacity: .9; }
  100% { opacity: 0; transform: scale(1.35); }
}

/* 粒子舞台 */
.swarm-stage {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  opacity: 1;
  transition: opacity .3s ease;
}
.swarm-stage.is-fading { opacity: 0; }
.swarm-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* 尺寸标签 */
.swarm-badge {
  position: absolute;
  top: -14px;
  right: 2px;
  padding: 4px 8px;
  border: 1px solid rgba(125, 211, 252, .22);
  border-radius: 6px;
  background: rgba(6, 13, 26, .78);
  color: rgba(147, 211, 255, .85);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .12em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
}
.swarm-badge.is-shown {
  opacity: .9;
  transform: none;
}

/* 跳过按钮 */
.swarm-skip {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  padding: 8px 16px;
  border: 1px solid rgba(148, 197, 255, .24);
  border-radius: 999px;
  background: rgba(6, 13, 26, .72);
  color: rgba(220, 235, 255, .8);
  font-family: inherit;
  font-size: .78rem;
  letter-spacing: .08em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.swarm-skip:hover {
  color: #fff;
  background: rgba(37, 99, 235, .4);
  border-color: rgba(125, 211, 252, .5);
}
