<template>
  <section class="section section--gray">
    <div class="container">
      <CommonSectionTitle title="更多V9亮点" subtitle="独家资源 · 自营服务 · 全程无忧" />
      <div class="highlights-list">
        <div v-for="item in highlights" :key="item.text" class="highlight-item">
          <span class="highlight-label">{{ item.label }}</span>
          <span class="highlight-text">{{ item.text }}</span>
        </div>
      </div>
    </div>
  </section>
</template>

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

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

.highlight-item {
  display: flex;
  align-items: baseline;
  gap: @space-md;
  padding: @space-md 0;
  border-bottom: 1px solid @color-border;

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

.highlight-label {
  flex-shrink: 0;
  font-size: @font-size-xs;
  font-weight: @font-weight-bold;
  color: @color-primary;
  background: @color-primary-bg;
  padding: @space-xs @space-sm;
  border-radius: @border-radius-sm;
  min-width: 42px;
  text-align: center;
}

.highlight-text {
  font-size: @font-size-base;
  color: @color-text-secondary;
  line-height: @line-height-base;
}
</style>
