﻿/* --- 基礎樣式與變數 --- */
:root {
    --primary-color: #e0ac1f; /* 主要黃金色 */
    --secondary-color: #333; /* 主要深灰色 */
    --tertiary-color: #4a4a4a; /* 次要深灰色 (用於弱電區塊) */
    --light-gray: #f7f7f7; /* 淺灰色背景 */
    --text-dark: #333;
    --text-light: #fff;
    --text-muted: #aaa;
    --border-light: #e0e0e0;
    --transition-speed: 0.3s ease-in-out;
    --spacing-xs: 10px;
    --spacing-sm: 20px;
    --spacing-md: 40px;
    --spacing-lg: 60px;
    --spacing-xl: 80px;
    /* 將顏色轉換為 RGB 值，以便在 rgba() 中使用 */
    --primary-color-rgb: 224, 172, 31;
    --secondary-color-rgb: 51, 51, 51;
    --tertiary-color-rgb: 74, 74, 74;
    --text-light-rgb: 255, 255, 255;
}

/* 引入 Google Fonts - Noto Sans TC (思源黑體) 和 Oswald (用於數字/標題) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Oswald:wght@400;500;700&display=swap');

html {
    font-size: 16px; /* 基礎字體大小，用於 rem 計算 */
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* 防止水平滾動條 */
}

/* 通用容器和間距 */
.container {
    width: 100%;
    max-width: 1200px; /* 內容最大寬度 */
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-sm); /* 左右內邊距 */
    box-sizing: border-box;
}

.section-padding {
    padding: var(--spacing-xl) 0; /* 通用區塊上下內邊距 */
}

/* 通用標題樣式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif; /* 標題使用 Oswald */
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}
/* ~56px */
h2 {
    font-size: 2.8rem;
}
/* ~45px */
h3 {
    font-size: 2rem;
}
/* ~32px */
h4 {
    font-size: 1.5rem;
}
/* ~24px */


p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

    a:hover {
        color: var(--secondary-color);
    }

/* 通用按鈕樣式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500; /* Noto Sans TC Medium */
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-dark); /* 黃底黑字 */
}

    .btn-primary:hover {
        background-color: #c09117; /* 手動指定更深的黃色 */
        transform: translateY(-2px);
    }

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

    .btn-secondary:hover {
        background-color: #555; /* 手動指定更淺的深灰 */
        transform: translateY(-2px);
    }

/* 高亮文字 */
.highlight-text {
    color: var(--primary-color);
    font-weight: 500;
}

/* 通用列表圖標 (Font Awesome 的 i 標籤) - 修正 Font Family */
i.icon-check {
    color: var(--primary-color);
    margin-right: var(--spacing-xs);
    font-size: 1.2rem;
    /* === 新增：確保使用 Font Awesome 字體 === */
    font-family: "Font Awesome 6 Free";
    font-weight: 900; /* 對於 fas (Solid) 圖標，font-weight 通常是 900 */
}

/* --- 導航列 (Header) 樣式 --- */
.main-header {
    background-color: var(--secondary-color); /* 深灰色背景 */
    color: var(--text-light);
    padding: var(--spacing-xs) 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    position: sticky; /* 粘性導航 */
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.navbar-brand {
    color: var(--text-light);
    font-size: 1.8rem; /* ~28px */
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* === 默認在桌面版下顯示為 flex === */
    pointer-events: auto; /* 默認響應事件 */
    transition: right 0.4s ease-in-out; /* 用於手機滑入動畫 */
}

.nav-item {
    margin-left: var(--spacing-md);
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.05rem; /* ~17px */
    padding: 15px 0;
    position: relative;
    transition: color var(--transition-speed);
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color);
    }

    .nav-link::after { /* 導航下劃線效果 */
        content: '';
        position: absolute;
        left: 0;
        bottom: 8px; /* 稍微高一點 */
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: width var(--transition-speed);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

/* 漢堡選單按鈕 (響應式設計) */
.menu-toggle {
    display: none; /* 默認隱藏 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* 確保在手機菜單上方 */
}

    .menu-toggle .bar {
        display: block;
        width: 28px;
        height: 3px;
        background-color: var(--text-light);
        margin: 6px 0;
        transition: 0.4s;
        border-radius: 2px;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }


/* --- 頁腳 (Footer) 樣式 --- */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--text-muted);
    padding: var(--spacing-sm) 0;
    text-align: center;
    font-size: 0.9rem; /* ~14px */
    box-shadow: 0 -3px 10px rgba(0,0,0,0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* --- 通用區塊佈局和陰影 --- */
.section-block {
    background-color: var(--text-light);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

/* 通用次標題樣式 (如 .definition-left .section-sub-title) */
.section-sub-title {
    font-weight: 700;
    margin: 0;
    color: var(--text-dark); /* 預設，可在特定區塊覆蓋 */
}

/* --- 滾動動畫樣式 (由 JavaScript 控制) --- */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform; /* 提升動畫性能 */
}

    .animate-fade-in-up.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* 延遲動畫 */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}


/* ============================================== */
/* === 首頁 (Index.cshtml) 樣式 === */
/* ============================================== */

/* --- 首頁英雄區塊樣式 (Hero Section) --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 650px;
    background-image: url('../images/drone_on_deck_wind_farm.jpg'); /* 更新圖片 */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--text-light);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 5%;
    max-width: 800px;
}

.hero-text-overlay {
    background-color: rgba(var(--secondary-color-rgb), 0.75);
    padding: var(--spacing-lg);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

    .hero-text-overlay h1 {
        font-size: 4.2rem;
        margin-bottom: var(--spacing-sm);
        color: var(--text-light);
        font-weight: 700;
        line-height: 1.1;
    }

    .hero-text-overlay .company-slogan {
        font-size: 2.5rem;
        font-weight: 500;
        display: block;
        margin-top: 10px;
        color: var(--primary-color);
    }

    .hero-text-overlay p {
        font-size: 1.25rem;
        line-height: 1.7;
        margin-bottom: var(--spacing-md);
        color: #f0f0f0;
    }

/* --- 服務項目概述區塊 (Services Overview Section) --- */
.services-overview-section {
    background-color: var(--light-gray);
}

    .services-overview-section h2 {
        color: var(--secondary-color);
        margin-bottom: var(--spacing-lg);
        font-weight: 700;
    }

.service-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--spacing-lg);
}

.service-category-card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

    .service-category-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

    .service-category-card .card-header {
        padding: var(--spacing-md);
        text-align: center;
        border-bottom: 5px solid;
    }

    .service-category-card:first-child .card-header {
        border-color: var(--tertiary-color);
        background-color: var(--tertiary-color);
    }

    .service-category-card:last-child .card-header {
        border-color: var(--primary-color);
        background-color: var(--light-gray);
    }

    .service-category-card:first-child .card-header h3 {
        color: var(--text-light);
    }

    .service-category-card:last-child .card-header h3 {
        color: var(--text-dark);
    }

    .service-category-card .card-body {
        padding: var(--spacing-md);
        display: flex;
        flex-direction: column; /* 讓內容垂直堆疊 */
        flex-grow: 1; /* 讓內容填充剩餘空間 */
        justify-content: space-between; /* === 關鍵：將內容垂直均勻分佈，把按鈕推到底部 === */
        align-items: flex-start; /* 讓按鈕和列表靠左對齊，而不是置中 */
    }

