/* 全域變數設定 */
:root {
    --primary-color: #4F5D53;
    /* 凪霧深綠 - Accent, Interactive */
    --accent-color: #4F5D53;
    --bg-color: #FBFBFA;
    /* 暖白色 - Primary Background */
    --secondary-bg-color: #EAE7E2;
    /* 暖沙岩灰 - Secondary Background */
    --text-color: #333333;
    --white: #ffffff;

    --font-sans: 'Noto Sans TC', sans-serif;
    --font-serif: 'Montserrat', sans-serif;
    /* 新增英文字體 */

    --transition-speed: 0.4s;
}

/* 基礎重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow: visible !important;
}

/* 自定義滾動條 (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    /* 全圓角 */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #3A453D;
    /* 加深色 */
}

/* 1. 全站基礎字體 */
body {
    font-family: 'Noto Sans TC', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow: visible !important;
    position: relative;
}

/* 2. 針對性強制覆蓋 (針對沒變的地方) */
.portfolio-info h3,
/* 作品集卡片上的標題 */
.portfolio-info p,
/* 作品集卡片上的類別 */
.text-on-image h4,
/* 服務卡片上的大標題 */
.service-desc,
/* 服務說明文 */
.service-list li,
/* 服務列表 */
.nav-link-desktop span,
/* 電腦版導航 */
.nav-link-mobile,
/* 手機版導航 */
.filter-btn,
/* 篩選按鈕 */
.section-title,
/* 各區塊大標題 (如：服務項目) */
h1,
h2,
h3,
h4,
h5,
h6

/* 所有標題標籤 */
    {
    font-family: 'Zen Old Mincho', 'Noto Serif JP', serif !important;
}

/* 3. 保護 Font Awesome Icon 不被覆蓋 */
.fa,
.fas,
.far,
.fal,
.fab {
    font-family: "Font Awesome 6 Free" !important;
}

/* 雜訊層 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4 {
    font-weight: 500;
    letter-spacing: 0.1em;
    /* 增加字距 */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* 導航列 - 懸浮毛玻璃效果 */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;

    background-color: rgba(251, 251, 250, 0.85);
    /* 提高不透明度 */
    
    -webkit-
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-logo-image {
    height: 80px;
    margin-left: 30px;
    /* 新的 Logo 高度控制 */
    width: auto;
    display: block;
}

/* 桌面導航選單 (預設顯示，手機隱藏) */
.desktop-nav {
    display: flex;
    align-items: center;
}

.nav-links-desktop {
    display: flex;
    gap: 50px;
    /* 增加間距 (25px 改為 50px 比較有呼吸感) */
}

.nav-link-desktop {
    font-family: var(--font-serif);
    /* 英文使用 Serif 字體 */
    font-size: 0.9rem;
    /* 縮小字體 */
    font-weight: 500;
    letter-spacing: 2px;
    /* 增加字距 */
    color: #333;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    transition: all 0.3s ease;
    min-width: 80px;
    /* 確保寬度足夠容納中文，避免跳動 */
    text-align: center;
    display: inline-block;
}

.nav-link-desktop .en {
    display: block;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.nav-link-desktop .zh {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(10px);
    width: 100%;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    color: var(--primary-color);
}

/* Hover 或 Active 時：隱藏英文，顯示中文 */
.nav-link-desktop:hover .en,
.nav-link-desktop.active .en {
    opacity: 0;
    transform: translateY(-10px);
}

.nav-link-desktop:hover .zh,
.nav-link-desktop.active .zh {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

/* Active 狀態指示條 (保留但調整顏色) */
.nav-link-desktop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    /* 變細 */
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link-desktop:hover::after,
.nav-link-desktop.active::after {
    width: 100%;
}


/* 漢堡選單 (預設隱藏，手機顯示) */
.hamburger {
    display: none;
    /* Desktop 預設隱藏 */
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    z-index: 1001;
}

/* 全螢幕導航遮罩 (Mobile Only) */
.fullscreen-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(79, 93, 83, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.fullscreen-nav.open {
    opacity: 1;
    visibility: visible;
}

.nav-links-mobile {
    text-align: center;
}

.nav-links-mobile li {
    margin: 30px 0;
}

.nav-link-mobile {
    font-size: 2rem;
    color: var(--white);
    display: block;
}


/* 響應式：手機與平板 (小於 1024px) */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
        /* 隱藏桌面選單 */
    }

    .hamburger {
        display: block;
        /* 顯示漢堡 */
    }

    #main-header {
        padding: 15px 20px;
    }
}


