/* 全局樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: "Microsoft JhengHei", "Heiti TC", sans-serif;
    background-color: #eef7fc !important; 
    color: #333;
}

/* Main 內容區域 - 留出頂部和底部空間 */
main {
   /*  flex: 1; */
    /* display: flex; */
    /* flex-direction: column; */
    /* 根據實際情況調整頂部 padding */
    padding-top: 80px; 
    /* padding-bottom: 80px; */
    /* min-height: 100vh; */
}

/* 全局 Footer - 固定在最下面 */
.global-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    z-index: 998; /* 高於內容，低於 top-group */
}

    .global-footer span {
        margin: 0 5px;
    }
        .global-footer span a {
            color: inherit;
            text-decoration: none;
        }
/* 標題區域 */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

    .section-header h1,
    .section-header h2 {
        color: #2c5484;
        font-size: 1.75rem;
        font-weight: bold;
        display: inline-block;
        border-bottom: 3px solid #2c5484;
        padding-bottom: 5px;
        margin: 0;
        letter-spacing: 2px;
    }
/* 搜尋框樣式 */
.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 40px;
    gap: 15px;
}

#menuBtn {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.search-box img {
    height: 30px;
    width: auto;
    object-fit: contain;
}
/* 手機版適配 */
@media (max-width: 600px) {
    .global-footer {
        font-size: 0.6875rem;
        padding: 8px;
    }

    main {
        padding-top: 150px;
        padding-bottom: 60px;
    }
}
