/* --- 核心變數 --- */
:root {
    --primary-color: #48625a;
    --accent-color: #cbaf90;
    --line-color: #06C755;
    --bg-light: #f6f4f2;
    --white: #ffffff;
    --gold-gradient: linear-gradient(135deg, #cbaf90 0%, #a88d6d 100%);
    --shadow: 0 10px 20px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
}


/* --- 全站 Loading 載入樣式 --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* 初始背景純白 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 確保在最上層 */
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loading-content {
    text-align: center;
}

.loading-image-box {
    width: 200px; /* 根據您的照片調整大小 */
    margin-bottom: 30px;
    opacity: 0;
    transform: scale(0.95);
    animation: loadingImageFade 1.5s ease-out forwards;
}

.loading-photo {
    width: 100%;
    height: auto;
    /* 這裡可以加入您之前想要的圓角或濾鏡 */
    border-radius: 15px; 
}

/* 載入條設計 */
.loading-bar-container {
    width: 150px;
    height: 2px;
    background: rgba(189, 167, 104, 0.1); /* 淺金底色 */
    margin: 0 auto 15px;
    position: relative;
    overflow: hidden;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: #bda768; /* 品萱金 */
    position: absolute;
    animation: loadingProgress 2s ease-in-out infinite;
}

.loading-text {
    font-family: "Cactus Classical Serif", serif;
    color: #bda768;
    font-size: 14px;
    letter-spacing: 3px;
    opacity: 0.6;
}

/* 動畫定義 */
@keyframes loadingImageFade {
    to { opacity: 1; transform: scale(1); }
}

@keyframes loadingProgress {
    0% { left: -100%; width: 50%; }
    100% { left: 100%; width: 50%; }
}

/* 隱藏狀態 */
#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}



body {
    margin: 0; 
    padding: 0;
    font-family: 'Noto Sans TC', sans-serif;
    color: #333;
    overflow-x: hidden;
	letter-spacing:0.05em;

    /* --- 背景圖設定 --- */
    background-image: url("../images/body_background.jpg"); /* 修正為相對路徑 */
    background-attachment: fixed;    /* 核心語法：固定背景，不隨捲軸移動 */
    background-size: cover;          /* 核心語法：強制圖片覆蓋整個螢幕寬高 */
    background-position: center;     /* 圖片置中對齊 */
    background-repeat: no-repeat;    /* 避免圖片重複 */
    background-color: var(--bg-light); /* 當圖片尚未載入時的備用背景色 */
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* --- Header & Navigation --- */
#main-header {
    background-color: #ffffff; /* 修正：背景改為白色 */
    position: sticky; top: 0; z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-flex {
    display: flex; justify-content: space-between; align-items: center;
    height: 80px; 
}

.logo img {
    height: 70px; /* 修正：設定 LOGO 高度 */
    width: auto;
    display: block;
}

.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-menu li a { 
    color: var(--primary-color); /* 修正：文字改為深綠色 */
    text-decoration: none; padding: 10px 20px; 
    font-size: 18px; font-weight: 500; transition: 0.3s ease;
}

.nav-menu li a:hover {
    color: #B46267;
}

/* 漢堡按鈕修正 */
.mobile-toggle {
    display: none; cursor: pointer; width: 30px; height: 21px;
    flex-direction: column; justify-content: space-between;
}

.mobile-toggle span {
    display: block; width: 100%; height: 3px; 
    background-color: var(--primary-color); /* 修正：漢堡線改為深綠色 */
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* 變形成 X 特效 */
.mobile-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- 輪播大圖 --- */
.hero-section {
    position: relative; height: 70vh; width: 100%;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
}

.hero-slider {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}

.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease-in-out;
}

.slide.active { opacity: 1; }

.hero-section::after {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.3); z-index: 0;
}

.hero-content { position: relative; z-index: 3; color: #fff; text-align: center; }


/* --- 1. Hero Content 字體更換 --- */
.hero-content h1, 
.hero-content h2 {
    font-family: "Cactus Classical Serif", serif; /* 更換為指定的古典襯線字體 */
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); /* 增加陰影確保在淺色圖上依然清晰 */
    font-weight: 400;
    font-style: normal;
}
.hero-content h3 {
	font-size: 10px;
}

/* --- Hero Slider 縮放銜接完美版 --- */
.hero-section {
    position: relative;
    height: 70vh;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    /* 2秒淡入淡出，增加流暢感 */
    transition: opacity 2s ease-in-out;
    will-change: transform, opacity;
}

/* [修正重點] 將動畫時間縮短為 6s，使其在 5s 切換時剛好接近放大目標 */
.slide.active {
    opacity: 1;
    z-index: 2;
    animation: kenburns 6s ease-out forwards; 
}

/* [修正重點] 銜接縮放比例設定為 1.08，配合 6s 的動畫節奏 */
.slide.last-active {
    opacity: 0;
    z-index: 1;
    transform: scale(1.08); 
    transition: opacity 2s ease-in-out;
}

@keyframes kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.08); } /* 微調放大比例，視覺感更高級不突兀 */
}


