/* 基本樣式設置 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: #fff;
    color: #333;
}

/* 行動版選單按鈕樣式 */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* 背景圖片容器樣式 */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

/* 背景圖片樣式 */
.bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 遮罩層樣式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(51, 37, 37, 0.3);
    z-index: -1;
}

/* 導覽列相關樣式 */
.nav-bar {
    position: fixed;
    top: 50px;
    right: 40px;
    z-index: 100;
    display: flex;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.nav-hover-area {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 150px;
    z-index: 99;
    pointer-events: none;
}

.nav-hover-area:hover ~ .nav-bar,
.nav-bar:hover {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin: 0 15px;
}

.nav-item a {
    font-family: 'Frank Ruhl Libre', serif;
    color: #fff;
    text-decoration: none;
    font-size: 1.6rem;
    padding: 10px;
    display: block;
    transition: all 0.5s ease;
    text-align: center;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1),
                4px 4px 8px rgba(0, 0, 0, 0.6),
                5px 5px 10px rgba(0, 0, 0, 0.4);
}

.nav-item > a {
    font-weight: 500;
}

.nav-item a:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
}

/* 下拉選單樣式 */
.dropdown {
    position: absolute;
    top: 90%;
    left: 0;
    transform: translateX(0);
    background-color: rgba(255, 255, 255, 0.5);
    width: auto;
    min-width: 0px;
    border-radius: 0;
    padding: 10px 0;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    z-index: 1000;
}

.dropdown li {
    padding: 0;
    margin: 0;
}

.dropdown li a {
    font-family: 'Frank Ruhl Libre', serif;
    padding: 8px 15px;
    font-size: 1rem;
    white-space: nowrap;
    overflow: visible;
    text-align: left;
    color: #000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.dropdown li a:hover {
    background-color: rgb(88, 49, 25, 0.8);
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-item:hover .dropdown {
    display: block;
}

/* Logo 相關樣式 */
.logo {
    position: fixed;
    top: -20px;
    left: 60px;
    z-index: 101;
    max-width: 200px;
    transition: opacity 0.5s ease;
}

.logo img {
    width: 180px;
    height: auto;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.4))
            drop-shadow(-1px -1px 2px rgba(0, 0, 0, 0.3))
            drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.5));
}

.logo-hover-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 120px;
    z-index: 99;
    pointer-events: none;
}

.logo-hover-area:hover ~ .logo,
.logo:hover {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* 頁面內容框樣式 */
.page-content {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 1200px;
    margin: 150px auto 100px;
    background-color: white;
    padding: 60px;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #333;
}

/* 錨點樣式 */
.section-anchor {
    display: block;
    height: 0;
    margin-top: -80px;
    padding-top: 80px;
    visibility: hidden;
    pointer-events: none;
}

/* 新增獨立覆蓋區塊樣式 */
.independent-overlay {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,1) 50%, 
        rgba(255,255,255,1) 100%);
    pointer-events: none;
    z-index: 0;
    margin-top: 100px; /* 添加100px的上邊距 */
} 
/* Services 頁面特定樣式 */
.services-hero {
    position: relative;
    width: 100%;
    max-height: 800px;
    margin-top: 250px; /* 從150px增加到250px，整體下移100px */
    background: #ffffff; /* 改為純白色背景 */
    overflow: hidden;
}

.services-content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-left: -100px;
    position: relative;
    background: transparent; /* 確保是透明背景 */
}

/* 移除上緣物化效果 */
.services-content-wrapper::before {
    display: none;
}

.services-image-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end; /* 將圖片對齊底部 */
    justify-content: center;
    min-height: 400px;
}

/* 為第一個服務區塊的圖片特別設置霧化效果 */
.services-hero:first-of-type .services-image-container::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30%; /* 右側約30%區域 */
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
    z-index: 3;
    pointer-events: none;
    display: block !important; /* 強制顯示 */
}

.services-hero:first-of-type .services-image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%; /* 上部約30%區域 */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
    z-index: 3;
    pointer-events: none;
    display: block !important; /* 強制顯示 */
}

.services-hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center bottom; /* 圖片定位在底部 */
    z-index: 2;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.services-text-container {
    flex: 1;
    padding: 40px;
    text-align: left;
    color: #333;
    background: transparent; /* 改為透明背景 */
    position: relative;
    max-width: 600px;
    margin-right: 20px;
    margin-top: 100px; /* 從200px減少到100px */
}

.services-text-container::before {
    display: none; /* 移除上緣漸變效果 */
}

.services-title, .services-subtitle, .services-description {
    color: #8B5A2B;
    text-shadow: none;
}

.services-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.services-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.services-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0; /* 移除所有間距 */
}

.services-cards-section, .services-cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: relative;
    z-index: 5;
    gap: 30px;
}

.services-cards-section {
    background-color: transparent;
    background-blend-mode: overlay;
    background-size: cover;
    position: absolute;
    top: 0; /* 調整位置 */
    bottom: 300px;
    left: 0;
    right: 0;
    z-index: 2;
    padding-top: 150px; /* 增加頂部內邊距 */
}

.palm-bg-wrapper {
    position: relative;
    padding: 200px 0 80px 0; /* 減少頂部內邊距 */
    margin-top: -120px; /* 增加負邊距使區塊上移，實現無縫連接 */
    overflow: visible; /* 改為visible允許內容溢出 */
    background-image: url('../images/service_bg_2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100%;
    z-index: 1; /* 降低z-index從2到1，確保在圖片之下 */
}

.palm-bg-wrapper::after, .palm-bg-wrapper::before {
    display: none; /* 完全移除遮罩效果 */
}

.palm-bg-wrapper::after {
    display: none;
}

.palm-bg-wrapper::before {
    display: none;
}

.palm-bg {
    background-color: transparent !important;
    position: relative;
    height: auto; /* 改為自適應高度 */
    min-height: 600px; /* 設置最小高度確保視覺效果 */
    z-index: 1;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05); /* 添加頂部陰影創造立體感 */
    background-blend-mode: normal;
    background-image: none !important;
}

.services-cards-section::before {
    display: none; /* 移除卡片區塊的漸變遮罩 */
}

.service-card {
    flex: 0 0 280px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    padding: 30px;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    z-index: 10;
    border-radius: 0;
    cursor: pointer;
    height: auto;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    transform: translateY(-100px); /* 向上移動100px */
}

/* 添加卡片上方動畫線 */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0; /* 改為從左側開始 */
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #8B5A2B, #442706);
    transform: none; /* 移除水平位移 */
    transition: width .3s ease;
    display: block;
    opacity: 1; /* 確保線條可見 */
}

/* 卡片懸停效果統一 */
.service-card:hover {
    transform: translateY(-105px); /* 保持向上移動位置，小幅度變化 */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 卡片懸停時顯示上方動畫線 */
.service-card:hover::before {
    width: 100%; /* 改為100%寬度 */
}

/* 選定狀態的卡片 */
.service-card.active {
    transform: translateY(-105px); /* 保持向上移動位置 */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255,255,255,0.98);
}

/* 選定狀態顯示上方動畫線 */
.service-card.active::before {
    width: 100%; /* 改為100%寬度 */
    opacity: 1;
    transition: width 0.5s ease-in-out;
}

@keyframes lineAnimation {
    0% { width: 0; }
    100% { width: 100%; } /* 改為100%寬度 */
}

/* 卡片選中時的特殊效果 */
.service-card.selected-animation::before {
    animation: lineAnimation 0.5s ease-in-out forwards;
}

/* 為所有卡片添加統一的內部排版 */
.service-card h3 {
    color: #8B5A2B;
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 500;
    transition: all .3s ease;
    text-align: center; /* 明確設置標題文字居中 */
    width: 100%; /* 確保寬度為100% */
}

.service-card p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
    transition: all .3s ease;
    opacity: 0.9;
    text-align: center; /* 明確設置段落文字居中 */
    width: 100%; /* 確保寬度為100% */
}

.service-card:hover h3,
.service-card.active h3 {
    color: #442706;
}

.service-card:hover p,
.service-card.active p {
    opacity: 1;
}

/* 添加JS動畫類效果 */
@keyframes cardSelectedAnimation {
    0% { transform: translateY(-100px); }
    50% { transform: translateY(-95px); }
    100% { transform: translateY(-100px); }
}

