/* ==========================================================================
   1. 🛠️ 本地字體庫安全引入宣告 (Custom Local Fonts)
   ========================================================================== */
@font-face {
    font-family: 'Noto Sans HK Custom';
    src: url('fonts/noto-sans-hk-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto Custom';
    src: url('fonts/roboto-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* ==========================================================================
   2. 現代時尚多色彩變數配置 (Modern Vibrant Palette)
   ========================================================================== */
:root {
    --primary-color: #0196F2;       /* 核心專業藍 1, 150, 242 */
    --accent-color: #F5FC10;        /* 活力太陽黃 (點綴) 245, 252, 16 */
    --vibrant-pink: #FF3366;        /* 時尚珊瑚粉 (派對活潑感) */
    --vibrant-purple: #7000FF;      /* 幻彩夜光紫 (時尚感) */
    --text-main: #1E293B;           /* 高級商務深灰 */
    --text-muted: #64748B;          /* 優雅次要文字色 */
    --bg-light: #F8FAFC;            /* 高質感淡藍灰底色 */
    --bg-white: #FFFFFF;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 💡 智慧修復：補全原本缺少的影片上方高級半透明黑遮罩變數，確保大文字一秒清晰 */
    --dark-overlay: rgba(15, 23, 42, 0.55); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* 預設使用 Noto Sans HK Custom 中文字體，英數自動微調 fallback */
    font-family: 'Noto Sans HK Custom', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    color: var(--text-main);
    background-color: var(--bg-white);
    overflow-x: hidden;
    line-height: 1.65;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    /* 強制指定中文使用 Noto Sans HK 粗體 */
    font-family: 'Noto Sans HK Custom', sans-serif;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--vibrant-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
}

.section-header h2::after {
    content: '';
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

/* ==========================================================================
   3. 高級磨砂導航欄與手機版漢堡按鈕 (RWD Navbar)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2001;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* 增強 Safari 磨砂玻璃相容性 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.nav-logo .logo-text {
    /* Logo 英文混合數字強制使用新引入的 Roboto Custom 粗體 */
    font-family: 'Roboto Custom', sans-serif;
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--vibrant-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-toggle {
    display: none;
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 15px;
    transition: color 0.25s ease;
    padding: 6px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.25s var(--transition-smooth);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.lang-btn {
    font-family: 'Roboto Custom', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--vibrant-purple));
    color: #fff;
    border: none;
    padding: 8px 18px;
    font-weight: 800;
    font-size: 13px;
    border-radius: 30px;
    cursor: pointer;
}
/* ==========================================================================
   4. 首頁全屏幕滿版影片區塊 (Hero Section Screen 100vh)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.video-container video {
    width: 100%; height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, var(--dark-overlay), rgba(15, 23, 42, 0.65));
}

.hero-content {
    max-width: 850px;
    padding: 0 24px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.hero-content p {
    font-size: 21px;
    margin-bottom: 40px;
    color: #f1f5f9;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.btn-primary {
    display: inline-block;
    padding: 15px 38px;
    background-color: transparent;
    color: #ffffff;
    font-weight: 800;
    font-size: 17px;
    text-decoration: none;
    border-radius: 40px;
    box-shadow: 0 2px 25px rgba(255, 255, 2552, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    transition: transform 0.25s var(--transition-smooth), box-shadow 0.25s var(--transition-smooth);
}
@media (max-width: 768px) {

.btn-primary {
    box-shadow: 0 0 30px rgba(255, 255, 255, 1);
}
}
/* ==========================================================================
   5. 關於我們與 20年經驗巨型勳章設計 (About Section Style)
   ========================================================================== */
.about-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.about-text {
    flex: 1 1 calc(50% - 20px);
    min-width: 300px;
}

.about-image {
    flex: 1 1 calc(50% - 20px);
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 15px;
    text-align: justify;
}

.lead-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

body.lang-zh .lang-text-en,
body.lang-en .lang-text-zh {
    display: none;
}
body.lang-zh .lang-text-zh,
body.lang-en .lang-text-en {
    display: block;
}

.badge-box {
    width: 85%;
    max-width: 380px;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    box-shadow: 0 15px 35px rgba(1, 150, 242, 0.2);
    text-align: center;
    padding: 0 0 40px 0;
}

.badge-circle {
    width: 140px;
    height: 140px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(245, 252, 16, 0.35);
    border: 5px solid var(--bg-white);
}

.badge-number { 
    font-family: 'Roboto Custom', sans-serif;
    font-size: 42px; 
    font-weight: 900; 
    line-height: 1; 
}
.badge-unit { 
    font-family: 'Noto Sans HK Custom', sans-serif;
    font-size: 13px; 
    font-weight: 800; 
    margin-top: 3px; 
}
.badge-subtext { 
    font-family: 'Noto Sans HK Custom', sans-serif;
    font-size: 16px; 
    color: #FF3366; 
    margin-top: 8px; 
    letter-spacing: 1px; 
}

/* ==========================================================================
   6. 多元色彩服務介紹樣式 (Vibrant & Professional Services)
   ========================================================================== */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.service-card {
    background-color: var(--bg-white);
    flex: 1 1 calc(33.333% - 20px);
    min-width: 300px;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: transform 0.35s var(--transition-smooth), box-shadow 0.35s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--vibrant-pink), var(--vibrant-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(1, 150, 242, 0.08);
}

.service-card:hover::before { opacity: 1; }

.service-card:nth-child(1) .service-icon { color: var(--primary-color); }
.service-card:nth-child(2) .service-icon { color: var(--vibrant-pink); }
.service-card:nth-child(3) .service-icon { color: var(--vibrant-purple); }
.service-card:nth-child(4) .service-icon { color: #00C853; } 
.service-card:nth-child(5) .service-icon { color: #FF6D00; } 
.service-card:nth-child(6) .service-icon { color: #00B0FF; } 

.service-icon { font-size: 42px; margin-bottom: 25px; transition: transform 0.3s ease; display: inline-block; }
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); }

.service-card h3 { 
    font-family: 'Noto Sans HK Custom', sans-serif;
    font-size: 22px; 
    margin-bottom: 12px; 
    color: #222; 
    font-weight: 800; 
}
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ==========================================================================
   7. 精彩相簿與極光多色彩漸變遮罩 (Gallery Grid Layout)
   ========================================================================== */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    font-family: 'Noto Sans HK Custom', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-muted);
    border: none;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(1, 150, 242, 0.25);
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    height: 240px;
    flex: 1 1 calc(25% - 18px);
    min-width: 260px;
    transition: transform 0.3s var(--transition-smooth);
}

.gallery-item a { display: block; width: 100%; height: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--transition-smooth); }

.item-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(1, 150, 242, 0.9), rgba(112, 0, 255, 0.45));
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}