/* --- 服務卡片區域整合修正 --- */
.service-grid {
    display: grid;
    gap: 30px; /* 增加間距讓畫面更透氣 */
    padding: 40px 0;
    /* RWD 設定：桌機三欄，平板兩欄，手機一欄 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column; /* 確保內容由上而下排列 */
    height: auto; /* 讓高度由內容撐開 */
}

/* 圖片容器：控制顯示比例 */
.service-img {
    width: 100%;
    height: 250px; /* 您準備好的 4:3 圖片會在此區域完美呈現 */
    overflow: hidden;
    background-color: #f0f0f0; /* 圖片載入前的底色 */
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 核心：保證圖片不縮放變形 */
    transition: transform 0.5s ease;
}

/* 服務標題：加粗且置中 */
.service-card h3 {
    padding: 25px 15px;
    margin: 0;
    font-size: 22px; /* 略微放大增加質感 */
    color: var(--primary-color);
    font-weight: 800; /* 使用強烈加粗，呼應品牌宣言 */
    letter-spacing: 0.15em;
    text-align: center;
    background: #fff;
}

/* 懸停效果：卡片上浮與圖片放大 */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

/* 手機版微調 */
@media (max-width: 768px) {
    .service-img {
        height: 250px; /* 手機版稍微縮小圖片高度 */
    }
    .service-card h3 {
        font-size: 19px;
    }
}



/* 預約按鈕主體 */
.premium-btn {
    display: inline-flex;
    align-items: center;
    background: var(--gold-gradient);
    color: #fff !important;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    box-shadow: var(--shadow);
    
    /* 關鍵：轉場動畫設定 */
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    top: 0;
}

