/* 暖色调主题 */
:root {
  --primary-color: #FF7043;  /* 主色调 - 温暖橙色 */
  --secondary-color: #FFA726;  /* 次色调 - 浅橙色 */
  --background-color: #FFF3E0;  /* 背景色 - 浅米色 */
  --text-color: #5D4037;  /* 主要文字色 - 深棕色 */
  --light-text: #8D6E63;  /* 浅色文字 */
  --bubble-base: #FF8A65;  /* 气泡基础色 */
  --modal-bg: #FFE0B2;  /* 模态框背景 */
}

/* 标题栏 */
ion-header {
  ion-toolbar {
    --background: #FF8A65;
    --color: white;
    
    ion-back-button[color="light"] {
      --color: white;
    }
    
    ion-title {
      font-weight: 500;
      letter-spacing: 1px;
    }
  }
}

/* 内容区域 */
.vent-content {
  --background: var(--background-color);
  overflow: hidden;
  position: relative;
  touch-action: none;
}

/* 气泡容器 */
.bubble-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 243, 224, 0.8), rgba(255, 224, 178, 0.9));
}

/* 负面情绪气泡 */
.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 12px rgba(0, 0, 0, 0.15);
  animation: float 3s infinite ease-in-out;
  z-index: 10;
  background: var(--bubble-base);
  border: 2px solid rgba(255, 255, 255, 0.3);
  
  &:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }
  
  &.burst {
    animation: burst 0.5s forwards;
  }
}

/* 浮动动画 */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* 锤子样式 */
.hammer {
  position: absolute;
  font-size: 40px;
  transform: translate(-50%, -50%) rotate(45deg);
  z-index: 20;
  pointer-events: none;
  transition: transform 0.1s ease-out;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
  color: #5D4037;
}

/* 粒子效果 */
.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;
  background: var(--secondary-color);
  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;
  }
}

/* 模态框样式 */
.modal-content {
  --background: var(--modal-bg);
  
  .custom-input {
    --background: white;
    --color: var(--text-color);
    --placeholder-color: var(--light-text);
    border-radius: 8px;
    margin-bottom: 16px;
  }
  
  .add-button {
    --background: var(--primary-color);
    --color: black;
    --background-activated: #F4511E;
    font-weight: 500;
  }
  
  .list-header {
    --background: transparent;
    ion-label {
      color: var(--text-color);
      font-weight: 600;
    }
  }
  
  .keyword-item {
    --background: rgba(255, 255, 255, 0.7);
    --border-radius: 8px;
    margin-bottom: 8px;
    
    ion-label {
      color: var(--text-color);
    }
  }
  
  .delete-icon {
    color: var(--primary-color);
    font-size: 20px;
  }
}

/* 统计区域 */
.stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text-color);
  z-index: 30;
  background: rgba(255, 255, 255, 0.8);
  padding: 12px 20px;
  border-radius: 25px;
  margin: 0 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 167, 38, 0.3);
  
  .counter {
    font-weight: 500;
    font-size: 0.9rem;
  }
  
  .action-buttons {
    display: flex;
    
    .action-button {
      --color: var(--primary-color);
      margin-left: 10px;
      
      ion-icon {
        color: var(--primary-color);
      }
    }
  }
}

/* 响应式调整 */
@media (max-width: 400px) {
  .negative-bubble {
    width: 70px;
    height: 70px;
    font-size: 0.8rem;
  }
  
  .stats {
    flex-direction: column;
    gap: 8px;
    
    .action-buttons {
      margin-top: 8px;
    }
  }
}