/* 右側浮動聯絡列 Sidebar */
.fixed-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 990;
    padding: 10px;
    /* 避免貼邊太近 */
}

.sidebar-btn {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: #ddd;
    /* 灰色背景 */
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar-btn:hover {
    background-color: var(--primary-color);
    /* Hover 變深綠 */
    color: #fff;
    transform: scale(1.1);
}

/* Tooltip 提示文字 (向左滑出) */
.sidebar-tooltip {
    position: absolute;
    right: 60px;
    /* 按鈕左側 */
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.sidebar-btn:hover .sidebar-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}


/* 視圖切換邏輯 (SPA-like View) 已經廢除，全版展開 */
.content-section {
    display: block;
    animation: fadeIn 0.6s ease;
}

section {
    scroll-margin-top: 80px;
}

/* 顯示 Active Section */
.content-section.active-view {
    display: block;
}

/* 首頁 Hero */
.hero-section {
    position: relative;
    min-height: 100vh;
    height: auto;
    width: 100%;
    display: flex;
    /* 預設展開 */
    padding-top: 100px;
    /* 增加頂部間距，避開 Fixed Header */
    padding-bottom: 0px;
    margin-bottom: 0px;
    box-sizing: border-box;
    /* 確保 padding 包含在 height 內 */
    justify-content: center;
    align-items: center;
    overflow: visible;
    /* 改為 visible 防止截斷或卡死捲動 */
    text-align: center;
    color: var(--white);
}

.hero-section.active-view {
    display: flex;
    /* Hero 需用 flex */
    animation: fadeIn 0.8s ease;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    /* 2秒淡入淡出 */
}

.hero-slide.active {
    opacity: 1;
}

/* 遮罩層 (Overlay) - 確保文字清晰 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* 加深遮罩透明度 0.35 -> 0.5 */
    z-index: 2;
}

/* Hero 文字內容容器 */
.hero-content {
    position: relative;
    z-index: 3;
    /* 在遮罩之上 */
    max-width: 800px;
    padding: 0 20px;
    padding-top: 25vh;
    /* 增加間距，讓文字整體往下移動約 25% */
    animation: fadeInUp 1.5s ease 0.5s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Hero 內的文字樣式覆蓋 */
.hero-content .main-title {
    font-size: 3.5rem;
    margin-bottom: 25px;
    letter-spacing: 0.15em;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content .sub-title {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* 聯絡表單專區 */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #444;
    font-weight: 500;
}

.form-group label .required {
    color: #c0392b;
    margin-left: 4px;
}

/* 表單整體質感提升 */
.contact-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(142, 124, 104, 0.05);
    /* 極細微的大地色投影 */
}

/* 輸入框優化 */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    background-color: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.contact-form select {
    appearance: none;
    /* 移除原生選單樣式 */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
    cursor: pointer;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #8e7c68;
    /* 點擊時變成品牌棕 */
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(142, 124, 104, 0.1);
    outline: none;
}

/* Checkbox 群組樣式 */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    padding: 10px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    cursor: pointer;
    color: #666;
}

.checkbox-item input {
    width: auto;
    margin-right: 8px;
    padding: 0;
    /* Reset padding for checkbox */
    accent-color: var(--primary-color);
}


/* 送出按鈕升級 */
.submit-btn {
    background: #8e7c68;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    padding: 15px 40px;
    border-radius: 50px;
    /* 膠囊型按鈕更現代 */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
    /* 手機版全寬好點擊 */
}

.submit-btn:hover {
    background: #766554;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(142, 124, 104, 0.3);
}

/* 響應式調整：手機版改為單欄 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.sub-title {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.8;
}

/* 淡入與延遲動畫 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 內容區塊通用設定 */
.content-section {
    padding: 60px 5%;
    /* 縮減左右空白，增加滿版感 */
    scroll-margin-top: 80px;
    /* 對應 Header 高度，避免被遮住 */
    min-height: 80vh;
}

/* 網頁主要安全寬度框架 */
.container {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

#portfolio {
    height: auto;
    padding: 80px 0;
    min-height: auto;
}

#awarded {
    margin-top: 0px;
    padding-top: 60px;
    min-height: auto;
}

