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

body {
    font-family: Arial, sans-serif;
    background-color: #fff5f7;
    text-align: center;
}

header {
    background-color: #ff7eb3;
    color: white;
    padding: 20px;
}

nav {
    background-color: #ff4d6d;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

section {
    padding: 50px 20px;
}

/* 隱藏行動版選單，電腦版顯示 */
.nav-buttons {
    display: flex;
    gap: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* 行動版導航按鈕（隱藏） */
/* 修正 ☰ 漢堡選單的位置 */
.menu-toggle {
    display: block; /* 預設在桌機上隱藏 */
    position: fixed; /* 固定在畫面右上角 */
    top: 15px; /* 往下移動，避免與標題重疊 */
    right: 15px; /* 往右對齊 */
    font-size: 2rem; /* 調整圖示大小 */
    color: white;
    cursor: pointer;
    z-index: 100; /* 確保選單在最上層 */
    background: rgba(0, 0, 0, 0.5); /* 增加背景，讓圖示更清楚 */
    padding: 10px;
    border-radius: 5px; /* 圓角設計，讓按鈕更美觀 */
}

/* ☰ 漢堡選單樣式 */
.menu-toggle {
    display: block; /* 讓桌機 & 手機都能看到 ☰ */
    position: fixed;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

/* 隱藏選單，點擊 ☰ 後才顯示 */
.nav-buttons {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 10px;
    width: 220px;
    text-align: center;
}

/* 點擊 ☰ 後，顯示選單 */
.nav-buttons.active {
    display: flex;
}

/* 選單內按鈕樣式 */
.nav-buttons a {
    display: block;
    padding: 15px;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.nav-buttons a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 行動版專用的選單樣式 */
@media (max-width: 768px) {
    /* 行動版顯示漢堡按鈕 */
    .menu-toggle {
        display: block;
    }

    /* 隱藏導覽按鈕，當展開時才顯示 */
    .nav-buttons {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px; /* 下移，避免與標題重疊 */
        right: 10px;
        background: rgba(0, 0, 0, 0.8);
        padding: 10px;
        border-radius: 10px;
        width: 220px;
        text-align: center;
    }

    /* 導覽按鈕展開狀態 */
    .nav-buttons.active {
        display: flex;
    }

    /* 調整按鈕大小，讓點擊範圍更大 */
    .nav-buttons a {
        display: block;
        padding: 12px;
        font-size: 1rem;
        color: white;
        text-align: center;
        transition: background 0.3s ease;
    }

    .nav-buttons a:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

#gallery {
    background-color: #ffe5ec;
}

/* 縮略圖樣式 */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gallery-container img {
    width: 150px; /* 縮略圖大小 */
    height: auto;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-container img:hover {
    transform: scale(1.1); /* 滑鼠懸停時放大 */
}

/* Lightbox（彈出視窗） */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}


#services {
    background-color: #fff5f7;
    padding: 50px 20px;
    text-align: center;
/*    text-align: left; /* 讓內容靠左對齊 */*/
    max-width: 900px; /* 設定一個最大寬度，避免文字太過分散 */
    margin: 0 auto; /* 讓整個區塊仍保持置中，但內容靠左 */
}

#services h2 {
    color: #d6336c;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

#services h3 {
    color: #d6336c;
    margin-top: 20px;
    font-size: 1.8rem;
}


.service-list, .reasons-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
    text-align: center;
}

.service-list li, .reasons-list li {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center; /* 讓列表內容水平置中 */
    gap: 10px; /* 讓 icon 與文字有適當間距 */
}

.service-list li strong, .reasons-list li strong {
    color: #d6336c;
}

.steps-container {
    display: flex;
    flex-direction: column; /* 讓步驟內容垂直排列 */
    justify-content: center;
    gap: 20px;
    align-items: center; 
    margin-top: 20px;
}

.step {
    background: white;
    padding: 15px;
    border-radius: 10px;
    width: 80%; /* 控制步驟區塊的寬度 */
    max-width: 500px; /* 避免步驟區塊太大 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center; /* 讓步驟內的內容置中 */
    transition: transform 0.3s ease;
}

.step h4 {
    color: #d6336c;
    font-size: 1.4rem;
}

.step p {
    font-size: 1rem;
    color: #444;
}

.step:hover {
    transform: scale(1.05);
}



#cases {
    background-color: #fff0f6; /* 淡粉色背景 */
    padding: 50px 20px;
}

.case-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.case {
    background: white;
    border-radius: 10px;
    padding: 15px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.case img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.case p {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #333;
}

.case:hover {
    transform: scale(1.05); /* 滑鼠懸停時放大 */
}


footer {
    background-color: #ff4d6d;
    color: white;
    padding: 10px;
    margin-top: 20px;
}


#contact {
    background-color: #ffe5ec; /* 粉色背景 */
    padding: 40px 20px;
    text-align: center;
}

#contact p {
    font-size: 1.2rem;
    margin: 10px 0;
}


#contact i {
    color: #d6336c; /* 設定圖示顏色 */
    margin-right: 8px;
    font-size: 1.4rem;
}

#contact a {
    color: #007bff;
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

