/* ==================================================
   易学64 公共导航
   ================================================== */

.top-navbar,
.top-navbar *,
.mobile-nav-drawer,
.mobile-nav-drawer * {
    box-sizing: border-box;
}


/* ==================================================
   顶部导航
   ================================================== */

.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    width: 100%;

    height: 58px;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid #e7edf3;

    box-shadow:
        0 2px 10px rgba(31, 55, 80, 0.06);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);
}


.top-navbar-inner {

    width: 100%;

    max-width: 1200px;

    height: 58px;

    margin: 0 auto;

    padding: 0 16px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* ==================================================
   Logo
   ================================================== */

.nav-brand {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: #1e2b3c;

    text-decoration: none;

    font-size: 19px;

    font-weight: 700;

    letter-spacing: 0.5px;

    white-space: nowrap;
}


.nav-brand img {

    width: 32px;

    height: 32px;

    border-radius: 8px;

    object-fit: cover;

    display: block;
}


/* ==================================================
   PC导航
   ================================================== */

.desktop-nav {

    display: flex;

    align-items: center;

    gap: 8px;
}


.desktop-nav-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    height: 38px;

    padding: 0 14px;

    border: 1px solid transparent;

    border-radius: 9px;

    background: transparent;

    color: #40566d;

    font-size: 14px;

    font-weight: 500;

    font-family: inherit;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}


.desktop-nav-btn:hover {

    background: #f2f6fa;

    color: #1e3c5a;
}


.desktop-nav-btn.active {

    background: #eef4f9;

    color: #1e4d72;

    font-weight: 600;
}


/* ==================================================
   手机菜单按钮
   ================================================== */

.mobile-nav-btn {

    display: none;

    width: 40px;

    height: 40px;

    padding: 0;

    border: 1px solid #e0e7ee;

    border-radius: 9px;

    background: #ffffff;

    color: #2b4b6f;

    font-size: 22px;

    line-height: 1;

    cursor: pointer;

    align-items: center;

    justify-content: center;
}


/* ==================================================
   手机遮罩
   ================================================== */

.mobile-nav-overlay {

    display: none;

    position: fixed;

    inset: 0;

    z-index: 2100;

    background: rgba(20, 35, 50, 0.38);
}


.mobile-nav-overlay.show {

    display: block;
}


/* ==================================================
   手机右侧抽屉
   ================================================== */

.mobile-nav-drawer {

    position: fixed;

    top: 0;

    right: 0;

    bottom: 0;

    z-index: 2200;

    width: min(82vw, 320px);

    background: #ffffff;

    box-shadow:
        -8px 0 28px rgba(0, 0, 0, 0.12);

    transform: translateX(100%);

    transition:
        transform 0.22s ease;

    padding: 24px 18px;

    overflow-y: auto;
}


.mobile-nav-drawer.show {

    transform: translateX(0);
}


/* ==================================================
   手机Logo
   ================================================== */

.mobile-nav-brand {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 9px;

    padding: 12px 0 24px;

    border-bottom: 1px solid #edf1f5;
}


.mobile-nav-brand img {

    width: 54px;

    height: 54px;

    border-radius: 12px;

    object-fit: cover;
}


.mobile-nav-brand-name {

    color: #1e2b3c;

    font-size: 19px;

    font-weight: 700;
}


/* ==================================================
   手机菜单
   ================================================== */

.mobile-nav-links {

    display: flex;

    flex-direction: column;

    gap: 8px;

    padding-top: 18px;
}


.mobile-nav-link {

    display: flex;

    align-items: center;

    gap: 10px;

    width: 100%;

    min-height: 48px;

    padding: 0 14px;

    border: 1px solid #e7edf3;

    border-radius: 10px;

    background: #ffffff;

    color: #304a63;

    font-size: 15px;

    font-weight: 400;

    font-family: inherit;

    text-decoration: none;

    cursor: pointer;

    text-align: left;
}


.mobile-nav-link:hover {

    background: #f5f8fa;
}


.mobile-nav-link.active {

    background: #eef4f9;

    color: #1e4d72;

    font-weight: 600;
}


/* ==================================================
   手机端
   ================================================== */

@media (max-width: 768px) {

    .top-navbar {

        height: 54px;
    }


    .top-navbar-inner {

        height: 54px;

        padding: 0 12px;
    }


    .nav-brand {

        font-size: 17px;

        gap: 7px;
    }


    .nav-brand img {

        width: 30px;

        height: 30px;
    }


    .desktop-nav {

        display: none;
    }


    .mobile-nav-btn {

        display: inline-flex;
    }

}

.site-nav-spacer {
    height: 58px;
}

@media (max-width: 768px) {
    .site-nav-spacer {
        height: 54px;
    }
}

/* ==================================================
   易学64 公共底部
   ================================================== */

.site-footer {
    width: 100%;
    padding: 20px 12px;
    margin-top: 30px;
    text-align: center;
    color: #999;
    font-size: 13px;
    background: transparent;
}

.site-footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.6;
}

.site-footer a {
    color: #999;
    text-decoration: none;
}

.site-footer a:hover {
    color: #666;
    text-decoration: underline;
}

.footer-divider {
    color: #ccc;
}


/* ==================================================
   手机端
   ================================================== */

@media (max-width: 768px) {

    .site-footer {
        padding: 18px 10px;
        margin-top: 25px;
        font-size: 12px;
    }

    .site-footer-inner {
        gap: 6px;
    }

}