/* 關於我們 - 雜誌排版 (Magazine Layout) */
.about-container {
    position: relative;
    max-width: 1400px;
    /* 寬度限制調整 */
    margin: 0 auto;
}

.about-magazine-layout {
    position: relative;
    margin-top: 60px;
}

.about-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 150px;
    position: relative;
    gap: 100px;
}

/* 強制 Section 02 為 左文、右圖 */
.about-row.reverse {
    flex-direction: row-reverse;
}

/* 圖片容器 - 通用設定 */
.about-img-wrapper {
    position: relative;
    height: auto;
    overflow: hidden;
    box-shadow: none;
    aspect-ratio: 16/9;
    /* 統一橫向 16:9 */
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: none !important;
}

/* 統一圖片 60% 寬度 */
.about-row .about-img-wrapper {
    flex: 0 0 60%;
    max-width: 60%;
}

/* 文字內容 - 限定 450px 內，高度等高對齊 */
.about-text-content {
    flex: 1;
    /* 佔據剩餘 40% 空間 (扣除 gap) */
    max-width: 450px;
    /* 寬度限制在 450px 內 */
    padding: 0;
    margin: 0 !important;
    background-color: transparent;
    /* 直接呈現在背景上 */
    box-shadow: none;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    /* 將標題與內文設定為固定間距 */
}

.about-text-content h4 {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
    position: relative;
}

.about-text-content .about-desc p {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.about-text-content .about-desc p+p {
    margin-top: 1.5rem;
    /* 段落間距 */
}

/* 裝飾數字 - 移除 */
/* 
.decorative-number {
    display: none;
} 
*/

/* 清除舊定位 - 移除 */


/* 裝飾圓形切圖 - 移除 */
/*
.about-accent-circle {
    display: none;
}
*/

/* 響應式調整 (Mobile) */
@media (max-width: 1024px) {
    .about-container {
        max-width: 100%;
    }

    .about-row,
    .about-row.reverse {
        flex-direction: column;
        margin-bottom: 100px;
        gap: 0;
    }

    /* 手機版重置寬度比例 */
    .about-row:not(.reverse) .about-img-wrapper,
    .about-row:not(.reverse) .about-text-content,
    .about-row.reverse .about-img-wrapper,
    .about-row.reverse .about-text-content {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .about-img-wrapper {
        height: 350px;
        box-shadow: none;
    }

    .about-row.reverse .about-img-wrapper {
        height: 400px;
    }

    .about-text-content {
        width: 90%;
        margin: 0 auto !important;
        /* 取消負邊距，避免背景透明時文字疊在圖片上難以閱讀 */
        padding: 0;
        gap: 30px;
        /* 針對 flex-direction: column，拉開標題與內容間距 */
    }

    .about-text-content h4 {
        font-size: 1.8rem;
    }

    .decorative-number {
        font-size: 5rem;
        top: -40px !important;
        right: 10px !important;
        left: auto !important;
        bottom: auto !important;
    }

    .about-row.reverse .decorative-number {
        top: -40px !important;
        bottom: auto !important;
        left: 10px !important;
    }

    .about-accent-circle {
        width: 100px;
        height: 100px;
        top: 0;
        right: 0;
    }
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 80px;
    text-align: center;
    letter-spacing: 0.2em;
    /* 增加標題字距 */
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background-color: var(--primary-color);
    opacity: 0.5;
}

/* Scroll Reveal 初始狀態 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 作品集網格 - 2欄強制排版 */
.portfolio-grid {
    display: grid !important;
    /* 強制啟用網格 */
    grid-template-columns: repeat(2, 1fr) !important;
    /* 強制一行兩個 */
    gap: 40px;
    /* 統一間距 */
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    margin-top: 60px;
    align-items: start;
}

.portfolio-item {
    cursor: pointer;
    transition: transform 0.5s ease;
    /* 移除陰影，改用圖片本身的質感，或者極淡陰影 */
}

/* .portfolio-item:hover 移除，改由圖片內部放大 */

.portfolio-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--secondary-bg-color);
    margin-bottom: 20px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

/* 內部圖片容器 - 需在 JS 插入或 CSS 背景處理 */
.portfolio-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover .portfolio-thumb-img {
    transform: scale(1.05);
    /* 懸停放大 */
}

/* 金色標章 (文字版) */
.award-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #d4af37, #f2d06b);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-family: var(--font-sans);
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* 金色標章 (圖片版) */
.award-badge-img {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    /* 設定合適寬度 */
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.portfolio-item h4 {
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-align: center;
}

/* 篩選按鈕 */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.filter-btn {
    border: none;
    background: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    cursor: pointer;
    color: #888;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 響應式調整 (Mobile) */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .nav-link {
        font-size: 1.8rem;
    }

    .content-section {
        padding: 60px 5%;
    }
}

/* Ghost Button 樣式 */
.submit-btn {
    padding: 12px 40px;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    /* 細線邊框 */
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1rem;
    letter-spacing: 0.15em;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--primary-color);
    transition: height 0.4s ease;
    z-index: -1;
}

