/* WebMotionFX 主题样式 */
:root {
  --bg: #0a0a0f;
  --bg-2: #0f0f17;
  --bg-3: #15151f;
  --bg-4: #1c1c28;
  --bg-5: #25253a;
  --line: rgba(255,255,255,0.06);
  --line-2: rgba(255,255,255,0.10);
  --text: #e4e4e7;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --violet: #a78bfa;
  --pink: #f472b6;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --lime: #a3e635;
  --red: #fb7185;
}

* { box-sizing: border-box; }
html, body { background: var(--bg); }

/* 背景网格 */
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* 卡片基础 */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .3s ease;
}
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.card .demo {
  position: relative;
  height: 180px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(167,139,250,0.08), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(34,211,238,0.08), transparent 50%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.card .demo::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.card .body { padding: 14px 16px 12px; }
.card .name {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.card .name h3 {
  font-weight: 700; color: white; font-size: 14px; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card .meta {
  margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 11px; color: var(--text-3);
}
.card .meta .chip {
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 10px; font-weight: 500;
}
.card .prompt {
  margin-top: 10px; font-size: 12px; line-height: 1.5;
  color: var(--text-3);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  min-height: 36px;
}
.card .actions {
  display: flex; gap: 6px; margin-top: 10px;
}
.card .actions button {
  flex: 1; height: 30px; border-radius: 8px;
  font-size: 11px; font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  transition: background .15s, border-color .15s, color .15s;
  cursor: pointer;
}
.card .actions button:hover { background: rgba(255,255,255,0.08); border-color: var(--line-2); }
.card .actions button.primary { background: linear-gradient(135deg, var(--violet), var(--pink)); border-color: transparent; color: white; }
.card .actions button.primary:hover { filter: brightness(1.1); }
.card .actions button.copied { background: rgba(163,230,53,0.15); border-color: rgba(163,230,53,0.4); color: var(--lime); }

/* 卷卡片 */
.vol-card { padding: 20px; }
.vol-card .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vol-card .num {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(255,255,255,0.05); color: var(--text-2);
  border: 1px solid var(--line);
}
.vol-card .count {
  font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 4px;
}
.vol-card h3 { margin-top: 12px; font-size: 18px; font-weight: 800; color: white; letter-spacing: -0.01em; }
.vol-card .desc { margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--text-3); }
.vol-card .source { margin-top: 10px; font-size: 11px; color: var(--text-3); font-family: 'JetBrains Mono', monospace; }
.vol-card .source::before { content: "→ "; opacity: .5; }
.vol-card .arrow {
  margin-top: 14px; font-size: 12px; color: var(--text-2);
  display: flex; align-items: center; gap: 4px; font-weight: 500;
  transition: color .15s, transform .15s;
}
.vol-card:hover .arrow { color: white; transform: translateX(2px); }
.vol-card .accent { position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.vol-card .accent-grad { background: linear-gradient(90deg, var(--violet), var(--pink), var(--cyan)); opacity: 0; transition: opacity .2s; }
.vol-card:hover .accent-grad { opacity: 1; }

/* 标签 */
.tag {
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-2); font-size: 12px; font-weight: 500;
  transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
}
.tag:hover { background: rgba(255,255,255,0.08); color: white; border-color: var(--line-2); }
.tag .ct { font-size: 10px; color: var(--text-3); font-family: 'JetBrains Mono', monospace; }

/* 场景卡片 */
.scenario {
  padding: 20px; background: rgba(255,255,255,0.02);
  border: 1px solid var(--line); border-radius: 16px;
  transition: background .15s, border-color .15s;
}
.scenario:hover { background: rgba(255,255,255,0.04); border-color: var(--line-2); }
.scenario .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  display: grid; place-items: center; color: white; font-weight: 800; font-size: 18px;
  margin-bottom: 14px;
}
.scenario h3 { font-size: 16px; font-weight: 700; color: white; }
.scenario p { margin-top: 4px; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.scenario { position: relative; cursor: pointer; }
.scenario .scenario-cover {
  position: absolute; inset: 0; z-index: 1; border-radius: 16px;
}
.scenario > .icon,
.scenario > h3,
.scenario > p,
.scenario > .scenario-meta,
.scenario > ul { position: relative; z-index: 3; }
.scenario .scenario-meta {
  margin-top: 10px; display: inline-block;
}
.scenario .scenario-vol {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px;
  background: rgba(167,139,250,0.18); border: 1px solid rgba(167,139,250,0.4);
  color: #c4b5fd;
  transition: all .15s;
  letter-spacing: 0.3px;
}
.scenario:hover .scenario-vol { background: rgba(167,139,250,0.28); border-color: rgba(167,139,250,0.6); color: #ddd6fe; }
.scenario::after {
  content: "→"; position: absolute; bottom: 16px; right: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(167,139,250,0.1); border: 1px solid rgba(167,139,250,0.3);
  color: var(--violet); font-size: 14px; font-weight: 700;
  display: grid; place-items: center;
  transition: all .2s;
  z-index: 2;
}
.scenario:hover::after { background: var(--violet); color: white; transform: translateX(2px); }
.scenario ul { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px; position: relative; z-index: 2; }
.scenario ul li {
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
  transition: all .15s; cursor: pointer;
}
.scenario ul li:hover { background: rgba(34,211,238,0.15); border-color: rgba(34,211,238,0.4); color: var(--cyan); }

/* 创作者 */
.creator {
  padding: 16px; border-radius: 14px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
  transition: all .15s;
}
.creator:hover { background: rgba(255,255,255,0.04); border-color: var(--line-2); }
.creator .name { font-size: 14px; font-weight: 700; color: white; }
.creator .desc { font-size: 11px; color: var(--text-3); line-height: 1.5; }
.creator .count { font-size: 11px; color: var(--violet); font-weight: 600; font-family: 'JetBrains Mono', monospace; margin-top: 4px; }

/* Toast */
#toast.show { opacity: 1; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-5); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* =================== */
/* Demos - 真实可交互   */
/* =================== */

/* D1. 霓虹按钮 */
.d-neon-btn {
  padding: 12px 28px; font-size: 14px; font-weight: 700; color: #fff;
  background: transparent; border: 2px solid #a78bfa; border-radius: 8px;
  cursor: pointer; position: relative; letter-spacing: 0.5px;
  text-shadow: 0 0 8px #a78bfa;
  box-shadow: 0 0 8px #a78bfa, inset 0 0 8px #a78bfa;
  transition: all .25s;
}
.d-neon-btn:hover {
  background: #a78bfa; color: #0a0a0f; text-shadow: none;
  box-shadow: 0 0 24px #a78bfa, 0 0 48px #a78bfa, inset 0 0 8px #a78bfa;
}

/* D2. 3D 倾斜卡片 */
.d-tilt-wrap { perspective: 800px; }
.d-tilt {
  width: 200px; height: 120px; border-radius: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: grid; place-items: center; color: white; font-weight: 700; font-size: 14px;
  transform-style: preserve-3d;
  transition: transform .15s ease-out;
  box-shadow: 0 10px 30px rgba(102,126,234,0.3);
  cursor: pointer;
}

/* D3. 极光背景 */
.d-aurora { width: 100%; height: 100%; position: relative; overflow: hidden; border-radius: 0; }
.d-aurora::before, .d-aurora::after {
  content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  filter: blur(40px); opacity: 0.7; animation: aurora-move 8s ease-in-out infinite;
}
.d-aurora::before { background: #22d3ee; top: 20%; left: 20%; }
.d-aurora::after { background: #a78bfa; bottom: 20%; right: 20%; animation-delay: -4s; }
@keyframes aurora-move {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.2); }
}

/* D4. 磁性按钮 */
.d-mag {
  padding: 12px 28px; background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white; border: none; border-radius: 10px; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: transform .15s ease-out;
  box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}

/* D5. 打字机 */
.d-tw {
  font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; color: #fff;
  border-right: 2px solid #a78bfa; padding-right: 4px;
  white-space: nowrap; overflow: hidden; width: 12ch;
  animation: tw-type 4s steps(12) infinite, tw-cursor .6s step-end infinite;
}
@keyframes tw-type {
  0%, 90%, 100% { width: 12ch; }
  45%, 55% { width: 0; }
}
@keyframes tw-cursor { 50% { border-color: transparent; } }

/* D6. 彩虹渐变按钮 */
.d-rainbow {
  padding: 12px 28px; border: none; border-radius: 10px; color: white; font-weight: 700; font-size: 14px;
  cursor: pointer; position: relative; overflow: hidden;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #eab308, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #ef4444);
  background-size: 200% 100%;
  animation: rainbow-shift 3s linear infinite;
  box-shadow: 0 4px 16px rgba(139,92,246,0.4);
}
@keyframes rainbow-shift { to { background-position: 200% 0; } }

/* D7. 圆点加载器 */
.d-dots { display: flex; gap: 8px; }
.d-dots span {
  width: 12px; height: 12px; border-radius: 50%; background: #22d3ee;
  animation: dots-bounce 1.4s ease-in-out infinite;
}
.d-dots span:nth-child(2) { animation-delay: .16s; background: #a78bfa; }
.d-dots span:nth-child(3) { animation-delay: .32s; background: #f472b6; }
@keyframes dots-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-12px); opacity: 1; }
}

/* D8. 玻璃态卡片 */
.d-glass {
  width: 180px; height: 110px; border-radius: 16px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 16px; display: flex; flex-direction: column; justify-content: space-between;
  color: white; font-size: 12px; cursor: pointer;
  transition: all .2s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.d-glass:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.d-glass .h { font-weight: 700; font-size: 14px; }
.d-glass .s { color: rgba(255,255,255,0.6); }

/* D9. 故障文字 */
.d-glitch {
  font-size: 28px; font-weight: 900; color: white; letter-spacing: 2px;
  position: relative; display: inline-block;
  text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff;
  animation: glitch-shake 0.3s infinite;
}
.d-glitch::before, .d-glitch::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%;
}
.d-glitch::before { color: #ff00ff; animation: glitch-1 1s infinite linear alternate-reverse; }
.d-glitch::after { color: #00ffff; animation: glitch-2 1s infinite linear alternate-reverse; }
@keyframes glitch-shake { 0%, 100% { transform: translate(0); } 25% { transform: translate(-1px, 1px); } 50% { transform: translate(1px, -1px); } 75% { transform: translate(1px, 1px); } }
@keyframes glitch-1 { 0% { clip-path: inset(20% 0 60% 0); transform: translate(-2px, 0); } 100% { clip-path: inset(60% 0 10% 0); transform: translate(2px, 0); } }
@keyframes glitch-2 { 0% { clip-path: inset(40% 0 40% 0); transform: translate(2px, 0); } 100% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 0); } }

/* D10. 粒子按钮 */
.d-particle {
  padding: 12px 28px; background: #1c1c28; color: #a78bfa; border: 2px solid #a78bfa;
  border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; position: relative;
  transition: all .2s;
}
.d-particle:hover { background: #a78bfa; color: #1c1c28; box-shadow: 0 0 24px #a78bfa; }
.d-particle:active::after {
  content: ""; position: absolute; inset: 0; border-radius: 8px;
  background: radial-gradient(circle, rgba(167,139,250,0.4), transparent 60%);
  animation: particle-burst 0.4s ease-out;
}
@keyframes particle-burst { to { transform: scale(1.5); opacity: 0; } }

/* D11. 数字滚动 */
.d-counter {
  font-family: 'JetBrains Mono', monospace; font-size: 36px; font-weight: 800;
  color: white;
  background: linear-gradient(90deg, #22d3ee, #a78bfa);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.d-counter-bar {
  margin-top: 8px; height: 4px; width: 120px; background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden;
}
.d-counter-bar::after {
  content: ""; display: block; height: 100%; width: 75%;
  background: linear-gradient(90deg, #22d3ee, #a78bfa);
  animation: counter-grow 2s ease-out;
}
@keyframes counter-grow { from { width: 0; } }

/* D12. 聚光灯卡片 */
.d-spot {
  width: 200px; height: 120px; border-radius: 12px;
  background: #15151f; border: 1px solid rgba(255,255,255,0.08);
  position: relative; overflow: hidden; cursor: pointer;
  display: grid; place-items: center; color: white; font-weight: 700; font-size: 14px;
  transition: border-color .2s;
}
.d-spot::before {
  content: ""; position: absolute; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(251,191,36,0.25), transparent 60%);
  transform: translate(-50%, -50%); pointer-events: none; opacity: 0;
  transition: opacity .2s;
  left: var(--mx, 50%); top: var(--my, 50%);
}
.d-spot:hover { border-color: rgba(251,191,36,0.3); }
.d-spot:hover::before { opacity: 1; }

/* D13. 开关 */
.d-toggle {
  width: 60px; height: 30px; background: #1c1c28; border-radius: 30px;
  position: relative; cursor: pointer; transition: background .25s;
  border: 1px solid rgba(255,255,255,0.08);
}
.d-toggle::after {
  content: ""; position: absolute; left: 3px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; background: white; border-radius: 50%;
  transition: left .25s;
}
.d-toggle.on { background: linear-gradient(135deg, #a78bfa, #f472b6); }
.d-toggle.on::after { left: 33px; }

/* D14. 复选框 */
.d-check {
  width: 28px; height: 28px; border-radius: 6px;
  background: #1c1c28; border: 2px solid #3a3a55; cursor: pointer;
  display: grid; place-items: center; transition: all .2s;
}
.d-check::after { content: "✓"; color: white; font-size: 16px; font-weight: 700; opacity: 0; transform: scale(0.5); transition: all .2s; }
.d-check.on { background: linear-gradient(135deg, #22d3ee, #a78bfa); border-color: transparent; }
.d-check.on::after { opacity: 1; transform: scale(1); }

/* D15. 范围滑块 */
.d-range { width: 180px; }
.d-range input { width: 100%; -webkit-appearance: none; height: 6px; background: #1c1c28; border-radius: 3px; outline: none; }
.d-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: linear-gradient(135deg, #a78bfa, #f472b6); border-radius: 50%; cursor: pointer; box-shadow: 0 0 12px rgba(167,139,250,0.5); }

/* D16. 加载环 */
.d-ring { width: 48px; height: 48px; border: 3px solid rgba(255,255,255,0.1); border-top-color: #a78bfa; border-right-color: #f472b6; border-radius: 50%; animation: ring-spin 1s linear infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* D17. 心跳 */
.d-heart { font-size: 40px; color: #fb7185; animation: heart-beat 1.2s ease-in-out infinite; display: inline-block; }
@keyframes heart-beat { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.2); } 50% { transform: scale(0.95); } }

/* D18. 翻转卡 */
.d-flip-wrap { perspective: 800px; }
.d-flip {
  width: 140px; height: 90px; border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  cursor: pointer; transition: transform .6s;
  transform-style: preserve-3d; position: relative;
}
.d-flip:hover { transform: rotateY(180deg); }
.d-flip::after {
  content: "背面"; position: absolute; inset: 0;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 12px; display: grid; place-items: center; color: white; font-weight: 700;
  transform: rotateY(180deg) translateZ(1px);
}

/* D19. 抖动 */
.d-shake { padding: 10px 20px; background: #1c1c28; border: 1px solid #fb7185; color: #fb7185; border-radius: 8px; font-weight: 600; cursor: pointer; }
.d-shake:active { animation: shake 0.3s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* D20. 进度条 */
.d-progress { width: 180px; height: 8px; background: #1c1c28; border-radius: 4px; overflow: hidden; }
.d-progress::after { content: ""; display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22d3ee, #a78bfa, #f472b6); border-radius: 4px; animation: progress-grow 3s ease-out forwards; }
@keyframes progress-grow { to { width: 100%; } }

/* D21. 工具提示 */
.d-tip { position: relative; }
.d-tip-btn { padding: 8px 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 6px; cursor: pointer; font-size: 13px; }
.d-tip-text {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: #1c1c28; border: 1px solid rgba(255,255,255,0.1); color: white; padding: 6px 10px;
  border-radius: 6px; font-size: 11px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: all .2s;
}
.d-tip:hover .d-tip-text { opacity: 1; transform: translateX(-50%) translateY(0); }

/* D22. 输入框 */
.d-input {
  width: 200px; padding: 10px 14px; background: #1c1c28; border: 1px solid rgba(255,255,255,0.1);
  color: white; border-radius: 8px; font-size: 13px; outline: none; transition: all .2s;
}
.d-input:focus { border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167,139,250,0.15); }
.d-input::placeholder { color: rgba(255,255,255,0.3); }

/* D23. 徽章 */
.d-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: rgba(167,139,250,0.15); border: 1px solid rgba(167,139,250,0.3);
  color: #a78bfa; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.d-badge .dot { width: 6px; height: 6px; background: #a78bfa; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* D24. 波浪文字 */
.d-wave {
  font-size: 22px; font-weight: 800; color: white; letter-spacing: 2px;
  display: inline-flex; gap: 2px;
}
.d-wave span { display: inline-block; animation: wave-bounce 1.4s ease-in-out infinite; }
.d-wave span:nth-child(2) { animation-delay: 0.1s; }
.d-wave span:nth-child(3) { animation-delay: 0.2s; }
.d-wave span:nth-child(4) { animation-delay: 0.3s; }
.d-wave span:nth-child(5) { animation-delay: 0.4s; }
@keyframes wave-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } }

/* D25. 新拟态 */
.d-neu {
  width: 100px; height: 100px; border-radius: 20px;
  background: #15151f;
  box-shadow: 8px 8px 16px #0a0a0f, -8px -8px 16px #1f1f2e;
  display: grid; place-items: center; color: white; font-size: 24px; font-weight: 800;
  cursor: pointer; transition: box-shadow .2s;
}
.d-neu:active { box-shadow: inset 4px 4px 8px #0a0a0f, inset -4px -4px 8px #1f1f2e; }

/* D26. 标签 */
.d-tabs { display: flex; gap: 4px; padding: 4px; background: #1c1c28; border-radius: 10px; }
.d-tabs div {
  padding: 6px 14px; font-size: 12px; color: rgba(255,255,255,0.6);
  border-radius: 6px; cursor: pointer; transition: all .2s;
  font-weight: 500;
}
.d-tabs div.on { background: linear-gradient(135deg, #a78bfa, #f472b6); color: white; }

/* D27. 折角 */
.d-fold {
  width: 140px; height: 90px; border-radius: 8px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  position: relative; cursor: pointer; overflow: hidden;
  display: grid; place-items: center; color: white; font-weight: 700; font-size: 13px;
}
.d-fold::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: 24px; height: 24px;
  background: linear-gradient(225deg, #15151f 50%, transparent 50%);
  transition: all .25s;
}
.d-fold:hover::after { width: 80px; height: 80px; }

/* D28. 缩放 */
.d-zoom { width: 120px; height: 80px; border-radius: 10px; background: linear-gradient(135deg, #ec4899, #8b5cf6); cursor: pointer; transition: transform .3s; display: grid; place-items: center; color: white; font-weight: 700; font-size: 12px; }
.d-zoom:hover { transform: scale(1.1); }

/* D29. 边框跑马灯 */
.d-border-mq {
  position: relative; padding: 14px 24px; background: #15151f; color: white; font-weight: 700;
  border-radius: 8px; cursor: pointer;
}
.d-border-mq::before {
  content: ""; position: absolute; inset: -2px; border-radius: 10px;
  background: conic-gradient(from 0deg, #a78bfa, #f472b6, #22d3ee, #a78bfa);
  z-index: -1; animation: mq-rotate 3s linear infinite;
}
@keyframes mq-rotate { to { transform: rotate(360deg); } }

/* D30. 跑马灯文字 */
.d-mq-text {
  display: flex; gap: 32px; font-size: 18px; font-weight: 800; color: white;
  white-space: nowrap;
  animation: mq-scroll 8s linear infinite;
}
.d-mq-text span { display: inline-flex; align-items: center; gap: 32px; }
.d-mq-text span::after { content: "✦"; color: #a78bfa; }
@keyframes mq-scroll { to { transform: translateX(-50%); } }

/* D31. 悬浮层 */
.d-floaty {
  width: 130px; padding: 14px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; color: white; font-size: 12px;
  animation: floaty 3s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* D32. 翻转数字 */
.d-flip-num {
  display: inline-flex; align-items: center; gap: 1px; font-family: 'JetBrains Mono', monospace;
  font-size: 28px; font-weight: 800; color: #a3e635;
  background: #0a0a0f; padding: 6px 12px; border-radius: 6px; border: 1px solid #a3e635;
}

/* D33. 滑入 */
.d-slide { padding: 12px 20px; background: linear-gradient(135deg, #06b6d4, #3b82f6); color: white; font-weight: 700; font-size: 13px; border-radius: 8px; cursor: pointer; transition: transform .25s; }
.d-slide:hover { transform: translateX(8px); }

/* D34. 闪烁 */
.d-blink {
  padding: 12px 24px; background: #1c1c28; color: #fbbf24; border: 2px solid #fbbf24;
  font-weight: 700; border-radius: 6px; font-size: 13px;
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 #fbbf24; } 50% { opacity: 0.6; box-shadow: 0 0 24px #fbbf24; } }

/* D35. 链接下划线 */
.d-link {
  position: relative; color: white; font-weight: 600; font-size: 16px; cursor: pointer; padding: 4px 2px;
}
.d-link::after {
  content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, #a78bfa, #f472b6);
  transform: scaleX(0); transform-origin: right; transition: transform .3s;
}
.d-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* D36. 通知 */
.d-toast {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #15151f; border: 1px solid rgba(163,230,53,0.4);
  border-radius: 10px; color: white; font-size: 12px; min-width: 200px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.d-toast .icon { width: 20px; height: 20px; border-radius: 50%; background: #a3e635; color: #0a0a0f; display: grid; place-items: center; font-weight: 800; font-size: 12px; }

/* D37. 骨架屏 */
.d-skel { width: 200px; }
.d-skel .row { height: 10px; background: linear-gradient(90deg, #1c1c28 0%, #25253a 50%, #1c1c28 100%); background-size: 200% 100%; border-radius: 4px; margin-bottom: 8px; animation: skel-shine 1.4s infinite; }
.d-skel .row:nth-child(2) { width: 70%; }
.d-skel .row:nth-child(3) { width: 85%; }
@keyframes skel-shine { to { background-position: -200% 0; } }

/* D38. 头像 */
.d-avatars { display: flex; }
.d-avatars > div {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid #15151f; margin-left: -10px;
  display: grid; place-items: center; color: white; font-weight: 700; font-size: 12px;
}
.d-avatars > div:first-child { margin-left: 0; }

/* D39. 倒计时 */
.d-cd { display: flex; gap: 6px; }
.d-cd > div {
  background: #15151f; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  padding: 8px 10px; min-width: 48px; text-align: center; color: white;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 16px;
}
.d-cd > div span { display: block; font-size: 9px; color: rgba(255,255,255,0.5); margin-top: 2px; font-weight: 500; }

/* D40. 跑马灯画廊 */
.d-gallery { display: flex; gap: 8px; }
.d-gallery > div {
  width: 60px; height: 40px; border-radius: 6px; flex-shrink: 0;
}

/* D41. 光标 */
.d-cursor-area {
  width: 180px; height: 100px; background: #1c1c28; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; position: relative; cursor: none; display: grid; place-items: center;
  color: rgba(255,255,255,0.4); font-size: 11px;
}
.d-cursor-area::before {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #f472b6);
  pointer-events: none; transform: translate(-50%, -50%);
  box-shadow: 0 0 16px rgba(167,139,250,0.5);
  left: 50%; top: 50%;
  transition: left .15s, top .15s;
}

/* D42. 视频播放器 */
.d-player {
  width: 200px; padding: 10px; background: #15151f; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}
.d-player .top { display: flex; align-items: center; gap: 8px; }
.d-player .cover { width: 36px; height: 36px; border-radius: 6px; background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.d-player .info { flex: 1; }
.d-player .info .t { font-size: 11px; color: white; font-weight: 600; }
.d-player .info .a { font-size: 9px; color: rgba(255,255,255,0.4); }
.d-player .ctrl { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.d-player .play { width: 24px; height: 24px; border-radius: 50%; background: white; color: #0a0a0f; display: grid; place-items: center; font-size: 9px; }
.d-player .bar { flex: 1; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.d-player .bar::after { content: ""; display: block; height: 100%; width: 40%; background: white; }

/* D43. 评分 */
.d-rate { display: inline-flex; gap: 2px; }
.d-rate span { color: #fbbf24; font-size: 18px; cursor: pointer; transition: transform .15s; }
.d-rate span:hover { transform: scale(1.2); }

/* D44. 标签 chip */
.d-chip { display: inline-flex; gap: 4px; flex-wrap: wrap; max-width: 200px; }
.d-chip span {
  padding: 3px 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px; font-size: 10px; color: rgba(255,255,255,0.7);
}
.d-chip span.on { background: rgba(167,139,250,0.2); border-color: rgba(167,139,250,0.4); color: #a78bfa; }

/* D45. 步骤条 */
.d-steps { display: flex; align-items: center; gap: 4px; }
.d-steps > div { width: 28px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); }
.d-steps > div.done { background: linear-gradient(90deg, #a78bfa, #f472b6); }
.d-steps > div.cur { background: #22d3ee; width: 40px; }

/* D46. 二维码 */
.d-qr { width: 60px; height: 60px; background: white; padding: 4px; border-radius: 4px;
  background-image:
    linear-gradient(45deg, #000 25%, transparent 25%),
    linear-gradient(-45deg, #000 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #000 75%),
    linear-gradient(-45deg, transparent 75%, #000 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}

/* D47. 装饰 */
.d-ornament {
  width: 120px; height: 80px; position: relative;
  background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(244,114,182,0.2));
  border-radius: 12px; overflow: hidden;
}
.d-ornament::before, .d-ornament::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(8px);
}
.d-ornament::before { width: 40px; height: 40px; background: #a78bfa; top: -10px; left: 10px; }
.d-ornament::after { width: 50px; height: 50px; background: #f472b6; bottom: -15px; right: 5px; }

/* D48. CTA */
.d-cta {
  padding: 12px 28px; background: linear-gradient(135deg, #a78bfa, #f472b6); color: white;
  font-weight: 800; font-size: 14px; border-radius: 999px; border: none; cursor: pointer;
  letter-spacing: 0.5px; position: relative; overflow: hidden;
  box-shadow: 0 8px 24px rgba(167,139,250,0.4);
}
.d-cta::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
}
.d-cta:hover::after { animation: cta-shine 0.6s; }
@keyframes cta-shine { to { transform: translateX(100%); } }

/* ====== 文本提示词的迷你预览 ====== */
.demo .pv-ripple, .demo .pv-pulse, .demo .pv-rotate, .demo .pv-fadein, .demo .pv-slide,
.demo .pv-flip, .demo .pv-bounce, .demo .pv-shake, .demo .pv-float, .demo .pv-wave,
.demo .pv-spinner, .demo .pv-glass, .demo .pv-gradient, .demo .pv-border, .demo .pv-counter,
.demo .pv-toggle, .demo .pv-check, .demo .pv-card, .demo .pv-text, .demo .pv-btn,
.demo .pv-icon, .demo .pv-bar, .demo .pv-avatars, .demo .pv-dots, .demo .pv-skel,
.demo .pv-tabs, .demo .pv-cd, .demo .pv-blur, .demo .pv-mq, .demo .pv-loader, .demo .pv-glow, .demo .pv-neon {
  transform-origin: center;
}
.demo .pv-ripple { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #22d3ee, #a78bfa); position: relative; }
.demo .pv-ripple::before, .demo .pv-ripple::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #a78bfa; animation: pv-ripple-out 1.6s ease-out infinite; }
.demo .pv-ripple::after { animation-delay: .8s; }
@keyframes pv-ripple-out { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }
.demo .pv-pulse { width: 48px; height: 48px; border-radius: 50%; background: #fb7185; animation: pv-pulse 1.2s ease-in-out infinite; }
@keyframes pv-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.demo .pv-glow, .demo .pv-neon { padding: 10px 24px; font-size: 13px; font-weight: 700; color: #a78bfa; border: 2px solid #a78bfa; border-radius: 8px; box-shadow: 0 0 12px #a78bfa, inset 0 0 8px #a78bfa; text-shadow: 0 0 4px #a78bfa; animation: pv-glow 2s ease-in-out infinite; }
@keyframes pv-glow { 50% { box-shadow: 0 0 24px #a78bfa, inset 0 0 12px #a78bfa; } }
.demo .pv-rotate { width: 36px; height: 36px; border: 3px solid #1c1c28; border-top-color: #a78bfa; border-right-color: #f472b6; border-radius: 50%; animation: pv-spin 1s linear infinite; }
@keyframes pv-spin { to { transform: rotate(360deg); } }
.demo .pv-spinner, .demo .pv-loader { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,0.1); border-top-color: #22d3ee; border-radius: 50%; animation: pv-spin 1s linear infinite; }
.demo .pv-fadein { width: 80px; height: 40px; background: linear-gradient(135deg, #22d3ee, #a78bfa); border-radius: 6px; animation: pv-fadein 2s ease-in-out infinite; }
@keyframes pv-fadein { 0%, 100% { opacity: 0.2; transform: translateY(8px); } 50% { opacity: 1; transform: translateY(0); } }
.demo .pv-slide { width: 80px; height: 32px; background: linear-gradient(135deg, #06b6d4, #3b82f6); border-radius: 6px; animation: pv-slide 1.5s ease-in-out infinite; }
@keyframes pv-slide { 0%, 100% { transform: translateX(-30px); } 50% { transform: translateX(30px); } }
.demo .pv-flip { width: 60px; height: 40px; background: linear-gradient(135deg, #f59e0b, #ef4444); border-radius: 6px; color: white; font-weight: 700; display: grid; place-items: center; font-size: 14px; animation: pv-flip 2s ease-in-out infinite; }
@keyframes pv-flip { 50% { transform: rotateY(180deg); } }
.demo .pv-bounce { width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, #ec4899, #8b5cf6); color: white; display: grid; place-items: center; font-weight: 700; font-size: 14px; animation: pv-bounce 1s ease-in-out infinite; }
@keyframes pv-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.demo .pv-shake { width: 40px; height: 40px; border-radius: 6px; background: rgba(251,113,133,0.15); border: 1px solid #fb7185; color: #fb7185; display: grid; place-items: center; font-weight: 700; font-size: 14px; animation: pv-shake 0.6s ease-in-out infinite; }
@keyframes pv-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.demo .pv-float { width: 50px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #06b6d4, #3b82f6); color: white; display: grid; place-items: center; font-weight: 700; font-size: 12px; animation: pv-float 2s ease-in-out infinite; }
@keyframes pv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.demo .pv-wave { display: inline-flex; gap: 2px; }
.demo .pv-wave span { display: inline-block; color: #a78bfa; font-weight: 800; font-size: 18px; animation: pv-wave 1.4s ease-in-out infinite; }
.demo .pv-wave span:nth-child(2) { animation-delay: 0.1s; }
.demo .pv-wave span:nth-child(3) { animation-delay: 0.2s; }
.demo .pv-wave span:nth-child(4) { animation-delay: 0.3s; }
@keyframes pv-wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }
.demo .pv-glass { padding: 10px 16px; background: rgba(255,255,255,0.08); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.18); color: white; font-weight: 700; font-size: 13px; border-radius: 8px; }
.demo .pv-gradient { width: 100px; height: 50px; border-radius: 8px; background: linear-gradient(90deg, #ef4444, #f59e0b, #eab308, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #ef4444); background-size: 200% 100%; animation: pv-grad 3s linear infinite; }
@keyframes pv-grad { to { background-position: 200% 0; } }
.demo .pv-border { padding: 10px 16px; background: #15151f; color: white; font-weight: 700; font-size: 13px; border-radius: 8px; position: relative; }
.demo .pv-border::before { content: ""; position: absolute; inset: -2px; border-radius: 10px; background: conic-gradient(from 0deg, #a78bfa, #f472b6, #22d3ee, #a78bfa); z-index: -1; animation: pv-spin 3s linear infinite; }
.demo .pv-counter { font-family: 'JetBrains Mono', monospace; font-size: 32px; font-weight: 800; background: linear-gradient(90deg, #22d3ee, #a78bfa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.demo .pv-toggle { width: 44px; height: 24px; background: #1c1c28; border-radius: 24px; position: relative; border: 1px solid rgba(255,255,255,0.1); }
.demo .pv-toggle::after { content: ""; position: absolute; left: 2px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; background: white; border-radius: 50%; transition: left .25s; }
.demo .pv-toggle.on { background: linear-gradient(135deg, #a78bfa, #f472b6); }
.demo .pv-toggle.on::after { left: 22px; }
.demo .pv-check { width: 24px; height: 24px; border-radius: 6px; background: #1c1c28; border: 2px solid #3a3a55; display: grid; place-items: center; }
.demo .pv-check::after { content: "✓"; color: white; font-size: 14px; font-weight: 700; opacity: 0; }
.demo .pv-check.on { background: linear-gradient(135deg, #22d3ee, #a78bfa); border-color: transparent; }
.demo .pv-check.on::after { opacity: 1; }
.demo .pv-card { width: 80px; height: 50px; border-radius: 8px; background: linear-gradient(135deg, #667eea, #764ba2); color: white; font-weight: 700; font-size: 14px; display: grid; place-items: center; transform: perspective(400px) rotateY(-15deg) rotateX(5deg); }
.demo .pv-text { font-size: 18px; font-weight: 900; color: white; position: relative; display: inline-block; text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff; letter-spacing: 2px; }
.demo .pv-btn { padding: 8px 18px; background: linear-gradient(135deg, #a78bfa, #f472b6); color: white; font-weight: 700; font-size: 13px; border-radius: 999px; border: none; }
.demo .pv-icon { font-size: 28px; color: #fbbf24; }
.demo .pv-bar { width: 120px; height: 8px; background: #1c1c28; border-radius: 4px; overflow: hidden; }
.demo .pv-bar::after { content: ""; display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22d3ee, #a78bfa, #f472b6); border-radius: 4px; animation: pv-bar 2.5s ease-out infinite; }
@keyframes pv-bar { to { width: 100%; } }
.demo .pv-avatars { display: flex; }
.demo .pv-avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #15151f; margin-left: -8px; display: grid; place-items: center; color: white; font-weight: 700; font-size: 11px; }
.demo .pv-avatars span:first-child { margin-left: 0; background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.demo .pv-avatars span:nth-child(2) { background: linear-gradient(135deg, #22d3ee, #3b82f6); }
.demo .pv-avatars span:nth-child(3) { background: linear-gradient(135deg, #a3e635, #22c55e); }
.demo .pv-dots { display: flex; gap: 6px; }
.demo .pv-dots span { width: 10px; height: 10px; border-radius: 50%; background: #22d3ee; animation: pv-bounce 1.2s ease-in-out infinite; }
.demo .pv-dots span:nth-child(2) { animation-delay: .15s; background: #a78bfa; }
.demo .pv-dots span:nth-child(3) { animation-delay: .3s; background: #f472b6; }
.demo .pv-skel { width: 140px; }
.demo .pv-skel div { height: 8px; background: linear-gradient(90deg, #1c1c28 0%, #25253a 50%, #1c1c28 100%); background-size: 200% 100%; border-radius: 4px; margin-bottom: 6px; animation: pv-skel 1.4s infinite; }
.demo .pv-skel div:nth-child(2) { width: 70%; }
@keyframes pv-skel { to { background-position: -200% 0; } }
.demo .pv-tabs { display: flex; gap: 4px; padding: 3px; background: #1c1c28; border-radius: 8px; }
.demo .pv-tabs span { padding: 4px 12px; font-size: 11px; color: rgba(255,255,255,0.6); border-radius: 5px; font-weight: 500; }
.demo .pv-tabs span.on { background: linear-gradient(135deg, #a78bfa, #f472b6); color: white; }
.demo .pv-cd { font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 800; color: #fb7185; background: #15151f; padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(251,113,133,0.3); }
.demo .pv-blur { padding: 10px 16px; background: rgba(255,255,255,0.08); backdrop-filter: blur(12px); color: white; font-weight: 700; font-size: 13px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.18); }
.demo .pv-mq { font-size: 14px; font-weight: 700; color: white; white-space: nowrap; animation: pv-mq 4s linear infinite; padding-right: 24px; }
@keyframes pv-mq { to { transform: translateX(-50%); } }

/* 可点击 chip */
.card .meta .chip-click {
  cursor: pointer; transition: all .15s;
  font-family: inherit;
}
.card .meta .chip-click:hover {
  background: rgba(167,139,250,0.18);
  border-color: rgba(167,139,250,0.4);
  color: #c4b5fd;
}

/* ====== 自定义鼠标光标 ====== */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
  html, body, a, button, input, textarea, select { cursor: none !important; }
}
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px;
  background: #a78bfa;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.15s, height 0.15s, background 0.2s, opacity 0.2s;
  box-shadow: 0 0 8px #a78bfa, 0 0 16px rgba(167,139,250,0.5);
  mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(167,139,250,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.2s, background 0.2s, opacity 0.2s;
  mix-blend-mode: screen;
}
.cursor-dot.hover {
  width: 12px; height: 12px;
  background: #f472b6;
  box-shadow: 0 0 12px #f472b6, 0 0 24px rgba(244,114,182,0.6);
}
.cursor-ring.hover {
  width: 56px; height: 56px;
  border-color: rgba(244,114,182,0.7);
  background: rgba(244,114,182,0.08);
}
.cursor-dot.text {
  width: 4px; height: 4px;
  background: #22d3ee;
}
.cursor-ring.text {
  width: 60px; height: 60px;
  border-color: rgba(34,211,238,0.5);
}
.cursor-dot.click { animation: cursor-click 0.3s; }
@keyframes cursor-click {
  0% { transform: translate3d(-50%, -50%, 0) scale(1); }
  50% { transform: translate3d(-50%, -50%, 0) scale(0.5); }
  100% { transform: translate3d(-50%, -50%, 0) scale(1); }
}
.cursor-trail {
  position: fixed; top: 0; left: 0;
  width: 4px; height: 4px;
  background: #a78bfa;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  mix-blend-mode: screen;
}
