/* ==================== 基础样式重置 ==================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html,
body {
	width: 100%;
	height: 100%;
	font-family: PingFangSC, PingFang SC;
	font-size: 14px;
	color: #1A1A1A;
	background: #fff;
}
a {
	text-decoration: none;
}
button {
	border: none;
	background: none;
	cursor: pointer;
}
.hidden {
	display: none !important;
}

.block{
	display: block !important;
}

/* 隐藏所有 textarea 滚动条 */
textarea {
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE 10+ */
}

textarea::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Edge */
}

/* ==================== 登录/注册页面样式 ==================== */
.auth-page {
	background: #fff;
}
.auth-container {
	display: flex;
	height: 100vh;
	width: 100vw;
}
/* 左侧品牌区 */
.auth-left {
	width: 452px;
	background: url(../images/bg_logo.jpg) no-repeat;
	background-size: 100% 100%;
	padding-top: 46px;
	box-sizing: border-box;
}
.brand-header {
	width: 204px;
	padding-left: 36px;
}
.brand-header img{
	width: 100%;
}
.brand-content {
	margin-top: 203px;
	font-family: SourceHanSansCN, SourceHanSansCN;
	font-weight: 500;
	font-size: 37px;
	color: #1A1A1A;
	line-height: 50px;
	text-align: center;
}
/* 右侧表单区 */
.auth-right {
	width: 400px;
	height: 454px;
	margin: 204px auto 0;
	background: #fff;
	padding: 56px 40px 70px;
	box-sizing: border-box;
	box-shadow: 0px 4px 24px 0px rgba(0,0,0,0.1);
	border-radius: 12px;
}
.auth-form-wrapper {
	width: 100%;
	height: 100%;
}
#termsFormWrapper .auth-header{
	margin-bottom: 21px;
}
.auth-title {
	font-family: SourceHanSansCN, SourceHanSansCN;
	font-weight: 500;
	font-size: 22px;
	color: #1A1A1A;
	line-height: 22px;
}
.form-input {
	width: 100%;
	height: 44px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 8px;
	color: #1E293B;
	background: #F7F7F9;
	transition: all 0.3s;
	outline: none;
	box-sizing: border-box;
}
.form-input::placeholder {
	color: #B8B9BD;
}
.form-input:focus {
	border-color: #4D6BFF;
}
.form-input.error {
	border-color: #EF4444;
}
.form-group {
	position: relative;
}
.auth-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 23px;
}
.error-msg {
	position: absolute;
	left: 0;
	bottom: -16px;
	display: block;
	font-size: 12px;
	color: #EF4444;
}
.form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #96A6C4;
	line-height: 20px;
	margin-top: 2px;
}
.register-link a,.forgot-link {
	color: #4D6BFF;
}
.btn-login {
	margin-top: 35px;
}
.btn-primary {
	width: 100%;
	height: 40px;
	background: #4D6BFF;
	color: #fff;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.3s;
}
.btn-primary:disabled {
	background: #D1D1D1;
	cursor: not-allowed;
}
.agreement {
	display: flex;
	align-items: center;
	color: #0D2042;
}
.checkbox-wrapper {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}
.checkbox-wrapper input[type="checkbox"] {
	display: none;
}
.checkmark {
	width: 16px;
	height: 16px;
	border: 1px solid #CBD5E1;
	border-radius: 3px;
	position: relative;
	transition: all 0.3s;
}
.checkbox-wrapper input[type="checkbox"]:checked+.checkmark {
	background: #4D6BFF;
	border-color: #4D6BFF;
}
.checkbox-wrapper input[type="checkbox"]:checked+.checkmark::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 0;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.agreement-link {
	color: #0072FF;
}
.auth-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 39px;
}
.back-to-login {
	color: #4D6BFF;
}
.btn-verify {
	padding: 12px 8px;
	background: #4D6BFF;
	color: #fff;
	border-radius: 8px;
	transition: all 0.3s;
}
.btn-verify:disabled {
	background: #D1D1D1;
	cursor: not-allowed;
}
.btn-register{
	margin-top: 6px;
}

/* 服务条款内容样式 */
.terms-content {
	overflow-y: auto;
	height: calc(100% - 43px);
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.terms-content::-webkit-scrollbar {
	display: none;
}

.terms-content p {
	color: #B8B9BD;
	line-height: 23px;
	margin-bottom: 16px;
	text-align: justify;
}

.verify-group {
	display: flex;
	gap: 12px;
}
.verify-group .form-input {
	flex: 1;
}
.register-link {
	color: #64748B;
}

/* ==================== 主应用布局 ==================== */
.app-container {
	display: flex;
	height: 100vh;
	background: #fff;
}

/* 侧边栏 - 纯图标导航 */
.sidebar {
	width: 74px;
	background: #F2F2F7;
	border-right: 1px solid #E9E9ED;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 17px 0 30px;
}

.sidebar-logo {
	margin-bottom: 56px;
}

.sidebar-nav {
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 10px;
}

.nav-item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	cursor: pointer;
	margin: 0 auto;
	padding: 8px;
	border-radius: 8px;
	transition: all 0.3s;
}
.nav-item:hover{
	background-color: rgba(51, 51, 51, .08);
}

.sidebar-footer {
	display: flex;
	flex-direction: column;
	gap: 19px;
	width: 100%;
}

/* 主内容区 */
.main-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* 顶部标签栏 */
.top-header {
	height: 56px;
	background: #F2F2F7;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px 0 20px;
}
.header_wrap{
	width: calc(100% - 212px);
	display: flex;
	align-items: center;
}
.header-tabs {
	display: flex;
	align-items: center;
	gap: 5px;
	max-width: calc(100% - 24px);
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.header-tabs::-webkit-scrollbar {
	display: none;
}

.tab-item {
	width: 134px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 12px 6px 9px;
	box-sizing: border-box;
	border-radius: 8px;
	font-size: 12px;
	color: #0D2042;
	cursor: pointer;
	transition: all 0.3s;
}

.tab-item:hover {
	background: #fff;
}

.tab-item.active {
	background: #fff;
}

.tab-item-content {
	display: flex;
	align-items: center;
	gap: 4px;
	overflow: hidden;
}

.tab-item-content span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 80px;
}

.tab-item .tab-close {
	display: none;
	width: 8px;
	height: 8px;
	margin-left: 4px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.tab-item .tab-close img {
	width: 100%;
	height: 100%;
}

.tab-item:hover .tab-close {
	display: flex;
}

.vertical_line {
	width: 1px;
	flex-shrink: 0;
	height: 20px;
	margin: 2px 6px;
	background-color: #BCC3D1;
	transition: background-color 0.2s;
}

/* tab-item 悬停或激活时，后面的 vertical_line 变色 */
.tab-item:hover + .vertical_line,
.tab-item.active + .vertical_line {
	background-color: #F2F2F7;
}

.new-tab-btn {
	width: 12px;
	height: 12px;
	cursor: pointer;
	display: flex;
	justify-content: center;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 28px;
}

.user-info {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.user-name {
	color: #0D2042;
}

.user-avatar {
	position: relative;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	/*background: #4D6BFF;*/
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	overflow: hidden;
	flex-shrink: 0;
}
.user-avatar>img {
	width: 100%;
	height: 100%;
}

.user-avatar .header-user-avatar-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.user-avatar.has-photo {
	background: #dbe2ff;
}

.logout-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0D2042;
	cursor: pointer;
	gap: 3px;
	line-height: 14px;
}


/* 主内容 */
.main-content {
	flex: 1;
	overflow: auto;
	background: #fff;
}

.page-content {
	display: none;
	height: 100%;
}

.page-content.active {
	display: block;
}

/* ==================== AI 对话页面 ==================== */
.chat-container {
	width: 49.8%;
	margin: 0 auto;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.welcome-screen {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.welcome-logo {
	width: 85px;
	height: 63px;
	margin-bottom: 32px;
}

.welcome-logo img {
	width: 100%;
	height: 100%;
}

.chat-input-box {
	width: 100%;
	min-height: 130px;
	background: #fff;
	box-shadow: 0px 10px 24px 0px rgba(136,136,136,0.08);
	border-radius: 24px;
	border: 1px solid #DCDFE4;
	padding: 18px 10px 10px;
	box-sizing: border-box;
}

/* 文件上传展示区域 */
.uploaded-files-container {
	width: 100%;
	padding-bottom: 20px;
	border-bottom: 1px solid #DCDFE4;
	margin: 0 8px 17px;
	box-sizing: border-box;
}

.uploaded-files-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 13px;
}

.uploaded-files-list {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 6px 6px 4px 0;
}

.uploaded-files-list::-webkit-scrollbar {
	display: none;
}

.uploaded-file-card {
	position: relative;
	flex-shrink: 0;
	width: 173px;
	height: 57px;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #DCDFE4;
	display: flex;
	align-items: center;
	padding: 13px 10px;
	box-sizing: border-box;
	transition: all 0.3s;
}

.uploaded-file-card:hover {
	border-color: #B4BBC7;
}

.uploaded-file-card.loading {
	opacity: 0.6;
	border-color: #DCDFE4;
}

/* 图片类型文件卡片 - 只有图片时显示缩略图模式 */
.uploaded-file-card.uploaded-file-image {
	padding: 0;
	width: 100px;
	height: 57px;
}

.uploaded-file-image-preview {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	overflow: hidden;
}

.uploaded-file-image-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.uploaded-file-image .uploaded-file-delete {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 18px;
	height: 18px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: all 0.3s;
	cursor: pointer;
	z-index: 10;
}

.uploaded-file-image:hover .uploaded-file-delete {
	opacity: 1;
}

.uploaded-file-image .uploaded-file-loading {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: rgba(0, 0, 0, 0.1);
}

.uploaded-file-icon {
	width: 36px;
	height: 36px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 10px;
	flex-shrink: 0;
}

.uploaded-file-icon img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.uploaded-file-info {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.uploaded-file-name {
	color: #0D2042;
	line-height: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.uploaded-file-meta {
	font-size: 12px;
	color: #B8B9BD;
	line-height: 12px;
	margin-top: 4px;
}

/* 快捷按钮容器 */
.file-quick-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

/* 快捷按钮 */
.file-quick-btn {
	padding: 6px 12px;
	background: #eee;
	border-radius: 14px;
	font-size: 12px;
	color: #0D2042;
	line-height: 12px;
	cursor: pointer;
	transition: all 0.2s;
}

.file-quick-btn.disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

/* 统一的快捷按钮容器 */
.unified-quick-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

/* 快捷操作消息中的文件列表 */
.quick-action-title {
	font-size: 18px;
	font-weight: 600;
	color: #0D2042;
	margin-bottom: 12px;
}

/* 消息中的文件列表 - 复用 uploaded-file-card 样式 */
.message-files {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.message-files .uploaded-file-card {
	cursor: pointer;
}

/* 文件预览弹窗 */
.file-preview-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.file-preview-modal .modal-content {
	width: 700px;
	max-height: 80vh;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.file-preview-modal .modal-header {
	padding: 20px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #E8E9EB;
}

.file-preview-modal .modal-title {
	font-size: 16px;
	font-weight: 600;
	color: #0D2042;
}

.file-preview-modal .modal-close {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: #999;
	background: none;
	border: none;
	cursor: pointer;
	transition: all 0.2s;
}

.file-preview-modal .modal-close:hover {
	color: #0D2042;
}

.file-preview-modal .modal-body {
	padding: 24px;
	max-height: calc(80vh - 80px);
	overflow-y: auto;
}

.file-preview-image {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 300px;
}

.file-preview-image img {
	max-width: 100%;
	max-height: 500px;
	object-fit: contain;
}

.file-preview-document {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 40px 20px;
}

.file-preview-icon {
	width: 80px;
	height: 80px;
	margin-bottom: 16px;
}

.file-preview-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.file-preview-info {
	text-align: center;
	margin-bottom: 30px;
}

.file-preview-name {
	font-size: 16px;
	font-weight: 600;
	color: #0D2042;
	margin-bottom: 8px;
}

.file-preview-meta {
	font-size: 13px;
	color: #999;
}

.file-preview-placeholder {
	padding: 40px;
	background: #F5F7FA;
	border-radius: 8px;
	text-align: center;
	width: 100%;
}

.file-preview-placeholder p {
	color: #999;
	font-size: 14px;
}

.uploaded-file-loading {
	position: absolute;
	bottom: 0;
	left: 12px;
	right: 12px;
	height: 1px;
	background: #B4BBC7;
	overflow: hidden;
}

.uploaded-file-loading-bar {
	height: 100%;
	background: #081F45;
	transition: width 0.3s;
}

.uploaded-file-delete {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 18px;
	height: 18px;
	opacity: 0;
	transition: all 0.3s;
	cursor: pointer;
}

.uploaded-file-card:hover .uploaded-file-delete {
	opacity: 1;
}

.uploaded-file-delete img {
	width: 100%;
	height: 100%;
}

.uploaded-files-nav {
	width: 27px;
	height: 57px;
	background: #fff;
	border: 1px solid #DCDFE4;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	z-index: 10;
	transition: all 0.3s;
	flex-shrink: 0;
	border-radius: 6px;
}

.uploaded-files-nav:hover {
	border-color: #B4BBC7;
}

.uploaded-files-nav.prev,
.uploaded-files-nav.next {
	position: static;
	transform: none;
}

.uploaded-files-nav img {
	width: 7px;
	height: 12px;
}
.refer_text{
	font-size: 12px;
	color: #CCCCCC;
	line-height: 17px;
	margin: 24px auto 28px;
	text-align: center;
}

.chat-input-wrapper {
	width: 100%;
	min-height: 44px;
	margin-left: 10px;
}

.chat-input-editor {
	width: 100%;
	min-height: 44px;
	max-height: 200px;
	border: none;
	outline: none;
	font-size: 16px;
	line-height: 22px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: pre-wrap;
	word-break: break-all;
	overflow-y: auto;
	resize: none;
}

.chat-input-editor::-webkit-scrollbar {
	width: 6px;
}

.chat-input-editor::-webkit-scrollbar-track {
	background: transparent;
}

.chat-input-editor::-webkit-scrollbar-thumb {
	background: #DCDFE4;
	border-radius: 3px;
}

.chat-input-editor::-webkit-scrollbar-thumb:hover {
	background: #B4BBC7;
}

.chat-input-editor:empty:before {
	content: attr(data-placeholder);
	font-size: 16px;
	color: #7F8897;
	line-height: 22px;
}

.chat-input-editor:focus:empty:before {
	content: attr(data-placeholder);
}

.knowledge-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	vertical-align: middle;
	padding: 0 8px;
	background: #efefef;
	border-radius: 5px;
	margin-right: 5px;
}

.knowledge-tag img {
	width: 14px !important;
	height: 14px !important;
}

.knowledge-tag span,
.knowledge-tag p {
	font-size: 14px !important;
	display: inline;
	margin: 0;
}

.chat-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 22px;
}

.toolbar-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.toolbar-btn {
	height: 36px;
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 11px;
	border-radius: 18px;
	color: #0D2042;
	cursor: pointer;
	transition: opacity 0.2s;
	border: 1px solid #DCDFE4;
}
.toolbar-btn:hover{
	background: #F2F2F7;
}
.toolbar-btn img:nth-of-type(2) {
	margin-left: 4px;
}

/* 添加链接下拉菜单 */
#linkBtn,
.ai-link-btn,
.ai-link-btn-active,
#knowledgeLinkBtn,
#kbDetailLinkBtn,
.pdf-link-btn,
.kb-link-btn,
.kb-detail-link-btn,
#chatLinkBtnActive {
	position: relative;
}

.link-dropdown-menu {
	position: absolute;
	bottom: 100%;
	left: 0;
	margin-bottom: 8px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	min-width: 160px;
	z-index: 100;
	padding: 8px;
}

.link-dropdown-menu.hidden {
	display: none;
}

.link-dropdown-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 8px;
	cursor: pointer;
	color: #0D2042;
	transition: all 0.2s;
}

.link-dropdown-item:hover {
	background: #F5F7FA;
}

.link-dropdown-item i {
	font-size: 16px;
	color: #666;
}

/* 文件类型hover提示 */
.file-type-tooltip {
	position: absolute;
	bottom: 100%;
	left: 0;
	margin-bottom: 8px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	z-index: 100;
	padding: 12px 16px;
}

.file-type-tooltip.hidden {
	display: none;
}

.file-type-text {
	font-size: 13px;
	color: #666;
	line-height: 1.5;
	white-space: nowrap;
}

/* 允许文字自动折行 */
.file-type-text-wrap {
	white-space: normal;
	word-wrap: break-word;
	max-width: 280px;
}

/* 右定位的tooltip */
.file-type-tooltip-right {
	left: auto;
	right: 0;
}

/* 选择知识库下拉菜单 */
#knowledgeAtBtn,
.chat-at-btn,
.kb-at-btn,
.ai-at-btn,
.ai-at-btn-active {
	position: relative;
}

.knowledge-at-dropdown {
	position: fixed;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	min-width: 280px;
	z-index: 1000;
	padding: 8px;
}

.knowledge-at-dropdown.hidden {
	display: none;
}

.knowledge-at-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	cursor: pointer;
	color: #0D2042;
	transition: all 0.2s;
}

.knowledge-at-item:hover {
	background: #F5F7FA;
}

.knowledge-at-item img {
	width: 24px;
	height: 24px;
	border-radius: 4px;
	object-fit: cover;
}

.knowledge-at-item span {
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.send-btn {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #4D6BFF;
	color: #fff;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s;
	flex-shrink: 0;
}

.send-btn:disabled {
	background: #D9D9D9;
	cursor: not-allowed;
}

/* 消息列表 */
.messages-container {
	flex: 1;
	overflow-y: auto;
	padding-top: 60px;
	margin: 0 auto;
	width: 100%;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE 10+ */
}

.messages-container::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Edge */
}

.message {
	display: flex;
	gap: 12px;
	margin-bottom: 32px;
}

.message-ai {
	flex-direction: column;
}

.message-content {
	width: 100%;
}

/* 新样式：文章式消息 */
.message-title {
	font-weight: 600;
	font-size: 28px;
	color: #0D2042;
	line-height: 28px;
}

.message-meta {
	font-size: 12px;
	color: #7F8897;
	line-height: 17px;
	margin-bottom: 24px;
}

.message-references {
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.message-references:not(.message-references-list-open) .message-reference-list {
	display: none;
}

.message-references-list-open .message-reference-list {
	display: flex;
}

.reference-tag-toggle {
	cursor: pointer;
	border-radius: 8px;
	padding: 6px 10px;
	margin: -6px -10px;
	align-self: flex-start;
	transition: background-color 0.15s ease;
}

.reference-tag-toggle:hover {
	background: rgba(13, 32, 66, 0.06);
}

.reference-tag-toggle:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(13, 32, 66, 0.15);
}

.reference-tag-chevron {
	padding-top: 2px;
	transition: transform 0.2s ease;
	vertical-align: middle;
}

.message-references-list-open .reference-tag-chevron {
	transform: rotate(90deg);
}

.reference-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #7F8897;
	line-height: 20px;
}

