/* modern-style-en.css - 有勁基因網站樣式 (英文版手機修正) */

/* --- 變數定義 --- */
:root {
    --primary-color: #004080;
    --primary-color-darker: #002d5a;
    --primary-color-lighter: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --text-color: #343a40;
    --text-color-secondary: #5a6268;
    --heading-color: var(--primary-color);
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --alt-bg: #eef5fc;
    --dark-bg: #2c3e50;
    --darker-bg: #212121;
    --border-color: #dee2e6;
    --font-sans: 'Noto Sans', sans-serif, Arial, Helvetica;
}

/* --- 通用樣式 --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* 防止水平滾動 */
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    color: var(--heading-color); 
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 500;
}

h2 {
    font-size: 1.8rem; 
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color-lighter);
    border-radius: 2px;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color-lighter);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-color-darker);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

.section {
    padding: 80px 0;
}

.section.alt {
    background-color: var(--alt-bg);
}

.section-description {
    font-size: 1.15rem;
    color: var(--text-color-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

/* --- Header --- */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 1; 
    min-width: 0; 
    margin-right: 15px;
    max-width: calc(100% - 70px);
}

.logo-img {
    height: 65px;
    width: auto;
    margin-right: 15px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo-img:hover {
    transform: scale(1.05);
}

.company-names {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.company-name-zh {
    font-family: var(--font-sans); 
    font-size: 1.5rem; 
    font-weight: 500;
    color: var(--primary-color); 
    white-space: nowrap;
    letter-spacing: 0;
    /* 移除溢出省略號樣式，讓文字完整顯示 */
}

.company-name-en {
    font-family: var(--font-sans); 
    font-size: 1.0rem; 
    font-weight: 500;
    opacity: 0.8;
    color: var(--text-color-secondary); 
    white-space: nowrap;
    letter-spacing: 0;
    /* 移除溢出省略號樣式，讓文字完整顯示 */
    display: none; /* 預設隱藏簡稱 */
}

/* --- 導航列與語言切換的容器 --- */
.nav-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* 在語言切換前加入垂直分隔線 */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.language-switcher::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 20px;
    background-color: var(--border-color);
    margin: 0 15px; /* 左右間距 */
    align-self: center; /* 確保垂直居中 */
}

/* --- 導航列 --- */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    position: relative;
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.main-nav ul li a:hover {
    color: var(--primary-color-darker);
}

.language-switcher .lang-link {
    color: var(--secondary-color); /* 改為灰色 */
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-left: 10px;
}

.language-switcher .lang-link:hover {
    background-color: var(--light-bg);
    color: var(--primary-color); /* hover 時變為主色 */
}

/* 導航子選單 */
.submenu {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    white-space: nowrap;
    padding: 10px 0;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.main-nav ul li:hover .submenu {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.submenu li {
    margin: 0;
}

.submenu li a {
    padding: 10px 25px;
    color: var(--text-color);
    border-bottom: none;
}

.submenu li a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color-lighter);
}

/* 手機版導航按鈕 */
.mobile-nav-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
    margin-left: 20px;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
}

/* 疊加層 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* --- Hero 區塊 --- */
.hero {
    position: relative;
    overflow: hidden;
}

.hero .carousel-item {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
    text-align: center;
    color: #fff;
}

.hero-text h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.hero-text p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    color: #f0f0f0;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hero .carousel-control-prev {
    left: 0;
}

.hero .carousel-control-next {
    right: 0;
}

.hero .carousel-control-prev-icon,
.hero .carousel-control-next-icon {
    background-color: var(--primary-color-lighter);
    border-radius: 50%;
    padding: 20px;
    opacity: 0.9;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    background-size: 50%;
}

.hero .carousel-control-prev-icon:hover,
.hero .carousel-control-next-icon:hover {
    opacity: 1;
    background-color: var(--primary-color);
}

/* 關於我們區塊 */
#about {
    padding: 80px 0;
    background-color: var(--light-bg);
}

#about h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--heading-color);
}

#about .img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

#about .lead {
    font-size: 1.1rem;
    color: var(--text-color-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

#about p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
}

#about .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

