@media (min-width: 768px) {
    .nav-wrapper {
        display: flex;
        gap: 16px;
        max-width: 1300px;
        padding: 24px 20px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-sidebar {
        width: 240px;
        flex-shrink: 0;
    }
    
    .nav-sidebar-card {
        background: #fff;
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }
    
    .nav-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .nav-expand-btn {
        display: none;
    }
    
    .nav-sidebar-title {
        font-size: 16px;
        font-weight: 700;
        color: #1a1a2e;
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-sidebar-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .nav-sidebar-item {
        padding: 8px 14px;
        border-radius: 10px;
        cursor: pointer;
        font-size: 14px;
        color: #555;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .nav-sidebar-item:hover {
        background: #f5f7fa;
        color: #667eea;
        transform: translateX(4px);
    }
    
    .nav-sidebar-item.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        font-weight: 500;
    }
    
    .nav-sidebar-item::before {
        content: '';
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: currentColor;
        opacity: 0.6;
    }
    
    .nav-sidebar-item.active::before {
        background: white;
        opacity: 1;
    }
    
    .nav-content {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .nav-section {
        margin-bottom: 20px;
        scroll-margin-top: 20px;
    }
    
    .nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-category-title {
        font-size: 18px;
        font-weight: 700;
        color: #1a1a2e;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .nav-category-title::before {
        content: '';
        width: 3px;
        height: 16px;
        background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
        border-radius: 2px;
    }
    
    .nav-count {
        font-size: 13px;
        color: #999;
        font-weight: 400;
    }
    
    .nav-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .nav-card {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 10px;
        background: #fff;
        border-radius: 12px;
        text-decoration: none;
        color: #333;
        transition: all 0.3s;
        border: 1px solid #f0f0f0;
        min-height: 80px;
        height: 80px;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .nav-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
        border-color: #667eea;
    }
    
    .nav-card-logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: #fff;
        padding: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 18px;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }
    
    .nav-card-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .nav-card-content {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        overflow: hidden;
    }
    
    .nav-card-name {
        font-size: 14px;
        font-weight: 600;
        color: #1a1a2e;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-card-desc {
        font-size: 12px;
        color: #888;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-card.hidden {
        display: none;
    }
    
    .show-more-btn {
        margin-top: 16px;
        padding: 14px 32px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        font-size: 15px;
        font-weight: 500;
        transition: all 0.3s;
    }
    
    .show-more-btn:hover {
        opacity: 0.9;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }
    
    .show-more-btn:active {
        transform: translateY(0);
    }
    
    .page-header {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .nav-wrapper {
        flex-direction: column;
    }
    .nav-sidebar {
        width: 100%;
    }
    .nav-sidebar-card {
        position: static;
    }
    .nav-sidebar-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        padding-bottom: 80px;
        padding-top: 0;
    }
    
    .nav-sidebar {
        margin-bottom: 20px;
        background: #f0f2f5;
        padding: 8px 12px;
        margin: 0 -16px 20px -16px;
    }
    
    .nav-sidebar-card {
        background: #fff;
        border-radius: 14px;
        padding: 10px 12px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        max-width: 100%;
        margin: 0 auto;
    }
    
    .nav-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 2px solid #f0f0f0;
    }
    
    .nav-expand-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: #f5f7fa;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.2s;
        flex-shrink: 0;
    }
    
    .nav-expand-btn:hover {
        background: #e8ecff;
    }
    
    .nav-expand-btn .expand-icon {
        display: block;
        width: 16px;
        height: 16px;
        position: relative;
    }
    
    .nav-expand-btn .expand-icon::before,
    .nav-expand-btn .expand-icon::after {
        content: '';
        position: absolute;
        background: #667eea;
        transition: transform 0.3s ease;
    }
    
    .nav-expand-btn .expand-icon::before {
        top: 50%;
        left: 4px;
        right: 4px;
        height: 2px;
        transform: translateY(-50%);
    }
    
    .nav-expand-btn .expand-icon::after {
        left: 50%;
        top: 4px;
        bottom: 4px;
        width: 2px;
        transform: translateX(-50%);
    }
    
    .nav-expand-btn.expanded .expand-icon::after {
        transform: translateX(-50%) rotate(90deg);
        opacity: 0;
    }
    
    .nav-sidebar-title {
        font-size: 14px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0;
        padding: 0;
        border-bottom: none;
    }
    
    .nav-sidebar-list {
        display: flex;
        flex-direction: row;
        gap: 8px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        flex-wrap: wrap;
        max-height: 44px;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-sidebar-list.expanded {
        max-height: 500px;
        overflow-y: auto;
    }
    
    .nav-sidebar-item {
        padding: 8px 12px;
        border-radius: 20px;
        cursor: pointer;
        font-size: 13px;
        color: #555;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 8px;
        background: #f5f7fa;
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .nav-sidebar-item:hover {
        background: #e8ecff;
        color: #667eea;
    }
    
    .nav-sidebar-item.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        font-weight: 500;
    }
    
    .nav-sidebar-item::before {
        display: none;
    }
    
    .nav-content {
        flex: 1;
        min-width: 0;
    }
    
    .nav-section {
        margin-bottom: 20px;
        scroll-margin-top: 20px;
        background: #fff;
        border-radius: 16px;
        padding: 16px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }
    
    .nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .nav-category-title {
        font-size: 18px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .nav-category-title::before {
        content: '';
        width: 4px;
        height: 20px;
        background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
        border-radius: 2px;
    }
    
    .nav-count {
        font-size: 13px;
        color: #999;
        font-weight: 400;
    }
    
    .nav-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .nav-card {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 12px;
        background: #f8f9fb;
        border-radius: 12px;
        text-decoration: none;
        color: #333;
        transition: all 0.3s ease;
        border: none;
        height: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .nav-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        background: #fff;
    }
    
    .nav-card-logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: #fff;
        padding: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 18px;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }
    
    .nav-card-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .nav-card-content {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        overflow: hidden;
    }
    
    .nav-card-name {
        font-size: 14px;
        font-weight: 600;
        color: #1a1a2e;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-card-desc {
        font-size: 12px;
        color: #888;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-card.hidden {
        display: none;
    }
    
    .show-more-btn {
        margin-top: 14px;
        padding: 10px 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s;
        width: 100%;
    }
    
    .show-more-btn:hover {
        opacity: 0.9;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(102,126,234,0.4);
    }
    
    .show-more-btn:active {
        transform: translateY(0);
    }
    
    .page-header {
        display: none !important;
    }
}