.message-reference-list {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.message-reference-item {
	padding: 8px 10px;
	border: 1px solid #E9EDF3;
	border-radius: 8px;
	background: #FAFBFD;
}

.message-reference-head {
	width: 100%;
	border: 0;
	background: transparent;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
}

.message-reference-file {
	font-size: 13px;
	font-weight: 600;
	color: #3E4A59;
}

.message-reference-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.message-reference-toggle-icon {
	display: block;
	width: 6px;
	height: auto;
	margin-left: 10px;
	transition: transform 0.2s ease;
}

.message-reference-snippet {
	font-size: 12px;
	line-height: 18px;
	color: #6B7685;
	margin-top: 8px;
	display: none;
}

.message-reference-item[data-open="1"] .message-reference-snippet {
	display: block;
}

.message-reference-item[data-open="1"] .message-reference-toggle-icon {
	transform: rotate(90deg);
}

/* AI 思考过程（流式 reasoning_content）：标题固定，正文约 3 行可视窗口内滚动 */
.message-reasoning {
	margin-bottom: 16px;
	padding: 12px 14px;
	background: #F4F6FA;
	border: 1px solid #E4E8EF;
	border-radius: 10px;
	overflow: visible;
}

.message-reasoning-label {
	font-size: 12px;
	font-weight: 600;
	color: #5C6573;
	margin-bottom: 8px;
}

.message-reasoning-viewport {
	font-size: 14px;
	line-height: 1.6;
	max-height: calc(1.6em * 3);
	overflow-y: auto;
	overflow-x: hidden;
	scroll-behavior: auto;
	-webkit-overflow-scrolling: touch;
}

.message-reasoning-body {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #4A5568;
	word-break: break-word;
}

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

.message-reasoning-body p:last-child {
	margin-bottom: 0;
}

.message-reasoning-body pre {
	margin: 0.5em 0;
	padding: 10px 12px;
	overflow-x: auto;
	border-radius: 6px;
	background: #E8ECF3;
	font-size: 13px;
}

.message-reasoning-body code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 0.92em;
}

.message-actions-bar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
	margin: 16px 0;
	border-bottom: 1px solid #DCDFE4;
	padding-bottom: 16px;
}

.action-icon-btn {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

/* 消息头部区域 - 标题和图片纵向居中 */
.message-header-section {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.message-header-section .message-title {
	text-align: center;
	margin-bottom: 0;
}

.message-header-img {
	width: 36px;
	height: 36px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.message-header-img:hover {
	opacity: 0.8;
}

.message-header-img:active {
	transform: scale(0.95);
}

.message-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 12px;
	color: #8C8C8C;
}

.message-actions {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.stop-generating {
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0px 0px 16px 0px rgba(136,136,136,0.3);
	border-radius: 14px;
	gap: 7px;
	padding: 18px 20px;
	background: #fff;
	cursor: pointer;
	margin: 55px auto;
	transition: all 0.3s;
	color: #0D2042;
	line-height: 20px;
}


/* 相关问题推荐 */
.related-questions{
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.related-question-item {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	transition: all 0.3s;
	color: #7F8897;
	line-height: 22px;
}

.related-question-item:hover {
	color: #4D6BFF;
}

.related-question-item::before {
	content: '';
	width: 8px;
	height: 8px;
	background: #0D2042;
	border-radius: 50%;
}

.related-question-item:hover::before {
	background: #4D6BFF;
}

/* 知识库选择下拉菜单 */
.knowledge-dropdown {
	position: absolute;
	background: #fff;
	border: 1px solid #E8E8E8;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	padding: 4px;
	z-index: 1000;
	min-width: 140px;
}

.knowledge-dropdown-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 13px;
	color: #262626;
	cursor: pointer;
	transition: all 0.3s;
}

.knowledge-dropdown-item:hover {
	background: #F5F5F5;
}

.knowledge-dropdown-item i {
	color: #8C8C8C;
	font-size: 14px;
}

/* ==================== 知识库页面 ==================== */
#knowledgePage,.discover-detail-page {
	display: none;
	flex-direction: column;
	height: 100%;
}

#knowledgePage.active,.discover-detail-page.active {
	display: flex;
}

.knowledge-layout {
	display: flex;
	flex: 1;
	overflow: hidden;
}

/* 左侧分类栏 */
.knowledge-sidebar {
	width: 276px;
	padding: 16px 6px;
	background: #FAFAFC;
	overflow-y: auto;
	box-sizing: border-box;
	position: relative;
	flex-shrink: 0;
}

/* 中间内容区容器 */
.knowledge-center {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 18px 24px 0 24px;
}
.sidebar-toggle-btn{
	width: 13px;
	height: 12px;
	margin-bottom: 9px;
	cursor: pointer;
}
.knowledge-category {
	display: flex;
	align-items: center;
	padding: 10px 18px;
	cursor: pointer;
	transition: all 0.3s;
	color: #262626;
	margin-bottom: 16px;
	font-weight: 600;
	color: #0D2042;
}
.line{
	position: absolute;
	left: 0;
	top: 72px;
	width: 100%;
	height: 1px;
	background-color: #E9E9ED;
}
.common_module{
	font-weight: 600;
	color: #0D2042;
	line-height: 20px;
	padding: 16px 0 17px 18px;
}
.knowledge-category:hover {
	background: #F5F5F5;
}

.knowledge-category.active {
	background: #ECEFFF;
	border-radius: 8px;
}
.section-content{
	margin-bottom: 12px;
}
.section-header {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 18px;
	cursor: pointer;
	font-size: 12px;
	color: #0D2042;
	line-height: 17px;
}
.join_folder{
	margin: 16px 0;
}
.section-header span {
	flex: 1;
	font-weight: 600;
	color: #0D2042;
	line-height: 20px;
}
.section-header .toggle-icon {
	width: 12px;
	text-align: center;
}

.add-knowledge-btn {
	font-size: 12px;
	color: #8C8C8C;
	cursor: pointer;
	transition: color 0.2s;
}

.add-knowledge-btn:hover {
	color: #1890FF;
}

.knowledge-sub-item {
	display: flex;
	align-items: center;
	border-radius: 8px;
	gap: 2px;
	margin-top: 6px;
	cursor: pointer;
	color: #0D2042;
	line-height: 17px;
	padding: 10px 18px;
	font-size: 12px;
}

.knowledge-sub-item:hover,.knowledge-sub-item.active {
	background: #ECEFFF;
}
.knowledge-sub-item img{
	width: 17px;
	height: 17px;
}

/* 中间内容区 */
.knowledge-main {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.knowledge-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 31px;
	font-weight: 600;
	font-size: 20px;
	color: #0D2042;
}

.nav_zindex{
	display: flex;
	align-items: center;
}

.knowledge-folder-path {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 400;
	color: #666;
	margin-left: 24px;
}

.knowledge-folder-path .path-separator {
	color: #999;
	font-size: 10px;
	margin: 0 2px;
}

.knowledge-folder-path .folder-name {
	color: #999;
	cursor: pointer;
}
.current-folder{
	color: #333 !important;
	font-weight: bold;
}

.knowledge-actions {
	display: flex;
	gap: 8px;
}

.action-btn {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s;
}

.action-btn:hover {
	border: 1px solid #DCDFE4;
	background: #F2F2F7;
}

/* 右侧操作栏 */
.knowledge-rightbar {
	width: 160px;
	padding: 16px;
	border-left: 1px solid #E8E8E8;
}

.rightbar-section {
	margin-bottom: 16px;
}

.rightbar-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.3s;
	font-size: 13px;
	color: #262626;
}

.rightbar-item:hover {
	background: #F5F5F5;
}

.rightbar-item i {
	font-size: 14px;
	color: #8C8C8C;
}

/* 知识库网格 */
.knowledge-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

/* 知识库卡片 */
.knowledge-card {
	background: #fff;
	border: 1px solid #E8E8E8;
	border-radius: 12px;
	padding: 16px;
	cursor: pointer;
	transition: all 0.3s;
	position: relative;
}

.knowledge-card:hover {
	border-color: #4D6BFF;
	box-shadow: 0 2px 8px rgba(77, 107, 255, 0.1);
}

.knowledge-card.selected {
	border-color: #4D6BFF;
	background: #FAFBFF;
}

.knowledge-card-checkbox {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 16px;
	height: 16px;
	border: 1px solid #D9D9D9;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: all 0.3s;
}

.knowledge-card:hover .knowledge-card-checkbox,
.knowledge-card.selected .knowledge-card-checkbox {
	opacity: 1;
}

.knowledge-card.selected .knowledge-card-checkbox {
	background: #4D6BFF;
	border-color: #4D6BFF;
}

.knowledge-card.selected .knowledge-card-checkbox::after {
	content: '';
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	margin-bottom: 4px;
}

.knowledge-card-title {
	color: #0D2042;
	line-height: 18px;
	margin: 6px 0;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	height: 36px;
}

.knowledge-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	color: #7F8897;
	line-height: 12px;
}

.knowledge-card-meta {
	display: flex;
	align-items: center;
}

.knowledge-card-tags-wrapper {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 83px;
	display: flex;
	align-items: center;
	gap: 4px;
	justify-content: space-between;
	padding: 0 9px;
}

.knowledge-card-tags-left {
	display: flex;
	align-items: center;
	gap: 4px;
}

