﻿
/* ==========================================================================
   Privacy Page – Clean Pink Theme (no images)
   規則：
   1) 只用變數，不寫死顏色
   2) 結構樣式與品牌樣式分離
   ========================================================================== */

/* ---------- 基礎中性色 & 尺寸 ---------- */
:root {
    /* Neutrals */
    --bg: #f6f8fc;
    --card-bg: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    /* Brand (默認值，會被主題覆寫) */
    --brand-50: #f3f4f6;
    --brand-100: #e5e7eb;
    --brand-200: #d1d5db;
    --brand-300: #9ca3af;
    --brand-400: #6b7280;
    --brand-500: #374151;
    --brand-600: #1f2937;
    /* UI */
    --radius: 16px;
    --border: rgba(2,6,23,.08);
    --shadow-1: 0 6px 16px rgba(2,6,23,.08);
    --shadow-2: 0 10px 24px rgba(2,6,23,.10);
}

/* ---------- 粉色主題（套在 .privacy-section.theme-pink） ---------- */
.privacy-section.theme-pink {
    --bg: #FFF1F6;
    --card-bg: #ffffff;
    --text: #2B2B2B;
    --muted: #6F6F6F;
    --brand-50: #FFF5F9; /* 最淡底色 */
    --brand-100: #FFE7EF;
    --brand-200: #FFD6E4;
    --brand-300: #FFB3C9; /* 輔助/hover */
    --brand-400: #FF8FB2;
    --brand-500: #E84E8E; /* 主色 */
    --brand-600: #D73E7F; /* 深一階 */

    --border: rgba(232,78,142,.22);
    --shadow-1: 0 6px 16px rgba(232,78,142,.10);
    --shadow-2: 0 10px 24px rgba(232,78,142,.12);
}

/* ---------- Dark Mode（偏高對比） ---------- */
@media (prefers-color-scheme: dark) {
    .privacy-section.theme-pink {
        --bg: #1F1520;
        --card-bg: #241A25;
        --text: #F3F4F6;
        --muted: #C9CAD1;
        /* 粉色保持，但邊框/陰影加深 */
        --border: rgba(232,78,142,.28);
        --shadow-1: 0 8px 20px rgba(0,0,0,.45);
        --shadow-2: 0 12px 32px rgba(0,0,0,.55);
    }
}

/* ---------- 全域小強化 ---------- */
html {
    scroll-behavior: smooth;
}

section.privacy-section {
    background: radial-gradient(1200px 600px at 10% -10%, var(--brand-50), transparent), var(--bg);
}

.container.privacy-container {
    padding: 48px 12px 80px;
}

.policy-card {
    scroll-margin-top: 96px;
}

/* ---------- 頁首 ---------- */
.page-header-container {
    background: linear-gradient(180deg, var(--brand-200) 0%, var(--brand-100) 100%);
    border-bottom: 1px solid var(--border);
}

.page-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 36px 0;
}

.page-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-header-badge {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-200), var(--brand-100));
    box-shadow: var(--shadow-2);
}

    .page-header-badge .bi {
        font-size: 24px;
        color: var(--brand-500);
    }

.page-title {
    margin: 0;
    font-weight: 800;
    letter-spacing: .3px;
    color: var(--text);
}

.page-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 600;
    transition: .2s ease;
    backdrop-filter: saturate(1.2);
}

    .btn-back:hover {
        transform: translateY(-1px);
        border-color: var(--brand-500);
        color: var(--brand-500);
    }

/* ---------- 快速導覽 ---------- */
.quick-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card-bg);
    box-shadow: var(--shadow-1);
    text-decoration: none;
    color: var(--text);
    transition: .2s ease;
}

    .quick-nav-item .bi {
        font-size: 18px;
        color: var(--brand-500);
    }

    .quick-nav-item span {
        font-weight: 700;
    }

    .quick-nav-item:hover {
        transform: translateY(-2px);
        border-color: rgba(0,0,0,.08);
        box-shadow: var(--shadow-2);
    }

/* ---------- 區塊卡片 ---------- */
.policy-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-2);
    margin-bottom: 28px;
}

.policy-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.policy-number {
    flex-shrink: 0;
    font-weight: 900;
    font-size: 22px;
    color: var(--brand-500);
    background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
    border: 1px solid var(--border);
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
}

.policy-title {
    margin: 0;
    font-weight: 800;
    color: var(--text);
    width: 100%
}

.policy-line {
    height: 3px;
    width: 100%;
    margin-top: 10px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
    opacity: .55;
}

