* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
	height: 100vh;
	background: url('https://easy-yst.oss-cn-beijing.aliyuncs.com/regmini/indexicon/bgAiPageBigNew.png');
	background-size: 100% 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.container {
	flex: 1;
	display: flex;
	flex-direction: column;
	max-width: 800px;
	margin: 0 auto;
	width: 100%;
	height: 100%;
}

.message-container {
	flex: 1;
	padding: 15px 5px;
	overflow-y: auto;
	background-color: #f7f7f7;
	display: none;
}

.message-item {
	display: flex;
	margin-bottom: 15px;
	position: relative;
}

.message-item.received {
	flex-direction: row;
}

.message-item.sent {
	flex-direction: row-reverse;
}

.avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	z-index: 99;
}

.message-content-wrapper {
	max-width: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
}

.message-content {
	padding: 10px 15px;
	border-radius: 5px;
	font-size: 16px;
	line-height: 1.5;
	word-break: break-word;
	position: relative;
	/* white-space: pre-wrap; */
}

.message-item.received .message-content {
	background-color: #f3f6fe;
	color: #474747;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	/* margin-left: 6px; */
}

.message-item.sent .message-content {
	background-color: rgba(89, 86, 233, 1);
	color: #ffffff;
	border-bottom-right-radius: 0;
	/* margin-right: 6px; */
}

.message-time {
	margin-top: 16px;
	font-size: 12px;
	color: #999;
	text-align: center;
}

.message-item.sent .message-time {
	text-align: right;
}

.message-item.received .message-time {
	text-align: left;
	line-height: 20px;
	display: flex;
}

.input-container {
	display: flex;
	width: 94%;
	border: 1px solid #1177ff;
	border-radius: 30px;
	background: #ffffff;
	align-items: center;
	margin: 0 auto 20px;
	padding: 1%;
}

.input-box {
	flex: 1;
	height: 30px;
	padding: 0 5px;
	border: 1px solid #ffffff;
	border-radius: 20px;
	margin-right: 5px;
	line-height: 35px;
	font-size: 16px;
	outline: none;
}

input::placeholder {
	font-size: 12px;
}

