/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 50%, #dde4eb 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

/* 添加背景圖案美化 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(200, 210, 220, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(180, 195, 210, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(190, 200, 215, 0.25) 0%, transparent 50%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    z-index: -1;
    pointer-events: none;
}

/* 添加微妙的網格圖案 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(200, 210, 220, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 210, 220, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.contact-page-grid {
    background-image: linear-gradient(0deg, transparent 24%, rgba(0, 0, 0, .1) 25%, rgba(0, 0, 0, .1) 26%, transparent 27%, transparent 74%, rgba(0, 0, 0, .1) 75%, rgba(0, 0, 0, .1) 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, rgba(0, 0, 0, .1) 25%, rgba(0, 0, 0, .1) 26%, transparent 27%, transparent 74%, rgba(0, 0, 0, .1) 75%, rgba(0, 0, 0, .1) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
}

.enter-page {
    background-image: url('./images/data_flow_bg.svg');
    /* Data flow image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.enter-page .background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    /* Semi-transparent white overlay */
    z-index: -1;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.95) 0%, rgba(232, 236, 241, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #2c3e50;
    padding: 10px 0 25px 0;
    border-bottom: 1px solid rgba(200, 210, 220, 0.4);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1), -webkit-backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 桌面版：滾動時 header 縮小 */
@media screen and (min-width: 769px) {
    header.scrolled {
        padding: 6px 0 15px 0 !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
        background: linear-gradient(135deg, rgba(245, 247, 250, 0.98) 0%, rgba(232, 236, 241, 0.95) 100%) !important;
    }

    header.scrolled .logo img {
        height: 35px !important;
    }

    header.scrolled .container {
        padding: 2px 0 0 0 !important;
    }

    header.scrolled .logo {
        padding-left: 10px !important;
        padding-top: 1px !important;
    }

    header.scrolled .menu a,
    header.scrolled .dropdown-toggle {
        font-size: 1.05em !important;
        padding: 5px 12px !important;
    }

    header.scrolled nav ul li a {
        font-size: 1.05em !important;
    }

    header.scrolled .dropdown .dropdown-toggle {
        font-size: 1.05em !important;
    }
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 6px 0 0 0;
    color: #FFF;
    position: relative;
    max-width: 100%;
    width: 100%;
    height: 100%;
    transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 桌面版：調整 header container 的 padding，讓 LOGO 更靠左上 */
@media screen and (min-width: 769px) {
    header .container {
        padding: 3px 0 0 0 !important;
    }

    /* 首頁：導覽列置中並往下移 */
    body:not(.about-page):not(.news-page):not(.server-page):not(.contact-page):not(.enter-page) header .container {
        align-items: center !important;
        padding-top: 8px !important;
        padding-bottom: 5px !important;
    }
}

.logo {
    flex-shrink: 0;
    margin-right: auto;
    /* Push logo to the far left */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding-left: 40px;
    transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 確保桌面版選單正常顯示 */
@media screen and (min-width: 769px) {

    /* 桌面版：LOGO 往左上方貼齊 */
    .logo {
        padding-left: 10px !important;
        padding-top: 5px !important;
        margin-left: 0 !important;
    }

    /* 桌面版：隱藏漢堡選單按鈕 */
    .menu-toggle {
        display: none !important;
    }

    /* 桌面版：確保選單正常顯示 */
    #main-menu.menu {
        display: flex !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background-color: transparent !important;
        flex-direction: row !important;
        padding: 0 40px 0 0 !important;
        gap: 8px !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    #main-menu.menu li {
        width: auto !important;
        border-bottom: none !important;
    }

    #main-menu.menu a {
        display: inline-flex !important;
        width: auto !important;
        padding: 8px 16px !important;
        text-align: center !important;
        border-radius: 8px !important;
        font-size: 1.3em !important;
        color: #2c3e50 !important;
        font-weight: 600 !important;
        transition: font-size 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease !important;
    }

    #main-menu.menu a:hover {
        background: linear-gradient(135deg, rgba(200, 210, 220, 0.2) 0%, rgba(180, 195, 210, 0.15) 100%) !important;
        color: #1a252f !important;
    }

    #main-menu.menu .dropdown-toggle {
        font-size: 1.3em !important;
        color: #2c3e50 !important;
        font-weight: 600 !important;
        transition: font-size 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease !important;
    }

    #main-menu.menu .dropdown-toggle:hover {
        background: linear-gradient(135deg, rgba(200, 210, 220, 0.2) 0%, rgba(180, 195, 210, 0.15) 100%) !important;
        color: #1a252f !important;
    }

    /* 桌面版：Enter 頁面 LET.png 向下移動，防止被 header 蓋住 */
    body.enter-page .center {
        margin-top: 120px !important;
        max-width: 35% !important;
        /* 調整圖片大小 */
    }

    /* 桌面版：Enter 頁面 main 向下移動 */
    body.enter-page main {
        margin-top: 0 !important;
    }
}

.logo img {
    height: 38px;
    object-fit: contain;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1), width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 桌面版：LOGO 大小 */
@media screen and (min-width: 769px) {
    .logo img {
        height: 42px !important;
        width: auto;
    }
}

nav {
    flex-grow: 1;
    /* Allow nav to grow and take available space */
    text-align: center;
    /* Center the navigation items */
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    /* Center the nav items within the nav container */
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, font-size 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.15em;
}

nav ul li a:hover {
    color: #1a252f;
    background: linear-gradient(135deg, rgba(200, 210, 220, 0.2) 0%, rgba(180, 195, 210, 0.15) 100%);
    border-radius: 6px;
    padding: 4px 8px;
}

/* Dropdown (desktop) */
.dropdown {
    position: relative;
}

.dropdown .dropdown-toggle {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, background 0.3s ease, font-size 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.15em;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
}

.dropdown .dropdown-toggle::after {
    content: '\25BE';
    /* down triangle */
    margin-left: 6px;
    font-size: 0.8em;
}

.dropdown .dropdown-toggle:hover {
    color: #1a252f;
    background: linear-gradient(135deg, rgba(200, 210, 220, 0.2) 0%, rgba(180, 195, 210, 0.15) 100%);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.98) 0%, rgba(232, 236, 241, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px 0;
    margin-top: 10px;
    z-index: 1000;
    border: 1px solid rgba(200, 210, 220, 0.3);
}

/* 增加偽元素填補按鈕與選單之間的空隙，防止滑鼠移動時選單消失 */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -30px;
    /* 加大向上延伸範圍 */
    left: 0;
    width: 100%;
    height: 35px;
    /* 加大高度以確保覆蓋空隙 */
    background: transparent;
    z-index: 1;
    /* 確保在最上層 */
    pointer-events: auto;
    /* 確保能捕捉滑鼠事件 */
}

/* 桌面版：下拉選單在按鈕正下方顯示，防止超出版面 */
@media screen and (min-width: 769px) {
    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        left: 50%;
        transform: translateX(-50%);
        /* 居中對齊 */
        min-width: auto;
        /* 根據內容自動調整 */
        width: auto;
        /* 根據內容自動調整 */
        white-space: nowrap;
        /* 防止文字換行 */
        box-sizing: border-box;
    }

    .dropdown-menu a {
        margin: 2px 0;
        /* 移除左右邊距 */
        padding: 10px 20px;
        text-align: center;
        /* 文字置中 */
    }

    /* 如果下拉選單會超出右側，則右對齊 */
    .dropdown:last-child .dropdown-menu {
        left: auto;
        right: 0;
        transform: none;
        /* 取消居中變換 */
    }
}

.dropdown:hover .dropdown-menu,
.dropdown.always-open .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0 !important;
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 6px;
    margin: 2px 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    /* 文字置中 */
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(200, 210, 220, 0.3) 0%, rgba(180, 195, 210, 0.25) 100%);
    color: #1a252f;
}

.header-contact {
    display: flex;
    align-items: center;
    margin-left: auto;
    /* Push contact to the far right */
}

.header-contact a {
    margin-left: 15px;
    font-size: 1.1em;
    /* Increased font size */
}

.header-contact img {
    height: 24px;
    width: 24px;
}


/* Equipment Monitoring Split Dropdown Styles */
.equipment-dropdown .split-dropdown-menu {
    min-width: 400px;
    /* Wider dropdown for split content */
    padding: 15px;
}

@media screen and (min-width: 769px) {
    .dropdown-header-text {
        color: #2b98e0;
        font-weight: 700;
        font-size: 1.1em;
        text-align: center;
        margin-bottom: 10px;
        padding-bottom: 5px;
        border-bottom: 1px solid rgba(200, 210, 220, 0.3);
        display: block;
        width: 100%;
        list-style: none;
        /* Ensure no bullet */
    }

    .dropdown-row {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        padding: 0;
        margin: 0;
    }

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

    .dropdown-col a {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 15px 10px;
        background: rgba(255, 255, 255, 0.5);
        border: 1px solid rgba(200, 210, 220, 0.2);
        transition: all 0.3s ease;
        white-space: normal;
        /* Allow text to wrap if needed */
    }

    .dropdown-col a:hover {
        background: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-color: #2b98e0;
    }
}

/* Mobile adjustments for split dropdown */
@media screen and (max-width: 768px) {
    .equipment-dropdown .split-dropdown-menu {
        min-width: auto;
    }

    .dropdown-header-text {
        font-weight: 700;
        color: #2b98e0;
        padding: 10px 20px;
        background-color: rgba(43, 152, 224, 0.1);
    }

    .dropdown-row {
        display: block;
    }

    .dropdown-col {
        display: block;
    }
}


/* Monitor Entry Page Styles */
body.entry-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.entry-page main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.entry-section {
    padding: 120px 20px 60px;
    /* Adjust top padding for fixed header */
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.entry-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.entry-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #3498db;
    margin: 15px auto 0;
    border-radius: 2px;
}

