/* ====================================================
   CSS 變數
   ==================================================== */
:root {
    --primary-color:   #11d073;
    --secondary-color: #fff266;
    --accent-color:    #fe5000;
    --black: #000;
    --white: #fff;

    --spacing-sm: calc(0.1rem + 1vw);
    --spacing-md: calc(0.5rem + 2vw);
    --spacing-lg: calc(1.5rem + 3vw);

    --z-floor:      2;
    --z-decoration: 3;
    --z-content:    10;
}


/* ====================================================
   共用元件
   ==================================================== */

/* ── 標題區塊 ── */
header {
    margin-bottom: var(--spacing-md);
}
header > * {
    position: relative;
    z-index: var(--z-content);
}

/* ── 標題圖片（decor-accent 內）── */
.decor-accent img {
    max-width: clamp(330px, 50%, 600px);
    margin-bottom: 30px;
}

/* ── 大尺寸標題圖── */
.ttl-img-lg {
    width: auto;
    max-width: 70%;
    aspect-ratio: auto;
    object-fit: contain;
}
@media (min-width: 768px)  { .ttl-img-lg { height: 120px; } }
@media (min-width: 1280px) { .ttl-img-lg { height: 150px; } }

/* ── 弧形分隔線 ── */
.wave-bottom {
    position: relative;
    width: 100%;
    line-height: 0;
    z-index: var(--z-decoration);
}
#sec-offer .wave-bottom,
#sec-guide .wave-bottom {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}
.wave-bottom svg {
    display: block;
    width: 101%;
    height: 100%;
    max-height: 250px;
    margin-left: -0.5%;
    shape-rendering: geometricPrecision;
    margin-bottom: -1px;
}



/* 弧形顏色（各區獨立）*/
#sec-offer  .wave-bottom svg path { fill: var(--primary-color);   }
#sec-promo  .wave-bottom svg path { fill: var(--secondary-color); }
#sec-guide  .wave-bottom svg path { fill: var(--primary-color);   } 

/* ── 活動說明副標題 ── */
.sub-ttl {
    margin-bottom: 20px;
}

/* ── 注意事項列表（第二區、第六區共用）── */
.note_list-group {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-lg);
}
.note_list {
    background: url('https://event.cdn-eztravel.com.tw/events/pxpay_2026/note_icon_new.png') no-repeat left 0.4em;
    padding-left: 25px;
    margin-bottom: 12px;
}
.note_list_content {
    background: url('https://event.cdn-eztravel.com.tw/events/pxpay_2026/note_icon02.png') no-repeat left 0.5em;
    padding-left: 22px;
    color: #333;
}

/* ── Material Icons 基礎 ── */
.material-symbols-outlined {
    margin-top: 3px;
}


/* ====================================================
   第一區塊：閃領折扣碼 #sec-offer
   ==================================================== */
#sec-offer {
    position: relative;
    padding-top: var(--spacing-lg);
    background-color: var(--secondary-color);
    background-image: repeating-linear-gradient(
        -70deg,
        transparent,          transparent          12px,
        rgba(255,255,255,0.35) 12px, rgba(255,255,255,0.35) 14px
    );
}

.banner-wrapper { padding-bottom: var(--spacing-sm); }
@media (max-width: 768px) {
    .banner-wrapper { padding-bottom: var(--spacing-lg); }
}

/* ──  Wrapper ── */
#sec-offer .card-wrap { padding: 8px; }

