<template>
  <section class="section">
    <div class="container">
      <CommonSectionTitle title="2026年核心升级" subtitle="基于客户反馈的三大重磅升级" />
      <div class="upgrades-list">
        <div v-for="item in upgrades" :key="item.name" class="upgrade-item">
          <div class="upgrade-header">
            <span class="upgrade-tag">{{ item.tag }}</span>
            <h3 class="upgrade-name">{{ item.name }}</h3>
          </div>
          <p class="upgrade-desc">{{ item.description }}</p>
          <div class="upgrade-reason">{{ item.reason }}</div>
        </div>
      </div>
    </div>
  </section>
</template>

<script setup>
defineProps({
  upgrades: { type: Array, required: true }
})
</script>

<style lang="less" scoped>
.upgrades-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: @space-xl;
}

.upgrade-item {
  padding-bottom: @space-xl;
  border-bottom: 1px solid @color-border;

  &:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.upgrade-header {
  margin-bottom: @space-md;
}

.upgrade-tag {
  display: inline-block;
  background: @color-primary;
  color: #fff;
  font-size: @font-size-xs;
  font-weight: @font-weight-medium;
  padding: @space-xs @space-md;
  border-radius: @border-radius-full;
  letter-spacing: 2px;
  margin-bottom: @space-sm;
}

.upgrade-name {
  font-size: @font-size-lg;
  font-weight: @font-weight-bold;
  color: @color-text-primary;
  margin: 0;
}

.upgrade-desc {
  font-size: @font-size-base;
  color: @color-text-secondary;
  line-height: @line-height-loose;
  margin-bottom: @space-md;
}

.upgrade-reason {
  font-size: @font-size-sm;
  color: @color-text-muted;
  line-height: @line-height-base;
  padding: @space-md @space-lg;
  background: @color-bg-gray;
  border-radius: @border-radius-sm;
  border-left: 3px solid @color-primary;
}
</style>
