.bellIcon {
	font-size: 20px;
	cursor: pointer;
	padding: 8px;
	transition: all 0.3s;
	color: rgba(0, 0, 0, 65%);

	&:hover {
		color: #1890ff;
	}
}

// 确保红点样式明显
:global {
	.ant-badge-count,
	.ant-badge-dot {
		box-shadow: 0 0 0 1px #fff;
	}
}

.dropdownContent {
	width: 380px;
	max-height: 500px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 15%);
	display: flex;
	flex-direction: column;
}

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

	.title {
		font-size: 16px;
		font-weight: 500;
		color: #262626;
	}

	.count {
		font-size: 14px;
		color: #ff4d4f;
	}
}

.messageList {
	flex: 1;
	overflow-y: auto;
	max-height: 400px;
	padding: 8px;

	&::-webkit-scrollbar {
		width: 6px;
	}

	&::-webkit-scrollbar-thumb {
		background-color: rgba(0, 0, 0, 20%);
		border-radius: 3px;

		&:hover {
			background-color: rgba(0, 0, 0, 30%);
		}
	}
}

.messageItem {
	cursor: pointer;
	padding: 12px 16px;
	transition: background-color 0.3s;
	border-bottom: none;

	&:hover {
		background-color: #f5f5f5;
	}

	&.unread {
		background-color: #f6ffed;
	}
}

.messageContent {
	flex: 1;
}

.messageTitle {
	display: flex;
	align-items: center;
	font-size: 14px;
	font-weight: 500;
	color: #262626;
	margin-bottom: 4px;
	position: relative;
}

.unreadDot {
	display: inline-block;
	width: 6px;
	height: 6px;
	background-color: #ff4d4f;
	border-radius: 50%;
	margin-left: 8px;
}

.messageDesc {
	font-size: 13px;
	color: #595959;
	line-height: 1.5;
	margin-bottom: 4px;
	display: box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.messageTime {
	font-size: 12px;
	color: #8c8c8c;
}

.loadingWrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px 0;
}

.emptyWrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px 0;
}

.footer {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 12px 16px;
	border-top: 1px solid #f0f0f0;
	cursor: pointer;
	transition: background-color 0.3s;
	font-size: 14px;
	color: #1890ff;

	&:hover {
		background-color: #f5f5f5;
	}

	span {
		margin-right: 4px;
	}
}
