/* =========================================
   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;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

* {
    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 區塊 */
.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. 商品與合作夥伴特定樣式區塊 (共用電腦版)
   ========================================= */
.product-section,
.partners-section {
    background-color: var(--primary-blue); 
    padding: 60px 0 100px 0;
    min-height: 75vh;
}

.partners-section {
    text-align: center;
}

.product-menu-toggle, .sidebar-close, .sidebar-overlay {
    display: none;
}

.product-layout-container {
    display: flex;
    gap: 50px;
    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 40px;
}

.product-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.product-main-content {
    flex-grow: 1;
}

/* 幾何梯形選單列表 */
.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);          
}

/* 商品分類切換顯示面板 */
.product-panel {
    display: none; 
    width: 100%;
    padding-bottom: 60px;
}

.product-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); }
}

.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;
}

/* 獨立圖文外包裝卡片與 hover 動效 */
.product-card-wrapper {
    display: flex;
    flex-direction: column;         
    gap: 12px;                      
    width: 100%;
}

.large-card {
    height: 100%;                   
}

.product-img-box {
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.02);
}

.large-card .product-img-box {
    flex-grow: 1;                   
}

.product-img-box img {
    width: 100%;
    display: block;
    object-fit: cover;              
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.large-card .product-img-box img {
    height: 100%;                   
}

.product-card-text {
    color: rgba(255, 255, 255, 0.85); 
    font-size: 18px;
    font-weight: 500;
    text-align: center;             
    letter-spacing: 0.5px;
    margin: 0;
    padding: 2px 0;
}

.product-card-wrapper:hover .product-img-box img {
    transform: scale(1.04);
}

/* 「全部商品」分頁網格樣式 (4欄) */
.all-products-matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    width: 100%;
}

.all-products-matrix-grid .product-img-box img {
    height: 200px; 
    object-fit: cover;
}

/* 電子書「1左2右」不對稱網格排版 */
.ebook-display-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px;                      
    width: 100%;
}

.ebook-right-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;                      
}

.ebook-right-stack .product-img-box img {
    height: 240px;                  
}

/* 汽車件分頁網格樣式 (2欄) */
.car-display-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px;                      
    width: 100%;
}

.car-display-grid .product-img-box img {
    height: 260px;
    object-fit: cover;
}

/* 筆電分頁網格樣式 (3欄) */
.laptop-display-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;                            
    width: 100%;
}

.laptop-display-grid .product-img-box img {
    height: 210px;
    object-fit: cover;
}

/* 醫療分頁複合網格系統 */
.medical-container {
    display: flex;
    flex-direction: column;
    gap: 60px; 
    width: 100%;
}

.medical-layout-7 {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr; 
    gap: 30px;
    width: 100%;
}

.medical-col-side.flex-col {
    display: flex;
    flex-direction: column;
    gap: 30px; 
}

.medical-col-side.flex-col-4 {
    display: flex;
    flex-direction: column;
    gap: 30px; 
}

.medical-col-side.flex-col .product-img-box img {
    height: 285px; 
    object-fit: cover;
}

.medical-col-main .product-img-box,
.medical-col-main .product-img-box img {
    height: 600px; 
    object-fit: cover;
}

.medical-col-side.flex-col-4 .product-img-box img {
    height: 127.5px; 
    object-fit: cover;
}

.medical-layout-5 {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 30px;
    width: 100%;
}

.medical-layout-5 .grid-span-2 { grid-column: span 2; }
.medical-layout-5 .bottom-row-1 { grid-column: 2 / span 2; }
.medical-layout-5 .bottom-row-2 { grid-column: 4 / span 2; }
.medical-layout-5 .product-img-box img { height: 240px; object-fit: cover; }

/* 合作夥伴特定：分區排版與白色立體卡片 */
.page-title { display: none; } /* 隱藏舊版文字標題 */

.section-subtitle {
    color: #ffffff;
    font-size: 36px;
    margin: 20px 0;
    letter-spacing: 1.5px;
    font-weight: bold;
}

.partners-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 30px; 
}

