/* 基本樣式設置 */
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);
}

/* Aivita Signature Natural Lift 特殊底色 */
.signature-natural-lift-hero {
    background-color: #faf7f2 !important;
}

/* 響應式調整 */
@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: 1400px; /* 增加最大寬度以容納6個卡片 */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 15px; /* 減少間距以容納更多卡片 */
    padding: 20px;
    flex-wrap: wrap;
    position: relative; /* 確保內容在遮罩層之上 */
    z-index: 1;
}

.service-item {
    position: relative;
    width: 180px; /* 減少寬度以容納6個卡片 */
    height: 320px; /* 稍微減少高度 */
    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;
    flex: 0 0 180px; /* 防止卡片被壓縮 */
}

.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 12px; /* 減少左右內邊距 */
    color: white; /* 文字顏色為白色，確保在深色背景上清晰可見 */
    font-size: 17px; /* 減少文字大小 */
    text-align: center; /* 文字置中對齊 */
    font-weight: 600; /* 文字粗細，稍微加粗增加可讀性 */
    line-height: 1.3; /* 減少行高 */
    letter-spacing: 1px; /* 減少文字間距離 */
    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 文字較長 */
.service-item:nth-child(6) span {  /* TPE Treatment 文字較長 */
    font-size: 15px;  /* 進一步縮小字體 */
    line-height: 1.2; /* 進一步縮小行高 */
    padding: 0 8px; /* 進一步減少內邊距 */
}

.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.3px; /* 懸停時增加更多文字間距 */
}

/* 媒體查詢 - 平板與手機響應式設計 */
@media (max-width: 1400px) {
    .service-items-container {
        gap: 12px; /* 在較小桌面螢幕上減少間距 */
    }
    
    .service-item {
        width: 170px; /* 稍微減少寬度 */
        height: 300px; /* 稍微減少高度 */
    }
    
    .service-item span {
        font-size: 16px;
    }
}

@media (max-width: 1200px) {
    .service-items-container {
        gap: 10px;
        flex-wrap: wrap; /* 允許換行 */
        justify-content: center;
    }
    
    .service-item {
        width: 160px;
        height: 280px;
    }
    
    .service-item span {
        font-size: 15px;
    }
    
    .service-items-section {
        height: 650px; /* 增加高度以容納可能的兩行顯示 */
    }
}

@media (max-width: 992px) {
    .service-items-container {
        gap: 20px;
        padding: 30px 15px;
        flex-wrap: wrap; /* 平板上允許換行 */
    }
    
    .service-item {
        width: 180px; /* 平板上恢復較大尺寸 */
        height: 290px;
        flex: 0 0 180px;
    }
    
    .service-item span {
        font-size: 17px;
    }
    
    .service-items-section {
        height: 800px; /* 平板尺寸下增加高度容納多行 */
    }
}

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

@media (max-width: 480px) {
    .service-items-section {
        padding: 30px 0;
        height: auto; /* 手機版使用自動高度，因為卡片垂直排列 */
        min-height: 1400px; /* 設定最小高度確保所有內容可見，從840px增加到1400px容納6個卡片 */
    }
    
    .service-items-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        flex-wrap: nowrap; /* 手機版不允許橫向換行 */
    }
    
    .service-item {
        width: 280px;
        height: 200px;
        flex: none;
    }
    
    .service-item span {
        font-size: 18px;
    }
    
    /* 針對手機版較長文字的特殊處理 */
    .service-item:nth-child(2) span,
    .service-item:nth-child(6) span {
        font-size: 16px;
        line-height: 1.2;
    }
}

/* 強制覆蓋服務項目卡片懸停效果 - 使圖片完全清晰 */
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;
    justify-content: flex-end; /* 讓圖片右側對齊，右邊緣保持不動 */
    transform: translateY(0px); /* 再下移100px：由-100px改為0px */
    z-index: 5; /* 提高z-index確保圖片在最上層，從3增加到5 */
}

