/* ==========================================
   1. 字型設定 (Font-face)
   ========================================== */
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter.ttf') format('truetype');
}

@font-face {
    font-family: 'NotoSansTC';
    src: url('fonts/NotoSansTC.ttf') format('truetype');
}

/* 全域重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* 優先載入英文 Inter，中文字使用 NotoSansTC */
    font-family: 'Inter', 'NotoSansTC', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

section[id],
section[id] * {
    scroll-margin-top: 90px;
}


/* ==========================================
   2. 導覽列 (Header & Navigation) - 電腦版預設
   ========================================== */
header.site-header {
    display: block;
    width: 100%;
    background-color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    height: 40px;
}

.logo a {
    display: block;
    height: 100%;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* 電腦版選單列表 */
.nav-menu .nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu .nav-list > li {
    position: relative;
}

/* --- 選單連結通用樣式 --- */
.nav-menu a {
    text-decoration: none !important;
    color: #1a1a1a !important;        /* 預設深色文字 */
    font-weight: 700; 
    font-size: 0.875rem; 
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent; /* 預設透明底線，避免 hover 時畫面跳動 */
}

/* 2. 當前頁面 (.active)：只有紅字，絕對不要底線 */
.nav-menu a.active {
    color: #c41230 !important;
    border-bottom: 2px solid transparent !important; /* 👈 無底線 */
}

/* 3. 滑鼠 Hover (包含一般頁面與當前頁面)：顯示紅色底線 */
.nav-menu a:hover,
.nav-menu a.active:hover {
    border-bottom: 2px solid #c41230 !important; /* 👈 滑鼠移上去才出現底線 */
}

/* 4. 滑鼠 Hover 時的字體顏色設定 */
.nav-menu a:not(.active):hover {
    color: #1a1a1a !important; /* 一般項目 Hover 保持黑字 */
}

.nav-menu a.active:hover {
    color: #c41230 !important; /* Active 項目 Hover 保持紅字 */
}
/* --- 下拉箭頭樣式：預設藏起來 --- */
.arrow-down::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    margin-bottom: 2px;
    flex-shrink: 0;
    

}


/* 電腦版下拉選單 (懸浮選單) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #ffffff;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    list-style: none;
    padding: 0.8rem 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    border-radius: 4px;
    z-index: 110;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333333 !important;
    white-space: nowrap;
    justify-content: center;
    border-bottom: none !important;
}

.dropdown-menu li a:hover {
    background-color: #f8f8f8;
    color: #c41230 !important;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 手機版專屬元素於電腦版隱藏 */
.mobile-nav-top,
.mobile-social-links,
.menu-toggle {
    display: none;
}

.menu-toggle {
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    width: 28px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background-color: #c41230;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) { width: 60%; }
.menu-toggle span:nth-child(2) { width: 100%; }
.menu-toggle span:nth-child(3) { width: 60%; align-self: flex-start; }

/* ==========================================
   4. RWD 響應式設定 (僅手機版生效)
   ========================================== */
@media screen and (max-width: 768px) {
    /* 漢堡按鈕顯示 */
    .menu-toggle {
        display: flex;
    }

    /* 手機全螢幕抽屜選單容器 */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #f7f7f7 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important; /* 👈 改為靠頂部對齊 */
    padding: 2rem 2.5rem 3rem 2.5rem;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow-y: auto;
    box-sizing: border-box;
}

    .nav-menu.active {
        right: 0;
    }

    /* 右上角關閉按鈕 X */
    .mobile-nav-top {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 2rem;
    }

    .close-menu {
        background: none;
        border: none;
        font-size: 2.2rem;
        font-weight: 300;
        line-height: 1;
        color: #c41230;
        cursor: pointer;
        padding: 0;
    }

    /* 選單列表結構與邊線 */
    .nav-menu .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        border-top: 1px solid #333333;
    }

    .nav-menu .nav-list > li {
        width: 100%;
        border-bottom: 1px solid #333333;
    }

    /* 主選單連結文字樣式 */
    .nav-menu a {
        padding: 1.2rem 0;
        width: 100%;
        justify-content: space-between;
        font-size: 1.1rem;
        font-weight: 600;
        color: #1a1a1a !important;
        background: transparent;
        text-decoration: none;
    }

    .nav-menu a:hover,
    .nav-menu .active {
        color: #c41230 !important;
        border-bottom: none !important;
    }

    /* --- 右側 + / − 展開符號修復 --- */
    .arrow-down::after {
        content: '+' !important;
        border: none !important;
        transform: none !important;
        font-size: 1.4rem !important;
        font-weight: 300 !important;
        color: #1a1a1a !important;
        margin-left: 0 !important;
        margin-bottom: 0 !important;
        line-height: 1 !important;
    }

    /* 點擊展開時，將 + 號轉為 − 號 (解決出現二條線/等號的問題) */
    .has-dropdown.open .arrow-down::after,
    .has-dropdown.open > a .arrow-down::after {
        content: '−' !important;
    }

    /* --- 下拉子選單 (Dropdown Menu) 修復 --- */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        background-color: transparent !important;
        padding: 0.5rem 0 1rem 1.2rem !important; /* 縮排做出層次感 */
        border-radius: 0 !important;
        display: none !important; /* 預設收合 */
    }

    /* 當父級 .has-dropdown 帶有 .open 時顯示子選單 */
    .has-dropdown.open > .dropdown-menu {
        display: block !important;
    }

    .dropdown-menu li {
        border-bottom: none !important; /* 子選項移除底線 */
        margin: 0 !important;
    }

    /* 子選單文字顏色（確保顯色不反白） */
    .dropdown-menu li a {
        padding: 0.6rem 0 !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        color: #555555 !important;
        justify-content: flex-start !important;
        background: transparent !important;
    }

    .dropdown-menu li a:hover {
        color: #c41230 !important;
    }

    /* 底部社群 Icon 區塊 (FontAwesome 專用) */
    .mobile-social-links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding-top: 0.5rem;   /* 👈 將原本的 1.5rem 縮小，減少上方的留白 */
        margin-top: 1rem;   /* 👈 利用負 Margin 向上拉升（可依需求調整如 -1rem ~ -2rem） */
        padding-bottom: 1rem;
    }

    .mobile-social-links a {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: auto !important;             /* 👈 關鍵：取消固定寬高，清除灰方塊 */
        height: auto !important;
        background-color: transparent !important; /* 👈 關鍵：清空背景色 */
        text-decoration: none !important;
        padding: 0 !important;
    }

    .mobile-social-links i {
        font-size: 2.6rem !important;        /* 控制 Icon 大小 */
        color: #4e4d4d !important;          /* 預設 Icon 為質感深黑/灰色 */
        transition: color 0.3s ease;
        display: block;
    }

    /* Hover 滑鼠移上去或點擊時變為德星紅 */
    .mobile-social-links a:hover i {
        color: #c41230 !important;
    }

}




/* ==========================================
   3. 主視覺區域 (Hero Banner)
   ========================================== */
.hero {
    position: relative;
    width: 100%;
    height: calc(80vh - 88px);
    min-height: 400px;
    background-color: #0b0c10;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    clear: both;
}

/* 背景大圖：鎖定範圍不撐爆版面 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}


/* ==========================================
   4. RWD 響應式設定 (手機全螢幕選單)
   ========================================== */
@media screen and (max-width: 768px) {
    /* 7. 手機版 Hero Banner 微調 */
    .hero {
        height: 60vh;
        min-height: 300px;
    }

    .hero-content h1 {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}



/* ==========================================
   4. 數據統計區塊 (Stats Section)
   ========================================== */
.stats-section {
    background-color: #ffffff;
    padding: 3.5rem 2rem 5rem;
}

.stats-container {
    max-width: 1200px; /* 👈 補上：鎖定最大寬度 */
    margin: 0 auto;    /* 👈 補上：水平居中對齊 Header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* 在整個容器的最左邊與最右邊畫上垂直線 */
    border-left: 1px solid #dcdcdc;
    border-right: 1px solid #dcdcdc;
    box-sizing: border-box;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0;
    position: relative;
}

/* 只在「中間」項目右側加上垂直分隔線 */
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 45px;
    background-color: #dcdcdc;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #333333;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

.stat-number-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.stat-unit {
    font-size: 0.85rem;
    color: #333333;
}


/* ==========================================
   5. 關於德星文案區塊 (About Section) - 電腦版預設
   ========================================== */
.about-section {
    padding: 4rem 2rem 6rem;
    background-color: #ffffff;
}

/* 👈 補上：電腦版左右併排結構 (解決跑版問題) */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex; 
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
}

.about-left {
    flex: 1;
}

.about-left h2 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
}

.about-en-slogan {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1a1a1a;
}

.about-right {
    flex: 1.5;
}

.about-subheading {
    color: #c41230;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-main-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-description {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}


/* ==========================================
   RWD 手機與平板響應式微調 (768px 以下)
   ========================================== */
@media screen and (max-width: 768px) {
    
    /* 1. 數據統計區塊 (2 x 2 網格) */
    .stats-section {
        padding: 2.5rem 1.5rem 3.5rem;
    }

    .stats-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
        border-left: none;
        border-right: none;
    }

    .stat-item {
        text-align: left;
        padding: 0 0 0 0.8rem;
        position: relative;
        border-left: 1px solid #dcdcdc;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .stat-label {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .stat-number-wrap {
        justify-content: flex-start;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    /* 2. 關於德星文案區塊 (手機切換為單欄) */
    .about-section {
        padding: 0 1.5rem 4rem;
    }

    .about-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .about-left {
        text-align: center;
        width: 100%;
    }

    .about-left h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .about-en-slogan {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .about-right {
        width: 100%;
    }

    .about-subheading {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .about-main-title {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .about-description {
        font-size: 0.85rem;
        line-height: 1.8;
        margin-bottom: 2rem;
    }

    .about-right .btn-more {
        display: flex;
        margin: 0 auto;
        width: fit-content;
    }
}

/* ==========================================
   5. 關於德星文案區塊 (About Content Section)
   ========================================== */
.about-section {
    background-color: #ffffff;
    padding: 0 2rem 6rem; /* 縮小與上方統計區的間距，視覺更緊湊 */
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5rem;
}

/* 左側文字 - 貼緊最左邊線條對齊 */
.about-left {
    flex: 1;
}

.about-left h2 {
    font-size: 2.3rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.about-en-slogan {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 5px;
}

/* 右側詳細介紹 */
.about-right {
    flex: 1.2;
}

.about-subheading {
    font-size: 1rem;
    color: #c41230; /* 經典紅標語 */
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 2   px;
}

.about-main-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.about-description {
    font-size: 0.875rem;
    color: #353535;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
}

/* 深灰色按鈕 */
.btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background-color: #434649;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 3.5rem;
    font-size: 0.85rem;
    font-weight: 400;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.btn-more:hover {
    background-color: #1a1a1a;
}



/* ==========================================
   7. 服務特點大圖區塊 (Service Features Section)
   ========================================== */
.service-features-section {
    position: relative;
    width: 100%;
    min-height: 520px;
    background-color: #222222; /* 圖片尚未載入時的深色底 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 2rem;
}

/* 大背景圖 */
.service-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* 壓暗遮罩，讓白字與圓形更突出 */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

/* 內容主容器：改用 flex 左右分欄 */
.service-container {
    position: relative;
    z-index: 3;
    max-width: 1000px; /* 與上方統計區、文案區保持完全一致的版心寬度 */
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 左側主標語 */
.service-title-wrap {
    flex-shrink: 0;
}

.service-title-wrap h2 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 右側群組：專門包裹圓形與底部文字 */
.service-right-group {
    display: flex;
    flex-direction: column;
    align-items: center; /* 讓內部的圓形組與文字自動水平居中對齊 */
}

/* 中央 4 個半透明圓形 */
.service-circles-grid {
    display: flex;
    align-items: center;
}

.circle-item {
    width: 185px;
    height: 185px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    
    /* 交疊視覺效果 */
    margin-left: -20px; 
    transition: transform 0.3s ease, background 0.3s ease;
}

/* 取消第一個圓形的左邊負邊距 */
.circle-item:first-child {
    margin-left: 0;
}

.circle-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.88);
}

.circle-title-zh {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
    letter-spacing: 1px;
}

.circle-title-en {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    color: #333333;
    line-height: 1.25;
    letter-spacing: 0.5px;
}

/* 底部說明文字：置中於右側圓形群組下方 */
.service-footer-text {
    margin-top: 3.5rem;
    text-align: center;
}

.service-footer-text p {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}


/* ==========================================
   服務特點大圖區塊 - 手機版 RWD (768px 以下)
   ========================================== */
@media screen and (max-width: 768px) {

    /* 1. 外層容器：改為垂直單欄，全部項目居中 */
    .service-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* 2. 頂部主標語：置中並增加下方間距 */
    .service-title-wrap {
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }

    .service-title-wrap h2 {
        font-size: 1rem;
        line-height: 1.3;
    }

    /* 3. 右側群組：維持寬度 100% 置中 */
    .service-right-group {
        width: 100%;
        align-items: center;
    }

    /* 4. 4 個圓形：改為垂直一欄排列 */
    .service-circles-grid {
        flex-direction: column; /* 直立排列 */
        align-items: center;
        width: 100%;
    }

    .circle-item {
        width: 175px;  /* 手機版適度縮小圓形尺寸 */
        height: 175px;
        
        /* 關鍵：將橫向的 margin-left 負邊距，改為縱向的 margin-top 負邊距 */
        margin-left: 0;
        margin-top: -25px; /* 上下重疊的效果 */
    }

    /* 第一個圓形不需要向上的負邊距 */
    .circle-item:first-child {
        margin-top: 0;
    }

    .circle-title-zh {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .circle-title-en {
        font-size: 0.65rem;
    }

    /* 5. 底部說明文字：置中對齊 */
    .service-footer-text {
        margin-top: 2.5rem;
        padding: 0 1rem;
        text-align: center;
    }

    .service-footer-text p {
        font-size: 0.875rem;
        line-height: 1.6;
    }
}


/* ==========================================
   8. 主要商品區塊 (Product Categories Section)
   ========================================== */
.products-section {
    background-color: #ffffff;
    padding: 6rem 2rem;
}

.products-container {
    max-width: 1000px; /* 與上方區塊保持完全相同的版心寬度 */
    margin: 0 auto;
}

/* 頂部標題與說明文字 */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 3.5rem;
}

.products-header-left {
    flex: 1;
}

.products-header-left h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 0.4rem;
    letter-spacing: 1px;
}

.products-en-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666666;
    letter-spacing: 1px;
}

.products-header-right {
    flex: 2;
}

.products-header-right h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.products-header-right p {
    font-size: 0.875rem;
    color: #111111;
    line-height: 1.8;
    text-align: justify;

}

/* 中央三欄商品卡片 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.product-card {
    text-decoration: none;
    display: block;
}

.product-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3; /* 保持圖片固定比例 */
    background-color: #f0f0f0; /* 圖片載入前的佔位底色 */
    overflow: hidden;
    margin-bottom: 1.2rem;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Hover 懸停圖片微放大效果 */
.product-card:hover .product-img-wrap img {
    transform: scale(1.04);
}

/* 卡片下方文字 */
.product-info {
    text-align: center;
}

.product-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.product-en {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #777777;
    letter-spacing: 0.5px;
}

/* 底部按鈕區塊（置中） */
.products-footer {
    text-align: center;
}


/* ==========================================
   RWD 手機 / 平板響應式調整
   ========================================== */
@media screen and (max-width: 768px) {

    .products-header {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }



    .products-grid {
        grid-template-columns: 1fr; /* 手機版商品卡片改為單欄 */
        gap: 2.5rem;
    }
}


/* ==========================================
   9. 常見問題區塊 (FAQ Section) - 長條拉寬版
   ========================================== */
.faq-section {
    background-color: #ffffff;
    padding: 6rem 2rem;
}

.faq-container {
    max-width: 1000px; /* 保持與全站一致的版心寬度 */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2.5rem; /* 縮小左右間距，把空間留給長條框 */
}

/* 左側標題：縮小佔比 */
.faq-header-left {
    flex: 0.8; /* 縮小左側，讓右側更有延伸空間 */
}

.faq-header-left h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 0.4rem;
    letter-spacing: 1px;
}

.faq-en-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666666;
    letter-spacing: 1px;
}

