/*
 * 每月主題設定，由活動頁公版製作工具產生。
 * 共用 Bootstrap 版面與原公版元件仍保留於 style.css。
 */
:root {
    --primary-bg: #f3c76e;
    --secondary-bg-page1: #7f2d18;
    --secondary-bg-page2: #9d4519;
    --secondary-bg-page3: #2f7b3b;
    --tab-bar-bg: #6d2417;
    --tab-active-bg: #ffe6a6;
    --footer-bg: #33170e;
    --footer-border: #f6c55d;
    --theme-border: #f6c55d;
    --theme-shadow: 0 8px 22px rgba(75, 27, 11, 0.5);
    --theme-shadow-soft: 0 6px 16px rgba(104, 46, 13, 0.34);
    --card-bg-dark: rgba(93, 35, 17, 0.94);
    --card-bg-light: #fff1c7;
    --radius-container: 12px;
    --radius-card: 8px;
    --radius-content: 6px;
    --radius-button: 8px;
    --radius-pill: 999px;
    --card-radius: var(--radius-card);
    --content-panel-width: calc(100% - 1.5rem);
    --content-panel-max-width: 960px;
    --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: #ffe7a0;
}

/* 本期調整：區塊標題縮小，移除舊版固定高度造成的過大留白。 */
.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: var(--radius-container);
    box-shadow: var(--theme-shadow-soft);
}

/* 本期調整：Header、主框與卡片統一使用銀白邊線、深夜藍紫陰影。 */
.top-img,
.top-img-box {
    border-bottom: 5px 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, #622115 0%, #b4571d 50%, #622115 100%);
    border-top: 3px solid var(--theme-border);
    border-bottom: 3px solid var(--theme-border);
    box-shadow: var(--theme-shadow);
    margin-bottom: 1.75rem;
}

.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 0.85rem 1rem;
    background: linear-gradient(180deg, #a6401c 0%, #6d2417 100%);
    color: #fff5d9;
    border-radius: var(--radius-button);
    border-color: var(--theme-border) !important;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    box-shadow: var(--theme-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.glass-btn:hover {
    background: linear-gradient(180deg, #bd5a20 0%, #823018 100%);
    color: #fff8c8;
}

.glass-btn.active {
    background: linear-gradient(180deg, #fff1b8 0%, #f3a52c 100%);
    color: #622115;
    border-radius: var(--radius-button);
    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: 3px solid rgba(255, 243, 201, 0.86) !important;
    border-image: none !important;
    border-radius: var(--radius-container);
    box-shadow: var(--theme-shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.reward-card,
.vip-section .vip-card {
    border-radius: var(--radius-card);
}

.main-box,
.adaptive-border-box,
.adaptive-border-box-title {
    background: #5f2514;
    background-image: none;
}

.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(93, 35, 17, 0.92);
}

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

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

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

.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: #c85a1b;
}

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

/* 本期區塊重設計：VIP 福利卡改成深色舞台搭配淺色卡面。 */
.vip-section {
    padding: 2rem !important;
    background: transparent !important;
    border: 0 !important;
    border-image: none !important;
    box-shadow: none !important;
}

.vip-section .row {
    align-items: stretch;
    width: var(--content-panel-width);
    max-width: var(--content-panel-max-width);
    margin-inline: auto;
}

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

.vip-section .card-header {
    border-bottom: 3px solid var(--theme-border);
    text-align: left;
    padding: 0.28rem 0.7rem 0.32rem;
    font-size: 1.08rem;
    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, #f6fbff 0%, #a9c4d2 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, #fff3a6 0%, #ff9f1c 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: 178px;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: flex-start;
    padding: 0.55rem 0.65rem 0.45rem;
    border-top: 1px solid rgba(75, 58, 19, 0.15);
}

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

.vip-section .bonus-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: fit-content;
    max-width: 100%;
    margin: auto auto 0;
    min-width: 8.5rem;
    padding: 0.42rem 1.15rem;
    background: #fff8d9;
    border: 0;
    border-radius: var(--radius-pill);
    box-shadow: none;
    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: #c85a1b;
    border-radius: 0;
    font-size: 1rem;
    line-height: 1;
}

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

.vip-section .vip-note {
    max-width: 720px;
    margin: -0.2rem auto 1.1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.7;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.page1 .vip-section .vip-note,
.page1 .vip-section p.vip-note {
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    border-image: none !important;
    border-radius: 0;
    box-shadow: none !important;
}

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

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

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

/* 本期調整：活動內容三張摸彩圖改為語意化卡片結構。 */
.page1 .row.text-center {
    width: var(--content-panel-width);
    max-width: var(--content-panel-max-width);
    margin-inline: auto;
}

.page1 .reward-card {
    min-height: 245px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    background: #3b170d;
    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: #fff;
    font-weight: 700;
}

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

#download {
    border-color: rgba(255, 243, 201, 0.8) !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: var(--content-panel-width);
    max-width: var(--content-panel-max-width);
    margin: 0.75rem auto;
    background-color: #3b170d;
    border: 2px solid rgba(246, 197, 93, 0.8);
    color: #fff;
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.75;
    padding: 1rem;
    border-width: 2px;
    border-radius: var(--radius-content);
    box-sizing: border-box;
}

.page1 .main-box .content-panel,
.page2 .main-box .content-panel,
.page3 .main-box .content-panel {
    background-color: #3b170d;
    border-color: rgba(246, 197, 93, 0.8);
    margin-inline: auto;
    border-radius: var(--radius-content);
}

#eventDateMain,
#eventDateFB,
#eventDateLN {
    white-space: nowrap;
}

/* 本期修正：獎勵圖卡調回深色底，避免圖示在淺底上看起來過淡。 */
.page1 .reward-card {
    background: #3b170d;
    border-color: rgba(246, 197, 93, 0.72) !important;
    color: #fff;
}

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

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

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

/* 本期修正：大圖使用專用裁切容器，避免圖片超出外框圓角。 */
.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(92, 34, 16, 0.92);
    border: 2px solid rgba(246, 197, 93, 0.68);
    border-radius: var(--radius-card);
    box-shadow: var(--theme-shadow-soft);
}

.example-card h3 {
    margin: 0 0 0.75rem;
    color: #ffe7a0;
    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;
}

.page3 .example-copy .example-total {
    margin-top: 0.35rem;
    padding: 0.9rem 1rem;
    color: #ffffff;
    background: #06c755;
    border: 0;
}

.page3 .example-copy .example-total strong {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0;
    color: #fff8c8;
    background: transparent;
    font-size: 1.14em;
    text-shadow: none;
}

/* 本期修正：注意事項區塊統一紅色系。 */
.notice-panel {
    background:
        linear-gradient(135deg, rgba(119, 37, 23, 0.96), rgba(61, 18, 11, 0.98)) !important;
    border-color: #f6c55d !important;
    padding: 1.35rem 1.45rem 1.45rem !important;
}

.notice-panel > .container {
    width: 100%;
    max-width: none;
    padding: 0 !important;
}

.notice-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto 1rem;
    padding: 0 0 0.85rem;
    border-bottom: 2px solid rgba(246, 197, 93, 0.6);
}