#about .btn-primary:hover {
    background-color: var(--primary-color-darker);
    border-color: var(--primary-color-darker);
}

/* 服務項目區塊 */
#services {
    background-color: var(--white);
    padding: 80px 0;
}

#services h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    color: var(--heading-color);
}

#services h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color-lighter);
    border-radius: 2px;
}

.service-card {
    background-color: var(--light-bg);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3.2rem;
    color: var(--primary-color-lighter);
}

.service-card h3 {
    font-size: 1.45rem;
    color: var(--primary-color);
    font-weight: 600;
}

.service-card p {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--text-color-secondary);
}

.service-card .btn {
    align-self: flex-start;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 5px;
    background-color: transparent;
    color: var(--primary-color-lighter);
    border: 2px solid var(--primary-color-lighter);
    transition: all 0.3s ease;
}

.service-card .btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* 服務區塊全寬樣式 */
.service-feature-block {
    display: flex;
    align-items: center;
    padding: 50px;
    margin-bottom: 60px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.service-feature-block.reverse {
    flex-direction: row-reverse;
}

.service-feature-block .service-image {
    flex: 1;
    padding: 0 30px;
}

.service-feature-block .service-content {
    flex: 1;
    padding: 0 30px;
}

.service-feature-block h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-feature-block h4 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.service-feature-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color-secondary);
    margin-bottom: 25px;
}

.service-feature-block .btn {
    padding: 12px 30px;
    font-size: 1rem;
}

/* 關於我們的特色區塊 */
.about-features.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-features .feature-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-features .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-features .feature-item i {
    font-size: 3rem;
    color: var(--primary-color-lighter);
    margin-bottom: 20px;
}

.about-features .feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.about-features .feature-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- 聯絡我們區塊 --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1000px;
    margin: 50px auto 0;
    text-align: left;
}

.contact-image-col img {
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-block {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
    text-align: center;
}

.contact-info-block h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-block h3 i {
    font-size: 2rem;
    color: var(--primary-color-lighter);
    margin-right: 15px;
}

.contact-info-block p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
}

.contact-info-block p i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-right: 10px;
    flex-shrink: 0;
}

.contact-info-block .contact-email {
    color: var(--primary-color-lighter);
    font-weight: bold;
    word-break: break-all;
}

.contact-info-block .contact-note {
    font-size: 0.95rem;
    color: var(--text-color-secondary);
    margin-top: 20px;
    font-style: italic;
}

/* 聯絡我們區塊左右對調樣式 */
.contact-grid.contact-grid-swapped .contact-image-col {
    order: 2;
}

.contact-grid.contact-grid-swapped .contact-info-col {
    order: 1;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 30px;
    font-size: 0.95rem;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color-lighter);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-col p i {
    margin-right: 8px;
    color: var(--primary-color-lighter);
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #fff;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    color: #fff;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color-lighter);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    gap: 10px;
}

.footer-bottom p {
    margin-bottom: 0;
}

/* --- 響應式設計 (RWD) --- */

/* 中型螢幕調整 (1100px 以下) - 防止重疊 */
@media (max-width: 1100px) {
    .logo-img {
        height: 58px;
    }
    
    .company-name-zh {
        font-size: 1.3rem;
    }
    
    .company-name-en {
        font-size: 0.9rem;
    }
    
    .main-nav ul li {
        margin-left: 20px; /* 縮小導航間距 */
    }
    
    .main-nav ul li a {
        font-size: 0.95rem; /* 縮小導航文字 */
    }
    
    .language-switcher::before {
        margin: 0 10px; /* 縮小分隔線間距 */
    }
    
    .language-switcher .lang-link {
        padding: 6px 8px;
        font-size: 0.95rem;
        margin-left: 5px;
    }
}

