/* 在线咨询按钮样式 */
.consultation-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 110px;
    height: 110px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.consultation-button:before {
    content: "";
    width: 40px;
    height: 40px;
    background-image: url('../images/zxkf.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 6px;
    transition: transform 0.3s ease;
    display: block;
}

.consultation-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
    background: #40a9ff;
}

.consultation-button:hover:before {
    transform: scale(1.1);
}

.consultation-button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
    background: #096dd9;
}





/* 咨询弹窗样式 */
.consultation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow: auto;
}

.consultation-content {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 320px;
    height: 500px;
    background-color: white;
    border-radius: 10px 10px 0 0;
    box-shadow: -5px -5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.consultation-header {
    background-color: #2c7ad6;
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consultation-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.consultation-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.consultation-footer {
    padding: 10px 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.message-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
    outline: none;
}

.send-button {
    background-color: #2c7ad6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.send-button:hover {
    background-color: #1e62b9;
}

/* 消息样式 */
.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-end;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 18px;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
}

.user-message .message-content {
    background-color: #2c7ad6;
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message .message-content {
    background-color: #f0f0f0;
    color: #333;
    border-bottom-left-radius: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .consultation-button {
        bottom: 70px;
        right: 15px;
        width: 90px;
        height: 90px;
        font-size: 13px;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3), 0 3px 10px rgba(0, 0, 0, 0.1);
    }
    
    .consultation-button:before {
        font-size: 30px;
        margin-bottom: 4px;
    }
    
    .consultation-content {
        width: 100%;
        height: 80%;
    }
}

@media (max-width: 480px) {
    .consultation-button {
        bottom: 65px;
        right: 10px;
        width: 80px;
        height: 80px;
        font-size: 12px;
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .consultation-button:before {
        font-size: 28px;
        margin-bottom: 3px;
    }
    
    .consultation-button:hover {
        transform: translateY(-4px) scale(1.06);
    }
    
    .consultation-content {
        width: 100%;
        height: 85%;
    }
}