.experience-hero .services-hero-image {
    width: 100%; /* 以右側為錨點放大，維持右邊緣位置 */
    height: auto;
    display: block;
    object-fit: cover;
    object-position: right center; /* 將視覺焦點錨定在右側 */
    border-radius: 0;
    filter: none !important; /* 移除霧化效果 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* 添加陰影增強立體感 */
    transform-origin: right center !important; /* 錨定右側，放大時右邊不動 */
    transform: scale(1.35); /* 等比放大，向左延伸 */
    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(-50px); /* 還原文字位置至先前設定 */
    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(-80px); /* 再下移100px：由-130px改為-80px */
        overflow: visible; /* 確保能顯示溢出內容 */
    }
    
    .experience-hero .services-hero-image {
        width: auto;
        height: auto;
        margin: 0; /* 讓右側貼齊容器 */
        transform-origin: right center !important;
        transform: scale(1.25); /* 平板略小於桌面放大倍率 */
    }
    
    .experience-hero .services-text-container {
        padding: 30px;
        transform: translateY(0); /* 還原平板文字位置至先前設定 */
        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); /* 還原 768px 斷點文字位置 */
        height: 350px; /* 中等螢幕上減少高度 */
    }
    
    .experience-hero .services-image-container {
        transform: translateY(-50px); /* 再下移100px：由-150px改為-50px */
        overflow: visible; /* 確保能顯示溢出內容 */
    }
    
    .experience-hero .services-hero-image {
        width: auto;
        height: auto;
        margin: 0;
        transform-origin: right center !important;
        transform: scale(1.15); /* 中等螢幕放大倍率再小一點 */
    }
    
    .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: auto;
        height: auto;
        margin: 0;
        transform-origin: right center !important;
        transform: scale(1.08); /* 手機再微放大，右側貼齊 */
    }
    
    .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);
}

/* 台灣網站按鈕樣式 */
.taiwan-site-container {
    position: fixed;
    bottom: 170px;
    right: 30px;
    z-index: 99;
}

#taiwanSiteBtn {
    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;
}

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

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

/* 預約按鈕樣式 */
#bookingBtn {
    position: fixed;
    bottom: 240px;
    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: 240px;
    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.5s 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);
}

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

/* 服務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) {
    /* 顯示行動版選單按鈕 - 使用!important確保樣式生效 */
    .mobile-menu-toggle {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        z-index: 1001 !important;
        width: 30px !important;
        height: 24px !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        cursor: pointer !important;
        /* 移除額外的樣式，與index保持一致 */
        background: transparent !important;
        border: none !important;
        outline: none !important;
        /* 移除額外的padding和margin設置 */
        padding: 0 !important;
        margin: 0 !important;
        min-width: 30px !important;
        min-height: 24px !important;
        /* 基本觸控優化 */
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
    
    .mobile-menu-toggle span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background-color: #fff !important;
        transition: all 0.3s ease !important;
        pointer-events: none !important;
        /* 確保線條可見 */
        opacity: 1 !important;
        transform-origin: center !important;
    }
    
    /* 活動狀態樣式 */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg) !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg) !important;
    }
    
    /* 調整導覽列樣式 - 與index完全一致 */
    .nav-bar {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9); /* 與index一致的純黑色背景 */
        z-index: 1000;
        transition: right 0.3s ease;
        padding-top: 60px;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .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;
        font-family: 'Frank Ruhl Libre', serif; /* 確保使用相同字體 */
        color: #fff;
        text-decoration: none;
        display: block;
        transition: all 0.5s ease;
        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:hover {
        color: rgba(255, 255, 255, 0.7);
        transform: translateY(-3px);
    }
    
    /* 下拉選單樣式調整 - 與index一致 */
    .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;
        font-family: 'Frank Ruhl Libre', serif; /* 確保使用相同字體 */
        color: #fff;
        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);
    }
    
    /* 點擊觸發下拉選單 - 與index一致 */
    .nav-item:hover .dropdown {
        display: none;
    }
    
    .nav-item.active .dropdown {
        display: block;
    }
    
    .logo {
        left: 20px;
        top: 15px;
    }
    
    .logo img {
        width: 150px;
    }
    
    /* 按鈕位置調整 */
    .booking-container {
        bottom: 210px;
        right: 15px;
    }
    
    #bookingBtn {
        bottom: 210px;
        right: 15px;
    }
    
    .taiwan-site-container {
        bottom: 140px;
        right: 15px;
    }
    
    #backToTopBtn {
        bottom: 70px;
        right: 15px;
    }
    
    .coming-soon-text {
        font-size: 3rem;
    }
    
    .coming-soon-modal .service-modal-body {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    /* 按鈕進一步調整 */
    #taiwanSiteBtn, #bookingBtn {
        width: 45px;
        height: 45px;
        padding: 8px;
    }
    
    #taiwanSiteBtn img, #bookingBtn img {
        width: 28px;
        height: 28px;
    }
    
    #backToTopBtn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .booking-option {
        font-size: 20px;
    }
    
    .booking-container:hover .booking-popup {
        width: 120px;
    }
    
    .coming-soon-text {
        font-size: 2.5rem;
    }
    
    .coming-soon-modal .service-modal-body {
        min-height: 150px;
    }
    
    /* 導覽列在480px斷點的特殊調整 - 與index完全一致 */
    .nav-item {
        margin: 0 8px;
    }
    
    .nav-item a {
        font-size: 1rem;
    }
}

