/* ============================================================
   Tools 专用 - Arco Design 官网风格导航 + 布局
   参考 https://arco.design/react/docs/start
   覆盖 css/header.css 的侧栏布局
   ============================================================ */

/* ===== 顶部导航栏 — Arco Design 官网风格 ===== */
.shared-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 60px;
    background: #FFFFFF;
    border-right: none;
    border-bottom: 1px solid #E5E6EB;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
    box-sizing: border-box;
    gap: 0;
}

/* ===== 主内容区域 — 纯白背景，无网格 ===== */
.page-content {
    margin-left: 0;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    padding: 32px 40px;
    max-width: 100%;
    background-color: #FFFFFF;
    background-image: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
}

/* ===== 桌面端 Logo — Arco 风格：左对齐 logo + 文字 ===== */
.nav-logo-desktop {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    flex-shrink: 0;
    padding: 0;
    margin-right: auto;
}

.nav-logo-desktop .logo-img {
    width: 28px;
    height: 28px;
}

.nav-logo-desktop .nav-logo-brand {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
}

.nav-logo-desktop .nav-logo-sub {
    font-size: 16px;
    font-weight: 600;
    color: #1D2129;
    line-height: 24px;
    white-space: nowrap;
    font-family: var(--font-en);
}

.nav-logo-desktop .nav-logo-text {
    font-size: 14px;
    font-weight: 400;
    color: #4E5969;
    white-space: nowrap;
    line-height: 22px;
}

/* 无分隔线 */
.nav-logo-desktop::after {
    display: none;
}

/* ===== 导航列表 — 靠右纯文字链接 ===== */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
    margin-left: auto;
    flex: none;
}

/* 导航分隔线 */
.nav-divider {
    width: 1px;
    height: 16px;
    background: #E5E6EB;
    margin: 0 8px;
    flex-shrink: 0;
}

.nav-list + .nav-list {
    margin-left: 0;
}

/* ===== 导航项 — Arco 官网风格：纯文字，hover 变蓝 ===== */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0;
    width: auto;
    height: 60px;
    padding: 0 16px;
    border-radius: 0;
    color: #4E5969;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    transition: color 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
    border: none;
    background: transparent;
    white-space: nowrap;
}

.nav-item:hover {
    color: #165DFF;
    background-color: transparent;
}

/* 选中态 — Arco 风格：蓝色文字，无背景无下划线 */
.nav-item.active {
    color: #165DFF;
    font-weight: 500;
    border-radius: 0;
    background: transparent;
}

.nav-item.active::after {
    display: none;
}

.nav-item.active .nav-icon-img {
    filter: none;
}

/* 导航图标 — 隐藏（已从 HTML 移除但留保险） */
.nav-icon-img {
    display: none;
}

.nav-label {
    white-space: nowrap;
    line-height: 1;
}

/* ===== [DESKTOP-ONLY] 注释掉的响应式代码 =====
/* [DESKTOP-ONLY] Commented out responsive code:
@media (max-width: 1023px) {
    .shared-nav {
        padding: 0 16px;
    }

    .nav-logo-desktop {
        margin-right: auto;
    }

    .nav-item {
        padding: 0 12px;
        font-size: 14px;
    }
}
*/

/* ===== 手机端 (< 768px) ===== */
/* [DESKTOP-ONLY] Commented out responsive code:
@media (max-width: 767px) {
    .shared-nav {
        width: 100%;
        height: auto;
        max-height: 60px;
        left: 0;
        top: 0;
        flex-direction: row;
        padding: 0 16px;
        border-right: none;
        border-bottom: 1px solid #E5E6EB;
        background: #FFFFFF;
        overflow: hidden;
        transition: max-height 0.3s ease;
        flex-wrap: wrap;
    }

    .shared-nav.open {
        max-height: 100vh;
    }

    .nav-logo-desktop,
    .shared-nav.open .nav-logo-desktop {
        display: flex !important;
        margin-right: 0;
        flex: 0;
    }

    .nav-menu-btn {
        display: flex;
    }

    .shared-nav:not(.open) .nav-list {
        display: none;
    }

    .shared-nav.open .nav-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 4px 0;
        gap: 0;
        flex: 100%;
        border-top: 1px solid #E5E6EB;
    }

    .nav-list + .nav-list {
        margin-left: 0;
        border-top: none;
        padding-top: 0;
    }

    .nav-item {
        width: 100%;
        height: 44px;
        padding: 0 16px;
        border-radius: 0;
    }

    .nav-divider {
        width: 100%;
        height: 1px;
        background: #E5E6EB;
        margin: 4px 16px;
    }

    .nav-item:hover {
        background-color: #F2F3F5;
    }

    .nav-item.active {
        background-color: #F2F3F5;
    }

    .nav-label {
        font-size: 14px;
    }

    .page-content {
        margin-left: 0;
        margin-top: 60px;
        padding: 20px 16px 16px;
        max-width: 100%;
        overflow-x: clip;
        gap: 16px;
    }
}
*/
