body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 保持淺橘色漸層背景 */
    background: radial-gradient(circle at 50% 50%, #fff7ed 0%, #ffedd5 var(--p1, 40%), #fff var(--p2, 70%));
    z-index: -1;
    animation: pulseGradient 15s ease-in-out infinite;
    opacity: 0.7;
}
@keyframes pulseGradient {
    0% { --p1: 40%; --p2: 70%; }
    50% { --p1: 50%; --p2: 80%; }
    100% { --p1: 40%; --p2: 70%; }
}
html {
    scroll-behavior: smooth;
}
.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.fade-in {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}
.fade-in.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

.badge { display: inline-block; padding: 0.375rem 0.75rem; border-radius: 9999px; background-color: #fff6f2; color: #BB5725; font-size: 0.75rem; font-weight: 500; }
/* .badge { display: inline-block; padding: 0.375rem 0.75rem; border-radius: 9999px; background-color: #fff6f2; color: #BB5725; font-size: 0.75rem; font-weight: 500; border: 1px solid #DFAD27; } */

.cta { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 9999px; background: #BB5725; color: #fff; font-weight: 600; box-shadow: 0 4px 6px -1px rgb(187 87 37 / 0.2), 0 2px 4px -2px rgb(187 87 37 / 0.2); transition: all 0.3s ease; }
.cta:hover { background: #964218; transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgb(187 87 37 / 0.2), 0 4px 6px -4px rgb(187 87 37 / 0.2); }
.cta:disabled { background-color: #cd7f55; opacity: 0.7; cursor: not-allowed; }

.cta-ghost { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; border-radius: 9999px; background: #fff; color: #BB5725; font-weight: 600; border: 1px solid #BB5725; transition: all 0.3s ease; }
.cta-ghost:hover { border: 1px solid #DFAD27; background: #fffbf0; transform: translateY(-2px); }


.info-card { background: #fff; border: 1px solid #f3f4f6; border-radius: 1.5rem; padding: 1.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.05); transition: all 0.3s ease-in-out; display: flex; flex-direction: column; height: 100%;}
.info-card:hover { 
    border-color: #DFAD27; 
    /* transform: translateY(-5px); box-shadow: 0 10px 30px rgba(187,87,37,0.1);  */ }
.card-title { margin: 0 0 0.5rem; font-size: 1.45rem; color: #1e293b; font-weight: 700; }
.card-text { margin: 0; color: #475569; line-height: 1.7; flex-grow: 1; }
.styled-list { margin: 0; padding-left: 1.25rem; color: #475569; list-style: none; }
.styled-list li { position: relative; padding-left: 0.5rem; margin: 0.5rem 0; }
.styled-list li::before { content: '✔'; position: absolute; left: -1.25rem; color: #DFAD27; }

.form-label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: #334155; }
.form-input { width: 100%; padding: 0.75rem 1rem; border: 1px solid #d1d5db; border-radius: 0.75rem; transition: border-color 0.2s, box-shadow 0.2s; }
.form-input:focus { border-color: #DFAD27; outline: none; box-shadow: 0 0 0 3px rgba(223, 173, 39, 0.3); }

.contact-item { display: flex; align-items: center; gap: 0.75rem; }
.contact-icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; color: #DFAD27; }

.link { color: #BB5725; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.link:hover { color: #964218; text-decoration: underline; }

.footer-link { color: #9ca3af; text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: #fff; }

.carousel-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; background-color: rgba(255,255,255,0.6); backdrop-filter: blur(4px); border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: #1e293b; cursor: pointer; border: none; transition: all 0.2s ease-in-out; opacity: 0; }
#hero-carousel:hover .carousel-nav-btn { opacity: 1; }
.carousel-nav-btn:hover { background-color: rgba(255,255,255,0.9); transform: translateY(-50%) scale(1.1); }
.carousel-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background-color: rgba(255, 255, 255, 0.5); border: 1px solid rgba(0,0,0,0.1); cursor: pointer; transition: all 0.3s ease; }
.carousel-dot.active { background-color: white; transform: scale(1.25); }


.hero-section { min-height: 80vh; display: flex; align-items: center; }

    
.bg-pattern {
    background-image: radial-gradient(#ccfbf1 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Custom Header Underline Animation */
.nav-link {
    position: relative;
    padding-bottom: 0.25rem;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #0d9488;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 100%;
}

.fade-in {
    opacity: 0; /* 確保元素初始狀態為隱藏 */
}


/* --- Global Container Override --- */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px !important;
    }
}


/* --- Animation - Btn Arrow --- */
@keyframes bounceX {
    0%, 100% { transform: translateY(-3px); }
    50% { transform: translateY(3px); }
}
.animate-bounce-x {
    animation: bounceX 1.6s infinite ease-in-out;
}

/* --- Animation - Btn Shine --- */
@keyframes shine {
    0% { transform: translateX(-150%) skewX(-20deg); }
    50%, 100% { transform: translateX(200%) skewX(-20deg); }
}
.animate-shine {
    animation: shine 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}


/* 隱藏照片軌道的預設滾動條以維護美觀 */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}


/* 獎金專屬動畫 1：淡入與初始放大進場 */
@keyframes prize-fade-in {
    0% { 
        opacity: 0; 
        transform: scale(0.8); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* 獎金專屬動畫 2：呼吸與發光 (無限循環) */
@keyframes prize-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 0px rgba(250, 204, 21, 0)); 
    }
    50% { 
        filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.6)); 
    }
}

.animate-prize-glow {
    display: inline-block; 
    /* 確保縮放是從字體的正中心開始 */
    transform-origin: center center; 
    /* 預設透明度為 0，交由進場動畫顯示 */
    opacity: 0; 
    
    /* 組合動畫：
        1. 執行 prize-fade-in 1秒 (forwards 讓它停留在 100% 狀態)
        2. 延遲 1秒後，開始執行 prize-glow 無限呼吸動畫 
    */
    animation: 
        prize-fade-in 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        prize-glow 1.5s ease-in-out 1s infinite;
}


/* 區塊全自動呼吸縮放動畫 (調快頻率) */
    @keyframes block-breathe {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.04); }
    }
    .animate-block-breathe {
        animation: block-breathe 1.5s infinite ease-in-out;
}
