/* 漂浮公告容器 - 全窗口适配 */
.float-notice {
	position: fixed;
	width: 600px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	z-index: 9999;
	overflow: hidden;
	left: 0;
	top: 0;
	right: auto;
	bottom: auto;
	transition: all 0.2s ease;
	border-left: 5px solid #3465cb;
}

/* 公告头部 */
.notice-header {
	padding: 12px 20px;
	background: #f8fdfa;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: move;
	user-select: none;
}

.notice-title {
	font-size: 16px;
	font-weight: 600;
	color: #3465cb;
	display: flex;
	align-items: center;
	gap: 8px;
}

.notice-close {
	width: 26px;
	height: 26px;
	line-height: 26px;
	text-align: center;
	border-radius: 50%;
	background: #e8f8ef;
	color: #e74c3c;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s;
}

.notice-close:hover {
	background: #e74c3c;
	color: #fff;
	transform: rotate(90deg);
}

/* 公告内容 */
.notice-content {
	padding: 18px 20px;
	font-size: 14px;
	color: #333;
	line-height: 1.7;
}

/* 入场动画 - 从窗口中心扩散 */
@keyframes fullScreenIn {
	0% {
		opacity: 0;
		transform: scale(0.5) translate(-50%, -50%);
		top: 50%;
		left: 50%;
	}
	100% {
		opacity: 1;
		transform: scale(1) translate(0, 0);
	}
}

.float-notice {
	animation: fullScreenIn 1s ease forwards;
}

/* 拖拽状态样式 */
.float-notice.dragging {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
	transform: scale(1.05);
}

/* 公告隐藏状态 */
.float-notice.hidden {
	display: none;
}