/* 右側問答區：加大比例，實現寬長條感 */
.faq-content-right {
    flex: 2.5; /* 放大右側寬度 */
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* 稍微縮小長條框之間的垂直間距，看起來更俐落 */
    margin-bottom: 2rem;
}

/* 長條框：獨立外框 */
.faq-item {
    border: 1px solid #4a4a4a;
    background-color: #ffffff;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* 問題點擊區：壓低上下 Padding (從 1.1rem 改為 0.8rem)，打造扁平長條感 */
.faq-question {
    width: 100%;
    padding: 0.8rem 1.5rem; /* 精緻的上下高度 */
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 400;
    color: #1a1a1a;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #f4f4f4;
}

/* 右側 + 號 */
.faq-icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: #333333;
    transition: transform 0.3s ease;
}

.faq-icon::before {
    top: 6px;
    left: 0;
    width: 100%;
    height: 1.5px;
}

.faq-icon::after {
    top: 0;
    left: 6px;
    width: 1.5px;
    height: 100%;
}

/* ------------------------------------------
   點開問題後的狀態 (.faq-item.active)
   ------------------------------------------ */
.faq-item.active .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-item.active .faq-icon::before {
    background-color: #c41230;
}

.faq-item.active .faq-question {
    font-weight: 700;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.5rem;
    background-color: #ffffff;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0.5rem 1.5rem 1rem;
    border-top: 1px solid #eeeeee;
}

.faq-answer p {
    font-size: 0.875rem;
    color: #555555;
    line-height: 1.8;
    margin: 0;
    text-align: justify;
}

/* 底部按鈕：與長條框完全等寬的兩顆長條按鈕 */
.faq-buttons {
    display: flex;
    gap: 1.2rem;
}

.btn-faq {
    flex: 1;
    display: inline-block;
    background-color: #434649;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    padding: 0.65rem 0; /* 調整按鈕高度，呈現俐落修長的扁條感 */
    font-size: 0.9rem;
    font-weight: 400;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.btn-faq:hover {
    background-color: #1a1a1a;
}



/* ==========================================
   RWD 手機版 (768px 以下)
   ========================================== */
@media screen and (max-width: 768px) {
    .faq-section {
        padding: 4rem 1.5rem;
    }

    .faq-container {
        flex-direction: column;
        gap: 2rem;
    }

    /* 手機版：標題置中 */
    .faq-header-left {
        width: 100%;
        text-align: center;
    }

    .faq-content-right {
        width: 100%;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1rem 1.2rem;
    }

    /* 手機版底部兩顆按鈕 */
    .faq-buttons {
        gap: 1rem;
    }
    
    .btn-faq {
        font-size: 0.85rem;
        padding: 0.75rem 0;
    }
}

/* ==========================================
   10. 頁尾區塊 (Footer) - 電腦版預設
   ========================================== */
.site-footer {
    position: relative;
    background-image: url('images/footer/Footer_Desktop.png');
    background-size: cover;
    background-position: center;
    background-color: #333;
    color: #ffffff;
    
    /* 
       將第一個數字 (上邊距) 縮小，例如從 5rem 改成 2.5rem 或 3rem
       內容就會立刻往上移！
    */
    padding: 4rem 2rem 4rem; 

    /* 依然保持背景圖有足夠高度 */
    min-height: 500px; 

    font-family: system-ui, -apple-system, sans-serif;
}
/* 背景深色遮罩 */
.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.footer-container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

/* 頂部右側裝飾細白線 */
.footer-top-line {
    position: absolute;
    top: -2rem;
    right: 0;
    width: 45%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.7);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    padding-bottom: 3rem;
}

/* --- 電腦版左側：Logo 與聯絡資訊 --- */
.footer-left {
    flex: 1.2;
    max-width: 400px;
}

.footer-logo img {
    height: 45px;
    margin-bottom: 1.2rem;
}

.footer-contact-info {
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 235px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #f0f0f0;
}

.info-row .divider {
    opacity: 0.6;
}

/* 社群按鈕 */
.footer-socials {
    display: flex;
    gap: 0.8rem;
}

.social-btn {
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    color: #1a1a1a;
    border-radius: 8px;
    display: flex;
    margin: 0  1.1rem 0 0;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: #c41230;
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- 電腦版右側：5 欄選單橫排 --- */
.footer-right {
    display: flex;
    flex-wrap: nowrap !important; /* 強制不換行，保持單行 */
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem !important;       /* 5 欄適當間距，畫面比較好看 */
    width: 100%;
    max-width: 100%;             /* 確保不超出容器 */
}

/* 核心關鍵：5 欄平分寬度 + 頂部白線 */
.footer-nav-col {
    flex: 1 1 0px !important;    /* 👈 關鍵修改：強制 5 欄「平分」所有剩餘寬度，絕不折行 */
    min-width: 0;                /* 👈 關鍵修改：防止文字/標題把欄位撐大造成擠壓 */
    border-top: 1px solid rgba(255, 255, 255, 0.85); /* 每一欄獨立的頂線 */
    padding-top: 1.2rem;          /* 線與大標題之間的距離 */
}

/* 電腦版標題按鈕樣式 */
/* 電腦版：標題按鈕樣式 */
.footer-acc-btn {
    background: none;
    text-decoration: none;             /* 移除超連結下劃線 */
    border: none;
    padding: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 1rem;
    cursor: default;
    width: 100%;
    display: block;
}




.footer-acc-btn:hover {
    color: #e0e0e0;                    /* 滑過時輕微變色 */
}
/* 電腦版隱藏右側的 + 號 */
.acc-icon {
    display: none;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin-bottom: 0.8rem;
}

.nav-list a {
    color: #dddddd;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.nav-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* 版權宣告 */
.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}


/* ==========================================
   10-RWD. Footer 手機版 (768px 以下)
   ========================================== */
@media screen and (max-width: 768px) {

    .site-footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-top-line {
        display: none; /* 手機版隱藏右上裝飾線 */
    }

    /* 手機版將「選單」擺在上，「聯絡資訊」擺在下 */
    .footer-content {
        display: flex;
        flex-direction: column-reverse; /* 上下翻轉：選單到最上面 */
        gap: 2.5rem;
        padding-bottom: 2rem;
    }

    /* --- 1. 手機版右側選單：轉為手風琴風貌 --- */
    .footer-right {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        border-top: 1px solid rgba(255, 255, 255, 0.7) !important; /* 最頂部的線 */
        gap: 0 !important;
    }

    .footer-nav-col {
        width: 100% !important;
        flex: none !important; /* 重置電腦版的 flex: 1，讓它還原成單欄 */
        border-top: none !important; /* 移除電腦版的獨立頂線 */
        border-bottom: 1px solid rgba(255, 255, 255, 0.7) !important; /* 改為每欄底線 */
        padding-top: 0 !important;
        position: relative; /* 供右側箭頭按鈕絕對定位 */
    }

    /* 手機版標題連結：保留 HTML <a> 的原生跳轉 */
    .footer-acc-btn {
        padding: 1rem 0.5rem !important;
        margin-bottom: 0 !important;
        cursor: pointer !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        font-weight: 600 !important;
        font-size: 1rem !important;
        color: #ffffff !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        position: relative;
        padding-right: 50px !important; /* 留出右側空間，避免文字撞到加號 */
        text-decoration: none !important; /* 移除超連結底線 */
        box-sizing: border-box !important;
    }

    /* 獨立按鈕化：加號獨立點擊區（加大 Touch Target 避免誤觸文字） */
    .acc-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        width: 48px !important;            /* 加大熱區，手指好點擊 */
        height: 100% !important;
        cursor: pointer !important;
        z-index: 5 !important;             /* 權限高於連結，優先觸發 JS */
        flex-shrink: 0;
    }

    /* 加號 (+) 的繪製圖形 */
    .acc-icon::before,
    .acc-icon::after {
        content: '';
        position: absolute;
        background-color: #ffffff;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;              /* 讓點擊事件直接穿透給 .acc-icon 容器 */
    }

    .acc-icon::before {
        width: 12px;
        height: 1.5px;
    }

    .acc-icon::after {
        width: 1.5px;
        height: 12px;
    }

    /* 展開時：將 + 號轉為 - 號 */
    .footer-nav-col.active .acc-icon::after {
        transform: rotate(90deg);
        opacity: 0;
    }

    /* 子選單隱藏與展開 (動畫流暢度優化) */
    .footer-nav-col .nav-list,
    .footer-nav-col ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
        padding: 0 0.5rem;
        margin: 0;
        list-style: none;
    }

    .footer-nav-col.active .nav-list,
    .footer-nav-col.active ul {
        max-height: 300px !important;     /* 加大高度上限，確保內容不被截斷 */
        padding: 0.5rem 0.5rem 1.2rem !important;
    }

    .footer-nav-col ul li a {
        display: block;
        padding: 0.4rem 0;
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 0.9rem;
        text-decoration: none;
    }

    /* --- 2. 手機版左側資訊：全置中 --- */
    .footer-left {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .footer-logo img {
        height: 40px;
        margin-bottom: 1.5rem;
    }

    .footer-contact-info {
        border: none !important;
        padding: 0 !important;
        margin-bottom: 1.5rem !important;
    }

    .info-row {
        justify-content: center !important;
    }

    .footer-socials {
        justify-content: center !important;
    }
}


/* ==========================================
   關於德星 - 主視覺區塊 (About Hero Banner)
   ========================================== */
.about-hero {
    position: relative;
    width: 100%;
    min-height: 80vh; /* 畫面高度約佔視窗的 80% */
    background-image: url('images/about/2-1關於德星_Desktop_1.png'); /* 👈 請替換為您的建築物背景圖路徑 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding: 4rem 1.5rem;
    box-sizing: border-box;
}

/* 深色半透明遮罩 (壓低背景亮度) */
.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35); /* 可調整 0.35 改變遮罩深淺 */
    z-index: 1;
}

.about-hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* 1. 頂部標題 */
.hero-title {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 2. 中間年代與箭頭 */
.hero-timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hero-timeline .year {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: system-ui, -apple-system, sans-serif;
    letter-spacing: 1px;
    line-height: 1;
}

/* 中間橫線與箭頭的整體容器 */
.arrow-line {
    display: flex;
    align-items: center; /* 關鍵：強制所有元件垂直置中對齊 */
    width: 220px;       /* 可依需求調整線條長度 */
    gap: 0.5rem;
}

/* 左側直線 */
.arrow-line .line {
    flex: 1;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
}

/* 右側三個箭頭的包裹層 */
.arrows-wrapper {
    display: flex;
    align-items: center;
    gap: 4px; /* 箭頭之間的間距 */
}

/* 用 CSS 邊框畫出漂亮的 > 箭頭 */
.arrow-head {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2.5px solid #ffffff;  /* 箭頭線條粗細 */
    border-right: 2.5px solid #ffffff; /* 箭頭線條粗細 */
    transform: rotate(45deg);          /* 旋轉 45 度變成 > 形狀 */
    margin-left: -2px;                 /* 讓箭頭稍微緊湊一點 */
}

/* 3. 底部簡介文字 */
.hero-description {
    font-size: 1.15rem;
    line-height: 1.9;
    letter-spacing: 1.5px;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* ==========================================
   RWD 手機版微調 (768px 以下)
   ========================================== */
@media screen and (max-width: 768px) {
    .about-hero {
        min-height: 60vh;
        padding: 3rem 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-timeline .year {
        font-size: 2.2rem;
    }

    .arrow-line {
        width: 100px; /* 手機版縮短中間橫線 */
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    /* 手機版取消換行限制，自動順排 */
    .hero-description br {
        display: none;
    }
}




/* ==========================================
   企業簡介區塊 (Company Profile Section)
   ========================================== */
.company-intro {
    background-color: #f9f9f9; /* 淺灰背景底色 */
    padding: 6rem 2rem;
    color: #333333;
}

.intro-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* 上半部：左右 Flex 排版 */
.intro-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 4rem; /* 上方文字與下方大圖的間距 */
}

/* 左側標題欄 */
.intro-title-col {
    flex: 1;
    max-width: 280px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    letter-spacing: 2px;
    color: #dbdbdb;
}

.section-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #777777;
    letter-spacing: 1.5px;
    font-weight: 500;
    font-family: system-ui, -apple-system, sans-serif;
}

/* 右側內文欄 */
.intro-text-col {
    flex: 2.2;
    display: flex;
    flex-direction: column;
    gap: 1.8rem; /* 兩段文字之間的距離 */
}

.intro-text-col p {
    font-size: 1rem;
    line-height: 2; /* 較寬鬆的行高，提升閱讀舒服度 */
    color: #444444;
    margin: 0;
    letter-spacing: 0.8px;
    text-align: justify; /* 兩端對齊 */
}

/* 下半部：圖片容器 */
.intro-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.intro-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


/* ==========================================
   RWD 手機版切換 (768px 以下)
   ========================================== */
@media screen and (max-width: 768px) {
    /* 1. 調整外層留白與背景 */
    .company-intro {
        padding: 3rem 1.2rem !important; 
        background-color: #f9f9f9;
        text-align: center; /* 👈 全域文字置中 */
    }

    /* 2. 讓內部容器佔滿全寬 */
    .intro-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }

    /* 3. 標題與內文縱向置中佈局 */
    .intro-top {
        flex-direction: column;
        align-items: center; /* 水平置中所有子元件 */
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .intro-title-col {
        width: 100%;
        text-align: center;
    }

    .intro-text-col {
        width: 100%;
        gap: 1.2rem;
    }

    /* 4. 段落文字置中與行高優化 */
    .intro-text-col p {
        font-size: 0.95rem;
        line-height: 1.8;
        margin: 0 auto;
    }

    /* 5. 圖片置中滿版 */
    .intro-image-wrapper {
        width: 100%;
        margin: 0 auto;
    }

    .intro-image-wrapper img {
        width: 100%;
        height: auto;
        display: block;
    }
}



/* ==========================================
   我們的願景區塊 (Vision Section) - 電腦版
   ========================================== */
.vision-section {
    position: relative;
    background-color: #f8f8f8; /* 淺灰背景 */
    padding: 3rem 2rem 5rem;
    overflow: hidden;
    color: #2b2b2b;
}

.vision-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* 1. 上方大字：獨立在頂部 */
.vision-bg-text {
    width: 100%;
    text-align: center;
    font-size: 8.5rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.04); /* 淡灰色半透明 */
    letter-spacing: 12px;
    line-height: 0.9;
    user-select: none;
    pointer-events: none;
    margin-bottom: 2.5rem;
    font-family: system-ui, -apple-system, sans-serif;
}

/* 2. 下方欄位內容 */
.vision-content {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 垂直置中對齊 */
    gap: 2rem;
}

/* --- 左欄：標題 --- */
.vision-title-col {
    flex: 1;
    max-width: 180px;
}

.vision-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    letter-spacing: 2px;
}