.album-tag {
    font-family: 'Noto Sans HK Custom', sans-serif;
    background-color: var(--accent-color);
    color: var(--text-main);
    padding: 8px 22px;
    font-weight: 800;
    border-radius: 30px;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(245, 252, 16, 0.4);
    transform: translateY(20px);
    transition: transform 0.3s var(--transition-smooth);
}

.gallery-item:hover { transform: translateY(-4px); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .item-overlay { opacity: 1; }
.gallery-item:hover .album-tag { transform: translateY(0); }
/* ==========================================================================
   8. 沉浸式彈窗燈箱與 16:9 影片網格 (Lightbox & Video)
   ========================================================================== */
.lightbox-modal {
    display: none; 
    position: fixed;
    z-index: 2004;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.98);
    justify-content: center; align-items: center;
}

.lightbox-content-wrapper { 
    max-width: 85%; 
    max-height: 80%; 
    text-align: center; 
}
.lightbox-img { 
    max-width: 100%; 
    max-height: 72vh; 
    border-radius: 12px; 
    animation: zoomIn 0.3s ease; 
}
.lightbox-caption { 
    font-family: 'Noto Sans HK Custom', sans-serif;
    color: #fff; 
    margin-top: 18px; 
    font-size: 16px; 
    font-weight: 600; 
}
.lightbox-close { position: absolute; top: 25px; right: 35px; color: #fff; font-size: 42px; cursor: pointer; }
.lightbox-close:hover { color: var(--accent-color); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.08); border: none; color: white; padding: 16px; font-size: 24px; cursor: pointer; border-radius: 50%; }
.prev-btn { left: 30px; }
.next-btn { right: 30px; }