/* 頁尾聯絡資訊在行動版的樣式 */
.mobile-footer-contact {
    margin: 5px 0;
}

@media (min-width: 769px) {
    .mobile-footer-contact {
        display: inline;
    }
    
    .mobile-footer-contact:first-of-type:after {
        content: " | ";
    }
}

/* 修正 Longevity 與 iPSC 區塊干涉 */
.longevity-main-hero {
    margin-top: -80px;
    z-index: 2;
}

/* iPSC 區塊獨立分隔樣式 */
/* iPSC 區塊高度壓縮修正 */
.ipsc-family-hero.services-hero.rejuvenation-hero {
    height: auto !important;
    min-height: 560px !important;
    max-height: none !important;
    padding: 35px 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
}

/* iPSC 內層不要吃到 rejuvenation-hero 的 100% 高度 */
.ipsc-family-hero .services-content-wrapper {
    height: auto !important;
    min-height: 480px !important;
    max-height: none !important;
    align-items: center !important;
    background: transparent !important;
}

/* iPSC 文字區高度壓縮 */
.ipsc-family-hero .services-text-container {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding-top: 35px !important;
    padding-bottom: 35px !important;
    margin-top: 0 !important;
    justify-content: center !important;
}

/* iPSC 圖片區高度壓縮 */
.ipsc-family-hero .services-image-container {
    height: 420px !important;
    min-height: 420px !important;
    max-height: 420px !important;
    overflow: hidden !important;
    align-items: center !important;
}

