/* --- 基礎設定 --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
html { 
    scroll-behavior: smooth; 
}
body { 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    color: #2d2d2d;
    font-family: 'Noto Sans TC', "Microsoft JhengHei", "微軟正黑體", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*  Footer 留在底部 */
main { flex: 1; }

/* --- Navbar 樣式 --- */
.navbar-wrapper {
    background: #fff;
    height: 70px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 0 20px;
}

.nav-links { 
    display: flex; 
    list-style: none; 
    height: 100%; 
    margin-bottom: 0;
}
.nav-links a {
    display: flex;
    align-items: center; 
    height: 70px; 
    padding: 0 15px;
    text-decoration: none;
    color: #2d2d2d;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

/* 橘色底線貼在最下方 */
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #ff8200;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { 
    color: #ff8200; 
}
.nav-links a:hover::after, .nav-links a.active::after { 
    transform: scaleX(1); 
}

/* --- 漢堡鈕與叉叉動畫 --- */
.hamburger { 
    display: none; 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 10px; 
    z-index: 50; 
}
.hamburger .line { 
    display: block; 
    /* width: 25px;  */
    width: 30px;
    height: 3px; 
    background: #333; 
    margin: 6px 0; 
    transition: 0.3s; 
}
.hamburger.open .line:nth-child(1) { 
    transform: translateY(9px) rotate(45deg); 
}
.hamburger.open .line:nth-child(2) { 
    opacity: 0; 
}
.hamburger.open .line:nth-child(3) { 
    transform: translateY(-8px) rotate(-45deg); 
}

/* --- 內容區塊 --- */
.content-section { 
    min-height: 100vh; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    scroll-margin-top: 70px; 
}
.bg-light { 
    background: #f8f9fa; 
}

/* --- Footer 樣式 (補回處) --- */
.obank-footer {
    width: 100%;
    background: #ff8200;
    color: #ffffff;
    text-align: center;
    padding: 30px 0;
    margin-top: auto; 
}

.obank-footer p {
    margin: 5px 0;
    font-size: 14px;
}

/* --- RWD --- */
@media screen and (max-width: 1250px) {
    .hamburger { 
        display: block; 
    }
    .nav-menu { 
        position: fixed; 
        top: 70px; 
        right: -100%; 
        width: 100%; 
        background: #fff; 
        transition: 0.4s; 
        height: calc(100vh - 70px); 
    }
    .nav-menu.active { 
        right: 0; 
    }
    .nav-links { 
        flex-direction: column; 
    }
    .nav-links a { 
        height: 60px; 
        justify-content: flex-start; 
        padding-left: 40px; 
        border-bottom: 1px solid #eee; 
    }
}


/* --------------top按鈕開始---------------- */
/* --- 回到頂部按鈕樣式 舊款 --- */
/* .back-to-top {
    position: fixed;
    bottom: 30px;      
    right: 30px;      
    width: 50px;       
    height: 50px;    
    z-index: 999;
    opacity: 0;        
    visibility: hidden;
    transition: all 0.3s ease; 
}

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

.back-to-top img {
    width: 100%;
    height: auto;
    display: block;
}

.back-to-top:hover {
    transform: translateY(-5px); 
} */


/* ----------top按鈕開始--- 懸浮選單外框 ------------------ */
.floating-menu {
    position: fixed;
    bottom: 40px; 
    right: 25px; 
    display: flex;
    flex-direction: column;
    gap: 12px; 
    z-index: 9999; 
}

/* ------------- 單個懸浮按鈕控制 ------------------ */
.float-btn {
    display: block;
    width: 75px; 
    height: 75px; 
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;


    outline: none;
    -webkit-tap-highlight-color: transparent;
}


.float-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.float-btn:hover {
    transform: translateY(-3px) scale(1.05); 
    filter: brightness(1.1);
}


.float-btn:active {
    transform: translateY(0) scale(0.95);
}


@media (max-width: 768px) {
    .floating-menu {
    bottom: 25px; 
    right: 15px;
    gap: 8px; 
    }

    .float-btn {
    width: 60px; 
    height: 60px;
    }
}