/* 平板尺寸 (992px 以下) */
@media (max-width: 992px) {
    .section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    /* Header & 導航調整 */
    .header {
        padding: 12px 0;
    }
    
    .header .container {
        padding: 0 15px;
    }
    
    .logo-img {
        height: 55px;
        margin-right: 12px;
    }
    
    .company-name-zh {
        font-size: 1.3rem;
    }
    
    .company-name-en {
        font-size: 0.85rem;
    }

    /* 手機版導航 */
    .mobile-nav-toggle {
        display: block !important;
    }
    
    .nav-wrapper {
        justify-content: flex-end;
        width: auto;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100%;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

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

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li {
        margin: 0 0 15px 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        font-size: 1.1rem;
        padding: 12px 0;
        border-bottom: none;
    }
    
    .main-nav ul li a:hover {
        background-color: var(--light-bg);
    }
    
    /* 語言切換 (手機版) */
    .language-switcher {
        display: flex !important;
        justify-content: center;
        width: 100%;
        padding: 20px 0 10px 0;
        border-top: 1px solid var(--border-color);
        margin-top: 20px;
    }
    
    /* 手機版移除垂直分隔線 */
    .language-switcher::before {
        display: none;
    }
    
    .language-switcher .lang-link {
        font-size: 1.1rem;
        display: inline-block;
        padding: 10px 15px;
        margin: 0 5px;
    }

    /* 子選單樣式 */
    .main-nav ul li:has(.submenu) > a .fa-chevron-down {
        transition: transform 0.3s ease;
    }

    .main-nav ul li.active-parent > a .fa-chevron-down {
        transform: rotate(180deg);
    }

    .submenu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 0 20px;
        opacity: 1;
        transform: none;
        white-space: normal;
        display: block;
        background-color: #f8f8f8;
        border-top: 1px solid var(--border-color);
        padding-top: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    }

    .submenu.active-mobile-submenu {
        max-height: 500px;
        padding-bottom: 15px;
    }

    /* Hero 區塊調整 */
    .hero .carousel-item {
        min-height: 450px;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero .carousel-control-prev,
    .hero .carousel-control-next {
        width: 10%;
    }
    
    .hero .carousel-control-prev-icon,
    .hero .carousel-control-next-icon {
        padding: 15px;
    }

    /* 關於我們區塊調整 */
    #about .row > div {
        margin-bottom: 30px;
    }
    
    .about-features.grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-features .feature-item {
        margin-bottom: 0;
    }

    /* 服務項目區塊調整 */
    .service-feature-block {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        margin-bottom: 50px;
    }

    .service-feature-block .service-image,
    .service-feature-block .service-content {
        flex: none;
        max-width: 100%;
        width: 100%;
        padding: 0;
    }

    .service-feature-block .service-image {
        margin-bottom: 30px;
    }

    .service-feature-block.reverse {
        flex-direction: column;
    }

    .service-feature-block h3 {
        font-size: 2rem;
    }
    
    .service-feature-block h4 {
        font-size: 1.2rem;
    }
    
    .service-feature-block p {
        font-size: 1rem;
    }

    /* 聯絡我們區塊調整 */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }
    
    .contact-image-col {
        order: 1;
    }
    
    .contact-info-col {
        order: 2;
    }
    
    .contact-info-block {
        padding: 25px;
    }
    
    .contact-info-block h3 {
        font-size: 1.6rem;
    }
    
    .contact-info-block h3 i {
        font-size: 1.8rem;
    }
    
    .contact-info-block p {
        font-size: 1rem;
    }
    
    /* 左右對調在小螢幕時取消 */
    .contact-grid.contact-grid-swapped .contact-image-col {
        order: unset;
    }
    
    .contact-grid.contact-grid-swapped .contact-info-col {
        order: unset;
    }

    /* Footer 調整 */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        text-align: center;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        margin-top: 15px;
    }
    
    .social-icons a {
        font-size: 1.3rem;
        margin: 0 10px;
    }
}

