@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap");

/*-------------------- 共用樣式 --------------------*/

:root {
    --basic-txt: #212121;
    --main-blue: #578ece;
    --light-red: #f091a0;
    --main-red: #e8456c;
    --main-gn: #11d073;
    --b-round: 0.8rem;
    --content-p: calc(3vw + 42px);
    --col-p: clamp(8px, 1vw + 2px, 15px);
    --transition-com: all 0.2s ease;
}

/*-- 按鈕 --*/

.btn>lord-icon {
    width: 1.25em;
    height: 1.25em;
    vertical-align: sub !important;
}

@property --gradient-1 {
    syntax: "<color>";
    inherits: false;
    initial-value: #4b3ec6;
}

@property --gradient-2 {
    syntax: "<color>";
    inherits: false;
    initial-value: #ea28ea;
}

@property --gradient-3 {
    syntax: "<color>";
    inherits: false;
    initial-value: #f74871;
}

.btn-lg:is(:link, :visited, :active) {
    color: #fff;
    font-weight: 700;
    /* padding: 0.8rem 1.85rem; */
    border-width: 2px;
    border-style: solid;
    border-color: #fff;
    border-radius: 100rem;
    background: linear-gradient(to right, var(--gradient-1) 0%, var(--gradient-2) 100%);
    box-shadow: 0 0.55rem 0 rgba(var(--shadow-rgb), 0.25);

    transition:
        0.25s --gradient-1,
        0.25s --gradient-2,
        0.25s --gradient-3,
        0.2s transform,
        0.2s box-shadow;
}

.btn-lg:hover {
    --gradient-1: #ffaa00;
    --gradient-2: #ea0037;
    transform: translateY(0.25rem);
    color: #fff;
    border-color: var(--basic-txt);
    box-shadow: 0 0 0 rgba(var(--shadow-rgb), 0.75);
}

.btn-lg+p {
    margin-bottom: 0;
    margin-top: 0.75rem;
}

.btn-sec {
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 0;
    text-align: center;
}

/*-------------------- 共用樣式 END --------------------*/

/*-------------------- 全頁 --------------------*/

#wrapper {
    width: 100%;
    min-width: 100%;
    overflow-x: hidden;
}

#wrapper>section {
    padding-top: calc(var(--content-p) * 0.5);
}

@media screen and (max-width: 767px) {
    #wrapper>section {
        padding-top: var(--content-p);
    }
}

/*-- 標題字級 --*/

h1 {
    font-family: zen-maru-gothic, sans-serif;
    font-weight: 900;
    font-style: normal;
    color: var(--main-ye);
    position: relative;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    z-index: 100;
}

@media screen and (max-width: 1199px) {
    h1 {
        >img {
            zoom: 0.9;
        }
    }
}

@media screen and (max-width: 991px) {
    h1 {
        >img {
            zoom: 0.8;
        }
    }
}

@media screen and (max-width: 767px) {
    h1 {
        >img {
            zoom: 0.7;
        }
    }
}

.small.small {
    font-weight: 400;
}

/*-------------------- 全頁 END --------------------*/

/*-------------------- 銀角零卡 (無卡分期) 限定折扣碼 #z-coupon --------------------*/
.z-coupon-step{
    font-size: 2.0rem;
    background-color: #ffffffba;
    max-width: 165px;
    text-align: center;
    margin: 0 auto;
    padding: 7px;
    border-left: 15px solid #009fa3;
    border-right: 15px solid #11d073;
    border-radius: 50px;
}

#z-coupon img {
    cursor: pointer;
    margin-top: 10px;
    max-width: 100%;
    transition: var(--transition-com);
}

#z-coupon a:hover>img {
    transform: scale(1.05);
}

#z-coupon .coupon-sec {
    margin-bottom: calc(var(--content-p) / 2);
}

@media screen and (min-width: 768px) {
    #z-coupon .coupon-sec a>img {
        cursor: pointer;
        max-width: 60%;
    }

    #z-coupon .coupon-line{
        width: 90%;
    max-width: 1100px; margin: 0 auto;}

    #z-coupon .coupon-line a>img{
    max-width: 100%;}
}

.bg-bubble {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #fde1d6;
}

#z-coupon .step-title-lg {
    text-align: center;
    border-left: none;
    margin-left: 0;
    padding:0 0.75rem;
    margin-bottom: 0rem;
    color: #00848e;

    >* {
        line-height: 1.2;
    }

    h2 {
        color: white;
    }
}