/* iPSC 圖片不要撐高整個 section */
.ipsc-family-hero .services-hero-image {
    height: 100% !important;
    max-height: 420px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* 保留 iPSC 區塊底色與上下分隔 */
.ipsc-family-hero {
    background: linear-gradient(135deg, #f7f1ea 0%, #eadfd2 100%) !important;
    border-top: 1px solid rgba(139, 90, 43, 0.18);
    border-bottom: 1px solid rgba(139, 90, 43, 0.18);
    box-shadow: inset 0 14px 26px rgba(139, 90, 43, 0.05), inset 0 -14px 26px rgba(139, 90, 43, 0.04);
}

.aesthetic-wellness-hero {
    margin-top: 0 !important;
    z-index: 2;
}

/* 手機與平板不要固定 560px */
@media (max-width: 992px) {
    .longevity-main-hero {
        margin-top: -40px;
    }

    .ipsc-family-hero.services-hero.rejuvenation-hero {
        height: auto !important;
        min-height: auto !important;
        padding: 45px 0 !important;
    }

    .ipsc-family-hero .services-content-wrapper {
        min-height: auto !important;
        height: auto !important;
        flex-direction: column;
        padding-left: 30px;
        padding-right: 30px;
    }

    .ipsc-family-hero .services-image-container {
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
        order: 1;
        margin-bottom: 25px;
    }

    .ipsc-family-hero .services-hero-image {
        max-height: 320px !important;
        width: 100%;
        object-fit: cover;
    }

    .ipsc-family-hero .services-text-container {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
        order: 2;
    }
}

@media (max-width: 768px) {
    .ipsc-family-hero.services-hero.rejuvenation-hero {
        padding: 35px 0 !important;
    }

    .ipsc-family-hero .services-content-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ipsc-family-hero .services-image-container {
        height: 260px !important;
        min-height: 260px !important;
        max-height: 260px !important;
    }

    .ipsc-family-hero .services-hero-image {
        max-height: 260px !important;
    }

    .ipsc-family-hero .services-title {
        font-size: 1.8rem;
    }

    .ipsc-family-hero .services-subtitle {
        font-size: 1.35rem;
    }

    .ipsc-family-hero .services-description {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .ipsc-family-hero.services-hero.rejuvenation-hero {
        padding: 30px 0 !important;
    }

    .ipsc-family-hero .services-image-container {
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
    }

    .ipsc-family-hero .services-hero-image {
        max-height: 220px !important;
    }

    .ipsc-family-hero .services-title {
        font-size: 1.55rem;
    }

    .ipsc-family-hero .services-subtitle {
        font-size: 1.15rem;
    }

    .ipsc-family-hero .services-description {
        font-size: 1rem;
    }
}

/* Detox 區塊：降低圖片下凸，避免干涉下方卡片 */
.services-hero.detox-hero {
    height: 720px !important;
    overflow: hidden !important;
    z-index: 4;
}

.detox-hero .services-content-wrapper {
    min-height: 720px !important;
    align-items: center !important;
}

.detox-hero .services-image-container {
    margin-bottom: -40px !important;
    overflow: hidden !important;
    transform: none !important;
    max-height: 620px !important;
    display: flex !important;
    align-items: center !important;
}

.detox-hero .services-hero-image {
    width: 105% !important;
    max-width: 105% !important;
    transform: scale(0.86) translateY(0) !important;
    object-fit: cover !important;
    object-position: center center !important;
    left: 0 !important;
    margin: 0 auto !important;
}

/* Detox 卡片區：取消過度上移，避免與圖片干涉 */
.palm-bg-wrapper {
    margin-top: -40px !important;
    padding: 90px 0 80px 0 !important;
    overflow: hidden !important;
}

.palm-bg-wrapper .services-cards-section {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    padding: 0 !important;
    min-height: auto !important;
}

.palm-bg-wrapper .palm-bg {
    min-height: auto !important;
    height: auto !important;
}

/* Detox 六宮格卡片：縮小尺寸並整理排版 */
.palm-bg-wrapper .services-cards-container {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
    gap: 22px !important;
    width: min(1100px, calc(100% - 48px)) !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 20px 0 40px 0 !important;
    transform: none !important;
}

.palm-bg-wrapper .service-card,
.palm-bg-wrapper .services-cards-container .service-card {
    width: auto !important;
    max-width: none !important;
    min-height: 210px !important;
    height: auto !important;
    flex: none !important;
    padding: 24px 22px !important;
    transform: none !important;
    justify-content: flex-start !important;
    text-align: center !important;
}

.palm-bg-wrapper .service-card:hover,
.palm-bg-wrapper .services-cards-container .service-card:hover,
.palm-bg-wrapper .service-card.active {
    transform: translateY(-6px) !important;
}

.palm-bg-wrapper .service-card h3 {
    font-size: 1.22rem !important;
    line-height: 1.3 !important;
    margin: 0 0 12px 0 !important;
}

.palm-bg-wrapper .service-card p {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

.palm-bg-wrapper .service-card.selected-animation {
    animation: none !important;
    transform: none !important;
}

.palm-bg-wrapper .service-card.selected-animation:hover {
    transform: translateY(-6px) !important;
}

@media (max-width: 992px) {
    .services-hero.detox-hero {
        height: auto !important;
        min-height: auto !important;
        overflow: hidden !important;
        padding: 50px 0 !important;
    }

    .detox-hero .services-content-wrapper {
        min-height: auto !important;
        flex-direction: column-reverse !important;
        gap: 20px !important;
    }

    .detox-hero .services-image-container {
        width: 80% !important;
        max-width: 560px !important;
        max-height: 360px !important;
        margin-bottom: 0 !important;
    }

    .detox-hero .services-hero-image {
        width: 100% !important;
        max-width: 100% !important;
        transform: scale(0.9) translateY(0) !important;
        left: 0 !important;
    }

    .palm-bg-wrapper {
        margin-top: 0 !important;
        padding: 70px 0 !important;
    }

    .palm-bg-wrapper .services-cards-container {
        grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
        width: min(760px, calc(100% - 36px)) !important;
        gap: 18px !important;
    }

    .palm-bg-wrapper .service-card,
    .palm-bg-wrapper .services-cards-container .service-card {
        min-height: 190px !important;
        padding: 22px 20px !important;
    }
}

@media (max-width: 768px) {
    .detox-hero .services-image-container {
        width: 88% !important;
        max-height: 300px !important;
    }

    .palm-bg-wrapper {
        padding: 55px 0 !important;
    }

    .palm-bg-wrapper .services-cards-container {
        grid-template-columns: 1fr !important;
        width: min(520px, calc(100% - 32px)) !important;
        gap: 16px !important;
    }

    .palm-bg-wrapper .service-card,
    .palm-bg-wrapper .services-cards-container .service-card {
        min-height: auto !important;
        padding: 20px 18px !important;
    }

    .palm-bg-wrapper .service-card h3 {
        font-size: 1.18rem !important;
    }

    .palm-bg-wrapper .service-card p {
        font-size: 0.94rem !important;
    }
}

@media (max-width: 480px) {
    .services-hero.detox-hero {
        padding: 40px 0 !important;
    }

    .detox-hero .services-image-container {
        width: 92% !important;
        max-height: 250px !important;
    }

    .detox-hero .services-hero-image {
        transform: scale(0.95) translateY(0) !important;
    }

    .palm-bg-wrapper {
        padding: 45px 0 !important;
    }

    .palm-bg-wrapper .services-cards-container {
        width: calc(100% - 28px) !important;
    }

    .palm-bg-wrapper .service-card,
    .palm-bg-wrapper .services-cards-container .service-card {
        padding: 18px 16px !important;
    }

    .palm-bg-wrapper .service-card h3 {
        font-size: 1.08rem !important;
        margin-bottom: 8px !important;
    }

    .palm-bg-wrapper .service-card p {
        font-size: 0.9rem !important;
        line-height: 1.45 !important;
    }
}

/* Preventive 與 Aesthetic 按鈕區塊置中修正 */
#service-items-section.service-items-section,
#aesthetic-items-section.aesthetic-items-section {
    height: 520px !important;
    min-height: 520px !important;
    padding: 70px 0 60px 0 !important;
    margin-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

#service-items-section .service-items-container,
#aesthetic-items-section .service-items-container {
    width: min(1200px, calc(100% - 48px)) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 22px !important;
    flex-wrap: wrap !important;
}

/* 五個按鈕尺寸稍微整理，不要貼上緣 */
#service-items-section .service-item,
#aesthetic-items-section .service-item {
    width: 180px !important;
    height: 285px !important;
    flex: 0 0 180px !important;
    margin: 0 !important;
}

/* 避免圖片破圖時出現重複 alt 文字造成版面混亂 */
#service-items-section .service-item img,
#aesthetic-items-section .service-item img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 按鈕文字保持置中 */
#service-items-section .service-item span,
#aesthetic-items-section .service-item span {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 82% !important;
    text-align: center !important;
}

#service-items-section .service-item:hover span,
#aesthetic-items-section .service-item:hover span {
    transform: translate(-50%, -50%) scale(1.05) !important;
}

