/* =========================================
   0. 全域變數與重置 (Variables & Reset)
   ========================================= */
:root {
    --primary-blue: #1c355e;   /* 企業主色 (深藍) */
    --accent-red: #d32f2f;     /* 點綴色 (紅色線條) */
    --footer-bg: #b8c1cb;      /* 頁尾灰藍色 */
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-gray: #555555;
    --transition-speed: 0.3s;
    --border-color: rgba(255, 255, 255, 0.4);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--text-light);
}

a { 
    text-decoration: none; 
    transition: color var(--transition-speed); 
}

/* =========================================
   1. 頁首導覽列與語言切換 (共用電腦版)
   ========================================= */
.site-header {
    padding: 15px 0;
    position: sticky;       /* 讓 Header 黏在最上方 */
    top: 0;
    z-index: 1000;
    background-color: var(--primary-blue); /* 預設在最頂端時的深藍色 (完全不透明) */
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; 
}

/* 狀態 1：往下滑時 -> 往上隱藏 */
.site-header.header-hidden {
    transform: translateY(-100%); 
}

/* 狀態 2：往上滑時 -> 出現且呈現 50% 透明度 */
.site-header.header-scrolled-up {
    background-color: rgba(30, 58, 95, 0.5); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
}

.header-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 40px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo-block { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.logo-icon-placeholder { 
    width: 75px; 
    height: 75px; 
    background-color: #ffffff; 
    border: 2px solid var(--accent-red); 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    overflow: hidden; 
}

.logo-text { 
    color: var(--text-light); 
    font-size: 42px; 
    font-weight: bold; 
    letter-spacing: 2px; 
    border-bottom: 4px solid var(--accent-red); 
}

.hamburger-btn { 
    display: none; 
    flex-direction: column; 
    gap: 6px; 
    cursor: pointer; 
    z-index: 100; 
}

.hamburger-btn .bar { 
    width: 20px; 
    height: 2px; 
    background-color: var(--text-light); 
    transition: all 0.3s ease; 
    border-radius: 3px; 
}

.nav-block { 
    display: flex; 
    align-items: center; 
    gap: 40px; 
}

.main-nav { 
    display: flex; 
    align-items: center; 
    gap: 40px; 
}

.main-nav a { 
    color: var(--text-light); 
    font-size: 24px; 
    font-weight: 500; 
    text-align: center;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
}

.main-nav a:hover, .main-nav a.active { 
    opacity: 0.8; 
}

.main-nav a.active { 
    border-bottom: 2px solid var(--text-light); 
}

/* 語言切換母容器 */
.lang-selector { 
    position: relative; 
    z-index: 10010 !important; 
}

.lang-trigger { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    color: var(--text-light); 
    cursor: pointer; 
    padding: 10px 0; 
}

.icon-globe { width: 20px; height: 20px; }
.icon-arrow { width: 16px; height: 16px; }

/* 下拉選單 */
.lang-dropdown { 
    position: absolute; 
    top: 100%; 
    right: -10px; 
    background-color: #172a4d; 
    border-radius: 6px; 
    list-style: none; 
    width: 110px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); 
    overflow: hidden; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(-10px); 
    transition: all 0.3s ease; 
    z-index: 10011 !important; 
}