.vision-subtitle {
    font-size: 0.8rem;
    color: #666666;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* --- 中欄：中文重點 --- */
.vision-zh-col {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;               /* 每行之間的距離 */
    max-width: fit-content;    /* 讓容器寬度自動貼合內容 */
}

/* 1. 第一行標題修正（解決偏左與字間距問題） */
.vision-zh-col .highlight-title {
    margin: 0 0 0.8rem 0;
    font-size: 1.25ram;
    font-weight: 800;
    color: #555555;

    
    /* 👈 關鍵修正：消除最後一個字右邊多出來的空白，讓「從」與下方完全齊平 */
    margin-right: -0.35em;     
    white-space: nowrap;
}

/* 2. 後三行內文：讓字寬與標題等寬（兩端對齊） */
.vision-zh-col p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #333333;
    line-height: 1.5;
    
    /* 👈 讓底下三行的寬度自動展開，兩端與標題齊平 */

    width: 100%;
}

/* --- 中間垂直分隔線 --- */
.vision-divider {
    width: 1px;
    height: 100px;             /* 分隔線高度 */
    background-color: #d0d0d0;  /* 灰色實線 */
    flex-shrink: 0;
    margin: 0 1rem;
}

/* --- 右欄：英文說明 --- */
.vision-en-col {
    flex: 1.8;
    max-width: 320px;
}

.vision-en-col p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.75;
    color: #555555;
    letter-spacing: 0.02em;
}


/* ==========================================
   RWD 手機版切換 (768px 以下)
   ========================================== */
@media screen and (max-width: 768px) {
    
    .vision-section {
        padding: 2.5rem 1.5rem 3.5rem;
    }

    .vision-bg-text {
        font-size: 3.8rem;
        letter-spacing: 4px;
        margin-bottom: 1.5rem;
    }

    .vision-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .vision-title-col {
        max-width: 100%;
        text-align: center;
    }

    /* 手機版隱藏垂直線 */
    .vision-divider {
        display: none;
    }

    .vision-zh-col {
        width: 100%;
        max-width: 320px;
        align-items: center; /* 手機版文字置中 */
        text-align: center;
    }

    .vision-zh-col .highlight-title {
        font-size: 1.8rem;
        letter-spacing: 0.25em;
    }

    .vision-zh-col p {
        text-align: center;
        font-size: 0.95rem;
    }

    .vision-en-col {
        width: 100%;
        max-width: 320px;
    }

    .vision-en-col p {
        font-size: 0.85rem;
        line-height: 1.7;
        text-align: justify;
        text-align-last: left;
        hyphens: auto;
        -webkit-hyphens: auto;
        word-break: break-word;
    }
}
/* ==========================================
   創辦人的話 (Founder Section) 完整樣式
   ========================================== */

.founder-section {
    padding: 5rem 2rem;
    background-color: #fbfbfb;
    color: #333333;
    font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
    line-height: 1.8;
}

.founder-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
}

/* --- 左側主標題區塊 --- */
.founder-header {
    flex: 0 0 280px;
    width: 280px;
    position: static;
    
    /* 👈 加上左側內襯，把標題往右推 */
    padding-left: 40px !important; 
    box-sizing: border-box; /* 確保 padding 不會影響總寬度 */
}

.founder-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.3rem 0;
    letter-spacing: 0.05em;
}

.founder-subtitle {
    font-size: 0.85rem;
    color: #888888;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin: 0;
    text-transform: uppercase;
}

/* --- 右側內容區塊 --- */
.founder-content {
    flex: 1;
    max-width: 850px;
}

/* --- 小標題專用雙列排版 --- */
.founder-sub-header {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* 第一列：職稱姓名 ── */
.sub-header-top {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #555555;
    margin-bottom: 0.4rem;
}

.sub-header-top .dash {
    color: #777777;
    font-weight: 400;
}

/* 第二列：子標題 (靠左對齊) */
.sub-header-bottom {
    font-size: 1.25rem;
    font-weight: 700;
    color: #555555;
    letter-spacing: 0.03em;
}

/* --- 文章段落 --- */
.founder-text p {
    font-size: 0.95rem;
    color: #444444;
    margin-bottom: 1.5rem;
    text-align: justify;
    letter-spacing: 0.02em;
}

/* --- 中間圖片 --- */
.founder-image-wrapper {
    margin: 3rem 0;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.founder-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ==========================================
   RWD 手機版響應式設定 (768px 以下)
   ========================================== */
@media screen and (max-width: 768px) {
    .founder-section {
        padding: 3rem 1.2rem;
    }

    .founder-container {
        flex-direction: column;
        gap: 2rem;
    }

/* 手機版：取消電腦版的右推 Padding，恢復完全置中 */
    .founder-header {
        position: static !important;
        flex: none !important;
        width: 100% !important;
        
        /* 👈 關鍵修復：把電腦版的左邊距歸零 */
        padding-left: 0 !important; 
        
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;  /* 橫向內容置中 */
        text-align: center !important;    /* 文字置中 */
        margin-bottom: 1rem !important;
    }

    .founder-title,
    .founder-subtitle {
        text-align: center !important;
        width: 100% !important;
    }

        /* 手機版：小標題適度縮小，避免螢幕過窄擠壓 */
    .sub-header-top,
    .sub-header-bottom {
        font-size: 1.15rem !important;
    }

    .founder-text p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .founder-image-wrapper {
        margin: 2rem 0;
    }

}


.transition-gallery-section {
    width: 100%;
    padding: 3rem 0;
    background-color: rgb(249, 249, 249);
    overflow: hidden;
}

.transition-swiper {
    width: 100%;
    padding: 20px 0;
    position: relative;
}

/* 每張圖片的容器 */
.transition-swiper .swiper-slide {
    width: 640px;                        /* 中間主圖寬度 */
    height: 420px;                       /* 高度 */
    border-radius: 4px;
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0.35;                       /* 非中間圖片半透明 */
}

/* 核心置中的圖片亮起 */
.transition-swiper .swiper-slide-active {
    opacity: 1;                          /* 中間當前圖片亮起 */
}

.transition-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 左右箭頭按鈕 (客製化圓形樣式) */
.transition-swiper .gallery-arrow {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: #ffffff;
    transition: background 0.3s ease;
}

/* 修改 Swiper 原生箭頭圖示大小 */
.transition-swiper .gallery-arrow::after {
    font-size: 1.2rem;
    font-weight: bold;
}

.transition-swiper .gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* 控制箭頭位置在兩側圖片上 */
.transition-swiper .swiper-button-prev {
    left: calc(50% - 320px - 60px);
}

.transition-swiper .swiper-button-next {
    right: calc(50% - 320px - 60px);
}

/* RWD 響應式 */
@media screen and (max-width: 1024px) {
    .transition-swiper .swiper-slide {
        width: 480px;
        height: 340px;
    }
    .transition-swiper .swiper-button-prev {
        left: calc(50% - 240px - 50px);
    }
    .transition-swiper .swiper-button-next {
        right: calc(50% - 240px - 50px);
    }
}

@media screen and (max-width: 768px) {
    .transition-swiper .swiper-slide {
        width: 80vw;
        height: 280px;
    }
    .transition-swiper .swiper-button-prev {
        left: 10px;
    }
    .transition-swiper .swiper-button-next {
        right: 10px;
    }
}

/* ==========================================
   企業年表 (Company Chronology) 樣式
   ========================================== */

.chronology-section {
    padding: 6rem 2rem;
    background-color: #fbfbfb;
    color: #333333;
    font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
}

.chronology-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
}

/* 左側標題 (與「創辦人的話」保持對齊寬度) */
.chronology-header {
    flex: 0 0 280px;
    width: 280px;
    padding-left: 40px; /* 電腦版與創辦人的話一致向右微推 */
    box-sizing: border-box;
}

.chronology-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.3rem 0;
}

.chronology-subtitle {
    font-size: 0.85rem;
    color: #888888;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin: 0;
}

/* 右側時間軸區域 */
.chronology-timeline {
    flex: 1;
    position: relative;
    padding-left: 20px;
}

/* 貫穿中間的灰色垂直直線 */
.timeline-line {
    position: absolute;
    left: 23px; /* 垂直對齊小方塊中心 */
    top: 15px;
    bottom: 15px;
    width: 1.5px;
    background-color: #cccccc;
    z-index: 1;
}

/* 年表單一項目 */
.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 4rem; /* 項目之間的上下間距，讓滾動放大更明顯 */
    z-index: 2;
    cursor: pointer;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* 時間軸左側黑色小方塊節點 */
.timeline-node {
    width: 8px;
    height: 8px;
    background-color: #333333;
    margin-right: 25px;
    transition: transform 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

/* 年份與內文區域 (預設透明度較低、尺寸正常) */
.timeline-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #666666;
    opacity: 0.5; /* 未滾動到時稍微淡化 */
    transform-origin: left center; /* 👈 關鍵：從左側向右放大 */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                color 0.5s ease, 
                opacity 0.5s ease;
}

.timeline-content .year {
    font-weight: 700;
}

.timeline-content .divider {
    color: #aaaaaa;
    font-weight: 300;
}

.timeline-content .text {
    font-weight: 600;
}

/* ==========================================
   ✨ 滑動觸發：放大與高亮 (Active 狀態)
   ========================================== */

/* 1. 滑動到時，方塊節點變大並變亮 */
.timeline-item.active .timeline-node {
    transform: scale(1.6);
    background-color: #000000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* 2. 滑動到時，文字區域整體放大 1.25 倍、加深顏色 */
.timeline-item.active .timeline-content {
    opacity: 1;
    color: #000000;
    transform: scale(1.22); /* 👈 滾動到時放大的倍率 */
}


/* ==========================================
   RWD 手機版設定 (768px 以下)
   ========================================== */
@media screen and (max-width: 768px) {
    .chronology-container {
        flex-direction: column;
        gap: 5rem !important; /* 👈 1. 將上下區塊間距從 2.5rem 縮小至 1rem */
    }


    .chronology-header {
        width: 100% !important;
        height: auto !important;         /* 👈 強制高度自適應，防止死撐高度 */
        flex: none !important;
        padding: 0 !important;
        margin: 0 0 1.5rem 0 !important; /* 👈 關鍵：這裡控制標題與 1971 的距離 (改為合理的 1.5rem) */
        text-align: center !important;
    }

    .chronology-title {
        margin: 0 0 0.2rem 0 !important;
    }

    .chronology-subtitle {
        margin: 0 !important;
    }

    /* 3. 時間軸區塊頂部邊距歸零 */
    .chronology-timeline {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-left: 10px !important;
    }

    .timeline-item:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}



/* ==========================================
   品牌核心策略 (Brand Core Strategy) 樣式
   ========================================== */

.strategy-section {
    padding: 6rem 2rem;
    background-color: #fbfbfb;
    color: #333333;
    font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
}

.strategy-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center; /* 垂直居中對齊圓圈 */
    gap: 3rem;
}

/* 左側標題 (與「創辦人的話/企業年表」齊左對齊) */
.strategy-header {
    flex: 0 0 280px;
    width: 280px;
    padding-left: 40px; /* 電腦版維持微推距離 */
    box-sizing: border-box;
}

.strategy-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.3rem 0;
}

.strategy-subtitle {
    font-size: 0.85rem;
    color: #888888;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin: 0;
}

