/* static/css/index.css */

html {
	font-size: 14px;
}

body {
	background-image: url(../images/px_beij.png);
	background-repeat: repeat;
	background-size: auto;
	/* background: linear-gradient(120deg, #dbeafe 0%, #e0c3fc 100%); */
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans',
	  'Droid Sans', 'Helvetica Neue', 'Microsoft Yahei', sans-serif;
	min-width: 1719px;
	width: 100%;
	height: 100vh;
	overflow: hidden;
}

.main_bg{
	background: #ffffff00;
	border-radius: 32px;
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
	margin: 7% ;
	max-width: 1645px;
	min-height: 790px;
	padding: 0;
	display: flex;
	overflow: hidden;
}

.main_left {
    background: linear-gradient(135deg, #7546e2 0%, #9571a8 100%);
    border-radius: 32px 0px 0px 0px;
    box-shadow: 2px 0 16px 0 rgba(161, 140, 209, 0.12);
    float: left;
    height: 744px;
    width: 18%;
    padding-top: 47px;
    display: flex
;
    flex-direction: column;
    align-items: center;
}

.main_left_logo{
	height: 100px;
	text-align: center;
	width: 100%;
	margin: 0 auto;
}

.main_left_menu{
	margin-top: 10px;
	margin-bottom: 1px;
	width: 100%;
	margin: 0 auto;
	height: 77%;
}
.main_left_menu ul{
	list-style-type: none;
    margin: 0;
    padding-left:0px;
    width: 288px;
}
.main_left_menu ul li{
	border-radius: 16px;
	transition: background 0.3s, color 0.3s;
	margin: 12px 0;
	height: 65px;
	margin-top: 15px;
	margin-bottom: 15px;
	line-height: 65px;
	font-size: 20px;
    cursor: pointer;
}

.main_left_menu ul li a{
	font-size: 20px;
	display: block;
    color: #ffffff;
    text-decoration: none;
    /* text-align: center; 已被 span 的 text-align:center 覆盖 */
    /* padding-left: 100px; 已被 span 的 background-position 控制 */
}

/* 统一 span 标签（图标容器 + 文本）样式 */
.main_left_menu ul li a span {
    display: block; /* 改为 block 使其占据整个 a 标签宽度，方便文本居中和背景定位 */
    background-repeat: no-repeat;
    background-size: 32px 32px; /* 统一设置图标大小 */
    background-position: 47px center; /* 图标在距左100px，垂直居中 */
    text-align: center; /* 保持原始的文本居中 */
    line-height: 65px; /* 确保文本垂直居中 */
    width: 93%;
    height: 100%;
}

/* 鼠标悬停效果：li 控制背景图片，a 控制文字颜色, a span 控制图标图片 */
.main_left_menu ul li:hover {
	background: rgba(255,255,255,0.18);
	color: #0064fb;
}

/* 具体图标定义 */
.iconimg1 {
	background-image: url('../images/message_icon.png');
}
.main_left_menu ul li:hover .iconimg1 {
	background-image: url('../images/message_h.png');
}

.iconimg2 {
	background-image: url('../images/setting_icon.png');
}
.main_left_menu ul li:hover .iconimg2 {
	background-image: url('../images/setting_h.png');
}

.iconimg-add { /* 新增Q&A的图标 */
  background-image: url('../images/add_icon.png');
}
.main_left_menu ul li:hover .iconimg-add {
  background-image: url('../images/add_icon_h.png'); /* 假设有悬停图标 add_icon_h.png */
}

.main_left_emoji{
	text-align: center;
	height: 280px;
	background-image: url(../images/emoji_bg.png);
	background-repeat: no-repeat;
	background-position: center center;
	width: 100%;
	margin: 0 auto;
	display: none;
}

/* ... (以下为页面其他部分的CSS，保持不变) ... */
.main_right{
	background: #ffffffbd;
	border-radius: 0 32px 32px 0;
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
	float: right;
	width: 79%;
	height: 780px;
	padding: 10px 40px 0 40px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.top_info{font-size: 14px; color: #617bab; line-height: 25px; text-align: center;width: 88%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.top_info_text{font-size: 25px;
	/* font-weight: bold; */
}
.chatmessage{
	padding-bottom: 0px;
    overflow-y: scroll;
    height: 500px;
	margin-bottom: 0px;
	z-index: 1;
}
.chat-container {
	max-width: 100%;
	margin: 20px auto;
	padding: 20px;
}
.message {display: flex; margin-bottom: 20px;}
.receiver-message {justify-content: flex-start; padding-right: 30%;}
.sender-message {justify-content: flex-end; padding-left: 30%;}
.avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	box-shadow: 0 2px 8px 0 rgba(161, 140, 209, 0.10);
	margin-right: 15px;
	margin-left: 15px;
}
.message-content {flex:  0 1 auto;}
.message-bubble {
	border-radius: 18px;
	box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.08);
	padding: 12px 18px;
	font-size: 16px;
	margin-bottom: 6px;
}
.sender-message.message-bubble {
	background: linear-gradient(90deg, #a1c4fd 0%, #c2e9fb 100%);
	color: #333;
}
.receiver-message .message-bubble {
	background: #fff;
	color: #333;
}
.message-time {font-size: 12px; color: #000000; margin-top: 5px; text-align: left;}
.sender-message-time {font-size: 12px; color: #999; margin-top: 5px; text-align: right;}
.Userchange{
	background-color: #FFFFFF;
	height: 40px;
	font-size: 12px;
	border-top: 1px solid #bed1fc;
	width: 100%;
	overflow: hidden;
	position: relative;
	display: none;
	align-items: center;
}
.inputmessage{
	background: #b1b9e2;
	border-radius: 18px;
	box-shadow: 0 2px 12px 0 rgba(31, 38, 135, 0.10);
	display: flex;
	align-items: center;
	padding: 0 18px;
	margin: 0 auto;
	width: 65%;
	height: 56px;
	position: relative;
	left: 30%;
	transform: translateX(-50%);
	bottom: 2%;
	z-index: 2;
	border: 2px solid #c3c8f7;
}
.inputmessage_voice img,
.inputmessage_send img,
.inputmessage_open img {
	width: 38px;
	height: 38px;
	/* background: #bfc8f7; */
	border-radius: 50%;
	/* box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.10); */
	padding: 7px;
	transition: box-shadow 0.2s, background 0.2s;
	cursor: pointer;
	display: block;
	margin: 0 auto;
}
.inputmessage_voice img:hover,
.inputmessage_send img:hover,
.inputmessage_open img:hover {
	background: #a3b0f7;
	box-shadow: 0 4px 16px 0 rgba(0,100,251,0.18);
}
.inputmessage_voice {
	width: 48px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 8px;
}
.inputmessage_input {
	flex: 1;
	display: flex;
	align-items: center;
	height: 100%;
}
.inputmessage_input .text_in {
	width: 100%;
	height: 38px;
	border: none;
	outline: none;
	border-radius: 12px;
	background: #fff;
	font-size: 16px;
	padding: 0 16px;
	box-shadow: none;
	resize: none;
	margin: 0;
	color: #333;
}
.inputmessage_send {
	width: 60px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 8px;

	border-radius: 4px;    
	/* display: inline-block; */
    /* padding: 8px 16px; */
    background-color: #4188d2; /* 示例背景颜色 */
    color: white;
    cursor: pointer;
    user-select: none; /* 防止文本被选中 */     /* 四个角都变成弧形，值越大越圆润 */
}


.inputmessage_open {
	width: 48px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 8px;
}
.inputmessage_input,
.inputmessage_send,
.inputmessage_voice,
.inputmessage_open {
	float: none;
	padding: 0;
}
@media (max-width: 900px) {
	.inputmessage {
		width: 98vw;
		min-width: 0;
		left: 1vw;
		transform: none;
	}
}
.tag-container {background-color: #FFFFFF; display: flex;}
.tag {background: url('../images/tabline.png') right no-repeat; padding: 0 15px; font-size: 14px; cursor: pointer; color: #617bab;line-height: 40px; display: flex; align-items: center;}
.tag.selected {background-color: #f4f7ff; color: #0064fb; background-image: none;}
#prevButton, #nextButton {background-color: #FFFFFF; border: none; cursor: pointer; padding: 0 10px; z-index: 1; height: 100%;}
.menu-container { flex-grow: 1; overflow: hidden; position: relative;}
.menu-actual { display: flex; white-space: nowrap; transition: transform 0.3s ease; list-style: none; padding: 0; margin: 0; height: 100%;}
.adopt{border: none;background: none;}
.what-time{vertical-align:top;line-height: 25px;}
.answer-container {border: 1px solid #ccc; padding: 10px; margin: 10px; background-color: #f9f9f9;}
.adopt-button {display: inline-block; cursor: pointer; position: relative;}
.adopt-button img {width: 21px; height: 21px; display: block;}
.adopt-button:hover::after {content: "采纳"; position: absolute; top: -30px; left: 0; background-color: #000; color: #fff; padding: 5px 10px; border-radius: 4px; font-size: 12px; white-space: nowrap;}
.think-panel-container {
	position: fixed;
	top: 100px;
	right: 120px;
	width: 250px;
	height: auto;
	padding: 10px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	z-index: 1000;
	border-radius: 16px;
	box-shadow: 0 2px 8px 0 rgba(161, 140, 209, 0.10);
}
.think-panel {
	margin-top: 10px;
	padding: 10px;
	background: #f9f9f9;
	border: 1px dashed #ccc;
	border-radius: 4px;
	max-height: 620px;
	overflow-y: auto;
	white-space: pre-wrap;
	border-radius: 12px;
}
.think-panel-header {display: flex; justify-content: space-between; align-items: center; padding-right: 10px;}
.think-panel-minimize {background: none; border: none; color: #617bab; cursor: pointer; padding: 5px; line-height: 1; display: flex; align-items: center; justify-content: center;}
.think-panel-minimize:hover {color: #0064fb;}
.think-panel-icon {font-size: 16px; display: inline-block; line-height: 1;}
.think-panel.minimized {height: 40px; overflow: hidden;}
.chatmessage::-webkit-scrollbar {
	width: 8px;
	background: #f4f7ff;
	border-radius: 8px;
}
.chatmessage::-webkit-scrollbar-thumb {
	background: #e0c3fc;
	border-radius: 8px;
}
.Userchange button {
	border-radius: 50%;
	border: none;
	background: #f4f7ff;
	transition: background 0.2s;
}
.Userchange button:disabled {
	opacity: 0.5;
}
.Userchange button:hover:not(:disabled) {
	background: #e0c3fc;
}
.inputmessage_send img {
	border-radius: 50%;
	box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.10);
	transition: box-shadow 0.2s;
}
.inputmessage_send img:hover {
	box-shadow: 0 4px 16px 0 rgba(0,100,251,0.18);
}


.inputmessage_send:hover {
    background-color: #0056b3; /* 示例悬停颜色 */
}