.entry-cards-container {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.entry-card {
    flex: 1;
    min-width: 550px;
    max-width: 1000px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.entry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(52, 152, 219, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.entry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
}

.entry-card:hover::before {
    opacity: 1;
}

.card-content {
    text-align: center;
    padding: 40px;
    z-index: 1;
}

.card-image {
    width: 300px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.entry-card:hover .card-image {
    transform: scale(1.1);
}

.entry-card h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.entry-card p {
    font-size: 1.3rem;
    color: #7f8c8d;
    line-height: 1.6;
}

.card-left {
    border-top: 5px solid transparent;
    transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-left:hover {
    border-top-color: #3498db;
}

.card-right {
    border-top: 5px solid transparent;
    transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-right:hover {
    border-top-color: #2ecc71;
}

@media screen and (max-width: 768px) {
    .entry-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .entry-card {
        width: 90%;
        /* 調整寬度為 90%，讓卡片更大 */
        min-width: auto;
        max-width: 550px;
        /* 稍微放寬最大寬度 */
        height: auto;
        min-height: auto;
        /* 取消最小高度限制 */
        margin-bottom: 35px;
        /* 增加上下間距 */
    }

    .card-image {
        width: 200px;
        margin-bottom: 15px;
        /* 稍微恢復圖片下方間距 */
    }

    .card-content {
        padding: 35px;
        /* 增加內部間距，讓卡片看起來更大 */
    }

    .entry-card h2 {
        font-size: 1.5rem;
        margin-bottom: 5px;
        /* 減少標題下方間距 */
    }

    .entry-card p {
        font-size: 1rem;
        line-height: 1.4;
        /*稍微減少行高*/
    }
}

/* General Styles */
main {
    margin-top: 0;
    min-height: calc(100vh - 160px);
    padding-bottom: 20px;
    /* Footer 不再固定，減少 padding-bottom */
    max-width: 100vw;
    overflow-x: hidden;
}

/* Home Section with Background */
#home {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    height: 100vh;
    margin-top: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 背景輪播容器 */
.background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 輪播圖單張 */
.background-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* 當前活動的輪播圖 */
.background-slider .slide.active {
    opacity: 1;
}

/* 淡化背景圖的遮罩層 */
#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* About Hero Section - 與 index 輪播圖一樣的樣式 */
#about-hero {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    height: 100vh;
    margin-top: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* About 背景圖容器 */
.about-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* About 背景遮罩層 */
#about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.welcome-section {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 20px;
}

.welcome-section h1 {
    font-size: clamp(15.4rem, 38.5vw, 30.8rem);
    margin-bottom: 20px;
    color: #ffffff !important;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    line-height: 1.2;
}

.welcome-section p {
    font-size: clamp(1rem, 3.5vw, 1.8rem);
    color: #ffffff !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section {
    padding: clamp(24px, 6vw, 60px) 20px;
    max-width: 1400px;
    /* Re-added max-width to center content */
    margin: 0 auto;
    scroll-margin-top: 120px;
    /* 防止錨點被固定導覽遮住 */
}

.section h1,
.section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

.section h1 {
    font-size: 2.5rem;
}

.section h2 {
    font-size: 2rem;
}

/* Auth Pages (登入 / 註冊) */
body.auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.auth-page main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 16px 60px;
}

body.auth-page .section {
    max-width: 480px;
    width: 100%;
}

.auth-page-inner {
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-header h1 {
    margin-bottom: 8px;
}

.auth-header p {
    color: #555;
    font-size: 0.95rem;
}

.auth-form {
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-form label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccd4dd;
    font-size: 0.95rem;
    outline: none;
    background-color: #f9fbfd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="tel"]:focus,
.auth-form input[type="password"]:focus {
    border-color: #3498db;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.15);
}

.auth-form small {
    font-size: 0.8rem;
}

.form-actions {
    margin-top: 8px;
    text-align: center;
}

.auth-form .btn-primary {
    width: 100%;
    padding: 10px 0;
}

.auth-switch {
    margin-top: 12px;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
}

.auth-switch a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* About Section */
#about {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* margin: 20px auto; */
}

/* Organization Chart Section - 組織結構美化 */
#organization {
    margin-top: 50px;
    margin-bottom: 50px;
}

.organization-chart-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: clamp(30px, 5vw, 50px);
    max-width: 1400px;
    margin: 0 auto;
}

.organization-chart-section h3 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 700;
}

.organization-chart-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.organization-chart-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* 電腦版：組織圖尺寸縮小 */
@media screen and (min-width: 769px) {
    .organization-chart-image {
        max-width: 70% !important;
    }

    .organization-chart-container {
        padding: 30px;
    }
}

/* 部門說明樣式 */
.department-description {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.department-description h4 {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
}

.department-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.department-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: clamp(20px, 3vw, 25px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.department-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.department-item h5 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #2b98e0;
    margin-bottom: 12px;
    font-weight: 600;
}

.department-item p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* 部門說明響應式設計 */
@media screen and (max-width: 768px) {
    .department-description {
        margin-top: 40px;
        padding-top: 30px;
    }

    .department-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .department-item {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .department-description {
        margin-top: 30px;
        padding-top: 25px;
    }

    .department-list {
        gap: 15px;
    }

    .department-item {
        padding: 15px;
    }
}

.contact-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 8px;
}

.contact-info p {
    margin: 10px 0;
}

/* News Section - 最新消息 */
#news {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 156px;
    position: relative;
    z-index: 2;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: clamp(24px, 6vw, 60px) 20px !important;
}

#news h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-size: 2rem;
}

.news-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.news-scroll-wrapper {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
    width: 100%;
    max-width: 100%;
}

.news-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.news-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 40px;
    padding: 10px 0;
    width: max-content !important;
}

.news-item {
    flex: 0 0 calc(25% - 30px);
    min-width: 280px;
    max-width: 320px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.news-date {
    color: #3498db;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ecf0f1;
}

.news-item h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
    flex-grow: 0;
}

.news-item p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.3s ease;
    margin-top: auto;
    display: inline-block;
}

.news-link:hover {
    color: #2980b9;
}

.news-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 10px 0;
    position: relative;
    z-index: 1;
}

.news-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.news-indicator:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
}

.news-indicator.active {
    background-color: #3498db;
    width: 14px;
    height: 14px;
    border-color: #2980b9;
}

/* 響應式設計 */
@media screen and (max-width: 1200px) {
    .news-item {
        flex: 0 0 calc(33.333% - 26.67px);
        min-width: 260px;
    }

    .news-scroll {
        gap: 35px;
    }

    /* 確保平板版也能滾動 */
    .news-scroll-wrapper {
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .news-scroll {
        width: max-content !important;
        flex-wrap: nowrap !important;
    }
}

/* 桌面版：確保可以滾動 */
@media screen and (min-width: 1201px) {
    .news-scroll-wrapper {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .news-scroll {
        width: max-content !important;
        flex-wrap: nowrap !important;
        display: flex !important;
    }

    .news-item {
        flex-shrink: 0;
        /* 確保項目不會縮小 */
    }
}

@media screen and (max-width: 768px) {
    #news {
        margin-top: 0 !important;
        padding: clamp(70px, 8vw, 90px) clamp(15px, 4vw, 20px) clamp(24px, 6vw, 60px) clamp(15px, 4vw, 20px) !important;
        margin-bottom: 40px !important;
        z-index: 999 !important;
        /* 確保在手機版不被其他元素蓋住 */
        box-sizing: border-box;
    }

    .news-container {
        z-index: 999 !important;
        /* 確保容器層級正確 */
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }

    .news-scroll-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .news-item {
        flex: 0 0 calc(50% - 15px);
        min-width: 0;
        max-width: calc(50% - 15px);
        width: calc(50% - 15px);
        box-sizing: border-box;
        z-index: 999 !important;
        /* 確保內容方框不被蓋住 */
        position: relative;
    }

    .news-scroll {
        gap: 20px;
        padding-left: 0;
        padding-right: 0;
        width: max-content !important;
        /* 確保內容可以超出容器寬度 */
        display: flex !important;
    }

    .news-indicators {
        z-index: 999 !important;
    }
}

@media screen and (max-width: 480px) {
    #news {
        margin-top: 0 !important;
        padding: clamp(70px, 10vw, 90px) 10px clamp(20px, 5vw, 40px) 10px !important;
        margin-bottom: 50px !important;
        z-index: 999 !important;
        /* 確保在手機版不被其他元素蓋住 */
        box-sizing: border-box;
    }

    .news-container {
        z-index: 999 !important;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }

    .news-scroll-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .news-scroll {
        gap: 15px;
        padding-left: 0;
        padding-right: 0;
        width: max-content !important;
        /* 確保內容可以超出容器寬度 */
        display: flex !important;
        flex-wrap: nowrap !important;
        /* 確保項目不會換行 */
    }

    .news-item {
        flex: 0 0 calc(100vw - 20px) !important;
        /* 視窗寬度減去 #news 的左右 padding (10px * 2) */
        min-width: 0 !important;
        max-width: calc(100vw - 20px) !important;
        width: calc(100vw - 20px) !important;
        box-sizing: border-box !important;
        z-index: 999 !important;
        /* 確保內容方框不被蓋住 */
        position: relative;
    }

    .news-item h3 {
        font-size: 1.1em;
    }

    .news-item p {
        font-size: 0.9em;
    }

    .news-indicators {
        z-index: 999 !important;
    }
}

/* Services Section */
/* Server 頁面背景樣式 */
body.server-page {
    position: relative;
    min-height: 100vh;
}

/* Server 背景圖容器 - 填滿整個頁面 */
body.server-page .server-background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    margin: 0;
    padding: 0;
}

/* Server 背景遮罩層 - 填滿整個頁面 */
body.server-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
    pointer-events: none;
}