.notice-heading h2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 11rem;
    margin: 0;
    padding: 0.28rem 2.35rem 0.4rem;
    background: rgba(246, 197, 93, 0.14);
    border: 2px solid rgba(246, 197, 93, 0.54);
    border-radius: var(--radius-pill);
    font-size: clamp(1.35rem, 1.1vw + 0.9rem, 1.75rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-align: center;
    transform: translateY(-1px);
    box-shadow: inset 0 1px rgba(255, 245, 210, 0.22);
}

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

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

.notice-list ul li {
    color: #fff;
    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: #f6c55d;
    font-size: 1.05em;
}

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

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

@media (max-width: 768px) {
    :root {
        --content-panel-width: calc(100% - 1rem);
        --content-panel-max-width: none;
    }

    .activity-tabs {
        margin-bottom: 1rem;
    }

    .glass-btn {
        min-height: 72px;
        padding: 0.55rem 0.65rem;
        font-size: clamp(1rem, 4vw, 1.2rem);
        line-height: 1.25;
        white-space: nowrap;
    }

    .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: 1rem 0.85rem 1.1rem !important;
    }

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

    .notice-heading h2 {
        min-width: 9rem;
        padding: 0.24rem 1.7rem 0.34rem;
        font-size: 1.28rem;
        letter-spacing: 0.06em;
    }

    .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: var(--content-panel-width);
        margin: 0.5rem auto;
        font-size: 1.18rem;
        line-height: 2rem;
        border-width: 2px;
    }

    .page1 .row.text-center .box > h3 {
        text-align: left;
        padding-left: 0.35rem;
    }

    #eventDateMain,
    #eventDateFB,
    #eventDateLN {
        width: var(--content-panel-width);
        font-size: clamp(15px, 4.1vw, 20px);
        line-height: 1.45;
        letter-spacing: -0.04em;
        padding-inline: 0.35rem;
        white-space: nowrap;
    }

    .page1 .main-box .content-panel,
    .page2 .main-box .content-panel,
    .page3 .main-box .content-panel {
        margin-inline: auto;
        border-radius: var(--radius-content);
    }

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

    .vip-section .row {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.85rem;
        width: var(--content-panel-width);
        margin-inline: auto;
    }

    .vip-section .card-body {
        padding: 0.42rem 0.35rem 0.38rem;
        gap: 0.18rem;
        min-height: auto;
    }

    .vip-section .vip-prop {
        max-height: 68px;
        margin-bottom: -0.25rem;
    }

    .vip-section .bonus-line {
        gap: 0.32rem;
        min-width: 0;
        padding: 0.32rem 0.48rem;
        font-size: 0.9rem;
    }

    .vip-section .bonus-line .bonus {
        font-size: 1rem;
    }

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

    .page1 .row.text-center {
        max-width: none;
    }

    .page1 .reward-image {
        max-width: 260px;
        width: 88%;
    }
}
