/* From Uiverse.io by chase2k25 
	导航栏
*/ 
.glass-radio-group {
  --bg: rgba(255, 255, 255, 0.06);
  --text: #e5e5e5;

  display: flex;
  position: relative;
  background: var(--bg);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  box-shadow:
	inset 1px 1px 4px rgba(255, 255, 255, 0.2),
	inset -1px -1px 6px rgba(0, 0, 0, 0.3),
	0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  width: fit-content;
  min-width: 655.95px;
}

.glass-radio-group input {
  display: none;
}

.glass-radio-group label {
  flex: 1;
  display: flex;
  align-items: left;
  justify-content: center;
  min-width: 80px;
  font-size: 18px;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text);
  position: relative;
  z-index: 2;
  transition: color 0.3s ease-in-out;
}

.glass-radio-group label:hover {
  color: white;
}

.glass-radio-group input:checked + label {
  color: #fff;
}

.glass-glider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(100% / 5);
  border-radius: 1rem;
  z-index: 1;
  transition:
	transform 0.4s cubic-bezier(0.37, 1.95, 0.66, 0.56),
	background 0.4s ease-in-out,
	box-shadow 0.4s ease-in-out;
}

/* Silver */
#glass-silver:checked ~ .glass-glider {
  transform: translateX(0%);
  background: linear-gradient(135deg, #c0c0c055, #e0e0e0);
  box-shadow:
	0 0 18px rgba(192, 192, 192, 0.5),
	0 0 10px rgba(255, 255, 255, 0.4) inset;
}

/* Gold */
#glass-gold:checked ~ .glass-glider {
  transform: translateX(100%);
  background: linear-gradient(135deg, #ffd70055, #ffcc00);
  box-shadow:
	0 0 18px rgba(255, 215, 0, 0.5),
	0 0 10px rgba(255, 235, 150, 0.4) inset;
}

/* Platinum */
#glass-platinum:checked ~ .glass-glider {
  transform: translateX(200%);
  background: linear-gradient(135deg, #d0e7ff55, #a0d8ff);
  box-shadow:
	0 0 18px rgba(160, 216, 255, 0.5),
	0 0 10px rgba(200, 240, 255, 0.4) inset;
}

/* test01*/
#glass-test01:checked ~ .glass-glider {
  transform: translateX(300%);
  background: linear-gradient(135deg, red, yellow);
  box-shadow:
	0 0 18px rgba(160, 216, 255, 0.5),
	0 0 10px rgba(200, 240, 255, 0.4) inset;
}

/* test02*/
#glass-test02:checked ~ .glass-glider {
  transform: translateX(400%);
  background: linear-gradient(135deg, red, blue);
  box-shadow:
	0 0 18px rgba(160, 216, 255, 0.5),
	0 0 10px rgba(200, 240, 255, 0.4) inset;
}
/* 导航栏右侧用户圆圈动态特效 */
/* From Uiverse.io by andrew-manzyk */ 
.loader {
  --color-one: #ffbf48;
  --color-two: #be4a1d;
  --color-three: #ffbf4780;
  --color-four: #bf4a1d80;
  --color-five: #ffbf4740;
  --time-animation: 2s;
  --size: 0.5; /* You can change the size */
  position: absolute;
  right: 30px;
  top: -15px;
  /* right: -30px;
  top: -15px; */
  border-radius: 50%;
  transform: scale(var(--size));
  /* box-shadow:
    0 0 25px 0 var(--color-three),
    0 20px 50px 0 var(--color-four); */
  animation: colorize calc(var(--time-animation) * 3) ease-in-out infinite;
}

.loader::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border-top: solid 1px var(--color-one);
  border-bottom: solid 1px var(--color-two);
  background: linear-gradient(180deg, var(--color-five), var(--color-four));
  box-shadow:
    inset 0 10px 10px 0 var(--color-three),
    inset 0 -10px 10px 0 var(--color-four);
}

.loader .box {
  width: 100px;
  height: 100px;
  background: linear-gradient(
    180deg,
    var(--color-one) 30%,
    var(--color-two) 70%
  );
  mask: url(#clipping);
  -webkit-mask: url(#clipping);
}
.loader:hover{
	/* 设置导航栏右侧动态圆圈的下拉用户操作列表！ */
	background-color: #a0d8ff;
}

.loader svg {
  position: absolute;
}

.loader svg #clipping {
  filter: contrast(15);
  animation: roundness calc(var(--time-animation) / 2) linear infinite;
}

.loader svg #clipping polygon {
  filter: blur(7px);
}

.loader svg #clipping polygon:nth-child(1) {
  transform-origin: 75% 25%;
  transform: rotate(90deg);
}

.loader svg #clipping polygon:nth-child(2) {
  transform-origin: 50% 50%;
  animation: rotation var(--time-animation) linear infinite reverse;
}

.loader svg #clipping polygon:nth-child(3) {
  transform-origin: 50% 60%;
  animation: rotation var(--time-animation) linear infinite;
  animation-delay: calc(var(--time-animation) / -3);
}

.loader svg #clipping polygon:nth-child(4) {
  transform-origin: 40% 40%;
  animation: rotation var(--time-animation) linear infinite reverse;
}

.loader svg #clipping polygon:nth-child(5) {
  transform-origin: 40% 40%;
  animation: rotation var(--time-animation) linear infinite reverse;
  animation-delay: calc(var(--time-animation) / -2);
}

.loader svg #clipping polygon:nth-child(6) {
  transform-origin: 60% 40%;
  animation: rotation var(--time-animation) linear infinite;
}

.loader svg #clipping polygon:nth-child(7) {
  transform-origin: 60% 40%;
  animation: rotation var(--time-animation) linear infinite;
  animation-delay: calc(var(--time-animation) / -1.5);
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes roundness {
  0% {
    filter: contrast(15);
  }
  20% {
    filter: contrast(3);
  }
  40% {
    filter: contrast(3);
  }
  60% {
    filter: contrast(15);
  }
  100% {
    filter: contrast(15);
  }
}

@keyframes colorize {
  0% {
    filter: hue-rotate(0deg);
  }
  20% {
    filter: hue-rotate(-30deg);
  }
  40% {
    filter: hue-rotate(-60deg);
  }
  60% {
    filter: hue-rotate(-90deg);
  }
  80% {
    filter: hue-rotate(-45deg);
  }
  100% {
    filter: hue-rotate(0deg);
  }
}
