body {
	font-family: Arial, sans-serif;
	background-color: #f4f4f4;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
}

#chat-container {
	#width: 400px;
	width: 100vw;
	height: 100vh;
	#background-color: #fff;
	background-color: #f0f0f0;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

#chat-display {
	flex: 1;
	padding: 10px;
	overflow-y: auto;
	border-bottom: 1px solid #ddd;
	display: flex;
	flex-direction: column;
	scroll-behavior: smooth; /* 平滑滚动 */
}

#input-area {
	display: flex;
	padding: 10px 100px 10px 100px ;
	background-color: #f9f9f9;
}

#role-select {
	margin-right: 10px;
	padding: 5px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

#message-input {
	flex: 1;
	padding: 5px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

#send-button {
	margin-left: 10px;
	padding: 5px 10px;
	background-color: #007bff;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

#send-button:hover {
	background-color: #0056b3;
}

/* 消息气泡样式 */
.message {
	display: flex;
	margin-bottom: 10px;
	max-width: 70%;
}

.message.user {
	align-self: flex-end;
	flex-direction: row-reverse;
}

.message.other {
	align-self: flex-start;
}

/* 头像样式 */
.avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin: 0 10px;
	background-color: #ccc;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #fff;
}

/* 文字内容样式 */
.message-content {
	padding: 10px;
	border-radius: 8px;
	#background-color: #f1f1f1;
	background-color: #ffffff;
	position: relative;
	word-wrap: break-word;
}

.message.user .message-content {
	background-color: #007bff;
	color: #fff;
}

.message.other .message-content {
	#background-color: #e5e5ea;
	color: #000;
}

/* Markdown 渲染后的样式 */
.message-content h1,
.message-content h2,
.message-content h3 {
	margin: 0.5em 0;
}

.message-content p {
	margin: 0.5em 0;
}

.message-content ul,
.message-content ol {
	margin: 0.5em 0;
	padding-left: 20px;
}

/* 代码文字*/
.message-content code {
	background-color: rgba(0, 0, 0);
	color: rgba(255, 255, 255);
	padding: 2px 4px;
	border-radius: 4px;
	font-family: monospace;
}

/* 代码卡片*/
.message-content pre {
	background-color: rgba(0, 0, 0);
	padding: 10px;
	border-radius: 4px;
	overflow-x: auto;
}

.message-content blockquote {
	border-left: 4px solid #ccc;
	margin: 0.5em 0;
	padding-left: 10px;
	color: #666;
}

/* KaTeX 公式样式 */
.katex {
	font-size: 1.1em; /* 调整公式字体大小 */
}

/* 消息内容中的公式 */
.message-content .katex {
	display: inline-block;
	margin: 0 2px; /* 公式与文字的间距 */
}

/* @提及样式 */
.mention {
	color: #007bff; /* 蓝色高亮 */
	font-weight: bold;
	cursor: pointer;
}

.mention:hover {
	text-decoration: underline; /* 鼠标悬停时显示下划线 */
}













/*音乐卡片*/
.card-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.card {
	width:800px;
	background-color: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	display: flex;
	align-items: center;
	padding: 15px;
	transition: transform 0.3s ease;
}
/*
.card:hover {
	transform: translateY(-5px);
}*/

.card img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 10px;
	margin-right: 20px;
}
.card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.card-content h3 {
	margin: 0;
	font-size: 18px;
	color: #333;
}
.card-content p {
	margin: 0;
	font-size: 14px;
	color: #666;
	line-height: 1.5;
}
.card-content a {
	display: inline-block;
	padding: 8px 15px;
	background-color: #007bff;
	color: #fff;
	text-decoration: none;
	border-radius: 5px;
	font-size: 14px;
	text-align: center;
}
.card-content a:hover {
	background-color: #0056b3;
}