@charset "UTF-8";
/* ==========================================================================
   真愛婚禮｜麗嗨媽媽禮服 數位博物館專用外掛 CSS
   設計執導：許總 
   優化規格：DBSYSTEM 輕量高階 RWD 架構
   ========================================================================== */

/* --- 1. 標頭 LOGO 文字與裝飾線動態特效 --- */

/* 文字容器：確保底下的線能以中間為基準向兩邊延展 */
.hsu-logo-text-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 保持文字與短線靠左對齊的專業感 */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Q彈跳動核心 */
}

/* 標題文字：滑鼠移入時微微放大並散發尊貴金黃色光暈 */
.hsu-logo-title {
    font-weight: 900;
    color: #2c3e50;
    font-size: 20px;
    display: block;
    white-space: nowrap;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* 初始裝飾線 */
.hsu-logo-bar {
    position: relative;
    width: 40px;
    height: 2px;
    background: #d35400;
    margin-top: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* 平滑延伸 */
}

/* === 滑鼠靠近 (Hover) 核心特效 === */

/* 1. 全體整齊向上 Q 彈跳動 */
a[title="回leehi首頁"]:hover .hsu-logo-text-box {
    transform: translateY(-3px) scale(1.02);
}

/* 2. 文字發光（溫潤高級的高光感） */
a[title="回leehi首頁"]:hover .hsu-logo-title {
    color: #d35400; /* 文字變深橘，與發光呼應 */
    text-shadow: 0 0 10px rgba(230, 126, 34, 0.6), 0 0 20px rgba(212, 175, 55, 0.4);
}

/* 3. 裝飾線像翅膀一樣向兩邊優雅延伸（長度從 40px 伸展到 112px，剛好襯托字寬） */
a[title="回leehi首頁"]:hover .hsu-logo-bar {
    width: 112px; /* 根據「LEEHI 真愛婚禮」的總寬度完美貼合 */
    background: #e67e22;
}

/* --- 2. 手機版 RWD 斷點微調 --- */
@media (max-width: 768px) {
    .hsu-logo-title {
        font-size: 16px !important;
    }
    a[title="回leehi首頁"]:hover .hsu-logo-bar {
        width: 90px; /* 手機版字體變小，線條延伸長度也跟著對應縮短 */
    }
}
/* --- 1. 全域變數與基礎設定 --- */
    :root {
        --brand-pink: #d6336c;
        --brand-gold: #d4af37;
        --text-color: #333;
        --card-bg: #ffffff;
    }

    body { 
        margin: 0; 
        font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif; 
        padding-top: 75px; 
        overflow-x: hidden; 
        background: #f4f7f6; 
        color: var(--text-color);
    }

    .container { max-width: 1400px; margin: 0 auto; padding: 20px; }

    /* --- 2. 導覽列與 LOGO 樣式 --- */
    .navbar {
        position: fixed; top: 0; left: 0; width: 100%; height: 75px;
        background: rgba(255, 255, 255, 0.98); box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: flex; justify-content: space-between; align-items: center;
        padding: 0 5%; z-index: 5000; box-sizing: border-box;
    }

    .logo-wrapper-table { width: auto; border-collapse: collapse; border: none; margin: 0; padding: 0; }
    .logo-wrapper-table td { text-align: left; vertical-align: middle; border: none; padding: 0; }

    .suit-logo-container {
        position: relative; width: 46px; height: 46px; border-radius: 50%;
        background: radial-gradient(circle, #e67e22, #d35400);
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
        display: flex; align-items: center; justify-content: center;
        transition: transform 0.3s ease; margin-right: 12px;
    }
    .suit-logo-container:hover { transform: scale(1.15); box-shadow: 0 0 15px rgba(255, 215, 0, 0.9); }
    
    .suit-ring-rotate {
        position: absolute; width: 100%; height: 100%;
        background: url('images/suit-ring-rotate.png') center/contain no-repeat;
        animation: rotate-360 6s linear infinite;
    }
    .suit-logo-container:hover .suit-ring-rotate { animation-duration: 0.8s; }
    .suit-core-static { position: absolute; width: 100%; height: 100%; background: url('images/suit-core-static.png') center/contain no-repeat; }

    @keyframes rotate-360 { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

    .hsu-logo-title { font-weight: 900; color: #2c3e50; font-size: 20px; display: block; white-space: nowrap; }
    .hsu-logo-bar { width: 40px; height: 2px; background: #d35400; margin-top: 4px; }

    /* 導覽菜單 */
    .nav-menu { display: flex; list-style: none; margin: 0; padding: 0; align-items: center; }
    .nav-menu li { position: relative; }
    .nav-menu li a { 
        padding: 25px 18px; text-decoration: none; color: #444; font-weight: 500; display: block; 
        transition: color 0.3s;
    }
    .nav-menu li a::after {
        content: ''; position: absolute; bottom: 15px; left: 50%; width: 0; height: 2px;
        background-color: var(--brand-pink); transition: all 0.3s ease; transform: translateX(-50%);
    }
    .nav-menu li:hover > a::after { width: 60%; }
    .nav-menu li:hover > a { color: var(--brand-pink); }

    /* 下拉選單 */
    .dropdown-content {
        visibility: hidden; opacity: 0; position: absolute; top: 110%; left: 0;
        background: #fff; min-width: 170px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-top: 3px solid var(--brand-pink); border-radius: 0 0 10px 10px;
        transition: all 0.4s ease; transform: translateY(15px); pointer-events: none;
    }
    .nav-menu li:hover .dropdown-content { visibility: visible; opacity: 1; top: 100%; transform: translateY(0); pointer-events: auto; }
    .dropdown-content a { 
        padding: 12px 20px !important; border-bottom: 1px solid #f5f5f5; font-size: 14px; color: #666 !important; 
        transition: background 0.3s, padding-left 0.3s !important;
    }
    .dropdown-content a:hover { background-color: #fffafb !important; padding-left: 25px !important; color: var(--brand-pink) !important; }

    #mobile-btn { background: none; border: none; color: var(--brand-pink); font-size: 32px; display: none; cursor: pointer; }

    /* --- 3. 大黃頁橫幅區 (Hero Section) --- */
    .hero {
        background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), 
                    url('https://www.leehi.tw/images/Mother/leehi-mother-in-law-dress-changhua-070.jpg') 
                    center/cover no-repeat fixed;
        color: #fff; text-align: center; padding: 198px 20px; margin-top: -75px;
    }
    .hero h1 { margin-bottom: 20px; font-size: 3rem; font-weight: bold; }
    .hero p { margin-bottom: 40px; font-size: 1.2rem; }
    
    .cta-btn { 
        display: inline-block; padding: 18px 50px; border-radius: 50px; color: #fff; text-decoration: none; 
        font-weight: bold; margin-top: 25px; font-size: 20px; animation: pulse 2s infinite; transition: 0.3s;
    }
    @keyframes pulse { 0% { transform: scale(1); } 70% { transform: scale(1.05); } 100% { transform: scale(1); } }
    .spring { background: linear-gradient(135deg, #ff9a9e, #fecfef); color: #333 !important; }
    .summer { background: linear-gradient(135deg, #2ae1e1, #1aa3a3); }
    .autumn { background: linear-gradient(135deg, #f97316, #b45309); }
    .winter { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

    /* --- 4. 五福臨門首頁推薦區塊 --- */
    .categories-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; padding: 20px 3% 50px; max-width: 1300px; margin: 0 auto; }
    .img-wrapper { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4.5; border: 3px solid transparent; transition: 0.4s; background: #eee; }
    .img-wrapper img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: 0.6s; }
    .category:hover .img-wrapper { transform: translateY(-10px); border-color: var(--brand-gold); box-shadow: 0 15px 30px rgba(214,51,108,0.4); }
    .overlay-text { position: absolute; bottom: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); color: #fff; padding: 20px 0; display: flex; flex-direction: column; align-items: center; transition: 0.4s; }

    /* --- 5. 核心 7 大功能導覽鈕群 --- */
    .flex-container {
        display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
        gap: 12px; margin: 30px auto 50px; width: 100%; max-width: 1200px;
    }
    .nav-btn {
        padding: 12px 24px; border-radius: 50px; border: 2px solid #ddd;
        background: #fff; color: #444 !important; font-weight: bold; font-size: 16px; cursor: pointer;
        display: inline-flex; align-items: center; justify-content: center;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05); white-space: nowrap;
    }
    .nav-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }

    /* 各功能鈕亮系配色控制 */
    .btn-latest { border-color: #ffbe0b; }
    .btn-mother { border-color: #ff006e; }
    .btn-wedding { border-color: #8338ec; }
    .btn-suit { border-color: #2a9d8f; }
    .btn-offer { border-color: #f97316; }
    .btn-boutique { border-color: #0ea5e9; }
    .btn-all { border-color: #495057; }

    /* 當前激活狀態的跳動樣式 */
    .btn-latest.active { background: #ffbe0b !important; color: #000000 !important; border-color: #d4a017; }
    .btn-mother.active { background: #ff006e !important; color: #ffffff !important; text-shadow: 1px 1px 2px #88003d; }
    .btn-wedding.active { background: #8338ec !important; color: #ffffff !important; text-shadow: 1px 1px 3px #3c1a6d; }
    .btn-suit.active { background: #2a9d8f !important; color: #000000 !important; }
    .btn-offer.active { background: #f97316 !important; color: #000000 !important; }
    .btn-boutique.active { background: #0ea5e9 !important; color: #ffffff !important; }
    .btn-all.active { background: #333333 !important; color: #ffffff !important; }

    .nav-btn.active { font-weight: 900 !important; transform: scale(1.1) translateY(-10px); box-shadow: 0 12px 25px rgba(0,0,0,0.25); z-index: 10; }

    /* --- 6. 典藏精品卡片網格系統 --- */
    .group-container { display: none; margin-bottom: 60px; }
    .group-header { border-left: 6px solid #10b981; padding: 15px; margin-bottom: 25px; background: #fff; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
    .group-header h2 { margin: 0; font-size: 1.5rem; }

    .leehi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

    .leehi-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: 0.3s; height: 100%; display: flex; flex-direction: column; position: relative; }
    .leehi-card:hover { transform: translateY(-8px); }
    
    .leehi-img-container { position: relative; padding-top: 130%; overflow: hidden; background: #eee; }
    .leehi-img-container img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
    .leehi-card:hover img { transform: scale(1.1); }

    .card-id { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.5); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 12px; z-index: 2; }
    
    /* 遮羞布動態 Sub-tag 核心設定 */
    .sub-tag {
        display: block !important; position: absolute !important; left: 15px !important; bottom: -50px !important;
        background-color: #ff006e !important; color: white !important; padding: 5px 14px !important;
        font-size: 13px !important; font-weight: 900 !important; border-radius: 4px !important;
        z-index: 99 !important; opacity: 0 !important;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
        box-shadow: 2px 5px 15px rgba(0,0,0,0.4) !important; pointer-events: none !important; white-space: nowrap !important;
    }
    .leehi-card:hover .sub-tag, .category:hover .sub-tag { bottom: 15px !important; opacity: 1 !important; visibility: visible !important; }

    /* 卡片下層文字與漸層遮罩結構 */
    .leehi-card::after {
        content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 35%;
        background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.8) 100%);
        z-index: 1; pointer-events: none; transition: height 0.3s ease;
    }
    .leehi-card:hover::after { height: 45%; }

    .leehi-info { padding: 15px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; position: relative; z-index: 2; }
    .leehi-info h3 { color: #ffffff !important; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); font-size: 1.1rem; margin: 0 0 12px; height: 42px; overflow: hidden; line-height: 1.4; display: flex; align-items: center; justify-content: center; }
    .btn-story { display: block; background: #10b981; color: #fff; text-decoration: none; padding: 8px; border-radius: 6px; font-size: 0.85rem; font-weight: bold; }

    /* --- 7. 好評跑馬燈與預約按鈕 --- */
    .testimonial-section { background: #fffafb; padding: 60px 0; overflow: hidden; }
    .testimonial-container { width: 100%; overflow: hidden; padding: 20px 0; position: relative; }
    .testimonial-track { display: flex; width: calc(330px * 14); animation: scrollReviews 30s linear infinite; }
    .review-card { width: 300px; flex-shrink: 0; background: #fff; padding: 25px; margin: 0 15px; border-radius: 20px; box-shadow: 0 8px 20px rgba(214, 51, 108, 0.08); text-align: left; transition: 0.3s; }
    .review-card.highlight { background: linear-gradient(135deg, #fff5f7, #ffffff); border: 1px solid #ff92ae; }
    .review-card p { color: #555; font-size: 15px; line-height: 1.6; margin-bottom: 15px; }
    .reviewer { color: var(--brand-pink); font-weight: bold; font-size: 14px; text-align: right; }
    .testimonial-container:hover .testimonial-track { animation-play-state: paused; }
    .review-card:hover { transform: translateY(-10px); box-shadow: 0 12px 30px rgba(214, 51, 108, 0.15); }

    @keyframes scrollReviews {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-330px * 7)); }
    }

    .btn-reserve {
        display: inline-block; padding: 18px 60px; border-radius: 50px;
        background: linear-gradient(135deg, #d6336c, #ff92ae); color: #fff !important;
        text-decoration: none; font-weight: bold; font-size: 20px;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 10px 25px rgba(214, 51, 108, 0.3);
    }
    .btn-reserve:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 35px rgba(214, 51, 108, 0.5); filter: brightness(1.1); }

    /* --- 8. 功能浮動按鈕群 --- */
    #back-to-top {
        position: fixed; bottom: 120px; right: 30px; width: 50px; height: 50px;
        background: var(--brand-pink); color: white; border-radius: 50%;
        display: none; align-items: center; justify-content: center;
        cursor: pointer; z-index: 999; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        font-size: 24px; font-weight: bold; transition: 0.3s;
    }
    #back-to-top:hover { background: #444; transform: translateY(-5px); }

    .floating-buttons { position: fixed !important; bottom: 30px !important; right: 20px !important; z-index: 99999 !important; display: flex !important; flex-direction: column !important; align-items: center !important; gap: 12px !important; }
    .btn-main { background: var(--brand-pink) !important; color: #fff !important; width: 65px !important; height: 65px !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; box-shadow: 0 5px 15px rgba(214, 51, 108, 0.4) !important; text-decoration: none !important; font-size: 14px; text-align: center; font-weight: bold; }
    .sub-buttons { display: none; flex-direction: column !important; gap: 12px !important; margin-bottom: 10px !important; }
    .sub-buttons.active { display: flex !important; }
    .sub-btn { width: 55px !important; height: 55px !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; color: #fff !important; font-size: 16px; font-weight: bold; box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important; transition: 0.3s !important; text-decoration: none; }
    .btn-fb { background-color: #1877f2 !important; }
    .btn-line { background-color: #06c755 !important; }
    .btn-phone { background-color: #e53935 !important; }

    /* --- 9. Lightbox 自製媒體遙控器 --- */
    #leehi-player-switch {
        position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
        z-index: 2147483647 !important; background: #000; border: 2px solid #ff006e;
        border-radius: 50px; padding: 8px 20px; display: none; align-items: center; gap: 15px; box-shadow: 0 0 20px #ff006e;
    }
    #leehi-play-icon { color: #fff; font-size: 24px; cursor: pointer; user-select: none; }
    #leehi-play-icon:hover { color: #ffbe0b; }
    .leehi-bar-bg { width: 100px; height: 4px; background: #333; border-radius: 2px; }
    #leehi-bar-fill { width: 0%; height: 100%; background: #ff006e; }

    footer { background: #222; color: #ccc; padding: 40px 20px; text-align: center; margin-top: 50px; }
    footer ul { list-style: none; padding: 0; display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; }
    footer ul li a { color: #bbb; text-decoration: none; font-size: 14px; }
    footer p { margin: 5px 0; font-size: 14px; opacity: 0.8; }

    /* --- 10. 全方位頂級響應式變更 (RWD 強力修復) --- */
    @media screen and (max-width: 1100px) { .leehi-grid { grid-template-columns: repeat(3, 1fr); } .categories-grid { grid-template-columns: repeat(3, 1fr); } }
    
    @media screen and (max-width: 768px) {
        .navbar { height: 65px; }
        #mobile-btn { display: block; }
        .nav-menu { display: none; flex-direction: column; position: absolute; top: 65px; left: 0; width: 100%; background: #fff; padding: 0; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
        .nav-menu.active { display: flex !important; }
        .nav-menu li { width: 100%; }
        .nav-menu li a { padding: 15px 25px; border-bottom: 1px solid #f0f0f0; }
        
        .dropdown-content { position: static !important; display: block !important; visibility: visible !important; opacity: 1 !important; box-shadow: none !important; border-top: none; background: #fafafa; }
        .dropdown-content a { color: var(--brand-pink) !important; padding-left: 40px !important; font-size: 16px !important; }

        .hero { padding: 120px 20px; }
        .hero h1 { font-size: 2rem; }
        
        .categories-grid { grid-template-columns: 1fr !important; gap: 20px; padding: 15px 5%; }
        .leehi-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

        .flex-container { gap: 8px; padding: 0 10px; margin-bottom: 30px; }
        .nav-btn { padding: 10px 18px; font-size: 14px; }
        .nav-btn.active { transform: scale(1.05) translateY(-5px); }
    }

    @media screen and (max-width: 500px) {
        .leehi-grid { grid-template-columns: 1fr; }
        .floating-buttons { bottom: 20px !important; right: 15px !important; }
    }/* --- 標題文字與裝飾線互動特效優化 --- */

/* 文字容器：確保底下的線能以中間為基準向兩邊延展 */
.hsu-logo-text-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 保持文字與短線靠左對齊的專業感 */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Q彈跳動核心 */
}

/* 標題文字：滑鼠移入時微微放大並散發尊貴金黃色光暈 */
.hsu-logo-title {
    font-weight: 900;
    color: #2c3e50;
    font-size: 20px;
    display: block;
    white-space: nowrap;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* 初始裝飾線：改用 pseudo-element（偽元素）來實作絕對置中的兩邊延伸效果 */
.hsu-logo-bar {
    position: relative;
    width: 40px;
    height: 2px;
    background: #d35400;
    margin-top: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* 平滑延伸 */
}

/* 建立一個隱藏的觸發機制，讓線的延伸從原本的起點擴展 */
.hsu-logo-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: #e67e22; /* 延伸時呈現更亮眼的橘色 */
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === 滑鼠靠近 (Hover) 核心特效 === */

/* 1. 全體整齊向上 Q 彈跳動 */
a[title="回leehi首頁"]:hover .hsu-logo-text-box {
    transform: translateY(-3px) scale(1.02);
}

/* 2. 文字發光（溫潤高級的高光感） */
a[title="回leehi首頁"]:hover .hsu-logo-title {
    color: #d35400; /* 文字變深橘，與發光呼應 */
    text-shadow: 0 0 10px rgba(230, 126, 34, 0.6), 0 0 20px rgba(212, 175, 55, 0.4);
}

/* 3. 裝飾線像翅膀一樣向兩邊優雅延伸（長度從 40px 伸展到 110px，剛好襯托字寬） */
a[title="回leehi首頁"]:hover .hsu-logo-bar {
    width: 112px; /* 根據「LEEHI 真愛婚禮」的總寬度完美貼合 */
    background: #e67e22;
}

/* 手機版 RWD 微調：確保小螢幕上的跳動幅度縮小，不擋到漢堡選單 */
@media (max-width: 768px) {
    .hsu-logo-title {
        font-size: 16px !important;
    }
    a[title="回leehi首頁"]:hover .hsu-logo-bar {
        width: 90px; /* 手機版字體變小，線條延伸長度也跟著對應縮短 */
    }
}