.partner-row-card {
    display: flex;
    justify-content: center; 
    align-items: center;     
    flex-wrap: wrap;         
    gap: 60px;               
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px 20px;      
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-row-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.partner-slot {
    display: flex;
    justify-content: center; 
    align-items: center;
    max-width: 250px;
}

.partner-slot img {
    max-width: 100%;
    height: auto; 
    object-fit: contain; 
}

/* =========================================
   3. 全螢幕大圖放大原圖燈箱 (Lightbox)
   ========================================= */
.image-lightbox {
    display: none; 
    position: fixed;
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92); 
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox.show { display: flex; opacity: 1; }

.lightbox-content {
    display: block;
    max-width: 90%; 
    max-height: 85vh; 
    width: auto;
    height: auto;
    object-fit: contain; 
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.93);
    transition: transform 0.3s ease;
}

.image-lightbox.show .lightbox-content { transform: scale(1); }

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #ffffff;
    font-size: 55px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.lightbox-close:hover { color: var(--accent-red); transform: scale(1.1); }

.lightbox-caption {
    position: absolute;
    bottom: 3vh;
    left: 0;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    letter-spacing: 1px;
}

/* =========================================
   4. 頁尾區塊 (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;                  /* 滑鼠懸停時微調顏色 */
}

/* =========================================
   5. 專屬英文版特定微調 (html[lang="en"] 電腦版)
   ========================================= */
html[lang="en"] .logo-text {
    font-size: 36px;
    line-height: 1.2;
    margin-top: 4px;
}

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; }
    
    /* 商品結構與合作夥伴平板端響應 */
    .partners-section { padding: 40px 0; }
    .partners-container { padding: 0 20px; }
    .all-products-matrix-grid { grid-template-columns: repeat(2, 1fr); }

    /* 專屬英文版平板端微調 */
    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; }
    .product-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; }

    /* 頂部 Header 與縮小版 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; /* (選用) 讓當前語言的字體稍微加粗，視覺更清晰 */
    }

    /* 手機版商品分類側邊欄：轉換為手機版抽屜滑出式選單，調高層級防遮擋 */
    .product-layout-container { flex-direction: column; padding: 0 20px; gap: 0; }

    .product-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;
    }
    .product-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; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .sidebar-overlay.active { display: block; opacity: 1; visibility: visible; }

    .product-sidebar {
        position: fixed; top: 0; left: 0; width: 290px; 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);
    }
    .product-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:hover, .category-item.active { transform: scale(1.02); }
    
    /* 所有商品網格手機版降為：單欄垂直平鋪排版 */
    .all-products-matrix-grid { grid-template-columns: 1fr; gap: 25px; }
    .all-products-matrix-grid .product-img-box img { height: 240px; }

    .ebook-display-grid { grid-template-columns: 1fr; gap: 35px; }
    .large-card .product-img-box img, .ebook-right-stack .product-img-box img { height: 260px; }

    .car-display-grid { grid-template-columns: 1fr; gap: 25px; }
    .car-display-grid .product-img-box img { height: 240px; }

    .laptop-display-grid { grid-template-columns: 1fr; gap: 25px; }
    .laptop-display-grid .product-img-box img { height: 230px; }

    .medical-layout-7 { grid-template-columns: 1fr; gap: 25px; }
    .medical-col-side.flex-col, .medical-col-side.flex-col-4 { gap: 25px; }
    .medical-col-side.flex-col .product-img-box img, .medical-col-main .product-img-box, .medical-col-main .product-img-box img, .medical-col-side.flex-col-4 .product-img-box img { height: 250px; }

    .medical-layout-5 { grid-template-columns: 1fr; gap: 25px; }
    .medical-layout-5 .grid-span-2, .medical-layout-5 .bottom-row-1, .medical-layout-5 .bottom-row-2 { grid-column: span 1 !important; }
    .medical-layout-5 .product-img-box img { height: 230px; }

    /* 合作夥伴卡片手機端改為單欄直排 */
    .partners-section { padding: 20px 0; }
    .partners-container { gap: 20px; }
    .section-subtitle { font-size: 24px; }
    .partner-slot img { max-width: 80%; }
    
    .partner-row-card { grid-template-columns: 1fr; padding: 30px 20px; gap: 30px; }

    /* 全螢幕大圖放大燈箱手機版優化 */
    .lightbox-content { max-width: 95%; max-height: 78vh; }
    .lightbox-close { top: 15px; right: 20px; font-size: 42px; }

    /* 頁尾手機版對齊調整與垂直堆疊 */
    .contact-header { justify-content: center; }
    .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; }
}