/* 顶部导航 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1000;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 50px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    display: block;
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    margin-left: 30px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    height: 100%;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a.active {
    color: #fff;
    background-color: var(--primary-color);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }

.menu-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header .container {
        padding: 0 15px;
    }

    .logo img {
        height: 30px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: 0;
        background: #fff;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1001;
        overflow: hidden;
    }

    .nav.active {
        margin-left: -3px;
        height: auto;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        overflow: visible;
        border-radius: 6px;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        height: auto;
        width: 100%;
        margin: 0;
    }

    .nav li {
        width: 100%;
        height: auto;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav a {
        padding: 15px 20px;
        width: 100%;
        display: block;
        text-align: left;
    }

    .nav a:hover {
        background-color: rgba(146, 58, 48, 0.05);
    }

    .nav a.active {
        color: var(--primary-color);
        background-color: rgba(146, 58, 48, 0.1);
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0 10px;
    }

    .logo img {
        height: 25px;
    }

    .nav a {
        padding: 12px 15px;
        font-size: 14px;
    }
} 