<template>
  <!--段落連結 - 圖左-->
  <div class="q-mt-lg">
    <section class="tour3 section-block">
      <div class="pd-img">
        <a @click="OpenNewUrl(plugData.LinkUrl)" :title="plugData.TripTitle" 
        :style="{backgroundImage:`url('${(plugData.TripImage&&plugData.TripImage!=''?plugData.TripImage:plugData.ImageUrl)}')`}"></a>
      </div>
      <div class="pd-content">
        <h2 class="block-title">{{plugData.Title}}</h2>
        <p class="title-teaser">{{plugData.Describe}}</p>
        <a @click="OpenNewUrl(plugData.LinkUrl)" class="wl-btn wl-btn-radius pd-link">了解更多資訊</a>
      </div>
    </section>
  </div>
</template>

<script>
  export default {
    props: ["plugData"]
  };

</script>

<style>
  .tour3 {
    display: flex;
    padding: 20px 0;
  }

  .tour3 .pd-img {
    flex-basis: 66%;
  }

  .tour3 .pd-img a {
    padding-bottom: 66.237%;
    background-size: cover;
    background-position: center;
    display: block;
    width: 100%;
    text-decoration: none;
    color: var(--q-color-primary);
  }

  .tour3 .pd-content {
    flex-basis: 34%;
    padding: 10px 0 30px 30px;
  }

  .tour3 .pd-content .block-title {
    margin-bottom: 20px;
    font-size: 32px;
    padding: 0;
    margin: 0;
    line-height: unset;
    font-weight: 600;
  }

  .tour3 .pd-content .title-teaser {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
    font-size: 16px;
  }

  .tour3 .pd-content .pd-link {
    background-color: var(--q-color-primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    background-clip: padding-box;
    font-size: 15px;
  }

  @media only screen and (max-width: 1200px) {
    .tour3 {
      display: block !important;
    }

    .tour3 .pd-img {
      flex-basis: 100% !important;
    }

    .tour3 .pd-content {
      padding: 20px 10px 30px !important;
      flex-basis: 100% !important;
    }

    .tour3 .pd-content .block-title {
      margin-bottom: 5px !important;
    }
  }

  @media only screen and (max-width: 800px) {
    .tour3 {
      padding: 20px !important;
    }
  }

</style>
