/* style.css */

/* 基本設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding-top: 130px; /* 根據導覽列的實際高度調整此值 */
    /* 這裡假設導覽列大約高 70px，你可能需要根據實際效果微調 */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* 導覽列 */
/* style.css */

/* 導覽列 */
header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    border-bottom: #77aaff 3px solid;

    /* 新增或修改以下屬性來固定導覽列 */
    position: fixed; /* 將導覽列固定在視窗位置 */
    width: 100%;     /* 確保導覽列佔滿整個寬度 */
    top: 0;          /* 固定在視窗最上方 */
    left: 0;         /* 固定在視窗最左方 */
    z-index: 1000;   /* 確保導覽列在其他內容之上 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 增加陰影讓它看起來有浮動效果 */
}

header h1 {
    float: left;
    margin-left: 5%;
}

header nav {
    float: right;
    margin-right: 5%;
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 15px;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header a:hover {
    color: #77aaff;
    font-weight: bold;
}

/* RWD 導覽列 - 漢堡選單 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 5%;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

@media (max-width: 768px) {
    header h1, header nav {
        float: none;
        text-align: center;
    }

    header h1 {
        margin-bottom: 10px;
    }

    header nav ul {
        display: none; /* 預設隱藏 */
        flex-direction: column;
        width: 100%;
    }

    header nav ul.active {
        display: flex; /* 點擊後顯示 */
    }

    header nav li {
        margin-bottom: 20px;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 20px;
    }
}


/* 內容區塊 */
section {
    padding: 20px 0;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.content {
    padding: 0 20px;
}

/* 價目表 */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.price-table th, .price-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.price-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.price-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 圖片響應式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 清潔案例 */
.case-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 0px;
}

.case-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 15px;
}

.case-item img {
    width: 100%;
    height: 300px; /* 固定高度，可依需求調整 */
    object-fit: cover; /* 圖片裁切以填滿 */
    margin-bottom: 10px;
}

.case-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #555;
}

.case-item p {
    font-size: 0.9em;
    color: #777;
    padding: 0 10px;
}

/* 頁尾 */
footer {
    text-align: center;
    padding: 20px 0;
    background: #333;
    color: #fff;
    margin-top: 20px;
}

/* JavaScript 導覽列切換 */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}
/* LINE 懸浮按鈕 */
/* LINE 懸浮按鈕群組 */
.line-floating-group {
    position: fixed; /* 固定定位，讓按鈕群組在畫面中浮動 */
    right: 20px;     /* 距離右邊 20px */
    bottom: 80px;    /* 距離底部 20px */
    z-index: 1000;   /* 確保在其他內容之上 */
    
    display: flex;         /* 啟用 Flexbox 佈局 */
    flex-direction: column; /* 將子元素（LINE 按鈕）垂直排列 */
    gap: 15px;              /* 設定子元素之間的間距為 15px */
    align-items: flex-end; /* 讓按鈕群組內的項目靠右對齊 */
}

/* 個別 LINE 懸浮按鈕的樣式 */
.line-floating-btn {
    /* 這裡不再需要 position, right, bottom 屬性，因為它們由 .line-floating-group 控制 */
    transition: transform 0.3s ease-in-out;
}

.line-floating-btn:hover {
    transform: scale(1.1); /* 鼠標懸停時放大 */
}

.line-floating-btn img {
    width: 60px; /* 圖片大小，維持您原有的設定 */
    height: 60px;
    border-radius: 50%; /* 讓圖片變成圓形 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 增加陰影效果 */
}