.knowledge-card-tag {
	display: flex;
	align-items: center;
	gap: 4px;
	background: rgba(0, 0, 0, 0.5);
	padding: 3px 11px 3px 6px;
	border-radius:  4px;
	line-height: 18px;
	color: #fff;
	font-size: 12px;
	clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
	max-width: 51px;
	line-height: 12px;
}

.knowledge-card-tag span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.knowledge-card-tag-more {
	padding: 3px 8px;
	clip-path: none;
	border-radius: 50%;
	min-width: 24px;
	justify-content: center;
}

/* 底部提问输入框 */
.knowledge-chat-input {
	width: 82.1%;
	margin: 24px auto 0;
	background: #fff;
	z-index: 10;
}

.knowledge-chat-input .chat-input-box {
	width: 100%;
	height: auto;
	min-height: 130px;
	position: relative;
}

/* 上传下拉菜单 */
.knowledge-actions {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* 知识库搜索框 */
.knowledge-search-box {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #FAFAFC;
	border-radius: 8px;
	padding: 12px 10px;
	width: 262px;
	transition: all 0.3s;
}

.knowledge-search-box.hidden {
	display: none;
}

.knowledge-search-box img {
	width: 14px;
	height: 14px;
	opacity: 0.5;
}

.knowledge-search-box input {
	flex: 1;
	border: none;
	background: transparent;
	outline: none;
	font-size: 12px;
}

.knowledge-search-box input::placeholder {
	color: #C0C4CC;
}

.upload-dropdown {
	position: fixed;
	top: 128px;
	right: 0;
	background: #fff;
	padding: 8px;
	z-index: 100;
	box-shadow: 0px 0px 16px 0px rgba(136,136,136,0.3);
	border-radius: 14px;
}

.upload-dropdown-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.3s;
	line-height: 14px;
	font-size: 14px;
	font-weight: 400;
	color: #0D2042;
}

.upload-dropdown-item:hover {
	background: #F5F5F5;
}
.upload_line{
	margin: 8px auto;
	width: 100%;
	height: 1px;
	background: #E9E9ED;
}

/* 排序下拉菜单 */
.sort-dropdown {
	position: absolute;
	top: 100%;
	right: 10px;
	margin-top: 8px;
	background: #fff;
	padding: 8px;
	z-index: 100;
	box-shadow: 0px 0px 16px 0px rgba(136,136,136,0.3);
	border-radius: 14px;
	min-width: 120px;
}

.sort-dropdown-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 10px;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.3s;
	font-size: 14px;
	font-weight: 400;
	color: #0D2042;
}

.sort-dropdown-item:hover {
	background: #F5F5F5;
}

.sort-dropdown-item.active {
	color: #4D6BFF;
	background: #EEF2FF;
}

.sort-dropdown-item .fa-check {
	font-size: 12px;
}
.input-action.icon-only {
	font-size: 14px;
}

.knowledge-chat-input .send-btn {
	position: absolute;
	right: 8px;
	bottom: 8px;
	width: 36px;
	height: 36px;
	background: #4D6BFF;
	border: none;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.knowledge-chat-input .send-btn:hover {
	background: #3D5BE5;
}

/* 卡片右键菜单 */
.knowledge-card-menu {
	width: 155px;
	box-sizing: border-box;
	position: absolute;
	top: 100%;
	margin-top: 12px;
	background: #fff;
	padding: 8px;
	z-index: 1000;
	box-shadow: 0px 0px 16px 0px rgba(136,136,136,0.3);
	border-radius: 14px;
}

.knowledge-card-menu-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	border-radius: 6px;
	color: #0D2042;
	cursor: pointer;
	transition: all 0.3s;
}

.knowledge-card-menu-item:hover {
	background: #F5F5F5;
}

.knowledge-card-menu-item.delete {
	color: #FF6666;
}

.knowledge-card-menu-item.delete:hover {
	background: #FFF2F0;
}

/* 导入网页链接弹窗 */
.link-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000;
}

.link-modal-container {
	background: #fff;
	width: 420px;
	box-shadow: 0px 0px 60px 0px rgba(136,136,136,0.5);
	border-radius: 24px;
}

.link-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px;
}

.link-modal-title {
	display: flex;
	align-items: center;
	gap: 5px;
	font-family: SourceHanSansCN, SourceHanSansCN;
	font-weight: bold;
	font-size: 18px;
	color: #0D2042;
	line-height: 18px;
}

.link-modal-title img {
	width: 18px;
	height: 18px;
}

.link-modal-close {
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: opacity 0.2s;
}

.link-modal-close:hover {
	opacity: 0.7;
}

.link-modal-body {
	padding: 0 24px 24px;
	border-bottom: 1px solid #E6E9EF;
}

.link-modal-textarea {
	width: 100%;
	height: 120px;
	padding: 12px 18px;
	border-radius: 8px;
	background: #F7F7F9;
	resize: none;
	outline: none;
	transition: all 0.3s;
	box-sizing: border-box;
	border: none;
}

.link-modal-textarea::placeholder {
	color: #B8B9BD;
}

.link-modal-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
}

.link-modal-hint {
	color: #B8B9BD;
	line-height: 20px;
}

.link-modal-btn {
	padding: 10px 33px;
	color: #fff;
	font-weight: 600;
	line-height: 20px;
	background: #4D6BFF;
	border-radius: 6px;
	backdrop-filter: blur(6px);
}

/* 旧样式保留兼容 */
.knowledge-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px;
}

.knowledge-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	gap: 16px;
}

.search-box {
	flex: 1;
	max-width: 320px;
	position: relative;
}

.search-box input {
	width: 100%;
	padding: 8px 12px 8px 36px;
	border: 1px solid #E8E8E8;
	border-radius: 8px;
	font-size: 13px;
	outline: none;
	transition: all 0.3s;
	background: #F5F5F5;
}

.search-box input:focus {
	background: #fff;
	border-color: #4D6BFF;
}

.search-box i {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #8C8C8C;
	font-size: 14px;
}

.toolbar-actions {
	display: flex;
	gap: 8px;
}

.btn-secondary {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #fff;
	border: 1px solid #E8E8E8;
	border-radius: 6px;
	font-size: 13px;
	color: #262626;
	cursor: pointer;
	transition: all 0.3s;
}

.btn-secondary:hover {
	background: #F5F5F5;
	border-color: #4D6BFF;
	color: #4D6BFF;
}

.view-toggle {
	display: flex;
	background: #F5F5F5;
	border-radius: 6px;
	overflow: hidden;
}

.view-toggle-btn {
	padding: 8px 12px;
	font-size: 14px;
	color: #8C8C8C;
	cursor: pointer;
	transition: all 0.3s;
}

.view-toggle-btn:hover {
	color: #4D6BFF;
}

.view-toggle-btn.active {
	background: #4D6BFF;
	color: #fff;
}

.knowledge-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
}

.knowledge-tab {
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	color: #595959;
	cursor: pointer;
	transition: all 0.3s;
}

.knowledge-tab:hover {
	background: #F5F5F5;
}

.knowledge-tab.active {
	background: #4D6BFF;
	color: #fff;
}

/* 知识库列表 */
.knowledge-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.knowledge-item {
	display: flex;
	align-items: center;
	padding: 14px 16px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #E8E8E8;
	cursor: pointer;
	transition: all 0.3s;
}

.knowledge-item:hover {
	border-color: #4D6BFF;
	box-shadow: 0 2px 8px rgba(77, 107, 255, 0.1);
}

.knowledge-item-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #EEF2FF;
	border-radius: 8px;
	margin-right: 14px;
	color: #4D6BFF;
	font-size: 18px;
}

.knowledge-item-info {
	flex: 1;
}

.knowledge-item-name {
	font-size: 14px;
	font-weight: 500;
	color: #262626;
	margin-bottom: 4px;
}

.knowledge-item-meta {
	font-size: 12px;
	color: #8C8C8C;
}

.knowledge-item-actions {
	display: flex;
	gap: 4px;
}

.knowledge-action-btn {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	color: #8C8C8C;
	cursor: pointer;
	transition: all 0.3s;
}

.knowledge-action-btn:hover {
	background: #F5F5F5;
	color: #4D6BFF;
}

/* 知识库宫格 */
.knowledge-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.knowledge-grid .knowledge-card {
	flex-shrink: 0;
	width: 153px;
	height: 163px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #DCDFE4;
	transition: all 0.3s;
	padding: 10px 10px 6px 10px;
	box-sizing: border-box;
}

.knowledge-card:hover {
	border-color: #4D6BFF;
	box-shadow: 0 2px 8px rgba(77, 107, 255, 0.1);
}

.knowledge-card-icon {
	width: 100%;
	height: 79px;
	font-size: 8px;
	color: #B1B2B5;
	line-height: 13px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	overflow: hidden;
	text-overflow: ellipsis;
	display: flex;
	align-items: center;
	justify-content: center;
}

.knowledge-card-icon img {
	width: 54px;
	height: 54px;
	object-fit: contain;
}

.knowledge-card-name {
	font-size: 13px;
	font-weight: 500;
	color: #262626;
	margin-bottom: 4px;
}

.knowledge-card-meta {
	font-size: 12px;
	color: #8C8C8C;
}

/* ==================== 知识库列表视图 ==================== */
.knowledge-list-view {
	width: 100%;
}

.knowledge-list-header {
	display: flex;
	align-items: center;
	padding: 0 20px 16px;
	font-size: 12px;
	color: #7E8898;
	line-height: 12px;
}

.knowledge-list-header .list-header-name {
	flex: 1;
}

.knowledge-list-header .list-header-type {
	width: 130px;
	text-align: left;
}

.knowledge-list-header .list-header-size {
	width: 100px;
	text-align: left;
}

.knowledge-list-header .list-header-tags {
	width: 200px;
	text-align: left;
}

.knowledge-list-header .list-header-date {
	width: 70px;
	text-align: left;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
}

.knowledge-list-header .list-header-date img {
	width: 14px;
	height: 14px;
	cursor: pointer;
}

.knowledge-list-item {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	border-bottom: 1px solid #F0F0F0;
	cursor: pointer;
	transition: background 0.2s;
}

.knowledge-list-item:hover {
	background: #F5F7FA;
}

.knowledge-list-item.selected {
	background: #F0F5FF;
}

.knowledge-list-item .list-item-checkbox {
	width: 16px;
	height: 16px;
	border: 1px solid #D9D9D9;
	border-radius: 2px;
	margin-right: 10px;
	cursor: pointer;
	flex-shrink: 0;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	outline: none;
	background: #fff;
}

.knowledge-list-item .list-item-checkbox:checked {
	background: #4D6BFF;
	border-color: #4D6BFF;
	position: relative;
}

.knowledge-list-item .list-item-checkbox:checked::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.knowledge-list-item .list-item-icon {
	width: 20px;
	height: 20px;
	margin-right: 10px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.knowledge-list-item .list-item-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.knowledge-list-item .list-item-name-wrapper {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
}

.knowledge-list-item .list-item-name {
	font-size: 14px;
	color: #262626;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.knowledge-list-item .list-item-tag {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	background: #6B7280;
	border-radius: 4px;
	font-size: 12px;
	color: #fff;
	white-space: nowrap;
	flex-shrink: 0;
}

.knowledge-list-item .list-item-tag img {
	width: 10px;
	height: 10px;
}

.knowledge-list-item .list-item-type {
	width: 130px;
	font-size: 13px;
	color: #8C8C8C;
}

.knowledge-list-item .list-item-size {
	width: 100px;
	font-size: 13px;
	color: #8C8C8C;
}

.knowledge-list-item .list-item-date {
	width: 70px;
	font-size: 13px;
	color: #8C8C8C;
}

/* PDF预览弹窗 */
.pdf-tab-content {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #f8f9fa;
	z-index: 1;
}

.pdf-preview-container {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

/* 顶部工具栏 */
.pdf-preview-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 5px 18px 8px 10px;
	background: #fff;
}
.pdf-header{
	padding: 14px 16px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 16px;
	color: #0D2042;
	line-height: 20px;
}
.pdf-collect-btn{
	cursor: pointer;
}
.pdf-header-actions{
	display: flex;
	align-items: center;
	gap: 10px;
}
.pdf-ask-btn{
	cursor: pointer;
	padding: 8px 12px;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 2px;
	background: #F2F2F7;
	border-radius: 18px;
}
.pdf-header-left {
	display: flex;
	align-items: center;
	gap: 16px;
	position: absolute;
}

.pdf-toc-toggle {
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #666;
	border-radius: 4px;
	transition: all 0.3s;
}

.pdf-toc-toggle:hover {
	background: #f0f0f0;
	color: #4D6BFF;
}

.pdf-page-info-simple {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #0D2042;
	line-height: 20px;
}

.pdf-page-info-simple input {
	width: 36px;
	height: 24px;
	text-align: center;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	font-size: 13px;
	padding: 0 4px;
}

.pdf-header-right {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	flex: 1;
}

.pdf-download-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	gap: 2px;
	padding: 4px;
	background: transparent;
	transition: all 0.3s;
	border-radius: 4px;
}


.pdf-download-wrapper:hover {
	background: #f0f0f0;
}
.pdf-toolbar-btn{
	display: flex;
	align-items: center;
	justify-content: center;
}

.pdf-zoom-level {
	text-align: center;
	color: #0D2042;
}

.pdf-toolbar-divider {
	width: 1px;
	height: 16px;
	background: #BCC3D1;
	margin-left: 9px;
}

.pdf-fit-btn {
	font-size: 12px;
}

.pdf-close-btn:hover {
	color: #666;
}

/* 主体内容区 */
.pdf-preview-body {
	display: flex;
	flex: 1;
	overflow: hidden;
	position: relative;
}

/* PDF预览包装器 */
.pdf-preview-wrapper {
	display: flex;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* PDF预览容器 */
.pdf-preview-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: width 0.3s ease;
}

/* PDF AI对话面板 */
.pdf-ai-chat-panel {
	width: 0;
	height: 100%;
	background: #fff;
	border-left: 1px solid #e8e8e8;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: width 0.3s ease;
	flex-shrink: 0;
}

.pdf-ai-chat-panel.active {
	width: 418px;
}

.pdf-ai-chat-header {
	display: flex;
	justify-content: flex-end;
	padding: 24px 16px 0 0;
	background: #FAFAFC;
}

.pdf-ai-chat-close {
	width: 20px;
	height: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s;
}
.pdf-ai-chat-close img {
	width: 100%;
	height: 100%;
}

