/**
 * 導覽 CTA 按鈕 — Uiverse 風格（依 data-xingfu-cta-fx 或 .xf-cta--N）
 * 1~6: 原有六款  7: Zena4L  8: vinodjangid07 金色漸層
 */

.xf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  vertical-align: middle;
}

/* —— ① StealthWorm —— */
.xf-cta.xf-cta--1 {
  position: relative;
  width: 11rem;
  max-width: 100%;
  min-height: 2.65rem;
  padding: 0 0.75rem;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  border-radius: 5rem;
  transition: transform 0.5s;
  animation: xf_gradient_301 5s ease infinite;
  border: double 4px transparent;
  background-image: linear-gradient(var(--xf1-inner, #212121), var(--xf1-inner, #212121)),
    linear-gradient(
      137.48deg,
      var(--xf1-g1, #ffdb3b) 10%,
      var(--xf1-g2, #fe53bb) 45%,
      var(--xf1-g3, #8f51ea) 67%,
      var(--xf1-g4, #0044ff) 87%
    );
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 300% 300%;
}

.xf-cta.xf-cta--1 .xf-1-stars-host {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transition: 0.5s;
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  border-radius: 5rem;
}

.xf-cta.xf-cta--1 .xf-1-glow {
  position: absolute;
  display: flex;
  width: 10rem;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  pointer-events: none;
}

.xf-cta.xf-cta--1 .xf-1-circle {
  width: 100%;
  height: 28px;
  filter: blur(2rem);
  animation: xf_pulse_3011 4s infinite;
  z-index: -1;
}

.xf-cta.xf-cta--1 .xf-1-circle:nth-of-type(1) {
  background: var(--xf1-glow1, #fe53bb);
  opacity: 0.64;
}

.xf-cta.xf-cta--1 .xf-1-circle:nth-of-type(2) {
  background: var(--xf1-glow2, #8f51ea);
  opacity: 0.7;
}

.xf-cta.xf-cta--1 .xf-1-txt {
  position: relative;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--xf1-txt, #ffffff);
  text-shadow: 0 0 4px var(--xf1-txt, #ffffff);
  font-weight: 700;
  white-space: nowrap;
}

.xf-cta.xf-cta--1 .xf-1-stars {
  position: absolute;
  inset: 0;
  background: transparent;
  width: 200rem;
  height: 200rem;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.xf-cta.xf-cta--1 .xf-1-stars::after {
  content: "";
  position: absolute;
  top: -10rem;
  left: -100rem;
  width: 100%;
  height: 100%;
  animation: xf_animStarRotate 90s linear infinite;
  background-image: radial-gradient(#ffffff 1px, transparent 1%);
  background-size: 50px 50px;
}

.xf-cta.xf-cta--1 .xf-1-stars::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 170%;
  height: 500%;
  animation: xf_animStar 60s linear infinite;
  background-image: radial-gradient(#ffffff 1px, transparent 1%);
  background-size: 50px 50px;
  opacity: 0.5;
}

.xf-cta.xf-cta--1:hover .xf-1-stars-host {
  z-index: 1;
  background-color: var(--xf1-inner, #212121);
}

.xf-cta.xf-cta--1:hover {
  transform: scale(1.05);
}

.xf-cta.xf-cta--1:active {
  border: double 4px var(--xf1-active, #fe53bb);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  animation: none;
}

.xf-cta.xf-cta--1:active .xf-1-circle {
  background: var(--xf1-active, #fe53bb);
  opacity: 1;
}

@keyframes xf_animStar {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-135rem);
  }
}

@keyframes xf_animStarRotate {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0);
  }
}

@keyframes xf_gradient_301 {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes xf_pulse_3011 {
  0% {
    transform: scale(0.75);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
  100% {
    transform: scale(0.75);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/* —— ② Allyhere —— */
.xf-cta.xf-cta--2 {
  --xf-radii: 0.5em;
  cursor: pointer;
  padding: 0.65em 1.1em;
  min-width: 5.5rem;
  min-height: 2.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background-position 0.8s ease, box-shadow 0.2s;
  background-size: 280% auto;
  background-image: linear-gradient(
    325deg,
    var(--xf2-bg2, #2980ff) 0%,
    var(--xf2-bg1, #6dd5fa) 55%,
    var(--xf2-bg2, #2980ff) 90%
  );
  border: none;
  border-radius: var(--xf-radii);
  color: var(--xf2-fg, #ffffff);
  box-shadow:
    0px 0px 16px rgba(71, 184, 255, 0.45),
    0px 4px 4px -1px rgba(58, 125, 233, 0.22),
    inset 3px 3px 6px rgba(175, 230, 255, 0.45),
    inset -3px -3px 6px rgba(19, 95, 216, 0.32);
}

.xf-cta.xf-cta--2:hover {
  background-position: right top;
}

.xf-cta.xf-cta--2:focus,
.xf-cta.xf-cta--2:focus-visible,
.xf-cta.xf-cta--2:active {
  outline: none;
  box-shadow:
    0 0 0 3px var(--xf2-fg, #ffffff),
    0 0 0 6px var(--xf2-bg2, #2980ff);
}

@media (prefers-reduced-motion: reduce) {
  .xf-cta.xf-cta--2 {
    transition-duration: 0.2s;
  }
}

/* —— ③ KINGFRESS —— */
.xf-cta.xf-cta--3 {
  font-weight: bold;
  border-radius: 2rem;
  cursor: pointer;
  min-width: 5.5rem;
  min-height: 2.4rem;
  padding: 0 0.6rem;
  border: none;
  background-color: var(--xf3-bg, #3653f8);
  color: var(--xf3-fg, #ffffff);
  position: relative;
  overflow: hidden;
}

.xf-cta.xf-cta--3 .xf-3-mother {
  position: relative;
  z-index: 2;
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.xf-cta.xf-cta--3 .xf-3-mother2 {
  z-index: 1;
}

.xf-cta.xf-cta--3 .xf-3-mother,
.xf-cta.xf-cta--3 .xf-3-mother2 {
  display: flex;
  overflow: hidden;
  justify-content: center;
  align-items: center;
}

.xf-cta.xf-cta--3 .xf-3-mother2 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.xf-cta.xf-cta--3:hover .xf-3-mother {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.xf-cta.xf-cta--3:hover .xf-3-mother span {
  transform: translateY(1.2em);
}

.xf-cta.xf-cta--3 .xf-3-mother span:nth-child(1) {
  transition: transform 0.2s;
}
.xf-cta.xf-cta--3 .xf-3-mother span:nth-child(2) {
  transition: transform 0.3s;
}
.xf-cta.xf-cta--3 .xf-3-mother span:nth-child(3) {
  transition: transform 0.4s;
}
.xf-cta.xf-cta--3 .xf-3-mother span:nth-child(4) {
  transition: transform 0.5s;
}
.xf-cta.xf-cta--3 .xf-3-mother span:nth-child(5) {
  transition: transform 0.6s;
}
.xf-cta.xf-cta--3 .xf-3-mother span:nth-child(6) {
  transition: transform 0.7s;
}

.xf-cta.xf-cta--3 .xf-3-mother2 span {
  transform: translateY(-1.2em);
}

.xf-cta.xf-cta--3:hover .xf-3-mother2 span {
  transform: translateY(0);
}

.xf-cta.xf-cta--3 .xf-3-mother2 span:nth-child(1) {
  transition: transform 0.2s;
}
.xf-cta.xf-cta--3 .xf-3-mother2 span:nth-child(2) {
  transition: transform 0.3s;
}
.xf-cta.xf-cta--3 .xf-3-mother2 span:nth-child(3) {
  transition: transform 0.4s;
}
.xf-cta.xf-cta--3 .xf-3-mother2 span:nth-child(4) {
  transition: transform 0.5s;
}
.xf-cta.xf-cta--3 .xf-3-mother2 span:nth-child(5) {
  transition: transform 0.6s;
}
.xf-cta.xf-cta--3 .xf-3-mother2 span:nth-child(6) {
  transition: transform 0.7s;
}

/* —— ④ Yaya12085 —— */
.xf-cta.xf-cta--4 {
  width: fit-content;
  max-width: 100%;
  padding: 0.55em 0.85rem;
  cursor: pointer;
  gap: 0.35rem;
  font-weight: bold;
  border-radius: 30px;
  text-shadow: 2px 2px 3px rgb(136 0 136 / 50%);
  background: linear-gradient(
      15deg,
      var(--xf4-a, #880088),
      var(--xf4-b, #cc3f47),
      var(--xf4-c, #f09f33),
      var(--xf4-b, #cc3f47),
      var(--xf4-a, #880088)
    )
    no-repeat;
  background-size: 300%;
  color: #fff;
  border: none;
  background-position: left center;
  box-shadow: 0 18px 10px -14px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
  font-size: 0.8rem;
}

.xf-cta.xf-cta--4:hover {
  background-size: 320%;
  background-position: right center;
}

.xf-cta.xf-cta--4:hover .xf-4-icon {
  color: #fff;
}

.xf-cta.xf-cta--4 .xf-4-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--xf4-icon, #f09f33);
  transition: color 0.3s ease;
}

/* —— ⑤ CristianMontoya98 —— */
.xf-cta.xf-cta--5 {
  width: auto;
  min-width: 6em;
  height: 2.15em;
  padding: 0 0.65em;
  background: var(--xf5-bg, #000000);
  color: var(--xf5-fg, #ffffff);
  border: none;
  border-radius: 0.625em;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: color 0.35s;
}

.xf-cta.xf-cta--5:hover {
  color: var(--xf5-fgHover, #000000);
}

.xf-cta.xf-cta--5::after {
  content: "";
  background: var(--xf5-sweep, #ffffff);
  position: absolute;
  z-index: -1;
  left: -20%;
  right: -20%;
  top: 0;
  bottom: 0;
  transform: skewX(-45deg) scale(0, 1);
  transition: transform 0.5s;
}

.xf-cta.xf-cta--5:hover::after {
  transform: skewX(-45deg) scale(1, 1);
}

/* —— ⑥ satyamchaudharydev —— */
.xf-cta.xf-cta--6 {
  position: relative;
  transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.18);
  padding-block: 0.45rem;
  padding-inline: 1rem;
  background-color: var(--xf6-bg, #006bb3);
  border-radius: 9999px;
  gap: 8px;
  font-weight: bold;
  border: 3px solid var(--xf6-border, #ffffff4d);
  outline: none;
  overflow: hidden;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--xf6-fg, #ffffff);
}

.xf-cta.xf-cta--6 .xf-6-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--xf6-fg, #ffffff);
  transition: transform 0.3s ease-in-out;
}

.xf-cta.xf-cta--6:hover {
  transform: scale(1.05);
  border-color: #fff9;
}

.xf-cta.xf-cta--6:hover .xf-6-icon {
  transform: translate(4px);
}

.xf-cta.xf-cta--6:hover::before {
  animation: xf_shine 1.5s ease-out infinite;
}

.xf-cta.xf-cta--6::before {
  content: "";
  position: absolute;
  width: 72px;
  height: 100%;
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0) 70%
  );
  top: 0;
  left: -100px;
  opacity: 0.55;
  pointer-events: none;
}

@keyframes xf_shine {
  0% {
    left: -100px;
  }
  60% {
    left: 100%;
  }
  to {
    left: 100%;
  }
}

/* —— ⑦ Zena4L —— 邊框膠囊 + 懸浮外擴光暈（Uiverse） */
.xf-cta.xf-cta--7 {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1rem;
  min-height: 2.25rem;
  border: 1px solid var(--xf7-border, #1b1b1b);
  border-radius: 1000px;
  color: var(--xf7-text, #1b1b1b);
  text-decoration: none;
  text-transform: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: visible;
  z-index: 0;
}

.xf-cta.xf-cta--7 .xf-7-label {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}

.xf-cta.xf-cta--7:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(27, 27, 27, 0.35);
}

.xf-cta.xf-cta--7:active {
  transform: translateY(-2px);
}

.xf-cta.xf-cta--7::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1000px;
  z-index: -1;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  pointer-events: none;
}

.xf-cta.xf-cta--7:hover::after {
  background-color: var(--xf7-burst, #00eeff);
  transform: scaleX(1.35) scaleY(1.45);
  opacity: 0;
}

/* —— ⑧ vinodjangid07 —— 金色漸層流動 */
@keyframes xf8_gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.xf-cta.xf-cta--8 {
  width: auto;
  min-width: 9.5rem;
  max-width: 100%;
  min-height: 2.45rem;
  padding: 0 0.85rem;
  border: none;
  border-radius: 40px;
  background: linear-gradient(
    to right,
    var(--xf8-g1, #bf953f),
    var(--xf8-g2, #fcf6ba),
    var(--xf8-g3, #b38728),
    var(--xf8-g4, #fbf5b7),
    var(--xf8-g5, #aa771c)
  );
  background-size: 200% 200%;
  background-position: left center;
  color: var(--xf8-txt, #796703);
  font-size: 0.8em;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: transform 0.35s ease;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.12);
  gap: 0.35rem;
}

.xf-cta.xf-cta--8 .xf-8-label {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: min(100%, 12rem);
}

.xf-cta.xf-cta--8 .xf-8-icon {
  flex-shrink: 0;
}

.xf-cta.xf-cta--8 .xf-8-icon path {
  fill: var(--xf8-icon, #796703);
}

.xf-cta.xf-cta--8:hover {
  transform: scale(0.96);
  animation: xf8_gradient 5s ease infinite;
  background-position: right center;
}

/* 手機導覽列內略縮 */
#site-nav-mobile .xf-cta.xf-cta--1 {
  width: 100%;
  max-width: 16rem;
}

button.xf-cta {
  font: inherit;
  font-family: inherit;
}

.xf-cta.xf-cta--pick.is-selected {
  outline: 3px solid rgb(180 83 9);
  outline-offset: 3px;
  border-radius: 0.75rem;
}