@media (max-width: 992px) {
    #service-items-section.service-items-section,
    #aesthetic-items-section.aesthetic-items-section {
        height: auto !important;
        min-height: 680px !important;
        padding: 70px 0 !important;
    }

    #service-items-section .service-items-container,
    #aesthetic-items-section .service-items-container {
        width: min(760px, calc(100% - 36px)) !important;
        gap: 20px !important;
    }

    #service-items-section .service-item,
    #aesthetic-items-section .service-item {
        width: 180px !important;
        height: 260px !important;
        flex: 0 0 180px !important;
    }
}

@media (max-width: 768px) {
    #service-items-section.service-items-section,
    #aesthetic-items-section.aesthetic-items-section {
        min-height: auto !important;
        padding: 55px 0 !important;
    }

    #service-items-section .service-items-container,
    #aesthetic-items-section .service-items-container {
        width: min(560px, calc(100% - 32px)) !important;
        gap: 18px !important;
    }

    #service-items-section .service-item,
    #aesthetic-items-section .service-item {
        width: 160px !important;
        height: 230px !important;
        flex: 0 0 160px !important;
    }

    #service-items-section .service-item span,
    #aesthetic-items-section .service-item span {
        font-size: 15px !important;
        line-height: 1.25 !important;
    }
}

@media (max-width: 480px) {
    #service-items-section.service-items-section,
    #aesthetic-items-section.aesthetic-items-section {
        padding: 45px 0 !important;
    }

    #service-items-section .service-items-container,
    #aesthetic-items-section .service-items-container {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 18px !important;
    }

    #service-items-section .service-item,
    #aesthetic-items-section .service-item {
        width: 280px !important;
        height: 190px !important;
        flex: none !important;
    }

    #service-items-section .service-item span,
    #aesthetic-items-section .service-item span {
        font-size: 17px !important;
    }
}

