.aichat-box {
	position: fixed;
	right: 0px;
	bottom: 0px;
	text-align: center;
	z-index: 99999;
	cursor: pointer
}

.aichat-box img {
	width: 120px;
	height: 150px;
}

/* 弹窗样式 */
.chatModal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	transition: opacity 0.3s ease;
}

.chatModal.active {
	display: flex;
	justify-content: center;
	align-items: center;
}

.modal-content {
	background-color: white;
	border-radius: 10px;
	width: 95%;
	max-width: 900px;
	max-height: 90vh;
	height: 85vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	transform: scale(0.95);
	transition: transform 0.3s ease;
}

.chatModal.active .modal-content {
	transform: scale(1);
}

.modal-header {
	padding: 20px;
	border-bottom: 1px solid #eaeaea;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-header h3 {
	color: #2c3e50;
	font-size: 20px;
}

.close-button {
	background: none;
	border: none;
	font-size: 24px;
	color: #95a5a6;
	cursor: pointer;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.close-button:hover {
	background-color: #f1f1f1;
	color: #e74c3c;
}

/* iframe容器样式 */
.iframe-container {
	flex: 1;
	position: relative;
	width: 100%;
	min-height: 600px;
	border-radius: 10px;
	background-color: #f9f9f9;
	display: flex;
}

.iframe-container iframe {
	width: 100%;
	height: 100%;
	min-height: 600px;
	border-radius: 10px;
	border: none;
	display: block;
	overflow: hidden;
}

/* 加载指示器样式 */
.iframe-loader {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.9);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 10;
	transition: all 0.3s ease;
}

/* 加载动画 */
.loader-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #667eea;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 16px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.iframe-loader p {
	color: #666;
	font-size: 14px;
	margin: 0;
}

.iframe-loader .error-message {
	color: #e74c3c;
	font-size: 14px;
	text-align: center;
	padding: 0 20px;
}

/* 聊天界面样式（如果需要） */
.chat-container {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.chat-bubble {
	max-width: 75%;
	padding: 12px 16px;
	border-radius: 18px;
	word-wrap: break-word;
	position: relative;
}

.user-message {
	background-color: #667eea;
	color: white;
	align-self: flex-end;
	border-bottom-right-radius: 4px;
}

.ai-message {
	background-color: #f1f1f1;
	color: #333;
	align-self: flex-start;
	border-bottom-left-radius: 4px;
}

.message-time {
	font-size: 12px;
	opacity: 0.7;
	margin-top: 4px;
	text-align: right;
}

.ai-message .message-time {
	text-align: left;
}

.chat-input-area {
	padding: 20px;
	border-top: 1px solid #eaeaea;
	display: flex;
	gap: 10px;
}

.chat-input {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 20px;
	font-size: 14px;
	outline: none;
	transition: border-color 0.3s ease;
}

.chat-input:focus {
	border-color: #667eea;
}

.send-button {
	padding: 12px 20px;
	background-color: #667eea;
	color: white;
	border: none;
	border-radius: 20px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: background-color 0.3s ease;
}

.send-button:hover {
	background-color: #5a5fdb;
}

.send-button:disabled {
	background-color: #bdc3c7;
	cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 1024px) {
	.modal-content {
		max-width: 95vw;
		max-height: 95vh;
		height: 90vh;
	}
}

@media (max-width: 768px) {
	.modal-content {
		width: 98%;
		max-width: 98vw;
		max-height: 98vh;
		height: 92vh;
	}

	.chat-bubble {
		max-width: 85%;
	}

	.iframe-container {
		min-height: 500px;
	}

	.iframe-container iframe {
		min-height: 500px;
	}
}

@media (max-height: 600px) {
	.modal-content {
		height: 95vh;
		max-height: 95vh;
	}

	.iframe-container,
	.iframe-container iframe {
		min-height: 350px;
	}
}