.service-card.selected-animation {
    animation: cardSelectedAnimation 0.5s ease forwards;
}

.services-quote-section {
    position: relative;
    padding: 100px 0;
    background-color: transparent;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/silk-texture-light.png');
    background-size: cover;
    background-attachment: fixed;
}

.services-quote-container {
    width: 80%;
    max-width: 1000px;
    position: relative;
    z-index: 1;
    padding: 0 30px 0 50px;
    min-height: 200px;
}

.services-cards-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 50px 0; /* 增加上下內邊距 */
    margin-top: -80px; /* 將整個容器上移 */
    position: relative;
    z-index: 10; /* 確保在其他元素之上 */
}

/* 第二個重複的service-card定義移除 */
.services-cards-container .service-card {
    transform: translateY(-100px); /* 向上移動100px */
}

.service-card:hover {
    transform: translateY(-105px); /* 保持向上移動位置，小幅度變化 */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 響應式調整 */
@media (max-width: 992px) {
    .services-content-wrapper {
        flex-direction: column;
    }
    
    .services-image-container,
    .services-text-container {
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }
    
    .services-image-container {
        margin-bottom: 20px;
    }
    
    .services-text-container {
        text-align: center;
    }
    
    .services-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 40px; /* 增加卡片之間的間距 */
    }
    
    .service-card {
        width: 80%;
        height: 300px; /* 調整高度 */
        margin-bottom: 0; /* 移除底部間距，使用gap代替 */
        padding: 25px; /* 稍微減小內聯間距 */
    }
    
    .palm-bg-wrapper,
    .palm-bg {
        height: 1200px; /* 增加高度以適應垂直排列的卡片 */
    }
    
    .services-cards-section {
        top: 120px; /* 往上移動，從原始值調整 */
        bottom: 300px; /* 保持原來的底部距離 */
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 60px 0;
    }
    
    .services-text-container {
        padding: 20px;
    }
    
    .services-title {
        font-size: 2.5rem;
    }
    
    .service-card {
        width: 90%;
        height: 280px; /* 調整高度 */
        padding: 22px; /* 進一步減小內聯間距 */
    }
    
    .service-card h3 {
        font-size: 1.6rem; /* 稍微減小標題 */
        margin-bottom: 20px;
    }
    
    .palm-bg-wrapper,
    .palm-bg {
        height: 1400px; /* 進一步增加高度 */
    }
    
    .services-cards-section {
        top: 120px; /* 從150px往上移動30px */
        bottom: 150px; /* 保持原來的底部距離 */
    }
}

@media (max-width: 480px) {
    .services-title {
        font-size: 2rem;
    }
    
    .services-description {
        font-size: 1rem;
    }
    
    .service-card {
        width: 95%;
        height: 260px; /* 在手機上調整高度 */
        padding: 20px; /* 在手機上使用更小的內聯間距 */
    }
    
    .service-card h3 {
        font-size: 1.5rem; /* 再次減小標題 */
        margin-bottom: 15px;
    }
    
    .service-card p {
        font-size: 1rem; /* 減小正文字體大小 */
    }
    
    .palm-bg-wrapper,
    .palm-bg {
        height: 1600px; /* 在手機上最大高度，適應垂直排列的三張卡片 */
        background-attachment: scroll; /* 在移動設備上禁用背景固定，避免性能問題 */
    }
    
    .services-cards-section {
        top: 80px; /* 從100px往上移動20px */
        bottom: 100px; /* 保持原來的底部距離 */
    }
}


/* 服務模態視窗背景遮罩 */
.service-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000; /* 增加z-index確保顯示在最上層 */
    display: none;
    transition: all 0.3s ease; /* 恢復原有設定 */
}

/* 服務模態視窗 */
.service-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 85%;
    max-width: 1000px;
    max-height: 90vh;
    z-index: 1001; /* 增加z-index確保顯示在overlay之上 */
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

/* 模態視窗顯示時的樣式 */
.service-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    display: block;
}

/* 服務模態視窗內容容器 */
.service-modal-content {
    background-color: #fff;
    border-radius: 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

/* 關閉按鈕 */
.close-service-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #8B5A2B;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 202;
}

.close-service-modal:hover {
    color: #000;
}

/* 模態視窗內容區域 */
.service-modal-body {
    padding: 40px;
    max-height: 80vh;
    overflow-y: auto;
}

/* 服務模態視窗標題樣式 */
.service-modal-body h2 {
    font-size: 2.2rem;
    color: #8B5A2B;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-modal-body h3 {
    font-size: 1.6rem;
    color: #6b5a4a;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 400;
}

.service-modal-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #333;
}

/* 服務項目樣式 */
.service-treatment {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 90, 43, 0.2);
    position: relative;
    opacity: 0.95;
    transform: translateY(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-treatment:hover {
    opacity: 1;
    transform: translateY(0);
}

.service-treatment:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.service-treatment h4 {
    font-size: 1.4rem;
    color: #442706;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 500;
}

.service-treatment p {
    margin-bottom: 15px;
}

.service-treatment ul {
    margin: 0 0 15px 20px;
    padding: 0;
}

.service-treatment li {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 8px;
    color: #333;
}

/* 服務卡片互動樣式 */
.service-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(139, 90, 43, 0.1);
    transition: height 0.3s ease;
    z-index: -1;
}

.service-card:hover::after {
    height: 100%;
}

/* 移除向上移動效果，改為純陰影變化 */
.service-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .service-modal {
        width: 95%;
    }
    
    .service-modal-body {
        padding: 30px 20px;
    }
    
    .service-modal-body h2 {
        font-size: 1.8rem;
    }
    
    .service-modal-body h3 {
        font-size: 1.4rem;
    }
    
    .service-treatment h4 {
        font-size: 1.2rem;
    }
}

/* 服務卡片區域錨點樣式 */
#services-cards {
    scroll-margin-top: 100px; /* 確保滾動到服務卡片區域時有適當的頂部間距 */
    padding-top: 50px;
}

/* 錨點平滑滾動 */
html {
    scroll-behavior: smooth;
}

/* 服務類別樣式 */
.service-category {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(139, 90, 43, 0.2);
}

.service-title {
    font-size: 2.2rem;
    color: #8B5A2B;
    margin: 30px 0;
    text-align: left;
    font-weight: 500;
    position: relative;
    padding-left: 20px;
}

.service-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 30px;
    background-color: #8B5A2B;
    border-radius: 0;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

/* 原始服務項目樣式 */
.services-container .service-item {
    width: calc(50% - 15px);
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: auto;
}

.services-container .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.services-container .service-item h4 {
    color: #442706;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(139, 90, 43, 0.3);
    padding-bottom: 10px;
}

.services-container .service-item p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

/* 服務頁面特定樣式 */
.home-page .page-content {
    margin-top: 150px;
}

/* 服務項目區塊樣式 - 新增的圖片服務卡片樣式 */
.service-items-section {
    position: relative;
    width: 100%;
    padding: 40px 0;
    height: 500px; /* 新增固定高度 */
    margin-top: -100px; /* 增加負邊距，使其與第一個服務區塊無縫連接 */
    background-image: url('../images/service_bg_1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* 改為 scroll 而不是 fixed */
    z-index: 5;
    overflow: visible;
}

.service-items-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* 添加半透明白色遮罩 */
    z-index: -1;
}

.service-items-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
    position: relative; /* 確保內容在遮罩層之上 */
    z-index: 1;
}

.service-item {
    position: relative;
    width: 220px;
    height: 340px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) contrast(1.1) brightness(0.9); /* 默認狀態下模糊 */
    transition: all 0.4s ease;
}

.service-item:hover img {
    filter: blur(0) contrast(1.2) brightness(1); /* 懸停時完全清晰 */
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1;
    border-radius: 30px;
    transition: all 0.4s ease;
}

.service-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
    border-radius: 30px;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.service-item:hover::before {
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    background: rgba(255, 255, 255, 0);
    opacity: 0; /* 完全隱藏前遮罩層 */
}

.service-item:hover::after {
    opacity: 0; /* 完全隱藏後遮罩層 */
}

