<script setup lang="ts">
import type { ClaimOrderInfo, ClaimOrderItemInfo } from '@/types/claim'

defineProps<{
  order: ClaimOrderInfo | null
  orderItem: ClaimOrderItemInfo | null
  currentStep: number
}>()
</script>

<template>
  <section class="header-card">
    <div class="header-copy">
      <span class="eyebrow">快手 Cloud 客户领取</span>
      <h1>{{ orderItem?.skuName || '商品领取' }}</h1>
      <p>订单号：{{ order?.platformOrderId || '-' }}</p>
    </div>
    <div class="step-indicator">
      <div
        v-for="step in 4"
        :key="step"
        class="step-dot"
        :class="{ active: currentStep >= step }"
      >
        {{ step }}
      </div>
    </div>
  </section>
</template>

<style scoped>
.header-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: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.header-copy h1 {
  margin: 0;
  color: #0f172a;
}

.header-copy p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.step-indicator {
  display: flex;
  gap: 10px;
}

.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step-dot.active {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #ffffff;
}

@media (max-width: 720px) {
  .header-card {
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
}
</style>