.drone-thumb-gallery {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.circle-image-thumb-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

    .circle-image-thumb-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.service-list-thumbs {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-md);
}

    .service-list-thumbs li {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-xs);
        display: flex;
        align-items: center;
    }

        .service-list-thumbs li i.icon-check {
            color: var(--primary-color);
            margin-right: var(--spacing-xs);
            font-size: 1.2rem;
        }

.service-list-full {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-md);
}

    .service-list-full li {
        font-size: 1.05rem;
        margin-bottom: var(--spacing-xs);
        padding-left: var(--spacing-sm);
        position: relative;
        color: var(--text-dark);
    }

        .service-list-full li i.icon-check {
            color: var(--primary-color);
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.1rem;
        }

/* --- 整合後的「一圖介紹」區塊樣式 (Intro Page Container) --- */
.intro-page-container {
    background-color: var(--light-gray);
}

.intro-main-card {
    background-color: var(--text-light);
    padding: var(--spacing-lg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: var(--spacing-md) auto;
    overflow: hidden;
}

.intro-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.intro-header-left {
    flex-shrink: 0;
    margin-right: var(--spacing-sm);
}

.intro-qr-code {
    width: 90px;
    height: 90px;
    border: 4px solid var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.intro-header-center {
    flex-grow: 1;
    text-align: center;
}

    .intro-header-center h2 {
        font-size: 2.5rem;
        color: var(--secondary-color);
        margin-bottom: var(--spacing-xs);
        font-weight: 700;
    }

    .intro-header-center .slogan-text {
        font-size: 1.4rem;
        color: var(--tertiary-color);
        margin: 0;
        font-weight: 500;
    }

.intro-header-right {
    flex-shrink: 0;
    margin-left: var(--spacing-sm);
}

.intro-learn-more-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform var(--transition-speed);
}

    .intro-learn-more-btn:hover {
        transform: scale(1.08);
        background-color: #c09117;
    }

/* 服務分類區塊（無人機和弱電工程的共同樣式） */
.service-category-block {
    color: var(--text-light);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.drone-category-block {
    background-color: var(--secondary-color);
}

.weak-current-category-block {
    background-color: var(--tertiary-color);
}

.block-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

    .block-title .title-icon {
        height: 40px;
        margin-left: var(--spacing-xs);
    }

.block-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

/* 無人機服務列表 */
.service-items-list {
    flex: 1;
    min-width: 250px;
}

.service-item {
    display: flex;
    align-items: center; /* 保持 center，因為您想要圖標居中 */
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    font-weight: 500;
}

    .service-item img {
        width: 45px;
        height: 45px;
        margin-right: var(--spacing-md);
        background-color: rgba(var(--text-light-rgb), 0.1);
        padding: 8px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    /* 這是您之前為所有 .icon-check 設置的通用樣式 */
    .service-item .icon-check {
        font-size: 1.6rem; /* 這個大小將應用於除了學士帽之外的所有圖標 */
        width: 45px;
        height: 45px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: var(--spacing-md);
        flex-shrink: 0;
        background-color: rgba(var(--text-light-rgb), 0.1);
        padding: 8px;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        position: static;
        transform: none;
    }

    /* === 在這裡新增以下針對學士帽圖標的樣式 === */
    .service-item .fa-graduation-cap.icon-check {
        font-size: 1.2rem; /* <--- 將學士帽圖標縮小到您想要的大小 */
        /* 其他屬性會繼承自 .service-item .icon-check，所以不需要在這裡重複設置 */
    }


/* 無人機圖片畫廊 */
.block-image-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: var(--spacing-sm);
    justify-items: center;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

    .block-image-gallery img {
        width: 140px;
        height: 140px;
        border-radius: 50%;
        object-fit: cover;
        border: 5px solid var(--primary-color);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        transition: transform var(--transition-speed);
    }

        .block-image-gallery img:hover {
            transform: scale(1.05);
        }

/* 弱電工程服務列表 */
.block-content.two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.service-item-large {
    display: flex;
    align-items: flex-start;
    background-color: rgba(var(--text-light-rgb), 0.08);
    padding: var(--spacing-md);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform var(--transition-speed);
}

    .service-item-large:hover {
        transform: translateY(-5px);
        background-color: rgba(var(--text-light-rgb), 0.15);
    }

    .service-item-large img {
        width: 55px;
        height: 55px;
        margin-right: var(--spacing-md);
        flex-shrink: 0;
        filter: brightness(1.2);
    }

    .service-item-large h4 {
        font-size: 1.4rem;
        color: var(--primary-color);
        margin-top: 0;
        margin-bottom: var(--spacing-xs);
        font-weight: 700;
    }

    .service-item-large p {
        font-size: 1rem;
        color: #ccc;
        margin: 0;
        line-height: 1.5;
    }

/* 底部聯絡資訊 (整合到首頁的) */
.contact-info-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-top: var(--spacing-lg);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

    .contact-info-footer p {
        display: flex;
        align-items: center;
        font-size: 1.1rem;
        margin: var(--spacing-xs) var(--spacing-sm);
        white-space: nowrap;
        color: #eee;
    }

        .contact-info-footer p img {
            width: 30px;
            height: 30px;
            margin-right: var(--spacing-xs);
            filter: brightness(1.2);
        }


/* ============================================== */
/* === 智慧弱電服務頁面 (Services.cshtml) 樣式 === */
/* ============================================== */

/* --- 智慧弱電服務英雄區塊 (Weak Current Hero Section) --- */
.weak-current-hero-section {
    position: relative;
    width: 100%;
    height: 550px;
    background-image: url('../images/technician_panel_inspection_dark.jpg'); /* 更新圖片 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
    overflow: hidden;
}

    .weak-current-hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1;
    }

.weak-current-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.weak-current-hero-section .hero-main-title {
    color: var(--text-light);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: 2px;
}

.hero-image-carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-top: var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: var(--spacing-sm);
    transition: transform 0.5s ease-in-out;
}

.circle-hero-image-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    flex-shrink: 0;
    transition: transform var(--transition-speed);
}

    .circle-hero-image-wrapper:hover {
        transform: scale(1.05);
    }

    .circle-hero-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(var(--secondary-color-rgb), 0.7);
    color: var(--text-light);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.8rem;
    border-radius: 50%;
    z-index: 15;
    user-select: none;
    transition: background-color var(--transition-speed);
}

    .carousel-arrow:hover {
        background-color: rgba(var(--secondary-color-rgb), 0.9);
    }

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}


/* --- 智慧弱電定義區塊 (Weak Current Definition Section) --- */
.weak-current-definition-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.definition-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.definition-left {
    flex-shrink: 0;
    width: 30%;
    border-right: 5px solid var(--text-light);
    padding-right: var(--spacing-lg);
    text-align: right;
}

    .definition-left .section-sub-title {
        font-size: 3.2rem;
        color: var(--text-light);
    }

.definition-right {
    flex-grow: 1;
    padding-left: var(--spacing-sm);
}

    .definition-right p {
        font-size: 1.2rem;
        line-height: 1.8;
        margin-bottom: var(--spacing-md);
        color: #f0f0f0;
    }

        .definition-right p:last-child {
            margin-bottom: 0;
        }

/* --- 服務項目詳細列表區塊 (Services List Section) --- */
.services-list-section {
    position: relative;
    background-image: url('../images/technician_panel_inspection_dark.jpg'); /* <-- 修正後的正確檔名 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
}

    .services-list-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(var(--secondary-color-rgb), 0.85);
        z-index: 1;
    }

.services-list-overlay {
    position: relative;
    z-index: 2;
    padding: var(--spacing-lg) 0;
}

.services-list-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .services-list-title i.highlight-arrow { /* 更精確的選擇器 */
        font-size: 1.2em; /* 調整圖標大小，使其更顯眼 */
        margin-right: var(--spacing-sm);
        color: var(--primary-color);
        vertical-align: middle; /* 確保圖標與文字垂直對齊 */
    }

.service-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
}

.list-item {
    display: flex;
    align-items: flex-start;
    background-color: rgba(var(--tertiary-color-rgb), 0.7);
    padding: var(--spacing-md);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform var(--transition-speed), background-color var(--transition-speed);
    backdrop-filter: blur(3px);
}

    .list-item:hover {
        transform: translateY(-8px);
        background-color: rgba(var(--tertiary-color-rgb), 0.9);
    }

/* 優化後的 Font Awesome 圖標在列表項中的樣式 */
.list-item-icon {
    width: 70px;
    height: 70px;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(var(--primary-color-rgb), 0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    color: var(--text-light);
}

    .list-item-icon i {
        color: var(--text-light);
    }

.list-item .text-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.list-item .text-content p {
    font-size: 1.05rem;
    color: #eee;
    line-height: 1.6;
    margin: 0;
}


/* ============================================== */
/* === 無人機服務頁面 (DroneServices.cshtml) 樣式 === */
/* ============================================== */

/* --- 無人機服務英雄區塊 (Drone Hero Section) --- */
.drone-hero-section {
    position: relative;
    width: 100%;
    height: 550px;
    background-image: url('../images/kenting_coastline_panorama.jpg'); /* 更新圖片 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
    overflow: hidden;
}

    .drone-hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1;
    }

.drone-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-md);
    background-color: rgba(var(--secondary-color-rgb), 0.6);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.drone-hero-section .hero-main-title {
    color: var(--text-light);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 0;
}


/* --- 無人機服務總覽區塊 (Drone Overview Section) --- */
.drone-overview-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.overview-content {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.overview-text {
    flex: 1;
    min-width: 350px;
}

    .overview-text p {
        font-size: 1.15rem;
        line-height: 1.7;
        margin-bottom: var(--spacing-md);
        color: #e0e0e0;
    }

    .overview-text h2.section-sub-title {
        color: var(--primary-color);
        font-weight: 700;
    }

/* 統一列表樣式 (用於 Drone Overview 和 Detail Sections) - 修正版 */
ul.styled-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    ul.styled-list li {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-xs);
        padding-left: var(--spacing-sm);
        position: relative;
        color: #f0f0f0; /* 列表文字顏色保持淺色 */
    }

        ul.styled-list li::before {
            content: none; /* 確保沒有圓點偽元素 */
        }

        ul.styled-list li i.icon-check { /* 針對 li 內部的 Font Awesome 圖標 */
            color: var(--primary-color) !important; /* 圖標顏色為黃色 */
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.2rem; /* 圖標大小 */
            /* === 關鍵修正：確保 Font Awesome 字體正確應用，並移除背景樣式 === */
            font-family: "Font Awesome 6 Free" !important; /* 強制使用 Font Awesome 字體 */
            font-weight: 900 !important; /* 對於 fas (Solid) 圖標通常是 900 */
            background-color: transparent !important; /* 確保沒有背景色 */
            border-radius: 0 !important; /* 確保沒有圓角 */
            width: auto !important; /* 讓寬度自適應圖標 */
            height: auto !important; /* 讓高度自適應圖標 */
            display: inline-block !important; /* 確保為行內塊級元素 */
            box-shadow: none !important; /* 移除陰影 */
        }

.overview-image {
    flex-shrink: 0;
    width: 45%;
    max-width: 550px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    border-radius: 8px;
    overflow: hidden;
}

.img-fluid-responsive {
    width: 100%;
    height: auto;
    display: block;
}


/* --- 單項服務詳細區塊 (Single Service Detail) --- */
.single-service-detail {
    position: relative;
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--text-light);
}

    .single-service-detail::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(var(--secondary-color-rgb), 0.75);
        z-index: 1;
    }

/* 根據圖片設置不同的背景圖 */
.photo-service-section {
    background-image: url('../images/harbor_cityscape_bridge.jpg');
    justify-content: flex-start;
}

.inspection-service-section {
    background-image: url('../images/drone_flying_wind_turbine.jpg');
    justify-content: flex-end;
}

.agriculture-service-section {
    background-image: url('../images/agriculture_field_aerial.jpg');
    justify-content: flex-start;
}

.cleaning-service-section {
    background-image: url('../images/drone_cleaning_guangong_wide.jpg');
    justify-content: flex-end;
}

.detail-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: var(--spacing-lg);
    background-color: rgba(var(--tertiary-color-rgb), 0.85);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

    .detail-content-wrapper.content-right-aligned {
        margin-left: auto;
    }

    .detail-content-wrapper.content-left {
        margin-right: auto;
    }

.detail-number {
    position: absolute;
    top: -50px;
    left: 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: rgba(var(--text-light-rgb), 0.3);
    z-index: 1;
    line-height: 1;
}

.detail-text-area {
    position: relative;
    z-index: 2;
}

.detail-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    line-height: 1.2;
}

.detail-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    color: #eee;
}

.detail-sub-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

ul.detail-advantages-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    ul.detail-advantages-list li {
        font-size: 1.05rem;
        margin-bottom: var(--spacing-xs);
        padding-left: var(--spacing-sm);
        position: relative;
        color: #f0f0f0;
    }

        /* 單項服務詳細區塊內的勾選圖標樣式 - 修正 */
        ul.detail-advantages-list li i.icon-check {
            color: var(--primary-color) !important; /* 確保顏色是黃色 */
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.2rem; /* 調整大小以匹配 */
            /* === 關鍵修正：確保 Font Awesome 字體正確應用，並移除背景樣式 === */
            font-family: "Font Awesome 6 Free" !important; /* 強制使用 Font Awesome 字體 */
            font-weight: 900 !important; /* 對於 fas (Solid) 圖標通常是 900 */
            background-color: transparent !important; /* 確保沒有背景色 */
            border-radius: 0 !important; /* 確保沒有圓角 */
            width: auto !important; /* 讓寬度自適應圖標 */
            height: auto !important; /* 讓高度自適應圖標 */
            display: inline-block !important; /* 確保為行內塊級元素 */
            box-shadow: none !important; /* 移除陰影 */
        }

.highlight-text-tag {
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
    margin-bottom: var(--spacing-xs);
}

.cleaning-highlights-title {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    justify-content: center;
    align-items: center;
}


/* ============================================== */
/* === 案例分享頁面 (Cases.cshtml) 樣式 === */
/* ============================================== */

/* --- 案例分享英雄區塊 (Cases Hero Section) --- */
.cases-hero-section {
    position: relative;
    width: 100%;
    height: 450px;
    background-image: url('../images/harbor_cityscape_bridge.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
    overflow: hidden;
}

    .cases-hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1;
    }

.cases-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-md);
    background-color: rgba(var(--secondary-color-rgb), 0.6);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.cases-hero-section .hero-main-title {
    color: var(--text-light);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 0;
}