/* 這個設定已被後面的設定覆蓋，保留作為備用 */
body.server-page #services {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    margin-top: 0;
    position: relative;
    display: block;
    /* 改為 block，避免 flex 影響置中 */
    padding-top: 0 !important;
    /* 移除 padding-top，由後面的設定處理 */
    padding-bottom: 0 !important;
    overflow: hidden;
    z-index: 1;
}

/* Server 服務項目容器 */
body.server-page #services .services-content-wrapper {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: clamp(24px, 6vw, 60px) 20px;
    max-width: 1400px;
    margin: 0 auto !important;
    /* 確保水平置中 */
    margin-top: 0 !important;
    /* 確保沒有額外的 margin-top */
    margin-bottom: 0 !important;
    /* 確保沒有額外的 margin-bottom */
    width: 100%;
    /* 使用 100% 寬度，由 #services 的 padding 控制間距 */
    display: block;
    /* 確保使用 block 布局 */
}

body.server-page #services .services-content-wrapper h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* 保持原有的 #services 樣式（非 server-page 時使用） */
#services {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 156px;
    position: relative;
    z-index: 2;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: clamp(24px, 6vw, 60px) 20px !important;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
    justify-items: center;
    /* 水平置中網格項目 */
    align-items: center;
    /* 垂直置中網格項目 */
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* 服務項目響應式設計 - 首頁 */
@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media screen and (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        justify-items: stretch !important;
        padding: 0 10px !important;
        display: grid !important;
    }

    #services {
        padding: clamp(24px, 6vw, 60px) 10px !important;
    }

    .service-item {
        height: auto !important;
        min-height: 250px !important;
        padding: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .service-item img {
        max-width: 80% !important;
        width: auto !important;
        max-height: 180px !important;
    }
}

@media screen and (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        justify-items: stretch !important;
        padding: 0 10px !important;
        display: grid !important;
    }

    #services {
        padding: clamp(24px, 6vw, 60px) 10px !important;
    }

    .service-item {
        min-height: 220px !important;
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .service-item img {
        max-width: 70% !important;
        width: auto !important;
        max-height: 160px !important;
    }

    .service-item h3 {
        font-size: 1em !important;
    }

    .service-item p {
        font-size: 0.85em !important;
    }
}

.service-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-width: 200px;
    max-width: 450px;
    width: 100%;
    height: auto;
    min-height: 300px;
}

.service-item img {
    width: 70%;
    max-width: 200px;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

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

.service-item h3 {
    color: #2c3e50;
    font-size: 1.8em;
    margin: 15px 0 10px 0;
    display: block;
}

.service-item p {
    padding: 0;
    font-size: 1em;
    line-height: 1.7;
    color: #666;
    margin: 0;
    display: block;
}

/* Future Outlook Section */
.future-outlook-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;
    margin-top: 156px;
}

#future-outlook-section {
    margin-top: 156px;
}

#future-outlook-section h2,
.future-outlook-section h2 {
    color: #2c3e50 !important;
}

.section h2 {
    font-size: 2.5em;
    margin-top: 30px;
    margin-bottom: 50px;
    text-align: center;
}

.three-column-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 80px;
    max-width: 10000px;
    margin: 0 auto;
}

.column-item {
    flex: 1;
    min-width: 200px;
    max-width: 450px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.column-item:hover {
    transform: translateY(-10px);
}

.column-item .image-overlay-container {
    position: relative;
    width: 100%;
    height: 220px;
    /* Fixed height for images */
    overflow: hidden;
}

.column-item .image-overlay-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.column-item .image-overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 垂直置中 */
    align-items: center;
    /* 水平置中 */
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.column-item .image-overlay-container:hover .image-overlay-text {
    opacity: 1;
}

.column-item .image-overlay-text h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.column-item .image-overlay-text p {
    font-size: 0.9em;
    line-height: 1.6;
}

.column-item .column-text {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.column-item .column-text h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.column-item .column-text p {
    font-size: 1em;
    line-height: 1.7;
    color: #34495e;
}


#contact {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    height: 100vh;
    margin-top: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Contact 背景圖容器 */
.contact-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Contact 背景遮罩層 */
#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Contact Info Container - 調整為相對定位 */
.contact-info-container {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 60px 80px;
    max-width: 1200px;
    margin: 0 auto;
    scroll-margin-top: 120px;
    /* 防止錨點被固定導覽遮住 */
}

.contact-details {
    margin-top: 30px;
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 8px;
}

.contact-details p {
    margin: 10px 0;
    font-size: 1.1rem;
}

/* Contact Info Container */
.contact-info-container {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 60px 80px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto 40px auto;
    scroll-margin-top: 120px;
    /* 防止錨點被固定導覽遮住 */
}

.contact-info-container h2 {
    font-size: 3em;
    color: #333;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

.contact-info-container .contact-intro {
    font-size: 1.3em;
    margin-bottom: 50px;
    text-align: left;
    color: #555;
}

.contact-info-container .contact-details {
    background-color: transparent;
    padding: 0;
    margin-top: 0;
}

.contact-info-container .contact-item {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #333;
    font-weight: 500;
    line-height: 1.6;
    text-align: left;
}

/* Contact email 連結顏色 */
#email-link,
.contact-info-container .contact-item a {
    color: #3498db !important;
}

#email-link:hover,
.contact-info-container .contact-item a:hover {
    color: #2980b9 !important;
}

/* Contact Map Wrapper */
.contact-map-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    margin-top: 50px;
}

.contact-map-fullwidth {
    width: 100%;
    height: calc(100vh - 200px);
    min-height: 500px;
    max-height: 700px;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.contact-map-fullwidth iframe {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    display: block;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
}

/* Contact Page 響應式設計 */
@media screen and (max-width: 1024px) {
    .contact-info-container {
        padding: 40px 50px;
        margin: 30px auto;
    }

    .contact-info-container h2 {
        font-size: 2.5em;
    }

    .contact-info-container .contact-intro {
        font-size: 1.2em;
    }

    .contact-info-container .contact-item {
        font-size: 1.3em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .contact-map-fullwidth {
        height: 600px;
        max-height: 600px;
    }
}

@media screen and (max-width: 768px) {

    /* 響應式時確保背景圖顯示 */
    #contact {
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-background-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: 0;
    }

    .contact-info-container {
        padding: 30px 40px;
        margin: 20px auto;
    }

    .contact-info-container h2 {
        font-size: 2em;
    }

    .contact-info-container .contact-intro {
        font-size: 1.1em;
    }

    .contact-info-container .contact-item {
        font-size: 1.1em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .contact-map-fullwidth {
        height: 500px;
        max-height: 500px;
    }
}

@media screen and (max-width: 480px) {

    /* 響應式時確保背景圖顯示 */
    #contact {
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-background-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: 0;
    }

    .contact-info-container {
        padding: 20px 30px;
        margin: 15px auto;
    }

    .contact-info-container h2 {
        font-size: 1.8em;
    }

    .contact-info-container .contact-intro {
        font-size: 0.95em;
    }

    .contact-info-container .contact-item {
        font-size: 0.85em;
        white-space: normal;
    }

    .contact-map-fullwidth {
        height: 400px;
        max-height: 400px;
        padding: 15px;
    }
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 0 20px 40px;
    position: relative;
    /* 改為相對定位，讓 footer 自然跟在內容後面 */
    width: 100%;
    z-index: 999;
    /* Ensure footer is above other content */
    margin-top: 40px;
    /* 添加頂部間距 */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    width: 22%;
}

.footer-column h3 {
    font-size: 1.3em;
    /* Increased font size */
    margin-bottom: 20px;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

.footer-column p {
    font-size: 1em;
    /* Increased font size */
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-column img {
    max-width: 100px;
    margin-bottom: 10px;
}

.footer-column .social-logo {
    max-width: 80px;
}

.copyright {
    text-align: center;
    margin-top: 0;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.copyright p {
    font-size: 0.9em;
    /* Increased font size */
}

/* Icons */
.icon-location::before {
    content: '📍';
    margin-right: 10px;
}

.icon-phone::before {
    content: '📞';
    margin-right: 10px;
}

.icon-email::before {
    content: '📧';
    margin-right: 10px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #3498db;
    color: #FFFF00;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}


/* Job Categories */
.job-section-container {
    max-width: 1400px;
    /* Adjust as needed */
    margin: 40px auto;
    /* Center the container and add vertical margin */
    padding: 20px;
    border: 1px solid #ddd;
    /* Add a border */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.job-category {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f0f2f5;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.job-category h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 2.2em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    display: inline-block;
    width: auto;
}

.job-category h2 p.small-text {
    font-size: 0.6em;
    /* Make English text smaller relative to h2 */
    color: #666;
    /* Adjust color if needed */
    margin-top: 5px;
}

/* Job Listings within Categories */
.job-listings {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* Added spacing */
    justify-content: flex-start;
    text-decoration: none;
}

.job-item {
    flex: 0 0 calc(20% - 16px);
    /* Five items per row with 20px spacing */
    max-width: calc(20% - 16px);
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
    font-size: 1.2em;
    color: #34495e;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 100px;
    /* Ensure consistent height */
}

.job-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1001;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.6);
    /* Black w/ opacity */
}

.modal.modal-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 80%;
    max-width: 1200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

.modal-two-column-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    /* Allow columns to wrap on smaller screens */
}

.modal-left-column {
    flex: 1;
    /* Take up available space */
}

.modal-right-column {
    flex: 1;
    /* Take up available space */
}

.modal-content h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #333;
}

.modal-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
}



.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* 底部關閉按鈕樣式 */
.close-button-bottom {
    display: block;
    margin: 30px auto 0 auto;
    padding: 12px 40px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.close-button-bottom:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-button-bottom:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 底部關閉按鈕響應式設計 */
@media screen and (max-width: 768px) {
    .close-button-bottom {
        padding: 10px 30px;
        font-size: 14px;
        margin: 10px auto 0 auto;
    }
}

@media screen and (max-width: 480px) {
    .close-button-bottom {
        padding: 10px 25px;
        font-size: 14px;
        margin: 8px auto 0 auto;
        width: 80%;
    }
}

.modal-content h2 {
    color: #3498db;
    margin-bottom: 15px;
    text-align: center;
}

.modal-content p {
    line-height: 1.8;
    margin-bottom: 10px;
    color: #555;
}

.modal-content a {
    color: #3498db;
    text-decoration: none !important;
}

.modal-content a:hover {
    color: #2980b9;
}

/* News Page 樣式 - 新聞詳細頁面 */
body.news-page {
    background: url('./images/background_news.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    position: relative;
}

/* 隱藏 news-page 上的通用 body::before 和 body::after */
body.news-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3) !important;
    background-image: none !important;
    z-index: 0;
    pointer-events: none;
}

body.news-page::after {
    display: none !important;
}

body.news-page main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    margin-top: 80px;
    display: block;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* News Page 列表樣式 - 垂直排列，一排一個 */
body.news-page #news.section {
    background-color: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    margin-top: 0 !important;
    padding: clamp(30px, 5vw, 50px) clamp(20px, 4vw, 40px) !important;
}

body.news-page #news.section h2 {
    color: #1a252f !important;
    text-shadow: 0 2px 6px rgba(255, 255, 255, 0.9), 0 0 12px rgba(255, 255, 255, 0.6);
    font-weight: 700;
    font-size: 2.5rem !important;
}

body.news-page .news-list-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
}