.service-item span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%; /* 寬度縮小至容器的80%，避免文字太貼近邊緣 */
    padding: 0 15px; /* 左右內邊距，確保文字不會貼近邊緣 */
    color: white; /* 文字顏色為白色，確保在深色背景上清晰可見 */
    font-size: 20px; /* 文字大小 */
    text-align: center; /* 文字置中對齊 */
    font-weight: 600; /* 文字粗細，稍微加粗增加可讀性 */
    line-height: 1.4; /* 行高，提高多行文字的可讀性 */
    letter-spacing: 1.2px; /* 增加文字間距離，提升優雅感 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); /* 文字陰影，增強在背景上的可見度 */
    z-index: 3; /* 層級高於背景圖和遮罩層，確保文字始終可見 */
    transform: translate(-50%, -50%); /* 配合top和left的50%實現完美居中 */
    transition: transform 0.3s ease, letter-spacing 0.3s ease; /* 添加變形和字間距過渡效果，使懸停時的變化更平滑 */
}

/* 針對較長文字的卡片進行額外調整 */
.service-item:nth-child(2) span {  /* Facial Rejuvenation Mesotherapy 文字較長 */
    font-size: 18px;  /* 稍微縮小字體 */
    line-height: 1.3; /* 縮小行高 */
}

.service-item:hover::before {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.12);
}

.service-item:hover::after {
    opacity: 0.7;
}

.service-item:hover span {
    transform: translate(-50%, -50%) scale(1.05);
    letter-spacing: 1.5px; /* 懸停時增加更多文字間距 */
}

/* 媒體查詢 - 平板與手機響應式設計 */
@media (max-width: 992px) {
    .service-items-container {
        gap: 20px;
        padding: 30px 15px;
    }
    
    .service-item {
        width: 190px;
        height: 290px;
    }
    
    .service-item span {
        font-size: 18px;
    }
    
    .service-items-section {
        height: 450px; /* 平板尺寸下稍微減小高度 */
    }
}

@media (max-width: 768px) {
    .service-items-container {
        gap: 15px;
        padding: 20px 10px;
    }
    
    .service-item {
        width: 160px;
        height: 240px;
    }
    
    .service-item span {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .service-items-section {
        height: 380px; /* 中等尺寸螢幕進一步減小高度 */
    }
}

@media (max-width: 480px) {
    .service-items-section {
        padding: 30px 0;
        height: auto; /* 手機版使用自動高度，因為卡片垂直排列 */
        min-height: 840px; /* 設定最小高度確保所有內容可見 */
    }
    
    .service-items-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .service-item {
        width: 280px;
        height: 200px;
    }
    
    .service-item span {
        font-size: 18px;
    }
}

/* 強制覆蓋服務項目卡片懸停效果 - 使圖片完全清晰 */
body .service-items-section .service-item:hover::before {
    backdrop-filter: blur(0) !important;
    -webkit-backdrop-filter: blur(0) !important;
    background: rgba(255, 255, 255, 0) !important;
    opacity: 0 !important;
}

body .service-items-section .service-item:hover::after {
    opacity: 0 !important;
}

body .service-items-section .service-item:hover img {
    filter: blur(0) contrast(1.2) brightness(1.1) !important;
}

/* 服務2內部排毒區塊專屬樣式 */
.services-hero.detox-hero {
    background-color: #fff;
    position: relative;
    margin-top: 0; /* 移除上邊距實現無縫連接 */
    padding: 0;
    overflow: visible; /* 改為visible允許圖片溢出 */
    z-index: 4; /* 調整z-index確保正確層疊 */
    width: 100%;
    height: 800px; /* 固定高度800px */
}

/* 移除 detox-hero 霧化效果 */
.detox-hero .services-image-container::before,
.detox-hero .services-image-container::after,
.detox-hero.services-hero::before,
.detox-hero.services-hero::after,
.detox-hero .services-content-wrapper::before,
.detox-hero .services-content-wrapper::after,
.detox-hero .services-text-container::before,
.detox-hero .services-text-container::after {
    display: none !important; /* 強制移除所有霧化偽元素 */
}

.detox-hero .services-image-container {
    flex: 1;
    max-width: 650px;
    position: relative;
    overflow: visible; /* 改為visible允許圖片溢出 */
    border-radius: 0; /* 取消容器圓角 */
    z-index: 10; /* 提高層級避免被其他元素影響 */
    margin-bottom: -200px; /* 增加下移距離，從-80px到-200px */
    width: 80%; /* 設置容器寬度為80% */
    margin-left: auto; /* 水平居中 */
    margin-right: auto;
}

.detox-hero .services-hero-image {
    width: 120%; /* 圖片寬度設為120%，使邊緣部分溢出 */
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0; /* 取消圖片圓角 */
    filter: none !important; /* 強制移除任何濾鏡效果 */
    -webkit-filter: none !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* 添加陰影增強視覺效果 */
    transition: none !important; /* 防止過渡效果造成的模糊 */
    position: relative; /* 添加相對定位 */
    z-index: 20; /* 確保圖片在最上層 */
    transform: scale(0.9) translateY(20%) !important; /* 調整縮放比例和下移百分比，從30%減為20%實現上移50px */
    transform-origin: center center !important; /* 以中心為基準縮放 */
    margin: 0 auto; /* 居中顯示 */
    left: -10%; /* 調整水平位置，使圖片居中 */
}

@media (max-width: 992px) {
    .detox-hero .services-content-wrapper {
        flex-direction: column-reverse;
        gap: 30px;
    }
    
    .detox-hero .services-text-container,
    .detox-hero .services-image-container {
        max-width: 100%;
        padding: 0;
    }
    
    .detox-hero .services-image-container {
        margin-bottom: -150px; /* 增加下移距離 */
        width: 70%; /* 在平板上稍微縮小容器 */
        overflow: visible; /* 確保溢出可見 */
    }
    
    .detox-hero .services-hero-image {
        max-width: 90%; /* 在平板上限制圖片寬度 */
        margin: 0 auto; /* 水平居中 */
        width: 130%; /* 在平板上略微增加寬度 */
        transform: scale(0.8) translateY(30%) !important; /* 調整在平板上的下移距離，從40%減為30%，上移約50px */
        left: -15%; /* 調整水平位置 */
    }
    
    .services-hero.detox-hero {
        margin-top: -20px; /* 在較小螢幕上調整上移距離 */
        overflow: visible; /* 確保溢出可見 */
    }
    
    .palm-bg-wrapper,
    .palm-bg {
        height: 1200px;
        margin-top: -100px; /* 平板設備上的負邊距調整 */
    }
    
    .services-cards-section {
        top: -80px; /* 平板設備上的位置調整 */
        bottom: 300px; /* 保持原來的底部距離 */
    }
}

@media (max-width: 768px) {
    .detox-hero .services-title {
        font-size: 2rem;
    }
    
    .detox-hero .services-subtitle {
        font-size: 1.3rem;
    }
    
    .detox-hero .services-image-container {
        margin-bottom: -100px; /* 在中等尺寸屏幕上調整下移距離 */
        width: 75%; /* 調整中等屏幕的容器寬度 */
        overflow: visible; /* 確保溢出可見 */
    }
    
    .detox-hero .services-hero-image {
        max-width: 85%; /* 在中等屏幕上進一步限制圖片寬度 */
        width: 125%; /* 調整中等屏幕的圖片寬度 */
        transform: scale(0.8) translateY(25%) !important; /* 縮放並下移，從35%減為25%，上移約50px */
        left: -12%; /* 調整水平位置 */
    }
    
    .services-hero.detox-hero {
        margin-top: -10px; /* 在更小螢幕上進一步調整上移距離 */
        overflow: visible; /* 確保溢出可見 */
    }
    
    .palm-bg-wrapper,
    .palm-bg {
        height: 1400px; /* 進一步增加高度 */
        margin-top: -80px; /* 中等設備上的負邊距調整 */
        background-position: center 15%; /* 中等屏幕上調整背景位置 */
    }
    
    .services-cards-section {
        top: -60px; /* 中等屏幕上的位置調整 */
        bottom: 150px; /* 保持原來的底部距離 */
    }
}

@media (max-width: 480px) {
    .detox-hero .services-title {
        font-size: 1.8rem;
    }
    
    .detox-hero .services-subtitle {
        font-size: 1.2rem;
    }
    
    .detox-hero .services-description {
        font-size: 1rem;
    }
    
    .detox-hero .services-image-container {
        margin-bottom: -80px; /* 在手機上調整下移距離 */
        width: 85%; /* 在手機上增加容器寬度 */
        overflow: visible; /* 確保溢出可見 */
    }
    
    .detox-hero .services-hero-image {
        max-width: 90%; /* 在小屏幕上調整圖片寬度比例 */
        width: 120%; /* 手機上調整圖片寬度 */
        transform: scale(0.85) translateY(20%) !important; /* 調整手機上的下移距離，從30%減為20%，上移約50px */
        left: -10%; /* 調整水平位置 */
    }
    
    .services-hero.detox-hero {
        margin-top: 0; /* 在最小螢幕上取消上移，避免與上方元素重疊 */
        overflow: visible; /* 確保溢出可見 */
    }
    
    .palm-bg-wrapper,
    .palm-bg {
        height: 1600px; /* 在手機上最大高度，適應垂直排列的三張卡片 */
        background-attachment: scroll; /* 在移動設備上禁用背景固定，避免性能問題 */
        margin-top: -60px; /* 小屏幕上的負邊距調整 */
        background-position: center 10%; /* 小屏幕上調整背景位置 */
    }
    
    .services-cards-section {
        top: -40px; /* 小屏幕上的位置調整 */
        bottom: 100px; /* 最小屏幕上的下邊距 */
    }
}

.detox-hero .services-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

.detox-hero .services-text-container {
    flex: 1;
    padding-right: 20px;
    text-align: left;
    max-width: 500px;
}

.detox-hero .services-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #62442B;
    letter-spacing: 1px;
    line-height: 1.2;
}

