@charset "UTF-8";

	/* 去掉了全局的 * 和 body 样式，防止影响您的原网站 */
#qwen-chat-app {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	width: 100%;
	max-width: 600px;
	margin: 20px auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	display: flex;
	flex-direction: column;
	height: 500px; /* 您可以根据需要调整高度 */
}

/* 消息列表区域 */
#qwen-chat-app #chat-box {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* 消息气泡通用样式 */
#qwen-chat-app .message {
	max-width: 85%;
	padding: 10px 15px;
	border-radius: 12px;
	line-height: 1.6;
	font-size: 14px;
	word-wrap: break-word;
}

/* 用户消息样式 */
#qwen-chat-app .msg-user {
	align-self: flex-end;
	background-color: #007bff;
	color: #fff;
	border-bottom-right-radius: 4px;
	white-space: pre-wrap;
}

/* AI 消息样式 */
#qwen-chat-app .msg-ai {
	align-self: flex-start;
	background-color: #e9ecef;
	color: #333;
	border-bottom-left-radius: 4px;
}

/* 让 Markdown 列表和段落有正常的间距 */
#qwen-chat-app .msg-ai p { margin-bottom: 8px; }
#qwen-chat-app .msg-ai ul, #qwen-chat-app .msg-ai ol { margin-left: 20px; margin-bottom: 8px; }

/* 输入区域 */
#qwen-chat-app .input-area {
	display: flex;
	gap: 10px;
	padding: 15px;
	border-top: 1px solid #eee;
	background: #fafafa;
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
}
#qwen-chat-app input {
	flex: 1;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	outline: none;
	font-size: 14px;
	box-sizing: border-box;
}
#qwen-chat-app input:focus { border-color: #007bff; }
#qwen-chat-app button {
	padding: 10px 20px;
	background-color: #007bff;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s;
}
#qwen-chat-app button:hover { background-color: #0056b3; }
#qwen-chat-app button:disabled { background-color: #ccc; cursor: not-allowed; }