/* 滑入（Hover）效果補強 */
.premium-btn:hover {
    transform: translateY(-5px); /* 向上浮起 */
    box-shadow: 0 15px 30px rgba(0,0,0,0.2); /* 陰影加深 */
    letter-spacing: 2px; /* 文字微微撐開的呼吸感 */
    background: linear-gradient(135deg, #d4bc9d 0%, #b89d7d 100%); /* 顏色微亮變換 */
}

/* 按鈕內的箭頭動畫 */
.btn-arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.premium-btn:hover .btn-arrow {
    transform: translateX(5px); /* 箭頭向右滑動 */
}

/* --- 右下角漂浮預約按鈕：玫瑰金漸層版 --- */
.floating-cta {
    position: fixed; 
    bottom: 30px; 
    right: 30px;
    
    /* 玫瑰金漸層語法 (由左上至右下) */
    background: linear-gradient(135deg, #e5b3a6 0%, #d4a093 50%, #b88a7e 100%);
    
    color: white !important;
    padding: 12px 25px; 
    border-radius: 50px; 
    display: flex;
    align-items: center; 
    text-decoration: none; 
    z-index: 10000;
    
    /* 增加更有深度的陰影，讓玫瑰金更有立體感 */
    box-shadow: 0 8px 20px rgba(184, 138, 126, 0.4);
    
    /* 動畫設定 */
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.floating-cta:hover {
    /* 滑入時亮度稍微提升，增加互動感 */
    filter: brightness(1.05);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(184, 138, 126, 0.5);
}

/* 脈動動畫調整：讓縮放效果更滑順 */
@keyframes pulse { 
    0% { transform: scale(1); } 
    50% { transform: scale(1.05); } 
    100% { transform: scale(1); } 
}

/* --- 確保按鈕區塊置中且不影響動畫 --- */
.btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0 40px;
    width: 100%;
    clear: both;
}

/* LINE 圖示容器設定 */
.line-icon {
    width: 24px;   /* 設定圖示寬度 */
    height: 24px;  /* 設定圖示高度 */
    margin-right: 10px; /* 與文字的間距 */
    display: flex;
    align-items: center;
}

/* 確保 SVG 填滿容器並呈現白色 */
.line-icon svg {
    width: 100%;
    height: 100%;
    fill: #ffffff; /* 圖示顏色改為純白，與玫瑰金最搭 */
}

/* 調整原本 floating-cta 的 padding，讓比例更美 */
.floating-cta {
    padding: 10px 22px; 
    font-weight: 700;
    letter-spacing: 1px;
}

/* --- 回到頂部按鈕樣式 (優化版) --- */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    opacity: 0; 
    visibility: hidden;
    /* 讓透明度與位置變換更滑順，但不影響點擊速度 */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, bottom 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top.show {
    opacity: 0.5; /* 讓它半透明，不干擾視覺 */
    visibility: visible;
    bottom: 110px;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.back-to-top:hover {
    opacity: 1; /* 滑鼠移上去時才全亮 */
    background: var(--accent-color);
    transform: translateY(-5px);
}


@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }



/* --- 品牌宣言區塊 (極簡精品版) --- */
.brand-manifesto {
    padding: 100px 20px;
    background-color: rgba(252, 250, 248, 0.7);
    text-align: center;
}

.manifesto-content {
    max-width: 900px;
    margin: 0 auto;
}

.manifesto-badge {
    display: inline-block;
    color: var(--accent-color); /* 玫瑰金 */
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 30px;
    font-weight: 600;
}

.manifesto-text {
	font-weight: 400;
    font-family: "Cactus Classical Serif", serif;
    color: var(--primary-color); /* 深綠色 */
    font-size: 26px; /* 較大的字體更有氣勢 */
    line-height: 2.2; /* 寬廣的行距營造放鬆感 */
    margin: 0 auto;
}

.manifesto-text strong {
    color: var(--accent-color); /* 維持玫瑰金 */
    font-weight: 500;           /* 從 500 提升至 800，讓字體明顯加粗 */
    letter-spacing: 0.02em;    /* 稍微加寬一點點字距，防止加粗後筆畫太擠 */
    text-shadow: 0.5px 0 0 var(--accent-color); /* 微調視覺厚度，讓文字更有立體感 */
}

.manifesto-line {
    width: 60px;
    height: 1px;
    background: var(--accent-color);
    margin: 40px auto 0;
}


/* --- 4.5 品牌故事區塊 - Logo 反光特效版 --- */
.about-brand-section {
    padding: 100px 0;
    background-color: rgba(252, 250, 248, 0.6); 
    overflow: hidden;
}

.about-brand-flex {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 50px;
}

/* 1. Logo 容器：定義原本的捲動淡入 fadeInUp */
.brand-intro-logo-box {
    flex: 1;
    text-align: center;
    position: relative; /* 為偽元素定義定位基準 */
    overflow: hidden;    /* 隱藏超出容器的反光 */
    border-radius: 10px; /* 增加一點微圓角 */
    
    /* 原本的淡入預設狀態 */
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out; /* 這是 JS 觸發的過渡 */
}

/* 當 JS 加入 .show 時的淡入狀態 */
.brand-intro-logo-box.show {
    opacity: 1;
    transform: translateY(0);
}

/* 2. 製作反光特效 (使用 ::after 偽元素) */
.brand-intro-logo-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; /* 初始位置在 Logo 左側外部 */
    width: 60%;   /* 光束寬度 */
    height: 100%;
    
    /* 定義淺淺的白色斜向漸層光束 */
    background: linear-gradient(
        105deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.05) 40%, /* 最淺處 */
        rgba(255, 255, 255, 0.7) 50%,  /* 核心反光處 (30% 不透明度) */
        rgba(255, 255, 255, 0.05) 60%, /* 最淺處 */
        rgba(255, 255, 255, 0) 100%
    );
    
    transform: skewX(-20deg); /* 讓光束斜向，增加動感 */
}

