@media (max-width: 992px) {
    .sidebar {
        width: 70px;
    }
    .sidebar-logo, .menu-search input::placeholder, .menu-level-1 span, .menu-level-2 span {
        display: none;
    }
    .menu-search {
        padding: 0 10px 15px;
    }
    .menu-search input {
        padding: 8px;
        font-size: 0;
    }
    .menu-level-1, .menu-level-2 {
        justify-content: center;
        padding: 12px 0;
        margin: 0;
        border: none;
    }
    .menu-level-2.active::before {
        display: none;
    }
    .menu-level-2.active {
        background-color: #A8C1E8;
        border-radius: 50%;
        margin: 0 10px;
        width: 40px;
        height: 40px;
    }
    .title-nav {
        width: 140px;
    }
    .content-area {
        padding: 20px;
        margin: 10px;
    }
    .module-title {
        font-size: 24px;
    }
    .sub-title {
        font-size: 20px;
    }
    .code-title {
        font-size: 18px;
    }
}
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 200px;
        border-bottom: 1px solid #dee2e6;
        overflow-y: auto;
    }
    .menu-list {
        height: calc(200px - 120px);
    }
    .right-container {
        flex-direction: column;
        height: calc(100vh - 200px);
    }
    .title-nav {
        width: 100%;
        height: auto;
        max-height: 60px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    .title-group {
        flex-direction: row;
        padding: 0 10px;
        flex-wrap: nowrap;
    }
    .nav-group-title {
        display: none;
    }
    .title-item {
        margin: 0 5px;
        padding: 8px 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .title-item.code-anchor {
        padding-left: 12px;
    }
    .content-area {
        margin: 0;
        padding: 15px;
        height: calc(100vh - 260px);
        border-radius: 0;
        box-shadow: none;
    }
}
/* 修复极小屏适配 */
@media (max-width: 480px) {
    .content-area {
        padding: 15px 10px;
    }
    .data-table {
        font-size: 12px;
    }
    .data-table th, .data-table td {
        padding: 8px 10px;
    }
    .code-box {
        padding: 15px;
        font-size: 12px;
    }
}