/* 右側圓圈區塊 */
.strategy-circles {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* 圓圈本體與外框 */
.circle-item {
    position: relative;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 1px solid #666666; /* 外圍細框線 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.circle-item:hover {
    transform: translateY(-6px); /* Hover 時微浮起 */
}

/* 圓圈漸層顏色 (從左到右由淺灰至深灰) */
.circle-item.level-1 { background-color: #f2f2f2; }
.circle-item.level-2 { background-color: #e5e5e5; }
.circle-item.level-3 { background-color: #cccccc; }
.circle-item.level-4 { background-color: #b3b3b3; }

/* 圓圈內文字樣式 */
.circle-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222222;
    margin: 0 0 0.5rem 0;
}

.circle-content p {
    font-size: 0.85rem;
    color: #444444;
    line-height: 1.5;
    margin: 0;
}

/* 圓圈軌道上的小黑點 (裝飾點) */
.dot {
    position: absolute;
    width: 9px;
    height: 9px;
    background-color: #333333;
    border-radius: 50%;
}

.dot-top {
    top: 15px;
    right: 25px;
}

.dot-bottom {
    bottom: 15px;
    left: 25px;
}

/* ==========================================
   品牌核心策略 - 手機版 (精準間距微調版)
   ========================================== */
@media screen and (max-width: 768px) {

    /* 1. 整個區塊上下留白縮小 */
    .strategy-section {
        padding-top: 2.5rem !important;
    }

    /* 2. 標題與「第一個圓圈」距離拉近 */
    .strategy-container {
        flex-direction: column !important;
        gap: 0rem !important;            /* 👈 關鍵：標題離第一個圓圈變近了！ */
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 3. 標題與副標題邊距歸零置中 */
    .strategy-header {
        width: 100% !important;
        padding-left: 0 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .strategy-title {
        margin: 0 0 0.2rem 0 !important;
        text-align: center !important;
    }

    .strategy-subtitle {
        margin: 0 !important;
        text-align: center !important;
    }

    /* 4. 圓圈容器：加大「圓圈與圓圈」之間的垂直距離 */
    .strategy-circles {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2.8rem !important;            /* 👈 關鍵：這裡把圓圈之間的間隔大幅拉開！ */
        padding: 0 !important;
        margin-top: 0.5rem !important;
    }

    /* 5. 單一圓圈大小 */
    .circle-item {
        flex: none !important;
        width: 155px !important;            /* 稍微調整最適合手機呈現的圓圈尺寸 */
        height: 155px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    /* 6. 圓圈內部文字大小與對齊 */
    .circle-content {
        transform: none !important;
        text-align: center !important;
    }

    .circle-content h3 {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        margin: 0 0 0.3rem 0 !important;
        line-height: 1.2 !important;
    }

    .circle-content p {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
        margin: 0 !important;
        color: #444444 !important;
    }

    /* 7. 外圍小黑點位置微調 */
    .dot {
        width: 8px !important;
        height: 8px !important;
    }

    .dot-top {
        top: 10px !important;
        right: 18px !important;
    }

    .dot-bottom {
        bottom: 10px !important;
        left: 18px !important;
    }
}

/* ==========================================
   團隊介紹封面 (Team Hero Banner) 樣式
   ========================================== */

.team-hero-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #111111;
}

.team-hero-wrapper {
    position: relative;
    width: 100%;
    /* ⬇️ 將電腦版高度調小 ⬇️ */
    height: 80vh;            /* 原為 80vh，改為 55vh 降低視覺高度 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-hero-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.team-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%; /* 調整電腦版相片聚焦重心 */
    display: block;
}

/* ⬇️ 新增：圖片深色遮罩，提升文字壓在圖片上的可讀性 ⬇️ */
.team-hero-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35); /* 35% 黑色的遮罩 */
    z-index: 1;
}

/* ⬇️ 新增：中央標題文字區塊 ⬇️ */
.team-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* 確保層級高於遮罩與圖片 */
    text-align: center;
    color: #ffffff;
    width: 90%;
}

.team-hero-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.team-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

/* 📱 手機版 RWD：維持圖片完整呈現不裁切，並調整字體大小 */
@media screen and (max-width: 768px) {
    .team-hero-wrapper {
        height: auto !important;
        min-height: initial !important;
        max-height: none !important;
    }

    .team-hero-img {
        object-fit: contain !important;
    }

    .team-hero-title {
        font-size: 1.5rem; /* 手機版自動縮小字體 */
        margin-bottom: 6px;
    }

    .team-hero-subtitle {
        font-size: 0.95rem;
    }
}
/* ==========================================
   全域基礎設定 (部門列表通用)
   ========================================== */
.dept-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #b80012;
    margin: 0 0 0.2rem 0;
}

.dept-subtitle {
    font-size: 0.75rem;
    color: #888888;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 0 0 1.2rem 0;
}

.dept-desc {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #555555;
    margin: 0;
    text-align: justify;
}

/* ==========================================
   電腦版 (769px 以上) - 正常雙欄排版
   ========================================== */
@media screen and (min-width: 769px) {

    .team-intro-section,
    .team-dept-section {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 5rem 2rem;
        box-sizing: border-box;
    }

    /* 標題與內文：左右雙欄 */
    .team-header-block {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 3rem !important;
        margin-bottom: 4rem !important;
    }

    .team-title-col {
        flex: 0 0 260px !important;
        width: 260px !important;
        text-align: left !important;
    }

    .team-main-title {
        font-size: 2.2rem !important;
        font-weight: 700 !important;
        color: #1a1a1a !important;
        margin: 0 0 0.3rem 0 !important;
        text-align: left !important;
    }

    .team-sub-title {
        font-size: 0.85rem !important;
        color: #888888 !important;
        letter-spacing: 0.1em !important;
        margin: 0 !important;
        text-align: left !important; /* 修正：電腦版維持靠左 */
    }

    .team-desc-col {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.2rem !important;
    }

    .team-desc-col p {
        font-size: 0.98rem !important;
        line-height: 1.85 !important;
        color: #333333 !important;
        margin: 0 !important;
        text-align: justify !important;
    }

    .department-list {
        display: flex;
        flex-direction: column;
        gap: 5rem;
    }

    .dept-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 4rem;
    }

    /* 只對帶有 .reverse 的項目進行翻轉 */
    .dept-item.reverse {
        flex-direction: row-reverse;
    }

    .dept-img-col, 
    .dept-text-col {
        flex: 1;
        width: 50%;
    }

    .dept-img-col img {
        width: 100%;
        height: 320px;
        object-fit: cover;
        border-radius: 2px;
        display: block;
    }

    /* RWD：手機版統一改為上圖下文 */
    @media screen and (max-width: 768px) {
        .dept-item,
        .dept-item.reverse {
            flex-direction: column;
            gap: 1.5rem;
        }

        .dept-img-col, 
        .dept-text-col {
            width: 100%;
        }
    }
}

/* ==========================================
   RWD 手機版設定 (768px 以下)
   ========================================== */
@media screen and (max-width: 768px) {

    .team-intro-section,
    .team-dept-section {
        padding: 3rem 1.5rem !important; /* 修正：頂部留白改為舒適的 3rem */
        background-color: #ffffff;
        color: #333333;
        font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
    }

    /* 上半部轉為直排置中 */
    .team-header-block {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.8rem !important;
        margin-bottom: 3rem !important;
        width: 100% !important;
    }

    .team-title-col {
        width: 100% !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .team-main-title {
        font-size: 1.5rem !important;
        margin: 0 0 0.3rem 0 !important;
        text-align: center !important;
    }

    .team-sub-title {
        font-size: 0.8rem !important;
        color: #888888 !important;
        letter-spacing: 0.1em !important;
        margin: 0 !important;
        text-align: center !important; /* 手機版統一置中 */
    }

    .team-desc-col {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.2rem !important;
    }

    .team-desc-col p {
        font-size: 0.92rem !important;
        line-height: 1.85 !important;
        margin: 0 !important;
        text-align: justify !important;
    }

    /* 部門介紹轉為直排 */
    .department-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 3.5rem !important;
    }

    .dept-item {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.2rem !important;
    }

    /* 強制手機版所有組別都是「圖片在上，文字在下」 */
    .dept-item.reverse,
    .dept-right-img {
        flex-direction: column !important; /* 統一為圖在上文在下 (若是 column-reverse 會變文在上圖在下) */
    }

    .dept-img-col, 
    .dept-text-col {
        width: 100% !important;
    }

    .dept-img-col img {
        width: 100% !important;
        height: auto !important;          /* 寬度拉滿，高度隨比例縮放 */
        max-height: 250px !important;
        object-fit: cover !important;
        display: block !important;
    }

    .dept-title {
        font-size: 1.15rem !important;
    }
}
/* ==========================================
   培育與發展 (Nurture Section)
   ========================================== */

.nurture-section {
    padding: 6rem 2rem;
    background-color: rgb(249, 249, 249);
    color: #333333;
    font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
}

.nurture-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ------------------------------------------
   1. 上半部：標題與前言
   ------------------------------------------ */
.nurture-header-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 6rem;
}

.nurture-title-col {
    flex: 0 0 280px; /* 與前幾個單元保持統一對齊線 */
    padding-left: 40px;
    box-sizing: border-box;
}

.nurture-main-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.3rem 0;
}

.nurture-sub-title {
    font-size: 0.85rem;
    color: #888888;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin: 0;
}

.nurture-desc-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.nurture-desc-col p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444444;
    margin: 0;
    text-align: justify;
}

/* ------------------------------------------
   2. 下半部：圖文培訓卡片
   ------------------------------------------ */
.nurture-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.nurture-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.nurture-img-col, 
.nurture-text-col {
    flex: 1;
    width: 50%;
}

.nurture-img-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nurture-img-col img {
    max-width: 380px;   /* 控制向量插圖大小 */
    width: 100%;
    height: auto;
    display: block;
}

/* 標題與內文樣式 */
.nurture-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222222;
    margin: 0 0 1.5rem 0;
}

/* 示意圖中的亮藍色 Accent */
.highlight-blue {
    color: #0070c0;     /* 專屬藍色標頭 */
}

.nurture-item-desc {
    font-size: 0.92rem;
    line-height: 1.85;
    color: #555555;
    margin: 0;
    text-align: justify;
}

.nurture-item-desc strong {
    color: #333333;
    font-weight: 600;
}

/* ==========================================
   手機版 (768px 以下) - 培育與發展區塊排版
   ========================================== */
@media screen and (max-width: 768px) {

    /* 1. 外層容器 Padding 上下留白 */
    .nurture-section {
        padding: 3rem 1.5rem !important;
    }

    /* 2. 標題與內文的大容器：重置欄位結構 */
    .nurture-header-block {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;     /* 讓標題區塊整體水平居中 */
        gap: 2rem !important;                /* 控制標題與第一個段落之間的黃金距離 */
        margin-bottom: 3.5rem !important;   /* 與下方插圖卡片區塊的距離 */
        width: 100% !important;
    }

    /* 3. 標題區塊：完全置中 + 清除死撐高度 */
    .nurture-title-col {
        width: 100% !important;
        height: auto !important;             /* 清除高度死撐 */
        flex: none !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: center !important;       /* 標題與英文副標題完全置中 */
    }

    .nurture-main-title {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        color: #1a1a1a !important;
        margin: 0 0 0.3rem 0 !important;
        text-align: center !important;
    }

    .nurture-sub-title {
        font-size: 0.8rem !important;
        color: #888888 !important;
        letter-spacing: 0.1em !important;
        margin: 0 !important;
        text-align: center !important;
    }

    /* 4. 內文區塊：兩段文字對齊與間隔 */
    .nurture-desc-col {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;              /* 兩段內文之間的距離 */
    }

    .nurture-desc-col p {
        font-size: 0.92rem !important;
        line-height: 1.85 !important;
        color: #333333 !important;
        margin: 0 !important;
        text-align: justify !important;      /* 兩端對齊，邊緣齊平 */
        text-justify: inter-ideograph !important;
    }

    /* 5. 下方插圖與項目內容微調 */
    .nurture-list {
        gap: 3.5rem !important;              /* 每個培育項目之間的上下間隔 */
    }

    .nurture-item {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    /* 第二組 (左文右圖) 在手機版自動調整為「插圖在上、文字在下」 */
    .nurture-right-img {
        flex-direction: column-reverse !important;
    }

    .nurture-img-col, 
    .nurture-text-col {
        width: 100% !important;
    }

    .nurture-img-col img {
        max-width: 260px !important;         /* 手機版控制插圖適當比例 */
        margin: 0 auto !important;
    }

    .nurture-item-title {
        font-size: 1.15rem !important;
        margin-bottom: 0.8rem !important;
    }

/* 1. 團隊介紹與培育發展的圖片容器：強制的 100% 寬度 */
    .dept-img-col, 
    .nurture-img-col {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 0 1rem 0 !important; /* 圖片下方留 1rem 距離給標題 */
    }

    /* 2. 圖片本體：突破所有縮放限制，橫向拉滿 */
    .dept-img-col img, 
    .nurture-img-col img {
        width: 100% !important;
        max-width: 100% !important;     /* 👈 關鍵：解除原本的 260px / 380px 限制 */
        height: auto !important;         /* 寬度拉滿時，高度自動按比例放大不變形 */
        display: block !important;
        border-radius: 4px;             /* 可選：微圓角讓視覺更精緻 */
    }
}


/* ==========================================
   員工關懷 (Care Section)
   ========================================== */

.care-section {
    padding: 6rem 2rem;
    background-color: rgb(249, 249, 249);
    color: #333333;
    font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
}

.care-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ------------------------------------------
   1. 上半部：標題與內文 (電腦版)
   ------------------------------------------ */
.care-header-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 5rem;
}

.care-title-col {
    flex: 0 0 280px;
    padding-left: 40px;
    box-sizing: border-box;
}

.care-main-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.3rem 0;
}

.care-sub-title {
    font-size: 0.85rem;
    color: #888888;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin: 0;
}

.care-desc-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.care-desc-col p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444444;
    margin: 0;
    text-align: justify;
}



/* 架構圖圖片容器 */
.care-diagram-img-wrapper {
    width: 100%;
    max-width: 650px;   /* 限制圖片最大寬度，避免電腦版太大 */
    margin: 3rem auto 0 auto; /* 置中並與上方文字保持距離 */
    text-align: center;
}

/* 架構圖圖片本體 */
.care-diagram-img {
    width: 100%;
    height: auto;       /* 自動維持原圖比例 */
    display: block;
}


/* ==========================================
   手機版 (768px 以下) - 員工關懷修正
   ========================================== */
@media screen and (max-width: 768px) {

    /* 1. 修正大空白：強迫標題欄位釋放高度與 Margin */
    .care-header-block {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;              /* 👈 關鍵：標題與內文只留 1.5rem (24px) 距離 */
        margin-bottom: 2.5rem !important;
    }

    .care-title-col {
        width: 100% !important;
        height: auto !important;             /* 👈 關鍵：徹底清除電腦版死撐的高度 */
        min-height: 0 !important;
        flex: none !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .care-main-title {
        margin: 0 0 0.2rem 0 !important;
        text-align: center !important;
    }

    .care-sub-title {
        margin: 0 !important;
        text-align: center !important;
    }

    .care-desc-col {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 1.2rem !important;
    }

    .care-desc-col p {
        margin: 0 !important;
        text-align: justify !important;
    }

    /* 2. 修正弧形字與圓圈的距離：讓文字緊貼圓圈頂部 */
    .care-circle-item {
        position: relative !important;
        width: 220px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-top: 15px !important;         /* 給弧形字留上方空間 */
    }

    .arc-text-svg {
        width: 220px !important;
        height: 45px !important;
        margin-bottom: -22px !important;    /* 👈 關鍵：負數 margin 把弧形字拉回圓圈上緣 */
        position: relative !important;
        z-index: 2 !important;
    }

    .circle-body {
        width: 200px !important;
        height: 200px !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .care-diagram-img-wrapper {
        margin-top: 2rem;
        padding: 0 1rem;
    }

}

/* ==========================================
   健康與安全 (Health & Safety) 專屬樣式
   ========================================== */

.health-section {
    width: 100%;
    background-color: #fcfcfc; /* 或維持你全域的底色 */
    color: #333333;
    font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
}

.health-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    box-sizing: border-box;
}

/* ------------------------------------------
   1. 電腦版 (769px 以上) 佈局
   ------------------------------------------ */
@media screen and (min-width: 769px) {
    /* 上半部：標題與內文 (完全對齊團隊介紹的黃金比例) */
    .health-header-block {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 3rem;
        margin-bottom: 5rem;
    }

    .health-title-col {
        flex: 0 0 260px;
        width: 260px;
        text-align: left;
    }

    .health-main-title {
        font-size: 2.2rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 0.3rem 0;
    }

    .health-sub-title {
        font-size: 0.85rem;
        color: #888888;
        letter-spacing: 0.1em;
        margin: 0;
    }

    .health-desc-col {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }

    /* 針對第一句重點文字加粗微調 */
    .health-highlight-text {
        font-size: 1.05rem;
        font-weight: 700;
        color: #555555;
        margin: 0;
    }

    .health-desc-col p {
        font-size: 0.98rem;
        line-height: 1.85;
        color: #333333;
        margin: 0;
        text-align: justify;
    }

    /* 下半部：三欄 Grid 卡片佈局 */
    .health-cards-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* ------------------------------------------
   2. 卡片共用樣式 (圖片與文字設定)
   ------------------------------------------ */
.health-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.card-img-box {
    width: 100%;
    margin-bottom: 1.5rem;
}

.card-img-box img {
    width: 100%;
    height: 380px;         /* 固定圖片高度 */
    object-fit: cover;     /* 滿版裁切不變形 */
    display: block;
    border-radius: 2px;
}

.card-text-box h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #555555;
    margin: 0 0 1rem 0;
}

.card-text-box p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #444444;
    margin: 0;
    text-align: justify;
}

/* ------------------------------------------
   3. RWD 手機版設定 (768px 以下)
   ------------------------------------------ */
@media screen and (max-width: 768px) {
    
    .health-container {
        padding: 3rem 1.5rem;
    }

    /* 上半部轉為直排置中 */
    .health-header-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.8rem;
        margin-bottom: 3.5rem;
    }

    .health-title-col {
        width: 100%;
        text-align: center;
    }

    .health-main-title {
        font-size: 1.5rem;
        text-align: center;
        margin: 0 0 0.3rem 0;
    }

    .health-sub-title {
        font-size: 0.8rem;
        text-align: center;
        margin: 0;
    }

    .health-desc-col {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }

    .health-highlight-text {
        text-align: justify;
    }

    /* 三欄 Grid 改為單欄垂直直排 */
    .health-cards-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3.5rem;          /* 手機版卡片之間的垂直距離 */
    }

    /* 手機版圖片高度改由比例控制 */
    .card-img-box img {
        height: auto;
        aspect-ratio: 4 / 5;  /* 讓手機版的圖片保持絕佳的長方形比例 */
        max-height: 400px;
    }
}


/* ==========================================
   職涯發展 (Career Development) 專屬樣式
   ========================================== */

