/* 导航栏样式 */
.main-nav {
	background-color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.main-nav .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.logo {
	display: flex;
	align-items: center;
}

.logo img {
	height: 36px;
	margin-right: 10px;
}

.logo h1 {
	font-size: 22px;
	color: #12b7f5;
	font-weight: 600;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 24px;
}

.nav-item {
	font-size: 16px;
	color: #333;
	position: relative;
	padding: 8px 0;
}

.nav-item:hover {
	color: #1890ff;
}

.nav-item::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #1890ff;
	transition: width 0.3s;
}

.nav-item:hover::after {
	width: 100%;
}

.user-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* 用户下拉菜单 */
.user-dropdown {
	position: relative;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
}

.user-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.user-name {
	font-size: 14px;
	color: #333;
}

.dropdown-content {
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 160px;
	background-color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	padding: 8px 0;
	display: none;
}

.user-dropdown:hover .dropdown-content {
	display: block;
}

.dropdown-content a {
	display: block;
	padding: 8px 16px;
	font-size: 14px;
	color: #333;
	transition: all 0.3s;
}

.dropdown-content a:hover {
	background-color: #f5f7fa;
	color: #1890ff;
}

.dropdown-content .post-btn {
	background-color: #1890ff;
	color: #fff;
	margin: 8px;
	text-align: center;
	border-radius: 4px;
}

.dropdown-content .post-btn:hover {
	background-color: #40a9ff;
}

/* 响应式导航 */
@media (max-width: 768px) {
	.nav-links {
		display: none;
	}

	.user-actions .btn {
		padding: 6px 12px;
		font-size: 14px;
	}
}