/* _content/NetTools.Web/Components/Layout/MainLayout.razor.rz.scp.css */
.app[b-ur391h98gc] {
    display: flex;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* ---------- 侧栏 ---------- */

.sidebar[b-ur391h98gc] {
    width: var(--sidebar-w);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* 侧栏自身不滚动：滚动条交给内部的 .nav-menu */
    overflow: hidden;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
}

.brand[b-ur391h98gc] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    height: var(--topbar-h);
    padding: 0 1.25rem;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border);
}

.brand-mark[b-ur391h98gc] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--brand), var(--brand-active));
    color: var(--text-inv);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.brand-text[b-ur391h98gc] {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
}

/* ---------- 主区 ---------- */

.main[b-ur391h98gc] {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 主区滚动容器：长内容（如首页工具列表）在此内部滚动，
   底部备案栏是它的兄弟节点，固定在视口底部且不覆盖内容。 */
.content-scroll[b-ur391h98gc] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.topbar[b-ur391h98gc] {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    height: var(--topbar-h);
    padding: 0 1.5rem;
    background: var(--bg-topbar);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-toggle[b-ur391h98gc] {
    display: none;
}

/* 桌面端把工具导航交给顶栏的 CategoryTabs，侧栏只在窄屏抽屉里使用。
   侧栏被隐藏后品牌无处安放，改由顶栏承载；窄屏下仍用侧栏顶部那份。 */
.brand-topbar[b-ur391h98gc] {
    display: none;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    margin-right: 0.35rem;
    padding-right: 0.9rem;
    border-right: 1px solid var(--border);
    text-decoration: none;
}

.brand-topbar .brand-text[b-ur391h98gc] {
    font-size: 0.95rem;
}

@media (min-width: 901px) {
    .sidebar[b-ur391h98gc],
    .nav-toggle[b-ur391h98gc] {
        display: none;
    }

    .brand-topbar[b-ur391h98gc] {
        display: inline-flex;
    }
}

.crumb[b-ur391h98gc] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: var(--text-2);
    min-width: 0;
}

.crumb-link[b-ur391h98gc] {
    color: var(--text-2);
    text-decoration: none;
    transition: color var(--t);
}

.crumb-link:hover[b-ur391h98gc] {
    color: var(--brand);
}

.crumb-group[b-ur391h98gc],
.crumb-sep[b-ur391h98gc] {
    color: var(--text-3);
}

.crumb strong[b-ur391h98gc] {
    color: var(--text);
    font-weight: 600;
}

.topbar-actions[b-ur391h98gc] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.scrim[b-ur391h98gc] {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(15, 21, 28, 0.45);
}

.content-body[b-ur391h98gc] {
    width: 100%;
    max-width: 1180px;
    padding: 1.5rem 1.75rem 3rem;
}

.site-footer[b-ur391h98gc] {
    flex-shrink: 0;
    padding: 0.7rem 1.75rem;
    font-size: 0.8rem;
    color: var(--text-3);
    background: var(--bg-page);
    border-top: 1px solid var(--border);
}

.site-footer a[b-ur391h98gc] {
    color: var(--text-3);
    text-decoration: none;
    transition: color var(--t);
}

.site-footer a:hover[b-ur391h98gc] {
    color: var(--brand);
}

.footer-sep[b-ur391h98gc] {
    margin: 0 0.5rem;
}

/* 公安备案徽标：与页脚文字（0.8rem ≈ 12.8px）对齐，
   源图 62×67，按比例缩到 16px 高，避免在深色页脚上显大。 */
.beian-icon[b-ur391h98gc] {
    width: 15px;
    height: 16px;
    vertical-align: -3px;
    margin-right: 0.2rem;
}

/* ---------- 窄屏：侧栏转为抽屉 ---------- */

@media (max-width: 900px) {
    .sidebar[b-ur391h98gc] {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 40;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: var(--shadow-lg);
    }

    .app[data-nav-open] .sidebar[b-ur391h98gc] {
        transform: none;
    }

    .app[data-nav-open] .scrim[b-ur391h98gc] {
        display: block;
    }

    .nav-toggle[b-ur391h98gc] {
        display: inline-flex;
    }

    .topbar[b-ur391h98gc] {
        padding: 0 1rem;
    }

    .content-body[b-ur391h98gc] {
        padding: 1.25rem 1rem 2.5rem;
    }

    .site-footer[b-ur391h98gc] {
        padding: 0.7rem 1rem;
    }
}
/* _content/NetTools.Web/Components/Layout/NavMenu.razor.rz.scp.css */
/* 侧栏导航：分组折叠后常态只有 7 行左右，overflow 仅作极端情况的兜底，
   正常情况下不会出现滚动条（如需保证任何情况都不滚动，可改为 visible）。 */
.nav-menu[b-74l8by1ni6] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.9rem 0.7rem 1.5rem;
}

.nav-standalone[b-74l8by1ni6],
.nav-group[b-74l8by1ni6],
.nav-items[b-74l8by1ni6] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

/* 分组标题兼折叠开关。用 div + role="button" 而非 <button>：
   app.css 里全局 button 有品牌底色、边框等样式，改回来要用更强的选择器相互覆盖，
   不如换成元素本身就没有默认按钮外观。 */
.nav-title[b-74l8by1ni6] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.42rem 0.7rem;
    margin-top: 0.3rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    color: var(--text-3);
    cursor: pointer;
    user-select: none;
    transition: color var(--t), background var(--t);
}

.nav-title:hover[b-74l8by1ni6] {
    color: var(--text-2);
    background: var(--bg-hover);
}

.nav-title:focus-visible[b-74l8by1ni6] {
    outline: none;
    box-shadow: 0 0 0 3px var(--brand-ring);
}

/* 折叠指示箭头：收起时指向右侧，展开时指向下方。 */
.nav-chevron[b-74l8by1ni6] {
    width: 5px;
    height: 5px;
    margin-right: 0.2rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform var(--t);
    flex-shrink: 0;
}

.nav-title[aria-expanded="true"] .nav-chevron[b-74l8by1ni6] {
    transform: rotate(45deg);
}

/* .nav-item 的规则位于全局 app.css：NavLink 渲染的 <a> 不带本组件的
   scope 属性，写在 scoped 文件中不会生效。此处仅保留带 scope 的元素。 */

.nav-icon[b-74l8by1ni6] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    color: var(--text-3);
    transition: color var(--t);
}

.nav-item:hover .nav-icon[b-74l8by1ni6] {
    color: var(--text-2);
}

.nav-item.active .nav-icon[b-74l8by1ni6] {
    color: var(--brand);
}
