/* 基础变量定义 - 霓虹风格主色调 */
:root {
  --neon-purple: hsl(266, 92%, 58%);
  --neon-pink: hsl(277, 95%, 60%);
  --neon-blue: hsl(263, 93%, 56%);
  --dark-bg: hsl(240, 15%, 9%);
  --text-white: hsl(0, 0%, 100%);
  --text-gray: hsl(0, 0%, 83%);
  --border-line: hsl(240, 9%, 17%);
}

/* 白名单按钮样式 - 调整为霓虹风格 */
.whitelist-btn {
  position: fixed;
  bottom: 92px;
  right: 31px;
  width: 51px;
  height: 51px;
  border-radius: 50%;

  /* 霓虹渐变背景 */
  background-image: linear-gradient(
    135deg,
    rgba(76, 175, 80, 100),
    rgba(76, 175, 80, 100)
  );
  color: rgb(255, 255, 255);
  border: none;

  /* 增强发光效果 */
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 9998;
  transition: all 0.3s ease;
}

.whitelist-btn:hover {
  /* 悬停时增强发光效果 */
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
  transform: scale(1.1);
}

.whitelist-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* 弹窗遮罩层 - 霓虹风格适配 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(4px); /* 毛玻璃效果 */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 白名单弹窗容器 - 新拟物主义风格卡片 */
.modal-container {
  position: relative;
  width: 90%; /* 宽度，避免全屏 */
  max-width: 500px;
  padding: 2rem;
  background-color: rgba(213, 207, 207, 0); /* 新拟物主义浅灰背景 */
  border-radius: 30px; /* 大圆角 */
  border: none; /* 无边框 */
  
  /* 新拟物主义双层阴影效果 */
  box-shadow: 15px 15px 30px #bebebe,  /* 外侧暗影，模拟凹陷 */
              -15px -15px 30px #FACACA56; /* 内侧高光，模拟凸起 */
  transform: translateY(20px);
  transition: all 0.3s ease;
}

/* 弹窗激活状态的阴影效果 */
.modal-overlay.active .modal-container {
  transform: translateY(0);
  box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.27),
              -20px -20px 40px rgba(250, 202, 202, 0.34);
}

/* 成功弹窗容器 - 恢复深色主题 */
.success-container {
  position: relative;
  background-color: var(--dark-bg); /* 恢复深色背景 */
  border-radius: 1rem; /* 恢复原来的圆角 */
  padding: 32px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-line); /* 恢复边框 */

  /* 恢复原来的投影效果 */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.success-overlay.active .success-container {
  transform: scale(1);
}

/* 在大屏幕上进一步限制弹窗宽度 */
@media (min-width: 768px) {
  .modal-container {
    width: 80%; /* 在大屏幕上使用80%宽度 */
  }
}

/* 在超大屏幕上使用固定宽度 */
@media (min-width: 1200px) {
  .modal-container {
    width: 500px; /* 固定宽度 */
  }
}

/* 调整弹窗内部元素的颜色以适应浅色背景 */
.modal-title {
  color: #333; /* 深色文字 */
}

.modal-title i {
  color: #4CAF50; /* 保持绿色图标 */
}

.modal-control {
  color: #666; /* 中灰色控制按钮 */
}

.modal-control:hover {
  background: rgba(0, 0, 0, 0.05); /* 浅色悬停背景 */
  color: #333;
}

.form-intro {
  background-color: rgba(255, 255, 255, 0.5); /* 半透明白色背景 */
  border: 1px solid rgba(0, 0, 0, 0.1); /* 浅色边框 */
}

.form-intro h3 {
  color: #333;
}

.form-intro p {
  color: #666;
}

.form-group label {
  color: #333;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-reset {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #666;
}

.btn-reset:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
}

.modal-overlay.active .card {
  transform: translateY(0);
}

/* 霓虹边框动画效果 */
.card__border {
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: -10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  background-image: linear-gradient(
    0deg,
    white -50%,
    hsl(0, 0%, 40%) 100%
  );
  border-radius: 1rem;
}

