/* ����ҳ����ʽ - ����ർ���� */
.nav-wrapper {
    display: flex;
    max-width: none;
    margin: -40px 0 0 0;
    gap: 0;
    padding: 0;
    min-height: 100vh;
}

/* ��ർ���� */
.nav-sidebar {
    width: 220px;
    min-width: 220px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--anzhiyu-card-bg);
    border: none;
    border-right: 1px solid var(--anzhiyu-card-border);
    border-radius: 0;
    padding: 20px 0px;
    box-shadow: none;
    z-index: 100;
}

/* �Զ����������ʽ */
.nav-sidebar::-webkit-scrollbar {
    width: 6px;
}

.nav-sidebar::-webkit-scrollbar-track {
    background: var(--anzhiyu-card-bg);
}

.nav-sidebar::-webkit-scrollbar-thumb {
    background: rgba(66, 90, 239, 0.3);
    border-radius: 3px;
}

.nav-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(66, 90, 239, 0.5);
}

.nav-sidebar-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #425AEF;
    margin-bottom: 20px;
    padding-bottom: 15px;
    padding-left: 5px;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 0 !important;
    margin-left: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.nav-menu li {
    margin-bottom: 0;
    position: relative;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.nav-menu li::before {
    display: none; /* �Ƴ�Ĭ�ϵ��б���� */
}

.nav-link {
    display: block;
    padding: 12px 15px 12px 0px;
    color: var(--anzhiyu-fontcolor);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.0em;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 4px;
    margin-left: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-link:last-child {
    border-bottom: none;
}

.nav-link:hover {
    background: rgba(66, 90, 239, 0.1);
    color: #425AEF;
    text-decoration: none;
}

.nav-link.active {
    background: rgba(66, 90, 239, 0.15);
    color: #5a7cff;
}

/* ǿ���Ƴ��κο��ܵ��б������ʽ */
.nav-menu, .nav-menu li, .nav-link {
    list-style-type: none !important;
    list-style: none !important;
}

.nav-menu li::marker {
    display: none;
}

.nav-menu li::before {
    display: none !important;
}

.nav-link:hover {
    background: rgba(66, 90, 239, 0.1);
    color: #425AEF;
    text-decoration: none;
}

.nav-link.active {
    background: rgba(66, 90, 239, 0.15);
    color: #5a7cff;
}

/* �Ҳ������� */
.nav-content {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 10px 30px 20px 30px;
    background: var(--anzhiyu-card-bg);
}

.nav-content h2 {
    color: var(--anzhiyu-fontcolor);
    font-size: 1.3em;
    font-weight: 600;
    margin: 30px 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #3b82f6;
    position: relative;
}

.nav-content h2:first-of-type {
    margin-top: 0px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.nav-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 30px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    aspect-ratio: 2.2/1;
}

.nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
    text-decoration: none;
    color: #333;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-card:hover::before {
    transform: scaleX(1);
}

.nav-icon {
    font-size: 1.8em;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #666;
    flex-shrink: 0;
}

.nav-content-wrapper {
    text-align: center;
    width: 100%;
}

.nav-title {
    font-size: 0.95em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.2;
    text-align: center;
}

.nav-desc {
    font-size: 0.75em;
    color: #666;
    line-height: 1.3;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

/* ��ɫģʽ���� */
[data-theme="dark"] .nav-card {
    background: #fff;
    border-color: #e5e7eb;
}

[data-theme="dark"] .nav-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

[data-theme="dark"] .nav-content h2 {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* ��Ӧʽ��� */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    
    .nav-sidebar {
        width: 100%;
        min-width: auto;
        position: static;
        order: -1;
        height: auto;
        background: var(--anzhiyu-card-bg);
        padding: 15px;
        border-right: none;
    }
    
    .nav-content {
        padding: 15px;
    }
    
    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
.nav-menu li {
    margin-bottom: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}    .nav-link {
        padding: 8px 12px;
        font-size: 0.8em;
    }
    
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .nav-card {
        padding: 15px 10px;
        min-height: 100px;
    }
    
    .nav-icon {
        font-size: 1.8em;
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }
    
    .nav-title {
        font-size: 0.9em;
        margin-bottom: 4px;
    }
    
    .nav-desc {
        font-size: 0.75em;
    }
    
    .nav-content h2 {
        font-size: 1.2em;
        margin: 25px 0 15px 0;
    }
}

@media (max-width: 480px) {
    .nav-wrapper {
        padding: 10px;
    }
    
    .nav-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .nav-card {
        padding: 10px;
        min-height: 60px;
    }
    
    .nav-icon {
        font-size: 1.4em;
        width: 35px;
        height: 35px;
    }
    
    .nav-title {
        font-size: 0.85em;
    }
    
    .nav-desc {
        font-size: 0.7em;
    }
}

/* �е���Ļ���� */
@media (max-width: 1200px) and (min-width: 769px) {
    .nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
