#customer-service-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    height: 400px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.chat-header {
    height: 40px;
    background: #007bff;
    border-radius: 5px 5px 0 0;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.chat-title {
    font-size: 16px;
}

.chat-close {
    font-size: 24px;
    cursor: pointer;
}

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

.chat-footer {
    height: 50px;
    border-top: 1px solid #eee;
    padding: 8px;
}

.input-box {
    display: flex;
    height: 100%;
}

.input-box input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px 10px;
    margin-right: 5px;
}

.input-box button {
    width: 60px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.input-box button:hover {
    background: #0056b3;
}

/* 消息样式 */
.message {
    margin-bottom: 15px;
    display: flow-root;
    clear: both;
    width: 100%;
}

.message.left {
    text-align: left;
}

.message.right {
    text-align: right;
}

.message-content {
    display: inline-block;
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 15px;
    word-break: break-all;
    position: relative;
}

.message.left .message-content {
    background: #007bff;
    color: #fff;
    border-bottom-left-radius: 5px;
    float: left;
}

.message.right .message-content {
    background: #e9ecef;
    color: #333;
    border-bottom-right-radius: 5px;
    float: right;
}

.message-time {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    clear: both;
    text-align: center;
}

.system-message {
    text-align: center;
    color: #999;
    margin: 10px 0;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 12px;
}

.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #007bff;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 9998;
}

.chat-button:hover {
    background: #0056b3;
}

.chat-button i {
    font-size: 24px;
} 