/* ===========================
   字型設定
=========================== */
@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);
}

@media (max-width: 768px) {
    .secondary-color-page1 {
        /* background-color: #000; */
    }
}

.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-size: cover;
    background-color: var(--primary-bg);
}

strong {
    color: yellow;
    font-weight: bold;
}

/* ===========================
   按鈕樣式
=========================== */


.glass-btn {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    font-size: 1.4rem;
    font-weight: bold;
    color: gainsboro;
    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;
}

.glass-btn:hover {
    background: rgba(47, 192, 44, 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(6, 255, 22);

}

.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: white;

}

/* ===========================
   主視覺區塊
=========================== */
.top-img,
.top-img-box {
    overflow: hidden;
    width: 100%;
    border-bottom: whitesmoke 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;

}

.main-box p {
    background-color: #212323;
    /* font-weight: bold; */
    font-size: 1.5rem;
    padding: 1rem;
    text-align: center;
    /* letter-spacing: 2px; */
    max-width: 100%;
    border-radius: 0.5rem;

}

@media (max-width: 768px) {
    .main-box {
        margin-top: 1rem;
        border-radius: 0rem;
        border: none;
        /* background-color: none; */

    }

    .main-box p {
        text-align: center;
        font-size: 1.3rem;
        line-height: 2rem;
        border: none;
        max-width: 100%;
        margin: 0;
        border: #ffffff 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;
}

@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; */
}