@keyframes zoomIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.video-grid { display: flex; flex-wrap: wrap; gap: 30px; width: 100%; }
.video-card { background: var(--bg-white); flex: 1 1 calc(50% - 15px); min-width: 350px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.02); }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; background: #000; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-info { 
    font-family: 'Noto Sans HK Custom', sans-serif;
    padding: 20px; font-weight: 800; color: var(--text-main); 
}

/* ==========================================================================
   9. 親民極簡高安全表單與頁腳 (Contact & Footer Style)
   ========================================================================== */
.contact-grid { display: flex; flex-wrap: wrap; gap: 50px; width: 100%; align-items: start; }
.contact-info-box { flex: 1 1 calc(45% - 25px); min-width: 300px; padding-right: 20px; }
.info-items { display: flex; flex-direction: column; gap: 25px; margin: 35px 0; }
.info-item { display: flex; align-items: flex-start; gap: 15px; }
.info-icon { font-size: 20px; color: var(--primary-color); background-color: rgba(1, 150, 242, 0.08); width: 44px; height: 44px; border-radius: 50%; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.info-text h4 { 
    font-family: 'Noto Sans HK Custom', sans-serif;
    font-size: 16px; color: var(--text-main); margin-bottom: 4px; 
}
.info-text p, .info-text a { font-size: 15px; color: var(--text-muted); text-decoration: none; }
.info-text a:hover { color: var(--primary-color); }
.social-connect { margin-top: 30px; }
.social-connect h4 { font-family: 'Noto Sans HK Custom', sans-serif; font-size: 16px; margin-bottom: 15px; font-weight: 700; }
.social-links { display: flex; gap: 14px; }
.social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-size: 20px; text-decoration: none; transition: transform 0.25s ease; }
.social-icon:hover { transform: scale(1.1); }
.social-icon.fb { background-color: #1877F2; }
.social-icon.ig { background-color: #E1306C; }

.contact-form-box { background-color: var(--bg-white); flex: 1 1 calc(55% - 25px); min-width: 350px; padding: 45px; border-radius: 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04); border: 1px solid rgba(0,0,0,0.02); }

/* 💡 將聯絡表單內的提示文字 (Placeholder) 改為較淺的灰色 */
.contact-form-box input::placeholder,
.contact-form-box textarea::placeholder {
    color: #b0b0b0 !important; /* 您可以微調這個顏色：#bbb 更淺，#999 稍深 */
    opacity: 1; /* 確保在 Firefox 瀏覽器上也能正常顯示正確的淺度 */
}

/* 為了完美相容舊版與各家瀏覽器 (如 Safari, Chrome, Edge) 的寫法 */
.contact-form-box input::-webkit-input-placeholder,
.contact-form-box textarea::-webkit-input-placeholder {
    color: #b0b0b0 !important;
}

.contact-form-box input::-moz-placeholder,
.contact-form-box textarea::-moz-placeholder {
    color: #b0b0b0 !important;
    opacity: 1;
}

.contact-form-box input:-ms-input-placeholder,
.contact-form-box textarea:-ms-input-placeholder {
    color: #b0b0b0 !important;
}


.form-group label { 
    font-family: 'Noto Sans HK Custom', sans-serif;
    font-size: 14px; font-weight: 700; color: var(--text-main); 
}
.form-group input, .form-group textarea { width: 100%; padding: 14px 18px; background-color: var(--bg-light); border: 1px solid transparent; border-radius: 12px; font-size: 15px; color: var(--text-main); outline: none; transition: all 0.25s ease; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus { background-color: var(--bg-white); border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(1, 150, 242, 0.12); }

/* 💡 表單提交按鈕基礎設定 */
.btn-submit { 
    font-family: 'Noto Sans HK Custom', sans-serif;
    width: 100%; 
    padding: 16px; 
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--vibrant-purple) 100%); 
    color: white; 
    border: none; 
    font-size: 16px; 
    font-weight: 800; 
    border-radius: 12px; 
    cursor: pointer; 
    box-shadow: 0 4px 15px rgba(1, 150, 242, 0.2); /* 預設柔和陰影 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

/* 💡 修正 mouseover 特效：整個按鈕與字體四面八方均勻著燈（將 Y 軸偏移歸零） */
.btn-submit:hover { 
    transform: translateY(-2px); 
    /* 均勻散發出招牌藍色 rgb(1, 150, 242) 的強烈光暈 */
    box-shadow: 0 0 25px rgba(1, 150, 242, 0.85) !important; 
    /* 讓按鈕內的文字本身也同步產生黃色 #F5FC10 的霓虹發光感，亮燈感極強 */
    text-shadow: 0 0 8px rgba(245, 252, 16, 0.8) !important; 
}

.btn-submit .btn-loading { display: none; margin-left: 8px; }
.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loading { display: inline-block; }
.btn-submit.loading { pointer-events: none; opacity: 0.8; }

.form-response { 
    font-family: 'Noto Sans HK Custom', sans-serif;
    padding: 14px; border-radius: 10px; font-size: 14px; font-weight: 700; margin-bottom: 24px; display: none; 
}
.form-response.success { background-color: #e6f4ea; color: #137333; display: block; }
.form-response.error { background-color: #fce8e6; color: #c5221f; display: block; }

.site-footer { background-color: #0F172A; color: #94A3B8; padding: 70px 0 35px 0; font-size: 14px; border-top: 6px solid var(--primary-color); }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 45px; gap: 30px; }
.footer-brand h3 { 
    font-family: 'Roboto Custom', sans-serif;
    color: #ffffff; font-size: 26px; margin-bottom: 12px; font-weight: 900; 
}
.footer-brand p { max-width: 400px; line-height: 1.6; }
.footer-links ul { list-style: none; display: flex; gap: 24px; padding: 0; }
.footer-links a { 
    font-family: 'Noto Sans HK Custom', sans-serif;
    color: #94A3B8; text-decoration: none; font-weight: 700; transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--accent-color); }
.footer-bottom { 
    font-family: 'Roboto Custom', sans-serif;
    border-top: 1px solid #1E293B; padding-top: 35px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; 
}
.developer-credit a { color: #ffffff; text-decoration: none; font-weight: 700; }
.developer-credit a:hover { color: var(--primary-color); text-decoration: underline; }
/* ===== 🟢 WhatsApp 圓形懸浮球帶雙重脈衝特效 ===== */
.wa-float {
    position: fixed; 
    right: 22px; 
    bottom: 22px; 
    z-index: 1200; 
    width: 60px; 
    height: 60px; 
    border-radius: 50%;
    background: #25D366; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(37,211,102,.5); 
    transition: transform 0.25s var(--transition-smooth);
}
.wa-float::after { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    border-radius: 50%; 
    box-shadow: 0 0 0 0 rgba(37,211,102,.5); 
    animation: wa-pulse 2.2s infinite; 
}
.wa-float:hover { transform: scale(1.08); }

@keyframes wa-pulse { 
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 
    70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } 
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } 
}

/* ==========================================================================
   10. ⚙️ 全新行動端優化與漢堡按鈕喚醒規則 (RWD Final Core)
   ========================================================================== */
@media (max-width: 996px) {
    .nav-toggle { display: flex !important; }

    .nav-menu {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column; padding: 35px 24px; gap: 22px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.06);
        border-top: 1px solid rgba(0,0,0,0.04);
        transform: translateY(-12px);
        opacity: 0; pointer-events: none;
        transition: all 0.3s var(--transition-smooth);
    }

    .nav-menu.active {
        display: flex !important;
        transform: translateY(0);
        opacity: 1; pointer-events: auto;
    }

    .nav-link::after { display: none; }
    
    .hero-section { height: 100vh; }
    .hero-content h1 { font-size: 31px; }
    .hero-content p { font-size: 13px; }

    /* 手機端分類標籤橫向無縫滾動滑動 */
    .filter-container {
        justify-content: flex-start;
        overflow-x: auto; 
        white-space: nowrap;
        padding-bottom: 12px;
        margin-bottom: 30px;
        -webkit-overflow-scrolling: touch; /* 優化 iOS 流暢阻尼感 */
    }
    
    .about-wrapper { flex-direction: column; gap: 35px; }
    .about-text, .about-image { flex: 1 1 100%; }
    .badge-box { width: 100%; max-width: 100%; height: auto; }
    
    .services-grid .service-card { flex: 1 1 100%; }
    .gallery-grid .gallery-item { flex: 1 1 100%; }
    .video-grid .video-card { flex: 1 1 100%; }
    
    .contact-grid { flex-direction: column; gap: 40px; }
    .contact-grid .contact-info-box, .contact-grid .contact-form-box { flex: 1 1 100%; }
    .contact-form-box { padding: 30px 20px; }
    
    .footer-content { flex-direction: column; text-align: center; align-items: center; gap: 35px; }
    .footer-links ul { flex-direction: column; gap: 14px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 18px; }
}

/* ==========================================================================
   🖼️ 局部追加樣式：大尺寸 Logo 與導航欄指向精準修正 (Scroll Offset Refinement)
   ========================================================================== */

/* 1. 核心尺寸調整：強行放大商標圖片 */
.nav-logo .logo-text img {
    height: 108px !important;    /* 💡 電腦版放大至 108 像素 */
    width: auto !important;     /* 等比例自動計算寬度，防止拉伸變形 */
    max-width: 320px !important;
    object-fit: contain !important;
    transition: transform 0.25s ease;
}

/* 2. 為了配合加高後的 Logo，微調全域 body 的頂部預留高度 */
body {
    padding-top: 130px !important; /* 💡 電腦版安全鎖定：防止內容被導航欄遮擋 */
}

/* 3. 抵消 Hero Section 的負外邊距，維持 100vh 整個 Screen 滿版 */
.hero-section {
    margin-top: -130px !important;
    height: 100vh !important;
}

/* 4. 🚀 核心大絕招：全網頁錨點指向精準修正 (點擊選單跳轉自動提早停下，絕不擋字) */
section, 
header,
#home,
#about,
#services,
#albums,
#videos,
#contact {
    scroll-margin-top: 135px !important; 
}

/* ==========================================================================
   📱 移動端手機版 大尺寸 Logo 響應式安全適配規則
   ========================================================================== */
@media (max-width: 768px) {
    /* 手機版商標高度控制 */
    .nav-logo .logo-text img {
        height: 88px !important; /* 💡 手機版調整至 88 像素 */
        max-width: 240px !important;
    }
    
    /* 手機版 body 頂部空間安全鎖定 */
    body {
        padding-top: 120px !important; 
    }
    
    .hero-section {
        margin-top: -120px !important;
        height: 100vh !important; /* 保持手機端完美的 100vh 全螢幕滿版 */
    }

    /* 手機版點擊選單跳轉時，提早 125 像素停下 */
    section, 
    header,
    #home,
    #about,
    #services,
    #albums,
    #videos,
    #contact {
        scroll-margin-top: 125px !important; 
    }
}
/* ==========================================================================
   🖼️ 智慧精選去重控制系統 (Double-Layer Gallery Active Control)
   ========================================================================== */

/* 💡 預設或點選「精選相片」狀態下 (即 .filter-btn active 綁定在 data-filter="*") 
   所有 data-featured="false" 的非精選相片一律完美隱藏，不保留任何網格網格排版空間 */
.gallery-grid:not(.filter-active-mode) .gallery-item[data-featured="false"] {
    display: none !important;
    opacity: 0;
    transform: scale(0.8);
}

/* 為了讓動畫更細緻，設定 gallery-item 的核心過渡時間 */
.gallery-item {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 手機端橫向無縫滑動分類標籤條：隱藏預設的捲動條滾輪，維持極致簡潔 UI */
@media (max-width: 996px) {
    .filter-container::-webkit-scrollbar {
        display: none;
    }
}
/* ==========================================================================
   📱 終極還原：回歸最穩定之手機版分類標籤自然折行平鋪規則 (RWD Normal Wrap)
   ========================================================================== */
@media (max-width: 996px) {
    /* 💡 強制還原容器：允許按鈕在手機上塞滿時自然換行 (flex-wrap: wrap) */
    html body .filter-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;      /* 核心關鍵：按鈕過多時自動往下一行平鋪 */
        justify-content: center !important; /* 手機版按鈕群置中對齊，維持視覺美感 */
        gap: 10px !important;            /* 統一按鈕與按鈕之間的上下左右間距 */
        padding: 0 15px !important;
        margin: 0 0 30px 0 !important;   /* 留出下方 30px 緩衝安全距離，絕不遮擋相片 */
        overflow-x: visible !important;  /* 關閉所有橫向捲軸 */
        white-space: normal !important;  /* 允許文字與按鈕自然折行 */
        width: 100% !important;
    }

    /* 手機版按鈕膠囊本體樣式回歸 */
    html body .filter-container .filter-btn {
        display: inline-block !important;
        flex-shrink: 1 !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
        margin: 0 !important;            /* 移除舊右邊距，改由全域 gap 統一控制 */
    }
}

/* ==========================================================================
   🎬 影片橫向輪播專屬現代排版系統 (Video Carousel Slider Layout)
   ========================================================================== */

/* 1. 輪播區域的相對定位外殼（用來定位左右按鈕） */
.video-carousel-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* 2. 重構影片網格：強行解除 Flex 換行，改為單行橫向無縫軌道 */
#videoGrid.video-grid {
    display: flex !important;
    flex-wrap: nowrap !important; /* 絕對不換行 */
    flex-direction: row !important;
    gap: 24px !important; /* 統一卡片間距 */
    width: 100% !important;
    overflow-x: auto !important; /* 啟用原生橫向滾動 */
    scroll-behavior: smooth !important; /* 啟用平滑滾動過渡 */
    scroll-snap-type: x mandatory !important; /* 磁性吸附對齊，提升手機滑動體驗 */
    padding: 15px 5px !important;
    margin: 0 !important;
    /* 隱藏預設捲動條（滾輪） */
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}

