/*----*/
.chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #ff7043;
    /* Warm orange */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chat-toggle-btn:hover {
    background-color: #f4511e;
    /* Darker orange on hover */
}

.chat-container {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 350px;
    height: 550px;
    /* Fixed height */
    background-color: #fff;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 100001;
    /* 确保动画更流畅，加上transform原点 */
    transform-origin: bottom right;
    animation: scaleIn 0.3s ease forwards;
}

.chat-container.closing {
    animation: scaleOut 0.3s ease forwards;
}
.chatd{
    display: none;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scaleOut {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(0);
        opacity: 0;
    }
}

.chat-header {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #F2F2F2;
    /* Warm orange */
    border-radius: 5px 5px 0 0;
    font-weight: bold;
    font-size: 16px;
    color: #303030;
}

.chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 15px;
}

.user-message {
    background-color: #f9e0d9;
    /* Light orange */
    color: #1e2a47;
    /* Dark text */
    padding: 10px;
    border-radius: 10px;
    text-align: right;
    font-size: 14px;
}

.ai-message {
    background-color: #F6F6F6;
    /* Dark brown */
    color: #303030;
    /* White text */
    padding: 10px;
    border-radius: 10px;
    text-align: left;
    font-size: 14px;
}

.chat-footer {
    display: flex;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 0 0 15px 15px;
}

/* Input Field Fix */
textarea {
    flex: 1;
    padding: 10px;
    /* Light background */
    color: #333;
    /* Dark text for visibility */
    font-size: 14px;
    resize: none;
    /* Prevent resizing */
    transition: border-color 0.3s;
    background-color: #FFFEFA;
    border-radius: 4px;
    border: 1px solid #FF6C00;
}

/* Placeholder text visibility */
textarea::placeholder {
    color: #999999;
    font-size: 12px;
}

/* Input hover and focus effect */
textarea:hover,
textarea:focus {
    border-color: #ff7043;
    outline: none;
}

.send-btn {
    margin-left: 10px;
    /* Warm orange */
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;

    width: 62px;
    height: 27px;
    line-height: 27px;
    text-align: center;
    background: #FFA700;
    border-radius: 4px;

    position: absolute;
    bottom: 20px;
    right: 20px;
}

.send-btn:hover {
    background-color: #f4511e;
    /* Darker orange on hover */
}

.close-btn {
    background: none;
    border: none;
    color: #303030;
    font-size: 18px;
    cursor: pointer;
}

.loading {
    text-align: center;
    font-size: 16px;
    color: #ff7043;
    /* Warm orange */
}

/*---*/
.search_div{
}
.index_search_input{
    width: 410px;
}
.houseSelection{
    width: 111px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    user-select: none;
    background-color: #FF6C00;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    /*transition: background-color 0.3s;*/
    display: inline-block;
    vertical-align: top;
    font-size: 14px;
    /*margin-left: 10px;*/
    position: absolute;
    top: 0;
    right: -126px;
}
.chatShow{
    display: none;
}
.presetProblem{
    padding: 10px;
    margin-bottom: 15px;
    background: #F6F6F6;
    border-radius: 4px;
}
.chat-per{
    font-weight: 400;
    font-size: 12px;
    color: #303030;
    margin-bottom: 12px;
}
.chat-per p{
    font-weight: 400;
    font-size: 12px;
    color: #303030;
    line-height: 18px;
}
.default_Problem p{
    font-weight: bold;
    font-size: 12px;
    color: #FF6C00;
    line-height: 22px;
    cursor: pointer;
    display: block;
}
.chat-nologin{
    width: 100%;
}
.nologin-top{
    margin-bottom: 25px;
}
.nologin-top img{
    width: 74px;
    height: 74px;
    display: block;
    margin: 3vh auto 14px auto;
}
.nologin-top p{
    line-height: 18px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #303030;
}
.nologin-form{
    width: 272px;
    margin: auto;
    position: relative;
}
.nologin-btn{
    width: 272px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: #FF963C;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    color: #FFFFFF;
    cursor: pointer;
    margin-top: 25px;
}
.nologin-form input{
    width: 272px;
    height: 39px;
    background: #EDEDED;
    border-radius: 4px;
    padding: 0 6px;
    border: 1px solid #EDEDED;
    margin-bottom: 6px;
    display: block;
    box-sizing: border-box;
}
.nologin-form input[type="number"]::-webkit-outer-spin-button,
.nologin-form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.nologin-form input[type="number"] {
    -moz-appearance: textfield;
}
.getcode{
    font-weight: 400;
    font-size: 14px;
    color: #4E8CFF;
    position: absolute;
    top: 8px;
    right: 12px;
    cursor: pointer;
}
.nologin-info{
    font-weight: 400;
    font-size: 12px;
    color: #303030;
    text-align: center;
    margin-top: 15px;
}
.nologin-info a,.nologin-info a:hover{
    color: #3190FF;
}
.nologin-foot{
    width: 100%;
    position: relative;
    padding-left: 19px;
    box-sizing: border-box;
    font-weight: 400;
    font-size: 14px;
    color: #303030;
    margin-top: 48px;
}
.nologin-foot img{
    display: inline-block;
    position: relative;
    top: 3px;
    left: 0;
    width: 15px;
    height: 18px;
}
.nologin-foot a,.nologin-foot a:hover{
    color: #3190FF;
}
.popp{
    color: #FF963C;
    position: absolute;
    right: 0;
    left: 0;
    z-index: 5;
    text-align: center;
    top: 6.5vh;
    width: 100%;
    margin: auto;
}
.popp p{
    display: inline-block;
    background-color: rgba(0, 0, 0, .5);
    padding: 5px 20px;
    margin: auto;
    border-radius: 5px;
    line-height: 28px;
    font-weight: bolder;
    font-size: 14px;
}
#mcode{ display: none;}