.submit-btn:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.submit-btn:hover::before {
    height: 100%;
    /* 向上填滿 */
}

/* 得獎作品列表 (List Style) */
.awarded-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.awarded-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: transparent;
}

.awarded-item-row:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: translateX(10px);
}

.awarded-info {
    flex: 1;
}

.award-year {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

.award-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    letter-spacing: 0.1em;
}

/* 獎項 Logo 容器 */
.awarded-img-container {
    width: 120px;
    /* 強制設定盒子的寬度 (可依需求調整) */
    height: 80px;
    /* 強制設定盒子的硬度 (可依需求調整) */
    display: flex;
    /* 啟用 Flexbox */
    align-items: center;
    /* 垂直置中 */
    justify-content: center;
    /* 水平置中 */
    margin-left: auto;
    /* 如果是在列表模式，這行會讓它靠右 */
    overflow: hidden;
    /* 確保內容不超出 */
    padding: 5px;
    /* 增加一點呼吸空間 */
}

/* 獎項 Logo 樣式 - 單色濾鏡 */
.awarded-logo-img,
.awarded-img-container img {
    max-width: 100%;
    /* 在盒子內最大 100% 寬 */
    max-height: 100%;
    /* 在盒子內最大 100% 高 */
    /* 核心：object-fit: contain (使圖片適應盒子，不變形、不裁剪) */
    object-fit: contain !important;
    width: auto !important;
    /* 移除 HTML 或 Inline 寫死的寬度 */
    height: auto !important;
    /* 移除 HTML 或 Inline 寫死的高度 */
    filter: grayscale(100%) opacity(0.7);
    /* 轉為灰階並降低不透明度 */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.awarded-item-row:hover .awarded-logo-img {
    filter: grayscale(0%) opacity(1);
    /* 懸停時恢復原色或變亮 */
    transform: scale(1.1);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    /* 改為深色+毛玻璃背景 */
    
}

.lightbox-img {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.4s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    /* 增加圖片陰影 */
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: fixed;
    top: 20px;
    right: 35px;
    color: #fff;
    /* 改為淺色 */
    font-size: 50px;
    font-weight: 300;
    /* 變細 */
    transition: 0.3s;
    cursor: pointer;
    z-index: 2100;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: #fff;
    /* 改為淺色 */
    font-weight: 300;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.05);
    /* 極淡互動色 */
}

.caption-container {
    text-align: center;
    color: var(--text-color);
    padding: 10px 0;
    height: 50px;
    font-family: var(--font-serif);
    margin-top: 10px;
}

/* Zhunan Case Study Details */
.zhunan-container {
    max-width: 1400px;
    margin: 0 auto;
}

.case-study-desc p {
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 60px;
    text-align: center;
    max-width: 800px;
    margin-inline: auto;
}

/* Image Slider */
.comparison-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
    aspect-ratio: 16/9;
    --clip: 50%;
}

.comparison-before,
.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comparison-before img,
.comparison-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comparison-after {
    clip-path: inset(0 0 0 var(--clip));
    z-index: 1;
}

.comparison-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

.comparison-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--clip);
    width: 2px;
    background-color: var(--white);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.comparison-handle::after {
    content: "↔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Gallery Grid Layout (Replaces Masonry) */
.gallery-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 60px;
}

.before-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.before-grid .gallery-item {
    flex: 1 1 250px;
    max-width: 300px;
    /* 控制單張最大寬度，確保不會被無限拉長 */
}

.after-grid {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    /* Base height for 'Before' grid */
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.after-grid .gallery-item img {
    height: 400px;
    /* Taller height for 'After' grid */
}

.gallery-item .caption {
    display: block;
    font-size: 0.8rem;
    color: #bbb;
    margin-top: 15px;
    text-align: center;
    letter-spacing: 0.1em;
}

.gallery-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 60px 0 80px 0;
}