/* 隱藏預設捲動條（Chrome/Safari） */
#videoGrid.video-grid::-webkit-scrollbar {
    display: none !important;
}

/* 3. 重構影片卡片尺寸：電腦端預設一排精準呈現 3 欄 */
#videoGrid .video-card {
    flex: 0 0 calc(33.333% - 16px) !important; /* 鎖定寬度，不准被 flex 壓縮或拉伸 */
    min-width: calc(33.333% - 16px) !important;
    scroll-snap-align: start !important; /* 滾動停下時自動對齊卡片邊緣 */
    transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth) !important;
    background: var(--bg-white) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03) !important;
}

/* 影片卡片懸浮微放大特效 */
#videoGrid .video-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(1, 150, 242, 0.1) !important;
}

/* 4. 頂級發光懸浮左右控制按鈕 */
.video-carousel-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 48px !important;
    height: 48px !important;
    background: var(--bg-white) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: var(--primary-color) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 16px !important;
    z-index: 10 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.25s ease !important;
}

/* 按鈕擺放位置：靠兩側外推 20px */
.video-carousel-nav.v-prev-btn {
    left: -20px !important;
}

.video-carousel-nav.v-next-btn {
    right: -20px !important;
}

/* 按鈕懸浮發光與點擊下壓動效 */
.video-carousel-nav:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(1, 150, 242, 0.4) !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.video-carousel-nav:active {
    transform: translateY(-50%) scale(0.95) !important;
}

/* ==========================================================================
   📱 移動端手機版 影片輪播響應式極致優化規則 (RWD Mobile Video Carousel)
   ========================================================================== */
@media (max-width: 768px) {
    /* 手機端一排呈現 1.2 欄，故意露出右側下一部片的邊緣，引導用戶橫往右撥 */
    #videoGrid .video-card {
        flex: 0 0 82% !important;
        min-width: 82% !important;
        scroll-snap-align: center !important; /* 手機端停在螢幕正中央，體驗最好 */
    }

    /* 手機端空間有限，隱藏左右實體按鈕，純靠手指流暢滑動 */
    .video-carousel-nav {
        display: none !important;
    }
    
    /* 讓兩側稍微留出一點安全邊距 */
    #videoGrid.video-grid {
        gap: 16px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}