.card__border::before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 200;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: left;
  width: 200%;
  height: 10rem;
  background-image: linear-gradient(
    0deg,
    hsla(0, 0%, 100%, 0) 0%,
    var(--neon-pink) 40%,
    var(--neon-pink) 60%,
    hsla(0, 0%, 40%, 0) 100%
  );
  animation: rotate 8s linear infinite;
}

@keyframes rotate {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* 弹窗标题栏 */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 12px 0;
  background: transparent;
  border-bottom: 1px solid var(--border-line);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
}

.modal-title i {
  color: rgba(76, 175, 80, 100);
}

.modal-controls {
  display: flex;
  gap: 16px;
}

.modal-control {
  background: transparent;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-control:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

/* 弹窗内容区 */
.modal-content {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

/* 表单区域 */
.form-section {
  flex: 1;
  padding: 0;
}

.form-intro {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 24px;
  border: 1px solid var(--border-line);
}

.intro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(76, 175, 80, 100);
  border-radius: 50%;
  color: var(--dark-bg);
  margin-right: 12px;
}

.form-intro h3 {
  display: inline-block;
  margin: 0 0 8px 0;
  color: var(--text-white);
  vertical-align: top;
}

.form-intro p {
  margin: 0;
  color: var(--text-gray);
  font-size: 14px;
}

.whitelist-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  color: var(--text-white);
  font-size: 14px;
  font-weight: 500;
}

.required {
  color: rgba(76, 175, 80, 100);
}

.form-group input,
.form-group textarea {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-line);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-white);
  transition: all 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-gray);
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(76, 175, 80, 100);
  box-shadow: 0 0 0 2px rgba(197, 107, 240, 0.2);
}

.form-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
}

.form-agree label {
  color: var(--text-gray);
  font-size: 13px;
}

.form-agree a {
  color: rgba(76, 175, 80, 100);
  text-decoration: none;
}

.form-agree a:hover {
  text-decoration: underline;
}

/* 侧边栏区域 - 保持隐藏 */
.sidebar-section {
  display: none;
}

/* 弹窗底部按钮 */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 0 0 0;
  background: transparent;
  border-top: 1px solid var(--border-line);
}

.btn-reset {
  padding: 6px 16px;
  border: 1px solid var(--border-line);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-gray);
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

/* 成功提示弹窗 - 霓虹风格适配 */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.success-overlay.active {
  opacity: 1;
  visibility: visible;
}



/* 成功弹窗的霓虹边框 */
.success-container::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 1.1rem;
}

.success-overlay.active .success-container {
  transform: scale(1);
}

.success-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(76, 175, 80, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #4CAF50;
  font-size: 32px;
}

.success-container h3 {
  margin: 0 0 8px 0;
  color: var(--text-white);
}

.success-container p {
  margin: 0 0 24px 0;
  color: var(--text-gray);
  font-size: 14px;
}

.success-btn:hover {
  box-shadow: 0 4px 10px rgba(197, 107, 240, 0.3);
}

/* 输入验证样式 */
.form-group input:invalid:not(:placeholder-shown) {
  border-color: #f44336;
}

.form-group input:valid {
  border-color: #4CAF50;
}

/* 联系管理按钮样式*/
.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 8rem; /* 按钮宽度（核心尺寸，可直接修改数值调整宽度） */
    overflow: hidden;
    height: 3rem; /* 按钮高度（核心尺寸，可直接修改数值调整高度） */
    background-size: 300% 300%;
    cursor: pointer;
    backdrop-filter: blur(1rem);
    border-radius: 5rem; /* 按钮圆角（数值越大越圆） */
    transition: 0.5s; /*  hover/active状态过渡动画时长 */
    animation: gradient_301 5s ease infinite; /* 背景渐变动画 */
    border: double 4px transparent; /* 双层边框（透明内层，渐变外层） */
    /* 背景图片组合：内层纯色背景 + 外层渐变边框 */
    background-image: linear-gradient(#212121, #212121),
    linear-gradient(
        137.48deg,
        #4CAF50 10%,
        #C8E6C9 45%,
        #81C784 67%,
        #388E3C 87%
    );
    background-origin: border-box; /* 背景从边框盒开始绘制 */
    background-clip: content-box, border-box; /* 背景裁剪范围（内容区+边框区） */
}

