@import url("reset.css");

*{
    margin:0;
    padding:0;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
    font-family: "Noto Sans TC", "微軟正黑體", "Microsoft JhengHei", sans-serif;
    box-sizing: border-box;
}

img{
    display: block;
}

html{
    scroll-behavior: smooth;
}

:target{
    scroll-margin-top: 100px;
}

h1.seo-h1,
h2.seo-h2,
h3.seo-h3,
h4.seo-h4,
h5.seo-h5,
h6.seo-h6{  
    width: 0;  
    height: 0;  
    margin: 0;
    padding: 0;
    transform: scale(0);
}

a{
    text-decoration: none;
}
a:hover{
    text-decoration: none;
}
.aline{
  text-decoration: underline;
  color: blue;
}

ol,ul,p {
    margin-top: 0;
    margin-bottom: 0rem;
    font-size: 15px;
}

.img_pc{
    display: block;
}

.img_m{
    display: none;
}

.bluegreen{
    color: #00a19b;
}

.gray-7{
    color: #7c7c7c;
}

.gray-9{
    color: #434343;
}

em{
    font-style: normal;
}



.red{
    font-weight: bold;
    color: #F8524C;
}


article {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin: 0 auto;
}



/*旅行社活動 ------------------------------------------------------------*/
#travel{
    width: 100%;
    height: auto;
    overflow: hidden;
    background-image: url("../img/deco2.svg"),url("../img/deco2.svg");
    background-size: 180px,180px;
    background-repeat: no-repeat, no-repeat;
    background-position: 87% 1%, 14% 51%;
}
.agency_campaign_title{
    height: auto;
    display: flex;
    justify-content: center;align-items: center;text-align: center;
    margin-top:100px;margin-bottom: 50px;
}
.agency_campaign_title h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;

}
.agency_campaign_title_2 p{
    text-align: center;
    font-size: 1.5rem;
}
.title-decro{
    max-width:30px;
    display: inline-block;
    margin-left: 3px;
    animation: lightenMove 2.5s ease-in-out infinite;
}
@keyframes lightenMove {
    0% {
        opacity: 0;
        left: -30px;
    }
    15% {
        opacity: 1;
        left: 0;
    }
    85% {
        opacity: 1;
        left: 0;
    }
    100% {
        opacity: 0;
        left: 30px;
    }
}

.agency_campaign{
    max-width: 1200px; margin: 0 auto;height: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    align-content: space-evenly;
    padding: 50px;
}

.agency_campaign_cont:nth-child(odd){
    margin-top:30px;
    margin-bottom: 30px;
}

.agency_campaign_cont:nth-child(even){
    /* background-color:  #fff; */
    margin-top:30px;
    margin-bottom: 30px;
}

.agency_photo{
    width: 35%;
    overflow: hidden;
    border-radius:20px;

}
.agency_photo img{
    transition: transform 0.3s ease;
}
.agency_photo:hover img {
    transform: scale(1.1);
}
.agency_photo img{
    margin: 0 auto;
    width: 100%;
}
.discount-details{
    width: 55%;
    letter-spacing: .1rem;
    color: #434343;
}


.discount-details h3{
    font-size: 25px;
    padding-bottom: 20px;
    letter-spacing: .1rem;
    color: #8a7ecf;
}

.discount-details h3:after {
    display: block;
    left: 0;
    top: 10px;
    content: "";
    width: 100%;
    height: 2px;
    margin-top: 5px ;
    background-color:#8a7ecf;
}

.discount-details h4{
    padding-top: 20px;
    padding-bottom: 10px;
    font-size: 20px;
    letter-spacing: .1rem;
    color: #3cbaad;
}

.discount-details p{
    line-height: 28px;
    color: #434343;
    font-weight: bold;
    padding-bottom: 10px;
}

.discount-details .time{
    font-size: 14px;
    font-weight: normal;
    line-height: 24px;
    color: #595959;
    padding-bottom: 10px;
}

.discount-details .text{
    font-weight: bold;
    list-style-type: circle;
    margin-left: 1.2em;
    line-height: 28px;
    padding-top: 10px;
    text-align: justify;
    color: #595959;
}

@media screen and (max-width:920px) {
    #travel{
        margin-bottom: 0px;
    }
}
/*--原本ul class="notice"------------------------------------------------------------*/
.notice{
    font-size: 13px;
    list-style-type: square;
    margin-left: 1.2em;
    line-height: 20px;
    padding-top: 25px;
    text-align: justify;
    color: #7c7c7c;
}

@media screen and (max-width:430px) {

    .agency_campaign_title h2{
        font-size: 1.3rem;
        
    }
    .agency_campaign_title_2 p{
        font-size: 1rem;
        
    }
    
}
@media screen and (max-width:375px) {

    .agency_campaign_title h2{
        font-size: 1.2rem;
        
    }
    .agency_campaign_title_2 p{
        font-size: 0.9rem;
        
    }
}
/*--PC------------------------------------------------------------*/
@media screen and (max-width:1200px) {
    .mobile-pay-header{
        width: 90%;
    }
}


/*--iPad pro------------------------------------------------------------*/
@media screen and (max-width:1024px) {

}

/*--Pad------------------------------------------------------------*/
@media screen and (max-width:920px) {
    
}

/*--iPad-----------------------------------------------------------*/
@media screen and (max-width:768px) {

}