/* 手機尺寸 (768px 以下) */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-description {
        margin-bottom: 30px;
    }

    /* Hero 調整 */
    .hero .carousel-item {
        min-height: 400px;
    }
    
    .hero-text h1 {
        font-size: 2.4rem;
        white-space: normal; /* 允許標題換行 */
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* 服務項目調整 */
    .service-feature-block {
        padding: 25px;
        margin-bottom: 40px;
    }
    
    .service-feature-block h3 {
        font-size: 1.8rem;
    }
    
    .service-feature-block h4 {
        font-size: 1.1rem;
    }
    
    .service-feature-block p {
        font-size: 0.95rem;
    }
    
    .service-feature-block .btn {
        padding: 10px 25px;
        font-size: 1rem;
    }

    /* 聯絡我們調整 */
    .contact-grid {
        gap: 30px;
    }
    
    .contact-info-block {
        padding: 20px;
    }
    
    .contact-info-block h3 {
        font-size: 1.4rem;
    }
    
    .contact-info-block h3 i {
        font-size: 1.5rem;
    }
    
    .contact-info-block p {
        font-size: 0.95rem;
    }

    /* Footer 調整 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-col h3 {
        font-size: 1.2rem;
    }
    
    .footer-col p, 
    .footer-col ul li a {
        font-size: 0.9rem;
    }
    
    .social-icons {
        margin-top: 15px;
    }
    
    .social-icons a {
        font-size: 1.3rem;
        margin: 0 10px;
    }
    
    /* 確保按鈕不會太小 */
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    /* 表格響應式 */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* 小手機尺寸 (576px 以下) */
@media (max-width: 576px) {
    .section {
        padding: 40px 0;
    }
    
    .section-description {
        margin-bottom: 20px;
        font-size: 0.95rem;
    }
    
    .container {
        padding: 0 10px;
    }

    /* Header & 導航調整 */
    .header {
        padding: 10px 0;
    }
    
    .header .container {
        padding: 0 10px;
    }
 
    .logo-link {
    max-width: calc(100% - 80px); /* 給漢堡按鈕更多空間 */
}

    .logo-img {
        height: 45px;
        margin-right: 8px;
    }
    
    /* 英文版：縮小字體但保留全名 */
    .company-name-zh {
        font-size: 0.9rem; /* 縮小中文名稱 */
        line-height: 1.1;
    }
    
    .company-name-en {
        display: block; /* 顯示英文全名 */
        font-size: 0.7rem; /* 縮小英文全名 */
        opacity: 1;
        line-height: 1.1;
    }
    
    .mobile-nav-toggle {
        font-size: 1.5rem;
        margin-left: 15px;
    }

    /* 手機版導航選單 */
    .main-nav {
        width: 90%;
        max-width: 280px;
        padding: 70px 15px 15px;
    }
    
    .main-nav ul li a {
        font-size: 1rem;
        padding: 10px 0;
    }
    
    .language-switcher .lang-link {
        font-size: 1rem;
        padding: 8px 12px;
    }

    /* Hero 調整 */
    .hero .carousel-item {
        min-height: 350px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .hero .carousel-control-prev,
    .hero .carousel-control-next {
        width: 12%;
    }
    
    .hero .carousel-control-prev-icon,
    .hero .carousel-control-next-icon {
        padding: 12px;
        background-size: 40%;
    }

    /* 標題調整 */
    h2 {
        font-size: 1.4rem;
    }

    /* 服務項目調整 */
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 2.8rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .service-feature-block {
        padding: 20px 15px;
    }
    
    .service-feature-block h3 {
        font-size: 1.6rem;
    }
    
    .service-feature-block h4 {
        font-size: 1rem;
    }
    
    .service-feature-block p {
        font-size: 0.9rem;
    }

    /* 聯絡我們調整 */
    .contact-info-block {
        padding: 20px 15px;
    }
    
    .contact-info-block h3 {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-info-block h3 i {
        font-size: 1.5rem;
        margin-right: 0;
    }
    
    .contact-info-block p {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    /* Footer 調整 */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-col h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-col p, 
    .footer-col ul li a {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        font-size: 0.85rem;
    }
    
    .social-icons a {
        font-size: 1.2rem;
        margin: 0 8px;
    }
}

/* 超小手機尺寸 (420px 以下) */
@media (max-width: 420px) {
    .logo-img {
        height: 38px;
        margin-right: 6px;
    }
    
    .company-name-zh {
        font-size: 0.85rem; /* 更小的中文名稱 */
    }
    
    .company-name-en {
        font-size: 0.6rem; /* 更小的英文全名 */
    }
    
    .hero .carousel-item {
        min-height: 300px;
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .hero-text p {
        font-size: 0.85rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .section {
        padding: 30px 0;
    }
}

/* 防止內容溢出的全局設定 */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

