.liatai {
    background: #FFFFFF;
}
.liaotanai {
    display: flex;
    flex-direction: column;
    height: 100%;
     padding-bottom: 300px;
}
#chat-container {
    box-sizing: border-box;
    flex: 1;
    overflow-y: auto;
    padding: 30px 20px 20px 20px;
}
#chat-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
#chat-container::-webkit-scrollbar-track {
    background: transparent;
}

#chat-container::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

#chat-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(156, 163, 175, 0.8);
}
.message-container {
    display: flex;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease-out;
    align-items: flex-start;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.message-ai {
    justify-content: flex-start;
    color: #4E5969;
}
.message-ai .download-link {
    color: #386DE6;
}
.message-user {
    justify-content: flex-end;
}
.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;

}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-ai {
    margin-right: 12px;
}
.avatar-user {
    margin-left: 12px;
}
.message-bubble {
    color: #4E5969;
    font-size: 14px;
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: normal;
}
.bubble-ai {
    background: #F5F6F7;
    border-radius: 10px 10px 10px 10px;
}

.bubble-user {
    background: #ECF4FF;
    border-radius: 10px 10px 10px 10px;
}
.bubble-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    border-top-left-radius: 4px;
    color: #dc2626;
}
.input-container {
    box-sizing: border-box;
    max-width: 1175px;
    width: 1175px;
    padding: 20px 0px 30px 0px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

}
.custom-input-container {
    box-shadow: 0px 5px 18px 0px rgba(0, 0, 0, 0.04);
    border-radius: 12px 12px 12px 12px;
    padding: 12px 18px;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid #E4E7ED;
    background: #FFFFFF;
}

.custom-input-container:focus-within {
    background: #FFFFFF;
    box-shadow: 0px 5px 18px 0px rgba(0, 0, 0, 0.04);
    border-radius: 12px 12px 12px 12px;
    border: 1px solid #E4E7ED;
}
.file-upload-area {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    max-width: calc(100% - 50px);
}
.file-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 6px 6px 6px 6px;
    border: 1px solid #DFE4E8;
    max-width: 100%;
    position: relative;
}
.file-item:hover .remove-file {
    display: block;
}
.file-preview {
    width: 27px;
    height: auto;
    margin-right: 8px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.remove-file {
    line-height: 16px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #C5C5C5;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding: 0;
    flex-shrink: 0;
    position: absolute;
    top: -4px;
    right: -4px;
    display: none;
}

.remove-file:hover {
    background-color: #F96D6D;
}
#message-input {
    border: none;
    outline: none;
    resize: none;
    min-height: 20px;
    font-size: 14px;
    width: 100%;
    margin-bottom: 8px;
    background: transparent;
}
.buttons-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.upload-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px 6px 6px 6px;
    background: url(../images/ailianjie1.png);
    background-size: 100% 100%;
    cursor: pointer;
    text-align: center;
    line-height: 28px;
    box-sizing: border-box;
}
.upload-btn:hover {
    background: url(../images/ailianjie2.png);
    background-size: 100% 100%;
}

#file-input {
    display: none;
}

#send-btn {
    width: 34px;
    height: 34px;

    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../images/ailianjie3.png);
    background-size: 100% 100%;
}

#send-btn:hover {
    background: url(../images/ailianjie4.png);
    background-size: 100% 100%;
}
.buttons-area .on {
    background: url(../images/ailianjie4.png) !important;
    background-size: 100% 100% !important;
}
.typing {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}
.dot {
    width: 8px;
    height: 8px;
    background-color: #94a3b8;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}
.dot:nth-child(1) {
    animation-delay: -0.32s;
}
.dot:nth-child(2) {
    animation-delay: -0.16s;
}
@keyframes typing {
    0% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
    80% {
        transform: scale(0);
    }
    100% {
        transform: scale(0);
    }
}

.message-files {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.message-file-item {
    padding: 10px 14px;
    border: 1px solid #DFE4E8;
    border-radius: 6px 6px 6px 6px;
    background: #FFFFFF;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.message-file-preview {
    width: 27px;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.message-file-info {
    flex-grow: 1;
    overflow: hidden;
}

.message-file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-file-size {
    font-size: 11px;
    opacity: 0.8;
}


.waxwight {
    max-width: 87%;
}
.ainav ul {
    margin-left: 58px;
    display: flex;
    align-items: center;
}
.ainav ul li {
    border-radius: 6px 6px 6px 6px;
    border: 1px solid #DFE4E8;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    cursor: pointer;
    margin-right: 10px;
}
.ainav ul li img {
    width: 20px;
    margin-right: 5px;
}
.vip-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.vip-btn {
    width: 120px;
    height: 40px;
    background: linear-gradient( 270deg, #FEE6B9 1%, #EDCB92 100%);
    border-radius: 6px;
    display: block;
    margin: 10px auto 0 auto;
    color: #5E3F33;
    font-size: 14px;
    line-height:40px;  
}
.vip-btn span{
    display: flex;
    align-items: center;
    justify-content: center;
}
.vip-btn img {
    width: 20px;
    margin-right: 5px;
}
.vip-btn a {
    color: #5E3F33;
    font-size: 14px;
}
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.upload-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    margin-right: 10px;
    font-weight: 500;
}
.upload-tag img {
    width: 20px;
    margin-right: 8px;
}
.aiguanbi {
    display: block;
    cursor: pointer;
    width: 17px;
    height: 17px;
    background: url(../images/aicons.png);
    background-size: 100% 100%;
    position: absolute;
    right: 21px;
    top: 21px;
}
@media screen and (max-width: 1300px) {
    .mwiths {
        transform: translate(-50%, -50%) scale(0.8);
    }
    .pop-wrap .pop-box {
        position: absolute;
        top: 50%;
        left: 50%;
        /* 改为50% */
        width: 800px;
        height: 510px;
        background: #fff;
        border-radius: 8px;
        /* 同时处理水平和垂直居中 */
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        -o-transform: translate(-50%, -50%);
    }
}