body.news-page .news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

body.news-page .news-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    margin: 0 !important;
    padding: 25px 30px !important;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

body.news-page .news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

body.news-page .news-date {
    color: #3498db;
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ecf0f1;
}

body.news-page .news-item h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

body.news-page .news-item p {
    color: #666;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

body.news-page .news-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: color 0.3s ease;
    display: inline-block;
    align-self: flex-start;
}

body.news-page .news-link:hover {
    color: #2980b9;
}

/* News Page 分頁樣式 */
body.news-page .news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
    flex-wrap: wrap;
}

body.news-page .pagination-btn {
    padding: 10px 20px;
    background-color: #ffffff;
    border: 2px solid #3498db;
    border-radius: 8px;
    color: #3498db;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

body.news-page .pagination-btn:hover:not(:disabled) {
    background-color: #3498db;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

body.news-page .pagination-btn.active {
    background-color: #3498db;
    color: #ffffff;
    border-color: #3498db;
}

body.news-page .pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

body.news-page .pagination-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.news-detail-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.news-detail-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 60px 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.news-detail-date {
    color: #3498db;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.news-detail-container h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: 600;
    line-height: 1.4;
}

.news-detail-image {
    width: 100%;
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

.news-detail-content {
    color: #666;
    font-size: 1.2em;
    line-height: 1.8;
    margin-top: 30px;
    margin-bottom: 40px;
}

.news-detail-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-detail-back {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

.back-to-news-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease;
    display: inline-block;
}

.back-to-news-link:hover {
    color: #2980b9;
}

/* News Page 響應式設計 */
@media screen and (max-width: 1024px) {
    body.news-page #news.section {
        padding: clamp(25px, 4vw, 40px) clamp(15px, 3vw, 30px) !important;
    }

    body.news-page .news-list-container {
        padding: 0 15px;
    }

    body.news-page .news-item {
        padding: 20px 25px !important;
    }

    body.news-page .news-item h3 {
        font-size: 1.3em;
    }

    .news-detail-container {
        padding: 50px 60px;
    }

    .news-detail-container h1 {
        font-size: 2.2em;
    }

    .news-detail-image {
        margin: 25px 0;
    }

    .news-detail-image img {
        max-height: 400px;
    }

    .news-detail-content {
        font-size: 1.1em;
    }
}

@media screen and (max-width: 768px) {
    body.news-page {
        background-attachment: scroll;
    }

    body.news-page main {
        padding: 30px 15px;
    }

    body.news-page #news.section {
        padding: clamp(20px, 4vw, 35px) clamp(15px, 3vw, 25px) !important;
    }

    body.news-page .news-list-container {
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    body.news-page .news-list {
        gap: 25px;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    body.news-page .news-item {
        padding: 25px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }

    body.news-page .news-item h3 {
        font-size: 1.2em;
        margin-bottom: 12px;
    }

    body.news-page .news-item p {
        font-size: 0.95em;
        margin-bottom: 15px;
    }

    body.news-page .news-date {
        font-size: 0.9em;
    }

    body.news-page .news-pagination {
        gap: 8px;
        margin-top: 30px;
        padding: 15px 0;
    }

    body.news-page .pagination-btn {
        padding: 8px 16px;
        font-size: 0.9em;
        min-width: 40px;
    }

    .news-detail-section {
        padding: 30px 15px;
    }

    .news-detail-container {
        padding: 40px 30px;
    }

    .news-detail-container h1 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .news-detail-image {
        margin: 20px 0;
    }

    .news-detail-image img {
        max-height: 300px;
    }

    .news-detail-content {
        font-size: 1em;
        margin-top: 25px;
        margin-bottom: 30px;
    }

    .news-detail-date {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .news-detail-back {
        margin-top: 30px;
        padding-top: 25px;
    }
}

@media screen and (max-width: 480px) {
    body.news-page {
        background-attachment: scroll;
    }

    body.news-page main {
        padding: 20px 10px;
    }

    body.news-page #news.section {
        padding: clamp(15px, 3vw, 30px) clamp(10px, 2vw, 20px) !important;
    }

    body.news-page .news-list-container {
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    body.news-page .news-list {
        gap: 20px;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    body.news-page .news-item {
        padding: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }

    body.news-page .news-item h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    body.news-page .news-item p {
        font-size: 0.9em;
        margin-bottom: 12px;
    }

    body.news-page .news-date {
        font-size: 0.85em;
        margin-bottom: 10px;
    }

    body.news-page .news-link {
        font-size: 0.9em;
    }

    body.news-page .news-pagination {
        gap: 6px;
        margin-top: 25px;
        padding: 12px 0;
    }

    body.news-page .pagination-btn {
        padding: 6px 12px;
        font-size: 0.85em;
        min-width: 36px;
    }

    .news-detail-section {
        padding: 20px 10px;
    }

    .news-detail-container {
        padding: 30px 20px;
    }

    .news-detail-container h1 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .news-detail-image {
        margin: 15px 0;
    }

    .news-detail-image img {
        max-height: 250px;
    }

    .news-detail-content {
        font-size: 0.95em;
        margin-top: 20px;
        margin-bottom: 25px;
    }

    .news-detail-date {
        font-size: 0.9em;
        margin-bottom: 12px;
    }

    .news-detail-back {
        margin-top: 25px;
        padding-top: 20px;
    }

    .back-to-news-link {
        font-size: 1em;
    }
}




.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    /* White with 50% opacity */
    z-index: -1;
    /* Ensure it's behind other content */
}

.careers-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.megaphone-icon {
    width: 70px;
    height: 70px;
    margin-right: 15px;
}

.careers-header h1 {
    font-size: 3.5rem;
    color: #2b98e0;
    /* Blue color from the image */
    margin-bottom: 0;
    /* Remove default h2 margin */
}

.careers-subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: #3498db;
    /* Blue color from the image */
    margin-bottom: 30px;
    font-weight: bold;
}

a {
    text-decoration: none !important;
    color: #697179
}

/* 移除所有超連結的底線 */
a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none !important;
}

.center {
    display: block;
    margin: 50px auto 0 auto;
    max-width: 35%;
    /* 調整圖片大小 */
}

.enter-slogan {
    color: #848281;
    font-size: 1.9rem;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Contact Form Styles */
.contact-form-container {
    background-color: #f8f8f8;
    /* Light grey background */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    /* More pronounced shadow */
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
}

.contact-form-container h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 30px;
    font-weight: 700;
}

.contact-form-container p {
    margin-bottom: 20px;
}

.contact-form-container iframe {
    width: 100%;
    height: 600px;
    /* Adjust height as needed */
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-container .form-columns {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    /* Space between the two main columns */
    margin-bottom: 20px;
}

.contact-form-container .form-column {
    flex: 1;
    /* Each column takes equal width */
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Space between form groups within a column */
}

.contact-form-container .form-group {
    margin-bottom: 0;
    /* Remove default margin-bottom */
    text-align: left;
}

.contact-form-container .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    /* Labels are not bold in the image */
    color: #555;
    font-size: 1em;
}

.contact-form-container .form-group input[type="text"],
.contact-form-container .form-group input[type="tel"],
.contact-form-container .form-group input[type="email"],
.contact-form-container .form-group input[type="file"],
.contact-form-container .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ccc;
    /* Lighter border */
    border-radius: 8px;
    font-size: 1em;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background-color: #fff;
    /* White background for inputs */
}

.contact-form-container .form-group input[type="text"]:focus,
.contact-form-container .form-group input[type="tel"]:focus,
.contact-form-container .form-group input[type="email"]:focus,
.contact-form-container .form-group input[type="file"]:focus,
.contact-form-container .form-group select:focus,
.contact-form-container .form-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.contact-form-container .form-group textarea {
    resize: vertical;
    min-height: 120px;
    margin-top: 20px;
    /* Space above textarea */
}

.contact-form-container .form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ccc;
    /* Lighter border */
    border-radius: 8px;
    font-size: 1em;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background-color: #fff;
    /* White background for inputs */
}

.contact-form-container button[type="submit"] {
    background-color: #343a40;
    /* Darker shade for the button */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 30px;
    /* More space above button */
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-form-container button[type="submit"]:hover {
    background-color: #495057;
    /* Slightly lighter on hover */
    transform: translateY(-2px);
}

/* Contact Info and Map Layout */
.contact-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 50px;
    gap: 30px;
}