.detox-hero .services-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #62442B;
}

.detox-hero .services-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #62442B;
    margin-top: 0; /* 移除描述文字的上邊距，使整體更緊湊 */
}

@media (max-width: 992px) {
    /* 已有的樣式保留 */
    
    .palm-bg-wrapper,
    .palm-bg {
        min-height: 800px; /* 在平板上增加高度，因為卡片改為垂直排列 */
    }
    
    .services-cards-section {
        padding: 80px 0; /* 在平板上減少內聯間距 */
    }
}

@media (max-width: 768px) {
    /* 已有的樣式保留 */
    
    .palm-bg-wrapper,
    .palm-bg {
        min-height: 900px; /* 進一步增加高度 */
    }
    
    .services-cards-section {
        padding: 60px 0; /* 在平板上減少垂直內聯間距 */
    }
}

@media (max-width: 480px) {
    /* 已有的樣式保留 */
    
    .palm-bg-wrapper,
    .palm-bg {
        min-height: 1000px; /* 在手機上最大高度，適應垂直排列的三張卡片 */
        background-attachment: scroll; /* 在移動設備上禁用背景固定，避免性能問題 */
    }
    
    .services-cards-section {
        padding: 40px 0; /* 在手機上進一步減少垂直內聯間距 */
    }
}

/* 添加JS動畫類效果 */
@keyframes cardSelectedAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}

.service-card.selected-animation {
    animation: cardSelectedAnimation 0.5s ease forwards;
}

/* 調整卡片在不同屏幕尺寸下的高度 */
@media (max-width: 1200px) {
    .service-card {
        height: 200px; /* 較大屏幕使用更高的高度 */
    }
}

@media (max-width: 992px) {
    .services-content-wrapper {
        padding: 30px;
    }
    
    .services-image-container,
    .services-text-container {
        width: 100%;
        float: none;
    }
    
    .services-image-container {
        min-height: 300px;
    }
    
    .services-text-container {
        padding: 30px;
    }
    
    .services-cards-container {
        flex-direction: column;
        max-width: 90%;
    }
    
    .service-card {
        width: 100%;
        height: 160px; /* 平板設備使用較小的高度 */
        margin-bottom: 20px;
    }
    
    .palm-bg-wrapper,
    .palm-bg {
        height: 1200px;
        margin-top: -60px; /* 平板設備上的負邊距 */
    }
    
    .services-cards-section {
        top: -80px; /* 平板設備上的位置調整 */
        bottom: 300px; /* 保持原來的底部距離 */
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 60px 0;
    }
    
    .services-text-container {
        padding: 20px;
    }
    
    .services-title {
        font-size: 2.5rem;
    }
    
    .service-card {
        width: 90%;
        height: 150px; /* 手機設備使用較小的高度 */
        padding: 22px; /* 進一步減小內聯間距 */
    }
    
    .service-card h3 {
        font-size: 1.6rem; /* 稍微減小標題 */
        margin-bottom: 20px;
    }
    
    .palm-bg-wrapper,
    .palm-bg {
        height: 1400px; /* 進一步增加高度 */
        margin-top: -40px; /* 中等屏幕上的負邊距 */
    }
    
    .services-cards-section {
        top: -60px; /* 中等屏幕上的位置調整 */
        bottom: 150px; /* 保持原來的底部距離 */
    }
}

@media (max-width: 480px) {
    .services-title {
        font-size: 2rem;
    }
    
    .services-description {
        font-size: 1rem;
    }
    
    .service-card {
        width: 95%;
        height: 140px; /* 最小屏幕使用最小的高度 */
        padding: 20px; /* 在手機上使用更小的內聯間距 */
    }
    
    .service-card h3 {
        font-size: 1.5rem; /* 再次減小標題 */
        margin-bottom: 15px;
    }
    
    .service-card p {
        font-size: 1rem; /* 減小正文字體大小 */
    }
    
    .palm-bg-wrapper,
    .palm-bg {
        height: 1600px; /* 在手機上最大高度，適應垂直排列的三張卡片 */
        background-attachment: scroll; /* 在移動設備上禁用背景固定，避免性能問題 */
        margin-top: -30px; /* 小屏幕上的負邊距 */
    }
    
    .services-cards-section {
        top: -40px; /* 小屏幕上的位置調整 */
        bottom: 100px; /* 最小屏幕上的下邊距 */
    }
}

/* 服務3體驗區塊專屬樣式 */
.services-hero.experience-hero {
    padding: 0;
    margin: 0; /* 移除上下邊距 */
    margin-top: -80px; /* 調整負邊距，確保與上一個區塊無縫連接 */
    position: relative;
    background-color: #a4958c;
    overflow: visible;
    width: 100%;
    z-index: 3; /* 提高z-index值從2到3，確保在palm-bg-wrapper之上 */
    height: 800px !important;
    min-height: 800px !important;
    max-height: 800px !important;
}

.experience-hero .services-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 改為靠左對齊，為右移做準備 */
    max-width: 100%; /* 修改為100%寬度 */
    margin: 0 auto;
    padding: 0;
    position: relative;
    background-color: #a4958c; /* 確保內容區域也是棕色 */
    padding-left: 10%; /* 增加左側內邊距，使整體內容右移 */
    height: 100%; /* 使內容包裝元素高度與父元素相同 */
    max-height: 800px !important; /* 強制內容區最大高度 */
    z-index: 4; /* 確保內容包裝在更高層 */
}

.experience-hero .services-image-container {
    flex: 0.8; /* 縮小圖片區域比例 */
    max-width: 45%; /* 減少圖片區域的最大寬度 */
    padding: 0;
    margin: 0;
    position: relative;
    overflow: visible; /* 修改為visible允許圖片溢出 */
    border-radius: 0;
    height: 100%; /* 使圖片容器高度佔滿父元素 */
    display: flex;
    align-items: center;
    transform: translateY(-150px); /* 將圖片容器下移100px，原值為-250px */
    z-index: 5; /* 提高z-index確保圖片在最上層，從3增加到5 */
}

.experience-hero .services-hero-image {
    width: 120%; /* 增加圖片寬度從100%到120% */
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0;
    filter: none !important; /* 移除霧化效果 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* 添加陰影增強立體感 */
    transform: scale(1.1); /* 放大圖片從0.9到1.1 */
    max-height: 100%; /* 修改最大高度限制 */
    position: relative;
    z-index: 6; /* 確保圖片本身在最高層 */
}

.experience-hero .services-text-container {
    flex: 1.2; /* 增加文字區域比例 */
    padding: 40px 60px;
    background-color: #a4958c; /* 確保文字容器也是棕色 */
    position: relative;
    max-width: 55%; /* 增加文字區域的最大寬度 */
    color: white; /* 文字顏色為白色 */
    height: 500px; /* 文字區塊高度固定為500px */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直置中文字內容 */
    transform: translateY(-100px); /* 文字區塊上移100px */
    z-index: 4; /* 確保文字在適當的層級 */
}