.lang-selector:hover .lang-dropdown { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.lang-dropdown li a { 
    display: block; 
    padding: 12px 15px; 
    color: #ffffff; 
    text-align: center; 
    font-size: 15px; 
    font-weight: 500; 
    transition: background-color 0.2s ease; 
}

.lang-dropdown li a:hover { 
    background-color: #5d6d88; 
}

/* =========================================
   2. 廠區主佈局 (左側欄與右內容面板)
   ========================================= */
.plant-section {
    background-color: var(--primary-blue); 
    padding: 60px 0 100px 0;
    min-height: 75vh;
}

.plant-menu-toggle, .sidebar-close, .sidebar-overlay {
    display: none;
}

.plant-layout-container {
    display: flex;
    gap: 50px;
    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 40px;
}

.plant-sidebar {
    width: 320px; /* 稍微加寬側邊欄防折行 */
    flex-shrink: 0;
}

.plant-main-content {
    flex-grow: 1;
    overflow: hidden; 
}

/* 幾何梯形類別清單與側滑動效 */
.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-item {
    display: block;
    width: 100%;
    padding: 14px 45px 14px 20px; 
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.06); 
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    clip-path: polygon(0% 0%, calc(100% - 25px) 0%, 100% 100%, 0% 100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.25s ease;
    transform-origin: left center; 
}

.category-item:hover,
.category-item.active {
    background-color: var(--accent-red); 
    transform: translateX(12px);          
}

/* 面板切換與淡入動畫 */
.plant-panel {
    display: none; 
    width: 100%;
    padding-bottom: 30px;
}

.plant-panel.active {
    display: block; 
    animation: fadeInTab 0.4s ease-out forwards; 
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   3. 廠區內部組件（標題、文字、圖片、表格）
   ========================================= */
.panel-title {
    color: var(--text-light);
    font-size: 32px;
    font-weight: bold;
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 15px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.plant-text-content {
    color: rgba(255, 255, 255, 0.85);
    font-size: 24px;
    line-height: 1.8;
    letter-spacing: 1px;
    margin-bottom: 25px; 
    text-align: justify;
    text-justify: inter-ideograph;
}

.plant-text-content p {
    margin-bottom: 12px;
}

.plant-text-content p:last-child {
    margin-bottom: 0;
}

.plant-content-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 現有設備資料表格 (響應式外殼) */
.table-responsive-wrapper {
    width: 100% !important;
    overflow-x: auto !important; 
    -webkit-overflow-scrolling: touch; 
    margin-top: 15px !important;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.equipment-data-table {
    width: 100% !important;
    min-width: 600px !important; /* 鎖死最小寬度防止擠壓變形 */
    border-collapse: collapse;
    font-size: 20px;
    color: #ffffff;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.03); 
}

.equipment-data-table thead tr {
    background-color: #3b74c4; 
    color: #ffffff;
    font-weight: bold;
}

.equipment-data-table th, 
.equipment-data-table td {
    padding: 14px 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.15); 
    line-height: 1.5;
    vertical-align: middle;
    white-space: nowrap !important; /* 強制文字不折行 */
}

.equipment-data-table tbody tr:nth-child(even) { background-color: rgba(255, 255, 255, 0.02); }
.equipment-data-table tbody tr:hover { background-color: rgba(255, 255, 255, 0.08); transition: background-color 0.2s ease; }
.equipment-data-table td.highlight-cell { font-weight: 600; color: #ffffff; background-color: rgba(255, 255, 255, 0.05); }

/* 導航紙飛機按鈕與 Tooltip 提示框 */
.plant-text-content .address-line {
    display: flex;
    align-items: center; 
    gap: 12px;           
    margin-bottom: 12px;
}

.map-icon-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.15); 
    color: #ffffff; 
    border-radius: 50%;         
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    position: relative;         
    flex-shrink: 0;             
    cursor: pointer;
}

.map-icon-btn svg {
    width: 16px;
    height: 16px;
    transform: translateX(-1px) translateY(1px); 
}

.map-icon-btn:hover {
    transform: scale(1.1);
    background-color: #ffffff;
    color: var(--primary-blue); 
}

.map-icon-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10;
}

.map-icon-btn::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.map-icon-btn:hover::after,
.map-icon-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* =========================================
   4. 設備介紹分頁與網格矩陣 (共用電腦版)
   ========================================= */
.equip-section-header {
    display: flex;
    justify-content: space-between; 
    align-items: flex-end;          
    border-bottom: 2px solid var(--accent-red); 
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.equip-main-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 0;
    white-space: nowrap;
}

.equip-tab-list {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.equip-tab {
    color: rgba(255, 255, 255, 0.5); 
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 5px 0;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap; 
}

.equip-tab:hover, 
.equip-tab.active {
    color: #ffffff;
}

.equip-tab.active::after {
    content: '';
    position: absolute;
    bottom: -17px; 
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background-color: #ffffff;
}

/* 子內容面板切換 */
.equip-sub-panel {
    display: none;
}
.equip-sub-panel.active {
    display: block;
    animation: fadeInSub 0.3s ease-out forwards;
}

@keyframes fadeInSub {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 設備介紹：2欄 / 3欄 / 4欄 圖片網格系統 */
.equip-matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 15px;
}

.equip-matrix-grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 15px;
}

.equip-matrix-grid4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 15px;
}

