﻿/* ----------------------------------------------------------------- AIGC ----------------------------------------------------------------- */

.header img {
    width: 100%;
}

.aigc-wrap {
    min-height: calc(100vh - 80px);
    overflow: hidden;
}

.aigc-wrap .left {
    position: relative;
    width: 280px;
    background: url(../images/AIGC/bg_agi_left_bar.png) no-repeat;
    background-size: cover;
}

.aigc-wrap .left .breadcrumb {
    margin-left: 24px;
}

.left-footer {
    position: absolute;
    bottom: 50px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #00000073;
}

.left-footer .left-logo {
    width: 157px;
    margin: 0 auto 7px;
}

.aigc-wrap .right {
    position: relative;
    width: 100%;
    background: url('../images/homeCenterBg.0b08865f.png') no-repeat;
    background-size: cover;
}

.aigc-wrap .left .add-btn {
    max-width: 232px;
    height: 56px;
    background-image: linear-gradient(270deg, #25ADFF 0%, #0056FE 100%);
    border-radius: 28px;
    font-size: 20px;
    color: #FFFFFF;
    cursor: pointer;
    margin: 70px auto 0;
}

.aigc-wrap .left .add-btn:active {
    background-image: linear-gradient(270deg, #0056FE 0%, #25ADFF 100%);
}

.aigc-wrap .left .add-btn .icon {
    font-size: 30px;
    margin-right: 10px;
}

.aigc-wrap .left .history {
    margin: 40px 0 0;
}

.aigc-wrap .left .history .title {
    font-size: 16px;
    margin: 0 24px;
}

.aigc-wrap .left .history input {
    max-width: 232px;
    height: 40px;
    background: #EBF2FE;
    border: 1px solid #D6E3F5;
    border-radius: 8px;
    margin: 18px 24px 24px;
}

.aigc-wrap .left .history-list-wrap {
    padding: 0 10px 0 24px;
    height: 360px;
    overflow: hidden;
    overflow-y: auto;
    margin-right: 14px;
    margin-top: 24px;
}

.aigc-wrap .left .history-list .history-item {
    position: relative;
    width: 100%;
    height: 58px;
    background-image: linear-gradient(270deg, #EDF8FE 6%, #FFFFFF 68%, #F2FAFF 100%);
    border: 1px solid #FFFFFF;
    box-shadow: inset 0 0 8px 0 #FFFFFF;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    padding: 10px 18px 8px 16px;
    margin-bottom: 16px;
    cursor: pointer;
}

.aigc-wrap .left .history-list .history-item.ws-icon {
    padding-left: 34px;
}

.aigc-wrap .left .history-list .history-item.ws-icon::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    background: url(../images/AIGC/icon_agi_history_doc@2x.png) no-repeat;
    background-size: 100%;
    width: 22px;
    height: 23px;
}

.aigc-wrap .left .history-list .history-item.active {
    border: 1px solid #0056FE;
    box-shadow: 0 2px 9px 0 #0056fe38, inset 0 0 8px 0 #FFFFFF;
}

.aigc-wrap .left .history-list .history-item:nth-child(4n+1) {
    background-image: linear-gradient(270deg, #EDF8FE 6%, #FFFFFF 68%, #F2FAFF 100%);
}

.aigc-wrap .left .history-list .history-item:nth-child(4n+2) {
    background-image: linear-gradient(270deg, #EEFFFA 6%, #FFFFFF 68%, #F4FEFB 100%);
}

.aigc-wrap .left .history-list .history-item:nth-child(4n+3) {
    background-image: linear-gradient(270deg, #FFF8F6 6%, #FFFFFF 68%, #FDFBF9 100%);
}

.aigc-wrap .left .history-list .history-item:nth-child(4n+4) {
    background-image: linear-gradient(270deg, #F8F5FF 11%, #FFFFFF 69%, #FCFBFE 100%);
}

.aigc-wrap .left .history-list .history-item:last-child {
    margin-bottom: 0;
}

.aigc-wrap .left .history-list .history-item .tit {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.aigc-wrap .left .history-list .history-item .time {
    font-size: 12px;
    color: #9197AD;
    margin-top: 1px;
}

.history-list .ax-empty .icon {
    width: 100%;
    height: auto;
}

.aigc-wrap .right .aigc-tabs {
    justify-content: center;
    height: 80px;
    background: #ffffff80;
    box-shadow: inset 0 -1px 2px 0 #FFFFFF;
    /* padding-left: 507px; */
}

.aigc-wrap .right .aigc-tabs .tab {
    font-size: 20px;
    color: #797979;
    cursor: pointer;
}

.aigc-wrap .right .aigc-tabs .tab + .tab {
    margin-left: 5vw;
}

.aigc-wrap .right .aigc-tabs .tab.active {
    font-weight: 600;
    color: #0056FE;
}

.aigc-wrap .right .aigc-tabs .tab .icon {
    height: 32px;
    margin-right: 15px;
}

/* 智能对话 */

.dialogue-ask {
    margin: 50px 0 0;
}

.dialogue-wrap > .title {
    margin: 54px auto 30px;
}

.dialogue-wrap .title .con {
    margin-left: 34px;
    margin-top: -10px;
}

.dialogue-wrap .title .con .tit {
    font-size: 40px;
    font-weight: 600;
}

.dialogue-wrap .title .con .desc {
    font-size: 16px;
    margin-top: 20px;
}

.dialogue-example {
    max-width: 1296px;
    margin: 0 auto;
}

.dialogue-example .tip {
    font-size: 18px;
    color: #333333d9;
    align-items: center;
}

.dialogue-example .tip .btn {
    width: 120px;
    height: 44px;
    background-image: linear-gradient(180deg, #FDFDFF 33%, #CDE4FD 100%);
    box-shadow: 0 5px 10px 0 #9db9f45e, inset 0 -3px 8px 0 #ffffffe0, inset 0 -6px 30px 0 #FFFFFF;
    border-radius: 20px;
    font-size: 16px;
    color: #0056FE;
    cursor: pointer;
}

.dialogue-example .tip .btn:active {
    background-image: linear-gradient(0deg, #CDE4FD 33%, #FDFDFF 100%);
}

.dialogue-example .tip .btn .icon {
    margin-right: 8px;
    margin-top: 2px;
}

.dialogue-example-list {
    margin: 42px 0 0;
    align-items: flex-start;
}

.dialogue-example-list .item {
    position: relative;
    width: 30%;
    /* height: 236px; */
    background-image: linear-gradient(129deg, #b5edeccc 0%, #d7f8facc 37%, #c9f5f4cc 70%, #a2ebe0cc 100%);
    border-radius: 14px;
    box-sizing: border-box;
    padding: 90px 30px 38px;
    cursor: pointer;
}

.dialogue-example-list .item:hover {
    margin-top: -8px;
    transition: .3s;
}

/* .dialogue-example-list .item:nth-child(1) {
    background-image: linear-gradient(129deg, #b8d6ffe6 0%, #d4e6ffe6 30%, #e9f2ffe6 52%, #d8e9ffe6 79%, #bfdaffe6 100%);
} */

.dialogue-example-list .item:nth-child(2) {
    background-image: linear-gradient(128deg, #a0e3ffe6 0%, #d7f3ffe6 37%, #e1f7ffe6 54%, #cef2ffe6 73%, #a2e7ffe6 100%);
}

.dialogue-example-list .item:nth-child(3) {
    background-image: linear-gradient(129deg, #c2c4fdcc 0%, #e8e9fecc 38%, #f3f3ffcc 57%, #edeeffcc 72%, #d2d5ffcc 100%);
}

.dialogue-example-list .item .title {
    font-size: 26px;
    font-weight: 600;
}

.dialogue-example-list .item .icon {
    position: absolute;
    top: -22px;
    left: 20px;
    height: 109px;
}

.dialogue-example-list .item .desc {
    font-size: 14px;
    line-height: 24px;
    margin: 20px 0 0;
}

.dialogue-wrap .input-box {
    width: 100%;
    max-width: 1200px;
    height: 68px;
    background: #FFFFFF;
    box-shadow: 0 6px 15px 0 #0056fe1f;
    border-radius: 12px;
    align-items: center;
    padding: 3px 20px 3px 8px;
    box-sizing: border-box;
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translate(-50%, 0);
}

.dialogue-wrap .input-box.focus {
    background-image: linear-gradient(to right, #39D4AC, #3787FD, #F6496F);
}

.dialogue-wrap .input-box.focus::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    background: #FFFFFF;
    width: 99.52%;
    height: 91%;
    border-radius: 12px;
}

.dialogue-wrap .input-box .type-select {
    position: relative;
    width: 176px;
    height: 52px;
    background-image: linear-gradient(180deg, #FDFDFF 33%, #CDE4FD 100%);
    box-shadow: 0 1px 5px 0 #C3D6FE, inset 0 -3px 8px 0 #ffffffe0, inset 0 -6px 30px 0 #FFFFFF;
    border-radius: 8px;
    z-index: 1;
}

.dialogue-wrap .input-box .type-select .selected {
    height: 100%;
    cursor: pointer;
}

.dialogue-wrap .input-box .type-select .selected .icon {
    margin-left: 18px;
}

.dialogue-wrap .input-box .type-select .selected.open .icon {
    transform: rotate(180deg);
}

.typeselect-options {
    display: none;
    position: absolute;
    bottom: 67px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    box-shadow: 0 2px 18px 0 #b9cfe8c2;
    border-radius: 10px;
    font-size: 15px;
    color: #000000e0;
    box-sizing: border-box;
    padding: 5px;
}

.typeselect-options .item {
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 12px;
}

.typeselect-options .item:last-child {
    margin-bottom: 0;
}

.typeselect-options .item:hover, .typeselect-options .item.active {
    background: #E4F0FF;
    color: #0056FE;
    border-radius: 7px;
}

.dialogue-wrap .input-box .dialogue-content {
    position: relative;
    flex: 1;
    margin: 0 20px;
    border: none;
    z-index: 1;
    height: 90%;
}

.dialogue-wrap .input-box .submit-icon {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
}

.dialogue-wrap .input-box .submit-icon.focus {
    display: none;
    cursor: pointer;
}

/* 正在撰写动画 */

.dialogue-loading, .doc-loading-wrap {
    display: none;
    min-height: 8px;
    line-height: 5px;
}

.doc-loading-wrap {
    position: absolute;
    bottom: 25px;
    right: 20px;
    z-index: 1;
}

.doc-loading-wrap .loading {
    display: inline-block;
    margin-left: 10px;
}

.dialogue-loading span, .doc-loading-wrap .loading span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 50%;
    background-image: linear-gradient(180deg, #0056FE 0%, #2DC3FC 100%);
    -webkit-animation: load 1.04s ease infinite;
}

.dialogue-loading span:last-child, .doc-loading-wrap .loading span:last-child {
    margin-right: 0px; 
}
.dialogue-loading span:nth-child(1), .doc-loading-wrap .loading span:nth-child(1) {
    -webkit-animation-delay:0.15s;
}
.dialogue-loading span:nth-child(2), .doc-loading-wrap .loading span:nth-child(2) {
    -webkit-animation-delay:0.3s;
}
.dialogue-loading span:nth-child(3), .doc-loading-wrap .loading span:nth-child(3) {
    -webkit-animation-delay:0.45s;
}

@-webkit-keyframes load{
    0%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}

.stop-btn {
    display: none;
    width: 124px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background-image: linear-gradient(180deg, #FDFDFF 50%, #B0D1F2 100%);
    box-shadow: 0 2px 16px 0 #b9cfe869, inset 0 -3px 8px 0 #ffffffe0, inset 0 -6px 30px 0 #FFFFFF;
    border-radius: 22px;
    font-size: 16px;
    color: #424242;
    margin: 0 auto;
    cursor: pointer;
}

.stop-btn .icon {
    margin-top: -2px;
    margin-right: 8px;
}

.dialogue-result {
    display: none;
    width: 1240px;
    height: 600px;
    margin: 18px auto 0;
    overflow: hidden;
    overflow-y: auto;
    padding-right: 10px;
    box-sizing: border-box;
}

.dialogue-result > div:last-child {
    margin: 18px 0;
}

.dialogue-result .ask, .dialogue-result .answer {
    align-items: flex-start;
    font-size: 16px;
    color: #000000;
    line-height: 26px;
    margin: 18px 0;
    justify-content: flex-end;
}

.dialogue-result .answer {
    justify-content: flex-start;
}

.dialogue-result .ask .avatar, .dialogue-result .answer .avatar {
    margin-right: 16px;
}

.dialogue-result .ask .avatar {
    margin-right: 0;
}

.dialogue-result .ask .title {
    /* flex: 1; */
    font-weight: bold;
    margin-right: 16px;
}

.dialogue-result .answer {
    width: 100%;
    margin: 18px 0 48px;
}

.dialogue-result .answer .right {
    flex: 1;
    background: #FFFFFF;
    box-shadow: 0 6px 15px 0 #8895b01f;
    border-radius: 0 10px 10px 10px;
    box-sizing: border-box;
    padding: 24px 32px;
    color: #000000bf;
    letter-spacing: 0;
    line-height: 26px;
}

.dialogue-result .answer .right .content-load {
    color: transparent;
    background-image: linear-gradient(to right, #000000bf, #000000bf, #000000bf);
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-size: 100% 100%;
}

@keyframes bg {
    0% {
        background-size: 100% 0%;
    }
    100% {
        background-size: 100% 100%;
    }
}

.dialogue-result .answer .right .loading-tip {
    align-items: center;
}

.dialogue-result .answer .right .loading-icon {
    width: 14px;
    padding: 3px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #0057FF;
    --_m: conic-gradient(#0000 10%,#000), linear-gradient(#000 0 0) content-box;
    -webkit-mask: var(--_m);
    mask: var(--_m);
    -webkit-mask-composite: source-out;
    mask-composite: subtract;
    animation: loadingIcon 1s infinite linear;
    margin-right: 10px;
}

@keyframes loadingIcon {
    to{
        transform: rotate(1turn)
    }
}

.dialogue-result .answer .right .content p {
    margin-bottom: 24px;
}

.dialogue-result .answer .right .operate {
    justify-content: flex-end;
    font-size: 14px;
    color: #7886A3;
    margin: 25px 0 0;
}

.dialogue-result .answer .right .operate .icon {
    height: 14px;
    margin-right: 8px;
}

.dialogue-result .answer .right .operate .item {
    padding: 0 12px;
    line-height: 0;
    cursor: pointer;
}

.dialogue-result .answer .right .operate .item:first-child {
    border-right: 1px solid #A5B0C6;
}

/* 文书生成 */

.doc-wrap {
    display: none;
}

.doc-wrap .title {
    text-align: center;
    font-weight: 600;
    font-size: 40px;
    letter-spacing: 2.76px;
    margin: 54px 0 0;
}

.doc-wrap .title .con {
    margin: 14px 0 18px;
}

.doc-wrap .title .desc {
    font-size: 18px;
    font-weight: normal;
    color: #333333d9;
    letter-spacing: 1.12px;
}

.doc-tabs-wrap {
    width: auto;
    max-width: 1200px;
    height: 48px;
    line-height: 48px;
    margin: 30px auto 0;
    z-index: 1;
}

.doc-tabs-wrap .doc-tabs {
    position: relative;
    z-index: 1;
    background-image: linear-gradient(180deg, #EAF1FF 33%, #FFFFFF 100%);
    border-radius: 8px 8px 0 0;
}

.doc-tabs-wrap.focus .doc-tabs {
    background-image: linear-gradient(124deg, #39D4AC, #3787FD);
    border-radius: 8px 8px 0 0;
    padding: 3px 3px 0;
}

.doc-tabs-wrap.focus .doc-tabs::after {
    content: "";
    background-image: linear-gradient(180deg, #EAF1FF 33%, #FFFFFF 100%);
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(100% - 6px);
    height: 100%;
    border-radius: 8px 8px 0 0;
}

.doc-tabs-wrap.focus .doc-tabs .tab {
    border: none;
}

.doc-tabs .tab {
    position: relative;
    width: 170px;
    border-radius: 8px 8px 0 0;
    font-size: 16px;
    color: #797979;
    cursor: pointer;
    border: 1px solid #D5DAF9;
    border-bottom: none;
    box-shadow: 0 4px 15px 0 #0056fe1f;
    display: inline-block;
    height: 100%;
    text-align: center;
    z-index: 1;
}

.doc-tabs .tab:first-child {
    clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
}

.doc-tabs .tab:last-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%);
    border-radius: 0 8px 0 0;
    margin-left: -20px;
}

.doc-tabs .tab.active {
    font-weight: 600;
    color: #000000;
    background: #FFFFFF;
}

.doc-content {
    position: relative;
    max-width: 1200px;
    height: 320px;
    background: #ffffffd9;
    border: 1px solid #D5DAF9;
    box-shadow: 0 6px 21px 0 #4f73bb1f, inset 0 1px 15px 0 #FFFFFF;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 3px;
    border-radius: 0 12px 12px 12px;
}

.doc-content.focus {
    background-image: linear-gradient(124deg, #39D4AC, #3787FD, #F6496F);
    border: none;
    box-shadow: none;
}

.doc-content.focus::after {
    content: "";
    position: absolute;
    /* top: -62px;
    left: -15px;
    background: url(../images/AIGC/bg_agi_chat.png) no-repeat;
    background-size: 100% 100%;
    width: 104%;
    height: 411px; */
}

.doc-content textarea {
    height: 100%;
    border: none;
    border-radius: 0 12px 12px 12px;
}

.doc-content .doc-submit-icon {
    position: absolute;
    right: 20px;
    bottom: 24px;
    width: 32px;
    height: 32px;
    z-index: 1;
}

.doc-content .doc-submit-icon.focus {
    display: none;
    cursor: pointer;
}

.doc-result {
    position: relative;
    display: none;
    max-width: 1200px;
    box-shadow: 0 6px 15px 0 #8895b01f;
    margin: 40px auto 0;
    box-sizing: border-box;
    background: #FFFFFF;
    padding-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.doc-result .title {
    position: relative;
    margin: 0;
    background-image: linear-gradient(180deg, #EEF3FE 0%, #f8faffbf 100%);
    box-shadow: inset 0 1px 0 0 #FFFFFF;
    border-radius: 8px;
    font-weight: 600;
    font-size: 26px;
    box-sizing: border-box;
    padding: 30px 0 16px;
}

.doc-result .title .tit-edit-btn {
    display: none;
    position: absolute;
    top: 35px;
    right: 10px;
    color: #0056FE;
    font-weight: normal;
    font-size: 16px;
    cursor: pointer;
}

.doc-result .title .time {
    font-size: 16px;
    color: #00000040;
    font-weight: normal;
    letter-spacing: 0;
    padding: 7px 0 0;
}

.doc-result .content {
    height: 60vh;
    padding: 32px 40px 64px;
    font-size: 16px;
    color: #000000bf;
    letter-spacing: 0;
    line-height: 26px;
    overflow: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

.doc-result::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: linear-gradient(180deg, #ffffff00 0%, #FFFFFF 50%);
    z-index: 1;
}

#docTitleEdit {
    text-align: center;
    border: none;
    background: transparent;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    font-size: 26px;
    color: #000000;
    height: 50px;
    line-height: 50px;
}

#docContentEdit {
    display: none;
    height: 52vh;
}

.doc-result .content p {
    margin-bottom: 20px;
}

.doc-result .operate {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background-image: linear-gradient(180deg, #ffffff00 0%, #FFFFFF 50%);
    border-radius: 0 0 10px 10px;
    padding: 40px 0 25px;
    z-index: 2;
}

.doc-result .save-btn {
    width: 126px;
    height: 40px;
    background-image: linear-gradient(270deg, #25ADFF 0%, #0056FE 100%);
    box-shadow: 0 6px 10px 0 #0056fe5e;
    border-radius: 28px;
    margin: 0 auto;
    font-size: 16px;
    color: #FFFFFF;
    cursor: pointer;
}

.doc-result .save-btn.disabled {
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.2);
    cursor: default;
}

.login-dialog .public-dialog-wrapper {
    width: 524px;
    padding: 30px 0 40px;
    border-radius: 8px;
    overflow: hidden;
}

.login-dialog .public-dialog-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background: url(../images/AIGC/bg_agi_login.png) no-repeat;
    background-size: 100%;
    width: 100%;
    height: 187px;
}

.login-dialog .public-dialog-body, .login-dialog .public-dialog-footer {
    position: relative;
    z-index: 1;
}

.login-dialog .public-dialog-close {
    z-index: 1;
}

.login-dialog .public-dialog-body .icon {
    display: block;
    margin: 0 auto;
}

.login-dialog .public-dialog-footer .ax-btn.cancel {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1;
}

.login-dialog .public-dialog-footer {
    margin: 20px 0 0;
}

/* 版权信息 */

.copyright {
    font-size: 14px;
    color: #00000040;
    position: absolute;
    bottom: 46px;
    width: 100%;
    text-align: center;
}

/* 输入框样式 */

input[type="text"]:focus, textarea:focus {
    border: none;
    box-shadow: none;
}

/* 滚动条样式 */

.history-list-wrap::-webkit-scrollbar, .dialogue-result::-webkit-scrollbar, .doc-result .content::-webkit-scrollbar {
    width: 6px;
}
  
.history-list-wrap::-webkit-scrollbar-thumb, .dialogue-result::-webkit-scrollbar-thumb, .doc-result .content::-webkit-scrollbar-thumb {
    background: #D3E6FE;
    border-radius: 3px;
}
  
.history-list-wrap::-webkit-scrollbar-track, .dialogue-result::-webkit-scrollbar-track, .doc-result .content::-webkit-scrollbar-track {
    background: #F4F4F4;
    border-radius: 3px;
}

.cur-pointer {
    cursor: pointer;
}

.wap-ask-normal {
    display: none;
}


/* 小屏高度适配 */

.small-screen .right .aigc-tabs {
    height: 8vh;
}

.small-screen .dialogue-ask {
    margin: 2vh 0 0;
}

.small-screen .dialogue-wrap .title .icon {
    width: 9vh;
}

.small-screen .dialogue-wrap .title .con .tit {
    font-size: 1.6em;
}

.small-screen .dialogue-wrap .title .con .desc {
    margin-top: 1vh;
}

.small-screen .dialogue-result {
    height: 50vh;
}

.small-screen .doc-tabs-wrap {
    width: 90%;
}

.small-screen .dialogue-example .tip {
    font-size: 1em;
}

.small-screen .dialogue-example-list .item {
    padding: 7vh 3vh 3vh;
}

.small-screen .dialogue-example-list .item .desc {
    margin: 2vh 0 0;
}

.small-screen .dialogue-example-list .item .icon {
    height: 10.9vh;
}

.small-screen .dialogue-wrap .input-box {
    bottom: 11vh;
}

.small-screen .copyright {
    bottom: 4.6vh;
    font-size: 0.8em;
}

.small-screen .doc-wrap .title, .small-screen .legal-ask .title {
    font-size: 4vh;
}

.small-screen .doc-wrap .title .icon, .small-screen .legal-ask .title .icon {
    width: 9vh;
}

.small-screen .doc-wrap .title .con, .small-screen .legal-ask .title .con {
    margin: 1vh 0;
}

.small-screen .doc-tabs-wrap {
    margin: 3vh auto 0;
}

.small-screen .doc-content {
    height: 32vh;
}

.small-screen .doc-result .title {
    padding: 1vh 0 0;
}

.small-screen #docContentEdit {
    height: 52vh;
}

.small-screen .left .history-list-wrap {
    height: 43vh;
}

.small-screen .left .add-btn {
    margin: 8.4vh auto 0;
    height: 5.6vh;
}

.small-screen .left .history {
    margin: 4vh 0 0;
}

.small-screen .doc-result .content {
    height: 56vh;
}

.chat-header {
    display: none;
}

/* 小屏宽度适配 */

@media screen and (max-width: 1500px) {
    .aigc-wrap .right .aigc-tabs {
        /* padding-left: 26.40625vw; */
    }
    .dialogue-wrap .input-box {
        max-width: 77vw;
    }
    .dialogue-result {
        width: 77vw;
    }
    .dialogue-example {
        margin: 0 auto;
    }
    .doc-tabs .tab {
        width: 10.3vw;
    }
    .doc-tabs-wrap, .doc-content, .legal-example, .doc-result {
        width: 90%;
    }
    .filter-form input, .filter-form select {
        width: 14vw;
    }
}

/* wap适配 */

@media screen and (max-width: 960px) {
    html, body {
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }
    .header, .dialogue-ask > .title, .dialogue-example > .tip {
        display: none;
    }
    .wap-ask-normal {
        display: flex;
    }
    .small-screen .dialogue-ask {
        margin: 0;
    }
    .aigc-wrap .right {
        background: #EDF2F6;
    }
    .chat-header {
        display: flex;
        width: 100%;
        height: 15vw;
        background-image: linear-gradient(180deg, #F1F5FF 0%, #FBFCFF 100%);
        box-sizing: border-box;
        justify-content: space-between;
        z-index: 1;
        box-sizing: border-box;
        padding: 3.3333333333333335vw 8.541666666666668vw 0;
    }
    .chat-header::after {
        content: "";
        position: absolute;
        top: 0;
        right: 3.3333333333333335vw;
        background: url('https://law.rednet.cn/mini-images/bg_texture_today_consultation@2x.png') no-repeat;
        background-size: 100%;
        width: 43.54166666666667vw;
        height: 13.125vw;
    }
    .chat-header-item .icon {
        width: 8.533333333333333vw;
        height: 8.533333333333333vw;
        margin-right: 4vw;
    }
    .chat-header-item .con .title {
        font-size: 3.25vw;
        color: #0057FF;
        font-weight: bold;
    }
     .chat-header-item .con .sub-text {
        font-size: 2.5vw;
        color: rgba(0, 0, 0, .5);
        margin-top: 1vw;
    }
    .aigc-wrap {
        min-height: calc(100vh - 15vw - 17.916666666666668vw);
    }
    .dialogue-example {
        position: fixed;
        bottom: 21.25vw;
        left: 50%;
        transform: translate(-50%, 0);
        z-index: 1;
    }
    .dialogue-example-list {
        margin: 0;
    }
    .dialogue-example-list .item:hover {
        margin-top: 0;
        transition: none;
    }
    .dialogue-example-list .item, .small-screen .dialogue-example-list .item {
        width: 30.729166666666668vw;
        height: 13.75vw;
        padding: 2.0833333333333335vw;
        margin-left: 1.6666666666666667vw;
        border-radius: 1.6666666666666667vw;
    }
    .dialogue-example-list .item:first-child, .small-screen .dialogue-example-list .item:first-child {
        margin-left: 0;
    }
    .dialogue-example-list .item .title {
        font-size: 3.125vw;
    }
    .dialogue-example-list .item .desc, .small-screen .dialogue-example-list .item .desc {
        font-size: 2.916666666666667vw;
        margin: 0;
        -webkit-line-clamp: 1;
    }
    .dialogue-example-list .item .icon, .small-screen .dialogue-example-list .item .icon {
        height: 4vh;
        top: 1.25vw;
        left: auto;
        right: 1.25vw;
    }
    .dialogue-wrap .input-box {
        width: 100%;
        max-width: 100%;
        height: 17.916666666666668vw;
        background: #FFFFFF;
        position: fixed;
        bottom: 0;
        border-radius: 0;
        overflow: hidden;
    }
    .dialogue-wrap .input-box.focus {
        background: #FFFFFF;
    }
    .dialogue-result {
        display: block;
        width: 100%;
        margin: 0 auto;
        padding: 0 2.5vw 2.5vw;
    }
    .dialogue-wrap .input-box .dialogue-content {
        position: relative;
        width: 54.16666666666667vw;
        height: 8vw;
        line-height: 7.2vw;
        background: #FFFFFF;
        border: 2px solid #D8D8D8;
        border-radius: 16px;
        padding: 0 2vw;
        overflow: hidden;
    }
    .dialogue-wrap .input-box .submit-icon {
        width: 7vw;
        height: 7vw;
    }
    .small-screen .dialogue-wrap .input-box {
        bottom: 0;
    }
    .small-screen .dialogue-result {
        height: calc(100vh - 15vw - 17.916666666666668vw);
    }
    .dialogue-result .ask .title, .dialogue-result .answer .title {
        flex: unset;
        font-size: 3.75vw;
        line-height: 4.583333333333334vw;
        width: 53.54166666666667vw;
        background: #FFFFFF;
        border-radius: 1.875vw;
        box-sizing: border-box;
        padding: 2.5vw;
        color: #000000bf;
    }
    .dialogue-result .answer .right {
        padding: 0 0 2.5vw;
    }
    .dialogue-result .answer .right {
        width: 80%;
        font-size: 3.75vw;
        line-height: 4.583333333333334vw;
        border-radius: 1.875vw;
        box-sizing: border-box;
        padding: 2.5vw;
        flex: unset;
    }
    .dialogue-result .answer .right .operate {
        font-size: 3.125vw;
    }

    .dialogue-result .ask {
        justify-content: flex-end;
    }
    .dialogue-result .ask .title {
        font-weight: normal;
    }
}