
body {
    background-color: #fddb01;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.desktop {
    display:block;
}

.mid-arrow {
    text-align: center;
    margin-bottom: 30px;
}

.mobile {
    display:none;
}

#top-kv-d img {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: block;
}

#top-kv-m img {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: block;
}

#bottom-kv {
    background-color: #fedb00;
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  position: relative; /* 讓子元素可以絕對定位在裡面 */
  width: 100%; /* 確保容器佔滿瀏覽器寬度 */
  border-bottom: 8px solid #ed2134;
  /* padding-top: 61.25%;  <-- 根據你的圖片比例計算所得的高度 */
   /* height: 0; 覆蓋任何可能設定的高度 */
}

#bottom-kv > .bottom-content {
    width: 800px;
    margin:0 auto;
}

.top-content {
    width:100%;
    display: flex;
}

.amulet {
    margin-top:-43px;
}

.amulet img {
    width: 338px;
}

.top-title img {
    width: 337px;
}

.top-title {
    margin-top: 90px;
}

.top-detail {
    margin-top: 40px;
}



.main {
    color: #7d4c00;
    font-size: 23px;
    line-height: 29px;
    font-weight: bold;
    display: block;
    padding-bottom: 20px;
}

.detail {
    color:#000000;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    padding-top:20px;
    display:block;
}

.bottom-detail {
    display: flex;
    margin-top: -30px;
}


.gobtn {

    text-align: center;
}

.gobtn a img {
    width: 50%;
}

.tncbtn {
    width: 40%;
    margin-top:200px;
    text-align: right;
}

.tncbtn a img {
    width:215px;
}
.product {
    width: 60%;
    text-align: center;
}

.product img {
    width: 500px;
}

.tncbtn a:hover, .gobtn a:hover {
    opacity: .7;
}

.header {
    width: 100%;
    display: block;
    margin:0 auto;
    text-align: center;
    background-color: #fedb00;
    height: 100px;
    border-bottom: 8px solid #ed2134;
    padding-top: 15px;
    padding-bottom: 15px;
}

.header img {
    width:320px;
}
#form {
    position: relative; /* 確保遮罩定位在 section 內 */
}

/* 建立一個遮罩層 */
#form::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 黑色半透明，0.5 可調整深淺 */
    z-index: 999;
    pointer-events: all; /* 確保遮罩擋住點擊事件 */
}

.form-title {
    font-size: 40px;
    font-weight: bold;
}

.tnc-bg {
    width: 150px;
    background-color: #C09241;
    padding: 8px;
    border-radius: 50px;
    margin: 0 auto;
    margin-top: 5px;
    display: block;
}

.tnc-bg a {
    color: #fff;
    font-weight: 500;
    font-size: 17px;
    text-decoration: none;
}

.form-content {
    background-color: #f5e2b0;
    width: 100%;
    display: block;
    padding-top:60px;
    padding-bottom: 60px;
}

.top-product {
    margin: 0 auto;
    text-align: center;
    margin-bottom: 30px;
}

.top-product img {
    width:800px;
}

.form-detail {
    width: 600px;
    margin:0 auto;
}

        .step-section { padding-top: 15px; padding-left: 15px; padding-right:15px; border-radius: 8px; }
        .step-title { 
            color: #ed2034; 
            padding-bottom: 10px; 
            font-size: 20px;
            font-weight: bold;
        }
        .form-group { margin-bottom: 15px; }
        label { display: block; margin-bottom: 5px; font-weight: bold; }
        input[type="text"], input[type="email"], select, textarea { width: 100%; padding: 8px; box-sizing: border-box; }
        .checkbox-group label { display: inline-block; margin-right: 15px; font-weight: normal; padding-bottom: 15px;font-size: 20px;}
        button { background-color: #bf1b17; text-align: center; border-radius: 50px; width:100%; color: white; padding: 10px 20px; border: none; cursor: pointer; font-size: 20px; }
        button:hover { opacity: .7; }
        .required { color: red; }

        .submit-btn {
            width: 200px;
            margin:0 auto;
            display: block;
        }

        .checkbox-group {
            margin-top:10px;
        }


        .intro-title {
            font-size: 20px;
            color: #000000;
            font-weight: bold;
            padding-bottom: 20px;
        }

        .info {
            color: #000000;
            font-weight: normal;
        }

        .form-group {
            font-size: 18px;
            color:#000000;
            font-weight: bold;
            margin-bottom: 20px;
            margin-top:10px;
        }

        .form-group label {
            padding-bottom: 5px;
        }

        .tnc-detail {
            font-size: 16px;
            line-height: 20px;
            width: 800px;
            margin:0 auto;
            color:#000000;
            margin-top:40px;
        }

        ul.tnc-list {
            list-style:disc;
        }

        ul.tnc-list li {
            margin-bottom: 8px;
        }

        /* 長文字 Checkbox 專用排版 */
.terms-label {
    display: flex;          /* 開啟彈性排版 */
    align-items: flex-start;/*讓 Checkbox 對齊文字頂部 (如果想置中用 center) */
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 10px;
}

.terms-label input {
    flex-shrink: 0;        /* 鎖定 Checkbox 大小，確保不會變形 */
    margin-right: 10px;    /* Checkbox 同文字之間的距離 */
    margin-top: 0px;       /* 微調上下位置，視乎字體大小可能要改做 2px 或 -2px */
}

.terms-label span {
    line-height: 1.5;      /* 增加行距，讓文字比較好閱讀 */
    display: block;        /* 確保文字區塊正確顯示 */
}

     /* =========================================
   1. 共用設定 (Checkbox 同 Radio 都一樣嘅野)
   ========================================= */
input[type="checkbox"], 
input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    
    /* 大小與顏色設定 */
    background-color: #fff;   /* 白底 */
    margin: 0;
    width: 20px;              /* 寬度 (加大) */
    height: 20px;             /* 高度 (加大) */
    border: 2px solid #000;   /* 黑邊 */
    
    /* 排版設定 */
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 8px;
    position: relative;
    top: -2px;
}