/* 按钮内部星空背景容器（装饰元素） */
#container-stars {
    position: absolute;
    z-index: -1; /* 置于按钮底层 */
    width: 100%; /* 与按钮同宽 */
    height: 100%; /* 与按钮同高 */
    overflow: hidden;
    transition: 0.5s;
    backdrop-filter: blur(1rem);
    border-radius: 5rem; /* 与按钮圆角保持一致 */
}

/* 按钮文字样式 */
strong {
    z-index: 2; /* 文字置于最上层 */
    font-family: "Avalors Personal Use";
    font-size: 12px; /* 文字大小 */
    letter-spacing: 5px; /* 字间距 */
    color: #ffffff;
    text-shadow: 0 0 4px white; /* 文字发光效果 */
}

/* 按钮内部发光装饰容器 */
#glow {
    position: absolute;
    display: flex;
    width: 12rem; /* 发光区域宽度（建议小于按钮宽度） */
}

/* 发光圆点（装饰元素） */
.circle {
    width: 100%;
    height: 30px; /* 发光圆点高度 */
    filter: blur(2rem); /* 模糊效果（控制发光范围） */
    animation: pulse_3011 4s infinite; /* 呼吸动画 */
    z-index: -1;
}

/* 第一个发光圆点颜色 */
.circle:nth-of-type(1) {
    background: rgba(76, 175, 80, 100);
}

/* 第二个发光圆点颜色 */
.circle:nth-of-type(2) {
    background: rgba(76, 175, 80, 100);
}

/* 按钮hover状态：星空背景显示 */
.btn:hover #container-stars {
    z-index: 1;
    background-color: rgba(76, 175, 80, 0.23);
}

/* 按钮hover状态：整体放大 */
.btn:hover {
    transform: scale(1.1); /* 放大比例（1.1=放大10%） */
}

/* 按钮点击状态：边框样式变化 */
.btn:active {
    border: double 4px #4CAF50FF; /* 点击时边框颜色固定 */
    background-origin: border-box;
    background-clip: content-box, border-box;
    animation: none; /* 停止背景动画 */
}

/* 按钮点击状态：发光圆点颜色变化 */
.btn:active .circle {
  background: #4CAF50FF;
}

/* 加载容器样式 */
.loader-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin: 20px auto;
}

/* 确认按钮透明圆形样式 */
#closeSuccessModal.text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent; /* 完全透明背景 */
  color: white;
  padding: 0;
  width: 100px;  /* 圆形按钮直径 */
  height: 100px; /* 圆形按钮直径 */
  border-radius: 50%; /* 设置为圆形 */
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 透明按钮的光晕效果 */
#closeSuccessModal.text::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: transparent; /* 透明光晕 */
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  animation: none; /* 移除光晕动画 */
}

#closeSuccessModal.text:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 255, 255, 0.1); /* 悬停时轻微背景 */
  border-color: rgba(255, 255, 255, 0.6); /* 悬停时边框更明显 */
}

#closeSuccessModal.text:active {
  transform: translate(-50%, -50%) scale(0.95);
  background: rgba(255, 255, 255, 0.2); /* 点击时背景更明显 */
}

/* 移动设备上的圆形按钮适配 */
@media (max-width: 768px) {
  #closeSuccessModal.text {
    width: 50px;
    height: 50px;
    font-size: 12px;
  }
}

/* 星空背景星星容器 */
#stars {
  position: relative;
  background: transparent;
  width: 200rem; /* 星星背景宽度（远大于按钮，制造滚动效果） */
  height: 200rem; /* 星星背景高度 */
}

