/* ./src/index.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

page{
  background-color: #f5f5f5;
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: bottom;
}

/* 在全局样式文件中添加 */
button {
  &::after {
    border: none !important;
  }
}

/* 去掉 Grid 组件的边框 */
.no-border-grid {
  .nut-grid-item {
    border: none !important;
    border-right: none !important;
    border-bottom: none !important;

    &::after {
      border: none !important;
    }
  }

  .nut-grid {
    border: none !important;

    &::after {
      border: none !important;
    }
  }
}

/* 微信授权按钮的特殊样式 */
button[open-type="getPhoneNumber"] {
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}
button[open-type="chooseAvatar"] {
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.buy-btn{
  height: 70px;
  background: linear-gradient(to bottom, #1cd98a, #24ca94);
  border-radius: 100px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-around;
  .cart-icon{
    background: linear-gradient(to bottom, #bbe094, #4ee265);
    border-radius: 100px 0 0 100px;
    height: 70px;
  }
  .cart-add{
    background: #e9fff2;
    color: #333333;
    border-radius: 20px 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
  }
  .cart-buy{
    background: linear-gradient(-45deg, #1fbfa2, #94e0ce);
    color: #ffffff;
    border-radius: 0 20px 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
  }
}

image {
  margin: 0; /* 全局设置图片的 margin */
}

/* 管理员面板功能项交互效果 */
.admin-feature-item {
  transition: transform 0.15s ease-in-out;
}

.admin-feature-item:active {
  transform: scale(0.95);
}

/* 科技风格页面动画 */

/* 粒子动画 */
@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-15px) scale(1.1);
    opacity: 0.7;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

@keyframes scanline {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes scanline-green {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), 0 0 40px rgba(168, 85, 247, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6), 0 0 60px rgba(168, 85, 247, 0.3);
  }
}

@keyframes glow-green {
  0%, 100% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4), 0 0 40px rgba(34, 197, 94, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6), 0 0 60px rgba(34, 197, 94, 0.3);
  }
}

/* 粒子元素样式 - 紫色主题 */
.particle {
  animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

/* 粒子元素样式 - 绿色主题 */
.particle-green {
  animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

/* 粒子元素样式 - 蓝色主题 */
.particle-blue {
  animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

/* 扫描线 - 蓝色主题 */
@keyframes scanline-blue {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* 发光效果 - 蓝色主题 */
@keyframes glow-blue {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6), 0 0 60px rgba(59, 130, 246, 0.3);
  }
}

/* 按钮发光效果 */
.authorize-btn:not([disabled]) {
  animation: glow 2s ease-in-out infinite;
}