/* --- 單一案例詳細區塊 (Case Detail Section) --- */
.case-detail-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.case-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.case-number-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.case-title {
    font-size: 3.2rem;
    color: var(--text-light);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}

.case-content-grid {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

    .case-content-grid.reverse-layout {
        flex-direction: row-reverse;
    }

.case-text-area {
    flex: 1;
    min-width: 350px;
    background-color: rgba(var(--tertiary-color-rgb), 0.75);
    padding: var(--spacing-md);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(3px);
}

    .case-text-area p {
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: var(--spacing-md);
        color: #eee;
    }

        .case-text-area p:last-child {
            margin-bottom: 0;
        }

.case-image-area {
    flex-shrink: 0;
    width: 50%;
    max-width: 600px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border-radius: 10px;
    overflow: hidden;
}

.case-title .highlight-title {
    color: var(--primary-color); /* 使用您的主題色（黃色） */
    font-weight: 700 !important; /* === 修正：明確設定為 700 並使用 !important === */
    font-family: 'Noto Sans TC', sans-serif !important; /* === 新增：明確指定字體並使用 !important === */
}

/* ============================================== */
/* === 聯絡我們頁面 (Contact.cshtml) 樣式 === */
/* ============================================== */

/* --- 聯絡我們英雄區塊 (Contact Hero Section) --- */
.contact-hero-section {
    position: relative;
    width: 100%;
    height: 400px;
    background-image: url('../images/wind_farm_ocean.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--text-light); /* 確保這裡設定為白色 */
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}

    .contact-hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1;
    }

.contact-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    background-color: rgba(var(--secondary-color-rgb), 0.75);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

    .contact-hero-content .company-name-hero,
    .contact-hero-content .contact-title-hero {
        font-size: 3.5rem;
        margin: 0;
        line-height: 1.2;
        font-weight: 700;
        white-space: nowrap;
        color: var(--text-light); /* 確保這裡明確設定為白色 */
    }

.hero-divider {
    width: 4px;
    height: 60px;
    background-color: var(--primary-color);
    margin: 0 var(--spacing-md);
    border-radius: 2px;
}

/* --- 聯絡資訊區塊 (Contact Info Section) --- */
.contact-info-section {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.contact-info-content {
    text-align: center;
}

.social-icons-wrapper {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.social-icon-link {
    display: inline-block;
    transition: transform var(--transition-speed);
}

    .social-icon-link:hover {
        transform: scale(1.15);
    }

.social-icon {
    width: 70px;
    height: 70px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-radius: 50%;
}

.address-contact-details p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    line-height: 1.5;
    color: var(--text-dark);
    font-weight: 500;
}

    .address-contact-details p:last-child {
        margin-bottom: 0;
    }


/* --- Google 表單聯絡區塊 (Contact Form Section) - 優化後，直接導向 Google 表單 --- */
.contact-form-section {
    position: relative;
    width: 100%; /* 確保佔滿寬度 */
    background-image: url('../images/drone_operator_offshore.jpg'); /* 背景圖片 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    text-align: center; /* 內容置中 */
    padding: var(--spacing-xl) 0; /* 確保有足夠的上下內邊距 */
    overflow: hidden;
}

    .contact-form-section::before { /* 疊層 */
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(var(--secondary-color-rgb), 0.85); /* 深色疊層 */
        z-index: 1;
    }

.form-section-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    background-color: rgba(var(--secondary-color-rgb), 0.9); /* 深色半透明背景 */
    padding: var(--spacing-lg);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    margin: 0 auto; /* 置中 */
}

.form-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* 增加文字陰影 */
}