.pdf-ai-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 32px 24px 24px;
	background: #FAFAFC;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.pdf-ai-chat-messages::-webkit-scrollbar {
	display: none;
}

.pdf-ai-message {
	margin-bottom: 42px;
}

.pdf-ai-message-user {
	display: flex;
	justify-content: flex-end;
}

.pdf-ai-message-user .pdf-ai-message-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	max-width: 100%;
}

.pdf-ai-message-user .pdf-ai-message-content {
	color: #fff;
	padding: 20px;
	background: #0D2042;
	border-radius: 12px;
	line-height: 20px;
	width: fit-content;
}

.pdf-ai-message-user .message-files {
	justify-content: flex-end;
	margin-bottom: 0;
	max-width: 100%;
}

.pdf-ai-message-ai .pdf-ai-message-content {
	background: #FAFAFC;
	color: #0D2042;
	text-align: left;
}

.pdf-ai-message-link {
	text-decoration: none;
	display: inline-block;
	padding: 1px 6px;
	background: #DBE1FF;
	border-radius: 4px;
	font-size: 12px;
	color: #4D6BFF;
	line-height: 18px;
}


.pdf-ai-chat-input-area {
	padding: 16px;
	background: #FAFAFC;
}

.pdf-chat-input-box .document-chat-files-container {
	margin: 0 0 12px;
	padding-bottom: 12px;
}

.pdf-chat-input-box .document-chat-files-list {
	max-width: 100%;
}

.pdf-chat-input-box .document-chat-files-list .uploaded-file-card {
	width: 100%;
	max-width: 320px;
}

.pdf-ai-chat-input-box {
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 12px;
	background: #fafafa;
}

.pdf-ai-chat-input {
	width: 100%;
	border: none;
	background: transparent;
	font-size: 14px;
	outline: none;
	margin-bottom: 8px;
}

.pdf-ai-chat-input::placeholder {
	color: #999;
}

.pdf-ai-chat-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.pdf-ai-chat-model-btn,
.pdf-ai-chat-link-btn {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 10px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 12px;
	color: #666;
	border-radius: 4px;
	transition: all 0.3s;
}

.pdf-ai-chat-model-btn:hover,
.pdf-ai-chat-link-btn:hover {
	background: #f0f0f0;
}

.pdf-ai-chat-model-btn img,
.pdf-ai-chat-link-btn img {
	width: 14px;
	height: 14px;
}

.pdf-ai-chat-send-btn {
	width: 32px;
	height: 32px;
	border: none;
	background: #4D6BFF;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s;
	margin-left: auto;
}

.pdf-ai-chat-send-btn:hover {
	background: #3D5BE5;
}

.pdf-ai-chat-send-btn img {
	width: 16px;
	height: 16px;
}

.pdf-ai-chat-footer {
	text-align: center;
	font-size: 12px;
	color: #999;
	margin-top: 8px;
}

.pdf-sidebar {
	width: 240px;
	background: #fff;
	border-right: 1px solid #e8e8e8;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	transition: all 0.3s;
	overflow: hidden;
}

.pdf-sidebar.hidden {
	width: 0;
	border-right: none;
	overflow: hidden;
}

.pdf-toc-content {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.pdf-toc-content::-webkit-scrollbar {
	display: none;
}

.pdf-toc-item {
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 12px;
	padding: 10px;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.3s;
	margin-bottom: 8px;
	border: 2px solid transparent;
}

.pdf-toc-item:hover {
	background: #f5f5f5;
}

.pdf-toc-item.active {
	background: #e6f0ff;
	border-color: #4D6BFF;
}

.pdf-toc-thumbnail {
	width: 70px;
	height: 90px;
	flex-shrink: 0;
	background: #f0f0f0;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pdf-toc-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
}

.pdf-toc-page-num {
	font-size: 14px;
	color: #666;
	font-weight: 500;
}

.pdf-toc-item:hover .pdf-toc-page-num {
	color: #4D6BFF;
}

.pdf-toc-item.active .pdf-toc-page-num {
	color: #4D6BFF;
}
.pdf_pages_container {
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: none;
}

.pdf_pages_container.active {
	display: block;
}

.pdf-viewer-container {
	flex: 1;
	overflow: auto;
	padding: 20px 24px 24px;
	background: #FAFAFC;
}
.pdf-viewer-container::-webkit-scrollbar {
	display: none;
}

.pdf-viewer-container {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.pdf-pages-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.pdf-page-wrapper {
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border-radius: 4px;
	overflow: hidden;
}

.pdf-page-wrapper canvas {
	display: block;
}

/* ==================== DOCX 预览样式 ==================== */
.docx-viewer-page {
	width: 100%;
	height: 100%;
}

.docx-preview-wrapper {
	display: flex;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.docx-preview-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: width 0.3s ease;
}

.docx-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 24px;
	background: #fff;
	border-bottom: 1px solid #e8e8e8;
}

.docx-header-center {
	flex: 1;
	text-align: center;
}

.docx-file-name {
	font-size: 16px;
	font-weight: 500;
	color: #0D2042;
}

.docx-header-actions {
	display: flex;
	gap: 16px;
}

.docx-collect-btn,
.docx-ask-btn {
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	transition: all 0.3s;
}

.docx-collect-btn img,
.docx-ask-btn img {
	width: 20px;
	height: 20px;
}

.docx-ask-btn span {
	font-size: 14px;
	color: #0D2042;
}

.docx-preview-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 24px;
	background: #FAFAFC;
	border-bottom: 1px solid #e8e8e8;
}

.docx-header-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.docx-toc-toggle {
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.3s;
}

.docx-toc-toggle:hover {
	background: #e8e8e8;
}

.docx-toc-toggle img {
	width: 20px;
	height: 20px;
}

.docx-page-info {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #0D2042;
}

.docx-page-input {
	width: 48px;
	height: 28px;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	text-align: center;
	font-size: 14px;
	color: #0D2042;
}

.docx-page-input:focus {
	outline: none;
	border-color: #4D6BFF;
}

.docx-header-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.docx-toolbar-btn {
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.3s;
}

.docx-toolbar-btn:hover {
	background: #e8e8e8;
}

.docx-toolbar-btn img {
	width: 20px;
	height: 20px;
}

.docx-zoom-level {
	font-size: 14px;
	color: #0D2042;
	min-width: 40px;
	text-align: center;
}

.docx-toolbar-divider {
	width: 1px;
	height: 20px;
	background: #d9d9d9;
}

.docx-download-wrapper {
	display: flex;
	align-items: center;
	gap: 4px;
}

.docx-download-wrapper span {
	font-size: 14px;
	color: #0D2042;
}

.docx-preview-body {
	flex: 1;
	display: flex;
	overflow: hidden;
}

.docx-sidebar {
	width: 240px;
	background: #fff;
	border-right: 1px solid #e8e8e8;
	overflow-y: auto;
	transition: width 0.3s ease;
}

.docx-sidebar.hidden {
	width: 0;
	overflow: hidden;
}

.docx-toc-title {
	padding: 16px;
	font-size: 14px;
	font-weight: 500;
	color: #0D2042;
	border-bottom: 1px solid #e8e8e8;
}

.docx-toc-content {
	padding: 8px 0;
}

.docx-toc-item {
	padding: 8px 16px;
	cursor: pointer;
	font-size: 14px;
	color: #0D2042;
	transition: all 0.3s;
}

.docx-toc-item:hover {
	background: #F5F7FA;
}

.docx-viewer-container {
	flex: 1;
	overflow-y: auto;
	background: #f5f5f5;
	padding: 24px;
}

.docx-content {
	background: #fff;
	padding: 40px;
	min-height: 100%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border-radius: 4px;
}

.docx-ai-chat-panel {
	width: 0;
	height: 100%;
	background: #fff;
	border-left: 1px solid #e8e8e8;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: width 0.3s ease;
	flex-shrink: 0;
}

.docx-ai-chat-panel:not(.hidden) {
	width: 418px;
}

.docx-ai-chat-header {
	display: flex;
	justify-content: flex-end;
	padding: 24px 16px 0 0;
	background: #FAFAFC;
}

.docx-ai-chat-close {
	width: 20px;
	height: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s;
}

.docx-ai-chat-close img {
	width: 100%;
	height: 100%;
}

.docx-ai-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 32px 24px 24px;
	background: #FAFAFC;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.docx-ai-chat-messages::-webkit-scrollbar {
	display: none;
}

.docx-ai-chat-input-area {
	padding: 16px;
	background: #fff;
	border-top: 1px solid #e8e8e8;
}

.docx-chat-input-box {
	background: #FAFAFC;
	border-radius: 12px;
	padding: 12px;
}

.docx-error {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #999;
}

.docx-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 40px;
}

.docx-loading-spinner {
	width: 48px;
	height: 48px;
	border: 3px solid #E8E8E8;
	border-top-color: #4D6BFF;
	border-radius: 50%;
	animation: docx-spin 1s linear infinite;
	margin-bottom: 24px;
}

@keyframes docx-spin {
	to {
		transform: rotate(360deg);
	}
}

.docx-loading-text {
	font-size: 16px;
	color: #0D2042;
	margin-bottom: 32px;
}

.docx-loading-progress {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 280px;
}

.docx-loading-step {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: #F5F7FA;
	border-radius: 8px;
	transition: all 0.3s;
}

.docx-loading-step.loading {
	background: #EEF2FF;
}

.docx-loading-step.completed {
	background: #E8F5E9;
}

.docx-loading-step .step-icon {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #E8E8E8;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 600;
	color: #666;
	flex-shrink: 0;
}

.docx-loading-step.loading .step-icon {
	background: #4D6BFF;
	color: #fff;
}

.docx-loading-step.completed .step-icon {
	background: #4CAF50;
	color: #fff;
}

.docx-loading-step .step-spinner {
	width: 14px;
	height: 14px;
	border: 2px solid #fff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: docx-spin 0.8s linear infinite;
}

.docx-loading-step .step-text {
	font-size: 14px;
	color: #333;
}

.docx-loading-step.loading .step-text {
	color: #4D6BFF;
	font-weight: 500;
}

.docx-loading-step.completed .step-text {
	color: #4CAF50;
}

/* ==================== PPTX 预览样式 ==================== */
.pptx-viewer-page {
	width: 100%;
	height: 100%;
}

.pptx-preview-wrapper {
	display: flex;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.pptx-preview-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: width 0.3s ease;
}

.pptx-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 24px;
	background: #fff;
	border-bottom: 1px solid #e8e8e8;
}

.pptx-header-center {
	flex: 1;
	text-align: center;
}

.pptx-file-name {
	font-size: 16px;
	font-weight: 500;
	color: #0D2042;
}

.pptx-header-actions {
	display: flex;
	gap: 16px;
}

.pptx-collect-btn,
.pptx-ask-btn {
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	transition: all 0.3s;
}

.pptx-collect-btn img,
.pptx-ask-btn img {
	width: 20px;
	height: 20px;
}

.pptx-ask-btn span {
	font-size: 14px;
	color: #0D2042;
}

.pptx-preview-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 24px;
	background: #FAFAFC;
	border-bottom: 1px solid #e8e8e8;
}

.pptx-header-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.pptx-toc-toggle {
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.3s;
}

.pptx-toc-toggle:hover {
	background: #e8e8e8;
}

.pptx-toc-toggle img {
	width: 20px;
	height: 20px;
}

.pptx-page-info {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #0D2042;
}

.pptx-page-input {
	width: 48px;
	height: 28px;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	text-align: center;
	font-size: 14px;
	color: #0D2042;
}

.pptx-page-input:focus {
	outline: none;
	border-color: #4D6BFF;
}

.pptx-header-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pptx-toolbar-btn {
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.3s;
}

.pptx-toolbar-btn:hover {
	background: #e8e8e8;
}

.pptx-toolbar-btn img {
	width: 20px;
	height: 20px;
}

.pptx-toolbar-divider {
	width: 1px;
	height: 20px;
	background: #d9d9d9;
}

.pptx-download-wrapper {
	display: flex;
	align-items: center;
	gap: 4px;
}

.pptx-download-wrapper span {
	font-size: 14px;
	color: #0D2042;
}

.pptx-preview-body {
	flex: 1;
	display: flex;
	overflow: hidden;
}

.pptx-sidebar {
	width: 240px;
	background: #fff;
	border-right: 1px solid #e8e8e8;
	overflow-y: auto;
	transition: width 0.3s ease;
}

.pptx-sidebar.hidden {
	width: 0;
	overflow: hidden;
}

.pptx-toc-title {
	padding: 16px;
	font-size: 14px;
	font-weight: 500;
	color: #0D2042;
	border-bottom: 1px solid #e8e8e8;
}

.pptx-toc-content {
	padding: 8px 0;
}

.pptx-toc-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	cursor: pointer;
	font-size: 14px;
	color: #0D2042;
	transition: all 0.3s;
}

.pptx-toc-item:hover {
	background: #F5F7FA;
}

.pptx-toc-item.active {
	background: #DBE1FF;
}

.pptx-toc-num {
	min-width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
	border-radius: 4px;
	font-size: 12px;
}

.pptx-toc-item.active .pptx-toc-num {
	background: #4D6BFF;
	color: #fff;
}

.pptx-viewer-container {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	padding: 24px;
	overflow: hidden;
}

.pptx-slide-container {
	width: 100%;
	max-width: 960px;
	aspect-ratio: 16 / 9;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	overflow: hidden;
}

.pptx-slide {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pptx-slide-content {
	width: 100%;
	height: 100%;
	padding: 60px 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.pptx-slide-title {
	font-size: 36px;
	font-weight: 600;
	color: #0D2042;
	margin-bottom: 24px;
	text-align: center;
}

.pptx-slide-text {
	font-size: 20px;
	color: #333;
	line-height: 1.8;
	text-align: center;
}

.pptx-slide-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #999;
}

.pptx-slide-placeholder p {
	margin: 8px 0;
}

.pptx-ai-chat-panel {
	width: 0;
	height: 100%;
	background: #fff;
	border-left: 1px solid #e8e8e8;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: width 0.3s ease;
	flex-shrink: 0;
}

.pptx-ai-chat-panel:not(.hidden) {
	width: 418px;
}

.pptx-ai-chat-header {
	display: flex;
	justify-content: flex-end;
	padding: 24px 16px 0 0;
	background: #FAFAFC;
}

.pptx-ai-chat-close {
	width: 20px;
	height: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s;
}

.pptx-ai-chat-close img {
	width: 100%;
	height: 100%;
}

.pptx-ai-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 32px 24px 24px;
	background: #FAFAFC;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.pptx-ai-chat-messages::-webkit-scrollbar {
	display: none;
}

