nav[login="false"] .header .btnWrap_pc li.loginshow {
    display: inline-block;
}
nav[login="false"] .header .btnWrap_m li.loginshow{
    display: block;
}
nav[login="true"] .header .btnWrap_pc li.logoutshow{
    display: inline-block;

    .topgroup_badge_box{
        display: none;
        position: relative;
        top: -1px;
        width: 42px;
        height: 42px;
        margin-right: 6px;
        vertical-align: middle;
        line-height: 42px;
    }
    .topgroup_badge_glow{
        position: absolute;
        top: 2px;
        right: 2px;
        bottom: 2px;
        left: 2px;
        border-radius: 50%;
        background: transparent;
        box-shadow: 0 0 8px rgba(255, 224, 118, 0.82), 0 0 16px rgba(245, 207, 96, 0.42);
        animation: topgroup_badge_glow 2.4s ease-in-out infinite;
    }
    .topgroup_badge{
        position: relative;
        z-index: 1;
        display: block;
        width: 42px;
        height: 42px;
        object-fit: contain;
        background: transparent;
    }
    .topgroup_badge_title{
        display: none;
    }
    b{
        color: #a8892a;
        background-color: #f8efd0;
        padding: 5px;
        border-radius: 5px;
        margin-right: 5px;
        font-weight: 400;
    }
    span{
        margin-right: 10px;
        color: #b59a3d;
        font-size: 15px;
        margin-left: 10px;
    }
}

nav[login="true"] .header .btnWrap_m li.logoutshow{
    display: block;

    .topgroup_badge_box{
        display: none;
        position: relative;
        top: -1px;
        width: 42px;
        height: 42px;
        margin-right: 7px;
        vertical-align: middle;
        line-height: 42px;
    }
    .topgroup_badge_glow{
        position: absolute;
        top: 2px;
        right: 2px;
        bottom: 2px;
        left: 2px;
        border-radius: 50%;
        background: transparent;
        box-shadow: 0 0 8px rgba(255, 224, 118, 0.82), 0 0 16px rgba(245, 207, 96, 0.42);
        animation: topgroup_badge_glow 2.4s ease-in-out infinite;
    }
    .topgroup_badge{
        position: relative;
        z-index: 1;
        display: block;
        width: 42px;
        height: 42px;
        object-fit: contain;
        background: transparent;
    }
    .topgroup_badge_title{
        display: none;
    }
    b{
        color: #a8892a;
        background-color: #f8efd0;
        padding: 5px;
        border-radius: 5px;
        margin-right: 5px;
        font-weight: 400;
    }
    span{
        margin-right: 10px;
        color: #b59a3d;
        font-size: 15px;
        margin-left: 10px;
    }
}