/* 3. 當 Logo 淡入完成 (.show) 後，啟動反光循環動畫 */
.brand-intro-logo-box.show::after {
    /* 核心指令：執行 shineLoop 動畫
       持續 3 秒，線性速度，延遲 1 秒 (等 Logo 完全淡入)，無限循環 */
    animation: shineLoop 3s linear 1s infinite;
}

/* 4. 定義反光循環動畫關鍵幀 */
@keyframes shineLoop {
    0% {
        left: -150%; /* 從左側外部開始 */
    }
    30% {
        left: 150%;  /* 快速橫跨 Logo 到右側外部 */
    }
    100% {
        left: 150%;  /* 在右側外部停留，造成動畫間歇感 */
    }
}

.intro-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
    display: block;
    margin: 0 auto;
}

.brand-intro-content {
    flex: 1.2;
}

.brand-intro-content h2 {
    font-family: "Cactus Classical Serif", serif;
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 800;
}

.brand-intro-content p {
    font-size: 18px;
    line-height: 2;
    color: #555;
    margin-bottom: 30px;
}

/* 下方按鈕樣式 */
.view-more-btn {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-radius: 50px; /* 圓角按鈕 */
}

.view-more-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(203, 175, 144, 0.3);
}

/* 手機版 RWD 適應 */
@media (max-width: 980px) {
    .about-brand-flex {
        flex-direction: column; /* 改為垂直排列 */
        text-align: center;
    }
    .intro-logo {
        max-width: 200px;
    }
}



/* 手機版適應 (RWD) */
@media (max-width: 980px) {
    .brand-manifesto {
        padding: 60px 15px;
    }
    .manifesto-text {
        font-size: 16px; /* 手機版縮小字體避免跑版 */
        line-height: 2;
    }
    .manifesto-badge {
        font-size: 12px;
        margin-bottom: 20px;
    }
}


/* --- 服務項目標題優化 (同步品牌宣言風格) --- */
.section-title {
    text-align: center;
    padding: 60px 0 20px;
}

.section-title h1 {
    /* 同步使用品牌宣言的襯線體 */
    font-family: "Cactus Classical Serif", serif;
    color: var(--primary-color);
    font-size: 36px;
    /* 同樣設定為極致加粗 */
    font-weight: 800; 
    letter-spacing: 0.15em;
    margin-bottom: 15px;
}

.section-title p {
    /* 同步副標題的優雅風格 */
    font-family: "Cactus Classical Serif", serif;
    color: #666;
    font-size: 18px;
    line-height: 1.8;
    letter-spacing: 0.05em;
    font-weight: 400;
}

/* 手機版微調 */
@media (max-width: 768px) {
    .section-title h1 {
        font-size: 28px;
    }
    .section-title p {
        font-size: 16px;
    }
}









/* --- 完整 RWD 手機版優化區塊（已整合 Logo 加大與選單動畫） --- */
@media (max-width: 980px) {
    /* 1. Header 與 Logo 調整 */
    .header-flex {
        height: 80px; 
        display: flex;
        align-items: center; 
        justify-content: space-between;
    }

    .logo img { 
        height: 55px; /* 加大後的 Logo 尺寸 */
        width: auto;
        display: block;
    }

    /* 2. 漢堡按鈕顯示 */
    .mobile-toggle { display: flex; }

    /* 3. 選單背景滿版與滑順動畫 */
    .nav-menu {
        display: block; 
        position: absolute; 
        top: 80px; /* 對齊 Header 高度 */
        left: 0;
        width: 100%; 
        background: #ffffff;
        max-height: 0; 
        overflow: hidden;
        transition: max-height 0.5s ease-in-out; /* 展開動畫 */
        flex-direction: column; 
        padding: 0; 
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 999;
    }

    /* 選單開啟狀態 */
    .nav-menu.active {
        max-height: 600px; 
        padding: 20px 0;
    }

    /* 4. 按鈕間距拉開 */
    .nav-menu li {
        width: 100%;
        margin: 10px 0; 
    }

    .nav-menu li a {
        display: block;
        padding: 15px 0;
        font-size: 18px;
        color: var(--primary-color);
        text-decoration: none;
    }
}


