/* css/header.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 头部导航样式 */
.header {
    width: 100%;
    height: 60px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: fixed;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 32px;
    margin-right: 10px;
}

.logo-text {
    color: #1890ff;
    font-size: 20px;
    font-weight: bold;
}

/* 导航菜单样式 */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 15px;
    position: relative;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding: 20px 0;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #1890ff;
}

/* 右侧功能区样式 */
.right-menu {
    display: flex;
    align-items: center;
}

/* 搜索框样式 */
.search-box {
    margin-right: 20px;
    position: relative;
}

.search-input {
    padding: 6px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login {
    background: #1890ff;
    color: #fff;
    border: none;
    margin-left: 10px;
}

.btn-login:hover {
    background: #40a9ff;
}

.btn-register {
    background: #fff;
    color: #1890ff;
    border: 1px solid #1890ff;
}

.btn-register:hover {
    background: #f0f5ff;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .header-container {
        padding: 0 10px;
    }
    
    .nav-menu {
        display: none; /* 在移动端隐藏导航菜单 */
    }
    
    .search-box {
        display: none; /* 在移动端隐藏搜索框 */
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}