/* ── 卡片本體：票券切口造型 ── */
.card {
    background: #fff;
    border-radius: 12px;
    position: relative;
    width: 100%;
    box-shadow: 3px 3px 0 #222;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    -webkit-mask-image:
        radial-gradient(circle at 0    60px, transparent 11px, #000 11.5px),
        radial-gradient(circle at 100% 60px, transparent 11px, #000 11.5px);
    mask-image:
        radial-gradient(circle at 0    60px, transparent 11px, #000 11.5px),
        radial-gradient(circle at 100% 60px, transparent 11px, #000 11.5px);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    z-index: 10;
    box-shadow: inset 0 0 0 2.5px #222;
    background-image:
        radial-gradient(circle at 0    60px, transparent 10px, #222 10.5px, #222 14px, transparent 14.5px),
        radial-gradient(circle at 100% 60px, transparent 10px, #222 10.5px, #222 14px, transparent 14.5px);
}
.card:hover { transform: translateY(-8px); box-shadow: 3px 8px 0 #222; }
.card:hover .btn-detail { background: var(--accent-color); padding-left: 48px; padding-right: 48px; }
@media (max-width: 1199px) {
    .card:hover .btn-detail { background: var(--accent-color); padding-left: 30px; padding-right: 30px; }
}
/* ── 卡片 Header ── */
.card-header {
    padding: 8px 12px;
    text-align: center;
    font-size: clamp(1rem, 0.5rem + 2.5vw, 1.3rem);
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    border-radius: 10px 10px 0 0;
    border-bottom: 2.5px solid #222;
}

.card-header span{
    font-size: .8rem;
    font-weight: 400;
    border: 1px solid #ffffff;   
    border-radius: 50px;         
    padding: 2px 10px;          
    position: relative;
    top: -2px;                  
    margin-left: 4px; 
}


@media (max-width:992px) {
    .card-header {
     font-size: 1.8rem;
}
    .card-header span{
        font-size:1.2rem;
        font-weight: 600;
        padding: 1px 10px; 
       
    }
}


/* @media (max-width: 1199px) {
    .card:hover .btn-detail { background: var(--accent-color); padding-left: 30px; padding-right: 30px; }
} */
.card-1 .card-header,
.card-3 .card-header { background: var(--accent-color);   }
.card-2 .card-header,
.card-4 .card-header { background: var(--primary-color);  }




/* ── 卡片 Body ── */
.card-body {
    padding: 14px 12px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: #fff;
    border-radius: 0 0 10px 10px;
}
.card-subtitle { font-size: 1.5rem; font-weight: 700; color: var(--black); }
.card-note     { font-size: 1.2rem; font-weight: 500; color: var(--black); }

/* ── 查看詳情按鈕 ── */
.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--black);
    color: #fff;
    border: none;
    border-radius: 33px;
    padding: 10px 30px 12px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    margin: 4px 0 10px;
    transition: background 0.25s ease, padding 0.25s ease;
}

/* ── 備注說明文字 ── */
.bottom-note {
    text-align: center;
    font-size: 16px;
    color: var(--black);
    margin-top: 5px;
    margin-bottom: 20px;
}
.bottom-note::before { content: '▲ '; }

/* ── 金幣灑落動畫 ── */
.coin-shower {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: var(--z-floor);
}
@keyframes coinRotateFall {
    0%   { transform: translateY(0)     scale(0)   rotate(0deg);   filter: brightness(1); }
    12%  { transform: translateY(-6px)  scale(1.1) rotate(55deg);  filter: brightness(2.2) drop-shadow(0 0 8px #ffe566); }
    88%  { transform: translateY(300px) scale(1)   rotate(-40deg); filter: brightness(1);
           animation-timing-function: step-start; }
    89%  { transform: translateY(0)     scale(0)   rotate(0deg); }
    100% { transform: translateY(0)     scale(0)   rotate(0deg); }
}
.coin {
    position: absolute;
    height: auto;
    will-change: transform, filter;
    animation: coinRotateFall ease-in-out infinite;
}
.coin-1  { width: 38px; animation-duration: 2.7s; animation-delay: -0.3s; }
.coin-2  { width: 26px; animation-duration: 3.4s; animation-delay: -1.2s; }
.coin-3  { width: 44px; animation-duration: 2.3s; animation-delay: -2.1s; }
.coin-4  { width: 30px; animation-duration: 3.9s; animation-delay: -0.7s; }
.coin-5  { width: 36px; animation-duration: 2.8s; animation-delay: -1.8s; }
.coin-6  { width: 22px; animation-duration: 3.1s; animation-delay: -2.9s; }
.coin-7  { width: 42px; animation-duration: 2.5s; animation-delay: -0.5s; }
.coin-8  { width: 28px; animation-duration: 3.6s; animation-delay: -3.3s; }
.coin-9  { width: 40px; animation-duration: 2.2s; animation-delay: -1.5s; }
.coin-10 { width: 24px; animation-duration: 3.2s; animation-delay: -2.5s; }
.coin-11 { width: 46px; animation-duration: 2.9s; animation-delay: -0.9s; }
.coin-12 { width: 32px; animation-duration: 3.7s; animation-delay: -3.6s; }


/* ====================================================
   第二區塊：357狂歡日優惠 #sec-promo
   ==================================================== */
#sec-promo {
    background-color: var(--primary-color);
    padding: 30px 0 0;
}

/* ── 折價券 Grid ── */
#sec-promo .coupon-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    margin-bottom: 30px;
}
@media (min-width: 768px) {
    #sec-promo .coupon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    #sec-promo .coupon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── 票券卡片 ── */
#sec-promo .coupon-card {
    background: #fff;
    border-radius: 16px;
    position: relative;
    box-shadow: 4px 4px 0 #000;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.18s ease;
    overflow: visible;
    cursor: pointer;
    user-select: none;
    margin: 4px 10px 4px 4px;
    -webkit-mask-image:
        radial-gradient(circle at 0    50%, transparent 13px, #000 13.5px),
        radial-gradient(circle at 100% 50%, transparent 13px, #000 13.5px);
    mask-image:
        radial-gradient(circle at 0    50%, transparent 13px, #000 13.5px),
        radial-gradient(circle at 100% 50%, transparent 13px, #000 13.5px);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}
#sec-promo .coupon-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    z-index: 10;
    box-shadow: inset 0 0 0 2.5px #000;
    background-image:
        radial-gradient(circle at 0    50%, transparent 12px, #000 12.5px, #000 15px, transparent 15.5px),
        radial-gradient(circle at 100% 50%, transparent 12px, #000 12.5px, #000 15px, transparent 15.5px);
}
#sec-promo .coupon-card:hover  { transform: translateY(-6px); box-shadow: 4px 8px 0 #000; }
#sec-promo .coupon-card:active { transform: scale(0.97); }
#sec-promo .coupon-card.copied { background: #e6fff3; }

/* ── 票券內容 ── */
#sec-promo .coupon-top      { padding: 24px 20px 0; text-align: center; }
#sec-promo .coupon-category { font-size: 1.5rem; font-weight: 700; color: #000; margin-bottom: 6px; }
#sec-promo .coupon-amount {
    font-size: clamp(2.2rem, 12vw, 3.6rem);
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: -1px;
}
#sec-promo .coupon-amount span { font-size: 60%; font-weight: 700; }
#sec-promo .coupon-bottom { padding: 16px 6px 20px; text-align: center; }

/* ── 折扣代碼標籤 ── */
#sec-promo .code-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50px;
    padding: 8px 12px 10px;
    font-size: 1rem;
    font-weight: 700;
    pointer-events: none;
    white-space: nowrap;
    width: 80%;
    transition: background 0.18s ease, width 0.2s ease;
}
#sec-promo .coupon-card:hover  .code-badge { width: 90%; background: var(--primary-color); }
#sec-promo .coupon-card.copied .code-badge { background: var(--primary-color); }
#sec-promo .code-badge .icon-copy { font-size: 1.2rem; line-height: 1; vertical-align: middle; margin-top: 3px; }

/* ── 複製提示文字 ── */
#sec-promo .copy-hint {
    display: block;
    font-size: .8rem;
    color: var(--black);
    margin-top: 6px;
    transition: color 0.18s ease;
}
#sec-promo .coupon-card.copied .copy-hint { color: #08a854; }

/* ── 查看更多按鈕 ── */
#sec-promo .guide-more { text-align: center; margin-bottom: var(--spacing-md); }
#sec-promo .btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 44px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.25s ease, padding 0.25s ease;
}
#sec-promo .btn-more:hover {
    background: var(--accent-color);
    padding-left: 64px;
    padding-right: 64px;
}


/* ====================================================
   第三區塊：全支付使用說明 #sec-guide
   ==================================================== */
#sec-guide {
    padding: 40px 0 0;
    background-color: var(--secondary-color);
}

#sec-guide .step-guide-bg {
    background-color: #f5e74f;
    background-image: repeating-linear-gradient(
        -70deg,
        transparent,           transparent           12px,
        rgba(255,255,255,0.25) 12px, rgba(255,255,255,0.25) 14px
    );
    margin: 0 auto;
    border-radius: 20px;
    padding: 50px 0;
    overflow: visible;              
}


#sec-guide .promo-showcase-slider { width: 100%; margin: 0 auto; }
#sec-guide .swiper-wrapper { align-items: stretch !important; margin: 0 20px; }
#sec-guide .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
}

/* ── 步驟文字區 ── */
#sec-guide .step-text-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 8px;
}
#sec-guide .step-label {
    display: inline-block;
    background: #fff;
    color: #000;
    font-weight: 900;
    font-size: 1rem;
    padding: 6px 28px;
    border-radius: 50px;
    border: 2.5px solid #000;
    margin-bottom: 12px;
    position: static;
    transform: none;
}
#sec-guide .step-title {
    font-size: clamp(1.6rem, 4vw, 1.9rem);
    font-weight: 900;
    color: #000;
    margin: 0 0 6px;
    letter-spacing: 1px;
}
#sec-guide .step-desc {
    font-size: 1rem;
    color: #000;
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 48px;
}
@media (max-width: 768px) {
    #sec-guide .step-desc { font-size: 1.03rem; }

    #sec-guide .step-guide-bg {
        padding: 30px 0;
    }
}