nav {


    .header{
        height: 60px;
        position: fixed;
        width: 100%;
        z-index: 10;
        top: 0px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
                border-bottom: 1px solid rgba(223, 192, 106, 0.38);


        &:after{
            content: '';
            display: block;
            background: linear-gradient(to bottom, rgba(255, 255, 255, 90) 0%, rgba(255, 255, 255, 0) 100%);
            width: 100%;
            height: 100px;
            pointer-events:none;
        }

        .logo_text{
            color: #484848;
            position: absolute;
            left: 0;
            top: 16px;
            font-size: 18px;
            text-align: center;
            width: 100%;
            text-align: left;
            left: 96px;
            letter-spacing: 5px;

            
        }
        .logo{
            background-color: #dfc06a;
            width: 27px;
            left: 44px;
            top: 10px;
            border-radius: 50px;
            padding: 6px;
            position: absolute;
            z-index: 1;
        }


        .btnWrap_m{
            position: absolute;
            right: 20px;
            top: 59px;
            width: calc(100% - 40px);
            background-color: #fbf7e8;
            z-index: 945;
            padding-bottom: 20px;
            padding-top: 20px;

            .toolbtn{
                border-top: 1px solid rgba(223, 192, 106, 0.38);
            }
         

            li{
                display: block;
                padding: 9px;
                cursor: pointer;
                font-size: 16px;
                color: #1a1a1a;
                text-align: left;
                padding-left: 30px;
                padding-right: 30px;
                

                &:hover{
                    background-color: #0000000d;
                }

                span{
                    vertical-align: middle;
                }

                .icon{
                    margin-right: 10px;
                    opacity: 0.7;
                    font-size: 21px;
                    color: #838383;
                }
            }

            li.loginshow{
                display: none;
            }

            li.logoutshow{
                display: none;
            }

        }



        .btnWrap_pc{
            position: absolute;
            right: 20px;
            

            .cp{
                max-width: 150px;
                display: inline-block;
                line-height: 1.2;
                font-size: 14px !important;
                text-align: right;
            }

            .toolbtn{
                border-left: 1px solid rgba(223, 192, 106, 0.38);
            }

            li{
                display: inline-block;
                padding: 18px;
                padding-bottom: 0;
                padding-top: 0;
                line-height: 60px;
                height: 60px;
                cursor: pointer;
                margin-right: -4px;
                margin-left: -4px;
                font-size: 15px;
                color: #3d3d3d;
                overflow: hidden;

                span{
                    vertical-align: middle;
                }

                .icon{
                    margin-right: 5px;
                    opacity: 0.7;
                    font-size: 21px;
                }
                

                &:hover{
                    background-color: #0000000d;
                }
            }

            li.loginshow{
                display: none;
            }

            li.logoutshow{
                display: none;
            }
        }

        m{

            .menu-icon{
                position: fixed;
                right: 0px;
                font-size: 12px;
                top: 5px;
                cursor: pointer;
                z-index: 950;
                padding: 24px;
                padding-left: 8px;
                padding-right: 17px;            
            }

            .menu-icon span {
                height: 2px;
                width: 21px;
                background-color: #bdbdbd;
                display: block;
                margin-left: 6px;
                position: relative; /* 加這行才能讓 before/after 定位 */
                transform-origin: center center;
                transition: width 0.25s ease, background-color 0.25s ease;
            }

            .menu-icon span::before,
            .menu-icon span::after {
                content: '';
                height: 2px;
                width: 27px;
                background-color: #bdbdbd;
                display: block;
                position: absolute;
                left: 0;
                margin-left: 0;
                transform-origin: center center;
                transition: all 0.3s ease;
            }

            .menu-icon span::before {
                top: -7px;
            }

            .menu-icon span::after {
                top: 7px;
            }

            .menu-icon.active span {
                width: 0;
                background-color: transparent;
            }

            .menu-icon.active span::before {
                left: 50%;
                margin-left: -21px;
                top: 0;
                transform: rotate(30deg);
            }

            .menu-icon.active span::after {
                left: 50%;
                margin-left: -21px;
                top: 0;
                transform: rotate(-30deg);
            }

        }

    }
    
}

