﻿/* ================= 悬浮按钮 ================= */
.float-btn .hover {
    padding: 0px;
}
.float-btn .AI-popup {
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 12px;
    background: linear-gradient(134.91deg, rgba(253,237,230,1) 3.59%,rgba(239,251,243,1) 14.43%,rgba(244,245,245,1) 21.33%,rgba(236,240,255,1) 29.21%,rgba(255,255,255,1) 57.79%,rgba(255,255,255,1) 97.21%,rgba(255,255,255,1) 75.53%);
    color: rgba(16, 16, 16, 1);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 1);
}

.float-btn .AI-popup-item {
    position: relative;
    width: 100%;
    padding: 26px 32px;
}

    .float-btn .AI-popup-item::after {
        content: " ";
        position: absolute;
        height: 1px;
        width: calc(100% + 10px);
        background: #fff;
        display: block;
        bottom: 0px;
        left: -5px;
    }
    .float-btn .hover {
    min-width: 300px;
    right: calc(-50% + 90px);
    left: initial;
}

.float-btn:hover .hover {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0s;
}

.float-btn .hover {
    /* 关键：延迟 2s 再隐藏 / 消失 */
    /* 语法：property duration timing-function delay */
    transition: visibility 0s linear 0.2s, opacity 0s linear 0.2s;
}
.float-btn:hover .hover {
    /* 关键：移入时立即显示，不能继承默认态的 2s 延迟 */
    transition: visibility 0s linear 0s, opacity 0s linear 0s;
}

.color-d9d9d9 {
    color: #d9d9d9;
}


.AI-session-popup {
    display:none;
    position: fixed;
    right: 40px;
    bottom: 25px;
    width: 450px;
    padding-bottom: 20px;
    border-radius: 12px;
    background-color: #fff;
    font-size: 14px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}
    .AI-session-popup .top {
        display: flex;
        flex-direction: column;
        width: 450px;
        height: 482px;
        padding: 23px 18px 30px;
        border-radius: 12px;
        font-size: 14px;
    }
    .AI-session-popup .top.step1 {
        background: linear-gradient(141.45deg, rgba(247,219,215,1) 5.32%,rgba(239,251,243,1) 13.7%,rgba(244,245,245,1) 20.22%,rgba(236,240,255,1) 27.68%,rgba(255,255,255,1) 54.7%,rgba(255,255,255,1) 91.97%,rgba(255,255,255,1) 71.47%);
    }

        .AI-session-popup .top.step2 .left-box {
            width: fit-content;
            border-radius: 50px;
            font-size: 12px;
            padding: 10px;
            background: #F9F9F9;
            margin-bottom: 4px;
        }

        .AI-session-popup .top.step2 .step2-list-box {
            overflow: auto;
            overscroll-behavior: contain; /* 阻止滚动链传给 body */
        }
            .AI-session-popup .top.step2 .step2-list-box::-webkit-scrollbar {
                width: 5px;
                height: 5px;
            }
            .AI-session-popup .top.step2 .step2-list-box::-webkit-scrollbar-thumb {
                border-radius: 10px;
                background: #E4E4E4;
            }
        .AI-session-popup .top.step2 .step2-list-box::-webkit-scrollbar-track {
            border-radius: 10px;
        }

        .AI-session-popup .top.step2 .right-box {
            width: fit-content;
            margin-left: auto;
            border-radius: 50px;
            font-size: 12px;
            padding: 10px;
            margin-bottom: 4px;
            background-color: rgba(221, 110, 0, 0.15);
        }
        .operate-item {
            position: relative;
            cursor: pointer;
        }

    .operate-item .operate-item-popup {
        position: absolute;
        bottom: 25px;
        right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 54px;
        min-height: 36px;
        padding: 0 10px;
        border-radius: 4px;
        background-color: #fff;
        cursor: pointer;
        color: #333;
        font-size: 12px;
        white-space: nowrap;
        box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15);
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s linear 0.2s, opacity 0s linear 0.2s;
    }

    .operate-item:hover .operate-item-popup {
        visibility: visible;
        opacity: 1;
        transition: visibility 0s linear 0s, opacity 0s linear 0s;
    }


.border-E8E8E8 {
    border: 1px solid #E8E8E8;
}

.AI-session-popup .ai-active:hover {
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15);
}

.textarea-box {
    width: 410px;
    height: 130px;
    border-radius: 8px;
    padding: 14px;
    margin: 0 20px;
    background-color: #fff;
    border: 1px solid #E8E8E8;
}
    .textarea-box textarea {
        width: 100%;
        height: 70px;
        border: none;
        padding: 0;
    }
    .textarea-box textarea::placeholder {
        color: #999;
    }
    .textarea-box .send-btn {
        width: 35px;
        height: 35px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        border-radius: 50%;
        background-color: #000;
    }
.color-c9c9c9 {
    color: #c9c9c9;
}

/* ===== 回答区 ===== */
.answer {
    font-size: 15px;
    line-height: 1.85;
    color: #1f2329;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 1em;
}

.answer.typing::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.05em;
    background: #4d6bfe;
    margin-left: 3px;
    vertical-align: -0.15em;
    border-radius: 1px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}


/* ----------------------------------------------
 * Generated by Animista on 2026-10-8 9:13:4
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */
/**
 * ----------------------------------------
 * animation slide-left
 * ----------------------------------------
 */
@-webkit-keyframes slide-left {
    0% {
        -webkit-transform: translateX(-30px);
        transform: translateX(-30px);
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

@keyframes slide-left {
    0% {
        -webkit-transform: translateX(-30px);
        transform: translateX(-30px);
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}


/**
 * ----------------------------------------
 * animation slide-right
 * ----------------------------------------
 */
@-webkit-keyframes slide-right {
    0% {
        -webkit-transform: translateX(-30px);
        transform: translateX(-30px);
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

@keyframes slide-right {
    0% {
        -webkit-transform: translateX(-30px);
        transform: translateX(-30px);
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}