/* 桌面端 body padding */
body {
    padding-top: 15.8vh; /* 為固定導航欄留出空間 */
    /* background-color: rgba(87, 131, 207, 0.97); */
}
.bigBox{
    
}
.navBox{
    background: url('../image/nav/navBg.png');
    background-size: cover;
    width: 100vw;
    /* height: 100px; */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}
.navBig{
    padding: 0 8vw;
}
.navOne{
    display: flex;
    height: 10vh;
    align-items: center;
    justify-content: space-between;
    box-shadow: none;
}
.navLeft{
    width: 50vw;
    height: 10vh;
    display: flex;
    /* justify-content: center; */
    align-items: center;
}
.navLeftImg{
    background: url('../image/nav/leftT.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    width: 25vw;
    height: 10vh;
    line-height: 10vh;
}
.navRight{
    display: flex;
    align-items: center;
}
.navRightImg{
    width:1.5vw;
    height: 1.5vw;
    margin-right: 1vw;
}
.navRightText{
   font-size: 0.8vw;
   color: #fff;
}

/*导航 */
.navBottom{
    margin-top: 1vh;
    height: 5vh;
    display: flex;
    /* justify-content: center; */
    align-items: flex-start;
    gap: 1vw;
}
.navLogo{
    width: 1.2vw;
    margin-right: 0.5vw;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.navLink{
    flex: 1 1 0;
    min-width: 0;
    font-size: 0.8vw;
    font-weight: 300;
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    text-decoration: none;
    transition: font-weight 0.3s ease-in-out;
    height: 100%;
}
.navLink::before{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}
.navLink:hover,
.navLink:focus,
.navLink.active{
    font-weight: bold;
}
.navLink:hover::before,
.navLink:focus::before,
.navLink.active::before{
    transform: scaleX(1);
}
.navLink:hover .navLogo,
.navLink:focus .navLogo,
.navLink.active .navLogo{
    opacity: 1;
}

.section3Header{
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 0;
}
.comBoxLeft{
    display: flex;
    align-items: center;
}
.comLeftImg{
    width: 10px;
    /* height: 10px; */
}
.comText{
    margin-left: 10px;
    font-size: 1.3vw;
    font-weight: 700;
}
.comRightImg{
    width: 5vw;
}
/* 漢堡菜單樣式 */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    transition: box-shadow 0.3s ease;
    background: none !important;
    border: none !important;
    outline: none !important;
}

.hamburger-menu::before,
.hamburger-menu::after {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}

/* 菜單遮罩層 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    border: none !important;
    outline: none !important;
}

.hamburger-line::before,
.hamburger-line::after {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

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

/* 手機端適配 */
@media screen and (max-width: 768px) {
    .comText{
        font-size: 13px;
    }
    .navBox {
        width: 100vw;
    }
    
    body {
        padding-top: 2vh; /* 手機端導航欄高度調整 */
    }
    
    .navBig {
        padding: 0 4vw;
    }
    
    .navOne {
        height: 8vh;
        position: relative;
    }
    
    .navLeft {
        flex: 1;
    }
    
    .navLeftImg {
        width: 65vw;
        height: 4vh;
        background-image: url('../image/nav/leftT.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .navRight {
        display: none;
    }
    
    /* 顯示漢堡菜單 */
    .hamburger-menu {
        display: flex;
    }
    
    .navBottom {
        position: fixed;
        top: 8vh;
        right: 0;
        width: 80vw;
        max-width: 400px;
        height: auto;
        max-height: calc(100vh - 8vh - 20px);
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
        border-radius: 15px 0 0 15px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .navBottom.mobile-menu-open {
        transform: translateX(0);
    }
    
    .navLink {
        flex: none;
        width: 90%;
        max-width: 300px;
        font-size: 16px;
        padding: 12px 20px;
        border-radius: 8px;
        background-color: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }
    
    .navLink:hover,
    .navLink.active {
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
    
    .navLogo {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }
    
    .navLink::before {
        display: none;
    }
}

/* 平板端適配 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .navBig {
        padding: 0 4vw;
    }
    
    .navLeftImg {
        width: 65vw;
        background-image: url('../image/nav/leftT.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .navRightImg {
        width: 2vw;
        height: 2vw;
        margin-right: 1.5vw;
    }
    
    .navRightText {
        font-size: 1.2vw;
    }
    
    .navBottom {
        height: 6vh;
        gap: 0.8vw;
    }
    
    .navLogo {
        width: 1.5vw;
        margin-right: 0.3vw;
    }
    
    .navLink {
        font-size: 1vw;
    }
}

/* 橫屏手機適配 */
@media screen and (max-width: 768px) and (orientation: landscape) {
    body {
        padding-top: 2vh; /* 橫屏手機導航欄高度調整 */
    }
    
    .navOne {
        height: 6vh;
    }
    
    .navLeftImg {
        width: 65vw;
        height: 3vh;
        background-image: url('../image/nav/leftT.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .navBottom {
        top: 6vh;
        right: 0;
        width: 70vw;
        max-width: 350px;
        max-height: calc(100vh - 6vh - 20px);
        gap: 10px;
        padding: 15px 0;
        border-radius: 15px 0 0 15px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .navLink {
        width: 85%;
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .navLogo {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }
}