.floating-contact {
  position: fixed;
  right: 50px;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2147483647; /* 最高層 */
}
.floating-contact .floating-btn {
  width: 80px;
  height: 80px;
  position: relative;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #c8af8e; /* 品牌色 */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}
.floating-contact .floating-btn:hover {
  transform: translateY(-4px);
  opacity: 0.85;
}

/* 圓外文字跑馬燈 */
.floating-btn img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.text-ring {
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  font-family: Cochin;

  /* use currentColor so children inherit */
  color: #5b4f4c;
  pointer-events: none;
  transform-origin: 50% 50%;
  animation: spin 8s linear infinite;
  /* 這一行決定字體大小 */
  font-size: 8px;
  letter-spacing: 2px;
}
.text-ring text,
.text-ring textPath {
  fill: currentColor;
}
/* change color when hitting footer */
.text-ring.white {
  color: #ffffff;
}
/* ensure SVG text nodes also switch to white */
.text-ring.white text,
.text-ring.white textPath {
  fill: #ffffff;
}
@keyframes spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 防止上層 transform 影響 fixed */
html,
body {
  transform: none !important;
}

/* 在 preloader 出現時隱藏跑馬燈按鈕 */
body.loading .floating-contact {
  display: none;
}
@media (min-width: 992px) {
  html.w-mod-js:not(.w-mod-ix)
    [data-w-id="e1795d13-972b-5227-dde7-ced164179947"] {
    -webkit-transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0)
      rotateY(0) rotateZ(0deg) skew(0, 0);
    -moz-transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0) rotateY(0)
      rotateZ(0deg) skew(0, 0);
    -ms-transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0) rotateY(0)
      rotateZ(0deg) skew(0, 0);
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0) rotateY(0)
      rotateZ(0deg) skew(0, 0);
  }
  html.w-mod-js:not(.w-mod-ix)
    [data-w-id="e1795d13-972b-5227-dde7-ced164179949"] {
    height: 0px;
    opacity: 0;
  }
}
/* --- 可愛 loading 動畫的 CSS --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fdf6f0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #ecebe7; /* 圓形底首頁背景色 */
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 1.2s infinite ease-in-out;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.preloader-logo img {
  width: 60%;
  height: auto;
  animation: rotate 2s linear infinite;
  position: relative;
  z-index: 3;
}

/* --- 波浪水位動畫 2.0 --- */
.progress-circle {
  position: absolute;
  inset: 0; /* full size of the logo circle */
  border-radius: 50%;
  overflow: hidden;
  z-index: 0; /* behind logo img */
  background: transparent; /* 圓形背景透明，待白水位上升 */
}

/* 白色水體本身 */
.progress-circle::after {
  content: "";
  position: absolute;
  left: -50%;
  bottom: 0;
  width: 200%;
  height: 120%;
  background: #ffffff;
  transform: translateY(100%);
  animation: waveRise 3s linear forwards;
  z-index: 1; /* below wave edge, below logo */
}

/* 波浪邊緣（覆蓋於白水體之上） */
.progress-circle::before {
  content: "";
  position: absolute;
  left: -50%; /* 讓波浪左右外溢以保持圓弧 */
  bottom: 0;
  width: 200%;
  height: 120%;
  background: #fdf6f0; /* 頁面底色，形成白水波浪邊 */
  transform: translateY(100%);
  animation: waveRise 3s linear forwards, waveShift 3s linear infinite;
  z-index: 2; /* above white water, under logo img */
}

@keyframes waveRise {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* 水平位移波浪頂線（僅改 background-position，不碰 transform） */
@keyframes waveShift {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: -120px;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes fillCup {
  from {
    height: 0%;
  }
  to {
    height: 100%;
  }
}
