/* Floating AI Button */
.ai-floating-button {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 70px; /* 增加尺寸 */
	height: 70px; /* 增加尺寸 */
	border-radius: 50%;
	background: linear-gradient(135deg, #ff5e62 0%, #ff9966 100%); /* 更醒目的渐变色 */
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); /* 增强阴影 */
	font-weight: bold;
	font-size: 24px; /* 增大字体 */
	z-index: 999;
	transition: all 0.3s ease;
	animation: pulse 2s infinite; /* 添加脉动效果 */
}

.ai-floating-button:hover {
	transform: scale(1.15);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
	background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
	color: white;
	text-decoration: none;
	animation: none; /* 悬停时停止脉动 */
}

.ai-floating-button span {
	font-family: 'Inter', sans-serif;
}

/* Embedded Chat Container */
.ai-chat-container {
	position: fixed;
	bottom: 100px;
	right: 30px;
	width: 300px;
	height: 600px; /* 从800px减小到600px */
	max-height: 70vh; /* 从85vh减小到70vh */
	background-color: #fff;
	border-radius: 12px;
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
	z-index: 998;
	overflow: hidden;
	display: none; /* 默认隐藏 */
	transition: all 0.3s ease;
}

.ai-chat-container.active {
	display: block;
	animation: slideIn 0.3s forwards;
}

/* 关闭按钮已移除 */

.ai-chat-iframe {
	width: 100%;
	height: 100%; /* 使用全部高度 */
	border: none;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 添加脉动动画 */
@keyframes pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
	}
	50% {
		transform: scale(1.05);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
	}
}

/* Mobile responsive */
@media only screen and (max-width: 767px) {
	.ai-floating-button {
		width: 50px;
		height: 50px;
		font-size: 16px;
		bottom: 20px;
		right: 20px;
		z-index: 1000; /* 确保在移动端也显示在最上层 */
	}
	
	.ai-chat-container {
		width: 92%;
		right: 4%;
		left: 4%;
		bottom: 80px;
		height: 65vh; /* 从80vh减小到65vh */
		max-height: none;
		border-radius: 10px;
	}
	
	/* 移动端关闭按钮已移除 */
}