/* ---------- 重點高亮卡 ---------- */
.highlight-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--brand-50), transparent);
}

    .highlight-card .highlight-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: linear-gradient(135deg, var(--brand-200), var(--brand-100));
    }

    .highlight-card .bi {
        color: var(--brand-500);
        font-size: 18px;
    }

    .highlight-card h4 {
        margin: 2px 0 6px;
        font-weight: 800;
        color: var(--text);
    }

/* 警示盒（中立，不吃品牌色文字） */
.alert-box {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(245,158,11,.12);
    border: 1px solid rgba(245,158,11,.35);
    color: #92400e;
    border-radius: 10px;
    padding: 10px 12px;
}

    .alert-box .bi {
        color: #f59e0b;
    }

/* ---------- Accordion ---------- */
.custom-accordion .accordion-item {
    border: 1px solid var(--border) !important;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--card-bg);
    box-shadow: var(--shadow-1);
}

.custom-accordion .accordion-button {
    font-weight: 700;
    padding: 14px 18px;
    gap: 10px;
    color: var(--text);
    background: linear-gradient(0deg, transparent, rgba(2,6,23,.02));
}

    .custom-accordion .accordion-button:not(.collapsed) {
        color: var(--brand-600);
        box-shadow: inset 0 -1px 0 var(--border);
        background: linear-gradient(0deg, var(--brand-50), transparent);
    }

    .custom-accordion .accordion-button:focus {
        box-shadow: none;
    }

.accordion-number {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--brand-600);
    background: var(--brand-100);
}

/* ---------- 資料標籤 ---------- */
.data-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.data-tag {
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    color: var(--brand-600);
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
}

/* ---------- 小資訊盒 / 勾選提示 / 小盾牌 ---------- */
.info-card, .feature-box, .security-badge {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    color: var(--text);
    border-radius: 12px;
    padding: 10px 12px;
}

    .info-card .bi, .feature-box .bi, .security-badge .bi {
        color: var(--brand-500);
    }

/* ---------- 安全性卡片 ---------- */
.security-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    background: var(--card-bg);
    box-shadow: var(--shadow-1);
    transition: .2s ease;
}

    .security-card:hover {
        transform: translateY(-3px);
    }

.security-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-200), var(--brand-100));
}

    .security-icon .bi {
        font-size: 22px;
        color: #10b981;
    }
/* 維持成功綠 */

/* ---------- 例外情況卡組 ---------- */
.exception-cards {
    display: grid;
    gap: 12px;
}

@media (min-width:768px) {
    .exception-cards {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.exception-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card-bg);
    box-shadow: var(--shadow-1);
}

.exception-number {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-300));
}

/* ---------- 警示卡 ---------- */
.warning-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(245,158,11,.35);
    background: rgba(245,158,11,.10);
}

.warning-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(245,158,11,.15);
}

    .warning-icon .bi {
        color: #f59e0b;
        font-size: 18px;
    }

/* ---------- Cookie 卡 ---------- */
.cookie-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    background: var(--card-bg);
    box-shadow: var(--shadow-1);
}

.cookie-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
}

    .cookie-icon.purpose {
        background: var(--brand-100);
    }

    .cookie-icon.control {
        background: var(--brand-100);
    }

    .cookie-icon .bi {
        font-size: 18px;
        color: var(--brand-500);
    }

.cookie-card h4 {
    font-weight: 800;
    margin: 4px 0 6px;
}

.cookie-card p {
    color: var(--muted);
    margin: 0;
}

/* ---------- 修正說明卡 ---------- */
.update-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1px dashed var(--brand-300);
    background: var(--brand-50);
}

    .update-card .bi {
        color: var(--brand-500);
    }

/* ---------- 聯絡卡 ---------- */
.contact-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card-bg);
    box-shadow: var(--shadow-1);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-200), var(--brand-100));
}

    .contact-icon .bi {
        font-size: 20px;
        color: var(--brand-500);
    }

.contact-content h4 {
    margin: 0 0 6px;
    font-weight: 800;
}

.contact-card .btn.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-300));
    border: none;
    box-shadow: 0 8px 20px rgba(232,78,142,.30);
}

    .contact-card .btn.btn-primary:hover {
        filter: brightness(1.05);
        transform: translateY(-1px);
    }

/* ---------- 文案色彩 ---------- */
.lead-text {
    color: var(--muted);
}

.policy-body p {
    color: var(--text);
}

.policy-body ul {
    margin-bottom: 0;
}

.bi {
    vertical-align: middle;
}

