<template>
  <!--段落連結 - 圖右-->
  <div class="q-mt-lg">
    <section class="tour4 section-block">
      <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>
      <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>

    </section>
  </div>
</template>

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

</script>

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

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

  .tour4 .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);
  }

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

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

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

  .tour4 .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) {
    .tour4 {
      display: block !important;
    }

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

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

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

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

</style>