.mobile_nav_blur_backdrop{
    position: fixed;
    top: 61px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 890;
    background-color: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

@keyframes topgroup_badge_glow {
    0% {
        box-shadow: 0 0 8px rgba(255, 224, 118, 0.82), 0 0 16px rgba(245, 207, 96, 0.42);
    }
    50% {
        box-shadow: 0 0 12px rgba(255, 224, 118, 1), 0 0 24px rgba(245, 207, 96, 0.72), 0 0 38px rgba(245, 207, 96, 0.32);
    }
    100% {
        box-shadow: 0 0 8px rgba(255, 224, 118, 0.82), 0 0 16px rgba(245, 207, 96, 0.42);
    }
}

.enterprise_float_guide_btn{
    position: fixed;
    top: 74px;
    right: 20px;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 320px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff8e8 0%, #f4e6b9 100%);
    box-shadow: 0 10px 24px rgba(197, 102, 36, 0.18);
    border: 1px solid #e5cf87;
    color: #a8892a;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    overflow: hidden;
    white-space: nowrap;

    .icon{
        font-size: 22px;
        flex-shrink: 0;
    }

    .text{
        display: none;
        font-size: 14px;
        line-height: 1.5;
        font-weight: 500;
        letter-spacing: 0.5px;
    }

    .text_mobile{
        display: none;
    }

    &.text_active{
        .text_pc{
            display: inline-block;
        }
    }

    &:hover{
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(183, 152, 56, 0.22);
        background: linear-gradient(135deg, #f2dfa3 0%, #d4b14e 100%);
    }
}


footer{
    padding-bottom: 40px;

    .btnwrap{
        text-align: left;
        font-size: 16px;
        position: relative;
        display: block;
        color: #2e2e2e;

        li{
            display: inline-block;
                        margin-right: 20px;

            span{
                    vertical-align: middle;
                
                
            }
            .icon{
                width: 36px;
                text-align: center;
                vertical-align: middle;

            }
            .i{
                vertical-align: middle;
                margin-right: 8px;
                font-size: 18px;
            }
        }

        .left{
            padding: 20px;
        }

        .right{
            position: absolute;
            text-align: right;
            right: 0;
            padding: 20px;
            top: 0;
        }
    }
}


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

    .enterprise_float_guide_btn{
        top: 84px;
        right: 12px;
        left: auto;
        max-width: 220px;
        padding: 11px 14px;
        border-radius: 12px;
        justify-content: flex-start;

        .text{
            font-size: 13px;
        }

        .text_pc{
            display: none;
        }

        .text_mobile{
            display: inline-block;
        }

        &.text_active{
            .text_pc{
                display: none;
            }

            .text_mobile{
                display: inline-block;
            }
        }
    }

    nav  .header  .logo {
        left: 20px;
    }

    nav .header{
        z-index: 900;
        background-color: rgba(255, 255, 255, 0.78);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    nav .header .logo_text{
        text-align: left;
        left: 70px;
        font-size: 16px;
        top: 17px;
    }

    .loginWrap  .loginbox {
        width: calc(100% - 120px);
        left: 20px;
    
    }

    footer  .btnwrap .right {
        position: relative;
        text-align: center;
        padding-top: 0;
    }
    footer  .btnwrap .left {
        text-align: center;
        border-bottom: 1px solid #e9e9e9;
        margin: 20px;
        margin-top: 0;
    }

    nav[login="true"] .header .btnWrap_m li.logoutshow {
        text-align: center;

        .topgroup_badge_box {
            top: 0;
            width: 90px;
            height: 116px;
            line-height: 1;
            margin: 0 auto 14px auto;
        }

        .topgroup_badge_glow {
            top: 14px;
            right: 14px;
            bottom: 14px;
            left: 14px;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.72), 0 0 32px rgba(255, 255, 255, 0.42);
            animation: topgroup_badge_glow_mobile 2.4s ease-in-out infinite;
            transform-origin: center center;
            will-change: opacity, transform, box-shadow;
        }

        .topgroup_badge {
            width: 90px;
            height: 90px;
        }

        .topgroup_badge_title {
            display: block;
            margin-top: 3px;
            color: #c19a2c;
            font-size: 14px;
            font-weight: 700;
            line-height: 1.25;
            letter-spacing: 1px;
            white-space: nowrap;
        }

        span {
            display: block;
            margin: 0 auto;
            max-width: 230px;
            text-align: center;
            line-height: 1.6;
            font-size: 16px;
        }

        b {
            color: #a8892a;
            background-color: #f8efd0;
            padding: 5px;
            border-radius: 5px;
            margin-right: auto;
            font-weight: 400;
            margin-top: 9px;
            display: inline-block;
            margin-left: auto;
            width: fit-content;
        }
    }
    nav {
        & .header {
            & .btnWrap_m {
                .toolbtn {
                    border-top: 1px solid rgba(223, 192, 106, 0.38);
                    padding-top: 13px;
                    margin-top: 10px;
                }
            }
        }
    }

}

@keyframes topgroup_badge_glow_mobile {
    0% {
        opacity: 0.58;
        transform: scale(0.82);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.72), 0 0 32px rgba(255, 255, 255, 0.42);
    }
    50% {
        opacity: 1;
        transform: scale(1.18);
        box-shadow: 0 0 16px rgba(255, 255, 255, 1), 0 0 34px rgba(255, 255, 255, 0.95), 0 0 54px rgba(255, 255, 255, 0.64);
    }
    100% {
        opacity: 0.58;
        transform: scale(0.82);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.72), 0 0 32px rgba(255, 255, 255, 0.42);
    }
}
