* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
	color: #333;
	/* line-height: 1.5; */
	overflow-x: hidden;
}

#app {
	/* display: flex;
	flex-direction: column; */
	height: 100vh;
	max-width: 100%;
	margin: 0 auto;
	background: url('img/bg.png') no-repeat left top / 100% 100%;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	position: relative;
}

/* Header 样式 */
.header {
	height: 62px;
	background: #fff;
	color: white;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 40px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	position: fixed;
	z-index: 10;
	top: 0;
	left: 0;
	right: 0;
}

.logo-container {
	display: flex;
	align-items: center;
}

.logo {
	width: 201.36px;
	height: 36px;
	margin-right: 10px;
	background-image: url('img/logo.png');
	background-size: contain;
	background-repeat: no-repeat;
}

.title {
	font-size: 18px;
	font-weight: 500;
}

.to-human {
	width: 144px;
	height: 44px;
	border-radius: 8px;
	border: 1px solid #a6b0c1;
	font-family: PingFangSC, PingFang SC;
	font-weight: 400;
	font-size: 16px;
	color: #313540;
	line-height: 24px;
	text-align: justify;
	font-style: normal;

	cursor: pointer;
	transition: all 0.3s;

	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #fff;
}

.to-human:hover {
	background: rgba(68, 131, 255, 0.1);
	border-radius: 8px;
	border: 1px solid #a6b0c1;
}

.to-human img {
	width: 24px;
	height: 24px;
	margin-right: 8px;
}

/* Body 样式 */
.body {
	/* flex: 1; */
	padding: 15px;
	position: fixed;
	top: 62px;
	left: 0;
	right: 0;
	bottom: 88px;
	overflow-y: auto;
}

.message-container {
	max-width: 1200px;
	margin: 0 auto;
	/* display: flex;
	flex-direction: column;
	gap: 15px; */
}

.message-container .message-body {
	display: flex;
	flex-direction: column;
	animation: fadeIn 0.3s ease-out;
	margin-bottom: 16px;
}

.message-container .message-body .meta {
	display: flex;
	align-items: center;
	margin-bottom: 3px;
}

.message-container .message-body .meta img {
	width: 40px;
	height: 40px;
	margin-right: 12px;
}

.message-container .message-body .meta span {
	font-family: PingFangSC, PingFang SC;
	font-weight: 400;
	font-size: 14px;
	color: #51617c;
	line-height: 22px;
	text-align: justify;
	font-style: normal;
}

.message-container .message-body .meta span i {
	font-style: normal;
}

.message-container .message-body .meta.user-message-meta {
	justify-content: end;
}

.message-container .message-body .meta.user-message-meta img {
	margin-left: 12px;
	margin-right: 0;
}

