/* Sun-Panel-Helper CSS */
/* 此文件由系统自动管理，请勿手动修改 */
/* 警告：手动修改可能导致样式冲突或程序异常 */
/* 上次更新：4/20/2025, 1:10:58 AM */

/* Sun-Panel-Helper CSS Start: clock-style */
/* 引入默认字体 */
@import url('https://fonts.googleapis.com/css2?family=Zen+Dots&display=swap');

/* 标题位置调整 */
.absolute .logo { 
  position: absolute;
  top: 20px;
  left: 20px;
  padding-left: 35px;
}

.absolute .logo .md\:text-6xl {
  font-size: 1.75rem;
}

/* 删除竖线 */
.text-base {
  display: none;
}

/* 时钟样式 */
.clock {
  position: relative;
  top: -50px;
  --yell: #F5CE5A;
}

.clock.w-full {
  width: fit-content;
}

.clock .md\:block {
  display: inline;
}

/* 时钟字体设置 */
.clock span.clock-time {
  font-size: 55px;
  font-family: "undefined", "Zen Dots", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* 日期和星期样式 */
span.clock-date, span.clock-week {
  position: absolute;
  font-size: 23px;
  font-weight: 900;
  inset: -45px auto auto -30px;
}

/* 装饰边框 */
.clock:before {
  content: "";
  position: absolute;
  width: 50px;
  border-left: 5px solid var(--yell);
  border-bottom: 5px solid var(--yell);
  inset: 0 auto -20px -20px;
  border-radius: 0 28px;
}

.clock:after {
  content: "";
  position: absolute;
  width: 50px;
  border-right: 5px solid var(--yell);
  border-top: 5px solid var(--yell);
  inset: -25px -20px 10px auto;
  border-radius: 0 28px;
}

span.clock-week {
  font-weight: 700;
  inset: auto -30px -30px auto;
  font-size: 19px;
}

.sun-panel-logo {
  margin-top: 20px !important;
  margin-left: 20px !important;
}
/* Sun-Panel-Helper CSS End: clock-style */

/* Sun-Panel-Helper CSS Start: global-font */
/* 自定义字体 */
@font-face {
  font-family: "马赛克MC风";
  src: url("/custom/helper/font/马赛克MC风.ttf");
}
/* 自定义全局字体 */
* {
  font-family: 马赛克MC风;
}
/* Sun-Panel-Helper CSS End: global-font */

/* Sun-Panel-Helper CSS Start: xiantiao */
/* 背景线条样式 BY 香水 [二群大佬提供] */

/* 伪元素创建背景线条样式 */
.w-full .font-semibold:before {
  content: "";
  position: absolute;
  width: 93px;
  height: 93px;
  border-radius: 60%;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: -8px 21px 0 rgba(104, 182, 255, 0.19);
  z-index: -1;
  right: -27px;
  top: -35px;
  pointer-events: none;
}

/* 伪元素创建另一种背景线条样式 */
.w-full .font-semibold:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(235, 236, 227, 0.26);
  border-radius: 70%;
  z-index: -1;
  top: -19px;
  right: 48px;
  pointer-events: none;
}

/* 设置图标信息框的圆角样式 */
.icon-info-box .rounded-2xl {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
/* Sun-Panel-Helper CSS End: xiantiao */

/* Sun-Panel-Helper CSS Start: card-hover */
.icon-info-box .rounded-2xl {
  --scale-size: 1.1;
  --shake-degree: 5deg;
  --shake-speed: 0.5s;
  --scale-delay: 0.3s;
}
/* 鼠标悬停动画 */
.icon-info-box .rounded-2xl {
  transform-origin: center center;
  transition: transform 0.3s ease;
}

.icon-info-box .rounded-2xl:hover {
  transform: scale(var(--scale-size, 1));
}

.icon-info-box .rounded-2xl:hover {
  animation: info-shake-bounce var(--shake-speed, 0.5s) var(--scale-delay, 0s) ease-in-out forwards;
}

@keyframes info-shake-bounce {
  0%, 100% {
    transform: scale(var(--scale-size, 1)) rotate(0);
  }
  25% {
    transform: scale(var(--scale-size, 1)) rotate(var(--shake-degree, 15deg));
  }
  50% {
    transform: scale(var(--scale-size, 1)) rotate(calc(var(--shake-degree, 15deg) * -1));
  }
  75% {
    transform: scale(var(--scale-size, 1)) rotate(calc(var(--shake-degree, 15deg) * 0.25));
  }
  85% {
    transform: scale(var(--scale-size, 1)) rotate(calc(var(--shake-degree, 15deg) * -0.25));
  }
}

/* 小图标的动画保持不变 */
.icon-small-box .rounded-2xl:hover {
  -webkit-animation: small-shake-bounce .5s alternate !important;
  -moz-animation: small-shake-bounce .5s alternate !important;
  -o-animation: small-shake-bounce .5s alternate !important;
  animation: small-shake-bounce .5s alternate !important;
}

@keyframes small-shake-bounce {
  0%, 100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(15deg);
  }
  50% {
    transform: rotate(-15deg);
  }
  75% {
    transform: rotate(5deg);
  }
  85% {
    transform: rotate(5deg);
  }
}
/* Sun-Panel-Helper CSS End: card-hover */

/* Sun-Panel-Helper CSS Start: layout-adjust */
.search-container {
  margin-top: 0px !important;
}

.system-monitor {
  margin-top: 0px !important;
}
/* Sun-Panel-Helper CSS End: layout-adjust */
