/*
 * 每月主題設定，由活動頁公版製作工具產生。
 * 共用 Bootstrap 版面與原公版元件仍保留於 style.css。
 */
:root {
    --primary-bg: #000000;
    --secondary-bg-page1: #0f6b2f;
    --secondary-bg-page2: #1878f3;
    --secondary-bg-page3: #06c755;
    --tab-bar-bg: #073f21;
    --tab-active-bg: #f3c74c;
    --footer-bg: #000;
    --footer-border: #f3c74c;
    --theme-border: #f3c74c;
    --theme-shadow: 0 8px 18px rgba(2, 29, 14, 0.55);
    --theme-shadow-soft: 0 6px 14px rgba(2, 29, 14, 0.35);
    --card-bg-dark: rgba(4, 38, 21, 0.92);
    --card-bg-light: #fff8dc;
    --card-radius: 20px;
    --body-background: url('../images/background-custom.png');
    --ornament-border: url('../images/adaptive-border.png');
    --content-border: url('../images/adaptive-border2.png');
}

strong,
.title h2 {
    color: #f3d86b;
}

/* 本期調整：區塊標題縮小，移除舊版固定高度造成的過大留白。 */
.title-box {
    width: 100%;
    min-height: auto;
    height: auto;
    margin: 0 auto 0.55rem;
    padding-top: 0.9rem;
}

.title {
    width: auto;
    height: auto;
    margin: 0 auto;
}

.title h2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
    font-size: clamp(1.35rem, 1.2vw + 0.9rem, 1.85rem);
    line-height: 1.25;
    letter-spacing: 0.06em;
}

.vip-section h2,
#download h2 {
    font-size: clamp(1.45rem, 1.1vw + 1rem, 2rem);
    line-height: 1.3;
}

/* 視覺編輯器設定的自訂 CSS 邊框。 */
.main-box,
.secondary-color-page1,
.glass-btn,
.glass-btn.active,
.adaptive-border-box,
.adaptive-border-box-title {
    border: 2px solid var(--theme-border) !important;
    border-image: none !important;
    border-radius: 18px;
    box-shadow: var(--theme-shadow-soft);
}

/* 本期調整：Header、主框與卡片統一使用金色邊線、深綠陰影。 */
.top-img,
.top-img-box {
    border-bottom: 4px solid var(--theme-border);
    box-shadow: var(--theme-shadow);
}

.main-box,
.adaptive-border-box,
.adaptive-border-box-title {
    box-shadow: var(--theme-shadow);
}