.message {
	max-width: 900px;
	padding: 16px 24px;
	border-radius: 18px;
	position: relative;
	word-wrap: break-word;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.bot-message {
	align-self: flex-start;
	background-color: white;
	box-shadow: 0px 0px 8px 0px rgba(65, 81, 125, 0.05);
	margin-left: 52px;
	border-radius: 0px 8px 8px 24px;
	/* margin-bottom: 8px; */

	font-family: PingFangSC, PingFang SC;
	font-weight: 400;
	font-size: 16px;
	color: #313540;
	line-height: 24px;
	text-align: justify;
	font-style: normal;
}

.bot-message.kf {
	min-width: 618px;
}

.bot-message a {
	font-family: PingFangSC, PingFang SC;
	font-weight: 400;
	font-size: 16px;
	color: #313540;
	line-height: 24px;
	text-align: justify;
	font-style: normal;
	text-decoration: none;
}

.bot-message .to-human-inline {
	font-family: PingFangSC, PingFang SC;
	font-weight: 400;
	font-size: 16px;
	color: #4483ff;
	line-height: 24px;
	text-align: justify;
	font-style: normal;
}

.bot-message ol,
ul {
	/* margin-left: 24px; */
	/* list-style: none; */
	padding: revert;
}

.bot-message img {
	max-width: 100%;
	margin-top: 10px;
}

.toHumanBtn {
	width: 66px;
	height: 32px;
	background: rgba(68, 131, 255, 0);
	border-radius: 16px;
	border: 1px solid #4483ff;

	font-family: PingFangSC, PingFang SC;
	font-weight: 400;
	font-size: 14px;
	color: #4483ff;
	line-height: 22px;
	text-align: center;
	font-style: normal;
	margin-left: 52px;
	transition: all 0.3s;
	cursor: pointer;
	display: none;
	margin-top: 8px;
}

.toHumanBtn:hover {
	background: rgba(68, 131, 255, 0.1);
	border-radius: 16px;
	border: 1px solid #4483ff;
}

.user-message {
	align-self: flex-end;
	margin-right: 52px;
	background: rgba(68, 131, 255, 0.3);
	border-radius: 8px 0px 24px 8px;

	box-shadow: 0px 0px 8px 0px rgba(65, 81, 125, 0.05);
	font-family: PingFangSC, PingFang SC;
	font-weight: 500;
	font-size: 16px;
	color: #313540;
	line-height: 24px;
	text-align: justify;
	font-style: normal;
}

/* .typing {
	display: inline-block;
	overflow: hidden;
	vertical-align: bottom;
	border: 4px solid #1e88e5;
	border-radius: 100%;
	animation: blink 150ms step-end infinite;
}

@keyframes blink {
	from,
	to {
		border-color: transparent;
	}
	50% {
		border-color: #1e88e5;
	}
} */
.typing {
	display: inline-block;
	width: 10px;
	height: 10px;
	background-color: #333;
	animation: blink 1s infinite;
	vertical-align: middle;
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

/* 高频问题样式 */
.faq-section {
	background-color: white;
	border-radius: 0px 8px 8px 24px;
	padding: 16px 24px 24px 24px;
	/* margin-bottom: 15px; */
	box-shadow: 0px 0px 8px 0px rgba(65, 81, 125, 0.05);
	margin-left: 52px;
	max-width: 618px;
}

.faq-section ul {
	padding: 0;
}

.faq-title {
	font-family: PingFangSC, PingFang SC;
	font-weight: 500;
	font-size: 16px;
	color: #313540;
	line-height: 24px;
	text-align: justify;
	font-style: normal;
	margin-bottom: 12px;
	display: flex;
	justify-content: space-between;
}

.faq-title p {
	width: 75%;
}

.faq-list {
	list-style: none;
}

.faq-item {
	cursor: pointer;
	transition: all 0.2s;

	/* height: 48px; */
	background: rgba(15, 127, 255, 0.05);
	border-radius: 28px;

	display: flex;
	padding: 12px 16px;
	margin-bottom: 8px;
	position: relative;
}

.faq-item::after {
	content: '';
	width: 16px;
	height: 16px;
	position: absolute;
	right: 16px;
	top: 50%;
	margin-top: -8px;
	background: url(img/fq-item-icon.png) no-repeat top left / 100%;
}

.faq-item:last-child {
	border-bottom: none;
}

.faq-item:hover,
.faq-item.active {
	background: rgba(15, 127, 255, 0.15);
}

.faq-item p {
	width: 95%;
	user-select: none;
}

.change-faq {
	display: flex;
	align-items: center;
	cursor: pointer;
	font-family: PingFangSC, PingFang SC;
	font-weight: 400;
	font-size: 14px;
	color: #4483ff;
	line-height: 22px;
	text-align: right;
	font-style: normal;
}

.change-faq img {
	width: 16px;
	height: 16px;
	margin-right: 3px;
}

/* Footer 样式 */
.footer {
	width: 100%;
	/* height: 56px; */
	/* display: flex;
	align-items: center;
	justify-content: center; */
	margin-bottom: 32px;
	position: fixed;
	/* z-index: 10; */
	left: 0;
	right: 0;
	bottom: 0;
}

.input-container {
	width: 1200px;
	min-height: 56px;
	max-height: 80px;
	background: #ffffff;
	box-shadow: 0px 0px 20px 0px rgba(25, 43, 65, 0.06);
	border-radius: 58px;
	position: relative;
}

.input-box {
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 58px;
	padding: 16px 24px;
	resize: none;
	outline: none;
	overflow-y: auto;

	font-family: PingFangSC, PingFang SC;
	font-weight: 400;
	font-size: 16px;
	color: #a6b0c1;
	line-height: 24px;
	text-align: justify;
	font-style: normal;
}

.input-box:focus {
	border-color: #1e88e5;
}

.btn {
	width: 32px;
	height: 32px;
	margin-left: 10px;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s;
	position: absolute;
	top: 50%;
	right: 16px;
	margin-top: -16px;
}

.send-btn {
	background: url('img/send-active.png') no-repeat left top / 100% 100%;
}

.send-btn:disabled {
	background: url('img/send.png') no-repeat left top / 100% 100%;
}

.stop-btn {
	display: none;
	width: 32px;
	height: 32px;
	margin-left: 10px;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s;
	position: absolute;
	top: 50%;
	right: 16px;
	margin-top: -16px;
	background: url('img/stop-icon.png') no-repeat left top / 100% 100%;
}

.stop-btn .btn {
	width: 100%;
	height: 100%;
	position: static;
	margin: 0;
}

.stop-btn:hover {
	background-image: url('img/stop-hover.png');
}

.stop-btn::before {
	content: '停止生成';
	width: 96px;
	height: 46px;
	line-height: 46px;
	background: #313540;
	border-radius: 8px;
	opacity: 0.9;
	position: absolute;
	top: -56px;
	left: -32px;
	font-family: PingFangSC, PingFang SC;
	font-weight: 400;
	font-size: 16px;
	color: #ffffff;
	text-align: center;
	font-style: normal;
	transition: all 0.3s;
	display: none;
}

.stop-btn::after {
	content: '';
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 8px solid #313540;
	position: absolute;
	top: -10px;
	left: 8px;
	display: none;
}

.stop-btn:hover::before,
.stop-btn:hover::after {
	display: block;
}

.send-icon {
	width: 20px;
	height: 20px;
}

.message-box-wrapper {
	width: 100%;
	max-width: 1200px;
	position: relative;
	margin: 0 auto;
}

.message-wrapper {
	width: 100%;
	max-width: 1200px;
	position: relative;
	margin: 0 auto;
}

.message-box-container {
	height: 56px;
	min-height: 56px;
	max-height: 300px;
	background-color: #fff;

	box-shadow: 0px 0px 20px 0px rgba(25, 43, 65, 0.06);
	border-radius: 58px;
}

.message-box-container:hover {
	box-shadow: 0px 0px 20px 0px rgba(25, 43, 65, 0.15);
}

.message-box {
	width: 100%;
	height: 100%;
	padding: 16px 60px 16px 24px;
	border-radius: 58px;
	border: none;
	outline: none;
	resize: none;
	font-size: 14px;
	line-height: 24px;
	transition: all 0.2s ease;
	font-family: system-ui, -apple-system, sans-serif;
	overflow: hidden;
	border: none;
	color: #313540;
}

.message-box:focus {
	border-color: #1a73e8;
}

.message-box::placeholder {
	color: #9aa0a6;
	/* line-height: 24px; */
	/* position: absolute;
	top: 50%;
	transform: translateY(-50%); */
}

.message-box.multi-line {
	border-radius: 24px;
}

.message-box-container.multi-line {
	border-radius: 24px;
}

.char-counter {
	position: absolute;
	left: 24px;
	bottom: 16px;

	width: 65px;
	height: 22px;
	font-family: PingFangSC, PingFang SC;
	font-weight: 400;
	font-size: 14px;
	color: #313540;
	line-height: 22px;
	text-align: justify;
	font-style: normal;

	display: none;
}

.char-counter span {
	color: #a6b0c1;
}

@media (max-width: 768px) {
	.message-box {
	}

	.message-box.multi-line {
		border-radius: 16px;
	}

	.char-counter {
		right: 20px;
		bottom: 12px;
	}
}

@media (max-width: 480px) {
	.message-box {
		font-size: 15px;
	}
}

/* 响应式设计 */
@media (max-width: 768px) {
	.header {
		height: 50px;
		padding: 0 10px;
	}

	.logo {
		height: 30px;
	}

	.title {
		font-size: 16px;
	}

	.to-human {
		padding: 4px 12px;
		font-size: 16px;
	}

	.body {
		padding: 10px;
		top: 50px;
		bottom: 76px;
	}

	.message {
		max-width: 100%;
		padding: 10px 12px;
	}

	.footer {
		padding: 10px;
		margin-bottom: 0;
	}

	.input-box {
		padding: 8px 12px;
		font-size: 13px;
	}

	.send-btn {
		width: 36px;
		height: 36px;
		margin-top: -18px;
	}

	.bot-message {
		margin-left: 0;
	}

	.bot-message.kf {
		min-width: auto;
	}

	.user-message {
		margin-right: 0;
	}

	.faq-section {
		margin-left: 0;
	}

	.toHumanBtn {
		margin-left: 0;
	}

	.wechat-alert {
		max-width: 90% !important;
	}
}

/* IE9 兼容性 */
.ie9 .body {
	background: #e5e5e5;
}

.ie9 .message {
	display: block;
	clear: both;
	float: none;
}

.ie9 .bot-message {
	float: left;
}

.ie9 .user-message {
	float: right;
}

.mask {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.3);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.wechat-alert {
	max-width: 547px;
	background-color: #fff;
	border-radius: 8px;
	padding: 40px;
}

.wechat-alert .wechat-content {
	width: 100%;
	margin-bottom: 24px;
	font-family: PingFangSC, PingFang SC;
	font-weight: 400;
	font-size: 16px;
	color: #0f0202;
	line-height: 24px;
	font-style: normal;
}

.wechat-alert .wechat-content p {
	font-family: PingFangSC, PingFang SC;
	font-weight: 400;
	font-size: 16px;
	color: #0f0202;
	line-height: 24px;
	text-align: justify;
	font-style: normal;
	text-indent: 2em;
}

.wechat-alert .wechat-btn-group {
	width: 100%;
	display: flex;
	justify-content: end;
}

.wechat-alert .wechat-btn-group button {
	width: 80px;
	height: 48px;
	background: rgba(68, 131, 255, 0.1);
	border-radius: 8px;
	border: none;
	outline: none;
	cursor: pointer;

	font-family: PingFangSC, PingFang SC;
	font-weight: 400;
	font-size: 16px;
	color: #4483ff;
	line-height: 24px;
	text-align: center;
	font-style: normal;
}

.wechat-alert .wechat-btn-group button.wechat-cencel-btn {
	margin-right: 16px;
}

.wechat-alert .wechat-btn-group button.wechat-confirm-btn {
	background: linear-gradient(127deg, #25a4ff 0%, #2d73fd 100%);
	font-weight: 500;
	color: #ffffff;
}
