﻿/* CSS Document */


/* ── CSS 變數（Variables） ── */

:root {
    /* 使用原則：
     1) 元件樣式優先使用語意化變數（--text-* / --bg-* / --color-h* / --deco-* / --border-*）
     2) 基礎色盤（--color-*）僅作為語意變數的映射來源
     3) 調整活動視覺時，優先修改語意變數，避免直接改元件規則 */
    /* ── 1. 基礎色盤 (Core Palette) ── 
     (若活動需要更多顏色，可在此擴充如 --color-green, --color-yellow 等) */
    --color-blue: #002d6c;
    --color-orange: #ff6100;
    --color-pink: #f04295;
    --color-red: #e7141a;
    --color-red-light: #ffe2e3;
    --color-yellow-light: #ffeccd;
    --color-gray-dark: #4f4f4f;
    --color-gray-light: #a1a1a1;
    --color-gray-line: #d7d7d7;
    --color-shadow: rgba(42, 118, 151, 0.1);
    --color-white: #fff;
    --color-yellow-lighter: #fff8e8;
    /* ── 2. 語意化文字顏色 (Semantic Text Colors) ── 
     (透過綁定基礎色盤，未來抽換活動主視覺時只需改這裡) */
    --text-primary: var(--color-gray-dark);
    /* 一般內文 */
    --text-muted: var(--color-gray-light);
    /* 輔助/次要文字 (如: 原價) */
    --text-inverse: var(--color-white);
    /* 深色底上的反白字 */
    /* 標題與強調系列 (依視覺層級排序) */
    --color-h1: var(--color-blue);
    /* h1 標題色 */
    --color-h2: var(--color-blue);
    /* h2 標題色 */
    --color-h3: var(--color-orange);
    /* h3 標題色 */
    --color-h4: var(--color-orange);
    /* h4 標題色、價錢 */
    --color-mark: var(--color-pink);
    /* 點綴色 (用於 <span> 強調文字) */
    --text-link: var(--color-blue);
    /* 連結顏色，現在明確定義 */
    --text-alert: var(--color-red);
    /* 警告/注意資訊 (如: 活動日期、錯誤提示) */
    --border-default: var(--color-gray-dark);
    /* 邊框顏色 */
    --deco-divider: var(--color-gray-line);
    /* 分隔線顏色 */
    --deco-shadow: var(--color-shadow);
    /* 陰影顏色 */
    /* ── 3. 語意化背景與裝飾 (Semantic Background & Deco) ── */
    --bg-primary: var(--color-white);
    /* 主底色/卡片底色 */
    --bg-secondary: var(--color-yellow-light);
    /* 次要區塊底色 (如: 方案區塊) */
    --bg-tag: var(--color-blue);
    /* 主視覺底色 (用於 Tag 標籤) */
    --bg-btn: var(--color-orange);
    /* 次視覺底色 (用於 CTA 按鈕) */
    --bg-alert: var(--color-red-light);
    /* 警告/注意區塊底色 */
    --bg-table-header: var(--bg-secondary);
    /* 表頭底色 */
    --bg-table-stripe: var(--color-yellow-lighter);
    /* 表格斑馬紋底色 */
    /* ── Font sizes — Mobile default ── */
    --fs-base: 16px;
    --fs-h1: 32px;
    --fs-h2: 28px;
    --fs-h3: 22px;
    --fs-h4: 18px;
    --fs-btn: 20px;
    /* ── Spacing — Mobile default ── */
    --section-margin: 12% auto 0;
    --section-padding: 0 8%;
    --mb-default: 1rem;
}

@media screen and (min-width: 768px) {
     :root {
        --fs-base: 18px;
        --fs-h1: 40px;
        --fs-h2: 36px;
        --fs-h3: 28px;
        --fs-h4: 22px;
        --fs-btn: 24px;
        --section-margin: 8% auto 0;
        --section-padding: 0 5%;
    }
}

@media screen and (min-width: 1024px) {
     :root {
        --fs-base: 18px;
        --fs-h1: 48px;
        --fs-h2: 40px;
        --fs-h3: 32px;
        --fs-h4: 24px;
        --section-margin: 6% auto 0;
        --section-padding: 0 18%;
    }
}


/* ── 全域設定（Global） ── */

.cont {
    box-sizing: border-box;
    color: var(--text-primary);
    font-size: var(--fs-base);
    line-height: 1.8;
    margin: 0 auto 13%;
    overflow: hidden;
    padding-bottom: 72px;
    width: 100%;
}

