/* 评论发送成功弹窗样式 */
.csp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.csp-overlay.csp-show {
	opacity: 1;
	visibility: visible;
}

.csp-dialog {
	position: relative;
	width: 100%;
	max-width: 360px;
	background: #fff;
	border-radius: 18px;
	padding: 28px 24px 24px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	transform: translateY(18px) scale(0.96);
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.csp-overlay.csp-show .csp-dialog {
	transform: translateY(0) scale(1);
}

.csp-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--csp-accent, #ff7eb3);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: csp-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.csp-icon svg {
	width: 32px;
	height: 32px;
	fill: none;
	stroke: #fff;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.csp-icon svg path {
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	animation: csp-draw 0.45s ease forwards;
	animation-delay: 0.15s;
}

.csp-title {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 700;
	color: #2b2b2b;
	line-height: 1.4;
}

.csp-message {
	margin: 0;
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	word-break: break-word;
}

.csp-note {
	margin: 12px 0 0;
	font-size: 12px;
	color: #999;
	line-height: 1.5;
}

.csp-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 28px;
	height: 28px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	color: #aaa;
	border-radius: 50%;
	transition: background 0.2s, color 0.2s;
}

.csp-close:hover {
	background: #f2f2f2;
	color: #555;
}

.csp-confirm {
	display: inline-block;
	margin-top: 18px;
	padding: 9px 34px;
	border: none;
	border-radius: 999px;
	background: var(--csp-accent, #ff7eb3);
	color: #fff;
	font-size: 15px;
	cursor: pointer;
	transition: filter 0.2s, transform 0.1s;
}

.csp-confirm:hover {
	filter: brightness(0.95);
}

.csp-confirm:active {
	transform: scale(0.97);
}

@keyframes csp-pop {
	0% {
		transform: scale(0.4);
		opacity: 0;
	}
	60% {
		transform: scale(1.12);
		opacity: 1;
	}
	100% {
		transform: scale(1);
	}
}

@keyframes csp-draw {
	to {
		stroke-dashoffset: 0;
	}
}

/* 深色模式适配 */
body.dark .csp-dialog {
	background: #2b2b2b;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

body.dark .csp-title {
	color: #f0f0f0;
}

body.dark .csp-message {
	color: #b0b0b0;
}

body.dark .csp-note {
	color: #888;
}

body.dark .csp-close:hover {
	background: #3a3a3a;
	color: #ddd;
}