.google-form-link { /* 新增連結樣式 */
    display: inline-block; /* 確保可以有寬高和變形 */
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-speed);
}

    .google-form-link:hover {
        transform: translateY(-5px) scale(1.05); /* 點擊時輕微上移和放大 */
    }

.email-icon-prompt {
    display: flex;
    flex-direction: column; /* 垂直排列 CLICK 和圖標 */
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md); /* 調整間距 */
    cursor: pointer;
}

.click-text {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-xs); /* CLICK 和圖標之間間距 */
    color: var(--text-light);
}

.email-icon {
    width: 120px; /* 信箱圖標大小，可調整 */
    height: 100px; /* 信箱圖標高度，可調整 */
    background-image: url('../images/icon_email.png'); /* 信箱圖標圖片 */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: invert(100%) brightness(1.5) drop-shadow(0 0 10px rgba(var(--primary-color-rgb), 0.5)); /* 白色帶光暈效果 */
    transition: filter var(--transition-speed);
}

.google-form-link:hover .email-icon {
    filter: invert(100%) brightness(1.8) drop-shadow(0 0 15px rgba(var(--primary-color-rgb), 0.8)); /* hover 時更亮 */
}

/* 移除原有表單相關樣式（如果還存在） */
.modern-contact-form,
.form-group,
.form-label,
.form-control,
.text-danger,
.form-submit-btn,
.social-media-bottom-wrapper,
.social-icon-bottom-link,
.social-icon-bottom {
    display: none !important; /* 確保這些元素不再顯示 */
}
/* --- 營業時間與 Google 地圖區塊 (Map and Hours Section) --- */
.map-and-hours-section {
    background-color: var(--light-gray);
}

.map-and-hours-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.operating-hours {
    text-align: center;
    color: var(--text-dark);
    padding: var(--spacing-md);
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

    .operating-hours .section-sub-title {
        font-size: 2.5rem;
        color: var(--secondary-color);
        margin-bottom: var(--spacing-md);
    }

.time-day {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--secondary-color);
}