.experience-hero .services-title {
    font-size: 2.8rem; /* 增加標題字體大小 */
    font-weight: 300;
    margin-bottom: 30px;
    color: white;
    letter-spacing: 1px;
}

.experience-hero .services-text-container ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.experience-hero .services-text-container ul li {
    font-size: 1.6rem; /* 增加列表項目字體大小 */
    font-weight: 300;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: white;
    letter-spacing: 0.5px;
}

.experience-hero .services-text-container ul li:before {
    content: "-";
    position: absolute;
    left: 0;
    top: 0;
}

.experience-hero .services-description {
    font-size: 1.6rem; /* 增加描述字體大小 */
    line-height: 1.6;
    color: white;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-top: 30px;
}

/* 清除所有霧化效果 */
.experience-hero .services-image-container::before,
.experience-hero .services-image-container::after,
.experience-hero.services-hero::before,
.experience-hero.services-hero::after,
.experience-hero .services-content-wrapper::before,
.experience-hero .services-content-wrapper::after,
.experience-hero .services-text-container::before,
.experience-hero .services-text-container::after {
    display: none !important;
}

/* 服務2背景區塊的z-index調整 */
.palm-bg-wrapper {
    position: relative;
    padding: 200px 0 80px 0; /* 減少頂部內邊距 */
    margin-top: -120px; /* 增加負邊距使區塊上移，實現無縫連接 */
    overflow: visible; /* 改為visible允許內容溢出 */
    background-image: url('../images/service_bg_2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100%;
    z-index: 1; /* 降低z-index從2到1，確保在圖片之下 */
}

/* 響應式調整 */
@media (max-width: 992px) {
    .services-hero.experience-hero, 
    .experience-hero .services-content-wrapper,
    .experience-hero .services-text-container {
        background-color: #a4958c; /* 確保所有設備上都有一致的背景色 */
    }
    
    .services-hero.experience-hero {
        margin-top: -40px; /* 平板上減少上移距離 */
        height: 700px !important; /* 強制平板上高度為700px */
        min-height: 700px !important;
        max-height: 700px !important;
    }
    
    .experience-hero .services-content-wrapper {
        flex-direction: column;
        padding-left: 5%; /* 平板上減少左側內邊距 */
        max-height: 700px !important;
    }
    
    .experience-hero .services-image-container,
    .experience-hero .services-text-container {
        max-width: 100%;
        flex: none;
    }
    
    .experience-hero .services-image-container {
        height: auto;
        transform: translateY(-180px); /* 平板上調整上移距離，從-100px增加到-180px */
        overflow: visible; /* 確保能顯示溢出內容 */
    }
    
    .experience-hero .services-hero-image {
        width: 90%; /* 平板上調整圖片寬度 */
        margin: 0 auto; /* 居中顯示 */
    }
    
    .experience-hero .services-text-container {
        padding: 30px;
        transform: translateY(-50px); /* 平板上減少上移距離 */
        height: 400px; /* 平板上減少高度 */
    }
    
    .experience-hero .services-title {
        font-size: 2.4rem; /* 增加平板上的標題字體大小 */
    }
    
    .experience-hero .services-text-container ul li {
        font-size: 1.4rem; /* 增加平板上的列表項目字體大小 */
    }
    
    .experience-hero .services-description {
        font-size: 1.4rem; /* 增加平板上的描述字體大小 */
    }
}

@media (max-width: 768px) {
    .services-hero.experience-hero {
        margin-top: -30px; /* 中等螢幕上進一步減少上移距離 */
        height: 600px !important; /* 強制中等螢幕上高度為600px */
        min-height: 600px !important;
        max-height: 600px !important;
    }
    
    .experience-hero .services-content-wrapper {
        max-height: 600px !important;
        padding-left: 3%; /* 中等螢幕上進一步減少左側內邊距 */
    }
    
    .experience-hero .services-text-container {
        padding: 20px;
        transform: translateY(-30px); /* 中等螢幕上進一步減少上移距離 */
        height: 350px; /* 中等螢幕上減少高度 */
    }
    
    .experience-hero .services-image-container {
        transform: translateY(-150px); /* 中等螢幕上調整上移距離，從-80px增加到-150px */
        overflow: visible; /* 確保能顯示溢出內容 */
    }
    
    .experience-hero .services-hero-image {
        width: 85%; /* 中等螢幕上調整圖片寬度 */
    }
    
    .experience-hero .services-title {
        font-size: 2.2rem; /* 增加中等螢幕上的標題字體大小 */
        margin-bottom: 20px;
    }
    
    .experience-hero .services-text-container ul li {
        font-size: 1.3rem; /* 增加中等螢幕上的列表項目字體大小 */
        margin-bottom: 10px;
    }
    
    .experience-hero .services-description {
        font-size: 1.3rem; /* 增加中等螢幕上的描述字體大小 */
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .services-hero.experience-hero {
        margin-top: -20px; /* 小螢幕上最小上移距離 */
        height: 550px !important; /* 強制小螢幕上高度為550px */
        min-height: 550px !important;
        max-height: 550px !important;
    }
    
    .experience-hero .services-content-wrapper {
        max-height: 550px !important;
        padding-left: 0; /* 小螢幕上移除左側內邊距 */
    }
    
    .experience-hero .services-image-container {
        transform: translateY(-120px); /* 小螢幕上調整上移距離，從-60px增加到-120px */
        overflow: visible; /* 確保能顯示溢出內容 */
    }
    
    .experience-hero .services-hero-image {
        width: 95%; /* 小螢幕上調整圖片寬度 */
    }
    
    .experience-hero .services-text-container {
        transform: translateY(-20px); /* 小螢幕上最小上移距離 */
        height: 300px; /* 小螢幕上最小高度 */
    }
    
    .experience-hero .services-title {
        font-size: 1.6rem;
    }
    
    .experience-hero .services-text-container ul li {
        font-size: 1.1rem;
    }
    
    .experience-hero .services-description {
        font-size: 1.1rem;
    }
}

/* 服務4長壽與AI精準程序區塊專屬樣式 */
.services-hero.rejuvenation-hero {
    padding: 0;
    margin: 0;
    margin-top: -80px; /* 調整負邊距，確保與上一個區塊無縫連接 */
    position: relative;
    background-color: #fff;
    overflow: visible;
    width: 100%;
    height: 900px;
    z-index: 1; /* 確保層級排序 */
}

.rejuvenation-hero .services-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    background-color: #fff; /* 確保內容區域也是白色 */
    height: 100%;
}

.rejuvenation-hero .services-text-container {
    flex: 1;
    padding: 60px;
    background-color: transparent;
    position: relative;
    max-width: 50%;
    color: #b78672; /* 棕色文字，類似截圖 */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rejuvenation-hero .services-title {
    font-size: 2.4rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: #b78672; /* 棕色標題 */
    letter-spacing: 1px;
}

.rejuvenation-hero .services-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: #b78672; /* 棕色副標題 */
    letter-spacing: 0.5px;
}

.rejuvenation-hero .services-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #b78672; /* 棕色描述文字 */
    font-weight: 300;
    letter-spacing: 0.5px;
}

.rejuvenation-hero .services-image-container {
    flex: 1;
    max-width: 50%;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rejuvenation-hero .services-hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: none !important; /* 移除霧化效果 */
    box-shadow: none;
}

/* 清除所有霧化效果 */
.rejuvenation-hero .services-image-container::before,
.rejuvenation-hero .services-image-container::after,
.rejuvenation-hero.services-hero::before,
.rejuvenation-hero.services-hero::after,
.rejuvenation-hero .services-content-wrapper::before,
.rejuvenation-hero .services-content-wrapper::after,
.rejuvenation-hero .services-text-container::before,
.rejuvenation-hero .services-text-container::after {
    display: none !important;
}

