/* 所有浅色教务模块共用导航；菜单顺序与移动端折叠状态由原控制器管理。 */
body.theme-light .academic-sidebar {
    width: 204px;
    min-width: 204px;
    max-width: 204px;
    padding: 20px 12px;
    border-right: 1px solid #e5e1d7;
    background: #FAF9F5;
    color: #302e29;
    box-shadow: none;
    scrollbar-width: thin;
    scrollbar-color: #d6d1c5 transparent;
}

body.theme-light .academic-brand {
    min-height: 60px;
    gap: 10px;
    margin: 0 4px 14px;
    padding: 0 2px 17px;
    border-bottom: 1px solid #e9e5db;
    color: #302e29;
}

body.theme-light .academic-brand > span:last-child {
    min-width: 0;
}

body.theme-light .academic-brand-mark {
    flex: 0 0 32px;
    width: 32px;
    height: 34px;
    border: 1px solid #e3d9cc;
    border-radius: 9px;
    background: #F5F4ED;
    color: #C96442;
    font-family: var(--academic-font-mono);
    font-size: 11px;
    font-weight: 500;
    box-shadow: none;
}

body.theme-light .academic-brand strong {
    font-family: var(--academic-font-display);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.035em;
    white-space: nowrap;
}

body.theme-light .academic-brand small {
    margin-top: 5px;
    color: #777168;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .18em;
}

body.theme-light .academic-nav {
    gap: 4px;
    margin-top: 0;
}

body.theme-light .academic-nav button {
    position: relative;
    justify-content: flex-start;
    min-height: 40px;
    padding: 9px 12px;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #625f58;
    font-family: var(--academic-font-body);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: left;
    box-shadow: none;
    transform: none;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

body.theme-light .academic-nav button > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.theme-light .academic-nav button svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #7a766e;
    stroke-width: 1.7;
}

body.theme-light .academic-nav button:hover:not(:disabled) {
    border-color: #e7e2d7;
    background: #F5F4ED;
    color: #302e29;
    box-shadow: none;
    transform: none;
}

body.theme-light .academic-nav button.active {
    border-color: rgb(201 100 66 / 14%);
    background: rgb(201 100 66 / 8%);
    color: #ad5133;
    font-weight: 600;
    box-shadow: none;
}

body.theme-light .academic-nav button.active::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    border-radius: 2px;
    background: #C96442;
}

body.theme-light .academic-nav button.active svg {
    color: #C96442;
}

body.theme-light .academic-nav button.active:hover:not(:disabled) {
    border-color: rgb(201 100 66 / 24%);
    background: rgb(201 100 66 / 11%);
    color: #ad5133;
}

body.theme-light .academic-nav button:focus-visible,
body.theme-light .academic-sidebar-toggle:focus-visible {
    outline: 2px solid #C96442;
    outline-offset: 2px;
}

body.theme-light .academic-nav button:disabled {
    color: #a09a90;
    opacity: 1;
    cursor: default;
}

body.theme-light .academic-nav button:disabled svg {
    color: #a09a90;
}

body.theme-light .academic-sidebar-toggle {
    border: 1px solid #cfc8ba;
    border-radius: 8px;
    background: #FAF9F5;
    color: #625f58;
    box-shadow: 0 4px 16px rgb(48 46 41 / 10%);
}

body.theme-light .academic-sidebar-toggle:hover {
    border-color: #bfb5a5;
    background: #F5F4ED;
    color: #302e29;
}

@media (min-width: 861px) {
    body.theme-light .academic-shell {
        grid-template-columns: 204px minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    /* 不覆盖原有 translateX，展开/折叠仍由 sidebar-collapsed 控制。 */
    body.theme-light .academic-sidebar {
        box-shadow: 8px 0 28px rgb(48 46 41 / 10%);
    }
    body.theme-light .academic-shell.sidebar-collapsed .academic-sidebar {
        box-shadow: none;
    }
    body.theme-light .academic-nav button {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.theme-light .academic-sidebar,
    body.theme-light .academic-nav button {
        transition: none;
    }
}
