<template>
  <div class="event-status">
    <div class="status-box pending">
      <div class="icon">
        <img src="@/assets/img/right_msg.png" alt="待处置" />
      </div>
      <div class="number">{{ pendingCount }}</div>
      <div class="label">待处置</div>
    </div>
    <div class="status-box processing">
      <div class="icon">
        <img src="@/assets/img/right_msg.png" alt="处置中" />
      </div>
      <div class="number">{{ processingCount }}</div>
      <div class="label">处置中</div>
    </div>
  </div>
</template>

<script setup>
  
defineProps({
  pendingCount: {
    type: Number,
    default: 0,
  },
  processingCount: {
    type: Number,
    default: 0,
  },
});
</script>

<style scoped>
.event-status {
  display: flex;
  gap: 60px;
  width: 100%;
  height: 95%;
  padding: 40px;
  justify-content: center;
  align-items: center;
}

.status-box {
  width: 48%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0, 24, 51, 0.8);
  border: 1px solid rgba(0, 198, 255, 0.4);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.2),
    inset 0 0 15px rgba(0, 198, 255, 0.1);
  position: relative;
}

.status-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  border: 1px solid rgba(0, 198, 255, 0.5);
  animation: borderGlow 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes borderGlow {
  0% {
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.2);
  }
}

.icon {
  margin-bottom: 20px;
}

.icon img {
  width: 65px;
  height: 65px;
}

.number {
  font-size: 52px;
  font-weight: bold;
  margin: 20px 0;
}

.pending .number {
  color: #ffd700;
}

.processing .number {
  color: #00c6ff;
}

.label {
  color: #ffffff;
  font-size: 24px;
}

/* 添加简单的悬停效果 */
.status-box:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 198, 255, 0.2);
}
</style>