/* 響應式調整 */
@media (max-width: 992px) {
    .rejuvenation-hero .services-content-wrapper {
        flex-direction: column-reverse; /* 在平板上將文字區域放在下方 */
    }
    
    .rejuvenation-hero .services-text-container,
    .rejuvenation-hero .services-image-container {
        max-width: 100%;
        flex: none;
    }
    
    .rejuvenation-hero .services-image-container {
        height: 300px;
    }
    
    .rejuvenation-hero .services-text-container {
        padding: 30px;
        height: auto;
    }
    
    .rejuvenation-hero .services-title {
        font-size: 2rem;
    }
    
    .rejuvenation-hero .services-subtitle {
        font-size: 1.6rem;
    }
    
    .services-hero.rejuvenation-hero {
        height: auto;
    }
}

@media (max-width: 768px) {
    .rejuvenation-hero .services-text-container {
        padding: 20px;
    }
    
    .rejuvenation-hero .services-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .rejuvenation-hero .services-subtitle {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .rejuvenation-hero .services-description {
        font-size: 1.1rem;
    }
    
    .rejuvenation-hero .services-image-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .rejuvenation-hero .services-title {
        font-size: 1.6rem;
    }
    
    .rejuvenation-hero .services-subtitle {
        font-size: 1.2rem;
    }
    
    .rejuvenation-hero .services-description {
        font-size: 1rem;
    }
    
    .rejuvenation-hero .services-image-container {
        height: 200px;
    }
}

.rejuvenation-hero .services-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    padding-left: 50px; /* 整體內容右移50px */
    padding-right: 50px; /* 確保右側也有相應的內邊距 */
    position: relative;
    background-color: #fff; /* 確保內容區域也是白色 */
    height: 100%;
}

@media (max-width: 992px) {
    .palm-bg-wrapper,
    .palm-bg {
        padding: 150px 0 60px 0; /* 在平板設備上調整頂部內邊距 */
        margin-top: -40px; /* 在平板設備上進一步上移 */
    }
    
    .services-cards-section {
        padding: 0;
    }
    
    .services-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .service-card {
        width: 90%;
        max-width: 500px;
        flex: none;
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .palm-bg-wrapper,
    .palm-bg {
        padding: 120px 0 40px 0; /* 在手機設備上調整頂部內邊距 */
        margin-top: -30px; /* 在手機設備上進一步上移 */
    }
    
    .services-cards-section {
        padding: 0;
    }
    
    .service-card {
        width: 95%;
        padding: 20px;
        min-height: 250px;
    }
}

.experience-hero .services-image-container::before,
.experience-hero .services-image-container::after,
.experience-hero.services-hero::before,
.experience-hero.services-hero::after,
.experience-hero .services-content-wrapper::before,
.experience-hero .services-content-wrapper::after,
.experience-hero .services-text-container::before,
.experience-hero .services-text-container::after {
    display: none !important;
}

.rejuvenation-hero .services-image-container::before,
.rejuvenation-hero .services-image-container::after,
.rejuvenation-hero.services-hero::before,
.rejuvenation-hero.services-hero::after,
.rejuvenation-hero .services-content-wrapper::before,
.rejuvenation-hero .services-content-wrapper::after,
.rejuvenation-hero .services-text-container::before,
.rejuvenation-hero .services-text-container::after {
    display: none !important;
}


.image-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 35%; /* 稍微增加高度 */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    z-index: 3;
    pointer-events: none;
}

.image-overlay-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 35%; /* 稍微增加寬度 */
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    z-index: 3;
    pointer-events: none;
}

/* 頁尾樣式 */
.static-footer {
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    z-index: 10;
    margin-top: 0; /* 維持頁尾與最後內容的距離不變 */
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info p {
    margin: 3px 0;
    font-size: 0.85rem;
}

.footer-info a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 5px;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 返回頂部按鈕樣式 */
#backToTopBtn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 0; /* 取消圓角 */
    font-size: 18px;
    width: 50px;
    height: 50px;
    display: none;
    transition: background-color 0.3s ease;
}

#backToTopBtn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 服務區塊容器定位調整，保持第一個區塊的下移，但後續區塊無縫連接 */
.services-hero:first-of-type {
    margin-top: 250px; /* 保持與其他服務區塊一致 */
    z-index: 6; /* 增加z-index確保正確層疊 */
}

/* 服務1卡片區塊無縫連接 */
.service-items-section {
    margin-top: 0;
    padding-top: 0;
}

/* Coming Soon 模態視窗樣式 */
.coming-soon-modal .service-modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.coming-soon-text {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    color: #8B5A2B;
    text-align: center;
    margin: 0;
    padding: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    animation: comingSoonPulse 2s infinite ease-in-out;
}

@keyframes comingSoonPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .coming-soon-text {
        font-size: 3rem;
    }
    
    .coming-soon-modal .service-modal-body {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .coming-soon-text {
        font-size: 2.5rem;
    }
    
    .coming-soon-modal .service-modal-body {
        min-height: 150px;
    }
}


/* 預約按鈕樣式 */
#bookingBtn {
    position: fixed;
    bottom: 170px; /* 位置在返回頂部按鈕上方，從160px上移至165px */
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 10px;
    border-radius: 0;
    width: 50px;
    height: 50px;
    display: block; /* 常亮顯示 */
    transition: background-color 0.3s ease;
}

#bookingBtn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

#bookingBtn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 預約按鈕容器 */
.booking-container {
    position: fixed;
    bottom: 170px;
    right: 30px;
    z-index: 99;
    display: flex;
    align-items: center;
}

/* 預約彈出選項 */
.booking-popup {
    position: absolute;
    right: 60px; /* 位於按鈕左側 */
    top: -50px; /* 確保與按鈕上緣對齊 */
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center; /* 垂直居中 */
    height: 50px; /* 與按鈕同高 */
    overflow: hidden;
    width: 0;
}

.booking-container:hover .booking-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    width: 150px; /* 稍微減小寬度 */
}

.booking-option {
    font-family: 'Dancing Script', cursive;
    color: white;
    text-decoration: none;
    padding: 0 20px;
    white-space: nowrap;
    font-size: 24px; /* 增加字體大小 */
    transition: background-color 0.3s ease;
    text-align: center;
    height: 100%; /* 填滿高度 */
    line-height: 50px; /* 垂直居中文字 */
    width: 100%;
}

.booking-option:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    /* 顯示行動版選單按鈕 */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* 調整導覽列樣式 */
    .nav-bar {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 1000;
        transition: right 0.3s ease;
        padding-top: 60px;
    }
    
    .nav-bar.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-item {
        margin: 10px 0;
        width: 100%;
    }
    
    .nav-item a {
        text-align: left;
        padding: 12px 20px;
        font-size: 1.2rem;
    }
    
    /* 下拉選單樣式調整 */
    .dropdown {
        position: static;
        width: 100%;
        background-color: rgba(50, 50, 50, 0.8);
        box-shadow: none;
        padding: 0;
    }
    
    .dropdown li a {
        padding: 10px 40px;
        font-size: 1rem;
    }
    
    /* 點擊觸發下拉選單 */
    .nav-item:hover .dropdown {
        display: none;
    }
    
    .nav-item.active .dropdown {
        display: block;
    }
    
    .logo {
        left: 20px;
        top: 15px;
    }
    
    .logo img {
        width: 150px;
    }
}

/* 手機版服務頁面適配修復 */
@media (max-width: 768px) {
    /* 服務主視覺區塊調整 */
    .services-hero {
        padding: 40px 0 !important;
        overflow: visible !important;
    }
    
    /* 服務內容佈局調整 */
    .services-content-wrapper {
        flex-direction: column !important;
        padding: 20px !important;
        overflow: visible !important;
    }
    
    /* 圖片容器調整 */
    .services-image-container {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        margin-bottom: 30px !important;
        overflow: visible !important;
    }
    
    /* 圖片樣式調整 */
    .services-hero-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* 文字容器調整 */
    .services-text-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 0 !important;
        text-align: center !important;
    }
    
    /* 服務卡片區塊調整 */
    .services-cards-section {
        position: relative !important;
        top: 0 !important;
        bottom: 0 !important;
        padding: 40px 20px !important;
        overflow: visible !important;
        height: auto !important;
        z-index: 5 !important;
    }
    
    /* 棕櫚背景包裝器調整 */
    .palm-bg-wrapper {
        position: relative !important;
        padding: 0 !important;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
        height: auto !important;
        min-height: 800px !important;
        overflow: visible !important;
        background-attachment: scroll !important;
    }
    
    /* 服務卡片容器調整 */
    .services-cards-container {
        flex-direction: column !important;
        gap: 30px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    /* 服務卡片調整 */
    .service-card {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 160px !important;
        padding: 25px 20px !important;
        margin-bottom: 20px !important;
    }
    
    /* 服務項目區塊調整 */
    .service-items-section {
        height: auto !important;
        min-height: 400px !important;
        padding: 40px 20px !important;
    }
    
    /* 服務項目容器調整 */
    .service-items-container {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 20px !important;
    }
    
    /* 服務項目卡片調整 */
    .service-item {
        width: 45% !important;
        height: 180px !important;
    }
}