.matrix-item {
    background-color: rgba(255, 255, 255, 0.04); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 10px;
    padding: 15px;
    text-align: center; 
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.matrix-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.08);
}

.matrix-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
    object-fit: cover; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.matrix-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    letter-spacing: 1px;
}

/* =========================================
   5. 頁尾區塊 (Footer 共用電腦版)
   ========================================= */
.site-footer { 
    background-color: var(--footer-bg); 
    padding: 24px 0; 
}

.footer-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 40px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.contact-header { 
    display: flex; 
    align-items: baseline; 
    flex-wrap: wrap; 
    gap: 20px; 
    margin-bottom: 15px; 
}

.contact-header h2 { 
    color: var(--text-gray); 
    font-size: 30px; 
    font-weight: 800; 
}

.contact-details { 
    color: var(--text-gray); 
    font-size: 18px; 
    font-weight: bold; 
    display: flex; 
    gap: 15px; 
    align-items: center; 
}

.copyright { 
    color: var(--text-gray); 
    font-size: 14px; 
    font-weight: bold; 
}

.footer-logo { 
    color: var(--primary-blue); 
    font-size: 64px; 
    font-weight: 900; 
    line-height: 1; 
}

/* 確保 Email 連結與旁邊的文字看起來一致 */
.footer-email {
    color: var(--text-gray);      /* 保持與 ADD/TEL 相同的顏色 */
    text-decoration: none;        /* 移除底線 */
    cursor: pointer;              /* 滑鼠移入顯示手指指標 */
    transition: opacity 0.2s;
}

/* 當滑鼠移上去時，加上一點視覺反饋 */
.footer-email:hover {
    opacity: 0.7;
    color: #666666;                  /* 滑鼠懸停時微調顏色 */
}

/* =========================================
   6. 專屬英文版特定微調 (html[lang="en"] 電腦版)
   ========================================= */
html[lang="en"] .logo-text {
    font-size: 36px;
    line-height: 1.2;
    margin-top: 4px;
}

html[lang="en"] .equip-section-header {
    display: flex;
    justify-content: space-between; 
    align-items: center;          
    border-bottom: 2px solid var(--accent-red); 
    padding-bottom: 15px;
    margin-bottom: 25px;
}

