/* =========================================
   Variables 活動頁公版樣式
   ========================================= */
:root {
    --bg-color: #a593dd;
    /* 背景色 */
    --pc-width: 1200px;
    /* 寬度 */
    scroll-padding-top: 70px;
    /*不讓Navbar的高度遮住下錨點的區塊*/
}

body {
    font-family: "Microsoft JhengHei", sans-serif;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

section {
    margin-bottom: 70px;
    padding: 0 50px;
}


/* =========================================
   桌機
   ========================================= */
.desk_show {
    display: block;
}

.mobile_show {
    display: none;
}

/*固定在頁面最上方*/
.top-bar {
    position: sticky;
    top: 0;
    height: 60px;
    background-color: #000;
    z-index: 1000;
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 40px;
    width: 1100px;
    margin: 0 auto;
}

.right-items {
    display: flex;
    align-items: center;
    gap: 16px;
}

.right-items a {
    color: #fff;
}

.icon_logo {
    width: 26px;
}

/* 註冊按鈕 */
.btn-register {
    display: inline-block;
    padding: 6px 16px;
    background-color: #000;
    border: 1px #fff solid;
    color: #fff;
    border-radius: 99px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-register:hover {
    background-color: #000;
    border: 1px #999 solid;
}

/*回到頂部*/
.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 30;
    display: flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    color: #fff;
    background: rgba(48, 35, 84, .68);
    box-shadow: 0 4px 14px rgba(34, 22, 75, .22);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    line-height: 1;
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}


.back-to-top small {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .05em;
}

.back-to-top:hover {
    background: rgba(48, 35, 84, .88);
    transform: translateY(-3px);
}

.back-to-top:focus-visible {
    outline: 4px solid #ffe600;
    outline-offset: 3px;
}


/******************/

.kv_desk {
    width: 100%;
    margin: 0 auto;
    position: relative;
    height: 740px;
}

.kv_mobile {
    display: none;
}

.wrap {
    margin: 0 auto;
    width: 100%;
    height: 5700px;
    background: url(../images/index_bg.jpg) no-repeat scroll center top;
}


.container {
    max-width: var(--pc-width);
    margin: 0 auto;
}

.kv_title {
    position: absolute;
    top: 196px;
    left: 168px;
    z-index: 99;

}

.kv_sub {
    position: absolute;
    top: 406px;
    left: 168px;
    z-index: 99;
}

.kv_prod {
    position: absolute;
    top: 105px;
    left: 860px;
    z-index: 90;
}

.content_01_title,
.content_02_title,
.content_04_title,
.shopping_guide_title,
.notice_title {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.content_01_box {
    background: #674cb5;
    border-radius: 34px;
    padding: 34px 34px 20px;
    margin: 0 auto;
}

.content_01 ul {
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin: 0 auto;
}

.content_01_btn {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}



.content_02_Abox,
.content_02_Bbox {
    background: #dfc5f6;
    border-radius: 34px;
    padding: 34px 34px 20px;
    margin: 0 auto;
    text-align: center;
}

.content_02_Bbox {
    background: #b9cdfe;
    margin: 20px auto 0 auto;
}

.content_02 .btn {
    margin: 16px auto;
}



.content_03 {
    width: 100%;
    display: block;
}

.content_03 li {
    display: flex;
    justify-content: center;
}

/*content_04*/
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 18px;
    margin: 0 auto;
}

.product-grid a {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 0 rgba(75, 48, 150, .18);
    transition: transform .2s ease, filter .2s ease;
}

.product-grid img {
    width: 100%;
    aspect-ratio: 1.94 / 1;
    object-fit: cover;
}

.product-grid span {
    display: grid;
    min-height: 54px;
    place-items: center;
    padding: 9px 10px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    color: #000;
}


/*shopping_guide*/
.guide-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.guide-grid a,
.guide-grid img {
    width: 100%;
}


/* 活動辦法 */
.notice {
    margin: 0 auto 70px auto;
}

.notice-card {
    margin-bottom: 22px;
    padding: 28px 42px 34px;
    border-radius: 22px;
    background: #fff;
    font-size: 16px;
    line-height: 1.65;
}

.notice-card summary {
    position: relative;
    list-style: none;
    padding-right: 48px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ddd;
    color: #302354;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
}

.notice-card summary::-webkit-details-marker {
    display: none;
}

.notice-card summary::marker {
    content: "";
}

.notice-card summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 4px;
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
    transform: translateY(-70%);
}