@media (max-width: 480px) {
    /* 極小螢幕上的服務項目卡片調整 */
    .service-item {
        width: 100% !important;
        height: 200px !important;
        margin-bottom: 15px !important;
    }
    
    /* 極小螢幕上的服務卡片字體大小調整 */
    .service-card h3 {
        font-size: 1.4rem !important;
        margin-bottom: 12px !important;
    }
    
    .service-card p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    /* 服務標題極小螢幕調整 */
    .services-title {
        font-size: 1.8rem !important;
    }
    
    .services-subtitle {
        font-size: 1.2rem !important;
    }
    
    /* 服務詳情按鈕樣式調整 */
    .service-detail-btn {
        font-size: 0.9rem !important;
        padding: 8px 15px !important;
    }
    
    /* 體驗區塊手機版調整 */
    .services-hero.experience-hero {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        margin-top: 20px !important;
        padding: 40px 0 !important;
    }
    
    .experience-hero .services-content-wrapper {
        flex-direction: column !important;
        max-height: none !important;
    }
    
    .experience-hero .services-image-container {
        transform: none !important;
        margin-bottom: 30px !important;
    }
    
    .experience-hero .services-text-container {
        transform: none !important;
        height: auto !important;
    }
    
    /* AI精準程序區塊手機版調整 */
    .services-hero.rejuvenation-hero {
        margin-top: 20px !important;
        padding: 40px 0 !important;
    }
    
    .rejuvenation-hero .services-image-container {
        height: auto !important;
        margin-top: 20px !important;
    }
    
    /* 修復服務模態視窗在手機版上的樣式 */
    .service-modal-content {
        padding: 15px !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
    }
    
    .service-modal-body {
        padding: 10px !important;
    }
    
    /* 確保服務2區塊內部排毒在手機版上正確顯示 */
    .detox-hero .services-content-wrapper {
        flex-direction: column !important;
    }
    
    .detox-hero .services-image-container {
        margin-bottom: 0 !important;
        transform: none !important;
    }
    
    .detox-hero .services-hero-image {
        transform: none !important;
        position: relative !important;
        left: auto !important;
    }
}

/* 模態視窗手機版適配修復 */
@media (max-width: 768px) {
    .service-modal {
        width: 95% !important;
        max-width: 95% !important;
        max-height: 95vh !important;
        overflow-y: auto !important;
    }
    
    .service-modal-content {
        padding: 15px !important;
        border-radius: 0 !important;
    }
    
    .service-modal-body {
        padding: 10px !important;
    }
    
    .service-modal-body h2 {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
    }
    
    .service-modal-body h3 {
        font-size: 1.3rem !important;
        margin-bottom: 12px !important;
    }
    
    .service-treatment {
        margin-bottom: 20px !important;
        padding: 15px !important;
    }
    
    .service-treatment h4 {
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
    }
    
    .service-treatment p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    .close-service-modal {
        top: 10px !important;
        right: 10px !important;
        font-size: 24px !important;
        line-height: 24px !important;
        width: 30px !important;
        height: 30px !important;
    }
}

@media (max-width: 480px) {
    .service-modal {
        width: 98% !important;
        max-width: 98% !important;
    }
    
    .service-modal-body h2 {
        font-size: 1.5rem !important;
    }
    
    .service-modal-body h3 {
        font-size: 1.2rem !important;
    }
    
    .service-treatment h4 {
        font-size: 1.1rem !important;
    }
    
    .coming-soon-text {
        font-size: 2rem !important;
        padding: 30px 15px !important;
    }
}

/* 手機版頁尾和照片修復 */
@media (max-width: 768px) {
    /* 確保內容區塊不會被遮擋 */
    body {
        padding-bottom: 100px !important; /* 為頁尾預留空間 */
    }
    
    /* 修復頁尾定位 */
    .static-footer {
        position: relative !important;
        margin-top: 50px !important; 
        bottom: 0 !important;
        width: 100% !important;
        clear: both !important;
    }
    
    /* 修復手機版照片置中問題 */
    .services-hero-image {
        display: block !important;
        margin: 0 auto !important; 
        max-width: 90% !important;
    }
    
    /* 防止照片覆蓋其他元素 */
    .services-image-container {
        position: relative !important;
        z-index: 1 !important; /* 降低z-index，避免覆蓋其他元素 */
        overflow: visible !important;
        margin-bottom: 50px !important; /* 增加底部空間 */
    }
    
    /* 確保各區塊正確顯示並避免重疊 */
    .services-hero {
        margin-top: 50px !important; /* 減少頂部空間 */
        margin-bottom: 50px !important; /* 增加底部空間 */
        padding: 20px 0 !important;
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        position: relative !important;
        z-index: 1 !important;
        clear: both !important; /* 確保不會有浮動元素 */
    }
    
    /* 防止按鈕被覆蓋 */
    #backToTopBtn, #bookingBtn, .booking-container {
        z-index: 1000 !important; /* 提高按鈕的z-index */
    }
    
    /* 確保排毒區塊和其他特殊區塊正確顯示 */
    .detox-hero, .experience-hero, .rejuvenation-hero {
        padding: 20px 0 50px 0 !important;
        margin-top: 30px !important;
        margin-bottom: 30px !important;
    }
    
    /* 修復服務項目部分 */
    .service-items-section {
        position: relative !important;
        padding: 30px 0 !important;
        margin: 30px 0 !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }
    
    /* 確保服務卡片部分正確顯示 */
    .palm-bg-wrapper {
        position: relative !important;
        padding: 20px 0 !important;
        margin: 30px 0 !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }
    
    /* 修改卡片容器樣式確保正確顯示 */
    .services-cards-container {
        padding: 20px !important;
    }
    
    /* 修復體驗區塊特別樣式 */
    .experience-hero .services-content-wrapper {
        padding: 20px !important;
    }
    
    .experience-hero .services-image-container {
        transform: none !important;
        position: relative !important;
    }
    
    .experience-hero .services-text-container {
        transform: none !important;
        padding: 20px 0 !important;
    }
}

@media (max-width: 480px) {
    /* 極小螢幕特殊調整 */
    .footer-info p {
        font-size: 0.8rem !important;
        margin: 5px 0 !important;
        white-space: normal !important; /* 確保文字可以換行 */
    }
    
    /* 調整頁尾方向為垂直排列 */
    .footer-container p:not(:first-child) {
        display: block !important;
        margin-top: 10px !important;
    }
    
    /* 移動版頁尾中的分隔符改為換行 */
    .footer-container p:nth-child(2) {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* 確保返回頂部和預約按鈕不被覆蓋 */
    #backToTopBtn {
        bottom: 80px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
        padding: 10px !important;
    }
    
    #bookingBtn {
        bottom: 140px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
    }
    
    /* 調整預約按鈕圖示大小 */
    #bookingBtn img {
        width: 24px !important;
        height: 24px !important;
    }
}

/* 頁尾聯絡資訊樣式 */
.mobile-footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.footer-separator {
    display: inline-block;
    margin: 0 5px;
}

