
.slide-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: red;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}

.slide-nav.active {
    right: 0;
    display:flex;
    flex-direction: column;
    justify-content: flex-end; /* 子元素靠底部对齐 */
}

.slide-nav ul {
    padding: 80px 0 0;
    margin: 0;
    list-style: none;

}

.slide-nav li a {
    display: block;
    padding: 15px 30px;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
}

.slide-nav li a:hover {
    background: rgba(222,0,0,0.5);
    color: #f1c40f;
}

.close-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #ecf0f1;
    font-size: 24px;
    cursor: pointer;
}

.slide-nav-toggle {
    position: fixed;
    right: 30px;
    bottom: 30px;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    background: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.slide-nav-toggle:hover {
    background: rgba(222,0,0,0.2);
    transform: scale(1.1);
}

.page-content {
   /* padding: 20px;*/
    transition: all 0.3s;
}

.page-content.shift-left {
    transform: translateX(-150px);
}
