<script setup lang="ts">
defineProps<{
  progressText: string
  roleName: string
  roleId: string
}>()
</script>

<template>
  <section class="summary-card">
    <div class="summary-item">
      <span>当前进度</span>
      <strong>{{ progressText }}</strong>
    </div>
    <div class="summary-item">
      <span>当前角色</span>
      <strong>{{ roleName || '待识别' }}</strong>
    </div>
    <div class="summary-item">
      <span>角色 ID</span>
      <strong>{{ roleId || '-' }}</strong>
    </div>
  </section>
</template>

<style scoped>
.summary-card {
  width: 100%;
  max-width: 680px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.summary-item {
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-item span {
  color: #64748b;
  font-size: 13px;
}

.summary-item strong {
  color: #0f172a;
  font-size: 17px;
}

@media (max-width: 720px) {
  .summary-card {
    max-width: 100%;
    grid-template-columns: 1fr;
  }
}
</style>