.time-range {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.google-map-embed {
    border: 5px solid var(--border-light);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-radius: 10px;
    overflow: hidden;
}

/* ============================================== */
/* === 響應式設計 === */
/* ============================================== */

@media (max-width: 992px) { /* 平板和較小的桌面 */
    html {
        font-size: 15px;
    }

    .main-nav {
        padding: 0 var(--spacing-xs);
    }

    .nav-links {
        /* === 修正：在小螢幕下預設隱藏，並準備滑出 === */
        position: fixed; /* 固定在視口 */
        top: 0;
        right: -280px; /* 初始隱藏在右側，280px 是菜單寬度 */
        width: 280px; /* 菜單寬度 */
        height: 100%;
        background-color: var(--tertiary-color); /* 菜單背景色 */
        flex-direction: column; /* 垂直排列 */
        padding-top: var(--spacing-lg);
        box-shadow: -5px 0 15px rgba(0,0,0,0.4);
        z-index: 999;
        display: none; /* === 關鍵：在小螢幕下，默認完全不顯示，不佔空間 === */
        pointer-events: none; /* 預設不響應事件 */
    }

        .nav-links.active {
            right: 0; /* 菜單滑入 */
            display: flex; /* === 關鍵：只在 active 時才顯示 === */
            pointer-events: auto; /* 顯示時響應事件 */
        }

    .nav-item {
        margin-left: 0;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

        .nav-item:last-child {
            border-bottom: none;
        }

    .nav-link {
        display: block;
        padding: 18px 0;
        font-size: 1.1rem;
    }

        .nav-link::after {
            bottom: 5px;
        }

    .menu-toggle {
        display: block;
    }
    /* 漢堡選單在小螢幕下顯示 */

    .nav-item {
        margin-left: 0;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

        .nav-item:last-child {
            border-bottom: none;
        }

    .nav-link {
        display: block;
        padding: 18px 0;
        font-size: 1.1rem;
    }

        .nav-link::after {
            bottom: 5px;
        }

    .menu-toggle {
        display: block;
    }

    .section-padding {
        padding: var(--spacing-lg) 0;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    h4 {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 var(--spacing-xs);
    }

    /* 首頁響應式設計 */
    .hero-section {
        height: 500px;
        background-attachment: scroll;
    }

    .hero-text-overlay {
        padding: var(--spacing-md);
        max-width: 90%;
        margin: 0 auto;
        text-align: center;
    }

        .hero-text-overlay h1 {
            font-size: 3rem;
        }

        .hero-text-overlay .company-slogan {
            font-size: 2rem;
        }

        .hero-text-overlay p {
            font-size: 1.1rem;
        }

    .service-categories-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .service-category-card .card-body {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .drone-thumb-gallery {
        justify-content: center;
    }

    .circle-image-thumb-wrapper {
        width: 80px;
        height: 80px;
    }

    .service-list-thumbs li, .service-list-full li {
        font-size: 1rem;
    }

    .intro-main-card {
        padding: var(--spacing-md);
        max-width: 95%;
    }

    .intro-header-section {
        flex-direction: column;
        text-align: center;
        margin-bottom: var(--spacing-md);
    }

    .intro-header-left, .intro-header-right {
        margin: var(--spacing-xs) 0;
    }

    .intro-header-center {
        order: -1;
        margin-bottom: var(--spacing-sm);
    }

    .intro-qr-code {
        width: 100px;
        height: 100px;
    }

    .intro-learn-more-btn {
        width: 100px;
        height: 100px;
        font-size: 1rem;
    }

    .intro-header-center h2 {
        font-size: 2rem;
    }

    .intro-header-center .slogan-text {
        font-size: 1.1rem;
    }

    .service-category-block {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    .block-title {
        font-size: 1.8rem;
        /* 這裡必須是 row，或確保它沒有被設為 column */
        flex-direction: row; /* <--- 確保是這個 */
        flex-wrap: wrap; /* 加上這個讓內容在不夠時換行 */
        justify-content: center; /* 水平居中 */
        align-items: center; /* 垂直居中對齊 */
        margin-bottom: var(--spacing-md); /* 保持這個間距 */
    }

        .block-title .title-icon {
            height: 40px; /* 保持這個高度 */
            margin-left: var(--spacing-xs); /* 保持這個左邊距 */
            margin-top: 0; /* <--- 確保是這個，移除垂直堆疊的上邊距 */
        }

    .block-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .service-item {
        font-size: 1.1rem;
    }

        .service-item img {
            width: 40px;
            height: 40px;
        }

    .block-image-gallery {
        /* 在平板尺寸，調整為兩列佈局 */
        grid-template-columns: repeat(2, 1fr); /* 設置為兩列，每列佔據等量空間 */
        gap: var(--spacing-sm); /* 圖片之間的間距 (水平和垂直)，例如 20px */
        padding: var(--spacing-sm) 0; /* 上下內邊距 */
        /* 重新計算 max-width，使其足以容納兩張圖片和一個間距 */
        /* 以圖片 90px 寬度，邊框 3px，間距 20px (var(--spacing-sm)) 為例:
           (90px + 3px*2邊框) * 2張圖片 + 20px (中間間距) = 96 * 2 + 20 = 192 + 20 = 212px
           您可以根據實際情況調整圖片大小和間距來計算這個 max-width
        */
        max-width: 220px; /* 調整這個值，使其能夠容納兩張圖片和間距 */
        margin: 0 auto; /* 讓畫廊在水平方向居中 */
        justify-items: center; /* 確保網格內的圖片水平居中 */
        align-items: center; /* 確保網格內的圖片垂直居中 */
    }

        .block-image-gallery img {
            width: 90px; /* 調整圖片寬度，使其在平板上兩兩並排並適中 */
            height: 90px; /* 調整圖片高度 */
            border-width: 3px; /* 邊框保持適中 */
            box-shadow: 0 3px 10px rgba(0,0,0,0.25); /* 陰影保持適中 */
        }

    .block-content.two-columns {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .service-item-large {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--spacing-sm);
    }

        .service-item-large img {
            margin-right: 0;
            margin-bottom: var(--spacing-sm);
        }

        .service-item-large h4 {
            font-size: 1.2rem;
        }

        .service-item-large p {
            font-size: 0.95rem;
        }

    .contact-info-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-sm);
    }

        .contact-info-footer p {
            margin: 8px 0;
            font-size: 1rem;
        }

            .contact-info-footer p img {
                width: 25px;
                height: 25px;
            }

    /* 智慧弱電服務頁面響應式設計 */
    .weak-current-hero-section {
        height: 450px;
    }

        .weak-current-hero-section .hero-main-title {
            font-size: 3.5rem;
        }

    .circle-hero-image-wrapper {
        width: 120px;
        height: 120px;
        border-width: 3px;
    }

    .carousel-arrow {
        font-size: 1.5rem;
        padding: 8px 12px;
    }

    .definition-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }

    .definition-left {
        width: auto;
        border-right: none;
        border-bottom: 3px solid var(--text-light);
        padding-right: 0;
        padding-bottom: var(--spacing-sm);
    }

        .definition-left .section-sub-title {
            font-size: 2.5rem;
        }

    .definition-right {
        padding-left: 0;
        text-align: left;
        max-width: 600px;
    }

        .definition-right p {
            font-size: 1.1rem;
        }

    .services-list-title {
        font-size: 2.8rem;
        margin-bottom: var(--spacing-lg);
    }

    .service-items-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .list-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--spacing-sm);
    }

    .list-item-icon {
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
        width: 60px;
        height: 60px;
    }

    .list-item .text-content h3 {
        font-size: 1.5rem;
    }

    .list-item .text-content p {
        font-size: 1rem;
    }

    /* 無人機服務頁面響應式設計 */
    .drone-hero-section {
        height: 450px;
    }

        .drone-hero-section .hero-main-title {
            font-size: 3.5rem;
        }

    .overview-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .overview-text, .overview-image {
        min-width: unset;
        width: 100%;
    }

        .overview-text ul {
            text-align: left;
            margin: 0 auto;
            max-width: 500px;
        }

    .overview-image {
        margin-top: var(--spacing-md);
        order: -1;
    }

    .overview-text p, ul.styled-list li {
        font-size: 1rem;
    }

        /* 原本的 ul.styled-list li::before, ul.styled-list li .icon-check 選擇器太寬泛，
       且 icon-check 有更精確的選擇器在前面。
       這裡我們只處理 ul.styled-list li 內的 icon-check。 */
        ul.styled-list li i.icon-check { /* <-- 修改這裡 */
            top: 0.25em !important; /* <--- 加上 !important */
            transform: none !important; /* <--- 加上 !important */
            /* 確保其他必要的 Font Awesome 樣式沒有被覆蓋 */
            font-family: "Font Awesome 6 Free" !important;
            font-weight: 900 !important;
            background-color: transparent !important;
            border-radius: 0 !important;
            width: auto !important;
            height: auto !important;
            display: inline-block !important;
            box-shadow: none !important;
        }


    .single-service-detail {
        height: auto;
        background-attachment: scroll;
        padding: var(--spacing-lg) var(--spacing-sm);
        justify-content: center;
    }

    .detail-content-wrapper {
        max-width: 90%;
        margin: 0 auto;
        padding: var(--spacing-md);
        text-align: left;
    }

    .detail-number {
        font-size: 4rem;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
    }

    .detail-title {
        font-size: 2.2rem;
    }

    .detail-description, .detail-advantages-list li, .highlight-text-tag {
        font-size: 1rem;
    }

    .detail-sub-title {
        font-size: 1.4rem;
    }

    .cleaning-highlights-title {
        /* 將 flex-direction 改回 row，讓標籤水平排列 */
        flex-direction: row;
        /* 允許標籤換行，如果空間不夠 */
        flex-wrap: wrap;
        /* 確保標籤之間有間距 */
        gap: var(--spacing-xs); /* 或更小的間距，如 8px */
        /* 在水平方向上居中它們 */
        justify-content: center;
        /* 移除或減少可能導致多餘空間的 margin-bottom */
        margin-bottom: var(--spacing-sm); /* 稍微減少底部間距 */
    }

    /* 針對 .highlight-text-tag 在平板上的樣式 */
    .highlight-text-tag {
        /* 在這個尺寸下，可以稍微縮小字體和內邊距 */
        font-size: 0.9rem; /* 稍微縮小字體 */
        padding: 6px 10px; /* 縮小內邊距 */
        /* 確保它們能夠自行縮小或擴大以適應內容，但有最小寬度 */
        min-width: unset; /* 移除任何可能限制縮小的最小寬度 */
        /* 如果希望它們在換行時也能對齊，可以設置一個彈性基礎 */
        flex-basis: auto; /* 讓它們根據內容自動調整寬度 */
    }

    /* 案例分享頁面響應式設計 */
    .cases-hero-section {
        height: 350px;
    }

        .cases-hero-section .hero-main-title {
            font-size: 3.5rem;
        }

    .case-header {
        margin-bottom: var(--spacing-md);
    }

    .case-number-tag {
        font-size: 1rem;
        padding: 6px 15px;
    }

    .case-title {
        font-size: 2.8rem;
    }

    .case-content-grid {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }

        .case-content-grid.reverse-layout {
            flex-direction: column;
        }

    .case-text-area, .case-image-area {
        width: 100%;
        min-width: unset;
        max-width: 600px;
    }

    .case-text-area {
        padding: var(--spacing-sm);
    }

        .case-text-area p {
            font-size: 1rem;
        }

    .case-image-area {
        margin-top: var(--spacing-md);
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

    /* 聯絡我們頁面響應式設計 */
    .contact-hero-section {
        height: 300px;
    }

    .contact-hero-content {
        padding: var(--spacing-sm) var(--spacing-md);
        flex-direction: column;
        text-align: center;
    }

        .contact-hero-content .company-name-hero,
        .contact-hero-content .contact-title-hero {
            font-size: 2.8rem;
        }

    .hero-divider {
        width: 80px;
        height: 3px;
        margin: var(--spacing-sm) 0;
    }

    .social-icon {
        width: 60px;
        height: 60px;
    }

    .address-contact-details p {
        font-size: 1.1rem;
    }

    .form-section-content {
        max-width: 90%;
        padding: var(--spacing-md);
    }

    .form-title {
        font-size: 2rem;
    }

    .click-text {
        font-size: 1.25rem;
    }

    .email-icon {
        width: 80px;
        height: 60px;
    }

    .form-label, .form-control, .form-submit-btn {
        font-size: 1rem;
    }

    .form-submit-btn {
        padding: 12px 25px;
    }

    .social-icon-bottom {
        width: 40px;
        height: 40px;
    }

    .map-and-hours-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .operating-hours {
        padding: var(--spacing-sm);
    }

        .operating-hours .section-sub-title {
            font-size: 2rem;
        }

    .time-day {
        font-size: 1.2rem;
    }

    .time-range {
        font-size: 1.5rem;
    }

    .google-map-embed iframe {
        height: 350px;
    }
}

@media (max-width: 576px) { /* 手機 */
    html {
        font-size: 14px;
    }

    .main-header {
        padding: var(--spacing-xs) 0;
    }

    .navbar-brand {
        font-size: 1.6rem;
    }

    .section-padding {
        padding: var(--spacing-md) 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .nav-links {
        width: 250px;
    }

    /* 首頁響應式設計 */
    .hero-section {
        height: 400px;
    }

    .hero-text-overlay {
        padding: var(--spacing-sm);
    }

        .hero-text-overlay h1 {
            font-size: 2.2rem;
        }

        .hero-text-overlay .company-slogan {
            font-size: 1.5rem;
        }

        .hero-text-overlay p {
            font-size: 0.95rem;
        }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .service-categories-grid {
        gap: var(--spacing-sm);
    }

    .service-category-card .card-body {
        padding: var(--spacing-sm);
    }

    .circle-image-thumb-wrapper {
        width: 70px;
        height: 70px;
    }

    .service-list-thumbs li, .service-list-full li {
        font-size: 0.95rem;
    }

    .intro-main-card {
        padding: var(--spacing-sm);
    }

    .intro-header-section {
        padding-bottom: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }

    .intro-qr-code {
        width: 80px;
        height: 80px;
    }

    .intro-learn-more-btn {
        width: 80px;
        height: 80px;
        font-size: 0.9rem;
    }

    .intro-header-center h2 {
        font-size: 1.6rem;
    }

    .intro-header-center .slogan-text {
        font-size: 1rem;
    }

    .service-category-block {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }

    .block-title {
        font-size: 1.4rem;
        /* 這裡必須是 row */
        flex-direction: row; /* <--- 確保是這個 */
        flex-wrap: wrap; /* 加上這個讓內容在不夠時換行 */
        justify-content: center; /* 水平居中 */
        align-items: center; /* 垂直居中對齊 */
        margin-bottom: var(--spacing-xs); /* 減少底部間距，節省空間 */
        text-align: center; /* 確保內容居中 */
    }

        .block-title .title-icon {
            font-size: 1.2em; /* 調整圖示大小，使其在手機上更合適 */
            height: auto; /* 確保高度根據字體大小自適應 */
            margin-left: 5px; /* 在文字旁邊增加一點左邊距 */
            margin-top: 0; /* <--- 確保是這個，移除垂直堆疊的上邊距 */
        }

    .service-item {
        font-size: 1rem;
    }

        .service-item img {
            width: 35px;
            height: 35px;
        }

    .block-image-gallery {
        /* 調整為兩列佈局 */
        grid-template-columns: repeat(2, 1fr); /* 設置為兩列，每列佔據等量空間 */
        gap: var(--spacing-xs); /* 圖片之間的間距 (水平和垂直) */
        padding: var(--spacing-xs) 0; /* 上下內邊距 */
        /* 重新計算 max-width，使其足以容納兩張圖片和一個間距 */
        /* 以圖片 60px 寬度，邊框 2px，間距 10px (var(--spacing-xs)) 為例:
           (60px + 2px*2邊框) * 2張圖片 + 10px (中間間距) = 64 * 2 + 10 = 128 + 10 = 138px
           您可以根據實際情況調整圖片大小和間距來計算這個 max-width
        */
        max-width: 140px; /* 調整這個值，使其能夠容納兩張圖片和間距。例如，如果圖片是60px，間距10px，則 (60+2*2)*2+10 = 138px */
        margin: 0 auto; /* 讓畫廊在水平方向居中 */
        justify-items: center; /* 確保網格內的圖片水平居中 */
        align-items: center; /* 確保網格內的圖片垂直居中 */
    }

        .block-image-gallery img {
            width: 60px; /* 進一步縮小圖片寬度，使其能兩兩並排 */
            height: 60px; /* 進一步縮小圖片高度 */
            border-width: 2px; /* 保持邊框適中 */
            box-shadow: 0 1px 4px rgba(0,0,0,0.15); /* 稍微縮小陰影 */
        }

    .block-content.two-columns {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .service-item-large {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--spacing-sm);
    }

        .service-item-large img {
            margin-right: 0;
            margin-bottom: var(--spacing-sm);
        }

        .service-item-large h4 {
            font-size: 1rem;
        }

        .service-item-large p {
            font-size: 0.85rem;
        }

    .contact-info-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-sm);
    }

        .contact-info-footer p {
            margin: 8px 0;
            font-size: 0.9rem;
        }

            .contact-info-footer p img {
                width: 25px;
                height: 25px;
            }

    /* 智慧弱電服務頁面響應式設計 */
    .weak-current-hero-section {
        height: 350px;
    }

        .weak-current-hero-section .hero-main-title {
            font-size: 2.8rem;
        }

    .circle-hero-image-wrapper {
        width: 90px;
        height: 90px;
    }

    .carousel-track {
        gap: var(--spacing-xs);
    }

    .carousel-arrow {
        font-size: 1.2rem;
        padding: 5px 8px;
    }

    .left-arrow {
        left: 5px;
    }

    .right-arrow {
        right: 5px;
    }

    .weak-current-definition-section {
        padding: var(--spacing-md) 0;
    }

    .definition-left .section-sub-title {
        font-size: 2rem;
    }

    .definition-right p {
        font-size: 1rem;
    }

    .services-list-section {
        padding: var(--spacing-md) 0;
    }

    .services-list-title {
        font-size: 2.2rem;
        margin-bottom: var(--spacing-md);
    }

    .list-item {
        padding: var(--spacing-xs);
    }

    .list-item-icon {
        width: 50px;
        height: 50px;
    }

    .list-item .text-content h3 {
        font-size: 1.2rem;
    }

    .list-item .text-content p {
        font-size: 0.9rem;
    }

    /* 無人機服務頁面響應式設計 */
    .drone-hero-section {
        height: 350px;
    }

        .drone-hero-section .hero-main-title {
            font-size: 2.8rem;
        }

    .overview-text p, ul.styled-list li {
        font-size: 0.95rem;
    }

        /* 原本的 ul.styled-list li::before, ul.styled-list li .icon-check 選擇器太寬泛，
       且 icon-check 有更精確的選擇器在前面。
       這裡我們只處理 ul.styled-list li 內的 icon-check。 */
        ul.styled-list li i.icon-check { /* <-- 修改這裡 */
            font-size: 0.95rem; /* 圖標大小與文字大小一致 */
            top: 0.3em !important; /* <--- 加上 !important */
            transform: none !important; /* <--- 加上 !important */
            /* 確保其他必要的 Font Awesome 樣式沒有被覆蓋 */
            font-family: "Font Awesome 6 Free" !important;
            font-weight: 900 !important;
            background-color: transparent !important;
            border-radius: 0 !important;
            width: auto !important;
            height: auto !important;
            display: inline-block !important;
            box-shadow: none !important;
        }


    .single-service-detail {
        padding: var(--spacing-md) var(--spacing-xs);
    }

    .detail-content-wrapper {
        padding: var(--spacing-sm);
    }

    .detail-number {
        font-size: 3rem;
        top: -20px;
    }

    .detail-title {
        font-size: 1.8rem;
    }

    .detail-description, .detail-advantages-list li, .highlight-text-tag {
        font-size: 0.9rem;
    }

    .detail-sub-title {
        font-size: 1.2rem;
    }

    .cleaning-highlights-title {
        /* 將 flex-direction 改回 row，讓標籤水平排列 */
        flex-direction: row;
        /* 允許標籤換行，如果空間不夠 */
        flex-wrap: wrap;
        /* 確保標籤之間有間距 */
        gap: var(--spacing-xs); /* 甚至可以更小，例如 5px */
        /* 在水平方向上居中它們 */
        justify-content: center;
        margin-bottom: var(--spacing-sm);
    }

    /* 針對 .highlight-text-tag 在手機上的樣式 */
    .highlight-text-tag {
        /* 在手機上進一步縮小字體和內邊距 */
        font-size: 0.8rem; /* 更小的字體 */
        padding: 5px 8px; /* 更小的內邊距 */
        min-width: unset;
        flex-basis: auto;
    }

    /* 案例分享頁面響應式設計 */
    .cases-hero-section {
        height: 250px;
    }

        .cases-hero-section .hero-main-title {
            font-size: 2.8rem;
        }

    .case-title {
        font-size: 2.2rem;
    }

    .case-text-area {
        padding: var(--spacing-xs);
    }

        .case-text-area p {
            font-size: 0.9rem;
        }

    .case-image-area {
        border-radius: 5px;
    }

    /* 聯絡我們頁面響應式設計 */
    .contact-hero-section {
        height: 250px;
    }

    .contact-hero-content .company-name-hero,
    .contact-hero-content .contact-title-hero {
        font-size: 2.2rem;
    }

    .hero-divider {
        height: 2px;
        width: 60px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
    }

    .address-contact-details p {
        font-size: 1rem;
    }

    .form-section-content {
        padding: var(--spacing-sm);
    }

    .form-title {
        font-size: 1.8rem;
    }

    .click-text {
        font-size: 1.1rem;
    }

    .email-icon {
        width: 60px;
        height: 40px;
    }

    .form-label, .form-control, .form-submit-btn {
        font-size: 0.9rem;
    }

    .form-submit-btn {
        padding: 10px 20px;
    }

    .social-icon-bottom {
        width: 35px;
        height: 35px;
    }

    .operating-hours .section-sub-title {
        font-size: 1.8rem;
    }

    .time-day {
        font-size: 1rem;
    }

    .time-range {
        font-size: 1.2rem;
    }

    .google-map-embed iframe {
        height: 300px;
    }
}
/* 影片容器 - 更精確的尺寸控制 */
.video-container {
    position: relative;
    width: 100%; /* 確保容器本身是響應式的，但不會無限擴張 */
    padding-top: 56.25%; /* 16:9 比例 (高度 / 寬度 * 100%) */
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

    /* 直接針對影片標籤進行尺寸和置中控制 */
    .video-container video.responsive-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important; /* 確保影片佔滿容器，使用 !important 提高優先級 */
        height: 100% !important; /* 確保影片佔滿容器，使用 !important 提高優先級 */
        object-fit: contain; /* 確保影片內容完整顯示在容器內，不會被裁切 */
        margin: 0 auto !important; /* 嘗試置中影片本身（雖然通常會由父容器處理） */
        display: block !important; /* 確保它是區塊元素 */
    }

/* 影片網格佈局 - 最終版本 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* 自動適應，每列最小 320px */
    gap: var(--spacing-lg); /* 網格間距 */
    justify-content: center; /* 水平置中網格項目本身 */
    align-items: flex-start; /* 網格項目頂部對齊 */
    /* 限制整個影片網格區塊的最大寬度，並讓其置中 */
    max-width: 800px; /* 您可以調整這個最大寬度值，例如 700px 或 900px */
    margin: var(--spacing-lg) auto 0 auto; /* 置中整個網格，並調整上方間距 */
}