/* 滑鼠指住時，邊框變橙色 (互動感) */
input[type="checkbox"]:hover,
input[type="radio"]:hover {
    border-color: #e65100;
}

/* =========================================
   2. Checkbox 專用設定 (方格 + 打剔)
   ========================================= */
input[type="checkbox"] {
    border-radius: 4px; /* 方格 (微圓角) */
}

/* Checkbox 裡面的「剔號」 */
input[type="checkbox"]::before {
    content: "";
    width: 12px;
    height: 6px;
    border-left: 3px solid #000;   /* 黑色線 */
    border-bottom: 3px solid #000; /* 黑色線 */
    transform: rotate(-45deg) scale(0); /* 預設隱藏 */
    transition: 120ms transform ease-in-out;
    position: relative;
    top: -2px;
}

/* 選中 Checkbox 時顯示剔號 */
input[type="checkbox"]:checked::before {
    transform: rotate(-45deg) scale(1);
}

/* =========================================
   3. Radio Button 專用設定 (圓形 + 黑點)
   ========================================= */
input[type="radio"] {
    border-radius: 50%; /* 圓形 */
}

/* Radio 裡面的「圓點」 */
input[type="radio"]::before {
    content: "";
    width: 12px;       /* 圓點大小 */
    height: 12px;
    border-radius: 50%;
    background-color: #000; /* 黑色圓點 */
    transform: scale(0);    /* 預設隱藏 */
    transition: 120ms transform ease-in-out;
}

/* 選中 Radio 時顯示圓點 */
input[type="radio"]:checked::before {
    transform: scale(1);
}

.thankyou-content {
    width: 800px;
    margin: 0 auto;
    margin-top:-160px;
}

.thankyou-title {
    text-align: center;
    color:#000000;
    font-size: 40px;
    font-weight: bold;
}

.join-title {
    text-align: center;
    color:#ed2034;
    font-size: 24px;
    line-height: 34px;
    font-weight: bold;
}

.facebook, .ig {
    text-align: center;
}

.facebook a img, .ig a img {
    width: 50%;
}

a.tnc-link {
    color:#0083d7;
    text-decoration: underline;
}

/* =========================================
   定義彈跳動畫 (Keyframes)
   模仿地心吸力：掂地(0) -> 彈高(-20px) -> 掂地(0) -> 細彈(-10px) -> 掂地(0)
   ========================================= */
   @keyframes bounceEffect {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0); /* 停在地面 */
    }
    40% {
        transform: translateY(-20px); /* 第一次彈跳最高點 (可自行調整高度) */
        animation-timing-function: ease-in; /* 跌落黎時加速 */
    }
    60% {
        transform: translateY(-10px); /* 第二次細跳 */
        animation-timing-function: ease-in; /* 跌落黎時加速 */
    }
}

/* =========================================
   應用落按鈕 Class
   ========================================= */
.bounce-btn {
    /* ⚠️ 重要：<a> tag 預設係 inline，要改成 inline-block 或 block 先可以做 transform 動畫 */
    
    /* 設定動畫 */
    animation-name: bounceEffect;    /* 指定用邊個動畫 */
    animation-duration: 2s;          /* 整個循環需時 2 秒 (太快會好煩，2秒比較舒服) */
    animation-iteration-count: infinite; /* 無限循環 */
    /* animation-timing-function: ease-out; 彈上去時減速 (已在 keyframes 微調，這裡可省略) */
}