/* =========================================================
   Final Mobile Fix: Experience image should not be cropped
   This must stay at the very end of services.css.
========================================================= */

@media (max-width: 768px) {
    body.services-page .services-hero.experience-hero {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 45px 0 !important;
        overflow: visible !important;
        display: block !important;
    }

    body.services-page .services-hero.experience-hero .services-content-wrapper {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        width: calc(100% - 28px) !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 22px !important;
        overflow: visible !important;
        transform: none !important;
    }

    body.services-page .services-hero.experience-hero .services-image-container {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        overflow: visible !important;
        display: block !important;
        transform: none !important;
        border-radius: 16px !important;
        background: transparent !important;
    }

    body.services-page .services-hero.experience-hero .services-hero-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        display: block !important;
        margin: 0 auto !important;
        padding: 0 !important;
        object-fit: contain !important;
        object-position: top center !important;
        transform: none !important;
        border-radius: 16px !important;
    }

    body.services-page .services-hero.experience-hero .services-text-container {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        margin: 0 auto !important;
        padding: 0 10px !important;
        overflow: visible !important;
        transform: none !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    body.services-page .services-hero.experience-hero {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 36px 0 !important;
        overflow: visible !important;
    }

    body.services-page .services-hero.experience-hero .services-content-wrapper {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        transform: none !important;
    }

    body.services-page .services-hero.experience-hero .services-image-container {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        transform: none !important;
    }

    body.services-page .services-hero.experience-hero .services-hero-image {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: top center !important;
        transform: none !important;
    }

    body.services-page .services-hero.experience-hero .services-text-container {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        transform: none !important;
    }
}

.service-learn-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 13px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c8a96a, #f2dfaa);
    color: #10243e;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-learn-more-btn:hover,
.service-learn-more-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