/*--Mobile-----------------------------------------------------------*/
@media screen and (max-width:540px) {
    .baseball_cont img{
        width: 90%;
    }

    .agency_photo{
        width: 100%;
    }
    .agency_photo img{
        margin-bottom: 30px;
        border-radius: 20px;
    }

    .discount-details {
        width: 100%;
        
    }

    .discount-details h3{
        font-size: 20px;
        letter-spacing: 0.1rem;
        padding: 10px 0;
    }

    .discount-details .text{
        line-height: 26px;
        font-size: 15px;
        padding-top: 20px;
    }

    .discount-details ol .content{
        font-size: 14px;
        line-height: 25px;
    }
}
/* 推薦卡片 -----------------------------------------------*/
    #hotcard{
        background-size: contain;
        background: url('../img/kv_og/travel-campaign_bg.png') bottom center;
        background-repeat: no-repeat;
    }

.popular-cards-list {
    display: flex;flex-wrap: wrap; flex-direction: row;
    justify-content: center;align-items: stretch; 
    width:100%;max-width: 1200px;
    overflow: hidden;
    margin: 0 auto 50px auto;
    padding-top: 50px;
    padding-bottom: 50px;
}

.popular-cards-campaign {
    width:43%;
    background-color: rgb(255 255 255 / 96%);
    box-shadow: 0 0 5px 0 rgb(0, 0, 0, 0.1);
    border-radius: 30px;
    display: flex;flex-direction: row;align-items: stretch;
    padding: 20px; /* 調整內邊距 */
    margin: 10px 20px;
}

.card-img {
    width: 180px;height:115px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0; /* 防止圖片在空間不足時縮小 */
    box-sizing: border-box;
}


.card-text h3 {
    letter-spacing: 1px;
    font-weight: bold;
    line-height: 30px;
    color: #434343;
    margin-top: 0;
    margin-bottom: 5px;
    text-align: left;
}

.card-text {
    box-sizing: border-box;
    font-size: 14px;
    display: flex;
    flex-direction: column; /* 確保文字和按鈕在 card-text 內部垂直排列 */
    flex-grow: 1; /* 讓文字內容區塊佔據剩餘空間 */
    justify-content: space-between; /* 讓文字和按鈕之間有彈性空間，將按鈕推到底部 */
    margin-left:10px;
    line-height: 24px;
}

.card-text ul {
    list-style-type: disc;
    padding-left: 20px;
    padding-bottom: 15px;
}

.card-text .btn {
    margin-top: auto;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
}
@media (max-width: 920px){
    .popular-cards-campaign{
        flex-direction: column; /* 修改垂直排列 */
    
    }
    .card-text h3 {
        text-align: center;
    }
    .card-text  .btn  {
        align-self: center;   /* 讓按鈕在 flex column 內水平置中 */
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }
    .card-img{
        align-self: center;

    }
}

/* 768px 按鈕在下方 維持兩個div一排 */
@media (max-width: 768px) {
    .popular-cards-campaign{
        flex-direction: column; /* 修改垂直排列 */
        margin:10px;
    }

    .card-text {
        align-items:center;
        justify-content: center;
        width: 100%;
        margin-bottom: 10px;
        font-size:13px;
    }
    .card-text a, .card-text .btn {
        margin-top: auto;
        align-self: flex-start; /* 靠左 */
    }
}
@media (max-width: 540px) {
    .card-text .btn{
        width:150px;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }
    #hotcard{
        background-size: contain;
        background: url('../img/kv_og/travel-campaign_bg_m.png') bottom center;
        background-repeat: no-repeat;
    }

}

/*  手機版：一排1個div  */
@media (max-width: 500px) {
    .popular-cards-campaign{
        width:75%;
        padding:20px;
    }
        
}


/* -----------------------------------
 *  注意事項(彈跳視窗popup)
 * ----------------------------------- */
.show-popup {
  text-decoration: none;
}
.active-body {
  overflow: hidden;
}
.overlay-bg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1000;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.7);
}

.popup {
  display: block;
  background: #fff;
  position: absolute;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  max-width: 1000px;
  top: 50%;
  left: 50%;
  width: 80%;
  max-height: 100vh;
  padding: 20px 40px;
  height: auto;
  word-break: break-all;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  cursor: default;
  z-index: 10001;
  border-radius: 4px;
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
          box-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
}
.popup .scrollAreaWrapper {
  max-height: 70vh;
  background-color: transparent;
  padding: 20px;
  padding-left: 0px;
  padding-bottom: 0px;
  padding-top: 0px;
  margin: 20px 0px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #acacac #f0f0f0;
}
.popup .scrollAreaWrapper::-webkit-scrollbar {
  width: 6px;
}
.popup .scrollAreaWrapper::-webkit-scrollbar-track {
  background: #f0f0f0;
}
.popup .scrollAreaWrapper::-webkit-scrollbar-thumb {
  background: #acacac;
  border-radius: 20px;
}
.popup h4{
    text-align: left;
}
.popup .scrollAreaWrapper ul {
  margin-top: 0;
  text-align: justify;
  padding-left: 20px;
}
.popup .scrollAreaWrapper li{
    font-size: 14px;
    margin-left: 1.2em;
    line-height: 20px;
    padding-top: 25px;
    text-align: justify;
    color: #333;
}

@media (max-width: 768px) {
  .popup {
    width: 92%;
    padding: 20px;
  }
  .popup .p1 {
    font-size: 20px;
    width: 96%;
    margin: 0 auto 1em;
  }
}

.close-btn {
  position: absolute;
  top: 10px;
  cursor: pointer;
  right: 10px;
}

.popup .scrollDown_btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  background-color: #fff;
  -webkit-box-shadow: 0px 0px 4px 2px #d9d9d9;
          box-shadow: 0px 0px 4px 2px #d9d9d9;
  color: #00a19b;
  border-radius: 30px;
  font-weight: bold;
  padding: 10px 15px;
  margin-bottom: 8px;
  cursor: pointer;
  width: 80%;
  max-width: 250px;
  text-align: center;
  font-size: 14px;
}

@media (prefers-color-scheme: dark) {
  .popup {
    background: #fff;
  }
}