/* ---------- 手機間距 ---------- */
@media (max-width:575.98px) {
    .page-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .policy-card {
        padding: 18px;
    }
}

/* ---- White canvas override: 全白底 + 黑字 ---- */
.privacy-section.theme-pink.theme-white {
    /* 顏色 */
    --bg: #ffffff;
    --card-bg: #ffffff;
    --text: #111111; /* 黑字 */
    --muted: #555555; /* 次要文字 */
    --border: rgba(0,0,0,.08);
    /* 陰影稍微變中性灰 */
    --shadow-1: 0 6px 16px rgba(0,0,0,.06);
    --shadow-2: 0 10px 24px rgba(0,0,0,.08);
    /* 取消整頁的粉色漸層背景 */
    background: #ffffff !important;
}

/* 頁首也用純白，不要漸層 */
.theme-white .page-header-container {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border);
}

/* 任何使用淡粉底的元件，改成純白底（保留粉色描邊/icon） */
.theme-white .highlight-card,
.theme-white .info-card,
.theme-white .feature-box,
.theme-white .security-badge,
.theme-white .page-header-badge,
.theme-white .security-icon,
.theme-white .contact-icon,
.theme-white .cookie-icon.purpose,
.theme-white .cookie-icon.control {
    background: #ffffff !important;
}

/* 其他微調：快速導覽 hover 陰影用中性灰 */
.theme-white .quick-nav-item:hover {
    border-color: rgba(0,0,0,.10);
    box-shadow: var(--shadow-2);
}

/* 強制在深色模式下一樣維持白底黑字 */
@media (prefers-color-scheme: dark) {
    .privacy-section.theme-white {
        --bg: #ffffff;
        --card-bg: #ffffff;
        --text: #111111;
        --muted: #555555;
        --border: rgba(0,0,0,.12);
        background: #ffffff !important;
    }
}

/* =========================================================
   Open Data Statement – White Canvas + Pink Accent
   專用於 <section class="privacy theme-pink theme-white"> 這頁
   ========================================================= */

/* 基礎變數（白底黑字 + 粉色重點） */
.privacy {
    --text: #111111;
    --muted: #555555;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --primary: #E84E8E; /* 桃粉主色 */
    --primary-600: #D73E7F;
    --accent: #FFB3C9; /* 輔助漸層/hover */

    --border: rgba(0,0,0,.08);
    --radius: 16px;
    --shadow-1: 0 6px 16px rgba(0,0,0,.06);
    --shadow-2: 0 10px 24px rgba(0,0,0,.08);
}

/* 整體畫布：白底黑字 */
.privacy {
    background: #ffffff;
    color: var(--text);
    padding: 40px 0 80px;
}


    /* 主標題 */
    .privacy .h1 {
        max-width: 1060px;
        margin: 0 auto;
        font-weight: 800;
        font-size: clamp(28px, 3vw, 36px);
        line-height: 1.2;
        color: var(--text);
        position: relative;
        padding-left: 64px;
    }

        .privacy .h1::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 44px;
            height: 44px;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            opacity: .18;
            box-shadow: var(--shadow-1);
        }

        .privacy .h1::after {
            content: "";
            display: block;
            height: 3px;
            width: 100%;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            opacity: .6;
            border-radius: 2px;
            margin-top: 10px;
        }

    /* 區塊標題 */
    .privacy .h2 {
        font-weight: 800;
        font-size: clamp(20px, 2.2vw, 24px);
        line-height: 1.35;
        color: var(--text);
        margin: 26px 0 12px;
        position: relative;
        padding-left: 56px;
    }

        .privacy .h2::before {
            content: "";
            position: absolute;
            left: 0;
            top: 8px;
            width: 34px;
            height: 34px;
            border-radius: 12px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            opacity: .12;
            box-shadow: var(--shadow-1);
        }

        .privacy .h2::after {
            content: "";
            position: absolute;
            left: 56px;
            bottom: -6px;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            opacity: .35;
            border-radius: 2px;
        }

    /* 內文排版 */
    .privacy p {
        margin: 14px 0;
        line-height: 1.9;
        color: var(--text);
        letter-spacing: .02em;
        text-align: justify;
        text-justify: inter-ideograph;
    }

    /* 讓多餘的 <br> 不影響排版（可以之後慢慢刪） */
    .privacy br {
        display: none;
    }

/* 內容卡左右陰影擴散（大畫面更柔） */
@media (min-width: 992px) {
    .privacy .cont {
        padding: 34px 36px;
    }
}