.pptx-ai-chat-input-area {
	padding: 16px;
	background: #fff;
	border-top: 1px solid #e8e8e8;
}

.pptx-chat-input-box {
	background: #FAFAFC;
	border-radius: 12px;
	padding: 12px;
}

.pptx-error {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #999;
}

/* ==================== Excel 预览样式 ==================== */
.xlsx-viewer-page {
	width: 100%;
	height: 100%;
}

.xlsx-preview-wrapper {
	display: flex;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.xlsx-preview-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #FAFAFC;
}

.xlsx-header {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 24px;
	background: #fff;
	border-bottom: 1px solid #E8E8E8;
	position: relative;
}

.xlsx-header-center {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}

.xlsx-file-name {
	font-size: 16px;
	font-weight: 600;
	color: #0D2042;
}

.xlsx-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.xlsx-collect-btn {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.3s;
}

.xlsx-collect-btn:hover {
	background: #F5F5F5;
}

.xlsx-collect-btn img {
	width: 20px;
	height: 20px;
}

.xlsx-ask-btn {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 16px;
	background: #4D6BFF;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s;
}

.xlsx-ask-btn:hover {
	background: #3D5AE8;
}

.xlsx-ask-btn img {
	width: 16px;
	height: 16px;
}

.xlsx-ask-btn span {
	font-size: 14px;
	color: #fff;
}

.xlsx-preview-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 24px;
	background: #fff;
	border-bottom: 1px solid #E8E8E8;
}

.xlsx-header-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.xlsx-sheet-tabs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.xlsx-sheet-tab {
	padding: 6px 16px;
	font-size: 14px;
	color: #666;
	background: #F5F5F5;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s;
}

.xlsx-sheet-tab:hover {
	background: #E8E8E8;
}

.xlsx-sheet-tab.active {
	background: #4D6BFF;
	color: #fff;
}

.xlsx-header-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.xlsx-toolbar-divider {
	width: 1px;
	height: 24px;
	background: #E8E8E8;
}

.xlsx-download-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.xlsx-toolbar-btn {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.3s;
	background: transparent;
	border: none;
}

.xlsx-toolbar-btn:hover {
	background: #F5F5F5;
}

.xlsx-toolbar-btn img {
	width: 20px;
	height: 20px;
}

.xlsx-download-wrapper span {
	font-size: 12px;
	color: #999;
}

.xlsx-preview-body {
	flex: 1;
	overflow: auto;
	padding: 24px;
}

.xlsx-viewer-container {
	width: 100%;
	height: 100%;
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.xlsx-content {
	padding: 24px;
	min-height: 100%;
}

.xlsx-table {
	width: 100%;
	min-width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	table-layout: auto;
}

.xlsx-table th,
.xlsx-table td {
	padding: 10px 12px;
	text-align: left;
	border: 1px solid #E8E8E8;
	white-space: nowrap;
	min-width: 80px;
	max-width: 300px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.xlsx-table th {
	background: #F5F7FA;
	font-weight: 600;
	color: #0D2042;
	position: sticky;
	top: 0;
	z-index: 10;
}

.xlsx-table td {
	color: #333;
}

.xlsx-table tr:hover td {
	background: #FAFAFC;
}

.xlsx-table td:hover {
	overflow: visible;
	white-space: normal;
	background: #E8F5E9;
	z-index: 5;
	position: relative;
}

.xlsx-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	color: #999;
	font-size: 14px;
}

.xlsx-ai-chat-panel {
	width: 400px;
	background: #fff;
	border-left: 1px solid #E8E8E8;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.xlsx-ai-chat-header {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 16px;
	border-bottom: 1px solid #E8E8E8;
}

.xlsx-ai-chat-close {
	width: 20px;
	height: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s;
}

.xlsx-ai-chat-close img {
	width: 100%;
	height: 100%;
}

.xlsx-ai-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 32px 24px 24px;
	background: #FAFAFC;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.xlsx-ai-chat-messages::-webkit-scrollbar {
	display: none;
}

.xlsx-ai-chat-input-area {
	padding: 16px;
	background: #fff;
	border-top: 1px solid #e8e8e8;
}

.xlsx-chat-input-box {
	background: #FAFAFC;
	border-radius: 12px;
	padding: 12px;
}

/* ==================== 发现知识库 ==================== */
.discover-container {
	padding: 62px 224px;
	height: 100%;
	overflow-y: auto;
}

/* 顶部区域 */
.discover-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 40px;
}

.discover-header p {
	font-size: 20px;
	font-weight: 600;
	color: #0D2042;
	line-height: 28px;
}

.discover-search-box {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 262px;
	height: 36px;
	padding: 0 10px;
	background: #FAFAFC;
	border-radius: 8px;
}

.discover-search-box img {
	width: 14px;
	height: 14px;
	opacity: 0.5;
}

.discover-search-box input {
	flex: 1;
	border: none;
	background: transparent;
	font-size: 12px;
	color: #0D2042;
	outline: none;
}

.discover-search-box input::placeholder {
	color: #C0C4CC;
}

/* 区域标题 */
.discover-section {
	margin-bottom: 23px;
}

.discover-section-title {
	font-size: 16px;
	font-weight: 600;
	color: #0D2042;
	line-height: 28px;
	margin-bottom: 16px;
}

/* 卡片行 */
.discover-cards-row {
	display: flex;
	gap: 16px;
	margin-bottom: 16px;
}

.discover-cards-row:last-child {
	margin-bottom: 0;
}

/* 卡片样式 */
.discover-card {
	flex: 1;
	display: flex;
	gap: 10px;
	padding: 10px 30px 20px 20px;
	border: 1px solid #E9E9ED;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s;
}

.discover-card:hover {
	border-color: #4D6BFF;
	box-shadow: 0 2px 8px rgba(77, 107, 255, 0.1);
}

.discover-card-icon {
	width: 54px;
	height: 54px;
	flex-shrink: 0;
}

.discover-card-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.discover-card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.discover-card-title {
	font-size: 16px;
	font-weight: 600;
	color: #0D2042;
	line-height: 28px;
}

.discover-card-desc {
	color: #B8B9BD;
	line-height: 20px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 1px 0 14px;
}

.discover-card-meta {
	display: flex;
	align-items: center;
	font-size: 12px;
	color: #0D2042;
	gap: 4px;
}

/* 推荐标签 */
.discover-tabs {
	display: flex;
	gap: 37px;
	margin-bottom: 14px;
}

.discover-tab {
	font-size: 16px;
	color: #B8B9BD;
	cursor: pointer;
	transition: all 0.3s;
	position: relative;
}

.discover-tab:hover {
	color: #4D6BFF;
}

.discover-tab.active {
	color: #0D2042;
	font-weight: 600;
}

.btn-like.liked {
	background: #FFF2F0;
	border-color: #FF4D4F;
	color: #FF4D4F;
}

/* ==================== 历史记录页面 ==================== */
.history-container {
	width: 49.8%;
	padding: 63px 0;
	margin: 0 auto;
}

.history-header {
	font-weight: 600;
	font-size: 20px;
	color: #0D2042;
	line-height: 28px;
	margin-bottom: 28px;
}

/* 历史记录Tab切换 */
.history-tabs {
	display: flex;
	gap: 42px;
	margin-bottom: 16px;
}

.history-tab {
	display: flex;
	align-items: center;
	gap: 4px;
	color: #7F8897;
	cursor: pointer;
}
.history-tab.active{
	font-weight: 600;
	color: #0D2042;
}

/* 历史记录内容区 */
.history-content {
	display: none;
}

.history-content.active {
	display: block;
}

/* 快捷访问 */
.quick-access-add {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 24px;
	background: #FAFAFC;
	border-radius: 24px 24px 0 0;
	cursor: pointer;
	font-weight: 600;
	font-size: 16px;
	color: #0D2042;
	border-bottom: 1px solid #E9E9ED;
}

.quick-access-add:hover {
	background: #F0F0F5;
}

.quick-access-add i {
	font-size: 20px;
}

.quick-access-list {
	display: flex;
	flex-direction: column;
}

.quick-access-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 20px 14px 24px;
	background: #FAFAFC;
	cursor: pointer;
	transition: all 0.3s ease;
}
.quick-access-item:last-child {
	border-radius: 0 0 24px 24px;
}

.quick-access-item:hover {
	background: #EBEBF5;
}

.quick-access-item-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.quick-access-item-icon {
	width: 16px;
	height: 17px;
}
.quick-access-item-icon img {
	width: 100%;
	height: 100%;
}

.quick-access-item-name {
	line-height: 14px;
	color: #0D2042;
}

.quick-access-item-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.quick-access-item-menu {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.3s;
	opacity: 0;
	color: #8C8C8C;
}

.quick-access-item:hover .quick-access-item-menu {
	opacity: 1;
}

.quick-access-item-menu:hover {
	background: #F0F0F5;
}

.quick-access-item-menu i {
	font-size: 16px;
}

/* 快捷访问操作菜单 - 使用与历史记录相同的样式 */
.quick-access-menu {
	width: 155px;
	height: 80px;
	position: absolute;
	box-shadow: 0px 0px 16px 0px rgba(136,136,136,0.3);
	border-radius: 14px;
	background: #fff;
	padding: 8px;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.quick-access-menu-item {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #0D2042;
	cursor: pointer;
	line-height: 14px;
	transition: all 0.3s;
	padding: 8px;
}

.quick-access-menu-item:hover {
	background: #F5F5F5;
}

.quick-access-menu-item.delete {
	color: #FF4D4F;
}

.quick-access-menu-item.delete:hover {
	background: #FFF2F0;
}

.history-list {
	display: flex;
	flex-direction: column;
}

.history-empty {
	text-align: center;
	padding: 60px 20px;
	color: #8C8C8C;
}

.history-empty i {
	font-size: 48px;
	margin-bottom: 16px;
	opacity: 0.5;
}

.history-date-group {
	width: 100%;
	background: #FAFAFC;
	border-radius: 24px;
	margin-bottom: 24px;
}

.history-date-title {
	font-weight: 600;
	font-size: 16px;
	color: #0D2042;
	line-height: 16px;
	padding: 24px;
	border-bottom: 1px solid #E9E9ED;
}

.history-date-items {
	display: flex;
	flex-direction: column;
}

.history-item {
	display: flex;
	align-items: flex-start;
	padding: 16px 20px 0 24px;
	background: #FAFAFC;
	cursor: pointer;
	transition: all 0.3s;
	gap: 26px;
}

.history-item:hover {
	background: #EBEBF5;
}

.history-item-time {
	color: #0D2042;
	line-height: 14px;
}

.history-item-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: calc(100% - 126px);
	margin-left: 19px;
	padding-bottom: 16px;
}
.history-date-items .history-item:not(:last-child) .history-item-content {
	border-bottom: 1px solid #E9E9ED;
}

.history.history-item-title {
	color: #0D2042;
	line-height: 14px;
}

.history-item-preview {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #7F8897;
	line-height: 14px;
	width: 100%;
}

.history-item-more {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	color: #8C8C8C;
	cursor: pointer;
	transition: all 0.3s;
	opacity: 0;
	margin-left: 8px;
}
/* 历史记录操作菜单 */
.history-menu {
	width: 155px;
	height: 80px;
	position: absolute;
	box-shadow: 0px 0px 16px 0px rgba(136,136,136,0.3);
	border-radius: 14px;
	background: #fff;
	padding: 8px;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.history-menu-item {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #0D2042;
	cursor: pointer;
	line-height: 14px;
	transition: all 0.3s;
	padding: 8px;
}

.history-menu-item:hover {
	background: #F5F5F5;
}

.history-menu-item.delete {
	color: #FF4D4F;
}

.history-menu-item.delete:hover {
	background: #FFF2F0;
}

/* ==================== Toast 提示 ==================== */
.toast-container {
	position: fixed;
	top: 196px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	display: flex;
	flex-direction: column;
}

.toast {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 13px 24px;
	background: rgba(0, 0, 0, 0.8);
	border-radius: 8px;
	color: #fff;
}

.toast-icon {
	width: 20px;
	height: 20px;
}

.toast-text {
	white-space: nowrap;
}

/* ==================== Modal 对话框 ==================== */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
}

.modal-overlay.show {
	opacity: 1;
	visibility: visible;
}

.modal-content {
	width: 540px;
	height: 242px;
	box-shadow: 0px 0px 60px 0px rgba(136,136,136,0.5);
	border-radius: 24px;
	background: #fff;
	overflow: auto;
	transform: scale(0.95);
	transition: all 0.3s;
}

#moveModal.show .modal-content {
	width: 900px;
	height: 548px;
}

.modal-header {
	padding: 24px 24px 0 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: bold;
	font-size: 18px;
	color: #0D2042;
	line-height: 18px;
}

.modal-close {
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #8C8C8C;
	cursor: pointer;
}

.modal-body {
	margin: 35px 0 32px;
	padding: 0 24px;
}

.modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 16px;
	padding: 15px 24px;
	border-top: 1px solid #E6E9EF;
}

.modal-btn {
	padding: 10px 33px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s;
	font-weight: 600;
	color: #fff;
	line-height: 20px;
	background: #FF6666;
}

.modal-btn-default {
	color: #0D2042;
	background: #EBEBF5;
	backdrop-filter: blur(6px);
}

/* 新建快捷访问弹窗 */
.quick-access-modal {
	width: 420px;
	height: 282px;
}

.quick-access-modal .modal-header {
	padding: 24px 24px 0 24px;
}

.quick-access-modal .modal-body {
	margin: 34px 0 31px;
	padding: 0 24px;
}

.quick-access-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.form-item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.form-item label {
	color: #081F45;
}

.form-input {
	flex: 1;
	height: 44px;
	padding: 0 16px;
	background: #F7F7F9;
	border-radius: 8px;
	color: #0D2042;
	outline: none;
	transition: all 0.3s ease;
}

.form-input:focus {
	border-color: #4D6BFF;
	background: #fff;
}