/* 本期調整：導覽列與按鈕改成足球球場綠，加上金色重點。 */
.activity-tabs {
    background: linear-gradient(90deg, #06391d 0%, #0e6f31 50%, #06391d 100%);
    border-top: 2px solid var(--theme-border);
    border-bottom: 2px solid var(--theme-border);
    box-shadow: var(--theme-shadow);
    margin-bottom: 1.75rem;
}

.glass-btn {
    background: linear-gradient(180deg, #18883d 0%, #0a5229 100%);
    color: #fff;
    border-color: var(--theme-border) !important;
    box-shadow: var(--theme-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.glass-btn:hover {
    background: linear-gradient(180deg, #22a94f 0%, #0d6230 100%);
    color: #fff7d0;
}

.glass-btn.active {
    background: linear-gradient(180deg, #ffe37a 0%, #d79a16 100%);
    color: #10341d;
    border-color: var(--theme-border) !important;
    box-shadow: var(--theme-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    text-shadow: none;
}

/* 現代化 UI：統一卡片系統，降低舊式裝飾邊框的厚重感。 */
.main-box,
.adaptive-border-box,
.adaptive-border-box-title,
.reward-card,
.vip-section .vip-card,
#download {
    border: 1px solid rgba(243, 199, 76, 0.72) !important;
    border-image: none !important;
    border-radius: var(--card-radius);
    box-shadow: var(--theme-shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.main-box,
.adaptive-border-box,
.adaptive-border-box-title {
    background-image:
        linear-gradient(135deg, rgba(15, 107, 47, 0.88), rgba(4, 39, 19, 0.94));
}

.main-box:hover,
.reward-card:hover,
.vip-section .vip-card:hover,
#download:hover {
    transform: translateY(-2px);
    border-color: var(--theme-border) !important;
    box-shadow: var(--theme-shadow);
}

.page-section.active {
    animation: sectionFadeIn 0.34s ease both;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-box,
    .adaptive-border-box,
    .adaptive-border-box-title,
    .reward-card,
    .vip-section .vip-card,
    #download,
    .page-section.active {
        animation: none;
        transition: none;
        transform: none;
    }
}

/* 本期調整：VIP 卡別區塊改為深色底，讓卡別內容更穩重。 */
.vip-section {
    background: rgba(5, 5, 12, 0.92);
}

.vip-section h2 {
    color: #ffe37a !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.vip-section .vip-card {
    background: #f8f1d5;
    color: #1d1b12;
    border-color: var(--theme-border) !important;
    box-shadow: var(--theme-shadow-soft) !important;
}

.vip-section .card-body {
    background: #fff8dc;
}

.vip-section .vip-card:hover {
    box-shadow: var(--theme-shadow) !important;
}

.vip-section .bonus-line .original,
.vip-section .bonus-line .arrow {
    color: #4b3a13;
}

.vip-section .bonus-line .bonus {
    color: #0f7a35;
}

.vip-section h2 {
    letter-spacing: 0.08em;
}

/* 本期區塊重設計：VIP 福利卡改成深色舞台搭配淺色卡面。 */
.vip-section {
    padding: 2rem !important;
    background:
        radial-gradient(circle at top, rgba(243, 199, 76, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(3, 35, 19, 0.96), rgba(1, 18, 10, 0.98));
}

.vip-section .row {
    align-items: stretch;
}

.vip-section .vip-card {
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    transform: translateY(0);
}

.vip-section .card-header {
    border-bottom: 2px solid var(--theme-border);
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    color: #fff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.72);
}

.vip-section .card-header.bg-dark {
    background: linear-gradient(180deg, #2a2a2f 0%, #050506 100%) !important;
}

.vip-section .card-header.bg-secondary {
    background: linear-gradient(180deg, #f3f7ff 0%, #9ca8ba 100%) !important;
    color: #172033 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.vip-section .card-header.bg-warning {
    background: linear-gradient(180deg, #ffe891 0%, #c88b10 100%) !important;
    color: #2c1a02 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.56);
}

.vip-section .card-header.bg-light {
    background: linear-gradient(180deg, #ffffff 0%, #c9c9c9 100%) !important;
    color: #202020 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.vip-section .card-body {
    display: flex;
    min-height: 246px;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    border-top: 1px solid rgba(75, 58, 19, 0.15);
}

.vip-section .vip-prop {
    max-height: 112px;
    margin-inline: auto;
    object-fit: contain;
    filter: drop-shadow(0 9px 10px rgba(2, 29, 14, 0.28));
    transform: translateY(-2px);
}

.vip-section .bonus-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    min-width: 8.5rem;
    padding: 0.42rem 1.15rem;
    background: #fffdf1;
    border: 1px solid rgba(15, 122, 53, 0.25);
    border-radius: 999px;
    white-space: nowrap;
}

.vip-section .bonus-line .original,
.vip-section .bonus-line .bonus {
    display: inline;
    min-height: auto;
    border-radius: 0;
    font-weight: 800;
}

.vip-section .bonus-line .original {
    background: transparent;
}

.vip-section .bonus-line .arrow {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #0f7a35;
    border-radius: 0;
    font-size: 1rem;
    line-height: 1;
}

.vip-section .bonus-line .bonus {
    font-size: 1.32rem;
    background: transparent;
    color: #0f7a35;
}

.vip-section .vip-note {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    margin: auto auto 0;
    background: rgba(15, 122, 53, 0.1);
    border: 1px solid rgba(15, 122, 53, 0.2);
    border-radius: 999px;
    color: #4b3a13 !important;
    font-weight: 700;
}

/* 本期調整：下載按鈕補足彼此間距，避免圖示黏在一起。 */
#download .downloadChannel {
    padding-inline: 0.75rem;
}

#download .downloadChannel a {
    display: inline-flex;
    justify-content: center;
    border-radius: 14px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

#download .downloadChannel a:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
}

/* 本期調整：活動內容三張摸彩圖改為語意化卡片結構。 */
.page1 .reward-card {
    min-height: 245px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    background:
        linear-gradient(180deg, rgba(255, 248, 220, 0.98), rgba(243, 228, 165, 0.96));
    color: #fff;
    text-align: center;
    line-height: 1.7;
}

.page1 .reward-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.page1 .reward-image {
    max-width: 260px;
    width: 82%;
    margin: 0 auto;
    display: block;
}

.page1 .reward-copy {
    display: grid;
    gap: 0.15rem;
    color: #1d1b12;
    font-weight: 700;
}

.page1 .reward-copy strong {
    color: #0f7a35;
}

#download {
    border-color: rgba(243, 199, 76, 0.72) !important;
    box-shadow: var(--theme-shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

/* 本期調整：內文底色改為明確的內容面板，不再用 main-box p 廣泛上色。 */
.content-panel {
    width: calc(100% - 1.5rem);
    margin: 0.75rem auto;
    background-color: #1d1c1c;
    border: 1px solid rgba(199, 199, 199, 0.78);
    color: #fff;
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.75;
    padding: 1rem;
    border-width: 1px;
    border-radius: 10px;
    box-sizing: border-box;
}

.page1 .main-box .content-panel,
.page2 .main-box .content-panel,
.page3 .main-box .content-panel {
    margin-inline: auto;
    border-radius: 10px;
}

/* 本期修正：獎勵圖卡調回深色底，避免圖示在淺底上看起來過淡。 */
.page1 .reward-card {
    background: #1d1c1c;
    color: #fff;
}

.page1 .reward-image {
    opacity: 1;
    filter: none;
}

.page1 .reward-copy {
    color: #fff;
}

.page1 .reward-copy strong {
    color: #f3d86b;
}

/* 本期修正：大圖使用專用裁切容器，避免圖片超出外框圓角。 */
.media-panel {
    padding: 0;
    overflow: hidden;
}

.media-frame {
    overflow: hidden;
    border-radius: inherit;
}

.media-frame .img-prize {
    display: block;
    width: 100%;
    border-radius: 0;
}

/* 本期調整：活動範例改為分段卡片，降低長文閱讀負擔。 */
.example-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 0.75rem;
}

.example-card {
    padding: 1rem;
    background: rgba(29, 28, 28, 0.92);
    border: 1px solid rgba(243, 199, 76, 0.58);
    border-radius: 16px;
    box-shadow: var(--theme-shadow-soft);
}

.example-card h3 {
    margin: 0 0 0.75rem;
    color: #f3d86b;
    font-size: 1.25rem;
    text-align: center;
}

.example-copy {
    display: grid;
    gap: 0.65rem;
}

.example-copy p {
    margin: 0;
    color: #fff;
    line-height: 1.75;
}

.example-total {
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
}

/* 本期修正：注意事項區塊統一紅色系。 */
.notice-panel {
    background:
        linear-gradient(135deg, rgba(160, 24, 30, 0.96), rgba(82, 8, 13, 0.98)) !important;
    border-color: #ffb1a8 !important;
}

.notice-heading {
    display: flex;
    justify-content: center;
    margin: 0 0 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 177, 168, 0.5);
}

.notice-heading h2 {
    margin: 0;
    padding: 0.35rem 1.35rem;
    background: rgba(255, 226, 223, 0.12);
    border: 1px solid rgba(255, 226, 223, 0.36);
    border-radius: 999px;
    font-size: clamp(1.35rem, 1.1vw + 0.9rem, 1.75rem);
    line-height: 1.25;
}

.notice-heading h2,
.notice-panel strong {
    color: #ffe2df;
}

.notice-list ul {
    max-width: calc(100% - 3rem);
    margin: 0 auto;
    padding-left: 1.45rem;
}

.notice-list ul li {
    color: #fff5f3;
    list-style: disc;
    padding: 0.85rem 0;
    line-height: 1.75;
    border-bottom: 1px solid rgba(255, 245, 243, 0.12);
}

.notice-list ul li::marker {
    color: #ffb1a8;
    font-size: 1.05em;
}

.notice-list ul li:last-child {
    border-bottom: 0;
}

.notice-list ul li:empty {
    display: none;
}

@media (max-width: 768px) {
    .activity-tabs {
        margin-bottom: 1rem;
    }

    .title-box {
        height: auto;
        margin-bottom: 0.45rem;
        padding-top: 0.25rem;
    }

    .title h2 {
        font-size: 1.35rem;
        line-height: 1.25;
    }

    .vip-section h2,
    #download h2 {
        font-size: 1.45rem;
    }

    #download .downloadChannel {
        padding-inline: 0.5rem;
    }

    .notice-panel {
        padding-inline: 1rem !important;
    }

    .notice-heading {
        margin-bottom: 0.7rem;
        padding-bottom: 0.65rem;
    }

    .notice-list {
        padding: 0;
    }

    .notice-list ul {
        width: 100%;
        max-width: calc(100% - 0.5rem);
        margin-inline: auto;
        padding-left: 1.1rem;
    }

    .notice-list ul li {
        padding: 0.55rem 0;
        line-height: 1.55;
        letter-spacing: 0.04em;
    }

    .example-list {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .example-copy p {
        line-height: 1.65;
    }

    .content-panel {
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
        font-size: 1.3rem;
        line-height: 2rem;
        border-width: 1px;
    }

    .page1 .main-box .content-panel,
    .page2 .main-box .content-panel,
    .page3 .main-box .content-panel {
        margin-inline: auto;
        border-radius: 8px;
    }

    .vip-section {
        padding: 1.25rem !important;
    }

    .vip-section .card-body {
        min-height: auto;
    }

    .vip-section .vip-prop {
        max-height: 92px;
    }

    .vip-section .bonus-line {
        gap: 0.55rem;
        min-width: 7.5rem;
        padding: 0.36rem 0.9rem;
    }

    .page1 .reward-card {
        min-height: auto;
    }

    .page1 .reward-image {
        max-width: 220px;
        width: 76%;
    }
}
