/* 侧边栏导航样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80px;
    background: rgba(32, 32, 32, 0.95);
    filter: saturate(10%);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sidebar.hidden {
    transform: translateX(-80%);
    opacity: 0.3;
}

.sidebar:hover {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

.logo {
    margin-bottom: 3rem;
}

.logo a {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-color);
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 1;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.6;
}

.nav-links a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* 工具提示样式 */
.nav-links a::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-left: 15px;
    pointer-events: none;
}

.nav-links a:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 活动状态样式 */
.nav-links a.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 1.5rem 0;
    }

    .logo a {
        font-size: 1.5rem;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.6rem;
    }
}

/* 确保主内容区域不被侧边栏遮挡 */
main {
    margin-left: 80px;
}

@media (max-width: 768px) {
    main {
        margin-left: 60px;
    }
}
