<template>
  <section class="feedback-section">
    <div class="feedback-title">真实客户案例</div>
    <div class="feedback-list">
      <div v-for="(item, index) in feedbackList" :key="index" class="feedback-card">
        <div class="avatar-container">
          <img :src="item.avatar" alt="avatar" class="avatar" />
        </div>
        <div class="feedback-info">
          <!--          <p class="username">{{ item.username }}</p>-->
          <p class="comment text-2-line-ellipsis">{{ item.comment }}</p>
        </div>
      </div>
    </div>
  </section>
</template>

<script setup lang="ts">
// 模拟假数据（头像统一使用你提供的链接）
const feedbackList = [
  {
    username: '章小样',
    comment: '交付与实施阶段很专业，坚持每天汇报进度和风险，并提出很多合理建议~',
    avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
  },
  {
    username: '章小样',
    comment: '交付与实施阶段很专业，坚持每天汇报进度和风险，并提出很多合理建议~',
    avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
  },
  {
    username: '章小样',
    comment: '交付与实施阶段很专业，坚持每天汇报进度和风险，并提出很多合理建议~',
    avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
  },
  {
    username: '派小喵萌宠',
    comment: '预约操作简单方便，客户体验好评',
    avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
  },
  {
    username: '章小样',
    comment: '交付与实施阶段很专业，坚持每天汇报进度和风险，并提出很多合理建议~',
    avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
  },
  {
    username: '章小样',
    comment: '交付与实施阶段很专业，坚持每天汇报进度和风险，并提出很多合理建议~',
    avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
  },
  {
    username: '派小喵萌宠',
    comment: '交付与实施阶段很专业，坚持每天汇报进度和风险，并提出很多合理建议~',
    avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
  },
  {
    username: '章小样',
    comment: '交付与实施阶段很专业，坚持每天汇报进度和风险，并提出很多合理建议~',
    avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
  },
  {
    username: '章小样',
    comment: '交付与实施阶段很专业，坚持每天汇报进度和风险，并提出很多合理建议~',
    avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
  },
  {
    username: '派小喵萌宠',
    comment: '交付与实施阶段很专业，坚持每天汇报进度和风险，并提出很多合理建议~',
    avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
  },
  {
    username: '章小样',
    comment: '交付与实施阶段很专业，坚持每天汇报进度和风险，并提出很多合理建议~',
    avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
  },
  {
    username: '章小样',
    comment: '交付与实施阶段很专业，坚持每天汇报进度和风险，并提出很多合理建议~',
    avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
  },
  {
    username: '派小喵萌宠',
    comment: '交付与实施阶段很专业，坚持每天汇报进度和风险，并提出很多合理建议~',
    avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
  },
  {
    username: '章小样',
    comment: '交付与实施阶段很专业，坚持每天汇报进度和风险，并提出很多合理建议~',
    avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
  },
  {
    username: '章小样',
    comment: '交付与实施阶段很专业，坚持每天汇报进度和风险，并提出很多合理建议~',
    avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
  },
  {
    username: '派小喵萌宠',
    comment: '交付与实施阶段很专业，坚持每天汇报进度和风险，并提出很多合理建议~',
    avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
  }
]
</script>

<style scoped lang="less">
// 基础变量（可继承项目全局样式）
@bg-color: #f9fbff;
@card-bg: #ffffff;
@radius: 12px;
@padding: 16px;
@gap: 50px;
@avatar-size: 60px;
@text-color: #333;
@subtext-color: #999;
@transition: all 0.3s ease;

.feedback-section {
  background-color: @bg-color;
  .px(100px);
  text-align: center;
  .pb(100px);
  .feedback-title {
    font-size: 28px;
    font-weight: 600;
    color: @text-color;
    .pb(60px);
    .pt(100px);
  }

  .feedback-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: @gap;
  }

  .feedback-card {
    transition: @transition;
    display: flex;
    padding: 16px;
    align-items: center;
    gap: 20px;
    border-radius: 100px;
    background: #f3f5f7;
    &:hover {
      transform: translateY(-4px);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .avatar-container {
      flex-shrink: 0;
      //margin-right: 12px;

      .avatar {
        width: @avatar-size;
        height: @avatar-size;
        border-radius: 50%;
        object-fit: cover;
      }
    }

    .feedback-info {
      text-align: left;

      .username {
        font-size: 18px;
        font-weight: 500;
        color: @text-color;
        margin-bottom: 4px;
      }

      .comment {
        width: 250px;
        font-size: 14px;
        color: @text-color;
        line-height: 1.4;
      }
    }
  }
}

// 响应式适配
@media (max-width: 768px) {
  .feedback-card {
    width: 100%;
    max-width: 320px;
  }
}
</style>