.notice-card[open] summary::after {
    content: "−";
}

.notice-card>ul,
.notice-group ul {
    margin-top: 20px;
    padding-left: 24px;
}

.notice-card li {
    list-style: disc;
}

.notice-terms {
    margin: 24px 0 0;
    padding-left: 26px;
}

.notice-card .notice-terms>li {
    margin-bottom: 14px;
    padding-left: 8px;
    list-style: decimal;
}

.notice-group {
    margin-top: 30px;
}

.notice-group h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.notice-group p {
    margin: 12px 0 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

th,
td {
    padding: 12px;
    border: 1px solid #cfcbd8;
}

th {
    background: #f5f2fb;
}


/* =========================================
   平板 
   ========================================= */

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .top-bar .container {
        width: 100%;
        max-width: 100%;
        padding: 0 30px;
    }

    .container {
        width: 100%;
        max-width: 100%;
    }

    section {
        padding: 0 2rem;
    }

    .kv_desk {
        height: auto;
        aspect-ratio: 1200 / 980;
    }

    .kv_title,
    .kv_sub {
        transform: scale(.75);
        transform-origin: top left;
        left: 6%;
        width: 68%;
    }

    .kv_title {
        top: 210px;
    }

    .kv_sub {
        top: 400px;
    }

    .kv_prod {
        left: auto;
        right: 2.8%;
        transform: scale(.68);
        transform-origin: top right;
        top: 275px;
    }

    .content_01_box {
        padding: 32px 18px 16px;
    }

    .content_01 ul {
        gap: 10px;
    }

    .content_02_Abox,
    .content_02_Bbox {
        padding: 30px 16px 10px;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 26px 26px;
        width: 100%;
    }

    .product-grid span {
        font-size: 20px;
    }

    .guide-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

}


/* =========================================
   手機
   ========================================= */


@media screen and (max-width: 767px) {
    .desk_show {
        display: none;
    }

    .mobile_show {
        display: block;
    }

    /*固定在頁面最上方*/
    .top-bar {
        height: 54px;
    }

    .top-bar .container {
        width: calc(100% - 40px);
        padding: 0;

    }

    .btn-register {
        min-height: 28px;
        padding-inline: 11px;
        font-size: 13px;
        padding: 4px 0px;
        width: 3rem;
        text-align: center;
        margin-left: 2.5rem;
    }

    /*回到頂部*/
    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 50px;
        height: 50px;
    }


    .back-to-top small {
        font-size: 12px;
    }

    /**/

    .kv_desk {
        display: none;
    }

    .kv_mobile {
        width: 100%;
        height: auto;
        display: block;
    }



    section {
        margin-bottom: 20px;
        padding: 0 1rem;
    }

    .wrap {
        height: 100%;
        background: none;
    }

    .container {
        width: 100%;

    }

    .kv_title {
        margin: 0 auto;
        width: 74%;
        left: 60px;
        top: 128px;

    }

    .content_01_title,
    .content_02_title,
    .content_04_title,
    .shopping_guide_title {
        margin-bottom: 10px;
        margin-top: 24px;
    }

    .content_01_box {
        background: none;
        width: 100%;
        padding: 0;
    }

    .content_01 ul {
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 8px 2px;
    }

    .content_01 li {
        width: 32%;
    }

    .content_01_btn {
        width: 60%;
        margin: 5px auto;
    }

    .content_02_Abox,
    .content_02_Bbox {
        background: none;
        width: 100%;
        padding: 0;
    }

    .content_02 .btn {
        margin: 5px auto;
        width: 30%;
    }


    .content_03 {
        width: 100%;
        display: block;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
        width: 100%;
    }

    .product-grid span {
        min-height: 52px;
        padding: 7px;
        font-size: 15px;
    }

    .guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .guide-grid li:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 6px);
        margin-inline: auto;
    }


    /* 活動辦法 */
    .notice-card {
        padding: 22px 20px 26px;
        border-radius: 16px;
        font-size: 16px;
    }

    .notice-card summary {
        font-size: 19px;
    }

    .table-scroll {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    table {
        min-width: 600px;
    }




}