* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color:  rgba(66, 44, 133);
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.home-button,
.nav-buttons button {
    display: flex;
    align-items: center;
    padding: 10px 0px;
    background-color: transparent;
    color: #333;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.home-button svg,
.nav-buttons button svg {
    margin-right: 8px;
    width: 24px;
    height: 24px;
}

.home-button:hover,
.nav-buttons button:hover {
    color: #ff5722;
}

.search-bar {
    position: relative;
    flex: 1;
    margin: 0 20px;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 16px;
}

.search-bar button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

/* 小屏幕手机样式 */
@media (max-width: 768px) {
    .search-bar {
        position: relative;
        flex: 1;
    }

    .search-bar input {
        width: auto;
        height: 40px;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 20px;
        font-size: 16px;
    }

    .search-bar button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #333;
        font-size: 16px;
        cursor: pointer;
    }
    .nav-buttons {
        width: 100%;
        justify-content: space-around;
    }

    .nav-buttons button {
        padding: 10px;
        font-size: 14px;
    }
}