/* 自定义样式 */
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: #f3f4f6;
    color: #2563eb;
    border-left-color: #2563eb;
}

.nav-item.active {
    background-color: #eff6ff;
    color: #2563eb;
    border-left-color: #2563eb;
    font-weight: 600;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

/* 导航分组样式 */
.nav-group {
    margin-top: 8px;
}

.nav-item-group {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
}

.nav-item-group i {
    width: 20px;
    text-align: center;
}

.nav-submenu {
    padding-left: 20px;
    background-color: #f9fafb;
}

.nav-subitem {
    display: block;
    padding: 10px 20px 10px 40px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-subitem:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

.nav-subitem.active {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 600;
    border-left: 3px solid #2563eb;
    padding-left: 37px;
}

/* 表格样式优化 */
table {
    border-collapse: separate;
    border-spacing: 0;
}

table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f9fafb;
}

table tbody tr {
    transition: background-color 0.2s ease;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 模态框动画 */
#detailModal {
    animation: fadeIn 0.3s ease;
}

#detailModal > div {
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 卡片悬停效果 */
.bg-white.rounded-lg.shadow-sm {
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.bg-white.rounded-lg.shadow-sm:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 按钮过渡效果 */
button {
    transition: all 0.2s ease;
}

/* 输入框焦点效果 */
input:focus,
select:focus {
    outline: none;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .nav-item {
        padding: 10px 15px;
        font-size: 14px;
    }
}


