/* 基础布局样式 */
.header {
    width: 100%;
    background: #fff;
}

.header-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.left-container {
    display: flex;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 移动端导航样式 */
.mobile-nav-btn {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    width: 24px;
    height: 20px;
    position: relative;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.mobile-nav-content {
    padding: 20px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.mobile-search-box {
    margin-bottom: 20px;
    position: relative;
}

.mobile-search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin-bottom: 10px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: #f0f0f0;
    color: #007bff;
}

.mobile-dropdown-toggle {
    display: block;
    position: relative;
    padding-right: 30px;
}



.mobile-dropdown-menu {
    display: none;
    margin-top: 5px;
    margin-left: 15px;
}

.mobile-dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-dropdown-menu li {
    margin-bottom: 5px;
}

.mobile-dropdown-menu a {
    display: block;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.mobile-dropdown-menu a:hover {
    background: #e8e8e8;
    color: #007bff;
}

.mobile-nav-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.mobile-login-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    border: 1px solid #007bff;
    border-radius: 4px;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-regist-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: #007bff;
    border: 1px solid #007bff;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-login-btn:hover {
    background: rgba(0,123,255,0.1);
}

.mobile-regist-btn:hover {
    background: #0069d9;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .mobile-nav-btn {
        display: block;
    }
    
    .nav {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
    
    .header-content {
        justify-content: space-between;
    }
    
    .login-logo img {
        max-height: 30px;
    }
}

@media (min-width: 769px) {
    .mobile-nav-menu {
        display: none;
    }
}