.form-input::placeholder {
	color: #B8B9BD;
}

.quick-access-modal .modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding: 15px 24px 16px;
	border-top: 1px solid #E8E8E8;
}

.btn {
	padding: 10px 33px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: all 0.3s ease;
	width: fit-content;
	line-height: 20px;
}



.btn-default {
	background: #EBEBF5;
	color: #0D2042;
}

/* 删除确认弹窗样式 */
.delete-warning {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.delete-warning img {
	width: 20px;
	height: 20px;
}

.delete-warning span {
	font-weight: 600;
	font-size: 16px;
	color: #FF933D;
	line-height: 22px;
}

.delete-question {
	color: #0D2042;
	line-height: 20px;
	padding-left: 33px;
}

/* ==================== 知识库聊天弹窗 ==================== */
.knowledge-chat-modal {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: calc(82.1% + 28px);
	z-index: -1;
	display: flex;
	flex-direction: column;
	transition: all 0.3s;
}


.knowledge-chat-container {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 16px 24px 224px;
	background: #fff;
	border-radius: 20px 20px 0px 0px;
	box-shadow: 0px 0px 58px 0px rgba(136,136,136,0.3);
	height: 661px;
	overflow: hidden;
	width: 100%;
	margin: 0 auto;
}

.knowledge-chat-toolbar {
	display: flex;
	justify-content: flex-end;
	gap: 20px;
}

.knowledge-chat-toolbar .toolbar-btn {
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.3s;
	border: none;
}

.knowledge-chat-toolbar .toolbar-btn:hover {
	background: #f5f5f5;
}

.knowledge-chat-toolbar .toolbar-btn img {
	width: 18px;
	height: 18px;
}

.knowledge-messages-container {
	flex: 1;
	overflow-y: auto;
	padding: 54px 0 32px;
	margin: 0 auto;
	width: 100%;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.knowledge-messages-container::-webkit-scrollbar {
	display: none;
}

.knowledge-messages-container .message {
	margin-bottom: 32px;
}

.knowledge-messages-container .message-ai {
	display: flex;
	flex-direction: column;
}

.knowledge-messages-container .message-ai .message-content {
	width: 100%;
}

.knowledge-messages-container .message-user {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 24px;
}

.knowledge-messages-container .message-user .message-content {
	color: #fff;
	padding: 20px;
	background: #0D2042;
	border-radius: 12px;
	line-height: 20px;
	width: fit-content;
}

.knowledge-messages-container .message-header-section {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.knowledge-messages-container .message-title {
	font-weight: 600;
	font-size: 28px;
	color: #0D2042;
	line-height: 28px;
}

.knowledge-messages-container .message-meta {
	margin-bottom: 24px;
}

.knowledge-messages-container .message-time {
	font-size: 12px;
	color: #7F8897;
	line-height: 17px;
}

.knowledge-messages-container .message-references {
	margin-bottom: 16px;
}

.knowledge-chat-container .stop-generating {
	align-self: center;
	margin-bottom: 16px;
}

.knowledge-chat-container .chat-input-box {
	background: #fff;
	border: 1px solid #E5E5E5;
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0px 10px 24px 0px rgba(136,136,136,0.08);
	width: 82.1%;
	margin: 0 auto;
}

.knowledge-chat-container .refer_text {
	text-align: center;
	font-size: 12px;
	color: #999;
	margin-top: 12px;
}

/* ==================== 新建知识库弹窗 (kb-modal前缀) - 新增代码 ==================== */
.kb-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.kb-modal-overlay.hidden {
	display: none;
}

.kb-modal-container {
	background: #fff;
	border-radius: 24px;
	width: 480px;
	max-width: 90%;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.kb-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 24px 30px;
}

.kb-modal-title {
	font-size: 18px;
	font-weight: 600;
	color: #0D2042;
	line-height: 18px;
}

.kb-modal-close {
	width: 18px;
	height: 18px;
	border: none;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s;
}
.kb-modal-close img {
	width: 100%;
	height: 100%;
}

.kb-modal-body {
	padding: 0 24px 36px;
	border-bottom: 1px solid #E6E9EF;
}

.kb-form-item {
	margin-bottom: 16px;
}

.kb-form-item:last-child {
	margin-bottom: 0;
}

.kb-form-label {
	display: block;
	font-weight: 600;
	color: #0D2042;
	margin-bottom: 10px;
	line-height: 20px;
}

.kb-required {
	color: #FF6666;
}

.kb-form-input,
.kb-form-textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #E6E9EF;
	border-radius: 6px;
	color: #0D2042;
	font-family: inherit;
	transition: all 0.3s;
	box-sizing: border-box;
}

.kb-form-input:focus,
.kb-form-textarea:focus {
	outline: none;
	border-color: #4D6BFF;
}

.kb-form-input::placeholder,
.kb-form-textarea::placeholder {
	color: #C0C4CC;
}

.kb-form-textarea {
	resize: vertical;
	height: 121px;
}

.kb-cover-upload {
	display: inline-block;
	cursor: pointer;
}

.kb-cover-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.kb-cover-preview {
	position: relative;
	width: 90px;
	height: 90px;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	background: #FAFAFC;
	padding: 6px 8px;
	box-sizing: border-box;
}

.kb-cover-preview img {
	width: 74px;
	height: 78px;
	object-fit: cover;
}

.kb-cover-edit {
	position: absolute;
	bottom: 5px;
	right: 5px;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.kb-cover-edit img{
	width: 100%;
	height: 100%;
}

.kb-modal-footer {
	padding: 16px 24px;
	display: flex;
	justify-content: flex-end;
}

.kb-btn {
	padding: 10px 33px;
	border-radius: 6px;
	backdrop-filter: blur(6px);
	background: #4D6BFF;
	cursor: pointer;
	border: none;
	color: #fff;
	font-weight: 600;
	line-height: 20px;
}

/* ========== 权限设置弹窗样式 - 新增代码 ========== */
.permission-modal-container {
	width: 441px;
}

.permission-modal-body {
	padding: 0 24px 20px;
	border-bottom: 1px solid #E6E9EF;
}

.permission-options {
	background: #F7F7F9;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	margin-bottom: 10px;
}

.permission-option {
	display: flex;
	align-items: center;
	gap: 13px;
	cursor: pointer;
	padding: 20px 20px 0;
}

.permission-option input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border: 1px solid #DADADA;
	border-radius: 50%;
	outline: none;
	cursor: pointer;
	transition: all 0.3s;
	flex-shrink: 0;
}

.permission-option input[type="radio"]:checked {
	border-color: #4D6BFF;
	background: #4D6BFF;
	box-shadow: inset 0 0 0 3px #fff;
}

.permission-option input[type="radio"]:hover {
	border-color: #4D6BFF;
}

.permission-option-content {
	flex: 1;
	padding-bottom: 20px;
}

.permission-options .permission-option:not(:last-child) .permission-option-content{
	border-bottom: 1px solid #E9E9ED;
}

.permission-option-title {
	font-weight: 600;
	color: #0D2042;
	line-height: 22px;
}

.permission-option-desc {
	font-size: 14px;
	color: #B8B9BD;
	line-height: 20px;
	margin-top: 2px;
}

.permission-section {
	padding: 20px;
	background: #F7F7F9;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	position: relative;
}

.permission-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.permission-section-title {
	font-weight: 600;
	color: #0D2042;
	line-height: 22px;
}

.permission-section-desc {
	font-size: 14px;
	color: #B8B9BD;
	line-height: 20px;
	margin-top: 2px;
}

.permission-dropdown {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 2px 8px;
	background: #E7E7EE;
	border-radius: 4px;
	cursor: pointer;
}
.permission-dropdown i{
	font-size: 10px;
}
.permission-dropdown-text {
	font-size: 12px;
	line-height: 17px;
	color: #0D2042;
}

.permission-dropdown {
	position: relative;
}

.permission-dropdown-menu {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 4px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	min-width: 160px;
	z-index: 100;
	padding: 8px;
}

.permission-dropdown-menu.hidden {
	display: none;
}

.permission-dropdown-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px;
	border-radius: 4px;
	cursor: pointer;
	color: #333;
	font-size: 12px;
	transition: all 0.2s;
}

.permission-dropdown-item:hover {
	background: #F5F7FA;
}

.permission-dropdown-item.active {
	background: #EEF2FF;
	color: #4D6BFF;
}

.permission-dropdown-item i {
	font-size: 12px;
}

.permission-dropdown img {
	width: 10px;
	height: 6px;
}

.permission-toggle-section {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}
.permission_line{
	position: absolute;
	right: 0;
	top: 84px;
	width: 343px;
	height: 2px;
	background-color: #E9E9ED;
	z-index: 10;
}
.permission-toggle {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 20px;
}

.permission-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.permission-toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	border-radius: 20px;
	transition: .3s;
}

.permission-toggle-slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 2px;
	bottom: 2px;
	background-color: white;
	border-radius: 50%;
	transition: .3s;
}

.permission-toggle input:checked + .permission-toggle-slider {
	background-color: #4D6BFF;
}

.permission-toggle input:checked + .permission-toggle-slider:before {
	transform: translateX(20px);
}

/* ========== 知识库聊天弹窗全屏模式 - 新增代码 ========== */
.knowledge-chat-modal.fullscreen {
	position: absolute;
	left: 0;
	width: 100%;
	height: 100%;
	transform: translateY(0);
	bottom: 0;
}

.knowledge-chat-modal.fullscreen .knowledge-chat-container {
	height: 100%;
	border-radius: 0;
}

.knowledge-chat-modal.fullscreen .chat-input-box {
	width: 100%;
}

/* 知识库聊天弹窗 - 带侧边栏 */
.knowledge-chat-wrapper {
	display: flex;
	flex-direction: row;
	width: 100%;
	height: 100%;
}

.knowledge-chat-container {
	flex: 1;
	transition: width 0.3s;
}

.knowledge-chat-wrapper.has-sidebar .knowledge-chat-container {
	width: calc(100% - 280px);
	border-radius: 20px 0 0 0;
	box-shadow: none;
}

.knowledge-chat-wrapper.has-sidebar + .knowledge-chat-sidebar {
	display: flex;
}

/* 问答历史按钮激活状态 */
.knowledge-chat-toolbar #knowledgeChatHistoryBtn.active,
.knowledge-chat-toolbar .kb-chat-history-btn.active {
	background: #F2F2F7;
}

/* 问答历史侧边栏 */
.knowledge-chat-sidebar {
	width: 280px;
	background: #FAFAFC;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 15px 14px;
}

.chat-sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.chat-sidebar-header span {
	font-weight: 600;
	color: #0D2042;
	line-height: 20px;
}

.chat-sidebar-list {
	flex: 1;
	overflow-y: auto;
}

.chat-sidebar-item {
	margin-top: 20px;
}

.chat-sidebar-item-time {
	font-size: 12px;
	color: #7E8898;
	line-height: 12px;
	margin-top: 12px;
}

.chat-sidebar-item-title {
	color: #0D2042;
	line-height: 14px;
	margin-top: 12px;
}

/* ========== 移动到弹窗样式 ========== */
.move-modal .modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.move-modal-header-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.move-search-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.move-search-icon {
	position: absolute;
	left: 10px;
	width: 14px;
	height: 14px;
}

.move-search-input {
	width: 254px;
	padding: 10px 15px 10px 28px;
	border: 1px solid #E6E9EF;
	border-radius: 8px;
	box-sizing: border-box;
}
.move-search-input::placeholder {
	color: #0D2042;
}
.move-modal-body {
	margin: 14px 24px 14px;
	width: calc(100% - 48px);
	height: 369px;
	background: #FAFAFC;
	border-radius: 12px;
	padding: 0;
	height: calc(100% - 160px);
}
.move-modal-body .import-content-breadcrumb{
	padding: 19px;
}
.move_content{
	display: flex;
	height: calc(100% - 56px);
}
.move-modal-kb-sidebar.knowledge-sidebar {
	width: 200px;
	padding: 8px 6px 12px;
}
.move-modal-kb-heading.knowledge-category {
	margin-bottom: 8px;
	padding: 8px 12px;
	cursor: default;
}
.move-modal-kb-list-wrap {
	padding: 4px 4px 8px;
	max-height: 220px;
	overflow-y: auto;
}
.move-modal-kb-hint {
	padding: 8px 10px 4px;
	color: #8c8c8c;
	font-size: 12px;
	line-height: 1.4;
}
.move-modal-kb-group-title {
	padding: 10px 10px 6px;
	font-size: 12px;
	font-weight: 600;
	color: #7E8898;
	letter-spacing: 0.02em;
}
.move-modal-kb-group-title:first-child {
	padding-top: 4px;
}
.move-modal-kb-item {
	padding: 8px 10px;
	margin-bottom: 2px;
	cursor: pointer;
	border-radius: 6px;
	font-size: 13px;
	color: #0D2042;
	word-break: break-all;
}
.move-modal-kb-item:hover {
	background: #F0F0F0;
}
.move-modal-kb-item.active {
	background: #E6F0FF;
	color: #1677ff;
}
.move-modal-list {
	flex: 1;
	display: flex;
	flex-direction: column;
	height: 100%;
	border-left: 1px solid #E9E9ED;
}
.move-modal-list::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Edge */
}
.move-modal-list.hidden {
	display: none;
}
.move-modal-list .move-list-item:first-child{
	margin-top: 8px;
}
.move-list-item {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 8px 15px;
	cursor: pointer;
}

.move-list-item:hover {
	background: #F5F5F5;
}

.move-list-item img {
	width: 22px;
	height: 22px;
}

.move-item-name {
	flex: 1;
	color: #0D2042;
}

.move-item-type {
	color: #7E8898;
}

/* ========== 知识库详情页样式 (kb-detail-前缀) - 新增代码 ========== */
.kb-detail-page {
	flex: 1;
	display: flex;
	flex-direction: row;
	overflow: hidden;
	background: #fff;
}

.kb-detail-page.hidden {
	display: none;
}

/* 左侧内容区 */
.kb-detail-left {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding-right: 16px;
}

/* 右侧输入框区域 */
.kb-detail-right {
	width: 416px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-left: 24px;
	border-left: 1px solid #E9E9ED;
}
.tip_title{
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 9px;
	color: #0D2042;
	line-height: 20px;
}
.tip_title img{
	width: 48px;
}

