/* 复选框样式优化 */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2563eb;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.2s ease;
}

input[type="checkbox"]:hover {
    border-color: #2563eb;
    transform: scale(1.05);
}

input[type="checkbox"]:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

input[type="checkbox"]:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* 表格中的复选框特殊样式 */
table input[type="checkbox"] {
    margin: 0;
    vertical-align: middle;
}

/* 导航链接样式 */
.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2563eb;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: #2563eb;
    background-color: #eff6ff;
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* 导航栏统一样式 */
.navbar {
    width: 100%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.03); display: flex; align-items: center; justify-content: space-between; padding: 0 48px; height: 64px; position: sticky; top: 0; z-index: 10;
}
.navbar-title {
    font-size: 26px; font-weight: 700; color: #1677ff; letter-spacing: 1px; font-family: 'SF Pro Display', 'PingFang SC', Arial, sans-serif;
}
.navbar-menu {
    display: flex; gap: 36px;
}
.navbar-link {
    color: #1677ff; 
    font-size: 17px; 
    text-decoration: none; 
    padding: 4px 0; 
    font-weight: 500; 
    position: relative; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease, background 0.15s ease;
    opacity: 1;
    transform: translateY(0);
}
.navbar-link:hover {
    color: #145bcc;
}
.navbar-link.active {
    font-weight: 700;
    color: #2563eb !important;
    background: #f0f6ff;
    border-radius: 4px 4px 0 0;
    position: relative;
}
.navbar-link.active::after {
    content: ""; 
    display: block; 
    height: 3px; 
    border-radius: 2px; 
    background: #2563eb; 
    position: absolute; 
    left: 0; 
    right: 0; 
    bottom: -3px;
}
.navbar-brand {
    font-size: 2rem;
    font-weight: 800;
    color: #1677ff;
    letter-spacing: 2px;
    line-height: 1;
    display: inline-block;
}

/* 导航栏优化样式 - 减少视觉断层 */
.navbar-menu {
    display: flex; 
    gap: 36px;
    min-height: 20px; /* 确保骨架屏有足够高度 */
}

/* 骨架屏样式优化 - 极速加载体验 */
.skeleton-menu-item {
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 0.8s ease-in-out infinite;
    border-radius: 4px;
    height: 20px;
    width: 80px;
    opacity: 0.4;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes skeleton-loading {
    0% { 
        background-position: 200% 0; 
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
    }
    100% { 
        background-position: -200% 0; 
        opacity: 0.4;
    }
}

/* 菜单项平滑过渡 - 极速无缝切换 */

/* 加载状态优化 */
.navbar-menu.loading {
    opacity: 0.7;
}

/* 响应式优化 */
@media (max-width: 700px) {
    .navbar { flex-direction: column; height: auto; padding: 0 12px; }
    .navbar-menu { gap: 18px; }
    
    /* 移动端复选框稍微小一点 */
    input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
    
    /* 移动端骨架屏调整 - 极速体验 */
    .skeleton-menu-item {
        width: 60px;
        height: 18px;
        animation: skeleton-loading 0.6s ease-in-out infinite;
    }
} 