header {
    background-color: #0424b7 !important;
}

.znwd_box {
    flex: 1 1 0%;
    align-items: stretch;
    min-height: 0px;
    display: flex;
    padding-top: 90px;
    background-image: linear-gradient(to right bottom, rgb(243, 245, 251), rgb(213, 225, 249));
}

.znwd_box .znwd_menu {
    float: left;
    width: 15.3%;
    padding: 0px 20px 0px 10px;
    height: 910px;
    background-image: linear-gradient(rgb(53, 109, 238), rgb(114, 155, 249));
    border-radius: 0px 40px 40px 0px;
    position: relative;
    box-shadow: rgba(78, 128, 242, 0.27) 4px 0px 4px;
}

.dialogue_box {
    margin-top: 50px;
    /* padding: 0 10px; */
}

.dialogue_box .dialogue {
    border-radius: 6px;
    line-height: 40px;
    background-color: rgb(229, 235, 247);
    color: rgb(16, 111, 254);
    cursor: pointer;
    align-items: center;
    padding-left: 15px;
}

.dialogue_box .dialogue:hover {
    background-color: #fff;
    color: rgb(5, 95, 232);
}

.dialogue_box .dialogue span {
    display: inline-block;
    margin: 0px 0px 7px;
    font-size: 24px;
}
.dialogue_box .dialogue .text{
	font-size: 16px;
}
.history_box {
    position: relative;
}

.history_box .tle {
    padding: 10px;
    color: rgb(255, 255, 255);
    border-bottom: 1px solid rgb(255, 255, 255);
}

.history_box .cont {
    padding: 10px 0;
    font-size: 12px;
    color: rgb(124, 160, 245);
    text-align: center;
}

.history_list {
    margin-top: 10px;
    max-height: 600px;
    overflow-y: auto;
    height: calc(-380px + 100vh);
}

.self_scrollbar {
}

.self_scrollbar::-webkit-scrollbar {
    background-color: rgb(242, 242, 242);
    width: 10px;
    height: 10px;
}

.self_scrollbar::-webkit-scrollbar-track {
    background-color: rgb(242, 242, 242);
    border-radius: 10px;
}

.self_scrollbar::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: rgb(212 212 212);
}

.history_list .history-item {
    margin-bottom: 4px;
    padding: 8px 4px;
    border-radius: 4px;
    padding-left: 10px;
    font-size: 16px;
    color: rgb(205, 219, 251);
    cursor: pointer;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
	padding-right:40px;
	position:relative;
}
.isdp .znwd_szxfr{padding:100px 0px 50px;}
.isdp .list_box{padding:80px 40px;}
.history_list .deli{
	position: absolute;
	width:22px;
	height:22px;
	right: 8px;
	top:8px;
	background:url(../images/znwd_delete.png);
	background-size:100% 100%;
	display: none;
}
.history_list .history-item:hover {
    background-color: #e5ebf7;
    color: #0348e8;
}
.history_list .history-item:hover .deli{
	display: block;
}
.history_list .history-item.on {
    color: rgb(3, 72, 232);
    background-color: rgb(255, 255, 255);
}

.scrollable::-webkit-scrollbar {
    background-color: rgb(242, 242, 242);
    width: 10px;
    height: 10px;
    border-radius: 10px;
}

.scrollable::-webkit-scrollbar-track {
    background-color: rgb(242, 242, 242);
    border-radius: 10px;
}

.scrollable::-webkit-scrollbar-thumb {
    background-color: rgb(114, 155, 249);
    border-radius: 10px;
}

.znwd_about {
    font-size: 12px;
    color: rgb(255, 255, 255);
    position: absolute;
    bottom:20px;
    left: 20px;
}

.znwd_about:hover {
    color: rgb(4, 36, 183);
}

.znwd_about img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.znwd_box .znwd_cont {
    float: left;
    width: 84.7%;
    height: 910px;
    position: relative;
}

.znwd_box .znwd_cont .znwd_digit {
    width: 100%;
    margin-bottom: 20px;
}