.kb-detail-input-wrapper {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* 知识库详情页聊天容器 */
.kb-detail-chat-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
}

/* 空状态 */
.kb-detail-empty-state {
	padding-top: 221px;
	display: flex;
	align-items: end;
	justify-content: center;
}

.kb-detail-empty-state.hidden {
	display: none;
}

/* 消息列表 */
.kb-detail-messages {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
	overflow-y: auto;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE 10+ */
}
.kb-detail-messages::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Edge */
}
.kb-detail-messages.hidden {
	display: none;
}

/* 消息样式 */
.kb-detail-message {
	display: flex;
}

.kb-detail-message-user {
	flex-direction: row-reverse;
}

.kb-detail-message-content {
	max-width: calc(100% - 50px);
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.6;
	word-wrap: break-word;
}

.kb-detail-message-user .kb-detail-message-content {
	background: #0D2042;
	color: #fff;
}

/* 头部信息区 */
.kb-detail-header {
	display: flex;
	flex-direction: column;
	padding: 0 0 16px;
	border-bottom: 1px solid #E9E9ED;
}

.kb-detail-info {
	display: flex;
	gap: 16px;
	position: relative;
}

.kb-detail-icon {
	width: 90px;
	height: 90px;
	border-radius: 12px;
	overflow: hidden;
	background: #F2F2F7;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kb-detail-icon img {
	width: 66px;
	height: 66px;
}

.kb-detail-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.kb-detail-name {
	font-size: 20px;
	font-weight: 600;
	color: #0D2042;
	padding: 12px 0;
	line-height: 20px;
	padding-top: 14px 0 20px;
}

.kb-detail-creator {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #0D2042;
	line-height: 20px;
}

.kb-detail-desc {
	margin-top: 12px;
	font-size: 12px;
	color: #0D2042;
	line-height: 12px;
}

.kb-detail-stats {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 16px;
}
.kb-stat-box {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	color: #0D2042;
	line-height: 12px;
}
.kb-stat-actions{
	display: flex;
	align-items: center;
	gap: 23px;
}
.kb-stat-like{
	width: 25px;
	height: 20px;
	cursor: pointer;
}
.kb-stat-like img{
	width: 100%;
	height: 100%;
}
.kb-stat-join-btn{
	padding: 7px 10px;
	font-size: 12px;
	color: #fff;
	line-height: 12px;
	background: #4D6BFF;
	border-radius: 6px;
	cursor: pointer;
}
/* 操作按钮 */
.kb-detail-actions {
	position: absolute;
	right: 0;
	top: 0;
	width: 72px;
	display: flex;
	gap: 4px;
}

.kb-detail-menu-btn,
.kb-detail-share-btn {
	width: 36px;
	height: 36px;
	border-radius: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
}

.kb-detail-menu-btn:hover,
.kb-detail-share-btn:hover {
	background: #F2F2F7;
	border: 1px solid #DCDFE4;
}

.kb-detail-menu-btn img,
.kb-detail-share-btn img {
	width: 20px;
	height: 20px;
}

/* 下拉菜单 */
.kb-detail-menu {
	position: absolute;
	top: 45px;
	right: 0;
	z-index: 100;
	width: 155px;
	background: #fff;
	box-shadow: 0px 0px 16px 0px rgba(136,136,136,0.3);
	border-radius: 14px;
}

.kb-detail-menu.hidden {
	display: none;
}

.kb-detail-menu-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px;
	cursor: pointer;
	color: #0D2042;
	line-height: 14px;
	transition: all 0.2s;
}

.kb-detail-menu-item:hover {
	background: #f5f5f5;
}

.kb-detail-menu-item img {
	width: 16px;
}

/* 内容区 */
.kb-detail-content {
	flex: 1;
	display: flex;
	overflow: hidden;
}

.kb-detail-main {
	flex: 1;
	padding: 14px 0 26px;
	background: #fff;
	position: relative;
}

.kb-detail-section-title {
	font-weight: 600;
	font-size: 16px;
	color: #0D2042;
	line-height: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.kb-detail-section-title div{
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Tab切换样式 */
.kb-detail-tabs {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.kb-detail-tab-left {
	display: flex;
	align-items: center;
	gap: 14px;
}

.kb-detail-tab-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
}

/* 知识库详情搜索框 */
.kb-detail-search-box {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #FAFAFC;
	border-radius: 8px;
	padding: 11px 10px;
	width: 262px;
	transition: all 0.3s;
}

.kb-detail-search-box.hidden {
	display: none;
}

.kb-detail-search-box img {
	width: 14px;
	height: 14px;
	opacity: 0.5;
}

.kb-detail-search-box input {
	flex: 1;
	border: none;
	background: transparent;
	outline: none;
	font-size: 12px;
}

.kb-detail-search-box input::placeholder {
	color: #C0C4CC;
}

.kb-detail-tab {
	font-size: 16px;
	color: #7E8898;
	line-height: 20px;
	cursor: pointer;
	position: relative;
	transition: color 0.2s;
}

.kb-detail-tab:hover {
	color: #0D2042;
}

.kb-detail-tab.active {
	color: #0D2042;
	font-weight: 600;
}

/* Tab面板 */
.kb-detail-tab-panel {
	display: none;
	height: calc(100% - 56px);
}

.kb-detail-tab-panel.active {
	display: block;
}

/* 评论列表 */
.kb-comments-list {
	display: flex;
	flex-direction: column;
	gap: 26px;
	padding-bottom: 80px;
	height: calc(100% - 46px);
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.kb-comments-list::-webkit-scrollbar {
	display: none;
}

.kb-comment-item {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.kb-comment-item-reply {
	margin-left: 36px;
	padding-left: 12px;
	border-left: 2px solid #E5E7EB;
}

.kb-comment-name {
	color: #0D2042;
	font-weight: 500;
}

.kb-comment-time {
	margin-left: 8px;
	font-size: 12px;
	color: #9CA3AF;
}

.kb-comment-location {
	margin-left: 8px;
	font-size: 12px;
	color: #6B7280;
}

.kb-comment-delete-btn {
	width: auto !important;
	min-width: 40px;
	padding: 0 6px;
}

.kb-comment-delete-text {
	font-size: 12px;
	color: #EF4444;
	white-space: nowrap;
}

.kb-comment-main {
	display: flex;
	align-items: center;
	gap: 10px;
}

.kb-comment-avatar {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
}

.kb-comment-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kb-comment-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.kb-comment-header {
	display: flex;
	align-items: center;
	gap: 4px;
	color: #7E8898;
	line-height: 14px;
}

.kb-comment-text {
	color: #374151;
	font-size: 14px;
	line-height: 22px;
}

.kb-comment-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.kb-comment-btn {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.2s;
}

.kb-comment-btn:hover {
	background: #F3F4F6;
}

.kb-comment-btn img {
	width: 16px;
	height: 16px;
}

/* 回复输入框 */
.kb-comment-reply-box {
	display: flex;
	gap: 12px;
	padding: 12px 0 12px 48px;
	align-items: center;
}
.kb-comment-reply-box .kb-comment-avatar{
	width: 32px;
	height: 32px;
}
.kb-comment-reply-input {
	flex: 1;
}

.kb-comment-reply-input input {
	min-width: 456px;
	height: 46px;
	border: 1px solid #DCDFE4;
	box-shadow: 0px 10px 24px 0px rgba(136,136,136,0.08);
	border-radius: 24px;
	padding: 0 20px;
	font-size: 16px;
	line-height: 22px;
	outline: none;
	transition: border-color 0.2s;
}
.kb-comment-reply-input input::placeholder {
	color: #7F8897;
}

.kb-comment-reply-input input:focus {
	border-color: #0D2042;
}

/* 底部评论输入框 */
.kb-comment-input-wrapper {
	display: flex;
	gap: 18px;
	align-items: center;
}

.kb-comment-input-box {
	flex: 1;
}

.kb-comment-input-box input {
	min-width: 456px;
	height: 46px;
	box-shadow: 0px 10px 24px 0px rgba(136,136,136,0.08);
	border: 1px solid #DCDFE4;;
	border-radius: 24px;
	padding: 0 20px;
	font-size: 16px;
	line-height: 22px;
	outline: none;
	transition: border-color 0.2s;
}
.kb-comment-input-box input::placeholder {
	color: #7F8897;
}
.kb-comment-input-box input:focus {
	border-color: #0D2042;
}

/* 详情页操作按钮 */
.kb-detail-action-btn {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.2s;
}

.kb-detail-action-btn:hover {
	background: #f5f5f5;
}

.kb-detail-action-btn img {
	width: 20px;
	height: 20px;
}

/* 右侧边栏 */
.kb-detail-sidebar {
	width: 60px;
	padding: 24px 0;
	display: flex;
	justify-content: center;
	border-left: 1px solid #f0f0f0;
	background: #fff;
}

.kb-detail-sidebar-icons {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.kb-detail-icon-btn {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.2s;
}

.kb-detail-icon-btn:hover {
	background: #f5f5f5;
}

.kb-detail-icon-btn img {
	width: 20px;
	height: 20px;
}

/* 底部输入框 */
.kb-detail-right .chat-input-box {
	display: flex;
	flex-direction: column;
	border: 1px solid #DCDFE4;
	border-radius: 24px;
	padding: 18px 10px 10px;
	box-shadow: 0px 10px 24px 0px rgba(136,136,136,0.08);
	width: 100%;
}



.kb-detail-right .chat-input {
	width: 100%;
	border: none;
	outline: none;
	resize: none;
	font-size: 16px;
	color: #0D2042;
	background: transparent;
	min-height: 54px;
}

.kb-detail-right .chat-input::placeholder {
	color: #7F8897;
}

.kb-detail-right .chat-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 12px;
}

.kb-detail-right .toolbar-left {
	display: flex;
	gap: 10px;
}

.kb-detail-right .toolbar-btn {
	display: flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	ccolor: #0D2042;
	transition: all 0.2s;
}

.kb-detail-right .send-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kb-detail-right .send-btn img {
	width: 100%;
	height: 100%;
}

.kb-detail-right .refer_text {
	text-align: center;
	font-size: 12px;
	color: #ccc;
	margin: 0 0 16px;
}

/* 上传下拉菜单 */
.kb-upload-menu {
	position: absolute;
	width: 155px;
	background: #fff;
	box-shadow: 0px 0px 16px 0px rgba(136,136,136,0.3);
	border-radius: 14px;
	padding: 8px;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.kb-upload-menu-item {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #0D2042;
	cursor: pointer;
	line-height: 14px;
	transition: all 0.2s;
	padding: 8px;
	font-size: 14px;
}

.kb-upload-menu-item:hover {
	background: #F5F5F5;
	border-radius: 8px;
}

.kb-upload-menu-item img {
	width: 16px;
	height: 16px;
}

.kb-upload-divider {
	height: 1px;
	background: #E8E8E8;
	margin: 4px 0;
}

.import-content-modal{
	width: 900px;
	height: 548px;
}
.import-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 24px;
}

.import-modal-title {
	font-size: 18px;
	font-weight: 600;
	color: #0D2042;
	margin: 0;
	flex: 1;
}

.import-search-wrapper {
	position: relative;
	width: 254px;
	height: 44px;
	margin-right: 28px;
}

.import-search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	opacity: 0.5;
}

.import-search-input {
	width: 100%;
	height: 100%;
	padding: 12px 10px 12px 28px;
	border: 1px solid #E6E9EF;
	border-radius: 8px;
	outline: none;
	box-sizing: border-box;
}

.import-search-input:focus {
	border-color: #4D6BFF;
}

.import-content-body {
	margin: 0 24px 34px;
	background: #FAFAFC;
	border-radius: 12px;
	height: 369px;
}

.import-content-breadcrumb {
	display: flex;
	align-items: center;
	gap: 28px;
	line-height: 20px;
	color: #0D2042;
	border-bottom: 1px solid #E9E9ED;;
	padding: 19px;
}

.breadcrumb-back,
.breadcrumb-arrow {
	color: #8C8C8C;
	cursor: pointer;
}

.breadcrumb-current {
	color: #0D2042;
}

.import-content-list {
	max-height: 318px;
	overflow-y: auto;
	padding: 0 18px;
}

.import-content-item {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 7px 0;
}

.import-content-item:last-child {
	border-bottom: none;
}
.import-item-checkbox{
	padding-top: 4px;
}
.import-item-checkbox input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.import-item-checkbox.disabled input[type="checkbox"] {
	cursor: not-allowed;
	opacity: 0.4;
}

.import-item-icon {
	width: 22px;
	height: 22px;
}

.import-item-icon img {
	width: 100%;
	height: 100%;
}

.import-item-name {
	flex: 1;
	line-height: 20px;
}
.file .import-item-name{
	margin-left: 26px;
}

.import-item-type {
	line-height: 20px;
	color: #7E8898;
	width: 60px;
	text-align: right;
}

.import-content-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	border-top: 1px solid #E8E8E8;
}

.import-selected-count {
	color: #A1ACB0;
}

.import-selected-count span {
	color: #0D2042;
}

.import-footer-actions {
	display: flex;
	gap: 16px;
}

/* 知识库内容列表 */
.kb-content-list {
	display: flex;
	flex-direction: column;
	margin-top: 16px;
	min-height: 200px;
}
.kb-content-list img {
	max-width: 300px;
}

.kb-content-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	padding: 40px 0;
}

.kb-content-empty img {
	max-width: 150px;
	max-height: 150px;
}

.kb-content-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s;
}

.kb-content-item:hover {
	background: #F5F7FA;
}

.kb-content-item.pinned {
	background: #ECEFFF;
}

.kb-content-checkbox input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
	border: 1px solid #D9D9D9;
	border-radius: 4px;
	appearance: none;
	-webkit-appearance: none;
	background: #fff;
}

.kb-content-checkbox input[type="checkbox"]:checked {
	background: #4D6BFF;
	border-color: #4D6BFF;
}

.kb-content-checkbox input[type="checkbox"]:checked::after {
	content: '';
	display: block;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	margin: 1px 0 0 4px;
}

.kb-content-icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
}

.kb-content-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.kb-content-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.kb-content-name {
	color: #0D2042;
	line-height: 14px;
}

