.vent-content {
  --background: linear-gradient(to bottom, #1a1a2e, #16213e);
  overflow: hidden;
  position: relative;
  touch-action: none;
}

.bubble-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.negative-bubble {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: float 3s infinite ease-in-out;
  z-index: 10;
  
  &:hover {
    transform: scale(1.1);
  }
  
  &.burst {
    animation: burst 0.5s forwards;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}


.hammer {
  position: absolute;
  font-size: 40px;
  transform: translate(-50%, -50%) rotate(45deg);
  z-index: 20;
  pointer-events: none;
  transition: transform 0.1s ease-out;
}
/* 新增粒子效果样式 */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  animation: particle-fly 1s ease-out forwards;
}

@keyframes particle-fly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* 增强气泡爆裂动画 */
@keyframes burst {
  0% {
    transform: scale(1);
    opacity: 1;
    filter: brightness(1);
  }
  20% {
    transform: scale(1.3);
    filter: brightness(1.5);
  }
  50% {
    transform: scale(0.8);
    opacity: 0.8;
    filter: brightness(1.2) blur(1px);
  }
  80% {
    transform: scale(1.1);
    opacity: 0.5;
  }
  100% {
    transform: scale(0);
    opacity: 0;
    display: none;
  }
}

/* 添加屏幕震动效果 */
.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}


/* 裂纹效果 */
.crack-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  opacity: 0.7;
  animation: crackAppear 0.3s;
}

@keyframes crackAppear {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
}

/* 气泡类型特定样式 */
.negative-bubble.hard {
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.negative-bubble.fragile {
  border: 1px dashed rgba(255, 255, 255, 0.6);
  animation: fragilePulse 2s infinite;
}

@keyframes fragilePulse {
  0% { opacity: 0.9; }
  50% { opacity: 1; }
  100% { opacity: 0.9; }
}

/* 关键词模态框样式 */
.keyword-input {
  margin-bottom: 20px;
}

/* 统计按钮区域 */
.stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  z-index: 30;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 20px;
  margin: 0 20px;
  
  div {
    display: flex;
    align-items: center;
  }
  
  ion-button {
    --color: white;
    margin-left: 10px;
  }
}
