/* ============================================================
   fxlive.css —— 点击反馈 + 底部波浪（纯装饰层，不参与布局）
   z-index 约定：波浪 10 / 点击环 8800（低于拖尾 9500、转场 9000）
   ============================================================ */

/* ---------- A. 点击圆环 ---------- */
.click-fx-layer {
  position: fixed;
  inset: 0;
  z-index: 8800;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.click-fx-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;      /* 以元素中心为圆心 */
  border-radius: 50%;
  border: 2px solid var(--accent, #b04a2f);
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  transform: scale(1);
  transform-origin: 50% 50%;
}

/* ---------- B. 底部波浪（页面最底部，随文档流，不常驻） ---------- */
.wave-slot {
  position: relative;
  width: 100%;
  height: 140px;                 /* 移动端 80px */
  overflow: hidden;
  pointer-events: none;          /* 绝不拦点击 / 滚动 / 选择 */
  z-index: 10;
}

.wave-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wave-layer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 720px) {
  .wave-slot { height: 80px; }
}

/* 两个效果都尊重系统的“减少动态效果” */
@media (prefers-reduced-motion: reduce) {
  .click-fx-layer { display: none; }
}

/* 页尾是深色联系区时，槽位跟着变深，避免出现一条浅色横带 */
body:has(.contact) .wave-slot { background: var(--ink, #17161a); }
