/* ===========================
   字型設定
=========================== */
@font-face {
    font-family: '宇文天穹';
    src: url('../fonts/otf/UoqMunThenKhung-Regular.otf') format('opentype');
}

/* ------全域設定------ */
* {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans TC", sans-serif;
    font-optical-sizing: auto;
    font-weight: 550;
    font-style: normal;
}

/* ===========================
   主題顏色與背景
=========================== */
:root {
    --primary-bg: rgb(33, 42, 90);
    --secondary-bg-page1: #811e9f;
    --secondary-bg-page2: #1878F3;
    --secondary-bg-page3: rgb(6, 199, 85);
    --bg-footer-color: #000;
    --page-btn-hover-bg: linear-gradient(313deg, rgb(133, 208, 213) 0%, rgb(82, 237, 152) 30%, rgb(36, 218, 60) 68%, rgb(143, 240, 134) 100%);
    --page-btn-box-bg: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
}

.primary-color {
    background-color: var(--primary-bg);
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .primary-color {
        background-image: none;
    }
}

.secondary-color {
    background-color: rgb(93, 26, 188);
}

.secondary-color-page1 {
    background-color: var(--secondary-bg-page1);
    /* 追加樣式 */
    border: 35px solid transparent;
    border-image-source: url('../images/adaptive-border.png');
    border-image-slice: 100 fill;
    border-image-repeat: round;



}

@media (max-width: 768px) {
    
}

.secondary-color-page2 {
    background-color: var(--secondary-bg-page2);
}

.secondary-color-page3 {
    background-color: var(--secondary-bg-page3);
}

.bg-pageBtn-box {
    background: var(--page-btn-box-bg);
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body {
    background: url('../images/background.png') no-repeat center center fixed;
    background: url('../images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: var(--primary-bg);

}

@media (max-width: 768px) {
    body {
        background: none;
        background-color: var(--primary-bg);

    }
}

/* .box {
    border: 35px solid transparent;
    border-image-source: url('../images/adaptive-border.png');
    border-image-slice: 100 fill;
    border-image-repeat: round;
} */

strong {
    color: yellow;
    font-weight: bold;
}

/* ===========================
   按鈕樣式
=========================== */


.glass-btn {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    font-size: 1.4rem;
    font-weight: bold;
    color: rgb(254, 208, 230);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    /* backdrop-filter: blur(10px); */
    /* -webkit-backdrop-filter: blur(10px); */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2); */
    transition: all 0.3s ease;
    text-decoration: none;

    border: 35px solid transparent;
    border-image-source: url('../images/adaptive-border.png');
    border-image-slice: 100 fill;
    border-image-repeat: round;
}

@media (max-width: 768px) {
    .glass-btn {

        padding: 0px;
    }

}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    color: rgb(236, 255, 21);

}

.glass-btn.active {
    background: rgba(255, 255, 255, 0.3);
    /* box-shadow: 0 0 10px rgba(255, 255, 255, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.4); */
    transform: translateY(-2px);
    color: rgb(235, 12, 131);
    color: rgb(255, 255, 255);
    /* text-shadow: 0px 2px 2px rgb(255, 255, 255); */

    border: 4px solid #d4af37;
    /* 經典金色 HEX */
    border-radius: 12px;
    /* 可選圓角 */
    /* background: linear-gradient(135deg, #dea410, #ffd700, #ebae12); */
    border: 35px solid transparent;
    border-image-source: url('../images/adaptive-border.png');
    border-image-slice: 100 fill;
    border-image-repeat: round;
        background-color: #CC485B;


}

/* ===========================
   主視覺區塊
=========================== */
.top-img,
.top-img-box {
    overflow: hidden;
    width: 100%;
    border-bottom: whitesmoke solid 0.3rem;
    border-bottom: rgb(235, 17, 119) solid 0.3rem;
}

.top-img-box img {
    width: 100%;
}

.top-img-box .pc {
    display: inline-block;
}

.top-img-box .mb {
    display: none;
}

@media (max-width: 768px) {
    .top-img-box .pc {
        display: none;
    }

    .top-img-box .mb {
        display: inline-block;
    }
}

/* ===========================
   主內容區塊
=========================== */
.main-box {
    margin-top: 1.2rem;
    border-radius: 0.5rem;
    box-shadow: 0rem 0.1rem 0.5rem rgb(58, 46, 58);
    border: white 0.2rem solid;
    /* 追加樣式 */
    border: 40px solid transparent;
    border-image-source: url('../images/adaptive-border2.png');
    border-image-slice: 100 fill;
    border-image-repeat: repeat;

}


.page1 .main-box p {
    background-color: #1d1c1c;
    background-image: url(../images/Sky.png);
    /* font-weight: bold; */
    font-size: 1.5rem;
    padding: 1rem;
    text-align: center;
    /* letter-spacing: 2px; */
    max-width: 100%;
    border: #c7c7c7 solid 0.2rem;
    border-radius: 0.5rem;


}.page2 .main-box p {
    background-color: #1d1c1c;
    background-image: url(../images/Sky.png);
    /* font-weight: bold; */
    font-size: 1.5rem;
    padding: 1rem;
    text-align: center;
    /* letter-spacing: 2px; */
    max-width: 100%;
    border: #c7c7c7 solid 0.2rem;
    border-radius: 0.5rem;


}
.page3 .main-box p {
    background-color: #0d8e24;
    /* background-image: url(../images/Sky.png); */
    /* font-weight: bold; */
    font-size: 1.5rem;
    padding: 1rem;
    text-align: center;
    /* letter-spacing: 2px; */
    max-width: 100%;
    border: #ffffff solid 0.2rem;
    /* border-radius: 0.5rem; */


}

