/* 头部样式 */
.site-header {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo区域 */
.logo-area {
    flex-shrink: 0;
}

.logo {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* 导航区域 */
.main-nav {
    flex: 1;
    margin: 0 40px;
}

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

.nav-item {
    margin-right: 40px;
}

.nav-link {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #1890ff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #1890ff;
}

/* 用户区域 */
.user-area {
    flex-shrink: 0;
}

.login-btn {
    background-color: #1890ff;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #40a9ff;
}

.user-logged {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-text {
    color: #333;
    font-size: 14px;
}

.welcome-text span {
    font-weight: 500;
    color: #1890ff;
}

.logout-btn {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* 登录弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 400px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
}

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

.modal-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

/* 登录标签 */
.login-tabs {
    width: 100%;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: color 0.3s ease;
}

.tab-btn.active {
    color: #1890ff;
    border-bottom: 2px solid #1890ff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 认证表单 */
.auth-form {
    width: 100%;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-btn {
    width: 100%;
    background-color: #1890ff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-btn:hover {
    background-color: #40a9ff;
}

/* 响应式 */
@media (max-width: 768px) {
    .header-content {
        height: 60px;
    }
    
    .main-nav {
        margin: 0 20px;
    }
    
    .nav-item {
        margin-right: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .logo-img {
        height: 35px;
    }
}