.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* 在這裡不再設置 max-width 和 width，讓 .video-container 和 .video-grid 共同控制 */
    box-sizing: border-box;
}


/* 確保響應式調整 */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr; /* 單列佈局 */
        gap: var(--spacing-md);
        max-width: 100%; /* 在小螢幕上可以佔滿寬度 */
    }

    .video-item {
        /* 在小螢幕下，單個影片項目可以佔滿其網格單元格 */
    }
}

/* --- 模態框 (Modal) 樣式 - 最終修正版 --- */
.modal {
    display: none; /* 預設完全隱藏，不佔據空間 */
    position: fixed; /* 固定在視口 */
    z-index: 2000; /* 確保在所有內容之上 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* 如果內容超出，可以滾動 */
    background-color: rgba(0, 0, 0, 0.8); /* 半透明黑色背景 */
    backdrop-filter: blur(5px); /* 輕微背景模糊 */
    -webkit-backdrop-filter: blur(5px); /* 兼容 Safari */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; /* 增加 visibility 的過渡 */
    opacity: 0; /* 初始透明 */
    visibility: hidden; /* 初始不可見，但依然佔據渲染空間 */
    pointer-events: none; /* 初始不響應事件 */
    /* 為了防止跑版，這裡不要設置 display: flex，而是在 .modal.show 中才設置 */
}

    .modal.show {
        opacity: 1;
        visibility: visible; /* 顯示時可見 */
        pointer-events: auto;
        display: flex; /* 顯示時使用 flex 佈局來居中內容 */
        justify-content: center;
        align-items: center;
    }