.career-section {
    width: 100%;
    background-color: rgb(249, 249, 249);
    color: #333333;
    font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
}

.career-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    box-sizing: border-box;
}

/* ------------------------------------------
   1. 電腦版 (769px 以上)
   ------------------------------------------ */
@media screen and (min-width: 769px) {
    /* 標題與內文左右雙欄 */
    .career-header-block {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 3rem;
        margin-bottom: 4rem;
    }

    .career-title-col {
        flex: 0 0 260px;
        width: 260px;
        text-align: left;
    }

    .career-main-title {
        font-size: 2.2rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 0.3rem 0;
    }

    .career-sub-title {
        font-size: 0.85rem;
        color: #888888;
        letter-spacing: 0.1em;
        margin: 0;
    }

    .career-desc-col {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .career-desc-col p {
        font-size: 0.98rem;
        line-height: 1.85;
        color: #333333;
        margin: 0;
        text-align: justify;
    }

    /* 圖表容器（保持適當最大寬度並居中） */
    .career-chart-wrapper {
        width: 100%;
        max-width: 900px;     /* 可依圖片解析度自行微調 */
        margin: 0 auto;
        text-align: center;
    }
}

/* PNG 圖片共用自適應設定 */
.career-chart-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ------------------------------------------
   2. RWD 手機版設定 (768px 以下)
   ------------------------------------------ */
@media screen and (max-width: 768px) {
    
    .career-container {
        padding: 3rem 1.5rem;
    }

    /* 上半部轉為直排置中 */
    .career-header-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.8rem;
        margin-bottom: 2.5rem;
    }

    .career-title-col {
        width: 100%;
        text-align: center;
    }

    .career-main-title {
        font-size: 1.5rem;
        text-align: center;
        margin: 0 0 0.3rem 0;
    }

    .career-sub-title {
        font-size: 0.8rem;
        text-align: center;
        margin: 0;
    }

    .career-desc-col {
        width: 100%;
    }

    .career-desc-col p {
        font-size: 0.92rem;
        line-height: 1.85;
        margin: 0;
        text-align: justify;
    }

    /* 手機版圖片自適應縮放 */
    .career-chart-wrapper {
        width: 100%;
    }
}




/* ==========================================
   客製化包裝服務 (Customized Packaging Services)
   ========================================== */

/* 1. 全域容器設定 */
.process-section {
    width: 100%;
    background-color: #ffffff;
    color: #333333;
    font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
}

.process-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    box-sizing: border-box;
}

/* ------------------------------------------
   2. 電腦版 (769px 以上) 佈局
   ------------------------------------------ */
@media screen and (min-width: 769px) {
    /* 上半部：標題與內文雙欄 */
    .process-header-block {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 3rem;
        margin-bottom: 5rem;
    }

    .process-title-col {
        flex: 0 0 260px;
        width: 260px;
        text-align: left;
    }

    .process-main-title {
        font-size: 2.2rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 0.3rem 0;
    }

    .process-sub-title {
        font-size: 0.85rem;
        color: #888888;
        letter-spacing: 0.1em;
        margin: 0;
    }

    .process-desc-col {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .process-desc-col p {
        font-size: 0.98rem;
        line-height: 1.85;
        color: #333333;
        margin: 0;
        text-align: justify;
    }

    /* 下半部：5 張 PNG 圖片 5 欄等寬排列 */
    .process-png-wrapper {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 1em; /* 圖片本身若自帶邊線，設 0 才能完美銜接 */
        width: 100%;
    }

    .process-png-item {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .process-png-item img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }
}

/* ------------------------------------------
   3. RWD 手機版設定 (768px 以下)
   ------------------------------------------ */
@media screen and (max-width: 768px) {
    .process-container {
        padding: 3rem 1.5rem;
    }

    /* 上半部：標題與內文轉直排置中 */
    .process-header-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.8rem;
        margin-bottom: 3rem;
    }

    .process-title-col {
        width: 100%;
        text-align: center;
    }

    .process-main-title {
        font-size: 1.5rem;
        margin: 0 0 0.3rem 0;
        text-align: center;
    }

    .process-sub-title {
        font-size: 0.8rem;
        margin: 0;
        text-align: center;
    }

    .process-desc-col p {
        font-size: 0.92rem;
        line-height: 1.85;
        text-align: justify;
    }

    /* 下半部：5 張 PNG 圖片轉為垂直單欄排列 */
    .process-png-wrapper {
        display: flex;
        flex-direction: column;
        gap: 2rem; /* 手機版每張 PNG 之間的上下間距 */
        width: 100%;
    }

    .process-png-item {
        width: 80%;
        display: flex;
        justify-content: center;
    }

    .process-png-item img {
        width: 80%;
        max-width: 400px; /* 限制圖片在手機上的最大寬度 */
        height: auto;
        display: block;
    }
}

/* ==========================================
   高強度重包裝 (High-Strength Packaging) 完整樣式
   ========================================== */

.heavy-section {
    width: 100%;
    background-color: #ffffff;
    color: #333333;
    font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
}

/* ------------------------------------------
   1. 電腦版 (769px 以上) 佈局：大左右雙欄
   ------------------------------------------ */
@media screen and (min-width: 769px) {
    .heavy-container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 5rem 2rem;
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 3.5rem; /* 左欄與右欄的間距 */
    }

    /* 左欄：獨立固定寬度標題 */
    .heavy-title-col {
        flex: 0 0 260px;
        width: 260px;
        text-align: left;
        position: sticky;
        top: 2rem;
    }

    .heavy-main-title {
        font-size: 2.2rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 0.3rem 0;
    }

    .heavy-sub-title {
        font-size: 0.85rem;
        color: #888888;
        letter-spacing: 0.1em;
        margin: 0;
    }

    /* 右欄：佔據剩餘所有寬度 */
    .heavy-content-col {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 3.5rem;
    }

    /* 右欄內部：4 個 Icon 橫向 4 欄 */
    .heavy-features-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        width: 100%;
    }
}

/* ------------------------------------------
   2. 全域共通元件樣式
   ------------------------------------------ */

/* 段落說明 */
.heavy-desc-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.heavy-highlight-text {
    font-size: 1rem;
    font-weight: 700;
    color: #333333;
    margin: 0;
}

.heavy-desc-block p {
    font-size: 0.98rem;
    line-height: 1.85;
    color: #444444;
    margin: 0;
    text-align: justify;
}

/* Icon 圖文組合區 */
.feature-item,
.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 電腦版預設尺寸 */
.feature-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img,
.icon-item img {
    width: 140%;
    height: 140%;
    object-fit: contain;
    display: block;
}

.feature-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333333;
    margin: 0;
}

/* 小標題 */
.heavy-block-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.2rem 0;
}

/* 常見應用列表 */
.heavy-app-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.heavy-app-list li {
    font-size: 0.95rem;
    color: #444444;
    position: relative;
    padding-left: 1.2rem;
    line-height: 1.6;
}

.heavy-app-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #333333;
    font-weight: bold;
}

/* 比較表格 */
.compare-table-wrapper {
    width: 100%;
}

.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0.5rem;
    text-align: center;
}

.compare-table th,
.compare-table td {
    padding: 1.2rem 1rem;
    font-size: 0.95rem;
    background-color: #fcfcfc;
    color: #444444;
    vertical-align: middle;
}

.compare-table th {
    font-weight: 700;
    color: #1a1a1a;
    background-color: #f7f7f7;
}

.compare-table td.col-item {
    font-weight: 700;
    color: #333333;
    width: 20%;
}

.compare-table td.col-highlight {
    font-weight: 600;
    color: #1a1a1a;
}


/* ==========================================
   3. RWD 手機版優化 (768px 以下)
   ========================================== */
@media screen and (max-width: 768px) {

    /* 全域容器：標題與內容區分開 */
    .heavy-container {
        padding: 3.5rem 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3.5rem;
    }

    /* 右欄內容區域：子區塊拉開距離 */
    .heavy-content-col {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 3.8rem;
    }

    /* 頂部標題置中 */
    .heavy-title-col {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 段落文字間距 */
    .heavy-desc-block {
        gap: 1.2rem;
    }

    .heavy-desc-block p {
        font-size: 0.95rem;
        line-height: 1.95;
    }

    /* ------------------------------------------
       四大特點 Icon 區 (2x2 排版 + 放大優化)
       ------------------------------------------ */
    .heavy-features-grid,
    .precision-icons-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.2rem;
        margin: 0.5rem 0;
        width: 100%;
        justify-items: center;
    }

    /* 統一外層容器尺寸 (直接調大到 140px，絕不重複定義) */
    .feature-icon,
    .icon-item {
        width: 140px;
        height: 140px;
        margin: 0 auto 0.8rem auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 圖片 100% 滿版填滿 140px 容器，乾淨不變形 */
    .feature-icon img,
    .icon-item img {
        width: 120%;
        height: 120%;
        object-fit: contain;
        display: block;
    }

    /* 常見應用列表 */
    .heavy-block-title {
        font-size: 1.2rem;
        margin: 0 0 1.5rem 0;
    }

    .heavy-app-list {
        gap: 1rem;
    }

    .heavy-app-list li {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    /* 表格手機版適應 */
    .compare-table-wrapper {
        margin-top: 0.5rem;
        overflow-x: auto; /* 避免螢幕過窄時卡片爆開 */
    }

    .compare-table {
        border-spacing: 0.4rem;
    }

    .compare-table th,
    .compare-table td {
        padding: 0.9rem 0.4rem;
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* ==========================================
   案例展示輪播 (Cases Carousel)
   ========================================== */

.cases-slider-section {
    width: 100%;
    background-color: #ffffff;
    padding: 4rem 0;
}

.cases-slider-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* 輪播圖視窗 */
.carousel-viewport {
    position: relative;
    width: 100%;
    overflow: hidden; /* 隱藏超出視窗的圖片 */
}

/* 圖片移動軌道 */
.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: 100%;
}

/* 圖片項目容器 */
.slide-item {
    box-sizing: border-box;
    flex-shrink: 0;
}

.slide-item img {
    width: 100%;
    height: 380px;         /* 統一圖片高度 */
    object-fit: cover;     /* 自動裁切填滿，不變形 */
    display: block;
}

/* ------------------------------------------
   左右半透明箭頭按鈕
   ------------------------------------------ */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    color: #333333;
    font-size: 1.8rem;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    user-select: none;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* ------------------------------------------
   底部「更多案例」按鈕
   ------------------------------------------ */
.cases-action-block {
    text-align: center;
    margin-top: 2.5rem;
}

.more-cases-btn {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    background-color: #4a4a4a;
    color: #ffffff;
    font-size: 0.95rem;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: background-color 0.2s ease;
    border: none;
}

.more-cases-btn:hover {
    background-color: #333333;
}

/* ------------------------------------------
   RWD 設定
   ------------------------------------------ */

/* ==========================================
   1. 箭頭按鈕基礎設定 (全域共用，電腦手機都吃得到)
   ========================================== */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #ffffff;
    cursor: pointer;
    z-index: 10;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* 用 ::after 畫箭頭 */
.slider-btn::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2.5px solid #ffffff;
    border-right: 2.5px solid #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    box-sizing: border-box;
}

/* 左箭頭 */
.prev-btn::after {
    transform: translate(-35%, -50%) rotate(225deg);
}

/* 右箭頭 */
.next-btn::after {
    transform: translate(-65%, -50%) rotate(45deg);
}


/* ==========================================
   2. 電腦版 (769px 以上) 專屬微調
   ========================================== */
@media screen and (min-width: 769px) {
    .slide-item {
        width: calc((100% - 2rem) / 3); /* 計算 3 等份並扣除 gap */
        margin-right: 1rem;
    }
}


/* ==========================================
   3. 手機版 (768px 以下) - 輪播圖滿版與按鈕縮小
   ========================================== */
@media screen and (max-width: 768px) {
    /* 外層區域：去除上下左右內距，實現滿版 */
    .cases-slider-section {
        padding: 2.5rem 0;
    }

    .cases-slider-container {
        padding: 0;
    }

    /* 圖片項目與圖片本體 */
    .slide-item {
        width: 100%;
        margin-right: 0;
    }

    .slide-item img {
        width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: cover;
    }

    /* 手機版只需縮小圓圈大小與位置 */
    .slider-btn {
        width: 40px;
        height: 40px;
        border-width: 1.8px;
    }

    .prev-btn { left: 12px; }
    .next-btn { right: 12px; }

    /* 微調手機版箭頭大小 */
    .slider-btn::after {
        width: 10px;
        height: 10px;
        border-top-width: 2px;
        border-right-width: 2px;
    }
}




/* ==========================================
   精密器材包裝 (Precision Equipment Packaging)
   ========================================== */

.precision-section {
    width: 100%;
    background-color: #ffffff; /* 全白背景 */
    color: #333333;
    font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
}

/* ------------------------------------------
   1. 電腦版 (769px 以上) 大左右雙欄
   ------------------------------------------ */
@media screen and (min-width: 769px) {
    .precision-container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 5rem 2rem;
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 3.5rem; /* 左欄與右欄的距離 */
    }

    /* 左欄：獨立固定寬度標題 (紅框位置自然留空) */
    .precision-title-col {
        flex: 0 0 260px;
        width: 260px;
        text-align: left;
        position: sticky;
        top: 2rem;
    }

    .precision-main-title {
        font-size: 2.2rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 0.3rem 0;
    }

    .precision-sub-title {
        font-size: 0.85rem;
        color: #888888;
        letter-spacing: 0.1em;
        margin: 0;
    }

    /* 右欄：佔據剩餘寬度 */
    .precision-content-col {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 3.5rem; /* 右欄各區塊的垂直距離 */
    }

    /* Icon 區塊：電腦版 1 列 4 欄 */
    .precision-icons-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        width: 100%;
    }
}

/* ------------------------------------------
   2. 右欄內部元件共用樣式
   ------------------------------------------ */

/* 段落說明 */
.precision-desc-block p {
    font-size: 0.98rem;
    line-height: 1.85;
    color: #444444;
    margin: 0;
    text-align: justify;
}

/* Icon 圖片展示 */
.icon-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-item img {
    width: 60%;
    max-width: 180px;
    height: auto;
    display: block;
}

/* 常見應用 */
.precision-block-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.2rem 0;
}

.precision-app-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.precision-app-list li {
    font-size: 0.95rem;
    color: #444444;
    position: relative;
    padding-left: 1.2rem;
    line-height: 1.6;
}

.precision-app-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #333333;
    font-weight: bold;
}

.precision-app-list li span {
    font-weight: 700;
    color: #222222;
}

/* ==========================================
   精密器材包裝 - RWD 手機版全面置中與間距優化
   ========================================== */