@media (max-width: 768px) {
    .main-box {
        margin-top: 1rem;
        border-radius: 0.5rem;
        border: none;
        border: rgb(155, 155, 155) 2px solid;
        /* background-color: none; */


    }

    .page1 .main-box p {
        text-align: center;
        font-size: 1.3rem;
        line-height: 2rem;
        border: none;
        max-width: 100%;
        margin: 0;
        border: #c7c7c7 solid 0.2rem;


    }
    .page2 .main-box p {
        text-align: center;
        font-size: 1.3rem;
        line-height: 2rem;
        border: none;
        max-width: 100%;
        margin: 0;
        border: #c7c7c7 solid 0.2rem;


    }
    .page3 .main-box p {
        text-align: center;
        font-size: 1.3rem;
        line-height: 2rem;
        border: none;
        max-width: 100%;
        margin: 0;
        border: #c7c7c7 solid 0.2rem;


    }
}

.main-box img,
.content-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.box ul li p {
    border: plum 5px solid;
}

.border-plum {
    border: plum 5px solid;


}


/* ===========================
   注意事項列表
=========================== */
.list-box ul li {
    font-size: 1.5rem;
    list-style: none;
    line-height: 2rem;
    padding: 1rem 0rem;
}

@media (max-width: 768px) {
    .list-box {
        padding-top: 1rem;
        padding-right: 0.4rem;
    }

    .list-box ul li {
        font-size: 1rem;
        padding: 0rem 0rem 1rem 1rem;
        line-height: 1.5rem;
        letter-spacing: 0.2rem;
    }

    .box ul {
        padding-left: 0;
    }

    .list-box ul {
        padding-left: 0;
    }
}

.list-box ul li img {
    max-width: 20px;
    height: auto;
    align-items: center;
    margin-bottom: 8px;
    margin-right: 10px;
}

/* ===========================
   Footer & 社交圖示
=========================== */
footer,
.footer {
    background-color: var(--bg-footer-color);
    color: #777;
    font-size: 0.9rem;
    border-top: #e95413 solid 0.5rem;
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-divider {
    width: 2px;
    height: 50px;
    background-color: rgb(158, 158, 158);
}

.social-links a,
.social-icon {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.8rem;
    color: #bbb;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: white;
    transform: scale(1.2);
}

/* ===========================
   回到頂部 & 跑馬燈
=========================== */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.3s ease, visibility 0.5s;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

#backToTop:hover {
    transform: scale(1.1);
}

.marquee {
    width: 100%;
    background: #111;
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee 10s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ===========================
   標題樣式
=========================== */
.title-box {
    margin: auto;
    width: 90%;
    height: 10dvh;
    display: flex;
    justify-content: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
}

.title {
    text-align: center;
    margin: auto;
    width: 30%;
    font-size: 2rem;
    height: 3rem;
}

.title h2 {
    font-size: 2.5rem;
    color: aliceblue;
    font-weight: bold;
    text-stroke: 1.5px blue;
    text-shadow: 0px 2px 3px black;
    /* font-family: '宇文天穹', sans-serif; */
}

@media (max-width: 768px) {
    .title-box {
        margin: auto;
        width: 90%;
        height: 8dvh;
        display: flex;
        justify-content: center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .title {
        text-align: center;
        margin: auto;
        width: auto;
        font-size: 2rem;
        height: 3rem;
        background-image: none;
    }

    .title h2 {
        font-size: 2rem;
        color: aliceblue;
        text-shadow: 3px 3px 2px black;
    }
}

/* ===========================
   內文底色框樣式
=========================== */
.content-bg {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    /* padding: 20px; */
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

.vip-section h2 {
    font-weight: bold;
    color: #222;
}

.vip-card {
    /* border-radius: 1rem; */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.vip-card img {
    max-height: 120px;
    object-fit: contain;
}

.bonus-line {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.bonus-line .original {
    color: #555;
    font-weight: 600;
}

.bonus-line .arrow {
    margin: 0 0.5rem;
    font-size: 1.5rem;
    color: #888;
}

.bonus-line .bonus {
    color: #f0216d;
    /* 紅色強調 */
    /* font-weight: bold; */
}

.adaptive-border-box-title {
    /* 1. 設定邊框寬度 - 必須設定 */
    border: 35px solid transparent;

    /* 2. 邊框圖片來源 */
    border-image-source: url('../images/adaptive-border.jpg');
    border-image-source: url('../images/adaptive-border.png');

    /* 3. 邊框圖片切割（最關鍵的部分） */
    /* 數值（像素或百分比）代表從邊緣向內切割的距離，
       將圖片切成 9 塊：四個角（30x30）、四條邊、中間。 */
    border-image-slice: 100 fill;
    /* 'fill' 表示中間區域也要用圖片填充 */

    /* 4. 邊緣圖片的重複/延展方式 */
    /* - stretch (拉伸): 圖片邊緣會被拉長，適用於簡單線條或漸變。
       - repeat (重複): 圖片邊緣會平鋪。
       - round (環繞): 圖片邊緣會平鋪，並調整大小確保完整顯示。
       - space (間隔): 圖片邊緣會平鋪，並在間隔中留白。 */
    border-image-repeat: round;

    /* 其他樣式 */
    /* padding: 20px; */
    /* width: 80%;  */
    /* 確保容器可以自適應 */
    /* min-height: 100px; */
    /* margin: 20px auto; */
}

.img-prize {
    width: 100%;
    border-radius: 0.5rem;
}