/*-------------------- 銀角零卡 (無卡分期) 限定折扣碼 #z-coupon END --------------------*/

/*-------------------- 銀角零卡購物流程 #z-step --------------------*/

@keyframes slideInUp-set {
    0% {
        -webkit-transform: translate3d(0, 10%, 0);
        transform: translate3d(0, 10%, 0);
        visibility: visible
    }

    to {
        -webkit-transform: translateZ(0);
        transform: translateZ(0)
    }
}

@keyframes swing-set {
    20% {
        -webkit-transform: rotate(15deg);
        transform: rotate(15deg)
    }

    40% {
        -webkit-transform: rotate(-10deg);
        transform: rotate(-10deg)
    }

    60% {
        -webkit-transform: rotate(5deg);
        transform: rotate(5deg)
    }

    80% {
        -webkit-transform: rotate(-5deg);
        transform: rotate(-5deg)
    }

    to {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg)
    }
}

#z-step {
    background:
        url(https://event.cdn-gunnarworks.com/events/zingala/bg-cloud.png) no-repeat center bottom/auto clamp(50px, 6vw, 96px),
        url(https://event.cdn-gunnarworks.com/events/zingala/bg-step-icon02.png) no-repeat right 92% / calc(153px + 20vw),
        url(https://event.cdn-gunnarworks.com/events/zingala/bg-step.jpg) no-repeat 30% top/cover;
}

#z-step::before {
    content: '';
    display: block;
    position: absolute;
    top: 18%;
    left: 0;
    width: calc(126px + 10vw);
    aspect-ratio: 318 / 395;
    background: url(https://event.cdn-gunnarworks.com/events/zingala/bg-step-icon01.png) no-repeat left top/contain;
    animation: slideInUp-set;
    animation-duration: 1.8s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

#z-step::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 18%;
    right: 4%;
    width: calc(48px + 5vw);
    aspect-ratio: 144 / 214;
    background: url(https://event.cdn-gunnarworks.com/events/zingala/bg-step-icon03.png) no-repeat center bottom/contain;
    animation: swing-set;
    animation-duration: 4s;
    animation-iteration-count: infinite;
}

@media screen and (max-width: 1150px) {
    #z-step::before {
        top: 22%;
    }
}

@media screen and (max-width: 767px) {
    #z-step::before {
        top: 45%;
    }

    #z-step::after {
        bottom: 12%;
    }
}

.step-class-sec.step-class-sec {
    padding-left: 0;
    padding-right: 0;
}

.step-title-lg {
    text-align: start;
    border-left: 5px solid var(--light-red);
    margin-left: var(--col-p);
    padding-left: 0.75rem;
    margin-bottom: 1.25rem;

    >* {
        line-height: 1.2;
    }

    h2 {
        color: var(--main-blue);
        font-weight: 700;
        margin-bottom: 0;
    }
}

.step-mobile-box {
    position: relative;
    display: flex;
    flex-wrap: wrap;

    >div {
        position: relative;
        padding: 0 calc(var(--col-p) / 5 * 3);
        padding-bottom: calc(var(--content-p) * 1.5 / 2);
    }
}