.send-btn {
	width: 60px;
	height: 30px;
	background-color: #1177ff;
	color: #fff;
	border: none;
	border-radius: 20px;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.send-btn:hover {
	background-color: #1177ff;
}

/* .message-item.received .message-content::before {
				content: '';
				position: absolute;
				left: -6px;
				top: 10px;
				width: 0;
				height: 0;
				border-top: 8px solid transparent;
				border-bottom: 8px solid transparent;
				border-right: 8px solid #f3f6fe;
			}

			.message-item.sent .message-content::after {
				content: '';
				position: absolute;
				right: -6px;
				top: 10px;
				width: 0;
				height: 0;
				border-top: 8px solid transparent;
				border-bottom: 8px solid transparent;
				border-left: 8px solid #1177ff;
			} */

.loading_btn {
	width: 60px;
	height: 30px;
	background-color: #e3e3e3;
	color: #000000;
	border: none;
	border-radius: 20px;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.3s;
	display: none;
}

.topbgimgblock {
	width: 100%;
	text-align: center;
}

.topbgimgblock img {
	width: 94%;
	padding: 0;
	margin: 0;
}

.contecnt_block {
	background: rgba(255, 255, 255, 0);
	width: 94%;
	margin: 0 auto;
	border-radius: 10px;
}

.bottomSend {
	width: 100%;
	padding-top: 10px;
}

.text_tips_container {
	width: 100%;
	overflow: hidden;
	position: relative;
}

.text_tips_scroll {
	overflow-x: auto;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.text_tips_scroll::-webkit-scrollbar {
	display: none;
}

.text_tips {
	display: inline-block;
	white-space: nowrap;
	padding: 10px 0;
	background: #ffffff;
	border-top: 2px solid #f7f7f7;
}

.text_tips span {
	display: inline-block;
	padding: 4px 10px;
	margin: 0 10px;
	background-color: #1177ff;
	border-radius: 15px;
	color: #ffffff;
	font-size: 14px;
}

.text_tips_container::before,
.text_tips_container::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 20px;
	pointer-events: none;
	z-index: 1;
}

.text_tips_container::before {
	left: 0;
	background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.text_tips_container::after {
	right: 0;
	background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.containerTips {
	border-top-right-radius: 10px;
	border-top-left-radius: 10px;
	padding: 20px;
	width: 100%;
	padding-bottom: 0;
	margin: 0 auto;
	flex: 1;
}

.header {
	text-align: center;
	font-size: 1.15rem;
	color: #000000;
	font-weight: 800;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.header img {
	width: 15%;
}

.containerTipsContent {
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid #ffffff;
	width: 100%;
	margin: 0 auto;
	padding: 4%;
	border-radius: 10px;
}

.help-item {
	background: linear-gradient(to right, #ffeefe, #e5f6ff);
	border-radius: 10px;
	padding: 10px;
	margin-bottom: 15px;
}

.help-link {
	color: #3b82f6;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
}

.help-link:hover {
	text-decoration: underline;
}

.play-btn {
	width: 20px;
	height: 20px;
	margin-left: 10px;
	margin-right: 10px;
	cursor: pointer;
	/* position: absolute; */
	/* right: -30px;
				top: 10px; */
	/* left: 2%; */
	/* bottom: 0; */
}

/* Markdown样式增强 */
.message-content.markdown-content {
	/* background-color: #fff !important; */
	background-color: rgba(255, 255, 255, 0.3) !important;
	border: 1px solid #e1e4e8 !important;
	padding: 15px !important;
}

.message-content.markdown-content h1,
.message-content.markdown-content h2,
.message-content.markdown-content h3 {
	margin-top: 20px;
	margin-bottom: 10px;
	padding-bottom: 5px;
	border-bottom: 1px solid #eaecef;
}

.message-content.markdown-content h1 {
	font-size: 1.8em;
	color: #24292e;
}

.message-content.markdown-content h2 {
	font-size: 1.5em;
	color: #24292e;
}

.message-content.markdown-content h3 {
	font-size: 1.25em;
	color: #24292e;
}

.message-content.markdown-content p {
	margin-bottom: 10px;
	line-height: 1.6;
}

.message-content.markdown-content ul,
.message-content.markdown-content ol {
	margin-left: 20px;
	margin-bottom: 10px;
}

.message-content.markdown-content li {
	margin-bottom: 5px;
}

.message-content.markdown-content code {
	background-color: #f6f8fa;
	padding: 2px 4px;
	border-radius: 3px;
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
	font-size: 0.9em;
}

.message-content.markdown-content pre {
	background-color: #f6f8fa;
	padding: 12px;
	border-radius: 6px;
	overflow-x: auto;
	margin: 10px 0;
	border: 1px solid #e1e4e8;
}

.message-content.markdown-content pre code {
	background-color: transparent;
	padding: 0;
	border-radius: 0;
}

.message-content.markdown-content blockquote {
	border-left: 4px solid #dfe2e5;
	padding-left: 15px;
	margin: 10px 0;
	color: #6a737d;
}

.message-content.markdown-content table {
	border-collapse: collapse;
	width: 100%;
	margin: 10px 0;
	border: 1px solid #dfe2e5;
}

.message-content.markdown-content th,
.message-content.markdown-content td {
	border: 1px solid #dfe2e5;
	padding: 6px 13px;
}

.message-content.markdown-content th {
	background-color: #f6f8fa;
	font-weight: 600;
}

.message-content.markdown-content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 10px 0;
	display: block;
}

.message-content.markdown-content a {
	color: #0366d6;
	text-decoration: none;
}

.message-content.markdown-content a:hover {
	text-decoration: underline;
}

.message-content.markdown-content hr {
	height: 1px;
	border: 0;
	background-color: #e1e4e8;
	margin: 20px 0;
}

/* 打字机效果 */
.message-content.typing {
	position: relative;
}

.message-content.typing::after {
	content: '▌';
	animation: blink 1s infinite;
	color: #1177ff;
}

@keyframes blink {

	0%,
	50% {
		opacity: 1;
	}

	51%,
	100% {
		opacity: 0;
	}
}

/* 响应式调整 */
@media (max-width: 768px) {
	.message-content-wrapper {
		max-width: 100%;
	}

	.message-content.markdown-content {
		font-size: 14px;
		padding: 12px !important;
	}

	.message-content.markdown-content pre {
		font-size: 12px;
		padding: 8px;
	}
}




/* 链接预览样式 */
.link-image {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 10px 0;
	display: block;
	cursor: pointer;
	transition: transform 0.2s;
}

.link-image:hover {
	transform: scale(1.02);
}

/* 文件链接样式 */
.file-link {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	background-color: #f6f8fa;
	border: 1px solid #e1e4e8;
	border-radius: 6px;
	color: #0366d6;
	text-decoration: none;
	margin: 5px;
	transition: all 0.2s;
}

.file-link:hover {
	background-color: #e1e4e8;
	text-decoration: none;
}

.file-link::before {
	content: '📎';
	margin-right: 6px;
}

/* 图片模态框 */
.image-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.image-modal img {
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
}