@media (max-width: 768px) {
    .mobile-footer-contact {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-address, .footer-phone {
        display: block;
        width: 100%;
        text-align: center;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .footer-address, .footer-phone {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 768px) {
    /* 調整服務內容佈局，修復圖片顯示問題 */
    .services-content-wrapper {
        margin-left: 0 !important;
        padding: 0 20px !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    /* 調整圖片容器 */
    .services-image-container {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto 30px auto !important;
    }
    
    /* 使照片適應容器大小 */
    .services-hero-image {
        width: 90% !important;
        height: auto !important;
        max-width: 90% !important;
        object-fit: contain !important;
        object-position: center !important;
        margin: 0 auto !important;
    }
    
    /* 修正文字容器 */
    .services-text-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 30px auto !important;
        padding: 0 !important;
        text-align: center !important;
    }
    
    /* 特定頁面順序調整 - 讓文字在上，圖片在下 */
    .services-hero .services-content-wrapper {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .services-hero .services-text-container {
        order: 1 !important;
    }
    
    .services-hero .services-image-container {
        order: 2 !important;
    }
    
    /* 移除多餘的邊緣裝飾效果，讓頁面更乾淨 */
    .services-hero:first-of-type .services-image-container::before,
    .services-hero:first-of-type .services-image-container::after,
    .image-overlay-top,
    .image-overlay-right {
        display: none !important;
    }
}

/* 修復手機版按鈕位置和可見度 */
@media (max-width: 768px) {
    /* 預約按鈕和返回頂部按鈕調整 */
    #backToTopBtn, #bookingBtn {
        position: fixed !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        border-radius: 45px !important; /* 改為圓形 */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important; /* 添加陰影增強可見度 */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
        background-color: rgba(0, 0, 0, 0.7) !important; /* 加深背景使其更加明顯 */
    }
    
    #backToTopBtn {
        bottom: 80px !important;
    }
    
    #bookingBtn {
        bottom: 140px !important;
    }
    
    /* 調整按鈕內容 */
    #backToTopBtn {
        font-size: 20px !important;
        line-height: 1 !important;
    }
    
    #bookingBtn img {
        width: 25px !important;
        height: 25px !important;
    }
    
    /* 確保預約彈出選項正確顯示 */
    .booking-popup {
        right: 15px !important;
        bottom: 190px !important; /* 位於預約按鈕上方 */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* 強制提高z-index，確保這些元素始終顯示在最上層 */
    .booking-container, #backToTopBtn, #bookingBtn, .booking-popup {
        z-index: 9999 !important;
    }
}

/* 服務卡片區域手機版修復 */
@media (max-width: 768px) {
    /* 調整palm-bg-wrapper佈局 */
    .palm-bg-wrapper {
        padding: 30px 0 !important;
        background-attachment: scroll !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    /* 調整服務卡片容器 */
    .services-cards-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 20px !important;
        margin: 0 auto !important;
        max-width: 90% !important;
        gap: 30px !important;
    }
    
    /* 調整服務卡片大小和佈局 */
    .service-card {
        width: 85% !important;
        max-width: 300px !important;
        margin: 0 auto 20px auto !important;
        height: auto !important;
    }
    
    /* 調整服務卡片內部元素 */
    .service-card-content {
        padding: 15px !important;
    }
    
    .service-card-image {
        height: 180px !important;
        object-fit: cover !important;
    }
    
    /* 調整服務項目區塊 */
    .service-items-section {
        padding: 30px 0 !important;
        height: auto !important;
        background-attachment: scroll !important;
    }
    
    /* 調整服務項目容器 */
    .service-items-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 20px !important;
    }
    
    /* 調整服務項目 */
    .service-item {
        width: 140px !important;
        height: 220px !important;
        margin: 10px !important;
    }
}

/* 修復手機版logo和內容重疊問題 */
@media (max-width: 768px) {
    /* 調整第一個服務區塊的上方間距，避免與logo重疊 */
    .services-hero:first-of-type {
        margin-top: 120px !important; /* 增加頂部間距，從50px調整為120px */
        padding-top: 80px !important; /* 增加頂部內部間距 */
    }
    
    /* 服務頁面通用內容向下推 */
    .services-hero {
        margin-top: 60px !important; /* 對所有服務區塊增加間距 */
    }
    
    /* 確保logo在上方固定顯示，不會被內容遮擋 */
    .logo {
        position: fixed !important;
        top: 10px !important; /* 調整頂部位置，確保在可見區域 */
        left: 15px !important; /* 調整左側位置 */
        z-index: 1002 !important; /* 確保層級高於其他元素 */
    }
    
    /* 內容區域增加頂部填充，避免被固定的logo遮擋 */
    body.services-page {
        padding-top: 80px !important; /* 為整個頁面增加頂部填充 */
    }
    
    /* 獨立覆蓋區塊調整，避免干擾logo和主要內容 */
    .independent-overlay {
        top: 80px !important; /* 向下移動，避免與logo重疊 */
        margin-top: 50px !important; /* 調整上邊距 */
    }
    
    /* 導覽列懸停區域和logo懸停區域調整 */
    .nav-hover-area, .logo-hover-area {
        top: 80px !important; /* 向下移動，避免與固定元素重疊 */
    }
}

/* 進一步優化手機版內容與logo間距 */
@media (max-width: 768px) {
    /* 增加第一個服務區塊的上方間距，避免與logo重疊 */
    .services-hero:first-of-type {
        margin-top: 150px !important; /* 進一步增加頂部間距，從120px調整為150px */
        padding-top: 100px !important; /* 增加頂部內部間距 */
    }
    
    /* 調整Logo位置與大小 */
    .logo {
        position: fixed !important;
        top: 15px !important; /* 微調頂部位置 */
        left: 15px !important;
        z-index: 1002 !important;
    }
    
    .logo img {
        width: 150px !important; /* 保持logo尺寸 */
    }
    
    /* 調整行動版選單按鈕與logo的相對位置 */
    .mobile-menu-toggle {
        top: 25px !important; /* 調整漢堡選單位置，與logo對齊 */
        right: 15px !important;
        z-index: 1002 !important;
    }
    
    /* 為整個服務頁面增加頂部間距 */
    .services-page .bg-image,
    .services-page .overlay {
        top: 90px !important; /* 背景與遮罩層向下移動 */
        height: calc(100vh - 90px) !important; /* 調整高度 */
    }
    
    /* 獨立覆蓋區塊進一步調整 */
    .independent-overlay {
        top: 150px !important; /* 向下移動與第一個服務區塊對齊 */
    }
    
    /* 確保導覽列在正確位置 */
    .nav-bar {
        top: 0px !important; /* 導覽列從頂部開始 */
        padding-top: 80px !important; /* 為導覽列頂部添加空間，避免與logo重疊 */
    }
}

/* 最終調整手機版頁面頂部間距 */
@media (max-width: 768px) {
    /* 將第一個服務區塊進一步下移，確保不與logo重疊 */
    .services-hero:first-of-type {
        margin-top: 200px !important; /* 再次增加頂部間距，從180px調整為200px */
        padding-top: 30px !important;
    }
    
    /* 確保其他服務區塊也有適當的間距 */
    .services-hero:not(:first-of-type) {
        margin-top: 80px !important;
    }
    
    /* 調整Logo位置，保持原始樣式 */
    .logo {
        position: fixed !important;
        top: 15px !important;
        left: 15px !important;
        z-index: 1002 !important;
        /* 移除背景效果，保持原來樣式 */
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    /* 增加整個頁面頂部的間距 */
    body.services-page {
        padding-top: 120px !important; /* 增加頂部填充，從100px調整為120px */
    }
    
    /* 調整獨立覆蓋區塊位置，確保視覺效果連貫 */
    .independent-overlay {
        top: 200px !important; /* 與第一個服務區塊對齊 */
        height: 200px !important;
    }
}

@media (max-width: 768px) {
    /* 修正背景延伸到頂部 */
    .services-page .bg-image,
    .services-page .overlay {
        top: 0 !important; /* 背景從頂部開始 */
        height: 100vh !important; /* 覆蓋整個視窗高度 */
    }
    
    /* 確保logo和導覽列顯示在背景之上 */
    .logo, .mobile-menu-toggle, .nav-bar {
        z-index: 1005 !important; /* 提高z-index確保顯示在背景之上 */
    }
    
    /* 移除頁面頂部填充，避免白色區域 */
    body.services-page {
        padding-top: 0 !important;
        background-color: transparent !important;
    }
    
    /* 保持內容區域的位置不變 */
    .services-hero:first-of-type {
        margin-top: 200px !important; /* 保持原有的頂部間距 */
    }
    
    /* 確保獨立覆蓋區塊的位置正確 */
    .independent-overlay {
        top: 0 !important; /* 從頂部開始 */
        margin-top: 200px !important; /* 添加適當的上邊距 */
        height: 200px !important;
    }
}
