      /* =========================================================
           About Us Page Styles (關於我們頁面樣式)
           Namespace: .yl-about- (避免與首頁衝突)
           ========================================================= */

        /* 基礎設定 */
        body {
            background-color: #fff; /* 預設背景 */
            margin: 0;
            padding: 0;
        }

        .yl-about-wrapper {
            padding: 200px 50px 100px;
            background-color: #fff;
            color: #333;
            font-family: 'Noto Sans TC', system-ui, -apple-system, sans-serif;
        }



/* =========================================================
   Page Banner Styles (內頁橫幅樣式)
   ========================================================= */
.yl-page-banner {
    position: relative;
    width: 100%;
    height: 400px; /* 電腦版高度 */
    background-image: url('../img/packing-keyimg.png'); /* 請替換為您的背景圖 img/banner-bg.jpg */
    background-size: cover;
    background-position: center;
    
    /* 關鍵：頂部橘色邊框 */
  
    
    /* 避開導覽列高度 (依據之前的設定) */
   
}

/* 黑色半透明遮罩 (可選，讓文字在淺色背景上更清楚) */
.yl-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); /* 10% 黑色遮罩，比較自然 */
}

/* 內容容器 */
.yl-page-banner .container {
    position: relative; /* 確保內容在遮罩之上 */
    z-index: 2;
}

/* ABOUT US 大標題 */
.yl-banner-title {
    font-family: 'Noto Sans TC', sans-serif; /* 設計稿看起來像黑體，若要宋體可改 Noto Serif TC */
    font-weight: 700;
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: 2px;
}

/* 標語外層 (用來控制靠右) */
.yl-banner-tagline-wrapper {
    display: inline-block;
}

/* 橘色底標語 */
.yl-banner-tagline {
    background-color: #ff6c39;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 5px 25px; /* 上下左右留白 */
    letter-spacing: 3px;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* =========================================================
   Banner RWD 響應式設定
   ========================================================= */
@media (max-width: 991px) {
    .yl-page-banner {
        height: 300px;
        margin-top: 70px; /* 手機版導覽列高度 */
    }
    
    .yl-banner-title {
        font-size: 3rem;
    }
    
    .yl-banner-tagline {
        font-size: 1.2rem;
        padding: 5px 15px;
    }
}

@media (max-width: 576px) {
    .yl-page-banner {
        height: 250px;
    }

    .yl-banner-title {
        font-size: 2.2rem;
    }

    .yl-banner-tagline {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}

/* =========================================================
   Packaging Services Page Styles (包裝代工內頁樣式)
   Namespace: .yl-svc-
   Description: 針對設計稿還原，包含藍色圓角背景與橘色標題底線
   ========================================================= */

/* --- 1. 容器與基礎設定 --- */
.yl-svc-wrapper {
    padding: 80px 0 120px;
    background-color: #ffffff;
    overflow: hidden; /* 防止背景色塊溢出容器 */
    font-family: 'Noto Sans TC', sans-serif;
}

/* --- 2. 頁面標題區 --- */
.yl-svc-header {
    text-align: center;
    margin-bottom: 90px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.yl-svc-main-title {
    font-family: 'Noto Sans TC', sans-serif; /* 依照設計稿使用黑體 */
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6c39; /* 設計稿橘色 */
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.yl-svc-intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    text-align-last: center; /* 讓文字區塊看起來整齊，但最後一行置中 */
}

/* --- 3. 服務項目列表 (Flex排版) --- */
.yl-svc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 120px; /* 增加項目之間的垂直距離 */
    gap: 60px; /* 圖文之間的間隙 */
}

/* 讓最後一個項目不需要底部間距 */
.yl-svc-item:last-child {
    margin-bottom: 0;
}

/* --- 左側內容區 --- */
.yl-svc-content {
    flex: 1;
    max-width: 45%;
}

.yl-svc-title {
    font-family: 'Noto Serif TC', serif; /* 標題使用宋體增加質感 */
    font-size: 2rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px; /* 預留空間給底線 */
}

/* 標題下方的橘色粗線 */
.yl-svc-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 6px;
    background-color: #ff6c39;
}

.yl-svc-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* --- 右側圖片區 (含藍色背景特效) --- */
.yl-svc-image-col {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center; /* 讓圖片在區塊內置中 */
    /* 預留空間給左下方的藍色色塊 */
    padding-left: 20px; 
    padding-bottom: 20px;
}

.yl-svc-img-box {
    position: relative;
    width: 100%;
    max-width: 500px; /* 限制圖片最大寬度，避免過大 */
    z-index: 2;
}

/* 藍色色塊 (Blue Blob) */
.yl-svc-img-box::before {
    content: '';
    position: absolute;
    z-index: -1; /* 位於圖片後方 */
    
    /* 位置偏移：向左下角移動 */
    top: 30px; 
    left: -30px;
    
    /* 大小與圖片一致 */
    width: 100%;
    height: 100%;
    
    /* 樣式設定 */
    background-color: #d2fff9; /* 設計稿淺藍色 */
    border-radius: 60px;       /* 與圖片一致的大圓角 */
    transition: transform 0.3s ease;
}

/* 圖片本體 */
.yl-svc-img {
    width: 100%;
    height: auto;
    display: block;
    
    /* 樣式設定 */
    border-radius: 60px; /* 大圓角 */
    object-fit: cover;
    aspect-ratio: 4/3; /* 鎖定長寬比 */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* 滑鼠互動：色塊微幅回縮 */
.yl-svc-item:hover .yl-svc-img-box::before {
    transform: translate(10px, -10px);
}

/* =========================================================
   4. RWD 媒體查詢 (針對不同裝置優化)
   ========================================================= */

/* --- Tablet & Mobile (平板與手機: < 992px) --- */
@media (max-width: 991px) {
    .yl-svc-item {
        /* 改為垂直排列：圖片在上，文字在下 */
        flex-direction: column-reverse; 
        gap: 30px;
        margin-bottom: 90px;
    }

    .yl-svc-content {
        max-width: 100%;
        padding: 0 10px;
    }

    .yl-svc-image-col {
        max-width: 80%; /* 圖片在平板上縮小一點，比較精緻 */
        margin: 0 auto;
        padding-left: 15px; /* 調整手機版偏移空間 */
        padding-bottom: 15px;
    }

    .yl-svc-title {
        text-align: left; /* 手機版標題靠左或置中皆可，此處維持靠左 */
    }
    
    /* 手機版色塊偏移稍微縮小 */
    .yl-svc-img-box::before {
        top: 20px;
        left: -20px;
        border-radius: 40px;
    }
    
    .yl-svc-img {
        border-radius: 40px;
    }
}

/* --- Mobile Only (手機: < 576px) --- */
@media (max-width: 576px) {
    .yl-svc-wrapper {
        padding: 50px 0;
    }

    .yl-svc-main-title {
        font-size: 1.8rem;
    }

    .yl-svc-intro-text {
        font-size: 1rem;
        text-align-last: left; /* 手機版取消強制置中對齊 */
    }

    .yl-svc-image-col {
        max-width: 100%; /* 手機版圖片滿版 */
    }

    .yl-svc-title {
        font-size: 1.6rem;
    }

    .yl-svc-desc {
        font-size: 1rem;
    }
}

