/* 全站共用 loading 動畫 + 鎖畫面遮罩 */

@keyframes bz-spin { to { transform: rotate(360deg); } }

/* 鎖畫面時禁止背景捲動 */
html.bz-locked, html.bz-locked body { overflow: hidden !important; }

/* 全螢幕鎖：擋掉所有互動，置中轉圈 */
.bz-screen-lock {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  pointer-events: all;
}
.bz-screen-lock.bz-show { display: flex; }

/* 板塊鎖：只蓋住單一容器 */
.bz-section-lock {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.30);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  border-radius: inherit;
  pointer-events: all;
}
.bz-section-lock.bz-show { display: flex; }

/* 轉圈動畫（淺色／深色頁面皆適用） */
.bz-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #3b82f6;
  animation: bz-spin 0.8s linear infinite;
}
.bz-spinner-sm {
  width: 26px;
  height: 26px;
  border-width: 3px;
}

.bz-loading-label {
  color: #e2e8f0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.bz-loading-label:empty { display: none; }

/* 行內小轉圈：給「載入中…」這類文字占位用 */
.bz-spin-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  margin-right: 7px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.3);
  border-top-color: #3b82f6;
  animation: bz-spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .bz-spinner { animation-duration: 1.6s; }
}