/* RWD 調整 LINE 懸浮按鈕大小 */
@media (max-width: 768px) {
    .line-floating-group { /* RWD 時調整群組的定位 */
        right: 15px;
        bottom: 15px;
    }
    .line-floating-btn img {
        width: 50px; /* 行動裝置上圖片小一點 */
        height: 50px;
    }
}
/* 為整個價目表部分添加一個外框 */
    .price-section-frame {
        border: 2px solid #007BFF; /* 藍色邊框，您可以更改顏色 */
        border-radius: 10px; /* 圓角效果 */
        padding: 25px; /* 外框內部留白 */
        margin-top: 30px; /* 與上方內容的間距 */
        margin-bottom: 30px; /* 與下方內容的間距 */
        background-color: #f0f8ff; /* 淺藍色背景，讓外框更突出 */
        box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* 輕微的陰影效果，增加立體感 */
    }

    /* 以下是您之前價目表列表的樣式，與外框樣式可以結合使用 */
    .price-list-container ul {
        list-style: none; /* 移除預設的列表點 */
        padding: 0; /* 移除預設的內邊距 */
        margin: 0; /* 移除預設的外邊距 */
    }

    .price-list-container li {
        background-color: #fff; /* 白色背景 */
        border: 1px solid #e0e0e0; /* 淺灰色邊框 */
        border-radius: 8px; /* 圓角 */
        margin-bottom: 15px; /* 每個項目之間的間距 */
        padding: 20px; /* 內邊距 */
        box-shadow: 0 2px 4px rgba(0,0,0,0.08); /* 輕微陰影 */
    }

    .price-list-container li h3 {
        color: #2c3e50; /* 標題顏色 */
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 1.3em; /* 調整標題字體大小 */
    }

    .price-list-container li p {
        color: #555; /* 段落文字顏色 */
        margin-bottom: 5px; /* 段落間距 */
        line-height: 1.6;
    }

    /* RWD 影片容器 */
    .video-responsive {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 比例 (高/寬 = 9/16 = 0.5625) */
        height: 0;
        overflow: hidden;
        margin-bottom: 20px; /* 影片下方留白 */
        background-color: #000; /* 影片加載前的背景色 */
        border-radius: 8px; /* 圓角 */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 輕微陰影 */
    }

    .video-responsive iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

    /* 以下是您之前價目表列表和外框的樣式，與影片樣式可以結合使用 */
    .price-section-frame {
        border: 2px solid #007BFF; /* 藍色邊框，您可以更改顏色 */
        border-radius: 10px; /* 圓角效果 */
        padding: 25px; /* 外框內部留白 */
        margin-top: 30px; /* 與上方內容的間距 */
        margin-bottom: 30px; /* 與下方內容的間距 */
        background-color: #f0f8ff; /* 淺藍色背景，讓外框更突出 */
        box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* 輕微的陰影效果，增加立體感 */
    }

    .price-list-container ul {
        list-style: none; /* 移除預設的列表點 */
        padding: 0; /* 移除預設的內邊距 */
        margin: 0; /* 移除預設的外邊距 */
    }

    .price-list-container li {
        background-color: #fff; /* 白色背景 */
        border: 1px solid #e0e0e0; /* 淺灰色邊框 */
        border-radius: 8px; /* 圓角 */
        margin-bottom: 15px; /* 每個項目之間的間距 */
        padding: 20px; /* 內邊距 */
        box-shadow: 0 2px 4px rgba(0,0,0,0.08); /* 輕微陰影 */
    }

    .price-list-container li h3 {
        color: #2c3e50; /* 標題顏色 */
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 1.3em; /* 調整標題字體大小 */
    }

    .price-list-container li p {
        color: #555; /* 段落文字顏色 */
        margin-bottom: 5px; /* 段落間距 */
        line-height: 1.6;
    }

    /* 其他可能需要的樣式，例如 .container 的最大寬度 */
    .container {
        max-width: 960px; /* 或您設計的內容最大寬度 */
        margin: 0 auto; /* 居中內容 */
        padding: 20px;
    }   
/* 通用的圖片藝廊容器樣式 */
.image-gallery {
    display: flex; /* 預設為 flex 佈局 */
    flex-wrap: wrap; /* 允許圖片換行 */
    justify-content: center; /* 水平居中對齊圖片 */
    gap: 20px; /* 圖片之間的間距 */
    margin-top: 20px; /* 上方間距 */
}

/* 針對兩張圖片並排的樣式 */
.image-gallery.gallery-2-col img {
    width: calc(50% - 10px); /* 50% 減去一半的 gap (20px / 2) */
    max-width: 450px; /* 您可以根據實際情況設定最大寬度，避免圖片過大 */
    height: auto;
    display: block;
}

/* 針對三張圖片並排的樣式 */
.image-gallery.gallery-3-col img {
    width: calc(33.333% - 13.333px); /* 100% / 3 減去三分之一的 gap (20px / 3) */
    max-width: 300px; /* 您可以根據實際情況設定最大寬度 */
    height: auto;
    display: block;
}

/* 確保所有圖片響應式調整 */
.image-gallery img {
    /* 這個規則會被上面更具體的規則覆蓋，但作為一個通用的安全網 */
    max-width: 100%;
    height: auto;
}