/* 缝文 · 特效层：辉光 / 悬浮装饰 / 文字流光 / 打字机 / 光标 */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: orbFloat var(--dur, 18s) ease-in-out infinite alternate;
}
@keyframes orbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(var(--dx, 40px), var(--dy, -60px), 0) scale(1.15); }
}

/* 文字流光 */
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.38) 50%, transparent 68%);
  transform: translateX(-120%);
  animation: shimmerRun 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmerRun {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(120%); }
}

/* 打字机光标 */
.type-cursor::after {
  content: "▍";
  color: var(--accent-2);
  animation: blink 1s steps(2, start) infinite;
  margin-left: 2px;
}
@keyframes blink { to { visibility: hidden; } }

/* 卡片 3D 倾斜（配合 JS mousemove） */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt .tilt-inner { transform: translateZ(28px); }

/* 边框流光 */
.glow-border {
  position: relative;
}
.glow-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--spin, 0deg), #7c5cff, #22d3ee, #f472b6, #7c5cff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: spinBorder 6s linear infinite;
  opacity: 0.55;
  pointer-events: none;
}
@keyframes spinBorder { to { --spin: 360deg; } }
@property --spin {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* 数字滚动 */
.roll-num { display: inline-block; overflow: hidden; vertical-align: bottom; height: 1.25em; }
.roll-num .roll-inner { display: block; transition: transform 0.7s cubic-bezier(.2, .8, .2, 1); }

/* 落字动画 */
.drop-in > * {
  opacity: 0;
  transform: translateY(14px);
  animation: dropIn 0.55s cubic-bezier(.2, .8, .3, 1) forwards;
}
.drop-in > *:nth-child(1) { animation-delay: 0.05s; }
.drop-in > *:nth-child(2) { animation-delay: 0.13s; }
.drop-in > *:nth-child(3) { animation-delay: 0.21s; }
.drop-in > *:nth-child(4) { animation-delay: 0.29s; }
.drop-in > *:nth-child(5) { animation-delay: 0.37s; }
.drop-in > *:nth-child(6) { animation-delay: 0.45s; }
.drop-in > *:nth-child(7) { animation-delay: 0.53s; }
.drop-in > *:nth-child(8) { animation-delay: 0.61s; }
@keyframes dropIn { to { opacity: 1; transform: translateY(0); } }

/* 悬浮小图标（装饰） */
.float-deco {
  position: absolute;
  font-size: 22px;
  opacity: 0.35;
  pointer-events: none;
  animation: decoFloat var(--dur, 9s) ease-in-out infinite;
}
@keyframes decoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(12deg); }
}

/* 按钮按下的火花 */
.spark {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 400;
  animation: sparkFly 0.7s ease-out forwards;
}
@keyframes sparkFly {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.2); }
}

/* 弹跳入场 */
.bounce-in { animation: bounceIn 0.55s cubic-bezier(.2, .9, .3, 1.35); }
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.86); }
  70% { transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

/* 顶部跑马灯提示条 */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid var(--line);
  padding: 7px 0;
  font-size: 12.5px;
  color: var(--text-dim);
}
.marquee .track {
  display: inline-block;
  padding-left: 100%;
  animation: marqueeRun var(--dur, 22s) linear infinite;
}
@keyframes marqueeRun {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* 呼吸呼吸光圈（生成中状态） */
.pulse-ring {
  position: relative;
}
.pulse-ring::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(124, 92, 255, 0.55);
  animation: pulseRing 1.6s ease-out infinite;
  pointer-events: none;
}
@keyframes pulseRing {
  0% { transform: scale(0.96); opacity: 0.9; }
  100% { transform: scale(1.12); opacity: 0; }
}

/* 光标跟随光晕（JS 控制 --mx/--my） */
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.14), transparent 62%);
  transform: translate(calc(var(--mx, -500px) - 50%), calc(var(--my, -500px) - 50%));
  transition: transform 0.25s ease-out;
}
@media (hover: none) {
  .cursor-glow { display: none; }
}
