<template>
  <view class="pickup-complete-card glass-card">
    <view class="complete-mark">
      <text class="complete-mark-check">✓</text>
    </view>

    <text class="complete-kicker">PICKUP COMPLETED</text>
    <text class="complete-title">{{ title }}</text>
    <text class="complete-desc">{{ desc }}</text>

    <view class="complete-meta">
      <view class="complete-meta-item">
        <text class="complete-meta-label">订单状态</text>
        <text class="complete-meta-value">{{ status }}</text>
      </view>
      <view class="complete-meta-item" v-if="time">
        <text class="complete-meta-label">完成时间</text>
        <text class="complete-meta-value">{{ time }}</text>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: '该订单已完成核销'
    },
    desc: {
      type: String,
      default: '门店已完成核销与自提，本页不再展示二维码。'
    },
    status: {
      type: String,
      default: '已自提'
    },
    time: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="scss" scoped>
@import '@/styles/mixins.scss';

.pickup-complete-card {
  position: relative;
  overflow: hidden;
  padding: 36rpx;
  margin-bottom: 24rpx;
}

.pickup-complete-card::before {
  content: '';
  position: absolute;
  right: -60rpx;
  top: -20rpx;
  width: 260rpx;
  height: 260rpx;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 140, 118, 0.08), rgba(100, 140, 118, 0));
  animation: lfFloatSoft 10s ease-in-out infinite;
}

.complete-mark {
  position: absolute;
  right: 28rpx;
  top: 20rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

.complete-mark-check {
  font-size: 110rpx;
  line-height: 1;
  font-weight: 700;
  color: rgba(36, 74, 61, 0.18);
  text-shadow: 0 10rpx 24rpx rgba(54, 77, 64, 0.08);
}

.complete-kicker,
.complete-title,
.complete-desc,
.complete-meta-label,
.complete-meta-value {
  display: block;
  position: relative;
  z-index: 1;
}

.complete-kicker {
  font-size: 20rpx;
  letter-spacing: 4rpx;
  color: rgba(143, 118, 86, 0.82);
}

.complete-title {
  margin-top: 16rpx;
  padding-right: 170rpx;
  font-size: 34rpx;
  line-height: 1.45;
  font-weight: 700;
  color: $text-primary;
}

.complete-desc {
  margin-top: 14rpx;
  font-size: 24rpx;
  line-height: 1.8;
  color: $text-secondary;
}

.complete-meta {
  margin-top: 28rpx;
  display: flex;
  flex-wrap: wrap;
  gap: 18rpx;
}

.complete-meta-item {
  min-width: 220rpx;
  padding: 20rpx 22rpx;
  border-radius: 24rpx;
  background: rgba(255, 255, 255, 0.76);
  border: 1rpx solid rgba(210, 191, 156, 0.14);
}

.complete-meta-label {
  font-size: 20rpx;
  color: $text-secondary;
}

.complete-meta-value {
  margin-top: 10rpx;
  font-size: 26rpx;
  font-weight: 600;
  color: $brand-primary-deep;
}
</style>