.contact-details-left,
.contact-map-right {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.map-3d-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.map-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.map-link:hover {
    background-color: #0056b3;
}

.contact-details-left h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    width: 100%;
}

.contact-map-right h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 25px;
    font-weight: 700;
}

.contact-details-left p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    text-align: left;
}

.contact-details-left p .icon-phone,
.contact-details-left p .icon-email {
    margin-right: 10px;
    color: #007bff;
    /* Icon color */
    font-size: 1.3em;
}

.location-logo {
    width: 24px;
    /* Adjust as needed */
    height: 24px;
    /* Adjust as needed */
    margin-right: 10px;
    vertical-align: middle;
}



.about-and-map-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 30px;
    padding: 50px 0 0 0;
    max-width: 10000px;
    margin: 156px auto 0 auto;
    margin-bottom: 0 !important;
}

.about-and-map-wrapper .contact-map-right {
    order: 1;
    width: 100% !important;
    max-width: 100% !important;
    height: 150vh;
    min-height: 1000px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0 !important;
    margin-top: 20px;
    margin-bottom: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
    position: relative;
}

.about-and-map-wrapper .contact-map-right iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 15px !important;
    display: block !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    object-fit: cover;
}

.about-and-map-wrapper #about {
    order: 2;
    width: 100%;
    margin-right: 0;
    padding: 50px 35px 30px 35px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 1rem !important;
    /* 確保基礎字體大小 */
}

.about-and-map-wrapper #about h1 {
    margin-top: 20px;
    margin-bottom: 20px;
}

.about-and-map-wrapper .about-content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    margin-top: 15px;
}

.about-and-map-wrapper .about-text-container {
    flex: 1;
    font-size: 1rem !important;
    /* 確保文字容器字體大小正常 */
    padding: 0;
    margin-top: 0;
}

.about-and-map-wrapper .about-text-container p {
    font-size: 1rem !important;
    /* 確保段落文字大小正常 */
    line-height: 1.6 !important;
    margin: 0;
}

.about-and-map-wrapper .contact-info {
    flex: 0 0 300px;
    margin-top: 0;
    padding: 15px;
    background-color: #ecf0f1;
    border-radius: 8px;
}

/* ========== Index Page 關於我們和地圖響應式設計 ========== */

/* 平板和中等螢幕響應式調整 */
@media screen and (max-width: 1024px) {

    /* 響應式時 header 預設樣式 */
    header {
        background: linear-gradient(135deg, rgba(245, 247, 250, 0.95) 0%, rgba(232, 236, 241, 0.9) 100%) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(200, 210, 220, 0.4) !important;
        transition: background 0.3s ease, backdrop-filter 0.3s ease;
    }

    /* 響應式時，滾動後 header 變成半透明（僅在 768px 以下） */
    @media screen and (max-width: 768px) {
        header.scrolled {
            background: linear-gradient(135deg, rgba(245, 247, 250, 0.9) 0%, rgba(232, 236, 241, 0.85) 100%) !important;
            backdrop-filter: blur(20px) !important;
            -webkit-backdrop-filter: blur(20px) !important;
        }

        /* 選單打開時，header 變成不透明 */
        header:has(#main-menu.menu.open) {
            background: linear-gradient(135deg, rgba(245, 247, 250, 0.98) 0%, rgba(232, 236, 241, 0.95) 100%) !important;
            backdrop-filter: blur(20px) !important;
            -webkit-backdrop-filter: blur(20px) !important;
        }

        /* 當 header 有 scrolled 類別且選單打開時，header 變成不透明 */
        header.scrolled:has(#main-menu.menu.open) {
            background: linear-gradient(135deg, rgba(245, 247, 250, 0.98) 0%, rgba(232, 236, 241, 0.95) 100%) !important;
            backdrop-filter: blur(20px) !important;
            -webkit-backdrop-filter: blur(20px) !important;
        }
    }

    /* 響應式時恢復原來的間距 */
    #services {
        margin-top: 0 !important;
    }

    #future-outlook-section {
        margin-top: 0 !important;
    }

    /* 響應式時調整歡迎標題大小，讓文字可以換成兩排 */
    .welcome-section h1 {
        font-size: clamp(2.5rem, 8vw, 4rem) !important;
        line-height: 1.3 !important;
    }

    body .about-and-map-wrapper,
    main .about-and-map-wrapper,
    .about-and-map-wrapper {
        gap: 40px !important;
        padding: 40px 20px !important;
        margin-top: 0 !important;
    }

    /* 地圖尺寸調整 */
    body .about-and-map-wrapper .contact-map-right,
    main .about-and-map-wrapper .contact-map-right,
    .about-and-map-wrapper .contact-map-right {
        height: 600px !important;
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        padding: 30px 15px !important;
    }

    body .about-and-map-wrapper .contact-map-right iframe,
    main .about-and-map-wrapper .contact-map-right iframe,
    .about-and-map-wrapper .contact-map-right iframe {
        height: 600px !important;
    }

    /* 關於我們區塊調整 */
    body .about-and-map-wrapper #about.section,
    main .about-and-map-wrapper #about.section,
    .about-and-map-wrapper #about.section,
    body .about-and-map-wrapper #about,
    main .about-and-map-wrapper #about,
    .about-and-map-wrapper #about {
        padding: 40px 30px 35px 30px !important;
    }
}

/* 小螢幕響應式調整 */
@media screen and (max-width: 768px) {

    /* 響應式時恢復原來的間距 */
    #services {
        margin-top: 0 !important;
    }

    #future-outlook-section {
        margin-top: 0 !important;
    }

    /* 響應式時調整歡迎標題大小，讓文字可以換成兩排 */
    .welcome-section h1 {
        font-size: clamp(2rem, 7vw, 3.5rem) !important;
        line-height: 1.3 !important;
    }

    body .about-and-map-wrapper,
    main .about-and-map-wrapper,
    .about-and-map-wrapper {
        gap: 30px !important;
        padding: 30px 15px !important;
        margin-top: 0 !important;
    }

    /* 地圖在上，縮小尺寸 */
    body .about-and-map-wrapper .contact-map-right,
    main .about-and-map-wrapper .contact-map-right,
    .about-and-map-wrapper .contact-map-right {
        height: 500px !important;
        padding: 25px 15px !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }

    body .about-and-map-wrapper .contact-map-right iframe,
    main .about-and-map-wrapper .contact-map-right iframe,
    .about-and-map-wrapper .contact-map-right iframe {
        height: 500px !important;
    }

    /* 關於我們在下 */
    body .about-and-map-wrapper #about.section,
    main .about-and-map-wrapper #about.section,
    .about-and-map-wrapper #about.section,
    body .about-and-map-wrapper #about,
    main .about-and-map-wrapper #about,
    .about-and-map-wrapper #about {
        padding: 20px 20px 15px 20px !important;
    }

    body .about-and-map-wrapper #about h1,
    main .about-and-map-wrapper #about h1,
    .about-and-map-wrapper #about h1 {
        font-size: 1.2rem !important;
        margin-top: 5px !important;
        margin-bottom: 10px !important;
    }

    /* 響應式布局調整 - 改為上下排列 */
    body .about-and-map-wrapper .about-content-wrapper,
    main .about-and-map-wrapper .about-content-wrapper,
    .about-and-map-wrapper .about-content-wrapper {
        flex-direction: column !important;
        gap: 15px !important;
        margin-top: 5px !important;
    }

    /* 響應式字體大小調整 */
    body .about-and-map-wrapper .about-text-container,
    main .about-and-map-wrapper .about-text-container,
    .about-and-map-wrapper .about-text-container {
        font-size: 0.65rem !important;
        padding: 0 10px !important;
        margin-top: 5px !important;
    }

    body .about-and-map-wrapper .about-text-container p,
    main .about-and-map-wrapper .about-text-container p,
    .about-and-map-wrapper .about-text-container p {
        font-size: 0.65rem !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }

    body .about-and-map-wrapper #about,
    main .about-and-map-wrapper #about,
    .about-and-map-wrapper #about {
        font-size: 0.65rem !important;
    }

    .about-and-map-wrapper .contact-info {
        padding: 12px !important;
        margin-top: 8px !important;
        font-size: 0.85rem !important;
    }

    .about-and-map-wrapper .contact-info p {
        font-size: 0.85rem !important;
        margin: 4px 0 !important;
        line-height: 1.6 !important;
    }
}