/* Visual Labels for Comparison Slider ONLY (Removed from Masonry) */
.visual-label {
    position: absolute;
    font-family: var(--font-serif);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    padding: 6px 12px;
    background-color: rgba(251, 251, 250, 0.9);
    color: var(--primary-color);
    
    z-index: 2;
}

.label-before {
    bottom: 20px;
    left: 20px;
}

.label-after {
    bottom: 20px;
    right: 20px;
}

/* Modal Gallery Grid (統一樣式，取代 inline style) */
.modal-gallery-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px !important;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
}

.modal-gallery-grid .gallery-item {
    width: calc(50% - 10px);
}

.modal-gallery-grid .gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

/* Award Footer */
.award-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 60px;
    text-align: center;
}

.award-label {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #fff;
    letter-spacing: 0.1em;
}

.award-logo {
    height: 70px;
    width: auto;
}

/* 響應式 Grid */
@media (max-width: 768px) {
    .after-grid {
        grid-template-columns: 1fr;
    }

    .after-grid .gallery-item img {
        height: 300px;
    }
}

/* 強制解鎖全站捲動 */
html,
body {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative !important;
}

/* 強制覆蓋，啟用 Flexbox 2 欄置中佈局 */
.portfolio-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    /* 核心：讓最後落單的項目置中 */
    gap: 40px !important;
    grid-template-columns: none !important;
    /* 廢除 Grid */
}

/* 強制卡片寬度為 50% (扣除 gap) */
.portfolio-item {
    width: calc(50% - 20px) !important;
    /* 完美的一列兩個 */
    flex-grow: 0 !important;
    /* 不放大擠滿 */
    flex-shrink: 0 !important;
    margin: 0 !important;
}

