<style>
.alarm_wrap{
	position:relative;
	display:inline-block;
}
.alarm_head{
	cursor:pointer;
	position:relative;
	padding:8px 12px;
}
.alarm_badge{
	display:inline-block;
	min-width:18px;
	height:18px;
	line-height:18px;
	border-radius:9px;
	background:#d00;
	color:#fff;
	text-align:center;
	font-size:11px;
	margin-left:6px;
	padding:0 4px;
}
.alarm_panel{
	position:absolute;
	right:0;
	top:40px;
	width:360px;
	background:#fff;
	border:1px solid #ddd;
	border-radius:10px;
	box-shadow:0 4px 16px rgba(0,0,0,0.12);
	z-index:1000;
}
.alarm_panel_top{
	display:flex;
	justify-content:space-between;
	align-items:center;
	padding:14px;
	border-bottom:1px solid #eee;
}
.alarm_panel_body{
	max-height:420px;
	overflow:auto;
	padding:10px;
}
.alarm_item{
	padding:12px;
	border:1px solid #eee;
	border-radius:8px;
	margin-bottom:8px;
	cursor:pointer;
	background:#fafafa;
}
.alarm_item.unread{
	border-color:#222;
	background:#f5f5f5;
}
.alarm_title{
	font-weight:700;
}
.alarm_message{
	margin-top:6px;
	font-size:13px;
	color:#444;
}
.alarm_date{
	margin-top:6px;
	font-size:12px;
	color:#888;
}
.alarm_empty{
	padding:30px 10px;
	text-align:center;
	color:#888;
}
</style>