/* 星星背景下层动画 */
#stars::after {
    content: "";
    position: absolute;
    top: -10rem;
    left: -100rem;
    width: 100%;
    height: 100%;
    animation: animStarRotate 90s linear infinite; /* 旋转动画 */
}

/* 下层星星样式 */
#stars::after {
    background-image: radial-gradient(#ffffff 1px, transparent 1%); /* 星星形状 */
    background-size: 50px 50px; /* 星星密度 */
}

/* 星星背景上层动画 */
#stars::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 170%;
    height: 500%;
    animation: animStar 60s linear infinite; /* 上下滚动动画 */
}

/* 上层星星样式（半透明） */
#stars::before {
    background-image: radial-gradient(#ffffff 1px, transparent 1%);
    background-size: 50px 50px;
    opacity: 0.5;
}

/* 星星上下滚动动画 */
@keyframes animStar {
    from {
    transform: translateY(0);
    }
    to {
    transform: translateY(-135rem);
    }
}

/* 星星旋转动画 */
@keyframes animStarRotate {
    from {
    transform: rotate(360deg);
    }
    to {
    transform: rotate(0);
    }
}

/* 按钮背景渐变动画 */
@keyframes gradient_301 {
    0% {
    background-position: 0 50%;
    }
    50% {
    background-position: 100% 50%;
    }
    100% {
    background-position: 0 50%;
    }
}

/* 发光圆点呼吸动画 */
@keyframes 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);
    }
}

/* 按钮内部星空背景容器（装饰元素） */
#container-dos {
    position: absolute;
    z-index: -1; /* 置于按钮底层 */
    width: 100%; /* 与按钮同宽 */
    height: 100%; /* 与按钮同高 */
    overflow: hidden;
    transition: 0.5s;
    backdrop-filter: blur(1rem);
    border-radius: 5rem; /* 与按钮圆角保持一致 */
}

/* 按钮文字样式 */
strong {
    z-index: 2; /* 文字置于最上层 */
    font-family: "Avalors Personal Use";
    font-size: 12px; /* 文字大小 */
    letter-spacing: 5px; /* 字间距 */
    color: #ffffff;
    text-shadow: 0 0 4px white; /* 文字发光效果 */
}

/* 按钮内部发光装饰容器 */
#oops {
    position: absolute;
    display: flex;
    width: 12rem; /* 发光区域宽度（建议小于按钮宽度） */
}

/* 按钮hover状态：星空背景显示 */
.btn:hover #container-dos{
    z-index: 1;
    background-color: rgba(76, 175, 80, 0.23);
}

/* 星空背景星星容器 */
#star {
    position: relative;
    background: transparent;
    width: 200rem; /* 星星背景宽度（远大于按钮，制造滚动效果） */
    height: 200rem; /* 星星背景高度 */
}

/* 星星背景下层动画 */
#star::after {
    content: "";
    position: absolute;
    top: -10rem;
    left: -100rem;
    width: 100%;
    height: 100%;
    animation: animStarRotate 90s linear infinite; /* 旋转动画 */
}

/* 下层星星样式 */
#star::after {
    background-image: radial-gradient(#ffffff 1px, transparent 1%); /* 星星形状 */
    background-size: 50px 50px; /* 星星密度 */
}

/* 星星背景上层动画 */
#star::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 170%;
    height: 500%;
    animation: animStar 60s linear infinite; /* 上下滚动动画 */
}

/* 上层星星样式（半透明） */
#star::before {
    background-image: radial-gradient(#ffffff 1px, transparent 1%);
    background-size: 50px 50px;
    opacity: 0.5;
}

/* 星星上下滚动动画 */
@keyframes animStar {
    from {
    transform: translateY(0);
    }
    to {
    transform: translateY(-135rem);
    }
}

/* 星星旋转动画 */
@keyframes animStarRotate {
    from {
    transform: rotate(360deg);
    }
    to {
    transform: rotate(0);
    }
}