.cont img {
    width: 100%;
}

.cont section {
    box-sizing: border-box;
    margin: var(--section-margin);
    padding: var(--section-padding);
}

.cont .section_wrap {
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.cont .section_container {
    width: 100%;
}

.cont .section_header {
    margin-bottom: 32px;
}

.cont .section_header>*:last-child {
    margin-bottom: 0;
}


/* 通用標題樣式 */

.cont section h1 {
    color: var(--color-h1);
    font-size: var(--fs-h1);
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 24px;
    text-align: center;
}

.cont section h2 {
    color: var(--color-h2);
    font-size: var(--fs-h2);
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 16px;
    text-align: center;
}

.cont section h3 {
    color: var(--color-h3);
    font-size: var(--fs-h3);
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: center;
}

.cont section h4 {
    color: var(--color-h4);
    font-size: var(--fs-h4);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 8px;
    text-align: center;
}

.cont section h1 span {
    color: var(--color-mark);
    font-weight: 500;
}

.cont section h2 span {
    color: var(--color-mark);
    font-weight: 500;
}


/* 通用文字與列表樣式 */

.cont p,
.cont section ul,
.cont section ol {
    color: var(--text-primary);
    font-size: var(--fs-base);
    line-height: 1.8;
    margin-bottom: var(--mb-default);
}

.cont p:last-child,
.cont section ul:last-child,
.cont section ol:last-child {
    margin-bottom: 0;
}

.cont section ul,
.cont section ol {
    padding-left: 1.5em;
}

.cont section ul li,
.cont section ol li {
    margin-bottom: 8px;
}

.cont section ul li:last-child,
.cont section ol li:last-child {
    margin-bottom: 0;
}

.cont section ol li {
    list-style-type: decimal;
}

.cont section ul li {
    list-style-type: disc;
}

.cont section p a,
.cont section ul li a,
.cont section ol li a {
    color: var(--text-link);
    display: inline-block;
    text-decoration: underline;
}

.cont section ul li a:hover,
.cont section ol li a:hover {
    text-decoration: none;
}

.cont section ul li span,
.cont section ol li span {
    color: var(--color-mark);
}

.cont section ol.list_cjk {
    counter-reset: cjk;
    padding-left: 0;
}

.cont section ol.list_cjk li {
    counter-increment: cjk;
    list-style-type: none;
    padding-left: 3em;
    position: relative;
}

.cont section ol.list_cjk li::before {
    content: "（" counter(cjk, trad-chinese-informal) "）";
    left: 0;
    position: absolute;
}


/* 通用表格樣式 */

.cont section table {
    margin: 0 auto 32px;
    width: 98%;
}

.cont section table th,
.cont section table td {
    box-sizing: border-box;
    border: 1px solid var(--border-default);
    padding: 16px;
    text-align: center;
}

.cont section table th {
    background: var(--bg-table-header);
}

.cont section table td {
    background: var(--bg-primary);
}

.cont section table tr:nth-child(even) td {
    background: var(--bg-table-stripe);
}


/* ── 活動前言（Intro） ── */

.cont section.intro {
    margin-top: 10%;
}

.cont section.intro .section_wrap {
    max-width: 800px;
}

.cont section.intro h1 {
    text-align: center;
}

.cont section.intro h1::after {
    background: var(--color-mark);
    content: "";
    display: block;
    height: 3px;
    margin: 16px auto 0;
    width: 50px;
}

.cont section.intro .intro_meta {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.cont section.intro .intro_date {
    background: var(--bg-alert);
    border-radius: 50px;
    color: var(--text-alert);
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 16px;
}

.cont section.intro .intro_prize {
    color: var(--text-primary);
    font-size: 14px;
}

.cont section.intro p {
    margin-top: 28px;
}


/* ── 方案價格（Pricing） ── */

.cont section.pricing {
    background: var(--bg-secondary);
    padding: 10% 8.5%;
}

.cont section.pricing .section_container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
}

.cont section.pricing .plan {
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: 0 0 32px var(--deco-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: calc(7% + 32px) 5% 7%;
    position: relative;
    text-align: center;
}

.cont section.pricing .plan_price_wrap {
    margin-top: auto;
}

.cont section.pricing .plan_tags {
    align-items: center;
    background: var(--bg-tag);
    border-radius: 0 20px 0 20px;
    color: var(--text-inverse);
    display: flex;
    font-size: var(--fs-h4);
    line-height: 2rem;
    padding: 1% 9%;
    position: absolute;
    right: 0;
    top: 0;
}

.cont section.pricing .plan_currency,
.cont section.pricing .plan_unit {
    color: var(--color-h4);
    font-size: 18px;
}

.cont section.pricing .plan_price {
    color: var(--color-h4);
    font-family: Roboto-Medium, sans-serif;
    font-size: 36px;
    line-height: 1.1;
}

.cont section.pricing .plan_original_price {
    color: var(--text-muted);
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

.cont section.pricing .go_btn a {
    background: var(--bg-btn);
    box-sizing: border-box;
    bottom: 0;
    color: var(--text-inverse);
    display: block;
    font-size: var(--fs-btn);
    font-weight: 500;
    left: 0;
    line-height: 2.8;
    position: fixed;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    width: 100%;
    z-index: 1000;
}

@media (hover: hover) {
    .cont section.pricing .go_btn a:hover {
        box-shadow: 0 10px 26px rgba(255, 97, 0, 0.35);
        filter: brightness(1.05);
        transform: translateY(-2px);
    }
}

.cont section.pricing .go_btn a:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 45, 108, 0.25);
    filter: brightness(1.05);
    outline: none;
}


/* ── 風雲榜（KKAwards） ── */

.cont section.kkawards p {
    margin-bottom: 3%;
}


/* ── 影音區塊（Videos） ── */

.cont section.videos .section_container {
    padding-bottom: 56.25%;
    position: relative;
    width: 100%;
}

.cont section.videos {
    margin: calc(12% - 8px) auto 0;
}

.cont section.videos .section_container .video {
    border: 0;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}


/* ── 獎項說明/得獎名單共用樣式（Prize Info / Lucky Draw） ── */

.cont section.prize_info .section_header p {
    text-align: center;
}


/* ── 注意事項（Note） ── */

.cont section.note {
    margin-bottom: 40px;
}

.cont section.note .section_wrap {
    max-width: 1040px;
}


/* ── 平板版（Tablet）>= 768px ── */

@media screen and (min-width: 768px) {
    .cont {
        padding-bottom: 0;
    }
    .cont section.pricing {
        padding: 6% 3%;
    }
    .cont section.intro {
        margin-top: 8%;
    }
    .cont section.intro .intro_meta {
        flex-direction: row;
        gap: 16px;
    }
    .cont section h1 {
        margin-bottom: 32px;
    }
    .cont section h2 {
        margin-bottom: 24px;
    }
    .cont section h3 {
        margin-bottom: 16px;
    }
    .cont section h4 {
        margin-bottom: 16px;
    }
    .cont .section_header {
        margin-bottom: 40px;
    }
    .cont section.pricing .go_btn a {
        border-radius: 100px;
        bottom: auto;
        line-height: 2.5;
        margin: 0 auto;
        position: static;
        width: 45%;
    }
    .cont section.pricing .section_container {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
        margin: 0 auto 24px;
    }
    .cont section.pricing .plan {
        margin: 0;
        padding: 40px 4% 32px;
        width: 33%;
    }
    .cont section.videos {
        margin: calc(8% - 8px) auto 0;
    }
    .cont section table {
        width: 60%;
    }
    .cont section ul,
    .cont section ol {
        padding-left: 1.8em;
    }
    .cont section.pricing .plan_currency,
    .cont section.pricing .plan_unit {
        font-size: 24px;
    }
    .cont section.pricing .plan_price {
        font-size: 52px;
    }
    .cont section.pricing .plan_original_price {
        font-size: 16px;
    }
}


/* ── 桌機版（Desktop）>= 1024px ── */

@media screen and (min-width: 1024px) {
    .cont section h1 {
        margin-bottom: 40px;
    }
    .cont section h2 {
        margin-bottom: 32px;
    }
    .cont section h3 {
        margin-bottom: 24px;
    }
    .cont section h4 {
        margin-bottom: 16px;
    }
    .cont .section_header {
        margin-bottom: 48px;
    }
    .cont section.pricing .go_btn a {
        width: 35%;
    }
    .cont section.pricing .plan_price {
        font-size: 60px;
    }
    .cont section.videos {
        margin: calc(6% - 8px) auto 0;
    }
}


/* ── 超寬螢幕（Desktop XL）>= 1440px ── */

@media screen and (min-width: 1440px) {
    .cont section {
        padding: 0 12%;
    }
    .cont .section_wrap {
        max-width: 1280px;
    }
    .cont section.pricing .go_btn a {
        width: 32%;
    }
}