body {
  margin: 0 auto;
  background: #000;
  overflow: hidden;
}

.particle_star {
  width: 9px;
  height: 9px;
  position:absolute;
  background-color: #ffffff;
  box-shadow:0px 0px 17px 4px wheat;
  border-radius: 50%;
}

.container {
  margin: 0 auto;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-size: 100% auto; 
  background-repeat: no-repeat; 
  background-image: url('../img/bgg.png');
  backdrop-filter: blur(10px);
  background-size: cover;
  background-position: center;
}

.glass-button {
 
  display: inline-block;
  width: 230px;
  height: 50px;
  line-height: 50px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.2); /* 白色透明 */
  border: 3px solid rgba(255, 255, 255, 0.8); /* 边框变粗 */
  border-radius: 10px;
  backdrop-filter: blur(5px); /* 毛玻璃效果 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0); /* 初始缩放为0 */
  text-align: center;
  transition: background 0.5s, border 0.5s;
  animation: grow 0.8s forwards; /* 添加动画 */
  position: relative;
  overflow: hidden;
  z-index: 2;
  isolation: isolate;
  transition: color 0.3s ease;
  margin: 0; /* 移除可能存在的默认外边距 */
}

@keyframes grow {
  to {
    transform: translate(-50%, -50%) scale(1); /* 最终缩放为1 */
  }
}

.glass-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 80%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease;
  z-index: -1;
}

.glass-button:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow:0px 0px 17px 4px wheat;
  border: 3px solid rgb(255, 255, 255); /* 边框变粗 */
}

.glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 80%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 0;
    transition: none;
    will-change: transform;
    mix-blend-mode: screen;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f0f;
    opacity: 0.8;
    pointer-events: none;
    animation: explode 1s ease-out forwards;
}

@keyframes explode {
    to {
        transform: translate(var(--dx), var(--dy)) rotate(720deg);
        opacity: 0;
    }
}

/* 原有按钮基础样式 */
.btn {
    position: relative;
    padding: 12px 24px;
    border: none;
    background: #2a2a2a;
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 添加光晕效果 */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

/* 悬停时的动画 */
.btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn:hover {
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

/* 示例：添加紫色变体 */
.glass-button.purple {
    background: rgba(150, 0, 255, 0.2);
    border-color: rgba(150, 0, 255, 0.8);
}

/* 按钮组容器 */
.button-group {
    position: relative;
    z-index: 9999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
}