header {
    background-color: #333;
    color: #fff;
    padding: 15px 0;
}

.container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ccc;
}

.logo img {
    height: 40px; /* Adjust as needed */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Allows menu items to wrap to the next line if necessary */
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #666;
    text-decoration: none;
    padding: 5px 10px;
    display: block;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #575757;
    border-radius: 4px;
	color: #fff;
}


.swiper-image {
    height: 400px; /* PC端默认高度 */
}



/* 搜索框适配 */
@media (max-width: 767px) {
    .header-search .search-input {
        width: 180px;
        padding: 8px 12px;
        font-size: 14px;
    }
    .swiper-image {
        height: 250px; /* 移动端高度 */
        max-height: 60vh; /* 根据视口高度自适应 */
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #eee;
        padding: 0.8rem 0;
    }
    
    .main-nav a {
        display: block;
        padding: 0.5rem 1rem;
    }
    .member-links {
        margin-left: 10px;
    }
    .member-links .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
}
/* 通用激活状态 */
.nav-item.active > a,
.main-nav li.active > a {
    color: #007bff;
    font-weight: 600;
}
/* LOGO过渡效果 */
.header-logo {
    transition: all 0.3s ease;
}