.header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    z-index: 1000;
}

.mobile-nav {
    position: relative;
}

.hamburger {
    width: 30px;
    height: 30px;
    padding: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu {
    position: fixed;
    top: 50px;
    right: -100%;
    width: 60%;
    max-width: 300px;
    height: calc(100vh - 50px);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    padding: 20px;
}

.nav-menu.active {
    right: 0;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu a {
    display: block;
    padding: 12px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(66,153,225,0.1);
    color: #4299e1;
}

/* 汉堡按钮动画 */
.nav-menu.active ~ .hamburger .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-menu.active ~ .hamburger .bar:nth-child(2) {
    opacity: 0;
}

.nav-menu.active ~ .hamburger .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 480px) {
    .nav-menu {
        width: 70%;
    }
}