@media screen and (max-width: 480px) {

    /* 響應式時 header 預設樣式 */
    header {
        background-color: #697179 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: 1px solid #eee !important;
        transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    }

    /* 響應式時，滾動後 header 變成半透明 */
    header.scrolled {
        background-color: rgba(105, 113, 121, 0.7) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }

    /* 選單打開時，header 變成不透明 */
    header:has(#main-menu.menu.open) {
        background-color: rgba(105, 113, 121, 1) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* 當 header 有 scrolled 類別且選單打開時，header 變成不透明 */
    header.scrolled:has(#main-menu.menu.open) {
        background-color: rgba(105, 113, 121, 1) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* 響應式時恢復原來的間距 */
    #services {
        margin-top: 0 !important;
    }

    #future-outlook-section {
        margin-top: 0 !important;
    }

    /* 響應式時調整歡迎標題大小，讓文字可以換成兩排 */
    .welcome-section h1 {
        font-size: clamp(1.8rem, 6vw, 3rem) !important;
        line-height: 1.3 !important;
    }

    body .about-and-map-wrapper,
    main .about-and-map-wrapper,
    .about-and-map-wrapper {
        padding: 15px 10px !important;
        gap: 25px !important;
        margin-top: 0 !important;
    }

    body .about-and-map-wrapper .contact-map-right,
    main .about-and-map-wrapper .contact-map-right,
    .about-and-map-wrapper .contact-map-right {
        min-height: 350px !important;
        max-height: 400px !important;
        height: 400px !important;
        padding: 20px 10px !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }

    body .about-and-map-wrapper .contact-map-right iframe,
    main .about-and-map-wrapper .contact-map-right iframe,
    .about-and-map-wrapper .contact-map-right iframe,
    .about-and-map-wrapper .contact-map-right iframe[height="100%"],
    .about-and-map-wrapper .contact-map-right iframe[style*="height"] {
        height: 400px !important;
        min-height: 350px !important;
        max-height: 400px !important;
    }

    body .about-and-map-wrapper #about.section,
    main .about-and-map-wrapper #about.section,
    .about-and-map-wrapper #about.section,
    body .about-and-map-wrapper #about,
    main .about-and-map-wrapper #about,
    .about-and-map-wrapper #about {
        padding: 15px 15px 12px 15px !important;
    }

    body .about-and-map-wrapper #about h1,
    main .about-and-map-wrapper #about h1,
    .about-and-map-wrapper #about h1 {
        font-size: 1.1rem !important;
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        margin-left: 5px !important;
        margin-right: 5px !important;
    }

    /* 手機版布局調整 - 改為上下排列 */
    body .about-and-map-wrapper .about-content-wrapper,
    main .about-and-map-wrapper .about-content-wrapper,
    .about-and-map-wrapper .about-content-wrapper {
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 5px !important;
    }

    /* 小螢幕字體大小調整 */
    body .about-and-map-wrapper .about-text-container,
    main .about-and-map-wrapper .about-text-container,
    .about-and-map-wrapper .about-text-container {
        font-size: 0.7rem !important;
        padding: 0 8px !important;
        margin-top: 5px !important;
    }

    body .about-and-map-wrapper .about-text-container p,
    main .about-and-map-wrapper .about-text-container p,
    .about-and-map-wrapper .about-text-container p {
        font-size: 0.7rem !important;
        line-height: 1.5 !important;
        margin-bottom: 8px !important;
    }

    body .about-and-map-wrapper #about,
    main .about-and-map-wrapper #about,
    .about-and-map-wrapper #about {
        font-size: 0.7rem !important;
    }

    .about-and-map-wrapper .contact-info {
        padding: 12px !important;
        margin-top: 8px !important;
        font-size: 0.9rem !important;
    }

    .about-and-map-wrapper .contact-info p {
        font-size: 0.9rem !important;
        margin: 4px 0 !important;
        line-height: 1.6 !important;
    }
}


/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
    line-height: 1.5;
    color: #1f2937;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.brand {
    font-weight: 700;
    text-decoration: none;
    color: #111827;
    letter-spacing: 0.4px;
}

/* ========== 響應式下拉選單 ========== */

/* 漢堡選單按鈕 - 桌面版隱藏 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
    margin-left: auto;
}

.menu-toggle:hover {
    background: linear-gradient(135deg, rgba(200, 210, 220, 0.2) 0%, rgba(180, 195, 210, 0.15) 100%);
}

.menu-toggle .bar {
    width: 24px;
    height: 2px;
    background: #2c3e50;
    display: block;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* 桌面版選單樣式 - 默認顯示 */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    opacity: 1;
    visibility: visible;
    max-height: none;
    overflow: visible;
    margin-left: auto;
    padding-right: 40px;
}

.menu li {
    margin: 0;
    padding: 0;
}

.menu a,
.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    background: transparent;
    border: none;
    font: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.3em;
    font-weight: 600;
    white-space: nowrap;
}

.menu a:hover,
.dropdown-toggle:hover {
    background: linear-gradient(135deg, rgba(200, 210, 220, 0.2) 0%, rgba(180, 195, 210, 0.15) 100%);
    color: #1a252f;
}

/* 響應式下拉選單 - 手機版和平板 */
@media screen and (max-width: 768px) {

    /* 響應式時 header 預設樣式 */
    header {
        background-color: #697179 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: 1px solid #eee !important;
        transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    }

    /* 響應式時，滾動後 header 變成半透明 */
    header.scrolled {
        background-color: rgba(105, 113, 121, 0.7) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }

    /* 選單打開時，header 變成不透明 */
    header:has(#main-menu.menu.open) {
        background-color: rgba(105, 113, 121, 1) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* 當 header 有 scrolled 類別且選單打開時，header 變成不透明 */
    header.scrolled:has(#main-menu.menu.open) {
        background-color: rgba(105, 113, 121, 1) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* 響應式時 LOGO 置中 */
    .logo {
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
    }

    /* 顯示漢堡選單按鈕 */
    .menu-toggle {
        display: flex !important;
        margin-left: auto !important;
        margin-right: 20px !important;
    }

    /* 手機版：選單預設隱藏（半透明） */
    #main-menu.menu {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        width: 100% !important;
        background: linear-gradient(135deg, rgba(245, 247, 250, 0.9) 0%, rgba(232, 236, 241, 0.85) 100%);
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0 !important;
        gap: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        z-index: 1000 !important;
        border-bottom: 1px solid rgba(200, 210, 220, 0.3);
    }

    /* 選單打開時的樣式（不透明） */
    #main-menu.menu.open {
        max-height: calc(100vh - 80px) !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: clamp(15px, 3vw, 25px) 0 !important;
        display: flex !important;
        background: linear-gradient(135deg, rgba(245, 247, 250, 0.98) 0%, rgba(232, 236, 241, 0.95) 100%) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        overflow-y: auto !important;
    }

    /* 當 header 有 scrolled 類別時，選單打開也使用不透明效果 */
    header.scrolled #main-menu.menu.open {
        background: linear-gradient(135deg, rgba(245, 247, 250, 0.98) 0%, rgba(232, 236, 241, 0.95) 100%) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }


    /* 選單項目樣式 */
    #main-menu.menu li {
        margin: 0 !important;
        width: 100% !important;
        border-bottom: 1px solid rgba(200, 210, 220, 0.3) !important;
        list-style: none !important;
    }

    #main-menu.menu li:last-child {
        border-bottom: none !important;
    }

    #main-menu.menu a {
        display: block !important;
        width: 100% !important;
        padding: clamp(12px, 3vw, 18px) clamp(15px, 4vw, 25px) !important;
        color: #2c3e50 !important;
        text-align: left !important;
        border-radius: 0 !important;
        font-size: clamp(1em, 2.5vw, 1.1em) !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        line-height: 1.5 !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
        transition: background 0.3s ease, color 0.3s ease !important;
    }

    #main-menu.menu a:hover,
    #main-menu.menu a:focus {
        background: linear-gradient(135deg, rgba(200, 210, 220, 0.3) 0%, rgba(180, 195, 210, 0.25) 100%) !important;
        color: #1a252f !important;
    }

    /* 移动端下拉菜单样式 */
    .dropdown {
        position: relative;
        z-index: 1000 !important;
        /* 確保下拉選單不被其他元素蓋住 */
    }

    .dropdown .dropdown-toggle {
        display: block !important;
        width: 100% !important;
        padding: clamp(12px, 3vw, 18px) clamp(15px, 4vw, 25px) !important;
        color: #2c3e50 !important;
        text-align: left !important;
        border-radius: 0 !important;
        font-size: clamp(1em, 2.5vw, 1.1em) !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        cursor: pointer !important;
        background: none;
        border: none;
        line-height: 1.5 !important;
        min-height: 44px !important;
        transition: background 0.3s ease, color 0.3s ease !important;
        box-sizing: border-box !important;
    }

    .dropdown .dropdown-toggle::after {
        float: right;
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        display: none;
        position: static !important;
        /* 移動端使用 static，讓選單自然展開 */
        background: linear-gradient(135deg, rgba(240, 243, 247, 0.95) 0%, rgba(230, 235, 240, 0.9) 100%);
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        z-index: 1001 !important;
        /* 確保不被其他元素蓋住 */
        width: 100% !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .dropdown.active .dropdown-menu,
    .dropdown.always-open .dropdown-menu {
        display: block !important;
        max-height: calc(100vh - 200px) !important;
        height: auto !important;
        padding: clamp(8px, 2vw, 12px) 0 !important;
        overflow: visible !important;
    }

    .dropdown-menu li {
        border-bottom: 1px solid rgba(200, 210, 220, 0.3) !important;
    }

    .dropdown-menu a {
        display: block !important;
        padding: clamp(10px, 2.5vw, 14px) clamp(15px, 4vw, 25px) clamp(10px, 2.5vw, 14px) clamp(35px, 8vw, 45px) !important;
        color: #2c3e50 !important;
        text-decoration: none !important;
        font-size: clamp(0.9em, 2.2vw, 1em) !important;
        font-weight: 500 !important;
        transition: background 0.3s ease, color 0.3s ease !important;
        border-radius: 0 !important;
        margin: 0 !important;
        min-height: clamp(40px, 8vw, 48px) !important;
        line-height: 1.5 !important;
        box-sizing: border-box !important;
    }

    .dropdown-menu a:hover,
    .dropdown-menu a:focus {
        background: linear-gradient(135deg, rgba(200, 210, 220, 0.3) 0%, rgba(180, 195, 210, 0.25) 100%) !important;
        color: #1a252f !important;
    }

    /* 漢堡選單動畫 - 打開時變成 X */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* 確保 header container 在響應式時正確布局 */
    header .container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    /* 確保 logo 不會被擠壓 */
    .logo {
        flex-shrink: 0;
    }
}

/* 中等螢幕尺寸的響應式調整 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    /* 可以選擇在中等螢幕也顯示漢堡選單，或保持桌面版樣式 */
    /* 目前保持桌面版樣式 */
}

.content {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 16px;
}

/* ========== Server Page 獨立響應式 CSS ========== */

/* 背景設定 */
body.server-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 50%, #dde4eb 100%);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    /* 禁止滾動 */
    height: 100vh;
    /* 固定高度為視窗高度 */
    display: flex;
    flex-direction: column;
}