/* 服務項目網格 - 2x2 排列 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* 服務項目卡片化設計 - 大氣圖片與品牌色彩版 */
.service-item.card-style.image-card {
    background: #faf8f6;
    /* 微米色背景，拒絕單調 */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    /* 確保內容不超出圓角 */
    text-align: center;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.service-item.card-style.image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 1. 確保圖片上的文字清楚 (光暈陰影) */
.service-image-header {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.text-on-image {
    position: absolute;
    bottom: 15px;
    left: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* 文字光暈 */
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
    /* 增加清晰度 */
}

.text-on-image h4 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 2px;
}

/* 2. 文字開頭的 Icon 樣式 (Inline Icon) */
.icon-inline {
    font-size: 1.3rem;
    /* 配合標題大小 */
    margin-right: 10px;
    transform: translateY(2px);
    /* 微調讓它跟文字完美的垂直置中 */
    vertical-align: middle;
    /* 垂直置中對齊 */
}

/* 1. 說明文字：加大、加深、加重 */
.service-desc {
    color: #1a1a1a;
    /* 比 #333 更深一點，接近純黑 */
    font-weight: 500;
    /* 中等字重，解決字體過細看不清的問題 */
    font-size: 1.2rem;
    /* 顯著放大 (約 19.2px) */
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #eee;
    padding-top: 15px;
    text-align: left;
}

/* 2. 列表項目：同步放大 */
.service-list li {
    color: #333333;
    font-weight: 500;
    font-size: 1.05rem;
    /* 放大 (約 16.8px) */
    margin-bottom: 12px;
    /* 拉開行距 */
    padding-left: 25px;
    /* 增加縮排空間 */
    position: relative;
}

.service-list li::before {
    content: "•";
    color: #8e7c68;
    /* 使用品牌棕色作為點綴 */
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 移除舊的圓形標章樣式 (Delete old) */
.icon-box,
.color-overlay {
    display: none !important;
}

/* --- 全站 Font Awesome Icon 統一優化 --- */

/* 1. 關閉按鈕 Icon 優化 */
.close-lightbox {
    font-size: 2rem;
    /* 調整 Icon 大小 */
    color: #fff;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: flex;
    /* 讓 Icon 絕對置中 */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.close-lightbox:hover {
    opacity: 1;
    transform: rotate(90deg);
    /* 滑鼠移過去會轉動，增加互動感 */
    color: #d4a373;
    /* 懸停時變品牌色 */
    text-decoration: none;
    cursor: pointer;
}

/* 2. 相簿左右箭頭 Icon 優化 */
.prev,
.next {
    font-size: 1.5rem;
    /* 調整箭頭大小 */
    background-color: rgba(0, 0, 0, 0.5);
    /* 給箭頭加個半透明黑底 */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* 變成圓形按鈕 */
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    color: #fff;
    text-decoration: none;
}

.prev:hover,
.next:hover {
    background-color: #d4a373;
    /* 懸停變品牌色 */
    color: #fff;
}

/* 3. 修正箭頭位置，避免擋住圖片 */
.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* 4. 服務項目 Icon 微調 (再次確保) */
.icon-inline {
    display: inline-block;
    /* 確保 Icon 不會因為字體更換而跑版 */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

/* --- 服務流程視覺化設計 --- */

.process-phase {
    margin-bottom: 40px;
}

.phase-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: #8e7c68;
    /* 品牌棕色 */
}

.phase-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.phase-header h4 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 步驟網格：4欄排列 */
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

/* 步驟卡片 */
.step-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #f0f0f0;
    position: relative;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #d4a373;
}

/* 數字浮水印 */
.step-number {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 3rem;
    font-weight: 700;
    color: #f7f7f7;
    /* 極淡灰色 */
    z-index: 0;
    line-height: 1;
}

.step-icon {
    font-size: 2rem;
    color: #8e7c68;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.step-card h5 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.step-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* 中間分隔線 */
.process-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 40px 0;
}

/* --- 懸浮聯絡工具列：質感升級版 --- */
.floating-contact-bar {
    position: fixed;
    right: 25px;
    top: 40%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10000;
}

.float-icon {
    width: 52px;
    height: 52px;
    /* 磨砂玻璃質感：半透明白加上模糊效果 */
    background: rgba(255, 255, 255, 0.75);
    
    -webkit-

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #8e7c68;
    /* 清凪品牌棕 */

    /* 精緻微影與細邊框 */
    border: 1px solid rgba(142, 124, 104, 0.2);
    box-shadow: 0 8px 32px rgba(142, 124, 104, 0.15);

    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.3rem;
}

/* 滑鼠移入：優雅浮起並改變顏色 */
.float-icon:hover {
    transform: scale(1.15) translateX(-8px);
    background: #8e7c68;
    /* 變成品牌主色 */
    color: #ffffff;
    box-shadow: 0 12px 40px rgba(142, 124, 104, 0.3);
    border-color: #8e7c68;
}

/* 特殊：讓 LINE 按鈕滑上去時呈現招牌綠，但保有質感 */
.float-icon.line:hover {
    background: #06C755;
    border-color: #06C755;
}

/* 手機版：微調位置避免擋到內容 */
@media (max-width: 768px) {
    .floating-contact-bar {
        right: 15px;
    }

    .float-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* 1. 首頁標題：縮小字體並強制一行顯示 */
    .hero-content .main-title {
        font-size: 1.8rem !important;
        /* 強制縮小字體 */
        white-space: nowrap;
        /* 強制不換行 */
        width: 100%;
        /* 確保寬度足夠 */
        display: block;
    }

    /* 2. 內容排版：增加右側留白，避免被懸浮按鈕遮擋 */
    .hero-content {
        padding-right: 70px;
        /* 右側留出空間給按鈕 */
        box-sizing: border-box;
        /* 確保 padding 不會撐破版面 */
        /* 確保文字垂直置中 */
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 60vh;
        /* 確保有足夠高度 */
    }

    /* 3. 首頁背景圖修復：確保圖片在手機上正確顯示 */
    #home,
    .hero-section {
        background-position: center center;
        /* 圖片居中對齊 */
        background-size: cover;
        /* 確保圖片蓋滿整個區塊 */
        background-repeat: no-repeat;
        height: 100vh;
        /* 設定高度為螢幕全高 */
        min-height: 600px;
        /* 最小高度防止塌陷 */
    }
}

/* 修復手機版 Fixed Background 造成的卡頓問題 */
@media (max-width: 768px) {

    * {
        background-attachment: scroll !important;
    }
}
/* �ޏ��֙C��DƬ���t LAG ���}���P�]����ҕ���c��Ч */
@media (max-width: 768px) {
    .about-img, .parallax-img, .hero-bg, .hero-slide {
        transform: none !important;
        transition: none !important;
        filter: none !important;
        animation: none !important;
    }
}