/* (可選功能) 滑鼠指住時暫停動畫，方便用戶點擊 */
.bounce-btn:hover {
    animation-play-state: paused;
}

/* =========================================
   Scroll Fade 效果設定
   ========================================= */

/* 1. 初始狀態：透明 + 向下沉 30px */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    /* 使用 transition 而非 animation，因為由 JS 控制狀態切換更流暢 */
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform; /* 效能優化 */
}

/* 2. 顯示狀態：當 JS 加入 'show' class 後，變回實色 + 原位 */
.scroll-fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   延遲設定 (Optional) - 用黎做逐個彈出效果
   注意：這裡是 transition-delay
   ========================================= */
.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }
.delay-600 { transition-delay: 0.6s; }

/* --- 得獎名單區域 --- */
#winners {
    background-color: #FFDE00; /* 跟返原圖嘅黃色背景 */
    padding: 60px 20px;
    text-align: center;
    border-bottom: 10px solid #ed2134;
}

.winners-container {
    max-width: 1000px;
    margin: 0 auto;
}

.winners-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.winners-subtitle {
    font-size: 16px;
    line-height: 24px;
    color: #333;
    margin-bottom: 40px;
}

.winners-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.winners-col {
    flex: 1;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.winners-col table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.winners-col th {
    background-color: #E6353A; /* 跟返原圖嘅紅色標題 */
    color: #fff;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: normal;
}

.winners-col td {
    padding: 8px 20px;
    font-size: 14px;
    color: #333;
}

/* 姓名同電話號碼中間嘅分隔線 */
.winners-col th:first-child {
    border-right: 1px solid #EF8A8D; /* 淺紅色分隔線 */
    width: 50%;
}

.winners-col td:first-child {
    border-right: 1px solid #eaeaea; /* 淺灰色分隔線 */
    width: 50%;
}

/* 手機版 Responsive 設定 */
@media screen and (max-width: 768px) {
    #winners {
        padding: 40px 15px;
    }
    
    .winners-title {
        font-size: 28px;
    }

    .winners-grid {
        flex-direction: column; /* 手機版改為打直排 */
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .desktop {
        display:none;
    }

    .mid-arrow {
        margin-top:20px;
        margin-bottom: 20px;
    }

    .form-content {

        padding-top: 30px;
    }
    
    .mobile {
        display:block;
    }

    .tnc-detail {
        font-size: 14px;
        line-height: 18px;
        width: 90%;
        margin-top:20px;
    }

    .thankyou-content {
        width: 95%;
        margin: 0 auto;
        margin-top:-20px;
    }

    .facebook a img, .ig a img {
        width: 75%;
    }

    .thankyou-title {
        font-size: 30px;
    }

    .join-title {
        font-size: 16px;
    line-height: 22px;
    }

    .step-title {
        font-size: 18px;
        line-height: 24px;
    }

    .form-group {
        font-size: 16px;
    }

    .checkbox-group label {
        font-size: 16px;
        margin-right: 10px;
    }

    .top-product {
        margin-bottom: 20px;
    }

.form-detail {
    width: 95%;
}
.top-product img {
    width:100%;
}
.header {
    height: 75px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.header img {
    width: 60%;
}
    #bottom-kv > .bottom-content {
        width: 100%;
    }
    .amulet {
        margin-top: -33px;
        margin-left: -44px;
        width: 61%;
    }
    .top-title {
        margin-top: 45px;
        margin-left: -29px;
        width: 60%;
        padding-right: 13px;
    }
    .top-detail {
        margin-top: 20px;
    }
    .main {
        font-size: 18px;
        line-height: 26px;
        padding-bottom: 0;
    }
    .detail {
        font-size: 14px;
        line-height: 20px;
        padding-top: 15px;
    }

    .product img {
        width: 100%;
    }
    .tncbtn a img {
        width:90%;
    }
    .amulet img {
        width: 212px;
    }
    
    .top-title img {
        width: 91%;
    }
    .tncbtn {
        margin-top: 85px;
    }
  }

 

  @media (max-width: 430px) {
    .tncbtn {
        margin-top: 85px;
    }
    .tncbtn a img {
        width: 90%;
    }
   
  }
  

  @media (max-width: 414px) {

   
    .tncbtn {
        margin-top: 85px;
    }
    .tncbtn a img {
        width: 90%;
    }
  }

  @media (max-width: 390px) {

    .amulet {
        margin-top: -28px;
    }

    .tncbtn {
        margin-top: 85px;
    }
    .tncbtn a img {
        width: 90%;
    }

  }

  @media (max-width: 375px) {

   
    

  }

  