/* Server Page 背景美化 */
body.server-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(200, 210, 220, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(180, 195, 210, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(190, 200, 215, 0.25) 0%, transparent 50%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    z-index: -1;
    pointer-events: none;
}

body.server-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(200, 210, 220, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 210, 220, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Main 容器設定 - Server Page */
body.server-page main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    /* 允許內容滾動 */
    box-sizing: border-box;
    margin-top: 80px;
    padding-bottom: 80px;
    /* 為固定的 footer 留出空間 */
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 1;
    /* 佔據剩餘空間 */
}

/* Footer 固定在底部 - Server Page */
body.server-page footer {
    position: fixed;
    /* 固定在視窗底部 */
    bottom: 0;
    /* 貼齊底部 */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    margin-top: 0;
    /* 移除 margin-top */
}

/* 桌面版：減少 main 的上邊距 */
@media screen and (min-width: 1025px) {
    body.server-page main {
        margin-top: 80px;
        /* 保持 80px 給 header 留空間 */
    }
}

/* 服務區塊樣式 - 完全獨立 */
body.server-page #services {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 120px clamp(15px, 4vw, 40px) clamp(24px, 6vw, 60px) clamp(15px, 4vw, 40px) !important;
    max-width: 1400px;
    margin: 0 auto !important;
    /* 桌面版：margin-top 由 main 處理，這裡只處理水平置中 */
    width: calc(100% - 40px);
    box-sizing: border-box;
    position: relative;
    display: block;
    /* 使用 block 置中，而非 flex */
    flex: 1;
    /* 佔據剩餘空間 */
    overflow-y: auto;
    /* 允許內容滾動 */
}

body.server-page #services h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

/* 服務項目網格 - 完全獨立設計 */
body.server-page .services-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: clamp(15px, 3vw, 30px) !important;
    margin-top: 30px !important;
    justify-items: center;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
}

/* 服務項目卡片 - 防止溢出 */
body.server-page .service-item {
    background-color: rgba(255, 255, 255, 0.8) !important;
    padding: clamp(15px, 2vw, 20px) !important;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    height: auto;
    min-height: 280px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
}

body.server-page .service-item img {
    max-width: 70% !important;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}

body.server-page .service-item h3 {
    color: #2c3e50;
    margin: 15px 0 10px 0;
    font-size: clamp(1rem, 2vw, 1.3em);
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
}

body.server-page .service-item p {
    color: #666;
    font-size: clamp(0.8em, 1.5vw, 0.9em);
    margin: 0;
    padding: 0 clamp(5px, 1vw, 10px);
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
}

body.server-page .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Modal 樣式 - Server Page */
#modalServiceContent h3 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: bold;
}

#serviceModal .modal-content {
    width: 60%;
    max-width: 800px;
}

/* Server Page 響應式設計 */
@media screen and (max-width: 1200px) and (min-width: 1025px) {
    body.server-page .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: clamp(15px, 2.5vw, 25px) !important;
    }

    body.server-page #services {
        width: calc(100% - 30px);
        padding: 120px clamp(15px, 3vw, 30px) clamp(24px, 6vw, 60px) clamp(15px, 3vw, 30px) !important;
        padding-top: 120px !important;
        /* 明確設置 padding-top，避免被 header 遮住 */
        margin: 0 auto !important;
        /* 平板版：margin-top 由 main 處理 */
        margin-top: 0 !important;
        /* 明確重置 margin-top */
        margin-bottom: 0 !important;
        /* 明確重置 margin-bottom */
        display: block !important;
        /* 確保使用 block 布局 */
        flex-direction: unset !important;
        align-items: unset !important;
        justify-content: unset !important;
        height: auto !important;
    }

    body.server-page #services .services-content-wrapper {
        margin: 0 auto !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        padding: 30px 20px clamp(24px, 6vw, 60px) 20px !important;
        padding-top: 30px !important;
    }
}

@media screen and (max-width: 1024px) and (min-width: 769px) {
    body.server-page .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: clamp(15px, 2vw, 25px) !important;
    }

    body.server-page .service-item {
        min-height: 260px;
    }

    body.server-page #services {
        margin: 0 auto !important;
        /* 小螢幕：margin-top 由 main 處理 */
        margin-top: 0 !important;
        /* 明確重置 margin-top */
        margin-bottom: 0 !important;
        /* 明確重置 margin-bottom */
        padding: 120px clamp(15px, 3vw, 30px) clamp(24px, 6vw, 60px) clamp(15px, 3vw, 30px) !important;
        padding-top: 120px !important;
        /* 避免被 header 遮住 */
        display: block !important;
        /* 確保使用 block 布局 */
        flex-direction: unset !important;
        align-items: unset !important;
        justify-content: unset !important;
        height: auto !important;
    }

    body.server-page #services .services-content-wrapper {
        margin: 0 auto !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        padding: clamp(24px, 6vw, 60px) 20px !important;
    }
}

/* 桌面版：確保置中並減少上半部空白 */
@media screen and (min-width: 1025px) {
    body.server-page {
        overflow: hidden !important;
        /* 禁止滾動 */
        height: 100vh !important;
        /* 固定高度為視窗高度 */
    }

    body.server-page main {
        overflow-y: auto !important;
        /* 允許內容滾動 */
        height: auto !important;
        /* 高度自動調整 */
        padding-bottom: 80px !important;
        /* 為固定的 footer 留出空間 */
    }

    body.server-page #services {
        margin: 0 auto !important;
        /* 桌面版：margin-top 由 main 處理，這裡只處理水平置中 */
        margin-top: 0 !important;
        /* 明確重置 margin-top */
        margin-bottom: 0 !important;
        /* 明確重置 margin-bottom */
        padding: 120px clamp(15px, 4vw, 40px) clamp(24px, 6vw, 60px) clamp(15px, 4vw, 40px) !important;
        padding-top: 120px !important;
        /* 明確設置 padding-top，避免被 header 遮住 */
        display: block !important;
        /* 移除 flex，使用 block 置中 */
        flex-direction: unset !important;
        align-items: unset !important;
        justify-content: unset !important;
        text-align: center !important;
        /* 確保內容置中 */
        height: auto !important;
        /* 重置高度 */
        min-height: auto !important;
        /* 重置最小高度 */
        max-height: none !important;
        /* 重置最大高度 */
        position: relative !important;
        /* 確保定位穩定 */
        overflow-y: visible !important;
        /* 允許內容自然顯示 */
    }

    body.server-page #services .services-content-wrapper {
        margin: 0 auto !important;
        /* 確保容器水平置中 */
        margin-top: 0 !important;
        /* 重置 margin-top */
        margin-bottom: 0 !important;
        /* 重置 margin-bottom */
        width: 100% !important;
        /* 使用 100% 寬度，由 #services 的 padding 控制間距 */
        padding: 30px 20px clamp(24px, 6vw, 60px) 20px !important;
        /* 減少 padding-top 到 30px */
        padding-top: 30px !important;
        /* 明確設置較小的 padding-top */
        position: relative !important;
        /* 確保定位正確 */
        display: block !important;
        /* 確保使用 block 布局 */
    }
}

@media screen and (max-width: 768px) {
    body.server-page {
        overflow: visible !important;
        /* 允許頁面自然滾動 */
        height: auto !important;
        /* 高度自動調整 */
    }

    body.server-page main {
        overflow-y: visible !important;
        /* 允許內容自然顯示 */
        padding-bottom: 20px !important;
        /* 減少 padding-bottom，footer 不再固定 */
    }

    /* 響應式時 footer 不固定，自然放在最下面 */
    body.server-page footer {
        position: relative !important;
        /* 改為相對定位 */
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        margin-top: 40px !important;
        /* 添加頂部間距 */
    }

    body.server-page .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    /* 響應式時確保背景圖顯示 */
    body.server-page #services {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 100px !important;
        /* 避免被 header 遮住 */
        padding-bottom: 0 !important;
        /* 移除底部多餘空白 */
        margin: 0 auto !important;
        /* 響應式時移除 margin-top，使用 padding-top */
        overflow-y: visible !important;
    }

    body.server-page .server-background-image {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -1;
        margin: 0;
        padding: 0;
    }

    body.server-page #services .services-content-wrapper {
        width: calc(100% - 20px);
        padding: 20px 15px !important;
        scroll-margin-top: 100px !important;
        /* 響應式時調整，防止被 header 蓋住 */
        margin-top: 0 !important;
    }

    body.server-page .service-item {
        min-height: 240px;
        padding: 15px !important;
    }

    body.server-page .service-item img {
        max-width: 60% !important;
    }

    body.server-page .service-item h3 {
        font-size: 1.1em;
    }

    body.server-page .service-item p {
        font-size: 0.85em;
    }

    #serviceModal .modal-content {
        width: 90% !important;
        max-width: 100% !important;
        padding: 20px !important;
    }

    #modalServiceContent h3 {
        font-size: 1.8em;
    }
}

@media screen and (max-width: 480px) {
    body.server-page {
        overflow: visible !important;
        /* 允許頁面自然滾動 */
        height: auto !important;
        /* 高度自動調整 */
    }

    body.server-page main {
        overflow-y: visible !important;
        /* 允許內容自然顯示 */
        padding-bottom: 20px !important;
        /* 減少 padding-bottom，footer 不再固定 */
    }

    /* 響應式時 footer 不固定，自然放在最下面 */
    body.server-page footer {
        position: relative !important;
        /* 改為相對定位 */
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        margin-top: 40px !important;
        /* 添加頂部間距 */
    }

    body.server-page .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    /* 響應式時確保背景圖顯示 */
    body.server-page #services {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 100px !important;
        /* 避免被 header 遮住 */
        padding-bottom: 0 !important;
        /* 移除底部多餘空白 */
        margin: 0 auto !important;
        /* 響應式時移除 margin-top，使用 padding-top */
        overflow-y: visible !important;
    }

    body.server-page .server-background-image {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -1;
        margin: 0;
        padding: 0;
    }

    body.server-page #services .services-content-wrapper {
        width: calc(100% - 20px);
        padding: 15px 10px !important;
        scroll-margin-top: 100px !important;
        /* 響應式時調整，防止被 header 蓋住 */
        margin-top: 0 !important;
    }

    body.server-page .service-item {
        min-height: 220px;
        padding: 15px 10px !important;
    }

    body.server-page .service-item img {
        max-width: 50% !important;
    }

    body.server-page .service-item h3 {
        font-size: 1em;
        margin: 10px 0 8px 0;
    }

    body.server-page .service-item p {
        font-size: 0.8em;
        padding: 0 5px;
    }
}