.znwd_szxfr {
    padding: 40px 0px 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.znwd_szxfr .znwd_robot {
    margin-top: -20px;
    margin-right: 20px;
    display: block;
}

.znwd_szxfr .szxfr_tle {
    text-align: center;
}

.znwd_szxfr .szxfr_tle1 {
    font-weight: bold;
    font-size: 30px;
    color: rgb(10, 79, 236);
}

.znwd_szxfr .szxfr_tle2 {
    margin-top: 10px;
    font-size: 18px;
    color: rgb(148, 147, 147);
}

.problem_list .tle {
    color: rgb(129, 130, 132);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.problem_list .tle .m1 {
    display: block;
}

.problem_list .tle .m2 {
    display: block;
    cursor: pointer;
}

.problem_list .tle .m2:hover {
    color: rgb(4, 36, 183);
}

.problem_list .tle .m2:hover img {
    transform: rotate(180deg);
}

.problem_list .tle .m2 img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    transition: 0.3s;
}

.problem_list .cont {
    margin-top: 20px;
}

.problem_list .cont li {
    margin-bottom: 8px;
}

.problem_list .cont li a {
    display: block;
    line-height: 30px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
    border-radius: 6px;
    padding: 2px 8px;
}

.problem_list .cont li a:hover {
    background-color: rgba(255, 255, 255, 0.6);
    color: rgb(4, 36, 183);
}

.problem_list .more {
    margin-top: 10px;
}

.problem_list .more a {
    font-size: 18px;
    color: rgb(10, 79, 236);
    font-weight: 600;
}

.problem_list .more a:hover {
    color: rgb(7, 61, 187);
}

.problem_box {
    max-width: var(--message-list-max-width);
    flex-grow: 1;
    width: 100%;
    position: relative;
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgb(7, 129, 255);
    border-radius: 10px;
    background-color: rgb(255, 255, 255);
}

.problem_box .problem_textbox {
    width: 100%;
    margin: 0px 4px;
    position: relative;
}

.problem_box .problem_text {
    font-family: 中软雅黑;
    font-size: 18px;
    color: rgb(112, 112, 112);
    outline: none;
    width: 100%;
    min-height: 80px;
    height: auto;
    max-height: 360px;
    line-height: 26px;
    resize: none;
    background-color: transparent;
    border: none;
}

.znwd_btnbox {
    --function-row-offset: 2px;
    padding-left: var(--function-row-offset);
    flex-wrap: wrap;
    align-items: center;
    margin-top: 4px;
    display: flex;
}

.znwd_btnbox .znwd_think {
    border-radius: 20px;
    padding: 2px 12px;
    font-size: 18px;
    border: 1px solid rgb(10, 79, 236);
    color: rgb(10, 79, 236);
    cursor: pointer;
}

.znwd_btnbox .znwd_think:hover {
    border: 1px solid rgb(10, 79, 236);
    color: rgb(10, 79, 236);
}

.znwd_btnbox .znwd_think img {
    display: inline-block;
    margin-right: 8px;
}

.znwd_btnbox .znwd_sending {
    cursor: pointer;
    flex: 1 1 0%;
    justify-content: flex-end;
    align-items: center;
    display: flex;
}

.znwd_btnbox .znwd_sending img {
    display: block;
    transition: 0.3s;
}

.znwd_btnbox .znwd_sending:hover img {
    transform: translate(0px, 2px);
}

.znwd_cont .copyright {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgb(149, 150, 152);
    cursor: pointer;
}

.znwd_cont .copyright:hover {
    color: rgb(10, 79, 236);
}

.chat-container {
    overflow-y: auto;
    padding: 0 10% 30px;
    /* background-color: #fff; */
    height: calc(100% - 170px);
    flex: 1;
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.message {
    margin-bottom: 15px;
    padding: 10px 20px;
    border-radius: 10px;
    line-height: 2;
    /* display: flex; */
    max-width: 80%;
    gap: 10px;
}

section {
    color:#8b8b8b;
    font-size:12px;
    line-height: 1.8;
    padding-left: 15px;
    border-left:2px solid #e5e5e5;
    padding-bottom: 15px;
}

.user-message {
    /* background-color: #e3f2fd; */
    text-align: right;
    align-self: flex-end;
    flex-direction: row-reverse;
    display: flex;
    align-content: center;
    align-items: center;
    /* flex-wrap: nowrap; */
    padding-right: 0;
}
.user-message p{background-color:#e3f2fd;padding: 10px 20px;border-radius: 10px;position: relative;}
.user-loaded p::before{content:'';width: 0; height: 0; border-top: 10px solid transparent;border-bottom: 10px solid transparent; border-left: 10px solid #e3f2fd;position:absolute;right:-10px;top: 50%;transform: translateY(-50%);}
.user-message img.user-logo{width:45px;height:45px;border-radius: 50%;}
.ai-message {
    /* background-color: rgb(255 255 255); */
    align-self: flex-start;
    padding-left: 60px;
    position:relative;
}
.ai-message::before{
	content:'';
	width: 40px;
	height: 60px;
	position: absolute;
	background:url(../images/znwd_robot.png) no-repeat top center;
	left:0;
	top:0;
	background-size: 100% 100%;
}
h1,h2,h3,h4,h5{margin-top:10px;}
h1{font-size:150%;}
h2{font-size:140%;}
h3{font-size:130%;}
h4{font-size:120%;}
h5{font-size:110%;}
h6{font-size:105%;}
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-width: 3px;
    border-style: solid;
    border-color: rgb(0, 0, 0) rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.3);
    border-image: initial;
    border-radius: 50%;
    animation: 1s ease-in-out 0s infinite normal none running spin;
    margin-left: 10px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.znwd-content {
    margin: 0px auto;
}

.send_box {
    z-index: 7;
    position: sticky;
    width: 80%;
    bottom: 20px;
    left: 10%;
    /* opacity: .8; */
}
.send_box:hover{
	opacity:1;
}
.list_box{
    background: url(../images/znwd_rmwtbg.png) no-repeat;
    background-size: 100%;
    padding: 40px;
    margin-bottom: 15px;
    width: 100%;
    border-radius: 10px;
}

/* 重置样式 */
.layout-container {
	display: flex;
	flex-direction: column;
	height: 100vh;
}

/* 顶部菜单样式 */
.header {
	display: flex;
}
/* 主体内容区域 */
.main-content {
	display: flex;
	flex: 1;
	overflow: hidden;
	padding-top: 90px;
}

/* 左侧菜单 */
.sidebar {
	width: 260px;
	color: white;
	padding: 0 10px;
	overflow-y: auto;
	background-image: linear-gradient(212deg, #0045e5, #758fcd);
	/* border-radius: 0 50px 0 0; */
	position:relative;
}
.menu-toggle{
	position: absolute;
	right: 4px;
	top: 4px;
	z-index: 1000;
	width: 40px;
	height: 40px;
	justify-content: center;
	align-items: center;
	font-size: 26px;
	cursor: pointer;
	/* box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 5px; */
	text-align: center;
}
/* 右侧工作区 */
.workspace {
	flex: 1;
	background-color: #fff;
	position: relative;
}

/* 底部版权信息 */
.footer {
	height: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #2c3e50;
	color: white;
	font-size: 0.9rem;
	padding: 0;
}
.footer a{color:#fff;}

/*手机样式*/
.active .dialogue_box .dialogue{padding:0;text-align: center;}
.active .dialogue_box .dialogue span{margin:0;}
.active .dialogue_box .dialogue span.text,.active .history_box .tle,.active .history_list,.active .znwd_about .text{display:none;}
.active .menu-toggle{top:4px;left:10px;}
.active{
		width: 60px;
		overflow: hidden;
		transition: width 0.3s;
	}
/* 响应式设计 - 小屏幕时左侧菜单隐藏 */
@media (max-width: 1024px) {
	.list_box{display:none;}
	.chat-container{padding:0;}
	.footer {padding:20px 10px;height:auto;text-align:center;}
}
@media (max-width: 768px) {
	.message{max-width:95%;/* line-height: 1.8; */}
	.znwd_szxfr .szxfr_tle{padding:20px;}
	.znwd_szxfr .szxfr_tle1{font-size:18px;}
	.problem_box .problem_text{min-height: 50px;}
	.znwd_szxfr{display:block;text-align: center;}
	.znwd_szxfr .znwd_robot{display:inline;}
	.main-content{padding-top:60px;}
	main{padding-top: 0px !important;}
  	.active{width: 0;padding: 0;}
	.active .menu-toggle {top: 4px;left: 2px;position: fixed;top: 66px;color:#8b8b8b;}
	.chat-container{padding:0 10px}
}
@media screen and (min-width: 1921px) {
	.isdp .list_box{padding:2.5em;margin-bottom:0.9375em;}
	.problem_list .tle{font-size: 2em;}
	.problem_box .problem_text{min-height: 8em;line-height: 1.625em;font-size: 1.5em;}
	.isdp .znwd_szxfr{padding:6.25em 0px 3.125em;}
	.znwd_btnbox .znwd_think{font-size:1.25em;padding: 0.125em 0.75em;}
	.history_list .history-item{font-size:1.125em;}
	.znwd_about{font-size:0.75em;}
	.problem_list .cont li{margin-bottom:0.5em;}
	.problem_list .cont li a{font-size: 1.5em;padding:0.125em 0.5em;line-height:1.875em;}
	.znwd_szxfr .szxfr_tle1{font-size:1.875em;}
	.znwd_szxfr .szxfr_tle2{font-size:1.25em;}
	.znwd_szxfr .znwd_robot{width:3.625em;}
	.user-message,.ai-message{font-size:1.5em;}
	.chat-container{padding: 0 10% 1.875em;height: calc(100% - 15em);gap:1em;}
	.dialogue_box .dialogue .text{font-size:1.125em;}
	.dialogue_box .dialogue span{margin:0;}
}