/* 在线咨询弹窗样式 */
.modal-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.35);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 0;
    min-width: 340px;
    max-width: 95vw;
    width: 380px;
    position: relative;
    box-shadow: 0 8px 32px rgba(57,111,255,0.12);
    display: flex;
    flex-direction: column;
    height: 520px;
    max-height: 90vh;
}

.chat-header {
    background: linear-gradient(90deg,#14244C 0%,#0F1312 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-title {
    font-size: 1.15rem;
    font-weight: 500;
}

.chat-header-title i {
    margin-right: 0.5em;
}

.close-chat-btn {
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.2s;
    opacity: 0.8;
}

.close-chat-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.close-chat-btn:hover {
    opacity: 1;
}

#chatMessages {
    flex: 1;
    padding: 1.2rem 1.5rem;
    overflow-y: auto;
    background: #f7f9fc;
    font-size: 1rem;
}

#chatForm {
    display: flex;
    border-top: 1px solid #eee;
    padding: 0.8rem 1rem;
    background: #fff;
}

#chatInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.5em 0.8em;
    border-radius: 6px;
    background: #f2f4f8;
    margin-right: 0.7em;
}

#chatForm button[type="submit"] {
    background: #396fff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5em 1.2em;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

#chatForm button[type="submit"]:hover {
    background: #14244C;
}

/* 响应式样式 */
@media screen and (max-width: 768px) {
    .modal-content {
        min-width: 0;
        width: 98vw;
        padding: 0;
    }

    #chatMessages {
        padding: 0.7rem 0.5rem;
    }

    #chatForm {
        padding: 0.5rem 0.3rem;
    }

    .chat-header {
        padding: 0.7rem 1rem;
    }
} 