<template>
    <div class="custom-card">
      <!-- 左侧图片 -->
      <div class="card-image">
        <img src="../assets/logo.png" alt="Image Alt Text" />
      </div>
  
      <!-- 右侧内容 -->
      <div class="card-content">
        <!-- 标题 -->
        <div class="card-title">Card Title</div>
  
        <!-- 详细信息 -->
        <div class="card-description">Description text goes here.</div>
  
        <!-- 价格 -->
        <div class="card-price">Price: $19.99</div>
  
        <!-- 立即预约按钮 -->
        <div class="card-action">
          <button class="reservation-button" @click="handleReservation">预约</button>
        </div>
      </div>
    </div>
  </template>
  
  <style scoped>
  /* .custom-card {
    display: flex;
    border: 1px solid #ebedf0;
    border-radius: 8px;
    overflow: hidden;
  } */
  

  .custom-card {
    display: flex;
  border: 1px solid #ebedf0;
  border-radius: 8px;
  overflow: hidden;
  margin: 10px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

  .card-image {
    flex: 1;
    max-width: 150px;
    overflow: hidden;
  }
  
  .card-image img {
    width: 100%;
    height: auto;
  }
  
  .card-content {
    flex: 2;
    padding: 10px;
  }
  
  .card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
  }
  
  .card-description {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .card-price {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
  }
  
  .card-action {
    text-align: right;
  }
  
  .reservation-button {
    background-color: #1989fa;
    color: #fff;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
  }
  </style>
  
  <script>
  export default {
    methods: {
      handleReservation() {
        // 处理立即预约按钮点击事件的逻辑
        console.log("Reservation button clicked!");
      }
    }
  };
  </script>
  