/* --- 6. 常見問題 (FAQ) --- */
.accordion-header {
    position: relative;
    padding: 25px 60px 25px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, #f9f7f5 100%);
    font-family: "Cactus Classical Serif", serif;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 10px;
}

.accordion-header::before, .accordion-header::after {
    content: '';
    position: absolute;
    right: 25px;
    top: 50%;
    width: 15px;
    height: 1.5px;
    background: var(--accent-color);
    transition: transform 0.3s;
}

.accordion-header::before { transform: translateY(-50%) rotate(90deg); }
.accordion-header.active::before { transform: translateY(-50%) rotate(0deg); }
.accordion-header.active { color: var(--accent-color); }

.accordion-content {
    padding: 0 20px 20px;
    display: none;
    color: #666;
}

/*
footer { background: #bda768; color: #eee; padding: 40px 0; text-align: center; margin-top: 50px; 
}
*/

/* --- 6. 完整精品頁尾樣式 (背景色修正版) --- */
.main-footer {
    background-color: #bda768; /* 統一使用金橄欖色 */
    color: #ffffff;
    padding: 80px 0 40px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 25px;
    
    /* 核心修正：將圖片轉為全白 */
    filter: brightness(0) invert(1);
    
    /* 增加一點透明度（可選），讓白色看起來更柔和、有精品感 */
    opacity: 0.9; 
}

.footer-desc {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95); /* 提高不透明度，增強可讀性 */
}

.footer-title {
    font-family: "Cactus Classical Serif", serif;
    font-size: 22px;
    color: #ffffff; /* 白色標題在金色底色上更顯高雅 */
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05); /* 極細微陰影增加層次感 */
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.social-link:hover {
    background-color: #ffffff;
    color: #bda768; /* 滑過時背景變白，字體變回主色 */
    border-color: #ffffff;
}

.footer-line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

/* --- 頁尾地址連結樣式 --- */
.footer-address-link {
    color: rgba(255, 255, 255, 0.9); /* 與其他聯絡資訊顏色一致 */
    text-decoration: none;           /* 去除預設下劃線 */
    transition: color 0.3s ease;
    border-bottom: 1px border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* 加入極細的裝飾底線 */
    padding-bottom: 2px;
}

.footer-address-link:hover {
    color: #ffffff;                  /* 懸停時變亮白 */
    border-bottom: 1px solid #ffffff; /* 底線同步變亮 */
}

/* 手機版 RWD 適應 */
@media (max-width: 980px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
}