@media (max-width: 768px) {
    .service-learn-more-btn {
        margin-top: 18px;
        padding: 12px 22px;
    }
}

/* =========================================================
   Aivita Signature Natural Lift - Section Separation
   Keep this at the end of services.css
========================================================= */

body.services-page .signature-natural-lift-hero.services-hero {
    background: linear-gradient(135deg, #f6eadf 0%, #fff7ef 48%, #efe0d3 100%) !important;
    border-top: 1px solid rgba(139, 90, 43, 0.22) !important;
    border-bottom: 1px solid rgba(139, 90, 43, 0.22) !important;
    box-shadow:
        inset 0 18px 34px rgba(139, 90, 43, 0.07),
        inset 0 -18px 34px rgba(139, 90, 43, 0.05) !important;
    margin-top: 0 !important;
    padding: 45px 0 !important;
}

/* Let the inner layer stop inheriting the plain white rejuvenation background. */
body.services-page .signature-natural-lift-hero .services-content-wrapper {
    background: transparent !important;
}

body.services-page .signature-natural-lift-hero .services-text-container {
    background: rgba(255, 255, 255, 0.46) !important;
    border: 1px solid rgba(139, 90, 43, 0.16) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 42px rgba(139, 90, 43, 0.10) !important;
    padding: 52px 48px !important;
}

body.services-page .signature-natural-lift-hero .services-title,
body.services-page .signature-natural-lift-hero .services-subtitle,
body.services-page .signature-natural-lift-hero .services-description {
    color: #6f4329 !important;
}

body.services-page .signature-natural-lift-hero .services-image-container {
    background: rgba(255, 255, 255, 0.28) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 18px 46px rgba(139, 90, 43, 0.12) !important;
}

body.services-page .signature-natural-lift-hero .services-hero-image {
    border-radius: 24px !important;
    box-shadow: none !important;
}

body.services-page .signature-natural-lift-hero .service-learn-more-btn {
    background: linear-gradient(135deg, #b88954, #f4d99f) !important;
    color: #10243e !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

@media (max-width: 992px) {
    body.services-page .signature-natural-lift-hero.services-hero {
        padding: 42px 0 !important;
    }

    body.services-page .signature-natural-lift-hero .services-content-wrapper {
        padding-left: 24px !important;
        padding-right: 24px !important;
        gap: 28px !important;
    }

    body.services-page .signature-natural-lift-hero .services-text-container {
        padding: 34px 26px !important;
        border-radius: 20px !important;
    }

    body.services-page .signature-natural-lift-hero .services-image-container,
    body.services-page .signature-natural-lift-hero .services-hero-image {
        border-radius: 20px !important;
    }
}

@media (max-width: 480px) {
    body.services-page .signature-natural-lift-hero.services-hero {
        padding: 34px 0 !important;
    }

    body.services-page .signature-natural-lift-hero .services-content-wrapper {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    body.services-page .signature-natural-lift-hero .services-text-container {
        padding: 28px 20px !important;
    }
}

/* =========================================================
   Aivita Signature Natural Lift - Remove Inner Container Frames
   Keep content visible, remove only visible boxes/borders/shadows
========================================================= */

body.services-page .signature-natural-lift-hero .services-text-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body.services-page .signature-natural-lift-hero .services-image-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

body.services-page .signature-natural-lift-hero .services-hero-image {
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.services-page .signature-natural-lift-hero.services-hero {
    background: linear-gradient(135deg, #f6eadf 0%, #fff7ef 48%, #efe0d3 100%) !important;
    border-top: 1px solid rgba(139, 90, 43, 0.22) !important;
    border-bottom: 1px solid rgba(139, 90, 43, 0.22) !important;
    box-shadow:
        inset 0 18px 34px rgba(139, 90, 43, 0.07),
        inset 0 -18px 34px rgba(139, 90, 43, 0.05) !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 45px 0 !important;
    margin-top: 0 !important;
    overflow: visible !important;
}

body.services-page .signature-natural-lift-hero .services-content-wrapper {
    background: transparent !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}
