* { box-sizing: border-box; margin: 0; padding: 0; }
        body { font-family: 'Noto Sans TC', sans-serif; line-height: 1.6; color: #333; background-color: #FFFFFF; }
        a { text-decoration: none; color: inherit; }
/* 品牌色彩變數設定 */
        :root {
            --guoli-yellow: #EAD041; 
            --guoli-gray: #707376;   
            --text-dark: #2C2C2C;
            --text-light-gray: #888888;
        }
        header { background-color: rgb(255, 255, 255); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(5px); }
        .logo img { height: 55px; object-fit: contain; }
        .nav-links a { margin-left: 25px; font-weight: 700; color: rgba(255, 255, 255, 0.9); transition: all 0.3s ease; }
        .nav-links a:hover { color: var(--guoli-yellow); }
.hero {
    /* 🌟 關鍵 1：center bottom 代表圖片水平置中，但「垂直貼齊底部」。
       這樣不管螢幕怎麼縮放，圖片下方的內容都不會被裁切，而是裁切兩側和上方 */
    background: url('../picture/baner.jpg') center bottom / cover no-repeat;
    
    max-height: 100vh; 
    min-height: 600px;
    display: flex;
    justify-content: center; 
    align-items: flex-start; 
    padding-top: 10vh; 
    text-align: center;
    position: relative;
}

/* 文字區塊維持之前的設定即可 */
.hero-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative; 
    z-index: 10;
    padding: 0 20px; 
}
        /* 「客製化拍貼機」文字樣式 */
        .hero-title {
            color: #FFFFFF; /* 如果背景很深，用白色；若背景淺，改為 #333 */
            font-size: 36px;
            font-weight: 700;
            letter-spacing: 4px; /* 增加字距，更有設計感 */
            margin: 0;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.1); /* 微弱陰影增加可讀性 */
        }
        .hero p { font-size: 22px; color: rgba(255, 255, 255, 0.9); font-weight: 700; margin-bottom: 40px; letter-spacing: 1px; }
        .hero-btn { background-color: rgba(255, 255, 255, 0.9); color:  rgb(253, 240, 116); padding: 15px 40px; border-radius: 30px; font-size: 18px; font-weight: 700; transition: all 0.3s, transform 0.2s; display: inline-block;}
        .hero-btn:hover { background-color: #42e3ff; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(234, 208, 65, 0.5);}
        .section-title { text-align: center; font-size: 50px; margin-bottom: 10px; color: var(--guoli-gray); font-weight: 900; letter-spacing: 2px;}
        .section-title span { color: var(--guoli-yellow); }
        .section-subtitle { text-align: center; margin-bottom: 50px; color: var(--text-light-gray); font-size: 20px; }
        
        /* 核心優勢區塊 CSS 修改 */
        .services { 
            padding: 80px 5%; 
            background-color: white; 
            text-align: center; /* 讓 header 和 grid 居中 */
        }
        .services-header {
            display: flex;
            flex-direction: column; /* 🌟 絕對關鍵：強制「上下」排列，無論螢幕多大都不會左右並排 */
            align-items: center;
            justify-content: center;
            text-align: center;     /* 確保多行文字時，文字也能保持置中 */
            margin-bottom: 50px;
            padding: 0 20px;        /* 左右保留安全距離，避免手機版文字貼死邊緣 */
        }
        .services-logo {
            height: 80px; 
            margin-right: 0;        /* 🛑 刪除原本的右邊距 */
            margin-bottom: 15px;    /* 🌟 改成在 LOGO 下方留白，與文字隔開 */
            object-fit: contain;
        }
        /* 電腦版：原本的標語樣式，加上行高 */
        .services-slogan {
            font-size: 30px;
            color: var(--guoli-yellow);
            font-weight: 700; 
            letter-spacing: 1px;
            line-height: 1.5; /* 💡 新增：讓換行後的文字有呼吸空間，不會上下擠在一起 */
            word-wrap: break-word; /* 💡 新增：確保文字遇到邊界會自動折行 */
        }
        /* --- 核心優勢 Grid 樣式 --- */
        .service-grid { 
            display: flex; 
            flex-wrap: nowrap; /* 強制不換行 */
            justify-content: space-between; 
            max-width: 1200px; 
            margin: 0 auto; 
        }
        /* 每個項目的樣式 */
        .service-item { 
            flex: 1; /* 平分寬度 */
            padding: 20px 40px; 
            position: relative; /* 為了放分隔線 */
        }
        /* 分隔線：除了第一個，都在左邊加上邊框 */
        .service-item:not(:first-child)::before {
            content: '';
            position: absolute;
            top: 10%; /* 從上方 10% 開始 */
            left: 0;
            height: 80%; /* 高度佔 80% */
            width: 1px;
            background-color: #EAEAEA; /* 淺灰色分隔線 */
        }
/* --- 新的圓圈圖片樣式 --- */
        .icon-circle-img {
            width: 100px;
            height: 100px;
            border: 5px solid rgb(253, 240, 116); /* 黃色圓框 */
            border-radius: 50%; /* 圓形 */
            display: flex; /* 使用 Flexbox 讓裡面的圖片居中 */
            align-items: center;
            justify-content: center;
            margin: 0 auto 25px auto; /* 居中並留白 */
            overflow: hidden; /* 確保圖片不超出圓圈 */
            background-color: transparent; /* 保持透明，若需要可以加白底 */
        }

        /* --- 實現圖片自適應的核心 CSS --- */
        .icon-circle-img img {
            width: 60%; /* 控制圖片在圓圈內的大小，這個數字可以微調 */
            height: 60%;
            object-fit: contain; /* 💡 秘訣在這裡：保持比例完整顯示在圓圈內 */
        }

        /* --- 針對手機版的自適應微調 (加入此段) --- */
        @media (max-width: 768px) {
            .hero {
        /* 換成直式的圖片，確保手機版畫面最完美 */
        background-image: url('../picture/baner-mobile.jpg');
        padding-top: 5vh; /* 手機版文字可以稍微再往上一點點 */
    }
            .service-grid {
                flex-wrap: wrap; /* 手機版自動換行 */
            }
            .service-item {
                flex: 0 0 50%; /* 手機版一排兩個 */
                padding: 20px 10px;
            }
            .icon-circle-img {
                width: 80px; /* 手機版圓圈縮小一點 */
                height: 80px;
                border-width: 4px;
            }
            /* 項目主標題樣式 (黃色加粗) */
            .service-item h3 { 
                color: var(--text-dark); /* 目標圖片中主標題是黃色加粗，副標題是灰色 */
                font-weight: 700; 
                margin-bottom: 8px;
            }
            /* 項目副標題樣式 (灰色) */
            .service-item p { 
                font-size: 16px; 
                color: var(--text-light-gray); 
                font-weight: 400; /* 恢復常規字重 */
            }
        }

            /* 📱 手機版專屬優化 (當螢幕寬度小於 768px 時觸發) */
        @media(min-width: 900px) {
            .services-header {
                flex-direction: column; /* 💡 關鍵：讓 Logo 和標語變成「上下排」 */
                text-align: center;     /* 讓文字自動置中對齊 */
                padding: 0 15px;        /* 左右留一點安全距離，不要貼死螢幕邊緣 */
            }
            
            .services-logo {
                margin-right: 0;        /* 移除電腦版的右邊距 */
                margin-bottom: 15px;    /* 改成下方留白，與文字隔開 */
            }

            .services-slogan {
                font-size: 30px;        /* 💡 稍微把字體縮小到 20px，在手機上換行會更順眼 */
            }
            .services { padding: 80px 5%; }
            .service-item { padding: 20px 10px; }
            .service-item:not(:last-child) { border-right: 1px solid #EAEAEA; }
            .icon-circle { width: 100px; height: 100px; font-size: 45px; border-width: 5px; }
            .service-item h3 { font-size: 24px; margin-bottom: 10px; white-space: normal;}
            .service-item p { font-size: 18px; }
        }

        .portfolio { padding: 80px 5%; background-color: var(--bg-light); border-top: 1px solid #F0F0F0; }
        .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto;}
        .gallery-link { display: block; }
        .gallery-item-wrapper { position: relative; overflow: hidden; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); background: white; transition: all 0.3s ease; height: 100%; }
        .gallery-item { width: 100%; height: 280px; object-fit: cover; display: block; transition: transform 0.4s ease; }
        .gallery-item-wrapper:hover .gallery-item { transform: scale(1.05); }
        .gallery-item-wrapper:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.1); transform: translateY(-4px); }
        .gallery-caption { padding: 16px; color: var(--guoli-gray); border-top: 4px solid var(--guoli-yellow);}
        .gallery-caption h3 { font-size: 20px; margin-bottom: 6px; }
        .gallery-caption p { color: var(--text-light-gray); font-size: 14px; margin-bottom: 6px; }
        .gallery-meta { font-size: 13px; color: var(--guoli-gray-dark); font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
        
        .contact-section { padding: 80px 5%; background-color: white; display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; max-width: 1200px; margin: 0 auto; }
        .contact-info-box { flex: 1; min-width: 300px; max-width: 450px; padding: 40px; background: var(--bg-light); border-radius: 16px; border-top: 6px solid var(--guoli-gray); }
        .contact-info-box h3 { font-size: 28px; margin-bottom: 30px; color: var(--guoli-gray); font-weight: 900; }
        .contact-info-box .info-row { display: flex; align-items: center; margin-bottom: 20px; font-size: 16px; color: var(--text-dark); font-weight: 500;}
        .contact-info-box .info-icon { font-size: 20px; color: var(--guoli-yellow); margin-right: 15px; width: 25px; text-align: center;}
        .contact-form { flex: 2; min-width: 300px; max-width: 650px; background: white; padding: 10px; }
        .form-group { margin-bottom: 20px; }
        .form-group label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--guoli-gray); font-size: 15px; }
        .form-control { width: 100%; padding: 14px; border: 1px solid #DDD; border-radius: 8px; font-size: 16px; font-family: 'Noto Sans TC', sans-serif; transition: all 0.3s ease; background-color: #FAFAFA; }
        .form-control:focus { outline: none; border-color: var(--guoli-yellow); background-color: white; box-shadow: 0 0 0 3px rgba(234, 208, 65, 0.2); }
        textarea.form-control { resize: vertical; min-height: 120px; }
        .submit-btn { background-color: var(--guoli-gray); color: white; border: none; padding: 16px 30px; font-size: 18px; font-weight: 700; border-radius: 8px; cursor: pointer; width: 100%; transition: all 0.3s ease; font-family: 'Noto Sans TC', sans-serif; letter-spacing: 1px;}
        .submit-btn:hover { background-color: var(--guoli-yellow); color: white;}
        footer { background-color: var(--guoli-gray); color: white; padding: 20px 5%; text-align: center; font-size: 14px; }
        
        @media (max-width: 768px) {
            header { flex-direction: column; gap: 12px; }
            .nav-links a { margin: 0 10px; }
            .hero p { font-size: 18px; }
        }


.contact-divider { border: none; border-top: 1px solid #DDD; margin: 25px 0; }
.contact-note { font-size: 14px; color: #888; line-height: 1.5; }
.hidden-iframe { display: none; }
.required-star { color: red; }