/* ... 其他模態框相關的 CSS (modal-content, modal-image, close-button) 保持不變 ... */

.modal-content {
    position: relative;
    background-color: var(--secondary-color); /* 背景色，可以和網站主題一致 */
    margin: auto; /* 內容居中 */
    padding: 0; /* 圖片不需要內部 padding */
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 90%; /* 最大寬度為父容器的 90% */
    max-height: 90vh; /* 最大高度為視口高度的 90% */
    overflow: hidden; /* 確保圖片圓角 */
    display: flex; /* 再次使用 flex 確保內容居中 */
    justify-content: center;
    align-items: center;
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px; /* 圖片圓角與容器一致 */
    max-height: 85vh; /* 限制圖片的最大高度 */
    object-fit: contain; /* 確保圖片完整顯示，不被裁切 */
}

.close-button {
    color: var(--text-light);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
    z-index: 2001; /* 確保關閉按鈕在圖片和內容之上 */
    background-color: rgba(var(--secondary-color-rgb), 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1; /* 確保垂直居中 */
}

    .close-button:hover,
    .close-button:focus {
        color: var(--primary-color);
        text-decoration: none;
        background-color: rgba(var(--secondary-color-rgb), 0.9);
    }

/* 模態框響應式調整 */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 95vh;
    }

    .modal-image {
        max-height: 90vh;
    }

    .close-button {
        font-size: 30px;
        width: 40px;
        height: 40px;
        top: 10px;
        right: 15px;
    }
}

/* 響應式 Google 地圖容器 */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 比例 (高 / 寬 = 9 / 16 = 0.5625) */
    position: relative;
    height: 0;
}

    .map-responsive iframe {
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        position: absolute;
    }

/* SEO Optimization: Visually hide H1 content for screen readers/SEO while keeping it readable by search engines */
.seo-hidden-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap; /* Ensures the content stays on a single line for screen readers */
    border: 0;
}

/* ============================================== */
/* === 新增：針對按鈕陰影的修正 === */
/* ============================================== */
.btn.btn-primary {
    box-shadow: none !important; /* 強制移除 box-shadow */
    text-shadow: none !important; /* 確保沒有文字陰影，雖然通常不是這個問題 */
}

    /* 如果 hover/focus 狀態也有陰影，也一併移除 */
    .btn.btn-primary:hover,
    .btn.btn-primary:focus {
        box-shadow: none !important;
        text-shadow: none !important;
    }

/* 如果是針對所有 btn 都想移除陰影，可以使用更泛的 .btn */
/*
.btn {
    box-shadow: none !important;
    text-shadow: none !important;
}
.btn:hover,
.btn:focus {
    box-shadow: none !important;
    text-shadow: none !important;
}
*/
