/* --- [A1] 佈局 --- */
body { background-color: #fcfaf5; overflow-x: hidden; }

.site-wrapper { 
    max-width: 1920px; 
    margin: 0 auto; 
    position: relative; 
    padding-top: 64px; 
}
@media (min-width: 768px) { .site-wrapper { padding-top: 80px; } }

#process .container, #products .container, #about .container {
    max-width: 1720px !important; 
    width: 92% !important;
    margin: 0 auto;
}


/* --- [A2] Header選單 --- */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-link-main { 
    color: #4a6258; 
    font-size: 16px; 
    font-weight: 700; 
    transition: all 0.3s ease; 
}
.nav-link-main:hover { color: #C4A35A !important; }

.holographic-icon-button, .lang-circle-pc {
    background: rgba(74, 98, 88, 0.05);
    border: 1px solid rgba(74, 98, 88, 0.1);
    border-radius: 999px;
    width: 42px !important; 
    height: 42px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.holographic-icon-button i, .lang-circle-pc span {
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}
.holographic-icon-button:hover i, .lang-circle-pc:hover span {
    transform: scale(1.3);
    color: #C4A35A !important;
}

#mobile-nav {
    position: fixed;
    top: 0;
    left: 0; 
    width: 300px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10001;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0,0,0,0.05);
}
#mobile-nav.active { transform: translateX(0); }

.menu-divider { border-bottom: 2px solid #4a6258; width: 100%; }

.mobile-icon-48 { width: 48px !important; height: 48px !important; }
.mobile-icon-48 i { font-size: 22px !important; }


/* --- [A3] Products商品 --- */
#product-slider { 
    display: flex; 
    gap: 1.5rem; 
    overflow-x: auto; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
#product-slider::-webkit-scrollbar { display: none; }
#products a { transition: all 0.5s ease; }
#products a:hover { transform: translateY(-10px); }
#products a:hover img { transform: scale(1.1); }
#products a img { transition: transform 0.7s ease; }


/* --- [A4] Reviews 跑馬燈 --- */

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.animate-marquee { display: flex; width: max-content; animation: marquee 100s linear infinite; }

@media (max-width: 767px) {
    #reviews .relative.group {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #reviews .relative.group::-webkit-scrollbar { display: none; }
}


/* --- [A5] FAQ --- */
.faq-item[data-state="open"] { border-left: 4px solid #C4A35A; background: rgba(0, 0, 0, 0.05); }
.faq-button i, .faq-button svg { transition: transform 0.4s ease !important; }
.faq-item[data-state="open"] i, .faq-item[data-state="open"] svg { 
    transform: rotate(45deg) !important; 
    color: #C4A35A !important; 
}
.faq-content { max-height: 0; opacity: 0; transition: all 0.4s ease; overflow: hidden; }
.faq-item[data-state="open"] .faq-content { max-height: 800px; opacity: 1; }


/* --- [A6] CTA 按鈕 --- */

@keyframes mega-glow {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(196, 163, 90, 0.4); 
        transform: scale(1); 
    }
    50% { 
        box-shadow: 0 0 40px rgba(196, 163, 90, 0.8), 0 0 15px rgba(255, 255, 255, 0.2); 
        transform: scale(1.03); 
    }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.animate-mega-glow {
    animation: mega-glow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.animate-mega-glow::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 4s infinite; 
}

.animate-mega-glow:hover {
    transform: scale(1.08) !important;
    background-color: #d4b36a !important; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.animate-mega-glow:hover i {
    animation: plane-wiggle 0.5s ease-in-out infinite;
}

@keyframes plane-wiggle {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(3px, -3px); }
}

/* --- [A7] Countdown Timer --- */
.timer-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(0, 0, 0, 0.4); 
    border: 1px solid rgba(196, 163, 90, 0.3); 
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #C4A35A; 
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .timer-box {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.75rem;
        border-radius: 12px;
    }
}

#timer-seconds {
    background: rgba(196, 163, 90, 0.2);
    border-color: #C4A35A;
    color: #ffffff; 
    box-shadow: 0 0 15px rgba(196, 163, 90, 0.4);
    animation: pulse-gold 1s infinite;
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 10px rgba(196, 163, 90, 0.3); }
    50% { box-shadow: 0 0 25px rgba(196, 163, 90, 0.7); }
}