/* --- 4.8 環境照片區 - 精美 2+3 佈局 --- */
.env-section {
    padding: 120px 0 100px;
    background: linear-gradient(180deg, rgba(189, 167, 104, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    position: relative;
    overflow: visible; 
}

.env-container {
    position: relative;
    height: 950px; /* 稍微增加高度以容納兩排 */
    margin-top: 80px;
}

.env-item {
    position: absolute;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 30px; /* 四邊圓角 30px */
    border: none;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    transition: transform 0.1s ease-out;
}

.env-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 電腦版佈局：第一排 (2張) --- */
/* env-1 和 env-2 分居左右，維持較大尺寸 */
.item-1 { 
    width: 520px; 
    height: 350px; 
    left: 2%; 
    top: 20px; 
    z-index: 2; 
}

.item-2 { 
    width: 480px; 
    height: 320px; 
    right: 5%; 
    top: 60px; 
    z-index: 1; 
}

/* --- 電腦版佈局：第二排 (3張) --- */
/* env-3, env-4, env-5 同一排，尺寸縮小以呈現層次感 */
.item-3 { 
    width: 360px; 
    height: 240px; 
    left: 0%; 
    top: 500px; /* 位於第一排下方 */
    z-index: 2; 
}

.item-4 { 
    width: 360px; 
    height: 240px; 
    left: 35%; /* 居中 */
    top: 540px; 
    z-index: 3; 
}

.item-5 { 
    width: 360px; 
    height: 240px; 
    right: 0%; 
    top: 480px; 
    z-index: 2; 
}

/* 裝飾素材 (位置：蝴蝶右上 / 葉子右下) */
.deco-element {
    position: absolute;
    z-index: 5;
    pointer-events: none;
}

.butterfly { 
    width: 110px; 
    right: 3%; 
    top: -40px; /* 蝴蝶在第一排右上角 */
}

.leaf { 
    width: 160px; 
/*    right: 2%; */
    bottom: 10px; /* 葉子在第二排右下角 */
    transform: rotate(15deg);
}

/* --- 手機版 RWD (維持您更新後的設定) --- */
@media (max-width: 980px) {
    .env-section {
        padding: 60px 0 20px; /* 您更新的數值 */
        overflow: visible;
    }

    .env-container {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 25px;
        align-items: center;
        margin-top: 30px;
    }

    .env-item {
        position: relative;
        width: 100%;
        max-width: 500px;
        height: 250px;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important; 
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .deco-element {
        display: none !important;
    }
}

/* --- 4.8 環境照片區 - 手機版重置方案 --- */
@media (max-width: 980px) {
    .env-section {
        padding: 60px 0 20px; /* 縮小上下內距 */
        overflow: visible;
    }

    .env-container {
        height: auto;           /* 核心：將高度改為自動，讓內容自然撐開 */
        display: flex;          /* 改用 Flex 佈局 */
        flex-direction: column; /* 垂直排列 */
        gap: 25px;              /* 圖片之間的間距 */
        align-items: center;    /* 居中對齊 */
        margin-top: 30px;
    }

    .env-item {
        position: relative;     /* 核心：打破絕對定位，回歸標準文件流 */
        width: 100%;            /* 寬度撐滿容器 */
        max-width: 500px;       /* 限制最大寬度防止圖片過大 */
        height: 250px;          /* 統一橫式高度 */
        
        /* 核心：取消所有高低差定位 */
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        
        /* 取消視差位移，確保手機版位置固定 */
        transform: none !important; 
        
        border-radius: 20px;    /* 稍微縮小圓角，更符合小螢幕視覺 */
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    /* 手機版隱藏蝴蝶與葉子素材，保持畫面簡潔 */
    .deco-element {
        display: none !important;
    }
}
/* --- 輪播大圖 RWD 高度優化 --- */

/* 平板尺寸 (寬度 980px 以下) */
@media (max-width: 980px) {
    .hero-section {
        height: 50vh; /* 平板縮短高度，維持畫面平衡 */
        min-height: 400px; /* 確保內容不會縮得太小 */
    }
}

/* 手機尺寸 (寬度 480px 以下) */
@media (max-width: 480px) {
    .hero-section {
        height: 25vh;   /* 基本高度 */
        height: 25dvh;  /* 優化：動態視窗高度，能完美適應 Line 的工具列 */
        min-height: 250px;
    }
}
	
    
/* --- 網頁保護與自定義游標 --- */
body {
    /* 禁止文字選取 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 1. 隱藏系統預設游標 */
html, body, a, button, .social-link {
    cursor: none !important;
}

/* 2. 自定義游標主體 */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    /* 確保圖片檔名與您上傳的一致 */
    background-image: url('../images/cursor.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none; /* 讓點擊能穿透到下層按鈕 */
    z-index: 9999999 !important;
    display: block; /* 強制顯示 */
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.2s ease-out;
    will-change: transform;
}

/* 3. Hover 放大效果 */
#custom-cursor.cursor-hover {
    transform: translate(-50%, -50%) scale(1.3);
    filter: drop-shadow(0 0 8px rgba(203, 175, 144, 0.6));
}

/* 閃亮符號容器 */
.sparkle-container {
    position: fixed;
    pointer-events: none;
    z-index: 999999;
	color: #EFA3A5;/* 品牌玫瑰紅 */
    user-select: none;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* S型移動與淡出動畫 */
@keyframes s-curve-move {
    0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
    10% { opacity: 1; transform: translate(0, -20px) scale(var(--random-scale)); }
    25% { transform: translate(calc(var(--sway-distance) * 1), -60px) scale(var(--random-scale)); }
    50% { transform: translate(calc(var(--sway-distance) * -1), -120px) scale(var(--random-scale)); }
    75% { transform: translate(calc(var(--sway-distance) * 0.5), -180px) scale(var(--random-scale)); opacity: 0.6; }
    100% { transform: translate(0, -250px) scale(0.3); opacity: 0; }
}

.animate-sparkle {
    animation: s-curve-move 1.5s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}
