/* 页面切换动画样式 */
.page {
    display: none;
    position: relative;
    transition: all 0.4s ease;
}

.page.active {
    display: block;
}

.page-enter {
    animation: fadeInRight 0.4s ease forwards;
}

.page-leave {
    animation: fadeOutLeft 0.4s ease forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* PC端导航样式 */
@media (min-width: 1024px) {
    .mobile-nav {
        display: none; /* 在PC端隐藏底部导航 */
    }
    
    .pc-side-nav {
        position: fixed;
        left: 50%;
        top: 50%;
        /* 正确计算位置，使导航右侧紧贴内容区域左侧边缘 */
        transform: translate(calc(-50% - 290px)); 
        height: auto;
        max-height: 80vh;
        /* width: 150px; 明确设置宽度 */
        width: auto;
        z-index: 999;
        transition: all 0.3s ease;
        background: transparent;
        padding: 10px;
    }
    
    /* 内容区域左侧留出导航空间 */
    .container {
        margin-left: auto;
        margin-right: auto;
        max-width: 480px;
        transition: all 0.3s ease;
    }
    
    .pc-nav-item {
        margin-bottom: 5px;
        border-radius: 10px;
        transition: all 0.2s ease;
    }
    
    .pc-nav-item:hover {
        transform: translateX(5px);
    }
    
    .pc-nav-item.active {
        color: #FF7F50;
        background: linear-gradient(135deg, rgba(255, 127, 80, 0.1) 0%, rgba(255, 127, 80, 0.2) 100%);
        border-left: 3px solid #FF7F50;
    }
    
    .pc-nav-item svg {
        transition: all 0.2s ease;
    }
    
    .pc-nav-item:hover svg {
        transform: scale(1.1);
    }
}