/* ── 步驟圖片區 ── */
#sec-guide .step-image-area {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
#sec-guide .step-image-area img {
    width: 100%;
    height: auto;
    object-fit: contain;
    padding: 0 20px;
}
@media (max-width: 768px) {
    #sec-guide .step-image-area img { padding: 0 5px; }
}

/* ── 前四張右側箭頭 ── */
#sec-guide .swiper-slide:nth-child(-n+4)::after {
    content: "▶";
    position: absolute;
    right: -14px;
    top: 8%;
    font-size: 1.2rem;
    color: #000;
    z-index: 20;
    pointer-events: none;
}

/* ===== 步驟區滑動提示 ===== */
.swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 28px auto 0;
    color: var(--black);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}


.mySwiper_StepGuide .step-text-area {
    display: flex;
    flex-direction: column;
    height: 100%;        /* 需 swiper-slide 本身有高度，通常已有 */
}

.mySwiper_StepGuide .step-desc {
    flex: 1;             /* 撐滿剩餘空間 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    text-align: center;
}


/* ===== 步驟區使用前提醒 ===== */
.guide-prerequisite {
    margin: 0 auto 45px;
    
    color: #4e342e;
    font-size: 1.2rem;
    line-height: 1.7;
    text-align: center;
}

.guide-prerequisite a {
    color:var(--accent-color);
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s;
}

.guide-prerequisite a:hover {
    color: #ff5e14;
    text-decoration-thickness: 2px;
}

/* 行動裝置縮小字級 */
@media (max-width: 768px) {
    .guide-prerequisite {
        margin-bottom: 28px;
        text-align: left;
    }
}




#sec-guide .detail-btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: var(--spacing-lg) 0 var(--spacing-lg);
}

#sec-guide .btn-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    padding: 14px 60px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: background 0.25s ease, padding 0.25s ease;
}
#sec-guide .btn-detail-link:hover {
    background: var(--accent-color);
    padding: 14px 80px;
}
/* ====================================================
   第五區塊：推薦產品 #sec-recommend
   ==================================================== */
#sec-recommend {
    background-color: var(--primary-color);
    padding: 30px 0 20px;
}
.recommend-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 768px) {
    .recommend-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .recommend-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
.recommend-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.recommend-card:hover { transform: translateY(-6px); }
.recommend-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 13 / 7;
}


/* ====================================================
   第六區塊：注意事項 #sec_notice
   ==================================================== */
#sec_notice {
    background-color: var(--white);
    padding: 50px 0 30px;
    background-color: var(--primary-color);
}
@media (max-width: 767px) {
    #sec_notice { padding: 36px 0 60px; }
}


#sec_notice h5 {
    text-align: left;
    font-weight: 500;
    margin-bottom: 8px;
}


/* ── 文字連結顏色 ── */
#sec_notice a:link,
#sec_notice a:hover  { color: var(--secondary-color); }  
#sec_notice a:visited               { color: var(--secondary-color); }  