/* 連結顏色（如未來有外部連結） */
.privacy a {
    color: var(--primary-600);
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .privacy a:hover {
        color: var(--primary);
    }

/* 可複用的小提示（若你需要） */
.privacy .note {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 179, 201, .12);
    border: 1px solid rgba(232, 78, 142, .25);
}

/* 手機優化 */
@media (max-width: 575.98px) {
    .privacy {
        padding: 24px 0 56px;
    }

        .privacy .cont {
            padding: 20px;
            border-radius: 14px;
        }

        .privacy .h1 {
            padding-left: 54px;
        }

            .privacy .h1::before {
                width: 38px;
                height: 38px;
                border-radius: 12px;
            }

        .privacy .h2 {
            padding-left: 48px;
        }

            .privacy .h2::before {
                width: 28px;
                height: 28px;
                border-radius: 10px;
                top: 6px;
            }
}
/* 保留 slick 的 flex 等高 */
.js-ranking .slick-track {
    display: flex !important;
}

.js-ranking .slick-slide {
    height: auto !important;
    display: flex;
}

/* 讓整個卡片填滿 */
.js-ranking .ranking-link {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 圖片區塊：自然高度 */
.js-ranking .ranking-img {
    flex-shrink: 0; /* 不要被壓縮 */
}

/* 文字區塊：撐滿剩餘空間，確保等高 */
.js-ranking .ranking-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.about {
    background: #fff;
}

    /* 標題稍小 */
    .about h1 {
        font-size: 1.5rem;
        border-left: 5px solid #e91e63;
        padding-left: 10px;
    }

    /* “About us” 副標題要小：你原本寫成 1.85rem 反而放大了 */
    .about .small {
        font-size: .85rem;
    }

    /* 關鍵：about-text 內所有元素都套用字級 */
    .about .about-text,
    .about .about-text * {
        font-size: .95rem !important; /* 依需要改小/大 */
        line-height: 1.7 !important;
        color: #333;
        font-family: "Noto Sans TC","微軟正黑體",sans-serif;
    }

    /* 圖片效果 */
    .about img {
        transition: transform .3s ease;
    }

        .about img:hover {
            transform: scale(1.05);
        }

/* 可選：手機再小一點 */
@media (max-width: 576px) {
    .about .about-text, .about .about-text * {
        font-size: .9rem !important;
    }

    .about h1 {
        font-size: 1.25rem;
    }
}
/* 倒數計時橫幅基礎樣式 */
.countdown-banner {
    background: linear-gradient(135deg, #FF4D7D 0%, #FF88A9 100%);
    padding: 1.5rem 1rem;
    margin: 0;
    box-shadow: 0 4px 15px rgba(255, 77, 125, 0.3);
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
    overflow: hidden;
    max-height: 75px;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease, margin 0.4s ease;
}

/* 隱藏狀態 */
.countdown-banner-hidden {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.countdown-content {
    color: white;
    transition: opacity 0.2s ease;
}

    .countdown-content:hover {
        opacity: 0.9;
    }

.countdown-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.countdown-content:hover .countdown-label {
    text-decoration: underline;
}

.countdown-timer {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

    .countdown-timer span {
        display: inline-block;
        background: rgba(255, 255, 255, 0.25);
        padding: 0.4rem 0.8rem;
        border-radius: 8px;
        font-weight: 700;
        min-width: 45px;
        text-align: center;
        transition: all 0.3s ease;
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

        .countdown-timer span:hover {
            background: rgba(255, 255, 255, 0.35);
            transform: scale(1.05);
            border-color: rgba(255, 255, 255, 0.5);
        }

.countdown-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
}

.countdown-nav-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .countdown-nav-btn:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.4);
        transform: scale(1.1);
        border-color: white;
    }

    .countdown-nav-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

.countdown-indicator {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}
/* 響應式調整 */
@media (max-width: 768px) {
    .countdown-banner {
        padding: 1rem 0.5rem;
        max-height: 250px;
    }

    .countdown-label {
        font-size: 1.2rem;
    }

    .countdown-timer {
        font-size: 1rem;
    }

        .countdown-timer span {
            padding: 0.3rem 0.5rem;
            font-size: 0.9rem;
            min-width: 35px;
        }

    .countdown-nav {
        position: static !important;
        justify-content: center;
        margin-top: 0.5rem;
        width: 100%;
    }

    .countdown-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .countdown-banner {
        max-height: 280px;
    }

    .countdown-timer {
        font-size: 0.9rem;
    }

        .countdown-timer span {
            margin: 0 0.1rem;
            padding: 0.2rem 0.4rem;
            min-width: 30px;
        }
}
