#service_box {
    width: 185px;
    height: 450px;
    position: fixed;
    cursor: pointer;
    border: none; /* 去掉边框 */
    left: 21px;
    bottom: 100px;
    z-index: 99999;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* 收缩状态样式 */
#service_box.collapsed {
    height: 45px;
    overflow: hidden;
}

.service-header {
    background: linear-gradient(135deg, #1a2530, #2c3e50);
    color: white;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2a3a4d;
    height: 45px;
    cursor: pointer;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.service-list {
    display: flex;
    flex-direction: column;
    height: calc(100% - 45px);
    transition: opacity 0.3s ease;
}

.service-item {
    padding: 5px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
    flex: 1;
    min-height: 0;
}

.service-item:hover {
    background: #f8f9fa;
}

.service-item:last-child {
    border-bottom: none;
}

.service-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.service-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-time {
    font-size: 11px;
    color: #7f8c8d;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-status {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

.status-online {
    background: #e1f7e1;
    color: #27ae60;
}

.status-busy {
    background: #ffeaea;
    color: #e74c3c;
}

#service_box.collapsed .service-list {
    opacity: 0;
    pointer-events: none;
}