.loader {
    --color-one: #ffbf48; /* 主绿色 */
    --color-two: #be4a1d; /* 深绿色 */
    --color-three: #ffbf4780; /* 浅绿半透明 */
    --color-four: #bf4a1d80; /* 深绿半透明 */
    --color-five: #ffbf4740; /* 极浅绿半透明 */
    --time-animation: 2s;
    --size: 1; /* 可调整大小 */
    position: relative;
    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 2px var(--color-one);
    border-bottom: solid 2px 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);
    /* 优化旋转动画，增强动态感 */
    animation: spin calc(var(--time-animation) * 1.5) linear infinite;
}

.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);
    /* 添加轻微脉动效果 */
    animation: pulse var(--time-animation) ease-in-out infinite;
}

.loader svg {
    position: absolute;
}

.loader svg #clipping {
    filter: contrast(15);
    animation: roundness calc(var(--time-animation) / 2) ease-in-out infinite;
}

.loader svg #clipping polygon {
    filter: blur(5px);
/* 优化过渡效果 */
    transition: filter 0.3s ease;
}

/* 优化多边形动画节奏，更加流畅 */
.loader svg #clipping polygon:nth-child(1) {
    transform-origin: 75% 25%;
    transform: rotate(90deg);
    animation: rotation var(--time-animation) ease-in-out infinite;
    animation-delay: calc(var(--time-animation) / 6);
}

.loader svg #clipping polygon:nth-child(2) {
    transform-origin: 50% 50%;
    animation: rotation var(--time-animation) ease-in-out infinite reverse;
}

.loader svg #clipping polygon:nth-child(3) {
    transform-origin: 50% 60%;
    animation: rotation var(--time-animation) ease-in-out infinite;
    animation-delay: calc(var(--time-animation) / -3);
}

.loader svg #clipping polygon:nth-child(4) {
    transform-origin: 40% 40%;
    animation: rotation calc(var(--time-animation) * 1.2) ease-in-out infinite reverse;
}

.loader svg #clipping polygon:nth-child(5) {
    transform-origin: 40% 40%;
    animation: rotation calc(var(--time-animation) * 1.2) ease-in-out infinite reverse;
    animation-delay: calc(var(--time-animation) / -2);
}

.loader svg #clipping polygon:nth-child(6) {
    transform-origin: 60% 40%;
    animation: rotation calc(var(--time-animation) * 1.2) ease-in-out infinite;
}

.loader svg #clipping polygon:nth-child(7) {
    transform-origin: 60% 40%;
    animation: rotation calc(var(--time-animation) * 1.2) ease-in-out infinite;
    animation-delay: calc(var(--time-animation) / -1.5);
}

/* 优化旋转动画，更加平滑 */
@keyframes spin {
    0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.8;
    }
    50% {
    transform: rotate(180deg) scale(1.05);
    opacity: 1;
    }
    100% {
    transform: rotate(360deg) scale(1);
    opacity: 0.8;
    }
}

@keyframes rotation {
    0% {
    transform: rotate(0deg) scale(1);
    }
    50% {
    transform: rotate(180deg) scale(1.1);
    }
    100% {
    transform: rotate(360deg) scale(1);
    }
}

@keyframes roundness {
    0% { filter: contrast(15) brightness(1); }
    25% { filter: contrast(8) brightness(1.2); }
    50% { filter: contrast(15) brightness(1); }
    75% { filter: contrast(8) brightness(1.2); }
    100% { filter: contrast(15) brightness(1); }
}

/* 添加脉动动画 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* 优化色调动画，更加自然 */
@keyframes colorize {
    0% {
    filter: hue-rotate(0deg) saturate(1) brightness(1);
    }
    25% {
    filter: hue-rotate(5deg) saturate(1.1) brightness(1.05);
    }
    50% {
    filter: hue-rotate(0deg) saturate(1) brightness(1);
    }
    75% {
    filter: hue-rotate(-5deg) saturate(1.1) brightness(1.05);
    }
    100% {
    filter: hue-rotate(0deg) saturate(1) brightness(1);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .loader {
    --size: 0.8;
    }
}