@media screen and (max-width: 768px) {
    
    /* 1. 全域容器 */
    .precision-container {
        padding: 3.5rem 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    /* 2. 標題區：完全置中 */
    .precision-title-col {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .precision-main-title {
        font-size: 1.5rem;
        margin: 0 0 0.3rem 0;
        text-align: center;
    }

    .precision-sub-title {
        font-size: 0.8rem;
        margin: 0;
        text-align: center;
    }

    /* 3. 右欄內容核心 */
    .precision-content-col {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* 確保子區塊全部水平居中 */
        gap: 3.5rem;
    }

    /* 4. 段落說明：內文文字置中 */
    .precision-desc-block {
        width: 100%;
        text-align: center;
    }

    .precision-desc-block p {
        font-size: 0.95rem;
        line-height: 1.95;
        color: #444444;
        text-align: center; /* 強制文字置中 */
        margin: 0;
    }

    /* 5. Icon 區塊 (2x2 格網) */
    .precision-icons-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2.8rem 1.5rem;
        width: 100%;
        justify-items: center; /* 圖片在 Grid 格子內置中 */
    }

    .icon-item img {
        width: 80%;
        max-width: 135px;
        height: auto;
    }

    /* 6. 常見應用區塊：整體置中 */
    .precision-app-block {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .precision-block-title {
        font-size: 1.2rem;
        margin: 0 0 1.5rem 0;
        text-align: center;
    }

    .precision-app-list {
        display: inline-block; /* 讓清單寬度隨內容收縮，利於整體居中 */
        text-align: left;       /* 清單內部的文字開頭保持齊平，視覺較為整齊 */
        padding: 0;
        margin: 0;
        gap: 1.1rem;
    }

    .precision-app-list li {
        font-size: 0.95rem;
        line-height: 1.75;
    }
}


/* ==========================================
   彩盒包裝 (Color Box Packaging) 專屬樣式
   ========================================== */

.colorbox-section {
    width: 100%;
    background-color: #ffffff;
    color: #333333;
    font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
    box-sizing: border-box;
}

/* ------------------------------------------
   1. 電腦版 (769px 以上) 佈局：左右雙欄
   ------------------------------------------ */
@media screen and (min-width: 769px) {
    .colorbox-container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 5rem 2rem;
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 3.5rem;
    }

    /* 左欄：獨立固定標題 */
    .colorbox-title-col {
        flex: 0 0 260px;
        width: 260px;
        text-align: left;
        position: sticky;
        top: 2rem;
    }

    .colorbox-main-title {
        font-size: 2.2rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 0.3rem 0;
    }

    .colorbox-sub-title {
        font-size: 0.85rem;
        color: #888888;
        letter-spacing: 0.1em;
        margin: 0;
    }

    /* 右欄：內容總管 */
    .colorbox-content-col {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 3.5rem;
    }

    /* 右欄內部：4 個 Icon 橫向 1x4 橫排 */
    .colorbox-icons-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        width: 100%;
    }
}

/* ------------------------------------------
   2. 電腦/全域元件共通樣式
   ------------------------------------------ */

/* 段落說明 */
.colorbox-desc-block p {
    font-size: 0.98rem;
    line-height: 1.85;
    color: #444444;
    margin: 0;
    text-align: justify;
}

/* Icon 圖文卡片 */
.colorbox-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.colorbox-icon-box {
    width: 120px;
    height: 120px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.colorbox-icon-box img {
    width: 120%;
    height: 120%;
    object-fit: contain;
    display: block;
}

.colorbox-icon-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333333;
    margin: 0;
}

/* 小標題 */
.colorbox-block-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.2rem 0;
}

/* 常見應用列表 */
.colorbox-app-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.colorbox-app-list li {
    font-size: 0.95rem;
    color: #444444;
    position: relative;
    padding-left: 1.2rem;
    line-height: 1.6;
}

.colorbox-app-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #333333;
    font-weight: bold;
}


/* ==========================================
   3. RWD 手機版優化 (768px 以下)
   ========================================== */
@media screen and (max-width: 768px) {

    /* 全域容器：上下拉開呼吸感 */
    .colorbox-container {
        padding: 3.5rem 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3.5rem;
    }

    /* 右欄整體內容推開間距 */
    .colorbox-content-col {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3.8rem;
    }

    /* 頂部標題完全置中 */
    .colorbox-title-col {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .colorbox-main-title {
        font-size: 1.6rem;
        margin: 0 0 0.3rem 0;
    }

    .colorbox-sub-title {
        font-size: 0.8rem;
    }

    /* 段落說明文字置中與放大行高 */
    .colorbox-desc-block {
        width: 100%;
        text-align: center;
    }

    .colorbox-desc-block p {
        font-size: 0.95rem;
        line-height: 1.95;
        text-align: center;
    }

    /* ------------------------------------------
       四大特點 Icon 區 (手機版 2x2 排版 + 放大)
       ------------------------------------------ */
    .colorbox-icons-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 手機版 2x2 格網 */
        gap: 2.5rem 1.2rem;
        margin: 0.5rem 0;
        width: 100%;
        justify-items: center;
    }

    /* 外層容器固定放大到 140px，確保有足夠的留白空間 */
    .colorbox-icon-box {
        width: 140px;
        height: 140px;
        margin: 0 auto 0.8rem auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 圖片 100% 滿版填滿 140px 容器，絕不破圖變小 */
    .colorbox-icon-box img {
        width: 120%;
        height: 120%;
        object-fit: contain;
        display: block;
    }

    /* ------------------------------------------
       常見应用區塊 (整體置中，文字齊左)
       ------------------------------------------ */
    .colorbox-app-block {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .colorbox-block-title {
        font-size: 1.2rem;
        margin: 0 0 1.5rem 0;
        text-align: center;
    }

    .colorbox-app-list {
        display: inline-block;
        text-align: left;
        padding: 0;
        margin: 0;
        gap: 1.1rem;
    }

    .colorbox-app-list li {
        font-size: 0.95rem;
        line-height: 1.8;
    }
}


/* ==========================================
   常見紙盒結構 (Box Structure Section)
   ========================================== */

.box-structure-section {
    width: 100%;
    background-color: #ffffff;
    color: #333333;
    font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
    box-sizing: border-box;
}

/* ------------------------------------------
   1. 電腦版 (769px 以上) 佈局：左右雙欄
   ------------------------------------------ */
@media screen and (min-width: 769px) {
    .box-structure-container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 5rem 2rem;
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 3.5rem;
    }

    /* 左欄：獨立固定標題 */
    .box-structure-title-col {
        flex: 0 0 260px;
        width: 260px;
        text-align: left;
        position: sticky;
        top: 2rem;
    }

    .box-structure-main-title {
        font-size: 2.2rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 0.3rem 0;
    }

    .box-structure-sub-title {
        font-size: 0.85rem;
        color: #888888;
        letter-spacing: 0.1em;
        margin: 0;
    }

    /* 右欄：內容區 */
    .box-structure-content-col {
        flex: 1;
    }

    /* 右欄內部：2 欄網格 */
    .box-structure-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        width: 100%;
    }
}

/* ------------------------------------------
   2. 卡片內部樣式 (文字 + 圖片)
   ------------------------------------------ */
.structure-card {
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;     /* 淺灰色圓角邊框 */
    border-radius: 16px;           /* 大圓角 */
    padding: 2rem 1.8rem 1.5rem 1.8rem; /* 上右下左留白 */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 上面放文字、下面放圖片 */
    box-sizing: border-box;
    min-height: 380px;             /* 保持卡片高度統一整齊 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.structure-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 卡片文字區 */
.card-text-content {
    width: 100%;
    margin-bottom: 1.5rem;
    text-align: left;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.6rem 0;
}

.card-desc {
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* 卡片圖片區 (縮小放大自適應) */
.card-img-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto; /* 將圖片往底端推 */
}

.card-img-wrapper img {
    max-width: 100%;
    height: auto;
    max-height: 500px; /* 控制圖片最大高度，避免過大 */
    object-fit: contain;
    display: block;
}


/* ==========================================
   3. RWD 手機版優化 (768px 以下)
   ========================================== */
@media screen and (max-width: 768px) {

    .box-structure-container {
        padding: 3.5rem 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    /* 頂部標題置中 */
    .box-structure-title-col {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .box-structure-main-title {
        font-size: 1.6rem;
        margin: 0 0 0.3rem 0;
    }

    .box-structure-sub-title {
        font-size: 0.8rem;
    }

    .box-structure-content-col {
        width: 100%;
    }

    /* 手機版：轉為單欄直排 */
    .box-structure-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.2rem;
        width: 100%;
    }

    .structure-card {
        padding: 1.5rem 1.2rem;
        border-radius: 12px;
        min-height: auto; /* 手機版依內容高度自由伸展 */
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-desc {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .card-img-wrapper img {
        max-height: 180px;
    }
}


/* ==========================================
   永續經營頁面 (Sustainability Page)
   ========================================== */

/* 整個頁面主體設定固定背景 */
.sustainability-page {
    width: 100%;
    min-height: 100vh;
    font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
    color: #ffffff; /* 👈 改為預設白字 */
    
    /* 固定背景圖核心設定 */
    background-image: url('images/esg/BG3_3-2環境永續_Desktop.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    position: relative;
}

/* 加上一層半透明「黑色」遮罩，讓白字清晰顯眼 */
.sustainability-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65); /* 👈 改為 65% 黑底遮罩，若想更深可調至 0.75 */
    pointer-events: none;
    z-index: 1;
}

/* 確保內容在遮罩上方 */
.sus-section,
.sus-divider {
    position: relative;
    z-index: 2;
}

/* ------------------------------------------
   區塊佈局與文字樣式
   ------------------------------------------ */
.sus-section {
    padding: 5rem 2rem;
}

.sus-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 標題設定 */
.sus-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.sus-main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff; /* 👈 主標題改為純白 */
    margin: 0 0 0.4rem 0;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* 增加陰影提昇可讀性 */
}

.sus-sub-title {
    font-size: 0.85rem;
    color: #cccccc; /* 👈 英文副標題改為淺灰 */
    letter-spacing: 0.12em;
    margin: 0;
    text-transform: uppercase;
}

/* 段落內容 */
.sus-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.sus-content p {
    font-size: 1rem;
    line-height: 2;
    color: #e0e0e0; /* 👈 內文改為亮灰/近白，閱讀更舒適 */
    margin: 0;
    text-align: justify;
}

/* 願景區塊文字居中 */
.sus-content.text-center p {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 500;
    color: #ffffff;
}

/* 細線分隔線 */
.sus-divider {
    max-width: 400px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2); /* 👈 分隔線改為半透明白線 */
    margin: 1rem auto;
}


/* ==========================================
   RWD 手機版優化 (768px 以下)
   ========================================== */
@media screen and (max-width: 768px) {
    .sus-section {
        padding: 3.5rem 1.5rem;
    }

    .sus-main-title {
        font-size: 1.75rem;
    }

    .sus-sub-title {
        font-size: 0.8rem;
    }

    .sus-content p {
        font-size: 0.95rem;
        line-height: 1.85;
    }
}

/* ------------------------------------------
   核心發展策略圖片區塊 (Strategy Image Block)
   ------------------------------------------ */
.sus-strategy-section {
    width: 100%;
    padding: 2rem 1.5rem 5rem 1.5rem;
    position: relative;
    z-index: 2; /* 確保在背景遮罩上方 */
    box-sizing: border-box;
}

.sus-strategy-container {
    max-width: 900px; /* 控制圖片最大顯示寬度 */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Picture 容器滿版 */
.sus-strategy-picture {
    display: block;
    width: 100%;
}

/* 圖片通用 RWD 自適應樣式 */
.sus-strategy-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0px 8px 20px rgba(0, 0, 0, 0.06));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); /* 讓圖片在背景上更有層次感 */
}
/* RWD 手機版微調 */
@media screen and (max-width: 768px) {
    .sus-strategy-section {
        padding: 1rem 1rem 3.5rem 1rem;
    }
}



/* ------------------------------------------
   ESG 治理架構區塊 (ESG Governance Section)
   ------------------------------------------ */
.esg-governance-section {
    padding-top: 3rem;
}

/* 組織圖卡容器 */
.esg-chart-wrapper {
    width: 100%;
    max-width: 900px; /* 控制組織圖卡的最大寬度 */
    margin: 3rem auto 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.esg-chart-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    /* 微陰影質感提升圖片層次 */
    filter: drop-shadow(0px 8px 25px rgba(0, 0, 0, 0.08));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); /* 讓圖片在背景上更有層次感 */
}

/* RWD 手機版微調 */
@media screen and (max-width: 768px) {
    .esg-chart-wrapper {
        margin-top: 2rem;
        /* 手機版若組織圖太寬，可支援橫向滑動查看，避免圖片被擠壓 */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
}


/* ------------------------------------------
   風險管理區塊 (Risk Management Section)
   ------------------------------------------ */
.risk-section {
    padding-bottom: 5rem;
}

/* 三欄網格 (電腦版 1x3) */
.risk-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    width: 100%;
    margin-top: 3rem;
}

/* 風險管理卡片樣式 */
.risk-card {
    background-color: rgba(255, 255, 255, 0.95); /* 半透明純白底卡片 */
    border: 1px solid #e2e8f0;                  /* 質感細邊框 */
    border-radius: 20px;                         /* 大圓角邊框 */
    padding: 2.5rem 1.8rem;                      /* 卡片內留白 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);  /* 柔和微陰影 */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.risk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* 卡片內部標題與副標題 */
.risk-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.risk-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.risk-card-subtitle {
    font-size: 0.8rem;
    color: #888888;
    letter-spacing: 0.05em;
}

/* 卡片內部細分隔線 */
.risk-card-divider {
    width: 80%;
    height: 1px;
    background-color: #707070;
    margin: 1.8rem 0;
}

/* 卡片內文 */
.risk-card-desc {
    font-size: 0.92rem;
    color: #444444;
    line-height: 1.75;
    margin: 0;
    text-align: justify; /* 兩端對齊維持畫面整齊 */
}


/* ==========================================
   RWD 手機版優化 (768px 以下)
   ========================================== */
@media screen and (max-width: 768px) {
    /* 手機版改為單欄直排 (1x1) */
    .risk-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .risk-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .risk-card-divider {
        margin: 1.2rem 0;
    }
}




/* 頁面整體配置 */
.portfolio-page {
    width: 100%;
    min-height: 100vh;
    padding: 3rem 2rem;
    background-color: #f9f9f9;
    box-sizing: border-box;
    font-family: 'Noto Sans TC', sans-serif;
}

.portfolio-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* ------------------------------------------
   🔴 1. 紅框：分類導覽 (Left Sidebar)
   ------------------------------------------ */
.portfolio-sidebar {
    flex: 0 0 220px;
    position: sticky;
    top: 2rem; /* 固定在左側 */
}

.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-item {
    font-size: 1.05rem;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    position: relative;
    padding-bottom: 4px;
    width: fit-content;
    transition: color 0.2s ease;
}

/* Hover 與 Active 紅線動畫 */
.category-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #b80012; /* 經典紅線 */
    transition: width 0.25s ease;
}

.category-item:hover,
.category-item.active {
    color: #b80012;
    font-weight: 700;
}

.category-item:hover::after,
.category-item.active::after {
    width: 100%;
}


/* 主內容區 */
.portfolio-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ------------------------------------------
   🔵 2. 藍框：大圖詳情展示區 (Main Viewer)
   ------------------------------------------ */
.viewer-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: opacity 0.3s ease;
}

/* 🔵 藍框：大圖容器 */
.viewer-img-wrapper {
    width: 100%;
    min-height: 350px;           /* 設定預設容器最小高度 */
    max-height: 500px;           /* 設定最大高度限制 */
    background-color: #f5f5f5;   /* 原圖尺寸較小時代替充實背景 */
    border-radius: 6px;
    display: flex;
    align-items: center;        /* 上下垂直置中 */
    justify-content: center;     /* 左右水平置中 */
    padding: 1rem;               /* 留點適當邊距 */
    box-sizing: border-box;
}

