/* 共用版面。活動色彩與裝飾圖片請統一在 theme.css 修改。 */
* {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans TC", sans-serif;
    font-optical-sizing: auto;
    font-weight: 550;
    font-style: normal;
}

.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: var(--ornament-border);
    border-image-slice: 100 fill;
    border-image-repeat: round;
}

.secondary-color-page2 {
    background-color: var(--secondary-bg-page2);
}

.secondary-color-page3 {
    background-color: var(--secondary-bg-page3);
}

body {
    background: var(--body-background) 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);

    }
}

strong {
    color: yellow;
    font-weight: bold;
}

.activity-tabs {
    background-color: var(--tab-bar-bg);
}

.glass-btn {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #FBB03B;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
    text-decoration: none;

    border: 35px solid transparent;
    border-image-source: var(--ornament-border);
    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: white;

}

.glass-btn.active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: rgb(255, 255, 255);
    border-radius: 14px;
    border: 35px solid transparent;
    border-image-source: var(--ornament-border);
    border-image-slice: 100 fill;
    border-image-repeat: round;
    background-color: var(--tab-active-bg);
}

/* ===========================
   主視覺區塊
=========================== */
.top-img,
.top-img-box {
    overflow: hidden;
    width: 100%;
    border-bottom: whitesmoke solid 0.3rem;
    border-bottom: #c127b9 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: var(--content-border);
    border-image-slice: 100 fill;
    border-image-repeat: repeat;

}


.page1 .main-box p {
    background-color: #1d1c1c;
    font-size: 1.5rem;
    padding: 1rem;
    text-align: center;
    max-width: 100%;
    border: #c7c7c7 solid 0.2rem;
    border-radius: 0.5rem;
}

.page2 .main-box p {
    background-color: #1d1c1c;
    font-size: 1.5rem;
    padding: 1rem;
    text-align: center;
    max-width: 100%;
    border: #c7c7c7 solid 0.2rem;
    border-radius: 0.5rem;


}
.page3 .main-box p {
    background-color: #009245;
    font-size: 1.5rem;
    padding: 1rem;
    text-align: center;
    max-width: 100%;
    border: #ffffff solid 0.2rem;
}

@media (max-width: 768px) {
    .main-box {
        margin-top: 1rem;
        border-radius: 0.5rem;
        border: rgb(155, 155, 155) 2px solid;


    }

    .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;
}

.reward-image {
    max-width: 350px;
}

.notice-title {
    border-bottom: 2px solid #fff;
}

.line-winner-panel {
    background-color: var(--secondary-bg-page3);
}

/* ===========================
   注意事項列表
=========================== */
.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(--footer-bg);
    color: #777;
    font-size: 0.9rem;
    border-top: var(--footer-border) solid 0.5rem;
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-divider {
    width: 2px;
    height: 40px;
    background-color: rgb(158, 158, 158);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.R18-logo {
    max-height: 60px;
}

.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;
    font-size: 2rem;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

#backToTop:hover {
    transform: scale(1.1);
}

/* ===========================
   標題樣式
=========================== */
.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);
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

.vip-section h2 {
    font-weight: bold;
    color: #222;
}

.vip-card {
    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;
}

.adaptive-border-box,
.adaptive-border-box-title {
    border: 35px solid transparent;
    border-image-source: var(--ornament-border);
    border-image-slice: 100 fill;
    border-image-repeat: round;
}

.img-prize {
    width: 100%;
    border-radius: 0.5rem;
}
