body {
    margin: 0 auto;
    padding: 0;
    font-family: 微軟正黑體, Arial, sans-serif;
    /* display: flex; */
    /* flex-direction: column; */
    max-width: 100%;
    color: #104289;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* 導覽列 START */
nav {
    margin: 0;
    display: flex;
    justify-content: center;
    padding: 1px;
    z-index: 4;
    border-bottom: 1px solid #c7dce3;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 auto;
    position: relative;
}

nav .dropdown:hover>.dropdown-content {
    display: block;
}

.logo-text a {
    text-decoration: none;
    color: #fff;
}

.dropdown {
    position: relative;
    z-index: 2;
    padding-top: 15px;
    font-weight: bold;
}

.dropdown:hover {
    background-color: #ffe100;
}

.dropdown a:hover {
    color: #e86816;
}

.dropdown-content {
    font-weight: bold;
    display: none;
    position: absolute;
    left: 0;
    background-color: #baefff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.dropdown-content a {
    color: #104289;
    padding: 12px 16px;
    display: block;
    text-decoration: none;
}

.dropdown-content a:hover {
    color: #e86816;
    background-color: #ffe100;
}

/* 導覽列 END */

/* 廣告輪播區 START */
.slider {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.slider img {
    width: 100%;
}

.swiper-container {
    width: 100%;
    max-width: 1200px;
    z-index: 0;
}

.swiper-slide img {
    width: 100%;
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    width: 70px;
    /* 調整圓形直徑 */
    height: 70px;
    /* 調整圓形直徑 */
    background-color: #104289;
    /* 設定底色 */
    border-radius: 50%;
    /* 讓元素呈現圓形 */
    color: #fff;
    /* 設定文字顏色 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: background-color 0.3s ease;
    /* 加入過渡效果 */
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: #ffe100;
    /* 設定hover時的底色 */
}

.pro-item {
    /* flex: 0 0 calc(33.33% - 20px); */
    /* margin: 0 10px; */
    box-sizing: border-box;
}

/* 廣告輪播區 END */

.block-3 {
    background-color: #c7dce3;
}

.block-3-bg {
    background: url(../images/home_block_bg_03.jpg);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.block-3-content {
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    height: 500px;
    text-align: center;
    padding: 50px;
    flex-wrap: wrap;
    /* 允許換行 */
}

.block-4 {
    height: auto;
    text-align: center;
    /* 讓內容水平置中 */
    padding: 20px;
    /* 加入 padding 來調整內容與邊框的距離 */
    box-sizing: border-box;
    /* 讓 padding 不會影響到寬度 */
}

.block-4 h2 {
    text-align: center;
    margin-bottom: 20px;
    /* 調整標題與內容之間的距離 */
}

.proc {
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    text-align: center;
    padding: 50px;
    flex-wrap: wrap;
    /* 允許換行 */
}

/* 頁尾 START */
footer {
    background-color: #104289;
    color: #fff;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

footer .footer_lv2 {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

footer .footer_lv2 .copyright {
    font-size: xx-small;
    text-align: left;
}

footer .footer_lv2 .logo {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    margin: 10px;
}

footer .footer_lv2 .qr-code {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
}

footer .footer_lv2 .qr-code img {
    margin-right: 10px;
    /* 調整QR Code圖片與文字之間的距離 */
}

footer .footer_lv2 .footer_pic {
    flex-shrink: 0;
    /* 防止footer_pic收縮，以保持原始大小 */
}

/* 頁尾END */

/* 媒體查詢，當視窗小於768寬度時，讓元素垂直排列 */
@media (max-width: 768px) {
    .block-3-bg {
        background: none;
    }

    .block-3-content {
        flex-direction: column;
        align-items: center;
        /* 或其他你希望的對齊方式 */
        height: auto;
        /* 讓高度自動根據內容調整 */
    }

    .pro-item {
        flex: 1 1 calc(100% - 20px);
        /* 讓 .pro-item 在小螢幕時佔滿一行，並加入 margin */
        margin: 0 10px;
        /* 設定 margin */
        min-height: 434px;
        /* 保持最小高度為 434px */
        box-sizing: border-box;
        /* 重要: 讓 margin 不會影響到 .pro-item 的實際寬度 */
    }

    .swiper-button-prev,
    .swiper-button-next {
        top: 50%;
        transform: scale(0.6);
        /* 你可以根據需要調整縮放比例 */
    }

    .swiper-button-prev {
        left: -5px;
    }

    .swiper-button-next {
        right: -5px;
    }

    .slider {
        height: auto;
        /* 讓高度自動根據內容調整 */
    }

    footer .footer_lv2 {
        flex-direction: column;
        /* 在小螢幕時垂直排列 */
    }

    footer .footer_lv2 .logo,
    footer .footer_lv2 .qr-code,
    footer .footer_lv2 .footer_pic {
        margin-bottom: 15px;
        /* 可根據需要調整間距 */
    }
}