.mobile-box {
    --b-round: 1.5rem;
    position: relative;

    /* 小箭頭 */
    &::before {
        content: "";
        display: inline-block;
        position: absolute;
        width: 2rem;
        aspect-ratio: 48 / 49;
        background: url(https://event.cdn-gunnarworks.com/events/zingala/step_arrow.png) no-repeat center / contain;
        top: 50%;
        right: 0;
        transform: translate(40%, -50%);
        opacity: 0.8;
        z-index: 101;
    }

    &::after {
        content: "";
        position: relative;
        display: block;
        inset: 0;
        width: 100%;
        aspect-ratio: 310 / 588;
        background: url(https://event.cdn-gunnarworks.com/events/zingala/mobile_frame.png) no-repeat center/contain;
        z-index: 100;
    }
}

/* 最後一個箭頭消失 */
.step-class-sec:last-of-type .mobile-box::before {
    display: none;
}

.mobile-box>.mobile-screen {
    position: absolute;
    width: calc(281 / 310 * 100%);
    top: 2.1%;
    left: 4.3%;
    background-color: #fff;
    aspect-ratio: 281 / 564;
    border-radius: var(--b-round);
    overflow: hidden;
    align-content: center;
    text-align: center;

    >img {
        max-width: 100%;
        max-height: 100%;
    }
}

.mobile-txt {
    margin-top: 0.5rem;
}

/*-------------------- 銀角零卡購物流程 #z-step END --------------------*/

/*-------------------- 推薦產品 #z-step --------------------*/

#z-product {
    background:
        /* url(https://event.cdn-gunnarworks.com/events/zingala/bg-buildings.png) no-repeat left bottom/auto clamp(100px, 12vw, 215px), */
        url(https://event.cdn-gunnarworks.com/events/zingala/bg-ezline.png) no-repeat center/100%,
        linear-gradient(to bottom, rgba(145, 210, 238, 1) 20%, rgba(144, 238, 243, 1) 80%);
}

@media screen and (max-width: 767px) {
    #z-product {
        background:
            url(https://event.cdn-gunnarworks.com/events/zingala/bg-ezline-m.png) no-repeat center/100%,
            linear-gradient(to bottom, rgba(145, 210, 238, 1) 20%, rgba(144, 238, 243, 1) 80%);
    }
}

.pro-sec {
    width: min(1690px, 100%);
    margin: 0 auto;
    padding: var(--col-p) var(--col-p) 0;

    >div {
        margin-bottom: calc(var(--col-p) * 1.8);
    }

    img {
        max-width: 100%;
        box-shadow: 0 0 0 1px var(--main-blue);
        transition: var(--transition-com);
    }
}

.pro-sec a:hover>img {
    filter: contrast(110%) saturate(125%);
    box-shadow: 0 0 0 5px var(--main-gn);
    transform: scale(1.02);
}

/* 建築群輪播 */
@keyframes movetxt {
    0% {
        background-position: 0 top;
    }

    100% {
        background-position: 300% top;
    }
}

#z-product .buildings-sec {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    padding-bottom: 20.2083333333%;
    background-image: url(https://event.cdn-gunnarworks.com/events/zingala/bg-buildings.png);
    background-size: 300% 100%;
    animation-name: movetxt;
    animation-duration: 150s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@media screen and (max-width:767px) {
    @keyframes movetxt {
        0% {
            background-position: 0 top;
        }

        100% {
            background-position: 900% top;
        }
    }

    #z-product .buildings-sec {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 0;
        padding-bottom: 60.625%;
        background-image: url(https://event.cdn-gunnarworks.com/events/zingala/bg-buildings.png);
        background-size: 900% 100%;
        animation-name: movetxt;
        animation-duration: 500s;
    }
}

/*-------------------- 推薦產品 #z-step END --------------------*/

/*-------------------- 注意事項 #z-note --------------------*/

#z-note#z-note {
    padding-top: var(--content-p);
    font-size: min(16px, 0.9375rem);
    font-weight: 400;
    background-color: #fbf8f0;
}

#z-note h5 {
    margin-top: 1rem;
    text-align: center;
}

ul.num-list>li {
    list-style-type: decimal;
}

#z-note ul {
    /* padding-inline-start: 24px; */
    margin-bottom: 5px;
}

@media screen and (max-width: 575px) {
    #z-note ul {
        padding-inline-start: 5px;
    }
}

#z-note li {
    text-align: left;
}

#z-note .contentbox>ul {
    width: 90%;
    margin: 0 auto;
    padding-inline-start: 0;
}

.note_list {
    background: url(https://event.cdn-gunnarworks.com/events/travelfair/2022/note_icon01.png) no-repeat left 0.4em;
    padding-left: 20px;
    margin-bottom: 5px;
}

.note_list_content {
    background: url(https://event.cdn-gunnarworks.com/events/travelfair/2022/note_icon02.png) no-repeat left 0.46em;
    padding-left: 20px;
}

.note_content_item {
    background: url(https://event.cdn-gunnarworks.com/events/travelfair/2022/note_icon02.png) no-repeat left 7px;
    padding-left: 15px;
    font-size: 0.9375rem;
    margin-bottom: 2px;
}

#btn_app {
    position: fixed;
    right: 5px;
    bottom: calc(60px + 95px + 5px);
    z-index: 999;
}

#btn_top {
    position: fixed;
    right: 5px;
    z-index: 999;
}

@media screen and (max-width: 767px) {
    #z-note .contentbox>ul {
        width: 95%;
    }

    #btn_top,
    #btn_app {
        right: 0;
    }
}

/* 警語 */
#wrapper>figcaption {
    background-color: var(--bs-gray-600);
    display: block;
    width: 100%;
    color: #fff;
    text-align: center;
    letter-spacing: 0.8em;
    padding: 0.25em;
}