/* 🔵 藍框內的圖片：維持原圖大小，絕不拉大 */
.viewer-img-wrapper img {
    /* 核心設定： scale-down 會讓「小圖保持原大小」，「超大圖才會縮小適應容器」 */
    object-fit: scale-down; 
    
    width: auto;                 /* 取消原本的 100% 寬度，不強行拉寬 */
    height: auto;                /* 取消原本的 100% 高度，不強行拉高 */
    max-width: 100%;             /* 避免圖片大於外框爆出來 */
    max-height: 480px;           /* 避免圖片過高 */
    display: block;
    margin: 0 auto;              /* 圖片置中 */
}

.viewer-info {
    margin-top: 1.5rem;
}

.viewer-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.8rem 0;
}

.viewer-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin: 0;
}


/* ------------------------------------------
   🟢 3. 綠框：3x3 縮圖網格 (Grid)
   ------------------------------------------ */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.thumb-card {
    aspect-ratio: 4 / 3;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
}

.thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumb-card:hover img {
    transform: scale(1.05); /* Hover 微放大質感 */
}

.thumb-card.active {
    border-color: #b80012; /* 被選中的縮圖加紅框 */
}


/* ------------------------------------------
   🟣 4. 紫框：分頁 (Pagination)
   ------------------------------------------ */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.page-btn:hover {
    border-color: #b80012;
    color: #b80012;
}

.page-btn.active {
    background-color: #b80012;
    color: #fff;
    border-color: #b80012;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* RWD 手機版切換 */
@media screen and (max-width: 868px) {
    .portfolio-container {
        flex-direction: column;
        align-items: center; /* 確保內容居中 */
    }
    

    .portfolio-main-content {
        margin-top: 5rem;
    }


    .portfolio-sidebar {
        position: absolute; /* 🔴 改為絕對定位，避免側邊欄被內容推開 */
        width: 100%; /* 🔴 關鍵點：將原本的 50% 改為 100%，讓側邊欄滿版 */
    }
    
    .category-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center; /* 讓選單按鈕置中對齊 */
        gap: 12px 24px; /* 設定按鈕之間的上下間距 (12px) 與左右間距 (24px) */
        padding: 2em 0;
        margin:  2em 0;
    }

    .category-item {
        /* 讓選單選項平均分配，每行放 2 個，就不會有中間一大片空白的情況 */
        width: calc(50% - 12px); 
        text-align: center;
        box-sizing: border-box;
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr); /* 手機改 2 欄 */
        width: 100%;
    }
}


/* ==========================================
   關於頁 (about.html) - 滿版直長型無縫 4 列
   ========================================== */

.about-gallery-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0;
    background-color: #ffffff;
    overflow: hidden;
}

.about-gallery-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* 4 張圖無縫並排 */
.about-gallery-track {
    display: flex !important;
    width: 100% !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.about-gallery-item {
    flex: 0 0 25% !important;               /* 4 等分 */
    width: 25% !important;
    max-width: 25% !important;
    
    /* 核心修改：大幅加高，呈現「直長型」比例 */
    height: 450px !important;               /* 可以依需求調整：580px ~ 680px */
    
    border-radius: 0;
    overflow: hidden;
}

.about-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;                      /* 自動切換為直長型的滿版裁切 */
    display: block;
}

/* 隱藏桌機箭頭 */
.about-gallery-arrow {
    display: none !important;
}

/* ==========================================
   RWD 響應式 (螢幕變小時自動調整直長高度)
   ========================================== */

@media screen and (max-width: 1400px) {
    .about-gallery-item {
        height: 520px !important;
    }
}

@media screen and (max-width: 1024px) {
    .about-gallery-item {
        height: 420px !important;
    }
}

@media screen and (max-width: 768px) {
    /* 手機版：恢復單張卡片輪播 */
    .about-gallery-track {
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }

    .about-gallery-track::-webkit-scrollbar {
        display: none;
    }

    .about-gallery-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 380px !important;            /* 手機版直長高度 */
        scroll-snap-align: start;
    }

    /* 手機版顯示輪播箭頭 */
    .about-gallery-arrow {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.35);
        color: #ffffff;
        border: 2px solid rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        font-size: 1rem;
        cursor: pointer;
        z-index: 5;
        padding: 0;
    }

    .about-gallery-arrow.prev-btn {
        left: 15px;
    }

    .about-gallery-arrow.next-btn {
        right: 15px;
    }
}



/* ==========================================
   五項主要利害關係人區塊 (Stakeholders Section)
   ========================================== */
.stakeholders-container {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
}

/* --- 標題區 --- */
.stakeholders-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.stakeholders-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fcfafa;
    margin: 0 0 0.3rem 0;
}

.stakeholders-header .subtitle {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: #fcfafa;
    margin: 0 0 1.5rem 0;

}

.stakeholders-header .description {
    font-size: 0.95rem;
    color: #fcfafa;
    line-height: 1.8;
    max-width: 820px;
    margin: 0 auto;
}

/* --- 中間 PNG 圖片包裹區 --- */
.stakeholders-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.stakeholders-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* 若圖片本身沒有圓角可加，有圓角可略過 */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); /* 讓圖片在背景上更有層次感 */
}

/* --- 底部註腳說明 --- */
.stakeholders-footer-note {
    font-size: 0.85rem;
    color: #444444;
    line-height: 1.7;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

/* ==========================================
   RWD 響應式 (手機版)
   ========================================== */

@media screen and (max-width: 768px) {
    .stakeholders-section {
        padding: 3rem 1rem;
    }

    .stakeholders-header h2 {
        font-size: 1.6rem;
    }

    .stakeholders-header .description,
    .stakeholders-footer-note {
        font-size: 0.85rem;
        text-align: justify; /* 手機版兩端對齊閱讀體驗較佳 */
    }
}


/* ==========================================
   永續重大議題評估流程 (Materiality Assessment Process)
   ========================================== */

.materiality-process-section {
    position: relative;
    width: 100%;
    padding: 4rem 1.5rem;
    background-image: url('../images/bg-factory.jpg'); /* 請替換為背景工廠圖路徑 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}



.materiality-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

/* --- 上下細分隔線 --- */
.section-divider-top,
.section-divider-bottom {
    width: 100%;
    height: 1.5px;
    background-color: #555555;
    opacity: 0.6;
}

.section-divider-top {
    margin-bottom: 2.5rem;
}

.section-divider-bottom {
    margin-top: 2.5rem;
}

/* --- 標題區 --- */
.materiality-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.materiality-header h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #fdfdfd;
    margin: 0 0 0.3rem 0;
    letter-spacing: 1px;
}

.materiality-header .subtitle {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: #fcfbfb;
    margin: 0 0 1.5rem 0;

}

.materiality-header .description {
    font-size: 0.9rem;
    color: #faf9f9;
    line-height: 1.8;
    max-width: 780px;
    margin: 0 auto;
}

/* --- 中間紅框切圖容器 --- */
.materiality-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.materiality-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* 微微的陰影讓圖片浮現 */
}

/* ==========================================
   RWD 響應式 (手機/平板)
   ========================================== */

@media screen and (max-width: 768px) {
    .materiality-process-section {
        padding: 2.5rem 1rem;
    }

    .materiality-header h2 {
        font-size: 1.5rem;
    }

    .materiality-header .description {
        font-size: 0.85rem;
        text-align: justify; /* 手機版文字對齊優化 */
    }

    .section-divider-top {
        margin-bottom: 1.8rem;
    }

    .section-divider-bottom {
        margin-top: 1.8rem;
    }
}



/* ==========================================
   重大永續議題矩陣 & 十二項議題區塊
   ========================================== */

.sustainability-matrix-section {
    position: relative;
    width: 100%;
    padding: 4rem 1.5rem;
    background-image: url('../images/bg-factory.jpg'); /* 請替換為背景工廠圖路徑 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}



.sustainability-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

/* --- 標題通用樣式 --- */
.sustainability-header {
    text-align: center;
    margin-bottom: 2rem;
}

.sustainability-header h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #f8f7f7;
    margin: 0 0 0.3rem 0;
    letter-spacing: 1px;
}

.sustainability-header .subtitle {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: #fcfafa;
    margin: 0;

}

/* --- 圖片包裹容器（兩個紅框通用） --- */
.sustainability-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.sustainability-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* 讓白底卡片與背景產生層次感 */
}

/* --- 兩個區塊中間的分隔線 --- */
.section-divider {
    width: 100%;
    height: 1.5px;
    background-color: #555555;
    opacity: 0.6;
    margin: 3.5rem 0;
}

/* ==========================================
   RWD 響應式 (手機/平板)
   ========================================== */

@media screen and (max-width: 768px) {
    .sustainability-matrix-section {
        padding: 2.5rem 1rem;
    }

    .sustainability-header h2 {
        font-size: 1.5rem;
    }

    .section-divider {
        margin: 2.5rem 0;
    }
}

/* ==========================================
   環境理念區塊 (Full Screen Parallax Scroll)
   ========================================== */

/* 外層背景固定 */
.parallax-section {
    position: relative;
    width: 100%;
    /* 背景圖固定設定 */
    background-image: url('images/esg/BG2_3-2環境永續_Desktop.png'); /* 請替換為您的背景圖路徑 */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
}

/* 黑色透光遮罩 */
.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* ------------------------------------------
   1. 第一屏 (滿版 100vh + 垂直置中)
   ------------------------------------------ */
.hero-screen {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh; /* 滿版螢幕高度 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.sub-tag {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 3px;
    opacity: 0.85;
    margin-bottom: 15px;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin: 0 0 10px 0;
}

.sub-title {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 5px;
    margin: 0;
    opacity: 0.9;
}

/* 下滑提示箭頭 (動態效果) */
.scroll-down-hint {
    position: absolute;
    bottom: 30px;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ------------------------------------------
   2. 第二屏 (下滑後看到的內容)
   ------------------------------------------ */
.content-screen {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 100px 20px 140px;
    box-sizing: border-box;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.description {
    font-size: 1.05rem;
    line-height: 2;
    opacity: 0.9;
    margin-bottom: 70px;
    text-align: justify;
    text-justify: inter-ideograph;
}

/* 4 個 Logo 排版 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-box {
    width: 85px;
    height: 85px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* 將黑圖標自動濾成純白色 */
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 1px;
}

/* ------------------------------------------
   3. 手機版 RWD 調整
   ------------------------------------------ */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll; /* 手機端建議改為一般滾動以防相容性問題 */
    }

    .main-title { font-size: 2rem; }
    .sub-title { font-size: 1.2rem; }
    .section-title { font-size: 1.5rem; }

    .content-screen {
        padding: 60px 20px 80px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
}


/* ==========================================
   我們如何實踐 (HOW WE TAKE ACTION) 區塊
   ========================================== */

/* 1. 切換背景圖（工廠/輸送帶背景） */
.action-section {
    position: relative;
    width: 100%;
    background-image: url('images/esg/BG3_3-2環境永續_Desktop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* 維持視差背景定位 */
    color: #ffffff;
    padding: 100px 20px;
    box-sizing: border-box;
}

/* 深色半透明遮罩，確保白字清晰 */
.action-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.action-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* 2. 頂部標題 */
.action-main-header {
    margin-bottom: 70px;
}

.action-main-header .main-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: 2px;
}

.action-main-header .sub-title {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 3px;
    opacity: 0.85;
    margin: 0;
}

/* 3. 碳排放管理內容 */
.carbon-management-block {
    max-width: 850px;
    margin: 0 auto 80px;
}

.carbon-management-block .section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1.5px;
}

.carbon-management-block .section-sub-tag {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-top: 5px;
    margin-bottom: 20px;
}

.carbon-management-block .description {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 50px;
    text-align: justify;
    text-justify: inter-ideograph;
}

/* 4. 4 個 Icon 排版（電腦版預設） */
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.action-item .icon-box {
    width: 180px;
    height: 180px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-item .icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1); /* 自動將 Icon 轉換為純白色 */
}

.action-item h4 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
    letter-spacing: 1px;
}

/* ------------------------------------------
   5. 架構圖區塊（獨立圖片，無白底卡片外框）
   ------------------------------------------ */
.diagram-body {
    max-width: 880px;
    margin: 0 auto;
}

.diagram-body .diagram-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.diagram-body + .diagram-body {
    margin-top: 80px; /* 多張圖片之間的推開距離 */
}

/* ------------------------------------------
   6. 手機版 RWD 響應式調整 (768px 以下)
   ------------------------------------------ */
@media (max-width: 768px) {
    .action-section {
        padding: 50px 20px;
        background-attachment: scroll;
    }

    /* 🌟 解鎖 container 的限制，讓內容滿版展開 */
    .action-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .action-main-header {
        margin-bottom: 40px;
    }

    .action-main-header .main-title {
        font-size: 1.8rem;
    }

    .carbon-management-block {
        margin-top: 15em;
    }

    .carbon-management-block .description {
        margin-bottom: 35px;
    }

    /* 🌟 2x2 網格：寬度 100% 滿版，上下留空 45px 避免圖文重疊 */
    .action-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 45px 15px;
        width: 100%;
        margin-top: 20px;
    }

    .action-item {
        width: 100%;
    }

    /* 🌟 放大 Icon 尺寸，不再變小 */
    .action-item .icon-box {
        width: 150px;
        height: 150px;
        margin-bottom: 12px;
    }

    .action-item .icon-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .action-item h4 {
        font-size: 1rem;
        line-height: 1.5;
        height: auto;
    }

    .diagram-body + .diagram-body {
        margin-top: 50px;
    }
}

/* 中間段落文字樣式：控制與上下兩張圖的留空距離 */
.carbon-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #ffffff;
    max-width: 880px;
    margin: 60px auto 60px auto; /* 🌟 上留空 60px、下留空 60px，讓視覺呼吸感更好 */
    text-align: justify;
    text-justify: inter-ideograph;
    opacity: 0.9;
}

/* 確保 diagram-img 滿版且無額外間距干擾 */
.diagram-body {
    max-width: 880px;
    margin: 0 auto;
}

.diagram-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* 獨立圖片容器（乾淨無外框） */
.diagram-image-wrapper {
    max-width: 880px;
    margin: 0 auto;
}

.diagram-image-wrapper .diagram-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* 柔和圓角，如不需要可設為 0 */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); /* 微陰影讓圖片浮現 */
}

/* 如果後面還有其他圖片區塊，自動推開距離 */
.diagram-image-wrapper + .diagram-image-wrapper {
    margin-top: 60px;
}

/* 手機版 RWD 調整 */
@media (max-width: 768px) {
.carbon-description {
        font-size: 0.95rem;
        margin: 35px auto 35px auto; /* 手機版間距適度縮小 */
    }

    .diagram-image-wrapper + .diagram-image-wrapper {
        margin-top: 35px;
    }
}

/* 整個區塊外圍與推開距離 */
.resource-management-section {
    max-width: 880px;
    margin: 200px auto 0 auto; /* 與上方推開 80px，可自行調整 */
    text-align: center;
}

/* 標題與副標題樣式 */
.resource-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 2px;
}

.resource-header .sub-title {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
    margin-bottom: 35px; /* 與下方圖片的留空距離 */
    letter-spacing: 1.5px;
}

/* 手機版 RWD 調整 */
@media (max-width: 768px) {
    .resource-management-section {
        margin-top: 50px;
    }

    .resource-header h2 {
        font-size: 1.5rem;
    }

    .resource-header .sub-title {
        margin-bottom: 20px;
    }
}

