body {
	/* border: 1px red solid; */
	display: flex;
	overflow: hidden;
}

/* 右上角新建按钮 */
.create-project-btn dl a {
	/* border: 1px red solid; */
	padding: 0 !important;
	text-align: center;
}
.create-project-btn a {
	cursor: pointer;
}
.create-project-btn .layui-icon-down {
	display: none;
}

.create-project-btn .add {
	padding: 12px 24px;
	font-size: 16px;
	text-align: center;
	background-color: #fff;
	border-radius: 5px;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

/* 新建文集表单 start */
.layui-form-label {
	width: 100px;
}

.layui-form-item {
	/* border: 1px red solid; */
	display: flex;
}

.layui-input-block {
	flex: 1;
	margin-left: 0;
}
/* 新建文集表单 end */

.wrapper {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: 0.3s ease;
	background-color: rgba(245, 245, 245, 0.5);
}

.layui-footer {
	border: none !important;
	margin-top: auto !important;
	font-size: 12px;
	color: #999999;
}

.layui-footer a {
	color: #999999;
}

#split-0,
#split-1 {
	/* border: 1px red solid; */
	overflow: auto;
}

/* main-panel start */
.main-panel {
	/* border: 1px red solid; */
	position: relative;
	width: 100%;
	min-width: 500px;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.main-panel .main-panel__nav {
	/* border: 1px red solid; */
	padding: 24px;
	padding-bottom: 60px;
	display: flex;
	align-items: center;
	/* justify-content: space-between; */
}

.main-panel .main-panel__nav .main-panel__nav__icon {
	margin-left: 64px;
}

.main-panel .main-panel__nav .main-panel__nav__icon img {
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.main-panel .main-panel__nav .main-panel__nav__title {
	font-weight: 500;
	font-size: 20px;
	color: #000000;
	margin-left: 50px;
	cursor: default;
	margin-right: auto;
}

.main-panel .main-panel__nav .main-panel__nav__icon img:first-child {
	margin-right: 16px;
}

.main-panel__container {
	/* border: 1px red solid; */
	position: relative;
	flex: 1;
}

.main-panel__container__auto {
	/* border: 1px blue solid; */
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	min-height: 100%;
	overflow: auto;
	padding: 0 32px;
	scroll-behavior: smooth;
}

.main-panel__container__auto.no-scroll {
	pointer-events: none !important;
}

.main-panel__container__auto.locked {
	overflow: hidden !important;
}

.main-panel__container__auto::-webkit-scrollbar {
	display: none;
}

.main-panel__container__auto__cover {
	/* border: 1px red solid; */
	max-width: 1200px;
	width: 100%;
	margin: auto;
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.main-panel__container__auto__cover__content {
	/* border: 1px blue solid; */
	flex: 1;
	display: flex;
	flex-direction: column;
}
/* main-panel end */

/* index-content start */
.index-content {
	/* border: 1px red solid; */
	height: 95%;
	display: flex;
	flex-direction: column;
	background-color: #fff;
	padding: 64px 150px 0;
	box-shadow: 0 0 10px #eee;
	border-radius: 16px;
	overflow: auto;
}

.index-content .index-content__title {
	text-align: center;
	font-size: 18px;
	font-weight: 500;
	font-size: 40px;
	color: #000000;
	margin-bottom: 40px;
}

.index-filter {
	/* border: 1px red solid; */
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 10px;
}

.index-filter .layui-inline {
	margin: 0;
}

.index-filter p {
	font-weight: 400;
	font-size: 18px;
	color: #333333;
}

/* 文集列表父容器 */
.project-list-content {
	/* border: 1px red solid; */
	margin-top: 20px;
	display: flex;
	flex-wrap: wrap;
}

/* 文集项容器 */
.project-item {
	/* border: 1px red solid; */
	width: calc(100% / 3 - 20px);
	padding: 16px;
	margin: 10px;
	height: fit-content;
	border-radius: 17px;
	border: none;
	background-color: #fff;
}
.project-item:hover {
	box-shadow: none;
}

.project-item a {
	cursor: pointer;
}

.project-item__cover {
	width: 100%;
	height: 150px;
	background: #d8d8d8;
	border-radius: 7px;
	overflow: hidden;
}

.project-item .layui-card-header {
	padding: 0;
}

.project-item .project-item__header {
	/* border: 1px red solid; */
	display: flex;
	align-items: center;
	font-weight: 700;
	/* height: 42px;
	line-height: 42px; */
	margin: 10px 0;
}

.project-item .project-item__header .layui-badge-rim {
	margin-right: auto;
}

.project-item .project-item__header a.index-add-link {
	position: relative;
	right: auto;
	float: none;
	margin-left: 10px;
}

.project-item .project-item__body {
	/* border: 1px red solid; */
	position: relative;
	font-size: 12px;
}

.project-item .project-item__body .project-item__body__info {
	/* border: 1px red solid; */
	background: #f9f9f9;
	border-radius: 9px;
	padding: 12px;
	display: flex;
	justify-content: space-around;
	align-items: center;
	margin-top: 10px;
}

.project-item .project-item__body .project-item__body__info a.index-doc-link span:first-child {
	font-weight: bold;
	font-size: 18px;
	color: #333333;
	line-height: 20px;
}

.project-item .project-item__body .project-item__body__info .project-item__body__info__divider {
	width: 1px;
	height: 15px;
	border: 1px solid #eeeeee;
}

.project-item .project-item__body .project-item__body__details {
	margin-bottom: 10px;
}

.project-item .project-item__body .project-item__body__details p:first-child {
	color: #999;
	line-height: 20px;
	height: calc(20px * 3);
}

.project-item .project-item__body .project-item__body__details.tooltip {
	display: block;
}

.project-item .project-item__body .project-item__body__details.tooltip .tooltip-content {
	margin: 0;
	top: 50%;
	left: 50%;
	transform: translateX(-50%);
	text-align: justify;
}

/* 文集列表项提示框 start */
.project-item .tooltip {
	/* border: 1px red solid; */
	z-index: 0;
	position: relative;
	opacity: 1;
	display: flex;
	align-items: center;
	font-size: 12px;
	line-height: initial;
	margin-bottom: 10px;
	padding: 0 !important;
	display: none;
}

.project-item .tooltip .tooltip-content {
	width: 200px;
	top: 100%;
}
/* 文集列表项提示框 start */

.project-list-page {
	/* border: 1px red solid; */
	text-align: center;
	margin-top: auto;
}
/* index-content end */

/* chat-input start */
.chat-input {
	z-index: 1;
	position: sticky;
	bottom: 0;
	margin-top: auto;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.04);
	border-radius: 10px;
	border: 1px solid #eeeeee;
	background-color: #fff;
	width: 900px;
	margin: 0 auto;
}

.chat-input .chat-input__header {
	position: relative;
	width: 100%;
	height: 44px;
	background: #f9fafc;
	/* box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.04); */
	border-radius: 10px 10px 0px 0px;
	border-bottom: 1px solid #eeeeee;
	display: flex;
	align-items: center;
	padding: 12px 16px;
	display: none;
}

.chat-input .chat-input__header .chat-input__header__title img {
	width: 13px;
	height: 12px;
}
.chat-input .chat-input__header .chat-input__header__title span {
	font-weight: 500;
	font-size: 14px;
	color: #333333;
}

.chat-input .chat-input__header .chat-input__header__tips {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.chat-input .chat-input__header .chat-input__header__tips img {
	width: 10px;
	height: 10px;
	transform: rotate(180deg);
	transition: 0.3s ease;
}
.chat-input .chat-input__header .chat-input__header__tips span {
	font-weight: 400;
	font-size: 10px;
	color: #999999;
}

.chat-input .chat-input__body {
	padding: 20px;
}

.chat-input .chat-input__textarea {
	/* border: 1px red solid; */
	--h: 28px;
	position: relative;
	max-height: calc(12 * var(--h));
	font-size: 18px;
	line-height: var(--h);
}

.chat-input .chat-input__textarea > textarea,
.chat-input .chat-input__textarea > div {
	display: block;
	width: 100%;
	word-break: break-word;
	white-space: pre-wrap;
	border: none;
	outline: none;
	resize: none;
	overflow: auto;
}

.chat-input .chat-input__textarea > textarea {
	position: absolute;
	inset: 0;
}

.chat-input .chat-input__textarea > div {
	visibility: hidden;
	pointer-events: none;
	min-height: calc(1 * var(--h));
}

.chat-input .chat-input__bottom {
	margin-top: 5px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
}

.chat-input .chat-input__bottom img {
	width: 18px;
	height: 18px;
}

.chat-input .chat-input__bottom img:last-child {
	width: 35px;
	height: 35px;
}

.chat-input.active .chat-input__header .chat-input__header__tips img {
	transform: rotate(0);
}

.chat-input.active .chat-input__top {
	opacity: 1;
	margin-bottom: 20px;
}

.chat-input .chat-input__top {
	height: 0;
	opacity: 0;
	margin-bottom: 0;
	overflow: hidden;
	border: 2px dashed #eeeeee;
	border-radius: 10px;
	transition: 0.3s ease;
}

.chat-input .chat-input__top .chat-input__top__content {
	width: 100%;
	height: 300px;
	min-height: 200px;
	background-color: #fff;
	overflow: auto;
	padding: 20px;
}

.ai-reply,
.user-reply {
	/* border: 1px red solid; */
	width: 100%;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.user-reply + .ai-reply {
	margin-top: 36px;
}

.ai-reply .ai-reply__content,
.user-reply .user-reply__content {
	width: fit-content;
	max-width: 450px;
	height: fit-content;
	padding: 9px 12px;
	border-radius: 8px;
	background: #e9e9e9;
	font-size: 12px;
	line-height: 22px;
	white-space: pre-wrap;
	text-align: justify;
}

.ai-reply {
	flex-direction: row-reverse;
}

.user-reply .user-reply__content {
	background: #e7efff;
}

.user-reply .user-reply__head,
.ai-reply .ai-reply__head {
	width: 25px;
	height: 25px;
}
/* chat-input end */

.layui-tab-title {
	border: none;
}

.layui-tab-brief > .layui-tab-title .layui-this {
	color: #333;
}
.layui-tab-brief > .layui-tab-more li.layui-this:after,
.layui-tab-brief > .layui-tab-title .layui-this:after {
	border-bottom: 2px solid #333;
}

/* code start */
.code-editor-panel {
	width: 100%;
	min-width: 300px;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.code-editor-panel .input {
	/* border: 1px blue solid; */
	display: flex;
	flex-direction: column;
	overflow: hidden;
	flex: 0.7;
}

.code-editor-panel .output {
	/* border: 1px blue solid; */
	flex: 0.3;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.code-editor-panel .output .output__header,
.code-editor-panel .input .input__header {
	padding: 18px 20px;
	border: 1px solid #eeeeee;
	border-left: none;
	border-right: none;
	font-weight: 500;
	font-size: 14px;
	color: #333333;
	white-space: nowrap;
}

.code-editor-panel .output .output__body {
	flex: 1;
	padding: 20px;
	background-color: #fff;
}

.code-editor-panel .output .output__body textarea {
	width: 100%;
	/* min-width: 300px; */
	height: 100%;
	resize: none;
	border: none;
	outline: none;
	font-weight: 500;
	font-size: 12px;
	color: #333333;
	/* border: 1px red solid; */
	overflow: auto;
	white-space: nowrap;
}

.code-editor-panel .input .input__header {
	display: flex;
	align-items: center;
}

.code-editor-panel .input .input__header > img {
	width: 16px;
	height: 16px;
	margin-right: 20px;
	cursor: pointer;
}

.code-editor-panel .input .input__header .input__header__drop-down {
	/* border: 1px red solid; */
	font-weight: 500;
	font-size: 16px;
	color: #333333;
	display: flex;
	align-items: center;
	cursor: pointer;
}

.code-editor-panel .input .input__header .input__header__drop-down img {
	width: 14px;
	height: 14px;
	margin-left: 10px;
}

.code-editor-panel .input .input__header .input__header__right {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 20px;
}

.code-editor-panel .input .input__header .input__header__right img:first-child {
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.code-editor-panel .input .input__header .input__header__right img:last-child {
	width: 24px;
	height: 24px;
	cursor: pointer;
}

.code-editor-panel .input .input__body {
	/* border: 1px red solid; */
	/* height: 580px; */
	height: 100%;
	overflow: auto;
}

.CodeMirror {
	height: 100% !important;
}
/* code end */

/* 右下角浮动按钮 */
.fixed-tool-bar .fixed-tool-bar__item {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f6f6f6;
	text-align: center;
	line-height: 40px;
}

.layui-layer-content {
	/* border: 1px red solid; */
	height: 100%;
}