html[lang="en"] .equip-tab-list {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

html[lang="en"] .equip-tab {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 0;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap; 
}

html[lang="en"] .equip-tab.active::after {
    content: '';
    position: absolute;
    bottom: -17px; 
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background-color: #ffffff;
}

html[lang="en"] .footer-info {
    display: flex;
    flex-direction: column;
}

html[lang="en"] .copyright-row {
    display: flex;
    justify-content: space-between; 
    align-items: center;            
    width: 100%;
}

html[lang="en"] .copyright-row .copyright {
    margin: 0; 
}

html[lang="en"] .footer-email {
    color: var(--text-gray);
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
}


/* =========================================================================
   ★ 響應式核心：所有 RWD 媒體查詢樣式集中管理區塊 ★
   ========================================================================= */

/* ----------------=========================
   RWD 1. 平板模式：視窗寬度 1180px 以下
   ----------------========================= */
@media (max-width: 1180px) {
    .header-container { 
        flex-direction: column; 
        gap: 20px; 
    }
    
    .logo-text { font-size: 30px; }
    .footer-container { flex-direction: column; text-align: center; gap: 30px; }
    .contact-header { justify-content: center; }

    /* 英文版平板微調 */
    html[lang="en"] .logo-text { font-size: 30px; }
}

/* ----------------=========================
   RWD 2. 手機模式：視窗寬度 768px 以下
   ----------------========================= */
@media (max-width: 768px) {
    /* 解除全網頁高度死鎖，修復手機版潛在的底部多餘白邊空白問題 */
    html, body, .main-content { 
        height: auto !important; 
        min-height: 0 !important; 
    }
    
    .plant-section { 
        height: auto !important; 
        min-height: 0 !important; 
        padding: 30px 0 0 0 !important; 
    }
    
    .site-footer { 
        clear: both !important; 
        position: relative !important; 
        margin-top: 0 !important; 
        padding-top: 30px !important; 
    }

    /* 頂部 Logo 排版比例縮減 */
    .header-container { 
        position: relative; 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
        padding: 0 20px; 
    }
    
    .logo-block { gap: 10px; }
    .logo-icon-placeholder { width: 45px; height: 45px; }
    .logo-icon-placeholder img { height: 45px !important; }
    .logo-text { font-size: 18.5px; border-bottom: 2px solid var(--accent-red); }
    
    /* 漢堡選單與手機導覽下拉面板 */
    .hamburger-btn { display: flex; }
    
    .nav-block { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background-color: var(--primary-blue); 
        flex-direction: column; 
        align-items: center; 
        padding: 20px 0; 
        gap: 20px; 
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); 
        z-index: 90; 
    }
    
    .nav-block.active { display: flex; }
    .main-nav { flex-direction: column; text-align: center; gap: 20px; }
    .main-nav a { font-size: 20px; }
    
    /* 手機版語言切換與觸發下拉樣式 */
    /* 1. 隱藏地球儀與箭頭圖示，減少使用者點擊步驟 */
    .lang-trigger {
        display: none !important;
    }

    /* 2. 讓語言區塊容器滿版，並給予舒適的上下間距 */
    .lang-selector {
        width: 100% !important;
        position: relative !important;
        padding: 5px 50px 0 50px !important;
        z-index: 10010 !important;
    }

    /* 3. 解除原本的滑鼠 Hover 隱藏邏輯，強制變為 Flex 橫向整排顯示 */
    .lang-dropdown {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        transform: none !important;
        
        /* 強制永遠顯示並橫向排列 */
        display: flex !important;
        flex-direction: row !important; 
        justify-content: center !important;
        align-items: center !important;
        gap: 3px !important; /* 按鈕彼此之間的左右間距 */
        
        width: 100% !important;
        background-color: transparent !important; /* 拔掉原先的深藍色下拉底色包圍盒 */
        box-shadow: none !important;
        list-style: none !important;
        
        /* 覆蓋掉 Hover 隱藏的開關屬性，讓它直接常駐可見 */
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        padding: 0 !important;
    }

    /* 4. 讓 3 個語言選項平均瓜分整行寬度，並讓內部文字置中 */
    .lang-dropdown li {
        flex: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important; /* 確保內部的 a 標籤置中 */
    }

    /* 5. 移除框線與背景，改為跟首頁導覽列一樣的「純文字 + 預留透明底線」 */
    .lang-dropdown li a {
        display: inline-block !important; /* 讓底線寬度剛剛好包住文字 */
        padding: 8px 2px !important;      /* 縮小左右 padding 讓底線更貼合字數 */
        font-size: 16px !important;       /* 稍微放大字體配合無框線視覺 */
        font-weight: 500 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        
        /* 移除先前的按鈕樣式 */
        background-color: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        
        /* 預留一條透明的 2px 底線，防止點擊時畫面跳動 */
        border-bottom: 2px solid transparent !important; 
        transition: border-color 0.2s !important;
    }

    /* 6. 當點擊時的反饋效果 */
    .lang-dropdown li a:active {
        border-bottom: 2px solid rgba(255, 255, 255, 0.5) !important;
    }

    /* 7. ★ 核心：讓目前所在語系的按鈕，底線永遠停留保持顯示 ★ */
    /* 當網頁是繁體中文時，底線停留在 [data-lang="tw"] */
    html[lang="zh-Hant"] .lang-dropdown li a[data-lang="tw"],
    /* 當網頁是簡體中文時，底線停留在 [data-lang="cn"] */
    html[lang="zh-Hans"] .lang-dropdown li a[data-lang="cn"],
    /* 當網頁是英文版時，底線停留在 [data-lang="en"] */
    html[lang="en"] .lang-dropdown li a[data-lang="en"] {
        border-bottom: 2px solid var(--text-light) !important;
        font-weight: bold !important; /* (選用) 讓當前語言的字體稍微加粗，視覺更清晰 */
    }

    /* 廠區側邊欄：轉換為手機版抽屜滑出式選單，提升層級防遮擋 */
    .plant-layout-container { flex-direction: column; padding: 0 20px; gap: 0; }

    .plant-menu-toggle {
        display: flex; 
        align-items: center; 
        gap: 8px; 
        background-color: rgba(255, 255, 255, 0.08); 
        color: #ffffff; 
        border: 1px solid rgba(255, 255, 255, 0.2); 
        padding: 10px 18px; 
        border-radius: 6px; 
        font-size: 15px; 
        font-weight: 600; 
        cursor: pointer; 
        margin-left: 20px; 
        margin-bottom: 25px; 
        transition: all 0.2s; 
        width: fit-content;
    }
    .plant-menu-toggle:hover { background-color: var(--accent-red); border-color: var(--accent-red); }

    /* 側邊欄黑色背景遮罩 */
    .sidebar-overlay { 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100vw; 
        height: 100vh; 
        background-color: rgba(0, 0, 0, 0.55); 
        z-index: 9998 !important; /* 確保蓋過智慧型頁首的 1000 */
        opacity: 0; 
        visibility: hidden; 
        transition: opacity 0.3s ease, visibility 0.3s ease; 
    }
    .sidebar-overlay.active { display: block; opacity: 1; visibility: visible; }

    /* 側邊欄抽屜主體 */
    .plant-sidebar { 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 310px; 
        height: 100vh; 
        background-color: #16294a; 
        z-index: 9999 !important; /* 最高級別，保證在最上層 */
        padding: 70px 24px 24px 24px; 
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.4); 
        transform: translateX(-100%); 
        transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); 
    }
    .plant-sidebar.open { transform: translateX(0); }
    .sidebar-close { display: block; position: absolute; top: 22px; right: 22px; color: #ffffff; font-size: 24px; cursor: pointer; padding: 5px; line-height: 1; }

    .category-item { font-size: 16px; padding: 14px 25px 14px 15px; } 
    .category-item:hover, .category-item.active { transform: scale(1.02); }

    /* 廠區細項內容文字、表格與設備標籤滑動 */
    .plant-text-content { font-size: 16px; }
    .equipment-data-table { font-size: 14px !important; }
    .equipment-data-table th, .equipment-data-table td { padding: 10px 12px !important; }

    /* 11 個設備小分頁標籤在手機版改為水平滑動軸 */
    .equip-section-header {
        flex-direction: column; 
        align-items: flex-start;
        gap: 15px;
        padding-bottom: 0;
        border-bottom: none; 
    }
    .equip-main-title {
        font-size: 26px;
        border-bottom: 2px solid var(--accent-red);
        padding-bottom: 10px;
        width: 100%;
    }
    .equip-tab-list {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        gap: 15px;
    }
    .equip-tab-list::-webkit-scrollbar { display: none; }
    .equip-tab-list { -ms-overflow-style: none; scrollbar-width: none; }
    .equip-tab { font-size: 14px; }
    .equip-tab.active::after { bottom: -5px; height: 2px; } 

    /* 設備展示矩陣：手機版強制降為 1 欄直排防圖片過小 */
    .equip-matrix-grid,
    .equip-matrix-grid4 {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .matrix-item { padding: 12px; }
    .matrix-text { font-size: 15px; }

    /* 頁尾手機版資訊垂直堆疊 */
    .contact-header h2 { font-size: 26px; }
    .contact-details { font-size: 16px; flex-direction: column; gap: 5px; }
    .copyright { font-size: 10px; }
    .footer-logo { font-size: 40px; }
    
    .copyright-row {
        flex-direction: column-reverse; 
        align-items: flex-start;
        gap: 8px;
        margin-top: -5px;
    }

    .panel-title {
        font-size: 26px;
    }

    /* 專屬英文版手機端小調整 */
    html[lang="en"] .logo-text { font-size: 18px; }
    html[lang="en"] .footer-email { font-size: 16px; }
}