/* 確保 picture 裡面的圖片維持 100% 寬度與自動高度 */
.resource-management-section picture img,
.diagram-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}


/* ------------------------------------------
   廢棄物管理 (WASTE MANAGEMENT) 樣式
   ------------------------------------------ */

.waste-management-section {
    max-width: 880px;
    margin: 80px auto 0 auto; /* 與上方的區塊拉開距離 */
    text-align: center;
    color: #ffffff;
}

/* 標題與說明文字 */
.waste-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1.5px;
}

.waste-header .sub-title {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-top: 5px;
    margin-bottom: 20px;
}

.waste-header .description {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 40px;
    text-align: justify;
    text-justify: inter-ideograph;
}

/* 圖片容器與切換控制 */
.waste-management-section .diagram-body {
    width: 100%;
    margin: 0 auto;
}

.waste-management-section picture {
    display: block;
    width: 100%;
}

.waste-management-section .diagram-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* 手機版 RWD 間距調整 (768px 以下) */
@media (max-width: 768px) {
    .waste-management-section {
        margin-top: 50px;
        padding: 0 15px;
    }

    .waste-header h2 {
        font-size: 1.5rem;
    }

    .waste-header .description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
}




/* ==========================================
   永續供應鏈 (SUSTAINABLE SUPPLY CHAIN) 區塊
   ========================================== */

.supply-chain-section {
    position: relative;
    width: 100%;
    /* 背景圖 */
    background-image: url('images/esg/BG2_3-2環境永續_Desktop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 100px 20px;
    box-sizing: border-box;
}

/* 🌟 加入白色半透明遮罩（拉高到 0.85 讓背景大幅變白） */
.supply-chain-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85); /* 0.85 代表 85% 白色遮罩 */
    z-index: 1;
}

.supply-chain-wrapper {
    position: relative;
    z-index: 2; /* 確保內容浮在白色遮罩上方 */
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* 文字改為深色 */
.supply-chain-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: 1.5px;
}

.supply-chain-header .sub-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444444;
    letter-spacing: 2px;
    margin-top: 5px;
    margin-bottom: 25px;
}

.supply-chain-header .description {
    max-width: 850px;
    margin: 0 auto 50px auto;
    font-size: 1rem;
    line-height: 1.85;
    color: #333333;
    text-align: justify;
    text-justify: inter-ideograph;
}

/* 圖片容器 */
.supply-chain-section .diagram-body {
    max-width: 880px;
    margin: 0 auto;
}

.supply-chain-section picture {
    display: block;
    width: 100%;
}

.supply-chain-section .diagram-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}


/* ==========================================
   專業認證 (CERTIFICATIONS) 區塊
   ========================================== */

.certifications-section {
    position: relative;
    width: 100%;
    background-image: url('images/esg/BG2_3-2環境永續_Desktop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 100px 20px;
    box-sizing: border-box;
    color: #ffffff;
}

.certifications-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.certifications-header {
    margin-bottom: 50px;
}

.certifications-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
}

.certifications-header .sub-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    opacity: 0.85;
    margin-top: 6px;
}

/* 🌟 電腦版 3 欄並排 */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    align-items: start;
}

.cert-item picture,
.cert-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* ------------------------------------------
   手機版 RWD 響應式調整 (768px 以下)
   ------------------------------------------ */
@media (max-width: 768px) {
    .certifications-section {
        padding: 60px 15px;
        background-attachment: scroll;
    }

    .certifications-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    .certifications-header {
        margin-bottom: 35px;
    }

    .certifications-header h2 {
        font-size: 1.6rem;
    }

    /* 🌟 手機版改為單欄垂直排列 */
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 450px; /* 限制最大寬度，避免手機上圖片放大到過大 */
        margin: 0 auto;
    }
}



/* ==========================================
   客製估價 Section 雙欄樣式
   ========================================== */

.custom-quote-section {
    width: 100%;
    padding: 80px 20px;
    box-sizing: border-box;
    background-color: #ffffff; /* 🌟 改成純白，就不會有色差 */
}

/* 主容器：使用 Flexbox 做左右雙欄排版 */
.custom-quote-section .quote-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px; /* 左標題與右表單的間距 */
}

/* 左側標題區塊（紅框） */
.custom-quote-section .quote-header {
    flex: 0 0 220px; /* 固定左側寬度 */
    position: sticky;
    top: 100px; /* 滾動時固定在左上角 */
}

.custom-quote-section .quote-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: 2px;
}

.custom-quote-section .quote-header .sub-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #888888;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

/* 右側表單區塊（綠框） */
.custom-quote-section .quote-form {
    flex: 1; /* 自動佔滿剩餘寬度 */
    max-width: 750px;
}

.custom-quote-section .form-group {
    margin-bottom: 28px;
}

.custom-quote-section .group-title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
    color: #222222;
}

/* 按鈕式選項容器 */
.custom-quote-section .option-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.custom-quote-section .btn-option {
    position: relative;
    box-sizing: border-box;
}

/* 各列等分設定 */
.custom-quote-section .cols-6 .btn-option { flex: 1 1 calc(16.666% - 8px); }
.custom-quote-section .cols-5 .btn-option { flex: 1 1 calc(20% - 8px); }
.custom-quote-section .cols-4 .btn-option { flex: 1 1 calc(25% - 8px); }

.custom-quote-section .btn-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-quote-section .btn-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border: 1px solid #d0d0d0;
    background-color: #ffffff;
    font-size: 0.88rem;
    color: #444444;
    cursor: pointer;
    text-align: center;
    padding: 0 4px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* 點選後的變色效果 */
.custom-quote-section .btn-option input:checked + span {
    background-color: #4a4a4a;
    color: #ffffff;
    border-color: #4a4a4a;
}

.custom-quote-section .btn-option span:hover {
    border-color: #888888;
}

/* 輸入框通用設定 */
.custom-quote-section .input-other, 
.custom-quote-section .size-grid input, 
.custom-quote-section .info-grid input {
    width: 100%;
    height: 42px;
    border: 1px solid #d0d0d0;
    padding: 0 12px;
    font-size: 0.9rem;
    box-sizing: border-box;
    outline: none;
    background-color: #ffffff;
}

.custom-quote-section .input-other:focus, 
.custom-quote-section .size-grid input:focus, 
.custom-quote-section .info-grid input:focus {
    border-color: #333333;
}

.custom-quote-section ::placeholder {
    color: #aaaaaa;
}

/* 尺寸欄位（3欄） */
.custom-quote-section .size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* 基本資訊欄位（2欄） */
.custom-quote-section .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* 送出按鈕 */
.custom-quote-section .submit-btn {
    width: 100%;
    height: 48px;
    background-color: #3f3f3f;
    color: #ffffff;
    border: none;
    font-size: 0.95rem;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.custom-quote-section .submit-btn:hover {
    background-color: #1a1a1a;
}

/* ------------------------------------------
   手機版 RWD 響應式調整 (768px 以下)
   ------------------------------------------ */
@media (max-width: 768px) {
    .custom-quote-section {
        padding: 50px 15px;
    }

    /* 改為單欄上下垂直排列 */
    .custom-quote-section .quote-container {
        flex-direction: column;
        gap: 30px;
    }

    .custom-quote-section .quote-header {
        flex: auto;
        position: static;
        text-align: left;
    }

    .custom-quote-section .quote-form {
        width: 100%;
    }

    /* 手機版選項改為雙欄 */
    .custom-quote-section .cols-6 .btn-option,
    .custom-quote-section .cols-5 .btn-option,
    .custom-quote-section .cols-4 .btn-option {
        flex: 1 1 calc(50% - 8px);
    }

    /* 手機版基本資訊改為單欄 */
    .custom-quote-section .info-grid {
        grid-template-columns: 1fr;
    }
}

/* 必填星號 */
.custom-quote-section .required-star {
    color: #b80012;
    margin-left: 2px;
}

/* 錯誤提示文字隱藏 */
.custom-quote-section .error-msg {
    display: none;
    color: #b80012;
    font-size: 0.8rem;
    margin-top: 6px;
}

/* 未填寫時的紅框與提示顯現 */
.custom-quote-section .form-group.has-error .error-msg {
    display: block;
}

.custom-quote-section .form-group.has-error input[type="text"],
.custom-quote-section .form-group.has-error input[type="tel"],
.custom-quote-section .form-group.has-error input[type="email"],
.custom-quote-section .form-group.has-error .btn-option span {
    border-color: #b80012;
}




/* ==========================================
   1. 全局與基礎佈局
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

.news-wrapper {
  width: 100%;
}

/* 頂部動態 Banner */
.news-banner {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.news-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.news-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* 列表頂部標題與分類 */
.news-header {
  text-align: center;
  margin-bottom: 50px;
}

.news-main-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #b21c24;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.news-categories-desktop {
  display: flex;
  justify-content: center;
  gap: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.cat-btn {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  padding: 8px 4px;
  position: relative;
  transition: color 0.25s ease;
}

.cat-btn:hover,
.cat-btn.active {
  color: #1a1a1a;
}

.cat-btn.active::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #b21c24;
}

.news-categories-mobile {
  display: none;
}

.news-categories-mobile select {
  width: 100%;
  max-width: 300px;
  padding: 10px 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  background-color: #fff;
}


/* ==========================================
   2. 文章列表網格 (LIST VIEW)
   ========================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.news-card {
  background: #fff;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
}

.card-img-holder {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.card-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #888;
  margin: 12px 0 8px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 分頁按鈕 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #444;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.page-btn.active,
.page-btn:hover {
  border-color: #333;
  background-color: #333;
  color: #fff;
}


/* ==========================================
   3. 文章內頁 (DETAIL VIEW - 獨立雙欄 Row)
   ========================================== */
.article-detail {
  width: 100%;
  background: #fff;
}

.article-main-container {
  max-width: 1100px;
  margin: 20px auto 40px;
}

/* 核心防護：每一組「左小標 + 右圖文」為獨立的 article-row Grid */
.article-row {
  display: grid;
  grid-template-columns: 280px 1fr; /* 左欄固定 280px，右欄填滿 */
  gap: 60px;
  align-items: start;
  margin-bottom: 60px; /* 控管段落之間的上下推擠 */
}

.article-row.top-row {
  margin-bottom: 20px;
}

/* 左欄小標題 */
.row-left {
  display: flex;
  flex-direction: column;
}

.row-left .subtitle-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222222;
  line-height: 1.5;
  margin: 0;
}

/* 右欄內容容器 */
.row-right {
  min-width: 0; /* 防止子元素爆開 */
}

/* 右欄：文章主標題 */
.article-header {
  margin-bottom: 20px;
}

.detail-tag {
  color: #b21c24;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.detail-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.3;
  word-break: break-word;
  white-space: normal;
}

.detail-meta {
  font-size: 0.9rem;
  color: #888;
}

/* 右欄：內文與圖片 */
.section-body {
  font-size: 1.02rem;
  line-height: 1.95;
  color: #333;
}

.section-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.2rem;
}

.section-body img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  margin: 24px 0;
  border-radius: 4px;
}


/* ==========================================
   4. 文章導覽與底部推薦
   ========================================== */
.post-navigation {
  max-width: 1100px;
  margin: 60px auto;
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.nav-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #f9f9f9;
  padding: 15px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.nav-card:hover {
  background-color: #f0f0f0;
}

.nav-img-box {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.nav-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-label {
  font-size: 0.8rem;
  color: #888;
  display: block;
}

.nav-cat {
  font-size: 0.85rem;
  color: #666;
  font-weight: 600;
}

.nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 4px;
  color: #222;
}

.align-right {
  text-align: right;
  margin-left: auto;
}

/* 更多文章推薦 */
.more-articles-section {
  max-width: 1100px;
  margin: 0 auto 80px;
}

.more-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 700;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}


/* ==========================================
   5. RWD 響應式斷點
   ========================================== */
@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .article-row {
    grid-template-columns: 200px 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .news-banner {
    height: 260px;
  }
  
  .news-categories-desktop {
    display: none;
  }
  
  .news-categories-mobile {
    display: block;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }

  /* 手機版改回單欄，小標題在段落上方 */
  .article-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 40px;
  }
  
  .post-navigation {
    flex-direction: column;
  }
  
  .more-grid {
    grid-template-columns: 1fr;
  }
}


/* 第一排 4 欄網格 */
.cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

/* 第二排長條型按鈕容器 */
.full-width-option {
    width: 100%;
}

/* 滿寬按鈕樣式 */
.btn-option.btn-full {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.btn-option.btn-full span {
    display: block;
    width: 100%;
    padding: 12px 0; /* 控制上下高度 */
    border: 1px solid #d4d1d1; /* 設定邊框顏色 */
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 隱藏原生 Checkbox */
.btn-option input[type="checkbox"] {
    display: none;
}

/* 點擊/選取後的狀態 */
.btn-option input[type="checkbox"]:checked + span {
    background-color: #333;
    color: #fff;
    border-color: #333;
}


/* 基本表單群組 */
.form-group {
    margin-bottom: 24px;
}
.group-title {
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}
.group-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    display: block;
}

/* 3 欄按鈕列 */
.option-grid.cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.btn-option input {
    display: none;
}
.btn-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.btn-option input:checked + span {
    background: #444;
    color: #fff;
    border-color: #444;
}

/* 折疊外容器 */
.accordion-box {
    margin-top: 16px;
    border: 1px solid #e2e2e2;
    background: #fcfcfc;
    border-radius: 8px;
    overflow: hidden;
}
.btn-accordion {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}
.accordion-content {
    max-height: 3000px;
    overflow: hidden;
    padding: 0 20px 20px 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.accordion-box.collapsed .accordion-content {
    max-height: 0;
    padding: 0 20px;
}

/* 雙欄網格與單一卡片 */
.box-structure-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* 卡片未選取狀態（背景全白，避免圖片色差） */
.structure-card {
    display: block;
    cursor: pointer;
    border: 1.5px solid #dcdcdc;
    border-radius: 16px;
    background-color: #fcfcfc; 
    padding: 24px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.structure-card input[type="radio"] {
    display: none;
}
.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #000;
}
.card-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 16px 0;
    line-height: 1.4;
}
.card-img-wrapper {
    margin-top: auto;
    text-align: center;
}
.card-img-wrapper img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* 選取狀態（選中時：背景保持白色、邊框加粗變深、加上微陰影） */
.structure-card:has(input[type="radio"]:checked),
.structure-card.selected {
    background-color: #fcfcfc; /* 保持全白，圖片就不會有色差 */
    border: 2px solid #222222; /* 邊條變色加粗 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); /* 增強選中懸浮感 */
}


/* 附件上傳區塊排版 */
#group-fileUpload .group-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.file-notice {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 12px;
}
.file-notice p {
    margin: 0;
}

/* 隱藏原生檔案上傳按鈕 */
.file-upload-box input[type="file"] {
    display: none;
}

/* 仿輸入框樣式的點擊區 */
.upload-custom-input {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 8px 16px;
    border: 1.5px solid #888888; /* 灰色實線邊框 */
    border-radius: 2px;
    background-color: #fcfcfc;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.upload-custom-input:hover {
    border-color: #333;
}

/* 預設提示文字 */
.placeholder-text {
    font-size: 13px;
    color: #777;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 選取的檔名標籤容器 */
.file-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

/* 檔名標籤：截取前 5 字顯示的視覺 */
.file-tag {
    display: inline-flex;
    align-items: center;
    background-color: #e8e8e8;
    color: #333;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}