/**
 * 欢迎窗口样式
 */

/* 遮罩层 */
.decade-welcome-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.5s ease-in-out;
}

/* 对话框容器 */
.decade-welcome-dialog {
	position: relative;
	width: 70%;
	height: 80%;
	max-width: 900px;
	max-height: none;
	background: linear-gradient(135deg, #ff9a9e 0%, #fcb69f 50%, #ffecd2 100%);
	border-radius: 20px;
	padding: 0 40px;
	box-shadow: 0 20px 60px rgba(255, 154, 158, 0.5);
	animation: slideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* 装饰性背景图案 */
.decade-welcome-pattern {
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
	background-size: 30px 30px;
	opacity: 0.5;
	pointer-events: none;
}

/* 作者头像 */
.decade-welcome-dialog .author-avatar {
	position: absolute;
	top: 30px;
	right: 30px;
	cursor: pointer;
	border-radius: 50%;
	width: 70px;
	height: 70px;
	box-shadow: 0 5px 15px rgba(255, 154, 158, 0.5);
	transition: all 0.3s ease;
	z-index: 10;
}

.decade-welcome-dialog .author-avatar:hover {
	transform: scale(1.1) rotate(5deg);
	box-shadow: 0 8px 20px rgba(255, 154, 158, 0.7);
}

/* 说话气泡 */
.decade-welcome-bubble {
	position: absolute;
	top: 40px;
	right: 115px;
	background: #fff;
	color: #ff6b9d;
	padding: 12px 20px;
	border-radius: 20px;
	font-size: 16px;
	font-weight: bold;
	box-shadow: 0 5px 15px rgba(255, 154, 158, 0.4);
	white-space: nowrap;
	z-index: 11;
	animation: bubbleBounce 2s ease-in-out infinite;
	cursor: pointer;
	transition: all 0.3s ease;
}

.decade-welcome-bubble:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 20px rgba(255, 154, 158, 0.6);
}

/* 欢迎文本 */
.decade-welcome-text {
	position: relative;
	color: #fff;
	line-height: 1.8;
	font-size: 16px;
	word-wrap: break-word;
	text-shadow: 0 2px 6px rgba(255, 105, 135, 0.4);
	overflow-y: auto;
	flex: 1;
	padding: 80px 10px 20px 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	-webkit-overflow-scrolling: touch;
}

/* 动画定义 */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@keyframes slideIn {
	from {
		transform: scale(0.5) translateY(-100px);
		opacity: 0;
	}
	to {
		transform: scale(1) translateY(0);
		opacity: 1;
	}
}

@keyframes glow {
	0%,
	100% {
		text-shadow:
			0 2px 10px rgba(0, 0, 0, 0.3),
			0 0 20px rgba(255, 255, 255, 0.5);
	}
	50% {
		text-shadow:
			0 2px 10px rgba(0, 0, 0, 0.3),
			0 0 30px rgba(255, 255, 255, 0.8);
	}
}

@keyframes bubbleBounce {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-5px);
	}
}
