<template>
  <div class="recommenduser-container">
    <div class="content">
      <div class="rectangle-box">
        <h1 class="title">推荐用户</h1>
        <p class="subtitle">根据你的恋爱偏好，为您推荐以下用户</p>
        <div class="add-button" @click="addBtn">添加</div>
        
        <div class="user-card">
          <img class="avatar" src="@/assets/pictures/touxiang.png" alt="用户头像">
          <div class="user-info">
            <div class="name-gender">
              <span class="name">Alan</span>
              <span class="gender">男</span>
            </div>
            <div class="job-location">
              <span class="job">软件开发工程师</span>
              <span class="location">福州</span>
            </div>
            <div class="details">
              <span>月薪10K-15K</span>
              <span>188cm</span>
              <span>健身</span>
              <span>幽默</span>
            </div>
          </div>
        </div>

        <div class="user-card second-card">
          <img class="avatar" src="@/assets/pictures/touxiang.png" alt="用户头像">
          <div class="user-info">
            <div class="name-gender">
              <span class="name">Alan</span>
              <span class="gender">男</span>
            </div>
            <div class="job-location">
              <span class="job">软件开发工程师</span>
              <span class="location">福州</span>
            </div>
            <div class="details">
              <span>月薪10K-15K</span>
              <span>188cm</span>
              <span>健身</span>
              <span>幽默</span>
            </div>
          </div>
        </div>

        <div class="user-card right-card">
          <img class="avatar" src="@/assets/pictures/touxiang.png" alt="用户头像">
          <div class="user-info">
            <div class="name-gender">
              <span class="name">Alan</span>
              <span class="gender">男</span>
            </div>
            <div class="job-location">
              <span class="job">软件开发工程师</span>
              <span class="location">福州</span>
            </div>
            <div class="details">
              <span>月薪10K-15K</span>
              <span>188cm</span>
              <span>健身</span>
              <span>幽默</span>
            </div>
          </div>
        </div>

        <div class="user-card right-card second-card">
          <img class="avatar" src="@/assets/pictures/touxiang.png" alt="用户头像">
          <div class="user-info">
            <div class="name-gender">
              <span class="name">Alan</span>
              <span class="gender">男</span>
            </div>
            <div class="job-location">
              <span class="job">软件开发工程师</span>
              <span class="location">福州</span>
            </div>
            <div class="details">
              <span>月薪10K-15K</span>
              <span>188cm</span>
              <span>健身</span>
              <span>幽默</span>
            </div>
          </div>
        </div>

        <div class="user-card right-card-2">
          <img class="avatar" src="@/assets/pictures/touxiang.png" alt="用户头像">
          <div class="user-info">
            <div class="name-gender">
              <span class="name">Alan</span>
              <span class="gender">男</span>
            </div>
            <div class="job-location">
              <span class="job">软件开发工程师</span>
              <span class="location">福州</span>
            </div>
            <div class="details">
              <span>月薪10K-15K</span>
              <span>188cm</span>
              <span>健身</span>
              <span>幽默</span>
            </div>
          </div>
        </div>

        <div class="user-card right-card-2 second-card">
          <img class="avatar" src="@/assets/pictures/touxiang.png" alt="用户头像">
          <div class="user-info">
            <div class="name-gender">
              <span class="name">Alan</span>
              <span class="gender">男</span>
            </div>
            <div class="job-location">
              <span class="job">软件开发工程师</span>
              <span class="location">福州</span>
            </div>
            <div class="details">
              <span>月薪10K-15K</span>
              <span>188cm</span>
              <span>健身</span>
              <span>幽默</span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'RecommendUserPage',
  data() {
    return {
      // 数据
    }
  },
  methods: {
    addBtn() {
      alert('此功能仅对VIP用户开放');
      console.log('Add button clicked');
    }
  }
}
</script>

<style scoped>
.recommenduser-container {
  width: 100%;
  min-height: 100vh;
  background-image: url('@/assets/pictures/recommenduser.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.content {
  position: absolute;
  bottom: 39px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rectangle-box {
  width: 1313px;
  height: 400px;
  border-radius: 30px;
  border: 1px solid #FE4E96;
  background: rgba(255, 225, 240, 0.7);
  flex-shrink: 0;
  position: relative;
}

.title {
  position: absolute;
  left: -400px;
  top: 26px;
  color: #FE4E96;
  font-family: "Nunito Sans";
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin: 0;
  text-decoration: none;
  border-bottom: none;
  -webkit-text-decoration: none;
  -moz-text-decoration: none;
  -ms-text-decoration: none;
}

.title:hover,
.title:active,
.title:visited {
  text-decoration: none;
  border-bottom: none;
}

.subtitle {
  position: absolute;
  left: 220px;
  top: 30px;
  color: #FEB2EE;
  font-family: "Nunito Sans";
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
}

.add-button {
  position: absolute;
  right: 30px;
  top: 26px;
  width: 142.625px;
  height: 52.748px;
  border-radius: 30px;
  background: #FE4E96;
  border: none;
  color: white;
  font-family: "Nunito Sans";
  font-size: 24px;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
  flex-shrink: 0;
}

.add-button:hover {
  background: #ff3a8b;
}

.user-card {
  position: absolute;
  left: 35px;
  top: 95px;
  width: 370px;
  height: 103px;
  padding: 15px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

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

.user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.name-gender {
  display: flex;
  align-items: center;
  gap: 10px;
}

.name {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.gender {
  font-size: 18px;
  color: #666;
}

.job-location {
  display: flex;
  gap: 10px;
  color: #666;
  font-size: 16px;
}

.details {
  display: flex;
  gap: 15px;
  color: #666;
  font-size: 16px;
}

.second-card {
  top: 240px;
}

.right-card {
  left: 455px;
}

.right-card-2 {
  left: 875px;
}
</style> 