/* ========== Enter Page 獨立響應式 CSS ========== */

/* 背景設定 */
body.enter-page {
    background-image: url('./images/data_flow_bg.svg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    position: relative;
    overflow-x: hidden;
    /* 防止水平滾動 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.enter-page .background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: -1;
}

/* Main 容器設定 */
body.enter-page main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    flex: 1;
    padding-bottom: 20px !important;
    /* Footer 不再固定，減少 padding-bottom */
    min-height: auto !important;
}

/* 標題和標語樣式 */
.enter-slogan {
    color: #848281;
    font-size: clamp(1.2rem, 3vw, 1.9rem);
    margin: clamp(20px, 4vw, 40px) auto;
    text-align: center;
    padding: 0 clamp(15px, 3vw, 30px);
    line-height: 1.6;
}

.center {
    display: block;
    margin: clamp(30px, 5vw, 50px) auto 0 auto;
    max-width: clamp(250px, 35%, 450px);
    /* 調整圖片大小 */
    width: auto;
    height: auto;
    position: relative;
    /* 確保 transform 能正常工作 */
    transition: transform 0.4s ease;
    /* 添加平滑過渡效果 */
}

/* 徵才區塊樣式 */
#careers {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: clamp(20px, 4vw, 40px) clamp(15px, 3vw, 30px);
    margin: 0 auto;
}

.careers-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.megaphone-icon {
    width: clamp(50px, 8vw, 70px);
    height: clamp(50px, 8vw, 70px);
    margin-right: 15px;
}

.careers-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #2b98e0;
    margin-bottom: 0;
}

.careers-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: #3498db;
    margin-bottom: clamp(20px, 4vw, 30px);
    font-weight: bold;
    padding: 0 clamp(15px, 3vw, 30px);
}

/* 工作區塊容器 - 完全獨立設計 */
.job-section-container {
    max-width: 1400px !important;
    margin: clamp(20px, 4vw, 40px) auto !important;
    padding: clamp(15px, 3vw, 20px) !important;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    width: calc(100% - 40px);
    box-sizing: border-box;
}

.job-category {
    margin-bottom: clamp(30px, 5vw, 40px);
    padding: clamp(15px, 3vw, 20px) !important;
    background-color: #f0f2f5;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.job-category h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: clamp(20px, 3vw, 25px);
    font-size: clamp(1.5rem, 3.5vw, 2.2em);
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    display: inline-block;
    width: auto;
    word-wrap: break-word;
}

.job-category h2 p.small-text {
    font-size: 0.6em;
    color: #666;
    margin-top: 5px;
}

/* 工作列表 - 響應式網格 */
.job-listings {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: clamp(15px, 2.5vw, 20px) !important;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
}

/* 工作項目卡片 - 防止溢出 */
.job-item {
    flex: 0 0 calc(20% - 16px) !important;
    max-width: calc(20% - 16px) !important;
    background-color: #ffffff !important;
    padding: clamp(15px, 2.5vw, 25px) !important;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.2em);
    color: #34495e;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(80px, 12vw, 100px);
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.job-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Footer 自然置底 */
body.enter-page footer {
    position: relative !important;
    /* 改為相對定位 */
    margin-top: 40px !important;
    /* 添加頂部間距 */
    width: 100%;
    box-sizing: border-box;
    z-index: 999;
}

/* Enter 頁面：確保 #careers 內容有適當間距 */
body.enter-page #careers {
    padding-bottom: 20px !important;
    /* 減少 padding-bottom，因為 footer 不再固定 */
    margin-bottom: 0 !important;
}

/* Enter Page 響應式設計 */
@media screen and (max-width: 1200px) {
    .job-item {
        flex: 0 0 calc(25% - 15px) !important;
        max-width: calc(25% - 15px) !important;
    }

    .job-section-container {
        width: calc(100% - 30px);
    }
}

@media screen and (max-width: 1024px) {
    .center {
        margin: clamp(120px, 15vw, 150px) auto 0 auto !important;
        max-width: clamp(250px, 45%, 500px) !important;
        /* 響應式：增加圖片大小 */
    }

    .job-item {
        flex: 0 0 calc(33.333% - 14px) !important;
        max-width: calc(33.333% - 14px) !important;
    }

    .careers-header {
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: left !important;
    }

    .megaphone-icon {
        margin-right: 15px !important;
        margin-bottom: 0 !important;
    }
}

@media screen and (max-width: 768px) {
    .center {
        margin: clamp(130px, 18vw, 160px) auto 0 auto !important;
        max-width: clamp(300px, 65%, 550px) !important;
        /* 響應式：增加圖片大小 */
    }

    .job-item {
        flex: 0 0 calc(50% - 15px) !important;
        max-width: calc(50% - 15px) !important;
        font-size: 1em;
        padding: 20px 15px !important;
    }

    /* 增加響應式手機頁面的方格間距 */
    .job-listings {
        gap: 30px !important;
    }

    .job-section-container {
        width: calc(100% - 20px);
        padding: 15px !important;
    }

    .job-category {
        padding: 15px !important;
    }

    .job-category h2 {
        font-size: 1.8em;
    }

    .careers-header {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .megaphone-icon {
        width: 45px !important;
        height: 45px !important;
        margin-right: 10px !important;
        margin-bottom: 0 !important;
    }

    /* 手機響應式：Modal 內容成為一排（上下排列） */
    .modal-content {
        width: 95% !important;
        max-width: 100% !important;
        padding: 20px !important;
    }

    .modal-two-column-content {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .modal-left-column,
    .modal-right-column {
        width: 100% !important;
        flex: none !important;
    }

    .modal-content h2 {
        font-size: 1.8em !important;
        margin-bottom: 20px !important;
    }

    .modal-content p {
        font-size: 0.95em !important;
    }
}

@media screen and (max-width: 480px) {
    .center {
        margin: clamp(140px, 20vw, 170px) auto 0 auto !important;
        max-width: clamp(280px, 70%, 450px) !important;
        /* 響應式：增加圖片大小 */
    }

    .job-item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        font-size: 0.9em;
        padding: 15px 10px !important;
    }

    /* 增加響應式手機頁面的方格間距 */
    .job-listings {
        gap: 25px !important;
    }

    .job-section-container {
        width: calc(100% - 20px);
        padding: 10px !important;
    }

    .job-category {
        padding: 10px !important;
        margin-bottom: 20px;
    }

    .job-category h2 {
        font-size: 1.5em;
    }

    .careers-header {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .megaphone-icon {
        width: 35px !important;
        height: 35px !important;
        margin-right: 8px !important;
        margin-bottom: 0 !important;
    }

    .careers-header h1 {
        font-size: clamp(1.6rem, 5vw, 2.5rem) !important;
    }

    /* 手機響應式：Modal 內容成為一排（上下排列） */
    .modal-content {
        width: 95% !important;
        max-width: 100% !important;
        padding: 15px !important;
    }

    .modal-two-column-content {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .modal-left-column,
    .modal-right-column {
        width: 100% !important;
        flex: none !important;
    }

    .modal-content h2 {
        font-size: 1.6em !important;
        margin-bottom: 15px !important;
    }

    .modal-content p {
        font-size: 0.9em !important;
    }
}

/* Monitor Display Page Styles */
.monitor-signboard {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border: 2px solid #000;
    font-family: "BiauKai", "DFKai-SB", serif;
    /* Traditional font style for signs */
}

.signboard-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
}

.signboard-header h2 {
    font-size: 2.5em;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.signboard-header p {
    font-size: 1.2em;
    color: #000;
}

.signboard-container {
    display: flex;
    border: 2px solid #000;
}

/* Left Side - Table */
.signboard-left {
    flex: 1;
    border-right: 2px solid #000;
    padding: 0;
}

.monitor-table {
    width: 100%;
    border-collapse: collapse;
    height: 100%;
}

.monitor-table th,
.monitor-table td {
    border: 1px solid #000;
    padding: 20px 10px;
    text-align: center;
    font-size: 1.25em;
    font-weight: bold;
    color: #000;
}

.monitor-table th {
    background-color: transparent;
    height: 60px;
}

.monitor-table .row-header {
    text-align: center;
    min-width: 150px;
    font-size: 1.3em;
}

.monitor-table td {
    height: 100px;
    /* Make rows taller */
}

/* Right Side - Visuals */
.signboard-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 20px;
}

.plan-title {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 50px;
}

.plan-title h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #000;
}

.plan-title p {
    font-size: 1.1em;
    color: #000;
}

.qr-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.qr-box {
    border: 1px solid #000;
    padding: 10px;
    text-align: center;
    width: 120px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-box p {
    font-size: 0.9em;
    font-weight: bold;
    margin: 5px 0;
    color: #000;
}

.qr-code {
    width: 80px;
    height: 80px;
    border: 1px solid #000;
    margin: 5px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
}

.qr-size {
    border-top: 1px solid #000;
    width: 100%;
    margin-top: 5px;
    padding-top: 2px;
}

@media screen and (max-width: 768px) {
    .signboard-container {
        flex-direction: column;
    }

    .signboard-left {
        border-right: none;
        border-bottom: 2px solid #000;
    }

    .monitor-signboard {
        padding: 10px;
    }

    .signboard-header h2 {
        font-size: 1.8em;
    }
}