.kb-content-meta {
	font-size: 12px;
	color: #7E8898;
	line-height: 12px;
}

/* 知识库文档：首标签大标签 + 其余小标签 */
.kb-content-tag-area {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 2px;
	width: 100%;
}

.kb-doc-big-tag {
	display: inline-flex;
	align-self: flex-start;
	max-width: 100%;
	padding: 4px 10px;
	border-radius: 6px;
	background: linear-gradient(135deg, #E8EEFF 0%, #E0E7FF 100%);
	border: 1px solid #C7D2FE;
}

.kb-doc-big-tag span {
	font-size: 13px;
	font-weight: 600;
	color: #3730A3;
	line-height: 1.3;
	word-break: break-all;
}

.kb-content-info .kb-content-tags {
	margin-top: 0;
}

.kb-content-info .kb-content-tags .knowledge-card-tag {
	bottom: 0;
}

.kb-content-checkbox {
	opacity: 0;
	transition: opacity 0.2s;
}

.kb-content-item:hover .kb-content-checkbox {
	opacity: 1;
}

.kb-content-checkbox input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
}

/* 右键菜单 */
.kb-context-menu {
	position: absolute;
	background: #fff;
	box-shadow: 0px 0px 16px 0px rgba(136,136,136,0.3);
	border-radius: 14px;
	padding: 8px;
	z-index: 10000;
}

.kb-context-menu-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	color: #0D2042;
	line-height: 14px;
	cursor: pointer;
	transition: background 0.2s;
}

.kb-context-menu-item:hover {
	background: #F5F7FA;
}

.kb-context-menu-item.has-submenu {
	position: relative;
}

.submenu-arrow {
	margin-left: auto;
	font-size: 12px;
	color: #7F8897;
	padding-top: 2px;
}

.kb-context-submenu {
	position: absolute;
	left: 100%;
	top: 0;
	width: 160px;
	background: #fff;
	box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	padding: 8px 0;
	display: none;
}

.kb-context-menu-item.has-submenu:hover .kb-context-submenu {
	display: block;
}

.kb-context-submenu-item {
	padding: 9px 16px;
	line-height: 14px;
	color: #0D2042;
	cursor: pointer;
	transition: background 0.2s;
}

.kb-context-submenu-item:hover {
	box-shadow: 0px 0px 16px 0px rgba(136,136,136,0.3);
}

/* 分享弹窗样式 */
.share-modal {
	width: 420px;
	height: 326px;
}

.share-modal .modal-header {
	padding: 24px;
}

.share-modal-title {
	display: flex;
	align-items: center;
	font-size: 18px;
	font-weight: bold;
	color: #0D2042;
	gap: 3px;
}

.share-modal-title img {
	width: 20px;
	height: 20px;
}

.share-modal .modal-body {
	margin: 0 0 27px;
	padding: 0;
}

/* 知识库信息卡片 */
.share-kb-info {
	display: flex;
	gap: 13px;
	border: 1px solid #E9E9ED;
	padding: 12px;
	border-radius: 8px;
	margin: 0 24px 30px;
}

.share-kb-icon {
	width: 90px;
	height: 90px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
}

.share-kb-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.share-kb-meta {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
}

.share-kb-name {
	font-size: 20px;
	font-weight: 600;
	line-height: 20px;
	color: #0D2042;
	margin: 0;
}

.share-kb-creator {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #6B7280;
}

.share-creator-avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	overflow: hidden;
}

.share-creator-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 分享按钮 */
.share-actions {
	display: flex;
	gap: 20px;
	padding: 16px 24px 0;
	border-top: 1px solid #E6E9EF;
}

.share-action-btn {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 11px;
	background: #F7F7F9;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s;
}

.share-action-btn:hover {
	background: #F0F0F5;
}

.share-action-btn img {
	width: 18px;
	height: 18px;
}

.share-action-btn span {
	font-size: 14px;
	font-weight: 500;
	color: #0D2042;
	line-height: 20px;
}

/* 编辑标签弹窗样式 */
.edit-tag-modal {
	width: 420px;
	height: fit-content;
}

.edit-tag-modal .modal-header {
	padding: 24px;
}

.edit-tag-modal-title {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 18px;
	line-height: 18px;
	font-weight: bold;
	color: #0D2042;
}

.edit-tag-modal-title img {
	width: 20px;
	height: 20px;
}

.edit-tag-modal .modal-body {
	padding: 0 24px;
	margin: 0;
}

/* 标签输入框 */
.edit-tag-input-wrapper {
	margin-bottom: 20px;
}

/* 标签输入容器 */
.edit-tag-input-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-height: 45px;
	padding: 8px 12px;
	background: #F7F7F9;
	border-radius: 8px;
	box-sizing: border-box;
}

.edit-tag-input-container:focus-within {
	outline: 2px solid #4D6BFF;
}

/* 输入框内的标签 */
.edit-tag-input-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.edit-tag-input-tag {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 4px;
	font-size: 12px;
	line-height: 12px;
	color: #fff;
	white-space: nowrap;
}

.edit-tag-input-tag img {
	width: 10px;
	height: 10px;
}

.edit-tag-input-tag .edit-tag-remove {
	cursor: pointer;
	margin-left: 4px;
	font-size: 14px;
	line-height: 1;
}

.edit-tag-input-tag .edit-tag-remove:hover {
	opacity: 0.8;
}

/* 标签输入框 */
.edit-tag-input {
	flex: 1;
	min-width: 100px;
	height: 28px;
	padding: 0;
	border: none;
	background: transparent;
	font-size: 14px;
	color: #0D2042;
	outline: none;
}

.edit-tag-input::placeholder {
	color: #B8B9BD;
}

/* 我的标签区域 */
.edit-tag-section {
	margin: 20px 0 22px;
}

.edit-tag-section-title {
	line-height: 20px;
	color: #666;
	margin-bottom: 9px;
}

/* 标签列表 */
.edit-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.edit-tag-list .knowledge-card-tag {
	position: relative;
	bottom: 0;
	max-width: fit-content;
}


/* 编辑标签弹窗底部 */
.edit-tag-footer {
	padding: 16px 24px;
	border-top: 1px solid #E9E9ED;
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

.edit-tag-footer .btn {
	padding: 10px 24px;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
}

.edit-tag-footer .btn-primary {
	background: #4D6BFF;
	color: #fff;
	border: none;
}

.edit-tag-footer .btn-primary:hover {
	background: #3D5BE5;
}

.edit-tag-footer .btn-default {
	background: #F3F4F6;
	color: #6B7280;
	border: none;
}

.edit-tag-footer .btn-default:hover {
	background: #E5E7EB;
}

/* ==================== 上传进度弹框 ==================== */
.upload-progress-popup {
	position: fixed;
	width: 354px;
	height: 515px;
	background: #fff;
	box-shadow: 0px 0px 60px 0px rgba(136,136,136,0.5);
	z-index: 1000;
	padding: 20px;
	box-sizing: border-box;
}

.upload-progress-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.upload-progress-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 18px;
	font-weight: bold;
	color: #0D2042;
	line-height: 18px;
}

.upload-progress-title img {
	width: 20px;
	height: 20px;
}

.upload-progress-close {
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.upload-progress-close img {
	width: 100%;
	height: 100%;
}

.upload-progress-list {
	height: calc(100% - 90px);
	overflow-y: auto;
	margin-top: 30px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.upload-progress-list::-webkit-scrollbar {
	display: none;
}

.upload-progress-item {
	padding: 12px 0;
	border-bottom: 1px solid #F3F4F6;
}

.upload-progress-item:last-child {
	border-bottom: none;
}

/* 第一行：图标 + 文件名 + 状态 */
.upload-progress-row1 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.upload-progress-file-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.upload-progress-file-icon img {
	width: 100%;
	height: 100%;
}

.upload-progress-file-name {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #0D2042;
	line-height: 14px;
}

.upload-progress-status {
	color: #7F8897;
	line-height: 14px;
	flex-shrink: 0;
}

/* 第二行：文件大小和上传位置 */
.upload-progress-file-detail {
	color: #7F8897;
	line-height: 14px;
	margin-bottom: 20px;
	padding-left: 30px;
}

/* 第三行：进度条 */
.upload-progress-bar-wrapper {
	display: flex;
	align-items: center;
	padding-left: 30px;
}

.upload-progress-bar {
	flex: 1;
	height: 2px;
	background: #E9E9ED;
	overflow: hidden;
}

.upload-progress-bar-fill {
	height: 100%;
	background: #4D6BFF;
	transition: width 0.3s ease;
}

.upload-progress-footer {
	width: 100%;
	height: 40px;
	display: flex;
	justify-content: center;
}

.upload-progress-continue {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	background: #F7F7F7;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s;
	color: #0D2042;
	line-height: 20px;
}

.upload-progress-continue:hover {
	background: #E9E9ED;
}

.upload-progress-continue img {
	width: 20px;
	height: 20px;
}

/* 继续上传下拉菜单 */
.upload-progress-dropdown {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 0;
	width: 100%;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	z-index: 10000;
	padding: 8px 0;
}

.upload-progress-footer {
	position: relative;
}

/* 上传失败弹窗 */
.upload-error-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
}

.upload-error-modal.hidden {
	display: none;
}

.upload-error-container {
	width: 420px;
	height: 160px;
	background: #fff;
	box-shadow: 0px 0px 60px 0px rgba(136,136,136,0.5);
	border-radius: 24px;
	padding: 24px;
	box-sizing: border-box;
}

.upload-error-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 34px;
}

.upload-error-title {
	display: flex;
	align-items: center;
	gap: 5px;
}

.upload-error-title img {
	width: 18px;
	height: 18px;
}

.upload-error-title span {
	font-weight: bold;
	font-size: 18px;
	color: #0D2042;
	line-height: 18px;
}

.upload-error-close {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.upload-error-close img {
	width: 100%;
	height: 100%;
}

.upload-error-body {
	padding: 0 4px;
}

.upload-error-message {
	color: #7F8897;
	line-height: 24px;
}

/* 同名文件提示弹窗 */
.duplicate-file-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10001;
}

.duplicate-file-modal.hidden {
	display: none;
}

.duplicate-file-container {
	width: 420px;
	background: #fff;
	box-shadow: 0px 0px 60px 0px rgba(136,136,136,0.5);
	border-radius: 24px;
	padding: 24px;
	box-sizing: border-box;
}

.duplicate-file-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.duplicate-file-title {
	display: flex;
	align-items: center;
	gap: 5px;
}

.duplicate-file-title img {
	width: 18px;
	height: 18px;
}

.duplicate-file-title span {
	font-weight: bold;
	font-size: 18px;
	color: #0D2042;
	line-height: 18px;
}

.duplicate-file-close {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.duplicate-file-close img {
	width: 100%;
	height: 100%;
}

.duplicate-file-body {
	margin-bottom: 24px;
}

.duplicate-file-hint {
	color: #7F8897;
	line-height: 24px;
	margin: 0 0 16px 0;
}

.duplicate-file-list {
	max-height: 200px;
	overflow-y: auto;
}

.duplicate-file-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
}

.duplicate-file-item img {
	width: 20px;
	height: 20px;
}

.duplicate-file-item span {
	color: #0D2042;
	line-height: 14px;
}

.duplicate-file-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid #F3F4F6;
}

.duplicate-file-btn {
	padding: 10px 24px;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
	border: none;
	outline: none;
	transition: all 0.2s;
}

.duplicate-file-btn-primary {
	background: #4D6BFF;
	color: #fff;
}

.duplicate-file-btn-primary:hover {
	background: #3d5aee;
}

.duplicate-file-btn-default {
	background: #F3F4F6;
	color: #0D2042;
}

.duplicate-file-btn-default:hover {
	background: #E5E7EB;
}

/* 设置页面 */
.setting-page {
	padding: 62px 223px;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

.setting-header {
	margin-bottom: 58px;
	font-weight: 600;
	font-size: 20px;
	color: #0D2042;
	line-height: 28px;
}

.setting-body {
	width: 100%;
	padding: 0 20px;
	box-sizing: border-box;
	background: #FAFAFC;
	border-radius: 12px;
}

.setting-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	border-bottom: 1px solid #E9E9ED;
}
.setting-item:first-child {
	padding: 13px 0;
}
.setting-item:last-child {
	border-bottom: none;
}

.setting-item label {
	color: #0D2042;
	line-height: 14px;
}

.setting-value-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	justify-content: flex-end;
}

.setting-value {
	font-size: 14px;
	color: #0D2042;
}

.setting-edit-btn {
	padding: 9px 16px;
	background: #E6E6EC;
	border-radius: 8px;
	color: #0D2042;
	line-height: 20px;
	cursor: pointer;
}

.setting-edit-box {
	display: flex;
	align-items: center;
	gap: 8px;
}

.setting-edit-box.hidden {
	display: none;
}

.setting-edit-box input {
	padding: 8px 12px;
	border: 1px solid #4D6BFF;
	border-radius: 6px;
	font-size: 14px;
	outline: none;
	width: 200px;
}

.setting-save-btn {
	padding: 9px 16px;
	background: #4D6BFF;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.2s;
}

.setting-save-btn:hover {
	background: #3d5aee;
}

.setting-avatar-wrapper {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.setting-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	overflow: hidden;
	cursor: pointer;
}


.setting-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.setting-footer {
	margin-top: 32px;
	display: flex;
	justify-content: center;
}

.setting-logout-btn {
	width: 100%;
	height: 62px;
	background: #FAFAFC;
	border-radius: 12px;
	text-align: center;
	line-height: 62px;
	color: #FF6666;
}

/* 发现页面搜索结果 */
.discover-search-result {
	margin-bottom: 32px;
}

.discover-search-result.hidden {
	display: none;
}

.discover-search-result-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 15px;
}

.discover-search-result-title {
	font-size: 16px;
	color: #7F8897;
	line-height: 28px;
}

.discover-search-tabs {
	display: flex;
	align-items: center;
	gap: 37px;
}

.discover-search-tab {
	font-size: 16px;
	color: #B8B9BD;
	cursor: pointer;
	transition: all 0.2s;
}

.discover-search-tab.active {
	color: #0D2042;
	font-weight: 600;
}

.discover-search-result-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.discover-search-result-list:has(.discover-search-empty) {
	display: block;
}

.discover-search-empty{
	text-align: center;
	padding-top: 200px;
}
