/* Header样式 - 为首页创建 */
/* 包含头部、搜索栏、用户菜单、导航栏等相关样式 */

/* 头部样式 */
.header {
    background: white;
    border-bottom: 1px solid #e1e5e9;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #ff4500;
    text-decoration: none;
}

/* 搜索栏样式 */
.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

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

/* 用户菜单样式 */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1c1c1c;
}

.user-link {
    color: #1c1c1c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.user-link:hover {
    color: #ff4500;
    text-decoration: underline;
}

.user-karma {
    font-size: 12px;
    color: #878a8c;
}

/* 用户名和积分样式 */
.username {
    font-weight: 600;
    color: #1c1c1e;
}

.karma {
    color: #7c7c83;
    font-size: 12px;
}

/* 导航链接样式 */


/* 导航栏样式 */
.nav {
    background: white;
    border-bottom: 1px solid #e1e5e9;
    padding: 0 20px;
}

.nav-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    list-style: none;
    padding: 0;
}

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

.nav-link {
    display: block;
    padding: 12px 0;
    color: #7c7c83;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #0079d3;
    border-bottom-color: #0079d3;
}

/* 按钮样式 - header中使用的按钮 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #ff4500;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #ff4500;
    border: 1px solid #ff4500;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}