/* 智能问答机器人样式 */
.robot_main {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 20px;
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.robot_s {
    margin-bottom: 20px;
}

.robot_s_ico {
    float: left;
    width: 40px;
    height: 40px;
    background: url(../images/robot_a.png) no-repeat center;
    background-size: contain;
    border-radius: 50%;
    margin-right: 10px;
}

.robot_s_edit {
    float: left;
    max-width: 80%;
}

.robot_s_border {
    background: #f0f0f0;
    border-radius: 8px;
    padding: 10px 15px;
    position: relative;
}

.robot_s_border .span_a {
    position: absolute;
    left: -8px;
    top: 10px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #f0f0f0;
}

.robot_s_border font {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.robot_q {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 15px;
}

.robot_q .field {
    margin-bottom: 10px;
}

.robot_q .keyword {
    width: 100%;
    height: 80px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    resize: none;
}

.robot_q_left {
    float: left;
    font-size: 12px;
    color: #999;
}

.robot_q_left span {
    margin-right: 15px;
}

.robot_clear {
    color: #1c51a1;
    cursor: pointer;
}

.robot_clear:hover {
    text-decoration: underline;
}

.robot_q_right {
    float: right;
}

.edit_submit {
    display: inline-block;
    padding: 8px 30px;
    background: #1c51a1;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.edit_submit:hover {
    background: #164089;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 用户消息样式 - 右侧对齐 */
.myself {
    margin-bottom: 20px;
    text-align: right;
}

.myself_edit {
    display: inline-block;
    max-width: 80%;
    text-align: left;
}

.myself_border {
    background: #e8f4ff;
    border-radius: 8px;
    padding: 10px 15px;
    position: relative;
    display: inline-block;
}

.myself_label {
    color: #d32f2f;
    font-weight: bold;
    font-size: 14px;
}

.myself_border font {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    display: inline;
}

.myself_ico {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: url(../images/user_avatar.png) no-repeat center;
    background-size: contain;
    border-radius: 50%;
    margin-left: 10px;
    vertical-align: top;
}
